Your IP : 216.73.216.95


Current Path : /var/www/ljmtc/wp-content/plugins/user-registration/chunks/
Upload File :
Current File : /var/www/ljmtc/wp-content/plugins/user-registration/chunks/welcome.js

/*! 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,A=Object.prototype,R=w["__core-js_shared__"],I=T.toString,z=A.hasOwnProperty,j=(v=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",M=A.toString,F=I.call(Object),L=RegExp("^"+I.call(z).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=A.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];z.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 z.call(t,e)?t[e]:void 0},J.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:z.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=z.call(e,H),n=e[H];try{e[H]=void 0;var r=!0}catch(e){}var o=M.call(e);return r&&(t?e[H]=n:delete e[H]),o}(e):function(e){return M.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){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=z.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&I.call(n)==F}(s)||be(s)?(v=l,be(l)?v=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],l=void 0;void 0===l&&(l=e[a]),r?ae(n,a,l):oe(n,a,l)}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}:Ae;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!!j&&j in e}(e))&&(ke(e)?L:p).test(function(e){if(null!=e){try{return I.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||A)}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)&&z.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&&!z.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&&z.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,Ae),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 Ae(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){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"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||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 A: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 R:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function 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 Ae=!1;function Re(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Pe(e,t,n)}finally{Ae=!1,(null!==Se||null!==Ee)&&(Te(),Oe())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=ko(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var ze=!1;if(c)try{var je={};Object.defineProperty(je,"passive",{get:function(){ze=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ce){ze=!1}function Me(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,Me.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,At=null,Rt=new Map,It=new Map,zt=[],jt="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 Mt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Ft(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=xo(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=yo(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Nt(e,t,n){Dt(e)&&n.delete(t)}function Bt(){_t=!1,null!==Pt&&Dt(Pt)&&(Pt=null),null!==Tt&&Dt(Tt)&&(Tt=null),null!==At&&Dt(At)&&(At=null),Rt.forEach(Nt),It.forEach(Nt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function $t(e){function t(t){return Vt(t,e)}if(0<Ot.length){Vt(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Vt(Pt,e),null!==Tt&&Vt(Tt,e),null!==At&&Vt(At,e),Rt.forEach(t),It.forEach(t),n=0;n<zt.length;n++)(r=zt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<zt.length&&null===(n=zt[0]).blockedOn;)Lt(n),null===n.blockedOn&&zt.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),Mt(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 At=Ft(At,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Ft(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Ft(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<jt.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})),An=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Rn),zn=[9,13,27,32],jn=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Fn=c&&"TextEvent"in window&&!Mn,Ln=c&&(!jn||Mn&&8<Mn&&11>=Mn),Dn=String.fromCharCode(32),Nn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==zn.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)),Re(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"),Ar=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Ar.set(e,t),s(t,[e])}for(var zr=0;zr<Rr.length;zr++){var jr=Rr[zr];Ir(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}Ir(_r,"onAnimationEnd"),Ir(Or,"onAnimationIteration"),Ir(Pr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(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 Mr="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(Mr));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,!ze||"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}Re((function(){var r=i,o=we(n),a=[];e:{var l=Ar.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=An;break;case"scroll":s=fn;break;case"wheel":s=In;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=Ie(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(jn)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||!jn&&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=Ie(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Ie(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Ie(n,i))&&a.unshift(Hr(n,s,l)):o||null!=(s=Ie(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),Ao=Co(!1),Ro=Po;function Io(e,t){var n=e.type.contextTypes;if(!n)return Po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zo(e){return null!=e.childContextTypes}function jo(){_o(Ao),_o(To)}function Mo(e,t,n){if(To.current!==Po)throw Error(i(168));Oo(To,t),Oo(Ao,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,Ro=To.current,Oo(To,e),Oo(Ao,Ao.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Fo(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,_o(Ao),_o(To),Oo(To,e)):_o(Ao),Oo(Ao,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=Ru(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=Ru(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=zu(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===I&&yi(i)===t.type)?((r=o(t,n.props)).ref=gi(e,t,n),r.return=e,r):((r=ju(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=Mu(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=ju(t.type,t.key,t.props,null,e.mode,n)).ref=gi(e,null,t),n.return=e,n;case k:return(t=Du(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Mu(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 I:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||M(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 I:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||M(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=M(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===I&&yi(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=gi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((i=Mu(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=ju(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 I:return e(r,i,(c=a._init)(a._payload),s)}if(te(a))return m(r,i,a,s);if(M(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 Ai(e,t){Ei=e,_i=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Ri(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Ei)throw Error(i(308));Ci=e,Ei.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Ii=null;function zi(e){null===Ii?Ii=[e]:Ii.push(e)}function ji(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,zi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mi(e,r)}function Mi(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,Mi(e,n)}return null===(o=r.interleaved)?(t.next=t,zi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mi(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,Ra(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=Mi(e,1);null!==t&&nu(t,e,1,-1)}function Aa(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 Ra(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 Ia(){return ya().memoizedState}function za(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function ja(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=Ra(t,n,i,r))}la.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function Ma(e,t){return za(8390656,8,e,t)}function Fa(e,t){return ja(2048,8,e,t)}function La(e,t){return ja(4,2,e,t)}function Da(e,t){return ja(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,ja(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=ji(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,zi(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=ji(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:Ri,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:Ri,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,za(4194308,4,Na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return za(4194308,4,e,t)},useInsertionEffect:function(e,t){return za(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:Aa,useDebugValue:Va,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Aa(!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,Ma(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Ra(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:Ri,useCallback:$a,useContext:Ri,useEffect:Fa,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:Da,useMemo:Wa,useReducer:wa,useRef:Ia,useState:function(){return wa(xa)},useDebugValue:Va,useDeferredValue:function(e){return Ua(ya(),sa.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().memoizedState]},useMutableSource:Sa,useSyncExternalStore:Ea,useId:qa,unstable_isNewReconciler:!1},tl={readContext:Ri,useCallback:$a,useContext:Ri,useEffect:Fa,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:Da,useMemo:Wa,useReducer:ka,useRef:Ia,useState:function(){return ka(xa)},useDebugValue:Va,useDeferredValue:function(e){var t=ya();return null===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=Ri(i):(o=zo(t)?Ro:To.current,i=(r=null!=(r=t.contextTypes))?Io(e,o):Po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=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=Ri(i):(i=zo(t)?Ro:To.current,o.context=Io(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 Ai(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||Iu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ju(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=zu(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(zs,Is),Is|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(zs,Is),Is|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(zs,Is),Is|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(zs,Is),Is|=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=zo(n)?Ro:To.current;return i=Io(t,i),Ai(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(zo(n)){var i=!0;Lo(t)}else i=!1;if(Ai(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?Ri(u):Io(t,u=zo(n)?Ro: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||Ao.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?Ri(s):Io(t,s=zo(n)?Ro: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||Ao.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?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),Qi(e,t.containerInfo)}function Al(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xl(e,t,n,r),t.child}var Rl,Il,zl,jl,Ml={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=Mu(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Fl(n),t.memoizedState=Ml,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=Mu(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=Ml,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,Mi(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=zu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?l=zu(r,l):(l=Mu(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=Ml,o}return e=(l=e.child).sibling,o=zu(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=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(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 zo(t.type)&&jo(),ql(t),null;case 3:return r=t.stateNode,Ki(),_o(Ao),_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))),Il(e,t),ql(t),null;case 5:Ji(t);var o=Gi(Xi.current);if(n=t.type,null!==e&&null!=t.stateNode)zl(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<Mr.length;o++)Nr(Mr[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,Rl(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<Mr.length;o++)Nr(Mr[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)jl(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===js&&(js=3):mu())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return Ki(),Il(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!==js||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&Is)&&(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 zo(t.type)&&jo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ki(),_o(Ao),_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}}Rl=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}},Il=function(){},zl=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)}},jl=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,As=null,Rs=0,Is=0,zs=Co(0),js=0,Ms=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!==Rs?Rs&-Rs: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===js&&lu(e,Rs)),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?Rs: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?Rs: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&&Rs===t||(Ws=null,$s=Ke()+500,fu(e,t));;)try{bu();break}catch(t){pu(e,t)}Oi(),Cs.current=a,Ps=o,null!==As?t=0:(Ts=null,Rs=0,t=js)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=iu(e,o)),1===t)throw n=Ms,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=Ms,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=Ms,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(){Is=zs.current,_o(zs)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==As)for(n=As.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&jo();break;case 3:Ki(),_o(Ao),_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,As=e=zu(e.current,null),Rs=Is=t,js=0,Ms=null,Ds=Ls=Fs=0,Bs=Ns=null,null!==Ii){for(t=0;t<Ii.length;t++)if(null!==(r=(n=Ii[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ii=null}return e}function pu(e,t){for(;;){var n=As;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){js=1,Ms=t,As=null;break}e:{var a=e,l=n.return,s=n,u=t;if(t=Rs,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!==js&&(js=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,As===n&&null!==n&&(As=n=n.return);continue}break}}function hu(){var e=Cs.current;return Cs.current=Za,null===e?Za:e}function mu(){0!==js&&3!==js&&2!==js||(js=4),null===Ts||!(268435455&Fs)&&!(268435455&Ls)||lu(Ts,Rs)}function vu(e,t){var n=Ps;Ps|=2;var r=hu();for(Ts===e&&Rs===t||(Ws=null,fu(e,t));;)try{gu();break}catch(t){pu(e,t)}if(Oi(),Ps=n,Cs.current=r,null!==As)throw Error(i(261));return Ts=null,Rs=0,js}function gu(){for(;null!==As;)yu(As)}function bu(){for(;null!==As&&!Ge();)yu(As)}function yu(e){var t=Ss(e.alternate,e,Is);e.memoizedProps=e.pendingProps,null===t?xu(e):As=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(As=n);if(null===e)return js=6,void(As=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Yl(n,t,Is)))return void(As=n);if(null!==(t=t.sibling))return void(As=t);As=t=e}while(null!==t);0===js&&(js=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&&(As=Ts=null,Rs=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&&(Rs&n)===n&&(4===js||3===js&&(130023424&Rs)===Rs&&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=Mi(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 Au(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 Ru(e,t,n,r){return new Au(e,t,n,r)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Ru(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 ju(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Iu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Mu(n.children,o,a,t);case E:l=8,o|=8;break;case C:return(e=Ru(12,n,t,2|o)).elementType=C,e.lanes=a,e;case T:return(e=Ru(13,n,t,o)).elementType=T,e.lanes=a,e;case A:return(e=Ru(19,n,t,o)).elementType=A,e.lanes=a,e;case z: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 R:l=14;break e;case I:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ru(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Mu(e,t,n,r){return(e=Ru(7,e,r,t)).lanes=n,e}function Fu(e,t,n,r){return(e=Ru(22,e,r,t)).elementType=z,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return(e=Ru(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Ru(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=Ru(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(zo(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(zo(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||Ao.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:zo(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=Io(t,To.current);Ai(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,zo(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 Iu(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===R)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=Al(e,t,r,n,o=ul(Error(i(423)),t));break e}if(r!==o){t=Al(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&&!Ao.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,Ai(t,n),r=r(o=Ri(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,zo(r)?(e=!0,Lo(t)):e=!1,Ai(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<zt.length&&0!==t&&t<zt[n].priority;n++);zt.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=Mi(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=Mi(e,134217728);null!==t&&nu(t,e,134217728,eu()),qu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=Mi(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,z(k);else{var t=r(c);null!==t&&j(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&&j(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 A(){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(A)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=A,S=function(){I.postMessage(null)}}else S=function(){g(A,0)};function z(e){C=e,E||(E=!0,S())}function j(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,z(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,j(w,i-a))):(e.sortIndex=l,n(u,e),m||h||(m=!0,z(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){var t;return null==(t=e.parentNode)?void 0:t.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 A(e){return v=g=1,b=p(w=e),y=0,[]}function R(e){return w="",e}function I(e){return s(P(y-1,M(91===e?e+2:40===e?e+1:e)))}function z(e){for(;(x=_())&&x<33;)C();return T(e)>2||T(x)>3?"":" "}function j(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 M(e){for(;C();)switch(x){case e:return y;case 34:case 39:34!==e&&39!==e&&M(x);break;case 40:41===e&&M(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 R(X("",null,null,null,[""],e=A(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="",A=o,R=i,M=r,D=T;k;)switch(x=P,P=C()){case 40:if(108!=x&&58==d(D,g-1)){-1!=c(D+=u(I(P),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:D+=I(P);break;case 9:case 10:case 13:case 32:D+=z(x);break;case 92:D+=j(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(M=G(D,t,n,h,v,o,s,T,A=[],R=[],g),i),123===P)if(0===v)X(D,t,M,M,A,i,g,s,R);else switch(99===b&&110===d(D,3)?100:b){case 100:case 108:case 109:case 115:X(e,M,M,r&&m(G(e,M,M,0,0,o,s,T,o,A=[],g),R),o,R,g,s,r?A:R);break;default:X(D,M,M,M,[""],R,0,s,R)}}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+=I(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 R(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]+=I(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}(A(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){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,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function de(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var fe=!1,pe=/[A-Z]|^ms/g,he=/_EMO_([^_]+?)_([^]*?)_EMO_/g,me=function(e){return 45===e.charCodeAt(1)},ve=function(e){return null!=e&&"boolean"!=typeof e},ge=de((function(e){return me(e)?e:e.replace(pe,"-$&").toLowerCase()})),be=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(he,(function(e,t,n){return we={name:t,styles:n,next:we},t}))}return 1===ce[e]||me(e)||"number"!=typeof t||0===t?t:t+"px"},ye="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function xe(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return we={name:o.name,styles:o.styles,next:we},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)we={name:a.name,styles:a.styles,next:we},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xe(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":ve(l)&&(r+=ge(i)+":"+be(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&fe)throw new Error(ye);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=xe(e,t,a);switch(i){case"animation":case"animationName":r+=ge(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)ve(a[u])&&(r+=ge(i)+":"+be(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=we,s=n(e);return we=l,xe(e,t,s)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var we,ke=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Se(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="";we=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=xe(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=xe(n,t,e[a]),r&&(o+=i[a]);ke.lastIndex=0;for(var l,s="";null!==(l=ke.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:we}}var Ee=!!e.useInsertionEffect&&e.useInsertionEffect,Ce=Ee||function(e){return e()},_e=Ee||e.useLayoutEffect,Oe=e.createContext("undefined"!=typeof HTMLElement?oe({key:"css"}):null),Pe=(Oe.Provider,function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(Oe);return t(n,o,r)}))}),Te=e.createContext({}),Ae=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(Te);return t.theme!==n&&(n=Ae(n)(t.theme)),e.createElement(Te.Provider,{value:n},t.children)},Ie={}.hasOwnProperty,ze="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",je=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return se(t,n,r),Ce((function(){return ue(t,n,r)})),null},Me=Pe((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=t[ze],a=[o],l="";"string"==typeof t.className?l=le(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var s=Se(a,void 0,e.useContext(Te));l+=n.key+"-"+s.name;var u={};for(var c in t)Ie.call(t,c)&&"css"!==c&&c!==ze&&(u[c]=t[c]);return u.className=l,r&&(u.ref=r),e.createElement(e.Fragment,null,e.createElement(je,{cache:n,serialized:s,isStringTag:"string"==typeof i}),e.createElement(i,u))})),Fe=Me,Le=(n(4146),function(t,n){var r=arguments;if(null==n||!Ie.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Fe,i[1]=function(e,t){var n={};for(var r in t)Ie.call(t,r)&&(n[r]=t[r]);return n[ze]=e,n}(t,n);for(var a=2;a<o;a++)i[a]=r[a];return e.createElement.apply(null,i)}),De=Pe((function(t,n){var r=Se([t.styles],void 0,e.useContext(Te)),o=e.useRef();return _e((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),o.current=[t,i],function(){t.flush()}}),[n]),_e((function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ue(n,r.next,!0),t.tags.length){var i=t.tags[t.tags.length-1].nextElementSibling;t.before=i,t.flush()}n.insert("",r,t,!1)}}),[n,r.name]),null}));function Ne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Se(t)}var Be=function(){var e=Ne.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_"}}},Ve=n(4848),$e=String.raw,We=$e`
  :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;
    }
  }
`,Ue=()=>(0,Ve.jsx)(De,{styles:We}),He=({scope:e=""})=>(0,Ve.jsx)(De,{styles:$e`
      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;
      }

      ${We}
    `});function qe(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[Ye,Xe]=qe({strict:!1,name:"PortalManagerContext"});function Ge(e){const{children:t,zIndex:n}=e;return(0,Ve.jsx)(Ye,{value:{zIndex:n},children:t})}Ge.displayName="PortalManager";var Qe=(0,e.createContext)({});function Ke(){const t=(0,e.useContext)(Qe);if(void 0===t)throw new Error("useColorMode must be used within a ColorModeProvider");return t}function Ze(e,t){const{colorMode:n}=Ke();return"dark"===n?t:e}Qe.displayName="ColorModeContext";var Je=(...e)=>e.filter(Boolean).join(" ");function et(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function tt(e,...t){return nt(e)?e(...t):e}var nt=e=>"function"==typeof e,rt=e=>e?"":void 0,ot=e=>!!e||void 0;function it(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}var at=n(8394),lt=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,st=(e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),i=lt(r),a=e?`${e}.${i}`:i;let l=et(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return l=lt(l),o?`${l} !important`:l};function ut(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{var i;const a=st(t,e)(o);let l=null!=(i=null==n?void 0:n(a,o))?i:a;return r&&(l=r(l,o)),l}}var ct=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function dt(e,t){return n=>{const r={property:n,scale:e};return r.transform=ut({scale:e,transform:t}),r}}var ft=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,pt=["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))"],ht={"--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(" ")},mt={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,/*!*/ /*!*/)"},vt={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},gt={"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"},bt=new Set(Object.values(gt)),yt=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),xt=e=>e.trim(),wt=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),kt=e=>t=>`${e}(${t})`,St={filter:e=>"auto"!==e?e:ht,backdropFilter:e=>"auto"!==e?e:mt,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(", ")}}(St.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))",...pt].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...pt].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||yt.has(e))return e;if(!wt(e)&&!yt.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(xt).filter(Boolean);if(0===(null==l?void 0:l.length))return e;const s=a in gt?gt[a]:a;return l.unshift(s),`${i}(${l.map((e=>{if(bt.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],i=wt(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:kt("blur"),opacity:kt("opacity"),brightness:kt("brightness"),contrast:kt("contrast"),dropShadow:kt("drop-shadow"),grayscale:kt("grayscale"),hueRotate:e=>kt("hue-rotate")(St.degree(e)),invert:kt("invert"),saturate:kt("saturate"),sepia:kt("sepia"),bgImage:e=>null==e||wt(e)||yt.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=vt[e])?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},Et={borderWidths:dt("borderWidths"),borderStyles:dt("borderStyles"),colors:dt("colors"),borders:dt("borders"),gradients:dt("gradients",St.gradient),radii:dt("radii",St.px),space:dt("space",ct(St.vh,St.px)),spaceT:dt("space",ct(St.vh,St.px)),degreeT:e=>({property:e,transform:St.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:ut({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:dt("sizes",ct(St.vh,St.px)),sizesT:dt("sizes",ct(St.vh,St.fraction)),shadows:dt("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:ft(t),transform:n?ut({scale:n,compose:r}):r}},blur:dt("blur",St.blur)},Ct={background:Et.colors("background"),backgroundColor:Et.colors("backgroundColor"),backgroundImage:Et.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:St.bgClip},bgSize:Et.prop("backgroundSize"),bgPosition:Et.prop("backgroundPosition"),bg:Et.colors("background"),bgColor:Et.colors("backgroundColor"),bgPos:Et.prop("backgroundPosition"),bgRepeat:Et.prop("backgroundRepeat"),bgAttachment:Et.prop("backgroundAttachment"),bgGradient:Et.gradients("backgroundImage"),bgClip:{transform:St.bgClip}};Object.assign(Ct,{bgImage:Ct.backgroundImage,bgImg:Ct.backgroundImage});var _t={border:Et.borders("border"),borderWidth:Et.borderWidths("borderWidth"),borderStyle:Et.borderStyles("borderStyle"),borderColor:Et.colors("borderColor"),borderRadius:Et.radii("borderRadius"),borderTop:Et.borders("borderTop"),borderBlockStart:Et.borders("borderBlockStart"),borderTopLeftRadius:Et.radii("borderTopLeftRadius"),borderStartStartRadius:Et.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Et.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Et.radii("borderTopRightRadius"),borderStartEndRadius:Et.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Et.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Et.borders("borderRight"),borderInlineEnd:Et.borders("borderInlineEnd"),borderBottom:Et.borders("borderBottom"),borderBlockEnd:Et.borders("borderBlockEnd"),borderBottomLeftRadius:Et.radii("borderBottomLeftRadius"),borderBottomRightRadius:Et.radii("borderBottomRightRadius"),borderLeft:Et.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Et.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Et.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Et.borders(["borderLeft","borderRight"]),borderInline:Et.borders("borderInline"),borderY:Et.borders(["borderTop","borderBottom"]),borderBlock:Et.borders("borderBlock"),borderTopWidth:Et.borderWidths("borderTopWidth"),borderBlockStartWidth:Et.borderWidths("borderBlockStartWidth"),borderTopColor:Et.colors("borderTopColor"),borderBlockStartColor:Et.colors("borderBlockStartColor"),borderTopStyle:Et.borderStyles("borderTopStyle"),borderBlockStartStyle:Et.borderStyles("borderBlockStartStyle"),borderBottomWidth:Et.borderWidths("borderBottomWidth"),borderBlockEndWidth:Et.borderWidths("borderBlockEndWidth"),borderBottomColor:Et.colors("borderBottomColor"),borderBlockEndColor:Et.colors("borderBlockEndColor"),borderBottomStyle:Et.borderStyles("borderBottomStyle"),borderBlockEndStyle:Et.borderStyles("borderBlockEndStyle"),borderLeftWidth:Et.borderWidths("borderLeftWidth"),borderInlineStartWidth:Et.borderWidths("borderInlineStartWidth"),borderLeftColor:Et.colors("borderLeftColor"),borderInlineStartColor:Et.colors("borderInlineStartColor"),borderLeftStyle:Et.borderStyles("borderLeftStyle"),borderInlineStartStyle:Et.borderStyles("borderInlineStartStyle"),borderRightWidth:Et.borderWidths("borderRightWidth"),borderInlineEndWidth:Et.borderWidths("borderInlineEndWidth"),borderRightColor:Et.colors("borderRightColor"),borderInlineEndColor:Et.colors("borderInlineEndColor"),borderRightStyle:Et.borderStyles("borderRightStyle"),borderInlineEndStyle:Et.borderStyles("borderInlineEndStyle"),borderTopRadius:Et.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Et.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Et.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Et.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(_t,{rounded:_t.borderRadius,roundedTop:_t.borderTopRadius,roundedTopLeft:_t.borderTopLeftRadius,roundedTopRight:_t.borderTopRightRadius,roundedTopStart:_t.borderStartStartRadius,roundedTopEnd:_t.borderStartEndRadius,roundedBottom:_t.borderBottomRadius,roundedBottomLeft:_t.borderBottomLeftRadius,roundedBottomRight:_t.borderBottomRightRadius,roundedBottomStart:_t.borderEndStartRadius,roundedBottomEnd:_t.borderEndEndRadius,roundedLeft:_t.borderLeftRadius,roundedRight:_t.borderRightRadius,roundedStart:_t.borderInlineStartRadius,roundedEnd:_t.borderInlineEndRadius,borderStart:_t.borderInlineStart,borderEnd:_t.borderInlineEnd,borderTopStartRadius:_t.borderStartStartRadius,borderTopEndRadius:_t.borderStartEndRadius,borderBottomStartRadius:_t.borderEndStartRadius,borderBottomEndRadius:_t.borderEndEndRadius,borderStartRadius:_t.borderInlineStartRadius,borderEndRadius:_t.borderInlineEndRadius,borderStartWidth:_t.borderInlineStartWidth,borderEndWidth:_t.borderInlineEndWidth,borderStartColor:_t.borderInlineStartColor,borderEndColor:_t.borderInlineEndColor,borderStartStyle:_t.borderInlineStartStyle,borderEndStyle:_t.borderInlineEndStyle});var Ot={color:Et.colors("color"),textColor:Et.colors("color"),fill:Et.colors("fill"),stroke:Et.colors("stroke")},Pt={boxShadow:Et.shadows("boxShadow"),mixBlendMode:!0,blendMode:Et.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Et.prop("backgroundBlendMode"),opacity:!0};Object.assign(Pt,{shadow:Pt.boxShadow});var Tt={filter:{transform:St.filter},blur:Et.blur("--chakra-blur"),brightness:Et.propT("--chakra-brightness",St.brightness),contrast:Et.propT("--chakra-contrast",St.contrast),hueRotate:Et.propT("--chakra-hue-rotate",St.hueRotate),invert:Et.propT("--chakra-invert",St.invert),saturate:Et.propT("--chakra-saturate",St.saturate),dropShadow:Et.propT("--chakra-drop-shadow",St.dropShadow),backdropFilter:{transform:St.backdropFilter},backdropBlur:Et.blur("--chakra-backdrop-blur"),backdropBrightness:Et.propT("--chakra-backdrop-brightness",St.brightness),backdropContrast:Et.propT("--chakra-backdrop-contrast",St.contrast),backdropHueRotate:Et.propT("--chakra-backdrop-hue-rotate",St.hueRotate),backdropInvert:Et.propT("--chakra-backdrop-invert",St.invert),backdropSaturate:Et.propT("--chakra-backdrop-saturate",St.saturate)},At={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:St.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Et.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Et.space("gap"),rowGap:Et.space("rowGap"),columnGap:Et.space("columnGap")};Object.assign(At,{flexDir:At.flexDirection});var Rt={gridGap:Et.space("gridGap"),gridColumnGap:Et.space("gridColumnGap"),gridRowGap:Et.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},It={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:St.outline},outlineOffset:!0,outlineColor:Et.colors("outlineColor")},zt={width:Et.sizesT("width"),inlineSize:Et.sizesT("inlineSize"),height:Et.sizes("height"),blockSize:Et.sizes("blockSize"),boxSize:Et.sizes(["width","height"]),minWidth:Et.sizes("minWidth"),minInlineSize:Et.sizes("minInlineSize"),minHeight:Et.sizes("minHeight"),minBlockSize:Et.sizes("minBlockSize"),maxWidth:Et.sizes("maxWidth"),maxInlineSize:Et.sizes("maxInlineSize"),maxHeight:Et.sizes("maxHeight"),maxBlockSize:Et.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:Et.propT("float",St.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(zt,{w:zt.width,h:zt.height,minW:zt.minWidth,maxW:zt.maxWidth,minH:zt.minHeight,maxH:zt.maxHeight,overscroll:zt.overscrollBehavior,overscrollX:zt.overscrollBehaviorX,overscrollY:zt.overscrollBehaviorY});var jt={listStyleType:!0,listStylePosition:!0,listStylePos:Et.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Et.prop("listStyleImage")},Mt=(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})),Ft={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Lt={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Dt=(e,t,n)=>{const r={},o=Mt(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},Nt={srOnly:{transform:e=>!0===e?Ft:"focusable"===e?Lt:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>Dt(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Dt(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Dt(t,e,n)}},Bt={position:!0,pos:Et.prop("position"),zIndex:Et.prop("zIndex","zIndices"),inset:Et.spaceT("inset"),insetX:Et.spaceT(["left","right"]),insetInline:Et.spaceT("insetInline"),insetY:Et.spaceT(["top","bottom"]),insetBlock:Et.spaceT("insetBlock"),top:Et.spaceT("top"),insetBlockStart:Et.spaceT("insetBlockStart"),bottom:Et.spaceT("bottom"),insetBlockEnd:Et.spaceT("insetBlockEnd"),left:Et.spaceT("left"),insetInlineStart:Et.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Et.spaceT("right"),insetInlineEnd:Et.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Bt,{insetStart:Bt.insetInlineStart,insetEnd:Bt.insetInlineEnd});var Vt={ring:{transform:St.ring},ringColor:Et.colors("--chakra-ring-color"),ringOffset:Et.prop("--chakra-ring-offset-width"),ringOffsetColor:Et.colors("--chakra-ring-offset-color"),ringInset:Et.prop("--chakra-ring-inset")},$t={margin:Et.spaceT("margin"),marginTop:Et.spaceT("marginTop"),marginBlockStart:Et.spaceT("marginBlockStart"),marginRight:Et.spaceT("marginRight"),marginInlineEnd:Et.spaceT("marginInlineEnd"),marginBottom:Et.spaceT("marginBottom"),marginBlockEnd:Et.spaceT("marginBlockEnd"),marginLeft:Et.spaceT("marginLeft"),marginInlineStart:Et.spaceT("marginInlineStart"),marginX:Et.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Et.spaceT("marginInline"),marginY:Et.spaceT(["marginTop","marginBottom"]),marginBlock:Et.spaceT("marginBlock"),padding:Et.space("padding"),paddingTop:Et.space("paddingTop"),paddingBlockStart:Et.space("paddingBlockStart"),paddingRight:Et.space("paddingRight"),paddingBottom:Et.space("paddingBottom"),paddingBlockEnd:Et.space("paddingBlockEnd"),paddingLeft:Et.space("paddingLeft"),paddingInlineStart:Et.space("paddingInlineStart"),paddingInlineEnd:Et.space("paddingInlineEnd"),paddingX:Et.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Et.space("paddingInline"),paddingY:Et.space(["paddingTop","paddingBottom"]),paddingBlock:Et.space("paddingBlock")};Object.assign($t,{m:$t.margin,mt:$t.marginTop,mr:$t.marginRight,me:$t.marginInlineEnd,marginEnd:$t.marginInlineEnd,mb:$t.marginBottom,ml:$t.marginLeft,ms:$t.marginInlineStart,marginStart:$t.marginInlineStart,mx:$t.marginX,my:$t.marginY,p:$t.padding,pt:$t.paddingTop,py:$t.paddingY,px:$t.paddingX,pb:$t.paddingBottom,pl:$t.paddingLeft,ps:$t.paddingInlineStart,paddingStart:$t.paddingInlineStart,pr:$t.paddingRight,pe:$t.paddingInlineEnd,paddingEnd:$t.paddingInlineEnd});var Wt={textDecorationColor:Et.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Et.shadows("textShadow")},Ut={clipPath:!0,transform:Et.propT("transform",St.transform),transformOrigin:!0,translateX:Et.spaceT("--chakra-translate-x"),translateY:Et.spaceT("--chakra-translate-y"),skewX:Et.degreeT("--chakra-skew-x"),skewY:Et.degreeT("--chakra-skew-y"),scaleX:Et.prop("--chakra-scale-x"),scaleY:Et.prop("--chakra-scale-y"),scale:Et.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Et.degreeT("--chakra-rotate")},Ht={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Et.prop("transitionDuration","transition.duration"),transitionProperty:Et.prop("transitionProperty","transition.property"),transitionTimingFunction:Et.prop("transitionTimingFunction","transition.easing")},qt={fontFamily:Et.prop("fontFamily","fonts"),fontSize:Et.prop("fontSize","fontSizes",St.px),fontWeight:Et.prop("fontWeight","fontWeights"),lineHeight:Et.prop("lineHeight","lineHeights"),letterSpacing:Et.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"}},Yt={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Et.spaceT("scrollMargin"),scrollMarginTop:Et.spaceT("scrollMarginTop"),scrollMarginBottom:Et.spaceT("scrollMarginBottom"),scrollMarginLeft:Et.spaceT("scrollMarginLeft"),scrollMarginRight:Et.spaceT("scrollMarginRight"),scrollMarginX:Et.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Et.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Et.spaceT("scrollPadding"),scrollPaddingTop:Et.spaceT("scrollPaddingTop"),scrollPaddingBottom:Et.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Et.spaceT("scrollPaddingLeft"),scrollPaddingRight:Et.spaceT("scrollPaddingRight"),scrollPaddingX:Et.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Et.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Xt(e){return et(e)&&e.reference?e.reference:String(e)}var Gt=(e,...t)=>t.map(Xt).join(` ${e} `).replace(/calc/g,""),Qt=(...e)=>`calc(${Gt("+",...e)})`,Kt=(...e)=>`calc(${Gt("-",...e)})`,Zt=(...e)=>`calc(${Gt("*",...e)})`,Jt=(...e)=>`calc(${Gt("/",...e)})`,en=e=>{const t=Xt(e);return null==t||Number.isNaN(parseFloat(t))?Zt(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},tn=Object.assign((e=>({add:(...t)=>tn(Qt(e,...t)),subtract:(...t)=>tn(Kt(e,...t)),multiply:(...t)=>tn(Zt(e,...t)),divide:(...t)=>tn(Jt(e,...t)),negate:()=>tn(en(e)),toString:()=>e.toString()})),{add:Qt,subtract:Kt,multiply:Zt,divide:Jt,negate:en});function nn(e,t){return`var(${e}${t?`, ${t}`:""})`}function rn(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 on(e,t,n){const r=rn(e,n);return{variable:r,reference:nn(r,t)}}function an(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function ln(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 sn=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,un=e=>Object.fromEntries(Object.entries(e).sort(sn));function cn(e){const t=un(e);return Object.assign(Object.values(t),t)}function dn(e){var t;return e?"number"==typeof(e=null!=(t=ln(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,(e=>`${parseFloat(e)+-.02}`)):e}function fn(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${ln(e)})`),t&&n.push("and",`(max-width: ${ln(t)})`),n.join(" ")}function pn(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const n=cn(e),r=Object.entries(e).sort(sn).map((([e,t],n,r)=>{var o;let[,i]=null!=(o=r[n+1])?o:[];return i=parseFloat(i)>0?dn(i):void 0,{_minW:dn(t),breakpoint:e,minW:t,maxW:i,maxWQuery:fn(null,i),minWQuery:fn(t),minMaxQuery:fn(t,i)}})),o=function(e){const t=Object.keys(un(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:un(e),asArray:cn(e),details:r,get:e=>r.find((t=>t.breakpoint===e)),media:[null,...n.map((e=>fn(e))).slice(1)],toArrayValue(e){if(!et(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===an(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 hn=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,mn=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,vn=(e,t)=>`${e}:focus-visible ${t}`,gn=(e,t)=>`${e}:focus-within ${t}`,bn=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,yn=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,xn=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,wn=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,kn=e=>En((t=>e(t,"&")),"[role=group]","[data-group]",".group"),Sn=e=>En((t=>e(t,"~ &")),"[data-peer]",".peer"),En=(e,...t)=>t.map(e).join(", "),Cn={_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:kn(hn),_peerHover:Sn(hn),_groupFocus:kn(mn),_peerFocus:Sn(mn),_groupFocusVisible:kn(vn),_peerFocusVisible:Sn(vn),_groupActive:kn(bn),_peerActive:Sn(bn),_groupDisabled:kn(yn),_peerDisabled:Sn(yn),_groupInvalid:kn(xn),_peerInvalid:Sn(xn),_groupChecked:kn(wn),_peerChecked:Sn(wn),_groupFocusWithin:kn(gn),_peerFocusWithin:Sn(gn),_peerPlaceholderShown:Sn(((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]"},_n=Object.keys(Cn);function On(e,t){return on(String(e).replace(/\./g,"-"),void 0,t)}function Pn(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 Tn=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],An=e=>_n.includes(e)||"default"===e;var Rn=at({},Ct,_t,Ot,At,zt,Tt,Vt,It,Rt,Nt,Bt,Pt,$t,Yt,qt,Wt,Ut,jt,Ht),In=Object.assign({},$t,zt,At,Rt,Bt),zn=(Object.keys(In),[...Object.keys(Rn),..._n]),jn={...Rn,...Cn},Mn=e=>e in jn,Fn=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),Ln=(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 Dn=e=>t=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,i=!1)=>{var a,l,s;const u=tt(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=tt(e[a],t);if(null==l)continue;if(l=et(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=tt(c[e],r);e in n&&(e=n[e]),Fn(e,f)&&(f=Ln(r,f));let p=t[e];if(!0===p&&(p={property:e}),et(f)){d[e]=null!=(a=d[e])?a:{},d[e]=at({},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=tt(null==p?void 0:p.property,r);if(!i&&(null==p?void 0:p.static)){const e=tt(p.static,r);d=at({},d,e)}if(m&&Array.isArray(m))for(const e of m)d[e]=h;else m?"&"===m&&et(h)?d=at({},d,h):d[m]=h:et(h)?d=at({},d,h):d[e]=h}return d};return o}({theme:t,pseudos:Cn,configs:Rn})(e);function Nn(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function Bn(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function Vn(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 $n=(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 Wn(e,t){const n={};return Object.keys(e).forEach((r=>{const o=e[r];t(o,r,e)&&(n[r]=o)})),n}var Un=e=>Wn(e,(e=>null!=e));function Hn(e,...t){return"function"==typeof e?e(...t):e}function qn(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,Tn)}(n),o=function(e){return e.semanticTokens}(n),i=function({tokens:e,semanticTokens:t}){const n={};return Pn(e,((e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!1,value:e})})),Pn(t,((e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!0,value:e})}),{stop:e=>Object.keys(e).every(An)}),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}=On(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=tn.negate(l),c=tn.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}=On(r,null==t?void 0:t.cssVarPrefix);return i},d=et(l)?l:{default:l};n=at(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=Cn)?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:pn(n.breakpoints)}),n}(r)),[r]);return(0,Ve.jsxs)(Re,{theme:i,children:[(0,Ve.jsx)(Yn,{root:n}),o]})}function Yn({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,Ve.jsx)(De,{styles:e=>({[t]:e.__cssVars})})}var[Xn,Gn]=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 Qn(){const{colorMode:e}=Ke();return(0,Ve.jsx)(De,{styles:t=>{const n=Hn($n(t,"styles.global"),{theme:t,colorMode:e});if(n)return Dn(n)(t)}})}var Kn,Zn="chakra-ui-light",Jn="chakra-ui-dark",er="chakra-ui-color-mode",tr=(Kn=er,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(Kn)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(Kn,e)}catch(e){}}});var nr=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:e.useEffect,rr=()=>{};function or(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function ir(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:l=tr}=t,s="dark"===i?"dark":"light",[u,c]=(0,e.useState)((()=>or(l,s))),[d,f]=(0,e.useState)((()=>or(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?Jn:Zn),document.body.classList.remove(e?Zn:Jn)},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]);nr((()=>{"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?rr:y,setColorMode:n?rr:b,forced:void 0!==n})),[g,y,b,n]);return(0,Ve.jsx)(Qe.Provider,{value:x,children:r})}ir.displayName="ColorModeProvider";var ar=(0,e.createContext)({getDocument:()=>document,getWindow:()=>window});function lr(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,Ve.jsxs)(ar.Provider,{value:a,children:[n,l&&(0,Ve.jsx)("span",{id:"__chakra_env",hidden:!0,ref:i})]})}ar.displayName="EnvironmentContext",lr.displayName="EnvironmentProvider";var sr=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,Ve.jsx)(lr,{environment:l,disabled:u,children:t});return(0,Ve.jsx)(qn,{theme:a,cssVarsRoot:s,children:(0,Ve.jsxs)(ir,{colorModeManager:n,options:a.config,children:[i?(0,Ve.jsx)(He,{scope:o}):(0,Ve.jsx)(Ue,{}),!c&&(0,Ve.jsx)(Qn,{}),r?(0,Ve.jsx)(Ge,{zIndex:r,children:d}):d]})})},ur={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"}},cr={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"},dr={...cr,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"}},fr={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"}},...ur,sizes:dr,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:cr,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:pr,definePartsStyle:hr}=Nn(["stepper","step","title","description","indicator","separator","icon","number"]),mr=on("stepper-indicator-size"),vr=on("stepper-icon-size"),gr=on("stepper-title-font-size"),br=on("stepper-description-font-size"),yr=on("stepper-accent-color"),xr=hr((({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"},[yr.variable]:`colors.${e}.500`,_dark:{[yr.variable]:`colors.${e}.200`}},title:{fontSize:gr.reference,fontWeight:"medium"},description:{fontSize:br.reference,color:"chakra-subtle-text"},number:{fontSize:gr.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:vr.reference,height:vr.reference},indicator:{flexShrink:0,borderRadius:"full",width:mr.reference,height:mr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:yr.reference},"&[data-status=complete]":{bg:yr.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:yr.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${mr.reference} - 8px)`,top:`calc(${mr.reference} + 4px)`,insetStart:`calc(${mr.reference} / 2 - 1px)`}}}))),wr=pr({baseStyle:xr,sizes:{xs:hr({stepper:{[mr.variable]:"sizes.4",[vr.variable]:"sizes.3",[gr.variable]:"fontSizes.xs",[br.variable]:"fontSizes.xs"}}),sm:hr({stepper:{[mr.variable]:"sizes.6",[vr.variable]:"sizes.4",[gr.variable]:"fontSizes.sm",[br.variable]:"fontSizes.xs"}}),md:hr({stepper:{[mr.variable]:"sizes.8",[vr.variable]:"sizes.5",[gr.variable]:"fontSizes.md",[br.variable]:"fontSizes.sm"}}),lg:hr({stepper:{[mr.variable]:"sizes.10",[vr.variable]:"sizes.6",[gr.variable]:"fontSizes.lg",[br.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function kr(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 kr(e,t)},toPart:r,extend:function(...n){for(const e of n)e in t||(t[e]=r(e));return kr(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 Sr=kr("accordion").parts("root","container","button","panel").extend("icon"),Er=kr("alert").parts("title","description","container").extend("icon","spinner"),Cr=kr("avatar").parts("label","badge","container").extend("excessLabel","group"),_r=kr("breadcrumb").parts("link","item","container").extend("separator"),Or=(kr("button").parts(),kr("checkbox").parts("control","icon","container").extend("label")),Pr=(kr("progress").parts("track","filledTrack").extend("label"),kr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),Tr=kr("editable").parts("preview","input","textarea"),Ar=kr("form").parts("container","requiredIndicator","helperText"),Rr=kr("formError").parts("text","icon"),Ir=kr("input").parts("addon","field","element","group"),zr=kr("list").parts("container","item","icon"),jr=kr("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Mr=kr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Fr=kr("numberinput").parts("root","field","stepperGroup","stepper"),Lr=(kr("pininput").parts("field"),kr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),Dr=kr("progress").parts("label","filledTrack","track"),Nr=kr("radio").parts("container","control","label"),Br=kr("select").parts("field","icon"),Vr=kr("slider").parts("container","track","thumb","filledTrack","mark"),$r=kr("stat").parts("container","label","helpText","number","icon"),Wr=kr("switch").parts("container","track","thumb","label"),Ur=kr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Hr=kr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),qr=kr("tag").parts("container","label","closeButton"),Yr=kr("card").parts("container","header","body","footer");function Xr(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 Gr(e,t){return`var(${Xr(e)}${t?`, ${t}`:""})`}function Qr(e,t){const n=function(e,t=""){return`--${function(e,t=""){return[t,Xr(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:n,reference:Gr(n,(r=null==t?void 0:t.fallback,"string"==typeof r?r:null==r?void 0:r.reference))};var r}function Kr(e){return et(e)&&e.reference?e.reference:String(e)}kr("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var Zr=(e,...t)=>t.map(Kr).join(` ${e} `).replace(/calc/g,""),Jr=(...e)=>`calc(${Zr("+",...e)})`,eo=(...e)=>`calc(${Zr("-",...e)})`,to=(...e)=>`calc(${Zr("*",...e)})`,no=(...e)=>`calc(${Zr("/",...e)})`,ro=e=>{const t=Kr(e);return null==t||Number.isNaN(parseFloat(t))?to(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},oo=Object.assign((e=>({add:(...t)=>oo(Jr(e,...t)),subtract:(...t)=>oo(eo(e,...t)),multiply:(...t)=>oo(to(e,...t)),divide:(...t)=>oo(no(e,...t)),negate:()=>oo(ro(e)),toString:()=>e.toString()})),{add:Jr,subtract:eo,multiply:to,divide:no,negate:ro}),{defineMultiStyleConfig:io,definePartsStyle:ao}=Nn(Wr.keys),lo=Qr("switch-track-width"),so=Qr("switch-track-height"),uo=Qr("switch-track-diff"),co=oo.subtract(lo,so),fo=Qr("switch-thumb-x"),po=Qr("switch-bg"),ho=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[lo.reference],height:[so.reference],transitionProperty:"common",transitionDuration:"fast",[po.variable]:"colors.gray.300",_dark:{[po.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[po.variable]:`colors.${t}.500`,_dark:{[po.variable]:`colors.${t}.200`}},bg:po.reference}},mo={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[so.reference],height:[so.reference],_checked:{transform:`translateX(${fo.reference})`}},vo=io({baseStyle:ao((e=>({container:{[uo.variable]:co,[fo.variable]:uo.reference,_rtl:{[fo.variable]:oo(uo).negate().toString()}},track:ho(e),thumb:mo}))),sizes:{sm:ao({container:{[lo.variable]:"1.375rem",[so.variable]:"sizes.3"}}),md:ao({container:{[lo.variable]:"1.875rem",[so.variable]:"sizes.4"}}),lg:ao({container:{[lo.variable]:"2.875rem",[so.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function go(e,t){return n=>"dark"===n.colorMode?t:e}function bo(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}var{defineMultiStyleConfig:yo,definePartsStyle:xo}=Nn(Ur.keys),wo=xo({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"}}),ko={"&[data-is-numeric=true]":{textAlign:"end"}},So=xo((e=>{const{colorScheme:t}=e;return{th:{color:go("gray.600","gray.400")(e),borderBottom:"1px",borderColor:go(`${t}.100`,`${t}.700`)(e),...ko},td:{borderBottom:"1px",borderColor:go(`${t}.100`,`${t}.700`)(e),...ko},caption:{color:go("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),Eo=xo((e=>{const{colorScheme:t}=e;return{th:{color:go("gray.600","gray.400")(e),borderBottom:"1px",borderColor:go(`${t}.100`,`${t}.700`)(e),...ko},td:{borderBottom:"1px",borderColor:go(`${t}.100`,`${t}.700`)(e),...ko},caption:{color:go("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:go(`${t}.100`,`${t}.700`)(e)},td:{background:go(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),Co=yo({baseStyle:wo,variants:{simple:So,striped:Eo,unstyled:{}},sizes:{sm:xo({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:xo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:xo({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 _o(e,t,n){return Math.min(Math.max(e,n),t)}class Oo extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var Po=Oo;function To(e){if("string"!=typeof e)throw new Po(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=Lo.test(e)?function(e){const t=e.toLowerCase().trim(),n=Ro[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 Po(e);return`#${n}`}(e):e;const n=zo.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(Io(e,2),16))),parseInt(Io(e[3]||"f",2),16)/255]}const r=jo.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=Mo.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=Fo.exec(t);if(i){const[t,n,r,o]=Array.from(i).slice(1).map(parseFloat);if(_o(0,100,n)!==n)throw new Po(e);if(_o(0,100,r)!==r)throw new Po(e);return[...No(t,n,r),Number.isNaN(o)?1:o]}throw new Po(e)}const Ao=e=>parseInt(e.replace(/_/g,""),36),Ro="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=Ao(t.substring(0,3)),r=Ao(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e}),{}),Io=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),zo=new RegExp(`^#${Io("([a-f0-9])",3)}([a-f0-9])?$`,"i"),jo=new RegExp(`^#${Io("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Mo=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Io(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Fo=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Lo=/^[a-z]+$/i,Do=e=>Math.round(255*e),No=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(Do);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(Do)};function Bo(e,t){const[n,r,o,i]=To(e);return function(e,t,n,r){return`rgba(${_o(0,255,e).toFixed()}, ${_o(0,255,t).toFixed()}, ${_o(0,255,n).toFixed()}, ${parseFloat(_o(0,1,r).toFixed(3))})`}(n,r,o,i-t)}var Vo=(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]=To(e);let i=e=>{const t=_o(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"}},$o=(e,t)=>n=>Bo(Vo(n,e),1-t);function Wo(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 Uo=on("tabs-color"),Ho=on("tabs-bg"),qo=on("tabs-border-color"),{defineMultiStyleConfig:Yo,definePartsStyle:Xo}=Nn(Hr.keys),Go=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Qo=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}}},Ko=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},Zo={p:4},Jo=Xo((e=>({root:Go(e),tab:Qo(e),tablist:Ko(e),tabpanel:Zo}))),ei={sm:Xo({tab:{py:1,px:4,fontSize:"sm"}}),md:Xo({tab:{fontSize:"md",py:2,px:4}}),lg:Xo({tab:{fontSize:"lg",py:3,px:4}})},ti=Xo((e=>{const{colorScheme:t,orientation:n}=e,r="vertical"===n,o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Uo.variable]:`colors.${t}.600`,_dark:{[Uo.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ho.variable]:"colors.gray.200",_dark:{[Ho.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Uo.reference,bg:Ho.reference}}})),ni=Xo((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[qo.variable]:"transparent",_selected:{[Uo.variable]:`colors.${t}.600`,[qo.variable]:"colors.white",_dark:{[Uo.variable]:`colors.${t}.300`,[qo.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:qo.reference},color:Uo.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),ri=Xo((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ho.variable]:"colors.gray.50",_dark:{[Ho.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ho.variable]:"colors.white",[Uo.variable]:`colors.${t}.600`,_dark:{[Ho.variable]:"colors.gray.800",[Uo.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Uo.reference,bg:Ho.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),oi=Xo((e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Vo(n,`${t}.700`),bg:Vo(n,`${t}.100`)}}}})),ii=Xo((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Uo.variable]:"colors.gray.600",_dark:{[Uo.variable]:"inherit"},_selected:{[Uo.variable]:"colors.white",[Ho.variable]:`colors.${t}.600`,_dark:{[Uo.variable]:"colors.gray.800",[Ho.variable]:`colors.${t}.300`}},color:Uo.reference,bg:Ho.reference}}})),ai=Yo({baseStyle:Jo,sizes:ei,variants:{line:ti,enclosed:ni,"enclosed-colored":ri,"soft-rounded":oi,"solid-rounded":ii,unstyled:Xo({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),li=function(e){const t={};for(const n of["bg","color","shadow"])if(Array.isArray(n)){const[r,o]=n;t[r]=on(`${e}-${r}`,o)}else t[n]=on(`${e}-${n}`);return t}("badge"),si={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:li.bg.reference,color:li.color.reference,boxShadow:li.shadow.reference},variants:{solid:e=>{const{colorScheme:t,theme:n}=e,r=$o(`${t}.500`,.6)(n);return{[li.bg.variable]:`colors.${t}.500`,[li.color.variable]:"colors.white",_dark:{[li.bg.variable]:r,[li.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{const{colorScheme:t,theme:n}=e,r=$o(`${t}.200`,.16)(n);return{[li.bg.variable]:`colors.${t}.100`,[li.color.variable]:`colors.${t}.800`,_dark:{[li.bg.variable]:r,[li.color.variable]:`colors.${t}.200`}}},outline:e=>{const{colorScheme:t,theme:n}=e,r=$o(`${t}.200`,.8)(n);return{[li.color.variable]:`colors.${t}.500`,_dark:{[li.color.variable]:r},[li.shadow.variable]:`inset 0 0 0px 1px ${li.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:ui,definePartsStyle:ci}=Nn(qr.keys),di=on("tag-bg"),fi=on("tag-color"),pi=on("tag-shadow"),hi=on("tag-min-height"),mi=on("tag-min-width"),vi=on("tag-font-size"),gi=on("tag-padding-inline"),bi=ci({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[fi.variable]:li.color.reference,[di.variable]:li.bg.reference,[pi.variable]:li.shadow.reference,color:fi.reference,bg:di.reference,boxShadow:pi.reference,borderRadius:"md",minH:hi.reference,minW:mi.reference,fontSize:vi.reference,px:gi.reference,_focusVisible:{[pi.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}}}),yi={sm:ci({container:{[hi.variable]:"sizes.5",[mi.variable]:"sizes.5",[vi.variable]:"fontSizes.xs",[gi.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:ci({container:{[hi.variable]:"sizes.6",[mi.variable]:"sizes.6",[vi.variable]:"fontSizes.sm",[gi.variable]:"space.2"}}),lg:ci({container:{[hi.variable]:"sizes.8",[mi.variable]:"sizes.8",[vi.variable]:"fontSizes.md",[gi.variable]:"space.3"}})},xi={subtle:ci((e=>{var t;return{container:null==(t=si.variants)?void 0:t.subtle(e)}})),solid:ci((e=>{var t;return{container:null==(t=si.variants)?void 0:t.solid(e)}})),outline:ci((e=>{var t;return{container:null==(t=si.variants)?void 0:t.outline(e)}}))},wi=ui({variants:xi,baseStyle:bi,sizes:yi,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:ki,defineMultiStyleConfig:Si}=Nn(Ir.keys),Ei=on("input-height"),Ci=on("input-font-size"),_i=on("input-padding"),Oi=on("input-border-radius"),Pi=ki({addon:{height:Ei.reference,fontSize:Ci.reference,px:_i.reference,borderRadius:Oi.reference},field:{width:"100%",height:Ei.reference,fontSize:Ci.reference,px:_i.reference,borderRadius:Oi.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ti={lg:{[Ci.variable]:"fontSizes.lg",[_i.variable]:"space.4",[Oi.variable]:"radii.md",[Ei.variable]:"sizes.12"},md:{[Ci.variable]:"fontSizes.md",[_i.variable]:"space.4",[Oi.variable]:"radii.md",[Ei.variable]:"sizes.10"},sm:{[Ci.variable]:"fontSizes.sm",[_i.variable]:"space.3",[Oi.variable]:"radii.sm",[Ei.variable]:"sizes.8"},xs:{[Ci.variable]:"fontSizes.xs",[_i.variable]:"space.2",[Oi.variable]:"radii.sm",[Ei.variable]:"sizes.6"}},Ai={lg:ki({field:Ti.lg,group:Ti.lg}),md:ki({field:Ti.md,group:Ti.md}),sm:ki({field:Ti.sm,group:Ti.sm}),xs:ki({field:Ti.xs,group:Ti.xs})};function Ri(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||go("blue.500","blue.300")(e),errorBorderColor:n||go("red.500","red.300")(e)}}var Ii,zi,ji,Mi,Fi,Li,Di,Ni,Bi,Vi,$i,Wi=ki((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ri(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:go("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Vo(t,r),boxShadow:`0 0 0 1px ${Vo(t,r)}`},_focusVisible:{zIndex:1,borderColor:Vo(t,n),boxShadow:`0 0 0 1px ${Vo(t,n)}`}},addon:{border:"1px solid",borderColor:go("inherit","whiteAlpha.50")(e),bg:go("gray.100","whiteAlpha.300")(e)}}})),Ui=ki((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ri(e);return{field:{border:"2px solid",borderColor:"transparent",bg:go("gray.100","whiteAlpha.50")(e),_hover:{bg:go("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Vo(t,r)},_focusVisible:{bg:"transparent",borderColor:Vo(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:go("gray.100","whiteAlpha.50")(e)}}})),Hi=ki((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ri(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Vo(t,r),boxShadow:`0px 1px 0px 0px ${Vo(t,r)}`},_focusVisible:{borderColor:Vo(t,n),boxShadow:`0px 1px 0px 0px ${Vo(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),qi=Si({baseStyle:Pi,sizes:Ai,variants:{outline:Wi,filled:Ui,flushed:Hi,unstyled:ki({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Yi={...null==(Ii=qi.baseStyle)?void 0:Ii.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Xi={outline:e=>{var t,n;return null!=(n=null==(t=qi.variants)?void 0:t.outline(e).field)?n:{}},flushed:e=>{var t,n;return null!=(n=null==(t=qi.variants)?void 0:t.flushed(e).field)?n:{}},filled:e=>{var t,n;return null!=(n=null==(t=qi.variants)?void 0:t.filled(e).field)?n:{}},unstyled:null!=(ji=null==(zi=qi.variants)?void 0:zi.unstyled.field)?ji:{}},Gi={baseStyle:Yi,sizes:{xs:null!=(Fi=null==(Mi=qi.sizes)?void 0:Mi.xs.field)?Fi:{},sm:null!=(Di=null==(Li=qi.sizes)?void 0:Li.sm.field)?Di:{},md:null!=(Bi=null==(Ni=qi.sizes)?void 0:Ni.md.field)?Bi:{},lg:null!=($i=null==(Vi=qi.sizes)?void 0:Vi.lg.field)?$i:{}},variants:Xi,defaultProps:{size:"md",variant:"outline"}},Qi=Qr("tooltip-bg"),Ki=Qr("tooltip-fg"),Zi=Qr("popper-arrow-bg"),Ji={baseStyle:{bg:Qi.reference,color:Ki.reference,[Qi.variable]:"colors.gray.700",[Ki.variable]:"colors.whiteAlpha.900",_dark:{[Qi.variable]:"colors.gray.300",[Ki.variable]:"colors.gray.900"},[Zi.variable]:Qi.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:ea,definePartsStyle:ta}=Nn(Dr.keys),na=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=go(Wo(),Wo("1rem","rgba(0,0,0,0.1)"))(e),a=go(`${t}.500`,`${t}.200`)(e),l=`linear-gradient(\n    to right,\n    transparent 0%,\n    ${Vo(n,a)} 50%,\n    transparent 100%\n  )`;return{...!r&&o&&i,...r?{bgImage:l}:{bgColor:a}}},ra={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},oa=e=>({bg:go("gray.100","whiteAlpha.300")(e)}),ia=e=>({transitionProperty:"common",transitionDuration:"slow",...na(e)}),aa=ta((e=>({label:ra,filledTrack:ia(e),track:oa(e)}))),la=ea({sizes:{xs:ta({track:{h:"1"}}),sm:ta({track:{h:"2"}}),md:ta({track:{h:"3"}}),lg:ta({track:{h:"4"}})},baseStyle:aa,defaultProps:{size:"md",colorScheme:"blue"}});function sa(e,...t){return"function"==typeof e?e(...t):e}var ua,ca,da,fa,pa,ha,ma,va,ga,{definePartsStyle:ba,defineMultiStyleConfig:ya}=Nn(Or.keys),xa=on("checkbox-size"),wa=e=>{const{colorScheme:t}=e;return{w:xa.reference,h:xa.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:go(`${t}.500`,`${t}.200`)(e),borderColor:go(`${t}.500`,`${t}.200`)(e),color:go("white","gray.900")(e),_hover:{bg:go(`${t}.600`,`${t}.300`)(e),borderColor:go(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:go("gray.200","transparent")(e),bg:go("gray.200","whiteAlpha.300")(e),color:go("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:go(`${t}.500`,`${t}.200`)(e),borderColor:go(`${t}.500`,`${t}.200`)(e),color:go("white","gray.900")(e)},_disabled:{bg:go("gray.100","whiteAlpha.100")(e),borderColor:go("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:go("red.500","red.300")(e)}}},ka={_disabled:{cursor:"not-allowed"}},Sa={userSelect:"none",_disabled:{opacity:.4}},Ea={transitionProperty:"transform",transitionDuration:"normal"},Ca=ya({baseStyle:ba((e=>({icon:Ea,container:ka,control:sa(wa,e),label:Sa}))),sizes:{sm:ba({control:{[xa.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ba({control:{[xa.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ba({control:{[xa.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:_a,definePartsStyle:Oa}=Nn(Nr.keys),Pa=e=>{var t;const n=null==(t=sa(Ca.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"}}}},Ta=Oa((e=>{var t,n,r,o;return{label:null==(n=(t=Ca).baseStyle)?void 0:n.call(t,e).label,container:null==(o=(r=Ca).baseStyle)?void 0:o.call(r,e).container,control:Pa(e)}})),Aa=_a({baseStyle:Ta,sizes:{md:Oa({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Oa({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Oa({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ra,definePartsStyle:Ia}=Nn(Br.keys),za=on("select-bg"),ja={paddingInlineEnd:"8"},Ma=Ra({baseStyle:Ia({field:{...null==(ua=qi.baseStyle)?void 0:ua.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:za.reference,[za.variable]:"colors.white",_dark:{[za.variable]:"colors.gray.700"},"> option, > optgroup":{bg:za.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(ca=qi.sizes)?void 0:ca.lg,field:{...null==(da=qi.sizes)?void 0:da.lg.field,...ja}},md:{...null==(fa=qi.sizes)?void 0:fa.md,field:{...null==(pa=qi.sizes)?void 0:pa.md.field,...ja}},sm:{...null==(ha=qi.sizes)?void 0:ha.sm,field:{...null==(ma=qi.sizes)?void 0:ma.sm.field,...ja}},xs:{...null==(va=qi.sizes)?void 0:va.xs,field:{...null==(ga=qi.sizes)?void 0:ga.xs.field,...ja},icon:{insetEnd:"1"}}},variants:qi.variants,defaultProps:qi.defaultProps}),Fa=on("skeleton-start-color"),La=on("skeleton-end-color"),Da={baseStyle:{[Fa.variable]:"colors.gray.100",[La.variable]:"colors.gray.400",_dark:{[Fa.variable]:"colors.gray.800",[La.variable]:"colors.gray.600"},background:Fa.reference,borderColor:La.reference,opacity:.7,borderRadius:"sm"}},Na=on("skip-link-bg"),Ba={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Na.variable]:"colors.white",_dark:{[Na.variable]:"colors.gray.700"},bg:Na.reference}}},{defineMultiStyleConfig:Va,definePartsStyle:$a}=Nn(Vr.keys),Wa=on("slider-thumb-size"),Ua=on("slider-track-size"),Ha=on("slider-bg"),qa=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...bo({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Ya=e=>({...bo({orientation:e.orientation,horizontal:{h:Ua.reference},vertical:{w:Ua.reference}}),overflow:"hidden",borderRadius:"sm",[Ha.variable]:"colors.gray.200",_dark:{[Ha.variable]:"colors.whiteAlpha.200"},_disabled:{[Ha.variable]:"colors.gray.300",_dark:{[Ha.variable]:"colors.whiteAlpha.300"}},bg:Ha.reference}),Xa=e=>{const{orientation:t}=e;return{...bo({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:Wa.reference,h:Wa.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"}}},Ga=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ha.variable]:`colors.${t}.500`,_dark:{[Ha.variable]:`colors.${t}.200`},bg:Ha.reference}},Qa=Va({baseStyle:$a((e=>({container:qa(e),track:Ya(e),thumb:Xa(e),filledTrack:Ga(e)}))),sizes:{lg:$a({container:{[Wa.variable]:"sizes.4",[Ua.variable]:"sizes.1"}}),md:$a({container:{[Wa.variable]:"sizes.3.5",[Ua.variable]:"sizes.1"}}),sm:$a({container:{[Wa.variable]:"sizes.2.5",[Ua.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Ka=Qr("spinner-size"),Za={baseStyle:{width:[Ka.reference],height:[Ka.reference]},sizes:{xs:{[Ka.variable]:"sizes.3"},sm:{[Ka.variable]:"sizes.4"},md:{[Ka.variable]:"sizes.6"},lg:{[Ka.variable]:"sizes.8"},xl:{[Ka.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Ja,definePartsStyle:el}=Nn($r.keys),tl=Ja({baseStyle:el({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:el({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),nl=on("kbd-bg"),rl={baseStyle:{[nl.variable]:"colors.gray.100",_dark:{[nl.variable]:"colors.whiteAlpha.100"},bg:nl.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},{defineMultiStyleConfig:ol,definePartsStyle:il}=Nn(zr.keys),al=ol({baseStyle:il({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:ll,definePartsStyle:sl}=Nn(jr.keys),ul=on("menu-bg"),cl=on("menu-shadow"),dl=ll({baseStyle:sl({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[ul.variable]:"#fff",[cl.variable]:"shadows.sm",_dark:{[ul.variable]:"colors.gray.700",[cl.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:ul.reference,boxShadow:cl.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[ul.variable]:"colors.gray.100",_dark:{[ul.variable]:"colors.whiteAlpha.100"}},_active:{[ul.variable]:"colors.gray.200",_dark:{[ul.variable]:"colors.whiteAlpha.200"}},_expanded:{[ul.variable]:"colors.gray.100",_dark:{[ul.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:ul.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:fl,definePartsStyle:pl}=Nn(Mr.keys),hl=on("modal-bg"),ml=on("modal-shadow"),vl={bg:"blackAlpha.600",zIndex:"modal"},gl=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"}},bl=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,[hl.variable]:"colors.white",[ml.variable]:"shadows.lg",_dark:{[hl.variable]:"colors.gray.700",[ml.variable]:"shadows.dark-lg"},bg:hl.reference,boxShadow:ml.reference}},yl={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},xl={position:"absolute",top:"2",insetEnd:"3"},wl=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},kl={px:"6",py:"4"};function Sl(e){return pl("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var El=fl({baseStyle:pl((e=>({overlay:vl,dialogContainer:sa(gl,e),dialog:sa(bl,e),header:yl,closeButton:xl,body:sa(wl,e),footer:kl}))),sizes:{xs:Sl("xs"),sm:Sl("sm"),md:Sl("md"),lg:Sl("lg"),xl:Sl("xl"),"2xl":Sl("2xl"),"3xl":Sl("3xl"),"4xl":Sl("4xl"),"5xl":Sl("5xl"),"6xl":Sl("6xl"),full:Sl("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:Cl,definePartsStyle:_l}=Nn(Fr.keys),Ol=Qr("number-input-stepper-width"),Pl=Qr("number-input-input-padding"),Tl=oo(Ol).add("0.5rem").toString(),Al=Qr("number-input-bg"),Rl=Qr("number-input-color"),Il=Qr("number-input-border-color"),zl={[Ol.variable]:"sizes.6",[Pl.variable]:Tl},jl=e=>{var t,n;return null!=(n=null==(t=sa(qi.baseStyle,e))?void 0:t.field)?n:{}},Ml={width:Ol.reference},Fl={borderStart:"1px solid",borderStartColor:Il.reference,color:Rl.reference,bg:Al.reference,[Rl.variable]:"colors.chakra-body-text",[Il.variable]:"colors.chakra-border-color",_dark:{[Rl.variable]:"colors.whiteAlpha.800",[Il.variable]:"colors.whiteAlpha.300"},_active:{[Al.variable]:"colors.gray.200",_dark:{[Al.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Ll=_l((e=>{var t;return{root:zl,field:null!=(t=sa(jl,e))?t:{},stepperGroup:Ml,stepper:Fl}}));function Dl(e){var t,n,r;const o=null==(t=qi.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=ur.fontSizes[a];return _l({field:{...o.field,paddingInlineEnd:Pl.reference,verticalAlign:"top"},stepper:{fontSize:oo(l).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var Nl,Bl,Vl,$l=Cl({baseStyle:Ll,sizes:{xs:Dl("xs"),sm:Dl("sm"),md:Dl("md"),lg:Dl("lg")},variants:qi.variants,defaultProps:qi.defaultProps}),Wl={...null==(Nl=qi.baseStyle)?void 0:Nl.field,textAlign:"center"},Ul={outline:e=>{var t,n,r;return null!=(r=null==(n=sa(null==(t=qi.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}},flushed:e=>{var t,n,r;return null!=(r=null==(n=sa(null==(t=qi.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}},filled:e=>{var t,n,r;return null!=(r=null==(n=sa(null==(t=qi.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}},unstyled:null!=(Vl=null==(Bl=qi.variants)?void 0:Bl.unstyled.field)?Vl:{}},Hl={baseStyle:Wl,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:Ul,defaultProps:qi.defaultProps},{defineMultiStyleConfig:ql,definePartsStyle:Yl}=Nn(Lr.keys),Xl=Qr("popper-bg"),Gl=Qr("popper-arrow-bg"),Ql=Qr("popper-arrow-shadow-color"),Kl=ql({baseStyle:Yl({popper:{zIndex:10},content:{[Xl.variable]:"colors.white",bg:Xl.reference,[Gl.variable]:Xl.reference,[Ql.variable]:"colors.gray.200",_dark:{[Xl.variable]:"colors.gray.700",[Ql.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:Zl,defineMultiStyleConfig:Jl}=Nn(Pr.keys),es=on("drawer-bg"),ts=on("drawer-box-shadow");function ns(e){return Zl("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var rs={bg:"blackAlpha.600",zIndex:"modal"},os={display:"flex",zIndex:"modal",justifyContent:"center"},is=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[es.variable]:"colors.white",[ts.variable]:"shadows.lg",_dark:{[es.variable]:"colors.gray.700",[ts.variable]:"shadows.dark-lg"},bg:es.reference,boxShadow:ts.reference}},as={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},ls={position:"absolute",top:"2",insetEnd:"3"},ss={px:"6",py:"2",flex:"1",overflow:"auto"},us={px:"6",py:"4"},cs=Jl({baseStyle:Zl((e=>({overlay:rs,dialogContainer:os,dialog:sa(is,e),header:as,closeButton:ls,body:ss,footer:us}))),sizes:{xs:ns("xs"),sm:ns("md"),md:ns("lg"),lg:ns("2xl"),xl:ns("4xl"),full:ns("full")},defaultProps:{size:"xs"}}),{definePartsStyle:ds,defineMultiStyleConfig:fs}=Nn(Tr.keys),ps=fs({baseStyle:ds({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:hs,defineMultiStyleConfig:ms}=Nn(Ar.keys),vs=on("form-control-color"),gs=ms({baseStyle:hs({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference},helperText:{mt:"2",[vs.variable]:"colors.gray.600",_dark:{[vs.variable]:"colors.whiteAlpha.600"},color:vs.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:bs,defineMultiStyleConfig:ys}=Nn(Rr.keys),xs=on("form-error-color"),ws=ys({baseStyle:bs({text:{[xs.variable]:"colors.red.500",_dark:{[xs.variable]:"colors.red.300"},color:xs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[xs.variable]:"colors.red.500",_dark:{[xs.variable]:"colors.red.300"},color:xs.reference}})}),{defineMultiStyleConfig:ks,definePartsStyle:Ss}=Nn(_r.keys),Es=on("breadcrumb-link-decor"),Cs=ks({baseStyle:Ss({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Es.reference,[Es.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Es.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),_s=e=>{const{colorScheme:t,theme:n}=e;if("gray"===t)return{color:go("gray.800","whiteAlpha.900")(e),_hover:{bg:go("gray.100","whiteAlpha.200")(e)},_active:{bg:go("gray.200","whiteAlpha.300")(e)}};const r=$o(`${t}.200`,.12)(n),o=$o(`${t}.200`,.24)(n);return{color:go(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:go(`${t}.50`,r)(e)},_active:{bg:go(`${t}.100`,o)(e)}}},Os={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Ps={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:_s,outline:e=>{const{colorScheme:t}=e,n=go("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"},...sa(_s,e)}},solid:e=>{var t;const{colorScheme:n}=e;if("gray"===n){const t=go("gray.100","whiteAlpha.200")(e);return{bg:t,color:go("gray.800","whiteAlpha.900")(e),_hover:{bg:go("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:go("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:a=`${n}.700`}=null!=(t=Os[n])?t:{},l=go(r,`${n}.200`)(e);return{bg:l,color:go(o,"gray.800")(e),_hover:{bg:go(i,`${n}.300`)(e),_disabled:{bg:l}},_active:{bg:go(a,`${n}.400`)(e)}}},link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:go(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:go(`${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:Ts,defineMultiStyleConfig:As}=Nn(Yr.keys),Rs=on("card-bg"),Is=on("card-padding"),zs=on("card-shadow"),js=on("card-radius"),Ms=on("card-border-width","0"),Fs=on("card-border-color"),Ls=Ts({container:{[Rs.variable]:"colors.chakra-body-bg",backgroundColor:Rs.reference,boxShadow:zs.reference,borderRadius:js.reference,color:"chakra-body-text",borderWidth:Ms.reference,borderColor:Fs.reference},body:{padding:Is.reference,flex:"1 1 0%"},header:{padding:Is.reference},footer:{padding:Is.reference}}),Ds={sm:Ts({container:{[js.variable]:"radii.base",[Is.variable]:"space.3"}}),md:Ts({container:{[js.variable]:"radii.md",[Is.variable]:"space.5"}}),lg:Ts({container:{[js.variable]:"radii.xl",[Is.variable]:"space.7"}})},Ns=As({baseStyle:Ls,variants:{elevated:Ts({container:{[zs.variable]:"shadows.base",_dark:{[Rs.variable]:"colors.gray.700"}}}),outline:Ts({container:{[Ms.variable]:"1px",[Fs.variable]:"colors.chakra-border-color"}}),filled:Ts({container:{[Rs.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Is.variable]:0},header:{[Is.variable]:0},footer:{[Is.variable]:0}}},sizes:Ds,defaultProps:{variant:"elevated",size:"md"}}),Bs=Qr("close-button-size"),Vs=Qr("close-button-bg"),$s={baseStyle:{w:[Bs.reference],h:[Bs.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Vs.variable]:"colors.blackAlpha.100",_dark:{[Vs.variable]:"colors.whiteAlpha.100"}},_active:{[Vs.variable]:"colors.blackAlpha.200",_dark:{[Vs.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Vs.reference},sizes:{lg:{[Bs.variable]:"sizes.10",fontSize:"md"},md:{[Bs.variable]:"sizes.8",fontSize:"xs"},sm:{[Bs.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:Ws,defaultProps:Us}=si,Hs={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:li.bg.reference,color:li.color.reference,boxShadow:li.shadow.reference},variants:Ws,defaultProps:Us},{definePartsStyle:qs,defineMultiStyleConfig:Ys}=Nn(Sr.keys),Xs=Ys({baseStyle:qs({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:Gs,defineMultiStyleConfig:Qs}=Nn(Er.keys),Ks=on("alert-fg"),Zs=on("alert-bg"),Js=Gs({container:{bg:Zs.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ks.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ks.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function eu(e){const{theme:t,colorScheme:n}=e;return{light:`colors.${n}.100`,dark:$o(`${n}.200`,.16)(t)}}var tu=Gs((e=>{const{colorScheme:t}=e,n=eu(e);return{container:{[Ks.variable]:`colors.${t}.600`,[Zs.variable]:n.light,_dark:{[Ks.variable]:`colors.${t}.200`,[Zs.variable]:n.dark}}}})),nu=Gs((e=>{const{colorScheme:t}=e,n=eu(e);return{container:{[Ks.variable]:`colors.${t}.600`,[Zs.variable]:n.light,_dark:{[Ks.variable]:`colors.${t}.200`,[Zs.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ks.reference}}})),ru=Gs((e=>{const{colorScheme:t}=e,n=eu(e);return{container:{[Ks.variable]:`colors.${t}.600`,[Zs.variable]:n.light,_dark:{[Ks.variable]:`colors.${t}.200`,[Zs.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ks.reference}}})),ou=Gs((e=>{const{colorScheme:t}=e;return{container:{[Ks.variable]:"colors.white",[Zs.variable]:`colors.${t}.600`,_dark:{[Ks.variable]:"colors.gray.900",[Zs.variable]:`colors.${t}.200`},color:Ks.reference}}})),iu=Qs({baseStyle:Js,variants:{subtle:tu,"left-accent":nu,"top-accent":ru,solid:ou},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:au,defineMultiStyleConfig:lu}=Nn(Cr.keys),su=on("avatar-border-color"),uu=on("avatar-bg"),cu=on("avatar-font-size"),du=on("avatar-size"),fu={borderRadius:"full",border:"0.2em solid",borderColor:su.reference,[su.variable]:"white",_dark:{[su.variable]:"colors.gray.800"}},pu={bg:uu.reference,fontSize:cu.reference,width:du.reference,height:du.reference,lineHeight:"1",[uu.variable]:"colors.gray.200",_dark:{[uu.variable]:"colors.whiteAlpha.400"}},hu=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]=To(e);return(299*t+587*n+114*r)/1e3})(Vo(t,e));return n<128?"dark":"light"})(e)(t))(r)(n);let i="white";return o||(i="gray.800"),{bg:uu.reference,fontSize:cu.reference,color:i,borderColor:su.reference,verticalAlign:"top",width:du.reference,height:du.reference,"&:not([data-loaded])":{[uu.variable]:r},[su.variable]:"colors.white",_dark:{[su.variable]:"colors.gray.800"}}},mu={fontSize:cu.reference,lineHeight:"1"};function vu(e){const t="100%"!==e?dr[e]:void 0;return au({container:{[du.variable]:null!=t?t:e,[cu.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[du.variable]:null!=t?t:e,[cu.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var gu={Accordion:Xs,Alert:iu,Avatar:lu({baseStyle:au((e=>({badge:sa(fu,e),excessLabel:sa(pu,e),container:sa(hu,e),label:mu}))),sizes:{"2xs":vu(4),xs:vu(6),sm:vu(8),md:vu(12),lg:vu(16),xl:vu(24),"2xl":vu(32),full:vu("100%")},defaultProps:{size:"md"}}),Badge:si,Breadcrumb:Cs,Button:Ps,Checkbox:Ca,CloseButton:$s,Code:Hs,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:cs,Editable:ps,Form:gs,FormError:ws,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:qi,Kbd:rl,Link:{baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},List:al,Menu:dl,Modal:El,NumberInput:$l,PinInput:Hl,Popover:Kl,Progress:la,Radio:Aa,Select:Ma,Skeleton:Da,SkipLink:Ba,Slider:Qa,Spinner:Za,Stat:tl,Switch:vo,Table:Co,Tabs:ai,Tag:wi,Textarea:Gi,Tooltip:Ji,Card:Ns,Stepper:wr},bu={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"}}},yu={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"}}},xu={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},wu={semanticTokens:bu,direction:"ltr",...fr,components:gu,styles:yu,config:xu},ku={semanticTokens:bu,direction:"ltr",components:{},...fr,styles:yu,config:xu},Su=(e,t)=>e.find((e=>e.id===t));function Eu(e,t){const n=Cu(e,t);return{position:n,index:n?e[n].findIndex((e=>e.id===t)):-1}}function Cu(e,t){for(const[n,r]of Object.entries(e))if(Su(r,t))return n}function _u(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 Ou(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 Pu(t,n){const r=(0,e.useRef)(!1),o=(0,e.useRef)(!1);(0,e.useEffect)((()=>{if(r.current&&o.current)return t();o.current=!0}),n),(0,e.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])}var Tu=(0,e.createContext)(null);function Au(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}function Ru(){var t=(0,e.useContext)(Tu);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,o=t.register,i=ju();return(0,e.useEffect)((function(){return o(i)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}var Iu=0,zu=function(){return Iu++},ju=function(){return Au(zu)},Mu=function(e,t){return Mu=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])},Mu(e,t)};function Fu(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}Mu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Lu=function(){return Lu=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},Lu.apply(this,arguments)};function Du(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 Nu(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 Bu(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 Vu=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},$u={measureLayout:Vu(["layout","layoutId","drag"]),animation:Vu(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Vu(["exit"]),drag:Vu(["drag","dragControls"]),focus:Vu(["whileFocus"]),hover:Vu(["whileHover","onHoverStart","onHoverEnd"]),tap:Vu(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Vu(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Vu(["whileInView","onViewportEnter","onViewportLeave"])},Wu=(0,e.createContext)({strict:!1}),Uu=Object.keys($u),Hu=Uu.length,qu=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),Yu=(0,e.createContext)({}),Xu="undefined"!=typeof window,Gu=Xu?e.useLayoutEffect:e.useEffect;function Qu(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ku(e){return Array.isArray(e)}function Zu(e){return"string"==typeof e||Ku(e)}function Ju(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 ec(e,t,n){var r=e.getProps();return Ju(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 tc(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Zu(e.initial)||Zu(e.animate)||Zu(e.whileHover)||Zu(e.whileDrag)||Zu(e.whileTap)||Zu(e.whileFocus)||Zu(e.exit)}function nc(e){return Boolean(tc(e)||e.variants)}function rc(e){return Array.isArray(e)?e.join(" "):e}const oc=1/60*1e3,ic="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ac="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(ic())),oc);let lc=!0,sc=!1,uc=!1;const cc={delta:0,timestamp:0},dc=["read","update","preRender","render","postRender"],fc=dc.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}((()=>sc=!0)),e)),{}),pc=dc.reduce(((e,t)=>{const n=fc[t];return e[t]=(e,t=!1,r=!1)=>(sc||bc(),n.schedule(e,t,r)),e}),{}),hc=dc.reduce(((e,t)=>(e[t]=fc[t].cancel,e)),{}),mc=dc.reduce(((e,t)=>(e[t]=()=>fc[t].process(cc),e)),{}),vc=e=>fc[e].process(cc),gc=e=>{sc=!1,cc.delta=lc?oc:Math.max(Math.min(e-cc.timestamp,40),1),cc.timestamp=e,uc=!0,dc.forEach(vc),uc=!1,sc&&(lc=!1,ac(gc))},bc=()=>{sc=!0,lc=!0,uc||ac(gc)},yc=()=>cc,xc=pc,wc=(e,t,n)=>-n*e+n*t+e;function kc(e,t){return t?e*(1e3/t):0}function Sc(e,t){-1===e.indexOf(t)&&e.push(t)}function Ec(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Cc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Sc(this.subscriptions,e),function(){return Ec(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}(),_c=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Cc,this.velocityUpdateSubscribers=new Cc,this.renderSubscribers=new Cc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=yc(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,xc.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 xc.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?kc(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 Oc(e){return new _c(e)}var Pc=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Tc=function(){},Ac=function(){};const Rc=(e,t,n)=>Math.min(Math.max(n,e),t),Ic=.001,zc=.01,jc=10,Mc=.05,Fc=1;const Lc=12;function Dc(e,t){return e*Math.sqrt(1-t*t)}const Nc=["duration","bounce"],Bc=["stiffness","damping","mass"];function Vc(e,t){return t.some((t=>void 0!==e[t]))}function $c(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Du(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(!Vc(e,Bc)&&Vc(e,Nc)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Tc(e<=1e3*jc,"Spring duration must be 10 seconds or less");let a=1-t;a=Rc(Mc,Fc,a),e=Rc(zc,jc,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,l=Dc(t,a),s=Math.exp(-o);return Ic-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=Dc(Math.pow(t,2),a);return(-o(t)+Ic>0?-1:1)*((i-l)*s)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-Ic,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const l=function(e,t,n){let r=n;for(let n=1;n<Lc;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=Wc,h=Wc;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=Dc(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()}}}$c.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Wc=e=>0,Uc=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Hc=(e,t)=>n=>Math.max(Math.min(n,t),e),qc=e=>e%1?Number(e.toFixed(5)):e,Yc=/(-)?([\d]*\.?[\d])+/g,Xc=/(#[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,Gc=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Qc(e){return"string"==typeof e}const Kc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Zc=Object.assign(Object.assign({},Kc),{transform:Hc(0,1)}),Jc=Object.assign(Object.assign({},Kc),{default:1}),ed=(e,t)=>n=>Boolean(Qc(n)&&Gc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),td=(e,t,n)=>r=>{if(!Qc(r))return r;const[o,i,a,l]=r.match(Yc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},nd=Hc(0,255),rd=Object.assign(Object.assign({},Kc),{transform:e=>Math.round(nd(e))}),od={test:ed("rgb","red"),parse:td("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+rd.transform(e)+", "+rd.transform(t)+", "+rd.transform(n)+", "+qc(Zc.transform(r))+")"},id={test:ed("#"),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:od.transform},ad=e=>({test:t=>Qc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ld=ad("deg"),sd=ad("%"),ud=ad("px"),cd=ad("vh"),dd=ad("vw"),fd=Object.assign(Object.assign({},sd),{parse:e=>sd.parse(e)/100,transform:e=>sd.transform(100*e)}),pd={test:ed("hsl","hue"),parse:td("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sd.transform(qc(t))+", "+sd.transform(qc(n))+", "+qc(Zc.transform(r))+")"};function hd(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 md({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=hd(l,r,e+1/3),i=hd(l,r,e),a=hd(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 vd=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},gd=[id,od,pd],bd=e=>gd.find((t=>t.test(e))),yd=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,xd=(e,t)=>{let n=bd(e),r=bd(t);Ac(!!n,yd(e)),Ac(!!r,yd(t));let o=n.parse(e),i=r.parse(t);n===pd&&(o=md(o),n=od),r===pd&&(i=md(i),r=od);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=vd(o[t],i[t],e));return a.alpha=wc(o.alpha,i.alpha,e),n.transform(a)}},wd={test:e=>od.test(e)||id.test(e)||pd.test(e),parse:e=>od.test(e)?od.parse(e):pd.test(e)?pd.parse(e):id.parse(e),transform:e=>Qc(e)?e:e.hasOwnProperty("red")?od.transform(e):pd.transform(e)},kd="${c}",Sd="${n}";function Ed(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Xc);r&&(n=r.length,e=e.replace(Xc,kd),t.push(...r.map(wd.parse)));const o=e.match(Yc);return o&&(e=e.replace(Yc,Sd),t.push(...o.map(Kc.parse))),{values:t,numColors:n,tokenised:e}}function Cd(e){return Ed(e).values}function _d(e){const{values:t,numColors:n,tokenised:r}=Ed(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?kd:Sd,r<n?wd.transform(e[r]):qc(e[r]));return t}}const Od=e=>"number"==typeof e?0:e,Pd={test:function(e){var t,n,r,o;return isNaN(e)&&Qc(e)&&(null!==(n=null===(t=e.match(Yc))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Xc))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Cd,createTransformer:_d,getAnimatableNone:function(e){const t=Cd(e);return _d(e)(t.map(Od))}},Td=e=>"number"==typeof e,Ad=(e,t)=>n=>t(e(n)),Rd=(...e)=>e.reduce(Ad);function Id(e,t){return Td(e)?n=>wc(e,t,n):wd.test(e)?xd(e,t):Fd(e,t)}const zd=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Id(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},jd=(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]=Id(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Md(e){const t=Pd.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 Fd=(e,t)=>{const n=Pd.createTransformer(t),r=Md(e),o=Md(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Rd(zd(r.parsed,o.parsed),n):(Tc(!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}`)},Ld=(e,t)=>n=>wc(e,t,n);function Dd(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;Ac(i===t.length,"Both input and output ranges must be the same length"),Ac(!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])?Ld:"string"==typeof i?wd.test(i)?xd:Fd:Array.isArray(i)?zd:"object"==typeof i?jd: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=Rd(e,i)}r.push(i)}return r}(t,r,o),l=2===i?function([e,t],[n]){return r=>n(Uc(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=Uc(e[i],e[i+1],o);return t[i](l)}}(e,a);return n?t=>l(Rc(e[0],e[i-1],t)):l}const Nd=e=>t=>1-e(1-t),Bd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vd=e=>t=>t*t*((e+1)*t-e),$d=4/11,Wd=8/11,Ud=e=>e,Hd=e=>Math.pow(e,2);const qd=Nd(Hd),Yd=Bd(Hd),Xd=e=>1-Math.sin(Math.acos(e)),Gd=Nd(Xd),Qd=Bd(Gd),Kd=Vd(1.525),Zd=Nd(Kd),Jd=Bd(Kd),ef=(()=>{const e=Vd(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),tf=4356/361,nf=35442/1805,rf=16061/1805,of=e=>{if(1===e||0===e)return e;const t=e*e;return e<$d?7.5625*t:e<Wd?9.075*t-9.9*e+3.4:e<.9?tf*t-nf*e+rf:10.8*e*e-20.52*e+10.72},af=Nd(of);function lf(e,t){return e.map((()=>t||Yd)).splice(0,e.length-1)}function sf({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 Dd(l,a,{ease:Array.isArray(n)?n:lf(a,n)})}let u=s();return{next:e=>(i.value=u(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),u=s()}}}const uf={keyframes:sf,spring:$c,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:()=>{}}}},cf=1/60*1e3,df="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ff="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(df())),cf);let pf=!0,hf=!1,mf=!1;const vf={delta:0,timestamp:0},gf=["read","update","preRender","render","postRender"],bf=gf.reduce(((e,t)=>(e[t]=function(){let e=[],t=[],n=0,r=!1,o=!1;const i=new WeakSet,a={schedule:(o,a=!1,l=!1)=>{const s=l&&r,u=s?e:t;return a&&i.add(o),-1===u.indexOf(o)&&(u.push(o),s&&r&&(n=e.length)),o},cancel:e=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1),i.delete(e)},process:l=>{if(r)o=!0;else{if(r=!0,[e,t]=[t,e],t.length=0,n=e.length,n)for(let t=0;t<n;t++){const n=e[t];n(l),i.has(n)&&(a.schedule(n),hf=!0)}r=!1,o&&(o=!1,a.process(l))}}};return a}(),e)),{}),yf=gf.reduce(((e,t)=>{const n=bf[t];return e[t]=(e,t=!1,r=!1)=>(hf||Sf(),n.schedule(e,t,r)),e}),{}),xf=gf.reduce(((e,t)=>(e[t]=bf[t].cancel,e)),{}),wf=(gf.reduce(((e,t)=>(e[t]=()=>bf[t].process(vf),e)),{}),e=>bf[e].process(vf)),kf=e=>{hf=!1,vf.delta=pf?cf:Math.max(Math.min(e-vf.timestamp,40),1),vf.timestamp=e,mf=!0,gf.forEach(wf),mf=!1,hf&&(pf=!1,ff(kf))},Sf=()=>{hf=!0,pf=!0,mf||ff(kf)},Ef=()=>vf,Cf=yf;function _f(e,t,n=0){return e-t-n}const Of=e=>{const t=({delta:t})=>e(t);return{start:()=>Cf.update(t,!0),stop:()=>xf.update(t)}};function Pf(e){var t,n,{from:r,autoplay:o=!0,driver:i=Of,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,m=Du(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 sf;if(uf[e.type])return uf[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?sf:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?$c:sf}(m);(null===(n=(t=E).needsInterpolation)||void 0===n?void 0:n.call(t,r,y))&&(b=Dd([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?_f(t+-e,t,n):t-(e-t)+n}(a,w,u,S)):(a=_f(a,w,u),"mirror"===s&&C.flipTarget()),k=!1,p&&p()):(v.stop(),f&&f()))})),v.start()),{stop:()=>{null==d||d(),v.stop()}}}var Tf=function(e){return 1e3*e};const Af=(e,t)=>1-3*t+3*e,Rf=(e,t)=>3*t-6*e,If=e=>3*e,zf=(e,t,n)=>((Af(t,n)*e+Rf(t,n))*e+If(t))*e,jf=(e,t,n)=>3*Af(t,n)*e*e+2*Rf(t,n)*e+If(t),Mf=.1;function Ff(e,t,n,r){if(e===t&&n===r)return Ud;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=zf(t*Mf,e,n);return i=>0===i||1===i?i:zf(function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=Mf;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*Mf,l=jf(a,e,n);return l>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=jf(t,n,r);if(0===o)return t;t-=(zf(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=zf(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++l<10);return a}(t,r,r+Mf,e,n)}(i),t,r)}var Lf={linear:Ud,easeIn:Hd,easeInOut:Yd,easeOut:qd,circIn:Xd,circInOut:Qd,circOut:Gd,backIn:Kd,backInOut:Jd,backOut:Zd,anticipate:ef,bounceIn:af,bounceInOut:e=>e<.5?.5*(1-of(1-2*e)):.5*of(2*e-1)+.5,bounceOut:of},Df=function(e){if(Array.isArray(e)){Ac(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Nu(e,4);return Ff(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Ac(void 0!==Lf[e],"Invalid easing type '".concat(e,"'")),Lf[e]):e},Nf=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},Bf=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Pd.test(t)||t.startsWith("url(")))},Vf=function(e){return Array.isArray(e)},$f=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Wf=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Uf=function(){return{type:"keyframes",ease:"linear",duration:.3}},Hf=function(e){return{type:"keyframes",duration:.8,values:e}},qf={x:$f,y:$f,z:$f,rotate:$f,rotateX:$f,rotateY:$f,rotateZ:$f,scaleX:Wf,scaleY:Wf,scale:Wf,opacity:Uf,backgroundColor:Uf,color:Uf,default:Wf},Yf=function(e,t){var n;return n=Vf(t)?Hf:qf[e]||qf.default,Lu({to:t},n(t))};const Xf=new Set(["brightness","contrast","saturate","opacity"]);function Gf(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Yc)||[];if(!r)return e;const o=n.replace(r,"");let i=Xf.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Qf=/([a-z-]*)\(.*?\)/g,Kf=Object.assign(Object.assign({},Pd),{getAnimatableNone:e=>{const t=e.match(Qf);return t?t.map(Gf).join(" "):e}});var Zf=Lu(Lu({},Kc),{transform:Math.round}),Jf={borderWidth:ud,borderTopWidth:ud,borderRightWidth:ud,borderBottomWidth:ud,borderLeftWidth:ud,borderRadius:ud,radius:ud,borderTopLeftRadius:ud,borderTopRightRadius:ud,borderBottomRightRadius:ud,borderBottomLeftRadius:ud,width:ud,maxWidth:ud,height:ud,maxHeight:ud,size:ud,top:ud,right:ud,bottom:ud,left:ud,padding:ud,paddingTop:ud,paddingRight:ud,paddingBottom:ud,paddingLeft:ud,margin:ud,marginTop:ud,marginRight:ud,marginBottom:ud,marginLeft:ud,rotate:ld,rotateX:ld,rotateY:ld,rotateZ:ld,scale:Jc,scaleX:Jc,scaleY:Jc,scaleZ:Jc,skew:ld,skewX:ld,skewY:ld,distance:ud,translateX:ud,translateY:ud,translateZ:ud,x:ud,y:ud,z:ud,perspective:ud,transformPerspective:ud,opacity:Zc,originX:fd,originY:fd,originZ:ud,zIndex:Zf,fillOpacity:Zc,strokeOpacity:Zc,numOctaves:Zf},ep=Lu(Lu({},Jf),{color:wd,backgroundColor:wd,outlineColor:wd,fill:wd,stroke:wd,borderColor:wd,borderTopColor:wd,borderRightColor:wd,borderBottomColor:wd,borderLeftColor:wd,filter:Kf,WebkitFilter:Kf}),tp=function(e){return ep[e]};function np(e,t){var n,r=tp(e);return r!==Kf&&(r=Pd),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var rp={current:!1},op=function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)},ip=function(e){return Vf(e)?e[e.length-1]||0:e},ap=!1;function lp(e,t,n,r,o){var i,a=cp(r,e),l=null!==(i=a.from)&&void 0!==i?i:t.get(),s=Bf(e,n);"none"===l&&s&&"string"==typeof n?l=np(e,n):sp(l)&&"string"==typeof n?l=up(n):!Array.isArray(n)&&sp(n)&&"string"==typeof l&&(n=up(l));var u=Bf(e,l);return Tc(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=Pf(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=kc(e-c,Ef().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()}}(Lu(Lu({},r),a)):Pf(Lu(Lu({},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=Bu([],Nu(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=Du(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Lu(Lu({},e),Yf(n,t.to))),Lu(Lu({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=Du(e,["ease","times","yoyo","flip","loop"]),l=Lu({},a);return n&&(l.offset=n),a.duration&&(l.duration=Tf(a.duration)),a.repeatDelay&&(l.repeatDelay=Tf(a.repeatDelay)),t&&(l.ease=Nf(t)?t.map(Df):Df(t)),"tween"===a.type&&(l.type="keyframes"),(r||i||o)&&(Tc(!ap,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),ap=!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=ip(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 sp(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function up(e){return"number"==typeof e?0:np("",e)}function cp(e,t){return e[t]||e.default||e}function dp(e,t,n,r){return void 0===r&&(r={}),rp.current&&(r={type:!1}),t.start((function(o){var i,a,l=lp(e,t,n,r,o),s=function(e,t){var n,r;return null!==(r=null!==(n=(cp(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,Tf(s)):u(),function(){clearTimeout(i),null==a||a.stop()}}))}var fp=["TopLeft","TopRight","BottomLeft","BottomRight"],pp=fp.length,hp=function(e){return"string"==typeof e?parseFloat(e):e},mp=function(e){return"number"==typeof e||ud.test(e)};function vp(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var gp=yp(0,.5,Gd),bp=yp(.5,.95,Ud);function yp(e,t,n){return function(r){return r<e?0:r>t?1:n(Uc(e,t,r))}}function xp(e,t){e.min=t.min,e.max=t.max}function wp(e,t){xp(e.x,t.x),xp(e.y,t.y)}function kp(e){return void 0===e||1===e}function Sp(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!kp(t)||!kp(n)||!kp(r)}function Ep(e){return Sp(e)||Cp(e.x)||Cp(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Cp(e){return e&&"0%"!==e}function _p(e,t,n){return n+t*(e-n)}function Op(e,t,n,r,o){return void 0!==o&&(e=_p(e,o,r)),_p(e,n,r)+t}function Pp(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Op(e.min,t,n,r,o),e.max=Op(e.max,t,n,r,o)}function Tp(e,t){var n=t.x,r=t.y;Pp(e.x,n.translate,n.scale,n.originPoint),Pp(e.y,r.translate,r.scale,r.originPoint)}function Ap(e,t){e.min=e.min+t,e.max=e.max+t}function Rp(e,t,n){var r=Nu(n,3),o=r[0],i=r[1],a=r[2],l=void 0!==t[a]?t[a]:.5,s=wc(e.min,e.max,l);Pp(e,t[o],t[i],s,t.scale)}var Ip=["x","scaleX","originX"],zp=["y","scaleY","originY"];function jp(e,t){Rp(e.x,t,Ip),Rp(e.y,t,zp)}const Mp=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Fp=e=>Mp(e)&&e.hasOwnProperty("z"),Lp=(e,t)=>Math.abs(e-t);function Dp(e,t){if(Td(e)&&Td(t))return Lp(e,t);if(Mp(e)&&Mp(t)){const n=Lp(e.x,t.x),r=Lp(e.y,t.y),o=Fp(e)&&Fp(t)?Lp(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}function Np(e){return e.max-e.min}function Bp(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Dp(e,t)<n}function Vp(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=wc(t.min,t.max,e.origin),e.scale=Np(n)/Np(t),(Bp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=wc(n.min,n.max,e.origin)-e.originPoint,(Bp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function $p(e,t,n,r){Vp(e.x,t.x,n.x,null==r?void 0:r.originX),Vp(e.y,t.y,n.y,null==r?void 0:r.originY)}function Wp(e,t,n){e.min=n.min+t.min,e.max=e.min+Np(t)}function Up(e,t,n){e.min=t.min-n.min,e.max=e.min+Np(t)}function Hp(e,t,n){Up(e.x,t.x,n.x),Up(e.y,t.y,n.y)}function qp(e,t,n,r,o){return e=_p(e-=t,1/n,r),void 0!==o&&(e=_p(e,1/o,r)),e}function Yp(e,t,n,r,o){var i=Nu(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),sd.test(t)&&(t=parseFloat(t),t=wc(a.min,a.max,t/100)-a.min),"number"==typeof t){var l=wc(i.min,i.max,r);e===i&&(l-=t),e.min=qp(e.min,t,n,l,o),e.max=qp(e.max,t,n,l,o)}}(e,t[a],t[l],t[s],t.scale,r,o)}var Xp=["x","scaleX","originX"],Gp=["y","scaleY","originY"];function Qp(e,t,n,r){Yp(e.x,t,Xp,null==n?void 0:n.x,null==r?void 0:r.x),Yp(e.y,t,Gp,null==n?void 0:n.y,null==r?void 0:r.y)}var Kp=function(){return{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}},Zp=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function Jp(e){return 0===e.translate&&1===e.scale}function eh(e){return Jp(e.x)&&Jp(e.y)}function th(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 nh=function(){function e(){this.members=[]}return e.prototype.add=function(e){Sc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Ec(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}(),rh={},oh="translate3d(0px, 0px, 0) scale(1, 1)";function ih(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,")"))===oh?"none":i}function ah(e){return[e("x"),e("y")]}var lh=["","X","Y","Z"],sh=["transformPerspective","x","y","z"];function uh(e,t){return sh.indexOf(e)-sh.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return lh.forEach((function(t){return sh.push(e+t)}))}));var ch=new Set(sh);function dh(e){return ch.has(e)}var fh=new Set(["originX","originY","originZ"]);function ph(e){return fh.has(e)}var hh=function(e,t){return e.depth-t.depth},mh=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Sc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Ec(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(hh),this.isDirty=!1,this.children.forEach(e)},e}();function vh(e){var t=Pc(e)?e.get():e;return op(t)?t.toValue():t}var gh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bh(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(Ch),o.nodes.forEach(_h)},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?Bu(Bu([],Nu(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 mh)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Cc),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,Bu([],Nu(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),gh.hasAnimatedSinceResize&&(gh.hasAnimatedSinceResize=!1,o.nodes.forEach(Eh))}))}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:Ih,p=s.getProps().onLayoutAnimationComplete,h=!o.targetLayout||!th(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(Lu(Lu({},cp(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,hc.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(Oh))},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(kh);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(zh),this.potentialNodes.clear()),this.nodes.forEach(Sh),this.nodes.forEach(yh),this.nodes.forEach(xh),this.clearAllSnapshots(),mc.update(),mc.preRender(),mc.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(wh),this.sharedNodes.forEach(Ph)},e.prototype.scheduleUpdateProjection=function(){xc.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;xc.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));Mh(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();Mh(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected=Zp(),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&&!eh(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||Ep(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return Zp();var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Ap(t.x,n.x),Ap(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t=Zp();wp(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&&(Ap(t.x,o.x),Ap(t.y,o.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n=Zp();wp(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&&jp(n,{x:-o.scroll.x,y:-o.scroll.y}),Ep(o.latestValues)&&jp(n,o.latestValues)}return Ep(this.latestValues)&&jp(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n=Zp();wp(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&Ep(o.latestValues)){Sp(o.latestValues)&&o.updateSnapshot();var i=Zp();wp(i,o.measure()),Qp(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return Ep(this.latestValues)&&Qp(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Lu(Lu(Lu({},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=Zp(),this.relativeTargetOrigin=Zp(),Hp(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),wp(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Zp(),this.targetWithTransforms=Zp()),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,Wp(t.x,n.x,r.x),Wp(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):wp(this.target,this.layout.actual),Tp(this.target,this.targetDelta)):wp(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=Zp(),this.relativeTargetOrigin=Zp(),Hp(this.relativeTargetOrigin,this.target,this.relativeParent.target),wp(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Ep(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();wp(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&&jp(e,{x:-l.scroll.x,y:-l.scroll.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Tp(e,s)),r&&Ep(l.latestValues)&&jp(e,l.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta=Kp(),this.projectionDeltaWithTransform=Kp());var a=this.treeScale.x,l=this.treeScale.y,s=this.projectionTransform;$p(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=ih(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=Lu({},this.latestValues),l=Kp();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var s=Zp(),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(Rh));this.mixTargetDelta=function(t){var n,o,f,p,h,m=t/1e3;Th(l.x,e.x,m),Th(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)&&(Hp(s,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=s,h=m,Ah(o.x,f.x,p.x,h),Ah(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=wc(0,null!==(a=n.opacity)&&void 0!==a?a:1,gp(r)),e.opacityExit=wc(null!==(l=t.opacity)&&void 0!==l?l:1,0,bp(r))):i&&(e.opacity=wc(null!==(s=t.opacity)&&void 0!==s?s:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<pp;c++){var d="border".concat(fp[c],"Radius"),f=vp(t,d),p=vp(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||mp(f)===mp(p)?(e[d]=Math.max(wc(hp(f),hp(p),r),0),(sd.test(p)||sd.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=wc(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&&(hc.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xc.update((function(){gh.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Pc(0)?0:Oc(0);return dp("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Lu(Lu({},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&&(wp(t,n),jp(t,o),$p(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 nh),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<lh.length;r++){var o="rotate"+lh[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=vh(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=vh(e.pointerEvents)||""),this.hasProjected&&!Ep(this.latestValues)&&(c.transform=s?s({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),l.transform=ih(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,rh)if(void 0!==d[m]){var v=rh[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?vh(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(kh),this.root.sharedNodes.clear()},e}()}function yh(e){e.updateLayout()}function xh(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?ah((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=Np(t);t.min=l[e].min,t.max=t.min+n})):"position"===e.options.animationType&&ah((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=Np(l[e]);t.max=t.min+n}));var u=Kp();$p(u,l,i.layout);var c=Kp();i.isShared?$p(c,e.applyTransform(s,!0),i.measured):$p(c,l,i.layout);var d=!eh(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=Zp();Hp(v,i.layout,h.layout);var g=Zp();Hp(g,l,m.actual),th(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 wh(e){e.clearSnapshot()}function kh(e){e.clearMeasurements()}function Sh(e){e.resetTransform()}function Eh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Ch(e){e.resolveTargetDelta()}function _h(e){e.calcProjection()}function Oh(e){e.resetRotation()}function Ph(e){e.removeLeadSnapshot()}function Th(e,t,n){e.translate=wc(t.translate,0,n),e.scale=wc(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ah(e,t,n,r){e.min=wc(t.min,n.min,r),e.max=wc(t.max,n.max,r)}function Rh(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Ih={duration:.45,ease:[.4,0,.1,1]};function zh(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 jh(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Mh(e){jh(e.x),jh(e.y)}var Fh=1,Lh=(0,e.createContext)({}),Dh=(0,e.createContext)({}),Nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fu(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 Bh(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?$u.projectionNodeConstructor=e[t]:$u[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)(Lh))||void 0===n?void 0:n.id;return o&&void 0!==r?o+"-"+r:r}(t);t=Lu(Lu({},t),{layoutId:s});var u=(0,e.useContext)(qu),c=null,d=function(t){var n=function(e,t){if(tc(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Zu(n)?n:void 0,animate:Zu(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Yu)),r=n.initial,o=n.animate;return(0,e.useMemo)((function(){return{initial:r,animate:o}}),[rc(r),rc(o)])}(t),f=u.isStatic?void 0:Au((function(){if(gh.hasEverUpdated)return Fh++})),p=a(t,u.isStatic);return!u.isStatic&&Xu&&(d.visualElement=function(t,n,r,o){var i=(0,e.useContext)(Wu),a=(0,e.useContext)(Yu).visualElement,l=(0,e.useContext)(Tu),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 Gu((function(){null==u||u.syncRender()})),(0,e.useEffect)((function(){var e;null===(e=null==u?void 0:u.animationState)||void 0===e||e.animateChanges()})),Gu((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}(l,p,Lu(Lu({},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)(Dh);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&&Qu(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof l?l:"both",initialPromotionConfig:d,layoutScroll:c}))}(f,t,d.visualElement,o||$u.projectionNodeConstructor),c=function(t,n){var r=[];if((0,e.useContext)(Wu),!n)return null;for(var o=0;o<Hu;o++){var i=Uu[o],a=$u[i],l=a.isEnabled,s=a.Component;l(t)&&s&&r.push(e.createElement(s,Lu({key:i},t,{visualElement:n})))}return r}(t,d.visualElement)),e.createElement(Nh,{visualElement:d.visualElement,props:Lu(Lu({},u),t)},c,e.createElement(Yu.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):Qu(r)&&(r.current=e))}),[n])}(p,d.visualElement,n),p,u.isStatic,d.visualElement)))}))}function Vh(e){function t(t,n){return void 0===n&&(n={}),Bh(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 $h=["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 Wh(e){return"string"==typeof e&&!e.includes("-")&&!!($h.indexOf(e)>-1||/[A-Z]/.test(e))}function Uh(e,t){var n=t.layout,r=t.layoutId;return dh(e)||ph(e)||(n||void 0!==r)&&(!!rh[e]||"opacity"===e)}var Hh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function qh(e){return e.startsWith("--")}var Yh=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function Xh(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(qh(p))a[p]=h;else{var m=Jf[p],v=Yh(h,m);if(dh(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 ph(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(uh);for(var d=!1,f=i.length,p=0;p<f;p++){var h=i[p];c+="".concat(Hh[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 Gh=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Qh(e,t,n){for(var r in t)Pc(t[r])||Uh(r,n)||(e[r]=t[r])}function Kh(t,n,r){var o={},i=function(t,n,r){var o={};return Qh(o,t.style||{},t),Object.assign(o,function(t,n,r){var o=t.transformTemplate;return(0,e.useMemo)((function(){var e=Gh();Xh(e,n,{enableHardwareAcceleration:!r},o);var t=e.vars,i=e.style;return Lu(Lu({},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 Zh=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 Jh(e){return Zh.has(e)}var em,tm=function(e){return!Jh(e)};try{(em=require("@emotion/is-prop-valid").default)&&(tm=function(e){return e.startsWith("on")?!Jh(e):em(e)})}catch(Ii){}function nm(e,t,n){return"string"==typeof e?e:ud.transform(t+n*e)}var rm={offset:"stroke-dashoffset",array:"stroke-dasharray"},om={offset:"strokeDashoffset",array:"strokeDasharray"};function im(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;Xh(e,Du(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=nm(t,e.x,e.width),o=nm(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?rm:om;e[i.offset]=ud.transform(-r);var a=ud.transform(t),l=ud.transform(n);e[i.array]="".concat(a," ").concat(l)}(p,s,c,f,!1)}var am=function(){return Lu(Lu({},Gh()),{attrs:{}})};function lm(t,n){var r=(0,e.useMemo)((function(){var e=am();return im(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),Lu(Lu({},e.attrs),{style:Lu({},e.style)})}),[n]);if(t.style){var o={};Qh(o,t.style,t),r.style=Lu(Lu({},o),r.style)}return r}function sm(t){return void 0===t&&(t=!1),function(n,r,o,i,a,l){var s=a.latestValues,u=(Wh(n)?lm:Kh)(r,s,l),c=function(e,t,n){var r={};for(var o in e)(tm(o)||!0===n&&Jh(o)||!t&&!Jh(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,t),d=Lu(Lu(Lu({},c),u),{ref:i});return o&&(d["data-projection-id"]=o),(0,e.createElement)(n,d)}}var um=/([a-z])([A-Z])/g,cm=function(e){return e.replace(um,"$1-$2").toLowerCase()};function dm(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 fm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function pm(e,t){for(var n in dm(e,t),t.attrs)e.setAttribute(fm.has(n)?n:cm(n),t.attrs[n])}function hm(e){var t=e.style,n={};for(var r in t)(Pc(t[r])||Uh(r,e))&&(n[r]=t[r]);return n}function mm(e){var t=hm(e);for(var n in e)Pc(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function vm(e){return"object"==typeof e&&"function"==typeof e.start}function gm(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,l={latestValues:ym(t,n,r,o),renderState:i()};return a&&(l.mount=function(e){return a(t,e,l)}),l}var bm=function(t){return function(n,r){var o=(0,e.useContext)(Yu),i=(0,e.useContext)(Tu);return r?gm(t,n,o,i):Au((function(){return gm(t,n,o,i)}))}};function ym(e,t,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(e);for(var l in a)o[l]=vh(a[l]);var s=e.initial,u=e.animate,c=tc(e),d=nc(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&&!vm(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Ju(e,t);if(n){var r=n.transitionEnd;n.transition;var i=Du(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 xm,wm={useVisualState:bm({scrapeMotionValuesFromProps:mm,createRenderState:am,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}}im(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),pm(t,r)}})},km={useVisualState:bm({scrapeMotionValuesFromProps:hm,createRenderState:Gh})};function Sm(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Em(t,n,r,o){(0,e.useEffect)((function(){var e=t.current;if(r&&e)return Sm(e,n,r,o)}),[t,n,r,o])}function Cm(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function _m(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"}(xm||(xm={}));var Om={pageX:0,pageY:0};function Pm(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Om;return{x:n[t+"X"],y:n[t+"Y"]}}function Tm(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Am(e,t){return void 0===t&&(t="page"),{point:_m(e)?Pm(e,t):Tm(e,t)}}var Rm=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Am(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Im=function(){return Xu&&null===window.onpointerdown},zm=function(){return Xu&&null===window.ontouchstart},jm=function(){return Xu&&null===window.onmousedown},Mm={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Fm={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Lm(e){return Im()?e:zm()?Fm[e]:jm()?Mm[e]:e}function Dm(e,t,n,r){return Sm(e,Lm(t),Rm(n,"pointerdown"===t),r)}function Nm(e,t,n,r){return Em(e,Lm(t),n&&Rm(n,"pointerdown"===t),r)}function Bm(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Vm=Bm("dragHorizontal"),$m=Bm("dragVertical");function Wm(e){var t=!1;if("y"===e)t=$m();else if("x"===e)t=Vm();else{var n=Vm(),r=$m();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Um(){var e=Wm(!0);return!e||(e(),!1)}function Hm(e,t,n){return function(r,o){var i;Cm(r)&&!Um()&&(null===(i=e.animationState)||void 0===i||i.setActive(xm.Hover,t),null==n||n(r,o))}}var qm=function(e,t){return!!t&&(e===t||qm(e,t.parentElement))};function Ym(t){return(0,e.useEffect)((function(){return function(){return t()}}),[])}var Xm=new WeakMap,Gm=new WeakMap,Qm=function(e){var t;null===(t=Xm.get(e.target))||void 0===t||t(e)},Km=function(e){e.forEach(Qm)};var Zm={some:0,all:1};function Jm(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:Zm[s]};return function(e,t,n){var r=function(e){var t=e.root,n=Du(e,["root"]),r=t||document;Gm.has(r)||Gm.set(r,{});var o=Gm.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(Km,Lu({root:t},n))),o[i]}(t);return Xm.set(e,n),r.observe(e),function(){Xm.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(xm.InView,o);var i=r.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[t,i,a,s])}function ev(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(xm.InView,!0)}))}),[t])}var tv=function(e){return function(t){return e(t),null}},nv={inView:tv((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?ev:Jm)(u,s.current,n,l)})),tap:tv((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(xm.Tap,!1),!Um()}function f(e,t){d()&&(qm(a.getInstance(),e.target)?null==n||n(e,t):null==o||o(e,t))}function p(e,t){d()&&(null==o||o(e,t))}Nm(a,"pointerdown",l?function(e,t){var n;c(),s.current||(s.current=!0,u.current=Rd(Dm(window,"pointerup",f),Dm(window,"pointercancel",p)),null===(n=a.animationState)||void 0===n||n.setActive(xm.Tap,!0),null==r||r(e,t))}:void 0),Ym(c)})),focus:tv((function(e){var t=e.whileFocus,n=e.visualElement;Em(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(xm.Focus,!0)}:void 0),Em(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(xm.Focus,!1)}:void 0)})),hover:tv((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;Nm(o,"pointerenter",t||r?Hm(o,!0,t):void 0),Nm(o,"pointerleave",n||r?Hm(o,!1,n):void 0)}))};function rv(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 ov=function(e){return function(t){return t.test(e)}},iv=[Kc,ud,sd,ld,dd,cd,{test:function(e){return"auto"===e},parse:function(e){return e}}],av=function(e){return iv.find(ov(e))},lv=Bu(Bu([],Nu(iv),!1),[wd,Pd],!1),sv=function(e){return lv.find(ov(e))};function uv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Oc(n))}function cv(e,t){if(t)return(t[e]||t.default||t).from}function dv(e,t,n){var r;void 0===n&&(n={});var o=ec(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var l=o?function(){return fv(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(pv).forEach((function(e,r){a.push(dv(e,t,Lu(Lu({},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=Nu("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 fv(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=Du(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&&hv(m,v))){var y=dp(v,g,b,Lu({delay:a},d));h.push(y)}}return Promise.all(h).then((function(){f&&function(e,t){var n=ec(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a=Du(r,["transitionEnd","transition"]);for(var l in a=Lu(Lu({},a),i))uv(e,l,ip(a[l]))}(e,f)}))}function pv(e,t){return e.sortNodePosition(t)}function hv(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var mv=[xm.Animate,xm.InView,xm.Focus,xm.Hover,xm.Tap,xm.Drag,xm.Exit],vv=Bu([],Nu(mv),!1).reverse(),gv=mv.length;function bv(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 dv(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=dv(e,t,n);else{var i="function"==typeof t?ec(e,t,n.custom):t;r=fv(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[xm.Animate]=yv(!0),e[xm.InView]=yv(),e[xm.Hover]=yv(),e[xm.Tap]=yv(),e[xm.Drag]=yv(),e[xm.Focus]=yv(),e[xm.Exit]=yv(),e}(),r={},o=!0,i=function(t,n){var r=ec(e,n);if(r){r.transition;var o=r.transitionEnd,i=Du(r,["transition","transitionEnd"]);t=Lu(Lu(Lu({},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=vv[t],m=n[r],v=null!==(s=u[r])&&void 0!==s?s:c[r],g=Zu(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=Lu({},p),!m.isActive&&null===b||!v&&!m.prevProp||vm(v)||"boolean"==typeof v)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Ku(t)&&!rv(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,_=Lu(Lu({},C),S),O=function(e){w=!0,f.delete(e),m.needsAnimating[e]=!0};for(var P in _){var T=S[P],A=C[P];p.hasOwnProperty(P)||(T!==A?Vf(T)&&Vf(A)?!rv(T,A)||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=Lu(Lu({},p),S)),o&&e.blockInitialAnimation&&(w=!1),w&&!y&&d.push.apply(d,Bu([],Nu(k.map((function(e){return{animation:e,options:Lu({type:r},a)}}))),!1))},v=0;v<gv;v++)m(v);if(r=Lu({},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 yv(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var xv={animation:tv((function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=bv(n)),vm(r)&&(0,e.useEffect)((function(){return r.subscribe(n)}),[r])})),exit:tv((function(t){var n=t.custom,r=t.visualElement,o=Nu(Ru(),2),i=o[0],a=o[1],l=(0,e.useContext)(Tu);(0,e.useEffect)((function(){var e,t;r.isPresent=i;var o=null===(e=r.animationState)||void 0===e?void 0:e.setActive(xm.Exit,!i,{custom:null!==(t=null==l?void 0:l.custom)&&void 0!==t?t:n});!i&&(null==o||o.then(a))}),[i])}))},wv=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=Ev(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Dp(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=yc().timestamp;r.history.push(Lu(Lu({},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=kv(t,r.transformPagePoint),Cm(e)&&0===e.buttons?r.handlePointerUp(e,t):xc.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=Ev(kv(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(_m(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=kv(Am(e),this.transformPagePoint),a=i.point,l=yc().timestamp;this.history=[Lu(Lu({},a),{timestamp:l})];var s=t.onSessionStart;s&&s(e,Ev(i,this.history)),this.removeListeners=Rd(Dm(window,"pointermove",this.handlePointerMove),Dm(window,"pointerup",this.handlePointerUp),Dm(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),hc.update(this.updatePoint)},e}();function kv(e,t){return t?{point:t(e.point)}:e}function Sv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ev(e,t){var n=e.point;return{point:n,delta:Sv(n,_v(t)),offset:Sv(n,Cv(t)),velocity:Ov(t,.1)}}function Cv(e){return e[0]}function _v(e){return e[e.length-1]}function Ov(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=_v(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Tf(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 Pv(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 Tv(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=Nu([o,r],2))[0],o=n[1]),{min:r,max:o}}var Av=.35;function Rv(e,t,n){return{min:Iv(e,t),max:Iv(e,n)}}function Iv(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function zv(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function jv(e,t){return zv(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 Mv=new WeakMap,Fv=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=Zp(),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 wv(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Am(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=Wm(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),ah((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(sd.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=Np(i)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==l||l(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(xm.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(xm.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Lv(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?wc(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?wc(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&&Qu(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:Pv(e.x,r,i),y:Pv(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=Av),!1===e?e=0:!0===e&&(e=Av),{x:Rv(e,"left","right"),y:Rv(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ah((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||!Qu(t))return!1;var r=t.current;Ac(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=jv(e,n),o=t.scroll;return o&&(Ap(r.x,o.x),Ap(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Tv(e.x,t.x),y:Tv(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=zv(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=ah((function(n){var s;if(Lv(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=Lu(Lu({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 dp(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;ah((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;ah((function(n){if(Lv(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]-wc(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(Qu(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};ah((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=Np(n),(l=Np(r))>i?o=Uc(r.min,r.max-i,n.min):i>l&&(o=Uc(n.min,n.max-l,r.min)),Rc(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(),ah((function(e){if(Lv(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,l=o.max;n.set(wc(i,l,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Mv.set(this.visualElement,this);var n=Dm(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(){Qu(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=Sm(window,"resize",(function(){t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(ah((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?Av:u,d=e.dragMomentum,f=void 0===d||d;return Lu(Lu({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:s,dragElastic:c,dragMomentum:f})},e}();function Lv(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Dv={pan:tv((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)(qu).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)})),Nm(a,"pointerdown",l&&function(e){s.current=new wv(e,c,{transformPagePoint:u})}),Ym((function(){return s.current&&s.current.end()}))})),drag:tv((function(t){var n=t.dragControls,r=t.visualElement,o=Au((function(){return new Fv(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(o)}),[o,n]),(0,e.useEffect)((function(){return o.addListeners()}),[o])}))},Nv=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"],Bv=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=Nv.map((function(){return new Cc})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Nv.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"+Nv[t]]=function(t){return e.add(t)},n["notify"+Nv[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.notify.apply(e,Bu([],Nu(t),!1))}})),n}(),S=new Map,E=new Map,C={},_=Lu({},x);function O(){g&&y&&(P(),l(g,w,p.style,M.projection))}function P(){r(M,w,x,t,p)}function T(){k.notifyUpdate(x)}var A=d(p);for(var R in A){var I=A[R];void 0!==x[R]&&Pc(I)&&I.set(x[R],!1)}var z=tc(p),j=nc(p),M=Lu(Lu({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:h,variantChildren:j?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=M.current=e,M.projection&&M.projection.mount(e),j&&f&&!z&&(b=null==f?void 0:f.addVariantChild(M)),null==f||f.children.add(M),M.setProps(p)},unmount:function(){var e;null===(e=M.projection)||void 0===e||e.unmount(),hc.update(T),hc.render(O),E.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(M),k.clearAllListeners(),g=void 0,y=!1},addVariantChild:function(e){var t,n=M.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(M.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?M: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){M.isVisible!==e&&(M.isVisible=e,M.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(M,e,p,t)},measureViewportBox:function(){return a(g,p)},addValue:function(e,t){M.hasValue(e)&&M.removeValue(e),S.set(e,t),x[e]=t.get(),function(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&xc.update(T,!1,!0)})),r=t.onRenderRequest(M.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=Oc(t),M.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&&!Pc(t))return t}return _[e]}},k),{build:function(){return P(),w},scheduleRender:function(){xc.render(O,!1,!0)},syncRender:O,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&M.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(Pc(i))e.addValue(o,i);else if(Pc(a))e.addValue(o,Oc(i));else if(a!==i)if(e.hasValue(o)){var l=e.getValue(o);!l.hasAnimated&&l.set(i)}else e.addValue(o,Oc(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(M,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(!z){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<$v;r++){var o=Vv[r],i=p[o];(Zu(i)||!1===i)&&(n[o]=i)}return n}});return M}},Vv=Bu(["initial"],Nu(mv),!1),$v=Vv.length;function Wv(e){return"string"==typeof e&&e.startsWith("var(--")}var Uv=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Hv(e,t,n){void 0===n&&(n=1),Ac(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Nu(function(e){var t=Uv.exec(e);if(!t)return[,];var n=Nu(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():Wv(i)?Hv(i,t,n+1):i}}var qv,Yv=new Set(["width","height","top","left","right","bottom","x","y"]),Xv=function(e){return Yv.has(e)},Gv=function(e,t){e.set(t,!1),e.set(t)},Qv=function(e){return e===Kc||e===ud};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(qv||(qv={}));var Kv=function(e,t){return parseFloat(e.split(", ")[t])},Zv=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 Kv(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?Kv(a[1],e):0}},Jv=new Set(["x","y","z"]),eg=sh.filter((function(e){return!Jv.has(e)})),tg={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:Zv(4,13),y:Zv(5,14)};function ng(e,t,n,r){return function(e){return Object.keys(e).some(Xv)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Lu({},t),r=Lu({},r);var o=Object.keys(t).filter(Xv),i=[],a=!1,l=[];if(o.forEach((function(o){var s=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=av(c),f=t[o];if(Vf(f)){var p=f.length,h=null===f[0]?1:0;c=f[h],d=av(c);for(var m=h;m<p;m++)u?Ac(av(f[m])===u,"All keyframes must be of the same type"):(u=av(f[m]),Ac(u===d||Qv(d)&&Qv(u),"Keyframes must be of the same dimension as the current value"))}else u=av(f);if(d!==u)if(Qv(d)&&Qv(u)){var v=s.get();"string"==typeof v&&s.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===ud&&(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 eg.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],Gv(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]=tg[e](r,i)})),t.syncRender();var s=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Gv(r,l[n]),e[n]=tg[n](s,i)})),e}(t,e,l);return i.length&&i.forEach((function(t){var n=Nu(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 rg={treeType:"dom",readValueFromInstance:function(e,t){if(dh(t)){var n=tp(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(qh(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 jv(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=Du(t,["transition","transitionEnd"]),s=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=cv(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):!sv(f)&&Pd.test(d)&&(f=np(c,d)),e.addValue(c,Oc(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=Du(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=Lu({},n)),e.forEachValue((function(e){var t=e.get();if(Wv(t)){var n=Hv(t,i);n&&e.set(n)}})),o){var l=o[a];if(Wv(l)){var s=Hv(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 ng(e,t=o.target,n,r=o.transitionEnd)}(e,l,s,a);a=u.transitionEnd,l=u.target}return Lu({transition:i,transitionEnd:a},l)},scrapeMotionValuesFromProps:hm,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Xh(t,n,r,o.transformTemplate)},render:dm},og=Bv(rg),ig=Bv(Lu(Lu({},rg),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return dh(t)?(null===(n=tp(t))||void 0===n?void 0:n.default)||0:(t=fm.has(t)?t:cm(t),e.getAttribute(t))},scrapeMotionValuesFromProps:mm,build:function(e,t,n,r,o){im(t,n,r,o.transformTemplate)},render:pm})),ag=function(e,t){return Wh(e)?ig(t,{enableHardwareAcceleration:!1}):og(t,{enableHardwareAcceleration:!0})};function lg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var sg={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!ud.test(e))return e;e=parseFloat(e)}var n=lg(e,t.target.x),r=lg(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},ug="_$css",cg={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Uv,(function(e){return a.push(e),ug})));var l=Pd.parse(e);if(l.length>5)return o;var s=Pd.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=wc(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(ug,(function(){var e=a[h];return h++,e}))}return p}},dg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fu(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=fg,Object.assign(rh,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(Lu(Lu({},l.options),{onExitComplete:function(){return t.safeToRemove()}}))),gh.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()||xc.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),fg={borderRadius:Lu(Lu({},sg),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:sg,borderTopRightRadius:sg,borderBottomLeftRadius:sg,borderBottomRightRadius:sg,boxShadow:cg},pg={measureLayout:function(t){var n=Nu(Ru(),2),r=n[0],o=n[1],i=(0,e.useContext)(Lh);return e.createElement(dg,Lu({},t,{layoutGroup:i,switchLayoutGroup:(0,e.useContext)(Dh),isPresent:r,safeToRemove:o}))}},hg=bh({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}}}),mg={current:void 0},vg=bh({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!mg.current){var e=new hg(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),mg.current=e}return mg.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"}}),gg=Lu(Lu(Lu(Lu({},xv),nv),Dv),pg),bg=Vh((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,l=Wh(e)?wm:km;return Lu(Lu({},l),{preloadedFeatures:n,useRender:sm(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,gg,ag,vg)})),yg=new Set([...zn,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),xg=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function wg(e){return xg.has(e)||!yg.has(e)}var kg,Sg=/^((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)-.*))$/,Eg=de((function(e){return Sg.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Cg=function(e){return"theme"!==e},_g=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Eg:Cg},Og=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},Pg=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return se(t,n,r),Ce((function(){return ue(t,n,r)})),null},Tg=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=Og(n,r,a),u=s||_g(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=Pe((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(Te)}"string"==typeof t.className?a=le(n.registered,d,t.className):null!=t.className&&(a=t.className+" ");var m=Se(f.concat(d),n.registered,p);a+=n.key+"-"+m.name,void 0!==i&&(a+=" "+i);var v=c&&void 0===s?_g(o):u,g={};for(var b in t)c&&"as"===b||v(b)&&(g[b]=t[b]);return g.className=a,r&&(g.ref=r),e.createElement(e.Fragment,null,e.createElement(Pg,{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:Og(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){Tg[e]=Tg(e)}));var Ag=null!=(kg=Tg.default)?kg:Tg;function Rg(t,n){const{baseStyle:r,...o}=null!=n?n:{};o.shouldForwardProp||(o.shouldForwardProp=wg);const i=(({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,l=Wn(a,((e,t)=>Mn(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,Hn(e,t),Un(l),i),u=Dn(s)(t.theme);return r?[u,r]:u})({baseStyle:r}),a=Ag(t,o)(i);return e.forwardRef((function(t,n){const{colorMode:r,forced:o}=Ke();return e.createElement(a,{ref:n,"data-theme":o?r:void 0,...t})}))}var Ig=function(){const e=new Map;return new Proxy(Rg,{apply:(e,t,n)=>Rg(...n),get:(t,n)=>(e.has(n)||e.set(n,Rg(n)),e.get(n))})}(),zg={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]}}},jg=(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=zg,toastSpacing:d="0.5rem"}=t,[f,p]=(0,e.useState)(s),h=null===(m=(0,e.useContext)(Tu))||m.isPresent;var m;Pu((()=>{h||null==o||o()}),[h]),Pu((()=>{p(s)}),[s]);const v=()=>{h&&i()};(0,e.useEffect)((()=>{h&&a&&i()}),[h,a,i]),function(t,n){const r=Ou(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,Ve.jsx)(bg.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,Ve.jsx)(Ig.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:tt(r,{id:n,onClose:v})})})}));function Mg(t){return(0,e.forwardRef)(t)}function Fg(){const t=(0,e.useContext)(Te);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return t}jg.displayName="ToastComponent";var Lg=n(115);function Dg(t,n={}){var r;const{styleConfig:o,...i}=n,{theme:a,colorMode:l}={...Ke(),theme:Fg()},s=t?$n(a,`components.${t}`):void 0,u=o||s,c=at({theme:a,colorMode:l},null!=(r=null==u?void 0:u.defaultProps)?r:{},Un(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:et(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[Bn(s,r)],p=fn(u.minW,null==f?void 0:f._minW),h=tt(null==(i=e[n])?void 0:i[s[r]],o);h&&(d?null==(a=e.parts)||a.forEach((e=>{at(l,{[e]:c?h[e]:{[p]:h[e]}})})):d?l[p]=h:c?at(l,h):l[p]=h)}return l}}(i);return at({},tt(null!=(n=e.baseStyle)?n:{},t),a(e,"sizes",o,t),a(e,"variants",r,t))}}(u),t=e(c);Lg(d.current,t)||(d.current=t)}return d.current}function Ng(e,t={}){return Dg(e,t)}function Bg(e,t={}){return Dg(e,t)}var Vg={path:(0,Ve.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ve.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,Ve.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,Ve.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},$g=Mg(((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:Je("chakra-icon",l),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...s,...Ng("Icon",e)}},d=null!=r?r:Vg.viewBox;if(n&&"string"!=typeof n)return(0,Ve.jsx)(Ig.svg,{as:n,...c,...u});const f=null!=a?a:Vg.path;return(0,Ve.jsx)(Ig.svg,{verticalAlign:"middle",viewBox:d,...c,...u,children:f})}));function Wg(e){return(0,Ve.jsx)($g,{viewBox:"0 0 24 24",...e,children:(0,Ve.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"})})}$g.displayName="Icon";var Ug=Be({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Hg=Mg(((e,t)=>{const n=Ng("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:l,...s}=Vn(e),u=Je("chakra-spinner",l),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${Ug} ${i} linear infinite`,...n};return(0,Ve.jsx)(Ig.div,{ref:t,__css:c,className:u,...s,children:r&&(0,Ve.jsx)(Ig.span,{srOnly:!0,children:r})})}));Hg.displayName="Spinner";var[qg,Yg]=qe({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Xg,Gg]=qe({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Qg={info:{icon:function(e){return(0,Ve.jsx)($g,{viewBox:"0 0 24 24",...e,children:(0,Ve.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:Wg,colorScheme:"orange"},success:{icon:function(e){return(0,Ve.jsx)($g,{viewBox:"0 0 24 24",...e,children:(0,Ve.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:Wg,colorScheme:"red"},loading:{icon:Hg,colorScheme:"blue"}},Kg=Mg((function(e,t){var n;const{status:r="info",addRole:o=!0,...i}=Vn(e),a=null!=(n=e.colorScheme)?n:function(e){return Qg[e].colorScheme}(r),l=Bg("Alert",{...e,colorScheme:a}),s={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return(0,Ve.jsx)(qg,{value:{status:r},children:(0,Ve.jsx)(Xg,{value:l,children:(0,Ve.jsx)(Ig.div,{"data-status":r,role:o?"alert":void 0,ref:t,...i,className:Je("chakra-alert",e.className),__css:s})})})}));function Zg(e){const{status:t}=Yg(),n=function(e){return Qg[e].icon}(t),r=Gg(),o="loading"===t?r.spinner:r.icon;return(0,Ve.jsx)(Ig.span,{display:"inherit","data-status":t,...e,className:Je("chakra-alert__icon",e.className),__css:o,children:e.children||(0,Ve.jsx)(n,{h:"100%",w:"100%"})})}Kg.displayName="Alert",Zg.displayName="AlertIcon";var Jg=Mg((function(e,t){const n=Gg(),{status:r}=Yg();return(0,Ve.jsx)(Ig.div,{ref:t,"data-status":r,...e,className:Je("chakra-alert__title",e.className),__css:n.title})}));Jg.displayName="AlertTitle";var eb=Mg((function(e,t){const n=Gg(),{status:r}=Yg(),o={display:"inline",...n.description};return(0,Ve.jsx)(Ig.div,{ref:t,"data-status":r,...e,className:Je("chakra-alert__desc",e.className),__css:o})}));function tb(e){return(0,Ve.jsx)($g,{focusable:"false","aria-hidden":!0,...e,children:(0,Ve.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"})})}eb.displayName="AlertDescription";var nb=Mg((function(e,t){const n=Ng("CloseButton",e),{children:r,isDisabled:o,__css:i,...a}=Vn(e);return(0,Ve.jsx)(Ig.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,Ve.jsx)(tb,{width:"1em",height:"1em"})})}));nb.displayName="CloseButton";var rb=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;ob+=1;const o=null!=(n=t.id)?n:ob,i=null!=(r=t.position)?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>rb.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}=Eu(r,e);return o&&-1!==i&&(r[o][i]={...r[o][i],...t,message:ab(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=Cu(t,e);return n?{...t,[n]:t[n].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(Eu(rb.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),ob=0,ib=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,Ve.jsxs)(Kg,{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,Ve.jsx)(Zg,{children:u}),(0,Ve.jsxs)(Ig.div,{flex:"1",maxWidth:"100%",children:[o&&(0,Ve.jsx)(Jg,{id:null==c?void 0:c.title,children:o}),l&&(0,Ve.jsx)(eb,{id:null==c?void 0:c.description,display:"block",children:l})]}),i&&(0,Ve.jsx)(nb,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function ab(e={}){const{render:t,toastComponent:n=ib}=e;return r=>"function"==typeof t?t({...r,...e}):(0,Ve.jsx)(n,{...r,...e})}var lb=0;function sb(){var e=lb;return lb++,e}var ub=function(t){var n=t.children,r=t.initial,o=t.isPresent,i=t.onExitComplete,a=t.custom,l=t.presenceAffectsLayout,s=Au(cb),u=Au(sb),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(Tu.Provider,{value:c},n)};function cb(){return new Map}function db(e){return e.key||""}var fb=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=Nu(function(){var t=(0,e.useRef)(!1),n=Nu((0,e.useState)(0),2),r=n[0],o=n[1];Ym((function(){return t.current=!0}));var i=(0,e.useCallback)((function(){!t.current&&o(r+1)}),[r]);return[(0,e.useCallback)((function(){return xc.postRender(i)}),[i]),r]}(),1),d=c[0],f=(0,e.useContext)(Lh).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=db(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(ub,{key:db(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:u},t)})));for(var y=Bu([],Nu(m),!1),x=v.current.map(db),w=m.map(db),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(ub,{key:db(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(ub,{key:db(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)})))},[pb,hb]=qe({strict:!1,name:"PortalContext"}),mb="chakra-portal",vb=e=>(0,Ve.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),gb=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=hb(),c=Xe();nr((()=>{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=mb,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,Ve.jsx)(vb,{zIndex:null==c?void 0:c.zIndex,children:o}):o;return l.current?(0,r.createPortal)((0,Ve.jsx)(pb,{value:l.current,children:d}),l.current):(0,Ve.jsx)("span",{ref:e=>{e&&a(e)}})},bb=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=mb),e}),[a]),[,u]=(0,e.useState)({});return nr((()=>u({})),[]),nr((()=>{if(s&&l)return l.appendChild(s),()=>{l.removeChild(s)}}),[s,l]),l&&s?(0,r.createPortal)((0,Ve.jsx)(pb,{value:i?s:null,children:n}),s):null};function yb(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?(0,Ve.jsx)(bb,{containerRef:n,...r}):(0,Ve.jsx)(gb,{...r})}yb.className=mb,yb.selector=".chakra-portal",yb.displayName="Portal";var[xb,wb]=qe({name:"ToastOptionsContext",strict:!1}),kb=t=>{const n=(0,e.useSyncExternalStore)(rb.subscribe,rb.getState,rb.getState),{motionVariants:r,component:o=jg,portalProps:i}=t,a=Object.keys(n).map((e=>{const t=n[e];return(0,Ve.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:_u(e),children:(0,Ve.jsx)(fb,{initial:!1,children:t.map((e=>(0,Ve.jsx)(o,{motionVariants:r,...e},e.id)))})},e)}));return(0,Ve.jsx)(yb,{...i,children:a})},Sb=e=>function({children:t,theme:n=e,toastOptions:r,...o}){return(0,Ve.jsxs)(sr,{theme:n,...o,children:[(0,Ve.jsx)(xb,{value:null==r?void 0:r.defaultOptions,children:t}),(0,Ve.jsx)(kb,{...r})]})},Eb=Sb(wu),Cb=(Sb(ku),Mg((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,Ve.jsx)(Ig.div,{ref:t,__css:c,...u})})));Cb.displayName="Flex";var _b=Mg((function(e,t){const n=Ng("Heading",e),{className:r,...o}=Vn(e);return(0,Ve.jsx)(Ig.h2,{ref:t,className:Je("chakra-heading",e.className),...o,__css:n})}));_b.displayName="Heading";var Ob=Mg((function(e,t){const n=Ng("Text",e),{className:r,align:o,decoration:i,casing:a,...l}=Vn(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,Ve.jsx)(Ig.p,{ref:t,className:Je("chakra-text",e.className),...s,...l,__css:n})}));Ob.displayName="Text";var[Pb,Tb]=qe({strict:!1,name:"ButtonGroupContext"});function Ab(t){const{children:n,className:r,...o}=t,i=(0,e.isValidElement)(n)?(0,e.cloneElement)(n,{"aria-hidden":!0,focusable:!1}):n,a=Je("chakra-button__icon",r);return(0,Ve.jsx)(Ig.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:a,children:i})}function Rb(t){const{label:n,placement:r,spacing:o="0.5rem",children:i=(0,Ve.jsx)(Hg,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:l,...s}=t,u=Je("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,Ve.jsx)(Ig.div,{className:u,...s,__css:d,children:i})}function Ib(...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 zb(...t){return(0,e.useMemo)((()=>Ib(...t)),t)}Ab.displayName="ButtonIcon",Rb.displayName="ButtonSpinner";var jb=Mg(((t,n)=>{const r=Tb(),o=Ng("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}=Vn(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,Ve.jsxs)(Ig.button,{ref:zb(n,x),as:g,type:null!=p?p:w,"data-active":rt(l),"data-loading":rt(a),__css:y,className:Je("chakra-button",v),...b,disabled:i||a,children:[a&&"start"===m&&(0,Ve.jsx)(Rb,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),a?d||(0,Ve.jsx)(Ig.span,{opacity:0,children:(0,Ve.jsx)(Mb,{...k})}):(0,Ve.jsx)(Mb,{...k}),a&&"end"===m&&(0,Ve.jsx)(Rb,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})}));function Mb(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return(0,Ve.jsxs)(Ve.Fragment,{children:[t&&(0,Ve.jsx)(Ab,{marginEnd:o,children:t}),r,n&&(0,Ve.jsx)(Ab,{marginStart:o,children:n})]})}jb.displayName="Button";var Fb=Mg((function(e,t){const n=Ng("Link",e),{className:r,isExternal:o,...i}=Vn(e);return(0,Ve.jsx)(Ig.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:t,className:Je("chakra-link",r),...i,__css:n})}));Fb.displayName="Link";var Lb=Ig("div");Lb.displayName="Box";var Db=Mg((function(e,t){const{size:n,centerContent:r=!0,...o}=e,i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,Ve.jsx)(Lb,{ref:t,boxSize:n,__css:{...i,flexShrink:0,flexGrow:0},...o})}));Db.displayName="Square";var Nb,Bb,Vb,$b,Wb=Mg((function(e,t){const{size:n,...r}=e;return(0,Ve.jsx)(Db,{size:n,ref:t,borderRadius:"9999px",...r})}));Wb.displayName="Circle",n(7604),function(e,t){t=t||{}}(console.error),Nb={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},Bb=["(","?"],Vb={")":["("],":":["?","?:"]},$b=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Ub={"!":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 Hb={contextDelimiter:"",onMissingKey:null};function qb(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},Hb)this.options[n]=void 0!==t&&n in t?t[n]:Hb[n]}qb.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($b);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(Vb[n]){if(Vb[n][0]===o){n=Vb[n][1]||n;break}}else if(Bb.indexOf(o)>=0||Nb[o]<Nb[n]){a.push(o);break}i.push(o)}Vb[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=Ub[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)},qb.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 Yb={plural_forms:e=>1===e?0:1},Xb=/^i18n\.(n?gettext|has_translation)(_|$)/,Gb=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)},Qb=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)},Kb=function(e,t){return function(n,r,o,i=10){const a=e[t];if(!Qb(n))return;if(!Gb(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)}},Zb=function(e,t,n=!1){return function(r,o){const i=e[t];if(!Qb(r))return;if(!n&&!Gb(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}},Jb=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}},ey=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}},ty=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}},ny=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}},ry=function(e,t){return function(n){const r=e[t];if(Qb(n))return r[n]&&r[n].runs?r[n].runs:0}};class oy{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Kb(this,"actions"),this.addFilter=Kb(this,"filters"),this.removeAction=Zb(this,"actions"),this.removeFilter=Zb(this,"filters"),this.hasAction=Jb(this,"actions"),this.hasFilter=Jb(this,"filters"),this.removeAllActions=Zb(this,"actions",!0),this.removeAllFilters=Zb(this,"filters",!0),this.doAction=ey(this,"actions"),this.applyFilters=ey(this,"filters",!0),this.currentAction=ty(this,"actions"),this.currentFilter=ty(this,"filters"),this.doingAction=ny(this,"actions"),this.doingFilter=ny(this,"filters"),this.didAction=ry(this,"actions"),this.didFilter=ry(this,"filters")}}const iy=new oy,{addAction:ay,addFilter:ly,removeAction:sy,removeFilter:uy,hasAction:cy,hasFilter:dy,removeAllActions:fy,removeAllFilters:py,doAction:hy,applyFilters:my,currentAction:vy,currentFilter:gy,doingAction:by,doingFilter:yy,didAction:xy,didFilter:wy,actions:ky,filters:Sy}=iy,Ey=((e,t,n)=>{const r=new qb({}),o=new Set,i=()=>{o.forEach((e=>e()))},a=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...Yb,...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=>{Xb.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,"":{...Yb,...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,iy),Cy=(Ey.getLocaleData.bind(Ey),Ey.setLocaleData.bind(Ey),Ey.resetLocaleData.bind(Ey),Ey.subscribe.bind(Ey),Ey.__.bind(Ey));Ey._x.bind(Ey),Ey._n.bind(Ey),Ey._nx.bind(Ey),Ey.isRTL.bind(Ey),Ey.hasTranslation.bind(Ey);const _y=(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 Oy(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 Py(e){try{return decodeURIComponent(e)}catch(t){return e}}function Ty(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(Py);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 Ay(e,t){return Ty(e)[t]}function Ry(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const r=e.indexOf("?");return-1!==r&&(t=Object.assign(Ty(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 Iy=(e,t)=>{let{path:n,url:r,...o}=e;return{...o,url:r&&Ry(r,t),path:n&&Ry(n,t)}},zy=e=>e.json?e.json():Promise.reject(e),jy=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},My=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 Yy({...Iy(e,{per_page:100}),parse:!1}),r=await zy(n);if(!Array.isArray(r))return r;let o=jy(n);if(!o)return r;let i=[].concat(r);for(;o;){const t=await Yy({...e,path:void 0,url:o,parse:!1}),n=await zy(t);i=i.concat(n),o=jy(t)}return i},Fy=new Set(["PATCH","PUT","DELETE"]),Ly="GET";function Dy(e,t){return void 0!==Ay(e,t)}const Ny=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=>By(e,t)))};function By(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])throw e;return(e=>{const t={code:"invalid_json",message:Cy("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:Cy("An unknown error occurred.")};throw e||t}))}const Vy={Accept:"application/json, */*;q=0.1"},$y={credentials:"include"},Wy=[(e,t)=>("string"!=typeof e.url||Dy(e.url,"_locale")||(e.url=Ry(e.url,{_locale:"user"})),"string"!=typeof e.path||Dy(e.path,"_locale")||(e.path=Ry(e.path,{_locale:"user"})),t(e)),_y,(e,t)=>{const{method:n=Ly}=e;return Fy.has(n.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":n,"Content-Type":"application/json"},method:"POST"}),t(e)},My],Uy=e=>{if(e.status>=200&&e.status<300)return e;throw e};let Hy=e=>{const{url:t,path:n,data:r,parse:o=!0,...i}=e;let{body:a,headers:l}=e;return l={...Vy,...l},r&&(a=JSON.stringify(r),l["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...$y,...i,body:a,headers:l}).then((e=>Promise.resolve(e).then(Uy).catch((e=>By(e,o))).then((e=>Ny(e,o)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:Cy("You are probably offline.")}}))};function qy(e){const t=Wy.reduceRight(((e,t)=>n=>t(n,e)),Hy);return t(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(qy.nonceEndpoint).then(Uy).then((e=>e.text())).then((t=>(qy.nonceMiddleware.nonce=t,qy(e))))))}qy.use=function(e){Wy.unshift(e)},qy.setFetchHandler=function(e){Hy=e},qy.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},qy.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce(((t,n)=>(t[Oy(n)]=e[n],t)),{});return(e,n)=>{const{parse:r=!0}=e;let o=e.path;if(!o&&e.url){const t=Ay(e.url,"rest_route");"string"==typeof t&&(o=t)}if("string"==typeof o){const n=e.method||"GET",i=Oy(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)}},qy.createRootURLMiddleware=e=>(t,n)=>_y(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})})),qy.fetchAllMiddleware=My,qy.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:Cy("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):By(t,e.parse)})).then((t=>Ny(t,e.parse)))};const Yy=qy;var Xy=n(918);const Gy=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[Qy,Ky]=qe({name:"CheckboxGroupContext",strict:!1});function Zy(e){return(0,Ve.jsx)(Ig.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,Ve.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Jy(e){return(0,Ve.jsx)(Ig.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,Ve.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function ex(e){const{isIndeterminate:t,isChecked:n,...r}=e,o=t?Jy:Zy;return n||t?(0,Ve.jsx)(Ig.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,Ve.jsx)(o,{...r})}):null}var[tx,nx]=qe({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[rx,ox]=qe({strict:!1,name:"FormControlContext"}),ix=Mg((function(t,n){const r=Bg("Form",t),o=Vn(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:Ib(t,(e=>{e&&v(!0)}))})),[f]),x=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-focus":rt(g),"data-disabled":rt(i),"data-invalid":rt(o),"data-readonly":rt(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:Ib(t,(e=>{e&&h(!0)})),"aria-live":"polite"})),[d]),k=(0,e.useCallback)(((e={},t=null)=>({...e,...l,ref:t,role:"group","data-focus":rt(g),"data-disabled":rt(i),"data-invalid":rt(o),"data-readonly":rt(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=Je("chakra-form-control",t.className);return(0,Ve.jsx)(rx,{value:l,children:(0,Ve.jsx)(tx,{value:r,children:(0,Ve.jsx)(Ig.div,{...i({},n),className:s,__css:r.container})})})}));ix.displayName="FormControl";var ax=Mg((function(e,t){const n=ox(),r=nx(),o=Je("chakra-form__helper-text",e.className);return(0,Ve.jsx)(Ig.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})}));function lx(e){var t,n,r;const o=ox(),{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:it(null==o?void 0:o.onFocus,p),onBlur:it(null==o?void 0:o.onBlur,h)}}ax.displayName="FormHelperText";var sx={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ux=()=>"undefined"!=typeof document,cx=!1,dx=null,fx=!1,px=!1,hx=new Set;function mx(e,t){hx.forEach((n=>n(e,t)))}var vx="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function gx(e){var t;fx=!0,(t=e).metaKey||!vx&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(dx="keyboard",mx("keyboard",e))}function bx(e){if(dx="pointer","mousedown"===e.type||"pointerdown"===e.type){fx=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;mx("pointer",e)}}function yx(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(fx=!0,dx="virtual")}function xx(e){e.target!==window&&e.target!==document&&(fx||px||(dx="virtual",mx("virtual",e)),fx=!1,px=!1)}function wx(){fx=!1,px=!0}function kx(){return"pointer"!==dx}function Sx(e){(function(){if(!ux()||cx)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){fx=!0,e.apply(this,t)},document.addEventListener("keydown",gx,!0),document.addEventListener("keyup",gx,!0),document.addEventListener("click",yx,!0),window.addEventListener("focus",xx,!0),window.addEventListener("blur",wx,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",bx,!0),document.addEventListener("pointermove",bx,!0),document.addEventListener("pointerup",bx,!0)):(document.addEventListener("mousedown",bx,!0),document.addEventListener("mousemove",bx,!0),document.addEventListener("mouseup",bx,!0)),cx=!0})(),e(kx());const t=()=>e(kx());return hx.add(t),()=>{hx.delete(t)}}function Ex(t={}){const n=lx(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=Ou(h),C=Ou(s),_=Ou(u),[O,P]=(0,e.useState)(!1),[T,A]=(0,e.useState)(!1),[R,I]=(0,e.useState)(!1),[z,j]=(0,e.useState)(!1);(0,e.useEffect)((()=>Sx(P)),[]);const M=(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]);nr((()=>{M.current&&(M.current.indeterminate=Boolean(m))}),[m]),Pu((()=>{r&&A(!1)}),[r,A]),nr((()=>{const e=M.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&&j(!0)}),[j]),H=(0,e.useCallback)((e=>{" "===e.key&&j(!1)}),[j]);nr((()=>{M.current&&M.current.checked!==V&&N(M.current.checked)}),[M.current]);const q=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":rt(z),"data-hover":rt(R),"data-checked":rt(V),"data-focus":rt(T),"data-focus-visible":rt(T&&O),"data-indeterminate":rt(m),"data-disabled":rt(r),"data-invalid":rt(a),"data-readonly":rt(o),"aria-hidden":!0,onMouseDown:it(e.onMouseDown,(e=>{T&&e.preventDefault(),j(!0)})),onMouseUp:it(e.onMouseUp,(()=>j(!1))),onMouseEnter:it(e.onMouseEnter,(()=>I(!0))),onMouseLeave:it(e.onMouseLeave,(()=>I(!1)))})),[z,V,r,T,O,R,m,a,o]),Y=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":rt(z),"data-hover":rt(R),"data-checked":rt(V),"data-focus":rt(T),"data-focus-visible":rt(T&&O),"data-indeterminate":rt(m),"data-disabled":rt(r),"data-invalid":rt(a),"data-readonly":rt(o)})),[z,V,r,T,O,R,m,a,o]),X=(0,e.useCallback)(((e={},t=null)=>({...S,...e,ref:Ib(t,(e=>{e&&L("LABEL"===e.tagName)})),onClick:it(e.onClick,(()=>{var e;F||(null==(e=M.current)||e.click(),requestAnimationFrame((()=>{var e;null==(e=M.current)||e.focus({preventScroll:!0})})))})),"data-disabled":rt(r),"data-checked":rt(V),"data-invalid":rt(a)})),[S,r,V,a,F]),G=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Ib(M,t),type:"checkbox",name:v,value:g,id:l,tabIndex:b,onChange:it(e.onChange,$),onBlur:it(e.onBlur,C,(()=>A(!1))),onFocus:it(e.onFocus,_,(()=>A(!0))),onKeyDown:it(e.onKeyDown,U),onKeyUp:it(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:sx})),[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:it(e.onMouseDown,Cx),"data-disabled":rt(r),"data-checked":rt(V),"data-invalid":rt(a)})),[V,r,a]);return{state:{isInvalid:a,isFocused:T,isChecked:V,isActive:z,isHovered:R,isIndeterminate:m,isDisabled:r,isReadOnly:o,isRequired:i},getRootProps:X,getCheckboxProps:q,getIndicatorProps:Y,getInputProps:G,getLabelProps:Q,htmlProps:S}}function Cx(e){e.preventDefault(),e.stopPropagation()}var _x={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Ox={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Px=Be({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Tx=Be({from:{opacity:0},to:{opacity:1}}),Ax=Be({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Rx=Mg((function(t,n){const r=Ky(),o=Bg("Checkbox",{...r,...t}),i=Vn(t),{spacing:a="0.5rem",className:l,children:s,iconColor:u,iconSize:c,icon:d=(0,Ve.jsx)(ex,{}),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}=Ex({...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?`${Tx} 20ms linear, ${Ax} 200ms linear`:`${Px} 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,Ve.jsxs)(Ig.label,{__css:{...Ox,...o.container},className:Je("chakra-checkbox",l),...S(),children:[(0,Ve.jsx)("input",{className:"chakra-checkbox__input",...x(m,n)}),(0,Ve.jsx)(Ig.span,{__css:{..._x,...o.control},className:"chakra-checkbox__control",...w(),children:_}),s&&(0,Ve.jsx)(Ig.span,{className:"chakra-checkbox__label",...k(),__css:{marginStart:a,...o.label},children:s})]})}));Rx.displayName="Checkbox";var Ix=e=>(0,Ve.jsx)(Ig.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});Ix.displayName="Circle";var zx=Be({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),jx=Be({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});Be({"0%":{left:"-40%"},"100%":{left:"100%"}}),Be({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});var Mx=e=>{const{size:t,isIndeterminate:n,...r}=e;return(0,Ve.jsx)(Ig.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:n?`${jx} 2s linear infinite`:void 0},...r})};Mx.displayName="Shape";var Fx=Mg(((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:`${zx} 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,Ve.jsxs)(Ig.div,{ref:t,className:"chakra-progress",...v.bind,...m,__css:y,children:[(0,Ve.jsxs)(Mx,{size:r,isIndeterminate:h,children:[(0,Ve.jsx)(Ix,{stroke:p,strokeWidth:d,className:"chakra-progress__track"}),(0,Ve.jsx)(Ix,{stroke:f,strokeWidth:d,className:"chakra-progress__indicator",strokeLinecap:u?"round":void 0,opacity:0!==v.value||h?void 0:0,...b})]}),c]})}));Fx.displayName="CircularProgress";var Lx=Ig("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Lx.displayName="CircularProgressLabel";var Dx=Object.defineProperty,Nx=new class{constructor(){((e,t,n)=>{((e,t,n)=>{t in e?Dx(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 Bx(t,n){const[r,o]=(0,e.useState)(0);return(0,e.useEffect)((()=>{const e=t.current;if(e){if(n){const t=Nx.add(e);o(t)}return()=>{Nx.remove(e),o(0)}}}),[n,t]),r}var Vx=new WeakMap,$x=new WeakMap,Wx={},Ux=0,Hx=function(e){return e&&(e.host||Hx(e.parentNode))},qx=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=Hx(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]);Wx[n]||(Wx[n]=new WeakMap);var i=Wx[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=(Vx.get(e)||0)+1,u=(i.get(e)||0)+1;Vx.set(e,s),i.set(e,u),a.push(e),1===s&&o&&$x.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(),Ux++,function(){a.forEach((function(e){var t=Vx.get(e)-1,o=i.get(e)-1;Vx.set(e,t),i.set(e,o),t||($x.has(e)||e.removeAttribute(r),$x.delete(e)),o||e.removeAttribute(n)})),--Ux||(Vx=new WeakMap,Vx=new WeakMap,$x=new WeakMap,Wx={})}}(r,o,n,"aria-hidden")):function(){return null}};function Yx(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 qx(t.current)}),[n,t,r])}(c,n&&l);const m=Bx(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:Ib(t,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?p:void 0,"aria-describedby":w?h:void 0,onClick:it(e.onClick,(e=>e.stopPropagation()))})),[h,w,f,p,y]),E=(0,e.useCallback)((e=>{e.stopPropagation(),v.current===e.target&&Nx.isTopModal(c.current)&&(i&&(null==r||r()),null==s||s())}),[r,i,s]),C=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Ib(t,d),onClick:it(e.onClick,E),onKeyDown:it(e.onKeyDown,b),onMouseDown:it(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[Xx,Gx]=qe({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[Qx,Kx]=qe({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Zx=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=Bg("Modal",t),v={...Yx(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:s,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return(0,Ve.jsx)(Qx,{value:v,children:(0,Ve.jsx)(Xx,{value:m,children:(0,Ve.jsx)(fb,{onExitComplete:h,children:v.isOpen&&(0,Ve.jsx)(yb,{...n,children:r})})})})};Zx.displayName="Modal";var Jx={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ew={enter:{duration:.2,ease:Jx.easeOut},exit:{duration:.1,ease:Jx.easeIn}},tw=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),nw=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),rw={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:null!=(r=null==e?void 0:e.enter)?r:tw(ew.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:nw(ew.exit,n),transitionEnd:null==t?void 0:t.exit}}},ow={initial:"exit",animate:"enter",exit:"exit",variants:rw},iw=(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,Ve.jsx)(fb,{custom:d,children:c&&(0,Ve.jsx)(bg.div,{ref:t,className:Je("chakra-fade",o),custom:d,...ow,animate:u,...s})})}));iw.displayName="Fade";var aw=Ig(bg.div),lw=Mg(((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=Je("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Gx().overlay},{motionPreset:s}=Kx(),u=o||("none"===s?{}:ow);return(0,Ve.jsx)(aw,{...u,__css:l,ref:t,className:a,...i})}));lw.displayName="ModalOverlay";var sw={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:nw(ew.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:tw(ew.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:nw(ew.exit,i),...o?{...l,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...l,...null==r?void 0:r.exit}}}}},uw={initial:"initial",animate:"enter",exit:"exit",variants:sw},cw=(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,Ve.jsx)(fb,{custom:h,children:f&&(0,Ve.jsx)(bg.div,{ref:t,className:Je("chakra-offset-slide",i),custom:h,...uw,animate:p,...d})})}));cw.displayName="SlideFade";var dw={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:nw(ew.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:tw(ew.enter,n),transitionEnd:null==e?void 0:e.enter}}},fw={initial:"exit",animate:"enter",exit:"exit",variants:dw},pw=(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,Ve.jsx)(fb,{custom:p,children:d&&(0,Ve.jsx)(bg.div,{ref:t,className:Je("chakra-offset-slide",a),...fw,animate:f,custom:p,...c})})}));pw.displayName="ScaleFade";var hw={slideInBottom:{...uw,custom:{offsetY:16,reverse:!0}},slideInRight:{...uw,custom:{offsetX:16,reverse:!0}},slideInTop:{...uw,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...uw,custom:{offsetX:-16,reverse:!0}},scale:{...fw,custom:{initialScale:.95,reverse:!0}},none:{}},mw=Ig(bg.section),vw=e=>hw[e||"none"],gw=(0,e.forwardRef)(((e,t)=>{const{preset:n,motionProps:r=vw(n),...o}=e;return(0,Ve.jsx)(mw,{ref:t,...r,...o})}));function bw(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}gw.displayName="ModalTransition";var yw="data-focus-lock",xw="data-focus-lock-disabled";function ww(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var kw="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Sw=new WeakMap;function Ew(t,n){var r,o,i,a=(r=n||null,o=function(e){return t.forEach((function(t){return ww(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 kw((function(){var e=Sw.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach((function(e){r.has(e)||ww(e,null)})),r.forEach((function(e){n.has(e)||ww(e,o)}))}Sw.set(a,t)}),[t]),a}var Cw={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function _w(e){return e}function Ow(e,t){void 0===t&&(t=_w);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 Pw(e,t){return void 0===t&&(t=_w),Ow(e,t)}function Tw(e){void 0===e&&(e={});var t=Ow(null);return t.options=Lu({async:!0,ssr:!1},e),t}var Aw=Pw({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Rw=Pw(),Iw=Pw(),zw=Tw({async:!0,ssr:"undefined"!=typeof document}),jw=(0,e.createContext)(void 0),Mw=[],Fw=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===_?Mw:_,P=t.as,T=void 0===P?"div":P,A=t.lockProps,R=void 0===A?{}:A,I=t.sideCar,z=t.returnFocus,j=void 0!==z&&z,M=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 j?j(n):j;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)}}}),[j]),$=e.useCallback((function(e){s.current&&Aw.useMedium(e)}),[]),W=Rw.useMedium,U=e.useCallback((function(e){l.current!==e&&(l.current=e,a(e))}),[]),H=ie(((r={})[xw]=p&&"disabled",r[yw]=k,r),R),q=!0!==m,Y=q&&"tail"!==m,X=Ew([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:Cw}),C?e.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:Cw}):null],!p&&e.createElement(I,{id:D,sideCar:zw,observed:i,disabled:p,persistentFocus:g,crossFrame:y,autoFocus:w,whiteList:E,shards:O,onActivation:N,onDeactivation:B,returnFocus:V,focusOptions:M,noFocusGuards:m}),e.createElement(T,ie({ref:X},H,{className:S,onBlur:W,onFocus:$}),e.createElement(jw.Provider,{value:G},d)),Y&&e.createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:Cw}))}));Fw.propTypes={};const Lw=Fw;function Dw(e,t){return Dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dw(e,t)}function Nw(e){return Nw="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},Nw(e)}function Bw(e){var t=function(e){if("object"!=Nw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nw(t)?t:t+""}function Vw(e,t,n){return(t=Bw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $w=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Ww=function(e){return Array.isArray(e)?e:[e]},Uw=function(e){return Array.isArray(e)?e[0]:e},Hw=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},qw=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Yw=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!e||qw(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(Hw(e))}(t,Yw.bind(void 0,e));return e.set(t,r),r},Xw=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!qw(e))||!!Zw(e)&&t(Hw(e))}(t,Xw.bind(void 0,e));return e.set(t,r),r},Gw=function(e){return e.dataset},Qw=function(e){return"INPUT"===e.tagName},Kw=function(e){return Qw(e)&&"radio"===e.type},Zw=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},Jw=function(e){var t;return Boolean(e&&(null===(t=Gw(e))||void 0===t?void 0:t.focusGuard))},ek=function(e){return!Jw(e)},tk=function(e){return Boolean(e)},nk=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},rk=function(e,t,n){return $w(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(nk)},ok=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),ik="".concat(ok,", [data-focus-guard]"),ak=function(e,t){return $w((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?ik:ok)?[n]:[],ak(n))}),[])},lk=function(e,t){return e.reduce((function(e,n){var r,o=ak(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)?lk([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,n.parentNode?$w(n.parentNode.querySelectorAll(ok)).filter((function(e){return e===n})):[])}),[])},sk=function(e,t){return $w(e).filter((function(e){return Yw(t,e)})).filter((function(e){return function(e){return!((Qw(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},uk=function(e,t){return void 0===t&&(t=new Map),$w(e).filter((function(e){return Xw(t,e)}))},ck=function(e,t,n){return rk(sk(lk(e,n),t),!0,n)},dk=function(e,t){return rk(sk(lk(e),t),!1)},fk=function(e,t){return e.shadowRoot?fk(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||$w(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&&fk(r,t)}return fk(e,t)}))},pk=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?pk(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?pk(t.contentWindow.document):t}},hk=function(e){return e.parentNode?hk(e.parentNode):e},mk=function(e){return Ww(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(yw);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)}))}($w(hk(t).querySelectorAll("[".concat(yw,'="').concat(n,'"]:not([').concat(xw,'="disabled"])')))):[t]),e}),[])},vk=function(e,t){return void 0===t&&(t=pk(Uw(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&mk(e).some((function(e){return fk(e,t)||function(e,t){return Boolean($w(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},gk=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},bk=function(e,t){return Kw(e)&&e.name?function(e,t){return t.filter(Kw).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},yk=function(e){return e[0]&&e.length>1?bk(e[0],e):e[0]},xk=function(e,t){return e.indexOf(bk(t,e))},wk="NEW_FOCUS",kk=function(e,t,n){var r,o=e.map((function(e){return e.node})),i=uk(o.filter((r=n,function(e){var t,n=null===(t=Gw(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?yk(i):yk(uk(t))},Sk=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Sk(e.parentNode.host||e.parentNode,t),t},Ek=function(e,t){for(var n=Sk(e),r=Sk(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},Ck=function(e,t,n){var r=Ww(e),o=Ww(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=Ek(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Ek(i,e);t&&(a=!a||fk(t,a)?t:Ek(t,a))}))})),a},_k=function(e,t){return e.reduce((function(e,n){return e.concat(function(e,t){return sk((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),$w(n).map((function(e){return lk([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n}(n,t))}),[])},Ok=function(e,t){var n=pk(Ww(e).length>0?document:Uw(e).ownerDocument),r=mk(e).filter(ek),o=Ck(n||e,e,r),i=new Map,a=dk(r,i),l=a.filter((function(e){var t=e.node;return ek(t)}));if(l[0]){var s,u,c,d=dk([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(tk)),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=Jw(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:wk;if(-1===d)return wk;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(bk(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=xk(e,t[0]),x=xk(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===wk){var v=kk(a,h,_k(r,i))||kk(a,p,_k(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]}},Pk=0,Tk=!1,Ak=function(e,t,n){void 0===n&&(n={});var r=Ok(e,t);if(!Tk&&r){if(Pk>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"),Tk=!0,void setTimeout((function(){Tk=!1}),1);Pk++,gk(r.node,n.focusOptions),Pk--}};function Rk(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var Ik=function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Rk(n),parent:Rk(n.parentElement),left:Rk(n.previousElementSibling),right:Rk(n.nextElementSibling)}),n=n.parentElement;return{element:Rk(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=ck([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)}},zk=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=Ww(t);if(r.every((function(t){return!fk(t,e)})))return console.error("Active element is not contained in the scope"),{};var o=n?ck(r,new Map):dk(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&&gk(i.node,r.focusOptions)}},jk=function(e,t,n){var r,o,i,a,l=(o=e,i=null===(r=t.onlyTabbable)||void 0===r||r,{first:(a=i?ck(Ww(o),new Map):dk(Ww(o),new Map))[0],last:a[a.length-1]})[n];l&&gk(l.node,t.focusOptions)};function Mk(e){setTimeout(e,1)}var Fk=function(e){return e&&"current"in e?e.current:e},Lk=function(){return document&&document.activeElement===document.body},Dk=null,Nk=null,Bk=function(){return null},Vk=null,$k=!1,Wk=!1,Uk=function(){return!0};function Hk(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 qk=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Yk=function(e){return dk(e,new Map)},Xk=function(){var e,t,n,r,o,i,a=!1;if(Dk){var l=Dk,s=l.observed,u=l.persistentFocus,c=l.autoFocus,d=l.shards,f=l.crossFrame,p=l.focusOptions,h=l.noFocusGuards,m=s||Vk&&Vk.portaledElement;if(Lk()&&Nk&&(!document.body.contains(Nk)||function(e){return!Yk([e.parentNode]).some((function(t){return t.node===e}))}(Nk))){Nk=null;var v=Bk();v&&v.focus()}var g=document&&document.activeElement;if(m){var b=[m].concat(d.map(Fk).filter(Boolean));if(g&&!function(e){return(Dk.whiteList||Uk)(e)}(g)||(u||function(){if(!(f?Boolean($k):"meanwhile"===$k)||!h||!Nk||Wk)return!1;var e=Yk(b),t=e.findIndex((function(e){return e.node===Nk}));return 0===t||t===e.length-1}()||!(Lk()||function(e){void 0===e&&(e=document);var t=pk(e);return!!t&&$w(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return fk(e,t)}))}())||!Nk&&c)&&(m&&!(vk(b)||g&&function(e,t){return t.some((function(t){return qk(e,t,t)}))}(g,b)||(i=g,Vk&&Vk.portaledElement===i))&&(document&&!Nk&&g&&!c?(g.blur&&g.blur(),document.body.focus()):(a=Ak(b,Nk,{focusOptions:p}),Vk={})),$k=!1,Nk=document&&document.activeElement,Bk=Ik(Nk)),document&&g!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var y=document&&document.activeElement,x=(t=mk(e=b).filter(ek),n=Ck(e,e,t),r=rk(lk([n],!0),!0,!0),o=lk(t,!1),r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:Jw(t)}}))),w=x.map((function(e){return e.node})).indexOf(y);w>-1&&(x.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Hk(w,x.length,1,x),Hk(w,-1,-1,x))}}}return a},Gk=function(e){Xk()&&e&&(e.stopPropagation(),e.preventDefault())},Qk=function(){return Mk(Xk)},Kk=function(){Wk=!0},Zk=function(){Wk=!1,$k="just",Mk((function(){$k="meanwhile"}))},Jk={moveFocusInside:Ak,focusInside:vk,focusNextElement:function(e,t){void 0===t&&(t={}),zk(e,t,(function(e,t){var n=e.next,r=e.first;return n||t&&r}))},focusPrevElement:function(e,t){void 0===t&&(t={}),zk(e,t,(function(e,t){var n=e.prev,r=e.last;return n||t&&r}))},focusFirstElement:function(e,t){void 0===t&&(t={}),jk(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),jk(e,t,"last")},captureFocusRestore:Ik};Aw.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Vk={observerNode:n,portaledElement:t})})),Rw.assignMedium(Qk),Iw.assignMedium((function(e){return e(Jk)}));const eS=(tS=function(e){return e.filter((function(e){return!e.disabled}))},nS=function(e){var t=e.slice(-1)[0];t&&!Dk&&(document.addEventListener("focusin",Gk),document.addEventListener("focusout",Qk),window.addEventListener("focus",Kk),window.addEventListener("blur",Zk));var n=Dk,r=n&&t&&t.id===n.id;Dk=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Nk=null,r&&n.observed===t.observed||t.onActivation(Jk),Xk(),Mk(Xk)):(document.removeEventListener("focusin",Gk),document.removeEventListener("focusout",Qk),window.removeEventListener("focus",Kk),window.removeEventListener("blur",Zk),Nk=null)},function(n){var r,o=[];function i(){r=tS(o.map((function(e){return e.props}))),nS(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,Dw(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 Vw(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),a})((function(){return null}));var tS,nS,rS=e.forwardRef((function(t,n){return e.createElement(Lw,ie({sideCar:eS,ref:n},t))})),oS=Lw.propTypes||{};oS.sideCar,bw(oS,["sideCar"]),rS.propTypes={};const iS=rS;function aS(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function lS(e){var t;return!!aS(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function sS(e){return aS(e)?e.ownerDocument:document}var uS=e=>e.hasAttribute("tabindex"),cS=e=>uS(e)&&-1===e.tabIndex;function dS(e){return!(!e.parentElement||!dS(e.parentElement))||e.hidden}function fS(e){if(!lS(e)||dS(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)||uS(e)}var pS,hS=["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 mS=null!=(pS=iS.default)?pS:iS,vS=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(hS));return t.unshift(e),t.filter((e=>fS(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,Ve.jsx)(mS,{crossFrame:c,persistentFocus:u,autoFocus:s,disabled:l,onActivation:d,onDeactivation:f,returnFocus:p,children:a})};vS.displayName="FocusLock";var gS="right-scroll-bar-position",bS="width-before-scroll-bar",yS=Tw(),xS=function(){},wS=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:xS,onWheelCapture:xS,onTouchMoveCapture:xS}),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=Du(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,k=Ew([r,n]),S=Lu(Lu({},x),i);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:yS,removeScrollBar:c,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:y}),l?e.cloneElement(e.Children.only(s),Lu(Lu({},S),{ref:k})):e.createElement(b,Lu({},S,{className:u,ref:k}),s))}));wS.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},wS.classNames={fullWidth:bS,zeroRight:gS};var kS=function(t){var n=t.sideCar,r=Du(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,Lu({},r))};kS.isSideCarExport=!0;var SS=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)}}},ES=function(){var t,n=(t=SS(),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}},CS={left:0,top:0,right:0,gap:0},_S=function(e){return parseInt(e||"",10)||0},OS=ES(),PS="data-scroll-locked",TS=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(PS,"] {\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(gS," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(bS," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(gS," .").concat(gS," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(bS," .").concat(bS," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(PS,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},AS=function(){var e=parseInt(document.body.getAttribute(PS)||"0",10);return isFinite(e)?e:0},RS=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(PS,(AS()+1).toString()),function(){var e=AS()-1;e<=0?document.body.removeAttribute(PS):document.body.setAttribute(PS,e.toString())}}),[]);var a=e.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return CS;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[_S(n),_S(r),_S(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(OS,{styles:TS(a,!n,i,r?"":"!important")})},IS=!1;if("undefined"!=typeof window)try{var zS=Object.defineProperty({},"passive",{get:function(){return IS=!0,!0}});window.addEventListener("test",zS,zS),window.removeEventListener("test",zS,zS)}catch(e){IS=!1}var jS=!!IS&&{passive:!1},MS=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])},FS=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),LS(e,r)){var o=DS(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},LS=function(e,t){return"v"===e?function(e){return MS(e,"overflowY")}(t):function(e){return MS(e,"overflowX")}(t)},DS=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)},NS=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BS=function(e){return[e.deltaX,e.deltaY]},VS=function(e){return e&&"current"in e?e.current:e},$S=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},WS=0,US=[];function HS(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qS=(YS=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(WS++)[0],a=e.useState(ES)[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=Bu([t.lockRef.current],(t.shards||[]).map(VS),!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=NS(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=FS(d,c);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=FS(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){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,l=t.contains(a),s=!1,u=i>0,c=0,d=0;do{var f=DS(e,a),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&LS(e,a)&&(c+=h,d+=p),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(Math.abs(c)<1||!1)||!u&&(Math.abs(d)<1||!1))&&(s=!0),s}(p,t,e,"h"===p?s:u)}),[]),u=e.useCallback((function(e){var t=e;if(US.length&&US[US.length-1]===a){var r="deltaY"in t?BS(t):NS(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(VS).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:HS(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=NS(e),o.current=void 0}),[]),f=e.useCallback((function(e){c(e.type,BS(e),e.target,s(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){c(e.type,NS(e),e.target,s(e,t.lockRef.current))}),[]);e.useEffect((function(){return US.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,jS),document.addEventListener("touchmove",u,jS),document.addEventListener("touchstart",d,jS),function(){US=US.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,jS),document.removeEventListener("touchmove",u,jS),document.removeEventListener("touchstart",d,jS)}}),[]);var h=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(a,{styles:$S(i)}):null,h?e.createElement(RS,{gapMode:t.gapMode}):null)},yS.useMedium(YS),kS);var YS,XS=e.forwardRef((function(t,n){return e.createElement(wS,Lu({},t,{ref:n,sideCar:qS}))}));XS.classNames=wS.classNames;const GS=XS;function QS(t){const{autoFocus:n,trapFocus:r,dialogRef:o,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:l,finalFocusRef:s,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=Kx(),[p,h]=Ru();(0,e.useEffect)((()=>{!p&&h&&setTimeout(h)}),[p,h]);const m=Bx(o,f);return(0,Ve.jsx)(vS,{autoFocus:n,isDisabled:!r,initialFocusRef:i,finalFocusRef:s,restoreFocus:u,contentRef:o,lockFocusAcrossFrames:d,children:(0,Ve.jsx)(GS,{removeScrollBar:!c,allowPinchZoom:l,enabled:1===m&&a,forwardProps:!0,children:t.children})})}var KS=Mg(((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:l,getDialogContainerProps:s}=Kx(),u=l(a,t),c=s(o),d=Je("chakra-modal__content",n),f=Gx(),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}=Kx();return(0,Ve.jsx)(QS,{children:(0,Ve.jsx)(Ig.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:h,children:(0,Ve.jsx)(gw,{preset:m,motionProps:i,className:d,...u,__css:p,children:r})})})}));KS.displayName="ModalContent";var ZS=Mg(((t,n)=>{const{className:r,...o}=t,{headerId:i,setHeaderMounted:a}=Kx();(0,e.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const l=Je("chakra-modal__header",r),s={flex:0,...Gx().header};return(0,Ve.jsx)(Ig.header,{ref:n,className:l,id:i,...o,__css:s})}));ZS.displayName="ModalHeader";var JS=Mg(((t,n)=>{const{className:r,...o}=t,{bodyId:i,setBodyMounted:a}=Kx();(0,e.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const l=Je("chakra-modal__body",r),s=Gx();return(0,Ve.jsx)(Ig.div,{ref:n,className:l,id:i,...o,__css:s.body})}));JS.displayName="ModalBody";var eE=Mg(((e,t)=>{const{className:n,...r}=e,o=Je("chakra-modal__footer",n),i={display:"flex",alignItems:"center",justifyContent:"flex-end",...Gx().footer};return(0,Ve.jsx)(Ig.footer,{ref:t,...r,__css:i,className:o})}));eE.displayName="ModalFooter";var tE=(0,e.createContext)(),nE=function(n){var r=n.reducer,o=n.initialState,i=n.children;return t().createElement(tE.Provider,{value:(0,e.useReducer)(r,o)},i)},rE=function(){return(0,e.useContext)(tE)};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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iE(Object(n),!0).forEach((function(t){lE(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}function lE(e,t,n){return(t=function(e){var t=function(e){if("object"!=oE(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oE(n))return n;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}var sE="GET_SETTINGS",uE="GET_INSTALL_PAGE",cE="GET_DEFAULT_FORM",dE="GET_DEFAULT_REGISTRATION_PAGE",fE="GET_IS_PRO";function pE(e){return pE="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},pE(e)}function hE(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 mE(e,t,n){return(t=function(e){var t=function(e){if("object"!=pE(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pE(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vE(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 gE(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)?gE(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 gE(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 bE=function(n){var r=vE(rE(),2),o=r[0],i=o.settings,a=(o.isPro,r[1]),l=vE((0,e.useState)(n),2),s=l[0],u=l[1],c=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hE(Object(n),!0).forEach((function(t){mE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i);t.user_registration_allow_usage_tracking="allow"===e?"yes":"no",a({type:sE,settings:t})};return t().createElement(Zx,{isOpen:s,size:"xl",isCentered:!0},t().createElement(lw,null),t().createElement(KS,null,t().createElement(ZS,null,"Contribute to the enhancement"),t().createElement(JS,null,t().createElement(Ob,{fontSize:"16px"},t().createElement(Ob,{fontSize:"16px"},Cy("Help us improve the plugin's features by sharing","user-registration")," ",t().createElement(Fb,{href:"https://docs.wpuserregistration.com/docs/miscellaneous-settings/#1-toc-title",isExternal:!0,color:"#475BB2"},Cy("non-sensitive plugin data","user-registration")," "),Cy("with us.","user-registration")))),t().createElement(eE,null,t().createElement(jb,{variant:"ghost",onClick:function(){c("disallow"),u(!1)}},"No Thanks"),t().createElement(jb,{colorScheme:"blue",mr:3,onClick:function(){c("allow"),u(!1)}},"Allow"))))};function yE(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 xE(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)?xE(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 xE(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 wE=function(){var n=yE(rE(),1)[0],r=n.installPage,o=n.defaultFormId,i=yE((0,e.useState)(0),2),a=i[0],l=i[1],s=yE((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(Lb,{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(Cb,{justify:"space-between",align:"center"},t().createElement(Rx,{isChecked:"installed"===e.status,isReadOnly:!0},t().createElement(Ob,{fontSize:"15px",fontWeight:600,color:"installed"===e.status?"#383838":"#BABABA"},Cy("registration_page"===n?"Registration Page":"My Account Page","user-registration")),"not_installed"!==e.status&&t().createElement(Ob,{fontSize:"13px",color:"#6B6B6B"},e.slug)),"installing"===e.status?t().createElement(Cb,{align:"center"},t().createElement(Ob,{fontSize:"12px",color:"#475BB2"},Cy("Installing...","user-registration")),t().createElement(Fx,{value:a,size:"30px",thickness:"15px",color:"blue.300",ml:3},t().createElement(Lx,null,a," %"))):"installed"===e.status&&t().createElement(Ob,{fontSize:"12px",color:"#475BB2"},Cy("Installed","user-registration"))))};return t().createElement(e.Fragment,null,u?"":t().createElement(bE,{openPopup:!0}),t().createElement(Lb,{bg:"#F8F9FC",w:"100%",p:4,color:"#383838",mt:3,borderRadius:"md"},t().createElement(Cb,{justify:"space-between",align:"center"},t().createElement(Rx,{isChecked:!0,isReadOnly:!0},t().createElement(Ob,{fontSize:"15px",fontWeight:600,color:"#383838"},Cy("Default Registration Form","user-registration")),o&&t().createElement(Ob,{fontSize:"13px",color:"#6B6B6B"},"Form id : ",o)),t().createElement(Cb,{align:"center"},t().createElement(Ob,{fontSize:"12px",color:"#475BB2"},Cy("Installed","user-registration"))))),c(r.registration_page,"registration_page"),c(r.my_account_page,"my_account_page"))};var kE=e=>(0,Ve.jsx)(Ig.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});kE.displayName="StackItem";var SE=Object.freeze(["base","sm","md","lg","xl","2xl"]),EE=Mg(((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))):et(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,Ve.jsx)(kE,{children:n},o):n;if(!v)return a;const l=(0,e.cloneElement)(c,{__css:m}),s=i?null:l;return(0,Ve.jsxs)(e.Fragment,{children:[a,s]},o)}))}),[c,m,v,g,f,u]),y=Je("chakra-stack",d);return(0,Ve.jsx)(Ig.div,{ref:n,display:"flex",alignItems:i,justifyContent:a,flexDirection:h,flexWrap:s,gap:v?void 0:l,className:y,...p,children:b})}));function CE(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&&et(e)&&et(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:Ib(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}}EE.displayName="Stack";var[_E,OE]=qe({name:"RadioGroupContext",strict:!1}),PE=Mg(((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}=CE(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,Ve.jsx)(_E,{value:v,children:(0,Ve.jsx)(Ig.div,{...p(m,n),className:Je("chakra-radio-group",l),children:a})})}));PE.displayName="RadioGroup";var TE={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function AE(e){e.preventDefault(),e.stopPropagation()}var RE=Mg((function(e,t){const{htmlWidth:n,htmlHeight:r,alt:o,...i}=e;return(0,Ve.jsx)("img",{width:n,height:r,ref:t,alt:o,...i})}));function IE(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}RE.displayName="NativeImage";var zE=Mg((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 nr((()=>{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:IE(h,["onError","onLoad"])};return g?o||(0,Ve.jsx)(Ig.img,{as:RE,className:"chakra-image__placeholder",src:r,...b}):(0,Ve.jsx)(Ig.img,{as:RE,src:i,srcSet:a,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...b})}));zE.displayName="Image";var jE=Mg((function(t,n){const r=Bg("Switch",t),{spacing:o="0.5rem",children:i,...a}=Vn(t),{getIndicatorProps:l,getInputProps:s,getCheckboxProps:u,getRootProps:c,getLabelProps:d}=Ex(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,Ve.jsxs)(Ig.label,{...c(),className:Je("chakra-switch",t.className),__css:f,children:[(0,Ve.jsx)("input",{className:"chakra-switch__input",...s({},n)}),(0,Ve.jsx)(Ig.span,{...u(),className:"chakra-switch__track",__css:p,children:(0,Ve.jsx)(Ig.span,{__css:r.thumb,className:"chakra-switch__thumb",...l()})}),i&&(0,Ve.jsx)(Ig.span,{className:"chakra-switch__label",...d(),__css:h,children:i})]})}));jE.displayName="Switch";var ME=Mg(((e,t)=>(0,Ve.jsx)(EE,{align:"center",...e,direction:"row",ref:t})));ME.displayName="HStack";var FE=Mg((function(e,t){var n;const r=Ng("FormLabel",e),o=Vn(e),{className:i,children:a,requiredIndicator:l=(0,Ve.jsx)(LE,{}),optionalIndicator:s=null,...u}=o,c=ox(),d=null!=(n=null==c?void 0:c.getLabelProps(u,t))?n:{ref:t,...u};return(0,Ve.jsxs)(Ig.label,{...d,className:Je("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r},children:[a,(null==c?void 0:c.isRequired)?l:s]})}));FE.displayName="FormLabel";var LE=Mg((function(e,t){const n=ox(),r=nx();if(!(null==n?void 0:n.isRequired))return null;const o=Je("chakra-form__required-indicator",e.className);return(0,Ve.jsx)(Ig.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:r.requiredIndicator,className:o})}));LE.displayName="RequiredIndicator";var DE={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 NE(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:lS(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:NE(function(e){return"html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}(e))}var BE=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),VE={arrowShadowColor:BE("--popper-arrow-shadow-color"),arrowSize:BE("--popper-arrow-size","8px"),arrowSizeHalf:BE("--popper-arrow-size-half"),arrowBg:BE("--popper-arrow-bg"),transformOrigin:BE("--popper-transform-origin"),arrowOffset:BE("--popper-arrow-offset")},$E={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"},WE={scroll:!0,resize:!0};function UE(e){let t;return t="object"==typeof e?{enabled:!0,options:{...WE,...e}}:{enabled:e,options:WE},t}var HE={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`}},qE={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{YE(e)},effect:({state:e})=>()=>{YE(e)}},YE=e=>{var t;e.elements.popper.style.setProperty(VE.transformOrigin.var,(t=e.placement,$E[t]))},XE={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{GE(e)}},GE=e=>{var t;if(!e.placement)return;const n=QE(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:VE.arrowSize.varRef,height:VE.arrowSize.varRef,zIndex:-1});const t={[VE.arrowSizeHalf.var]:`calc(${VE.arrowSize.varRef} / 2 - 1px)`,[VE.arrowOffset.var]:`calc(${VE.arrowSizeHalf.varRef} * -1)`};for(const n in t)e.elements.arrow.style.setProperty(n,t[n])}},QE=e=>e.startsWith("top")?{property:"bottom",value:VE.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:VE.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:VE.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:VE.arrowOffset.varRef}:void 0,KE={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{ZE(e)},effect:({state:e})=>()=>{ZE(e)}},ZE=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:VE.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},JE={"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"}},eC={"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 tC(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nC(e){return e instanceof tC(e).Element||e instanceof Element}function rC(e){return e instanceof tC(e).HTMLElement||e instanceof HTMLElement}function oC(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tC(e).ShadowRoot||e instanceof ShadowRoot)}var iC=Math.max,aC=Math.min,lC=Math.round;function sC(){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 uC(){return!/^((?!chrome|android).)*safari/i.test(sC())}function cC(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&rC(e)&&(o=e.offsetWidth>0&&lC(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&lC(r.height)/e.offsetHeight||1);var a=(nC(e)?tC(e):window).visualViewport,l=!uC()&&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 dC(e){var t=tC(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fC(e){return e?(e.nodeName||"").toLowerCase():null}function pC(e){return((nC(e)?e.ownerDocument:e.document)||window.document).documentElement}function hC(e){return cC(pC(e)).left+dC(e).scrollLeft}function mC(e){return tC(e).getComputedStyle(e)}function vC(e){var t=mC(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function gC(e,t,n){void 0===n&&(n=!1);var r=rC(t),o=rC(t)&&function(e){var t=e.getBoundingClientRect(),n=lC(t.width)/e.offsetWidth||1,r=lC(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=pC(t),a=cC(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==fC(t)||vC(i))&&(l=function(e){return e!==tC(e)&&rC(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:dC(e);var t}(t)),rC(t)?((s=cC(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=hC(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function bC(e){var t=cC(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 yC(e){return"html"===fC(e)?e:e.assignedSlot||e.parentNode||(oC(e)?e.host:null)||pC(e)}function xC(e){return["html","body","#document"].indexOf(fC(e))>=0?e.ownerDocument.body:rC(e)&&vC(e)?e:xC(yC(e))}function wC(e,t){var n;void 0===t&&(t=[]);var r=xC(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=tC(r),a=o?[i].concat(i.visualViewport||[],vC(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(wC(yC(a)))}function kC(e){return["table","td","th"].indexOf(fC(e))>=0}function SC(e){return rC(e)&&"fixed"!==mC(e).position?e.offsetParent:null}function EC(e){for(var t=tC(e),n=SC(e);n&&kC(n)&&"static"===mC(n).position;)n=SC(n);return n&&("html"===fC(n)||"body"===fC(n)&&"static"===mC(n).position)?t:n||function(e){var t=/firefox/i.test(sC());if(/Trident/i.test(sC())&&rC(e)&&"fixed"===mC(e).position)return null;var n=yC(e);for(oC(n)&&(n=n.host);rC(n)&&["html","body"].indexOf(fC(n))<0;){var r=mC(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 CC="top",_C="bottom",OC="right",PC="left",TC="auto",AC=[CC,_C,OC,PC],RC="start",IC="end",zC="viewport",jC="popper",MC=AC.reduce((function(e,t){return e.concat([t+"-"+RC,t+"-"+IC])}),[]),FC=[].concat(AC,[TC]).reduce((function(e,t){return e.concat([t,t+"-"+RC,t+"-"+IC])}),[]),LC=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function DC(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 NC={placement:"bottom",modifiers:[],strategy:"absolute"};function BC(){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 VC(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?NC:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},NC,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:nC(e)?wC(e):e.contextElement?wC(e.contextElement):[],popper:wC(t)};var a,u,f=function(e){var t=DC(e);return LC.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(BC(t,n)){l.rects={reference:gC(t,EC(n),"fixed"===l.options.strategy),popper:bC(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(!BC(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 $C={passive:!0};const WC={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=tC(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,$C)})),l&&s.addEventListener("resize",n.update,$C),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,$C)})),l&&s.removeEventListener("resize",n.update,$C)}},data:{}};function UC(e){return e.split("-")[0]}function HC(e){return e.split("-")[1]}function qC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function YC(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?UC(o):null,a=o?HC(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case CC:t={x:l,y:n.y-r.height};break;case _C:t={x:l,y:n.y+n.height};break;case OC:t={x:n.x+n.width,y:s};break;case PC:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?qC(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case RC:t[u]=t[u]-(n[c]/2-r[c]/2);break;case IC:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}const XC={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=YC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var GC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QC(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=PC,x=CC,w=window;if(u){var k=EC(n),S="clientHeight",E="clientWidth";k===tC(n)&&"static"!==mC(k=pC(n)).position&&"absolute"===l&&(S="scrollHeight",E="scrollWidth"),(o===CC||(o===PC||o===OC)&&i===IC)&&(x=_C,m-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[S])-r.height,m*=s?1:-1),o!==PC&&(o!==CC&&o!==_C||i!==IC)||(y=OC,p-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-r.width,p*=s?1:-1)}var C,_=Object.assign({position:l},u&&GC),O=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:lC(n*o)/o||0,y:lC(r*o)/o||0}}({x:p,y:m},tC(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 KC={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:UC(t.placement),variation:HC(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,QC(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,QC(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:{}},ZC={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];rC(o)&&fC(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}),{});rC(r)&&fC(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},JC={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=FC.reduce((function(e,n){return e[n]=function(e,t,n){var r=UC(e),o=[PC,CC].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,[PC,OC].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 e_={left:"right",right:"left",bottom:"top",top:"bottom"};function t_(e){return e.replace(/left|right|bottom|top/g,(function(e){return e_[e]}))}var n_={start:"end",end:"start"};function r_(e){return e.replace(/start|end/g,(function(e){return n_[e]}))}function o_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&oC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function i_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function a_(e,t,n){return t===zC?i_(function(e,t){var n=tC(e),r=pC(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=uC();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+hC(e),y:s}}(e,n)):nC(t)?function(e,t){var n=cC(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):i_(function(e){var t,n=pC(e),r=dC(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=iC(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=iC(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+hC(e),s=-r.scrollTop;return"rtl"===mC(o||n).direction&&(l+=iC(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(pC(e)))}function l_(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function s_(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function u_(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?zC:u,d=n.elementContext,f=void 0===d?jC:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,v=void 0===m?0:m,g=l_("number"!=typeof v?v:s_(v,AC)),b=f===jC?"reference":jC,y=e.rects.popper,x=e.elements[h?b:f],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=wC(yC(e)),n=["absolute","fixed"].indexOf(mC(e).position)>=0&&rC(e)?EC(e):e;return nC(n)?t.filter((function(e){return nC(e)&&o_(e,n)&&"body"!==fC(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=a_(e,n,r);return t.top=iC(o.top,t.top),t.right=aC(o.right,t.right),t.bottom=aC(o.bottom,t.bottom),t.left=iC(o.left,t.left),t}),a_(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}(nC(x)?x:x.contextElement||pC(e.elements.popper),s,c,a),k=cC(e.elements.reference),S=YC({reference:k,element:y,strategy:"absolute",placement:o}),E=i_(Object.assign({},y,S)),C=f===jC?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===jC&&O){var P=O[o];Object.keys(_).forEach((function(e){var t=[OC,_C].indexOf(e)>=0?1:-1,n=[CC,_C].indexOf(e)>=0?"y":"x";_[e]+=P[n]*t}))}return _}const c_={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=UC(v),b=s||(g!==v&&h?function(e){if(UC(e)===TC)return[];var t=t_(e);return[r_(e),t,r_(t)]}(v):[t_(v)]),y=[v].concat(b).reduce((function(e,n){return e.concat(UC(n)===TC?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?FC:s,c=HC(r),d=c?l?MC:MC.filter((function(e){return HC(e)===c})):AC,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]=u_(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[UC(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=UC(_),P=HC(_)===RC,T=[CC,_C].indexOf(O)>=0,A=T?"width":"height",R=u_(t,{placement:_,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),I=T?P?OC:PC:P?_C:CC;x[A]>w[A]&&(I=t_(I));var z=t_(I),j=[];if(i&&j.push(R[O]<=0),l&&j.push(R[I]<=0,R[z]<=0),j.every((function(e){return e}))){E=_,S=!1;break}k.set(_,j)}if(S)for(var M=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"!==M(F);F--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function d_(e,t,n){return iC(e,aC(t,n))}const f_={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=u_(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),g=UC(t.placement),b=HC(t.placement),y=!b,x=qC(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,A="y"===x?CC:PC,R="y"===x?_C:OC,I="y"===x?"height":"width",z=k[x],j=z+v[A],M=z-v[R],F=p?-E[I]/2:0,L=b===RC?S[I]:E[I],D=b===RC?-E[I]:-S[I],N=t.elements.arrow,B=p&&N?bC(N):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=V[A],W=V[R],U=d_(0,S[I],B[I]),H=y?S[I]/2-F-U-$-_.mainAxis:L-U-$-_.mainAxis,q=y?-S[I]/2+F+U+W+_.mainAxis:D+U+W+_.mainAxis,Y=t.elements.arrow&&EC(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=z+q-G,K=d_(p?aC(j,z+H-G-X):j,z,p?iC(M,Q):M);k[x]=K,P[x]=K-z}if(l){var Z,J="x"===x?CC:PC,ee="x"===x?_C:OC,te=k[w],ne="y"===w?"height":"width",re=te+v[J],oe=te-v[ee],ie=-1!==[CC,PC].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=d_(e,t,n);return r>n?n:r}(le,te,se):d_(p?le:re,te,p?se:oe);k[w]=ue,P[w]=ue-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]},p_={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=UC(n.placement),s=qC(l),u=[PC,OC].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return l_("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:s_(e,AC))}(o.padding,n),d=bC(i),f="y"===s?CC:PC,p="y"===s?_C:OC,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],v=EC(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=d_(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)))&&o_(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function h_(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 m_(e){return[CC,OC,_C,PC].some((function(t){return e[t]>=0}))}const v_={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=u_(t,{elementContext:"reference"}),l=u_(t,{altBoundary:!0}),s=h_(a,r),u=h_(l,o,i),c=m_(s),d=m_(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 g_=VC({defaultModifiers:[WC,XC,KC,ZC,JC,c_,f_,p_,v_]});function b_(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=JE[e])?void 0:n[t])||e;return"ltr"===t?o:null!=(r=eC[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=g_(m.current,v.current,{placement:b,modifiers:[KE,XE,qE,{...HE,enabled:!!p},{name:"eventListeners",...UE(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:Ib(w,t)})),[w]),S=(0,e.useCallback)((e=>{v.current=e,x()}),[x]),E=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Ib(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:y_(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:VE.transformOrigin.varRef,referenceRef:w,popperRef:S,getPopperProps:E,getArrowProps:C,getArrowInnerProps:_,getReferenceProps:k}}function y_(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 x_(t={}){const{onClose:n,onOpen:r,isOpen:o,id:i}=t,a=Ou(r),l=Ou(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 w_(t,n,r,o){const i=Ou(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 k_=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},S_=e=>{var t,n;return(null==(n=null==(t=e.current)?void 0:t.ownerDocument)?void 0:n.defaultView)||window};function E_(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:_}=x_({isOpen:p,defaultIsOpen:h,onOpen:u,onClose:c}),{referenceRef:O,getPopperProps:P,getArrowInnerProps:T,getArrowProps:A}=b_({enabled:E,placement:d,arrowPadding:g,modifiers:b,gutter:x,offset:w,direction:k}),R=(0,e.useId)(),I=`tooltip-${null!=f?f:R}`,z=(0,e.useRef)(null),j=(0,e.useRef)(),M=(0,e.useCallback)((()=>{j.current&&(clearTimeout(j.current),j.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=k_(t);return e.addEventListener(C_,n),()=>e.removeEventListener(C_,n)}),[n,t]),()=>{const e=k_(t),n=S_(t);e.dispatchEvent(new n.CustomEvent(C_))}}(z,D),B=(0,e.useCallback)((()=>{if(!y&&!j.current){E&&N();const e=S_(z);j.current=e.setTimeout(C,n)}}),[N,y,E,C,n]),V=(0,e.useCallback)((()=>{M();const e=S_(z);F.current=e.setTimeout(D,r)}),[r,D,M]),$=(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]);w_((()=>k_(z)),"keydown",s?U:void 0),w_((()=>{if(!a)return null;const e=z.current;if(!e)return null;const t=NE(e);return"body"===t.localName?S_(z):t}),"scroll",(()=>{E&&a&&D()}),{passive:!0,capture:!0}),(0,e.useEffect)((()=>{y&&(M(),E&&_())}),[y,E,_,M]),(0,e.useEffect)((()=>()=>{M(),L()}),[M,L]),w_((()=>z.current),"pointerleave",V);const H=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Ib(z,t,O),onPointerEnter:it(e.onPointerEnter,(e=>{"touch"!==e.pointerType&&B()})),onClick:it(e.onClick,$),onPointerDown:it(e.onPointerDown,W),onFocus:it(e.onFocus,B),onBlur:it(e.onBlur,V),"aria-describedby":E?I:void 0})),[B,V,W,E,I,$,O]),q=(0,e.useCallback)(((e={},t=null)=>P({...e,style:{...e.style,[VE.arrowSize.var]:m?`${m}px`:void 0,[VE.arrowShadowColor.var]:v}},t)),[P,m,v]),Y=(0,e.useCallback)(((e={},t=null)=>{const n={...e.style,position:"relative",transformOrigin:VE.transformOrigin.varRef};return{ref:t,...S,...e,id:I,role:"tooltip",style:n}}),[S,I]);return{isOpen:E,show:B,hide:V,getTriggerProps:H,getTooltipProps:Y,getTooltipPositionerProps:q,getArrowProps:A,getArrowInnerProps:T}}var C_="chakra-ui:close-tooltip",__=Ig(bg.div),O_=Mg(((t,n)=>{var r,o;const i=Ng("Tooltip",t),a=Vn(t),l=Fg(),{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[VE.arrowBg.var]=e}const w=E_({...y,direction:l.direction});let k;if("string"==typeof s||c)k=(0,Ve.jsx)(Ig.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){const t={};for(const n of["role","id"])n in e&&(t[n]=e[n]);return t}(E);return u?(0,Ve.jsxs)(Ve.Fragment,{children:[k,(0,Ve.jsx)(fb,{children:w.isOpen&&(0,Ve.jsx)(yb,{...h,children:(0,Ve.jsx)(Ig.div,{...w.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:(0,Ve.jsxs)(__,{variants:DE,initial:"exit",animate:"enter",exit:"exit",...b,...C,__css:i,children:[u,S&&(0,Ve.jsx)(Ig.span,{srOnly:!0,..._,children:d}),f&&(0,Ve.jsx)(Ig.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,Ve.jsx)(Ig.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):(0,Ve.jsx)(Ve.Fragment,{children:s})}));function P_(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 T_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P_(Object(n),!0).forEach((function(t){Vw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A_(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 R_(e,t){if(e){if("string"==typeof e)return A_(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)?A_(e,t):void 0}}function I_(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)||R_(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 z_(e,t){if(null==e)return{};var n,r,o=bw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}O_.displayName="Tooltip";var j_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function M_(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=z_(t,j_),v=I_((0,e.useState)(void 0!==s?s:r),2),g=v[0],b=v[1],y=I_((0,e.useState)(void 0!==u?u:i),2),x=y[0],w=y[1],k=I_((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,A=void 0!==u?u:x,R=void 0!==h?h:S;return T_(T_({},m),{},{inputValue:T,menuIsOpen:A,onChange:C,onInputChange:_,onMenuClose:P,onMenuOpen:O,value:R})}function F_(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,Bw(r.key),r)}}function L_(e){return L_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L_(e)}function D_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D_=function(){return!!e})()}function N_(e){return function(e){if(Array.isArray(e))return A_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||R_(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 B_=Math.min,V_=Math.max,$_=Math.round,W_=Math.floor,U_=e=>({x:e,y:e});function H_(e){return X_(e)?(e.nodeName||"").toLowerCase():"#document"}function q_(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Y_(e){var t;return null==(t=(X_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function X_(e){return e instanceof Node||e instanceof q_(e).Node}function G_(e){return e instanceof Element||e instanceof q_(e).Element}function Q_(e){return e instanceof HTMLElement||e instanceof q_(e).HTMLElement}function K_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof q_(e).ShadowRoot)}function Z_(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=J_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function J_(e){return q_(e).getComputedStyle(e)}function eO(e){const t=function(e){if("html"===H_(e))return e;const t=e.assignedSlot||e.parentNode||K_(e)&&e.host||Y_(e);return K_(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(H_(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Q_(t)&&Z_(t)?t:eO(t)}function tO(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=eO(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=q_(o);if(i){const e=nO(a);return t.concat(a,a.visualViewport||[],Z_(o)?o:[],e&&n?tO(e):[])}return t.concat(o,tO(o,[],n))}function nO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rO(e){return G_(e)?e:e.contextElement}function oO(e){const t=rO(e);if(!Q_(t))return U_(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=J_(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Q_(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=$_(n)!==i||$_(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}(t);let a=(i?$_(n.width):n.width)/r,l=(i?$_(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const iO=U_(0);function aO(e){const t=q_(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:iO}function lO(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=rO(e);let a=U_(1);t&&(r?G_(r)&&(a=oO(r)):a=oO(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==q_(e))&&t}(i,n,r)?aO(i):U_(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=q_(i),t=r&&G_(r)?q_(r):r;let n=e,o=nO(n);for(;o&&r&&t!==n;){const e=oO(o),t=o.getBoundingClientRect(),r=J_(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=q_(o),o=nO(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:d,x:s,y:u})}const sO=e.useLayoutEffect;var uO=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],cO=function(){};function dO(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function fO(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(dO(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var pO=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Nw(e)&&null!==e?[e]:[];var t},hO=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,T_({},z_(e,uO))},mO=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 vO(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gO(e){return vO(e)?window.pageYOffset:e.scrollTop}function bO(e,t){vO(e)?window.scrollTo(0,t):e.scrollTop=t}function yO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:cO,o=gO(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);bO(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function xO(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?bO(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&bO(e,Math.max(t.offsetTop-o,0))}function wO(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var kO=!1,SO={get passive(){return kO=!0}},EO="undefined"!=typeof window?window:{};EO.addEventListener&&EO.removeEventListener&&(EO.addEventListener("p",cO,SO),EO.removeEventListener("p",cO,!1));var CO=kO;function _O(e){return null!=e}function OO(e,t,n){return e?t:n}var PO=["children","innerProps"],TO=["children","innerProps"];var AO,RO=function(e){return"auto"===e?"bottom":e},IO=(0,e.createContext)(null),zO=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)(IO)||{}).setPortalPlacement,c=(0,e.useRef)(null),d=I_((0,e.useState)(o),2),f=d[0],p=d[1],h=I_((0,e.useState)(null),2),m=h[0],v=h[1],g=s.spacing.controlHeight;return sO((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||vO(c=s)?window.innerHeight:c.clientHeight,b=gO(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&&yO(s,C,O),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&k>=r)return i&&yO(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&&bO(s,C),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&yO(s,_,O),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&w>=r){var A=t;return(!a&&S>=r||a&&w>=r)&&(A=a?w-x:S-x),i&&yO(s,_,O),{placement:"top",maxHeight:A}}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:T_(T_({},t),{},{placement:m||RO(i),maxHeight:f})})},jO=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return T_({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},MO=jO,FO=jO,LO=["size"],DO=["innerProps","isRtl","size"],NO={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},BO=function(e){var t=e.size,n=z_(e,LO);return Le("svg",ie({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:NO},n))},VO=function(e){return Le(BO,ie({size:20},e),Le("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"}))},$O=function(e){return Le(BO,ie({size:20},e),Le("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"}))},WO=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return T_({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},UO=WO,HO=WO,qO=Be(AO||(AO=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"]))),YO=function(e){var t=e.delay,n=e.offset;return Le("span",{css:Ne({animation:"".concat(qO," 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"},"","")})},XO=["data"],GO=["innerRef","isDisabled","isHidden","inputClassName"],QO={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},KO={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":T_({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},QO)},ZO=function(e){return T_({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},QO)},JO=function(e){var t=e.children,n=e.innerProps;return Le("div",n,t)},eP={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Le("div",ie({},mO(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Le(VO,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Le("div",ie({ref:o},mO(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 Le("div",ie({},mO(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Le($O,null))},DownChevron:$O,CrossIcon:VO,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 Le("div",ie({},mO(e,"group",{group:!0}),l),Le(i,ie({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),s),Le("div",null,t))},GroupHeading:function(e){var t=hO(e);t.data;var n=z_(t,XO);return Le("div",ie({},mO(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Le("div",ie({},mO(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Le("span",ie({},t,mO(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=hO(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=z_(r,GO);return Le("div",ie({},mO(e,"input",{"input-container":!0}),{"data-value":n||""}),Le("input",ie({className:t({input:!0},l),ref:o,style:ZO(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=z_(e,DO);return Le("div",ie({},mO(T_(T_({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Le(YO,{delay:0,offset:n}),Le(YO,{delay:160,offset:!0}),Le(YO,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Le("div",ie({},mO(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 Le("div",ie({},mO(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=I_((0,e.useState)(RO(l)),2),f=d[0],p=d[1],h=(0,e.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=I_((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]);sO((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=rO(e),c=o||i?[...u?tO(u):[],...tO(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=Y_(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:-W_(c)+"px "+-W_(o.clientWidth-(u+d))+"px "+-W_(o.clientHeight-(c+f))+"px "+-W_(u)+"px",threshold:V_(0,B_(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?lO(e):null;return s&&function t(){const r=lO(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]);sO((function(){y()}),[y]);var x=(0,e.useCallback)((function(e){u.current=e,y()}),[y]);if(!n&&"fixed"!==s||!v)return null;var w=Le("div",ie({ref:x},mO(T_(T_({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),o);return Le(IO.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=z_(e,TO);return Le("div",ie({},mO(T_(T_({},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=z_(e,PO);return Le("div",ie({},mO(T_(T_({},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 Le(s,{data:r,innerProps:T_(T_({},mO(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},Le(u,{data:r,innerProps:T_({},mO(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Le(c,{data:r,innerProps:T_(T_({},mO(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:JO,MultiValueLabel:JO,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Le("div",ie({role:"button"},n),t||Le(VO,{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 Le("div",ie({},mO(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 Le("div",ie({},mO(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Le("div",ie({},mO(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Le("div",ie({},mO(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 Le("div",ie({},mO(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},tP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function nP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||tP(r)&&tP(o)))return!1;var r,o;return!0}for(var rP={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"},oP=function(e){return Le("span",ie({css:rP},e))},iP={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,l=e.isDisabled,s=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d=l?" disabled":"",f="".concat(s?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},aP=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=t.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,p=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,v=s.isSearchable,g=s.menuIsOpen,b=s.options,y=s.screenReaderStatus,x=s.tabSelectsValue,w=s.isLoading,k=s["aria-label"],S=s["aria-live"],E=(0,e.useMemo)((function(){return T_(T_({},iP),d||{})}),[d]),C=(0,e.useMemo)((function(){var e,t="";if(n&&E.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,s=n.value,u=i||r||(e=s,Array.isArray(e)?null:e),c=u?f(u):"",d=o||a||void 0,p=d?d.map(f):[],h=T_({isDisabled:u&&m(u,l),label:c,labels:p},n);t=E.onChange(h)}return t}),[n,E,m,l,f]),_=(0,e.useMemo)((function(){var e="",t=r||o,n=!!(r&&l&&l.includes(r));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,l),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:l,isAppleDevice:c};e=E.onFocus(a)}return e}),[r,o,f,m,E,i,l,c]),O=(0,e.useMemo)((function(){var e="";if(g&&b.length&&!w&&E.onFilter){var t=y({count:i.length});e=E.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,g,E,b,y,w]),P="initial-input-focus"===(null==n?void 0:n.action),T=(0,e.useMemo)((function(){var e="";if(E.guidance){var t=o?"value":g?"menu":"input";e=E.guidance({"aria-label":k,context:t,isDisabled:r&&m(r,l),isMulti:h,isSearchable:v,tabSelectsValue:x,isInitialFocus:P})}return e}),[k,r,o,h,m,v,g,E,l,x,P]),A=Le(e.Fragment,null,Le("span",{id:"aria-selection"},C),Le("span",{id:"aria-focused"},_),Le("span",{id:"aria-results"},O),Le("span",{id:"aria-guidance"},T));return Le(e.Fragment,null,Le(oP,{id:u},P&&A),Le(oP,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!P&&A))},lP=[{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źẑżžẓẕƶȥɀⱬꝣ"}],sP=new RegExp("["+lP.map((function(e){return e.letters})).join("")+"]","g"),uP={},cP=0;cP<lP.length;cP++)for(var dP=lP[cP],fP=0;fP<dP.letters.length;fP++)uP[dP.letters[fP]]=dP.base;var pP=function(e){return e.replace(sP,(function(e){return uP[e]}))},hP=function(e,t){void 0===t&&(t=nP);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}(pP),mP=function(e){return e.replace(/^\s+|\s+$/g,"")},vP=function(e){return"".concat(e.label," ").concat(e.value)},gP=["innerRef"];function bP(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=I_(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=I_(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(z_(e,gP),"onExited","in","enter","exit","appear");return Le("input",ie({ref:t},n,{css:Ne({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 yP=["boxSizing","height","overflow","paddingRight","position"],xP={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function wP(e){e.preventDefault()}function kP(e){e.stopPropagation()}function SP(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function EP(){return"ontouchstart"in window||navigator.maxTouchPoints}var CP=!("undefined"==typeof window||!window.document||!window.document.createElement),_P=0,OP={capture:!1,passive:!1},PP=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},TP={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function AP(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=!!CO&&{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(CP){var t=document.body,n=t&&t.style;if(o&&yP.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&_P<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+r||0;Object.keys(xP).forEach((function(e){var t=xP[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&EP()&&(t.addEventListener("touchmove",wP,OP),e&&(e.addEventListener("touchstart",SP,OP),e.addEventListener("touchmove",kP,OP))),_P+=1}}),[o]),s=(0,e.useCallback)((function(e){if(CP){var t=document.body,n=t&&t.style;_P=Math.max(_P-1,0),o&&_P<1&&yP.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&EP()&&(t.removeEventListener("touchmove",wP,OP),e&&(e.removeEventListener("touchstart",SP,OP),e.removeEventListener("touchmove",kP,OP)))}}),[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 Le(e.Fragment,null,r&&Le("div",{onClick:PP,css:TP}),n((function(e){i(e),a(e)})))}var RP={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},IP=function(e){var t=e.name,n=e.onFocus;return Le("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:RP,value:"",onChange:function(){}})};function zP(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function jP(){return zP(/^Mac/i)}var MP=function(e){return e.label},FP=function(e){return e.value},LP={clearIndicator:HO,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 T_({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:UO,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 T_({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 T_({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 T_(T_({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},KO),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 T_({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:FO,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,l=o.colors;return T_((Vw(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Vw(n,"position","absolute"),Vw(n,"width","100%"),Vw(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 T_({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 T_({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 T_({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 T_({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:MO,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,l=i.colors;return T_({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 T_({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 T_({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 T_({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")})}},DP={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}},NP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wO(),captureMenuScroll:!wO(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=T_({ignoreCase:!0,ignoreAccents:!0,stringify:vP,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,l=n.matchFrom,s=a?mP(t):t,u=a?mP(i(e)):i(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=hP(s),u=pP(u)),"start"===l?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:MP,getOptionValue:FP,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 BP(e,t,n,r){return{type:"option",data:t,isDisabled:XP(e,t,n),isSelected:GP(e,t,n),label:qP(e,t),value:YP(e,t),index:r}}function VP(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return BP(e,n,t,r)})).filter((function(t){return UP(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=BP(e,n,t,r);return UP(e,i)?i:void 0})).filter(_O)}function $P(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,N_(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function WP(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,N_(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function UP(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!KP(e)||!i)&&QP(e,{label:a,value:l,data:o},r)}var HP=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},qP=function(e,t){return e.getOptionLabel(t)},YP=function(e,t){return e.getOptionValue(t)};function XP(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function GP(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=YP(e,t);return n.some((function(t){return YP(e,t)===r}))}function QP(e,t,n){return!e.filterOption||e.filterOption(t,n)}var KP=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ZP=1,JP=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&&Dw(e,t)}(r,t);var n=function(e){var t=D_();return function(){var n,r=L_(e);if(t){var o=L_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Nw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(r);function r(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=jP()||zP(/^iPhone/i)||zP(/^iPad/i)||jP()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,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(N_(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=OO(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(OO(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=OO(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return HP(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return WP(VP(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fO.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return qP(t.props,e)},t.getOptionValue=function(e){return YP(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=LP[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,T_(T_({},eP),e.components);var e},t.buildCategorizedOptions=function(){return VP(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return $P(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:T_({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&&vO(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return KP(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.state.instancePrefix="react-select-"+(t.props.instanceId||++ZP),t.state.selectValue=pO(e.value),e.menuIsOpen&&t.state.selectValue.length){var o=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),a=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=o,t.state.focusedOption=i[a],t.state.focusedOptionId=HP(o,i[a])}return t}return function(e,t,n){t&&F_(e.prototype,t),n&&F_(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&&xO(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&&(xO(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],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(DP):T_(T_({},DP),this.props.theme):DP}},{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 XP(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return GP(this.props,e,t)}},{key:"filterOption",value:function(e,t){return QP(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=T_(T_(T_({"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","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(c,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(bP,ie({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cO,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,A=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,role:"option","aria-selected":t.isAppleDevice?void 0:l};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 A(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return A(n,"".concat(n.index))}));else if(v){var R=g({inputValue:m});if(null===R)return null;T=e.createElement(s,d,R)}else{var I=_({inputValue:m});if(null===I)return null;T=e.createElement(u,d,I)}var z={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:k,menuShouldScrollIntoView:C},j=e.createElement(zO,ie({},d,z),(function(n){var r=n.ref,o=n.placerProps,l=o.placement,s=o.maxHeight;return e.createElement(i,ie({},d,z,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:v,placement:l}),e.createElement(AP,{captureEnabled:h,onTopArrive:O,onBottomArrive:P,lockEnabled:E},(function(n){return e.createElement(a,ie({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},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}),j):j}},{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(IP,{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(aP,ie({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:l,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,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=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=pO(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var v=d?function(e,t){return $P(VP(e,t))}(e,h):[],g=d?WP(VP(e,h),"".concat(s,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:y,focusedOptionId:HP(g,y),focusableOptionsWithIds:g,focusedValue:b,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,k=a&&l;return a&&!k&&(w={value:OO(p,h,h[0]||null),options:h,action:"initial-input-focus"},k=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),T_(T_(T_({},m),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:k})}}]),r}(e.Component);JP.defaultProps=NP;var eT=(0,e.forwardRef)((function(t,n){var r=M_(t);return e.createElement(JP,ie({ref:n},r))}));function tT(t,n){var r;const o=function(t){var n,r;const o=et(t)?t:{fallback:null!=t?t:"base"},i=Fg().__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 nr((()=>{t&&n()}),[t]),(0,e.useContext)(ar)}(),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}(et(n)?n:{fallback:null!=n?n:"base"}),i=Fg();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=SE){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=SE){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 nT=Mg((function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:i,borderWidth:a,borderStyle:l,borderColor:s,...u}=Ng("Divider",e),{className:c,orientation:d="horizontal",__css:f,...p}=Vn(e),h={vertical:{borderLeftWidth:n||i||a||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||a||"1px",width:"100%"}};return(0,Ve.jsx)(Ig.hr,{ref:t,"aria-orientation":d,...p,__css:{...u,border:"0",borderColor:s,borderStyle:l,...h[d],...f},className:Je("chakra-divider",c)})}));nT.displayName="Divider";var rT=Object.defineProperty,oT=(e,t,n)=>(((e,t,n)=>{t in e?rT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);function iT(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 aT(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function lT(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var sT="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,uT=class{constructor(){oT(this,"descendants",new Map),oT(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)}})),oT(this,"unregister",(e=>{this.descendants.delete(e);const t=iT(Array.from(this.descendants.keys()));this.assignIndex(t)})),oT(this,"destroy",(()=>{this.descendants.clear()})),oT(this,"assignIndex",(e=>{this.descendants.forEach((t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()}))})),oT(this,"count",(()=>this.descendants.size)),oT(this,"enabledCount",(()=>this.enabledValues().length)),oT(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),oT(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),oT(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),oT(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),oT(this,"first",(()=>this.item(0))),oT(this,"firstEnabled",(()=>this.enabledItem(0))),oT(this,"last",(()=>this.item(this.descendants.size-1))),oT(this,"lastEnabled",(()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)})),oT(this,"indexOf",(e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1})),oT(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),oT(this,"next",((e,t=!0)=>{const n=aT(e,this.count(),t);return this.item(n)})),oT(this,"nextEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=aT(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)})),oT(this,"prev",((e,t=!0)=>{const n=lT(e,this.count()-1,t);return this.item(n)})),oT(this,"prevEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=lT(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)})),oT(this,"registerNode",((e,t)=>{if(!e||this.descendants.has(e))return;const n=iT(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)}))}},[cT,dT]=qe({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function fT(e,t){var n;const r=e.target;return!(r&&!pT(r).contains(r))&&!(null==(n=t.current)?void 0:n.contains(r))}function pT(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var[hT,mT,vT,gT]=[cT,()=>dT(),()=>function(){const t=(0,e.useRef)(new uT);return sT((()=>()=>t.current.destroy())),t.current}(),t=>function(t){const n=dT(),[r,o]=(0,e.useState)(-1),i=(0,e.useRef)(null);sT((()=>()=>{i.current&&n.unregister(i.current)}),[]),sT((()=>{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:Ib(a,i)}}(t)],[bT,yT]=qe({strict:!1,name:"MenuContext"});function xT(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=vT(),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&&A(e.index)}}));M.current.add(e)}),[y,i]),k=(0,e.useCallback)((()=>{const e=setTimeout((()=>{const e=y.lastEnabled();e&&A(e.index)}));M.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}=x_({isOpen:s,defaultIsOpen:u,onClose:c,onOpen:S});!function(t){const{ref:n,handler:r,enabled:o=!0}=t,i=Ou(r),a=(0,e.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,e.useEffect)((()=>{if(!o)return;const e=e=>{fT(e,n)&&(a.isPointerDown=!0)},t=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&fT(e,n)&&(a.isPointerDown=!1,i(e))},l=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&fT(e,n)&&(a.isPointerDown=!1,i(e))},s=pT(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=b_({...v,enabled:E||m,placement:f,direction:h}),[T,A]=(0,e.useState)(-1);Pu((()=>{E||A(-1)}),[E]),function(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;Pu((()=>{if(!i)return;if(function(e){const t=e.current;if(!t)return!1;const n=function(e){return sS(e).activeElement}(t);return!!n&&!t.contains(n)&&!(!((r=n)&&lS(r)&&fS(r))||cS(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 R=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]),w_((()=>r.current),"animationend",(()=>{i(n)})),{present:!(!n&&!o),onComplete(){var e;const t=function(e){var t,n;return null!=(n=null==(t=sS(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}),[I,z]=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"),j=(0,e.useCallback)((()=>{C(),x()}),[C,x]),M=(0,e.useRef)(new Set([]));(0,e.useEffect)((()=>{const e=M.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:j,openAndFocusFirstItem:F,openAndFocusLastItem:L,onTransitionEnd:D,unstable__animationState:R,descendants:y,popper:P,buttonId:I,menuId:z,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:A,isLazy:l,lazyBehavior:p,initialFocusRef:i,rafId:N}}var[wT,kT]=qe({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),ST=t=>{const{children:n}=t,r=Bg("Menu",t),o=Vn(t),{direction:i}=Fg(),{descendants:a,...l}=xT({...o,direction:i}),s=(0,e.useMemo)((()=>l),[l]),{isOpen:u,onClose:c,forceUpdate:d}=s;return(0,Ve.jsx)(hT,{value:a,children:(0,Ve.jsx)(bT,{value:s,children:(0,Ve.jsx)(wT,{value:r,children:tt(n,{isOpen:u,onClose:c,forceUpdate:d})})})})};ST.displayName="Menu";var ET=t=>{const{className:n,children:r,...o}=t,i=kT(),a=e.Children.only(r),l=(0,e.isValidElement)(a)?(0,e.cloneElement)(a,{focusable:"false","aria-hidden":!0,className:Je("chakra-menu__icon",a.props.className)}):null,s=Je("chakra-menu__icon-wrapper",n);return(0,Ve.jsx)(Ig.span,{className:s,...o,__css:i.icon,children:l})};ET.displayName="MenuIcon";var CT=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],_T=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},OT={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return _T(e,t,r)}))||n.some((function(t){return _T(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function PT(t){var n=t.allowCreateWhileLoading,r=void 0!==n&&n,o=t.createOptionPosition,i=void 0===o?"last":o,a=t.formatCreateLabel,l=void 0===a?OT.formatCreateLabel:a,s=t.isValidNewOption,u=void 0===s?OT.isValidNewOption:s,c=t.getNewOptionData,d=void 0===c?OT.getNewOptionData:c,f=t.onCreateOption,p=t.options,h=void 0===p?[]:p,m=t.onChange,v=z_(t,CT),g=v.getOptionValue,b=void 0===g?FP:g,y=v.getOptionLabel,x=void 0===y?MP:y,w=v.inputValue,k=v.isLoading,S=v.isMulti,E=v.value,C=v.name,_=(0,e.useMemo)((function(){return u(w,pO(E),h,{getOptionValue:b,getOptionLabel:x})?d(w,l(w)):void 0}),[l,d,x,b,w,u,h,E]),O=(0,e.useMemo)((function(){return!r&&k||!_?h:"first"===i?[_].concat(N_(h)):[].concat(N_(h),[_])}),[r,i,k,_,h]),P=(0,e.useCallback)((function(e,t){if("select-option"!==t.action)return m(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==_)m(e,t);else if(f)f(w);else{var r=d(w,w),o={action:"create-option",name:C,option:r};m(OO(S,[].concat(N_(pO(E)),[r]),r),o)}}),[d,w,S,C,_,f,m,E]);return T_(T_({},v),{},{options:O,onChange:P})}var TT=(0,e.forwardRef)((function(t,n){var r=PT(M_(t));return e.createElement(JP,ie({ref:n},r))})),AT=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function RT(t){var n=t.defaultOptions,r=void 0!==n&&n,o=t.cacheOptions,i=void 0!==o&&o,a=t.loadOptions;t.options;var l=t.isLoading,s=void 0!==l&&l,u=t.onInputChange,c=t.filterOption,d=void 0===c?null:c,f=z_(t,AT),p=f.inputValue,h=(0,e.useRef)(void 0),m=(0,e.useRef)(!1),v=I_((0,e.useState)(Array.isArray(r)?r:void 0),2),g=v[0],b=v[1],y=I_((0,e.useState)(void 0!==p?p:""),2),x=y[0],w=y[1],k=I_((0,e.useState)(!0===r),2),S=k[0],E=k[1],C=I_((0,e.useState)(void 0),2),_=C[0],O=C[1],P=I_((0,e.useState)([]),2),T=P[0],A=P[1],R=I_((0,e.useState)(!1),2),I=R[0],z=R[1],j=I_((0,e.useState)({}),2),M=j[0],F=j[1],L=I_((0,e.useState)(void 0),2),D=L[0],N=L[1],B=I_((0,e.useState)(void 0),2),V=B[0],$=B[1];i!==V&&(F({}),$(i)),r!==D&&(b(Array.isArray(r)?r:void 0),N(r)),(0,e.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var W=(0,e.useCallback)((function(e,t){if(!a)return t();var n=a(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[a]);(0,e.useEffect)((function(){!0===r&&W(x,(function(e){m.current&&(b(e||[]),E(!!h.current))}))}),[]);var U=(0,e.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,u);if(!n)return h.current=void 0,w(""),O(""),A([]),E(!1),void z(!1);if(i&&M[n])w(n),O(n),A(M[n]),E(!1),z(!1);else{var r=h.current={};w(n),E(!0),z(!_),W(n,(function(e){m&&r===h.current&&(h.current=void 0,E(!1),O(n),A(e||[]),z(!1),F(e?T_(T_({},M),{},Vw({},n,e)):M))}))}}),[i,W,_,M,u]),H=I?[]:x&&_?T:g||[];return T_(T_({},f),{},{options:H,isLoading:S||s,onInputChange:U,filterOption:d})}var IT=(0,e.forwardRef)((function(t,n){var r=M_(RT(t));return e.createElement(JP,ie({ref:n},r))})),zT=(0,e.forwardRef)((function(t,n){var r=PT(M_(RT(t)));return e.createElement(JP,ie({ref:n},r))})),jT=e=>{let{className:t,clearValue:n,cx:r,getStyles:o,getClassNames:i,getValue:a,hasValue:l,isMulti:s,isRtl:u,options:c,selectOption:d,selectProps:f,setValue:p,theme:h,...m}=e;return{...m}},MT=e=>{let t=(e=>(e=>"string"==typeof e&&["sm","md","lg"].includes(e))(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md")(Fg().components.Input.defaultProps.size),n=null!=e?e:t;return tT("string"==typeof n?[n]:n,{fallback:"md"})||t},FT=e=>(0,Ve.jsx)($g,{role:"presentation",focusable:"false","aria-hidden":"true",...e,children:(0,Ve.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),LT=e=>(0,Ve.jsx)($g,{focusable:"false","aria-hidden":!0,...e,children:(0,Ve.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"})}),DT=e=>e?{bottom:"top",top:"bottom"}[e]:"top",NT=e=>(0,Ve.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,Ve.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),BT=e=>"object"==typeof e&&null!==e&&"isFixed"in e&&"boolean"==typeof e.isFixed,VT=e=>(0,Ve.jsx)($g,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,Ve.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})}),$T={ClearIndicator:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i,size:a}}=e,l={...Ng("CloseButton",{size:MT(a)}),marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"},s=null!=i&&i.clearIndicator?i.clearIndicator(l,e):l,u={width:"1em",height:"1em"},c=null!=i&&i.crossIcon?i.crossIcon(u,e):u;return(0,Ve.jsx)(Lb,{role:"button",className:r({indicator:!0,"clear-indicator":!0},n),sx:s,"aria-label":"Clear selected options",...o,children:t||(0,Ve.jsx)(LT,{sx:c})})},Control:e=>{let{className:t,cx:n,children:r,innerRef:o,innerProps:i,isDisabled:a,isFocused:l,menuIsOpen:s,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:p,isInvalid:h,isReadOnly:m}}=e,v=MT(c),{field:{height:g,h:b,...y}}=Bg("Input",{size:v,variant:d,focusBorderColor:f,errorBorderColor:p}),x={...y,position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:g||b,...a?{pointerEvents:"none"}:{}},w=null!=u&&u.control?u.control(x,e):x;return(0,Ve.jsx)(Lb,{ref:o,className:n({control:!0,"control--is-disabled":a,"control--is-focused":l,"control--menu-is-open":s},t),sx:w,...i,"data-focus":!!l||void 0,"data-focus-visible":!!l||void 0,"data-invalid":!!h||void 0,"data-disabled":!!a||void 0,"data-readonly":!!m||void 0,children:r})},DropdownIndicator:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i,useBasicStyles:a,size:l,focusBorderColor:s,errorBorderColor:u,variant:c}}=e,d=MT(l),f=Bg("Input",{size:d,variant:c,focusBorderColor:s,errorBorderColor:u}),p={sm:"16px",md:"20px",lg:"24px"}[d],h={...f.addon,display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:p,...a&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}},m=null!=i&&i.dropdownIndicator?i.dropdownIndicator(h,e):h,v={height:"1em",width:"1em"},g=null!=i&&i.downChevron?i.downChevron(v,e):v;return(0,Ve.jsx)(Lb,{...o,className:r({indicator:!0,"dropdown-indicator":!0},n),sx:m,children:t||(0,Ve.jsx)(FT,{sx:g})})},Group:e=>{let{children:t,className:n,cx:r,theme:o,getStyles:i,Heading:a,headingProps:l,label:s,selectProps:u,innerProps:c,getClassNames:d}=e,{chakraStyles:f}=u,p={},h=null!=f&&f.group?f.group(p,e):p;return(0,Ve.jsxs)(Lb,{...c,className:r({group:!0},n),sx:h,children:[(0,Ve.jsx)(a,{...l,selectProps:u,cx:r,theme:o,getStyles:i,getClassNames:d,children:s}),(0,Ve.jsx)(Lb,{children:t})]})},GroupHeading:e=>{let{cx:t,className:n,selectProps:{chakraStyles:r,size:o,hasStickyGroupHeaders:i}}=e,{data:a,...l}=jT(e),s=Bg("Menu"),u=MT(o),c={...s.groupTitle,fontSize:{sm:"xs",md:"sm",lg:"md"}[u],padding:{sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"}[u],margin:0,borderBottomWidth:i?"1px":0,position:i?"sticky":"static",top:-2,bg:s.list.bg,zIndex:1},d=null!=r&&r.groupHeading?r.groupHeading(c,e):c;return(0,Ve.jsx)(Lb,{...l,className:t({"group-heading":!0},n),sx:d})},IndicatorSeparator:e=>{let{className:t,cx:n,selectProps:{chakraStyles:r,useBasicStyles:o,variant:i}}=e,a={opacity:1,...o||"outline"!==i?{display:"none"}:{}},l=null!=r&&r.indicatorSeparator?r.indicatorSeparator(a,e):a;return(0,Ve.jsx)(nT,{className:n({"indicator-separator":!0},t),sx:l,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i}}=e,a={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},l=null!=i&&i.indicatorsContainer?i.indicatorsContainer(a,e):a;return(0,Ve.jsx)(Lb,{...o,className:r({indicators:!0},n),sx:l,children:t})},Input:e=>{let{className:t,cx:n,value:r,selectProps:{chakraStyles:o,isReadOnly:i}}=e,{innerRef:a,isDisabled:l,isHidden:s,inputClassName:u,...c}=jT(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:l?"hidden":"visible",transform:r?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},p=null!=o&&o.inputContainer?o.inputContainer(f,e):f,h={background:0,opacity:s?0:1,width:"100%",...d},m=null!=o&&o.input?o.input(h,e):h;return(0,Ve.jsx)(Lb,{className:n({"input-container":!0},t),"data-value":r||"",sx:p,children:(0,Ve.jsx)(Ig.input,{className:n({input:!0},u),ref:a,sx:m,disabled:l,readOnly:!!i||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:n,innerProps:r,selectProps:{chakraStyles:o,size:i},color:a,emptyColor:l,speed:s,thickness:u,spinnerSize:c}=e,d={sm:"xs",md:"sm",lg:"md"}[MT(i)],f={marginRight:3},p=null!=o&&o.loadingIndicator?o.loadingIndicator(f,e):f;return(0,Ve.jsx)(Hg,{className:n({indicator:!0,"loading-indicator":!0},t),sx:p,...r,size:c||d,color:a,emptyColor:l,speed:s,thickness:u})},LoadingMessage:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i,size:a}}=e,l=MT(a),s={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[l],fontSize:l},u=null!=i&&i.loadingMessage?i.loadingMessage(s,e):s;return(0,Ve.jsx)(Lb,{...o,className:r({"menu-notice":!0,"menu-notice--loading":!0},n),sx:u,children:t})},Menu:e=>{let{className:t,cx:n,children:r,innerProps:o,innerRef:i,placement:a,selectProps:{chakraStyles:l}}=e,s={position:"absolute",[DT(a)]:"100%",marginY:"8px",width:"100%",zIndex:1},u=null!=l&&l.menu?l.menu(s,e):s;return(0,Ve.jsx)(ST,{children:(0,Ve.jsx)(Lb,{...o,ref:i,className:n({menu:!0},t),sx:u,children:r})})},MenuList:e=>{var t;let{className:n,cx:r,innerRef:o,children:i,maxHeight:a,isMulti:l,innerProps:s,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:p}}=e,h=Bg("Menu"),m=Bg("Input",{size:MT(c),variant:d,focusBorderColor:f,errorBorderColor:p}).field,v={...h.list,minW:"100%",maxHeight:`${a}px`,overflowY:"auto","--input-border-radius":null==m?void 0:m["--input-border-radius"],borderRadius:(null==m?void 0:m.borderRadius)||(null==(t=h.list)?void 0:t.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"},g=null!=u&&u.menuList?u.menuList(v,e):v;return(0,Ve.jsx)(Lb,{...s,className:r({"menu-list":!0,"menu-list--is-multi":l},n),sx:g,ref:o,children:i})},MultiValue:e=>{let{children:t,className:n,components:r,cx:o,data:i,innerProps:a,isDisabled:l,isFocused:s,removeProps:u,selectProps:c,cropWithEllipsis:d}=e,{Container:f,Label:p,Remove:h}=r,{chakraStyles:m,colorScheme:v,tagVariant:g,size:b}=c,y=MT(b),x="",w="",k=!1;(e=>"object"==typeof e&&null!==e&&"colorScheme"in e&&"string"==typeof e.colorScheme)(i)&&(x=i.colorScheme),(e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant)(i)&&(w=i.variant),BT(i)&&(k=i.isFixed);let S=Bg("Tag",{size:y,colorScheme:x||v,variant:w||g||(k?"solid":"subtle")}),E={...S.container,display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"},C=null!=m&&m.multiValue?m.multiValue(E,e):E,_={...S.label,overflow:"hidden",textOverflow:d||void 0===d?"ellipsis":void 0,whiteSpace:"nowrap"},O=null!=m&&m.multiValueLabel?m.multiValueLabel(_,e):_,P={...S.closeButton,display:"flex",alignItems:"center",justifyContent:"center"},T=null!=m&&m.multiValueRemove?m.multiValueRemove(P,e):P;return(0,Ve.jsxs)(f,{data:i,innerProps:{className:o({"multi-value":!0,"multi-value--is-disabled":l},n),...a},sx:C,selectProps:c,children:[(0,Ve.jsx)(p,{data:i,innerProps:{className:o({"multi-value__label":!0},n)},sx:O,selectProps:c,children:t}),(0,Ve.jsx)(h,{data:i,innerProps:{className:o({"multi-value__remove":!0},n),"aria-label":`Remove ${t||"option"}`,...u},sx:T,selectProps:c,isFocused:s})]})},MultiValueContainer:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,Ve.jsx)(Ig.span,{...n,sx:r,children:t})},MultiValueLabel:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,Ve.jsx)(Ig.span,{...n,sx:r,children:t})},MultiValueRemove:e=>{let{children:t,innerProps:n,isFocused:r,data:o,sx:i}=e;return BT(o)&&o.isFixed?null:(0,Ve.jsx)(Lb,{...n,role:"button",sx:i,"data-focus":!!r||void 0,"data-focus-visible":!!r||void 0,children:t||(0,Ve.jsx)(VT,{})})},NoOptionsMessage:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i,size:a}}=e,l=MT(a),s={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[l],fontSize:l},u=null!=i&&i.noOptionsMessage?i.noOptionsMessage(s,e):s;return(0,Ve.jsx)(Lb,{...o,className:r({"menu-notice":!0,"menu-notice--no-options":!0},n),sx:u,children:t})},Option:e=>{let{className:t,cx:n,innerRef:r,innerProps:o,children:i,isFocused:a,isDisabled:l,isSelected:s,selectProps:{chakraStyles:u,size:c,isMulti:d,hideSelectedOptions:f,selectedOptionStyle:p,selectedOptionColorScheme:h}}=e,m=Bg("Menu").item,v=MT(c),g=Ze(`${h}.500`,`${h}.300`),b=Ze("white","black"),y="check"===p&&(!d||!1===f),x={...m,cursor:"pointer",display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:v,paddingX:{sm:"0.6rem",md:"0.8rem",lg:"1rem"}[v],paddingY:{sm:"0.3rem",md:"0.4rem",lg:"0.5rem"}[v],..."color"===p&&{_selected:{bg:g,color:b,_active:{bg:g}}}},w=null!=u&&u.option?u.option(x,e):x;return(0,Ve.jsxs)(Lb,{...o,className:n({option:!0,"option--is-disabled":l,"option--is-focused":a,"option--is-selected":s},t),sx:w,ref:r,"data-focus":!!a||void 0,"aria-disabled":!!l||void 0,"aria-selected":s,children:[y&&(0,Ve.jsx)(ET,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:s?1:0,children:(0,Ve.jsx)(NT,{})}),i]})},Placeholder:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},l=null!=i&&i.placeholder?i.placeholder(a,e):a;return(0,Ve.jsx)(Lb,{...o,className:r({placeholder:!0},n),sx:l,children:t})},SelectContainer:e=>{let{children:t,className:n,cx:r,innerProps:o,isDisabled:i,isRtl:a,hasValue:l,selectProps:{chakraStyles:s}}=e,u={position:"relative",direction:a?"rtl":void 0,...i?{cursor:"not-allowed"}:{}},c=null!=s&&s.container?s.container(u,e):u;return(0,Ve.jsx)(Lb,{...o,className:r({"--is-disabled":i,"--is-rtl":a,"--has-value":l},n),sx:c,children:t})},SingleValue:e=>{let{children:t,className:n,cx:r,isDisabled:o,innerProps:i,selectProps:{chakraStyles:a}}=e,l={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},s=null!=a&&a.singleValue?a.singleValue(l,e):l;return(0,Ve.jsx)(Lb,{className:r({"single-value":!0,"single-value--is-disabled":o},n),sx:s,...i,children:t})},ValueContainer:e=>{let{children:t,className:n,cx:r,isMulti:o,hasValue:i,innerProps:a,selectProps:{chakraStyles:l,size:s,variant:u,focusBorderColor:c,errorBorderColor:d,controlShouldRenderValue:f}}=e,p={display:o&&i&&f?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:Bg("Input",{size:MT(s),variant:u,focusBorderColor:c,errorBorderColor:d}).field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},h=null!=l&&l.valueContainer?l.valueContainer(p,e):p;return(0,Ve.jsx)(Lb,{...a,className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n),sx:h,children:t})}},WT=$T,UT=({components:e={},theme:t,size:n,colorScheme:r="gray",isDisabled:o,isInvalid:i,isReadOnly:a,required:l,isRequired:s,inputId:u,tagVariant:c,selectedOptionStyle:d="color",selectedOptionColorScheme:f,selectedOptionColor:p,variant:h,focusBorderColor:m,errorBorderColor:v,chakraStyles:g={},onFocus:b,onBlur:y,menuIsOpen:x,...w})=>{var k;let S=Fg(),{variant:E}=S.components.Input.defaultProps,C=function(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=lx(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":ot(n),"aria-required":ot(o),"aria-readonly":ot(r)}}({id:u,isDisabled:o,isInvalid:i,isRequired:s,isReadOnly:a,onFocus:b,onBlur:y}),_=null!=x?x:!C.readOnly&&void 0,O=d;["color","check"].includes(d)||(O="color");let P=f||p||"blue";return"string"!=typeof P&&(P="blue"),{components:{...WT,...e},colorScheme:r,size:n,tagVariant:c,selectedOptionStyle:O,selectedOptionColorScheme:P,variant:null!=h?h:E,chakraStyles:g,focusBorderColor:m,errorBorderColor:v,onFocus:C.onFocus,onBlur:C.onBlur,isDisabled:C.disabled,isInvalid:!!C["aria-invalid"],inputId:C.id,isReadOnly:C.readOnly,required:null!=l?l:C.required,menuIsOpen:_,...w,"aria-invalid":null!=(k=w["aria-invalid"])?k:C["aria-invalid"]}},HT=(0,e.forwardRef)(((e,t)=>{let n=UT(e);return(0,Ve.jsx)(eT,{ref:t,...n})})),qT=HT;function YT(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 XT(e,t,n){return(t=function(e){var t=function(e){if("object"!=QT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=QT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QT(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GT(){return GT=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},GT.apply(null,arguments)}function QT(e){return QT="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},QT(e)}function KT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,e.forwardRef)(((e,t)=>{let n=UT(e);return(0,Ve.jsx)(TT,{ref:t,...n})})),(0,e.forwardRef)(((e,t)=>{let n=UT(e);return(0,Ve.jsx)(IT,{ref:t,...n})})),(0,e.forwardRef)(((e,t)=>{let n=UT(e);return(0,Ve.jsx)(zT,{ref:t,...n})}));const ZT=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 KT(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)?KT(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.")}()}(rE(),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"===QT(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=ox(),b=OE();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),[A,R]=(0,e.useState)(!1),[I,z]=(0,e.useState)(Boolean(n)),j=void 0!==r,M=j?r:I;(0,e.useEffect)((()=>Sx(C)),[]);const F=(0,e.useCallback)((e=>{w||x?e.preventDefault():(j||z(e.target.checked),null==s||s(e))}),[j,x,w,s]),L=(0,e.useCallback)((e=>{" "===e.key&&R(!0)}),[R]),D=(0,e.useCallback)((e=>{" "===e.key&&R(!1)}),[R]),N=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":rt(A),"data-hover":rt(P),"data-disabled":rt(x),"data-invalid":rt(S),"data-checked":rt(M),"data-focus":rt(_),"data-focus-visible":rt(_&&E),"data-readonly":rt(w),"aria-hidden":!0,onMouseDown:it(e.onMouseDown,(()=>R(!0))),onMouseUp:it(e.onMouseUp,(()=>R(!1))),onMouseEnter:it(e.onMouseEnter,(()=>T(!0))),onMouseLeave:it(e.onMouseLeave,(()=>T(!1)))})),[A,P,x,S,M,_,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:it(e.onChange,F),onBlur:it(V,e.onBlur,(()=>O(!1))),onFocus:it(B,e.onFocus,(()=>O(!0))),onKeyDown:it(e.onKeyDown,L),onKeyUp:it(e.onKeyUp,D),checked:M,disabled:n,readOnly:w,required:k,"aria-invalid":ot(S),"aria-disabled":ot(n),"aria-required":ot(k),"data-readonly":rt(w),"aria-describedby":h,style:TE}}),[x,o,y,c,d,F,V,B,L,D,M,w,k,S,h]);return{state:{isInvalid:S,isFocused:_,isChecked:M,isActive:A,isHovered:P,isDisabled:x,isReadOnly:w,isRequired:k},getCheckboxProps:N,getRadioProps:N,getInputProps:$,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:it(e.onMouseDown,AE),"data-disabled":rt(x),"data-checked":rt(M),"data-invalid":rt(S)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":rt(x),"data-checked":rt(M),"data-invalid":rt(S)}),htmlProps:m}}(i),d=c.state,f=c.getInputProps,p=c.getCheckboxProps,h=f(),m=p();return t().createElement(Lb,{as:"label",marginleft:"0px !important",marginBottom:"0px"},t().createElement("input",h),t().createElement(Lb,GT({},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(Cb,{direction:"column",align:"center"},t().createElement(zE,{src:"".concat(o,"/").concat(l,".png")}),t().createElement(Ob,{fontSize:"12px",fontWeight:"600",color:d.isChecked&&s,mt:2},a)):t().createElement(Ob,{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?YT(Object(n),!0).forEach((function(t){XT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YT(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:sE,settings:o})},d=function(e){return t().createElement($g,GT({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(Cb,{justify:"space-between",align:"center"},t().createElement(Cb,{align:"center",flex:"0 0 40%"},t().createElement(FE,{sx:{fontWeight:"600",fontSize:"15px"}},r.title),t().createElement(O_,{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(jE,{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(qT,{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(qT,{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=CE({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(ME,GT({},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 JT(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 eA=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 JT(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)?JT(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.")}()}(rE(),1)[0].settings;return t().createElement(EE,{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(ZT,{key:n,setting:e,siteURL:r,onBoardIconsURL:o}):""})))},tA=function(e){var n=e.sectionSettings;return t().createElement(EE,{direction:"column",spacing:"8",mt:5},n.settings.map((function(e,n){return t().createElement(ZT,{key:n,setting:e})})))},nA=function(e){var n=e.sectionSettings,r=e.siteURL,o=e.onBoardIconsURL;return t().createElement(EE,{direction:"column",spacing:"8",mt:5},n&&n.settings.map((function(e,n){return t().createElement(ZT,{key:n,setting:e,siteURL:r,onBoardIconsURL:o})})))},rA=function(e){var n=e.onBoardIconsURL;return t().createElement(Cb,{direction:"column",justifyContent:"space-between",alignItems:"center"},t().createElement(zE,{htmlWidth:"65px",htmlHeight:"65px",src:"".concat(n,"/green-tick-icon.png"),alt:"Onboard Finish"}),t().createElement(_b,{as:"h2",fontSize:"22px",fontWeight:"600",mb:4,mt:4,color:"#222222"},Cy("Congratulations, You’re all set! 🎉","user-registration")),t().createElement(Lb,{w:"100%",p:4,color:"#2D3559",mt:3,borderTop:"1px solid #DEE0E9"},t().createElement(Ob,{fontSize:"18px",fontWeight:"600",mb:4,mt:4,color:"#383838",textAlign:"center"},Cy("Our Popular Addons","user-registration")),t().createElement(Cb,{justify:"space-between",wrap:"wrap",gap:"10px"},t().createElement(Cb,{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(zE,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/advanced-fields.png"),alt:"Advanced Fields",borderRadius:"5px"}),t().createElement(Cb,{direction:"column"},t().createElement(Ob,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},Cy("Advanced Fields","user-registration")),t().createElement(Ob,{fontSize:"12px",fontWeight:"400",noOfLines:4},Cy("Offers extra fields like Section Title, Phone, Profile Picture, HTML, Time Picker, and WYSIWYG for complex forms.","user-registration")))),t().createElement(Cb,{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(zE,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/woo-extension.png"),alt:"WooCommerce",borderRadius:"5px"}),t().createElement(Cb,{direction:"column"},t().createElement(Ob,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},Cy("WooCommerce","user-registration")),t().createElement(Ob,{fontSize:"12px",fontWeight:"400",noOfLines:4},Cy("Integrate WooCommerce plugin for user registration, enabling user account management of billing, shipping, and orders","user-registration")))),t().createElement(Cb,{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(zE,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/content-restriction.png"),alt:"Content Restriction",borderRadius:"5px",objectFit:"cover"}),t().createElement(Cb,{direction:"column"},t().createElement(Ob,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},Cy("Content Restriction","user-registration")),t().createElement(Ob,{fontSize:"12px",fontWeight:"400",noOfLines:4},Cy("Easily restrict page or post content to logged-in users or specific user roles with this addon.","user-registration")))),t().createElement(Cb,{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(zE,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/customize-my-account.png"),alt:"Customize My Account",borderRadius:"5px"}),t().createElement(Cb,{direction:"column"},t().createElement(Ob,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},Cy("Customize My Account","user-registration")),t().createElement(Ob,{fontSize:"12px",fontWeight:"400",noOfLines:4},Cy("Easily create, edit, delete, and sort custom tabs on the account page with custom content","user-registration"))))),t().createElement("center",null,t().createElement(Fb,{href:"https://wpuserregistration.com/features/",isExternal:!0},t().createElement(jb,{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"},Cy("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 oA(e){return oA="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},oA(e)}function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iA(Object(n),!0).forEach((function(t){lA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lA(e,t,n){return(t=function(e){var t=function(e){if("object"!=oA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oA(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sA(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 uA(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)?uA(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 uA(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 cA=function(){var n=sA(rE(),2),r=n[0],o=r.settings,i=r.installPage,a=r.registrationPageLink,l=n[1],s=sA((0,e.useState)(!1),2),u=s[0],c=s[1],d=sA((0,e.useState)(!1),2),f=d[0],p=d[1],h=sA((0,e.useState)(!1),2),m=h[0],v=h[1],g="undefined"!=typeof _UR_WIZARD_&&_UR_WIZARD_,b=g.adminURL,y=g.siteURL,x=g.defaultFormURL,w=g.urRestApiNonce,k=g.onBoardIconsURL,S=g.restURL,E=g.registrationPageURL,C=sA((0,e.useState)([{key:"install_pages",label:Cy("Install Pages","user-registration"),title:Cy("Install Pages","user-registration"),description:Cy("The following pages and forms will be created automatically.","user-registration"),isDone:!0,component:t().createElement(wE,null)},{key:"general_settings",label:Cy("General","user-registration"),title:Cy("General Settings","user-registration"),description:Cy("Customize your general settings as per your preference.","user-registration"),isDone:!1,component:t().createElement(tA,null)},{key:"registration_settings",label:Cy("Registration","user-registration"),title:Cy("Registration Settings","user-registration"),description:Cy("Customize your registration settings as per your preference.","user-registration"),isDone:!1,component:t().createElement(eA,null)},{key:"my_account_settings",label:Cy("My Account","user-registration"),title:Cy("My Account Settings","user-registration"),description:Cy("Customize my account page settings as per your preference.","user-registration"),isDone:!1,component:t().createElement(nA,null)},{key:"final_step",label:Cy("Final Step","user-registration"),isDone:!1,component:t().createElement(rA,null)}]),2),_=C[0],O=C[1],P=sA((0,e.useState)(_[0]),2),T=P[0],A=P[1];(0,e.useEffect)((function(){if(Object.keys(o).length<1)Yy({path:S+"user-registration/v1/getting-started",headers:{"X-WP-Nonce":w}}).then((function(e){var t=_.map((function(t){return t.sectionSettings=e.options[t.key]?e.options[t.key]:{},aA({},t)})),n={};Object.keys(e.options).map((function(t){e.options[t].settings.map((function(e){n[e.id]=e.default}))})),O(t),l({type:sE,settings:n})}));else{var e=new URLSearchParams(window.location.href);if(e.get("step")&&!m){var t=_.findIndex((function(t){return t.key===e.get("step")}));if("final_step"===e.get("step"))return;O((function(t){return t.map((function(t){return t.key===e.get("step")&&("install_pages"===e.get("step")?null!==e.get("installed")?t.isDone=!0:t.isDone=!1:t.isDone=!0),t}))})),"install_pages"===e.get("step")?null!==e.get("installed")?A(_[t+1]):A(_[t]):A(_[t+1])}}}),[o]);var R=function(){var e=_.findIndex((function(e){return e.key===T.key}));O((function(e){return e.map((function(e){return e.key===T.key&&(e.isDone=!0),e}))})),A(_[e+1]),v(!0)},I=function(e){var t=aA({},o);"no"===o.user_registration_form_setting_enable_strong_password&&(t=Object.keys(o).filter((function(e){return"user_registration_form_setting_minimum_password_strength"!==e})).reduce((function(e,t){return e[t]=o[t],e}),{})),"final_step"===T.key&&((t=aA({},t)).user_registration_end_setup_wizard=!0),Yy({path:S+"user-registration/v1/getting-started/save",method:"POST",headers:{"X-WP-Nonce":w},data:{settings:t}}).then((function(t){t.success&&(""!==e?window.location.href=e:R())}))};return t().createElement(Eb,null,Object.keys(o).length>0?t().createElement(t().Fragment,null,t().createElement(Gy,{steps:_,activeStep:T,siteURL:y}),t().createElement("div",{className:"user-registration-setup-wizard__body"},_[_.length-1].key===T.key?(0,e.cloneElement)(T.component,{sectionSettings:T.sectionSettings&&{},siteURL:y,onBoardIconsURL:k}):t().createElement(Cb,{direction:"column",justifyContent:"space-between",alignItems:"left"},T.title&&t().createElement(_b,{as:"h2",size:"lg",fontSize:"22px",mb:4,color:"#383838",fontWeight:"600"},T.title),T.description&&t().createElement(Ob,{fontSize:"16px",as:"i",color:"#6B6B6B"},T.description),(0,e.cloneElement)(T.component,{sectionSettings:T.sectionSettings,siteURL:y,onBoardIconsURL:k}))),t().createElement("div",{className:"user-registration-setup-wizard__footer"},t().createElement("div",{className:"user-registration-setup-wizard__footer--left"},_[_.length-1].key===T.key?t().createElement(jb,{variant:"outline",colorScheme:"gray",onClick:function(){p(!0),I(void 0===a?E:a)},disabled:f,style:{backgroundColor:"#FAFAFA",color:"#6B6B6B",border:"1px solid #999999"}},Cy("View Registration Page","user-registration")):_[0].key!==T.key?t().createElement(jb,{variant:"outline",onClick:function(){var e=_.findIndex((function(e){return e.key===T.key}));0!==e&&(O((function(e){return e.map((function(e){return e.key===T.key&&(e.isDone=!1),e}))})),A(_[e-1]))},style:{backgroundColor:"#FAFAFA",color:"#6B6B6B",border:"1px solid #999999"}},Cy("Back","user-registration")):""),t().createElement("div",{className:"user-registration-setup-wizard__footer--right"},_[_.length-1].key===T.key?t().createElement(jb,{colorScheme:"blue",backgroundColor:"#475BB2 !important",color:"#FAFAFA !important",onClick:function(){p(!0),I(x+"&end-setup-wizard=1")},disabled:f},Cy("Edit Default Form","user-registration")):t().createElement(t().Fragment,null,_[0].key!==T.key&&t().createElement(jb,{variant:"link",colorScheme:"gray",onClick:function(){var e=aA({},o);T.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}),{})})),l({type:sE,settings:e}),R()},mr:10,ml:10,fontStyle:"italic",textDecoration:"underline",fontSize:"14px",fontWeight:"400",background:"none !important",color:"#6B6B6B !important",border:"none !important"},Cy("Skip this step","user-registration")),_[0].key===T.key&&"installed"!==i.my_account_page.status?t().createElement(jb,{variant:"solid",backgroundColor:"#475BB2 !important",color:"#FAFAFA !important",disabled:u,onClick:function(){c(!0),Yy({path:S+"user-registration/v1/getting-started/install-pages",method:"POST",headers:{"X-WP-Nonce":w},data:{install_pages:!0}}).then((function(e){if(e.success){e.default_form_id&&l({type:cE,defaultFormId:e.default_form_id}),e.registration_page_link&&l({type:dE,registrationPageLink:e.registration_page_link}),e.is_pro&&l({type:fE,defaultFormId:e.is_pro});var t=aA({},i);t.registration_page.status="installing",t.registration_page.slug="/"+e.page_slug[0],l({type:uE,installPage:t}),new Xy((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],l({type:uE,installPage:t}),new Xy((function(e,t){setTimeout(e,5e3)})).then((function(){t.my_account_page.status="installed",l({type:uE,installPage:t})}))}))}else console.log(e.message)}))}},Cy("Install & Proceed","user-registration")):t().createElement(jb,{colorScheme:"blue",backgroundColor:"#475BB2 !important",color:"#FAFAFA !important",disabled:_[_.length-1].key===T.key,onClick:function(){I("")}},Cy("Next","user-registration"))))),t().createElement("center",null,t().createElement(Fb,null,t().createElement(jb,{variant:"link",disabled:f,onClick:function(){p(!0);var e="my_account_settings"===T.key||"final_step"===T.key?"":"&activeStep=".concat(T.key);I("".concat(b,"admin.php?page=user-registration-dashboard&end-setup-wizard=1").concat(e))},mr:10,ml:10,pt:"6",fontStyle:"italic",textDecoration:"underline",fontSize:"16px",fontWeight:"400",gap:"10px",className:"button-tertiary",background:"none !important",color:"#6B6B6B !important",border:"none !important"},Cy("Go to dashboard","user-registration"),t().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"currentColor",className:"bi bi-arrow-right",viewBox:"0 0 16 16",marginleft:"100px"},t().createElement("path",{fillRule:"evenodd",d:"M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"})))))):t().createElement(Lb,{display:"flex",justifyContent:"center",padding:"250px"},t().createElement(Hg,{size:"lg"})))};document.getElementById("user-registration-setup-wizard")&&r.render(t().createElement(nE,{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 sE:return aE(aE({},e),{},{settings:t.settings});case uE:return aE(aE({},e),{},{installPage:t.installPage});case cE:return aE(aE({},e),{},{defaultFormId:t.defaultFormId});case dE:return aE(aE({},e),{},{registrationPageLink:t.registrationPageLink});case fE:return aE(aE({},e),{},{isPro:t.isPro});default:return e}}},t().createElement(cA,null)),document.getElementById("user-registration-setup-wizard"))})()})();