From ecc142e6ed5bbc1099fc08692455d0d7e8befd05 Mon Sep 17 00:00:00 2001 From: powerpook Date: Mon, 19 Aug 2024 18:16:10 +0800 Subject: [PATCH] Updates --- CNAME | 1 - static/js/.pnpm/.pnpm.B-gp-w2q.js | 2662 +++++++++++++++++++++++++++++ 2 files changed, 2662 insertions(+), 1 deletion(-) delete mode 100644 CNAME create mode 100644 static/js/.pnpm/.pnpm.B-gp-w2q.js diff --git a/CNAME b/CNAME deleted file mode 100644 index b887c85..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -multikey.ibax.network \ No newline at end of file diff --git a/static/js/.pnpm/.pnpm.B-gp-w2q.js b/static/js/.pnpm/.pnpm.B-gp-w2q.js new file mode 100644 index 0000000..e2633b7 --- /dev/null +++ b/static/js/.pnpm/.pnpm.B-gp-w2q.js @@ -0,0 +1,2662 @@ +var XA=Object.defineProperty;var JA=(e,t,r)=>t in e?XA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ix=(e,t,r)=>(JA(e,typeof t!="symbol"?t+"":t,r),r);function x9(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var m9={exports:{}},up={},g9={exports:{}},At={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var m0=Symbol.for("react.element"),ZA=Symbol.for("react.portal"),QA=Symbol.for("react.fragment"),ek=Symbol.for("react.strict_mode"),tk=Symbol.for("react.profiler"),rk=Symbol.for("react.provider"),nk=Symbol.for("react.context"),ik=Symbol.for("react.forward_ref"),ok=Symbol.for("react.suspense"),ak=Symbol.for("react.memo"),sk=Symbol.for("react.lazy"),g3=Symbol.iterator;function lk(e){return e===null||typeof e!="object"?null:(e=g3&&e[g3]||e["@@iterator"],typeof e=="function"?e:null)}var v9={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b9=Object.assign,y9={};function Vc(e,t,r){this.props=e,this.context=t,this.refs=y9,this.updater=r||v9}Vc.prototype.isReactComponent={};Vc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function w9(){}w9.prototype=Vc.prototype;function g2(e,t,r){this.props=e,this.context=t,this.refs=y9,this.updater=r||v9}var v2=g2.prototype=new w9;v2.constructor=g2;b9(v2,Vc.prototype);v2.isPureReactComponent=!0;var v3=Array.isArray,S9=Object.prototype.hasOwnProperty,b2={current:null},C9={key:!0,ref:!0,__self:!0,__source:!0};function E9(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)S9.call(t,n)&&!C9.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(10?Yr(qc,--Dn):0,yc--,Sr===10&&(yc=1,dp--),Sr}function ei(){return Sr=Dn<_9?Yr(qc,Dn++):0,yc++,Sr===10&&(yc=1,dp++),Sr}function Eo(){return Yr(qc,Dn)}function Rd(){return Dn}function g0(e,t){return Af(qc,e,t)}function kf(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 R9(e){return dp=yc=1,_9=vo(qc=e),Dn=0,[]}function T9(e){return qc="",e}function Td(e){return k9(g0(Dn-1,Cg(e===91?e+2:e===40?e+1:e)))}function Tk(e){for(;(Sr=Eo())&&Sr<33;)ei();return kf(e)>2||kf(Sr)>3?"":" "}function $k(e,t){for(;--t&&ei()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return g0(e,Rd()+(t<6&&Eo()==32&&ei()==32))}function Cg(e){for(;ei();)switch(Sr){case e:return Dn;case 34:case 39:e!==34&&e!==39&&Cg(Sr);break;case 40:e===41&&Cg(e);break;case 92:ei();break}return Dn}function Bk(e,t){for(;ei()&&e+Sr!==57;)if(e+Sr===84&&Eo()===47)break;return"/*"+g0(t,Dn-1)+"*"+fp(e===47?e:ei())}function Ik(e){for(;!kf(Eo());)ei();return g0(e,Dn)}function Fk(e){return T9($d("",null,null,null,[""],e=R9(e),0,[0],e))}function $d(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,f=a,d=0,b=0,p=0,v=1,w=1,C=1,y=0,M="",B=i,D=o,F=n,N=M;w;)switch(p=y,y=ei()){case 40:if(p!=108&&Yr(N,f-1)==58){Sg(N+=Lt(Td(y),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:N+=Td(y);break;case 9:case 10:case 13:case 32:N+=Tk(p);break;case 92:N+=$k(Rd()-1,7);continue;case 47:switch(Eo()){case 42:case 47:U0(Ok(Bk(ei(),Rd()),t,r),l);break;default:N+="/"}break;case 123*v:s[c++]=vo(N)*C;case 125*v:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:C==-1&&(N=Lt(N,/\f/g,"")),b>0&&vo(N)-f&&U0(b>32?w3(N+";",n,r,f-1):w3(Lt(N," ","")+";",n,r,f-2),l);break;case 59:N+=";";default:if(U0(F=y3(N,t,r,c,u,i,s,M,B=[],D=[],f),o),y===123)if(u===0)$d(N,t,F,F,B,o,f,s,D);else switch(d===99&&Yr(N,3)===110?100:d){case 100:case 108:case 109:case 115:$d(e,F,F,n&&U0(y3(e,F,F,0,0,i,s,M,i,B=[],f),D),i,D,f,s,n?B:D);break;default:$d(N,F,F,F,[""],D,0,s,D)}}c=u=b=0,v=C=1,M=N="",f=a;break;case 58:f=1+vo(N),b=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&Rk()==125)continue}switch(N+=fp(y),y*v){case 38:C=u>0?1:(N+="\f",-1);break;case 44:s[c++]=(vo(N)-1)*C,C=1;break;case 64:Eo()===45&&(N+=Td(ei())),d=Eo(),u=f=vo(M=N+=Ik(Rd())),y++;break;case 45:p===45&&vo(N)==2&&(v=0)}}return o}function y3(e,t,r,n,i,o,a,s,l,c,u){for(var f=i-1,d=i===0?o:[""],b=C2(d),p=0,v=0,w=0;p0?d[C]+" "+y:Lt(y,/&\f/g,d[C])))&&(l[w++]=M);return hp(e,t,r,i===0?w2:s,l,c,u)}function Ok(e,t,r){return hp(e,t,r,P9,fp(_k()),Af(e,2,-2),0)}function w3(e,t,r,n){return hp(e,t,r,S2,Af(e,0,n),Af(e,n+1,-1),n)}function ic(e,t){for(var r="",n=C2(e),i=0;i6)switch(Yr(e,t+1)){case 109:if(Yr(e,t+4)!==45)break;case 102:return Lt(e,/(.+:)(.+)-([^]+)/,"$1"+Dt+"$2-$3$1"+th+(Yr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Sg(e,"stretch")?B9(Lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yr(e,t+1)!==115)break;case 6444:switch(Yr(e,vo(e)-3-(~Sg(e,"!important")&&10))){case 107:return Lt(e,":",":"+Dt)+e;case 101:return Lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Dt+(Yr(e,14)===45?"inline-":"")+"box$3$1"+Dt+"$2$3$1"+nn+"$2box$3")+e}break;case 5936:switch(Yr(e,t+11)){case 114:return Dt+e+nn+Lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Dt+e+nn+Lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Dt+e+nn+Lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Dt+e+nn+e+e}return e}var Vk=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case S2:t.return=B9(t.value,t.length);break;case A9:return ic([xu(t,{value:Lt(t.value,"@","@"+Dt)})],i);case w2:if(t.length)return kk(t.props,function(o){switch(Ak(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ic([xu(t,{props:[Lt(o,/:(read-\w+)/,":"+th+"$1")]})],i);case"::placeholder":return ic([xu(t,{props:[Lt(o,/:(plac\w+)/,":"+Dt+"input-$1")]}),xu(t,{props:[Lt(o,/:(plac\w+)/,":"+th+"$1")]}),xu(t,{props:[Lt(o,/:(plac\w+)/,nn+"input-$1")]})],i)}return""})}},qk=[Vk],I9=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var w=v.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||qk,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var w=v.getAttribute("data-emotion").split(" "),C=1;C=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var n_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i_=/[A-Z]|^ms/g,o_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z9=function(t){return t.charCodeAt(1)===45},C3=function(t){return t!=null&&typeof t!="boolean"},ax=$9(function(e){return z9(e)?e:e.replace(i_,"-$&").toLowerCase()}),E3=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(o_,function(n,i,o){return bo={name:i,styles:o,next:bo},i})}return n_[t]!==1&&!z9(t)&&typeof r=="number"&&r!==0?r+"px":r};function _f(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return bo={name:r.name,styles:r.styles,next:bo},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)bo={name:n.name,styles:n.styles,next:bo},n=n.next;var i=r.styles+";";return i}return a_(e,t,r)}case"function":{if(e!==void 0){var o=bo,a=r(e);return bo=o,_f(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function a_(e,t,r){var n="";if(Array.isArray(r))for(var i=0;iMath.random().toString(36).substring(7).split("").join("."),d_={INIT:`@@redux/INIT${sx()}`,REPLACE:`@@redux/REPLACE${sx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${sx()}`},rh=d_;function $2(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function W9(e,t,r){if(typeof e!="function")throw new Error(qr(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(qr(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(qr(1));return r(W9)(e,t)}let n=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach((w,C)=>{a.set(C,w)}))}function u(){if(l)throw new Error(qr(3));return i}function f(w){if(typeof w!="function")throw new Error(qr(4));if(l)throw new Error(qr(5));let C=!0;c();const y=s++;return a.set(y,w),function(){if(C){if(l)throw new Error(qr(6));C=!1,c(),a.delete(y),o=null}}}function d(w){if(!$2(w))throw new Error(qr(7));if(typeof w.type>"u")throw new Error(qr(8));if(typeof w.type!="string")throw new Error(qr(17));if(l)throw new Error(qr(9));try{l=!0,i=n(i,w)}finally{l=!1}return(o=a).forEach(y=>{y()}),w}function b(w){if(typeof w!="function")throw new Error(qr(10));n=w,d({type:rh.REPLACE})}function p(){const w=f;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(qr(11));function y(){const B=C;B.next&&B.next(u())}return y(),{unsubscribe:w(y)}},[A3](){return this}}}return d({type:rh.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:b,[A3]:p}}function h_(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:rh.INIT})>"u")throw new Error(qr(12));if(typeof r(void 0,{type:rh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qr(13))})}function p_(e){const t=Object.keys(e),r={};for(let o=0;o"u")throw s&&s.type,new Error(qr(14));c[f]=p,l=l||p!==b}return l=l||n.length!==Object.keys(a).length,l?c:a}}function nh(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function x_(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(qr(15))};const a={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},s=e.map(l=>l(a));return o=nh(...s)(i.dispatch),{...i,dispatch:o}}}function V9(e){return $2(e)&&"type"in e&&typeof e.type=="string"}var q9=Symbol.for("immer-nothing"),k3=Symbol.for("immer-draftable"),ri=Symbol.for("immer-state");function to(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var wc=Object.getPrototypeOf;function ia(e){return!!e&&!!e[ri]}function oa(e){var t;return e?K9(e)||Array.isArray(e)||!!e[k3]||!!((t=e.constructor)!=null&&t[k3])||Pp(e)||Ap(e):!1}var m_=Object.prototype.constructor.toString();function K9(e){if(!e||typeof e!="object")return!1;const t=wc(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===m_}function ih(e,t){Mp(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Mp(e){const t=e[ri];return t?t.type_:Array.isArray(e)?1:Pp(e)?2:Ap(e)?3:0}function Mg(e,t){return Mp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function G9(e,t,r){const n=Mp(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function g_(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pp(e){return e instanceof Map}function Ap(e){return e instanceof Set}function ks(e){return e.copy_||e.base_}function Pg(e,t){if(Pp(e))return new Map(e);if(Ap(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&K9(e))return wc(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[ri];let n=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=v_),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>B2(n,!0))),e}function v_(){to(2)}function kp(e){return Object.isFrozen(e)}var b_={};function Xs(e){const t=b_[e];return t||to(0,e),t}var Rf;function Y9(){return Rf}function y_(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function _3(e,t){t&&(Xs("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ag(e){kg(e),e.drafts_.forEach(w_),e.drafts_=null}function kg(e){e===Rf&&(Rf=e.parent_)}function R3(e){return Rf=y_(Rf,e)}function w_(e){const t=e[ri];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function T3(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[ri].modified_&&(Ag(t),to(4)),oa(e)&&(e=oh(t,e),t.parent_||ah(t,e)),t.patches_&&Xs("Patches").generateReplacementPatches_(r[ri].base_,e,t.patches_,t.inversePatches_)):e=oh(t,r,[]),Ag(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==q9?e:void 0}function oh(e,t,r){if(kp(t))return t;const n=t[ri];if(!n)return ih(t,(i,o)=>$3(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return ah(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,a=!1;n.type_===3&&(o=new Set(i),i.clear(),a=!0),ih(o,(s,l)=>$3(e,n,i,s,l,r,a)),ah(e,i,!1),r&&e.patches_&&Xs("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function $3(e,t,r,n,i,o,a){if(ia(i)){const s=o&&t&&t.type_!==3&&!Mg(t.assigned_,n)?o.concat(n):void 0,l=oh(e,i,s);if(G9(r,n,l),ia(l))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(oa(i)&&!kp(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;oh(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&ah(e,i)}}function ah(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&B2(t,r)}function S_(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Y9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=I2;r&&(i=[n],o=Tf);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}var I2={get(e,t){if(t===ri)return e;const r=ks(e);if(!Mg(r,t))return C_(e,r,t);const n=r[t];return e.finalized_||!oa(n)?n:n===lx(e.base_,t)?(cx(e),e.copy_[t]=Rg(n,e)):n},has(e,t){return t in ks(e)},ownKeys(e){return Reflect.ownKeys(ks(e))},set(e,t,r){const n=X9(ks(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=lx(ks(e),t),o=i==null?void 0:i[ri];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(g_(r,i)&&(r!==void 0||Mg(e.base_,t)))return!0;cx(e),_g(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return lx(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,cx(e),_g(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ks(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){to(11)},getPrototypeOf(e){return wc(e.base_)},setPrototypeOf(){to(12)}},Tf={};ih(I2,(e,t)=>{Tf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Tf.deleteProperty=function(e,t){return Tf.set.call(this,e,t,void 0)};Tf.set=function(e,t,r){return I2.set.call(this,e[0],t,r,e[0])};function lx(e,t){const r=e[ri];return(r?ks(r):e)[t]}function C_(e,t,r){var i;const n=X9(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function X9(e,t){if(!(t in e))return;let r=wc(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=wc(r)}}function _g(e){e.modified_||(e.modified_=!0,e.parent_&&_g(e.parent_))}function cx(e){e.copy_||(e.copy_=Pg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var E_=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const a=this;return function(l=o,...c){return a.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&&to(6),n!==void 0&&typeof n!="function"&&to(7);let i;if(oa(t)){const o=R3(this),a=Rg(t,void 0);let s=!0;try{i=r(a),s=!1}finally{s?Ag(o):kg(o)}return _3(o,n),T3(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===q9&&(i=void 0),this.autoFreeze_&&B2(i,!0),n){const o=[],a=[];Xs("Patches").generateReplacementPatches_(t,i,o,a),n(o,a)}return i}else to(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,i;return[this.produce(t,r,(a,s)=>{n=a,i=s}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){oa(e)||to(8),ia(e)&&(e=J9(e));const t=R3(this),r=Rg(e,void 0);return r[ri].isManual_=!0,kg(t),r}finishDraft(e,t){const r=e&&e[ri];(!r||!r.isManual_)&&to(9);const{scope_:n}=r;return _3(n,t),T3(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Xs("Patches").applyPatches_;return ia(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Rg(e,t){const r=Pp(e)?Xs("MapSet").proxyMap_(e,t):Ap(e)?Xs("MapSet").proxySet_(e,t):S_(e,t);return(t?t.scope_:Y9()).drafts_.push(r),r}function J9(e){return ia(e)||to(10,e),Z9(e)}function Z9(e){if(!oa(e)||kp(e))return e;const t=e[ri];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Pg(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Pg(e,!0);return ih(r,(n,i)=>{G9(r,n,Z9(i))}),t&&(t.finalized_=!1),r}var ni=new E_,F2=ni.produce;ni.produceWithPatches.bind(ni);ni.setAutoFreeze.bind(ni);ni.setUseStrictShallowCopy.bind(ni);ni.applyPatches.bind(ni);ni.createDraft.bind(ni);ni.finishDraft.bind(ni);function M_(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function P_(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function A_(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var B3=e=>Array.isArray(e)?e:[e];function k_(e){const t=Array.isArray(e[0])?e[0]:e;return A_(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function __(e,t){const r=[],{length:n}=e;for(let i=0;i{r=H0(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Q9(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),M_(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:b=O2,argsMemoizeOptions:p=[],devModeChecks:v={}}=u,w=B3(d),C=B3(p),y=k_(i),M=f(function(){return o++,c.apply(null,arguments)},...w),B=b(function(){a++;const F=__(y,arguments);return s=M.apply(null,F),s},...C);return Object.assign(B,{resultFunc:c,memoizedResultFunc:M,dependencies:y,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:b})};return Object.assign(n,{withTypes:()=>n}),n}var B_=Q9(O2),I_=Object.assign((e,t=B_)=>{P_(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(o=>e[o]);return t(n,(...o)=>o.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>I_});function ew(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var F_=ew(),O_=ew,D_=(...e)=>{const t=Q9(...e),r=Object.assign((...n)=>{const i=t(...n),o=(a,...s)=>i(ia(a)?J9(a):a,...s);return Object.assign(o,i),o},{withTypes:()=>r});return r},L_=D_(O2),N_=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?nh:nh.apply(null,arguments)},z_=e=>e&&typeof e.match=="function";function Qo(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Rn(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>V9(n)&&n.type===e,r}function j_(e){return V9(e)&&Object.keys(e).every(U_)}function U_(e){return["type","payload","error","meta"].indexOf(e)>-1}var tw=class qu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,qu.prototype)}static get[Symbol.species](){return qu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new qu(...t[0].concat(this)):new qu(...t.concat(this))}};function F3(e){return oa(e)?F2(e,()=>{}):e}function O3(e,t,r){if(e.has(t)){let i=e.get(t);return r.update&&(i=r.update(i,t,e),e.set(t,i)),i}if(!r.insert)throw new Error(Rn(10));const n=r.insert(t,e);return e.set(t,n),n}function H_(e){return typeof e=="boolean"}var W_=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new tw;return r&&(H_(r)?a.push(F_):a.push(O_(r.extraArgument))),a},V_="RTK_autoBatch",rw=e=>t=>{setTimeout(t,e)},q_=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:rw(10),K_=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?q_:e.type==="callback"?e.queueNotification:rw(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const f=()=>i&&u(),d=n.subscribe(f);return s.add(u),()=>{d(),s.delete(u)}},dispatch(u){var f;try{return i=!((f=u==null?void 0:u.meta)!=null&&f[V_]),o=!i,o&&(a||(a=!0,l(c))),n.dispatch(u)}finally{i=!0}}})},G_=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new tw(e);return n&&i.push(K_(typeof n=="object"?n:void 0)),i},Y_=!0;function Tce(e){const t=W_(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof r=="function")s=r;else if($2(r))s=p_(r);else throw new Error(Rn(1));let l;typeof n=="function"?l=n(t):l=t();let c=nh;i&&(c=N_({trace:!Y_,...typeof i=="object"&&i}));const u=x_(...l),f=G_(u);let d=typeof a=="function"?a(f):f();const b=c(...d);return W9(s,o,b)}function nw(e){const t={},r=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(Rn(28));if(s in t)throw new Error(Rn(29));return t[s]=a,i},addMatcher(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function X_(e){return typeof e=="function"}function J_(e,t){let[r,n,i]=nw(t),o;if(X_(e))o=()=>F3(e());else{const s=F3(e);o=()=>s}function a(s=o(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,f)=>{if(f)if(ia(u)){const b=f(u,l);return b===void 0?u:b}else{if(oa(u))return F2(u,d=>f(d,l));{const d=f(u,l);if(d===void 0){if(u===null)return u;throw new Error(Rn(9))}return d}}return u},s)}return a.getInitialState=o,a}var Z_="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",iw=(e=21)=>{let t="",r=e;for(;r--;)t+=Z_[Math.random()*64|0];return t},Q_=(e,t)=>z_(e)?e.match(t):e(t);function eR(...e){return t=>e.some(r=>Q_(r,t))}var tR=["name","message","stack","code"],ux=class{constructor(e,t){ix(this,"_type");this.payload=e,this.meta=t}},D3=class{constructor(e,t){ix(this,"_type");this.payload=e,this.meta=t}},rR=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of tR)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},$ce=(()=>{function e(t,r,n){const i=Qo(t+"/fulfilled",(l,c,u,f)=>({payload:l,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=Qo(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),a=Qo(t+"/rejected",(l,c,u,f,d)=>({payload:f,error:(n&&n.serializeError||rR)(l||"Rejected"),meta:{...d||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(c,u,f)=>{const d=n!=null&&n.idGenerator?n.idGenerator(l):iw(),b=new AbortController;let p,v;function w(y){v=y,b.abort()}const C=async function(){var B,D;let y;try{let F=(B=n==null?void 0:n.condition)==null?void 0:B.call(n,l,{getState:u,extra:f});if(iR(F)&&(F=await F),F===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const N=new Promise((_,L)=>{p=()=>{L({name:"AbortError",message:v||"Aborted"})},b.signal.addEventListener("abort",p)});c(o(d,l,(D=n==null?void 0:n.getPendingMeta)==null?void 0:D.call(n,{requestId:d,arg:l},{getState:u,extra:f}))),y=await Promise.race([N,Promise.resolve(r(l,{dispatch:c,getState:u,extra:f,requestId:d,signal:b.signal,abort:w,rejectWithValue:(_,L)=>new ux(_,L),fulfillWithValue:(_,L)=>new D3(_,L)})).then(_=>{if(_ instanceof ux)throw _;return _ instanceof D3?i(_.payload,d,l,_.meta):i(_,d,l)})])}catch(F){y=F instanceof ux?a(null,d,l,F.payload,F.meta):a(F,d,l)}finally{p&&b.signal.removeEventListener("abort",p)}return n&&!n.dispatchConditionRejection&&a.match(y)&&y.meta.condition||c(y),y}();return Object.assign(C,{abort:w,requestId:d,arg:l,unwrap(){return C.then(nR)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:eR(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function nR(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function iR(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var oR=Symbol.for("rtk-slice-createasyncthunk");function aR(e,t){return`${e}/${t}`}function sR({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[oR];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Rn(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(cR()):i.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(M,B){const D=typeof M=="string"?M:M.type;if(!D)throw new Error(Rn(12));if(D in c.sliceCaseReducersByType)throw new Error(Rn(13));return c.sliceCaseReducersByType[D]=B,u},addMatcher(M,B){return c.sliceMatchers.push({matcher:M,reducer:B}),u},exposeAction(M,B){return c.actionCreators[M]=B,u},exposeCaseReducer(M,B){return c.sliceCaseReducersByName[M]=B,u}};l.forEach(M=>{const B=s[M],D={reducerName:M,type:aR(o,M),createNotation:typeof i.reducers=="function"};fR(B)?hR(D,B,u,t):uR(D,B,u)});function f(){const[M={},B=[],D=void 0]=typeof i.extraReducers=="function"?nw(i.extraReducers):[i.extraReducers],F={...M,...c.sliceCaseReducersByType};return J_(i.initialState,N=>{for(let _ in F)N.addCase(_,F[_]);for(let _ of c.sliceMatchers)N.addMatcher(_.matcher,_.reducer);for(let _ of B)N.addMatcher(_.matcher,_.reducer);D&&N.addDefaultCase(D)})}const d=M=>M,b=new Map;let p;function v(M,B){return p||(p=f()),p(M,B)}function w(){return p||(p=f()),p.getInitialState()}function C(M,B=!1){function D(N){let _=N[M];return typeof _>"u"&&B&&(_=w()),_}function F(N=d){const _=O3(b,B,{insert:()=>new WeakMap});return O3(_,N,{insert:()=>{const L={};for(const[I,R]of Object.entries(i.selectors??{}))L[I]=lR(R,N,w,B);return L}})}return{reducerPath:M,getSelectors:F,get selectors(){return F(D)},selectSlice:D}}const y={name:o,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:w,...C(a),injectInto(M,{reducerPath:B,...D}={}){const F=B??a;return M.inject({reducerPath:F,reducer:v},D),{...y,...C(F,!0)}}};return y}}function lR(e,t,r,n){function i(o,...a){let s=t(o);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return i.unwrapped=e,i}var Bce=sR();function cR(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function uR({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!dR(n))throw new Error(Rn(17));o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Qo(e,a):Qo(e))}function fR(e){return e._reducerDefinitionType==="asyncThunk"}function dR(e){return e._reducerDefinitionType==="reducerWithPrepare"}function hR({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Rn(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,f=i(e,o,u);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:a||W0,pending:s||W0,rejected:l||W0,settled:c||W0})}function W0(){}function pR(){return{ids:[],entities:{}}}function xR(e){function t(r={},n){const i=Object.assign(pR(),r);return n?e.setAll(i,n):i}return{getInitialState:t}}function mR(){function e(t,r={}){const{createSelector:n=L_}=r,i=f=>f.ids,o=f=>f.entities,a=n(i,o,(f,d)=>f.map(b=>d[b])),s=(f,d)=>d,l=(f,d)=>f[d],c=n(i,f=>f.length);if(!t)return{selectIds:i,selectEntities:o,selectAll:a,selectTotal:c,selectById:n(o,s,l)};const u=n(t,o);return{selectIds:n(t,i),selectEntities:u,selectAll:n(t,a),selectTotal:n(t,c),selectById:n(u,s,l)}}return{getSelectors:e}}var gR=ia;function vR(e){const t=pr((r,n)=>e(n));return function(n){return t(n,void 0)}}function pr(e){return function(r,n){function i(a){return j_(a)}const o=a=>{i(n)?e(n.payload,a):e(n,a)};return gR(r)?(o(r),r):F2(r,o)}}function Nl(e,t){return t(e)}function js(e){return Array.isArray(e)||(e=Object.values(e)),e}function ow(e,t,r){e=js(e);const n=[],i=[];for(const o of e){const a=Nl(o,t);a in r.entities?i.push({id:a,changes:o}):n.push(o)}return[n,i]}function aw(e){function t(p,v){const w=Nl(p,e);w in v.entities||(v.ids.push(w),v.entities[w]=p)}function r(p,v){p=js(p);for(const w of p)t(w,v)}function n(p,v){const w=Nl(p,e);w in v.entities||v.ids.push(w),v.entities[w]=p}function i(p,v){p=js(p);for(const w of p)n(w,v)}function o(p,v){p=js(p),v.ids=[],v.entities={},r(p,v)}function a(p,v){return s([p],v)}function s(p,v){let w=!1;p.forEach(C=>{C in v.entities&&(delete v.entities[C],w=!0)}),w&&(v.ids=v.ids.filter(C=>C in v.entities))}function l(p){Object.assign(p,{ids:[],entities:{}})}function c(p,v,w){const C=w.entities[v.id];if(C===void 0)return!1;const y=Object.assign({},C,v.changes),M=Nl(y,e),B=M!==v.id;return B&&(p[v.id]=M,delete w.entities[v.id]),w.entities[M]=y,B}function u(p,v){return f([p],v)}function f(p,v){const w={},C={};p.forEach(M=>{M.id in v.entities&&(C[M.id]={id:M.id,changes:{...C[M.id]?C[M.id].changes:null,...M.changes}})}),p=Object.values(C),p.length>0&&p.filter(B=>c(w,B,v)).length>0&&(v.ids=Object.values(v.entities).map(B=>Nl(B,e)))}function d(p,v){return b([p],v)}function b(p,v){const[w,C]=ow(p,e,v);f(C,v),r(w,v)}return{removeAll:vR(l),addOne:pr(t),addMany:pr(r),setOne:pr(n),setMany:pr(i),setAll:pr(o),updateOne:pr(u),updateMany:pr(f),upsertOne:pr(d),upsertMany:pr(b),removeOne:pr(a),removeMany:pr(s)}}function bR(e,t){const{removeOne:r,removeMany:n,removeAll:i}=aw(e);function o(C,y){return a([C],y)}function a(C,y){C=js(C);const M=C.filter(B=>!(Nl(B,e)in y.entities));M.length!==0&&v(M,y)}function s(C,y){return l([C],y)}function l(C,y){C=js(C),C.length!==0&&v(C,y)}function c(C,y){C=js(C),y.entities={},y.ids=[],a(C,y)}function u(C,y){return f([C],y)}function f(C,y){let M=!1;for(let B of C){const D=y.entities[B.id];if(!D)continue;M=!0,Object.assign(D,B.changes);const F=e(D);B.id!==F&&(delete y.entities[B.id],y.entities[F]=D)}M&&w(y)}function d(C,y){return b([C],y)}function b(C,y){const[M,B]=ow(C,e,y);f(B,y),a(M,y)}function p(C,y){if(C.length!==y.length)return!1;for(let M=0;M{y.entities[e(M)]=M}),w(y)}function w(C){const y=Object.values(C.entities);y.sort(t);const M=y.map(e),{ids:B}=C;p(B,M)||(C.ids=M)}return{removeOne:r,removeMany:n,removeAll:i,addOne:pr(o),updateOne:pr(u),upsertOne:pr(d),setOne:pr(s),setMany:pr(l),setAll:pr(c),addMany:pr(a),updateMany:pr(f),upsertMany:pr(b)}}function Ice(e={}){const{selectId:t,sortComparer:r}={sortComparer:!1,selectId:a=>a.id,...e},n=r?bR(t,r):aw(t),i=xR(n),o=mR();return{selectId:t,sortComparer:r,...i,...o,...n}}var yR=(e,t)=>{if(typeof e!="function")throw new Error(Rn(32))},D2="listenerMiddleware",wR=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=Qo(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Rn(21));return yR(o),{predicate:i,type:t,effect:o}},SR=Object.assign(e=>{const{type:t,predicate:r,effect:n}=wR(e);return{id:iw(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Rn(22))}}},{withTypes:()=>SR}),CR=Object.assign(Qo(`${D2}/add`),{withTypes:()=>CR});Qo(`${D2}/removeAll`);var ER=Object.assign(Qo(`${D2}/remove`),{withTypes:()=>ER});function Rn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function sw(e,t){return function(){return e.apply(t,arguments)}}const{toString:MR}=Object.prototype,{getPrototypeOf:L2}=Object,_p=(e=>t=>{const r=MR.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Oo=e=>(e=e.toLowerCase(),t=>_p(t)===e),Rp=e=>t=>typeof t===e,{isArray:Gc}=Array,$f=Rp("undefined");function PR(e){return e!==null&&!$f(e)&&e.constructor!==null&&!$f(e.constructor)&&Mi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const lw=Oo("ArrayBuffer");function AR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&lw(e.buffer),t}const kR=Rp("string"),Mi=Rp("function"),cw=Rp("number"),Tp=e=>e!==null&&typeof e=="object",_R=e=>e===!0||e===!1,Bd=e=>{if(_p(e)!=="object")return!1;const t=L2(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},RR=Oo("Date"),TR=Oo("File"),$R=Oo("Blob"),BR=Oo("FileList"),IR=e=>Tp(e)&&Mi(e.pipe),FR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mi(e.append)&&((t=_p(e))==="formdata"||t==="object"&&Mi(e.toString)&&e.toString()==="[object FormData]"))},OR=Oo("URLSearchParams"),DR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function b0(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Gc(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const fw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dw=e=>!$f(e)&&e!==fw;function Tg(){const{caseless:e}=dw(this)&&this||{},t={},r=(n,i)=>{const o=e&&uw(t,i)||i;Bd(t[o])&&Bd(n)?t[o]=Tg(t[o],n):Bd(n)?t[o]=Tg({},n):Gc(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n(b0(t,(i,o)=>{r&&Mi(i)?e[o]=sw(i,r):e[o]=i},{allOwnKeys:n}),e),NR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zR=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},jR=(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&L2(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},UR=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},HR=e=>{if(!e)return null;if(Gc(e))return e;let t=e.length;if(!cw(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},WR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&L2(Uint8Array)),VR=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},qR=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},KR=Oo("HTMLFormElement"),GR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),L3=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),YR=Oo("RegExp"),hw=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};b0(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},XR=e=>{hw(e,(t,r)=>{if(Mi(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Mi(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},JR=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Gc(e)?n(e):n(String(e).split(t)),r},ZR=()=>{},QR=(e,t)=>(e=+e,Number.isFinite(e)?e:t),fx="abcdefghijklmnopqrstuvwxyz",N3="0123456789",pw={DIGIT:N3,ALPHA:fx,ALPHA_DIGIT:fx+fx.toUpperCase()+N3},eT=(e=16,t=pw.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function tT(e){return!!(e&&Mi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rT=e=>{const t=new Array(10),r=(n,i)=>{if(Tp(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Gc(n)?[]:{};return b0(n,(a,s)=>{const l=r(a,i+1);!$f(l)&&(o[s]=l)}),t[i]=void 0,o}}return n};return r(e,0)},nT=Oo("AsyncFunction"),iT=e=>e&&(Tp(e)||Mi(e))&&Mi(e.then)&&Mi(e.catch),be={isArray:Gc,isArrayBuffer:lw,isBuffer:PR,isFormData:FR,isArrayBufferView:AR,isString:kR,isNumber:cw,isBoolean:_R,isObject:Tp,isPlainObject:Bd,isUndefined:$f,isDate:RR,isFile:TR,isBlob:$R,isRegExp:YR,isFunction:Mi,isStream:IR,isURLSearchParams:OR,isTypedArray:WR,isFileList:BR,forEach:b0,merge:Tg,extend:LR,trim:DR,stripBOM:NR,inherits:zR,toFlatObject:jR,kindOf:_p,kindOfTest:Oo,endsWith:UR,toArray:HR,forEachEntry:VR,matchAll:qR,isHTMLForm:KR,hasOwnProperty:L3,hasOwnProp:L3,reduceDescriptors:hw,freezeMethods:XR,toObjectSet:JR,toCamelCase:GR,noop:ZR,toFiniteNumber:QR,findKey:uw,global:fw,isContextDefined:dw,ALPHABET:pw,generateString:eT,isSpecCompliantForm:tT,toJSONObject:rT,isAsyncFn:nT,isThenable:iT};function $t(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}be.inherits($t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xw=$t.prototype,mw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{mw[e]={value:e}});Object.defineProperties($t,mw);Object.defineProperty(xw,"isAxiosError",{value:!0});$t.from=(e,t,r,n,i,o)=>{const a=Object.create(xw);return be.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),$t.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const oT=null;function $g(e){return be.isPlainObject(e)||be.isArray(e)}function gw(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function z3(e,t,r){return e?e.concat(t).map(function(i,o){return i=gw(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function aT(e){return be.isArray(e)&&!e.some($g)}const sT=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function $p(e,t,r){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=be.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!be.isUndefined(w[v])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(be.isDate(p))return p.toISOString();if(!l&&be.isBlob(p))throw new $t("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(p)||be.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,v,w){let C=p;if(p&&!w&&typeof p=="object"){if(be.endsWith(v,"{}"))v=n?v:v.slice(0,-2),p=JSON.stringify(p);else if(be.isArray(p)&&aT(p)||(be.isFileList(p)||be.endsWith(v,"[]"))&&(C=be.toArray(p)))return v=gw(v),C.forEach(function(M,B){!(be.isUndefined(M)||M===null)&&t.append(a===!0?z3([v],B,o):a===null?v:v+"[]",c(M))}),!1}return $g(p)?!0:(t.append(z3(w,v,o),c(p)),!1)}const f=[],d=Object.assign(sT,{defaultVisitor:u,convertValue:c,isVisitable:$g});function b(p,v){if(!be.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),be.forEach(p,function(C,y){(!(be.isUndefined(C)||C===null)&&i.call(t,C,be.isString(y)?y.trim():y,v,d))===!0&&b(C,v?v.concat(y):[y])}),f.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return b(e),t}function j3(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function N2(e,t){this._pairs=[],e&&$p(e,this,t)}const vw=N2.prototype;vw.append=function(t,r){this._pairs.push([t,r])};vw.toString=function(t){const r=t?function(n){return t.call(this,n,j3)}:j3;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function lT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bw(e,t,r){if(!t)return e;const n=r&&r.encode||lT,i=r&&r.serialize;let o;if(i?o=i(t,r):o=be.isURLSearchParams(t)?t.toString():new N2(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class U3{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){be.forEach(this.handlers,function(n){n!==null&&t(n)})}}const yw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cT=typeof URLSearchParams<"u"?URLSearchParams:N2,uT=typeof FormData<"u"?FormData:null,fT=typeof Blob<"u"?Blob:null,dT={isBrowser:!0,classes:{URLSearchParams:cT,FormData:uT,Blob:fT},protocols:["http","https","file","blob","url","data"]},ww=typeof window<"u"&&typeof document<"u",hT=(e=>ww&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),pT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ww,hasStandardBrowserEnv:hT,hasStandardBrowserWebWorkerEnv:pT},Symbol.toStringTag,{value:"Module"})),wo={...xT,...dT};function mT(e,t){return $p(e,new wo.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return wo.isNode&&be.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function gT(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vT(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n=r.length;return a=!a&&be.isArray(i)?i.length:a,l?(be.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!be.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],o)&&be.isArray(i[a])&&(i[a]=vT(i[a])),!s)}if(be.isFormData(e)&&be.isFunction(e.entries)){const r={};return be.forEachEntry(e,(n,i)=>{t(gT(n),i,r,0)}),r}return null}function bT(e,t,r){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const z2={transitional:yw,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=be.isObject(t);if(o&&be.isHTMLForm(t)&&(t=new FormData(t)),be.isFormData(t))return i?JSON.stringify(Sw(t)):t;if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t))return t;if(be.isArrayBufferView(t))return t.buffer;if(be.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return mT(t,this.formSerializer).toString();if((s=be.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return $p(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),bT(t)):t}],transformResponse:[function(t){const r=this.transitional||z2.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(t&&be.isString(t)&&(n&&!this.responseType||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?$t.from(s,$t.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wo.classes.FormData,Blob:wo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{z2.headers[e]={}});const j2=z2,yT=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wT=e=>{const t={};let r,n,i;return e&&e.split(` +`).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||t[r]&&yT[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},H3=Symbol("internals");function mu(e){return e&&String(e).trim().toLowerCase()}function Id(e){return e===!1||e==null?e:be.isArray(e)?e.map(Id):String(e)}function ST(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const CT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dx(e,t,r,n,i){if(be.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!be.isString(t)){if(be.isString(n))return t.indexOf(n)!==-1;if(be.isRegExp(n))return n.test(t)}}function ET(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function MT(e,t){const r=be.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,a){return this[n].call(this,t,i,o,a)},configurable:!0})})}class Bp{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(s,l,c){const u=mu(l);if(!u)throw new Error("header name must be a non-empty string");const f=be.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=Id(s))}const a=(s,l)=>be.forEach(s,(c,u)=>o(c,u,l));return be.isPlainObject(t)||t instanceof this.constructor?a(t,r):be.isString(t)&&(t=t.trim())&&!CT(t)?a(wT(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=mu(t),t){const n=be.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return ST(i);if(be.isFunction(r))return r.call(this,i,n);if(be.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=mu(t),t){const n=be.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||dx(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(a){if(a=mu(a),a){const s=be.findKey(n,a);s&&(!r||dx(n,n[s],s,r))&&(delete n[s],i=!0)}}return be.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||dx(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return be.forEach(this,(i,o)=>{const a=be.findKey(n,o);if(a){r[a]=Id(i),delete r[o];return}const s=t?ET(o):String(o).trim();s!==o&&delete r[o],r[s]=Id(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return be.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&be.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[H3]=this[H3]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=mu(a);n[s]||(MT(i,a),n[s]=!0)}return be.isArray(t)?t.forEach(o):o(t),this}}Bp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(Bp.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});be.freezeMethods(Bp);const ea=Bp;function hx(e,t){const r=this||j2,n=t||r,i=ea.from(n.headers);let o=n.data;return be.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Cw(e){return!!(e&&e.__CANCEL__)}function y0(e,t,r){$t.call(this,e??"canceled",$t.ERR_CANCELED,t,r),this.name="CanceledError"}be.inherits(y0,$t,{__CANCEL__:!0});function PT(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new $t("Request failed with status code "+r.status,[$t.ERR_BAD_REQUEST,$t.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const AT=wo.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];be.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),be.isString(n)&&a.push("path="+n),be.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _T(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ew(e,t){return e&&!kT(t)?_T(e,t):t}const RT=wo.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function i(o){let a=o;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(a){const s=be.isString(a)?i(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function TT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $T(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[o];a||(a=c),r[i]=l,n[i]=c;let f=o,d=0;for(;f!==i;)d+=r[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,l=n(s),c=o<=a;r=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&c?(a-o)/l:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const BT=typeof XMLHttpRequest<"u",IT=BT&&function(e){return new Promise(function(r,n){let i=e.data;const o=ea.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(be.isFormData(i)){if(wo.hasStandardBrowserEnv||wo.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((u=o.getContentType())!==!1){const[v,...w]=u?u.split(";").map(C=>C.trim()).filter(Boolean):[];o.setContentType([v||"multipart/form-data",...w].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(v+":"+w))}const d=Ew(e.baseURL,e.url);f.open(e.method.toUpperCase(),bw(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function b(){if(!f)return;const v=ea.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:v,config:e,request:f};PT(function(M){r(M),c()},function(M){n(M),c()},C),f=null}if("onloadend"in f?f.onloadend=b:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(b)},f.onabort=function(){f&&(n(new $t("Request aborted",$t.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new $t("Network Error",$t.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const C=e.transitional||yw;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),n(new $t(w,C.clarifyTimeoutError?$t.ETIMEDOUT:$t.ECONNABORTED,e,f)),f=null},wo.hasStandardBrowserEnv&&(s&&be.isFunction(s)&&(s=s(e)),s||s!==!1&&RT(d))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&AT.read(e.xsrfCookieName);v&&o.set(e.xsrfHeaderName,v)}i===void 0&&o.setContentType(null),"setRequestHeader"in f&&be.forEach(o.toJSON(),function(w,C){f.setRequestHeader(C,w)}),be.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),a&&a!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",W3(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",W3(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=v=>{f&&(n(!v||v.type?new y0(null,e,f):v),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=TT(d);if(p&&wo.protocols.indexOf(p)===-1){n(new $t("Unsupported protocol "+p+":",$t.ERR_BAD_REQUEST,e));return}f.send(i||null)})},Bg={http:oT,xhr:IT};be.forEach(Bg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const V3=e=>`- ${e}`,FT=e=>be.isFunction(e)||e===null||e===!1,Mw={getAdapter:e=>{e=be.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : +`+o.map(V3).join(` +`):" "+V3(o[0]):"as no adapter specified";throw new $t("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Bg};function px(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new y0(null,e)}function q3(e){return px(e),e.headers=ea.from(e.headers),e.data=hx.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mw.getAdapter(e.adapter||j2.adapter)(e).then(function(n){return px(e),n.data=hx.call(e,e.transformResponse,n),n.headers=ea.from(n.headers),n},function(n){return Cw(n)||(px(e),n&&n.response&&(n.response.data=hx.call(e,e.transformResponse,n.response),n.response.headers=ea.from(n.response.headers))),Promise.reject(n)})}const K3=e=>e instanceof ea?{...e}:e;function Sc(e,t){t=t||{};const r={};function n(c,u,f){return be.isPlainObject(c)&&be.isPlainObject(u)?be.merge.call({caseless:f},c,u):be.isPlainObject(u)?be.merge({},u):be.isArray(u)?u.slice():u}function i(c,u,f){if(be.isUndefined(u)){if(!be.isUndefined(c))return n(void 0,c,f)}else return n(c,u,f)}function o(c,u){if(!be.isUndefined(u))return n(void 0,u)}function a(c,u){if(be.isUndefined(u)){if(!be.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,f){if(f in t)return n(c,u);if(f in e)return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>i(K3(c),K3(u),!0)};return be.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||i,d=f(e[u],t[u],u);be.isUndefined(d)&&f!==s||(r[u]=d)}),r}const Pw="1.6.8",U2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{U2[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const G3={};U2.transitional=function(t,r,n){function i(o,a){return"[Axios v"+Pw+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,s)=>{if(t===!1)throw new $t(i(a," has been removed"+(r?" in "+r:"")),$t.ERR_DEPRECATED);return r&&!G3[a]&&(G3[a]=!0),t?t(o,a,s):!0}};function OT(e,t,r){if(typeof e!="object")throw new $t("options must be an object",$t.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new $t("option "+o+" must be "+l,$t.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new $t("Unknown option "+o,$t.ERR_BAD_OPTION)}}const Ig={assertOptions:OT,validators:U2},wa=Ig.validators;class sh{constructor(t){this.defaults=t,this.interceptors={request:new U3,response:new U3}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+o):n.stack=o}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Sc(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Ig.assertOptions(n,{silentJSONParsing:wa.transitional(wa.boolean),forcedJSONParsing:wa.transitional(wa.boolean),clarifyTimeoutError:wa.transitional(wa.boolean)},!1),i!=null&&(be.isFunction(i)?r.paramsSerializer={serialize:i}:Ig.assertOptions(i,{encode:wa.function,serialize:wa.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&be.merge(o.common,o[r.method]);o&&be.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=ea.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,f=0,d;if(!l){const p=[q3.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),d=p.length,u=Promise.resolve(r);f{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},t(function(o,a,s){n.reason||(n.reason=new y0(o,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new H2(function(i){t=i}),cancel:t}}}const DT=H2;function LT(e){return function(r){return e.apply(null,r)}}function NT(e){return be.isObject(e)&&e.isAxiosError===!0}const Fg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fg).forEach(([e,t])=>{Fg[t]=e});const zT=Fg;function Aw(e){const t=new Fd(e),r=sw(Fd.prototype.request,t);return be.extend(r,Fd.prototype,t,{allOwnKeys:!0}),be.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return Aw(Sc(e,i))},r}const kr=Aw(j2);kr.Axios=Fd;kr.CanceledError=y0;kr.CancelToken=DT;kr.isCancel=Cw;kr.VERSION=Pw;kr.toFormData=$p;kr.AxiosError=$t;kr.Cancel=kr.CanceledError;kr.all=function(t){return Promise.all(t)};kr.spread=LT;kr.isAxiosError=NT;kr.mergeConfig=Sc;kr.AxiosHeaders=ea;kr.formToJSON=e=>Sw(be.isHTMLForm(e)?new FormData(e):e);kr.getAdapter=Mw.getAdapter;kr.HttpStatusCode=zT;kr.default=kr;var jT=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,xx=Math.ceil,hi=Math.floor,Mn="[BigNumber Error] ",Y3=Mn+"Number primitive has more than 15 significant digits: ",Vi=1e14,bt=14,mx=9007199254740991,gx=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Sa=1e7,Tr=1e9;function kw(e){var t,r,n,i=y.prototype={constructor:y,toString:null,valueOf:null},o=new y(1),a=20,s=4,l=-7,c=21,u=-1e7,f=1e7,d=!1,b=1,p=0,v={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},w="0123456789abcdefghijklmnopqrstuvwxyz",C=!0;function y(_,L){var I,R,m,g,h,x,S,T,k=this;if(!(k instanceof y))return new y(_,L);if(L==null){if(_&&_._isBigNumber===!0){k.s=_.s,!_.c||_.e>f?k.c=k.e=null:_.e=10;h/=10,g++);g>f?k.c=k.e=null:(k.e=g,k.c=[_]);return}T=String(_)}else{if(!jT.test(T=String(_)))return n(k,T,x);k.s=T.charCodeAt(0)==45?(T=T.slice(1),-1):1}(g=T.indexOf("."))>-1&&(T=T.replace(".","")),(h=T.search(/e/i))>0?(g<0&&(g=h),g+=+T.slice(h+1),T=T.substring(0,h)):g<0&&(g=T.length)}else{if(er(L,2,w.length,"Base"),L==10&&C)return k=new y(_),F(k,a+k.e+1,s);if(T=String(_),x=typeof _=="number"){if(_*0!=0)return n(k,T,x,L);if(k.s=1/_<0?(T=T.slice(1),-1):1,y.DEBUG&&T.replace(/^0\.0*|\./,"").length>15)throw Error(Y3+_)}else k.s=T.charCodeAt(0)===45?(T=T.slice(1),-1):1;for(I=w.slice(0,L),g=h=0,S=T.length;hg){g=S;continue}}else if(!m&&(T==T.toUpperCase()&&(T=T.toLowerCase())||T==T.toLowerCase()&&(T=T.toUpperCase()))){m=!0,h=-1,g=0;continue}return n(k,String(_),x,L)}x=!1,T=r(T,L,10,k.s),(g=T.indexOf("."))>-1?T=T.replace(".",""):g=T.length}for(h=0;T.charCodeAt(h)===48;h++);for(S=T.length;T.charCodeAt(--S)===48;);if(T=T.slice(h,++S)){if(S-=h,x&&y.DEBUG&&S>15&&(_>mx||_!==hi(_)))throw Error(Y3+k.s*_);if((g=g-h-1)>f)k.c=k.e=null;else if(g=-Tr&&m<=Tr&&m===hi(m)){if(R[0]===0){if(m===0&&R.length===1)return!0;break e}if(L=(m+1)%bt,L<1&&(L+=bt),String(R[0]).length==L){for(L=0;L=Vi||I!==hi(I))break e;if(I!==0)return!0}}}else if(R===null&&m===null&&(g===null||g===1||g===-1))return!0;throw Error(Mn+"Invalid BigNumber: "+_)},y.maximum=y.max=function(){return B(arguments,-1)},y.minimum=y.min=function(){return B(arguments,1)},y.random=function(){var _=9007199254740992,L=Math.random()*_&2097151?function(){return hi(Math.random()*_)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(I){var R,m,g,h,x,S=0,T=[],k=new y(o);if(I==null?I=a:er(I,0,Tr),h=xx(I/bt),d)if(crypto.getRandomValues){for(R=crypto.getRandomValues(new Uint32Array(h*=2));S>>11),x>=9e15?(m=crypto.getRandomValues(new Uint32Array(2)),R[S]=m[0],R[S+1]=m[1]):(T.push(x%1e14),S+=2);S=h/2}else if(crypto.randomBytes){for(R=crypto.randomBytes(h*=7);S=9e15?crypto.randomBytes(7).copy(R,S):(T.push(x%1e14),S+=7);S=h/7}else throw d=!1,Error(Mn+"crypto unavailable");if(!d)for(;S=10;x/=10,S++);Sm-1&&(x[h+1]==null&&(x[h+1]=0),x[h+1]+=x[h]/m|0,x[h]%=m)}return x.reverse()}return function(I,R,m,g,h){var x,S,T,k,$,P,E,A,z=I.indexOf("."),H=a,O=s;for(z>=0&&(k=p,p=0,I=I.replace(".",""),A=new y(R),P=A.pow(I.length-z),p=k,A.c=L(zo(fi(P.c),P.e,"0"),10,m,_),A.e=A.c.length),E=L(I,R,m,h?(x=w,_):(x=_,w)),T=k=E.length;E[--k]==0;E.pop());if(!E[0])return x.charAt(0);if(z<0?--T:(P.c=E,P.e=T,P.s=g,P=t(P,A,H,O,m),E=P.c,$=P.r,T=P.e),S=T+H+1,z=E[S],k=m/2,$=$||S<0||E[S+1]!=null,$=O<4?(z!=null||$)&&(O==0||O==(P.s<0?3:2)):z>k||z==k&&(O==4||$||O==6&&E[S-1]&1||O==(P.s<0?8:7)),S<1||!E[0])I=$?zo(x.charAt(1),-H,x.charAt(0)):x.charAt(0);else{if(E.length=S,$)for(--m;++E[--S]>m;)E[S]=0,S||(++T,E=[1].concat(E));for(k=E.length;!E[--k];);for(z=0,I="";z<=k;I+=x.charAt(E[z++]));I=zo(I,T,x.charAt(0))}return I}}(),t=function(){function _(R,m,g){var h,x,S,T,k=0,$=R.length,P=m%Sa,E=m/Sa|0;for(R=R.slice();$--;)S=R[$]%Sa,T=R[$]/Sa|0,h=E*S+T*P,x=P*S+h%Sa*Sa+k,k=(x/g|0)+(h/Sa|0)+E*T,R[$]=x%g;return k&&(R=[k].concat(R)),R}function L(R,m,g,h){var x,S;if(g!=h)S=g>h?1:-1;else for(x=S=0;xm[x]?1:-1;break}return S}function I(R,m,g,h){for(var x=0;g--;)R[g]-=x,x=R[g]1;R.splice(0,1));}return function(R,m,g,h,x){var S,T,k,$,P,E,A,z,H,O,V,X,J,G,j,q,K,Z=R.s==m.s?1:-1,te=R.c,Q=m.c;if(!te||!te[0]||!Q||!Q[0])return new y(!R.s||!m.s||(te?Q&&te[0]==Q[0]:!Q)?NaN:te&&te[0]==0||!Q?Z*0:Z/0);for(z=new y(Z),H=z.c=[],T=R.e-m.e,Z=g+T+1,x||(x=Vi,T=pi(R.e/bt)-pi(m.e/bt),Z=Z/bt|0),k=0;Q[k]==(te[k]||0);k++);if(Q[k]>(te[k]||0)&&T--,Z<0)H.push(1),$=!0;else{for(G=te.length,q=Q.length,k=0,Z+=2,P=hi(x/(Q[0]+1)),P>1&&(Q=_(Q,P,x),te=_(te,P,x),q=Q.length,G=te.length),J=q,O=te.slice(0,q),V=O.length;V=x/2&&j++;do{if(P=0,S=L(Q,O,q,V),S<0){if(X=O[0],q!=V&&(X=X*x+(O[1]||0)),P=hi(X/j),P>1)for(P>=x&&(P=x-1),E=_(Q,P,x),A=E.length,V=O.length;L(E,O,A,V)==1;)P--,I(E,q=10;Z/=10,k++);F(z,g+(z.e=k+T*bt-1)+1,h,$)}else z.e=T,z.r=+$;return z}}();function M(_,L,I,R){var m,g,h,x,S;if(I==null?I=s:er(I,0,8),!_.c)return _.toString();if(m=_.c[0],h=_.e,L==null)S=fi(_.c),S=R==1||R==2&&(h<=l||h>=c)?q0(S,h):zo(S,h,"0");else if(_=F(new y(_),L,I),g=_.e,S=fi(_.c),x=S.length,R==1||R==2&&(L<=g||g<=l)){for(;xx){if(--L>0)for(S+=".";L--;S+="0");}else if(L+=g-x,L>0)for(g+1==x&&(S+=".");L--;S+="0");return _.s<0&&m?"-"+S:S}function B(_,L){for(var I,R,m=1,g=new y(_[0]);m<_.length;m++)R=new y(_[m]),(!R.s||(I=Cs(g,R))===L||I===0&&g.s===L)&&(g=R);return g}function D(_,L,I){for(var R=1,m=L.length;!L[--m];L.pop());for(m=L[0];m>=10;m/=10,R++);return(I=R+I*bt-1)>f?_.c=_.e=null:I=10;x/=10,m++);if(g=L-m,g<0)g+=bt,h=L,S=$[T=0],k=hi(S/P[m-h-1]%10);else if(T=xx((g+1)/bt),T>=$.length)if(R){for(;$.length<=T;$.push(0));S=k=0,m=1,g%=bt,h=g-bt+1}else break e;else{for(S=x=$[T],m=1;x>=10;x/=10,m++);g%=bt,h=g-bt+m,k=h<0?0:hi(S/P[m-h-1]%10)}if(R=R||L<0||$[T+1]!=null||(h<0?S:S%P[m-h-1]),R=I<4?(k||R)&&(I==0||I==(_.s<0?3:2)):k>5||k==5&&(I==4||R||I==6&&(g>0?h>0?S/P[m-h]:0:$[T-1])%10&1||I==(_.s<0?8:7)),L<1||!$[0])return $.length=0,R?(L-=_.e+1,$[0]=P[(bt-L%bt)%bt],_.e=-L||0):$[0]=_.e=0,_;if(g==0?($.length=T,x=1,T--):($.length=T+1,x=P[bt-g],$[T]=h>0?hi(S/P[m-h]%P[h])*x:0),R)for(;;)if(T==0){for(g=1,h=$[0];h>=10;h/=10,g++);for(h=$[0]+=x,x=1;h>=10;h/=10,x++);g!=x&&(_.e++,$[0]==Vi&&($[0]=1));break}else{if($[T]+=x,$[T]!=Vi)break;$[T--]=0,x=1}for(g=$.length;$[--g]===0;$.pop());}_.e>f?_.c=_.e=null:_.e=c?q0(L,I):zo(L,I,"0"),_.s<0?"-"+L:L)}return i.absoluteValue=i.abs=function(){var _=new y(this);return _.s<0&&(_.s=1),_},i.comparedTo=function(_,L){return Cs(this,new y(_,L))},i.decimalPlaces=i.dp=function(_,L){var I,R,m,g=this;if(_!=null)return er(_,0,Tr),L==null?L=s:er(L,0,8),F(new y(g),_+g.e+1,L);if(!(I=g.c))return null;if(R=((m=I.length-1)-pi(this.e/bt))*bt,m=I[m])for(;m%10==0;m/=10,R--);return R<0&&(R=0),R},i.dividedBy=i.div=function(_,L){return t(this,new y(_,L),a,s)},i.dividedToIntegerBy=i.idiv=function(_,L){return t(this,new y(_,L),0,1)},i.exponentiatedBy=i.pow=function(_,L){var I,R,m,g,h,x,S,T,k,$=this;if(_=new y(_),_.c&&!_.isInteger())throw Error(Mn+"Exponent not an integer: "+N(_));if(L!=null&&(L=new y(L)),x=_.e>14,!$.c||!$.c[0]||$.c[0]==1&&!$.e&&$.c.length==1||!_.c||!_.c[0])return k=new y(Math.pow(+N($),x?_.s*(2-V0(_)):+N(_))),L?k.mod(L):k;if(S=_.s<0,L){if(L.c?!L.c[0]:!L.s)return new y(NaN);R=!S&&$.isInteger()&&L.isInteger(),R&&($=$.mod(L))}else{if(_.e>9&&($.e>0||$.e<-1||($.e==0?$.c[0]>1||x&&$.c[1]>=24e7:$.c[0]<8e13||x&&$.c[0]<=9999975e7)))return g=$.s<0&&V0(_)?-0:0,$.e>-1&&(g=1/g),new y(S?1/g:g);p&&(g=xx(p/bt+2))}for(x?(I=new y(.5),S&&(_.s=1),T=V0(_)):(m=Math.abs(+N(_)),T=m%2),k=new y(o);;){if(T){if(k=k.times($),!k.c)break;g?k.c.length>g&&(k.c.length=g):R&&(k=k.mod(L))}if(m){if(m=hi(m/2),m===0)break;T=m%2}else if(_=_.times(I),F(_,_.e+1,1),_.e>14)T=V0(_);else{if(m=+N(_),m===0)break;T=m%2}$=$.times($),g?$.c&&$.c.length>g&&($.c.length=g):R&&($=$.mod(L))}return R?k:(S&&(k=o.div(k)),L?k.mod(L):g?F(k,p,s,h):k)},i.integerValue=function(_){var L=new y(this);return _==null?_=s:er(_,0,8),F(L,L.e+1,_)},i.isEqualTo=i.eq=function(_,L){return Cs(this,new y(_,L))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(_,L){return Cs(this,new y(_,L))>0},i.isGreaterThanOrEqualTo=i.gte=function(_,L){return(L=Cs(this,new y(_,L)))===1||L===0},i.isInteger=function(){return!!this.c&&pi(this.e/bt)>this.c.length-2},i.isLessThan=i.lt=function(_,L){return Cs(this,new y(_,L))<0},i.isLessThanOrEqualTo=i.lte=function(_,L){return(L=Cs(this,new y(_,L)))===-1||L===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(_,L){var I,R,m,g,h=this,x=h.s;if(_=new y(_,L),L=_.s,!x||!L)return new y(NaN);if(x!=L)return _.s=-L,h.plus(_);var S=h.e/bt,T=_.e/bt,k=h.c,$=_.c;if(!S||!T){if(!k||!$)return k?(_.s=-L,_):new y($?h:NaN);if(!k[0]||!$[0])return $[0]?(_.s=-L,_):new y(k[0]?h:s==3?-0:0)}if(S=pi(S),T=pi(T),k=k.slice(),x=S-T){for((g=x<0)?(x=-x,m=k):(T=S,m=$),m.reverse(),L=x;L--;m.push(0));m.reverse()}else for(R=(g=(x=k.length)<(L=$.length))?x:L,x=L=0;L0)for(;L--;k[I++]=0);for(L=Vi-1;R>x;){if(k[--R]<$[R]){for(I=R;I&&!k[--I];k[I]=L);--k[I],k[R]+=Vi}k[R]-=$[R]}for(;k[0]==0;k.splice(0,1),--T);return k[0]?D(_,k,T):(_.s=s==3?-1:1,_.c=[_.e=0],_)},i.modulo=i.mod=function(_,L){var I,R,m=this;return _=new y(_,L),!m.c||!_.s||_.c&&!_.c[0]?new y(NaN):!_.c||m.c&&!m.c[0]?new y(m):(b==9?(R=_.s,_.s=1,I=t(m,_,0,3),_.s=R,I.s*=R):I=t(m,_,0,b),_=m.minus(I.times(_)),!_.c[0]&&b==1&&(_.s=m.s),_)},i.multipliedBy=i.times=function(_,L){var I,R,m,g,h,x,S,T,k,$,P,E,A,z,H,O=this,V=O.c,X=(_=new y(_,L)).c;if(!V||!X||!V[0]||!X[0])return!O.s||!_.s||V&&!V[0]&&!X||X&&!X[0]&&!V?_.c=_.e=_.s=null:(_.s*=O.s,!V||!X?_.c=_.e=null:(_.c=[0],_.e=0)),_;for(R=pi(O.e/bt)+pi(_.e/bt),_.s*=O.s,S=V.length,$=X.length,S<$&&(A=V,V=X,X=A,m=S,S=$,$=m),m=S+$,A=[];m--;A.push(0));for(z=Vi,H=Sa,m=$;--m>=0;){for(I=0,P=X[m]%H,E=X[m]/H|0,h=S,g=m+h;g>m;)T=V[--h]%H,k=V[h]/H|0,x=E*T+k*P,T=P*T+x%H*H+A[g]+I,I=(T/z|0)+(x/H|0)+E*k,A[g--]=T%z;A[g]=I}return I?++R:A.splice(0,1),D(_,A,R)},i.negated=function(){var _=new y(this);return _.s=-_.s||null,_},i.plus=function(_,L){var I,R=this,m=R.s;if(_=new y(_,L),L=_.s,!m||!L)return new y(NaN);if(m!=L)return _.s=-L,R.minus(_);var g=R.e/bt,h=_.e/bt,x=R.c,S=_.c;if(!g||!h){if(!x||!S)return new y(m/0);if(!x[0]||!S[0])return S[0]?_:new y(x[0]?R:m*0)}if(g=pi(g),h=pi(h),x=x.slice(),m=g-h){for(m>0?(h=g,I=S):(m=-m,I=x),I.reverse();m--;I.push(0));I.reverse()}for(m=x.length,L=S.length,m-L<0&&(I=S,S=x,x=I,L=m),m=0;L;)m=(x[--L]=x[L]+S[L]+m)/Vi|0,x[L]=Vi===x[L]?0:x[L]%Vi;return m&&(x=[m].concat(x),++h),D(_,x,h)},i.precision=i.sd=function(_,L){var I,R,m,g=this;if(_!=null&&_!==!!_)return er(_,1,Tr),L==null?L=s:er(L,0,8),F(new y(g),_,L);if(!(I=g.c))return null;if(m=I.length-1,R=m*bt+1,m=I[m]){for(;m%10==0;m/=10,R--);for(m=I[0];m>=10;m/=10,R++);}return _&&g.e+1>R&&(R=g.e+1),R},i.shiftedBy=function(_){return er(_,-mx,mx),this.times("1e"+_)},i.squareRoot=i.sqrt=function(){var _,L,I,R,m,g=this,h=g.c,x=g.s,S=g.e,T=a+4,k=new y("0.5");if(x!==1||!h||!h[0])return new y(!x||x<0&&(!h||h[0])?NaN:h?g:1/0);if(x=Math.sqrt(+N(g)),x==0||x==1/0?(L=fi(h),(L.length+S)%2==0&&(L+="0"),x=Math.sqrt(+L),S=pi((S+1)/2)-(S<0||S%2),x==1/0?L="5e"+S:(L=x.toExponential(),L=L.slice(0,L.indexOf("e")+1)+S),I=new y(L)):I=new y(x+""),I.c[0]){for(S=I.e,x=S+T,x<3&&(x=0);;)if(m=I,I=k.times(m.plus(t(g,m,T,1))),fi(m.c).slice(0,x)===(L=fi(I.c)).slice(0,x))if(I.e0&&A>0){for(g=A%x||x,k=E.substr(0,g);g0&&(k+=T+E.slice(g)),P&&(k="-"+k)}R=$?k+(I.decimalSeparator||"")+((S=+I.fractionGroupSize)?$.replace(new RegExp("\\d{"+S+"}\\B","g"),"$&"+(I.fractionGroupSeparator||"")):$):k}return(I.prefix||"")+R+(I.suffix||"")},i.toFraction=function(_){var L,I,R,m,g,h,x,S,T,k,$,P,E=this,A=E.c;if(_!=null&&(x=new y(_),!x.isInteger()&&(x.c||x.s!==1)||x.lt(o)))throw Error(Mn+"Argument "+(x.isInteger()?"out of range: ":"not an integer: ")+N(x));if(!A)return new y(E);for(L=new y(o),T=I=new y(o),R=S=new y(o),P=fi(A),g=L.e=P.length-E.e-1,L.c[0]=gx[(h=g%bt)<0?bt+h:h],_=!_||x.comparedTo(L)>0?g>0?L:T:x,h=f,f=1/0,x=new y(P),S.c[0]=0;k=t(x,L,0,1),m=I.plus(k.times(R)),m.comparedTo(_)!=1;)I=R,R=m,T=S.plus(k.times(m=T)),S=m,L=x.minus(k.times(m=L)),x=m;return m=t(_.minus(I),R,0,1),S=S.plus(m.times(T)),I=I.plus(m.times(R)),S.s=T.s=E.s,g=g*2,$=t(T,R,g,s).minus(E).abs().comparedTo(t(S,I,g,s).minus(E).abs())<1?[T,R]:[S,I],f=h,$},i.toNumber=function(){return+N(this)},i.toPrecision=function(_,L){return _!=null&&er(_,1,Tr),M(this,_,L,2)},i.toString=function(_){var L,I=this,R=I.s,m=I.e;return m===null?R?(L="Infinity",R<0&&(L="-"+L)):L="NaN":(_==null?L=m<=l||m>=c?q0(fi(I.c),m):zo(fi(I.c),m,"0"):_===10&&C?(I=F(new y(I),a+m+1,s),L=zo(fi(I.c),I.e,"0")):(er(_,2,w.length,"Base"),L=r(zo(fi(I.c),m,"0"),10,_,R,!0)),R<0&&I.c[0]&&(L="-"+L)),L},i.valueOf=i.toJSON=function(){return N(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,e!=null&&y.set(e),y}function pi(e){var t=e|0;return e>0||e===t?t:t-1}function fi(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nc^r?1:-1;for(s=(l=i.length)<(c=o.length)?l:c,a=0;ao[a]^r?1:-1;return l==c?0:l>c^r?1:-1}function er(e,t,r,n){if(er||e!==hi(e))throw Error(Mn+(n||"Argument")+(typeof e=="number"?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function V0(e){var t=e.c.length-1;return pi(e.e/bt)==t&&e.c[t]%2!=0}function q0(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function zo(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t"u"){window.clipboardData.clearData();var f=X3[t.format]||X3.default;window.clipboardData.setData(f,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch{try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch{n=VT("message"in t?t.message:WT),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var KT=qT;const Oce=_r(KT);var _w={exports:{}};function GT(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vx={exports:{}};const YT={},XT=Object.freeze(Object.defineProperty({__proto__:null,default:YT},Symbol.toStringTag,{value:"Module"})),Ip=Fo(XT);var J3;function Rt(){return J3||(J3=1,function(e,t){(function(r,n){e.exports=n()})(st,function(){var r=r||function(n,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof st<"u"&&st.crypto&&(o=st.crypto),!o&&typeof GT=="function")try{o=Ip}catch{}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function y(){}return function(M){var B;return y.prototype=M,B=new y,y.prototype=null,B}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(y){var M=s(this);return y&&M.mixIn(y),(!M.hasOwnProperty("init")||this.init===M.init)&&(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var M in y)y.hasOwnProperty(M)&&(this[M]=y[M]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=u.extend({init:function(y,M){y=this.words=y||[],M!=i?this.sigBytes=M:this.sigBytes=y.length*4},toString:function(y){return(y||b).stringify(this)},concat:function(y){var M=this.words,B=y.words,D=this.sigBytes,F=y.sigBytes;if(this.clamp(),D%4)for(var N=0;N>>2]>>>24-N%4*8&255;M[D+N>>>2]|=_<<24-(D+N)%4*8}else for(var L=0;L>>2]=B[L>>>2];return this.sigBytes+=F,this},clamp:function(){var y=this.words,M=this.sigBytes;y[M>>>2]&=4294967295<<32-M%4*8,y.length=n.ceil(M/4)},clone:function(){var y=u.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var M=[],B=0;B>>2]>>>24-F%4*8&255;D.push((N>>>4).toString(16)),D.push((N&15).toString(16))}return D.join("")},parse:function(y){for(var M=y.length,B=[],D=0;D>>3]|=parseInt(y.substr(D,2),16)<<24-D%8*4;return new f.init(B,M/2)}},p=d.Latin1={stringify:function(y){for(var M=y.words,B=y.sigBytes,D=[],F=0;F>>2]>>>24-F%4*8&255;D.push(String.fromCharCode(N))}return D.join("")},parse:function(y){for(var M=y.length,B=[],D=0;D>>2]|=(y.charCodeAt(D)&255)<<24-D%4*8;return new f.init(B,M)}},v=d.Utf8={stringify:function(y){try{return decodeURIComponent(escape(p.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return p.parse(unescape(encodeURIComponent(y)))}},w=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=v.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var M,B=this._data,D=B.words,F=B.sigBytes,N=this.blockSize,_=N*4,L=F/_;y?L=n.ceil(L):L=n.max((L|0)-this._minBufferSize,0);var I=L*N,R=n.min(I*4,F);if(I){for(var m=0;m>>2]|=l[f]<<24-f%4*8;a.call(this,u,c)}else a.apply(this,arguments)};s.prototype=o}}(),r.lib.WordArray})}(yx)),yx.exports}var wx={exports:{}},ey;function ZT(){return ey||(ey=1,function(e,t){(function(r,n){e.exports=n(Rt())})(st,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d>>2]>>>16-d%4*8&65535;f.push(String.fromCharCode(b))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f>>1]|=l.charCodeAt(f)<<16-f%2*16;return o.create(u,c*2)}},a.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d>>2]>>>16-d%4*8&65535);f.push(String.fromCharCode(b))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f>>1]|=s(l.charCodeAt(f)<<16-f%2*16);return o.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(wx)),wx.exports}var Sx={exports:{}},ty;function fl(){return ty||(ty=1,function(e,t){(function(r,n){e.exports=n(Rt())})(st,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,f=this._map;l.clamp();for(var d=[],b=0;b>>2]>>>24-b%4*8&255,v=c[b+1>>>2]>>>24-(b+1)%4*8&255,w=c[b+2>>>2]>>>24-(b+2)%4*8&255,C=p<<16|v<<8|w,y=0;y<4&&b+y*.75>>6*(3-y)&63));var M=f.charAt(64);if(M)for(;d.length%4;)d.push(M);return d.join("")},parse:function(l){var c=l.length,u=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d>>6-b%4*2,w=p|v;f[d>>>2]|=w<<24-d%4*8,d++}return o.create(f,d)}}(),r.enc.Base64})}(Sx)),Sx.exports}var Cx={exports:{}},ry;function QT(){return ry||(ry=1,function(e,t){(function(r,n){e.exports=n(Rt())})(st,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,f=l.sigBytes,d=c?this._safe_map:this._map;l.clamp();for(var b=[],p=0;p>>2]>>>24-p%4*8&255,w=u[p+1>>>2]>>>24-(p+1)%4*8&255,C=u[p+2>>>2]>>>24-(p+2)%4*8&255,y=v<<16|w<<8|C,M=0;M<4&&p+M*.75>>6*(3-M)&63));var B=d.charAt(64);if(B)for(;b.length%4;)b.push(B);return b.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,f=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var b=0;b>>6-b%4*2,w=p|v;f[d>>>2]|=w<<24-d%4*8,d++}return o.create(f,d)}}(),r.enc.Base64url})}(Cx)),Cx.exports}var Ex={exports:{}},ny;function os(){return ny||(ny=1,function(e,t){(function(r,n){e.exports=n(Rt())})(st,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,c=[];(function(){for(var v=0;v<64;v++)c[v]=n.abs(n.sin(v+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,w){for(var C=0;C<16;C++){var y=w+C,M=v[y];v[y]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var B=this._hash.words,D=v[w+0],F=v[w+1],N=v[w+2],_=v[w+3],L=v[w+4],I=v[w+5],R=v[w+6],m=v[w+7],g=v[w+8],h=v[w+9],x=v[w+10],S=v[w+11],T=v[w+12],k=v[w+13],$=v[w+14],P=v[w+15],E=B[0],A=B[1],z=B[2],H=B[3];E=f(E,A,z,H,D,7,c[0]),H=f(H,E,A,z,F,12,c[1]),z=f(z,H,E,A,N,17,c[2]),A=f(A,z,H,E,_,22,c[3]),E=f(E,A,z,H,L,7,c[4]),H=f(H,E,A,z,I,12,c[5]),z=f(z,H,E,A,R,17,c[6]),A=f(A,z,H,E,m,22,c[7]),E=f(E,A,z,H,g,7,c[8]),H=f(H,E,A,z,h,12,c[9]),z=f(z,H,E,A,x,17,c[10]),A=f(A,z,H,E,S,22,c[11]),E=f(E,A,z,H,T,7,c[12]),H=f(H,E,A,z,k,12,c[13]),z=f(z,H,E,A,$,17,c[14]),A=f(A,z,H,E,P,22,c[15]),E=d(E,A,z,H,F,5,c[16]),H=d(H,E,A,z,R,9,c[17]),z=d(z,H,E,A,S,14,c[18]),A=d(A,z,H,E,D,20,c[19]),E=d(E,A,z,H,I,5,c[20]),H=d(H,E,A,z,x,9,c[21]),z=d(z,H,E,A,P,14,c[22]),A=d(A,z,H,E,L,20,c[23]),E=d(E,A,z,H,h,5,c[24]),H=d(H,E,A,z,$,9,c[25]),z=d(z,H,E,A,_,14,c[26]),A=d(A,z,H,E,g,20,c[27]),E=d(E,A,z,H,k,5,c[28]),H=d(H,E,A,z,N,9,c[29]),z=d(z,H,E,A,m,14,c[30]),A=d(A,z,H,E,T,20,c[31]),E=b(E,A,z,H,I,4,c[32]),H=b(H,E,A,z,g,11,c[33]),z=b(z,H,E,A,S,16,c[34]),A=b(A,z,H,E,$,23,c[35]),E=b(E,A,z,H,F,4,c[36]),H=b(H,E,A,z,L,11,c[37]),z=b(z,H,E,A,m,16,c[38]),A=b(A,z,H,E,x,23,c[39]),E=b(E,A,z,H,k,4,c[40]),H=b(H,E,A,z,D,11,c[41]),z=b(z,H,E,A,_,16,c[42]),A=b(A,z,H,E,R,23,c[43]),E=b(E,A,z,H,h,4,c[44]),H=b(H,E,A,z,T,11,c[45]),z=b(z,H,E,A,P,16,c[46]),A=b(A,z,H,E,N,23,c[47]),E=p(E,A,z,H,D,6,c[48]),H=p(H,E,A,z,m,10,c[49]),z=p(z,H,E,A,$,15,c[50]),A=p(A,z,H,E,I,21,c[51]),E=p(E,A,z,H,T,6,c[52]),H=p(H,E,A,z,_,10,c[53]),z=p(z,H,E,A,x,15,c[54]),A=p(A,z,H,E,F,21,c[55]),E=p(E,A,z,H,g,6,c[56]),H=p(H,E,A,z,P,10,c[57]),z=p(z,H,E,A,R,15,c[58]),A=p(A,z,H,E,k,21,c[59]),E=p(E,A,z,H,L,6,c[60]),H=p(H,E,A,z,S,10,c[61]),z=p(z,H,E,A,N,15,c[62]),A=p(A,z,H,E,h,21,c[63]),B[0]=B[0]+E|0,B[1]=B[1]+A|0,B[2]=B[2]+z|0,B[3]=B[3]+H|0},_doFinalize:function(){var v=this._data,w=v.words,C=this._nDataBytes*8,y=v.sigBytes*8;w[y>>>5]|=128<<24-y%32;var M=n.floor(C/4294967296),B=C;w[(y+64>>>9<<4)+15]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,w[(y+64>>>9<<4)+14]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,v.sigBytes=(w.length+1)*4,this._process();for(var D=this._hash,F=D.words,N=0;N<4;N++){var _=F[N];F[N]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return D},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function f(v,w,C,y,M,B,D){var F=v+(w&C|~w&y)+M+D;return(F<>>32-B)+w}function d(v,w,C,y,M,B,D){var F=v+(w&y|C&~y)+M+D;return(F<>>32-B)+w}function b(v,w,C,y,M,B,D){var F=v+(w^C^y)+M+D;return(F<>>32-B)+w}function p(v,w,C,y,M,B,D){var F=v+(C^(w|~y))+M+D;return(F<>>32-B)+w}i.MD5=s._createHelper(u),i.HmacMD5=s._createHmacHelper(u)}(Math),r.MD5})}(Ex)),Ex.exports}var Mx={exports:{}},iy;function Rw(){return iy||(iy=1,function(e,t){(function(r,n){e.exports=n(Rt())})(st,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=i.Hasher,s=n.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,f){for(var d=this._hash.words,b=d[0],p=d[1],v=d[2],w=d[3],C=d[4],y=0;y<80;y++){if(y<16)l[y]=u[f+y]|0;else{var M=l[y-3]^l[y-8]^l[y-14]^l[y-16];l[y]=M<<1|M>>>31}var B=(b<<5|b>>>27)+C+l[y];y<20?B+=(p&v|~p&w)+1518500249:y<40?B+=(p^v^w)+1859775393:y<60?B+=(p&v|p&w|v&w)-1894007588:B+=(p^v^w)-899497514,C=w,w=v,v=p<<30|p>>>2,p=b,b=B}d[0]=d[0]+b|0,d[1]=d[1]+p|0,d[2]=d[2]+v|0,d[3]=d[3]+w|0,d[4]=d[4]+C|0},_doFinalize:function(){var u=this._data,f=u.words,d=this._nDataBytes*8,b=u.sigBytes*8;return f[b>>>5]|=128<<24-b%32,f[(b+64>>>9<<4)+14]=Math.floor(d/4294967296),f[(b+64>>>9<<4)+15]=d,u.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var u=a.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c)}(),r.SHA1})}(Mx)),Mx.exports}var Px={exports:{}},oy;function W2(){return oy||(oy=1,function(e,t){(function(r,n){e.exports=n(Rt())})(st,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,c=[],u=[];(function(){function b(C){for(var y=n.sqrt(C),M=2;M<=y;M++)if(!(C%M))return!1;return!0}function p(C){return(C-(C|0))*4294967296|0}for(var v=2,w=0;w<64;)b(v)&&(w<8&&(c[w]=p(n.pow(v,1/2))),u[w]=p(n.pow(v,1/3)),w++),v++})();var f=[],d=l.SHA256=s.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(b,p){for(var v=this._hash.words,w=v[0],C=v[1],y=v[2],M=v[3],B=v[4],D=v[5],F=v[6],N=v[7],_=0;_<64;_++){if(_<16)f[_]=b[p+_]|0;else{var L=f[_-15],I=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,R=f[_-2],m=(R<<15|R>>>17)^(R<<13|R>>>19)^R>>>10;f[_]=I+f[_-7]+m+f[_-16]}var g=B&D^~B&F,h=w&C^w&y^C&y,x=(w<<30|w>>>2)^(w<<19|w>>>13)^(w<<10|w>>>22),S=(B<<26|B>>>6)^(B<<21|B>>>11)^(B<<7|B>>>25),T=N+S+g+u[_]+f[_],k=x+h;N=F,F=D,D=B,B=M+T|0,M=y,y=C,C=w,w=T+k|0}v[0]=v[0]+w|0,v[1]=v[1]+C|0,v[2]=v[2]+y|0,v[3]=v[3]+M|0,v[4]=v[4]+B|0,v[5]=v[5]+D|0,v[6]=v[6]+F|0,v[7]=v[7]+N|0},_doFinalize:function(){var b=this._data,p=b.words,v=this._nDataBytes*8,w=b.sigBytes*8;return p[w>>>5]|=128<<24-w%32,p[(w+64>>>9<<4)+14]=n.floor(v/4294967296),p[(w+64>>>9<<4)+15]=v,b.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var b=s.clone.call(this);return b._hash=this._hash.clone(),b}});i.SHA256=s._createHelper(d),i.HmacSHA256=s._createHmacHelper(d)}(Math),r.SHA256})}(Px)),Px.exports}var Ax={exports:{}},ay;function e$(){return ay||(ay=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),W2())})(st,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.algo,s=a.SHA256,l=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})}(Ax)),Ax.exports}var kx={exports:{}},sy;function Tw(){return sy||(sy=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),Fp())})(st,function(r){return function(){var n=r,i=n.lib,o=i.Hasher,a=n.x64,s=a.Word,l=a.WordArray,c=n.algo;function u(){return s.create.apply(s,arguments)}var f=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var p=0;p<80;p++)d[p]=u()})();var b=c.SHA512=o.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(p,v){for(var w=this._hash.words,C=w[0],y=w[1],M=w[2],B=w[3],D=w[4],F=w[5],N=w[6],_=w[7],L=C.high,I=C.low,R=y.high,m=y.low,g=M.high,h=M.low,x=B.high,S=B.low,T=D.high,k=D.low,$=F.high,P=F.low,E=N.high,A=N.low,z=_.high,H=_.low,O=L,V=I,X=R,J=m,G=g,j=h,q=x,K=S,Z=T,te=k,Q=$,oe=P,me=E,se=A,ye=z,Re=H,we=0;we<80;we++){var He,Ue,Me=d[we];if(we<16)Ue=Me.high=p[v+we*2]|0,He=Me.low=p[v+we*2+1]|0;else{var Ze=d[we-15],Je=Ze.high,Ne=Ze.low,De=(Je>>>1|Ne<<31)^(Je>>>8|Ne<<24)^Je>>>7,de=(Ne>>>1|Je<<31)^(Ne>>>8|Je<<24)^(Ne>>>7|Je<<25),Ie=d[we-2],ot=Ie.high,lt=Ie.low,ge=(ot>>>19|lt<<13)^(ot<<3|lt>>>29)^ot>>>6,ze=(lt>>>19|ot<<13)^(lt<<3|ot>>>29)^(lt>>>6|ot<<26),le=d[we-7],xe=le.high,je=le.low,We=d[we-16],Fe=We.high,Qe=We.low;He=de+je,Ue=De+xe+(He>>>0>>0?1:0),He=He+ze,Ue=Ue+ge+(He>>>0>>0?1:0),He=He+Qe,Ue=Ue+Fe+(He>>>0>>0?1:0),Me.high=Ue,Me.low=He}var ut=Z&Q^~Z&me,Ge=te&oe^~te&se,ee=O&X^O&G^X&G,re=V&J^V&j^J&j,ne=(O>>>28|V<<4)^(O<<30|V>>>2)^(O<<25|V>>>7),pe=(V>>>28|O<<4)^(V<<30|O>>>2)^(V<<25|O>>>7),ke=(Z>>>14|te<<18)^(Z>>>18|te<<14)^(Z<<23|te>>>9),Te=(te>>>14|Z<<18)^(te>>>18|Z<<14)^(te<<23|Z>>>9),$e=f[we],Pe=$e.high,ce=$e.low,_e=Re+Te,Ve=ye+ke+(_e>>>0>>0?1:0),_e=_e+Ge,Ve=Ve+ut+(_e>>>0>>0?1:0),_e=_e+ce,Ve=Ve+Pe+(_e>>>0>>0?1:0),_e=_e+He,Ve=Ve+Ue+(_e>>>0>>0?1:0),Ce=pe+re,Xe=ne+ee+(Ce>>>0>>0?1:0);ye=me,Re=se,me=Q,se=oe,Q=Z,oe=te,te=K+_e|0,Z=q+Ve+(te>>>0>>0?1:0)|0,q=G,K=j,G=X,j=J,X=O,J=V,V=_e+Ce|0,O=Ve+Xe+(V>>>0<_e>>>0?1:0)|0}I=C.low=I+V,C.high=L+O+(I>>>0>>0?1:0),m=y.low=m+J,y.high=R+X+(m>>>0>>0?1:0),h=M.low=h+j,M.high=g+G+(h>>>0>>0?1:0),S=B.low=S+K,B.high=x+q+(S>>>0>>0?1:0),k=D.low=k+te,D.high=T+Z+(k>>>0>>0?1:0),P=F.low=P+oe,F.high=$+Q+(P>>>0>>0?1:0),A=N.low=A+se,N.high=E+me+(A>>>0>>0?1:0),H=_.low=H+Re,_.high=z+ye+(H>>>0>>0?1:0)},_doFinalize:function(){var p=this._data,v=p.words,w=this._nDataBytes*8,C=p.sigBytes*8;v[C>>>5]|=128<<24-C%32,v[(C+128>>>10<<5)+30]=Math.floor(w/4294967296),v[(C+128>>>10<<5)+31]=w,p.sigBytes=v.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var p=o.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});n.SHA512=o._createHelper(b),n.HmacSHA512=o._createHmacHelper(b)}(),r.SHA512})}(kx)),kx.exports}var _x={exports:{}},ly;function t$(){return ly||(ly=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),Fp(),Tw())})(st,function(r){return function(){var n=r,i=n.x64,o=i.Word,a=i.WordArray,s=n.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c)}(),r.SHA384})}(_x)),_x.exports}var Rx={exports:{}},cy;function r$(){return cy||(cy=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),Fp())})(st,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.x64,c=l.Word,u=i.algo,f=[],d=[],b=[];(function(){for(var w=1,C=0,y=0;y<24;y++){f[w+5*C]=(y+1)*(y+2)/2%64;var M=C%5,B=(2*w+3*C)%5;w=M,C=B}for(var w=0;w<5;w++)for(var C=0;C<5;C++)d[w+5*C]=C+(2*w+3*C)%5*5;for(var D=1,F=0;F<24;F++){for(var N=0,_=0,L=0;L<7;L++){if(D&1){var I=(1<>>24)&16711935|(D<<24|D>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360;var N=y[B];N.high^=F,N.low^=D}for(var _=0;_<24;_++){for(var L=0;L<5;L++){for(var I=0,R=0,m=0;m<5;m++){var N=y[L+5*m];I^=N.high,R^=N.low}var g=p[L];g.high=I,g.low=R}for(var L=0;L<5;L++)for(var h=p[(L+4)%5],x=p[(L+1)%5],S=x.high,T=x.low,I=h.high^(S<<1|T>>>31),R=h.low^(T<<1|S>>>31),m=0;m<5;m++){var N=y[L+5*m];N.high^=I,N.low^=R}for(var k=1;k<25;k++){var I,R,N=y[k],$=N.high,P=N.low,E=f[k];E<32?(I=$<>>32-E,R=P<>>32-E):(I=P<>>64-E,R=$<>>64-E);var A=p[d[k]];A.high=I,A.low=R}var z=p[0],H=y[0];z.high=H.high,z.low=H.low;for(var L=0;L<5;L++)for(var m=0;m<5;m++){var k=L+5*m,N=y[k],O=p[k],V=p[(L+1)%5+5*m],X=p[(L+2)%5+5*m];N.high=O.high^~V.high&X.high,N.low=O.low^~V.low&X.low}var N=y[0],J=b[_];N.high^=J.high,N.low^=J.low}},_doFinalize:function(){var w=this._data,C=w.words;this._nDataBytes*8;var y=w.sigBytes*8,M=this.blockSize*32;C[y>>>5]|=1<<24-y%32,C[(n.ceil((y+1)/M)*M>>>5)-1]|=128,w.sigBytes=C.length*4,this._process();for(var B=this._state,D=this.cfg.outputLength/8,F=D/8,N=[],_=0;_>>24)&16711935|(I<<24|I>>>8)&4278255360,R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,N.push(R),N.push(I)}return new a.init(N,D)},clone:function(){for(var w=s.clone.call(this),C=w._state=this._state.slice(0),y=0;y<25;y++)C[y]=C[y].clone();return w}});i.SHA3=s._createHelper(v),i.HmacSHA3=s._createHmacHelper(v)}(Math),r.SHA3})}(Rx)),Rx.exports}var Tx={exports:{}},uy;function n$(){return uy||(uy=1,function(e,t){(function(r,n){e.exports=n(Rt())})(st,function(r){/** @preserve + (c) 2012 by Cédric Mesnil. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,c=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),b=a.create([0,1518500249,1859775393,2400959708,2840853838]),p=a.create([1352829926,1548603684,1836072691,2053994217,0]),v=l.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(F,N){for(var _=0;_<16;_++){var L=N+_,I=F[L];F[L]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var R=this._hash.words,m=b.words,g=p.words,h=c.words,x=u.words,S=f.words,T=d.words,k,$,P,E,A,z,H,O,V,X;z=k=R[0],H=$=R[1],O=P=R[2],V=E=R[3],X=A=R[4];for(var J,_=0;_<80;_+=1)J=k+F[N+h[_]]|0,_<16?J+=w($,P,E)+m[0]:_<32?J+=C($,P,E)+m[1]:_<48?J+=y($,P,E)+m[2]:_<64?J+=M($,P,E)+m[3]:J+=B($,P,E)+m[4],J=J|0,J=D(J,S[_]),J=J+A|0,k=A,A=E,E=D(P,10),P=$,$=J,J=z+F[N+x[_]]|0,_<16?J+=B(H,O,V)+g[0]:_<32?J+=M(H,O,V)+g[1]:_<48?J+=y(H,O,V)+g[2]:_<64?J+=C(H,O,V)+g[3]:J+=w(H,O,V)+g[4],J=J|0,J=D(J,T[_]),J=J+X|0,z=X,X=V,V=D(O,10),O=H,H=J;J=R[1]+P+V|0,R[1]=R[2]+E+X|0,R[2]=R[3]+A+z|0,R[3]=R[4]+k+H|0,R[4]=R[0]+$+O|0,R[0]=J},_doFinalize:function(){var F=this._data,N=F.words,_=this._nDataBytes*8,L=F.sigBytes*8;N[L>>>5]|=128<<24-L%32,N[(L+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,F.sigBytes=(N.length+1)*4,this._process();for(var I=this._hash,R=I.words,m=0;m<5;m++){var g=R[m];R[m]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}return I},clone:function(){var F=s.clone.call(this);return F._hash=this._hash.clone(),F}});function w(F,N,_){return F^N^_}function C(F,N,_){return F&N|~F&_}function y(F,N,_){return(F|~N)^_}function M(F,N,_){return F&_|N&~_}function B(F,N,_){return F^(N|~_)}function D(F,N){return F<>>32-N}i.RIPEMD160=s._createHelper(v),i.HmacRIPEMD160=s._createHmacHelper(v)}(),r.RIPEMD160})}(Tx)),Tx.exports}var $x={exports:{}},fy;function V2(){return fy||(fy=1,function(e,t){(function(r,n){e.exports=n(Rt())})(st,function(r){(function(){var n=r,i=n.lib,o=i.Base,a=n.enc,s=a.Utf8,l=n.algo;l.HMAC=o.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var f=c.blockSize,d=f*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var b=this._oKey=u.clone(),p=this._iKey=u.clone(),v=b.words,w=p.words,C=0;C>>2]&255;I.sigBytes-=R}};o.BlockCipher=b.extend({cfg:b.cfg.extend({mode:w,padding:y}),reset:function(){var I;b.reset.call(this);var R=this.cfg,m=R.iv,g=R.mode;this._xformMode==this._ENC_XFORM_MODE?I=g.createEncryptor:(I=g.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,m&&m.words):(this._mode=I.call(g,this,m&&m.words),this._mode.__creator=I)},_doProcessBlock:function(I,R){this._mode.processBlock(I,R)},_doFinalize:function(){var I,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),R.unpad(I)),I},blockSize:128/32});var M=o.CipherParams=a.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),B=i.format={},D=B.OpenSSL={stringify:function(I){var R,m=I.ciphertext,g=I.salt;return g?R=s.create([1398893684,1701076831]).concat(g).concat(m):R=m,R.toString(u)},parse:function(I){var R,m=u.parse(I),g=m.words;return g[0]==1398893684&&g[1]==1701076831&&(R=s.create(g.slice(2,4)),g.splice(0,4),m.sigBytes-=16),M.create({ciphertext:m,salt:R})}},F=o.SerializableCipher=a.extend({cfg:a.extend({format:D}),encrypt:function(I,R,m,g){g=this.cfg.extend(g);var h=I.createEncryptor(m,g),x=h.finalize(R),S=h.cfg;return M.create({ciphertext:x,key:m,iv:S.iv,algorithm:I,mode:S.mode,padding:S.padding,blockSize:I.blockSize,formatter:g.format})},decrypt:function(I,R,m,g){g=this.cfg.extend(g),R=this._parse(R,g.format);var h=I.createDecryptor(m,g).finalize(R.ciphertext);return h},_parse:function(I,R){return typeof I=="string"?R.parse(I,this):I}}),N=i.kdf={},_=N.OpenSSL={execute:function(I,R,m,g,h){if(g||(g=s.random(64/8)),h)var x=d.create({keySize:R+m,hasher:h}).compute(I,g);else var x=d.create({keySize:R+m}).compute(I,g);var S=s.create(x.words.slice(R),m*4);return x.sigBytes=R*4,M.create({key:x,iv:S,salt:g})}},L=o.PasswordBasedCipher=F.extend({cfg:F.cfg.extend({kdf:_}),encrypt:function(I,R,m,g){g=this.cfg.extend(g);var h=g.kdf.execute(m,I.keySize,I.ivSize,g.salt,g.hasher);g.iv=h.iv;var x=F.encrypt.call(this,I,R,h.key,g);return x.mixIn(h),x},decrypt:function(I,R,m,g){g=this.cfg.extend(g),R=this._parse(R,g.format);var h=g.kdf.execute(m,I.keySize,I.ivSize,R.salt,g.hasher);g.iv=h.iv;var x=F.decrypt.call(this,I,R,h.key,g);return x}})}()})}(Fx)),Fx.exports}var Ox={exports:{}},xy;function o$(){return xy||(xy=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),zr())})(st,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,l=s.blockSize;i.call(this,o,a,l,s),this._prevBlock=o.slice(a,a+l)}}),n.Decryptor=n.extend({processBlock:function(o,a){var s=this._cipher,l=s.blockSize,c=o.slice(a,a+l);i.call(this,o,a,l,s),this._prevBlock=c}});function i(o,a,s,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var f=0;f>24&255)===255){var l=s>>16&255,c=s>>8&255,u=s&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,s=0,s+=l<<16,s+=c<<8,s+=u}else s+=1<<24;return s}function o(s){return(s[0]=i(s[0]))===0&&(s[1]=i(s[1])),s}var a=n.Encryptor=n.extend({processBlock:function(s,l){var c=this._cipher,u=c.blockSize,f=this._iv,d=this._counter;f&&(d=this._counter=f.slice(0),this._iv=void 0),o(d);var b=d.slice(0);c.encryptBlock(b,0);for(var p=0;p>>2]|=s<<24-l%4*8,n.sigBytes+=s},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Ansix923})}(jx)),jx.exports}var Ux={exports:{}},wy;function f$(){return wy||(wy=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),zr())})(st,function(r){return r.pad.Iso10126={pad:function(n,i){var o=i*4,a=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Iso10126})}(Ux)),Ux.exports}var Hx={exports:{}},Sy;function d$(){return Sy||(Sy=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),zr())})(st,function(r){return r.pad.Iso97971={pad:function(n,i){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,i)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(Hx)),Hx.exports}var Wx={exports:{}},Cy;function h$(){return Cy||(Cy=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),zr())})(st,function(r){return r.pad.ZeroPadding={pad:function(n,i){var o=i*4;n.clamp(),n.sigBytes+=o-(n.sigBytes%o||o)},unpad:function(n){for(var i=n.words,o=n.sigBytes-1,o=n.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){n.sigBytes=o+1;break}}},r.pad.ZeroPadding})}(Wx)),Wx.exports}var Vx={exports:{}},Ey;function p$(){return Ey||(Ey=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),zr())})(st,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Vx)),Vx.exports}var qx={exports:{}},My;function x$(){return My||(My=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),zr())})(st,function(r){return function(n){var i=r,o=i.lib,a=o.CipherParams,s=i.enc,l=s.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var f=l.parse(u);return a.create({ciphertext:f})}}}(),r.format.Hex})}(qx)),qx.exports}var Kx={exports:{}},Py;function m$(){return Py||(Py=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),fl(),os(),as(),zr())})(st,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,a=n.algo,s=[],l=[],c=[],u=[],f=[],d=[],b=[],p=[],v=[],w=[];(function(){for(var M=[],B=0;B<256;B++)B<128?M[B]=B<<1:M[B]=B<<1^283;for(var D=0,F=0,B=0;B<256;B++){var N=F^F<<1^F<<2^F<<3^F<<4;N=N>>>8^N&255^99,s[D]=N,l[N]=D;var _=M[D],L=M[_],I=M[L],R=M[N]*257^N*16843008;c[D]=R<<24|R>>>8,u[D]=R<<16|R>>>16,f[D]=R<<8|R>>>24,d[D]=R;var R=I*16843009^L*65537^_*257^D*16843008;b[N]=R<<24|R>>>8,p[N]=R<<16|R>>>16,v[N]=R<<8|R>>>24,w[N]=R,D?(D=_^M[M[M[I^_]]],F^=M[M[F]]):D=F=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],y=a.AES=o.extend({_doReset:function(){var M;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var B=this._keyPriorReset=this._key,D=B.words,F=B.sigBytes/4,N=this._nRounds=F+6,_=(N+1)*4,L=this._keySchedule=[],I=0;I<_;I++)I6&&I%F==4&&(M=s[M>>>24]<<24|s[M>>>16&255]<<16|s[M>>>8&255]<<8|s[M&255]):(M=M<<8|M>>>24,M=s[M>>>24]<<24|s[M>>>16&255]<<16|s[M>>>8&255]<<8|s[M&255],M^=C[I/F|0]<<24),L[I]=L[I-F]^M);for(var R=this._invKeySchedule=[],m=0;m<_;m++){var I=_-m;if(m%4)var M=L[I];else var M=L[I-4];m<4||I<=4?R[m]=M:R[m]=b[s[M>>>24]]^p[s[M>>>16&255]]^v[s[M>>>8&255]]^w[s[M&255]]}}},encryptBlock:function(M,B){this._doCryptBlock(M,B,this._keySchedule,c,u,f,d,s)},decryptBlock:function(M,B){var D=M[B+1];M[B+1]=M[B+3],M[B+3]=D,this._doCryptBlock(M,B,this._invKeySchedule,b,p,v,w,l);var D=M[B+1];M[B+1]=M[B+3],M[B+3]=D},_doCryptBlock:function(M,B,D,F,N,_,L,I){for(var R=this._nRounds,m=M[B]^D[0],g=M[B+1]^D[1],h=M[B+2]^D[2],x=M[B+3]^D[3],S=4,T=1;T>>24]^N[g>>>16&255]^_[h>>>8&255]^L[x&255]^D[S++],$=F[g>>>24]^N[h>>>16&255]^_[x>>>8&255]^L[m&255]^D[S++],P=F[h>>>24]^N[x>>>16&255]^_[m>>>8&255]^L[g&255]^D[S++],E=F[x>>>24]^N[m>>>16&255]^_[g>>>8&255]^L[h&255]^D[S++];m=k,g=$,h=P,x=E}var k=(I[m>>>24]<<24|I[g>>>16&255]<<16|I[h>>>8&255]<<8|I[x&255])^D[S++],$=(I[g>>>24]<<24|I[h>>>16&255]<<16|I[x>>>8&255]<<8|I[m&255])^D[S++],P=(I[h>>>24]<<24|I[x>>>16&255]<<16|I[m>>>8&255]<<8|I[g&255])^D[S++],E=(I[x>>>24]<<24|I[m>>>16&255]<<16|I[g>>>8&255]<<8|I[h&255])^D[S++];M[B]=k,M[B+1]=$,M[B+2]=P,M[B+3]=E},keySize:256/32});n.AES=o._createHelper(y)}(),r.AES})}(Kx)),Kx.exports}var Gx={exports:{}},Ay;function g$(){return Ay||(Ay=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),fl(),os(),as(),zr())})(st,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=i.BlockCipher,s=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],b=s.DES=a.extend({_doReset:function(){for(var C=this._key,y=C.words,M=[],B=0;B<56;B++){var D=l[B]-1;M[B]=y[D>>>5]>>>31-D%32&1}for(var F=this._subKeys=[],N=0;N<16;N++){for(var _=F[N]=[],L=u[N],B=0;B<24;B++)_[B/6|0]|=M[(c[B]-1+L)%28]<<31-B%6,_[4+(B/6|0)]|=M[28+(c[B+24]-1+L)%28]<<31-B%6;_[0]=_[0]<<1|_[0]>>>31;for(var B=1;B<7;B++)_[B]=_[B]>>>(B-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var I=this._invSubKeys=[],B=0;B<16;B++)I[B]=F[15-B]},encryptBlock:function(C,y){this._doCryptBlock(C,y,this._subKeys)},decryptBlock:function(C,y){this._doCryptBlock(C,y,this._invSubKeys)},_doCryptBlock:function(C,y,M){this._lBlock=C[y],this._rBlock=C[y+1],p.call(this,4,252645135),p.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),p.call(this,1,1431655765);for(var B=0;B<16;B++){for(var D=M[B],F=this._lBlock,N=this._rBlock,_=0,L=0;L<8;L++)_|=f[L][((N^D[L])&d[L])>>>0];this._lBlock=N,this._rBlock=F^_}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,p.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),C[y]=this._lBlock,C[y+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(C,y){var M=(this._lBlock>>>C^this._rBlock)&y;this._rBlock^=M,this._lBlock^=M<>>C^this._lBlock)&y;this._lBlock^=M,this._rBlock^=M<192.");var M=y.slice(0,2),B=y.length<4?y.slice(0,2):y.slice(2,4),D=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=b.createEncryptor(o.create(M)),this._des2=b.createEncryptor(o.create(B)),this._des3=b.createEncryptor(o.create(D))},encryptBlock:function(C,y){this._des1.encryptBlock(C,y),this._des2.decryptBlock(C,y),this._des3.encryptBlock(C,y)},decryptBlock:function(C,y){this._des3.decryptBlock(C,y),this._des2.encryptBlock(C,y),this._des1.decryptBlock(C,y)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=a._createHelper(w)}(),r.TripleDES})}(Gx)),Gx.exports}var Yx={exports:{}},ky;function v$(){return ky||(ky=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),fl(),os(),as(),zr())})(st,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=a.RC4=o.extend({_doReset:function(){for(var u=this._key,f=u.words,d=u.sigBytes,b=this._S=[],p=0;p<256;p++)b[p]=p;for(var p=0,v=0;p<256;p++){var w=p%d,C=f[w>>>2]>>>24-w%4*8&255;v=(v+b[p]+C)%256;var y=b[p];b[p]=b[v],b[v]=y}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,f=this._i,d=this._j,b=0,p=0;p<4;p++){f=(f+1)%256,d=(d+u[f])%256;var v=u[f];u[f]=u[d],u[d]=v,b|=u[(u[f]+u[d])%256]<<24-p*8}return this._i=f,this._j=d,b}n.RC4=o._createHelper(s);var c=a.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});n.RC4Drop=o._createHelper(c)}(),r.RC4})}(Yx)),Yx.exports}var Xx={exports:{}},_y;function b$(){return _y||(_y=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),fl(),os(),as(),zr())})(st,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=[],l=[],c=[],u=a.Rabbit=o.extend({_doReset:function(){for(var d=this._key.words,b=this.cfg.iv,p=0;p<4;p++)d[p]=(d[p]<<8|d[p]>>>24)&16711935|(d[p]<<24|d[p]>>>8)&4278255360;var v=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],w=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var p=0;p<4;p++)f.call(this);for(var p=0;p<8;p++)w[p]^=v[p+4&7];if(b){var C=b.words,y=C[0],M=C[1],B=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,D=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,F=B>>>16|D&4294901760,N=D<<16|B&65535;w[0]^=B,w[1]^=F,w[2]^=D,w[3]^=N,w[4]^=B,w[5]^=F,w[6]^=D,w[7]^=N;for(var p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(d,b){var p=this._X;f.call(this),s[0]=p[0]^p[5]>>>16^p[3]<<16,s[1]=p[2]^p[7]>>>16^p[5]<<16,s[2]=p[4]^p[1]>>>16^p[7]<<16,s[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360,d[b+v]^=s[v]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,b=this._C,p=0;p<8;p++)l[p]=b[p];b[0]=b[0]+1295307597+this._b|0,b[1]=b[1]+3545052371+(b[0]>>>0>>0?1:0)|0,b[2]=b[2]+886263092+(b[1]>>>0>>0?1:0)|0,b[3]=b[3]+1295307597+(b[2]>>>0>>0?1:0)|0,b[4]=b[4]+3545052371+(b[3]>>>0>>0?1:0)|0,b[5]=b[5]+886263092+(b[4]>>>0>>0?1:0)|0,b[6]=b[6]+1295307597+(b[5]>>>0>>0?1:0)|0,b[7]=b[7]+3545052371+(b[6]>>>0>>0?1:0)|0,this._b=b[7]>>>0>>0?1:0;for(var p=0;p<8;p++){var v=d[p]+b[p],w=v&65535,C=v>>>16,y=((w*w>>>17)+w*C>>>15)+C*C,M=((v&4294901760)*v|0)+((v&65535)*v|0);c[p]=y^M}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=o._createHelper(u)}(),r.Rabbit})}(Xx)),Xx.exports}var Jx={exports:{}},Ry;function y$(){return Ry||(Ry=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),fl(),os(),as(),zr())})(st,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=[],l=[],c=[],u=a.RabbitLegacy=o.extend({_doReset:function(){var d=this._key.words,b=this.cfg.iv,p=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var w=0;w<4;w++)f.call(this);for(var w=0;w<8;w++)v[w]^=p[w+4&7];if(b){var C=b.words,y=C[0],M=C[1],B=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,D=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,F=B>>>16|D&4294901760,N=D<<16|B&65535;v[0]^=B,v[1]^=F,v[2]^=D,v[3]^=N,v[4]^=B,v[5]^=F,v[6]^=D,v[7]^=N;for(var w=0;w<4;w++)f.call(this)}},_doProcessBlock:function(d,b){var p=this._X;f.call(this),s[0]=p[0]^p[5]>>>16^p[3]<<16,s[1]=p[2]^p[7]>>>16^p[5]<<16,s[2]=p[4]^p[1]>>>16^p[7]<<16,s[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360,d[b+v]^=s[v]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,b=this._C,p=0;p<8;p++)l[p]=b[p];b[0]=b[0]+1295307597+this._b|0,b[1]=b[1]+3545052371+(b[0]>>>0>>0?1:0)|0,b[2]=b[2]+886263092+(b[1]>>>0>>0?1:0)|0,b[3]=b[3]+1295307597+(b[2]>>>0>>0?1:0)|0,b[4]=b[4]+3545052371+(b[3]>>>0>>0?1:0)|0,b[5]=b[5]+886263092+(b[4]>>>0>>0?1:0)|0,b[6]=b[6]+1295307597+(b[5]>>>0>>0?1:0)|0,b[7]=b[7]+3545052371+(b[6]>>>0>>0?1:0)|0,this._b=b[7]>>>0>>0?1:0;for(var p=0;p<8;p++){var v=d[p]+b[p],w=v&65535,C=v>>>16,y=((w*w>>>17)+w*C>>>15)+C*C,M=((v&4294901760)*v|0)+((v&65535)*v|0);c[p]=y^M}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=o._createHelper(u)}(),r.RabbitLegacy})}(Jx)),Jx.exports}var Zx={exports:{}},Ty;function w$(){return Ty||(Ty=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),fl(),os(),as(),zr())})(st,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,a=n.algo;const s=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function f(w,C){let y=C>>24&255,M=C>>16&255,B=C>>8&255,D=C&255,F=w.sbox[0][y]+w.sbox[1][M];return F=F^w.sbox[2][B],F=F+w.sbox[3][D],F}function d(w,C,y){let M=C,B=y,D;for(let F=0;F1;--F)M=M^w.pbox[F],B=f(w,M)^B,D=M,M=B,B=D;return D=M,M=B,B=D,B=B^w.pbox[1],M=M^w.pbox[0],{left:M,right:B}}function p(w,C,y){for(let N=0;N<4;N++){w.sbox[N]=[];for(let _=0;_<256;_++)w.sbox[N][_]=c[N][_]}let M=0;for(let N=0;N=y&&(M=0);let B=0,D=0,F=0;for(let N=0;Nt?t:r}function lh(e,t,r){return rt?t:r}function q2(e){return e=e%360,e<0&&(e=e+360),e}function _$(e,t){return q2(t-e)<=180?1:-1}function R$(e,t){return 180-Math.abs(Math.abs(e-t)-180)}function Og(e,t){const r=e[0]*t[0][0]+e[1]*t[0][1]+e[2]*t[0][2],n=e[0]*t[1][0]+e[1]*t[1][1]+e[2]*t[1][2],i=e[0]*t[2][0]+e[1]*t[2][1]+e[2]*t[2][2];return[r,n,i]}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const T$=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],$$=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],B$=[95.047,100,108.883];function K2(e,t,r){return(255<<24|(e&255)<<16|(t&255)<<8|r&255)>>>0}function By(e){const t=Us(e[0]),r=Us(e[1]),n=Us(e[2]);return K2(t,r,n)}function $w(e){return e>>16&255}function Bw(e){return e>>8&255}function Iw(e){return e&255}function I$(e,t,r){const n=$$,i=n[0][0]*e+n[0][1]*t+n[0][2]*r,o=n[1][0]*e+n[1][1]*t+n[1][2]*r,a=n[2][0]*e+n[2][1]*t+n[2][2]*r,s=Us(i),l=Us(o),c=Us(a);return K2(s,l,c)}function F$(e){const t=oc($w(e)),r=oc(Bw(e)),n=oc(Iw(e));return Og([t,r,n],T$)}function O$(e){const t=Fa(e),r=Us(t);return K2(r,r,r)}function Dg(e){const t=F$(e)[1];return 116*Fw(t/100)-16}function Fa(e){return 100*L$((e+16)/116)}function Lg(e){return Fw(e/100)*116-16}function oc(e){const t=e/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function Us(e){const t=e/100;let r=0;return t<=.0031308?r=t*12.92:r=1.055*Math.pow(t,1/2.4)-.055,k$(0,255,Math.round(r*255))}function D$(){return B$}function Fw(e){const t=.008856451679035631,r=24389/27;return e>t?Math.pow(e,1/3):(r*e+16)/116}function L$(e){const t=.008856451679035631,r=24389/27,n=e*e*e;return n>t?n:(116*e-16)/r}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class no{static make(t=D$(),r=200/Math.PI*Fa(50)/100,n=50,i=2,o=!1){const a=t,s=a[0]*.401288+a[1]*.650173+a[2]*-.051461,l=a[0]*-.250268+a[1]*1.204414+a[2]*.045854,c=a[0]*-.002079+a[1]*.048952+a[2]*.953127,u=.8+i/10,f=u>=.9?nf(.59,.69,(u-.9)*10):nf(.525,.59,(u-.8)*10);let d=o?1:u*(1-1/3.6*Math.exp((-r-42)/92));d=d>1?1:d<0?0:d;const b=u,p=[d*(100/s)+1-d,d*(100/l)+1-d,d*(100/c)+1-d],v=1/(5*r+1),w=v*v*v*v,C=1-w,y=w*r+.1*C*C*Math.cbrt(5*r),M=Fa(n)/t[1],B=1.48+Math.sqrt(M),D=.725/Math.pow(M,.2),F=D,N=[Math.pow(y*p[0]*s/100,.42),Math.pow(y*p[1]*l/100,.42),Math.pow(y*p[2]*c/100,.42)],_=[400*N[0]/(N[0]+27.13),400*N[1]/(N[1]+27.13),400*N[2]/(N[2]+27.13)],L=(2*_[0]+_[1]+.05*_[2])*D;return new no(M,L,D,F,f,b,p,y,Math.pow(y,.25),B)}constructor(t,r,n,i,o,a,s,l,c,u){this.n=t,this.aw=r,this.nbb=n,this.ncb=i,this.c=o,this.nc=a,this.rgbD=s,this.fl=l,this.fLRoot=c,this.z=u}}no.DEFAULT=no.make();/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class Ir{constructor(t,r,n,i,o,a,s,l,c){this.hue=t,this.chroma=r,this.j=n,this.q=i,this.m=o,this.s=a,this.jstar=s,this.astar=l,this.bstar=c}distance(t){const r=this.jstar-t.jstar,n=this.astar-t.astar,i=this.bstar-t.bstar,o=Math.sqrt(r*r+n*n+i*i);return 1.41*Math.pow(o,.63)}static fromInt(t){return Ir.fromIntInViewingConditions(t,no.DEFAULT)}static fromIntInViewingConditions(t,r){const n=(t&16711680)>>16,i=(t&65280)>>8,o=t&255,a=oc(n),s=oc(i),l=oc(o),c=.41233895*a+.35762064*s+.18051042*l,u=.2126*a+.7152*s+.0722*l,f=.01932141*a+.11916382*s+.95034478*l,d=.401288*c+.650173*u-.051461*f,b=-.250268*c+1.204414*u+.045854*f,p=-.002079*c+.048952*u+.953127*f,v=r.rgbD[0]*d,w=r.rgbD[1]*b,C=r.rgbD[2]*p,y=Math.pow(r.fl*Math.abs(v)/100,.42),M=Math.pow(r.fl*Math.abs(w)/100,.42),B=Math.pow(r.fl*Math.abs(C)/100,.42),D=Pn(v)*400*y/(y+27.13),F=Pn(w)*400*M/(M+27.13),N=Pn(C)*400*B/(B+27.13),_=(11*D+-12*F+N)/11,L=(D+F-2*N)/9,I=(20*D+20*F+21*N)/20,R=(40*D+20*F+N)/20,g=Math.atan2(L,_)*180/Math.PI,h=g<0?g+360:g>=360?g-360:g,x=h*Math.PI/180,S=R*r.nbb,T=100*Math.pow(S/r.aw,r.c*r.z),k=4/r.c*Math.sqrt(T/100)*(r.aw+4)*r.fLRoot,$=h<20.14?h+360:h,P=.25*(Math.cos($*Math.PI/180+2)+3.8),A=5e4/13*P*r.nc*r.ncb*Math.sqrt(_*_+L*L)/(I+.305),z=Math.pow(A,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),H=z*Math.sqrt(T/100),O=H*r.fLRoot,V=50*Math.sqrt(z*r.c/(r.aw+4)),X=(1+100*.007)*T/(1+.007*T),J=1/.0228*Math.log(1+.0228*O),G=J*Math.cos(x),j=J*Math.sin(x);return new Ir(h,H,T,k,O,V,X,G,j)}static fromJch(t,r,n){return Ir.fromJchInViewingConditions(t,r,n,no.DEFAULT)}static fromJchInViewingConditions(t,r,n,i){const o=4/i.c*Math.sqrt(t/100)*(i.aw+4)*i.fLRoot,a=r*i.fLRoot,s=r/Math.sqrt(t/100),l=50*Math.sqrt(s*i.c/(i.aw+4)),c=n*Math.PI/180,u=(1+100*.007)*t/(1+.007*t),f=1/.0228*Math.log(1+.0228*a),d=f*Math.cos(c),b=f*Math.sin(c);return new Ir(n,r,t,o,a,l,u,d,b)}static fromUcs(t,r,n){return Ir.fromUcsInViewingConditions(t,r,n,no.DEFAULT)}static fromUcsInViewingConditions(t,r,n,i){const o=r,a=n,s=Math.sqrt(o*o+a*a),c=(Math.exp(s*.0228)-1)/.0228/i.fLRoot;let u=Math.atan2(a,o)*(180/Math.PI);u<0&&(u+=360);const f=t/(1-(t-100)*.007);return Ir.fromJchInViewingConditions(f,c,u,i)}toInt(){return this.viewed(no.DEFAULT)}viewed(t){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),i=this.hue*Math.PI/180,o=.25*(Math.cos(i+2)+3.8),a=t.aw*Math.pow(this.j/100,1/t.c/t.z),s=o*(5e4/13)*t.nc*t.ncb,l=a/t.nbb,c=Math.sin(i),u=Math.cos(i),f=23*(l+.305)*n/(23*s+11*n*u+108*n*c),d=f*u,b=f*c,p=(460*l+451*d+288*b)/1403,v=(460*l-891*d-261*b)/1403,w=(460*l-220*d-6300*b)/1403,C=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),y=Pn(p)*(100/t.fl)*Math.pow(C,1/.42),M=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),B=Pn(v)*(100/t.fl)*Math.pow(M,1/.42),D=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),F=Pn(w)*(100/t.fl)*Math.pow(D,1/.42),N=y/t.rgbD[0],_=B/t.rgbD[1],L=F/t.rgbD[2],I=1.86206786*N-1.01125463*_+.14918677*L,R=.38752654*N+.62144744*_-.00897398*L,m=-.0158415*N-.03412294*_+1.04996444*L;return I$(I,R,m)}static fromXyzInViewingConditions(t,r,n,i){const o=.401288*t+.650173*r-.051461*n,a=-.250268*t+1.204414*r+.045854*n,s=-.002079*t+.048952*r+.953127*n,l=i.rgbD[0]*o,c=i.rgbD[1]*a,u=i.rgbD[2]*s,f=Math.pow(i.fl*Math.abs(l)/100,.42),d=Math.pow(i.fl*Math.abs(c)/100,.42),b=Math.pow(i.fl*Math.abs(u)/100,.42),p=Pn(l)*400*f/(f+27.13),v=Pn(c)*400*d/(d+27.13),w=Pn(u)*400*b/(b+27.13),C=(11*p+-12*v+w)/11,y=(p+v-2*w)/9,M=(20*p+20*v+21*w)/20,B=(40*p+20*v+w)/20,F=Math.atan2(y,C)*180/Math.PI,N=F<0?F+360:F>=360?F-360:F,_=N*Math.PI/180,L=B*i.nbb,I=100*Math.pow(L/i.aw,i.c*i.z),R=4/i.c*Math.sqrt(I/100)*(i.aw+4)*i.fLRoot,m=N<20.14?N+360:N,g=1/4*(Math.cos(m*Math.PI/180+2)+3.8),x=5e4/13*g*i.nc*i.ncb*Math.sqrt(C*C+y*y)/(M+.305),S=Math.pow(x,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),T=S*Math.sqrt(I/100),k=T*i.fLRoot,$=50*Math.sqrt(S*i.c/(i.aw+4)),P=(1+100*.007)*I/(1+.007*I),E=Math.log(1+.0228*k)/.0228,A=E*Math.cos(_),z=E*Math.sin(_);return new Ir(N,T,I,R,k,$,P,A,z)}xyzInViewingConditions(t){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),i=this.hue*Math.PI/180,o=.25*(Math.cos(i+2)+3.8),a=t.aw*Math.pow(this.j/100,1/t.c/t.z),s=o*(5e4/13)*t.nc*t.ncb,l=a/t.nbb,c=Math.sin(i),u=Math.cos(i),f=23*(l+.305)*n/(23*s+11*n*u+108*n*c),d=f*u,b=f*c,p=(460*l+451*d+288*b)/1403,v=(460*l-891*d-261*b)/1403,w=(460*l-220*d-6300*b)/1403,C=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),y=Pn(p)*(100/t.fl)*Math.pow(C,1/.42),M=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),B=Pn(v)*(100/t.fl)*Math.pow(M,1/.42),D=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),F=Pn(w)*(100/t.fl)*Math.pow(D,1/.42),N=y/t.rgbD[0],_=B/t.rgbD[1],L=F/t.rgbD[2],I=1.86206786*N-1.01125463*_+.14918677*L,R=.38752654*N+.62144744*_-.00897398*L,m=-.0158415*N-.03412294*_+1.04996444*L;return[I,R,m]}}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class xt{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const r=t/100;let n=0;return r<=.0031308?n=r*12.92:n=1.055*Math.pow(r,1/2.4)-.055,n*255}static chromaticAdaptation(t){const r=Math.pow(Math.abs(t),.42);return Pn(t)*400*r/(r+27.13)}static hueOf(t){const r=Og(t,xt.SCALED_DISCOUNT_FROM_LINRGB),n=xt.chromaticAdaptation(r[0]),i=xt.chromaticAdaptation(r[1]),o=xt.chromaticAdaptation(r[2]),a=(11*n+-12*i+o)/11,s=(n+i-2*o)/9;return Math.atan2(s,a)}static areInCyclicOrder(t,r,n){const i=xt.sanitizeRadians(r-t),o=xt.sanitizeRadians(n-t);return i100.01||I[1]>100.01||I[2]>100.01?0:By(I);i=i-(h-n)*i/(2*h)}return 0}static solveToInt(t,r,n){if(r<1e-4||n<1e-4||n>99.9999)return O$(n);t=q2(t);const i=t/180*Math.PI,o=Fa(n),a=xt.findResultByJ(i,r,o);if(a!==0)return a;const s=xt.bisectToLimit(o,i);return By(s)}static solveToCam(t,r,n){return Ir.fromInt(xt.solveToInt(t,r,n))}}xt.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];xt.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];xt.Y_FROM_LINRGB=[.2126,.7152,.0722];xt.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class Fr{static from(t,r,n){return new Fr(xt.solveToInt(t,r,n))}static fromInt(t){return new Fr(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(xt.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(xt.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(xt.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const r=Ir.fromInt(t);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=Dg(t),this.argb=t}setInternalState(t){const r=Ir.fromInt(t);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=Dg(t),this.argb=t}inViewingConditions(t){const n=Ir.fromInt(this.toInt()).xyzInViewingConditions(t),i=Ir.fromXyzInViewingConditions(n[0],n[1],n[2],no.make());return Fr.from(i.hue,i.chroma,Lg(n[1]))}}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class G2{static harmonize(t,r){const n=Fr.fromInt(t),i=Fr.fromInt(r),o=R$(n.hue,i.hue),a=Math.min(o*.5,15),s=q2(n.hue+a*_$(n.hue,i.hue));return Fr.from(s,n.chroma,n.tone).toInt()}static hctHue(t,r,n){const i=G2.cam16Ucs(t,r,n),o=Ir.fromInt(i),a=Ir.fromInt(t);return Fr.from(o.hue,a.chroma,Dg(t)).toInt()}static cam16Ucs(t,r,n){const i=Ir.fromInt(t),o=Ir.fromInt(r),a=i.jstar,s=i.astar,l=i.bstar,c=o.jstar,u=o.astar,f=o.bstar,d=a+(c-a)*n,b=s+(u-s)*n,p=l+(f-l)*n;return Ir.fromUcs(d,b,p).toInt()}}/** + * @license + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class $r{static ratioOfTones(t,r){return t=lh(0,100,t),r=lh(0,100,r),$r.ratioOfYs(Fa(t),Fa(r))}static ratioOfYs(t,r){const n=t>r?t:r,i=n===r?t:r;return(n+5)/(i+5)}static lighter(t,r){if(t<0||t>100)return-1;const n=Fa(t),i=r*(n+5)-5,o=$r.ratioOfYs(i,n),a=Math.abs(o-r);if(o.04)return-1;const s=Lg(i)+.4;return s<0||s>100?-1:s}static darker(t,r){if(t<0||t>100)return-1;const n=Fa(t),i=(n+5)/r-5,o=$r.ratioOfYs(n,i),a=Math.abs(o-r);if(o.04)return-1;const s=Lg(i)-.4;return s<0||s>100?-1:s}static lighterUnsafe(t,r){const n=$r.lighter(t,r);return n<0?100:n}static darkerUnsafe(t,r){const n=$r.darker(t,r);return n<0?0:n}}/** + * @license + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class Y2{static isDisliked(t){const r=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,n=Math.round(t.chroma)>16,i=Math.round(t.tone)<65;return r&&n&&i}static fixIfDisliked(t){return Y2.isDisliked(t)?Fr.from(t.hue,t.chroma,70):t}}/** + * @license + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class Ke{static fromPalette(t){return new Ke(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,r,n,i,o,a,s,l){if(this.name=t,this.palette=r,this.tone=n,this.isBackground=i,this.background=o,this.secondBackground=a,this.contrastCurve=s,this.toneDeltaPair=l,this.hctCache=new Map,!o&&a)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!o&&s)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(o&&!s)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const r=this.hctCache.get(t);if(r!=null)return r;const n=this.getTone(t),i=this.palette(t).getHct(n);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,i),i}getTone(t){const r=t.contrastLevel<0;if(this.toneDeltaPair){const n=this.toneDeltaPair(t),i=n.roleA,o=n.roleB,a=n.delta,s=n.polarity,l=n.stayTogether,u=this.background(t).getTone(t),f=s==="nearer"||s==="lighter"&&!t.isDark||s==="darker"&&t.isDark,d=f?i:o,b=f?o:i,p=this.name===d.name,v=t.isDark?1:-1,w=d.contrastCurve.getContrast(t.contrastLevel),C=b.contrastCurve.getContrast(t.contrastLevel),y=d.tone(t);let M=$r.ratioOfTones(u,y)>=w?y:Ke.foregroundTone(u,w);const B=b.tone(t);let D=$r.ratioOfTones(u,B)>=C?B:Ke.foregroundTone(u,C);return r&&(M=Ke.foregroundTone(u,w),D=Ke.foregroundTone(u,C)),(D-M)*v>=a||(D=lh(0,100,M+a*v),(D-M)*v>=a||(M=lh(0,100,D-a*v))),50<=M&&M<60?v>0?(M=60,D=Math.max(D,M+a*v)):(M=49,D=Math.min(D,M+a*v)):50<=D&&D<60&&(l?v>0?(M=60,D=Math.max(D,M+a*v)):(M=49,D=Math.min(D,M+a*v)):v>0?D=60:D=49),p?M:D}else{let n=this.tone(t);if(this.background==null)return n;const i=this.background(t).getTone(t),o=this.contrastCurve.getContrast(t.contrastLevel);if($r.ratioOfTones(i,n)>=o||(n=Ke.foregroundTone(i,o)),r&&(n=Ke.foregroundTone(i,o)),this.isBackground&&50<=n&&n<60&&($r.ratioOfTones(49,i)>=o?n=49:n=60),this.secondBackground){const[a,s]=[this.background,this.secondBackground],[l,c]=[a(t).getTone(t),s(t).getTone(t)],[u,f]=[Math.max(l,c),Math.min(l,c)];if($r.ratioOfTones(u,n)>=o&&$r.ratioOfTones(f,n)>=o)return n;const d=$r.lighter(u,o),b=$r.darker(f,o),p=[];return d!==-1&&p.push(d),b!==-1&&p.push(b),Ke.tonePrefersLightForeground(l)||Ke.tonePrefersLightForeground(c)?d<0?100:d:p.length===1?p[0]:b<0?0:b}return n}}static foregroundTone(t,r){const n=$r.lighterUnsafe(t,r),i=$r.darkerUnsafe(t,r),o=$r.ratioOfTones(n,t),a=$r.ratioOfTones(i,t);if(Ke.tonePrefersLightForeground(t)){const l=Math.abs(o-a)<.1&&o=r||o>=a||l?n:i}else return a>=r||a>=o?i:n}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return Ke.tonePrefersLightForeground(t)&&!Ke.toneAllowsLightForeground(t)?49:t}}/** + * @license + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var Bf;(function(e){e[e.MONOCHROME=0]="MONOCHROME",e[e.NEUTRAL=1]="NEUTRAL",e[e.TONAL_SPOT=2]="TONAL_SPOT",e[e.VIBRANT=3]="VIBRANT",e[e.EXPRESSIVE=4]="EXPRESSIVE",e[e.FIDELITY=5]="FIDELITY",e[e.CONTENT=6]="CONTENT",e[e.RAINBOW=7]="RAINBOW",e[e.FRUIT_SALAD=8]="FRUIT_SALAD"})(Bf||(Bf={}));/** + * @license + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class Tt{constructor(t,r,n,i){this.low=t,this.normal=r,this.medium=n,this.high=i}getContrast(t){return t<=-1?this.low:t<0?nf(this.low,this.normal,(t- -1)/1):t<.5?nf(this.normal,this.medium,(t-0)/.5):t<1?nf(this.medium,this.high,(t-.5)/.5):this.high}}/** + * @license + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class Un{constructor(t,r,n,i,o){this.roleA=t,this.roleB=r,this.delta=n,this.polarity=i,this.stayTogether=o}}/** + * @license + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function Yc(e){return e.variant===Bf.FIDELITY||e.variant===Bf.CONTENT}function vr(e){return e.variant===Bf.MONOCHROME}function N$(e,t,r,n){let i=r,o=Fr.from(e,t,r);if(o.chromas.chroma||Math.abs(s.chroma-t)<.4)break;const l=Math.abs(s.chroma-t),c=Math.abs(o.chroma-t);le.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});fe.secondaryPaletteKeyColor=Ke.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});fe.tertiaryPaletteKeyColor=Ke.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});fe.neutralPaletteKeyColor=Ke.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});fe.neutralVariantPaletteKeyColor=Ke.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});fe.background=Ke.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});fe.onBackground=Ke.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>fe.background,contrastCurve:new Tt(3,3,4.5,7)});fe.surface=Ke.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});fe.surfaceDim=Ke.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});fe.surfaceBright=Ke.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});fe.surfaceContainerLowest=Ke.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});fe.surfaceContainerLow=Ke.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});fe.surfaceContainer=Ke.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});fe.surfaceContainerHigh=Ke.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});fe.surfaceContainerHighest=Ke.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});fe.onSurface=Ke.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>fe.highestSurface(e),contrastCurve:new Tt(4.5,7,11,21)});fe.surfaceVariant=Ke.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});fe.onSurfaceVariant=Ke.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>fe.highestSurface(e),contrastCurve:new Tt(3,4.5,7,11)});fe.inverseSurface=Ke.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});fe.inverseOnSurface=Ke.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>fe.inverseSurface,contrastCurve:new Tt(4.5,7,11,21)});fe.outline=Ke.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1.5,3,4.5,7)});fe.outlineVariant=Ke.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7)});fe.shadow=Ke.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0});fe.scrim=Ke.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0});fe.surfaceTint=Ke.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});fe.primary=Ke.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>vr(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(3,4.5,7,11),toneDeltaPair:e=>new Un(fe.primaryContainer,fe.primary,15,"nearer",!1)});fe.onPrimary=Ke.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>vr(e)?e.isDark?10:90:e.isDark?20:100,background:e=>fe.primary,contrastCurve:new Tt(4.5,7,11,21)});fe.primaryContainer=Ke.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>Yc(e)?X2(e.sourceColorHct,e):vr(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.primaryContainer,fe.primary,15,"nearer",!1)});fe.onPrimaryContainer=Ke.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>Yc(e)?Ke.foregroundTone(fe.primaryContainer.tone(e),4.5):vr(e)?e.isDark?0:100:e.isDark?90:10,background:e=>fe.primaryContainer,contrastCurve:new Tt(4.5,7,11,21)});fe.inversePrimary=Ke.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>fe.inverseSurface,contrastCurve:new Tt(3,4.5,7,11)});fe.secondary=Ke.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(3,4.5,7,11),toneDeltaPair:e=>new Un(fe.secondaryContainer,fe.secondary,15,"nearer",!1)});fe.onSecondary=Ke.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>vr(e)?e.isDark?10:100:e.isDark?20:100,background:e=>fe.secondary,contrastCurve:new Tt(4.5,7,11,21)});fe.secondaryContainer=Ke.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(vr(e))return e.isDark?30:85;if(!Yc(e))return t;let r=N$(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return r=X2(e.secondaryPalette.getHct(r),e),r},isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.secondaryContainer,fe.secondary,15,"nearer",!1)});fe.onSecondaryContainer=Ke.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>Yc(e)?Ke.foregroundTone(fe.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>fe.secondaryContainer,contrastCurve:new Tt(4.5,7,11,21)});fe.tertiary=Ke.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>vr(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(3,4.5,7,11),toneDeltaPair:e=>new Un(fe.tertiaryContainer,fe.tertiary,15,"nearer",!1)});fe.onTertiary=Ke.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>vr(e)?e.isDark?10:90:e.isDark?20:100,background:e=>fe.tertiary,contrastCurve:new Tt(4.5,7,11,21)});fe.tertiaryContainer=Ke.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(vr(e))return e.isDark?60:49;if(!Yc(e))return e.isDark?30:90;const t=X2(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),r=e.tertiaryPalette.getHct(t);return Y2.fixIfDisliked(r).tone},isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.tertiaryContainer,fe.tertiary,15,"nearer",!1)});fe.onTertiaryContainer=Ke.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>vr(e)?e.isDark?0:100:Yc(e)?Ke.foregroundTone(fe.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>fe.tertiaryContainer,contrastCurve:new Tt(4.5,7,11,21)});fe.error=Ke.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(3,4.5,7,11),toneDeltaPair:e=>new Un(fe.errorContainer,fe.error,15,"nearer",!1)});fe.onError=Ke.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>fe.error,contrastCurve:new Tt(4.5,7,11,21)});fe.errorContainer=Ke.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.errorContainer,fe.error,15,"nearer",!1)});fe.onErrorContainer=Ke.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>fe.errorContainer,contrastCurve:new Tt(4.5,7,11,21)});fe.primaryFixed=Ke.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>vr(e)?40:90,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.primaryFixed,fe.primaryFixedDim,10,"lighter",!0)});fe.primaryFixedDim=Ke.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>vr(e)?30:80,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.primaryFixed,fe.primaryFixedDim,10,"lighter",!0)});fe.onPrimaryFixed=Ke.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>vr(e)?100:10,background:e=>fe.primaryFixedDim,secondBackground:e=>fe.primaryFixed,contrastCurve:new Tt(4.5,7,11,21)});fe.onPrimaryFixedVariant=Ke.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>vr(e)?90:30,background:e=>fe.primaryFixedDim,secondBackground:e=>fe.primaryFixed,contrastCurve:new Tt(3,4.5,7,11)});fe.secondaryFixed=Ke.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>vr(e)?80:90,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.secondaryFixed,fe.secondaryFixedDim,10,"lighter",!0)});fe.secondaryFixedDim=Ke.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>vr(e)?70:80,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.secondaryFixed,fe.secondaryFixedDim,10,"lighter",!0)});fe.onSecondaryFixed=Ke.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>fe.secondaryFixedDim,secondBackground:e=>fe.secondaryFixed,contrastCurve:new Tt(4.5,7,11,21)});fe.onSecondaryFixedVariant=Ke.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>vr(e)?25:30,background:e=>fe.secondaryFixedDim,secondBackground:e=>fe.secondaryFixed,contrastCurve:new Tt(3,4.5,7,11)});fe.tertiaryFixed=Ke.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>vr(e)?40:90,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.tertiaryFixed,fe.tertiaryFixedDim,10,"lighter",!0)});fe.tertiaryFixedDim=Ke.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>vr(e)?30:80,isBackground:!0,background:e=>fe.highestSurface(e),contrastCurve:new Tt(1,1,3,7),toneDeltaPair:e=>new Un(fe.tertiaryFixed,fe.tertiaryFixedDim,10,"lighter",!0)});fe.onTertiaryFixed=Ke.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>vr(e)?100:10,background:e=>fe.tertiaryFixedDim,secondBackground:e=>fe.tertiaryFixed,contrastCurve:new Tt(4.5,7,11,21)});fe.onTertiaryFixedVariant=Ke.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>vr(e)?90:30,background:e=>fe.tertiaryFixedDim,secondBackground:e=>fe.tertiaryFixed,contrastCurve:new Tt(3,4.5,7,11)});/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class on{static fromInt(t){const r=Fr.fromInt(t);return on.fromHct(r)}static fromHct(t){return new on(t.hue,t.chroma,t)}static fromHueAndChroma(t,r){return new on(t,r,on.createKeyColor(t,r))}constructor(t,r,n){this.hue=t,this.chroma=r,this.keyColor=n,this.cache=new Map}static createKeyColor(t,r){let i=Fr.from(t,r,50),o=Math.abs(i.chroma-r);for(let a=1;a<50;a+=1){if(Math.round(r)===Math.round(i.chroma))return i;const s=Fr.from(t,r,50+a),l=Math.abs(s.chroma-r);l>>0}function jo(e){return parseInt(e,16)}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function Uce(e,t=[]){const r=Gr.of(e);return{source:e,schemes:{light:Vo.light(e),dark:Vo.dark(e)},palettes:{primary:r.a1,secondary:r.a2,tertiary:r.a3,neutral:r.n1,neutralVariant:r.n2,error:r.error},customColors:t.map(n=>j$(e,n))}}function j$(e,t){let r=t.value;const n=r,i=e;t.blend&&(r=G2.harmonize(n,i));const a=Gr.of(r).a1;return{color:t,value:r,light:{color:a.tone(40),onColor:a.tone(100),colorContainer:a.tone(90),onColorContainer:a.tone(10)},dark:{color:a.tone(80),onColor:a.tone(20),colorContainer:a.tone(30),onColorContainer:a.tone(90)}}}var Ow={exports:{}},Dw={};/** + * @license React + * use-sync-external-store-with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var w0=U;function U$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var H$=typeof Object.is=="function"?Object.is:U$,W$=w0.useSyncExternalStore,V$=w0.useRef,q$=w0.useEffect,K$=w0.useMemo,G$=w0.useDebugValue;Dw.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=V$(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=K$(function(){function l(b){if(!c){if(c=!0,u=b,b=n(b),i!==void 0&&a.hasValue){var p=a.value;if(i(p,b))return f=p}return f=b}if(p=f,H$(u,b))return p;var v=n(b);return i!==void 0&&i(p,v)?p:(u=b,f=v)}var c=!1,u,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=W$(e,o[0],o[1]);return q$(function(){a.hasValue=!0,a.value=s},[s]),G$(s),s};Ow.exports=Dw;var Y$=Ow.exports,Zn="default"in bc?mn:bc,Iy=Symbol.for("react-redux-context"),Fy=typeof globalThis<"u"?globalThis:{};function X$(){if(!Zn.createContext)return{};const e=Fy[Iy]??(Fy[Iy]=new Map);let t=e.get(Zn.createContext);return t||(t=Zn.createContext(null),e.set(Zn.createContext,t)),t}var Ja=X$(),J$=()=>{throw new Error("uSES not initialized!")};function J2(e=Ja){return function(){return Zn.useContext(e)}}var Lw=J2(),Nw=J$,Z$=e=>{Nw=e},Q$=(e,t)=>e===t;function eB(e=Ja){const t=e===Ja?Lw:J2(e),r=(n,i={})=>{const{equalityFn:o=Q$,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:c,stabilityCheck:u,identityFunctionCheck:f}=t();Zn.useRef(!0);const d=Zn.useCallback({[n.name](p){return n(p)}}[n.name],[n,u,a.stabilityCheck]),b=Nw(l.addNestedSub,s.getState,c||s.getState,d,o);return Zn.useDebugValue(b),b};return Object.assign(r,{withTypes:()=>r}),r}var Hce=eB();function tB(e){e()}function rB(){let e=null,t=null;return{clear(){e=null,t=null},notify(){tB(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Oy={notify(){},get:()=>[]};function nB(e,t){let r,n=Oy,i=0,o=!1;function a(v){u();const w=n.subscribe(v);let C=!1;return()=>{C||(C=!0,w(),f())}}function s(){n.notify()}function l(){p.onStateChange&&p.onStateChange()}function c(){return o}function u(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=rB())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Oy)}function d(){o||(o=!0,u())}function b(){o&&(o=!1,f())}const p={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:b,getListeners:()=>n};return p}var iB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",oB=iB?Zn.useLayoutEffect:Zn.useEffect;function Dy(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Wce(e,t){if(Dy(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{const c=nB(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,n,i,o]),s=Zn.useMemo(()=>e.getState(),[e]);oB(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=t||Ja;return Zn.createElement(l.Provider,{value:a},r)}var Vce=aB;function zw(e=Ja){const t=e===Ja?Lw:J2(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var sB=zw();function lB(e=Ja){const t=e===Ja?sB:zw(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var qce=lB();Z$(Y$.useSyncExternalStoreWithSelector);const cB={black:"#000",white:"#fff"},If=cB,uB={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Sl=uB,fB={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Cl=fB,dB={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},El=dB,hB={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ml=hB,pB={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Pl=pB,xB={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},gu=xB,mB={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},gB=mB;function aa(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r=0)&&(r[i]=e[i]);return r}var bB=/^((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)-.*))$/,yB=$9(function(e){return bB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Kce=function(t,r){var n=arguments;if(r==null||!v0.call(r,"css"))return U.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=T2,o[1]=R2(t,r);for(var a=2;a96?SB:CB},Ny=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},EB=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return A2(r,n,i),U9(function(){return k2(r,n,i)}),null},MB=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=Ny(t,r,n),l=s||Ly(i),c=!l("as");return function(){var u=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var d=u.length,b=1;bt(kB(i)?r:i):t;return Y.jsx(wB,{styles:n})}function Z2(e,t){return Ng(e,t)}const Uw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_B=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:jw,StyledEngineProvider:AB,ThemeContext:Kc,css:Cc,default:Z2,internal_processStyles:Uw,keyframes:ss},Symbol.toStringTag,{value:"Module"}));function Go(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Hw(e){if(!Go(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Hw(e[r])}),t}function gn(e,t,r={clone:!0}){const n=r.clone?W({},e):e;return Go(e)&&Go(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Go(t[i])&&i in e&&Go(e[i])?n[i]=gn(e[i],t[i],r):r.clone?n[i]=Go(t[i])?Hw(t[i]):t[i]:n[i]=t[i])}),n}const RB=Object.freeze(Object.defineProperty({__proto__:null,default:gn,isPlainObject:Go},Symbol.toStringTag,{value:"Module"})),TB=["values","unit","step"],$B=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>W({},r,{[n.key]:n.val}),{})};function Ww(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Ee(e,TB),o=$B(t),a=Object.keys(o);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function c(d,b){const p=a.indexOf(b);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:b)-n/100}${r})`}function u(d){return a.indexOf(d)+1`@media (min-width:${Q2[e]}px)`};function Ln(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||zy;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const o=n.breakpoints||zy;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||Q2).indexOf(s)!==-1){const l=o.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function Vw(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function qw(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function FB(e,...t){const r=Vw(e),n=[r,...t].reduce((i,o)=>gn(i,o),{});return qw(Object.keys(r),n)}function OB(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,o)=>{o{e[i]!=null&&(r[i]=!0)}),r}function Hs({values:e,breakpoints:t,base:r}){const n=r||OB(e,t),i=Object.keys(n);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function ue(e){if(typeof e!="string")throw new Error(aa(7));return e.charAt(0).toUpperCase()+e.slice(1)}const DB=Object.freeze(Object.defineProperty({__proto__:null,default:ue},Symbol.toStringTag,{value:"Module"}));function Op(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function ch(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Op(e,r)||n,t&&(i=t(i,n,e)),i}function br(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Op(l,n)||{};return Ln(a,s,f=>{let d=ch(c,i,f);return f===d&&typeof f=="string"&&(d=ch(c,i,`${t}${f==="default"?"":ue(f)}`,f)),r===!1?d:{[r]:d}})};return o.propTypes={},o.filterProps=[t],o}function LB(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const NB={m:"margin",p:"padding"},zB={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jB=LB(e=>{if(e.length>2)if(jy[e])e=jy[e];else return[e];const[t,r]=e.split(""),n=NB[t],i=zB[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),eb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...eb,...tb];function S0(e,t,r,n){var i;const o=(i=Op(e,t,!1))!=null?i:r;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function rb(e){return S0(e,"spacing",8)}function Zs(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function UB(e,t){return r=>e.reduce((n,i)=>(n[i]=Zs(t,r),n),{})}function HB(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=jB(r),o=UB(i,n),a=e[r];return Ln(e,a,o)}function Kw(e,t){const r=rb(e.theme);return Object.keys(e).map(n=>HB(e,t,n,r)).reduce(of,{})}function ar(e){return Kw(e,eb)}ar.propTypes={};ar.filterProps=eb;function sr(e){return Kw(e,tb)}sr.propTypes={};sr.filterProps=tb;function WB(e=8){if(e.mui)return e;const t=rb({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Dp(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?of(i,t[o](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function bi(e){return typeof e!="number"?e:`${e}px solid`}function Li(e,t){return br({prop:e,themeKey:"borders",transform:t})}const VB=Li("border",bi),qB=Li("borderTop",bi),KB=Li("borderRight",bi),GB=Li("borderBottom",bi),YB=Li("borderLeft",bi),XB=Li("borderColor"),JB=Li("borderTopColor"),ZB=Li("borderRightColor"),QB=Li("borderBottomColor"),eI=Li("borderLeftColor"),tI=Li("outline",bi),rI=Li("outlineColor"),Lp=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=S0(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zs(t,n)});return Ln(e,e.borderRadius,r)}return null};Lp.propTypes={};Lp.filterProps=["borderRadius"];Dp(VB,qB,KB,GB,YB,XB,JB,ZB,QB,eI,Lp,tI,rI);const Np=e=>{if(e.gap!==void 0&&e.gap!==null){const t=S0(e.theme,"spacing",8),r=n=>({gap:Zs(t,n)});return Ln(e,e.gap,r)}return null};Np.propTypes={};Np.filterProps=["gap"];const zp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=S0(e.theme,"spacing",8),r=n=>({columnGap:Zs(t,n)});return Ln(e,e.columnGap,r)}return null};zp.propTypes={};zp.filterProps=["columnGap"];const jp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=S0(e.theme,"spacing",8),r=n=>({rowGap:Zs(t,n)});return Ln(e,e.rowGap,r)}return null};jp.propTypes={};jp.filterProps=["rowGap"];const nI=br({prop:"gridColumn"}),iI=br({prop:"gridRow"}),oI=br({prop:"gridAutoFlow"}),aI=br({prop:"gridAutoColumns"}),sI=br({prop:"gridAutoRows"}),lI=br({prop:"gridTemplateColumns"}),cI=br({prop:"gridTemplateRows"}),uI=br({prop:"gridTemplateAreas"}),fI=br({prop:"gridArea"});Dp(Np,zp,jp,nI,iI,oI,aI,sI,lI,cI,uI,fI);function ac(e,t){return t==="grey"?t:e}const dI=br({prop:"color",themeKey:"palette",transform:ac}),hI=br({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ac}),pI=br({prop:"backgroundColor",themeKey:"palette",transform:ac});Dp(dI,hI,pI);function Jn(e){return e<=1&&e!==0?`${e*100}%`:e}const xI=br({prop:"width",transform:Jn}),nb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Q2[r];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Jn(r)}};return Ln(e,e.maxWidth,t)}return null};nb.filterProps=["maxWidth"];const mI=br({prop:"minWidth",transform:Jn}),gI=br({prop:"height",transform:Jn}),vI=br({prop:"maxHeight",transform:Jn}),bI=br({prop:"minHeight",transform:Jn});br({prop:"size",cssProperty:"width",transform:Jn});br({prop:"size",cssProperty:"height",transform:Jn});const yI=br({prop:"boxSizing"});Dp(xI,nb,mI,gI,vI,bI,yI);const wI={border:{themeKey:"borders",transform:bi},borderTop:{themeKey:"borders",transform:bi},borderRight:{themeKey:"borders",transform:bi},borderBottom:{themeKey:"borders",transform:bi},borderLeft:{themeKey:"borders",transform:bi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:bi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Lp},color:{themeKey:"palette",transform:ac},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ac},backgroundColor:{themeKey:"palette",transform:ac},p:{style:sr},pt:{style:sr},pr:{style:sr},pb:{style:sr},pl:{style:sr},px:{style:sr},py:{style:sr},padding:{style:sr},paddingTop:{style:sr},paddingRight:{style:sr},paddingBottom:{style:sr},paddingLeft:{style:sr},paddingX:{style:sr},paddingY:{style:sr},paddingInline:{style:sr},paddingInlineStart:{style:sr},paddingInlineEnd:{style:sr},paddingBlock:{style:sr},paddingBlockStart:{style:sr},paddingBlockEnd:{style:sr},m:{style:ar},mt:{style:ar},mr:{style:ar},mb:{style:ar},ml:{style:ar},mx:{style:ar},my:{style:ar},margin:{style:ar},marginTop:{style:ar},marginRight:{style:ar},marginBottom:{style:ar},marginLeft:{style:ar},marginX:{style:ar},marginY:{style:ar},marginInline:{style:ar},marginInlineStart:{style:ar},marginInlineEnd:{style:ar},marginBlock:{style:ar},marginBlockStart:{style:ar},marginBlockEnd:{style:ar},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Np},rowGap:{style:jp},columnGap:{style:zp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jn},maxWidth:{style:nb},minWidth:{transform:Jn},height:{transform:Jn},maxHeight:{transform:Jn},minHeight:{transform:Jn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},C0=wI;function SI(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function CI(e,t){return typeof e=="function"?e(t):e}function Gw(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const d=Op(i,c)||{};return f?f(a):Ln(a,n,p=>{let v=ch(d,u,p);return p===v&&typeof p=="string"&&(v=ch(d,u,`${r}${p==="default"?"":ue(p)}`,p)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const a=(n=o.unstable_sxConfig)!=null?n:C0;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=Vw(o.breakpoints),f=Object.keys(u);let d=u;return Object.keys(c).forEach(b=>{const p=CI(c[b],o);if(p!=null)if(typeof p=="object")if(a[b])d=of(d,e(b,p,o,a));else{const v=Ln({theme:o},p,w=>({[b]:w}));SI(v,p)?d[b]=t({sx:p,theme:o}):d=of(d,v)}else d=of(d,e(b,p,o,a))}),qw(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const Yw=Gw();Yw.filterProps=["sx"];const E0=Yw;function Xw(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const EI=["breakpoints","palette","spacing","shape"];function M0(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=Ee(e,EI),s=Ww(r),l=WB(i);let c=gn({breakpoints:s,direction:"ltr",components:{},palette:W({mode:"light"},n),spacing:l,shape:W({},IB,o)},a);return c.applyStyles=Xw,c=t.reduce((u,f)=>gn(u,f),c),c.unstable_sxConfig=W({},C0,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return E0({sx:f,theme:this})},c}const MI=Object.freeze(Object.defineProperty({__proto__:null,default:M0,private_createBreakpoints:Ww,unstable_applyStyles:Xw},Symbol.toStringTag,{value:"Module"}));function PI(e){return Object.keys(e).length===0}function ib(e=null){const t=U.useContext(Kc);return!t||PI(t)?e:t}const AI=M0();function Up(e=AI){return ib(e)}function kI({styles:e,themeId:t,defaultTheme:r={}}){const n=Up(r),i=typeof e=="function"?e(t&&n[t]||n):e;return Y.jsx(jw,{styles:i})}const _I=["sx"],RI=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:C0;return Object.keys(e).forEach(o=>{i[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function P0(e){const{sx:t}=e,r=Ee(e,_I),{systemProps:n,otherProps:i}=RI(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Go(s)?W({},n,s):n}:o=W({},n,t),W({},i,{sx:o})}const TI=Object.freeze(Object.defineProperty({__proto__:null,default:E0,extendSxProp:P0,unstable_createStyleFunctionSx:Gw,unstable_defaultSxConfig:C0},Symbol.toStringTag,{value:"Module"})),Uy=e=>e,$I=()=>{let e=Uy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Uy}}},BI=$I(),ob=BI;function Jw(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(E0);return U.forwardRef(function(l,c){const u=Up(r),f=P0(l),{className:d,component:b="div"}=f,p=Ee(f,II);return Y.jsx(o,W({as:b,ref:c,className:Se(d,i?i(n):n),theme:t&&u[t]||u},p))})}const Zw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function nt(e,t,r="Mui"){const n=Zw[t];return n?`${r}-${n}`:`${ob.generate(e)}-${t}`}function tt(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=nt(e,i,r)}),n}var Qw={exports:{}},Ut={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ab=Symbol.for("react.element"),sb=Symbol.for("react.portal"),Hp=Symbol.for("react.fragment"),Wp=Symbol.for("react.strict_mode"),Vp=Symbol.for("react.profiler"),qp=Symbol.for("react.provider"),Kp=Symbol.for("react.context"),OI=Symbol.for("react.server_context"),Gp=Symbol.for("react.forward_ref"),Yp=Symbol.for("react.suspense"),Xp=Symbol.for("react.suspense_list"),Jp=Symbol.for("react.memo"),Zp=Symbol.for("react.lazy"),DI=Symbol.for("react.offscreen"),eS;eS=Symbol.for("react.module.reference");function Ni(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ab:switch(e=e.type,e){case Hp:case Vp:case Wp:case Yp:case Xp:return e;default:switch(e=e&&e.$$typeof,e){case OI:case Kp:case Gp:case Zp:case Jp:case qp:return e;default:return t}}case sb:return t}}}Ut.ContextConsumer=Kp;Ut.ContextProvider=qp;Ut.Element=ab;Ut.ForwardRef=Gp;Ut.Fragment=Hp;Ut.Lazy=Zp;Ut.Memo=Jp;Ut.Portal=sb;Ut.Profiler=Vp;Ut.StrictMode=Wp;Ut.Suspense=Yp;Ut.SuspenseList=Xp;Ut.isAsyncMode=function(){return!1};Ut.isConcurrentMode=function(){return!1};Ut.isContextConsumer=function(e){return Ni(e)===Kp};Ut.isContextProvider=function(e){return Ni(e)===qp};Ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ab};Ut.isForwardRef=function(e){return Ni(e)===Gp};Ut.isFragment=function(e){return Ni(e)===Hp};Ut.isLazy=function(e){return Ni(e)===Zp};Ut.isMemo=function(e){return Ni(e)===Jp};Ut.isPortal=function(e){return Ni(e)===sb};Ut.isProfiler=function(e){return Ni(e)===Vp};Ut.isStrictMode=function(e){return Ni(e)===Wp};Ut.isSuspense=function(e){return Ni(e)===Yp};Ut.isSuspenseList=function(e){return Ni(e)===Xp};Ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hp||e===Vp||e===Wp||e===Yp||e===Xp||e===DI||typeof e=="object"&&e!==null&&(e.$$typeof===Zp||e.$$typeof===Jp||e.$$typeof===qp||e.$$typeof===Kp||e.$$typeof===Gp||e.$$typeof===eS||e.getModuleId!==void 0)};Ut.typeOf=Ni;Qw.exports=Ut;var Hy=Qw.exports;const LI=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function tS(e){const t=`${e}`.match(LI);return t&&t[1]||""}function rS(e,t=""){return e.displayName||e.name||tS(e)||t}function Wy(e,t,r){const n=rS(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function NI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return rS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Hy.ForwardRef:return Wy(e,e.render,"ForwardRef");case Hy.Memo:return Wy(e,e.type,"memo");default:return}}}const zI=Object.freeze(Object.defineProperty({__proto__:null,default:NI,getFunctionName:tS},Symbol.toStringTag,{value:"Module"})),jI=["ownerState"],UI=["variants"],HI=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function WI(e){return Object.keys(e).length===0}function VI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function em(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qI=M0(),KI=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function G0({defaultTheme:e,theme:t,themeId:r}){return WI(t)?e:t[r]||t}function GI(e){return e?(t,r)=>r[e]:null}function Od(e,t){let{ownerState:r}=t,n=Ee(t,jI);const i=typeof e=="function"?e(W({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap(o=>Od(o,W({ownerState:r},n)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let s=Ee(i,UI);return o.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(W({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(W({ownerState:r},n,r)):l.style))}),s}return i}function YI(e={}){const{themeId:t,defaultTheme:r=qI,rootShouldForwardProp:n=em,slotShouldForwardProp:i=em}=e,o=a=>E0(W({},a,{theme:G0(W({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Uw(a,D=>D.filter(F=>!(F!=null&&F.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:d=GI(KI(c))}=s,b=Ee(s,HI),p=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let w,C=em;c==="Root"||c==="root"?C=n:c?C=i:VI(a)&&(C=void 0);const y=Z2(a,W({shouldForwardProp:C,label:w},b)),M=D=>typeof D=="function"&&D.__emotion_real!==D||Go(D)?F=>Od(D,W({},F,{theme:G0({theme:F.theme,defaultTheme:r,themeId:t})})):D,B=(D,...F)=>{let N=M(D);const _=F?F.map(M):[];l&&d&&_.push(R=>{const m=G0(W({},R,{defaultTheme:r,themeId:t}));if(!m.components||!m.components[l]||!m.components[l].styleOverrides)return null;const g=m.components[l].styleOverrides,h={};return Object.entries(g).forEach(([x,S])=>{h[x]=Od(S,W({},R,{theme:m}))}),d(R,h)}),l&&!p&&_.push(R=>{var m;const g=G0(W({},R,{defaultTheme:r,themeId:t})),h=g==null||(m=g.components)==null||(m=m[l])==null?void 0:m.variants;return Od({variants:h},W({},R,{theme:g}))}),v||_.push(o);const L=_.length-F.length;if(Array.isArray(D)&&L>0){const R=new Array(L).fill("");N=[...D,...R],N.raw=[...D.raw,...R]}const I=y(N,..._);return a.muiName&&(I.muiName=a.muiName),I};return y.withConfig&&(B.withConfig=y.withConfig),B}}const XI=YI();function lb(e,t){const r=W({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=W({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=W({},o),Object.keys(i).forEach(a=>{r[n][a]=lb(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function nS(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:lb(t.components[r].defaultProps,n)}function iS({props:e,name:t,defaultTheme:r,themeId:n}){let i=Up(r);return n&&(i=i[n]||i),nS({theme:i,name:t,props:e})}const bn=typeof window<"u"?U.useLayoutEffect:U.useEffect;function JI(e,t,r,n,i){const[o,a]=U.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return bn(()=>{let s=!0;if(!r)return;const l=r(e),c=()=>{s&&a(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,r]),o}const oS=U.useSyncExternalStore;function ZI(e,t,r,n,i){const o=U.useCallback(()=>t,[t]),a=U.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(n!==null){const{matches:u}=n(e);return()=>u}return o},[o,e,n,i,r]),[s,l]=U.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const u=r(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[o,r,e]);return oS(l,s,a)}function Gce(e,t={}){const r=ib(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=nS({name:"MuiUseMediaQuery",props:t,theme:r});let l=typeof e=="function"?e(r):e;return l=l.replace(/^@media( ?)/m,""),(oS!==void 0?ZI:JI)(l,i,o,a,s)}function aS(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const QI=Object.freeze(Object.defineProperty({__proto__:null,default:aS},Symbol.toStringTag,{value:"Module"}));function eF(e,t=0,r=1){return aS(e,t,r)}function tF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function sS(e){if(e.type)return e;if(e.charAt(0)==="#")return sS(tF(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(aa(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(aa(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}function rF(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function nF(e,t){return e=sS(e),t=eF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rF(e)}function jg(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function Xc(e,t=166){let r;function n(...i){const o=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function iF(e,t){return()=>null}function af(e,t){var r,n;return U.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Er(e){return e&&e.ownerDocument||document}function _i(e){return Er(e).defaultView||window}function oF(e,t){return()=>null}function Ff(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Vy=0;function aF(e){const[t,r]=U.useState(e),n=e||t;return U.useEffect(()=>{t==null&&(Vy+=1,r(`mui-${Vy}`))},[t]),n}const qy=bc.useId;function Za(e){if(qy!==void 0){const t=qy();return e??t}return aF(e)}function sF(e,t,r,n,i){return null}function ja({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=U.useRef(e!==void 0),[o,a]=U.useState(t),s=i?e:o,l=U.useCallback(c=>{i||a(c)},[]);return[s,l]}function Pr(e){const t=U.useRef(e);return bn(()=>{t.current=e}),U.useRef((...r)=>(0,t.current)(...r)).current}function Vt(...e){return U.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ff(r,t)})},e)}const Ky={};function lF(e,t){const r=U.useRef(Ky);return r.current===Ky&&(r.current=e(t)),r}const cF=[];function uF(e){U.useEffect(e,cF)}class A0{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new A0}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Bs(){const e=lF(A0.create).current;return uF(e.disposeEffect),e}let Qp=!0,Ug=!1;const fF=new A0,dF={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function hF(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&dF[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function pF(e){e.metaKey||e.altKey||e.ctrlKey||(Qp=!0)}function tm(){Qp=!1}function xF(){this.visibilityState==="hidden"&&Ug&&(Qp=!0)}function mF(e){e.addEventListener("keydown",pF,!0),e.addEventListener("mousedown",tm,!0),e.addEventListener("pointerdown",tm,!0),e.addEventListener("touchstart",tm,!0),e.addEventListener("visibilitychange",xF,!0)}function gF(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Qp||hF(t)}function cb(){const e=U.useCallback(i=>{i!=null&&mF(i.ownerDocument)},[]),t=U.useRef(!1);function r(){return t.current?(Ug=!0,fF.start(100,()=>{Ug=!1}),t.current=!1,!0):!1}function n(i){return gF(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function lS(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Al;function cS(){if(Al)return Al;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Al="reverse",e.scrollLeft>0?Al="default":(e.scrollLeft=1,e.scrollLeft===0&&(Al="negative")),document.body.removeChild(e),Al}function vF(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(cS()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}const ub=e=>{const t=U.useRef({});return U.useEffect(()=>{t.current=e}),t.current};function it(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),r&&r[a]&&o.push(r[a])}return o},[]).join(" ")}),n}const bF=U.createContext(null),uS=bF;function fS(){return U.useContext(uS)}const yF=typeof Symbol=="function"&&Symbol.for,wF=yF?Symbol.for("mui.nested"):"__THEME_NESTED__";function SF(e,t){return typeof t=="function"?t(e):W({},e,t)}function CF(e){const{children:t,theme:r}=e,n=fS(),i=U.useMemo(()=>{const o=n===null?r:SF(n,r);return o!=null&&(o[wF]=n!==null),o},[r,n]);return Y.jsx(uS.Provider,{value:i,children:t})}const EF=["value"],dS=U.createContext();function MF(e){let{value:t}=e,r=Ee(e,EF);return Y.jsx(dS.Provider,W({value:t??!0},r))}const Jc=()=>{const e=U.useContext(dS);return e??!1},Gy={};function Yy(e,t,r,n=!1){return U.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const o=r(i),a=e?W({},t,{[e]:o}):o;return n?()=>a:a}return e?W({},t,{[e]:r}):W({},t,r)},[e,t,r,n])}function PF(e){const{children:t,theme:r,themeId:n}=e,i=ib(Gy),o=fS()||Gy,a=Yy(n,i,r),s=Yy(n,o,r,!0),l=a.direction==="rtl";return Y.jsx(CF,{theme:s,children:Y.jsx(Kc.Provider,{value:a,children:Y.jsx(MF,{value:l,children:t})})})}function Of(e){"@babel/helpers - typeof";return Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Of(e)}function AF(e,t){if(Of(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Of(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kF(e){var t=AF(e,"string");return Of(t)=="symbol"?t:t+""}const _F=["component","direction","spacing","divider","children","className","useFlexGap"],RF=M0(),TF=XI("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function $F(e){return iS({props:e,name:"MuiStack",defaultTheme:RF})}function BF(e,t){const r=U.Children.toArray(e).filter(Boolean);return r.reduce((n,i,o)=>(n.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],FF=({ownerState:e,theme:t})=>{let r=W({display:"flex",flexDirection:"column"},Ln({theme:t},Hs({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=rb(t),i=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=Hs({values:e.direction,base:i}),a=Hs({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,c,u)=>{if(!o[l]){const d=c>0?o[u[c-1]]:"column";o[l]=d}}),r=gn(r,Ln({theme:t},a,(l,c)=>e.useFlexGap?{gap:Zs(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${IF(c?o[c]:e.direction)}`]:Zs(n,l)}}))}return r=FB(t.breakpoints,r),r};function OF(e={}){const{createStyledComponent:t=TF,useThemeProps:r=$F,componentName:n="MuiStack"}=e,i=()=>it({root:["root"]},l=>nt(n,l),{}),o=t(FF);return U.forwardRef(function(l,c){const u=r(l),f=P0(u),{component:d="div",direction:b="column",spacing:p=0,divider:v,children:w,className:C,useFlexGap:y=!1}=f,M=Ee(f,_F),B={direction:b,spacing:p,useFlexGap:y},D=i();return Y.jsx(o,W({as:d,ownerState:B,ref:c,className:Se(D.root,C)},M,{children:v?BF(w,v):w}))})}function DF(e,t){return W({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var yr={},hS={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(hS);var wr=hS.exports;const LF=Fo(vB),NF=Fo(QI);var pS=wr;Object.defineProperty(yr,"__esModule",{value:!0});var Ct=yr.alpha=vS;yr.blend=JF;yr.colorChannel=void 0;var uh=yr.darken=db;yr.decomposeColor=Ri;var zF=yr.emphasize=bS,jF=yr.getContrastRatio=qF;yr.getLuminance=dh;yr.hexToRgb=xS;yr.hslToRgb=gS;var fh=yr.lighten=hb;yr.private_safeAlpha=KF;yr.private_safeColorChannel=void 0;yr.private_safeDarken=GF;yr.private_safeEmphasize=XF;yr.private_safeLighten=YF;yr.recomposeColor=Zc;yr.rgbToHex=VF;var Xy=pS(LF),UF=pS(NF);function fb(e,t=0,r=1){return(0,UF.default)(e,t,r)}function xS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function HF(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ri(e){if(e.type)return e;if(e.charAt(0)==="#")return Ri(xS(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,Xy.default)(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,Xy.default)(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}const mS=e=>{const t=Ri(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};yr.colorChannel=mS;const WF=(e,t)=>{try{return mS(e)}catch{return e}};yr.private_safeColorChannel=WF;function Zc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function VF(e){if(e.indexOf("#")===0)return e;const{values:t}=Ri(e);return`#${t.map((r,n)=>HF(n===3?Math.round(255*r):r)).join("")}`}function gS(e){e=Ri(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(c,u=(c+r/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Zc({type:s,values:l})}function dh(e){e=Ri(e);let t=e.type==="hsl"||e.type==="hsla"?Ri(gS(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qF(e,t){const r=dh(e),n=dh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function vS(e,t){return e=Ri(e),t=fb(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Zc(e)}function KF(e,t,r){try{return vS(e,t)}catch{return e}}function db(e,t){if(e=Ri(e),t=fb(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Zc(e)}function GF(e,t,r){try{return db(e,t)}catch{return e}}function hb(e,t){if(e=Ri(e),t=fb(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Zc(e)}function YF(e,t,r){try{return hb(e,t)}catch{return e}}function bS(e,t=.15){return dh(e)>.5?db(e,t):hb(e,t)}function XF(e,t,r){try{return bS(e,t)}catch{return e}}function JF(e,t,r,n=1){const i=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),o=Ri(e),a=Ri(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return Zc({type:"rgb",values:s})}const ZF=["mode","contrastThreshold","tonalOffset"],Jy={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:If.white,default:If.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},rm={text:{primary:If.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:If.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Zy(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fh(e.main,i):t==="dark"&&(e.dark=uh(e.main,o)))}function QF(e="light"){return e==="dark"?{main:El[200],light:El[50],dark:El[400]}:{main:El[700],light:El[400],dark:El[800]}}function eO(e="light"){return e==="dark"?{main:Cl[200],light:Cl[50],dark:Cl[400]}:{main:Cl[500],light:Cl[300],dark:Cl[700]}}function tO(e="light"){return e==="dark"?{main:Sl[500],light:Sl[300],dark:Sl[700]}:{main:Sl[700],light:Sl[400],dark:Sl[800]}}function rO(e="light"){return e==="dark"?{main:Ml[400],light:Ml[300],dark:Ml[700]}:{main:Ml[700],light:Ml[500],dark:Ml[900]}}function nO(e="light"){return e==="dark"?{main:Pl[400],light:Pl[300],dark:Pl[700]}:{main:Pl[800],light:Pl[500],dark:Pl[900]}}function iO(e="light"){return e==="dark"?{main:gu[400],light:gu[300],dark:gu[700]}:{main:"#ed6c02",light:gu[500],dark:gu[900]}}function oO(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Ee(e,ZF),o=e.primary||QF(t),a=e.secondary||eO(t),s=e.error||tO(t),l=e.info||rO(t),c=e.success||nO(t),u=e.warning||iO(t);function f(v){return jF(v,rm.text.primary)>=r?rm.text.primary:Jy.text.primary}const d=({color:v,name:w,mainShade:C=500,lightShade:y=300,darkShade:M=700})=>{if(v=W({},v),!v.main&&v[C]&&(v.main=v[C]),!v.hasOwnProperty("main"))throw new Error(aa(11,w?` (${w})`:"",C));if(typeof v.main!="string")throw new Error(aa(12,w?` (${w})`:"",JSON.stringify(v.main)));return Zy(v,"light",y,n),Zy(v,"dark",M,n),v.contrastText||(v.contrastText=f(v.main)),v},b={dark:rm,light:Jy};return gn(W({common:W({},If),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:gB,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},b[t]),i)}const aO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function sO(e){return Math.round(e*1e5)/1e5}const Qy={textTransform:"uppercase"},e6='"Roboto", "Helvetica", "Arial", sans-serif';function lO(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=e6,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=r,d=Ee(r,aO),b=i/14,p=f||(C=>`${C/c*b}rem`),v=(C,y,M,B,D)=>W({fontFamily:n,fontWeight:C,fontSize:p(y),lineHeight:M},n===e6?{letterSpacing:`${sO(B/y)}em`}:{},D,u),w={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,Qy),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,Qy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gn(W({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},w),d,{clone:!1})}const cO=.2,uO=.14,fO=.12;function Jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${cO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${uO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${fO})`].join(",")}const dO=["none",Jt(0,2,1,-1,0,1,1,0,0,1,3,0),Jt(0,3,1,-2,0,2,2,0,0,1,5,0),Jt(0,3,3,-2,0,3,4,0,0,1,8,0),Jt(0,2,4,-1,0,4,5,0,0,1,10,0),Jt(0,3,5,-1,0,5,8,0,0,1,14,0),Jt(0,3,5,-1,0,6,10,0,0,1,18,0),Jt(0,4,5,-2,0,7,10,1,0,2,16,1),Jt(0,5,5,-3,0,8,10,1,0,3,14,2),Jt(0,5,6,-3,0,9,12,1,0,3,16,2),Jt(0,6,6,-3,0,10,14,1,0,4,18,3),Jt(0,6,7,-4,0,11,15,1,0,4,20,3),Jt(0,7,8,-4,0,12,17,2,0,5,22,4),Jt(0,7,8,-4,0,13,19,2,0,5,24,4),Jt(0,7,9,-4,0,14,21,2,0,5,26,4),Jt(0,8,9,-5,0,15,22,2,0,6,28,5),Jt(0,8,10,-5,0,16,24,2,0,6,30,5),Jt(0,8,11,-5,0,17,26,2,0,6,32,5),Jt(0,9,11,-5,0,18,28,2,0,7,34,6),Jt(0,9,12,-6,0,19,29,2,0,7,36,6),Jt(0,10,13,-6,0,20,31,3,0,8,38,7),Jt(0,10,13,-6,0,21,33,3,0,8,40,7),Jt(0,10,14,-6,0,22,35,3,0,8,42,7),Jt(0,11,14,-7,0,23,36,3,0,9,44,8),Jt(0,11,15,-7,0,24,38,3,0,9,46,8)],hO=["duration","easing","delay"],pO={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function t6(e){return`${Math.round(e)}ms`}function mO(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function gO(e){const t=W({},pO,e.easing),r=W({},xO,e.duration);return W({getAutoHeightDuration:mO,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ee(o,hO),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:t6(a)} ${s} ${typeof l=="string"?l:t6(l)}`).join(",")}},e,{easing:t,duration:r})}const vO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},bO=vO,yO=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function yS(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=Ee(e,yO);if(e.vars)throw new Error(aa(18));const s=oO(n),l=M0(e);let c=gn(l,{mixins:DF(l.breakpoints,r),palette:s,shadows:dO.slice(),typography:lO(s,o),transitions:gO(i),zIndex:W({},bO)});return c=gn(c,a),c=t.reduce((u,f)=>gn(u,f),c),c.unstable_sxConfig=W({},C0,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return E0({sx:f,theme:this})},c}function wO(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function SO(e){return parseFloat(e)}const CO=yS(),e1=CO;function pa(){const e=Up(e1);return e[Js]||e}function ft({props:e,name:t}){return iS({props:e,name:t,defaultTheme:e1,themeId:Js})}var k0={},nm={exports:{}},r6;function EO(){return r6||(r6=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(i[a]=r[a]);return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(im)),im.exports}const wS=Fo(_B),PO=Fo(RB),AO=Fo(DB),kO=Fo(zI),_O=Fo(MI),RO=Fo(TI);var Qc=wr;Object.defineProperty(k0,"__esModule",{value:!0});var TO=k0.default=WO;k0.shouldForwardProp=Dd;k0.systemDefaultTheme=void 0;var xi=Qc(EO()),Hg=Qc(MO()),i6=LO(wS),$O=PO;Qc(AO);Qc(kO);var BO=Qc(_O),IO=Qc(RO);const FO=["ownerState"],OO=["variants"],DO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function SS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(SS=function(n){return n?r:t})(e)}function LO(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=SS(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function NO(e){return Object.keys(e).length===0}function zO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Dd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jO=k0.systemDefaultTheme=(0,BO.default)(),UO=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Y0({defaultTheme:e,theme:t,themeId:r}){return NO(t)?e:t[r]||t}function HO(e){return e?(t,r)=>r[e]:null}function Ld(e,t){let{ownerState:r}=t,n=(0,Hg.default)(t,FO);const i=typeof e=="function"?e((0,xi.default)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap(o=>Ld(o,(0,xi.default)({ownerState:r},n)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let s=(0,Hg.default)(i,OO);return o.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,xi.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,xi.default)({ownerState:r},n,r)):l.style))}),s}return i}function WO(e={}){const{themeId:t,defaultTheme:r=jO,rootShouldForwardProp:n=Dd,slotShouldForwardProp:i=Dd}=e,o=a=>(0,IO.default)((0,xi.default)({},a,{theme:Y0((0,xi.default)({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{(0,i6.internal_processStyles)(a,D=>D.filter(F=>!(F!=null&&F.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:d=HO(UO(c))}=s,b=(0,Hg.default)(s,DO),p=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let w,C=Dd;c==="Root"||c==="root"?C=n:c?C=i:zO(a)&&(C=void 0);const y=(0,i6.default)(a,(0,xi.default)({shouldForwardProp:C,label:w},b)),M=D=>typeof D=="function"&&D.__emotion_real!==D||(0,$O.isPlainObject)(D)?F=>Ld(D,(0,xi.default)({},F,{theme:Y0({theme:F.theme,defaultTheme:r,themeId:t})})):D,B=(D,...F)=>{let N=M(D);const _=F?F.map(M):[];l&&d&&_.push(R=>{const m=Y0((0,xi.default)({},R,{defaultTheme:r,themeId:t}));if(!m.components||!m.components[l]||!m.components[l].styleOverrides)return null;const g=m.components[l].styleOverrides,h={};return Object.entries(g).forEach(([x,S])=>{h[x]=Ld(S,(0,xi.default)({},R,{theme:m}))}),d(R,h)}),l&&!p&&_.push(R=>{var m;const g=Y0((0,xi.default)({},R,{defaultTheme:r,themeId:t})),h=g==null||(m=g.components)==null||(m=m[l])==null?void 0:m.variants;return Ld({variants:h},(0,xi.default)({},R,{theme:g}))}),v||_.push(o);const L=_.length-F.length;if(Array.isArray(D)&&L>0){const R=new Array(L).fill("");N=[...D,...R],N.raw=[...D.raw,...R]}const I=y(N,..._);return a.muiName&&(I.muiName=a.muiName),I};return y.withConfig&&(B.withConfig=y.withConfig),B}}function CS(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const VO=e=>CS(e)&&e!=="classes",Zr=VO,he=TO({themeId:Js,defaultTheme:e1,rootShouldForwardProp:Zr}),qO=["theme"];function Yce(e){let{theme:t}=e,r=Ee(e,qO);const n=t[Js];return Y.jsx(PF,W({},r,{themeId:n?Js:void 0,theme:n||t}))}const o6=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function KO(e){return nt("MuiSvgIcon",e)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const GO=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],YO=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(r)}`]};return it(i,KO,n)},XO=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ue(r.color)}`],t[`fontSize${ue(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,o,a,s,l,c,u,f,d,b,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),Wg=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,b=Ee(n,GO),p=U.isValidElement(i)&&i.type==="svg",v=W({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p}),w={};u||(w.viewBox=d);const C=YO(v);return Y.jsxs(XO,W({as:s,className:Se(C.root,o),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},w,b,p&&i.props,{ownerState:v,children:[p?i.props.children:i,f?Y.jsx("title",{children:f}):null]}))});Wg.muiName="SvgIcon";function fn(e,t){function r(n,i){return Y.jsx(Wg,W({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=Wg.muiName,U.memo(U.forwardRef(r))}const JO={configure:e=>{ob.configure(e)}},ZO=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ue,createChainedFunction:jg,createSvgIcon:fn,debounce:Xc,deprecatedPropType:iF,isMuiElement:af,ownerDocument:Er,ownerWindow:_i,requirePropFactory:oF,setRef:Ff,unstable_ClassNameGenerator:JO,unstable_useEnhancedEffect:bn,unstable_useId:Za,unsupportedProp:sF,useControlled:ja,useEventCallback:Pr,useForkRef:Vt,useIsFocusVisible:cb},Symbol.toStringTag,{value:"Module"}));function t1(e){return ft}function Vg(e,t){return Vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vg(e,t)}function ES(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vg(e,t)}var MS={exports:{}},si={},PS={exports:{}},AS={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function t(k,$){var P=k.length;k.push($);e:for(;0>>1,A=k[E];if(0>>1;Ei(O,P))Vi(X,O)?(k[E]=X,k[V]=P,E=V):(k[E]=O,k[H]=P,E=H);else if(Vi(X,P))k[E]=X,k[V]=P,E=V;else break e}}return $}function i(k,$){var P=k.sortIndex-$.sortIndex;return P!==0?P:k.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,d=3,b=!1,p=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(k){for(var $=r(c);$!==null;){if($.callback===null)n(c);else if($.startTime<=k)n(c),$.sortIndex=$.expirationTime,t(l,$);else break;$=r(c)}}function B(k){if(v=!1,M(k),!p)if(r(l)!==null)p=!0,S(D);else{var $=r(c);$!==null&&T(B,$.startTime-k)}}function D(k,$){p=!1,v&&(v=!1,C(_),_=-1),b=!0;var P=d;try{for(M($),f=r(l);f!==null&&(!(f.expirationTime>$)||k&&!R());){var E=f.callback;if(typeof E=="function"){f.callback=null,d=f.priorityLevel;var A=E(f.expirationTime<=$);$=e.unstable_now(),typeof A=="function"?f.callback=A:f===r(l)&&n(l),M($)}else n(l);f=r(l)}if(f!==null)var z=!0;else{var H=r(c);H!==null&&T(B,H.startTime-$),z=!1}return z}finally{f=null,d=P,b=!1}}var F=!1,N=null,_=-1,L=5,I=-1;function R(){return!(e.unstable_now()-Ik||125E?(k.sortIndex=P,t(c,k),r(l)===null&&k===r(c)&&(v?(C(_),_=-1):v=!0,T(B,P-E))):(k.sortIndex=A,t(l,k),p||b||(p=!0,S(D))),k},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(k){var $=d;return function(){var P=d;d=$;try{return k.apply(this,arguments)}finally{d=P}}}})(AS);PS.exports=AS;var QO=PS.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var kS=U,ii=QO;function Be(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qg=Object.prototype.hasOwnProperty,eD=/^[: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]*$/,a6={},s6={};function tD(e){return qg.call(s6,e)?!0:qg.call(a6,e)?!1:eD.test(e)?s6[e]=!0:(a6[e]=!0,!1)}function rD(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nD(e,t,r,n){if(t===null||typeof t>"u"||rD(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wn(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Jr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jr[e]=new wn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jr[t]=new wn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jr[e]=new wn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jr[e]=new wn(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){Jr[e]=new wn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jr[e]=new wn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jr[e]=new wn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jr[e]=new wn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jr[e]=new wn(e,5,!1,e.toLowerCase(),null,!1,!1)});var pb=/[\-:]([a-z])/g;function xb(e){return e[1].toUpperCase()}"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(pb,xb);Jr[t]=new wn(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(pb,xb);Jr[t]=new wn(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(pb,xb);Jr[t]=new wn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jr[e]=new wn(e,1,!1,e.toLowerCase(),null,!1,!1)});Jr.xlinkHref=new wn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jr[e]=new wn(e,1,!1,e.toLowerCase(),null,!0,!0)});function mb(e,t,r,n){var i=Jr.hasOwnProperty(t)?Jr[t]:null;(i!==null?i.type!==0:n||!(2s||i[a]!==o[s]){var l=` +`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{am=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ku(e):""}function iD(e){switch(e.tag){case 5:return Ku(e.type);case 16:return Ku("Lazy");case 13:return Ku("Suspense");case 19:return Ku("SuspenseList");case 0:case 2:case 15:return e=sm(e.type,!1),e;case 11:return e=sm(e.type.render,!1),e;case 1:return e=sm(e.type,!0),e;default:return""}}function Xg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case jl:return"Fragment";case zl:return"Portal";case Kg:return"Profiler";case gb:return"StrictMode";case Gg:return"Suspense";case Yg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case TS:return(e.displayName||"Context")+".Consumer";case RS:return(e._context.displayName||"Context")+".Provider";case vb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bb:return t=e.displayName||null,t!==null?t:Xg(e.type)||"Memo";case Ra:t=e._payload,e=e._init;try{return Xg(e(t))}catch{}}return null}function oD(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=t.render,e=e.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 Xg(t);case 8:return t===gb?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function BS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aD(e){var t=BS(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function J0(e){e._valueTracker||(e._valueTracker=aD(e))}function IS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=BS(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function hh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jg(e,t){var r=t.checked;return or({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function c6(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Qa(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function FS(e,t){t=t.checked,t!=null&&mb(e,"checked",t,!1)}function Zg(e,t){FS(e,t);var r=Qa(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qg(e,t.type,r):t.hasOwnProperty("defaultValue")&&Qg(e,t.type,Qa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function u6(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Qg(e,t,r){(t!=="number"||hh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Gu=Array.isArray;function sc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Z0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var sf={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},sD=["Webkit","ms","Moz","O"];Object.keys(sf).forEach(function(e){sD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sf[t]=sf[e]})});function NS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||sf.hasOwnProperty(e)&&sf[e]?(""+t).trim():t+"px"}function zS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=NS(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var lD=or({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 rv(e,t){if(t){if(lD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Be(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Be(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Be(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Be(62))}}function nv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 iv=null;function yb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ov=null,lc=null,cc=null;function h6(e){if(e=T0(e)){if(typeof ov!="function")throw Error(Be(280));var t=e.stateNode;t&&(t=a1(t),ov(e.stateNode,e.type,t))}}function jS(e){lc?cc?cc.push(e):cc=[e]:lc=e}function US(){if(lc){var e=lc,t=cc;if(cc=lc=null,h6(e),t)for(e=0;e>>=0,e===0?32:31-(bD(e)/yD|0)|0}var Q0=64,ed=4194304;function Yu(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=Yu(s):(o&=a,o!==0&&(n=Yu(o)))}else a=r&~i,a!==0?n=Yu(a):o!==0&&(n=Yu(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function _0(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ao(t),e[t]=r}function ED(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=cf),S6=" ",C6=!1;function lC(e,t){switch(e){case"keyup":return ZD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function eL(e,t){switch(e){case"compositionend":return cC(t);case"keypress":return t.which!==32?null:(C6=!0,S6);case"textInput":return e=t.data,e===S6&&C6?null:e;default:return null}}function tL(e,t){if(Ul)return e==="compositionend"||!kb&&lC(e,t)?(e=aC(),zd=Mb=Oa=null,Ul=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=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=A6(r)}}function hC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pC(){for(var e=window,t=hh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=hh(e.document)}return t}function _b(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uL(e){var t=pC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&hC(r.ownerDocument.documentElement,r)){if(n!==null&&_b(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=k6(r,o);var a=k6(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Hl=null,fv=null,ff=null,dv=!1;function _6(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;dv||Hl==null||Hl!==hh(n)||(n=Hl,"selectionStart"in n&&_b(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ff&&Wf(ff,n)||(ff=n,n=yh(fv,"onSelect"),0ql||(e.current=vv[ql],vv[ql]=null,ql--)}function Wt(e,t){ql++,vv[ql]=e.current,e.current=t}var es={},un=cs(es),Tn=cs(!1),Qs=es;function Mc(e,t){var r=e.type.contextTypes;if(!r)return es;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $n(e){return e=e.childContextTypes,e!=null}function Sh(){Yt(Tn),Yt(un)}function O6(e,t,r){if(un.current!==es)throw Error(Be(168));Wt(un,t),Wt(Tn,r)}function CC(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Be(108,oD(e)||"Unknown",i));return or({},r,n)}function Ch(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||es,Qs=un.current,Wt(un,e),Wt(Tn,Tn.current),!0}function D6(e,t,r){var n=e.stateNode;if(!n)throw Error(Be(169));r?(e=CC(e,t,Qs),n.__reactInternalMemoizedMergedChildContext=e,Yt(Tn),Yt(un),Wt(un,e)):Yt(Tn),Wt(Tn,r)}var qo=null,s1=!1,wm=!1;function EC(e){qo===null?qo=[e]:qo.push(e)}function SL(e){s1=!0,EC(e)}function us(){if(!wm&&qo!==null){wm=!0;var e=0,t=zt;try{var r=qo;for(zt=1;e>=a,i-=a,Yo=1<<32-ao(t)+i|r<_?(L=N,N=null):L=N.sibling;var I=d(C,N,M[_],B);if(I===null){N===null&&(N=L);break}e&&N&&I.alternate===null&&t(C,N),y=o(I,y,_),F===null?D=I:F.sibling=I,F=I,N=L}if(_===M.length)return r(C,N),Qt&&_s(C,_),D;if(N===null){for(;__?(L=N,N=null):L=N.sibling;var R=d(C,N,I.value,B);if(R===null){N===null&&(N=L);break}e&&N&&R.alternate===null&&t(C,N),y=o(R,y,_),F===null?D=R:F.sibling=R,F=R,N=L}if(I.done)return r(C,N),Qt&&_s(C,_),D;if(N===null){for(;!I.done;_++,I=M.next())I=f(C,I.value,B),I!==null&&(y=o(I,y,_),F===null?D=I:F.sibling=I,F=I);return Qt&&_s(C,_),D}for(N=n(C,N);!I.done;_++,I=M.next())I=b(N,C,_,I.value,B),I!==null&&(e&&I.alternate!==null&&N.delete(I.key===null?_:I.key),y=o(I,y,_),F===null?D=I:F.sibling=I,F=I);return e&&N.forEach(function(m){return t(C,m)}),Qt&&_s(C,_),D}function w(C,y,M,B){if(typeof M=="object"&&M!==null&&M.type===jl&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case X0:e:{for(var D=M.key,F=y;F!==null;){if(F.key===D){if(D=M.type,D===jl){if(F.tag===7){r(C,F.sibling),y=i(F,M.props.children),y.return=C,C=y;break e}}else if(F.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Ra&&W6(D)===F.type){r(C,F.sibling),y=i(F,M.props),y.ref=Cu(C,F,M),y.return=C,C=y;break e}r(C,F);break}else t(C,F);F=F.sibling}M.type===jl?(y=Vs(M.props.children,C.mode,B,M.key),y.return=C,C=y):(B=Gd(M.type,M.key,M.props,null,C.mode,B),B.ref=Cu(C,y,M),B.return=C,C=B)}return a(C);case zl:e:{for(F=M.key;y!==null;){if(y.key===F)if(y.tag===4&&y.stateNode.containerInfo===M.containerInfo&&y.stateNode.implementation===M.implementation){r(C,y.sibling),y=i(y,M.children||[]),y.return=C,C=y;break e}else{r(C,y);break}else t(C,y);y=y.sibling}y=_m(M,C.mode,B),y.return=C,C=y}return a(C);case Ra:return F=M._init,w(C,y,F(M._payload),B)}if(Gu(M))return p(C,y,M,B);if(vu(M))return v(C,y,M,B);sd(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,y!==null&&y.tag===6?(r(C,y.sibling),y=i(y,M),y.return=C,C=y):(r(C,y),y=km(M,C.mode,B),y.return=C,C=y),a(C)):r(C,y)}return w}var Ac=$C(!0),BC=$C(!1),$0={},Po=cs($0),Gf=cs($0),Yf=cs($0);function Os(e){if(e===$0)throw Error(Be(174));return e}function Lb(e,t){switch(Wt(Yf,t),Wt(Gf,e),Wt(Po,$0),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tv(t,e)}Yt(Po),Wt(Po,t)}function kc(){Yt(Po),Yt(Gf),Yt(Yf)}function IC(e){Os(Yf.current);var t=Os(Po.current),r=tv(t,e.type);t!==r&&(Wt(Gf,e),Wt(Po,r))}function Nb(e){Gf.current===e&&(Yt(Po),Yt(Gf))}var rr=cs(0);function _h(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sm=[];function zb(){for(var e=0;er?r:4,e(!0);var n=Cm.transition;Cm.transition={};try{e(!1),t()}finally{zt=r,Cm.transition=n}}function XC(){return $i().memoizedState}function PL(e,t,r){var n=Ga(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},JC(e))ZC(t,r);else if(r=kC(e,t,r,n),r!==null){var i=vn();so(r,e,n,i),QC(r,t,n)}}function AL(e,t,r){var n=Ga(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(JC(e))ZC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,lo(s,a)){var l=t.interleaved;l===null?(i.next=i,Ob(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=kC(e,t,i,n),r!==null&&(i=vn(),so(r,e,n,i),QC(r,t,n))}}function JC(e){var t=e.alternate;return e===nr||t!==null&&t===nr}function ZC(e,t){df=Rh=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function QC(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Sb(e,r)}}var Th={readContext:Ti,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},kL={readContext:Ti,useCallback:function(e,t){return mo().memoizedState=[e,t===void 0?null:t],e},useContext:Ti,useEffect:q6,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Wd(4194308,4,VC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Wd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wd(4,2,e,t)},useMemo:function(e,t){var r=mo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=mo();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=PL.bind(null,nr,e),[n.memoizedState,e]},useRef:function(e){var t=mo();return e={current:e},t.memoizedState=e},useState:V6,useDebugValue:Vb,useDeferredValue:function(e){return mo().memoizedState=e},useTransition:function(){var e=V6(!1),t=e[0];return e=ML.bind(null,e[1]),mo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=nr,i=mo();if(Qt){if(r===void 0)throw Error(Be(407));r=r()}else{if(r=t(),Or===null)throw Error(Be(349));tl&30||DC(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,q6(NC.bind(null,n,o,e),[e]),n.flags|=2048,Zf(9,LC.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=mo(),t=Or.identifierPrefix;if(Qt){var r=Xo,n=Yo;r=(n&~(1<<32-ao(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Xf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[yo]=t,e[Kf]=n,lE(e,t,!1,!1),t.stateNode=e;e:{switch(a=nv(r,n),r){case"dialog":Gt("cancel",e),Gt("close",e),i=n;break;case"iframe":case"object":case"embed":Gt("load",e),i=n;break;case"video":case"audio":for(i=0;iRc&&(t.flags|=128,n=!0,Eu(o,!1),t.lanes=4194304)}else{if(!n)if(e=_h(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Eu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Qt)return rn(t),null}else 2*gr()-o.renderingStartTime>Rc&&r!==1073741824&&(t.flags|=128,n=!0,Eu(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=gr(),t.sibling=null,r=rr.current,Wt(rr,n?r&1|2:r&1),t):(rn(t),null);case 22:case 23:return Jb(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Vn&1073741824&&(rn(t),t.subtreeFlags&6&&(t.flags|=8192)):rn(t),null;case 24:return null;case 25:return null}throw Error(Be(156,t.tag))}function OL(e,t){switch(Tb(t),t.tag){case 1:return $n(t.type)&&Sh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kc(),Yt(Tn),Yt(un),zb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nb(t),null;case 13:if(Yt(rr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Be(340));Pc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(rr),null;case 4:return kc(),null;case 10:return Fb(t.type._context),null;case 22:case 23:return Jb(),null;case 24:return null;default:return null}}var cd=!1,an=!1,DL=typeof WeakSet=="function"?WeakSet:Set,et=null;function Xl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){cr(e,t,n)}else r.current=null}function Rv(e,t,r){try{r()}catch(n){cr(e,t,n)}}var t8=!1;function LL(e,t){if(hv=vh,e=pC(),_b(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var b;f!==r||i!==0&&f.nodeType!==3||(s=a+i),f!==o||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(b=f.firstChild)!==null;)d=f,f=b;for(;;){if(f===e)break t;if(d===r&&++c===i&&(s=a),d===o&&++u===n&&(l=a),(b=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=b}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(pv={focusedElem:e,selectionRange:r},vh=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){t=et;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,w=p.memoizedState,C=t.stateNode,y=C.getSnapshotBeforeUpdate(t.elementType===t.type?v:Xi(t.type,v),w);C.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Be(163))}}catch(B){cr(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}return p=t8,t8=!1,p}function hf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Rv(t,r,o)}i=i.next}while(i!==n)}}function u1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Tv(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function fE(e){var t=e.alternate;t!==null&&(e.alternate=null,fE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yo],delete t[Kf],delete t[gv],delete t[yL],delete t[wL])),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 dE(e){return e.tag===5||e.tag===3||e.tag===4}function r8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $v(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=wh));else if(n!==4&&(e=e.child,e!==null))for($v(e,t,r),e=e.sibling;e!==null;)$v(e,t,r),e=e.sibling}function Bv(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Bv(e,t,r),e=e.sibling;e!==null;)Bv(e,t,r),e=e.sibling}var Kr=null,Zi=!1;function Ca(e,t,r){for(r=r.child;r!==null;)hE(e,t,r),r=r.sibling}function hE(e,t,r){if(Mo&&typeof Mo.onCommitFiberUnmount=="function")try{Mo.onCommitFiberUnmount(r1,r)}catch{}switch(r.tag){case 5:an||Xl(r,t);case 6:var n=Kr,i=Zi;Kr=null,Ca(e,t,r),Kr=n,Zi=i,Kr!==null&&(Zi?(e=Kr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Kr.removeChild(r.stateNode));break;case 18:Kr!==null&&(Zi?(e=Kr,r=r.stateNode,e.nodeType===8?ym(e.parentNode,r):e.nodeType===1&&ym(e,r),Uf(e)):ym(Kr,r.stateNode));break;case 4:n=Kr,i=Zi,Kr=r.stateNode.containerInfo,Zi=!0,Ca(e,t,r),Kr=n,Zi=i;break;case 0:case 11:case 14:case 15:if(!an&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Rv(r,t,a),i=i.next}while(i!==n)}Ca(e,t,r);break;case 1:if(!an&&(Xl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){cr(r,t,s)}Ca(e,t,r);break;case 21:Ca(e,t,r);break;case 22:r.mode&1?(an=(n=an)||r.memoizedState!==null,Ca(e,t,r),an=n):Ca(e,t,r);break;default:Ca(e,t,r)}}function n8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new DL),t.forEach(function(n){var i=KL.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function qi(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~o}if(n=i,n=gr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*zL(n/1960))-n,10e?16:e,Da===null)var n=!1;else{if(e=Da,Da=null,Ih=0,It&6)throw Error(Be(331));var i=It;for(It|=4,et=e.current;et!==null;){var o=et,a=o.child;if(et.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lgr()-Yb?Ws(e,0):Gb|=r),Bn(e,t)}function wE(e,t){t===0&&(e.mode&1?(t=ed,ed<<=1,!(ed&130023424)&&(ed=4194304)):t=1);var r=vn();e=ca(e,t),e!==null&&(_0(e,t,r),Bn(e,r))}function qL(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),wE(e,r)}function KL(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Be(314))}n!==null&&n.delete(t),wE(e,r)}var SE;SE=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tn.current)kn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return kn=!1,IL(e,t,r);kn=!!(e.flags&131072)}else kn=!1,Qt&&t.flags&1048576&&MC(t,Mh,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Vd(e,t),e=t.pendingProps;var i=Mc(t,un.current);fc(t,r),i=Ub(null,t,n,e,i,r);var o=Hb();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$n(n)?(o=!0,Ch(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Db(t),i.updater=l1,t.stateNode=i,i._reactInternals=t,Cv(t,n,e,r),t=Pv(null,t,n,!0,o,r)):(t.tag=0,Qt&&o&&Rb(t),hn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Vd(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=YL(n),e=Xi(n,e),i){case 0:t=Mv(null,t,n,e,r);break e;case 1:t=Z6(null,t,n,e,r);break e;case 11:t=X6(null,t,n,e,r);break e;case 14:t=J6(null,t,n,Xi(n.type,e),r);break e}throw Error(Be(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xi(n,i),Mv(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xi(n,i),Z6(e,t,n,i,r);case 3:e:{if(oE(t),e===null)throw Error(Be(387));n=t.pendingProps,o=t.memoizedState,i=o.element,_C(e,t),kh(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=_c(Error(Be(423)),t),t=Q6(e,t,n,r,i);break e}else if(n!==i){i=_c(Error(Be(424)),t),t=Q6(e,t,n,r,i);break e}else for(Qn=Va(t.stateNode.containerInfo.firstChild),ti=t,Qt=!0,eo=null,r=BC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Pc(),n===i){t=ua(e,t,r);break e}hn(e,t,n,r)}t=t.child}return t;case 5:return IC(t),e===null&&yv(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,xv(n,i)?a=null:o!==null&&xv(n,o)&&(t.flags|=32),iE(e,t),hn(e,t,a,r),t.child;case 6:return e===null&&yv(t),null;case 13:return aE(e,t,r);case 4:return Lb(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ac(t,null,n,r):hn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xi(n,i),X6(e,t,n,i,r);case 7:return hn(e,t,t.pendingProps,r),t.child;case 8:return hn(e,t,t.pendingProps.children,r),t.child;case 12:return hn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Wt(Ph,n._currentValue),n._currentValue=a,o!==null)if(lo(o.value,a)){if(o.children===i.children&&!Tn.current){t=ua(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=ta(-1,r&-r),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),wv(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Be(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),wv(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}hn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,fc(t,r),i=Ti(i),n=n(i),t.flags|=1,hn(e,t,n,r),t.child;case 14:return n=t.type,i=Xi(n,t.pendingProps),i=Xi(n.type,i),J6(e,t,n,i,r);case 15:return rE(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xi(n,i),Vd(e,t),t.tag=1,$n(n)?(e=!0,Ch(t)):e=!1,fc(t,r),TC(t,n,i),Cv(t,n,i,r),Pv(null,t,n,!0,e,r);case 19:return sE(e,t,r);case 22:return nE(e,t,r)}throw Error(Be(156,t.tag))};function CE(e,t){return YS(e,t)}function GL(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(e,t,r,n){return new GL(e,t,r,n)}function Qb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YL(e){if(typeof e=="function")return Qb(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vb)return 11;if(e===bb)return 14}return 2}function Ya(e,t){var r=e.alternate;return r===null?(r=Si(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Gd(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")Qb(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case jl:return Vs(r.children,i,o,t);case gb:a=8,i|=8;break;case Kg:return e=Si(12,r,t,i|2),e.elementType=Kg,e.lanes=o,e;case Gg:return e=Si(13,r,t,i),e.elementType=Gg,e.lanes=o,e;case Yg:return e=Si(19,r,t,i),e.elementType=Yg,e.lanes=o,e;case $S:return d1(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case RS:a=10;break e;case TS:a=9;break e;case vb:a=11;break e;case bb:a=14;break e;case Ra:a=16,n=null;break e}throw Error(Be(130,e==null?e:typeof e,""))}return t=Si(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Vs(e,t,r,n){return e=Si(7,e,n,t),e.lanes=r,e}function d1(e,t,r,n){return e=Si(22,e,n,t),e.elementType=$S,e.lanes=r,e.stateNode={isHidden:!1},e}function km(e,t,r){return e=Si(6,e,null,t),e.lanes=r,e}function _m(e,t,r){return t=Si(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XL(e,t,r,n,i){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=cm(0),this.expirationTimes=cm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cm(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function e4(e,t,r,n,i,o,a,s,l){return e=new XL(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Si(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Db(o),e}function JL(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AE)}catch{}}AE(),MS.exports=si;var g1=MS.exports;const Ju=_r(g1),rN=x9({__proto__:null,default:Ju},[g1]),f8={disabled:!1},Dh=mn.createContext(null);var nN=function(t){return t.scrollTop},Zu="unmounted",Ts="exited",$s="entering",Fl="entered",Lv="exiting",ma=function(e){ES(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=i,s=a&&!a.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=Ts,o.appearStatus=$s):l=Fl:n.unmountOnExit||n.mountOnEnter?l=Zu:l=Ts,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Zu?{status:Ts}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==$s&&a!==Fl&&(o=$s):(a===$s||a===Fl)&&(o=Lv)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},r.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===$s){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ju.findDOMNode(this);a&&nN(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ts&&this.setState({status:Zu})},r.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Ju.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!a||f8.disabled){this.safeSetState({status:Fl},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:$s},function(){o.props.onEntering(c,u),o.onTransitionEnd(d,function(){o.safeSetState({status:Fl},function(){o.props.onEntered(c,u)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Ju.findDOMNode(this);if(!o||f8.disabled){this.safeSetState({status:Ts},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Lv},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ts},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Ju.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Zu)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Ee(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return mn.createElement(Dh.Provider,{value:null},typeof a=="function"?a(i,s):mn.cloneElement(mn.Children.only(a),s))},t}(mn.Component);ma.contextType=Dh;ma.propTypes={};function _l(){}ma.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_l,onEntering:_l,onEntered:_l,onExit:_l,onExiting:_l,onExited:_l};ma.UNMOUNTED=Zu;ma.EXITED=Ts;ma.ENTERING=$s;ma.ENTERED=Fl;ma.EXITING=Lv;const i4=ma;function iN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o4(e,t){var r=function(o){return t&&U.isValidElement(o)?t(o):o},n=Object.create(null);return e&&U.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function oN(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),i=[];for(var o in e)o in t?i.length&&(n[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(n[l])for(a=0;ae.scrollTop;function Tc(e,t){var r,n;const{timeout:i,easing:o,style:a={}}=e;return{duration:(r=a.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function fN(e){return nt("MuiPaper",e)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const dN=["className","component","elevation","square","variant"],hN=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return it(o,fN,i)},pN=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return W({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&W({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ct("#fff",o6(t.elevation))}, ${Ct("#fff",o6(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),xN=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=n,c=Ee(n,dN),u=W({},n,{component:o,elevation:a,square:s,variant:l}),f=hN(u);return Y.jsx(pN,W({as:o,ownerState:u,className:Se(f.root,i),ref:r},c))}),ga=xN;function il(e){return typeof e=="string"}function Zl(e,t,r){return e===void 0||il(e)?t:W({},t,{ownerState:W({},t.ownerState,r)})}const mN={disableDefaultClasses:!1},gN=U.createContext(mN);function vN(e){const{disableDefaultClasses:t}=U.useContext(gN);return r=>t?"":e(r)}function Lh(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function kE(e,t,r){return typeof e=="function"?e(t,r):e}function d8(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function _E(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const b=Se(r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),p=W({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=W({},r,i,n);return b.length>0&&(v.className=b),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const a=Lh(W({},i,n)),s=d8(n),l=d8(i),c=t(a),u=Se(c==null?void 0:c.className,r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),f=W({},c==null?void 0:c.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=W({},c,r,l,s);return u.length>0&&(d.className=u),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:c.ref}}const bN=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Nn(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ee(e,bN),s=o?{}:kE(n,i),{props:l,internalRef:c}=_E(W({},a,{externalSlotProps:s})),u=Vt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Zl(r,W({},l,{ref:u}),i)}const yN=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],wN=["component","slots","slotProps"],SN=["component"];function Nv(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:s}=t,l=Ee(t,yN),{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0}}=o,d=Ee(o,wN),b=u[e]||n,p=kE(f[e],i),v=_E(W({className:r},l,{externalForwardedProps:e==="root"?d:void 0,externalSlotProps:p})),{props:{component:w},internalRef:C}=v,y=Ee(v.props,SN),M=Vt(C,p==null?void 0:p.ref,t.ref),B=a?a(y):{},D=W({},i,B),F=e==="root"?w||c:w,N=Zl(b,W({},e==="root"&&!c&&!u[e]&&s,e!=="root"&&!u[e]&&s,y,F&&{as:F},{ref:M}),D);return Object.keys(B).forEach(_=>{delete N[_]}),[b,N]}function CN(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=U.useState(!1),d=Se(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),b={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},p=Se(r.child,u&&r.childLeaving,n&&r.childPulsate);return!s&&!u&&f(!0),U.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),Y.jsx("span",{className:d,style:b,children:Y.jsx("span",{className:p})})}const gi=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),EN=["center","classes","className"];let v1=e=>e,h8,p8,x8,m8;const zv=550,MN=80,PN=ss(h8||(h8=v1` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),AN=ss(p8||(p8=v1` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),kN=ss(x8||(x8=v1` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),_N=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),RN=he(CN,{name:"MuiTouchRipple",slot:"Ripple"})(m8||(m8=v1` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),gi.rippleVisible,PN,zv,({theme:e})=>e.transitions.easing.easeInOut,gi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,gi.child,gi.childLeaving,AN,zv,({theme:e})=>e.transitions.easing.easeInOut,gi.childPulsate,kN,({theme:e})=>e.transitions.easing.easeInOut),TN=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=n,s=Ee(n,EN),[l,c]=U.useState([]),u=U.useRef(0),f=U.useRef(null);U.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=U.useRef(!1),b=Bs(),p=U.useRef(null),v=U.useRef(null),w=U.useCallback(B=>{const{pulsate:D,rippleX:F,rippleY:N,rippleSize:_,cb:L}=B;c(I=>[...I,Y.jsx(RN,{classes:{ripple:Se(o.ripple,gi.ripple),rippleVisible:Se(o.rippleVisible,gi.rippleVisible),ripplePulsate:Se(o.ripplePulsate,gi.ripplePulsate),child:Se(o.child,gi.child),childLeaving:Se(o.childLeaving,gi.childLeaving),childPulsate:Se(o.childPulsate,gi.childPulsate)},timeout:zv,pulsate:D,rippleX:F,rippleY:N,rippleSize:_},u.current)]),u.current+=1,f.current=L},[o]),C=U.useCallback((B={},D={},F=()=>{})=>{const{pulsate:N=!1,center:_=i||D.pulsate,fakeElement:L=!1}=D;if((B==null?void 0:B.type)==="mousedown"&&d.current){d.current=!1;return}(B==null?void 0:B.type)==="touchstart"&&(d.current=!0);const I=L?null:v.current,R=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let m,g,h;if(_||B===void 0||B.clientX===0&&B.clientY===0||!B.clientX&&!B.touches)m=Math.round(R.width/2),g=Math.round(R.height/2);else{const{clientX:x,clientY:S}=B.touches&&B.touches.length>0?B.touches[0]:B;m=Math.round(x-R.left),g=Math.round(S-R.top)}if(_)h=Math.sqrt((2*R.width**2+R.height**2)/3),h%2===0&&(h+=1);else{const x=Math.max(Math.abs((I?I.clientWidth:0)-m),m)*2+2,S=Math.max(Math.abs((I?I.clientHeight:0)-g),g)*2+2;h=Math.sqrt(x**2+S**2)}B!=null&&B.touches?p.current===null&&(p.current=()=>{w({pulsate:N,rippleX:m,rippleY:g,rippleSize:h,cb:F})},b.start(MN,()=>{p.current&&(p.current(),p.current=null)})):w({pulsate:N,rippleX:m,rippleY:g,rippleSize:h,cb:F})},[i,w,b]),y=U.useCallback(()=>{C({},{pulsate:!0})},[C]),M=U.useCallback((B,D)=>{if(b.clear(),(B==null?void 0:B.type)==="touchend"&&p.current){p.current(),p.current=null,b.start(0,()=>{M(B,D)});return}p.current=null,c(F=>F.length>0?F.slice(1):F),f.current=D},[b]);return U.useImperativeHandle(r,()=>({pulsate:y,start:C,stop:M}),[y,C,M]),Y.jsx(_N,W({className:Se(gi.root,o.root,a),ref:v},s,{children:Y.jsx(uN,{component:null,exit:!0,children:l})}))}),$N=TN;function BN(e){return nt("MuiButtonBase",e)}const IN=tt("MuiButtonBase",["root","disabled","focusVisible"]),FN=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ON=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,a=it({root:["root",t&&"disabled",r&&"focusVisible"]},BN,i);return r&&n&&(a.root+=` ${n}`),a},DN=he("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${IN.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),LN=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:b="a",onBlur:p,onClick:v,onContextMenu:w,onDragLeave:C,onFocus:y,onFocusVisible:M,onKeyDown:B,onKeyUp:D,onMouseDown:F,onMouseLeave:N,onMouseUp:_,onTouchEnd:L,onTouchMove:I,onTouchStart:R,tabIndex:m=0,TouchRippleProps:g,touchRippleRef:h,type:x}=n,S=Ee(n,FN),T=U.useRef(null),k=U.useRef(null),$=Vt(k,h),{isFocusVisibleRef:P,onFocus:E,onBlur:A,ref:z}=cb(),[H,O]=U.useState(!1);c&&H&&O(!1),U.useImperativeHandle(i,()=>({focusVisible:()=>{O(!0),T.current.focus()}}),[]);const[V,X]=U.useState(!1);U.useEffect(()=>{X(!0)},[]);const J=V&&!u&&!c;U.useEffect(()=>{H&&d&&!u&&V&&k.current.pulsate()},[u,d,H,V]);function G(de,Ie,ot=f){return Pr(lt=>(Ie&&Ie(lt),!ot&&k.current&&k.current[de](lt),!0))}const j=G("start",F),q=G("stop",w),K=G("stop",C),Z=G("stop",_),te=G("stop",de=>{H&&de.preventDefault(),N&&N(de)}),Q=G("start",R),oe=G("stop",L),me=G("stop",I),se=G("stop",de=>{A(de),P.current===!1&&O(!1),p&&p(de)},!1),ye=Pr(de=>{T.current||(T.current=de.currentTarget),E(de),P.current===!0&&(O(!0),M&&M(de)),y&&y(de)}),Re=()=>{const de=T.current;return l&&l!=="button"&&!(de.tagName==="A"&&de.href)},we=U.useRef(!1),He=Pr(de=>{d&&!we.current&&H&&k.current&&de.key===" "&&(we.current=!0,k.current.stop(de,()=>{k.current.start(de)})),de.target===de.currentTarget&&Re()&&de.key===" "&&de.preventDefault(),B&&B(de),de.target===de.currentTarget&&Re()&&de.key==="Enter"&&!c&&(de.preventDefault(),v&&v(de))}),Ue=Pr(de=>{d&&de.key===" "&&k.current&&H&&!de.defaultPrevented&&(we.current=!1,k.current.stop(de,()=>{k.current.pulsate(de)})),D&&D(de),v&&de.target===de.currentTarget&&Re()&&de.key===" "&&!de.defaultPrevented&&v(de)});let Me=l;Me==="button"&&(S.href||S.to)&&(Me=b);const Ze={};Me==="button"?(Ze.type=x===void 0?"button":x,Ze.disabled=c):(!S.href&&!S.to&&(Ze.role="button"),c&&(Ze["aria-disabled"]=c));const Je=Vt(r,z,T),Ne=W({},n,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:d,tabIndex:m,focusVisible:H}),De=ON(Ne);return Y.jsxs(DN,W({as:Me,className:Se(De.root,s),ownerState:Ne,onBlur:se,onClick:v,onContextMenu:q,onFocus:ye,onKeyDown:He,onKeyUp:Ue,onMouseDown:j,onMouseLeave:te,onMouseUp:Z,onDragLeave:K,onTouchEnd:oe,onTouchMove:me,onTouchStart:Q,ref:Je,tabIndex:c?-1:m,type:x},Ze,S,{children:[a,J?Y.jsx($N,W({ref:$,center:o},g)):null]}))}),co=LN;function NN(e){return nt("MuiAlert",e)}const zN=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),g8=zN;function jN(e){return nt("MuiIconButton",e)}const UN=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),HN=["edge","children","className","color","disabled","disableFocusRipple","size"],WN=e=>{const{classes:t,disabled:r,color:n,edge:i,size:o}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${ue(n)}`,i&&`edge${ue(i)}`,`size${ue(o)}`]};return it(a,jN,t)},VN=he(co,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ue(r.color)}`],r.edge&&t[`edge${ue(r.edge)}`],t[`size${ue(r.size)}`]]}})(({theme:e,ownerState:t})=>W({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return W({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&W({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":W({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${UN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),qN=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=n,f=Ee(n,HN),d=W({},n,{edge:i,color:s,disabled:l,disableFocusRipple:c,size:u}),b=WN(d);return Y.jsx(VN,W({className:Se(b.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:r},f,{ownerState:d,children:o}))}),Ls=qN,KN=fn(Y.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),GN=fn(Y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),YN=fn(Y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),XN=fn(Y.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),RE=fn(Y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),JN=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],ZN=t1(),QN=e=>{const{variant:t,color:r,severity:n,classes:i}=e,o={root:["root",`color${ue(r||n)}`,`${t}${ue(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return it(o,NN,i)},ez=he(ga,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ue(r.color||r.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?uh:fh,r=e.palette.mode==="light"?fh:uh;return W({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,n])=>n.main&&n.light).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${g8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,n])=>n.main&&n.light).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${g8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,n])=>n.main&&n.dark).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:W({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)})}))]})}),tz=he("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),rz=he("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),v8=he("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),b8={success:Y.jsx(KN,{fontSize:"inherit"}),warning:Y.jsx(GN,{fontSize:"inherit"}),error:Y.jsx(YN,{fontSize:"inherit"}),info:Y.jsx(XN,{fontSize:"inherit"})},nz=U.forwardRef(function(t,r){const n=ZN({props:t,name:"MuiAlert"}),{action:i,children:o,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:d=b8,onClose:b,role:p="alert",severity:v="success",slotProps:w={},slots:C={},variant:y="standard"}=n,M=Ee(n,JN),B=W({},n,{color:l,severity:v,variant:y,colorSeverity:l||v}),D=QN(B),F={slots:W({closeButton:c.CloseButton,closeIcon:c.CloseIcon},C),slotProps:W({},u,w)},[N,_]=Nv("closeButton",{elementType:Ls,externalForwardedProps:F,ownerState:B}),[L,I]=Nv("closeIcon",{elementType:RE,externalForwardedProps:F,ownerState:B});return Y.jsxs(ez,W({role:p,elevation:0,ownerState:B,className:Se(D.root,a),ref:r},M,{children:[f!==!1?Y.jsx(tz,{ownerState:B,className:D.icon,children:f||d[v]||b8[v]}):null,Y.jsx(rz,{ownerState:B,className:D.message,children:o}),i!=null?Y.jsx(v8,{ownerState:B,className:D.action,children:i}):null,i==null&&b?Y.jsx(v8,{ownerState:B,className:D.action,children:Y.jsx(N,W({size:"small","aria-label":s,title:s,color:"inherit",onClick:b},_,{children:Y.jsx(L,W({fontSize:"small"},I))}))}):null]}))}),Xce=nz;function iz(e){return nt("MuiTypography",e)}tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const oz=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],az=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${ue(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return it(s,iz,a)},sz=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ue(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>W({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lz={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cz=e=>lz[e]||e,uz=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTypography"}),i=cz(n.color),o=P0(W({},n,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:d="body1",variantMapping:b=y8}=o,p=Ee(o,oz),v=W({},o,{align:a,color:i,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:d,variantMapping:b}),w=l||(f?"p":b[d]||y8[d])||"span",C=az(v);return Y.jsx(sz,W({as:w,ref:r,ownerState:v,className:Se(C.root,s)},p))}),La=uz;function fz(e){return nt("MuiAppBar",e)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const dz=["className","color","enableColorOnDark","position"],hz=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${ue(t)}`,`position${ue(r)}`]};return it(i,fz,n)},dd=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,pz=he(ga,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ue(r.position)}`],t[`color${ue(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return W({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&W({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&W({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&W({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:dd(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:dd(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:dd(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:dd(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),xz=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=n,l=Ee(n,dz),c=W({},n,{color:o,position:s,enableColorOnDark:a}),u=hz(c);return Y.jsx(pz,W({square:!0,component:"header",ownerState:c,elevation:4,className:Se(u.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),Jce=xz;function mz(e){const{badgeContent:t,invisible:r=!1,max:n=99,showZero:i=!1}=e,o=ub({badgeContent:t,max:n});let a=r;r===!1&&t===0&&!i&&(a=!0);const{badgeContent:s,max:l=n}=a?o:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}const TE="base";function gz(e){return`${TE}--${e}`}function vz(e,t){return`${TE}-${e}-${t}`}function $E(e,t){const r=Zw[t];return r?gz(r):vz(e,t)}function bz(e,t){const r={};return t.forEach(n=>{r[n]=$E(e,n)}),r}function w8(e){return e.substring(2).toLowerCase()}function yz(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Vt(t.ref,s),f=Pr(p=>{const v=c.current;c.current=!1;const w=Er(s.current);if(!l.current||!s.current||"clientX"in p&&yz(p,w))return;if(a.current){a.current=!1;return}let C;p.composedPath?C=p.composedPath().indexOf(s.current)>-1:C=!w.documentElement.contains(p.target)||s.current.contains(p.target),!C&&(r||!v)&&i(p)}),d=p=>v=>{c.current=!0;const w=t.props[p];w&&w(v)},b={ref:u};return o!==!1&&(b[o]=d(o)),U.useEffect(()=>{if(o!==!1){const p=w8(o),v=Er(s.current),w=()=>{a.current=!0};return v.addEventListener(p,f),v.addEventListener("touchmove",w),()=>{v.removeEventListener(p,f),v.removeEventListener("touchmove",w)}}},[f,o]),n!==!1&&(b[n]=d(n)),U.useEffect(()=>{if(n!==!1){const p=w8(n),v=Er(s.current);return v.addEventListener(p,f),()=>{v.removeEventListener(p,f)}}},[f,n]),Y.jsx(U.Fragment,{children:U.cloneElement(t,b)})}const Sz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Cz(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Ez(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Mz(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ez(e))}function Pz(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sz)).forEach((n,i)=>{const o=Cz(n);o===-1||!Mz(n)||(o===0?t.push(n):r.push({documentOrder:i,tabIndex:o,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function Az(){return!0}function kz(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:o=Pz,isEnabled:a=Az,open:s}=e,l=U.useRef(!1),c=U.useRef(null),u=U.useRef(null),f=U.useRef(null),d=U.useRef(null),b=U.useRef(!1),p=U.useRef(null),v=Vt(t.ref,p),w=U.useRef(null);U.useEffect(()=>{!s||!p.current||(b.current=!r)},[r,s]),U.useEffect(()=>{if(!s||!p.current)return;const M=Er(p.current);return p.current.contains(M.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),b.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),U.useEffect(()=>{if(!s||!p.current)return;const M=Er(p.current),B=N=>{w.current=N,!(n||!a()||N.key!=="Tab")&&M.activeElement===p.current&&N.shiftKey&&(l.current=!0,u.current&&u.current.focus())},D=()=>{const N=p.current;if(N===null)return;if(!M.hasFocus()||!a()||l.current){l.current=!1;return}if(N.contains(M.activeElement)||n&&M.activeElement!==c.current&&M.activeElement!==u.current)return;if(M.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!b.current)return;let _=[];if((M.activeElement===c.current||M.activeElement===u.current)&&(_=o(p.current)),_.length>0){var L,I;const R=!!((L=w.current)!=null&&L.shiftKey&&((I=w.current)==null?void 0:I.key)==="Tab"),m=_[0],g=_[_.length-1];typeof m!="string"&&typeof g!="string"&&(R?g.focus():m.focus())}else N.focus()};M.addEventListener("focusin",D),M.addEventListener("keydown",B,!0);const F=setInterval(()=>{M.activeElement&&M.activeElement.tagName==="BODY"&&D()},50);return()=>{clearInterval(F),M.removeEventListener("focusin",D),M.removeEventListener("keydown",B,!0)}},[r,n,i,a,s,o]);const C=M=>{f.current===null&&(f.current=M.relatedTarget),b.current=!0,d.current=M.target;const B=t.props.onFocus;B&&B(M)},y=M=>{f.current===null&&(f.current=M.relatedTarget),b.current=!0};return Y.jsxs(U.Fragment,{children:[Y.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),U.cloneElement(t,{ref:v,onFocus:C}),Y.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}function _z(e){return typeof e=="function"?e():e}const BE=U.forwardRef(function(t,r){const{children:n,container:i,disablePortal:o=!1}=t,[a,s]=U.useState(null),l=Vt(U.isValidElement(n)?n.ref:null,r);if(bn(()=>{o||s(_z(i)||document.body)},[i,o]),bn(()=>{if(a&&!o)return Ff(r,a),()=>{Ff(r,null)}},[r,a,o]),o){if(U.isValidElement(n)){const c={ref:l};return U.cloneElement(n,c)}return Y.jsx(U.Fragment,{children:n})}return Y.jsx(U.Fragment,{children:a&&g1.createPortal(n,a)})});function Rz(e){const t=Er(e);return t.body===e?_i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function mf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function S8(e){return parseInt(_i(e).getComputedStyle(e).paddingRight,10)||0}function Tz(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function C8(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!Tz(a);s&&l&&mf(a,i)})}function Rm(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function $z(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Rz(n)){const a=lS(Er(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${S8(n)+a}px`;const s=Er(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${S8(l)+a}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Er(n).body;else{const a=n.parentElement,s=_i(n);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function Bz(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Iz{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&mf(t.modalRef,!1);const i=Bz(r);C8(r,t.mount,t.modalRef,i,!0);const o=Rm(this.containers,a=>a.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Rm(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=$z(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Rm(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&mf(t.modalRef,r),C8(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&mf(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Fz(e){return typeof e=="function"?e():e}function Oz(e){return e?e.props.hasOwnProperty("in"):!1}const Dz=new Iz;function Lz(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Dz,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,d=U.useRef({}),b=U.useRef(null),p=U.useRef(null),v=Vt(p,f),[w,C]=U.useState(!u),y=Oz(l);let M=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(M=!1);const B=()=>Er(b.current),D=()=>(d.current.modalRef=p.current,d.current.mount=b.current,d.current),F=()=>{i.mount(D(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},N=Pr(()=>{const S=Fz(t)||B().body;i.add(D(),S),p.current&&F()}),_=U.useCallback(()=>i.isTopModal(D()),[i]),L=Pr(S=>{b.current=S,S&&(u&&_()?F():p.current&&mf(p.current,M))}),I=U.useCallback(()=>{i.remove(D(),M)},[M,i]);U.useEffect(()=>()=>{I()},[I]),U.useEffect(()=>{u?N():(!y||!o)&&I()},[u,I,y,o,N]);const R=S=>T=>{var k;(k=S.onKeyDown)==null||k.call(S,T),!(T.key!=="Escape"||T.which===229||!_())&&(r||(T.stopPropagation(),c&&c(T,"escapeKeyDown")))},m=S=>T=>{var k;(k=S.onClick)==null||k.call(S,T),T.target===T.currentTarget&&c&&c(T,"backdropClick")};return{getRootProps:(S={})=>{const T=Lh(e);delete T.onTransitionEnter,delete T.onTransitionExited;const k=W({},T,S);return W({role:"presentation"},k,{onKeyDown:R(k),ref:v})},getBackdropProps:(S={})=>{const T=S;return W({"aria-hidden":!0},T,{onClick:m(T),open:u})},getTransitionProps:()=>{const S=()=>{C(!1),a&&a()},T=()=>{C(!0),s&&s(),o&&I()};return{onEnter:jg(S,l==null?void 0:l.props.onEnter),onExited:jg(T,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:L,isTopModal:_,exited:w,hasTransition:y}}var In="top",Bi="bottom",Ii="right",Fn="left",l4="auto",B0=[In,Bi,Ii,Fn],$c="start",e0="end",Nz="clippingParents",IE="viewport",Pu="popper",zz="reference",E8=B0.reduce(function(e,t){return e.concat([t+"-"+$c,t+"-"+e0])},[]),FE=[].concat(B0,[l4]).reduce(function(e,t){return e.concat([t,t+"-"+$c,t+"-"+e0])},[]),jz="beforeRead",Uz="read",Hz="afterRead",Wz="beforeMain",Vz="main",qz="afterMain",Kz="beforeWrite",Gz="write",Yz="afterWrite",Xz=[jz,Uz,Hz,Wz,Vz,qz,Kz,Gz,Yz];function To(e){return e?(e.nodeName||"").toLowerCase():null}function oi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ol(e){var t=oi(e).Element;return e instanceof t||e instanceof Element}function Ai(e){var t=oi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function c4(e){if(typeof ShadowRoot>"u")return!1;var t=oi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Jz(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!Ai(o)||!To(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Zz(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!Ai(i)||!To(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Qz={name:"applyStyles",enabled:!0,phase:"write",fn:Jz,effect:Zz,requires:["computeStyles"]};function Ao(e){return e.split("-")[0]}var qs=Math.max,Nh=Math.min,Bc=Math.round;function jv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function OE(){return!/^((?!chrome|android).)*safari/i.test(jv())}function Ic(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Ai(e)&&(i=e.offsetWidth>0&&Bc(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Bc(n.height)/e.offsetHeight||1);var a=ol(e)?oi(e):window,s=a.visualViewport,l=!OE()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/i,u=(n.top+(l&&s?s.offsetTop:0))/o,f=n.width/i,d=n.height/o;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function u4(e){var t=Ic(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function DE(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&c4(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function fa(e){return oi(e).getComputedStyle(e)}function ej(e){return["table","td","th"].indexOf(To(e))>=0}function fs(e){return((ol(e)?e.ownerDocument:e.document)||window.document).documentElement}function b1(e){return To(e)==="html"?e:e.assignedSlot||e.parentNode||(c4(e)?e.host:null)||fs(e)}function M8(e){return!Ai(e)||fa(e).position==="fixed"?null:e.offsetParent}function tj(e){var t=/firefox/i.test(jv()),r=/Trident/i.test(jv());if(r&&Ai(e)){var n=fa(e);if(n.position==="fixed")return null}var i=b1(e);for(c4(i)&&(i=i.host);Ai(i)&&["html","body"].indexOf(To(i))<0;){var o=fa(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function I0(e){for(var t=oi(e),r=M8(e);r&&ej(r)&&fa(r).position==="static";)r=M8(r);return r&&(To(r)==="html"||To(r)==="body"&&fa(r).position==="static")?t:r||tj(e)||t}function f4(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gf(e,t,r){return qs(e,Nh(t,r))}function rj(e,t,r){var n=gf(e,t,r);return n>r?r:n}function LE(){return{top:0,right:0,bottom:0,left:0}}function NE(e){return Object.assign({},LE(),e)}function zE(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var nj=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,NE(typeof t!="number"?t:zE(t,B0))};function ij(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Ao(r.placement),l=f4(s),c=[Fn,Ii].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var f=nj(i.padding,r),d=u4(o),b=l==="y"?In:Fn,p=l==="y"?Bi:Ii,v=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],w=a[l]-r.rects.reference[l],C=I0(o),y=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,M=v/2-w/2,B=f[b],D=y-d[u]-f[p],F=y/2-d[u]/2+M,N=gf(B,F,D),_=l;r.modifiersData[n]=(t={},t[_]=N,t.centerOffset=N-F,t)}}function oj(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||DE(t.elements.popper,i)&&(t.elements.arrow=i))}const aj={name:"arrow",enabled:!0,phase:"main",fn:ij,effect:oj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fc(e){return e.split("-")[1]}var sj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lj(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Bc(r*i)/i||0,y:Bc(n*i)/i||0}}function P8(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,b=d===void 0?0:d,p=a.y,v=p===void 0?0:p,w=typeof u=="function"?u({x:b,y:v}):{x:b,y:v};b=w.x,v=w.y;var C=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),M=Fn,B=In,D=window;if(c){var F=I0(r),N="clientHeight",_="clientWidth";if(F===oi(r)&&(F=fs(r),fa(F).position!=="static"&&s==="absolute"&&(N="scrollHeight",_="scrollWidth")),F=F,i===In||(i===Fn||i===Ii)&&o===e0){B=Bi;var L=f&&F===D&&D.visualViewport?D.visualViewport.height:F[N];v-=L-n.height,v*=l?1:-1}if(i===Fn||(i===In||i===Bi)&&o===e0){M=Ii;var I=f&&F===D&&D.visualViewport?D.visualViewport.width:F[_];b-=I-n.width,b*=l?1:-1}}var R=Object.assign({position:s},c&&sj),m=u===!0?lj({x:b,y:v},oi(r)):{x:b,y:v};if(b=m.x,v=m.y,l){var g;return Object.assign({},R,(g={},g[B]=y?"0":"",g[M]=C?"0":"",g.transform=(D.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",g))}return Object.assign({},R,(t={},t[B]=y?v+"px":"",t[M]=C?b+"px":"",t.transform="",t))}function cj(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Ao(t.placement),variation:Fc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,P8(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,P8(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const uj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cj,data:{}};var hd={passive:!0};function fj(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,l=oi(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",r.update,hd)}),s&&l.addEventListener("resize",r.update,hd),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",r.update,hd)}),s&&l.removeEventListener("resize",r.update,hd)}}const dj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fj,data:{}};var hj={left:"right",right:"left",bottom:"top",top:"bottom"};function Yd(e){return e.replace(/left|right|bottom|top/g,function(t){return hj[t]})}var pj={start:"end",end:"start"};function A8(e){return e.replace(/start|end/g,function(t){return pj[t]})}function d4(e){var t=oi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function h4(e){return Ic(fs(e)).left+d4(e).scrollLeft}function xj(e,t){var r=oi(e),n=fs(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=OE();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+h4(e),y:l}}function mj(e){var t,r=fs(e),n=d4(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=qs(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=qs(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+h4(e),l=-n.scrollTop;return fa(i||r).direction==="rtl"&&(s+=qs(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function p4(e){var t=fa(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function jE(e){return["html","body","#document"].indexOf(To(e))>=0?e.ownerDocument.body:Ai(e)&&p4(e)?e:jE(b1(e))}function vf(e,t){var r;t===void 0&&(t=[]);var n=jE(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=oi(n),a=i?[o].concat(o.visualViewport||[],p4(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(vf(b1(a)))}function Uv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gj(e,t){var r=Ic(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function k8(e,t,r){return t===IE?Uv(xj(e,r)):ol(t)?gj(t,r):Uv(mj(fs(e)))}function vj(e){var t=vf(b1(e)),r=["absolute","fixed"].indexOf(fa(e).position)>=0,n=r&&Ai(e)?I0(e):e;return ol(n)?t.filter(function(i){return ol(i)&&DE(i,n)&&To(i)!=="body"}):[]}function bj(e,t,r,n){var i=t==="clippingParents"?vj(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(l,c){var u=k8(e,c,n);return l.top=qs(u.top,l.top),l.right=Nh(u.right,l.right),l.bottom=Nh(u.bottom,l.bottom),l.left=qs(u.left,l.left),l},k8(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function UE(e){var t=e.reference,r=e.element,n=e.placement,i=n?Ao(n):null,o=n?Fc(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case In:l={x:a,y:t.y-r.height};break;case Bi:l={x:a,y:t.y+t.height};break;case Ii:l={x:t.x+t.width,y:s};break;case Fn:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?f4(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case $c:l[c]=l[c]-(t[u]/2-r[u]/2);break;case e0:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function t0(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,l=s===void 0?Nz:s,c=r.rootBoundary,u=c===void 0?IE:c,f=r.elementContext,d=f===void 0?Pu:f,b=r.altBoundary,p=b===void 0?!1:b,v=r.padding,w=v===void 0?0:v,C=NE(typeof w!="number"?w:zE(w,B0)),y=d===Pu?zz:Pu,M=e.rects.popper,B=e.elements[p?y:d],D=bj(ol(B)?B:B.contextElement||fs(e.elements.popper),l,u,a),F=Ic(e.elements.reference),N=UE({reference:F,element:M,strategy:"absolute",placement:i}),_=Uv(Object.assign({},M,N)),L=d===Pu?_:F,I={top:D.top-L.top+C.top,bottom:L.bottom-D.bottom+C.bottom,left:D.left-L.left+C.left,right:L.right-D.right+C.right},R=e.modifiersData.offset;if(d===Pu&&R){var m=R[i];Object.keys(I).forEach(function(g){var h=[Ii,Bi].indexOf(g)>=0?1:-1,x=[In,Bi].indexOf(g)>=0?"y":"x";I[g]+=m[x]*h})}return I}function yj(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?FE:l,u=Fc(n),f=u?s?E8:E8.filter(function(p){return Fc(p)===u}):B0,d=f.filter(function(p){return c.indexOf(p)>=0});d.length===0&&(d=f);var b=d.reduce(function(p,v){return p[v]=t0(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[Ao(v)],p},{});return Object.keys(b).sort(function(p,v){return b[p]-b[v]})}function wj(e){if(Ao(e)===l4)return[];var t=Yd(e);return[A8(e),t,A8(t)]}function Sj(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,b=r.flipVariations,p=b===void 0?!0:b,v=r.allowedAutoPlacements,w=t.options.placement,C=Ao(w),y=C===w,M=l||(y||!p?[Yd(w)]:wj(w)),B=[w].concat(M).reduce(function(H,O){return H.concat(Ao(O)===l4?yj(t,{placement:O,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):O)},[]),D=t.rects.reference,F=t.rects.popper,N=new Map,_=!0,L=B[0],I=0;I=0,x=h?"width":"height",S=t0(t,{placement:R,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),T=h?g?Ii:Fn:g?Bi:In;D[x]>F[x]&&(T=Yd(T));var k=Yd(T),$=[];if(o&&$.push(S[m]<=0),s&&$.push(S[T]<=0,S[k]<=0),$.every(function(H){return H})){L=R,_=!1;break}N.set(R,$)}if(_)for(var P=p?3:1,E=function(O){var V=B.find(function(X){var J=N.get(X);if(J)return J.slice(0,O).every(function(G){return G})});if(V)return L=V,"break"},A=P;A>0;A--){var z=E(A);if(z==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}const Cj={name:"flip",enabled:!0,phase:"main",fn:Sj,requiresIfExists:["offset"],data:{_skip:!1}};function _8(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function R8(e){return[In,Ii,Bi,Fn].some(function(t){return e[t]>=0})}function Ej(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=t0(t,{elementContext:"reference"}),s=t0(t,{altBoundary:!0}),l=_8(a,n),c=_8(s,i,o),u=R8(l),f=R8(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Mj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ej};function Pj(e,t,r){var n=Ao(e),i=[Fn,In].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Fn,Ii].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function Aj(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=FE.reduce(function(u,f){return u[f]=Pj(f,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const kj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Aj};function _j(e){var t=e.state,r=e.name;t.modifiersData[r]=UE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Rj={name:"popperOffsets",enabled:!0,phase:"read",fn:_j,data:{}};function Tj(e){return e==="x"?"y":"x"}function $j(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,b=d===void 0?!0:d,p=r.tetherOffset,v=p===void 0?0:p,w=t0(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),C=Ao(t.placement),y=Fc(t.placement),M=!y,B=f4(C),D=Tj(B),F=t.modifiersData.popperOffsets,N=t.rects.reference,_=t.rects.popper,L=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,I=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,m={x:0,y:0};if(F){if(o){var g,h=B==="y"?In:Fn,x=B==="y"?Bi:Ii,S=B==="y"?"height":"width",T=F[B],k=T+w[h],$=T-w[x],P=b?-_[S]/2:0,E=y===$c?N[S]:_[S],A=y===$c?-_[S]:-N[S],z=t.elements.arrow,H=b&&z?u4(z):{width:0,height:0},O=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:LE(),V=O[h],X=O[x],J=gf(0,N[S],H[S]),G=M?N[S]/2-P-J-V-I.mainAxis:E-J-V-I.mainAxis,j=M?-N[S]/2+P+J+X+I.mainAxis:A+J+X+I.mainAxis,q=t.elements.arrow&&I0(t.elements.arrow),K=q?B==="y"?q.clientTop||0:q.clientLeft||0:0,Z=(g=R==null?void 0:R[B])!=null?g:0,te=T+G-Z-K,Q=T+j-Z,oe=gf(b?Nh(k,te):k,T,b?qs($,Q):$);F[B]=oe,m[B]=oe-T}if(s){var me,se=B==="x"?In:Fn,ye=B==="x"?Bi:Ii,Re=F[D],we=D==="y"?"height":"width",He=Re+w[se],Ue=Re-w[ye],Me=[In,Fn].indexOf(C)!==-1,Ze=(me=R==null?void 0:R[D])!=null?me:0,Je=Me?He:Re-N[we]-_[we]-Ze+I.altAxis,Ne=Me?Re+N[we]+_[we]-Ze-I.altAxis:Ue,De=b&&Me?rj(Je,Re,Ne):gf(b?Je:He,Re,b?Ne:Ue);F[D]=De,m[D]=De-Re}t.modifiersData[n]=m}}const Bj={name:"preventOverflow",enabled:!0,phase:"main",fn:$j,requiresIfExists:["offset"]};function Ij(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Fj(e){return e===oi(e)||!Ai(e)?d4(e):Ij(e)}function Oj(e){var t=e.getBoundingClientRect(),r=Bc(t.width)/e.offsetWidth||1,n=Bc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Dj(e,t,r){r===void 0&&(r=!1);var n=Ai(t),i=Ai(t)&&Oj(t),o=fs(t),a=Ic(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((To(t)!=="body"||p4(o))&&(s=Fj(t)),Ai(t)?(l=Ic(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=h4(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Lj(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function Nj(e){var t=Lj(e);return Xz.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function zj(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function jj(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var T8={placement:"bottom",modifiers:[],strategy:"absolute"};function $8(){for(var e=arguments.length,t=new Array(e),r=0;rit({root:["root"]},vN(Vj)),Jj={},Zj=U.forwardRef(function(t,r){var n;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:d,slotProps:b={},slots:p={},TransitionProps:v}=t,w=Ee(t,qj),C=U.useRef(null),y=Vt(C,r),M=U.useRef(null),B=Vt(M,d),D=U.useRef(B);bn(()=>{D.current=B},[B]),U.useImperativeHandle(d,()=>M.current,[]);const F=Gj(u,a),[N,_]=U.useState(F),[L,I]=U.useState(Hv(i));U.useEffect(()=>{M.current&&M.current.forceUpdate()}),U.useEffect(()=>{i&&I(Hv(i))},[i]),bn(()=>{if(!L||!c)return;const x=k=>{_(k.placement)};let S=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:k})=>{x(k)}}];l!=null&&(S=S.concat(l)),f&&f.modifiers!=null&&(S=S.concat(f.modifiers));const T=Wj(L,C.current,W({placement:F},f,{modifiers:S}));return D.current(T),()=>{T.destroy(),D.current(null)}},[L,s,l,c,f,F]);const R={placement:N};v!==null&&(R.TransitionProps=v);const m=Xj(),g=(n=p.root)!=null?n:"div",h=Nn({elementType:g,externalSlotProps:b.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:m.root});return Y.jsx(g,W({},h,{children:typeof o=="function"?o(R):o}))}),Qj=U.forwardRef(function(t,r){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:d=Jj,popperRef:b,style:p,transition:v=!1,slotProps:w={},slots:C={}}=t,y=Ee(t,Kj),[M,B]=U.useState(!0),D=()=>{B(!1)},F=()=>{B(!0)};if(!l&&!u&&(!v||M))return null;let N;if(o)N=o;else if(n){const I=Hv(n);N=I&&Yj(I)?Er(I).body:Er(null).body}const _=!u&&l&&(!v||M)?"none":void 0,L=v?{in:u,onEnter:D,onExited:F}:void 0;return Y.jsx(BE,{disablePortal:s,container:N,children:Y.jsx(Zj,W({anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:r,open:v?!M:u,placement:f,popperOptions:d,popperRef:b,slotProps:w,slots:C},y,{style:W({position:"fixed",top:0,left:0,display:_},p),TransitionProps:L,children:i}))})});function eU(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:i,resumeHideDuration:o}=e,a=Bs();U.useEffect(()=>{if(!i)return;function C(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(n==null||n(y,"escapeKeyDown"))}return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[i,n]);const s=Pr((C,y)=>{n==null||n(C,y)}),l=Pr(C=>{!n||C==null||a.start(C,()=>{s(null,"timeout")})});U.useEffect(()=>(i&&l(t),a.clear),[i,t,l,a]);const c=C=>{n==null||n(C,"clickaway")},u=a.clear,f=U.useCallback(()=>{t!=null&&l(o??t*.5)},[t,o,l]),d=C=>y=>{const M=C.onBlur;M==null||M(y),f()},b=C=>y=>{const M=C.onFocus;M==null||M(y),u()},p=C=>y=>{const M=C.onMouseEnter;M==null||M(y),u()},v=C=>y=>{const M=C.onMouseLeave;M==null||M(y),f()};return U.useEffect(()=>{if(!r&&i)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[r,i,f,u]),{getRootProps:(C={})=>{const y=W({},Lh(e),Lh(C));return W({role:"presentation"},C,y,{onBlur:d(y),onFocus:b(y),onMouseEnter:p(y),onMouseLeave:v(y)})},onClickAway:c}}const tU=["onChange","maxRows","minRows","style","value"];function pd(e){return parseInt(e,10)||0}const rU={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function nU(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const iU=U.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ee(t,tU),{current:c}=U.useRef(s!=null),u=U.useRef(null),f=Vt(r,u),d=U.useRef(null),b=U.useCallback(()=>{const w=u.current,y=_i(w).getComputedStyle(w);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const M=d.current;M.style.width=y.width,M.value=w.value||t.placeholder||"x",M.value.slice(-1)===` +`&&(M.value+=" ");const B=y.boxSizing,D=pd(y.paddingBottom)+pd(y.paddingTop),F=pd(y.borderBottomWidth)+pd(y.borderTopWidth),N=M.scrollHeight;M.value="x";const _=M.scrollHeight;let L=N;o&&(L=Math.max(Number(o)*_,L)),i&&(L=Math.min(Number(i)*_,L)),L=Math.max(L,_);const I=L+(B==="border-box"?D+F:0),R=Math.abs(L-N)<=1;return{outerHeightStyle:I,overflowing:R}},[i,o,t.placeholder]),p=U.useCallback(()=>{const w=b();if(nU(w))return;const C=u.current;C.style.height=`${w.outerHeightStyle}px`,C.style.overflow=w.overflowing?"hidden":""},[b]);bn(()=>{const w=()=>{p()};let C;const y=Xc(w),M=u.current,B=_i(M);B.addEventListener("resize",y);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(w),D.observe(M)),()=>{y.clear(),cancelAnimationFrame(C),B.removeEventListener("resize",y),D&&D.disconnect()}},[b,p]),bn(()=>{p()});const v=w=>{c||p(),n&&n(w)};return Y.jsxs(U.Fragment,{children:[Y.jsx("textarea",W({value:s,onChange:v,ref:f,rows:o,style:a},l)),Y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:W({},rU.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function B8(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function oU(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;r&&(u=u.toLowerCase()),t&&(u=B8(u));const f=u?s.filter(d=>{let b=(o||c)(d);return r&&(b=b.toLowerCase()),t&&(b=B8(b)),i==="start"?b.indexOf(u)===0:b.indexOf(u)>-1}):s;return typeof n=="number"?f.slice(0,n):f}}function xd(e,t){for(let r=0;r{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function lU(e){const{unstable_isActiveElementInListbox:t=sU,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:d=!1,disabled:b,disabledItemsFocusable:p=!1,disableListWrap:v=!1,filterOptions:w=aU,filterSelectedOptions:C=!1,freeSolo:y=!1,getOptionDisabled:M,getOptionKey:B,getOptionLabel:D=ae=>{var ie;return(ie=ae.label)!=null?ie:ae},groupBy:F,handleHomeEndKeys:N=!e.freeSolo,id:_,includeInputInList:L=!1,inputValue:I,isOptionEqualToValue:R=(ae,ie)=>ae===ie,multiple:m=!1,onChange:g,onClose:h,onHighlightChange:x,onInputChange:S,onOpen:T,open:k,openOnFocus:$=!1,options:P,readOnly:E=!1,selectOnFocus:A=!e.freeSolo,value:z}=e,H=Za(_);let O=D;O=ae=>{const ie=D(ae);return typeof ie!="string"?String(ie):ie};const V=U.useRef(!1),X=U.useRef(!0),J=U.useRef(null),G=U.useRef(null),[j,q]=U.useState(null),[K,Z]=U.useState(-1),te=i?0:-1,Q=U.useRef(te),[oe,me]=ja({controlled:z,default:u,name:c}),[se,ye]=ja({controlled:I,default:"",name:c,state:"inputValue"}),[Re,we]=U.useState(!1),He=U.useCallback((ae,ie)=>{if(!(m?oe.length!(C&&(m?oe:[oe]).some(ie=>ie!==null&&R(ae,ie)))),{inputValue:Ne&&Ze?"":se,getOptionLabel:O}):[],Ie=ub({filteredOptions:de,value:oe,inputValue:se});U.useEffect(()=>{const ae=oe!==Ie.value;Re&&!ae||y&&!ae||He(null,oe)},[oe,He,Re,Ie.value,y]);const ot=Ue&&de.length>0&&!E,lt=Pr(ae=>{ae===-1?J.current.focus():j.querySelector(`[data-tag-index="${ae}"]`).focus()});U.useEffect(()=>{m&&K>oe.length-1&&(Z(-1),lt(-1))},[oe,m,K,lt]);function ge(ae,ie){if(!G.current||ae<0||ae>=de.length)return-1;let ve=ae;for(;;){const Ae=G.current.querySelector(`[data-option-index="${ve}"]`),Ye=p?!1:!Ae||Ae.disabled||Ae.getAttribute("aria-disabled")==="true";if(Ae&&Ae.hasAttribute("tabindex")&&!Ye)return ve;if(ie==="next"?ve=(ve+1)%de.length:ve=(ve-1+de.length)%de.length,ve===ae)return-1}}const ze=Pr(({event:ae,index:ie,reason:ve="auto"})=>{if(Q.current=ie,ie===-1?J.current.removeAttribute("aria-activedescendant"):J.current.setAttribute("aria-activedescendant",`${H}-option-${ie}`),x&&x(ae,ie===-1?null:de[ie],ve),!G.current)return;const Ae=G.current.querySelector(`[role="option"].${r}-focused`);Ae&&(Ae.classList.remove(`${r}-focused`),Ae.classList.remove(`${r}-focusVisible`));let Ye=G.current;if(G.current.getAttribute("role")!=="listbox"&&(Ye=G.current.parentElement.querySelector('[role="listbox"]')),!Ye)return;if(ie===-1){Ye.scrollTop=0;return}const Le=G.current.querySelector(`[data-option-index="${ie}"]`);if(Le&&(Le.classList.add(`${r}-focused`),ve==="keyboard"&&Le.classList.add(`${r}-focusVisible`),Ye.scrollHeight>Ye.clientHeight&&ve!=="mouse"&&ve!=="touch")){const pt=Le,Bt=Ye.clientHeight+Ye.scrollTop,gt=pt.offsetTop+pt.offsetHeight;gt>Bt?Ye.scrollTop=gt-Ye.clientHeight:pt.offsetTop-pt.offsetHeight*(F?1.3:0){if(!De)return;const Le=ge((()=>{const pt=de.length-1;if(ie==="reset")return te;if(ie==="start")return 0;if(ie==="end")return pt;const Bt=Q.current+ie;return Bt<0?Bt===-1&&L?-1:v&&Q.current!==-1||Math.abs(ie)>1?0:pt:Bt>pt?Bt===pt+1&&L?-1:v||Math.abs(ie)>1?pt:0:Bt})(),ve);if(ze({index:Le,reason:Ae,event:ae}),n&&ie!=="reset")if(Le===-1)J.current.value=se;else{const pt=O(de[Le]);J.current.value=pt,pt.toLowerCase().indexOf(se.toLowerCase())===0&&se.length>0&&J.current.setSelectionRange(se.length,pt.length)}}),xe=()=>{const ae=(ie,ve)=>{const Ae=ie?O(ie):"",Ye=ve?O(ve):"";return Ae===Ye};if(Q.current!==-1&&Ie.filteredOptions&&Ie.filteredOptions.length!==de.length&&Ie.inputValue===se&&(m?oe.length===Ie.value.length&&Ie.value.every((ie,ve)=>O(oe[ve])===O(ie)):ae(Ie.value,oe))){const ie=Ie.filteredOptions[Q.current];if(ie)return xd(de,ve=>O(ve)===O(ie))}return-1},je=U.useCallback(()=>{if(!De)return;const ae=xe();if(ae!==-1){Q.current=ae;return}const ie=m?oe[0]:oe;if(de.length===0||ie==null){le({diff:"reset"});return}if(G.current){if(ie!=null){const ve=de[Q.current];if(m&&ve&&xd(oe,Ye=>R(ve,Ye))!==-1)return;const Ae=xd(de,Ye=>R(Ye,ie));Ae===-1?le({diff:"reset"}):ze({index:Ae});return}if(Q.current>=de.length-1){ze({index:de.length-1});return}ze({index:Q.current})}},[de.length,m?!1:oe,C,le,ze,De,se,m]),We=Pr(ae=>{Ff(G,ae),ae&&je()});U.useEffect(()=>{je()},[je]);const Fe=ae=>{Ue||(Me(!0),Je(!0),T&&T(ae))},Qe=(ae,ie)=>{Ue&&(Me(!1),h&&h(ae,ie))},ut=(ae,ie,ve,Ae)=>{if(m){if(oe.length===ie.length&&oe.every((Ye,Le)=>Ye===ie[Le]))return}else if(oe===ie)return;g&&g(ae,ie,ve,Ae),me(ie)},Ge=U.useRef(!1),ee=(ae,ie,ve="selectOption",Ae="options")=>{let Ye=ve,Le=ie;if(m){Le=Array.isArray(oe)?oe.slice():[];const pt=xd(Le,Bt=>R(ie,Bt));pt===-1?Le.push(ie):Ae!=="freeSolo"&&(Le.splice(pt,1),Ye="removeOption")}He(ae,Le),ut(ae,Le,Ye,{option:ie}),!d&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&Qe(ae,Ye),(a===!0||a==="touch"&&Ge.current||a==="mouse"&&!Ge.current)&&J.current.blur()};function re(ae,ie){if(ae===-1)return-1;let ve=ae;for(;;){if(ie==="next"&&ve===oe.length||ie==="previous"&&ve===-1)return-1;const Ae=j.querySelector(`[data-tag-index="${ve}"]`);if(!Ae||!Ae.hasAttribute("tabindex")||Ae.disabled||Ae.getAttribute("aria-disabled")==="true")ve+=ie==="next"?1:-1;else return ve}}const ne=(ae,ie)=>{if(!m)return;se===""&&Qe(ae,"toggleInput");let ve=K;K===-1?se===""&&ie==="previous"&&(ve=oe.length-1):(ve+=ie==="next"?1:-1,ve<0&&(ve=0),ve===oe.length&&(ve=-1)),ve=re(ve,ie),Z(ve),lt(ve)},pe=ae=>{V.current=!0,ye(""),S&&S(ae,"","clear"),ut(ae,m?[]:null,"clear")},ke=ae=>ie=>{if(ae.onKeyDown&&ae.onKeyDown(ie),!ie.defaultMuiPrevented&&(K!==-1&&["ArrowLeft","ArrowRight"].indexOf(ie.key)===-1&&(Z(-1),lt(-1)),ie.which!==229))switch(ie.key){case"Home":De&&N&&(ie.preventDefault(),le({diff:"start",direction:"next",reason:"keyboard",event:ie}));break;case"End":De&&N&&(ie.preventDefault(),le({diff:"end",direction:"previous",reason:"keyboard",event:ie}));break;case"PageUp":ie.preventDefault(),le({diff:-I8,direction:"previous",reason:"keyboard",event:ie}),Fe(ie);break;case"PageDown":ie.preventDefault(),le({diff:I8,direction:"next",reason:"keyboard",event:ie}),Fe(ie);break;case"ArrowDown":ie.preventDefault(),le({diff:1,direction:"next",reason:"keyboard",event:ie}),Fe(ie);break;case"ArrowUp":ie.preventDefault(),le({diff:-1,direction:"previous",reason:"keyboard",event:ie}),Fe(ie);break;case"ArrowLeft":ne(ie,"previous");break;case"ArrowRight":ne(ie,"next");break;case"Enter":if(Q.current!==-1&&De){const ve=de[Q.current],Ae=M?M(ve):!1;if(ie.preventDefault(),Ae)return;ee(ie,ve,"selectOption"),n&&J.current.setSelectionRange(J.current.value.length,J.current.value.length)}else y&&se!==""&&Ne===!1&&(m&&ie.preventDefault(),ee(ie,se,"createOption","freeSolo"));break;case"Escape":De?(ie.preventDefault(),ie.stopPropagation(),Qe(ie,"escape")):l&&(se!==""||m&&oe.length>0)&&(ie.preventDefault(),ie.stopPropagation(),pe(ie));break;case"Backspace":if(m&&!E&&se===""&&oe.length>0){const ve=K===-1?oe.length-1:K,Ae=oe.slice();Ae.splice(ve,1),ut(ie,Ae,"removeOption",{option:oe[ve]})}break;case"Delete":if(m&&!E&&se===""&&oe.length>0&&K!==-1){const ve=K,Ae=oe.slice();Ae.splice(ve,1),ut(ie,Ae,"removeOption",{option:oe[ve]})}break}},Te=ae=>{we(!0),$&&!V.current&&Fe(ae)},$e=ae=>{if(t(G)){J.current.focus();return}we(!1),X.current=!0,V.current=!1,o&&Q.current!==-1&&De?ee(ae,de[Q.current],"blur"):o&&y&&se!==""?ee(ae,se,"blur","freeSolo"):s&&He(ae,oe),Qe(ae,"blur")},Pe=ae=>{const ie=ae.target.value;se!==ie&&(ye(ie),Je(!1),S&&S(ae,ie,"input")),ie===""?!f&&!m&&ut(ae,null,"clear"):Fe(ae)},ce=ae=>{const ie=Number(ae.currentTarget.getAttribute("data-option-index"));Q.current!==ie&&ze({event:ae,index:ie,reason:"mouse"})},_e=ae=>{ze({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ge.current=!0},Ve=ae=>{const ie=Number(ae.currentTarget.getAttribute("data-option-index"));ee(ae,de[ie],"selectOption"),Ge.current=!1},Ce=ae=>ie=>{const ve=oe.slice();ve.splice(ae,1),ut(ie,ve,"removeOption",{option:oe[ae]})},Xe=ae=>{Ue?Qe(ae,"toggleInput"):Fe(ae)},dt=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==H&&ae.preventDefault()},qe=ae=>{ae.currentTarget.contains(ae.target)&&(J.current.focus(),A&&X.current&&J.current.selectionEnd-J.current.selectionStart===0&&J.current.select(),X.current=!1)},ht=ae=>{!b&&(se===""||!Ue)&&Xe(ae)};let mt=y&&se.length>0;mt=mt||(m?oe.length>0:oe!==null);let rt=de;return F&&(rt=de.reduce((ae,ie,ve)=>{const Ae=F(ie);return ae.length>0&&ae[ae.length-1].group===Ae?ae[ae.length-1].options.push(ie):ae.push({key:ve,index:ve,group:Ae,options:[ie]}),ae},[])),b&&Re&&$e(),{getRootProps:(ae={})=>W({"aria-owns":ot?`${H}-listbox`:null},ae,{onKeyDown:ke(ae),onMouseDown:dt,onClick:qe}),getInputLabelProps:()=>({id:`${H}-label`,htmlFor:H}),getInputProps:()=>({id:H,value:se,onBlur:$e,onFocus:Te,onChange:Pe,onMouseDown:ht,"aria-activedescendant":De?"":null,"aria-autocomplete":n?"both":"list","aria-controls":ot?`${H}-listbox`:void 0,"aria-expanded":ot,autoComplete:"off",ref:J,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:pe}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Xe}),getTagProps:({index:ae})=>W({key:ae,"data-tag-index":ae,tabIndex:-1},!E&&{onDelete:Ce(ae)}),getListboxProps:()=>({role:"listbox",id:`${H}-listbox`,"aria-labelledby":`${H}-label`,ref:We,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:ie})=>{var ve;const Ae=(m?oe:[oe]).some(Le=>Le!=null&&R(ie,Le)),Ye=M?M(ie):!1;return{key:(ve=B==null?void 0:B(ie))!=null?ve:O(ie),tabIndex:-1,role:"option",id:`${H}-option-${ae}`,onMouseMove:ce,onClick:Ve,onTouchStart:_e,"data-option-index":ae,"aria-disabled":Ye,"aria-selected":Ae}},id:H,inputValue:se,value:oe,dirty:mt,expanded:De&&j,popupOpen:De,focused:Re||K!==-1,anchorEl:j,setAnchorEl:q,focusedTag:K,groupedOptions:rt}}var x4={};Object.defineProperty(x4,"__esModule",{value:!0});var WE=x4.default=void 0,cU=fU(U),uU=wS;function VE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(VE=function(n){return n?r:t})(e)}function fU(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=VE(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function dU(e){return Object.keys(e).length===0}function hU(e=null){const t=cU.useContext(uU.ThemeContext);return!t||dU(t)?e:t}WE=x4.default=hU;const pU=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],xU=he(Qj,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mU=U.forwardRef(function(t,r){var n;const i=WE(),o=ft({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:d,modifiers:b,open:p,placement:v,popperOptions:w,popperRef:C,transition:y,slots:M,slotProps:B}=o,D=Ee(o,pU),F=(n=M==null?void 0:M.root)!=null?n:l==null?void 0:l.Root,N=W({anchorEl:a,container:u,disablePortal:f,keepMounted:d,modifiers:b,open:p,placement:v,popperOptions:w,popperRef:C,transition:y},D);return Y.jsx(xU,W({as:s,direction:i==null?void 0:i.direction,slots:{root:F},slotProps:B??c},N,{ref:r}))}),y1=mU;function gU(e){return nt("MuiListSubheader",e)}tt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const vU=["className","color","component","disableGutters","disableSticky","inset"],bU=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:o}=e,a={root:["root",r!=="default"&&`color${ue(r)}`,!n&&"gutters",i&&"inset",!o&&"sticky"]};return it(a,gU,t)},yU=he("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ue(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>W({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),qE=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=n,u=Ee(n,vU),f=W({},n,{color:o,component:a,disableGutters:s,disableSticky:l,inset:c}),d=bU(f);return Y.jsx(yU,W({as:a,className:Se(d.root,i),ref:r,ownerState:f},u))});qE.muiSkipListHighlight=!0;const wU=qE,SU=fn(Y.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function CU(e){return nt("MuiChip",e)}const EU=tt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Ft=EU,MU=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],PU=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,r&&"disabled",`size${ue(n)}`,`color${ue(i)}`,s&&"clickable",s&&`clickableColor${ue(i)}`,a&&"deletable",a&&`deletableColor${ue(i)}`,`${l}${ue(i)}`],label:["label",`label${ue(n)}`],avatar:["avatar",`avatar${ue(n)}`,`avatarColor${ue(i)}`],icon:["icon",`icon${ue(n)}`,`iconColor${ue(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(n)}`,`deleteIconColor${ue(i)}`,`deleteIcon${ue(l)}Color${ue(i)}`]};return it(c,CU,t)},AU=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=r;return[{[`& .${Ft.avatar}`]:t.avatar},{[`& .${Ft.avatar}`]:t[`avatar${ue(s)}`]},{[`& .${Ft.avatar}`]:t[`avatarColor${ue(n)}`]},{[`& .${Ft.icon}`]:t.icon},{[`& .${Ft.icon}`]:t[`icon${ue(s)}`]},{[`& .${Ft.icon}`]:t[`iconColor${ue(i)}`]},{[`& .${Ft.deleteIcon}`]:t.deleteIcon},{[`& .${Ft.deleteIcon}`]:t[`deleteIcon${ue(s)}`]},{[`& .${Ft.deleteIcon}`]:t[`deleteIconColor${ue(n)}`]},{[`& .${Ft.deleteIcon}`]:t[`deleteIcon${ue(l)}Color${ue(n)}`]},t.root,t[`size${ue(s)}`],t[`color${ue(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ue(n)})`],a&&t.deletable,a&&n!=="default"&&t[`deletableColor${ue(n)}`],t[l],t[`${l}${ue(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return W({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ft.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ft.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Ft.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ft.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ft.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ft.icon}`]:W({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&W({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Ft.deleteIcon}`]:W({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ct(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ct(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ct(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Ft.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Ft.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>W({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ft.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Ft.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>W({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ft.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ft.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ft.avatar}`]:{marginLeft:4},[`& .${Ft.avatarSmall}`]:{marginLeft:2},[`& .${Ft.icon}`]:{marginLeft:4},[`& .${Ft.iconSmall}`]:{marginLeft:2},[`& .${Ft.deleteIcon}`]:{marginRight:5},[`& .${Ft.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ct(e.palette[t.color].main,.7)}`,[`&.${Ft.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Ft.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ct(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Ft.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ct(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),kU=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ue(n)}`]]}})(({ownerState:e})=>W({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function F8(e){return e.key==="Backspace"||e.key==="Delete"}const _U=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:d,onClick:b,onDelete:p,onKeyDown:v,onKeyUp:w,size:C="medium",variant:y="filled",tabIndex:M,skipFocusWhenDisabled:B=!1}=n,D=Ee(n,MU),F=U.useRef(null),N=Vt(F,r),_=$=>{$.stopPropagation(),p&&p($)},L=$=>{$.currentTarget===$.target&&F8($)&&$.preventDefault(),v&&v($)},I=$=>{$.currentTarget===$.target&&(p&&F8($)?p($):$.key==="Escape"&&F.current&&F.current.blur()),w&&w($)},R=a!==!1&&b?!0:a,m=R||p?co:l||"div",g=W({},n,{component:m,disabled:u,size:C,color:s,iconColor:U.isValidElement(f)&&f.props.color||s,onDelete:!!p,clickable:R,variant:y}),h=PU(g),x=m===co?W({component:l||"div",focusVisibleClassName:h.focusVisible},p&&{disableRipple:!0}):{};let S=null;p&&(S=c&&U.isValidElement(c)?U.cloneElement(c,{className:Se(c.props.className,h.deleteIcon),onClick:_}):Y.jsx(SU,{className:Se(h.deleteIcon),onClick:_}));let T=null;i&&U.isValidElement(i)&&(T=U.cloneElement(i,{className:Se(h.avatar,i.props.className)}));let k=null;return f&&U.isValidElement(f)&&(k=U.cloneElement(f,{className:Se(h.icon,f.props.className)})),Y.jsxs(AU,W({as:m,className:Se(h.root,o),disabled:R&&u?!0:void 0,onClick:b,onKeyDown:L,onKeyUp:I,ref:N,tabIndex:B&&u?-1:M,ownerState:g},x,D,{children:[T||k,Y.jsx(kU,{className:Se(h.label),ownerState:g,children:d}),S]}))}),RU=_U;function pl({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const TU=U.createContext(void 0),w1=TU;function va(){return U.useContext(w1)}function KE(e){return Y.jsx(kI,W({},e,{defaultTheme:e1,themeId:Js}))}function O8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function zh(e,t=!1){return e&&(O8(e.value)&&e.value!==""||t&&O8(e.defaultValue)&&e.defaultValue!=="")}function $U(e){return e.startAdornment}function BU(e){return nt("MuiInputBase",e)}const IU=tt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Kn=IU,FU=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],S1=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ue(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},C1=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},OU=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:d,startAdornment:b,type:p}=e,v={root:["root",`color${ue(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",d&&d!=="medium"&&`size${ue(d)}`,u&&"multiline",b&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",u&&"inputMultiline",d==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",o&&"inputAdornedEnd",f&&"readOnly"]};return it(v,BU,t)},E1=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:S1})(({theme:e,ownerState:t})=>W({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Kn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&W({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),M1=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:C1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=W({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return W({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Kn.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Kn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),DU=Y.jsx(KE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),LU=U.forwardRef(function(t,r){var n;const i=ft({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:b,endAdornment:p,fullWidth:v=!1,id:w,inputComponent:C="input",inputProps:y={},inputRef:M,maxRows:B,minRows:D,multiline:F=!1,name:N,onBlur:_,onChange:L,onClick:I,onFocus:R,onKeyDown:m,onKeyUp:g,placeholder:h,readOnly:x,renderSuffix:S,rows:T,slotProps:k={},slots:$={},startAdornment:P,type:E="text",value:A}=i,z=Ee(i,FU),H=y.value!=null?y.value:A,{current:O}=U.useRef(H!=null),V=U.useRef(),X=U.useCallback(De=>{},[]),J=Vt(V,M,y.ref,X),[G,j]=U.useState(!1),q=va(),K=pl({props:i,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=q?q.focused:G,U.useEffect(()=>{!q&&d&&G&&(j(!1),_&&_())},[q,d,G,_]);const Z=q&&q.onFilled,te=q&&q.onEmpty,Q=U.useCallback(De=>{zh(De)?Z&&Z():te&&te()},[Z,te]);bn(()=>{O&&Q({value:H})},[H,Q,O]);const oe=De=>{if(K.disabled){De.stopPropagation();return}R&&R(De),y.onFocus&&y.onFocus(De),q&&q.onFocus?q.onFocus(De):j(!0)},me=De=>{_&&_(De),y.onBlur&&y.onBlur(De),q&&q.onBlur?q.onBlur(De):j(!1)},se=(De,...de)=>{if(!O){const Ie=De.target||V.current;if(Ie==null)throw new Error(aa(1));Q({value:Ie.value})}y.onChange&&y.onChange(De,...de),L&&L(De,...de)};U.useEffect(()=>{Q(V.current)},[]);const ye=De=>{V.current&&De.currentTarget===De.target&&V.current.focus(),I&&I(De)};let Re=C,we=y;F&&Re==="input"&&(T?we=W({type:void 0,minRows:T,maxRows:T},we):we=W({type:void 0,maxRows:B,minRows:D},we),Re=iU);const He=De=>{Q(De.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};U.useEffect(()=>{q&&q.setAdornedStart(!!P)},[q,P]);const Ue=W({},i,{color:K.color||"primary",disabled:K.disabled,endAdornment:p,error:K.error,focused:K.focused,formControl:q,fullWidth:v,hiddenLabel:K.hiddenLabel,multiline:F,size:K.size,startAdornment:P,type:E}),Me=OU(Ue),Ze=$.root||c.Root||E1,Je=k.root||u.root||{},Ne=$.input||c.Input||M1;return we=W({},we,(n=k.input)!=null?n:u.input),Y.jsxs(U.Fragment,{children:[!b&&DU,Y.jsxs(Ze,W({},Je,!il(Ze)&&{ownerState:W({},Ue,Je.ownerState)},{ref:r,onClick:ye},z,{className:Se(Me.root,Je.className,l,x&&"MuiInputBase-readOnly"),children:[P,Y.jsx(w1.Provider,{value:null,children:Y.jsx(Ne,W({ownerState:Ue,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:f,disabled:K.disabled,id:w,onAnimationStart:He,name:N,placeholder:h,readOnly:x,required:K.required,rows:T,value:H,onKeyDown:m,onKeyUp:g,type:E},we,!il(Ne)&&{as:Re,ownerState:W({},Ue,we.ownerState)},{ref:J,className:Se(Me.input,we.className,x&&"MuiInputBase-readOnly"),onBlur:me,onChange:se,onFocus:oe}))}),p,S?S(W({},K,{startAdornment:P})):null]}))]})}),P1=LU;function NU(e){return nt("MuiInput",e)}const Ia=W({},Kn,tt("MuiInput",["root","underline","input"]));function zU(e){return nt("MuiOutlinedInput",e)}const jU=W({},Kn,tt("MuiOutlinedInput",["root","notchedOutline","input"])),go=jU;function UU(e){return nt("MuiFilledInput",e)}const HU=W({},Kn,tt("MuiFilledInput",["root","underline","input"])),Gn=HU,GE=fn(Y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function WU(e){return nt("MuiAutocomplete",e)}const Et=tt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var D8,L8;const VU=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],qU=["ref"],KU=t1(),GU=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",n&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ue(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return it(f,WU,t)},YU=he("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=r;return[{[`& .${Et.tag}`]:t.tag},{[`& .${Et.tag}`]:t[`tagSize${ue(s)}`]},{[`& .${Et.inputRoot}`]:t.inputRoot},{[`& .${Et.input}`]:t.input},{[`& .${Et.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Et.focused} .${Et.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Et.clearIndicator}`]:{visibility:"visible"}},[`& .${Et.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Et.inputRoot}`]:{flexWrap:"wrap",[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:30},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:56},[`& .${Et.input}`]:{width:0,minWidth:30}},[`& .${Ia.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ia.root}.${Kn.sizeSmall}`]:{[`& .${Ia.input}`]:{padding:"2px 4px 3px 0"}},[`& .${go.root}`]:{padding:9,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${Et.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${go.root}.${Kn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Et.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Gn.root}`]:{paddingTop:19,paddingLeft:8,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${Gn.input}`]:{padding:"7px 4px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${Gn.root}.${Kn.sizeSmall}`]:{paddingBottom:1,[`& .${Gn.input}`]:{padding:"2.5px 4px"}},[`& .${Kn.hiddenLabel}`]:{paddingTop:8},[`& .${Gn.root}.${Kn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Et.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Gn.root}.${Kn.hiddenLabel}.${Kn.sizeSmall}`]:{[`& .${Et.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Et.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Et.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Et.input}`]:{opacity:1}}}]}),XU=he("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),JU=he(Ls,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),ZU=he(Ls,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>W({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),QU=he(y1,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Et.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),eH=he(ga,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>W({},e.typography.body1,{overflow:"auto"})),tH=he("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),rH=he("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),nH=he("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Et.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Et.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Et.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),iH=he(wU,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),oH=he("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Et.option}`]:{paddingLeft:24}}),aH=U.forwardRef(function(t,r){var n,i,o,a;const s=KU({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:d,className:b,clearIcon:p=D8||(D8=Y.jsx(RE,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:w=!1,clearText:C="Clear",closeText:y="Close",componentsProps:M={},defaultValue:B=s.multiple?[]:null,disableClearable:D=!1,disableCloseOnSelect:F=!1,disabled:N=!1,disabledItemsFocusable:_=!1,disableListWrap:L=!1,disablePortal:I=!1,filterSelectedOptions:R=!1,forcePopupIcon:m="auto",freeSolo:g=!1,fullWidth:h=!1,getLimitTagsText:x=Ae=>`+${Ae}`,getOptionLabel:S,groupBy:T,handleHomeEndKeys:k=!s.freeSolo,includeInputInList:$=!1,limitTags:P=-1,ListboxComponent:E="ul",ListboxProps:A,loading:z=!1,loadingText:H="Loading…",multiple:O=!1,noOptionsText:V="No options",openOnFocus:X=!1,openText:J="Open",PaperComponent:G=ga,PopperComponent:j=y1,popupIcon:q=L8||(L8=Y.jsx(GE,{})),readOnly:K=!1,renderGroup:Z,renderInput:te,renderOption:Q,renderTags:oe,selectOnFocus:me=!s.freeSolo,size:se="medium",slotProps:ye={}}=s,Re=Ee(s,VU),{getRootProps:we,getInputProps:He,getInputLabelProps:Ue,getPopupIndicatorProps:Me,getClearProps:Ze,getTagProps:Je,getListboxProps:Ne,getOptionProps:De,value:de,dirty:Ie,expanded:ot,id:lt,popupOpen:ge,focused:ze,focusedTag:le,anchorEl:xe,setAnchorEl:je,inputValue:We,groupedOptions:Fe}=lU(W({},s,{componentName:"Autocomplete"})),Qe=!D&&!N&&Ie&&!K,ut=(!g||m===!0)&&m!==!1,{onMouseDown:Ge}=He(),{ref:ee}=A??{},re=Ne(),{ref:ne}=re,pe=Ee(re,qU),ke=Vt(ne,ee),$e=S||(Ae=>{var Ye;return(Ye=Ae.label)!=null?Ye:Ae}),Pe=W({},s,{disablePortal:I,expanded:ot,focused:ze,fullWidth:h,getOptionLabel:$e,hasClearIcon:Qe,hasPopupIcon:ut,inputFocused:le===-1,popupOpen:ge,size:se}),ce=GU(Pe);let _e;if(O&&de.length>0){const Ae=Ye=>W({className:ce.tag,disabled:N},Je(Ye));oe?_e=oe(de,Ae,Pe):_e=de.map((Ye,Le)=>Y.jsx(RU,W({label:$e(Ye),size:se},Ae({index:Le}),d)))}if(P>-1&&Array.isArray(_e)){const Ae=_e.length-P;!ze&&Ae>0&&(_e=_e.splice(0,P),_e.push(Y.jsx("span",{className:ce.tag,children:x(Ae)},_e.length)))}const Ce=Z||(Ae=>Y.jsxs("li",{children:[Y.jsx(iH,{className:ce.groupLabel,ownerState:Pe,component:"div",children:Ae.group}),Y.jsx(oH,{className:ce.groupUl,ownerState:Pe,children:Ae.children})]},Ae.key)),dt=Q||((Ae,Ye)=>U.createElement("li",W({},Ae,{key:Ae.key}),$e(Ye))),qe=(Ae,Ye)=>{const Le=De({option:Ae,index:Ye});return dt(W({},Le,{className:ce.option}),Ae,{selected:Le["aria-selected"],index:Ye,inputValue:We},Pe)},ht=(n=ye.clearIndicator)!=null?n:M.clearIndicator,mt=(i=ye.paper)!=null?i:M.paper,rt=(o=ye.popper)!=null?o:M.popper,ae=(a=ye.popupIndicator)!=null?a:M.popupIndicator,ie=Ae=>Y.jsx(QU,W({as:j,disablePortal:I,style:{width:xe?xe.clientWidth:null},ownerState:Pe,role:"presentation",anchorEl:xe,open:ge},rt,{className:Se(ce.popper,rt==null?void 0:rt.className),children:Y.jsx(eH,W({ownerState:Pe,as:G},mt,{className:Se(ce.paper,mt==null?void 0:mt.className),children:Ae}))}));let ve=null;return Fe.length>0?ve=ie(Y.jsx(nH,W({as:E,className:ce.listbox,ownerState:Pe},pe,A,{ref:ke,children:Fe.map((Ae,Ye)=>T?Ce({key:Ae.key,group:Ae.group,children:Ae.options.map((Le,pt)=>qe(Le,Ae.index+pt))}):qe(Ae,Ye))}))):z&&Fe.length===0?ve=ie(Y.jsx(tH,{className:ce.loading,ownerState:Pe,children:H})):Fe.length===0&&!g&&!z&&(ve=ie(Y.jsx(rH,{className:ce.noOptions,ownerState:Pe,role:"presentation",onMouseDown:Ae=>{Ae.preventDefault()},children:V}))),Y.jsxs(U.Fragment,{children:[Y.jsx(YU,W({ref:r,className:Se(ce.root,b),ownerState:Pe},we(Re),{children:te({id:lt,disabled:N,fullWidth:!0,size:se==="small"?"small":void 0,InputLabelProps:Ue(),InputProps:W({ref:je,className:ce.inputRoot,startAdornment:_e,onClick:Ae=>{Ae.target===Ae.currentTarget&&Ge(Ae)}},(Qe||ut)&&{endAdornment:Y.jsxs(XU,{className:ce.endAdornment,ownerState:Pe,children:[Qe?Y.jsx(JU,W({},Ze(),{"aria-label":C,title:C,ownerState:Pe},ht,{className:Se(ce.clearIndicator,ht==null?void 0:ht.className),children:p})):null,ut?Y.jsx(ZU,W({},Me(),{disabled:N,"aria-label":ge?y:J,title:ge?y:J,ownerState:Pe},ae,{className:Se(ce.popupIndicator,ae==null?void 0:ae.className),children:q})):null]})}),inputProps:W({className:ce.input,disabled:N,readOnly:K},He())})})),xe?ve:null]})}),Zce=aH,sH=fn(Y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function lH(e){return nt("MuiAvatar",e)}tt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const cH=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],uH=t1(),fH=e=>{const{classes:t,variant:r,colorDefault:n}=e;return it({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},lH,t)},dH=he("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:W({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:W({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),hH=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),pH=he(sH,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function xH({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[i,o]=U.useState(!1);return U.useEffect(()=>{if(!r&&!n)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{a=!1}},[e,t,r,n]),i}const mH=U.forwardRef(function(t,r){const n=uH({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:d,srcSet:b,variant:p="circular"}=n,v=Ee(n,cH);let w=null;const C=xH(W({},u,{src:d,srcSet:b})),y=d||b,M=y&&C!=="error",B=W({},n,{colorDefault:!M,component:s,variant:p}),D=fH(B),[F,N]=Nv("img",{className:D.img,elementType:hH,externalForwardedProps:{slots:l,slotProps:{img:W({},u,c.img)}},additionalProps:{alt:i,src:d,srcSet:b,sizes:f},ownerState:B});return M?w=Y.jsx(F,W({},N)):o||o===0?w=o:y&&i?w=i[0]:w=Y.jsx(pH,{ownerState:B,className:D.fallback}),Y.jsx(dH,W({as:s,ownerState:B,className:Se(D.root,a),ref:r},v,{children:w}))}),Qce=mH,gH=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],vH={entering:{opacity:1},entered:{opacity:1}},bH=U.forwardRef(function(t,r){const n=pa(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:d,onExit:b,onExited:p,onExiting:v,style:w,timeout:C=i,TransitionComponent:y=i4}=t,M=Ee(t,gH),B=U.useRef(null),D=Vt(B,s.ref,r),F=h=>x=>{if(h){const S=B.current;x===void 0?h(S):h(S,x)}},N=F(d),_=F((h,x)=>{s4(h);const S=Tc({style:w,timeout:C,easing:l},{mode:"enter"});h.style.webkitTransition=n.transitions.create("opacity",S),h.style.transition=n.transitions.create("opacity",S),u&&u(h,x)}),L=F(f),I=F(v),R=F(h=>{const x=Tc({style:w,timeout:C,easing:l},{mode:"exit"});h.style.webkitTransition=n.transitions.create("opacity",x),h.style.transition=n.transitions.create("opacity",x),b&&b(h)}),m=F(p),g=h=>{o&&o(B.current,h)};return Y.jsx(y,W({appear:a,in:c,nodeRef:B,onEnter:_,onEntered:L,onEntering:N,onExit:R,onExited:m,onExiting:I,addEndListener:g,timeout:C},M,{children:(h,x)=>U.cloneElement(s,W({style:W({opacity:0,visibility:h==="exited"&&!c?"hidden":void 0},vH[h],w,s.props.style),ref:D},x))}))}),YE=bH;function yH(e){return nt("MuiBackdrop",e)}tt("MuiBackdrop",["root","invisible"]);const wH=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],SH=e=>{const{classes:t,invisible:r}=e;return it({root:["root",r&&"invisible"]},yH,t)},CH=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>W({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),EH=U.forwardRef(function(t,r){var n,i,o;const a=ft({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:d=!1,open:b,slotProps:p={},slots:v={},TransitionComponent:w=YE,transitionDuration:C}=a,y=Ee(a,wH),M=W({},a,{component:c,invisible:d}),B=SH(M),D=(n=p.root)!=null?n:f.root;return Y.jsx(w,W({in:b,timeout:C},y,{children:Y.jsx(CH,W({"aria-hidden":!0},D,{as:(i=(o=v.root)!=null?o:u.Root)!=null?i:c,className:Se(B.root,l,D==null?void 0:D.className),ownerState:W({},M,D==null?void 0:D.ownerState),classes:B,ref:r,children:s}))}))}),XE=EH;function MH(e){return nt("MuiBadge",e)}const PH=tt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Ea=PH,AH=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Tm=10,$m=4,kH=t1(),_H=e=>{const{color:t,anchorOrigin:r,invisible:n,overlap:i,variant:o,classes:a={}}=e,s={root:["root"],badge:["badge",o,n&&"invisible",`anchorOrigin${ue(r.vertical)}${ue(r.horizontal)}`,`anchorOrigin${ue(r.vertical)}${ue(r.horizontal)}${ue(i)}`,`overlap${ue(i)}`,t!=="default"&&`color${ue(t)}`]};return it(s,MH,a)},RH=he("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),TH=he("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.badge,t[r.variant],t[`anchorOrigin${ue(r.anchorOrigin.vertical)}${ue(r.anchorOrigin.horizontal)}${ue(r.overlap)}`],r.color!=="default"&&t[`color${ue(r.color)}`],r.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Tm*2,lineHeight:1,padding:"0 6px",height:Tm*2,borderRadius:Tm,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n,i;return((n=e.vars)!=null?n:e).palette[r].main&&((i=e.vars)!=null?i:e).palette[r].contrastText}).map(r=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText}})),{props:{variant:"dot"},style:{borderRadius:$m,height:$m*2,minWidth:$m*2,padding:0}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ea.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ea.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ea.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ea.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ea.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ea.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ea.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ea.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),$H=U.forwardRef(function(t,r){var n,i,o,a,s,l;const c=kH({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:d,components:b={},componentsProps:p={},children:v,overlap:w="rectangular",color:C="default",invisible:y=!1,max:M=99,badgeContent:B,slots:D,slotProps:F,showZero:N=!1,variant:_="standard"}=c,L=Ee(c,AH),{badgeContent:I,invisible:R,max:m,displayValue:g}=mz({max:M,invisible:y,badgeContent:B,showZero:N}),h=ub({anchorOrigin:u,color:C,overlap:w,variant:_,badgeContent:B}),x=R||I==null&&_!=="dot",{color:S=C,overlap:T=w,anchorOrigin:k=u,variant:$=_}=x?h:c,P=$!=="dot"?g:void 0,E=W({},c,{badgeContent:I,invisible:x,max:m,displayValue:P,showZero:N,anchorOrigin:k,color:S,overlap:T,variant:$}),A=_H(E),z=(n=(i=D==null?void 0:D.root)!=null?i:b.Root)!=null?n:RH,H=(o=(a=D==null?void 0:D.badge)!=null?a:b.Badge)!=null?o:TH,O=(s=F==null?void 0:F.root)!=null?s:p.root,V=(l=F==null?void 0:F.badge)!=null?l:p.badge,X=Nn({elementType:z,externalSlotProps:O,externalForwardedProps:L,additionalProps:{ref:r,as:d},ownerState:E,className:Se(O==null?void 0:O.className,A.root,f)}),J=Nn({elementType:H,externalSlotProps:V,ownerState:E,className:Se(A.badge,V==null?void 0:V.className)});return Y.jsxs(z,W({},X,{children:[v,Y.jsx(H,W({},J,{children:P}))]}))}),eue=$H,BH=tt("MuiBox",["root"]),IH=BH,FH=yS(),OH=FI({themeId:Js,defaultTheme:FH,defaultClassName:IH.root,generateClassName:ob.generate}),tue=OH;function DH(e){return nt("MuiButton",e)}const LH=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),md=LH,NH=U.createContext({}),zH=NH,jH=U.createContext(void 0),UH=jH,HH=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],WH=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${ue(t)}`,`size${ue(i)}`,`${o}Size${ue(i)}`,`color${ue(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ue(i)}`],endIcon:["icon","endIcon",`iconSize${ue(i)}`]},l=it(s,DH,a);return W({},a,l)},JE=e=>W({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),VH=he(co,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ue(r.color)}`],t[`size${ue(r.size)}`],t[`${r.variant}Size${ue(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return W({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":W({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":W({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${md.focusVisible}`]:W({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${md.disabled}`]:W({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ct(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${md.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${md.disabled}`]:{boxShadow:"none"}}),qH=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ue(r.size)}`]]}})(({ownerState:e})=>W({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},JE(e))),KH=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ue(r.size)}`]]}})(({ownerState:e})=>W({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},JE(e))),GH=U.forwardRef(function(t,r){const n=U.useContext(zH),i=U.useContext(UH),o=lb(n,t),a=ft({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:b=!1,endIcon:p,focusVisibleClassName:v,fullWidth:w=!1,size:C="medium",startIcon:y,type:M,variant:B="text"}=a,D=Ee(a,HH),F=W({},a,{color:l,component:c,disabled:f,disableElevation:d,disableFocusRipple:b,fullWidth:w,size:C,type:M,variant:B}),N=WH(F),_=y&&Y.jsx(qH,{className:N.startIcon,ownerState:F,children:y}),L=p&&Y.jsx(KH,{className:N.endIcon,ownerState:F,children:p}),I=i||"";return Y.jsxs(VH,W({ownerState:F,className:Se(n.className,N.root,u,I),component:c,disabled:f,focusRipple:!b,focusVisibleClassName:Se(N.focusVisible,v),ref:r,type:M},D,{classes:N,children:[_,s,L]}))}),rue=GH;function YH(e){return nt("PrivateSwitchBase",e)}tt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const XH=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],JH=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,o={root:["root",r&&"checked",n&&"disabled",i&&`edge${ue(i)}`],input:["input"]};return it(o,YH,t)},ZH=he(co)(({ownerState:e})=>W({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),QH=he("input",{shouldForwardProp:Zr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),eW=U.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:d,inputProps:b,inputRef:p,name:v,onBlur:w,onChange:C,onFocus:y,readOnly:M,required:B=!1,tabIndex:D,type:F,value:N}=t,_=Ee(t,XH),[L,I]=ja({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),R=va(),m=$=>{y&&y($),R&&R.onFocus&&R.onFocus($)},g=$=>{w&&w($),R&&R.onBlur&&R.onBlur($)},h=$=>{if($.nativeEvent.defaultPrevented)return;const P=$.target.checked;I(P),C&&C($,P)};let x=l;R&&typeof x>"u"&&(x=R.disabled);const S=F==="checkbox"||F==="radio",T=W({},t,{checked:L,disabled:x,disableFocusRipple:c,edge:u}),k=JH(T);return Y.jsxs(ZH,W({component:"span",className:Se(k.root,a),centerRipple:!0,focusRipple:!c,disabled:x,tabIndex:null,role:void 0,onFocus:m,onBlur:g,ownerState:T,ref:r},_,{children:[Y.jsx(QH,W({autoFocus:n,checked:i,defaultChecked:s,className:k.input,disabled:x,id:S?d:void 0,name:v,onChange:h,readOnly:M,ref:p,required:B,ownerState:T,tabIndex:D,type:F},F==="checkbox"&&N===void 0?{}:{value:N},b)),L?o:f]}))}),tW=eW,rW=fn(Y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),nW=fn(Y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),iW=fn(Y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function oW(e){return nt("MuiCheckbox",e)}const aW=tt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Bm=aW,sW=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],lW=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,o={root:["root",r&&"indeterminate",`color${ue(n)}`,`size${ue(i)}`]},a=it(o,oW,t);return W({},t,a)},cW=he(tW,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ue(r.size)}`],r.color!=="default"&&t[`color${ue(r.color)}`]]}})(({theme:e,ownerState:t})=>W({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Bm.checked}, &.${Bm.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Bm.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),uW=Y.jsx(nW,{}),fW=Y.jsx(rW,{}),dW=Y.jsx(iW,{}),hW=U.forwardRef(function(t,r){var n,i;const o=ft({props:t,name:"MuiCheckbox"}),{checkedIcon:a=uW,color:s="primary",icon:l=fW,indeterminate:c=!1,indeterminateIcon:u=dW,inputProps:f,size:d="medium",className:b}=o,p=Ee(o,sW),v=c?u:l,w=c?u:a,C=W({},o,{color:s,indeterminate:c,size:d}),y=lW(C);return Y.jsx(cW,W({type:"checkbox",inputProps:W({"data-indeterminate":c},f),icon:U.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:d}),checkedIcon:U.cloneElement(w,{fontSize:(i=w.props.fontSize)!=null?i:d}),ownerState:C,ref:r,className:Se(y.root,b)},p,{classes:y}))}),nue=hW;function pW(e){return nt("MuiCircularProgress",e)}tt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const xW=["className","color","disableShrink","size","style","thickness","value","variant"];let A1=e=>e,N8,z8,j8,U8;const Ma=44,mW=ss(N8||(N8=A1` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),gW=ss(z8||(z8=A1` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),vW=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,o={root:["root",r,`color${ue(n)}`],svg:["svg"],circle:["circle",`circle${ue(r)}`,i&&"circleDisableShrink"]};return it(o,pW,t)},bW=he("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ue(r.color)}`]]}})(({ownerState:e,theme:t})=>W({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Cc(j8||(j8=A1` + animation: ${0} 1.4s linear infinite; + `),mW)),yW=he("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),wW=he("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ue(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>W({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Cc(U8||(U8=A1` + animation: ${0} 1.4s ease-in-out infinite; + `),gW)),SW=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate"}=n,d=Ee(n,xW),b=W({},n,{color:o,disableShrink:a,size:s,thickness:c,value:u,variant:f}),p=vW(b),v={},w={},C={};if(f==="determinate"){const y=2*Math.PI*((Ma-c)/2);v.strokeDasharray=y.toFixed(3),C["aria-valuenow"]=Math.round(u),v.strokeDashoffset=`${((100-u)/100*y).toFixed(3)}px`,w.transform="rotate(-90deg)"}return Y.jsx(bW,W({className:Se(p.root,i),style:W({width:s,height:s},w,l),ownerState:b,ref:r,role:"progressbar"},C,d,{children:Y.jsx(yW,{className:p.svg,ownerState:b,viewBox:`${Ma/2} ${Ma/2} ${Ma} ${Ma}`,children:Y.jsx(wW,{className:p.circle,style:v,ownerState:b,cx:Ma,cy:Ma,r:(Ma-c)/2,fill:"none",strokeWidth:c})})}))}),iue=SW,CW=(e,t)=>W({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),EW=e=>W({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),MW=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;n[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=W({html:CW(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:W({margin:0},EW(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(i=[i,o]),i};function oue(e){const t=ft({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return Y.jsxs(U.Fragment,{children:[Y.jsx(KE,{styles:i=>MW(i,n)}),r]})}function PW(e){return nt("MuiModal",e)}tt("MuiModal",["root","hidden","backdrop"]);const AW=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],kW=e=>{const{open:t,exited:r,classes:n}=e;return it({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},PW,n)},_W=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>W({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),RW=he(XE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),TW=U.forwardRef(function(t,r){var n,i,o,a,s,l;const c=ft({name:"MuiModal",props:t}),{BackdropComponent:u=RW,BackdropProps:f,className:d,closeAfterTransition:b=!1,children:p,container:v,component:w,components:C={},componentsProps:y={},disableAutoFocus:M=!1,disableEnforceFocus:B=!1,disableEscapeKeyDown:D=!1,disablePortal:F=!1,disableRestoreFocus:N=!1,disableScrollLock:_=!1,hideBackdrop:L=!1,keepMounted:I=!1,onBackdropClick:R,open:m,slotProps:g,slots:h}=c,x=Ee(c,AW),S=W({},c,{closeAfterTransition:b,disableAutoFocus:M,disableEnforceFocus:B,disableEscapeKeyDown:D,disablePortal:F,disableRestoreFocus:N,disableScrollLock:_,hideBackdrop:L,keepMounted:I}),{getRootProps:T,getBackdropProps:k,getTransitionProps:$,portalRef:P,isTopModal:E,exited:A,hasTransition:z}=Lz(W({},S,{rootRef:r})),H=W({},S,{exited:A}),O=kW(H),V={};if(p.props.tabIndex===void 0&&(V.tabIndex="-1"),z){const{onEnter:Z,onExited:te}=$();V.onEnter=Z,V.onExited=te}const X=(n=(i=h==null?void 0:h.root)!=null?i:C.Root)!=null?n:_W,J=(o=(a=h==null?void 0:h.backdrop)!=null?a:C.Backdrop)!=null?o:u,G=(s=g==null?void 0:g.root)!=null?s:y.root,j=(l=g==null?void 0:g.backdrop)!=null?l:y.backdrop,q=Nn({elementType:X,externalSlotProps:G,externalForwardedProps:x,getSlotProps:T,additionalProps:{ref:r,as:w},ownerState:H,className:Se(d,G==null?void 0:G.className,O==null?void 0:O.root,!H.open&&H.exited&&(O==null?void 0:O.hidden))}),K=Nn({elementType:J,externalSlotProps:j,additionalProps:f,getSlotProps:Z=>k(W({},Z,{onClick:te=>{R&&R(te),Z!=null&&Z.onClick&&Z.onClick(te)}})),className:Se(j==null?void 0:j.className,f==null?void 0:f.className,O==null?void 0:O.backdrop),ownerState:H});return!I&&!m&&(!z||A)?null:Y.jsx(BE,{ref:P,container:v,disablePortal:F,children:Y.jsxs(X,W({},q,{children:[!L&&u?Y.jsx(J,W({},K)):null,Y.jsx(kz,{disableEnforceFocus:B,disableAutoFocus:M,disableRestoreFocus:N,isEnabled:E,open:m,children:U.cloneElement(p,V)})]}))})}),m4=TW;function $W(e){return nt("MuiDialog",e)}const BW=tt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Im=BW,IW=U.createContext({}),ZE=IW,FW=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],OW=he(XE,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),DW=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${ue(r)}`],paper:["paper",`paperScroll${ue(r)}`,`paperWidth${ue(String(n))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return it(a,$W,t)},LW=he(m4,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),NW=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ue(r.scroll)}`]]}})(({ownerState:e})=>W({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),zW=he(ga,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ue(r.scroll)}`],t[`paperWidth${ue(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>W({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Im.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Im.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Im.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),jW=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiDialog"}),i=pa(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:d=!1,fullScreen:b=!1,fullWidth:p=!1,maxWidth:v="sm",onBackdropClick:w,onClose:C,open:y,PaperComponent:M=ga,PaperProps:B={},scroll:D="paper",TransitionComponent:F=YE,transitionDuration:N=o,TransitionProps:_}=n,L=Ee(n,FW),I=W({},n,{disableEscapeKeyDown:d,fullScreen:b,fullWidth:p,maxWidth:v,scroll:D}),R=DW(I),m=U.useRef(),g=T=>{m.current=T.target===T.currentTarget},h=T=>{m.current&&(m.current=null,w&&w(T),C&&C(T,"backdropClick"))},x=Za(s),S=U.useMemo(()=>({titleId:x}),[x]);return Y.jsx(LW,W({className:Se(R.root,f),closeAfterTransition:!0,components:{Backdrop:OW},componentsProps:{backdrop:W({transitionDuration:N,as:l},c)},disableEscapeKeyDown:d,onClose:C,open:y,ref:r,onClick:h,ownerState:I},L,{children:Y.jsx(F,W({appear:!0,in:y,timeout:N,role:"presentation"},_,{children:Y.jsx(NW,{className:Se(R.container),onMouseDown:g,ownerState:I,children:Y.jsx(zW,W({as:M,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":x},B,{className:Se(R.paper,B.className),ownerState:I,children:Y.jsx(ZE.Provider,{value:S,children:u})}))})}))}))}),aue=jW;function UW(e){return nt("MuiDialogActions",e)}tt("MuiDialogActions",["root","spacing"]);const HW=["className","disableSpacing"],WW=e=>{const{classes:t,disableSpacing:r}=e;return it({root:["root",!r&&"spacing"]},UW,t)},VW=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>W({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),qW=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,a=Ee(n,HW),s=W({},n,{disableSpacing:o}),l=WW(s);return Y.jsx(VW,W({className:Se(l.root,i),ownerState:s,ref:r},a))}),sue=qW;function KW(e){return nt("MuiDialogContent",e)}tt("MuiDialogContent",["root","dividers"]);function GW(e){return nt("MuiDialogTitle",e)}const YW=tt("MuiDialogTitle",["root"]),XW=YW,JW=["className","dividers"],ZW=e=>{const{classes:t,dividers:r}=e;return it({root:["root",r&&"dividers"]},KW,t)},QW=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>W({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${XW.root} + &`]:{paddingTop:0}})),eV=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,a=Ee(n,JW),s=W({},n,{dividers:o}),l=ZW(s);return Y.jsx(QW,W({className:Se(l.root,i),ownerState:s,ref:r},a))}),lue=eV,tV=["className","id"],rV=e=>{const{classes:t}=e;return it({root:["root"]},GW,t)},nV=he(La,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),iV=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiDialogTitle"}),{className:i,id:o}=n,a=Ee(n,tV),s=n,l=rV(s),{titleId:c=o}=U.useContext(ZE);return Y.jsx(nV,W({component:"h2",className:Se(l.root,i),ownerState:s,ref:r,variant:"h6",id:o??c},a))}),cue=iV,oV=tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),H8=oV,aV=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sV(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),o=_i(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=o.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?i?`translateX(-${n.right-i.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-n.top}px)`:`translateY(${o.innerHeight+l-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function lV(e){return typeof e=="function"?e():e}function gd(e,t,r){const n=lV(r),i=sV(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const cV=U.forwardRef(function(t,r){const n=pa(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=i,in:d,onEnter:b,onEntered:p,onEntering:v,onExit:w,onExited:C,onExiting:y,style:M,timeout:B=o,TransitionComponent:D=i4}=t,F=Ee(t,aV),N=U.useRef(null),_=Vt(l.ref,N,r),L=k=>$=>{k&&($===void 0?k(N.current):k(N.current,$))},I=L((k,$)=>{gd(u,k,c),s4(k),b&&b(k,$)}),R=L((k,$)=>{const P=Tc({timeout:B,style:M,easing:f},{mode:"enter"});k.style.webkitTransition=n.transitions.create("-webkit-transform",W({},P)),k.style.transition=n.transitions.create("transform",W({},P)),k.style.webkitTransform="none",k.style.transform="none",v&&v(k,$)}),m=L(p),g=L(y),h=L(k=>{const $=Tc({timeout:B,style:M,easing:f},{mode:"exit"});k.style.webkitTransition=n.transitions.create("-webkit-transform",$),k.style.transition=n.transitions.create("transform",$),gd(u,k,c),w&&w(k)}),x=L(k=>{k.style.webkitTransition="",k.style.transition="",C&&C(k)}),S=k=>{a&&a(N.current,k)},T=U.useCallback(()=>{N.current&&gd(u,N.current,c)},[u,c]);return U.useEffect(()=>{if(d||u==="down"||u==="right")return;const k=Xc(()=>{N.current&&gd(u,N.current,c)}),$=_i(N.current);return $.addEventListener("resize",k),()=>{k.clear(),$.removeEventListener("resize",k)}},[u,d,c]),U.useEffect(()=>{d||T()},[d,T]),Y.jsx(D,W({nodeRef:N,onEnter:I,onEntered:m,onEntering:R,onExit:h,onExited:x,onExiting:g,addEndListener:S,appear:s,in:d,timeout:B},F,{children:(k,$)=>U.cloneElement(l,W({ref:_,style:W({visibility:k==="exited"&&!d?"hidden":void 0},M,l.props.style)},$))}))}),uV=cV;function fV(e){return nt("MuiDrawer",e)}tt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const dV=["BackdropProps"],hV=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],QE=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},pV=e=>{const{classes:t,anchor:r,variant:n}=e,i={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ue(r)}`,n!=="temporary"&&`paperAnchorDocked${ue(r)}`]};return it(i,fV,t)},xV=he(m4,{name:"MuiDrawer",slot:"Root",overridesResolver:QE})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),W8=he("div",{shouldForwardProp:Zr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:QE})({flex:"0 0 auto"}),mV=he(ga,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ue(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ue(r.anchor)}`]]}})(({theme:e,ownerState:t})=>W({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),eM={left:"right",right:"left",top:"down",bottom:"up"};function gV(e){return["left","right"].indexOf(e)!==-1}function vV({direction:e},t){return e==="rtl"&&gV(t)?eM[t]:t}const bV=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiDrawer"}),i=pa(),o=Jc(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:b}={},onClose:p,open:v=!1,PaperProps:w={},SlideProps:C,TransitionComponent:y=uV,transitionDuration:M=a,variant:B="temporary"}=n,D=Ee(n.ModalProps,dV),F=Ee(n,hV),N=U.useRef(!1);U.useEffect(()=>{N.current=!0},[]);const _=vV({direction:o?"rtl":"ltr"},s),I=W({},n,{anchor:s,elevation:f,open:v,variant:B},F),R=pV(I),m=Y.jsx(mV,W({elevation:B==="temporary"?f:0,square:!0},w,{className:Se(R.paper,w.className),ownerState:I,children:c}));if(B==="permanent")return Y.jsx(W8,W({className:Se(R.root,R.docked,u),ownerState:I,ref:r},F,{children:m}));const g=Y.jsx(y,W({in:v,direction:eM[_],timeout:M,appear:N.current},C,{children:m}));return B==="persistent"?Y.jsx(W8,W({className:Se(R.root,R.docked,u),ownerState:I,ref:r},F,{children:g})):Y.jsx(xV,W({BackdropProps:W({},l,b,{transitionDuration:M}),className:Se(R.root,R.modal,u),open:v,ownerState:I,onClose:p,hideBackdrop:d,ref:r},F,D,{children:g}))}),uue=bV;function yV(e){return nt("MuiFab",e)}const wV=tt("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),V8=wV,SV=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],CV=e=>{const{color:t,variant:r,classes:n,size:i}=e,o={root:["root",r,`size${ue(i)}`,t==="inherit"?"colorInherit":t]},a=it(o,yV,n);return W({},n,a)},EV=he(co,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Zr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ue(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ue(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return W({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${V8.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>W({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${V8.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),MV=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiFab"}),{children:i,className:o,color:a="default",component:s="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:f="large",variant:d="circular"}=n,b=Ee(n,SV),p=W({},n,{color:a,component:s,disabled:l,disableFocusRipple:c,size:f,variant:d}),v=CV(p);return Y.jsx(EV,W({className:Se(v.root,o),component:s,disabled:l,focusRipple:!c,focusVisibleClassName:Se(v.focusVisible,u),ownerState:p,ref:r},b,{classes:v,children:i}))}),fue=MV,PV=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],AV=e=>{const{classes:t,disableUnderline:r}=e,i=it({root:["root",!r&&"underline"],input:["input"]},UU,t);return W({},t,i)},kV=he(E1,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...S1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return W({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Gn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Gn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gn.disabled}, .${Gn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Gn.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&W({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),_V=he(M1,{name:"MuiFilledInput",slot:"Input",overridesResolver:C1})(({theme:e,ownerState:t})=>W({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),tM=U.forwardRef(function(t,r){var n,i,o,a;const s=ft({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:d=!1,slotProps:b,slots:p={},type:v="text"}=s,w=Ee(s,PV),C=W({},s,{fullWidth:u,inputComponent:f,multiline:d,type:v}),y=AV(s),M={root:{ownerState:C},input:{ownerState:C}},B=b??c?gn(M,b??c):M,D=(n=(i=p.root)!=null?i:l.Root)!=null?n:kV,F=(o=(a=p.input)!=null?a:l.Input)!=null?o:_V;return Y.jsx(P1,W({slots:{root:D,input:F},componentsProps:B,fullWidth:u,inputComponent:f,multiline:d,ref:r,type:v},w,{classes:y}))});tM.muiName="Input";const rM=tM;function RV(e){return nt("MuiFormControl",e)}tt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const TV=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],$V=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${ue(r)}`,n&&"fullWidth"]};return it(i,RV,t)},BV=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>W({},t.root,t[`margin${ue(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>W({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),IV=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:d=!1,margin:b="none",required:p=!1,size:v="medium",variant:w="outlined"}=n,C=Ee(n,TV),y=W({},n,{color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:d,margin:b,required:p,size:v,variant:w}),M=$V(y),[B,D]=U.useState(()=>{let g=!1;return i&&U.Children.forEach(i,h=>{if(!af(h,["Input","Select"]))return;const x=af(h,["Select"])?h.props.input:h;x&&$U(x.props)&&(g=!0)}),g}),[F,N]=U.useState(()=>{let g=!1;return i&&U.Children.forEach(i,h=>{af(h,["Input","Select"])&&(zh(h.props,!0)||zh(h.props.inputProps,!0))&&(g=!0)}),g}),[_,L]=U.useState(!1);l&&_&&L(!1);const I=u!==void 0&&!l?u:_;let R;const m=U.useMemo(()=>({adornedStart:B,setAdornedStart:D,color:a,disabled:l,error:c,filled:F,focused:I,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{L(!1)},onEmpty:()=>{N(!1)},onFilled:()=>{N(!0)},onFocus:()=>{L(!0)},registerEffect:R,required:p,variant:w}),[B,a,l,c,F,I,f,d,R,p,v,w]);return Y.jsx(w1.Provider,{value:m,children:Y.jsx(BV,W({as:s,ownerState:y,className:Se(M.root,o),ref:r},C,{children:i}))})}),FV=IV,OV=OF({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ft({props:e,name:"MuiStack"})}),DV=OV;function LV(e){return nt("MuiFormControlLabel",e)}const NV=tt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Qu=NV,zV=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],jV=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:o}=e,a={root:["root",r&&"disabled",`labelPlacement${ue(n)}`,i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return it(a,LV,t)},UV=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qu.label}`]:t.label},t.root,t[`labelPlacement${ue(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>W({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qu.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Qu.label}`]:{[`&.${Qu.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),HV=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Qu.error}`]:{color:(e.vars||e).palette.error.main}})),WV=U.forwardRef(function(t,r){var n,i;const o=ft({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:d="end",required:b,slotProps:p={}}=o,v=Ee(o,zV),w=va(),C=(n=c??l.props.disabled)!=null?n:w==null?void 0:w.disabled,y=b??l.props.required,M={disabled:C,required:y};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof l.props[L]>"u"&&typeof o[L]<"u"&&(M[L]=o[L])});const B=pl({props:o,muiFormControl:w,states:["error"]}),D=W({},o,{disabled:C,labelPlacement:d,required:y,error:B.error}),F=jV(D),N=(i=p.typography)!=null?i:s.typography;let _=f;return _!=null&&_.type!==La&&!u&&(_=Y.jsx(La,W({component:"span"},N,{className:Se(F.label,N==null?void 0:N.className),children:_}))),Y.jsxs(UV,W({className:Se(F.root,a),ownerState:D,ref:r},v,{children:[U.cloneElement(l,M),y?Y.jsxs(DV,{display:"block",children:[_,Y.jsxs(HV,{ownerState:D,"aria-hidden":!0,className:F.asterisk,children:[" ","*"]})]}):_]}))}),due=WV;function VV(e){return nt("MuiFormHelperText",e)}const qV=tt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),q8=qV;var K8;const KV=["children","className","component","disabled","error","filled","focused","margin","required","variant"],GV=e=>{const{classes:t,contained:r,size:n,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",n&&`size${ue(n)}`,r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return it(c,VV,t)},YV=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ue(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>W({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${q8.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${q8.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),XV=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=n,s=Ee(n,KV),l=va(),c=pl({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=W({},n,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=GV(u);return Y.jsx(YV,W({as:a,ownerState:u,className:Se(f.root,o),ref:r},s,{children:i===" "?K8||(K8=Y.jsx("span",{className:"notranslate",children:"​"})):i}))}),JV=XV;function ZV(e){return nt("MuiFormLabel",e)}const QV=tt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bf=QV,eq=["children","className","color","component","disabled","error","filled","focused","required"],tq=e=>{const{classes:t,color:r,focused:n,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${ue(r)}`,i&&"disabled",o&&"error",a&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return it(l,ZV,t)},rq=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>W({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>W({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${bf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bf.error}`]:{color:(e.vars||e).palette.error.main}})),nq=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${bf.error}`]:{color:(e.vars||e).palette.error.main}})),iq=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=n,s=Ee(n,eq),l=va(),c=pl({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=W({},n,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=tq(u);return Y.jsxs(rq,W({as:a,ownerState:u,className:Se(f.root,o),ref:r},s,{children:[i,c.required&&Y.jsxs(nq,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),oq=iq,aq=U.createContext(),G8=aq;function sq(e){return nt("MuiGrid",e)}const lq=[0,1,2,3,4,5,6,7,8,9,10],cq=["column-reverse","column","row-reverse","row"],uq=["nowrap","wrap-reverse","wrap"],Au=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],r0=tt("MuiGrid",["root","container","item","zeroMinWidth",...lq.map(e=>`spacing-xs-${e}`),...cq.map(e=>`direction-xs-${e}`),...uq.map(e=>`wrap-xs-${e}`),...Au.map(e=>`grid-xs-${e}`),...Au.map(e=>`grid-sm-${e}`),...Au.map(e=>`grid-md-${e}`),...Au.map(e=>`grid-lg-${e}`),...Au.map(e=>`grid-xl-${e}`)]),fq=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function hc(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function dq({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,i)=>{let o={};if(t[i]&&(r=t[i]),!r)return n;if(r===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Hs({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return n;const l=`${Math.round(r/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${hc(u)})`;c={flexBasis:f,maxWidth:f}}}o=W({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[i]===0?Object.assign(n,o):n[e.breakpoints.up(i)]=o,n},{})}function hq({theme:e,ownerState:t}){const r=Hs({values:t.direction,breakpoints:e.breakpoints.values});return Ln({theme:e},r,n=>{const i={flexDirection:n};return n.indexOf("column")===0&&(i[`& > .${r0.item}`]={maxWidth:"none"}),i})}function nM({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(i=>{r===""&&t[i]!==0&&(r=i)});const n=Object.keys(e).sort((i,o)=>e[i]-e[o]);return n.slice(0,n.indexOf(r))}function pq({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let i={};if(r&&n!==0){const o=Hs({values:n,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=nM({breakpoints:e.breakpoints.values,values:o})),i=Ln({theme:e},o,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${hc(u)}`,[`& > .${r0.item}`]:{paddingTop:hc(u)}}:(c=a)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${r0.item}`]:{paddingTop:0}}})}return i}function xq({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let i={};if(r&&n!==0){const o=Hs({values:n,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=nM({breakpoints:e.breakpoints.values,values:o})),i=Ln({theme:e},o,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${hc(u)})`,marginLeft:`-${hc(u)}`,[`& > .${r0.item}`]:{paddingLeft:hc(u)}}:(c=a)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${r0.item}`]:{paddingLeft:0}}})}return i}function mq(e,t,r={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(i=>{const o=e[i];Number(o)>0&&n.push(r[`spacing-${i}-${String(o)}`])}),n}const gq=he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=r;let u=[];n&&(u=mq(a,c,t));const f=[];return c.forEach(d=>{const b=r[d];b&&f.push(t[`grid-${d}-${String(b)}`])}),[t.root,n&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>W({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),hq,pq,xq,dq);function vq(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const r=[];return t.forEach(n=>{const i=e[n];if(Number(i)>0){const o=`spacing-${n}-${String(i)}`;r.push(o)}}),r}const bq=e=>{const{classes:t,container:r,direction:n,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];r&&(c=vq(o,l));const u=[];l.forEach(d=>{const b=e[d];b&&u.push(`grid-${d}-${String(b)}`)});const f={root:["root",r&&"container",i&&"item",s&&"zeroMinWidth",...c,n!=="row"&&`direction-xs-${String(n)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...u]};return it(f,sq,t)},yq=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiGrid"}),{breakpoints:i}=pa(),o=P0(n),{className:a,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:d=!1,rowSpacing:b,spacing:p=0,wrap:v="wrap",zeroMinWidth:w=!1}=o,C=Ee(o,fq),y=b||p,M=l||p,B=U.useContext(G8),D=u?s||12:B,F={},N=W({},C);i.keys.forEach(I=>{C[I]!=null&&(F[I]=C[I],delete N[I])});const _=W({},o,{columns:D,container:u,direction:f,item:d,rowSpacing:y,columnSpacing:M,wrap:v,zeroMinWidth:w,spacing:p},F,{breakpoints:i.keys}),L=bq(_);return Y.jsx(G8.Provider,{value:D,children:Y.jsx(gq,W({ownerState:_,className:Se(L.root,a),as:c,ref:r},N))})}),hue=yq,wq=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Wv(e){return`scale(${e}, ${e**2})`}const Sq={entering:{opacity:1,transform:Wv(1)},entered:{opacity:1,transform:"none"}},Fm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iM=U.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:d,onExiting:b,style:p,timeout:v="auto",TransitionComponent:w=i4}=t,C=Ee(t,wq),y=Bs(),M=U.useRef(),B=pa(),D=U.useRef(null),F=Vt(D,o.ref,r),N=x=>S=>{if(x){const T=D.current;S===void 0?x(T):x(T,S)}},_=N(u),L=N((x,S)=>{s4(x);const{duration:T,delay:k,easing:$}=Tc({style:p,timeout:v,easing:a},{mode:"enter"});let P;v==="auto"?(P=B.transitions.getAutoHeightDuration(x.clientHeight),M.current=P):P=T,x.style.transition=[B.transitions.create("opacity",{duration:P,delay:k}),B.transitions.create("transform",{duration:Fm?P:P*.666,delay:k,easing:$})].join(","),l&&l(x,S)}),I=N(c),R=N(b),m=N(x=>{const{duration:S,delay:T,easing:k}=Tc({style:p,timeout:v,easing:a},{mode:"exit"});let $;v==="auto"?($=B.transitions.getAutoHeightDuration(x.clientHeight),M.current=$):$=S,x.style.transition=[B.transitions.create("opacity",{duration:$,delay:T}),B.transitions.create("transform",{duration:Fm?$:$*.666,delay:Fm?T:T||$*.333,easing:k})].join(","),x.style.opacity=0,x.style.transform=Wv(.75),f&&f(x)}),g=N(d),h=x=>{v==="auto"&&y.start(M.current||0,x),n&&n(D.current,x)};return Y.jsx(w,W({appear:i,in:s,nodeRef:D,onEnter:L,onEntered:I,onEntering:_,onExit:m,onExited:g,onExiting:R,addEndListener:h,timeout:v==="auto"?null:v},C,{children:(x,S)=>U.cloneElement(o,W({style:W({opacity:0,transform:Wv(.75),visibility:x==="exited"&&!s?"hidden":void 0},Sq[x],p,o.props.style),ref:F},S))}))});iM.muiSupportAuto=!0;const jh=iM,Cq=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Eq=e=>{const{classes:t,disableUnderline:r}=e,i=it({root:["root",!r&&"underline"],input:["input"]},NU,t);return W({},t,i)},Mq=he(E1,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...S1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),W({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ia.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ia.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ia.disabled}, .${Ia.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ia.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Pq=he(M1,{name:"MuiInput",slot:"Input",overridesResolver:C1})({}),oM=U.forwardRef(function(t,r){var n,i,o,a;const s=ft({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:d="input",multiline:b=!1,slotProps:p,slots:v={},type:w="text"}=s,C=Ee(s,Cq),y=Eq(s),B={root:{ownerState:{disableUnderline:l}}},D=p??u?gn(p??u,B):B,F=(n=(i=v.root)!=null?i:c.Root)!=null?n:Mq,N=(o=(a=v.input)!=null?a:c.Input)!=null?o:Pq;return Y.jsx(P1,W({slots:{root:F,input:N},slotProps:D,fullWidth:f,inputComponent:d,multiline:b,ref:r,type:w},C,{classes:y}))});oM.muiName="Input";const aM=oM;function Aq(e){return nt("MuiInputAdornment",e)}const kq=tt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Y8=kq;var X8;const _q=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Rq=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ue(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Tq=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:o,variant:a}=e,s={root:["root",r&&"disablePointerEvents",i&&`position${ue(i)}`,a,n&&"hiddenLabel",o&&`size${ue(o)}`]};return it(s,Aq,t)},$q=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Rq})(({theme:e,ownerState:t})=>W({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Y8.positionStart}&:not(.${Y8.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Bq=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=n,f=Ee(n,_q),d=va()||{};let b=u;u&&d.variant,d&&!b&&(b=d.variant);const p=W({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:s,position:c,variant:b}),v=Tq(p);return Y.jsx(w1.Provider,{value:null,children:Y.jsx($q,W({as:a,ownerState:p,className:Se(v.root,o),ref:r},f,{children:typeof i=="string"&&!l?Y.jsx(La,{color:"text.secondary",children:i}):Y.jsxs(U.Fragment,{children:[c==="start"?X8||(X8=Y.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),pue=Bq;function Iq(e){return nt("MuiInputLabel",e)}tt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fq=["disableAnimation","margin","shrink","variant","className"],Oq=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",r&&"formControl",!o&&"animated",i&&"shrink",n&&n!=="normal"&&`size${ue(n)}`,a],asterisk:[s&&"asterisk"]},c=it(l,Iq,t);return W({},t,c)},Dq=he(oq,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bf.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>W({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&W({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&W({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&W({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Lq=U.forwardRef(function(t,r){const n=ft({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=n,s=Ee(n,Fq),l=va();let c=o;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=pl({props:n,muiFormControl:l,states:["size","variant","required","focused"]}),f=W({},n,{disableAnimation:i,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=Oq(f);return Y.jsx(Dq,W({"data-shrink":c,ownerState:f,ref:r,className:Se(d.root,a)},s,{classes:d}))}),Nq=Lq,zq=U.createContext({}),ki=zq;function jq(e){return nt("MuiList",e)}tt("MuiList",["root","padding","dense","subheader"]);const Uq=["children","className","component","dense","disablePadding","subheader"],Hq=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return it({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},jq,t)},Wq=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>W({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Vq=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,u=Ee(n,Uq),f=U.useMemo(()=>({dense:s}),[s]),d=W({},n,{component:a,dense:s,disablePadding:l}),b=Hq(d);return Y.jsx(ki.Provider,{value:f,children:Y.jsxs(Wq,W({as:a,className:Se(b.root,o),ref:r,ownerState:d},u,{children:[c,i]}))})}),qq=Vq;function Kq(e){return nt("MuiListItem",e)}const Gq=tt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Ol=Gq;function Yq(e){return nt("MuiListItemButton",e)}const Xq=tt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Dl=Xq,Jq=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Zq=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Qq=e=>{const{alignItems:t,classes:r,dense:n,disabled:i,disableGutters:o,divider:a,selected:s}=e,c=it({root:["root",n&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},Yq,r);return W({},r,c)},eK=he(co,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Zq})(({theme:e,ownerState:t})=>W({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Dl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Dl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Dl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),tK=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:f,selected:d=!1,className:b}=n,p=Ee(n,Jq),v=U.useContext(ki),w=U.useMemo(()=>({dense:l||v.dense||!1,alignItems:i,disableGutters:c}),[i,v.dense,l,c]),C=U.useRef(null);bn(()=>{o&&C.current&&C.current.focus()},[o]);const y=W({},n,{alignItems:i,dense:w.dense,disableGutters:c,divider:u,selected:d}),M=Qq(y),B=Vt(C,r);return Y.jsx(ki.Provider,{value:w,children:Y.jsx(eK,W({ref:B,href:p.href||p.to,component:(p.href||p.to)&&a==="div"?"button":a,focusVisibleClassName:Se(M.focusVisible,f),ownerState:y,className:Se(M.root,b)},p,{classes:M,children:s}))})}),xue=tK;function rK(e){return nt("MuiListItemSecondaryAction",e)}tt("MuiListItemSecondaryAction",["root","disableGutters"]);const nK=["className"],iK=e=>{const{disableGutters:t,classes:r}=e;return it({root:["root",t&&"disableGutters"]},rK,r)},oK=he("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>W({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),sM=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,o=Ee(n,nK),a=U.useContext(ki),s=W({},n,{disableGutters:a.disableGutters}),l=iK(s);return Y.jsx(oK,W({className:Se(l.root,i),ownerState:s,ref:r},o))});sM.muiName="ListItemSecondaryAction";const aK=sM,sK=["className"],lK=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],cK=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},uK=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return it({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Kq,n)},fK=he("div",{name:"MuiListItem",slot:"Root",overridesResolver:cK})(({theme:e,ownerState:t})=>W({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&W({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Dl.root}`]:{paddingRight:48}},{[`&.${Ol.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ol.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ol.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ol.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ol.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),dK=he("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),hK=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:b}={},dense:p=!1,disabled:v=!1,disableGutters:w=!1,disablePadding:C=!1,divider:y=!1,focusVisibleClassName:M,secondaryAction:B,selected:D=!1,slotProps:F={},slots:N={}}=n,_=Ee(n.ContainerProps,sK),L=Ee(n,lK),I=U.useContext(ki),R=U.useMemo(()=>({dense:p||I.dense||!1,alignItems:i,disableGutters:w}),[i,I.dense,p,w]),m=U.useRef(null);bn(()=>{o&&m.current&&m.current.focus()},[o]);const g=U.Children.toArray(s),h=g.length&&af(g[g.length-1],["ListItemSecondaryAction"]),x=W({},n,{alignItems:i,autoFocus:o,button:a,dense:R.dense,disabled:v,disableGutters:w,disablePadding:C,divider:y,hasSecondaryAction:h,selected:D}),S=uK(x),T=Vt(m,r),k=N.root||u.Root||fK,$=F.root||f.root||{},P=W({className:Se(S.root,$.className,l),disabled:v},L);let E=c||"li";return a&&(P.component=c||"div",P.focusVisibleClassName=Se(Ol.focusVisible,M),E=co),h?(E=!P.component&&!c?"div":E,d==="li"&&(E==="li"?E="div":P.component==="li"&&(P.component="div")),Y.jsx(ki.Provider,{value:R,children:Y.jsxs(dK,W({as:d,className:Se(S.container,b),ref:T,ownerState:x},_,{children:[Y.jsx(k,W({},$,!il(k)&&{as:E,ownerState:W({},x,$.ownerState)},P,{children:g})),g.pop()]}))})):Y.jsx(ki.Provider,{value:R,children:Y.jsxs(k,W({},$,{as:E,ref:T},!il(k)&&{ownerState:W({},x,$.ownerState)},P,{children:[g,B&&Y.jsx(aK,{children:B})]}))})}),mue=hK;function pK(e){return nt("MuiListItemAvatar",e)}tt("MuiListItemAvatar",["root","alignItemsFlexStart"]);const xK=["className"],mK=e=>{const{alignItems:t,classes:r}=e;return it({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},pK,r)},gK=he("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>W({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),vK=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiListItemAvatar"}),{className:i}=n,o=Ee(n,xK),a=U.useContext(ki),s=W({},n,{alignItems:a.alignItems}),l=mK(s);return Y.jsx(gK,W({className:Se(l.root,i),ownerState:s,ref:r},o))}),gue=vK;function bK(e){return nt("MuiListItemIcon",e)}const yK=tt("MuiListItemIcon",["root","alignItemsFlexStart"]),J8=yK,wK=["className"],SK=e=>{const{alignItems:t,classes:r}=e;return it({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},bK,r)},CK=he("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>W({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),EK=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiListItemIcon"}),{className:i}=n,o=Ee(n,wK),a=U.useContext(ki),s=W({},n,{alignItems:a.alignItems}),l=SK(s);return Y.jsx(CK,W({className:Se(l.root,i),ownerState:s,ref:r},o))}),vue=EK;function MK(e){return nt("MuiListItemText",e)}const PK=tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Uh=PK,AK=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],kK=e=>{const{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return it({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},MK,t)},_K=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Uh.primary}`]:t.primary},{[`& .${Uh.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>W({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),RK=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=n,d=Ee(n,AK),{dense:b}=U.useContext(ki);let p=l??i,v=u;const w=W({},n,{disableTypography:a,inset:s,primary:!!p,secondary:!!v,dense:b}),C=kK(w);return p!=null&&p.type!==La&&!a&&(p=Y.jsx(La,W({variant:b?"body2":"body1",className:C.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:p}))),v!=null&&v.type!==La&&!a&&(v=Y.jsx(La,W({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},f,{children:v}))),Y.jsxs(_K,W({className:Se(C.root,o),ownerState:w,ref:r},d,{children:[p,v]}))}),bue=RK,TK=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Om(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Z8(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function lM(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function ku(e,t,r,n,i,o){let a=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!lM(s,o)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const $K=U.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,d=Ee(t,TK),b=U.useRef(null),p=U.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});bn(()=>{i&&b.current.focus()},[i]),U.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(M,{direction:B})=>{const D=!b.current.style.width;if(M.clientHeight{const B=b.current,D=M.key,F=Er(B).activeElement;if(D==="ArrowDown")M.preventDefault(),ku(B,F,c,l,Om);else if(D==="ArrowUp")M.preventDefault(),ku(B,F,c,l,Z8);else if(D==="Home")M.preventDefault(),ku(B,null,c,l,Om);else if(D==="End")M.preventDefault(),ku(B,null,c,l,Z8);else if(D.length===1){const N=p.current,_=D.toLowerCase(),L=performance.now();N.keys.length>0&&(L-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&_!==N.keys[0]&&(N.repeating=!1)),N.lastTime=L,N.keys.push(_);const I=F&&!N.repeating&&lM(F,N);N.previousKeyMatched&&(I||ku(B,F,!1,l,Om,N))?M.preventDefault():N.previousKeyMatched=!1}u&&u(M)},w=Vt(b,r);let C=-1;U.Children.forEach(a,(M,B)=>{if(!U.isValidElement(M)){C===B&&(C+=1,C>=a.length&&(C=-1));return}M.props.disabled||(f==="selectedMenu"&&M.props.selected||C===-1)&&(C=B),C===B&&(M.props.disabled||M.props.muiSkipListHighlight||M.type.muiSkipListHighlight)&&(C+=1,C>=a.length&&(C=-1))});const y=U.Children.map(a,(M,B)=>{if(B===C){const D={};return o&&(D.autoFocus=!0),M.props.tabIndex===void 0&&f==="selectedMenu"&&(D.tabIndex=0),U.cloneElement(M,D)}return M});return Y.jsx(qq,W({role:"menu",ref:w,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),BK=$K;function IK(e){return nt("MuiPopover",e)}tt("MuiPopover",["root","paper"]);const FK=["onEntering"],OK=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],DK=["slotProps"];function Q8(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function e5(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function t5(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Dm(e){return typeof e=="function"?e():e}const LK=e=>{const{classes:t}=e;return it({root:["root"],paper:["paper"]},IK,t)},NK=he(m4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cM=he(ga,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),zK=U.forwardRef(function(t,r){var n,i,o;const a=ft({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:d,className:b,container:p,elevation:v=8,marginThreshold:w=16,open:C,PaperProps:y={},slots:M,slotProps:B,transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:F=jh,transitionDuration:N="auto",TransitionProps:{onEntering:_}={},disableScrollLock:L=!1}=a,I=Ee(a.TransitionProps,FK),R=Ee(a,OK),m=(n=B==null?void 0:B.paper)!=null?n:y,g=U.useRef(),h=Vt(g,m.ref),x=W({},a,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:w,externalPaperSlotProps:m,transformOrigin:D,TransitionComponent:F,transitionDuration:N,TransitionProps:I}),S=LK(x),T=U.useCallback(()=>{if(f==="anchorPosition")return u;const Z=Dm(l),Q=(Z&&Z.nodeType===1?Z:Er(g.current).body).getBoundingClientRect();return{top:Q.top+Q8(Q,c.vertical),left:Q.left+e5(Q,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),k=U.useCallback(Z=>({vertical:Q8(Z,D.vertical),horizontal:e5(Z,D.horizontal)}),[D.horizontal,D.vertical]),$=U.useCallback(Z=>{const te={width:Z.offsetWidth,height:Z.offsetHeight},Q=k(te);if(f==="none")return{top:null,left:null,transformOrigin:t5(Q)};const oe=T();let me=oe.top-Q.vertical,se=oe.left-Q.horizontal;const ye=me+te.height,Re=se+te.width,we=_i(Dm(l)),He=we.innerHeight-w,Ue=we.innerWidth-w;if(w!==null&&meHe){const Me=ye-He;me-=Me,Q.vertical+=Me}if(w!==null&&seUe){const Me=Re-Ue;se-=Me,Q.horizontal+=Me}return{top:`${Math.round(me)}px`,left:`${Math.round(se)}px`,transformOrigin:t5(Q)}},[l,f,T,k,w]),[P,E]=U.useState(C),A=U.useCallback(()=>{const Z=g.current;if(!Z)return;const te=$(Z);te.top!==null&&(Z.style.top=te.top),te.left!==null&&(Z.style.left=te.left),Z.style.transformOrigin=te.transformOrigin,E(!0)},[$]);U.useEffect(()=>(L&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[l,L,A]);const z=(Z,te)=>{_&&_(Z,te),A()},H=()=>{E(!1)};U.useEffect(()=>{C&&A()}),U.useImperativeHandle(s,()=>C?{updatePosition:()=>{A()}}:null,[C,A]),U.useEffect(()=>{if(!C)return;const Z=Xc(()=>{A()}),te=_i(l);return te.addEventListener("resize",Z),()=>{Z.clear(),te.removeEventListener("resize",Z)}},[l,C,A]);let O=N;N==="auto"&&!F.muiSupportAuto&&(O=void 0);const V=p||(l?Er(Dm(l)).body:void 0),X=(i=M==null?void 0:M.root)!=null?i:NK,J=(o=M==null?void 0:M.paper)!=null?o:cM,G=Nn({elementType:J,externalSlotProps:W({},m,{style:P?m.style:W({},m.style,{opacity:0})}),additionalProps:{elevation:v,ref:h},ownerState:x,className:Se(S.paper,m==null?void 0:m.className)}),j=Nn({elementType:X,externalSlotProps:(B==null?void 0:B.root)||{},externalForwardedProps:R,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:V,open:C},ownerState:x,className:Se(S.root,b)}),{slotProps:q}=j,K=Ee(j,DK);return Y.jsx(X,W({},K,!il(X)&&{slotProps:q,disableScrollLock:L},{children:Y.jsx(F,W({appear:!0,in:C,onEntering:z,onExited:H,timeout:O},I,{children:Y.jsx(J,W({},G,{children:d}))}))}))}),jK=zK;function UK(e){return nt("MuiMenu",e)}tt("MuiMenu",["root","paper","list"]);const HK=["onEntering"],WK=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],VK={vertical:"top",horizontal:"right"},qK={vertical:"top",horizontal:"left"},KK=e=>{const{classes:t}=e;return it({root:["root"],paper:["paper"],list:["list"]},UK,t)},GK=he(jK,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YK=he(cM,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),XK=he(BK,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),JK=U.forwardRef(function(t,r){var n,i;const o=ft({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:d,PaperProps:b={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:w}={},variant:C="selectedMenu",slots:y={},slotProps:M={}}=o,B=Ee(o.TransitionProps,HK),D=Ee(o,WK),F=Jc(),N=W({},o,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:w,PaperProps:b,transitionDuration:v,TransitionProps:B,variant:C}),_=KK(N),L=a&&!c&&d,I=U.useRef(null),R=(k,$)=>{I.current&&I.current.adjustStyleForScrollbar(k,{direction:F?"rtl":"ltr"}),w&&w(k,$)},m=k=>{k.key==="Tab"&&(k.preventDefault(),f&&f(k,"tabKeyDown"))};let g=-1;U.Children.map(s,(k,$)=>{U.isValidElement(k)&&(k.props.disabled||(C==="selectedMenu"&&k.props.selected||g===-1)&&(g=$))});const h=(n=y.paper)!=null?n:YK,x=(i=M.paper)!=null?i:b,S=Nn({elementType:y.root,externalSlotProps:M.root,ownerState:N,className:[_.root,l]}),T=Nn({elementType:h,externalSlotProps:x,ownerState:N,className:_.paper});return Y.jsx(GK,W({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?VK:qK,slots:{paper:h,root:y.root},slotProps:{root:S,paper:T},open:d,ref:r,transitionDuration:v,TransitionProps:W({onEntering:R},B),ownerState:N},D,{classes:p,children:Y.jsx(XK,W({onKeyDown:m,actions:I,autoFocus:a&&(g===-1||c),autoFocusItem:L,variant:C},u,{className:Se(_.list,u.className),children:s}))}))}),ZK=JK;function QK(e){return nt("MuiMenuItem",e)}const eG=tt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_u=eG,tG=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rG=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},nG=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:o,classes:a}=e,l=it({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",o&&"selected"]},QK,a);return W({},a,l)},iG=he(co,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:rG})(({theme:e,ownerState:t})=>W({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_u.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_u.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_u.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${H8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${H8.inset}`]:{marginLeft:52},[`& .${Uh.root}`]:{marginTop:0,marginBottom:0},[`& .${Uh.inset}`]:{paddingLeft:36},[`& .${J8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&W({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${J8.root} svg`]:{fontSize:"1.25rem"}}))),oG=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:d}=n,b=Ee(n,tG),p=U.useContext(ki),v=U.useMemo(()=>({dense:a||p.dense||!1,disableGutters:l}),[p.dense,a,l]),w=U.useRef(null);bn(()=>{i&&w.current&&w.current.focus()},[i]);const C=W({},n,{dense:v.dense,divider:s,disableGutters:l}),y=nG(n),M=Vt(w,r);let B;return n.disabled||(B=f!==void 0?f:-1),Y.jsx(ki.Provider,{value:v,children:Y.jsx(iG,W({ref:M,role:u,tabIndex:B,component:o,focusVisibleClassName:Se(y.focusVisible,c),className:Se(y.root,d)},b,{ownerState:C,classes:y}))})}),aG=oG;function sG(e){return nt("MuiNativeSelect",e)}const lG=tt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),g4=lG,cG=["className","disabled","error","IconComponent","inputRef","variant"],uG=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ue(r)}`,o&&"iconOpen",n&&"disabled"]};return it(s,sG,t)},uM=({ownerState:e,theme:t})=>W({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":W({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${g4.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),fG=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${g4.multiple}`]:t.multiple}]}})(uM),fM=({ownerState:e,theme:t})=>W({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${g4.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),dG=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ue(r.variant)}`],r.open&&t.iconOpen]}})(fM),hG=U.forwardRef(function(t,r){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,c=Ee(t,cG),u=W({},t,{disabled:i,variant:l,error:o}),f=uG(u);return Y.jsxs(U.Fragment,{children:[Y.jsx(fG,W({ownerState:u,className:Se(f.select,n),disabled:i,ref:s||r},c)),t.multiple?null:Y.jsx(dG,{as:a,ownerState:u,className:f.icon})]})}),pG=hG;var r5;const xG=["children","classes","className","label","notched"],mG=he("fieldset",{shouldForwardProp:Zr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),gG=he("legend",{shouldForwardProp:Zr})(({ownerState:e,theme:t})=>W({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&W({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function vG(e){const{className:t,label:r,notched:n}=e,i=Ee(e,xG),o=r!=null&&r!=="",a=W({},e,{notched:n,withLabel:o});return Y.jsx(mG,W({"aria-hidden":!0,className:t,ownerState:a},i,{children:Y.jsx(gG,{ownerState:a,children:o?Y.jsx("span",{children:r}):r5||(r5=Y.jsx("span",{className:"notranslate",children:"​"}))})}))}const bG=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yG=e=>{const{classes:t}=e,n=it({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zU,t);return W({},t,n)},wG=he(E1,{shouldForwardProp:e=>Zr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:S1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return W({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${go.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${go.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${go.focused} .${go.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${go.error} .${go.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${go.disabled} .${go.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&W({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),SG=he(vG,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),CG=he(M1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:C1})(({theme:e,ownerState:t})=>W({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),dM=U.forwardRef(function(t,r){var n,i,o,a,s;const l=ft({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:d,multiline:b=!1,notched:p,slots:v={},type:w="text"}=l,C=Ee(l,bG),y=yG(l),M=va(),B=pl({props:l,muiFormControl:M,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D=W({},l,{color:B.color||"primary",disabled:B.disabled,error:B.error,focused:B.focused,formControl:M,fullWidth:u,hiddenLabel:B.hiddenLabel,multiline:b,size:B.size,type:w}),F=(n=(i=v.root)!=null?i:c.Root)!=null?n:wG,N=(o=(a=v.input)!=null?a:c.Input)!=null?o:CG;return Y.jsx(P1,W({slots:{root:F,input:N},renderSuffix:_=>Y.jsx(SG,{ownerState:D,className:y.notchedOutline,label:d!=null&&d!==""&&B.required?s||(s=Y.jsxs(U.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(_.startAdornment||_.filled||_.focused)}),fullWidth:u,inputComponent:f,multiline:b,ref:r,type:w},C,{classes:W({},y,{notchedOutline:null})}))});dM.muiName="Input";const hM=dM,EG=fn(Y.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),MG=fn(Y.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function PG(e){return nt("MuiSelect",e)}const Ru=tt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var n5;const AG=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],kG=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Ru.select}`]:t.select},{[`&.${Ru.select}`]:t[r.variant]},{[`&.${Ru.error}`]:t.error},{[`&.${Ru.multiple}`]:t.multiple}]}})(uM,{[`&.${Ru.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_G=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ue(r.variant)}`],r.open&&t.iconOpen]}})(fM),RG=he("input",{shouldForwardProp:e=>CS(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function i5(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function TG(e){return e==null||typeof e=="string"&&!e.trim()}const $G=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ue(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return it(s,PG,t)},BG=U.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:d,displayEmpty:b,error:p=!1,IconComponent:v,inputRef:w,labelId:C,MenuProps:y={},multiple:M,name:B,onBlur:D,onChange:F,onClose:N,onFocus:_,onOpen:L,open:I,readOnly:R,renderValue:m,SelectDisplayProps:g={},tabIndex:h,value:x,variant:S="standard"}=t,T=Ee(t,AG),[k,$]=ja({controlled:x,default:f,name:"Select"}),[P,E]=ja({controlled:I,default:u,name:"Select"}),A=U.useRef(null),z=U.useRef(null),[H,O]=U.useState(null),{current:V}=U.useRef(I!=null),[X,J]=U.useState(),G=Vt(r,w),j=U.useCallback(ge=>{z.current=ge,ge&&O(ge)},[]),q=H==null?void 0:H.parentNode;U.useImperativeHandle(G,()=>({focus:()=>{z.current.focus()},node:A.current,value:k}),[k]),U.useEffect(()=>{u&&P&&H&&!V&&(J(s?null:q.clientWidth),z.current.focus())},[H,s]),U.useEffect(()=>{a&&z.current.focus()},[a]),U.useEffect(()=>{if(!C)return;const ge=Er(z.current).getElementById(C);if(ge){const ze=()=>{getSelection().isCollapsed&&z.current.focus()};return ge.addEventListener("click",ze),()=>{ge.removeEventListener("click",ze)}}},[C]);const K=(ge,ze)=>{ge?L&&L(ze):N&&N(ze),V||(J(s?null:q.clientWidth),E(ge))},Z=ge=>{ge.button===0&&(ge.preventDefault(),z.current.focus(),K(!0,ge))},te=ge=>{K(!1,ge)},Q=U.Children.toArray(l),oe=ge=>{const ze=Q.find(le=>le.props.value===ge.target.value);ze!==void 0&&($(ze.props.value),F&&F(ge,ze))},me=ge=>ze=>{let le;if(ze.currentTarget.hasAttribute("tabindex")){if(M){le=Array.isArray(k)?k.slice():[];const xe=k.indexOf(ge.props.value);xe===-1?le.push(ge.props.value):le.splice(xe,1)}else le=ge.props.value;if(ge.props.onClick&&ge.props.onClick(ze),k!==le&&($(le),F)){const xe=ze.nativeEvent||ze,je=new xe.constructor(xe.type,xe);Object.defineProperty(je,"target",{writable:!0,value:{value:le,name:B}}),F(je,ge)}M||K(!1,ze)}},se=ge=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ge.key)!==-1&&(ge.preventDefault(),K(!0,ge))},ye=H!==null&&P,Re=ge=>{!ye&&D&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:k,name:B}}),D(ge))};delete T["aria-invalid"];let we,He;const Ue=[];let Me=!1;(zh({value:k})||b)&&(m?we=m(k):Me=!0);const Ze=Q.map(ge=>{if(!U.isValidElement(ge))return null;let ze;if(M){if(!Array.isArray(k))throw new Error(aa(2));ze=k.some(le=>i5(le,ge.props.value)),ze&&Me&&Ue.push(ge.props.children)}else ze=i5(k,ge.props.value),ze&&Me&&(He=ge.props.children);return U.cloneElement(ge,{"aria-selected":ze?"true":"false",onClick:me(ge),onKeyUp:le=>{le.key===" "&&le.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(le)},role:"option",selected:ze,value:void 0,"data-value":ge.props.value})});Me&&(M?Ue.length===0?we=null:we=Ue.reduce((ge,ze,le)=>(ge.push(ze),le{const{classes:t}=e;return t},v4={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Zr(e)&&e!=="variant",slot:"Root"},LG=he(aM,v4)(""),NG=he(hM,v4)(""),zG=he(rM,v4)(""),pM=U.forwardRef(function(t,r){const n=ft({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=GE,id:f,input:d,inputProps:b,label:p,labelId:v,MenuProps:w,multiple:C=!1,native:y=!1,onClose:M,onOpen:B,open:D,renderValue:F,SelectDisplayProps:N,variant:_="outlined"}=n,L=Ee(n,FG),I=y?pG:IG,R=va(),m=pl({props:n,muiFormControl:R,states:["variant","error"]}),g=m.variant||_,h=W({},n,{variant:g,classes:a}),x=DG(h),S=Ee(x,OG),T=d||{standard:Y.jsx(LG,{ownerState:h}),outlined:Y.jsx(NG,{label:p,ownerState:h}),filled:Y.jsx(zG,{ownerState:h})}[g],k=Vt(r,T.ref);return Y.jsx(U.Fragment,{children:U.cloneElement(T,W({inputComponent:I,inputProps:W({children:o,error:m.error,IconComponent:u,variant:g,type:void 0,multiple:C},y?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:w,onClose:M,onOpen:B,open:D,renderValue:F,SelectDisplayProps:W({id:f},N)},b,{classes:b?gn(S,b.classes):S},d?d.props.inputProps:{})},(C&&y||c)&&g==="outlined"?{notched:!0}:{},{ref:k,className:Se(T.props.className,s,x.root)},!d&&{variant:g},L))})});pM.muiName="Select";const xM=pM;function jG(e){return nt("MuiSkeleton",e)}tt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const UG=["animation","className","component","height","style","variant","width"];let Hh=e=>e,o5,a5,s5,l5;const HG=e=>{const{classes:t,variant:r,animation:n,hasChildren:i,width:o,height:a}=e;return it({root:["root",r,n,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]},jG,t)},WG=ss(o5||(o5=Hh` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`)),VG=ss(a5||(a5=Hh` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`)),qG=he("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.animation!==!1&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const r=wO(e.shape.borderRadius)||"px",n=SO(e.shape.borderRadius);return W({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:nF(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${r}/${Math.round(n/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Cc(s5||(s5=Hh` + animation: ${0} 2s ease-in-out 0.5s infinite; + `),WG),({ownerState:e,theme:t})=>e.animation==="wave"&&Cc(l5||(l5=Hh` + position: relative; + overflow: hidden; + + /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ + -webkit-mask-image: -webkit-radial-gradient(white, black); + + &::after { + animation: ${0} 2s linear 0.5s infinite; + background: linear-gradient( + 90deg, + transparent, + ${0}, + transparent + ); + content: ''; + position: absolute; + transform: translateX(-100%); /* Avoid flash during server-side hydration */ + bottom: 0; + left: 0; + right: 0; + top: 0; + } + `),VG,(t.vars||t).palette.action.hover)),KG=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:a="span",height:s,style:l,variant:c="text",width:u}=n,f=Ee(n,UG),d=W({},n,{animation:i,component:a,variant:c,hasChildren:!!f.children}),b=HG(d);return Y.jsx(qG,W({as:a,ref:r,className:Se(b.root,o),ownerState:d},f,{style:W({width:u,height:s},l)}))}),yue=KG;function GG(e){return nt("MuiSnackbarContent",e)}tt("MuiSnackbarContent",["root","message","action"]);const YG=["action","className","message","role"],XG=e=>{const{classes:t}=e;return it({root:["root"],action:["action"],message:["message"]},GG,t)},JG=he(ga,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=zF(e.palette.background.default,t);return W({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),ZG=he("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),QG=he("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),eY=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:a,role:s="alert"}=n,l=Ee(n,YG),c=n,u=XG(c);return Y.jsxs(JG,W({role:s,square:!0,elevation:6,className:Se(u.root,o),ownerState:c,ref:r},l,{children:[Y.jsx(ZG,{className:u.message,ownerState:c,children:a}),i?Y.jsx(QG,{className:u.action,ownerState:c,children:i}):null]}))}),tY=eY;function rY(e){return nt("MuiSnackbar",e)}tt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const nY=["onEnter","onExited"],iY=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],oY=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ue(r.vertical)}${ue(r.horizontal)}`]};return it(n,rY,t)},c5=he("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ue(r.anchorOrigin.vertical)}${ue(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return W({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:W({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),aY=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiSnackbar"}),i=pa(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:d,ContentProps:b,disableWindowBlurListener:p=!1,message:v,open:w,TransitionComponent:C=jh,transitionDuration:y=o,TransitionProps:{onEnter:M,onExited:B}={}}=n,D=Ee(n.TransitionProps,nY),F=Ee(n,iY),N=W({},n,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:p,TransitionComponent:C,transitionDuration:y}),_=oY(N),{getRootProps:L,onClickAway:I}=eU(W({},N)),[R,m]=U.useState(!0),g=Nn({elementType:c5,getSlotProps:L,externalForwardedProps:F,ownerState:N,additionalProps:{ref:r},className:[_.root,f]}),h=S=>{m(!0),B&&B(S)},x=(S,T)=>{m(!1),M&&M(S,T)};return!w&&R?null:Y.jsx(wz,W({onClickAway:I},d,{children:Y.jsx(c5,W({},g,{children:Y.jsx(C,W({appear:!0,in:w,timeout:y,direction:s==="top"?"down":"up",onEnter:x,onExited:h},D,{children:u||Y.jsx(tY,W({message:v,action:a},b))}))}))}))}),wue=aY;function sY(e){return nt("MuiTooltip",e)}const lY=tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Na=lY,cY=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function uY(e){return Math.round(e*1e5)/1e5}const fY=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${ue(o.split("-")[0])}`],arrow:["arrow"]};return it(a,sY,t)},dY=he(y1,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>W({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Na.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Na.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Na.arrow}`]:W({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Na.arrow}`]:W({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),hY=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ue(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>W({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ct(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${uY(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Na.popper}[data-popper-placement*="left"] &`]:W({transformOrigin:"right center"},t.isRtl?W({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):W({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Na.popper}[data-popper-placement*="right"] &`]:W({transformOrigin:"left center"},t.isRtl?W({marginRight:"14px"},t.touch&&{marginRight:"24px"}):W({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Na.popper}[data-popper-placement*="top"] &`]:W({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Na.popper}[data-popper-placement*="bottom"] &`]:W({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),pY=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ct(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let vd=!1;const u5=new A0;let Tu={x:0,y:0};function bd(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const xY=U.forwardRef(function(t,r){var n,i,o,a,s,l,c,u,f,d,b,p,v,w,C,y,M,B,D;const F=ft({props:t,name:"MuiTooltip"}),{arrow:N=!1,children:_,components:L={},componentsProps:I={},describeChild:R=!1,disableFocusListener:m=!1,disableHoverListener:g=!1,disableInteractive:h=!1,disableTouchListener:x=!1,enterDelay:S=100,enterNextDelay:T=0,enterTouchDelay:k=700,followCursor:$=!1,id:P,leaveDelay:E=0,leaveTouchDelay:A=1500,onClose:z,onOpen:H,open:O,placement:V="bottom",PopperComponent:X,PopperProps:J={},slotProps:G={},slots:j={},title:q,TransitionComponent:K=jh,TransitionProps:Z}=F,te=Ee(F,cY),Q=U.isValidElement(_)?_:Y.jsx("span",{children:_}),oe=pa(),me=Jc(),[se,ye]=U.useState(),[Re,we]=U.useState(null),He=U.useRef(!1),Ue=h||$,Me=Bs(),Ze=Bs(),Je=Bs(),Ne=Bs(),[De,de]=ja({controlled:O,default:!1,name:"Tooltip",state:"open"});let Ie=De;const ot=Za(P),lt=U.useRef(),ge=Pr(()=>{lt.current!==void 0&&(document.body.style.WebkitUserSelect=lt.current,lt.current=void 0),Ne.clear()});U.useEffect(()=>ge,[ge]);const ze=Le=>{u5.clear(),vd=!0,de(!0),H&&!Ie&&H(Le)},le=Pr(Le=>{u5.start(800+E,()=>{vd=!1}),de(!1),z&&Ie&&z(Le),Me.start(oe.transitions.duration.shortest,()=>{He.current=!1})}),xe=Le=>{He.current&&Le.type!=="touchstart"||(se&&se.removeAttribute("title"),Ze.clear(),Je.clear(),S||vd&&T?Ze.start(vd?T:S,()=>{ze(Le)}):ze(Le))},je=Le=>{Ze.clear(),Je.start(E,()=>{le(Le)})},{isFocusVisibleRef:We,onBlur:Fe,onFocus:Qe,ref:ut}=cb(),[,Ge]=U.useState(!1),ee=Le=>{Fe(Le),We.current===!1&&(Ge(!1),je(Le))},re=Le=>{se||ye(Le.currentTarget),Qe(Le),We.current===!0&&(Ge(!0),xe(Le))},ne=Le=>{He.current=!0;const pt=Q.props;pt.onTouchStart&&pt.onTouchStart(Le)},pe=Le=>{ne(Le),Je.clear(),Me.clear(),ge(),lt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ne.start(k,()=>{document.body.style.WebkitUserSelect=lt.current,xe(Le)})},ke=Le=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(Le),ge(),Je.start(A,()=>{le(Le)})};U.useEffect(()=>{if(!Ie)return;function Le(pt){(pt.key==="Escape"||pt.key==="Esc")&&le(pt)}return document.addEventListener("keydown",Le),()=>{document.removeEventListener("keydown",Le)}},[le,Ie]);const Te=Vt(Q.ref,ut,ye,r);!q&&q!==0&&(Ie=!1);const $e=U.useRef(),Pe=Le=>{const pt=Q.props;pt.onMouseMove&&pt.onMouseMove(Le),Tu={x:Le.clientX,y:Le.clientY},$e.current&&$e.current.update()},ce={},_e=typeof q=="string";R?(ce.title=!Ie&&_e&&!g?q:null,ce["aria-describedby"]=Ie?ot:null):(ce["aria-label"]=_e?q:null,ce["aria-labelledby"]=Ie&&!_e?ot:null);const Ve=W({},ce,te,Q.props,{className:Se(te.className,Q.props.className),onTouchStart:ne,ref:Te},$?{onMouseMove:Pe}:{}),Ce={};x||(Ve.onTouchStart=pe,Ve.onTouchEnd=ke),g||(Ve.onMouseOver=bd(xe,Ve.onMouseOver),Ve.onMouseLeave=bd(je,Ve.onMouseLeave),Ue||(Ce.onMouseOver=xe,Ce.onMouseLeave=je)),m||(Ve.onFocus=bd(re,Ve.onFocus),Ve.onBlur=bd(ee,Ve.onBlur),Ue||(Ce.onFocus=re,Ce.onBlur=ee));const Xe=U.useMemo(()=>{var Le;let pt=[{name:"arrow",enabled:!!Re,options:{element:Re,padding:4}}];return(Le=J.popperOptions)!=null&&Le.modifiers&&(pt=pt.concat(J.popperOptions.modifiers)),W({},J.popperOptions,{modifiers:pt})},[Re,J]),dt=W({},F,{isRtl:me,arrow:N,disableInteractive:Ue,placement:V,PopperComponentProp:X,touch:He.current}),qe=fY(dt),ht=(n=(i=j.popper)!=null?i:L.Popper)!=null?n:dY,mt=(o=(a=(s=j.transition)!=null?s:L.Transition)!=null?a:K)!=null?o:jh,rt=(l=(c=j.tooltip)!=null?c:L.Tooltip)!=null?l:hY,ae=(u=(f=j.arrow)!=null?f:L.Arrow)!=null?u:pY,ie=Zl(ht,W({},J,(d=G.popper)!=null?d:I.popper,{className:Se(qe.popper,J==null?void 0:J.className,(b=(p=G.popper)!=null?p:I.popper)==null?void 0:b.className)}),dt),ve=Zl(mt,W({},Z,(v=G.transition)!=null?v:I.transition),dt),Ae=Zl(rt,W({},(w=G.tooltip)!=null?w:I.tooltip,{className:Se(qe.tooltip,(C=(y=G.tooltip)!=null?y:I.tooltip)==null?void 0:C.className)}),dt),Ye=Zl(ae,W({},(M=G.arrow)!=null?M:I.arrow,{className:Se(qe.arrow,(B=(D=G.arrow)!=null?D:I.arrow)==null?void 0:B.className)}),dt);return Y.jsxs(U.Fragment,{children:[U.cloneElement(Q,Ve),Y.jsx(ht,W({as:X??y1,placement:V,anchorEl:$?{getBoundingClientRect:()=>({top:Tu.y,left:Tu.x,right:Tu.x,bottom:Tu.y,width:0,height:0})}:se,popperRef:$e,open:se?Ie:!1,id:ot,transition:!0},Ce,ie,{popperOptions:Xe,children:({TransitionProps:Le})=>Y.jsx(mt,W({timeout:oe.transitions.duration.shorter},Le,ve,{children:Y.jsxs(rt,W({},Ae,{children:[q,N?Y.jsx(ae,W({},Ye,{ref:we})):null]}))}))}))]})}),Sue=xY;function mY(e){return nt("MuiTab",e)}const gY=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Es=gY,vY=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],bY=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${ue(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return it(c,mY,t)},yY=he(co,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ue(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>W({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Es.iconWrapper}`]:W({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Es.selected}`]:{opacity:1},[`&.${Es.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Es.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Es.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),wY=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:d,onClick:b,onFocus:p,selected:v,selectionFollowsFocus:w,textColor:C="inherit",value:y,wrapped:M=!1}=n,B=Ee(n,vY),D=W({},n,{disabled:o,disableFocusRipple:a,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:C,wrapped:M}),F=bY(D),N=l&&f&&U.isValidElement(l)?U.cloneElement(l,{className:Se(F.iconWrapper,l.props.className)}):l,_=I=>{!v&&d&&d(I,y),b&&b(I)},L=I=>{w&&!v&&d&&d(I,y),p&&p(I)};return Y.jsxs(yY,W({focusRipple:!a,className:Se(F.root,i),ref:r,role:"tab","aria-selected":v,disabled:o,onClick:_,onFocus:L,ownerState:D,tabIndex:v?0:-1},B,{children:[c==="top"||c==="start"?Y.jsxs(U.Fragment,{children:[N,f]}):Y.jsxs(U.Fragment,{children:[f,N]}),u]}))}),Cue=wY,SY=U.createContext(),mM=SY;function CY(e){return nt("MuiTable",e)}tt("MuiTable",["root","stickyHeader"]);const EY=["className","component","padding","size","stickyHeader"],MY=e=>{const{classes:t,stickyHeader:r}=e;return it({root:["root",r&&"stickyHeader"]},CY,t)},PY=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>W({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":W({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),f5="table",AY=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTable"}),{className:i,component:o=f5,padding:a="normal",size:s="medium",stickyHeader:l=!1}=n,c=Ee(n,EY),u=W({},n,{component:o,padding:a,size:s,stickyHeader:l}),f=MY(u),d=U.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return Y.jsx(mM.Provider,{value:d,children:Y.jsx(PY,W({as:o,role:o===f5?null:"table",ref:r,className:Se(f.root,i),ownerState:u},c))})}),Eue=AY,kY=U.createContext(),k1=kY;function _Y(e){return nt("MuiTableBody",e)}tt("MuiTableBody",["root"]);const RY=["className","component"],TY=e=>{const{classes:t}=e;return it({root:["root"]},_Y,t)},$Y=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),BY={variant:"body"},d5="tbody",IY=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTableBody"}),{className:i,component:o=d5}=n,a=Ee(n,RY),s=W({},n,{component:o}),l=TY(s);return Y.jsx(k1.Provider,{value:BY,children:Y.jsx($Y,W({className:Se(l.root,i),as:o,ref:r,role:o===d5?null:"rowgroup",ownerState:s},a))})}),Mue=IY;function FY(e){return nt("MuiTableCell",e)}const OY=tt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),DY=OY,LY=["align","className","component","padding","scope","size","sortDirection","variant"],NY=e=>{const{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:a}=e,s={root:["root",r,a&&"stickyHeader",n!=="inherit"&&`align${ue(n)}`,i!=="normal"&&`padding${ue(i)}`,`size${ue(o)}`]};return it(s,FY,t)},zY=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ue(r.size)}`],r.padding!=="normal"&&t[`padding${ue(r.padding)}`],r.align!=="inherit"&&t[`align${ue(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>W({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?fh(Ct(e.palette.divider,1),.88):uh(Ct(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${DY.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),jY=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:f}=n,d=Ee(n,LY),b=U.useContext(mM),p=U.useContext(k1),v=p&&p.variant==="head";let w;a?w=a:w=v?"th":"td";let C=l;w==="td"?C=void 0:!C&&v&&(C="col");const y=f||p&&p.variant,M=W({},n,{align:i,component:w,padding:s||(b&&b.padding?b.padding:"normal"),size:c||(b&&b.size?b.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&b&&b.stickyHeader,variant:y}),B=NY(M);let D=null;return u&&(D=u==="asc"?"ascending":"descending"),Y.jsx(zY,W({as:w,ref:r,className:Se(B.root,o),"aria-sort":D,scope:C,ownerState:M},d))}),Vv=jY;function UY(e){return nt("MuiTableContainer",e)}tt("MuiTableContainer",["root"]);const HY=["className","component"],WY=e=>{const{classes:t}=e;return it({root:["root"]},UY,t)},VY=he("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),qY=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=n,a=Ee(n,HY),s=W({},n,{component:o}),l=WY(s);return Y.jsx(VY,W({ref:r,as:o,className:Se(l.root,i),ownerState:s},a))}),Pue=qY;function KY(e){return nt("MuiTableHead",e)}tt("MuiTableHead",["root"]);const GY=["className","component"],YY=e=>{const{classes:t}=e;return it({root:["root"]},KY,t)},XY=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),JY={variant:"head"},h5="thead",ZY=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTableHead"}),{className:i,component:o=h5}=n,a=Ee(n,GY),s=W({},n,{component:o}),l=YY(s);return Y.jsx(k1.Provider,{value:JY,children:Y.jsx(XY,W({as:o,className:Se(l.root,i),ref:r,role:o===h5?null:"rowgroup",ownerState:s},a))})}),Aue=ZY;function QY(e){return nt("MuiToolbar",e)}tt("MuiToolbar",["root","gutters","regular","dense"]);const eX=["className","component","disableGutters","variant"],tX=e=>{const{classes:t,disableGutters:r,variant:n}=e;return it({root:["root",!r&&"gutters",n]},QY,t)},rX=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>W({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),nX=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=n,l=Ee(n,eX),c=W({},n,{component:o,disableGutters:a,variant:s}),u=tX(c);return Y.jsx(rX,W({as:o,className:Se(u.root,i),ref:r,ownerState:c},l))}),iX=nX,gM=fn(Y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),vM=fn(Y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),oX=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],aX=U.forwardRef(function(t,r){var n,i,o,a,s,l,c,u;const{backIconButtonProps:f,count:d,disabled:b=!1,getItemAriaLabel:p,nextIconButtonProps:v,onPageChange:w,page:C,rowsPerPage:y,showFirstButton:M,showLastButton:B,slots:D={},slotProps:F={}}=t,N=Ee(t,oX),_=Jc(),L=G=>{w(G,0)},I=G=>{w(G,C-1)},R=G=>{w(G,C+1)},m=G=>{w(G,Math.max(0,Math.ceil(d/y)-1))},g=(n=D.firstButton)!=null?n:Ls,h=(i=D.lastButton)!=null?i:Ls,x=(o=D.nextButton)!=null?o:Ls,S=(a=D.previousButton)!=null?a:Ls,T=(s=D.firstButtonIcon)!=null?s:EG,k=(l=D.lastButtonIcon)!=null?l:MG,$=(c=D.nextButtonIcon)!=null?c:vM,P=(u=D.previousButtonIcon)!=null?u:gM,E=_?h:g,A=_?x:S,z=_?S:x,H=_?g:h,O=_?F.lastButton:F.firstButton,V=_?F.nextButton:F.previousButton,X=_?F.previousButton:F.nextButton,J=_?F.firstButton:F.lastButton;return Y.jsxs("div",W({ref:r},N,{children:[M&&Y.jsx(E,W({onClick:L,disabled:b||C===0,"aria-label":p("first",C),title:p("first",C)},O,{children:_?Y.jsx(k,W({},F.lastButtonIcon)):Y.jsx(T,W({},F.firstButtonIcon))})),Y.jsx(A,W({onClick:I,disabled:b||C===0,color:"inherit","aria-label":p("previous",C),title:p("previous",C)},V??f,{children:_?Y.jsx($,W({},F.nextButtonIcon)):Y.jsx(P,W({},F.previousButtonIcon))})),Y.jsx(z,W({onClick:R,disabled:b||(d!==-1?C>=Math.ceil(d/y)-1:!1),color:"inherit","aria-label":p("next",C),title:p("next",C)},X??v,{children:_?Y.jsx(P,W({},F.previousButtonIcon)):Y.jsx($,W({},F.nextButtonIcon))})),B&&Y.jsx(H,W({onClick:m,disabled:b||C>=Math.ceil(d/y)-1,"aria-label":p("last",C),title:p("last",C)},J,{children:_?Y.jsx(T,W({},F.firstButtonIcon)):Y.jsx(k,W({},F.lastButtonIcon))}))]}))}),sX=aX;function lX(e){return nt("MuiTablePagination",e)}const cX=tt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),yf=cX;var p5;const uX=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],fX=he(Vv,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),dX=he(iX,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>W({[`& .${yf.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${yf.actions}`]:{flexShrink:0,marginLeft:20}})),hX=he("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),pX=he("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>W({},e.typography.body2,{flexShrink:0})),xX=he(xM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>W({[`& .${yf.selectIcon}`]:t.selectIcon,[`& .${yf.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${yf.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),mX=he(aG,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),gX=he("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>W({},e.typography.body2,{flexShrink:0}));function vX({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function bX(e){return`Go to ${e} page`}const yX=e=>{const{classes:t}=e;return it({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},lX,t)},wX=U.forwardRef(function(t,r){var n;const i=ft({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=sX,backIconButtonProps:a,className:s,colSpan:l,component:c=Vv,count:u,disabled:f=!1,getItemAriaLabel:d=bX,labelDisplayedRows:b=vX,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:v,onPageChange:w,onRowsPerPageChange:C,page:y,rowsPerPage:M,rowsPerPageOptions:B=[10,25,50,100],SelectProps:D={},showFirstButton:F=!1,showLastButton:N=!1,slotProps:_={},slots:L={}}=i,I=Ee(i,uX),R=i,m=yX(R),g=(n=_==null?void 0:_.select)!=null?n:D,h=g.native?"option":mX;let x;(c===Vv||c==="td")&&(x=l||1e3);const S=Za(g.id),T=Za(g.labelId),k=()=>u===-1?(y+1)*M:M===-1?u:Math.min(u,(y+1)*M);return Y.jsx(fX,W({colSpan:x,ref:r,as:c,ownerState:R,className:Se(m.root,s)},I,{children:Y.jsxs(dX,{className:m.toolbar,children:[Y.jsx(hX,{className:m.spacer}),B.length>1&&Y.jsx(pX,{className:m.selectLabel,id:T,children:p}),B.length>1&&Y.jsx(xX,W({variant:"standard"},!g.variant&&{input:p5||(p5=Y.jsx(P1,{}))},{value:M,onChange:C,id:S,labelId:T},g,{classes:W({},g.classes,{root:Se(m.input,m.selectRoot,(g.classes||{}).root),select:Se(m.select,(g.classes||{}).select),icon:Se(m.selectIcon,(g.classes||{}).icon)}),disabled:f,children:B.map($=>U.createElement(h,W({},!il(h)&&{ownerState:R},{className:m.menuItem,key:$.label?$.label:$,value:$.value?$.value:$}),$.label?$.label:$))})),Y.jsx(gX,{className:m.displayedRows,children:b({from:u===0?0:y*M+1,to:k(),count:u===-1?-1:u,page:y})}),Y.jsx(o,{className:m.actions,backIconButtonProps:a,count:u,nextIconButtonProps:v,onPageChange:w,page:y,rowsPerPage:M,showFirstButton:F,showLastButton:N,slotProps:_.actions,slots:L.actions,getItemAriaLabel:d,disabled:f})]})}))}),kue=wX;function SX(e){return nt("MuiTableRow",e)}const CX=tt("MuiTableRow",["root","selected","hover","head","footer"]),x5=CX,EX=["className","component","hover","selected"],MX=e=>{const{classes:t,selected:r,hover:n,head:i,footer:o}=e;return it({root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]},SX,t)},PX=he("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${x5.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${x5.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),m5="tr",AX=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTableRow"}),{className:i,component:o=m5,hover:a=!1,selected:s=!1}=n,l=Ee(n,EX),c=U.useContext(k1),u=W({},n,{component:o,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=MX(u);return Y.jsx(PX,W({as:o,ref:r,className:Se(f.root,i),role:o===m5?null:"row",ownerState:u},l))}),_ue=AX;function kX(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function _X(e,t,r,n={},i=()=>{}){const{ease:o=kX,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=d=>{if(c){i(new Error("Animation cancelled"));return}s===null&&(s=d);const b=Math.min(1,(d-s)/a);if(t[e]=o(b)*(r-l)+l,b>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const RX=["onChange"],TX={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function $X(e){const{onChange:t}=e,r=Ee(e,RX),n=U.useRef(),i=U.useRef(null),o=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return bn(()=>{const a=Xc(()=>{const l=n.current;o(),l!==n.current&&t(n.current)}),s=_i(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),U.useEffect(()=>{o(),t(n.current)},[t]),Y.jsx("div",W({style:TX,ref:i},r))}function BX(e){return nt("MuiTabScrollButton",e)}const IX=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),FX=IX,OX=["className","slots","slotProps","direction","orientation","disabled"],DX=e=>{const{classes:t,orientation:r,disabled:n}=e;return it({root:["root",r,n&&"disabled"]},BX,t)},LX=he(co,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>W({width:40,flexShrink:0,opacity:.8,[`&.${FX.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),NX=U.forwardRef(function(t,r){var n,i;const o=ft({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:c}=o,u=Ee(o,OX),f=Jc(),d=W({isRtl:f},o),b=DX(d),p=(n=s.StartScrollButtonIcon)!=null?n:gM,v=(i=s.EndScrollButtonIcon)!=null?i:vM,w=Nn({elementType:p,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),C=Nn({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return Y.jsx(LX,W({component:"div",className:Se(b.root,a),ref:r,role:null,ownerState:d,tabIndex:null},u,{children:c==="left"?Y.jsx(p,W({},w)):Y.jsx(v,W({},C))}))}),zX=NX;function jX(e){return nt("MuiTabs",e)}const UX=tt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Lm=UX,HX=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],g5=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,v5=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,yd=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=r(e,i);else{i.focus();return}}},WX=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return it({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},jX,l)},VX=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lm.scrollButtons}`]:t.scrollButtons},{[`& .${Lm.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>W({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Lm.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),qX=he("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>W({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),KX=he("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>W({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),GX=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>W({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),YX=he($X)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),b5={},XX=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTabs"}),i=pa(),o=Jc(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:d="div",allowScrollButtonsMobile:b=!1,indicatorColor:p="primary",onChange:v,orientation:w="horizontal",ScrollButtonComponent:C=zX,scrollButtons:y="auto",selectionFollowsFocus:M,slots:B={},slotProps:D={},TabIndicatorProps:F={},TabScrollButtonProps:N={},textColor:_="primary",value:L,variant:I="standard",visibleScrollbar:R=!1}=n,m=Ee(n,HX),g=I==="scrollable",h=w==="vertical",x=h?"scrollTop":"scrollLeft",S=h?"top":"left",T=h?"bottom":"right",k=h?"clientHeight":"clientWidth",$=h?"height":"width",P=W({},n,{component:d,allowScrollButtonsMobile:b,indicatorColor:p,orientation:w,vertical:h,scrollButtons:y,textColor:_,variant:I,visibleScrollbar:R,fixed:!g,hideScrollbar:g&&!R,scrollableX:g&&!h,scrollableY:g&&h,centered:c&&!g,scrollButtonsHideMobile:!b}),E=WX(P),A=Nn({elementType:B.StartScrollButtonIcon,externalSlotProps:D.startScrollButtonIcon,ownerState:P}),z=Nn({elementType:B.EndScrollButtonIcon,externalSlotProps:D.endScrollButtonIcon,ownerState:P}),[H,O]=U.useState(!1),[V,X]=U.useState(b5),[J,G]=U.useState(!1),[j,q]=U.useState(!1),[K,Z]=U.useState(!1),[te,Q]=U.useState({overflow:"hidden",scrollbarWidth:0}),oe=new Map,me=U.useRef(null),se=U.useRef(null),ye=()=>{const le=me.current;let xe;if(le){const We=le.getBoundingClientRect();xe={clientWidth:le.clientWidth,scrollLeft:le.scrollLeft,scrollTop:le.scrollTop,scrollLeftNormalized:vF(le,o?"rtl":"ltr"),scrollWidth:le.scrollWidth,top:We.top,bottom:We.bottom,left:We.left,right:We.right}}let je;if(le&&L!==!1){const We=se.current.children;if(We.length>0){const Fe=We[oe.get(L)];je=Fe?Fe.getBoundingClientRect():null}}return{tabsMeta:xe,tabMeta:je}},Re=Pr(()=>{const{tabsMeta:le,tabMeta:xe}=ye();let je=0,We;if(h)We="top",xe&&le&&(je=xe.top-le.top+le.scrollTop);else if(We=o?"right":"left",xe&&le){const Qe=o?le.scrollLeftNormalized+le.clientWidth-le.scrollWidth:le.scrollLeft;je=(o?-1:1)*(xe[We]-le[We]+Qe)}const Fe={[We]:je,[$]:xe?xe[$]:0};if(isNaN(V[We])||isNaN(V[$]))X(Fe);else{const Qe=Math.abs(V[We]-Fe[We]),ut=Math.abs(V[$]-Fe[$]);(Qe>=1||ut>=1)&&X(Fe)}}),we=(le,{animation:xe=!0}={})=>{xe?_X(x,me.current,le,{duration:i.transitions.duration.standard}):me.current[x]=le},He=le=>{let xe=me.current[x];h?xe+=le:(xe+=le*(o?-1:1),xe*=o&&cS()==="reverse"?-1:1),we(xe)},Ue=()=>{const le=me.current[k];let xe=0;const je=Array.from(se.current.children);for(let We=0;Wele){We===0&&(xe=le);break}xe+=Fe[k]}return xe},Me=()=>{He(-1*Ue())},Ze=()=>{He(Ue())},Je=U.useCallback(le=>{Q({overflow:null,scrollbarWidth:le})},[]),Ne=()=>{const le={};le.scrollbarSizeListener=g?Y.jsx(YX,{onChange:Je,className:Se(E.scrollableX,E.hideScrollbar)}):null;const je=g&&(y==="auto"&&(J||j)||y===!0);return le.scrollButtonStart=je?Y.jsx(C,W({slots:{StartScrollButtonIcon:B.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:A},orientation:w,direction:o?"right":"left",onClick:Me,disabled:!J},N,{className:Se(E.scrollButtons,N.className)})):null,le.scrollButtonEnd=je?Y.jsx(C,W({slots:{EndScrollButtonIcon:B.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:w,direction:o?"left":"right",onClick:Ze,disabled:!j},N,{className:Se(E.scrollButtons,N.className)})):null,le},De=Pr(le=>{const{tabsMeta:xe,tabMeta:je}=ye();if(!(!je||!xe)){if(je[S]xe[T]){const We=xe[x]+(je[T]-xe[T]);we(We,{animation:le})}}}),de=Pr(()=>{g&&y!==!1&&Z(!K)});U.useEffect(()=>{const le=Xc(()=>{me.current&&Re()});let xe;const je=Qe=>{Qe.forEach(ut=>{ut.removedNodes.forEach(Ge=>{var ee;(ee=xe)==null||ee.unobserve(Ge)}),ut.addedNodes.forEach(Ge=>{var ee;(ee=xe)==null||ee.observe(Ge)})}),le(),de()},We=_i(me.current);We.addEventListener("resize",le);let Fe;return typeof ResizeObserver<"u"&&(xe=new ResizeObserver(le),Array.from(se.current.children).forEach(Qe=>{xe.observe(Qe)})),typeof MutationObserver<"u"&&(Fe=new MutationObserver(je),Fe.observe(se.current,{childList:!0})),()=>{var Qe,ut;le.clear(),We.removeEventListener("resize",le),(Qe=Fe)==null||Qe.disconnect(),(ut=xe)==null||ut.disconnect()}},[Re,de]),U.useEffect(()=>{const le=Array.from(se.current.children),xe=le.length;if(typeof IntersectionObserver<"u"&&xe>0&&g&&y!==!1){const je=le[0],We=le[xe-1],Fe={root:me.current,threshold:.99},Qe=re=>{G(!re[0].isIntersecting)},ut=new IntersectionObserver(Qe,Fe);ut.observe(je);const Ge=re=>{q(!re[0].isIntersecting)},ee=new IntersectionObserver(Ge,Fe);return ee.observe(We),()=>{ut.disconnect(),ee.disconnect()}}},[g,y,K,u==null?void 0:u.length]),U.useEffect(()=>{O(!0)},[]),U.useEffect(()=>{Re()}),U.useEffect(()=>{De(b5!==V)},[De,V]),U.useImperativeHandle(l,()=>({updateIndicator:Re,updateScrollButtons:de}),[Re,de]);const Ie=Y.jsx(GX,W({},F,{className:Se(E.indicator,F.className),ownerState:P,style:W({},V,F.style)}));let ot=0;const lt=U.Children.map(u,le=>{if(!U.isValidElement(le))return null;const xe=le.props.value===void 0?ot:le.props.value;oe.set(xe,ot);const je=xe===L;return ot+=1,U.cloneElement(le,W({fullWidth:I==="fullWidth",indicator:je&&!H&&Ie,selected:je,selectionFollowsFocus:M,onChange:v,textColor:_,value:xe},ot===1&&L===!1&&!le.props.tabIndex?{tabIndex:0}:{}))}),ge=le=>{const xe=se.current,je=Er(xe).activeElement;if(je.getAttribute("role")!=="tab")return;let Fe=w==="horizontal"?"ArrowLeft":"ArrowUp",Qe=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&o&&(Fe="ArrowRight",Qe="ArrowLeft"),le.key){case Fe:le.preventDefault(),yd(xe,je,v5);break;case Qe:le.preventDefault(),yd(xe,je,g5);break;case"Home":le.preventDefault(),yd(xe,null,g5);break;case"End":le.preventDefault(),yd(xe,null,v5);break}},ze=Ne();return Y.jsxs(VX,W({className:Se(E.root,f),ownerState:P,ref:r,as:d},m,{children:[ze.scrollButtonStart,ze.scrollbarSizeListener,Y.jsxs(qX,{className:E.scroller,ownerState:P,style:{overflow:te.overflow,[h?`margin${o?"Left":"Right"}`:"marginBottom"]:R?void 0:-te.scrollbarWidth},ref:me,children:[Y.jsx(KX,{"aria-label":a,"aria-labelledby":s,"aria-orientation":w==="vertical"?"vertical":null,className:E.flexContainer,ownerState:P,onKeyDown:ge,ref:se,role:"tablist",children:lt}),H&&Ie]}),ze.scrollButtonEnd]}))}),Rue=XX;function JX(e){return nt("MuiTextField",e)}tt("MuiTextField",["root"]);const ZX=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],QX={standard:aM,filled:rM,outlined:hM},eJ=e=>{const{classes:t}=e;return it({root:["root"]},JX,t)},tJ=he(FV,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rJ=U.forwardRef(function(t,r){const n=ft({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:d,fullWidth:b=!1,helperText:p,id:v,InputLabelProps:w,inputProps:C,InputProps:y,inputRef:M,label:B,maxRows:D,minRows:F,multiline:N=!1,name:_,onBlur:L,onChange:I,onFocus:R,placeholder:m,required:g=!1,rows:h,select:x=!1,SelectProps:S,type:T,value:k,variant:$="outlined"}=n,P=Ee(n,ZX),E=W({},n,{autoFocus:o,color:l,disabled:u,error:f,fullWidth:b,multiline:N,required:g,select:x,variant:$}),A=eJ(E),z={};$==="outlined"&&(w&&typeof w.shrink<"u"&&(z.notched=w.shrink),z.label=B),x&&((!S||!S.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const H=Za(v),O=p&&H?`${H}-helper-text`:void 0,V=B&&H?`${H}-label`:void 0,X=QX[$],J=Y.jsx(X,W({"aria-describedby":O,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:b,multiline:N,name:_,rows:h,maxRows:D,minRows:F,type:T,value:k,id:H,inputRef:M,onBlur:L,onChange:I,onFocus:R,placeholder:m,inputProps:C},z,y));return Y.jsxs(tJ,W({className:Se(A.root,s),disabled:u,error:f,fullWidth:b,ref:r,required:g,color:l,variant:$,ownerState:E},P,{children:[B!=null&&B!==""&&Y.jsx(Nq,W({htmlFor:H,id:V},w,{children:B})),x?Y.jsx(xM,W({"aria-describedby":O,id:H,labelId:V,value:k,input:J},S,{children:a})):J,p&&Y.jsx(JV,W({id:O},d,{children:p}))]}))}),Tue=rJ,nJ=["getTrigger","target"];function iJ(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:i}=t,o=e.current;return i&&(e.current=i.pageYOffset!==void 0?i.pageYOffset:i.scrollTop),!r&&o!==void 0&&e.currentn}const oJ=typeof window<"u"?window:null;function $ue(e={}){const{getTrigger:t=iJ,target:r=oJ}=e,n=Ee(e,nJ),i=U.useRef(),[o,a]=U.useState(()=>t(i,n));return U.useEffect(()=>{const s=()=>{a(t(i,W({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}const aJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"መንገድ አሳይ"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"ወደ መጀመሪያው ገጽ ይሂዱ":e==="last"?"ወደ መጨረሻው ገጽ ይሂዱ":e==="next"?"ወደ ቀጣዩ ገጽ ይሂዱ":"ወደ ቀዳሚው ገጽ ይሂዱ",labelRowsPerPage:"ረድፎች በአንድ ገጽ:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}-${t} ከ ${r!==-1?r:`${t} በላይ`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ኮከ${e!==1?"ቦች":"ብ"}`,emptyLabelText:"ባዶ"}},MuiAutocomplete:{defaultProps:{clearText:"አጽዳ",closeText:"ዝጋ",loadingText:"በመጫን ላይ…",noOptionsText:"አማራጮች የሉም",openText:"ክፈት"}},MuiAlert:{defaultProps:{closeText:"ዝጋ"}},MuiPagination:{defaultProps:{"aria-label":"የገጽ አሰሳ",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"ወደ "}ገጽ ${t}${r?"":" ሂድ"}`:e==="first"?"ወደ መጀመሪያው ገጽ ይሂዱ":e==="last"?"ወደ መጨረሻው ገጽ ይሂዱ":e==="next"?"ወደ ቀጣዩ ገጽ ይሂዱ":"ወደ ቀዳሚው ገጽ ይሂዱ"}}}},sJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"إظهار المسار"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"انتقل إلى الصفحة الأولى":e==="last"?"انتقل إلى الصفحة الأخيرة":e==="next"?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة",labelRowsPerPage:"عدد الصفوف في الصفحة:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} من ${r!==-1?r:` أكثر من${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"نجوم":"نجمة"}`,emptyLabelText:"فارغ"}},MuiAutocomplete:{defaultProps:{clearText:"مسح",closeText:"إغلاق",loadingText:"جار التحميل...",noOptionsText:"لا يوجد خيارات",openText:"فتح"}},MuiAlert:{defaultProps:{closeText:"إغلاق"}},MuiPagination:{defaultProps:{"aria-label":"التنقل عبر الصفحات",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"انتقل إلى "} صفحة ${t}`:e==="first"?"انتقل إلى الصفحة الأولى":e==="last"?"انتقل إلى الصفحة الأخيرة":e==="next"?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة"}}}},lJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"إظهار المسار"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"الانتقال إلى الصفحة الأولى":e==="last"?"الانتقال إلى الصفحة الأخيرة":e==="next"?"الانتقال إلى الصفحة التالية":"الانتقال إلى الصفحة السابقة",labelRowsPerPage:"عدد الصفوف في الصفحة:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} من ${r!==-1?r:` أكثر من${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"نجوم":"نجمة"}`,emptyLabelText:"فارغ"}},MuiAutocomplete:{defaultProps:{clearText:"مسح",closeText:"إغلاق",loadingText:"جار التحميل...",noOptionsText:"لا توجد خيارات",openText:"فتح"}},MuiAlert:{defaultProps:{closeText:"إغلاق"}},MuiPagination:{defaultProps:{"aria-label":"التنقل عبر الصفحات",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"الانتقال إلى "} صفحة ${t}`:e==="first"?"الانتقال إلى الصفحة الأولى":e==="last"?"الانتقال الي الصفحة الأخيرة":e==="next"?"الانتقال إلى الصفحة التالية":"الانتقال إلى الصفحة السابقة"}}}},cJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"إظهار المسار"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"انتقل إلى الصفحة الأولى":e==="last"?"انتقل إلى الصفحة الأخيرة":e==="next"?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة",labelRowsPerPage:"عدد الصفوف في الصفحة:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} من ${r!==-1?r:` أكثر من${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"نجوم":"نجمة"}`,emptyLabelText:"فارغ"}},MuiAutocomplete:{defaultProps:{clearText:"مسح",closeText:"إغلاق",loadingText:"جار التحميل...",noOptionsText:"لا يوجد خيارات",openText:"فتح"}},MuiAlert:{defaultProps:{closeText:"إغلاق"}},MuiPagination:{defaultProps:{"aria-label":"التنقل عبر الصفحات",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"انتقل إلى "} صفحة ${t}`:e==="first"?"انتقل إلى الصفحة الأولى":e==="last"?"انتقل الي الصفحة الأخيرة":e==="next"?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة"}}}},uJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Yolu göstər"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Birinci səhifəyə keç":e==="last"?"Sonuncu səhifəyə keç":e==="next"?"Növbəti səhifəyə keç":"Əvvəlki səhifəyə keç",labelRowsPerPage:"Səhifəyə düşən sətrlər:"}},MuiRating:{defaultProps:{getLabelText:e=>{let t="Ulduz";const r=e%10;return r>1&&r<5&&(t="Ulduzlar"),`${e} ${t}`},emptyLabelText:"Boş"}},MuiAutocomplete:{defaultProps:{clearText:"Silmək",closeText:"Bağlamaq",loadingText:"Yüklənir…",noOptionsText:"Seçimlər mövcud deyil",openText:"Открыть"}},MuiAlert:{defaultProps:{closeText:"Bağlamaq"}},MuiPagination:{defaultProps:{"aria-label":"Səhifənin naviqasiyası",getItemAriaLabel:(e,t,r)=>e==="page"?`${t} ${r?"səhifə":"səhifəyə keç"}`:e==="first"?"Birinci səhifəyə keç":e==="last"?"Sonuncu səhifəyə keç":e==="next"?"Növbəti səhifəyə keç":"Əvvəlki səhifəyə keç"}}}},fJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"পথ দেখান"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"প্রথম পৃষ্ঠায় যান":e==="last"?"শেষ পৃষ্ঠায় যান":e==="next"?"পরবর্তী পৃষ্ঠায় যান":"আগের পৃষ্ঠায় যান",labelRowsPerPage:"প্রতি পৃষ্ঠায় সারি:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} / ${r!==-1?r:`${t} থেকে বেশি`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} স্টার`,emptyLabelText:"খালি"}},MuiAutocomplete:{defaultProps:{clearText:"পরিষ্কার করুন",closeText:"বন্ধ করুন",loadingText:"লোড হচ্ছে…",noOptionsText:"কোন অপশন নেই",openText:"ওপেন করুন"}},MuiAlert:{defaultProps:{closeText:"বন্ধ করুন"}},MuiPagination:{defaultProps:{"aria-label":"পেজিনেশন নেভিগেশন",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"যান "}পৃষ্ঠা ${t}-এ`:e==="first"?"প্রথম পৃষ্ঠায় যান":e==="last"?"শেষ পৃষ্ঠায় যান":e==="next"?"পরবর্তী পৃষ্ঠায় যান":"আগের পৃষ্ঠায় যান"}}}},dJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Паказаць шлях"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Перайсці на першую старонку":e==="last"?"Перайсці на апошнюю старонку":e==="next"?"Перайсці на наступную старонку":"Перайсці на папярэднюю старонку",labelRowsPerPage:"Радкоў на старонцы:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} з ${r!==-1?r:`больш чым ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t="Зорак";const r=e%10;return r>1&&r<5&&(e<10||e>20)?t="Зоркі":r===1&&e%100!==11&&(t="Зорка"),`${e} ${t}`},emptyLabelText:"Рэйтынг адсутнічае"}},MuiAutocomplete:{defaultProps:{clearText:"Ачысціць",closeText:"Закрыць",loadingText:"Загрузка…",noOptionsText:"Няма варыянтаў",openText:"Адкрыць"}},MuiAlert:{defaultProps:{closeText:"Закрыць"}},MuiPagination:{defaultProps:{"aria-label":"Навігацыя па старонкам",getItemAriaLabel:(e,t,r)=>e==="page"?r?`${t} старонка`:`Перайсці на ${t} старонку`:e==="first"?"Перайсці на першую старонку":e==="last"?"Перайсці на апошнюю старонку":e==="next"?"Перайсці на наступную старонку":"Перайсці на папярэднюю старонку"}}}},hJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Показване на пътя"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Отиди на първата страница":e==="last"?"Отиди на последната страница":e==="next"?"Отиди на следващата страница":"Отиди на предишната страница",labelRowsPerPage:"Редове на страница:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Звезд${e!==1?"и":"а"}`,emptyLabelText:"Изчисти"}},MuiAutocomplete:{defaultProps:{clearText:"Изчисти",closeText:"Затвори",loadingText:"Зареждане…",noOptionsText:"Няма налични опции",openText:"Отвори"}},MuiAlert:{defaultProps:{closeText:"Затвори"}},MuiPagination:{defaultProps:{"aria-label":"Пагинация",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Към "}страница ${t}`:e==="first"?"Отиди на първата страница":e==="last"?"Отиди на последната страница":e==="next"?"Отиди на следващата страница":"Отиди на предишната страница"}}}},pJ={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Files per pàgina:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"Estrelles":"Estrella"}`,emptyLabelText:"Buit"}},MuiAutocomplete:{defaultProps:{clearText:"Netejar",closeText:"Tancar",loadingText:"Carregant…",noOptionsText:"Sense opcions",openText:"Obert"}},MuiAlert:{defaultProps:{closeText:"Tancat"}}}},xJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Ukázat cestu"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Jít na první stránku":e==="last"?"Jít na poslední stránku":e==="next"?"Jít na další stránku":"Jít na předchozí stránku",labelRowsPerPage:"Řádků na stránce:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} z ${r!==-1?r:`více než ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hvězdička`:e>=2&&e<=4?`${e} hvězdičky`:`${e} hvězdiček`,emptyLabelText:"Prázdné"}},MuiAutocomplete:{defaultProps:{clearText:"Vymazat",closeText:"Zavřít",loadingText:"Načítání…",noOptionsText:"Žádné možnosti",openText:"Otevřít"}},MuiAlert:{defaultProps:{closeText:"Zavřít"}},MuiPagination:{defaultProps:{"aria-label":"Navigace stránkováním",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Jít na "}${t}. stránku`:e==="first"?"Jít na první stránku":e==="last"?"Jít na poslední stránku":e==="next"?"Jít na další stránku":"Jít na předchozí stránku"}}}},mJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Vis sti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Gå til den første side":e==="last"?"Gå til den sidste side":e==="next"?"Gå til den næste side":"Gå til den forrige side",labelRowsPerPage:"Rækker pr side:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}-${t} af ${r!==-1?r:`mere end ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjern${e!==1?"er":""}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Slet",closeText:"Luk",loadingText:"Indlæser…",noOptionsText:"Ingen muligheder",openText:"Åben"}},MuiAlert:{defaultProps:{closeText:"Luk"}},MuiPagination:{defaultProps:{"aria-label":"Sideinddelings navigation",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Go to "}page ${t}`:e==="first"?"Gå til den første side":e==="last"?"Gå til den sidste side":e==="next"?"Gå til den næste side":"Gå til den forrige side"}}}},gJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pfad anzeigen"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Zur ersten Seite":e==="last"?"Zur letzten Seite":e==="next"?"Zur nächsten Seite":"Zur vorherigen Seite",labelRowsPerPage:"Zeilen pro Seite:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} von ${r!==-1?r:`mehr als ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"Sterne":"Stern"}`,emptyLabelText:"Keine Wertung"}},MuiAutocomplete:{defaultProps:{clearText:"Leeren",closeText:"Schließen",loadingText:"Wird geladen…",noOptionsText:"Keine Optionen",openText:"Öffnen"}},MuiAlert:{defaultProps:{closeText:"Schließen"}},MuiPagination:{defaultProps:{"aria-label":"Navigation via Seitennummerierung",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Gehe zu "}Seite ${t}`:e==="first"?"Zur ersten Seite":e==="last"?"Zur letzten Seite":e==="next"?"Zur nächsten Seite":"Zur vorherigen Seite"}}}},vJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Εμφάνιση διαδρομής"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Πρώτη σελίδα":e==="last"?"Τελευταία σελίδα":e==="next"?"Επόμενη σελίδα":"Προηγούμενη σελίδα",labelRowsPerPage:"Γραμμές ανα σελίδα:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} από ${r!==-1?r:`πάνω από ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Αστέρι${e!==1?"α":""}`,emptyLabelText:"Χωρίς βαθμολόγηση"}},MuiAutocomplete:{defaultProps:{clearText:"Καθαρισμός",closeText:"Κλείσιμο",loadingText:"Φόρτωση…",noOptionsText:"Δεν υπάρχουν επιλογές",openText:"Άνοιγμα"}},MuiAlert:{defaultProps:{closeText:"Κλείσιμο"}},MuiPagination:{defaultProps:{"aria-label":"Πλοήγηση σε σελίδες",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Μετάβαση "}σελίδα ${t}`:e==="first"?"Πρώτη σελίδα":e==="last"?"Τελευταία σελίδα":e==="next"?"Επόμενη σελίδα":"Προηγούμενη σελίδα"}}}},bJ={},yJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar ruta"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Ir a la primera página":e==="last"?"Ir a la última página":e==="next"?"Ir a la página siguiente":"Ir a la página anterior",labelRowsPerPage:"Filas por página:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} de ${r!==-1?r:`más de ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrella${e!==1?"s":""}`,emptyLabelText:"Vacío"}},MuiAutocomplete:{defaultProps:{clearText:"Limpiar",closeText:"Cerrar",loadingText:"Cargando…",noOptionsText:"Sin opciones",openText:"Abierto"}},MuiAlert:{defaultProps:{closeText:"Cerrar"}},MuiPagination:{defaultProps:{"aria-label":"Paginador",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Ir a la "}página ${t}`:e==="first"?"Ir a la primera página":e==="last"?"Ir a la última página":e==="next"?"Ir a la página siguiente":"Ir a la página anterior"}}}},wJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Näita teed"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Vali esimene lehekülg":e==="last"?"Vali viimane lehekülg":e==="next"?"Vali järgmine lehekülg":"Vali eelmine lehekülg",labelRowsPerPage:"Ridu leheküljel:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} / ${r!==-1?r:`rohkem kui ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Tärn${e!==1?"i":""}`,emptyLabelText:"Tühi"}},MuiAutocomplete:{defaultProps:{clearText:"Tühjenda",closeText:"Sulge",loadingText:"Laen…",noOptionsText:"Valikuid ei ole",openText:"Ava"}},MuiAlert:{defaultProps:{closeText:"Sulge"}},MuiPagination:{defaultProps:{"aria-label":"Lehekülgede valik",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Vali "}lehekülg ${t}`:e==="first"?"Vali esimene lehekülg":e==="last"?"Vali viimane lehekülg":e==="next"?"Vali järgmine lehekülg":"Vali eelmine lehekülg"}}}},SJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"نمایش مسیر"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"رفتن به اولین صفحه":e==="last"?"رفتن به آخرین صفحه":e==="next"?"رفتن به صفحه‌ی بعدی":"رفتن به صفحه‌ی قبلی",labelRowsPerPage:"تعداد سطرهای هر صفحه:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} از ${r!==-1?r:`بیشتر از ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستاره`,emptyLabelText:"خالی"}},MuiAutocomplete:{defaultProps:{clearText:"پاک‌کردن",closeText:"بستن",loadingText:"در حال بارگذاری…",noOptionsText:"بی‌نتیجه",openText:"بازکردن"}},MuiAlert:{defaultProps:{closeText:"بستن"}},MuiPagination:{defaultProps:{"aria-label":"ناوبری صفحه",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"رفتن به "}صفحهٔ ${t}`:e==="first"?"رفتن به اولین صفحه":e==="last"?"رفتن به آخرین صفحه":e==="next"?"رفتن به صفحه‌ی بعدی":"رفتن به صفحه‌ی قبلی"}}}},CJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Näytä reitti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Mene ensimmäiselle sivulle":e==="last"?"Mene viimeiselle sivulle":e==="next"?"Mene seuraavalle sivulle":"Mene edelliselle sivulle",labelRowsPerPage:"Rivejä per sivu:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} / ${r!==-1?r:`enemmän kuin ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Täht${e!==1?"eä":"i"}`,emptyLabelText:"Tyhjä"}},MuiAutocomplete:{defaultProps:{clearText:"Tyhjennä",closeText:"Sulje",loadingText:"Ladataan…",noOptionsText:"Ei valintoja",openText:"Avaa"}},MuiAlert:{defaultProps:{closeText:"Sulje"}},MuiPagination:{defaultProps:{"aria-label":"Sivutus navigaatio",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"sivu":"Mene sivulle"} ${t}`:e==="first"?"Mene ensimmäiselle sivulle":e==="last"?"Mene viimeiselle sivulle":e==="next"?"Mene seuraavalle sivulle":"Mene edelliselle sivulle"}}}},EJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Montrer le chemin"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Aller à la première page":e==="last"?"Aller à la dernière page":e==="next"?"Aller à la page suivante":"Aller à la page précédente",labelRowsPerPage:"Lignes par page :",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} sur ${r!==-1?r:`plus que ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Etoile${e!==1?"s":""}`,emptyLabelText:"Vide"}},MuiAutocomplete:{defaultProps:{clearText:"Vider",closeText:"Fermer",loadingText:"Chargement…",noOptionsText:"Pas de résultats",openText:"Ouvrir"}},MuiAlert:{defaultProps:{closeText:"Fermer"}},MuiPagination:{defaultProps:{"aria-label":"navigation de pagination",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Aller à la "}page ${t}`:e==="first"?"Aller à la première page":e==="last"?"Aller à la dernière page":e==="next"?"Aller à la page suivante":"Aller à la page précédente"}}}},MJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"הצג נתיב"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"לעמוד הראשון":e==="last"?"לעמוד האחרון":e==="next"?"לעמוד הבא":"לעמוד הקודם",labelRowsPerPage:"שורות בעמוד:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} מתוך ${r!==-1?r:`יותר מ ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} כוכב${e!==1?"ים":""}`,emptyLabelText:"ריק"}},MuiAutocomplete:{defaultProps:{clearText:"נקה",closeText:"סגור",loadingText:"טוען…",noOptionsText:"אין אופציות",openText:"פתח"}},MuiAlert:{defaultProps:{closeText:"סגור"}},MuiPagination:{defaultProps:{"aria-label":"ניווט בעמודים",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"ל "}עמוד ${t}`:e==="first"?"לעמוד הראשון":e==="last"?"לעמוד האחרון":e==="next"?"לעמוד הבא":"לעמוד הקודם"}}}},PJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"रास्ता दिखायें"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"पहले पृष्ठ पर जाएँ":e==="last"?"अंतिम पृष्ठ पर जाएँ":e==="next"?"अगले पृष्ठ पर जाएँ":"पिछले पृष्ठ पर जाएँ",labelRowsPerPage:"पंक्तियाँ प्रति पृष्ठ:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}-${t===-1?r:t} कुल ${r} में`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} तार${e!==1?"े":"ा"}`,emptyLabelText:"रिक्त"}},MuiAutocomplete:{defaultProps:{clearText:"हटायें",closeText:"बंद करें",loadingText:"लोड हो रहा है…",noOptionsText:"कोई विकल्प नहीं",openText:"खोलें"}},MuiAlert:{defaultProps:{closeText:"बंद करें"}},MuiPagination:{defaultProps:{"aria-label":"पृस्ठानुसार संचालन",getItemAriaLabel:(e,t,r)=>e==="page"?`पृष्ठ ${t} ${r?"":" पर जाएँ"}`:e==="first"?"पहले पृष्ठ पर जाएँ":e==="last"?"अंतिम पृष्ठ पर जाएँ":e==="next"?"अगले पृष्ठ पर जाएँ":"पिछले पृष्ठ पर जाएँ"}}}},AJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pokaži putanju"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Idi na prvu stranicu":e==="last"?"Idi na posljednju stranicu":e==="next"?"Idi na sljedeću stranicu":"Idi na prethodnu stranicu",labelRowsPerPage:"Redova po stranici:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} od ${r!==-1?r:`više nego ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10,r=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(r)?"Zvijezde":"Zvijezda"},emptyLabelText:"Prazno"}},MuiAutocomplete:{defaultProps:{clearText:"Briši",closeText:"Zatvori",loadingText:"Učitavanje…",noOptionsText:"Nema opcija",openText:"Otvori"}},MuiAlert:{defaultProps:{closeText:"Zatvori"}},MuiPagination:{defaultProps:{"aria-label":"Navigacija po stranicama",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Idi na "}stranicu ${t}`:e==="first"?"Idi na prvu stranicu":e==="last"?"Idi na zadnju stranicu":e==="next"?"Idi na sljedeću stranicu":"Idi na prethodnu stranicu"}}}},kJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Útvonal"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Első oldalra":e==="last"?"Utolsó oldalra":e==="next"?"Következő oldalra":"Előző oldalra",labelRowsPerPage:"Sorok száma:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Csillag`,emptyLabelText:"Üres"}},MuiAutocomplete:{defaultProps:{clearText:"Törlés",closeText:"Bezárás",loadingText:"Töltés…",noOptionsText:"Nincs találat",openText:"Megnyitás"}},MuiAlert:{defaultProps:{closeText:"Bezárás"}},MuiPagination:{defaultProps:{"aria-label":"Lapozás",getItemAriaLabel:(e,t,r)=>e==="page"?`${t}. oldal${r?"":"ra"}`:e==="first"?"Első oldalra":e==="last"?"Utolsó oldalra":e==="next"?"Következő oldalra":"Előző oldalra"}}}},_J={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Տողեր մեկ էջում`"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Աստղ`,emptyLabelText:"Դատարկ"}},MuiAutocomplete:{defaultProps:{clearText:"Մաքրել",closeText:"Փակել",loadingText:"Բեռնում…",noOptionsText:"Տարբերակներ չկան",openText:"Բացել"}},MuiAlert:{defaultProps:{closeText:"Փակել"}}}},RJ={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Baris per halaman:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bintang`}},MuiAutocomplete:{defaultProps:{clearText:"Hapus",closeText:"Tutup",loadingText:"Memuat…",noOptionsText:"Tidak ada opsi",openText:"Buka"}},MuiAlert:{defaultProps:{closeText:"Tutup"}}}},TJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Sýna slóð"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Fara á fyrstu síðu":e==="last"?"Fara á síðustu síðu":e==="next"?"Fara á næstu síðu":"Fara á fyrri síðu",labelRowsPerPage:"Raðir á síðu:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} af ${r!==-1?r:`fleiri enn ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?"stjarna":"stjörnur"}`,emptyLabelText:"Tómt"}},MuiAutocomplete:{defaultProps:{clearText:"Hreinsa",closeText:"Loka",loadingText:"Hlaða…",noOptionsText:"Engar niðurstöður",openText:"Opna"}},MuiAlert:{defaultProps:{closeText:"Loka"}},MuiPagination:{defaultProps:{"aria-label":"Síðuflakk",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"Síða":"Fara á síðu"} ${t}`:e==="first"?"Fara á fyrstu síðu":e==="last"?"Fara á síðustu síðu":e==="next"?"Fara á næstu síðu":"Fara á fyrri síðu"}}}},$J={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Visualizza percorso"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Vai alla prima pagina":e==="last"?"Vai all'ultima pagina":e==="next"?"Vai alla pagina successiva":"Vai alla pagina precedente",labelRowsPerPage:"Righe per pagina:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} di ${r!==-1?r:`più di ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stell${e!==1?"e":"a"}`,emptyLabelText:"Vuoto"}},MuiAutocomplete:{defaultProps:{clearText:"Svuota",closeText:"Chiudi",loadingText:"Caricamento in corso…",noOptionsText:"Nessuna opzione",openText:"Apri"}},MuiAlert:{defaultProps:{closeText:"Chiudi"}},MuiPagination:{defaultProps:{"aria-label":"Navigazione impaginata",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Vai alla "}pagina ${t}`:e==="first"?"Vai alla prima pagina":e==="last"?"Vai all'ultima pagina":e==="next"?"Vai alla pagina successiva":"Vai alla pagina precedente"}}}},BJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"すべて表示"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"最初のページへ":e==="last"?"最後のページへ":e==="next"?"次のページへ":"前のページへ",labelRowsPerPage:"ページあたりの行数:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}~${t} / ${r!==-1?r:`${t}以上`}`}},MuiRating:{defaultProps:{getLabelText:e=>`星${e}`,emptyLabelText:"星なし"}},MuiAutocomplete:{defaultProps:{clearText:"クリア",closeText:"閉じる",loadingText:"読み込み中…",noOptionsText:"データがありません",openText:"開く"}},MuiAlert:{defaultProps:{closeText:"閉じる"}},MuiPagination:{defaultProps:{"aria-label":"ページ選択",getItemAriaLabel:(e,t,r)=>e==="page"?`ページ${t}${r?"":"へ"}`:e==="first"?"最初のページへ":e==="last"?"最後のページへ":e==="next"?"次のページへ":"前のページへ"}}}},IJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"បង្ហាញផ្លូវ"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"ទៅទំព័រដំបូង":e==="last"?"ទៅទំព័រចុងក្រោយ":e==="next"?"ទៅទំព័របន្ទាប់":"ទៅទំព័រមុន",labelRowsPerPage:"ចំនួនជួរដេកក្នុងមួយទំព័រ:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e} - ${t} នៃ ${r!==-1?r:`ច្រើនជាង ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ផ្កាយ`,emptyLabelText:"ទទេ"}},MuiAutocomplete:{defaultProps:{clearText:"លុបចោល",closeText:"បិទ",loadingText:"កំពុងលោត…",noOptionsText:"គ្មានជម្រើស",openText:"បើក"}},MuiAlert:{defaultProps:{closeText:"បិទ"}},MuiPagination:{defaultProps:{"aria-label":"រុករកទំព័រ",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"ទៅ "}ទំព័រ ${t}`:e==="first"?"ទៅទំព័រដំបូង":e==="last"?"ទៅទំព័រចុងក្រោយ":e==="next"?"ទៅទំព័របន្ទាប់":"ទៅទំព័រមុន"}}}},FJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"경로 보기"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"첫 번째 페이지로 이동":e==="last"?"마지막 페이지로 이동":e==="next"?"다음 페이지로 이동":"이전 페이지로 이동",labelRowsPerPage:"페이지 당 행:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} / ${r!==-1?r:`${t}개 이상`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 점`,emptyLabelText:"빈 텍스트"}},MuiAutocomplete:{defaultProps:{clearText:"지우기",closeText:"닫기",loadingText:"불러오는 중…",noOptionsText:"옵션 없음",openText:"열기"}},MuiAlert:{defaultProps:{closeText:"닫기"}},MuiPagination:{defaultProps:{"aria-label":"페이지네이션 네비게이션",getItemAriaLabel:(e,t,r)=>e==="page"?`${t} 번째 페이지${r?"":"로 이동"}`:e==="first"?"첫 번째 페이지로 이동":e==="last"?"마지막 페이지로 이동":e==="next"?"다음 페이지로 이동":"이전 페이지로 이동"}}}},OJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"ڕێچکە پیشان بدە"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"چوونە یەکەم پەڕە":e==="last"?"چوونە کۆتا پەڕە":e==="next"?"چوونە پەڕەی دواتر":"گەڕانەوە بۆ پەڕەی پێشوو",labelRowsPerPage:"ژمارەی ڕیزەکان لە هەر پەڕەیەک:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} لە ${r!==-1?r:` زیاترە لە${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"ئەستێرەکان":"ئەستێرە"}`,emptyLabelText:"خاڵیە"}},MuiAutocomplete:{defaultProps:{clearText:"سڕینەوە",closeText:"داخستن",loadingText:"لە بارکردندایە...",noOptionsText:"هیچ بژاردەیەک نیە",openText:"کردنەوە"}},MuiAlert:{defaultProps:{closeText:"داخستن"}},MuiPagination:{defaultProps:{"aria-label":"گەڕان لە پەڕەکان",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"چوون بۆ "} پەڕەی ${t}`:e==="first"?"چوونە یەکەم پەڕە":e==="last"?"چوونە کۆتا پەڕە":e==="next"?"چوونە پەڕەی دواتر":"گەڕانەوە بۆ پەڕەی پێشوو"}}}},DJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Rê nîşan bide"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Biçe rûpela yekem":e==="last"?"Biçe rûpela dawî":e==="next"?"Biçe rûpela din":"Biçe rûpela berê",labelRowsPerPage:"Rêz li ser rûpelê:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} of ${r!==-1?r:`zêdetir ji ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stêrk`,emptyLabelText:"Vala"}},MuiAutocomplete:{defaultProps:{clearText:"Paqij bike",closeText:"Bigre",loadingText:"Tê barkirin…",noOptionsText:"Vebijêrk tune",openText:"Veke"}},MuiAlert:{defaultProps:{closeText:"Bigre"}},MuiPagination:{defaultProps:{"aria-label":"Navîgasyona rûpelan",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Biçe "}rûpel ${t}`:e==="first"?"Biçe rûpela yekem":e==="last"?"Biçe rûpela dawî":e==="next"?"Biçe rûpela din":"Biçe rûpela berê"}}}},LJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Толық жолды көрсету"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Бірінші бетке өту":e==="last"?"Соңғы бетке өту":e==="next"?"Келесі бетке өту":"Алдыңғы бетке өту",labelRowsPerPage:"Беттегі қатарлар:",labelDisplayedRows:({from:e,to:t,count:r})=>`${r!==-1?r:`+${t}`} қатардың ішінен ${e}–${t}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} жұлдыз`,emptyLabelText:"Рейтинг жоқ"}},MuiAutocomplete:{defaultProps:{clearText:"Тазарту",closeText:"Жабу",loadingText:"Жүктелуде…",noOptionsText:"Қол жетімді нұсқалар жоқ",openText:"Ашу"}},MuiAlert:{defaultProps:{closeText:"Жабу"}},MuiPagination:{defaultProps:{"aria-label":"Беттерді шарлау",getItemAriaLabel:(e,t,r)=>e==="page"?r?`${t} — бет`:`${t} — бетке өту`:e==="first"?"Бірінші бетке өту":e==="last"?"Соңғы бетке өту":e==="next"?"Келесі бетке өту":"Алдыңғы бетке өту"}}}},NJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Прикажи патека"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Оди на прва страница":e==="last"?"Оди на последна страница":e==="next"?"Оди на следна страница":"Оди на предходна страница",labelRowsPerPage:"Редови по страница:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} од ${r!==-1?r:`повеќе од ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10;return`${e} Ѕвезд${t===1?"а":"и"}`},emptyLabelText:"Празно"}},MuiAutocomplete:{defaultProps:{clearText:"Избриши",closeText:"Затвори",loadingText:"Се презема",noOptionsText:"Нема опција",openText:"Отвори"}},MuiAlert:{defaultProps:{closeText:"Затвори"}},MuiPagination:{defaultProps:{"aria-label":"Навигација низ страници",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Оди на "}страница ${t}`:e==="first"?"Оди на прва страница":e==="last"?"Оди на последна страница":e==="next"?"Оди на следна страница":"Оди на предходна страница"}}}},zJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"လမ်းကြောင်းပြပါ။"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"ပထမစာမျက်နှာသို့သွားပါ။":e==="last"?"နောက်ဆုံးစာမျက်နှာသို့သွားပါ။":e==="next"?"နောက်စာမျက်နှာသို့သွားပါ။":"ယခင်စာမျက်နှာသို့သွားပါ။",labelRowsPerPage:"စာမျက်နှာအလိုက် အတန်းများ:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} ၏ ${r!==-1?r:`ထက်ပိုပြီး ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10;return`${e} ကြယ်ပွင့်${t===1?"၎":""}`},emptyLabelText:"ဗလာ"}},MuiAutocomplete:{defaultProps:{clearText:"ရှင်းလင်းသော",closeText:"ပိတ်လိုက်",loadingText:"ဖွင့်နေသည်…",noOptionsText:"ရွေးချယ်ခွင့်မရှိပါ။",openText:"ဖွင့်သည်။"}},MuiAlert:{defaultProps:{closeText:"ပိတ်လိုက်"}},MuiPagination:{defaultProps:{"aria-label":"Pagination အညွှန်း",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"သွားပါ။ "}စာမျက်နှာ ${t}`:e==="first"?"ပထမစာမျက်နှာသို့သွားပါ။":e==="last"?"နောက်ဆုံးစာမျက်နှာသို့သွားပါ။":e==="next"?"နောက်စာမျက်နှာသို့သွားပါ။":"ယခင်စာမျက်နှာသို့သွားပါ။"}}}},jJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Tunjukkan laluan"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Pergi ke halaman pertama":e==="last"?"Pergi ke halaman terakhir":e==="next"?"Pergi ke halaman seterusnya":"Pergi ke halaman sebelumnya",labelRowsPerPage:"Baris setiap halaman:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} daripada ${r!==-1?r:`lebih daripada ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10;return`${e} Bintang${t===1?"s":""}`},emptyLabelText:"kosong"}},MuiAutocomplete:{defaultProps:{clearText:"Jelas",closeText:"tutup",loadingText:"Memuatkan…",noOptionsText:"Tiada pilihan",openText:"Buka"}},MuiAlert:{defaultProps:{closeText:"tutup"}},MuiPagination:{defaultProps:{"aria-label":"Navigasi penomboran",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Pergi ke "}muka surat ${t}`:e==="first"?"Pergi ke halaman pertama":e==="last"?"Pergi ke halaman terakhir":e==="next"?"Pergi ke halaman seterusnya":"Pergi ke halaman sebelumnya"}}}},UJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"बाटो देखाउनुहोस्"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"पहिलो पृष्ठमा जानुहोस्":e==="last"?"अन्तिम पृष्ठमा जानुहोस्":e==="next"?"अर्को पृष्ठमा जानुहोस्":"अघिल्लो पृष्ठमा जानुहोस्",labelRowsPerPage:"प्रति पृष्ठ पङ्क्तिहरू:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} को ${r!==-1?r:`धेरै ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10;return`${e} तारा${t===1?"स":""}`},emptyLabelText:"खाली"}},MuiAutocomplete:{defaultProps:{clearText:"खाली गर्नुहोस्",closeText:"बन्द गर्नुहोस्",loadingText:"लोड हुँदै...",noOptionsText:"कुनै विकल्प छैन",openText:"खोल्नुहोस्"}},MuiAlert:{defaultProps:{closeText:"बन्द गर्नुहोस्"}},MuiPagination:{defaultProps:{"aria-label":"पृष्ठांकन नेभिगेसन",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"जाऊ त्यहाँ "}पृष्ठ ${t}`:e==="first"?"पहिलो पृष्ठमा जानुहोस्":e==="last"?"अन्तिम पृष्ठमा जानुहोस्":e==="next"?"अर्को पृष्ठमा जानुहोस्":"अघिल्लो पृष्ठमा जानुहोस्"}}}},HJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Vis sti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Gå til første side":e==="last"?"Gå til siste side":e==="next"?"Gå til neste side":"Gå til forrige side",labelRowsPerPage:"Rader per side:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} av ${r!==-1?r:`mer enn ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjerne${e!==1?"r":""}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Tøm",closeText:"Lukk",loadingText:"Laster inn…",noOptionsText:"Ingen alternativer",openText:"Åpne"}},MuiAlert:{defaultProps:{closeText:"Lukk"}},MuiPagination:{defaultProps:{"aria-label":"Paginering navigasjon",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Gå til "}side ${t}`:e==="first"?"Gå til første side":e==="last"?"Gå til siste side":e==="next"?"Gå til neste side":"Gå til forrige side"}}}},WJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Vis sti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Gå til første side":e==="last"?"Gå til siste side":e==="next"?"Gå til neste side":"Gå til førre side",labelRowsPerPage:"Rader per side:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} av ${r!==-1?r:`fleire enn ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} stjerne${e!==1?"r":""}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Tøm",closeText:"Lukk",loadingText:"Lastar inn…",noOptionsText:"Ingen alternativ",openText:"Opna"}},MuiAlert:{defaultProps:{closeText:"Lukk"}},MuiPagination:{defaultProps:{"aria-label":"Navigasjon for paginering",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Gå til "}side ${t}`:e==="first"?"Gå til første side":e==="last"?"Gå til siste side":e==="next"?"Gå til neste side":"Gå til førre side"}}}},VJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pad tonen"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Ga naar eerste pagina":e==="last"?"Ga naar laatste pagina":e==="next"?"Ga naar volgende pagina":"Ga naar vorige pagina",labelRowsPerPage:"Regels per pagina:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} van ${r!==-1?r:`meer dan ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Ster${e!==1?"ren":""}`,emptyLabelText:"Leeg"}},MuiAutocomplete:{defaultProps:{clearText:"Wissen",closeText:"Sluiten",loadingText:"Laden…",noOptionsText:"Geen opties",openText:"Openen"}},MuiAlert:{defaultProps:{closeText:"Sluiten"}},MuiPagination:{defaultProps:{"aria-label":"Navigatie via paginering",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Ga naar "}pagina ${t}`:e==="first"?"Ga naar eerste pagina":e==="last"?"Ga naar laatste pagina":e==="next"?"Ga naar volgende pagina":"Ga naar vorige pagina"}}}},qJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pokaż ścieżkę"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Przejdź do pierwszej strony":e==="last"?"Przejdź do ostatniej strony":e==="next"?"Przejdź do następnej strony":"Przejdź do poprzedniej strony",labelRowsPerPage:"Wierszy na stronę:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} z ${r!==-1?r:`ponad ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t="gwiazdek";const r=e%10;return(e<10||e>20)&&r>1&&r<5?t="gwiazdki":e===1&&(t="gwiazdka"),`${e} ${t}`},emptyLabelText:"Brak gwiazdek"}},MuiAutocomplete:{defaultProps:{clearText:"Wyczyść",closeText:"Zamknij",loadingText:"Ładowanie…",noOptionsText:"Brak opcji",openText:"Otwórz"}},MuiAlert:{defaultProps:{closeText:"Zamknij"}},MuiPagination:{defaultProps:{"aria-label":"Nawigacja podziału na strony",getItemAriaLabel:(e,t,r)=>e==="page"?r?`${t}. strona`:`Przejdź do ${t}. strony`:e==="first"?"Przejdź do pierwszej strony":e==="last"?"Przejdź do ostatniej strony":e==="next"?"Przejdź do następnej strony":"Przejdź do poprzedniej strony"}}}},KJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar caminho"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Ir para a primeira página":e==="last"?"Ir para a última página":e==="next"?"Ir para a próxima página":"Ir para a página anterior",labelRowsPerPage:"Linhas por página:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} de ${r!==-1?r:`mais de ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e!==1?"s":""}`,emptyLabelText:"Vazio"}},MuiAutocomplete:{defaultProps:{clearText:"Limpar",closeText:"Fechar",loadingText:"Carregando…",noOptionsText:"Sem opções",openText:"Abrir"}},MuiAlert:{defaultProps:{closeText:"Fechar"}},MuiPagination:{defaultProps:{"aria-label":"Navegar pela paginação",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Ir para a "}página ${t}`:e==="first"?"Ir para a primeira página":e==="last"?"Ir para a última página":e==="next"?"Ir para a próxima página":"Ir para a página anterior"}}}},GJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar caminho"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Primeira página":e==="last"?"Última página":e==="next"?"Próxima página":"Página anterior",labelRowsPerPage:"Linhas por página:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} de ${r!==-1?r:`mais de ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e!==1?"s":""}`,emptyLabelText:"Vazio"}},MuiAutocomplete:{defaultProps:{clearText:"Limpar",closeText:"Fechar",loadingText:"A carregar…",noOptionsText:"Sem opções",openText:"Abrir"}},MuiAlert:{defaultProps:{closeText:"Fechar"}},MuiPagination:{defaultProps:{"aria-label":"Navegar por páginas",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Ir para a "}página ${t}`:e==="first"?"Primeira página":e==="last"?"Última página":e==="next"?"Próxima página":"Página anterior"}}}},YJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Arată calea"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Mergi la prima pagină":e==="last"?"Mergi la ultima pagină":e==="next"?"Mergi la pagina următoare":"Mergi la pagina precedentă",labelRowsPerPage:"Rânduri pe pagină:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} St${e!==1?"ele":"ea"}`,emptyLabelText:"Gol"}},MuiAutocomplete:{defaultProps:{clearText:"Șterge",closeText:"Închide",loadingText:"Se încarcă…",noOptionsText:"Nicio opțiune",openText:"Deschide"}},MuiAlert:{defaultProps:{closeText:"Închide"}},MuiPagination:{defaultProps:{"aria-label":"Navigare prin paginare",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Mergi la "}pagina ${t}`:e==="first"?"Mergi la prima pagină":e==="last"?"Mergi la ultima pagină":e==="next"?"Mergi la pagina următoare":"Mergi la pagina precedentă"}}}},XJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pokaži putanju"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Idi na prvu stranicu":e==="last"?"Idi na poslednju stranicu":e==="next"?"Idi na sledeću stranicu":"Idi na prethodnu stranicu",labelRowsPerPage:"Redova po stranici:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} od ${r!==-1?r:`više nego ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10,r=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(r)?"Zvezde":"Zvezda"},emptyLabelText:"Prazno"}},MuiAutocomplete:{defaultProps:{clearText:"Briši",closeText:"Zatvori",loadingText:"Učitavanje…",noOptionsText:"Nema opcija",openText:"Otvori"}},MuiAlert:{defaultProps:{closeText:"Zatvori"}},MuiPagination:{defaultProps:{"aria-label":"Navigacija po stranicama",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Idi na "}stranicu ${t}`:e==="first"?"Idi na prvu stranicu":e==="last"?"Idi na zadnju stranicu":e==="next"?"Idi na sledeću stranicu":"Idi na prethodnu stranicu"}}}},JJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Показать полный путь"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Перейти на первую страницу":e==="last"?"Перейти на последнюю страницу":e==="next"?"Перейти на следующую страницу":"Перейти на предыдущую страницу",labelRowsPerPage:"Строк на странице:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} из ${r!==-1?r:`более чем ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t="Звёзд";const r=e%10;return r>1&&r<5?t="Звезды":r===1&&(t="Звезда"),`${e} ${t}`},emptyLabelText:"Рейтинг отсутствует"}},MuiAutocomplete:{defaultProps:{clearText:"Очистить",closeText:"Закрыть",loadingText:"Загрузка…",noOptionsText:"Нет доступных вариантов",openText:"Открыть"}},MuiAlert:{defaultProps:{closeText:"Закрыть"}},MuiPagination:{defaultProps:{"aria-label":"Навигация по страницам",getItemAriaLabel:(e,t,r)=>e==="page"?r?`${t} страница`:`Перейти на ${t} страницу`:e==="first"?"Перейти на первую страницу":e==="last"?"Перейти на последнюю страницу":e==="next"?"Перейти на следующую страницу":"Перейти на предыдущую страницу"}}}},ZJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"ගමන් මඟ පෙන්වන්න"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"පළමු පිටුවට යන්න":e==="last"?"අවසාන පිටුවට යන්න":e==="next"?"මීළඟ පිටුවට යන්න":"පෙර පිටුවට යන්න",labelRowsPerPage:"පිටුවක පේළි:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} දක්වා ${r!==-1?r:`${t} ට වැඩි ප්‍රමාණයකින්`}`}},MuiRating:{defaultProps:{getLabelText:e=>`තරු ${e}`,emptyLabelText:"හිස්"}},MuiAutocomplete:{defaultProps:{clearText:"මකන්න",closeText:"වසන්න",loadingText:"නැංවෙමින්…",noOptionsText:"විකල්ප නැත",openText:"විවෘත කරන්න"}},MuiAlert:{defaultProps:{closeText:"වසන්න"}},MuiPagination:{defaultProps:{"aria-label":"පිටු අතර සංචරණය",getItemAriaLabel:(e,t,r)=>e==="page"?`පිටුව ${t} ${r?"":"ට යන්න"}`:e==="first"?"පළමු පිටුවට යන්න":e==="last"?"අවසාන පිටුවට යන්න":e==="next"?"මීළඟ පිටුවට යන්න":"පෙර පිටුවට යන්න"}}}},QJ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Ukázať cestu "}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Ísť na prvú stránku":e==="last"?"Ísť na poslednú stránku":e==="next"?"Ísť na ďaľšiu stránku":"Ísť na predchádzajúcu stránku",labelRowsPerPage:"Riadkov na stránke:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} z ${r!==-1?r:`viac ako ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hviezdička`:e>=2&&e<=4?`${e} hviezdičky`:`${e} hviezdičiek`,emptyLabelText:"Prázdne"}},MuiAutocomplete:{defaultProps:{clearText:"Vymazať",closeText:"Zavrieť",loadingText:"Načítanie…",noOptionsText:"Žiadne možnosti",openText:"Otvoriť"}},MuiAlert:{defaultProps:{closeText:"Zavrieť"}},MuiPagination:{defaultProps:{"aria-label":"Navigácia stránkovanim",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Ísť na "}stránku ${t}`:e==="first"?"Ísť na prvú stránku":e==="last"?"Ísť na poslednú stránku":e==="next"?"Ísť na ďaľšiu stránku":"Ísť na predchádzajúcu stránku"}}}},eZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Visa sökväg"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Gå till första sidan":e==="last"?"Gå till sista sidan":e==="next"?"Gå till nästa sida":"Gå till föregående sida",labelRowsPerPage:"Rader per sida:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} av ${r!==-1?r:`fler än ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"Stjärnor":"Stjärna"}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Rensa",closeText:"Stäng",loadingText:"Laddar…",noOptionsText:"Inga alternativ",openText:"Öppna"}},MuiAlert:{defaultProps:{closeText:"Stäng"}},MuiPagination:{defaultProps:{"aria-label":"Sidnavigering",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Gå till "}sida ${t}`:e==="first"?"Gå till första sidan":e==="last"?"Gå till sista sidan":e==="next"?"Gå till nästa sida":"Gå till föregående sida"}}}},tZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"แสดงเส้นทาง"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"ไปที่หน้าแรก":e==="last"?"ไปที่หน้าสุดท้าย":e==="next"?"ไปที่หน้าถัดไป":"ไปที่หน้าก่อน",labelRowsPerPage:"จำนวนแถวต่อหน้า:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} จาก ${r!==-1?r:`มากกว่า ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ดาว`,emptyLabelText:"ว่างเปล่า"}},MuiAutocomplete:{defaultProps:{clearText:"เคลียร์",closeText:"ปิด",loadingText:"กำลังโหลด…",noOptionsText:"ไม่มีตัวเลือก",openText:"เปิด"}},MuiAlert:{defaultProps:{closeText:"ปิด"}},MuiPagination:{defaultProps:{"aria-label":"",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"ไปที่"}หน้า ${t}`:e==="first"?"ไปที่หน้าแรก":e==="last"?"ไปที่หน้าสุดท้าย":e==="next"?"ไปที่หน้าถัดไป":"ไปที่หน้าก่อน"}}}},rZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Yolu göster"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"İlk sayfaya git":e==="last"?"Son sayfaya git":e==="next"?"Sonraki sayfaya git":"Önceki sayfaya git",labelRowsPerPage:"Sayfa başına satır:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}-${t} / ${r!==-1?r:`${t}'den fazla`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Yıldız`,emptyLabelText:"Boş"}},MuiAutocomplete:{defaultProps:{clearText:"Temizle",closeText:"Kapat",loadingText:"Yükleniyor…",noOptionsText:"Seçenek yok",openText:"Aç"}},MuiAlert:{defaultProps:{closeText:"Kapat"}},MuiPagination:{defaultProps:{"aria-label":"Sayfa navigasyonu",getItemAriaLabel:(e,t,r)=>e==="page"?`${t}. ${r?"sayfa":"sayfaya git"}`:e==="first"?"İlk sayfaya git":e==="last"?"Son sayfaya git":e==="next"?"Sonraki sayfaya git":"Önceki sayfaya git"}}}},nZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Ipakita ang landas"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Pumunta sa unang pahina":e==="last"?"Pumunta sa huling pahina":e==="next"?"Pumunta sa susunod na pahina":"Pumunta sa nakaraang pahina",labelRowsPerPage:"Mga hilera bawat pahina:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} ng ${r!==-1?r:`higit sa ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bituin${e!==1?"s":""}`,emptyLabelText:"Walang laman"}},MuiAutocomplete:{defaultProps:{clearText:"Maaliwalas",closeText:"Isara",loadingText:"Naglo-load…",noOptionsText:"Walang mga pagpipilian",openText:"Bukas"}},MuiAlert:{defaultProps:{closeText:"Isara"}},MuiPagination:{defaultProps:{"aria-label":"Sayfa navigasyonu",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Pumunta sa"}pahina ${t}`:e==="first"?"Pumunta sa unang pahina":e==="last"?"Pumunta sa huling pahina":e==="next"?"Pumunta sa susunod na pahina":"Pumunta sa nakaraang pahina"}}}},iZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Показати шлях сторінок"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Перейти на першу сторінку":e==="last"?"Перейти на останню сторінку":e==="next"?"Перейти на наступну сторінку":"Перейти на попередню сторінку",labelRowsPerPage:"Рядків на сторінці:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} з ${r!==-1?r:`понад ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t="Зірок";const r=e%10;return r>1&&r<5?t="Зірки":r===1&&(t="Зірка"),`${e} ${t}`},emptyLabelText:"Рейтинг відсутній"}},MuiAutocomplete:{defaultProps:{clearText:"Очистити",closeText:"Згорнути",loadingText:"Завантаження…",noOptionsText:"Немає варіантів",openText:"Розгорнути"}},MuiAlert:{defaultProps:{closeText:"Згорнути"}},MuiPagination:{defaultProps:{"aria-label":"Навігація сторінками",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Перейти на "}сторінку ${t}`:e==="first"?"Перейти на першу сторінку":e==="last"?"Перейти на останню сторінку":e==="next"?"Перейти на наступну сторінку":"Перейти на попередню сторінку"}}}},oZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"راستہ دکھائیں"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"پہلے صفحے پر جائیں":e==="last"?"آخری صفحے پر جائیں":e==="next"?"اگلے صفحے پر جائیں":"پچھلے صفحے پر جائیں",labelRowsPerPage:"ایک صفحے پر قطاریں:",labelDisplayedRows:({from:e,to:t,count:r})=>`${r!==-1?`${r} میں سے`:`${t} سے ذیادہ میں سے`} ${e} سے ${t} قطاریں`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستار${e!==1?"ے":"ہ"}`,emptyLabelText:"خالی"}},MuiAutocomplete:{defaultProps:{clearText:"کلئیر",closeText:"بند کریں",loadingText:"لوڈ ہو رہا ہے۔۔۔",noOptionsText:"کوئی آپشن نہیں",openText:"کھولیں"}},MuiAlert:{defaultProps:{closeText:"بند کریں"}},MuiPagination:{defaultProps:{"aria-label":"صفحات کی ترتیب",getItemAriaLabel:(e,t,r)=>e==="page"?`صفحہ نمبر ${t}${r?"":" پر جائیں"}`:e==="first"?"پہلے صفحے پر جائیں":e==="last"?"آخری صفحے پر جائیں":e==="next"?"اگلے صفحے پر جائیں":"پچھلے صفحے پر جائیں"}}}},aZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mở ra"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Tới trang đầu tiên":e==="last"?"Tới trang cuối cùng":e==="next"?"Tới trang tiếp theo":"Về trang trước đó",labelRowsPerPage:"Số hàng mỗi trang:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e}–${t} trong ${r!==-1?r:`nhiều hơn ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} sao`,emptyLabelText:"Không có dữ liệu"}},MuiAutocomplete:{defaultProps:{clearText:"Xóa",closeText:"Đóng",loadingText:"Đang tải…",noOptionsText:"Không có lựa chọn nào",openText:"Mở"}},MuiAlert:{defaultProps:{closeText:"Đóng"}},MuiPagination:{defaultProps:{"aria-label":"Thanh điều khiển trang",getItemAriaLabel:(e,t,r)=>e==="page"?`${r?"":"Tới "}trang ${t}`:e==="first"?"Tới trang đầu tiên":e==="last"?"Tới trang cuối cùng":e==="next"?"Tới trang tiếp theo":"Về trang trước đó"}}}},sZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"展开"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"第一页":e==="last"?"最后一页":e==="next"?"下一页":"上一页",labelRowsPerPage:"每页行数:",labelDisplayedRows:({from:e,to:t,count:r})=>`第 ${e} 条到第 ${t} 条,${r!==-1?`共 ${r} 条`:`至少 ${t} 条`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 颗星`,emptyLabelText:"无标签"}},MuiAutocomplete:{defaultProps:{clearText:"清空",closeText:"关闭",loadingText:"加载中……",noOptionsText:"没有可用选项",openText:"打开"}},MuiAlert:{defaultProps:{closeText:"关闭"}}}},lZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"展開"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"第一頁":e==="last"?"最後一頁":e==="next"?"下一頁":"上一頁",labelRowsPerPage:"每頁行數:",labelDisplayedRows:({from:e,to:t,count:r})=>`第 ${e} 項至第 ${t} 項,${r!==-1?`共 ${r} 項`:`超過 ${t} 項`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 粒星`,emptyLabelText:"無標籤"}},MuiAutocomplete:{defaultProps:{clearText:"清除",closeText:"關閉",loadingText:"載入中……",noOptionsText:"沒有可用選項",openText:"開啟"}},MuiAlert:{defaultProps:{closeText:"關閉"}}}},cZ={components:{MuiBreadcrumbs:{defaultProps:{expandText:"展開"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"第一頁":e==="last"?"最後一頁":e==="next"?"下一頁":"上一頁",labelRowsPerPage:"每頁數量:",labelDisplayedRows:({from:e,to:t,count:r})=>`${e} ~ ${t} / ${r!==-1?r:`${t} 以上`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 顆星`,emptyLabelText:"無標籤"}},MuiAutocomplete:{defaultProps:{clearText:"清空",closeText:"關閉",loadingText:"載入中…",noOptionsText:"沒有可用選項",openText:"打開"}},MuiAlert:{defaultProps:{closeText:"關閉"}}}},Bue=Object.freeze(Object.defineProperty({__proto__:null,amET:aJ,arEG:sJ,arSA:lJ,arSD:cJ,azAZ:uJ,beBY:dJ,bgBG:hJ,bnBD:fJ,caES:pJ,csCZ:xJ,daDK:mJ,deDE:gJ,elGR:vJ,enUS:bJ,esES:yJ,etEE:wJ,faIR:SJ,fiFI:CJ,frFR:EJ,heIL:MJ,hiIN:PJ,hrHR:AJ,huHU:kJ,hyAM:_J,idID:RJ,isIS:TJ,itIT:$J,jaJP:BJ,khKH:IJ,kkKZ:LJ,koKR:FJ,kuCKB:OJ,kuLatn:DJ,mkMK:NJ,msMS:jJ,myMY:zJ,nbNO:HJ,neNP:UJ,nlNL:VJ,nnNO:WJ,plPL:qJ,ptBR:KJ,ptPT:GJ,roRO:YJ,ruRU:JJ,siLK:ZJ,skSK:QJ,srRS:XJ,svSE:eZ,thTH:tZ,tlTL:nZ,trTR:rZ,ukUA:iZ,urPK:oZ,viVN:aZ,zhCN:sZ,zhHK:lZ,zhTW:cZ},Symbol.toStringTag,{value:"Module"}));var y5={},w5=g1;y5.createRoot=w5.createRoot,y5.hydrateRoot=w5.hydrateRoot;const uZ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]}};let fZ=class qv{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||uZ,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i{let[s,l]=a;for(let c=0;c{let[s,l]=a;for(let c=0;c{e=n,t=i});return r.resolve=e,r.reject=t,r}function S5(e){return e==null?"":""+e}function dZ(e,t,r){e.forEach(n=>{t[n]&&(r[n]=t[n])})}const hZ=/###/g;function wf(e,t,r){function n(s){return s&&s.indexOf("###")>-1?s.replace(hZ,"."):s}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let a=0;for(;a":">",'"':""","'":"'","/":"/"};function gZ(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>mZ[t]):e}class vZ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const bZ=[" ",",","?","!",";"],yZ=new vZ(20);function wZ(e,t,r){t=t||"",r=r||"";const n=bZ.filter(a=>t.indexOf(a)<0&&r.indexOf(a)<0);if(n.length===0)return!0;const i=yZ.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Kv(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let i=e;for(let o=0;o-1&&l0?e.replace("_","-"):e}class E5 extends _1{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):typeof n=="string"&&o?s.push(...n.split(o)):s.push(n)));const l=Wh(this.data,s);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!a||typeof n!="string"?l:Kv(this.data&&this.data[t]&&this.data[t][r],n,o)}addResource(t,r,n,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(s=t.split("."),i=r,r=s[1]),this.addNamespaces(r),C5(this.data,s,i),o.silent||this.emit("added",t,r,n,i)}addResources(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in n)(typeof n[o]=="string"||Object.prototype.toString.apply(n[o])==="[object Array]")&&this.addResource(t,r,o,n[o],{silent:!0});i.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,r];t.indexOf(".")>-1&&(s=t.split("."),i=n,n=r,r=s[1]),this.addNamespaces(r);let l=Wh(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?bM(l,n,o):l={...l,...n},C5(this.data,s,l),a.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var yM={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,r,n,i))}),t}};const M5={};class qh extends _1{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),dZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=So.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=r.ns||this.options.defaultNS||[];const a=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!wZ(t,n,i);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:o};const c=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],r),l=s[s.length-1],c=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const B=r.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${B}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${B}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a}const f=this.resolve(t,r);let d=f&&f.res;const b=f&&f.usedKey||a,p=f&&f.exactUsedKey||a,v=Object.prototype.toString.apply(d),w=["[object Number]","[object Function]","[object RegExp]"],C=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(y&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&w.indexOf(v)<0&&!(typeof C=="string"&&v==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,d,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(f.res=B,f.usedParams=this.getUsedParamsDetails(r),f):B}if(o){const B=v==="[object Array]",D=B?[]:{},F=B?p:b;for(const N in d)if(Object.prototype.hasOwnProperty.call(d,N)){const _=`${F}${o}${N}`;D[N]=this.translate(_,{...r,joinArrays:!1,ns:s}),D[N]===_&&(D[N]=d[N])}d=D}}else if(y&&typeof C=="string"&&v==="[object Array]")d=d.join(C),d&&(d=this.extendTranslation(d,t,r,n));else{let B=!1,D=!1;const F=r.count!==void 0&&typeof r.count!="string",N=qh.hasDefaultValue(r),_=F?this.pluralResolver.getSuffix(c,r.count,r):"",L=r.ordinal&&F?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",I=F&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),R=I&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${_}`]||r[`defaultValue${L}`]||r.defaultValue;!this.isValidLookup(d)&&N&&(B=!0,d=R),this.isValidLookup(d)||(D=!0,d=a);const g=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&D?void 0:d,h=N&&R!==d&&this.options.updateMissing;if(D||B||h){if(this.logger.log(h?"updateKey":"missingKey",c,l,a,h?R:d),o){const k=this.resolve(a,{...r,keySeparator:!1});k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let x=[];const S=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&S&&S[0])for(let k=0;k{const E=N&&P!==d?P:g;this.options.missingKeyHandler?this.options.missingKeyHandler(k,l,$,E,h,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(k,l,$,E,h,r),this.emit("missingKey",k,l,$,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?x.forEach(k=>{const $=this.pluralResolver.getSuffixes(k,r);I&&r[`defaultValue${this.options.pluralSeparator}zero`]&&$.indexOf(`${this.options.pluralSeparator}zero`)<0&&$.push(`${this.options.pluralSeparator}zero`),$.forEach(P=>{T([k],a+P,r[`defaultValue${P}`]||R)})}):T(x,a,R))}d=this.extendTranslation(d,t,r,f,n),D&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${a}`),(D||B)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,B?d:void 0):d=this.options.parseMissingKeyHandler(d))}return i?(f.res=d,f.usedParams=this.getUsedParamsDetails(r),f):d}extendTranslation(t,r,n,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const d=t.match(this.interpolator.nestingRegexp);u=d&&d.length}let f=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,n.lng||this.language,n),c){const d=t.match(this.interpolator.nestingRegexp),b=d&&d.length;u1&&arguments[1]!==void 0?arguments[1]:{},n,i,o,a,s;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),u=c.key;i=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=r.count!==void 0&&typeof r.count!="string",b=d&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),p=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",v=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(w=>{this.isValidLookup(n)||(s=w,!M5[`${v[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(M5[`${v[0]}-${w}`]=!0,this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(C=>{if(this.isValidLookup(n))return;a=C;const y=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,C,w,r);else{let B;d&&(B=this.pluralResolver.getSuffix(C,r.count,r));const D=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(y.push(u+B),r.ordinal&&B.indexOf(F)===0&&y.push(u+B.replace(F,this.options.pluralSeparator)),b&&y.push(u+D)),p){const N=`${u}${this.options.contextSeparator}${r.context}`;y.push(N),d&&(y.push(N+B),r.ordinal&&B.indexOf(F)===0&&y.push(N+B.replace(F,this.options.pluralSeparator)),b&&y.push(N+D))}}let M;for(;M=y.pop();)this.isValidLookup(n)||(o=M,n=this.getResource(C,w,M,r))}))})}),{res:n,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let i=n?t.replace:t;if(n&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const o of r)delete i[o]}return i}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}function Nm(e){return e.charAt(0).toUpperCase()+e.slice(1)}class P5{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=So.create("languageUtils")}getScriptPartFromCode(t){if(t=Vh(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Vh(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(i=>i.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Nm(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Nm(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Nm(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),n.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let SZ=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],CZ={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const EZ=["v1","v2","v3"],MZ=["v4"],A5={zero:0,one:1,two:2,few:3,many:4,other:5};function PZ(){const e={};return SZ.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:CZ[t.fc]}})}),e}class AZ{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=So.create("pluralResolver"),(!this.options.compatibilityJSON||MZ.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=PZ()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Vh(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(i=>`${r}${i}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((i,o)=>A5[i]-A5[o]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):n.numbers.map(i=>this.getSuffix(t,i,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:this.getSuffixRetroCompatible(i,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let i=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!EZ.includes(this.options.compatibilityJSON)}}function k5(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=xZ(e,t,r);return!o&&i&&typeof r=="string"&&(o=Kv(e,r,n),o===void 0&&(o=Kv(t,r,n))),o}class kZ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=So.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const r=t.interpolation;this.escape=r.escape!==void 0?r.escape:gZ,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Rl(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Rl(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Rl(r.nestingPrefix):r.nestingPrefixEscaped||Rl("$t("),this.nestingSuffix=r.nestingSuffix?Rl(r.nestingSuffix):r.nestingSuffixEscaped||Rl(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,i){let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(p){return p.replace(/\$/g,"$$$$")}const u=p=>{if(p.indexOf(this.formatSeparator)<0){const y=k5(r,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,n,{...i,...r,interpolationkey:p}):y}const v=p.split(this.formatSeparator),w=v.shift().trim(),C=v.join(this.formatSeparator).trim();return this.format(k5(r,l,w,this.options.keySeparator,this.options.ignoreJSONStructure),C,n,{...i,...r,interpolationkey:w})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>c(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?c(this.escape(p)):c(p)}].forEach(p=>{for(s=0;o=p.regex.exec(t);){const v=o[1].trim();if(a=u(v),a===void 0)if(typeof f=="function"){const C=f(t,o,i);a=typeof C=="string"?C:""}else if(i&&Object.prototype.hasOwnProperty.call(i,v))a="";else if(d){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=S5(a));const w=p.safeValue(a);if(t=t.replace(o[0],w),d?(p.regex.lastIndex+=a.length,p.regex.lastIndex-=o[0].length):p.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;function s(l,c){const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const f=l.split(new RegExp(`${u}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,a);const b=d.match(/'/g),p=d.match(/"/g);(b&&b.length%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{a=JSON.parse(d),c&&(a={...c,...a})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${u}${d}`}return delete a.defaultValue,l}for(;i=this.nestingRegexp.exec(t);){let l=[];a={...n},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const u=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=u.shift(),l=u,c=!0}if(o=r(s.call(this,i[1].trim(),a),a),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=S5(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),c&&(o=l.reduce((u,f)=>this.format(u,f,n.lng,{...n,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function _Z(e){let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);t==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(a=>{if(!a)return;const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,"");r[s.trim()]||(r[s.trim()]=c),c==="false"&&(r[s.trim()]=!1),c==="true"&&(r[s.trim()]=!0),isNaN(c)||(r[s.trim()]=parseInt(c,10))})}return{formatName:t,formatOptions:r}}function Tl(e){const t={};return function(n,i,o){const a=i+JSON.stringify(o);let s=t[a];return s||(s=e(Vh(i),o),t[a]=s),s(n)}}class RZ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=So.create("formatter"),this.options=t,this.formats={number:Tl((r,n)=>{const i=new Intl.NumberFormat(r,{...n});return o=>i.format(o)}),currency:Tl((r,n)=>{const i=new Intl.NumberFormat(r,{...n,style:"currency"});return o=>i.format(o)}),datetime:Tl((r,n)=>{const i=new Intl.DateTimeFormat(r,{...n});return o=>i.format(o)}),relativetime:Tl((r,n)=>{const i=new Intl.RelativeTimeFormat(r,{...n});return o=>i.format(o,n.range||"day")}),list:Tl((r,n)=>{const i=new Intl.ListFormat(r,{...n});return o=>i.format(o)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Tl(r)}format(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((s,l)=>{const{formatName:c,formatOptions:u}=_Z(l);if(this.formats[c]){let f=s;try{const d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},b=d.locale||d.lng||i.locale||i.lng||n;f=this.formats[c](s,b,{...u,...i,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}function TZ(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class $Z extends _1{constructor(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=So.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,r,n,i){const o={},a={},s={},l={};return t.forEach(c=>{let u=!0;r.forEach(f=>{const d=`${c}|${f}`;!n.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?a[d]===void 0&&(a[d]=!0):(this.state[d]=1,u=!1,a[d]===void 0&&(a[d]=!0),o[d]===void 0&&(o[d]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(s[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const i=t.split("|"),o=i[0],a=i[1];r&&this.emit("failedLoading",o,a,r),n&&this.store.addResourceBundle(o,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const s={};this.queue.forEach(l=>{pZ(l.loaded,[o],a),TZ(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(f=>{s[c][f]===void 0&&(s[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&i{this.read.call(this,t,r,n,i+1,o*2,a)},o);return}a(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,r,s)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const o=this.queueLoad(t,r,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${r}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${r}loaded namespace ${o} for language ${i}`,s),this.loaded(t,a,s)})}saveMissing(t,r,n,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,n,i,l):u=c(t,r,n,i),u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}else c(t,r,n,i,s,l)}!t||!t[0]||this.store.addResource(t[0],r,n,i)}}}function _5(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(i=>{r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function R5(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function wd(){}function BZ(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}class n0 extends _1{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=R5(t),this.services={},this.logger=So,this.modules={external:[]},BZ(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const i=_5();this.options={...i,...this.options,...R5(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function o(u){return u?typeof u=="function"?new u:u:null}if(!this.options.isClone){this.modules.logger?So.init(o(this.modules.logger),this.options):So.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=RZ);const f=new P5(this.options);this.store=new E5(this.options.resources,this.options);const d=this.services;d.logger=So,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new AZ(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=o(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new kZ(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new $Z(o(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(b){for(var p=arguments.length,v=new Array(p>1?p-1:0),w=1;w1?p-1:0),w=1;w{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=wd),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=$u(),c=()=>{const u=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),n(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wd;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(s)})}else n(null)}reloadResources(t,r,n){const i=$u();return t||(t=this.languages),r||(r=this.options.ns),n||(n=wd),this.services.backendConnector.reload(t,r,o=>{i.resolve(),n(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&yM.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const i=$u();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{a(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,r,n){var i=this;const o=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),f=2;f`${l.keyPrefix}${d}${p}`):b=l.keyPrefix?`${l.keyPrefix}${d}${a}`:a,i.t(b,l)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=r,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};if(r.precheck){const s=r.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!i||a(o,t)))}loadNamespaces(t,r){const n=$u();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=$u();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new P5(_5());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new n0(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wd;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new n0(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new E5(this.store.data,i),o.services.resourceStore=o.store),o.translator=new qh(o.services,i),o.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function $5(e,t,r){e.loadNamespaces(t,wM(e,r))}function B5(e,t,r,n){typeof r=="string"&&(r=[r]),r.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,wM(e,n))}function FZ(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=t.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(n,e)&&(!i||a(o,e)))}function OZ(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Gv("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(i,o)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):FZ(e,t,r)}const DZ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,LZ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},NZ=e=>LZ[e],zZ=e=>e.replace(DZ,NZ);let Yv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:zZ};function jZ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yv={...Yv,...e}}function UZ(){return Yv}let SM;function HZ(e){SM=e}function WZ(){return SM}const Fue={type:"3rdParty",init(e){jZ(e.options.react),HZ(e)}},VZ=U.createContext();class qZ{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const KZ=(e,t)=>{const r=U.useRef();return U.useEffect(()=>{r.current=t?r.current:e},[e,t]),r.current};function CM(e,t,r,n){return e.getFixedT(t,r,n)}function GZ(e,t,r,n){return U.useCallback(CM(e,t,r,n),[e,t,r,n])}function Oue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=t,{i18n:n,defaultNS:i}=U.useContext(VZ)||{},o=r||n||WZ();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new qZ),!o){Gv("You will need to pass in an i18next instance by using initReactI18next");const B=(F,N)=>typeof N=="string"?N:N&&typeof N=="object"&&typeof N.defaultValue=="string"?N.defaultValue:Array.isArray(F)?F[F.length-1]:F,D=[B,{},!1];return D.t=B,D.i18n={},D.ready=!1,D}o.options.react&&o.options.react.wait!==void 0&&Gv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...UZ(),...o.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let c=e||i||o.options&&o.options.defaultNS;c=typeof c=="string"?[c]:c||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(c);const u=(o.isInitialized||o.initializedStoreOnce)&&c.every(B=>OZ(B,o,a)),f=GZ(o,t.lng||null,a.nsMode==="fallback"?c:c[0],l),d=()=>f,b=()=>CM(o,t.lng||null,a.nsMode==="fallback"?c:c[0],l),[p,v]=U.useState(d);let w=c.join();t.lng&&(w=`${t.lng}${w}`);const C=KZ(w),y=U.useRef(!0);U.useEffect(()=>{const{bindI18n:B,bindI18nStore:D}=a;y.current=!0,!u&&!s&&(t.lng?B5(o,t.lng,c,()=>{y.current&&v(b)}):$5(o,c,()=>{y.current&&v(b)})),u&&C&&C!==w&&y.current&&v(b);function F(){y.current&&v(b)}return B&&o&&o.on(B,F),D&&o&&o.store.on(D,F),()=>{y.current=!1,B&&o&&B.split(" ").forEach(N=>o.off(N,F)),D&&o&&D.split(" ").forEach(N=>o.store.off(N,F))}},[o,w]),U.useEffect(()=>{y.current&&u&&v(d)},[o,l,u]);const M=[p,o,u];if(M.t=p,M.i18n=o,M.ready=u,u||!u&&!s)return M;throw new Promise(B=>{t.lng?B5(o,t.lng,c,()=>B()):$5(o,c,()=>B())})}function YZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I5(e,t){for(var r=0;r0){var s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(s))}if(i.domain){if(!F5.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!F5.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},O5={create:function(t,r,n,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),i&&(o.domain=i),document.cookie=eQ(t,encodeURIComponent(r),o)},read:function(t){for(var r="".concat(t,"="),n=document.cookie.split(";"),i=0;i-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=n.substring(1),o=i.split("&"),a=0;a0){var l=o[a].substring(0,s);l===t.lookupQuerystring&&(r=o[a].substring(s+1))}}}return r}},Bu=null,D5=function(){if(Bu!==null)return Bu;try{Bu=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Bu=!1}return Bu},nQ={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&D5()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(r=n)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&D5()&&window.localStorage.setItem(r.lookupLocalStorage,t)}},Iu=null,L5=function(){if(Iu!==null)return Iu;try{Iu=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Iu=!1}return Iu},iQ={name:"sessionStorage",lookup:function(t){var r;if(t.lookupSessionStorage&&L5()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(r=n)}return r},cacheUserLanguage:function(t,r){r.lookupSessionStorage&&L5()&&window.sessionStorage.setItem(r.lookupSessionStorage,t)}},oQ={name:"navigator",lookup:function(t){var r=[];if(typeof navigator<"u"){if(navigator.languages)for(var n=0;n0?r:void 0}},aQ={name:"htmlTag",lookup:function(t){var r,n=t.htmlTag||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},sQ={name:"path",lookup:function(t){var r;if(typeof window<"u"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof n[t.lookupFromPathIndex]!="string")return;r=n[t.lookupFromPathIndex].replace("/","")}else r=n[0].replace("/","")}return r}},lQ={name:"subdomain",lookup:function(t){var r=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,n=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[r]}};function cQ(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var uQ=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};YZ(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return XZ(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r||{languageUtils:{}},this.options=QZ(n,this.options||{},cQ()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(tQ),this.addDetector(rQ),this.addDetector(nQ),this.addDetector(iQ),this.addDetector(oQ),this.addDetector(aQ),this.addDetector(sQ),this.addDetector(lQ)}},{key:"addDetector",value:function(r){return this.detectors[r.name]=r,this}},{key:"detect",value:function(r){var n=this;r||(r=this.options.order);var i=[];return r.forEach(function(o){if(n.detectors[o]){var a=n.detectors[o].lookup(n.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.map(function(o){return n.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(r,n){var i=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||n.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(r,i.options)}))}}]),e}();uQ.type="languageDetector";/** + * @license + * Copyright 2009 The Closure Library Authors + * Copyright 2020 Daniel Wirtz / The long.js Authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */var Ci=null;try{Ci=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Xt(e,t,r){this.low=e|0,this.high=t|0,this.unsigned=!!r}Xt.prototype.__isLong__;Object.defineProperty(Xt.prototype,"__isLong__",{value:!0});function dn(e){return(e&&e.__isLong__)===!0}function N5(e){var t=Math.clz32(e&-e);return e?31-t:t}Xt.isLong=dn;var z5={},j5={};function xl(e,t){var r,n,i;return t?(e>>>=0,(i=0<=e&&e<256)&&(n=j5[e],n)?n:(r=Ot(e,0,!0),i&&(j5[e]=r),r)):(e|=0,(i=-128<=e&&e<128)&&(n=z5[e],n)?n:(r=Ot(e,e<0?-1:0,!1),i&&(z5[e]=r),r))}Xt.fromInt=xl;function Ei(e,t){if(isNaN(e))return t?Jo:io;if(t){if(e<0)return Jo;if(e>=MM)return kM}else{if(e<=-H5)return _n;if(e+1>=H5)return AM}return e<0?Ei(-e,t).neg():Ot(e%Oc|0,e/Oc|0,t)}Xt.fromNumber=Ei;function Ot(e,t,r){return new Xt(e,t,r)}Xt.fromBits=Ot;var Kh=Math.pow;function b4(e,t,r){if(e.length===0)throw Error("empty string");if(typeof t=="number"?(r=t,t=!1):t=!!t,e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return t?Jo:io;if(r=r||10,r<2||360)throw Error("interior hyphen");if(n===0)return b4(e.substring(1),t,r).neg();for(var i=Ei(Kh(r,8)),o=io,a=0;a>>0:this.low};Oe.toNumber=function(){return this.unsigned?(this.high>>>0)*Oc+(this.low>>>0):this.high*Oc+(this.low>>>0)};Oe.toString=function(t){if(t=t||10,t<2||36>>0,u=c.toString(t);if(a=l,a.isZero())return u+s;for(;u.length<6;)u="0"+u;s=""+u+s}};Oe.getHighBits=function(){return this.high};Oe.getHighBitsUnsigned=function(){return this.high>>>0};Oe.getLowBits=function(){return this.low};Oe.getLowBitsUnsigned=function(){return this.low>>>0};Oe.getNumBitsAbs=function(){if(this.isNegative())return this.eq(_n)?64:this.neg().getNumBitsAbs();for(var t=this.high!=0?this.high:this.low,r=31;r>0&&!(t&1<=0};Oe.isOdd=function(){return(this.low&1)===1};Oe.isEven=function(){return(this.low&1)===0};Oe.equals=function(t){return dn(t)||(t=fo(t)),this.unsigned!==t.unsigned&&this.high>>>31===1&&t.high>>>31===1?!1:this.high===t.high&&this.low===t.low};Oe.eq=Oe.equals;Oe.notEquals=function(t){return!this.eq(t)};Oe.neq=Oe.notEquals;Oe.ne=Oe.notEquals;Oe.lessThan=function(t){return this.comp(t)<0};Oe.lt=Oe.lessThan;Oe.lessThanOrEqual=function(t){return this.comp(t)<=0};Oe.lte=Oe.lessThanOrEqual;Oe.le=Oe.lessThanOrEqual;Oe.greaterThan=function(t){return this.comp(t)>0};Oe.gt=Oe.greaterThan;Oe.greaterThanOrEqual=function(t){return this.comp(t)>=0};Oe.gte=Oe.greaterThanOrEqual;Oe.ge=Oe.greaterThanOrEqual;Oe.compare=function(t){if(dn(t)||(t=fo(t)),this.eq(t))return 0;var r=this.isNegative(),n=t.isNegative();return r&&!n?-1:!r&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1};Oe.comp=Oe.compare;Oe.negate=function(){return!this.unsigned&&this.eq(_n)?_n:this.not().add(Ql)};Oe.neg=Oe.negate;Oe.add=function(t){dn(t)||(t=fo(t));var r=this.high>>>16,n=this.high&65535,i=this.low>>>16,o=this.low&65535,a=t.high>>>16,s=t.high&65535,l=t.low>>>16,c=t.low&65535,u=0,f=0,d=0,b=0;return b+=o+c,d+=b>>>16,b&=65535,d+=i+l,f+=d>>>16,d&=65535,f+=n+s,u+=f>>>16,f&=65535,u+=r+a,u&=65535,Ot(d<<16|b,u<<16|f,this.unsigned)};Oe.subtract=function(t){return dn(t)||(t=fo(t)),this.add(t.neg())};Oe.sub=Oe.subtract;Oe.multiply=function(t){if(this.isZero())return this;if(dn(t)||(t=fo(t)),Ci){var r=Ci.mul(this.low,this.high,t.low,t.high);return Ot(r,Ci.get_high(),this.unsigned)}if(t.isZero())return this.unsigned?Jo:io;if(this.eq(_n))return t.isOdd()?_n:io;if(t.eq(_n))return this.isOdd()?_n:io;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(W5)&&t.lt(W5))return Ei(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,i=this.high&65535,o=this.low>>>16,a=this.low&65535,s=t.high>>>16,l=t.high&65535,c=t.low>>>16,u=t.low&65535,f=0,d=0,b=0,p=0;return p+=a*u,b+=p>>>16,p&=65535,b+=o*u,d+=b>>>16,b&=65535,b+=a*c,d+=b>>>16,b&=65535,d+=i*u,f+=d>>>16,d&=65535,d+=o*c,f+=d>>>16,d&=65535,d+=a*l,f+=d>>>16,d&=65535,f+=n*u+i*c+o*l+a*s,f&=65535,Ot(b<<16|p,f<<16|d,this.unsigned)};Oe.mul=Oe.multiply;Oe.divide=function(t){if(dn(t)||(t=fo(t)),t.isZero())throw Error("division by zero");if(Ci){if(!this.unsigned&&this.high===-2147483648&&t.low===-1&&t.high===-1)return this;var r=(this.unsigned?Ci.div_u:Ci.div_s)(this.low,this.high,t.low,t.high);return Ot(r,Ci.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?Jo:io;var n,i,o;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return Jo;if(t.gt(this.shru(1)))return PM;o=Jo}else{if(this.eq(_n)){if(t.eq(Ql)||t.eq(Xv))return _n;if(t.eq(_n))return Ql;var a=this.shr(1);return n=a.div(t).shl(1),n.eq(io)?t.isNegative()?Ql:Xv:(i=this.sub(t.mul(n)),o=n.add(i.div(t)),o)}else if(t.eq(_n))return this.unsigned?Jo:io;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();o=io}for(i=this;i.gte(t);){n=Math.max(1,Math.floor(i.toNumber()/t.toNumber()));for(var s=Math.ceil(Math.log(n)/Math.LN2),l=s<=48?1:Kh(2,s-48),c=Ei(n),u=c.mul(t);u.isNegative()||u.gt(i);)n-=l,c=Ei(n,this.unsigned),u=c.mul(t);c.isZero()&&(c=Ql),o=o.add(c),i=i.sub(u)}return o};Oe.div=Oe.divide;Oe.modulo=function(t){if(dn(t)||(t=fo(t)),Ci){var r=(this.unsigned?Ci.rem_u:Ci.rem_s)(this.low,this.high,t.low,t.high);return Ot(r,Ci.get_high(),this.unsigned)}return this.sub(this.div(t).mul(t))};Oe.mod=Oe.modulo;Oe.rem=Oe.modulo;Oe.not=function(){return Ot(~this.low,~this.high,this.unsigned)};Oe.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32};Oe.clz=Oe.countLeadingZeros;Oe.countTrailingZeros=function(){return this.low?N5(this.low):N5(this.high)+32};Oe.ctz=Oe.countTrailingZeros;Oe.and=function(t){return dn(t)||(t=fo(t)),Ot(this.low&t.low,this.high&t.high,this.unsigned)};Oe.or=function(t){return dn(t)||(t=fo(t)),Ot(this.low|t.low,this.high|t.high,this.unsigned)};Oe.xor=function(t){return dn(t)||(t=fo(t)),Ot(this.low^t.low,this.high^t.high,this.unsigned)};Oe.shiftLeft=function(t){return dn(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?Ot(this.low<>>32-t,this.unsigned):Ot(0,this.low<>>t|this.high<<32-t,this.high>>t,this.unsigned):Ot(this.high>>t-32,this.high>=0?0:-1,this.unsigned)};Oe.shr=Oe.shiftRight;Oe.shiftRightUnsigned=function(t){return dn(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?Ot(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):t===32?Ot(this.high,0,this.unsigned):Ot(this.high>>>t-32,0,this.unsigned)};Oe.shru=Oe.shiftRightUnsigned;Oe.shr_u=Oe.shiftRightUnsigned;Oe.rotateLeft=function(t){var r;return dn(t)&&(t=t.toInt()),(t&=63)===0?this:t===32?Ot(this.high,this.low,this.unsigned):t<32?(r=32-t,Ot(this.low<>>r,this.high<>>r,this.unsigned)):(t-=32,r=32-t,Ot(this.high<>>r,this.low<>>r,this.unsigned))};Oe.rotl=Oe.rotateLeft;Oe.rotateRight=function(t){var r;return dn(t)&&(t=t.toInt()),(t&=63)===0?this:t===32?Ot(this.high,this.low,this.unsigned):t<32?(r=32-t,Ot(this.high<>>t,this.low<>>t,this.unsigned)):(t-=32,r=32-t,Ot(this.low<>>t,this.high<>>t,this.unsigned))};Oe.rotr=Oe.rotateRight;Oe.toSigned=function(){return this.unsigned?Ot(this.low,this.high,!1):this};Oe.toUnsigned=function(){return this.unsigned?this:Ot(this.low,this.high,!0)};Oe.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()};Oe.toBytesLE=function(){var t=this.high,r=this.low;return[r&255,r>>>8&255,r>>>16&255,r>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]};Oe.toBytesBE=function(){var t=this.high,r=this.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,r>>>24,r>>>16&255,r>>>8&255,r&255]};Xt.fromBytes=function(t,r,n){return n?Xt.fromBytesLE(t,r):Xt.fromBytesBE(t,r)};Xt.fromBytesLE=function(t,r){return new Xt(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,r)};Xt.fromBytesBE=function(t,r){return new Xt(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],r)};var _M={};const dQ="elliptic",hQ="6.5.5",pQ="EC cryptography",xQ="lib/elliptic.js",mQ=["lib"],gQ={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},vQ={type:"git",url:"git@github.com:indutny/elliptic"},bQ=["EC","Elliptic","curve","Cryptography"],yQ="Fedor Indutny ",wQ="MIT",SQ={url:"https://github.com/indutny/elliptic/issues"},CQ="https://github.com/indutny/elliptic",EQ={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},MQ={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},PQ={name:dQ,version:hQ,description:pQ,main:xQ,files:mQ,scripts:gQ,repository:vQ,keywords:bQ,author:yQ,license:wQ,bugs:SQ,homepage:CQ,devDependencies:EQ,dependencies:MQ};var ci={},y4={exports:{}};y4.exports;(function(e){(function(t,r){function n(R,m){if(!R)throw new Error(m||"Assertion failed")}function i(R,m){R.super_=m;var g=function(){};g.prototype=m.prototype,R.prototype=new g,R.prototype.constructor=R}function o(R,m,g){if(o.isBN(R))return R;this.negative=0,this.words=null,this.length=0,this.red=null,R!==null&&((m==="le"||m==="be")&&(g=m,m=10),this._init(R||0,m||10,g||"be"))}typeof t=="object"?t.exports=o:r.BN=o,o.BN=o,o.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=Ip.Buffer}catch{}o.isBN=function(m){return m instanceof o?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===o.wordSize&&Array.isArray(m.words)},o.max=function(m,g){return m.cmp(g)>0?m:g},o.min=function(m,g){return m.cmp(g)<0?m:g},o.prototype._init=function(m,g,h){if(typeof m=="number")return this._initNumber(m,g,h);if(typeof m=="object")return this._initArray(m,g,h);g==="hex"&&(g=16),n(g===(g|0)&&g>=2&&g<=36),m=m.toString().replace(/\s+/g,"");var x=0;m[0]==="-"&&(x++,this.negative=1),x=0;x-=3)T=m[x]|m[x-1]<<8|m[x-2]<<16,this.words[S]|=T<>>26-k&67108863,k+=24,k>=26&&(k-=26,S++);else if(h==="le")for(x=0,S=0;x>>26-k&67108863,k+=24,k>=26&&(k-=26,S++);return this.strip()};function s(R,m){var g=R.charCodeAt(m);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function l(R,m,g){var h=s(R,g);return g-1>=m&&(h|=s(R,g-1)<<4),h}o.prototype._parseHex=function(m,g,h){this.length=Math.ceil((m.length-g)/6),this.words=new Array(this.length);for(var x=0;x=g;x-=2)k=l(m,g,x)<=18?(S-=18,T+=1,this.words[T]|=k>>>26):S+=8;else{var $=m.length-g;for(x=$%2===0?g+1:g;x=18?(S-=18,T+=1,this.words[T]|=k>>>26):S+=8}this.strip()};function c(R,m,g,h){for(var x=0,S=Math.min(R.length,g),T=m;T=49?x+=k-49+10:k>=17?x+=k-17+10:x+=k}return x}o.prototype._parseBase=function(m,g,h){this.words=[0],this.length=1;for(var x=0,S=1;S<=67108863;S*=g)x++;x--,S=S/g|0;for(var T=m.length-h,k=T%x,$=Math.min(T,T-k)+h,P=0,E=h;E<$;E+=x)P=c(m,E,E+x,g),this.imuln(S),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(k!==0){var A=1;for(P=c(m,E,m.length,g),E=0;E1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(m,g){m=m||10,g=g|0||1;var h;if(m===16||m==="hex"){h="";for(var x=0,S=0,T=0;T>>24-x&16777215,S!==0||T!==this.length-1?h=u[6-$.length]+$+h:h=$+h,x+=2,x>=26&&(x-=26,T--)}for(S!==0&&(h=S.toString(16)+h);h.length%g!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}if(m===(m|0)&&m>=2&&m<=36){var P=f[m],E=d[m];h="";var A=this.clone();for(A.negative=0;!A.isZero();){var z=A.modn(E).toString(m);A=A.idivn(E),A.isZero()?h=z+h:h=u[P-z.length]+z+h}for(this.isZero()&&(h="0"+h);h.length%g!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(m,g){return n(typeof a<"u"),this.toArrayLike(a,m,g)},o.prototype.toArray=function(m,g){return this.toArrayLike(Array,m,g)},o.prototype.toArrayLike=function(m,g,h){var x=this.byteLength(),S=h||Math.max(1,x);n(x<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0"),this.strip();var T=g==="le",k=new m(S),$,P,E=this.clone();if(T){for(P=0;!E.isZero();P++)$=E.andln(255),E.iushrn(8),k[P]=$;for(;P=4096&&(h+=13,g>>>=13),g>=64&&(h+=7,g>>>=7),g>=8&&(h+=4,g>>>=4),g>=2&&(h+=2,g>>>=2),h+g},o.prototype._zeroBits=function(m){if(m===0)return 26;var g=m,h=0;return g&8191||(h+=13,g>>>=13),g&127||(h+=7,g>>>=7),g&15||(h+=4,g>>>=4),g&3||(h+=2,g>>>=2),g&1||h++,h},o.prototype.bitLength=function(){var m=this.words[this.length-1],g=this._countBits(m);return(this.length-1)*26+g};function b(R){for(var m=new Array(R.bitLength()),g=0;g>>x}return m}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,g=0;gm.length?this.clone().ior(m):m.clone().ior(this)},o.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},o.prototype.iuand=function(m){var g;this.length>m.length?g=m:g=this;for(var h=0;hm.length?this.clone().iand(m):m.clone().iand(this)},o.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},o.prototype.iuxor=function(m){var g,h;this.length>m.length?(g=this,h=m):(g=m,h=this);for(var x=0;xm.length?this.clone().ixor(m):m.clone().ixor(this)},o.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},o.prototype.inotn=function(m){n(typeof m=="number"&&m>=0);var g=Math.ceil(m/26)|0,h=m%26;this._expand(g),h>0&&g--;for(var x=0;x0&&(this.words[x]=~this.words[x]&67108863>>26-h),this.strip()},o.prototype.notn=function(m){return this.clone().inotn(m)},o.prototype.setn=function(m,g){n(typeof m=="number"&&m>=0);var h=m/26|0,x=m%26;return this._expand(h+1),g?this.words[h]=this.words[h]|1<m.length?(h=this,x=m):(h=m,x=this);for(var S=0,T=0;T>>26;for(;S!==0&&T>>26;if(this.length=h.length,S!==0)this.words[this.length]=S,this.length++;else if(h!==this)for(;Tm.length?this.clone().iadd(m):m.clone().iadd(this)},o.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var g=this.iadd(m);return m.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var h=this.cmp(m);if(h===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,S;h>0?(x=this,S=m):(x=m,S=this);for(var T=0,k=0;k>26,this.words[k]=g&67108863;for(;T!==0&&k>26,this.words[k]=g&67108863;if(T===0&&k>>26,A=$&67108863,z=Math.min(P,m.length-1),H=Math.max(0,P-R.length+1);H<=z;H++){var O=P-H|0;x=R.words[O]|0,S=m.words[H]|0,T=x*S+A,E+=T/67108864|0,A=T&67108863}g.words[P]=A|0,$=E|0}return $!==0?g.words[P]=$|0:g.length--,g.strip()}var v=function(m,g,h){var x=m.words,S=g.words,T=h.words,k=0,$,P,E,A=x[0]|0,z=A&8191,H=A>>>13,O=x[1]|0,V=O&8191,X=O>>>13,J=x[2]|0,G=J&8191,j=J>>>13,q=x[3]|0,K=q&8191,Z=q>>>13,te=x[4]|0,Q=te&8191,oe=te>>>13,me=x[5]|0,se=me&8191,ye=me>>>13,Re=x[6]|0,we=Re&8191,He=Re>>>13,Ue=x[7]|0,Me=Ue&8191,Ze=Ue>>>13,Je=x[8]|0,Ne=Je&8191,De=Je>>>13,de=x[9]|0,Ie=de&8191,ot=de>>>13,lt=S[0]|0,ge=lt&8191,ze=lt>>>13,le=S[1]|0,xe=le&8191,je=le>>>13,We=S[2]|0,Fe=We&8191,Qe=We>>>13,ut=S[3]|0,Ge=ut&8191,ee=ut>>>13,re=S[4]|0,ne=re&8191,pe=re>>>13,ke=S[5]|0,Te=ke&8191,$e=ke>>>13,Pe=S[6]|0,ce=Pe&8191,_e=Pe>>>13,Ve=S[7]|0,Ce=Ve&8191,Xe=Ve>>>13,dt=S[8]|0,qe=dt&8191,ht=dt>>>13,mt=S[9]|0,rt=mt&8191,ae=mt>>>13;h.negative=m.negative^g.negative,h.length=19,$=Math.imul(z,ge),P=Math.imul(z,ze),P=P+Math.imul(H,ge)|0,E=Math.imul(H,ze);var ie=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(ie>>>26)|0,ie&=67108863,$=Math.imul(V,ge),P=Math.imul(V,ze),P=P+Math.imul(X,ge)|0,E=Math.imul(X,ze),$=$+Math.imul(z,xe)|0,P=P+Math.imul(z,je)|0,P=P+Math.imul(H,xe)|0,E=E+Math.imul(H,je)|0;var ve=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(ve>>>26)|0,ve&=67108863,$=Math.imul(G,ge),P=Math.imul(G,ze),P=P+Math.imul(j,ge)|0,E=Math.imul(j,ze),$=$+Math.imul(V,xe)|0,P=P+Math.imul(V,je)|0,P=P+Math.imul(X,xe)|0,E=E+Math.imul(X,je)|0,$=$+Math.imul(z,Fe)|0,P=P+Math.imul(z,Qe)|0,P=P+Math.imul(H,Fe)|0,E=E+Math.imul(H,Qe)|0;var Ae=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,$=Math.imul(K,ge),P=Math.imul(K,ze),P=P+Math.imul(Z,ge)|0,E=Math.imul(Z,ze),$=$+Math.imul(G,xe)|0,P=P+Math.imul(G,je)|0,P=P+Math.imul(j,xe)|0,E=E+Math.imul(j,je)|0,$=$+Math.imul(V,Fe)|0,P=P+Math.imul(V,Qe)|0,P=P+Math.imul(X,Fe)|0,E=E+Math.imul(X,Qe)|0,$=$+Math.imul(z,Ge)|0,P=P+Math.imul(z,ee)|0,P=P+Math.imul(H,Ge)|0,E=E+Math.imul(H,ee)|0;var Ye=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,$=Math.imul(Q,ge),P=Math.imul(Q,ze),P=P+Math.imul(oe,ge)|0,E=Math.imul(oe,ze),$=$+Math.imul(K,xe)|0,P=P+Math.imul(K,je)|0,P=P+Math.imul(Z,xe)|0,E=E+Math.imul(Z,je)|0,$=$+Math.imul(G,Fe)|0,P=P+Math.imul(G,Qe)|0,P=P+Math.imul(j,Fe)|0,E=E+Math.imul(j,Qe)|0,$=$+Math.imul(V,Ge)|0,P=P+Math.imul(V,ee)|0,P=P+Math.imul(X,Ge)|0,E=E+Math.imul(X,ee)|0,$=$+Math.imul(z,ne)|0,P=P+Math.imul(z,pe)|0,P=P+Math.imul(H,ne)|0,E=E+Math.imul(H,pe)|0;var Le=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(Le>>>26)|0,Le&=67108863,$=Math.imul(se,ge),P=Math.imul(se,ze),P=P+Math.imul(ye,ge)|0,E=Math.imul(ye,ze),$=$+Math.imul(Q,xe)|0,P=P+Math.imul(Q,je)|0,P=P+Math.imul(oe,xe)|0,E=E+Math.imul(oe,je)|0,$=$+Math.imul(K,Fe)|0,P=P+Math.imul(K,Qe)|0,P=P+Math.imul(Z,Fe)|0,E=E+Math.imul(Z,Qe)|0,$=$+Math.imul(G,Ge)|0,P=P+Math.imul(G,ee)|0,P=P+Math.imul(j,Ge)|0,E=E+Math.imul(j,ee)|0,$=$+Math.imul(V,ne)|0,P=P+Math.imul(V,pe)|0,P=P+Math.imul(X,ne)|0,E=E+Math.imul(X,pe)|0,$=$+Math.imul(z,Te)|0,P=P+Math.imul(z,$e)|0,P=P+Math.imul(H,Te)|0,E=E+Math.imul(H,$e)|0;var pt=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(we,ge),P=Math.imul(we,ze),P=P+Math.imul(He,ge)|0,E=Math.imul(He,ze),$=$+Math.imul(se,xe)|0,P=P+Math.imul(se,je)|0,P=P+Math.imul(ye,xe)|0,E=E+Math.imul(ye,je)|0,$=$+Math.imul(Q,Fe)|0,P=P+Math.imul(Q,Qe)|0,P=P+Math.imul(oe,Fe)|0,E=E+Math.imul(oe,Qe)|0,$=$+Math.imul(K,Ge)|0,P=P+Math.imul(K,ee)|0,P=P+Math.imul(Z,Ge)|0,E=E+Math.imul(Z,ee)|0,$=$+Math.imul(G,ne)|0,P=P+Math.imul(G,pe)|0,P=P+Math.imul(j,ne)|0,E=E+Math.imul(j,pe)|0,$=$+Math.imul(V,Te)|0,P=P+Math.imul(V,$e)|0,P=P+Math.imul(X,Te)|0,E=E+Math.imul(X,$e)|0,$=$+Math.imul(z,ce)|0,P=P+Math.imul(z,_e)|0,P=P+Math.imul(H,ce)|0,E=E+Math.imul(H,_e)|0;var Bt=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,$=Math.imul(Me,ge),P=Math.imul(Me,ze),P=P+Math.imul(Ze,ge)|0,E=Math.imul(Ze,ze),$=$+Math.imul(we,xe)|0,P=P+Math.imul(we,je)|0,P=P+Math.imul(He,xe)|0,E=E+Math.imul(He,je)|0,$=$+Math.imul(se,Fe)|0,P=P+Math.imul(se,Qe)|0,P=P+Math.imul(ye,Fe)|0,E=E+Math.imul(ye,Qe)|0,$=$+Math.imul(Q,Ge)|0,P=P+Math.imul(Q,ee)|0,P=P+Math.imul(oe,Ge)|0,E=E+Math.imul(oe,ee)|0,$=$+Math.imul(K,ne)|0,P=P+Math.imul(K,pe)|0,P=P+Math.imul(Z,ne)|0,E=E+Math.imul(Z,pe)|0,$=$+Math.imul(G,Te)|0,P=P+Math.imul(G,$e)|0,P=P+Math.imul(j,Te)|0,E=E+Math.imul(j,$e)|0,$=$+Math.imul(V,ce)|0,P=P+Math.imul(V,_e)|0,P=P+Math.imul(X,ce)|0,E=E+Math.imul(X,_e)|0,$=$+Math.imul(z,Ce)|0,P=P+Math.imul(z,Xe)|0,P=P+Math.imul(H,Ce)|0,E=E+Math.imul(H,Xe)|0;var gt=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(Ne,ge),P=Math.imul(Ne,ze),P=P+Math.imul(De,ge)|0,E=Math.imul(De,ze),$=$+Math.imul(Me,xe)|0,P=P+Math.imul(Me,je)|0,P=P+Math.imul(Ze,xe)|0,E=E+Math.imul(Ze,je)|0,$=$+Math.imul(we,Fe)|0,P=P+Math.imul(we,Qe)|0,P=P+Math.imul(He,Fe)|0,E=E+Math.imul(He,Qe)|0,$=$+Math.imul(se,Ge)|0,P=P+Math.imul(se,ee)|0,P=P+Math.imul(ye,Ge)|0,E=E+Math.imul(ye,ee)|0,$=$+Math.imul(Q,ne)|0,P=P+Math.imul(Q,pe)|0,P=P+Math.imul(oe,ne)|0,E=E+Math.imul(oe,pe)|0,$=$+Math.imul(K,Te)|0,P=P+Math.imul(K,$e)|0,P=P+Math.imul(Z,Te)|0,E=E+Math.imul(Z,$e)|0,$=$+Math.imul(G,ce)|0,P=P+Math.imul(G,_e)|0,P=P+Math.imul(j,ce)|0,E=E+Math.imul(j,_e)|0,$=$+Math.imul(V,Ce)|0,P=P+Math.imul(V,Xe)|0,P=P+Math.imul(X,Ce)|0,E=E+Math.imul(X,Xe)|0,$=$+Math.imul(z,qe)|0,P=P+Math.imul(z,ht)|0,P=P+Math.imul(H,qe)|0,E=E+Math.imul(H,ht)|0;var St=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(Ie,ge),P=Math.imul(Ie,ze),P=P+Math.imul(ot,ge)|0,E=Math.imul(ot,ze),$=$+Math.imul(Ne,xe)|0,P=P+Math.imul(Ne,je)|0,P=P+Math.imul(De,xe)|0,E=E+Math.imul(De,je)|0,$=$+Math.imul(Me,Fe)|0,P=P+Math.imul(Me,Qe)|0,P=P+Math.imul(Ze,Fe)|0,E=E+Math.imul(Ze,Qe)|0,$=$+Math.imul(we,Ge)|0,P=P+Math.imul(we,ee)|0,P=P+Math.imul(He,Ge)|0,E=E+Math.imul(He,ee)|0,$=$+Math.imul(se,ne)|0,P=P+Math.imul(se,pe)|0,P=P+Math.imul(ye,ne)|0,E=E+Math.imul(ye,pe)|0,$=$+Math.imul(Q,Te)|0,P=P+Math.imul(Q,$e)|0,P=P+Math.imul(oe,Te)|0,E=E+Math.imul(oe,$e)|0,$=$+Math.imul(K,ce)|0,P=P+Math.imul(K,_e)|0,P=P+Math.imul(Z,ce)|0,E=E+Math.imul(Z,_e)|0,$=$+Math.imul(G,Ce)|0,P=P+Math.imul(G,Xe)|0,P=P+Math.imul(j,Ce)|0,E=E+Math.imul(j,Xe)|0,$=$+Math.imul(V,qe)|0,P=P+Math.imul(V,ht)|0,P=P+Math.imul(X,qe)|0,E=E+Math.imul(X,ht)|0,$=$+Math.imul(z,rt)|0,P=P+Math.imul(z,ae)|0,P=P+Math.imul(H,rt)|0,E=E+Math.imul(H,ae)|0;var Ht=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,$=Math.imul(Ie,xe),P=Math.imul(Ie,je),P=P+Math.imul(ot,xe)|0,E=Math.imul(ot,je),$=$+Math.imul(Ne,Fe)|0,P=P+Math.imul(Ne,Qe)|0,P=P+Math.imul(De,Fe)|0,E=E+Math.imul(De,Qe)|0,$=$+Math.imul(Me,Ge)|0,P=P+Math.imul(Me,ee)|0,P=P+Math.imul(Ze,Ge)|0,E=E+Math.imul(Ze,ee)|0,$=$+Math.imul(we,ne)|0,P=P+Math.imul(we,pe)|0,P=P+Math.imul(He,ne)|0,E=E+Math.imul(He,pe)|0,$=$+Math.imul(se,Te)|0,P=P+Math.imul(se,$e)|0,P=P+Math.imul(ye,Te)|0,E=E+Math.imul(ye,$e)|0,$=$+Math.imul(Q,ce)|0,P=P+Math.imul(Q,_e)|0,P=P+Math.imul(oe,ce)|0,E=E+Math.imul(oe,_e)|0,$=$+Math.imul(K,Ce)|0,P=P+Math.imul(K,Xe)|0,P=P+Math.imul(Z,Ce)|0,E=E+Math.imul(Z,Xe)|0,$=$+Math.imul(G,qe)|0,P=P+Math.imul(G,ht)|0,P=P+Math.imul(j,qe)|0,E=E+Math.imul(j,ht)|0,$=$+Math.imul(V,rt)|0,P=P+Math.imul(V,ae)|0,P=P+Math.imul(X,rt)|0,E=E+Math.imul(X,ae)|0;var Hr=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,$=Math.imul(Ie,Fe),P=Math.imul(Ie,Qe),P=P+Math.imul(ot,Fe)|0,E=Math.imul(ot,Qe),$=$+Math.imul(Ne,Ge)|0,P=P+Math.imul(Ne,ee)|0,P=P+Math.imul(De,Ge)|0,E=E+Math.imul(De,ee)|0,$=$+Math.imul(Me,ne)|0,P=P+Math.imul(Me,pe)|0,P=P+Math.imul(Ze,ne)|0,E=E+Math.imul(Ze,pe)|0,$=$+Math.imul(we,Te)|0,P=P+Math.imul(we,$e)|0,P=P+Math.imul(He,Te)|0,E=E+Math.imul(He,$e)|0,$=$+Math.imul(se,ce)|0,P=P+Math.imul(se,_e)|0,P=P+Math.imul(ye,ce)|0,E=E+Math.imul(ye,_e)|0,$=$+Math.imul(Q,Ce)|0,P=P+Math.imul(Q,Xe)|0,P=P+Math.imul(oe,Ce)|0,E=E+Math.imul(oe,Xe)|0,$=$+Math.imul(K,qe)|0,P=P+Math.imul(K,ht)|0,P=P+Math.imul(Z,qe)|0,E=E+Math.imul(Z,ht)|0,$=$+Math.imul(G,rt)|0,P=P+Math.imul(G,ae)|0,P=P+Math.imul(j,rt)|0,E=E+Math.imul(j,ae)|0;var Cn=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,$=Math.imul(Ie,Ge),P=Math.imul(Ie,ee),P=P+Math.imul(ot,Ge)|0,E=Math.imul(ot,ee),$=$+Math.imul(Ne,ne)|0,P=P+Math.imul(Ne,pe)|0,P=P+Math.imul(De,ne)|0,E=E+Math.imul(De,pe)|0,$=$+Math.imul(Me,Te)|0,P=P+Math.imul(Me,$e)|0,P=P+Math.imul(Ze,Te)|0,E=E+Math.imul(Ze,$e)|0,$=$+Math.imul(we,ce)|0,P=P+Math.imul(we,_e)|0,P=P+Math.imul(He,ce)|0,E=E+Math.imul(He,_e)|0,$=$+Math.imul(se,Ce)|0,P=P+Math.imul(se,Xe)|0,P=P+Math.imul(ye,Ce)|0,E=E+Math.imul(ye,Xe)|0,$=$+Math.imul(Q,qe)|0,P=P+Math.imul(Q,ht)|0,P=P+Math.imul(oe,qe)|0,E=E+Math.imul(oe,ht)|0,$=$+Math.imul(K,rt)|0,P=P+Math.imul(K,ae)|0,P=P+Math.imul(Z,rt)|0,E=E+Math.imul(Z,ae)|0;var ms=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(ms>>>26)|0,ms&=67108863,$=Math.imul(Ie,ne),P=Math.imul(Ie,pe),P=P+Math.imul(ot,ne)|0,E=Math.imul(ot,pe),$=$+Math.imul(Ne,Te)|0,P=P+Math.imul(Ne,$e)|0,P=P+Math.imul(De,Te)|0,E=E+Math.imul(De,$e)|0,$=$+Math.imul(Me,ce)|0,P=P+Math.imul(Me,_e)|0,P=P+Math.imul(Ze,ce)|0,E=E+Math.imul(Ze,_e)|0,$=$+Math.imul(we,Ce)|0,P=P+Math.imul(we,Xe)|0,P=P+Math.imul(He,Ce)|0,E=E+Math.imul(He,Xe)|0,$=$+Math.imul(se,qe)|0,P=P+Math.imul(se,ht)|0,P=P+Math.imul(ye,qe)|0,E=E+Math.imul(ye,ht)|0,$=$+Math.imul(Q,rt)|0,P=P+Math.imul(Q,ae)|0,P=P+Math.imul(oe,rt)|0,E=E+Math.imul(oe,ae)|0;var gs=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(gs>>>26)|0,gs&=67108863,$=Math.imul(Ie,Te),P=Math.imul(Ie,$e),P=P+Math.imul(ot,Te)|0,E=Math.imul(ot,$e),$=$+Math.imul(Ne,ce)|0,P=P+Math.imul(Ne,_e)|0,P=P+Math.imul(De,ce)|0,E=E+Math.imul(De,_e)|0,$=$+Math.imul(Me,Ce)|0,P=P+Math.imul(Me,Xe)|0,P=P+Math.imul(Ze,Ce)|0,E=E+Math.imul(Ze,Xe)|0,$=$+Math.imul(we,qe)|0,P=P+Math.imul(we,ht)|0,P=P+Math.imul(He,qe)|0,E=E+Math.imul(He,ht)|0,$=$+Math.imul(se,rt)|0,P=P+Math.imul(se,ae)|0,P=P+Math.imul(ye,rt)|0,E=E+Math.imul(ye,ae)|0;var vs=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(vs>>>26)|0,vs&=67108863,$=Math.imul(Ie,ce),P=Math.imul(Ie,_e),P=P+Math.imul(ot,ce)|0,E=Math.imul(ot,_e),$=$+Math.imul(Ne,Ce)|0,P=P+Math.imul(Ne,Xe)|0,P=P+Math.imul(De,Ce)|0,E=E+Math.imul(De,Xe)|0,$=$+Math.imul(Me,qe)|0,P=P+Math.imul(Me,ht)|0,P=P+Math.imul(Ze,qe)|0,E=E+Math.imul(Ze,ht)|0,$=$+Math.imul(we,rt)|0,P=P+Math.imul(we,ae)|0,P=P+Math.imul(He,rt)|0,E=E+Math.imul(He,ae)|0;var bs=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(bs>>>26)|0,bs&=67108863,$=Math.imul(Ie,Ce),P=Math.imul(Ie,Xe),P=P+Math.imul(ot,Ce)|0,E=Math.imul(ot,Xe),$=$+Math.imul(Ne,qe)|0,P=P+Math.imul(Ne,ht)|0,P=P+Math.imul(De,qe)|0,E=E+Math.imul(De,ht)|0,$=$+Math.imul(Me,rt)|0,P=P+Math.imul(Me,ae)|0,P=P+Math.imul(Ze,rt)|0,E=E+Math.imul(Ze,ae)|0;var ys=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(ys>>>26)|0,ys&=67108863,$=Math.imul(Ie,qe),P=Math.imul(Ie,ht),P=P+Math.imul(ot,qe)|0,E=Math.imul(ot,ht),$=$+Math.imul(Ne,rt)|0,P=P+Math.imul(Ne,ae)|0,P=P+Math.imul(De,rt)|0,E=E+Math.imul(De,ae)|0;var ws=(k+$|0)+((P&8191)<<13)|0;k=(E+(P>>>13)|0)+(ws>>>26)|0,ws&=67108863,$=Math.imul(Ie,rt),P=Math.imul(Ie,ae),P=P+Math.imul(ot,rt)|0,E=Math.imul(ot,ae);var Ss=(k+$|0)+((P&8191)<<13)|0;return k=(E+(P>>>13)|0)+(Ss>>>26)|0,Ss&=67108863,T[0]=ie,T[1]=ve,T[2]=Ae,T[3]=Ye,T[4]=Le,T[5]=pt,T[6]=Bt,T[7]=gt,T[8]=St,T[9]=Ht,T[10]=Hr,T[11]=Cn,T[12]=ms,T[13]=gs,T[14]=vs,T[15]=bs,T[16]=ys,T[17]=ws,T[18]=Ss,k!==0&&(T[19]=k,h.length++),h};Math.imul||(v=p);function w(R,m,g){g.negative=m.negative^R.negative,g.length=R.length+m.length;for(var h=0,x=0,S=0;S>>26)|0,x+=T>>>26,T&=67108863}g.words[S]=k,h=T,T=x}return h!==0?g.words[S]=h:g.length--,g.strip()}function C(R,m,g){var h=new y;return h.mulp(R,m,g)}o.prototype.mulTo=function(m,g){var h,x=this.length+m.length;return this.length===10&&m.length===10?h=v(this,m,g):x<63?h=p(this,m,g):x<1024?h=w(this,m,g):h=C(this,m,g),h};function y(R,m){this.x=R,this.y=m}y.prototype.makeRBT=function(m){for(var g=new Array(m),h=o.prototype._countBits(m)-1,x=0;x>=1;return x},y.prototype.permute=function(m,g,h,x,S,T){for(var k=0;k>>1)S++;return 1<>>13,h[2*T+1]=S&8191,S=S>>>13;for(T=2*g;T>=26,g+=x/67108864|0,g+=S>>>26,this.words[h]=S&67108863}return g!==0&&(this.words[h]=g,this.length++),this},o.prototype.muln=function(m){return this.clone().imuln(m)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(m){var g=b(m);if(g.length===0)return new o(1);for(var h=this,x=0;x=0);var g=m%26,h=(m-g)/26,x=67108863>>>26-g<<26-g,S;if(g!==0){var T=0;for(S=0;S>>26-g}T&&(this.words[S]=T,this.length++)}if(h!==0){for(S=this.length-1;S>=0;S--)this.words[S+h]=this.words[S];for(S=0;S=0);var x;g?x=(g-g%26)/26:x=0;var S=m%26,T=Math.min((m-S)/26,this.length),k=67108863^67108863>>>S<T)for(this.length-=T,P=0;P=0&&(E!==0||P>=x);P--){var A=this.words[P]|0;this.words[P]=E<<26-S|A>>>S,E=A&k}return $&&E!==0&&($.words[$.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(m,g,h){return n(this.negative===0),this.iushrn(m,g,h)},o.prototype.shln=function(m){return this.clone().ishln(m)},o.prototype.ushln=function(m){return this.clone().iushln(m)},o.prototype.shrn=function(m){return this.clone().ishrn(m)},o.prototype.ushrn=function(m){return this.clone().iushrn(m)},o.prototype.testn=function(m){n(typeof m=="number"&&m>=0);var g=m%26,h=(m-g)/26,x=1<=0);var g=m%26,h=(m-g)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=h)return this;if(g!==0&&h++,this.length=Math.min(h,this.length),g!==0){var x=67108863^67108863>>>g<=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},o.prototype.isubn=function(m){if(n(typeof m=="number"),n(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g>26)-($/67108864|0),this.words[S+h]=T&67108863}for(;S>26,this.words[S+h]=T&67108863;if(k===0)return this.strip();for(n(k===-1),k=0,S=0;S>26,this.words[S]=T&67108863;return this.negative=1,this.strip()},o.prototype._wordDiv=function(m,g){var h=this.length-m.length,x=this.clone(),S=m,T=S.words[S.length-1]|0,k=this._countBits(T);h=26-k,h!==0&&(S=S.ushln(h),x.iushln(h),T=S.words[S.length-1]|0);var $=x.length-S.length,P;if(g!=="mod"){P=new o(null),P.length=$+1,P.words=new Array(P.length);for(var E=0;E=0;z--){var H=(x.words[S.length+z]|0)*67108864+(x.words[S.length+z-1]|0);for(H=Math.min(H/T|0,67108863),x._ishlnsubmul(S,H,z);x.negative!==0;)H--,x.negative=0,x._ishlnsubmul(S,1,z),x.isZero()||(x.negative^=1);P&&(P.words[z]=H)}return P&&P.strip(),x.strip(),g!=="div"&&h!==0&&x.iushrn(h),{div:P||null,mod:x}},o.prototype.divmod=function(m,g,h){if(n(!m.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var x,S,T;return this.negative!==0&&m.negative===0?(T=this.neg().divmod(m,g),g!=="mod"&&(x=T.div.neg()),g!=="div"&&(S=T.mod.neg(),h&&S.negative!==0&&S.iadd(m)),{div:x,mod:S}):this.negative===0&&m.negative!==0?(T=this.divmod(m.neg(),g),g!=="mod"&&(x=T.div.neg()),{div:x,mod:T.mod}):this.negative&m.negative?(T=this.neg().divmod(m.neg(),g),g!=="div"&&(S=T.mod.neg(),h&&S.negative!==0&&S.isub(m)),{div:T.div,mod:S}):m.length>this.length||this.cmp(m)<0?{div:new o(0),mod:this}:m.length===1?g==="div"?{div:this.divn(m.words[0]),mod:null}:g==="mod"?{div:null,mod:new o(this.modn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new o(this.modn(m.words[0]))}:this._wordDiv(m,g)},o.prototype.div=function(m){return this.divmod(m,"div",!1).div},o.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},o.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},o.prototype.divRound=function(m){var g=this.divmod(m);if(g.mod.isZero())return g.div;var h=g.div.negative!==0?g.mod.isub(m):g.mod,x=m.ushrn(1),S=m.andln(1),T=h.cmp(x);return T<0||S===1&&T===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},o.prototype.modn=function(m){n(m<=67108863);for(var g=(1<<26)%m,h=0,x=this.length-1;x>=0;x--)h=(g*h+(this.words[x]|0))%m;return h},o.prototype.idivn=function(m){n(m<=67108863);for(var g=0,h=this.length-1;h>=0;h--){var x=(this.words[h]|0)+g*67108864;this.words[h]=x/m|0,g=x%m}return this.strip()},o.prototype.divn=function(m){return this.clone().idivn(m)},o.prototype.egcd=function(m){n(m.negative===0),n(!m.isZero());var g=this,h=m.clone();g.negative!==0?g=g.umod(m):g=g.clone();for(var x=new o(1),S=new o(0),T=new o(0),k=new o(1),$=0;g.isEven()&&h.isEven();)g.iushrn(1),h.iushrn(1),++$;for(var P=h.clone(),E=g.clone();!g.isZero();){for(var A=0,z=1;!(g.words[0]&z)&&A<26;++A,z<<=1);if(A>0)for(g.iushrn(A);A-- >0;)(x.isOdd()||S.isOdd())&&(x.iadd(P),S.isub(E)),x.iushrn(1),S.iushrn(1);for(var H=0,O=1;!(h.words[0]&O)&&H<26;++H,O<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(T.isOdd()||k.isOdd())&&(T.iadd(P),k.isub(E)),T.iushrn(1),k.iushrn(1);g.cmp(h)>=0?(g.isub(h),x.isub(T),S.isub(k)):(h.isub(g),T.isub(x),k.isub(S))}return{a:T,b:k,gcd:h.iushln($)}},o.prototype._invmp=function(m){n(m.negative===0),n(!m.isZero());var g=this,h=m.clone();g.negative!==0?g=g.umod(m):g=g.clone();for(var x=new o(1),S=new o(0),T=h.clone();g.cmpn(1)>0&&h.cmpn(1)>0;){for(var k=0,$=1;!(g.words[0]&$)&&k<26;++k,$<<=1);if(k>0)for(g.iushrn(k);k-- >0;)x.isOdd()&&x.iadd(T),x.iushrn(1);for(var P=0,E=1;!(h.words[0]&E)&&P<26;++P,E<<=1);if(P>0)for(h.iushrn(P);P-- >0;)S.isOdd()&&S.iadd(T),S.iushrn(1);g.cmp(h)>=0?(g.isub(h),x.isub(S)):(h.isub(g),S.isub(x))}var A;return g.cmpn(1)===0?A=x:A=S,A.cmpn(0)<0&&A.iadd(m),A},o.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var g=this.clone(),h=m.clone();g.negative=0,h.negative=0;for(var x=0;g.isEven()&&h.isEven();x++)g.iushrn(1),h.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;h.isEven();)h.iushrn(1);var S=g.cmp(h);if(S<0){var T=g;g=h,h=T}else if(S===0||h.cmpn(1)===0)break;g.isub(h)}while(!0);return h.iushln(x)},o.prototype.invm=function(m){return this.egcd(m).a.umod(m)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(m){return this.words[0]&m},o.prototype.bincn=function(m){n(typeof m=="number");var g=m%26,h=(m-g)/26,x=1<>>26,k&=67108863,this.words[T]=k}return S!==0&&(this.words[T]=S,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(m){var g=m<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this.strip();var h;if(this.length>1)h=1;else{g&&(m=-m),n(m<=67108863,"Number is too big");var x=this.words[0]|0;h=x===m?0:xm.length)return 1;if(this.length=0;h--){var x=this.words[h]|0,S=m.words[h]|0;if(x!==S){xS&&(g=1);break}}return g},o.prototype.gtn=function(m){return this.cmpn(m)===1},o.prototype.gt=function(m){return this.cmp(m)===1},o.prototype.gten=function(m){return this.cmpn(m)>=0},o.prototype.gte=function(m){return this.cmp(m)>=0},o.prototype.ltn=function(m){return this.cmpn(m)===-1},o.prototype.lt=function(m){return this.cmp(m)===-1},o.prototype.lten=function(m){return this.cmpn(m)<=0},o.prototype.lte=function(m){return this.cmp(m)<=0},o.prototype.eqn=function(m){return this.cmpn(m)===0},o.prototype.eq=function(m){return this.cmp(m)===0},o.red=function(m){return new L(m)},o.prototype.toRed=function(m){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(m){return this.red=m,this},o.prototype.forceRed=function(m){return n(!this.red,"Already a number in reduction context"),this._forceRed(m)},o.prototype.redAdd=function(m){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},o.prototype.redIAdd=function(m){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},o.prototype.redSub=function(m){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},o.prototype.redISub=function(m){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},o.prototype.redShl=function(m){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},o.prototype.redMul=function(m){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},o.prototype.redIMul=function(m){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(m){return n(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var M={k256:null,p224:null,p192:null,p25519:null};function B(R,m){this.name=R,this.p=new o(m,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var m=new o(null);return m.words=new Array(Math.ceil(this.n/13)),m},B.prototype.ireduce=function(m){var g=m,h;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),h=g.bitLength();while(h>this.n);var x=h0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},B.prototype.split=function(m,g){m.iushrn(this.n,0,g)},B.prototype.imulK=function(m){return m.imul(this.k)};function D(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(D,B),D.prototype.split=function(m,g){for(var h=4194303,x=Math.min(m.length,9),S=0;S>>22,T=k}T>>>=22,m.words[S-10]=T,T===0&&m.length>10?m.length-=10:m.length-=9},D.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var g=0,h=0;h>>=26,m.words[h]=S,g=x}return g!==0&&(m.words[m.length++]=g),m},o._prime=function(m){if(M[m])return M[m];var g;if(m==="k256")g=new D;else if(m==="p224")g=new F;else if(m==="p192")g=new N;else if(m==="p25519")g=new _;else throw new Error("Unknown prime "+m);return M[m]=g,g};function L(R){if(typeof R=="string"){var m=o._prime(R);this.m=m.p,this.prime=m}else n(R.gtn(1),"modulus must be greater than 1"),this.m=R,this.prime=null}L.prototype._verify1=function(m){n(m.negative===0,"red works only with positives"),n(m.red,"red works only with red numbers")},L.prototype._verify2=function(m,g){n((m.negative|g.negative)===0,"red works only with positives"),n(m.red&&m.red===g.red,"red works only with red numbers")},L.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):m.umod(this.m)._forceRed(this)},L.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},L.prototype.add=function(m,g){this._verify2(m,g);var h=m.add(g);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},L.prototype.iadd=function(m,g){this._verify2(m,g);var h=m.iadd(g);return h.cmp(this.m)>=0&&h.isub(this.m),h},L.prototype.sub=function(m,g){this._verify2(m,g);var h=m.sub(g);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},L.prototype.isub=function(m,g){this._verify2(m,g);var h=m.isub(g);return h.cmpn(0)<0&&h.iadd(this.m),h},L.prototype.shl=function(m,g){return this._verify1(m),this.imod(m.ushln(g))},L.prototype.imul=function(m,g){return this._verify2(m,g),this.imod(m.imul(g))},L.prototype.mul=function(m,g){return this._verify2(m,g),this.imod(m.mul(g))},L.prototype.isqr=function(m){return this.imul(m,m.clone())},L.prototype.sqr=function(m){return this.mul(m,m)},L.prototype.sqrt=function(m){if(m.isZero())return m.clone();var g=this.m.andln(3);if(n(g%2===1),g===3){var h=this.m.add(new o(1)).iushrn(2);return this.pow(m,h)}for(var x=this.m.subn(1),S=0;!x.isZero()&&x.andln(1)===0;)S++,x.iushrn(1);n(!x.isZero());var T=new o(1).toRed(this),k=T.redNeg(),$=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new o(2*P*P).toRed(this);this.pow(P,$).cmp(k)!==0;)P.redIAdd(k);for(var E=this.pow(P,x),A=this.pow(m,x.addn(1).iushrn(1)),z=this.pow(m,x),H=S;z.cmp(T)!==0;){for(var O=z,V=0;O.cmp(T)!==0;V++)O=O.redSqr();n(V=0;S--){for(var E=g.words[S],A=P-1;A>=0;A--){var z=E>>A&1;if(T!==x[0]&&(T=this.sqr(T)),z===0&&k===0){$=0;continue}k<<=1,k|=z,$++,!($!==h&&(S!==0||A!==0))&&(T=this.mul(T,x[k]),$=0,k=0)}P=26}return T},L.prototype.convertTo=function(m){var g=m.umod(this.m);return g===m?g.clone():g},L.prototype.convertFrom=function(m){var g=m.clone();return g.red=null,g},o.mont=function(m){return new I(m)};function I(R){L.call(this,R),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(I,L),I.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},I.prototype.convertFrom=function(m){var g=this.imod(m.mul(this.rinv));return g.red=null,g},I.prototype.imul=function(m,g){if(m.isZero()||g.isZero())return m.words[0]=0,m.length=1,m;var h=m.imul(g),x=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=h.isub(x).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},I.prototype.mul=function(m,g){if(m.isZero()||g.isZero())return new o(0)._forceRed(this);var h=m.mul(g),x=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=h.isub(x).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},I.prototype.invm=function(m){var g=this.imod(m._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(e,st)})(y4);var ba=y4.exports,ml=RM;function RM(e,t){if(!e)throw new Error(t||"Assertion failed")}RM.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};var w4={};(function(e){var t=e;function r(o,a){if(Array.isArray(o))return o.slice();if(!o)return[];var s=[];if(typeof o!="string"){for(var l=0;l>8,f=c&255;u?s.push(u,f):s.push(f)}return s}t.toArray=r;function n(o){return o.length===1?"0"+o:o}t.zero2=n;function i(o){for(var a="",s=0;s(v>>1)-1?C=(v>>1)-y:C=y,w.isubn(C)):C=0,b[p]=C,w.iushrn(1)}return b}t.getNAF=o;function a(u,f){var d=[[],[]];u=u.clone(),f=f.clone();for(var b=0,p=0,v;u.cmpn(-b)>0||f.cmpn(-p)>0;){var w=u.andln(3)+b&3,C=f.andln(3)+p&3;w===3&&(w=-1),C===3&&(C=-1);var y;w&1?(v=u.andln(7)+b&7,(v===3||v===5)&&C===2?y=-w:y=w):y=0,d[0].push(y);var M;C&1?(v=f.andln(7)+p&7,(v===3||v===5)&&w===2?M=-C:M=C):M=0,d[1].push(M),2*b===y+1&&(b=1-b),2*p===M+1&&(p=1-p),u.iushrn(1),f.iushrn(1)}return d}t.getJSF=a;function s(u,f,d){var b="_"+f;u.prototype[f]=function(){return this[b]!==void 0?this[b]:this[b]=d.call(this)}}t.cachedProperty=s;function l(u){return typeof u=="string"?t.toArray(u,"hex"):u}t.parseBytes=l;function c(u){return new r(u,"hex","le")}t.intFromLE=c})(ci);var S4={exports:{}},zm;S4.exports=function(t){return zm||(zm=new za(null)),zm.generate(t)};function za(e){this.rand=e}S4.exports.Rand=za;za.prototype.generate=function(t){return this._rand(t)};za.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),n=0;n0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var R1=ds;ds.prototype.point=function(){throw new Error("Not implemented")};ds.prototype.validate=function(){throw new Error("Not implemented")};ds.prototype._fixedNafMul=function(t,r){Yh(t.precomputed);var n=t._getDoubles(),i=Gh(r,1,this._bitLength),o=(1<=s;c--)l=(l<<1)+i[c];a.push(l)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=o;d>0;d--){for(s=0;s=0;l--){for(var c=0;l>=0&&a[l]===0;l--)c++;if(l>=0&&c++,s=s.dblp(c),l<0)break;var u=a[l];Yh(u!==0),t.type==="affine"?u>0?s=s.mixedAdd(o[u-1>>1]):s=s.mixedAdd(o[-u-1>>1].neg()):u>0?s=s.add(o[u-1>>1]):s=s.add(o[-u-1>>1].neg())}return t.type==="affine"?s.toP():s};ds.prototype._wnafMulAdd=function(t,r,n,i,o){var a=this._wnafT1,s=this._wnafT2,l=this._wnafT3,c=0,u,f,d;for(u=0;u=1;u-=2){var p=u-1,v=u;if(a[p]!==1||a[v]!==1){l[p]=Gh(n[p],a[p],this._bitLength),l[v]=Gh(n[v],a[v],this._bitLength),c=Math.max(l[p].length,c),c=Math.max(l[v].length,c);continue}var w=[r[p],null,null,r[v]];r[p].y.cmp(r[v].y)===0?(w[1]=r[p].add(r[v]),w[2]=r[p].toJ().mixedAdd(r[v].neg())):r[p].y.cmp(r[v].y.redNeg())===0?(w[1]=r[p].toJ().mixedAdd(r[v]),w[2]=r[p].add(r[v].neg())):(w[1]=r[p].toJ().mixedAdd(r[v]),w[2]=r[p].toJ().mixedAdd(r[v].neg()));var C=[-3,-1,-5,-7,0,7,5,1,3],y=AQ(n[p],n[v]);for(c=Math.max(y[0].length,c),l[p]=new Array(c),l[v]=new Array(c),f=0;f=0;u--){for(var N=0;u>=0;){var _=!0;for(f=0;f=0&&N++,D=D.dblp(N),u<0)break;for(f=0;f0?d=s[f][L-1>>1]:L<0&&(d=s[f][-L-1>>1].neg()),d.type==="affine"?D=D.mixedAdd(d):D=D.add(d))}}for(u=0;u=Math.ceil((t.bitLength()+1)/r.step):!1};zi.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,o=0;o=0&&(b=c,p=u),f.negative&&(f=f.neg(),d=d.neg()),b.negative&&(b=b.neg(),p=p.neg()),[{a:f,b:d},{a:b,b:p}]};ji.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],i=r[1],o=i.b.mul(t).divRound(this.n),a=n.b.neg().mul(t).divRound(this.n),s=o.mul(n.a),l=a.mul(i.a),c=o.mul(n.b),u=a.mul(i.b),f=t.sub(s).sub(l),d=c.add(u).neg();return{k1:f,k2:d}};ji.prototype.pointFromX=function(t,r){t=new fr(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var o=i.fromRed().isOdd();return(r&&!o||!r&&o)&&(i=i.redNeg()),this.point(t,i)};ji.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,i=this.a.redMul(r),o=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(o).cmpn(0)===0};ji.prototype._endoWnafMulAdd=function(t,r,n){for(var i=this._endoWnafT1,o=this._endoWnafT2,a=0;a":""};jr.prototype.isInfinity=function(){return this.inf};jr.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(t.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};jr.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),a=o.redSqr().redISub(this.x.redAdd(this.x)),s=o.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)};jr.prototype.getX=function(){return this.x.fromRed()};jr.prototype.getY=function(){return this.y.fromRed()};jr.prototype.mul=function(t){return t=new fr(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};jr.prototype.mulAdd=function(t,r,n){var i=[this,r],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)};jr.prototype.jmulAdd=function(t,r,n){var i=[this,r],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)};jr.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};jr.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(o){return o.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};jr.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function Qr(e,t,r,n){ru.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new fr(0)):(this.x=new fr(t,16),this.y=new fr(r,16),this.z=new fr(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}E4(Qr,ru.BasePoint);ji.prototype.jpoint=function(t,r,n){return new Qr(this,t,r,n)};Qr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(t);return this.curve.point(n,i)};Qr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Qr.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),o=t.x.redMul(n),a=this.y.redMul(r.redMul(t.z)),s=t.y.redMul(n.redMul(this.z)),l=i.redSub(o),c=a.redSub(s);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=l.redSqr(),f=u.redMul(l),d=i.redMul(u),b=c.redSqr().redIAdd(f).redISub(d).redISub(d),p=c.redMul(d.redISub(b)).redISub(a.redMul(f)),v=this.z.redMul(t.z).redMul(l);return this.curve.jpoint(b,p,v)};Qr.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=t.x.redMul(r),o=this.y,a=t.y.redMul(r).redMul(this.z),s=n.redSub(i),l=o.redSub(a);if(s.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=n.redMul(c),d=l.redSqr().redIAdd(u).redISub(f).redISub(f),b=l.redMul(f.redISub(d)).redISub(o.redMul(u)),p=this.z.redMul(s);return this.curve.jpoint(d,b,p)};Qr.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(o),this.x.cmp(n)===0)return!0}};Qr.prototype.inspect=function(){return this.isInfinity()?"":""};Qr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var ec=ba,$M=T1,$1=R1,TQ=ci;function nu(e){$1.call(this,"mont",e),this.a=new ec(e.a,16).toRed(this.red),this.b=new ec(e.b,16).toRed(this.red),this.i4=new ec(4).toRed(this.red).redInvm(),this.two=new ec(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}$M(nu,$1);var $Q=nu;nu.prototype.validate=function(t){var r=t.normalize().x,n=r.redSqr(),i=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),o=i.redSqrt();return o.redSqr().cmp(i)===0};function Lr(e,t,r){$1.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new ec(t,16),this.z=new ec(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}$M(Lr,$1.BasePoint);nu.prototype.decodePoint=function(t,r){return this.point(TQ.toArray(t,r),1)};nu.prototype.point=function(t,r){return new Lr(this,t,r)};nu.prototype.pointFromJSON=function(t){return Lr.fromJSON(this,t)};Lr.prototype.precompute=function(){};Lr.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Lr.fromJSON=function(t,r){return new Lr(t,r[0],r[1]||t.one)};Lr.prototype.inspect=function(){return this.isInfinity()?"":""};Lr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Lr.prototype.dbl=function(){var t=this.x.redAdd(this.z),r=t.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),o=r.redSub(i),a=r.redMul(i),s=o.redMul(i.redAdd(this.curve.a24.redMul(o)));return this.curve.point(a,s)};Lr.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Lr.prototype.diffAdd=function(t,r){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),o=t.x.redAdd(t.z),a=t.x.redSub(t.z),s=a.redMul(n),l=o.redMul(i),c=r.z.redMul(s.redAdd(l).redSqr()),u=r.x.redMul(s.redISub(l).redSqr());return this.curve.point(c,u)};Lr.prototype.mul=function(t){for(var r=t.clone(),n=this,i=this.curve.point(null,null),o=this,a=[];r.cmpn(0)!==0;r.iushrn(1))a.push(r.andln(1));for(var s=a.length-1;s>=0;s--)a[s]===0?(n=n.diffAdd(i,o),i=i.dbl()):(i=n.diffAdd(i,o),n=n.dbl());return i};Lr.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Lr.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Lr.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};Lr.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Lr.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var BQ=ci,Zo=ba,BM=T1,B1=R1,IQ=BQ.assert;function Do(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,B1.call(this,"edwards",e),this.a=new Zo(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Zo(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Zo(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),IQ(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}BM(Do,B1);var FQ=Do;Do.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};Do.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};Do.prototype.jpoint=function(t,r,n,i){return this.point(t,r,n,i)};Do.prototype.pointFromX=function(t,r){t=new Zo(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),i=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=i.redMul(o.redInvm()),s=a.redSqrt();if(s.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error("invalid point");var l=s.fromRed().isOdd();return(r&&!l||!r&&l)&&(s=s.redNeg()),this.point(t,s)};Do.prototype.pointFromY=function(t,r){t=new Zo(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),i=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(o.redInvm());if(a.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(s.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error("invalid point");return s.fromRed().isOdd()!==r&&(s=s.redNeg()),this.point(s,t)};Do.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var r=t.x.redSqr(),n=t.y.redSqr(),i=r.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return i.cmp(o)===0};function qt(e,t,r,n,i){B1.BasePoint.call(this,e,"projective"),t===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Zo(t,16),this.y=new Zo(r,16),this.z=n?new Zo(n,16):this.curve.one,this.t=i&&new Zo(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}BM(qt,B1.BasePoint);Do.prototype.pointFromJSON=function(t){return qt.fromJSON(this,t)};Do.prototype.point=function(t,r,n,i){return new qt(this,t,r,n,i)};qt.fromJSON=function(t,r){return new qt(t,r[0],r[1],r[2])};qt.prototype.inspect=function(){return this.isInfinity()?"":""};qt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};qt.prototype._extDbl=function(){var t=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(t),o=this.x.redAdd(this.y).redSqr().redISub(t).redISub(r),a=i.redAdd(r),s=a.redSub(n),l=i.redSub(r),c=o.redMul(s),u=a.redMul(l),f=o.redMul(l),d=s.redMul(a);return this.curve.point(c,u,d,f)};qt.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),i,o,a,s,l,c;if(this.curve.twisted){s=this.curve._mulA(r);var u=s.redAdd(n);this.zOne?(i=t.redSub(r).redSub(n).redMul(u.redSub(this.curve.two)),o=u.redMul(s.redSub(n)),a=u.redSqr().redSub(u).redSub(u)):(l=this.z.redSqr(),c=u.redSub(l).redISub(l),i=t.redSub(r).redISub(n).redMul(c),o=u.redMul(s.redSub(n)),a=u.redMul(c))}else s=r.redAdd(n),l=this.curve._mulC(this.z).redSqr(),c=s.redSub(l).redSub(l),i=this.curve._mulC(t.redISub(s)).redMul(c),o=this.curve._mulC(s).redMul(r.redISub(n)),a=s.redMul(c);return this.curve.point(i,o,a)};qt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};qt.prototype._extAdd=function(t){var r=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),o=this.z.redMul(t.z.redAdd(t.z)),a=n.redSub(r),s=o.redSub(i),l=o.redAdd(i),c=n.redAdd(r),u=a.redMul(s),f=l.redMul(c),d=a.redMul(c),b=s.redMul(l);return this.curve.point(u,f,b,d)};qt.prototype._projAdd=function(t){var r=this.z.redMul(t.z),n=r.redSqr(),i=this.x.redMul(t.x),o=this.y.redMul(t.y),a=this.curve.d.redMul(i).redMul(o),s=n.redSub(a),l=n.redAdd(a),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(i).redISub(o),u=r.redMul(s).redMul(c),f,d;return this.curve.twisted?(f=r.redMul(l).redMul(o.redSub(this.curve._mulA(i))),d=s.redMul(l)):(f=r.redMul(l).redMul(o.redSub(i)),d=this.curve._mulC(s).redMul(l)),this.curve.point(u,f,d)};qt.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};qt.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};qt.prototype.mulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!1)};qt.prototype.jmulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!0)};qt.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};qt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};qt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};qt.prototype.getY=function(){return this.normalize(),this.y.fromRed()};qt.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};qt.prototype.eqXToP=function(t){var r=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=t.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};qt.prototype.toP=qt.prototype.normalize;qt.prototype.mixedAdd=qt.prototype.add;(function(e){var t=e;t.base=R1,t.short=RQ,t.mont=$Q,t.edwards=FQ})(C4);var I1={},O0={},kt={},OQ=ml,DQ=T1;kt.inherits=DQ;function LQ(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function NQ(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=o&63|128):LQ(e,i)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++i)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}kt.htonl=IM;function jQ(e,t){for(var r="",n=0;n>>0}return o}kt.join32=UQ;function HQ(e,t){for(var r=new Array(e.length*4),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=o&255)}return r}kt.split32=HQ;function WQ(e,t){return e>>>t|e<<32-t}kt.rotr32=WQ;function VQ(e,t){return e<>>32-t}kt.rotl32=VQ;function qQ(e,t){return e+t>>>0}kt.sum32=qQ;function KQ(e,t,r){return e+t+r>>>0}kt.sum32_3=KQ;function GQ(e,t,r,n){return e+t+r+n>>>0}kt.sum32_4=GQ;function YQ(e,t,r,n,i){return e+t+r+n+i>>>0}kt.sum32_5=YQ;function XQ(e,t,r,n){var i=e[t],o=e[t+1],a=n+o>>>0,s=(a>>0,e[t+1]=a}kt.sum64=XQ;function JQ(e,t,r,n){var i=t+n>>>0,o=(i>>0}kt.sum64_hi=JQ;function ZQ(e,t,r,n){var i=t+n;return i>>>0}kt.sum64_lo=ZQ;function QQ(e,t,r,n,i,o,a,s){var l=0,c=t;c=c+n>>>0,l+=c>>0,l+=c>>0,l+=c>>0}kt.sum64_4_hi=QQ;function eee(e,t,r,n,i,o,a,s){var l=t+n+o+s;return l>>>0}kt.sum64_4_lo=eee;function tee(e,t,r,n,i,o,a,s,l,c){var u=0,f=t;f=f+n>>>0,u+=f>>0,u+=f>>0,u+=f>>0,u+=f>>0}kt.sum64_5_hi=tee;function ree(e,t,r,n,i,o,a,s,l,c){var u=t+n+o+s+c;return u>>>0}kt.sum64_5_lo=ree;function nee(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}kt.rotr64_hi=nee;function iee(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}kt.rotr64_lo=iee;function oee(e,t,r){return e>>>r}kt.shr64_hi=oee;function aee(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}kt.shr64_lo=aee;var iu={},q5=kt,see=ml;function F1(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}iu.BlockHash=F1;F1.prototype.update=function(t,r){if(t=q5.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=q5.join32(t,0,t.length-n,this.endian);for(var i=0;i>>24&255,i[o++]=t>>>16&255,i[o++]=t>>>8&255,i[o++]=t&255}else for(i[o++]=t&255,i[o++]=t>>>8&255,i[o++]=t>>>16&255,i[o++]=t>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,a=8;a>>3}Lo.g0_256=dee;function hee(e){return ko(e,17)^ko(e,19)^e>>>10}Lo.g1_256=hee;var Dc=kt,pee=iu,xee=Lo,jm=Dc.rotl32,Fu=Dc.sum32,mee=Dc.sum32_5,gee=xee.ft_1,zM=pee.BlockHash,vee=[1518500249,1859775393,2400959708,3395469782];function $o(){if(!(this instanceof $o))return new $o;zM.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Dc.inherits($o,zM);var bee=$o;$o.blockSize=512;$o.outSize=160;$o.hmacStrength=80;$o.padLength=64;$o.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;ithis.blockSize&&(t=new this.Hash().update(t).digest()),ate(t.length<=this.blockSize);for(var r=t.length;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var ute=ts;ts.prototype._init=function(t,r,n){var i=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};ts.prototype.generate=function(t,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Ks.toArray(n,i||"hex"),this._update(n));for(var o=[];o.length"};var Xh=ba,M4=ci,pte=M4.assert;function O1(e,t){if(e instanceof O1)return e;this._importDER(e,t)||(pte(e.r&&e.s,"Signature without r or s"),this.r=new Xh(e.r,16),this.s=new Xh(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var xte=O1;function mte(){this.place=0}function Vm(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return i<=127?!1:(t.place=a,i)}function J5(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}O1.prototype.toDER=function(t){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=J5(r),n=J5(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];qm(i,r.length),i=i.concat(r),i.push(2),qm(i,n.length);var o=i.concat(n),a=[48];return qm(a,o.length),a=a.concat(o),M4.encode(a,t)};var Gs=ba,ZM=ute,gte=ci,Km=I1,vte=TM,QM=gte.assert,P4=hte,D1=xte;function Fi(e){if(!(this instanceof Fi))return new Fi(e);typeof e=="string"&&(QM(Object.prototype.hasOwnProperty.call(Km,e),"Unknown curve "+e),e=Km[e]),e instanceof Km.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var bte=Fi;Fi.prototype.keyPair=function(t){return new P4(this,t)};Fi.prototype.keyFromPrivate=function(t,r){return P4.fromPrivate(this,t,r)};Fi.prototype.keyFromPublic=function(t,r){return P4.fromPublic(this,t,r)};Fi.prototype.genKeyPair=function(t){t||(t={});for(var r=new ZM({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||vte(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Gs(2));;){var o=new Gs(r.generate(n));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}};Fi.prototype._truncateToN=function(t,r){var n=t.byteLength()*8-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};Fi.prototype.sign=function(t,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),t=this._truncateToN(new Gs(t,16));for(var o=this.n.byteLength(),a=r.getPrivate().toArray("be",o),s=t.toArray("be",o),l=new ZM({hash:this.hash,entropy:a,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Gs(1)),u=0;;u++){var f=i.k?i.k(u):new Gs(l.generate(this.n.byteLength()));if(f=this._truncateToN(f,!0),!(f.cmpn(1)<=0||f.cmp(c)>=0)){var d=this.g.mul(f);if(!d.isInfinity()){var b=d.getX(),p=b.umod(this.n);if(p.cmpn(0)!==0){var v=f.invm(this.n).mul(p.mul(r.getPrivate()).iadd(t));if(v=v.umod(this.n),v.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(b.cmp(p)!==0?2:0);return i.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),w^=1),new D1({r:p,s:v,recoveryParam:w})}}}}}};Fi.prototype.verify=function(t,r,n,i){t=this._truncateToN(new Gs(t,16)),n=this.keyFromPublic(n,i),r=new D1(r,"hex");var o=r.r,a=r.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),l=s.mul(t).umod(this.n),c=s.mul(o).umod(this.n),u;return this.curve._maxwellTrick?(u=this.g.jmulAdd(l,n.getPublic(),c),u.isInfinity()?!1:u.eqXToP(o)):(u=this.g.mulAdd(l,n.getPublic(),c),u.isInfinity()?!1:u.getX().umod(this.n).cmp(o)===0)};Fi.prototype.recoverPubKey=function(e,t,r,n){QM((3&r)===r,"The recovery param is more than two bits"),t=new D1(t,n);var i=this.n,o=new Gs(e),a=t.r,s=t.s,l=r&1,c=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?a=this.curve.pointFromX(a.add(this.curve.n),l):a=this.curve.pointFromX(a,l);var u=t.r.invm(i),f=i.sub(o).mul(u).umod(i),d=s.mul(u).umod(i);return this.g.mulAdd(f,a,d)};Fi.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new D1(t,n),t.recoveryParam!==null)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch{continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var D0=ci,eP=D0.assert,Z5=D0.parseBytes,su=D0.cachedProperty;function Dr(e,t){this.eddsa=e,this._secret=Z5(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=Z5(t.pub)}Dr.fromPublic=function(t,r){return r instanceof Dr?r:new Dr(t,{pub:r})};Dr.fromSecret=function(t,r){return r instanceof Dr?r:new Dr(t,{secret:r})};Dr.prototype.secret=function(){return this._secret};su(Dr,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});su(Dr,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});su(Dr,"privBytes",function(){var t=this.eddsa,r=this.hash(),n=t.encodingLength-1,i=r.slice(0,t.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});su(Dr,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});su(Dr,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});su(Dr,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Dr.prototype.sign=function(t){return eP(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};Dr.prototype.verify=function(t,r){return this.eddsa.verify(t,r,this)};Dr.prototype.getSecret=function(t){return eP(this._secret,"KeyPair is public only"),D0.encode(this.secret(),t)};Dr.prototype.getPublic=function(t){return D0.encode(this.pubBytes(),t)};var yte=Dr,wte=ba,L1=ci,Ste=L1.assert,N1=L1.cachedProperty,Cte=L1.parseBytes;function gl(e,t){this.eddsa=e,typeof t!="object"&&(t=Cte(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),Ste(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof wte&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}N1(gl,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});N1(gl,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});N1(gl,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});N1(gl,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});gl.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};gl.prototype.toHex=function(){return L1.encode(this.toBytes(),"hex").toUpperCase()};var Ete=gl,Mte=O0,Pte=I1,zc=ci,Ate=zc.assert,tP=zc.parseBytes,rP=yte,Q5=Ete;function jn(e){if(Ate(e==="ed25519","only tested with ed25519 so far"),!(this instanceof jn))return new jn(e);e=Pte[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=Mte.sha512}var kte=jn;jn.prototype.sign=function(t,r){t=tP(t);var n=this.keyFromSecret(r),i=this.hashInt(n.messagePrefix(),t),o=this.g.mul(i),a=this.encodePoint(o),s=this.hashInt(a,n.pubBytes(),t).mul(n.priv()),l=i.add(s).umod(this.curve.n);return this.makeSignature({R:o,S:l,Rencoded:a})};jn.prototype.verify=function(t,r,n){t=tP(t),r=this.makeSignature(r);var i=this.keyFromPublic(n),o=this.hashInt(r.Rencoded(),i.pubBytes(),t),a=this.g.mul(r.S()),s=r.R().add(i.pub().mul(o));return s.eq(a)};jn.prototype.hashInt=function(){for(var t=this.hash(),r=0;r>5,this.byteCount=this.blockCount<<2,this.outputBlocks=K>>5,this.extraBytes=(K&31)>>3;for(var Z=0;Z<50;++Z)this.s[Z]=0}X.prototype.update=function(j){if(this.finalized)throw new Error(r);var q=F(j);j=q[0];for(var K=q[1],Z=this.blocks,te=this.byteCount,Q=j.length,oe=this.blockCount,me=0,se=this.s,ye,Re;me>2]|=Re<>2]|=(192|Re>>6)<>2]|=(128|Re&63)<=57344?(Z[ye>>2]|=(224|Re>>12)<>2]|=(128|Re>>6&63)<>2]|=(128|Re&63)<>2]|=(240|Re>>18)<>2]|=(128|Re>>12&63)<>2]|=(128|Re>>6&63)<>2]|=(128|Re&63)<>2]|=j[me]<=te){for(this.start=ye-te,this.block=Z[oe],ye=0;ye>8,K=j&255;K>0;)te.unshift(K),j=j>>8,K=j&255,++Z;return q?te.push(Z):te.unshift(Z),this.update(te),te.length},X.prototype.encodeString=function(j){var q=F(j);j=q[0];var K=q[1],Z=0,te=j.length;if(K)for(var Q=0;Q=57344?Z+=3:(oe=65536+((oe&1023)<<10|j.charCodeAt(++Q)&1023),Z+=4)}else Z=te;return Z+=this.encode(Z*8),this.update(j),Z},X.prototype.bytepad=function(j,q){for(var K=this.encode(q),Z=0;Z>2]|=this.padding[q&3],this.lastByteIndex===this.byteCount)for(j[0]=j[K],q=1;q>4&15]+c[me&15]+c[me>>12&15]+c[me>>8&15]+c[me>>20&15]+c[me>>16&15]+c[me>>28&15]+c[me>>24&15];Q%j===0&&(q=_(q),G(q),te=0)}return Z&&(me=q[te],oe+=c[me>>4&15]+c[me&15],Z>1&&(oe+=c[me>>12&15]+c[me>>8&15]),Z>2&&(oe+=c[me>>20&15]+c[me>>16&15])),oe},X.prototype.arrayBuffer=function(){this.finalize();var j=this.blockCount,q=this.s,K=this.outputBlocks,Z=this.extraBytes,te=0,Q=0,oe=this.outputBits>>3,me;Z?me=new ArrayBuffer(K+1<<2):me=new ArrayBuffer(oe);for(var se=new Uint32Array(me);Q>8&255,oe[me+2]=se>>16&255,oe[me+3]=se>>24&255;Q%j===0&&(q=_(q),G(q))}return Z&&(me=Q<<2,se=q[te],oe[me]=se&255,Z>1&&(oe[me+1]=se>>8&255),Z>2&&(oe[me+2]=se>>16&255)),oe};function J(j,q,K){X.call(this,j,q,K)}J.prototype=new X,J.prototype.finalize=function(){return this.encode(this.outputBits,!0),X.prototype.finalize.call(this)};var G=function(j){var q,K,Z,te,Q,oe,me,se,ye,Re,we,He,Ue,Me,Ze,Je,Ne,De,de,Ie,ot,lt,ge,ze,le,xe,je,We,Fe,Qe,ut,Ge,ee,re,ne,pe,ke,Te,$e,Pe,ce,_e,Ve,Ce,Xe,dt,qe,ht,mt,rt,ae,ie,ve,Ae,Ye,Le,pt,Bt,gt,St,Ht,Hr,Cn;for(Z=0;Z<48;Z+=2)te=j[0]^j[10]^j[20]^j[30]^j[40],Q=j[1]^j[11]^j[21]^j[31]^j[41],oe=j[2]^j[12]^j[22]^j[32]^j[42],me=j[3]^j[13]^j[23]^j[33]^j[43],se=j[4]^j[14]^j[24]^j[34]^j[44],ye=j[5]^j[15]^j[25]^j[35]^j[45],Re=j[6]^j[16]^j[26]^j[36]^j[46],we=j[7]^j[17]^j[27]^j[37]^j[47],He=j[8]^j[18]^j[28]^j[38]^j[48],Ue=j[9]^j[19]^j[29]^j[39]^j[49],q=He^(oe<<1|me>>>31),K=Ue^(me<<1|oe>>>31),j[0]^=q,j[1]^=K,j[10]^=q,j[11]^=K,j[20]^=q,j[21]^=K,j[30]^=q,j[31]^=K,j[40]^=q,j[41]^=K,q=te^(se<<1|ye>>>31),K=Q^(ye<<1|se>>>31),j[2]^=q,j[3]^=K,j[12]^=q,j[13]^=K,j[22]^=q,j[23]^=K,j[32]^=q,j[33]^=K,j[42]^=q,j[43]^=K,q=oe^(Re<<1|we>>>31),K=me^(we<<1|Re>>>31),j[4]^=q,j[5]^=K,j[14]^=q,j[15]^=K,j[24]^=q,j[25]^=K,j[34]^=q,j[35]^=K,j[44]^=q,j[45]^=K,q=se^(He<<1|Ue>>>31),K=ye^(Ue<<1|He>>>31),j[6]^=q,j[7]^=K,j[16]^=q,j[17]^=K,j[26]^=q,j[27]^=K,j[36]^=q,j[37]^=K,j[46]^=q,j[47]^=K,q=Re^(te<<1|Q>>>31),K=we^(Q<<1|te>>>31),j[8]^=q,j[9]^=K,j[18]^=q,j[19]^=K,j[28]^=q,j[29]^=K,j[38]^=q,j[39]^=K,j[48]^=q,j[49]^=K,Me=j[0],Ze=j[1],dt=j[11]<<4|j[10]>>>28,qe=j[10]<<4|j[11]>>>28,We=j[20]<<3|j[21]>>>29,Fe=j[21]<<3|j[20]>>>29,St=j[31]<<9|j[30]>>>23,Ht=j[30]<<9|j[31]>>>23,_e=j[40]<<18|j[41]>>>14,Ve=j[41]<<18|j[40]>>>14,re=j[2]<<1|j[3]>>>31,ne=j[3]<<1|j[2]>>>31,Je=j[13]<<12|j[12]>>>20,Ne=j[12]<<12|j[13]>>>20,ht=j[22]<<10|j[23]>>>22,mt=j[23]<<10|j[22]>>>22,Qe=j[33]<<13|j[32]>>>19,ut=j[32]<<13|j[33]>>>19,Hr=j[42]<<2|j[43]>>>30,Cn=j[43]<<2|j[42]>>>30,Ae=j[5]<<30|j[4]>>>2,Ye=j[4]<<30|j[5]>>>2,pe=j[14]<<6|j[15]>>>26,ke=j[15]<<6|j[14]>>>26,De=j[25]<<11|j[24]>>>21,de=j[24]<<11|j[25]>>>21,rt=j[34]<<15|j[35]>>>17,ae=j[35]<<15|j[34]>>>17,Ge=j[45]<<29|j[44]>>>3,ee=j[44]<<29|j[45]>>>3,ze=j[6]<<28|j[7]>>>4,le=j[7]<<28|j[6]>>>4,Le=j[17]<<23|j[16]>>>9,pt=j[16]<<23|j[17]>>>9,Te=j[26]<<25|j[27]>>>7,$e=j[27]<<25|j[26]>>>7,Ie=j[36]<<21|j[37]>>>11,ot=j[37]<<21|j[36]>>>11,ie=j[47]<<24|j[46]>>>8,ve=j[46]<<24|j[47]>>>8,Ce=j[8]<<27|j[9]>>>5,Xe=j[9]<<27|j[8]>>>5,xe=j[18]<<20|j[19]>>>12,je=j[19]<<20|j[18]>>>12,Bt=j[29]<<7|j[28]>>>25,gt=j[28]<<7|j[29]>>>25,Pe=j[38]<<8|j[39]>>>24,ce=j[39]<<8|j[38]>>>24,lt=j[48]<<14|j[49]>>>18,ge=j[49]<<14|j[48]>>>18,j[0]=Me^~Je&De,j[1]=Ze^~Ne&de,j[10]=ze^~xe&We,j[11]=le^~je&Fe,j[20]=re^~pe&Te,j[21]=ne^~ke&$e,j[30]=Ce^~dt&ht,j[31]=Xe^~qe&mt,j[40]=Ae^~Le&Bt,j[41]=Ye^~pt>,j[2]=Je^~De&Ie,j[3]=Ne^~de&ot,j[12]=xe^~We&Qe,j[13]=je^~Fe&ut,j[22]=pe^~Te&Pe,j[23]=ke^~$e&ce,j[32]=dt^~ht&rt,j[33]=qe^~mt&ae,j[42]=Le^~Bt&St,j[43]=pt^~gt&Ht,j[4]=De^~Ie<,j[5]=de^~ot&ge,j[14]=We^~Qe&Ge,j[15]=Fe^~ut&ee,j[24]=Te^~Pe&_e,j[25]=$e^~ce&Ve,j[34]=ht^~rt&ie,j[35]=mt^~ae&ve,j[44]=Bt^~St&Hr,j[45]=gt^~Ht&Cn,j[6]=Ie^~lt&Me,j[7]=ot^~ge&Ze,j[16]=Qe^~Ge&ze,j[17]=ut^~ee&le,j[26]=Pe^~_e&re,j[27]=ce^~Ve&ne,j[36]=rt^~ie&Ce,j[37]=ae^~ve&Xe,j[46]=St^~Hr&Ae,j[47]=Ht^~Cn&Ye,j[8]=lt^~Me&Je,j[9]=ge^~Ze&Ne,j[18]=Ge^~ze&xe,j[19]=ee^~le&je,j[28]=_e^~re&pe,j[29]=Ve^~ne&ke,j[38]=ie^~Ce&dt,j[39]=ve^~Xe&qe,j[48]=Hr^~Ae&Le,j[49]=Cn^~Ye&pt,j[0]^=v[Z],j[1]^=v[Z+1]};if(s)e.exports=$;else for(E=0;E0?S(j,q,K):K<0?T(j,q,K):w(j,q,a,0))}function H(G,j,q,K){var Z=0,te=q.length,Q=0,oe=0;q[0]==="-"&&Z++;for(var me=Z;Z=0))break;oe=oe*K+se,Q=Q*K+Math.floor(oe/l),oe%=l}me&&(Q=~Q,oe?oe=l-oe:Q++),X(G,j+I,Q),X(G,j+R,oe)}function O(){var G=this.buffer,j=this.offset,q=J(G,j+I),K=J(G,j+R);return L||(q|=0),q?q*l+K:K}function V(G){var j=this.buffer,q=this.offset,K=J(j,q+I),Z=J(j,q+R),te="",Q=!L&&K&2147483648;for(Q&&(K=~K,Z=l-Z),G=G||10;;){var oe=K%G*l+Z;if(K=Math.floor(K/G),Z=Math.floor(oe/G),te=(oe%G).toString(G)+te,!K&&!Z)break}return Q&&(te="-"+te),te}function X(G,j,q){G[j+x]=q&255,q=q>>8,G[j+h]=q&255,q=q>>8,G[j+g]=q&255,q=q>>8,G[j+m]=q&255}function J(G,j){return G[j+m]*c+(G[j+g]<<16)+(G[j+h]<<8)+G[j+x]}}function d(N){var _=this.buffer,L=this.offset;return u=null,N!==!1&&s(_)?_.length===8?_:_.slice(L,L+8):C(_,L)}function b(N){var _=this.buffer,L=this.offset;return u=n,N!==!1&&n.isBuffer(_)?_.length===8?_:_.slice(L,L+8):n.from(p.call(this,N))}function p(N){var _=this.buffer,L=this.offset,I=_.buffer;if(u=i,N!==!1&&!_.offset&&I instanceof o)return I.byteLength===8?I:I.slice(L,L+8);var R=new i(8);return w(R,0,_,L),R.buffer}function v(N,_){var L=N&&N.length;return _|=0,L&&_+8<=L&&typeof N[_]!="string"}function w(N,_,L,I){_|=0,I|=0;for(var R=0;R<8;R++)N[_++]=L[I++]&255}function C(N,_){return Array.prototype.slice.call(N,_,_+8)}function y(N,_,L){for(var I=_+8;I>_;)N[--I]=L&255,L/=256}function M(N,_,L){var I=_+8;for(L++;I>_;)N[--I]=-L&255^255,L/=256}function B(N,_,L){for(var I=_+8;_"u")throw new Error(t)}function jc(e,t){if(!e)try{throw new Error(t)}catch{}}function Gte(){return Math.random().toString(36).substr(2,8)}function n7(e,t){return{usr:e.state,key:e.key,idx:t}}function i0(e,t,r,n){return r===void 0&&(r=null),ur({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ya(t):t,{state:r,key:t&&t.key||n||Gte()})}function sl(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ya(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Yte(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=hr.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(ur({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=hr.Pop;let w=u(),C=w==null?null:w-c;c=w,l&&l({action:s,location:v.location,delta:C})}function d(w,C){s=hr.Push;let y=i0(v.location,w,C);r&&r(y,w),c=u()+1;let M=n7(y,c),B=v.createHref(y);try{a.pushState(M,"",B)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;i.location.assign(B)}o&&l&&l({action:s,location:v.location,delta:1})}function b(w,C){s=hr.Replace;let y=i0(v.location,w,C);r&&r(y,w),c=u();let M=n7(y,c),B=v.createHref(y);a.replaceState(M,"",B),o&&l&&l({action:s,location:v.location,delta:0})}function p(w){let C=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof w=="string"?w:sl(w);return y=y.replace(/ $/,"%20"),Mt(C,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,C)}let v={get action(){return s},get location(){return e(i,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(r7,f),l=w,()=>{i.removeEventListener(r7,f),l=null}},createHref(w){return t(i,w)},createURL:p,encodeLocation(w){let C=p(w);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:d,replace:b,go(w){return a.go(w)}};return v}var lr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lr||(lr={}));const Xte=new Set(["lazy","caseSensitive","path","id","index","children"]);function Jte(e){return e.index===!0}function t2(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,o)=>{let a=[...r,o],s=typeof i.id=="string"?i.id:a.join("-");if(Mt(i.index!==!0||!i.children,"Cannot specify children on an index route"),Mt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Jte(i)){let l=ur({},i,t(i),{id:s});return n[s]=l,l}else{let l=ur({},i,t(i),{id:s,children:void 0});return n[s]=l,i.children&&(l.children=t2(i.children,t,a,n)),l}})}function tc(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ya(t):t,i=lu(n.pathname||"/",r);if(i==null)return null;let o=iP(e);Qte(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Mt(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=ra([n,l.relativePath]),u=r.concat(l);o.children&&o.children.length>0&&(Mt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),iP(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:are(c,o.index),routesMeta:u})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of oP(o.path))i(o,a,l)}),t}function oP(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=oP(n.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Qte(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:sre(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const ere=/^:[\w-]+$/,tre=3,rre=2,nre=1,ire=10,ore=-2,i7=e=>e==="*";function are(e,t){let r=e.split("/"),n=r.length;return r.some(i7)&&(n+=ore),t&&(n+=rre),r.filter(i=>!i7(i)).reduce((i,o)=>i+(ere.test(o)?tre:o===""?nre:ire),n)}function sre(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function lre(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let a=0;a{let{paramName:d,isOptional:b}=u;if(d==="*"){let v=s[f]||"";a=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const p=s[f];return b&&!p?c[d]=void 0:c[d]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function ure(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),jc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function fre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function dre(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?ya(e):e;return{pathname:r?r.startsWith("/")?r:hre(r,t):t,search:xre(n),hash:mre(i)}}function hre(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Ym(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function aP(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function z1(e,t){let r=aP(e);return t?r.map((n,i)=>i===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function j1(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=ya(e):(i=ur({},e),Mt(!i.pathname||!i.pathname.includes("?"),Ym("?","pathname","search",i)),Mt(!i.pathname||!i.pathname.includes("#"),Ym("#","pathname","hash",i)),Mt(!i.search||!i.search.includes("#"),Ym("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let f=t.length-1;if(!n&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=dre(i,s),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const ra=e=>e.join("/").replace(/\/\/+/g,"/"),pre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class T4{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function sP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lP=["post","put","patch","delete"],gre=new Set(lP),vre=["get",...lP],bre=new Set(vre),yre=new Set([301,302,303,307,308]),wre=new Set([307,308]),Xm={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Sre={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Du={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},cP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cre=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),uP="remix-router-transitions";function Ere(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Mt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let ee=e.detectErrorBoundary;i=re=>({hasErrorBoundary:ee(re)})}else i=Cre;let o={},a=t2(e.routes,i,void 0,o),s,l=e.basename||"/",c=ur({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),u=null,f=new Set,d=null,b=null,p=null,v=e.hydrationData!=null,w=tc(a,e.history.location,l),C=null;if(w==null){let ee=mi(404,{pathname:e.history.location.pathname}),{matches:re,route:ne}=d7(a);w=re,C={[ne.id]:ee}}let y,M=w.some(ee=>ee.route.lazy),B=w.some(ee=>ee.route.loader);if(M)y=!1;else if(!B)y=!0;else if(c.v7_partialHydration){let ee=e.hydrationData?e.hydrationData.loaderData:null,re=e.hydrationData?e.hydrationData.errors:null,ne=pe=>pe.route.loader?pe.route.loader.hydrate===!0?!1:ee&&ee[pe.route.id]!==void 0||re&&re[pe.route.id]!==void 0:!0;if(re){let pe=w.findIndex(ke=>re[ke.route.id]!==void 0);y=w.slice(0,pe+1).every(ne)}else y=w.every(ne)}else y=e.hydrationData!=null;let D,F={historyAction:e.history.action,location:e.history.location,matches:w,initialized:y,navigation:Xm,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},N=hr.Pop,_=!1,L,I=!1,R=new Map,m=null,g=!1,h=!1,x=[],S=[],T=new Map,k=0,$=-1,P=new Map,E=new Set,A=new Map,z=new Map,H=new Set,O=new Map,V=new Map,X=!1;function J(){if(u=e.history.listen(ee=>{let{action:re,location:ne,delta:pe}=ee;if(X){X=!1;return}jc(V.size===0||pe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ke=xe({currentLocation:F.location,nextLocation:ne,historyAction:re});if(ke&&pe!=null){X=!0,e.history.go(pe*-1),le(ke,{state:"blocked",location:ne,proceed(){le(ke,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),e.history.go(pe)},reset(){let Te=new Map(F.blockers);Te.set(ke,Du),q({blockers:Te})}});return}return Q(re,ne)}),r){Fre(t,R);let ee=()=>Ore(t,R);t.addEventListener("pagehide",ee),m=()=>t.removeEventListener("pagehide",ee)}return F.initialized||Q(hr.Pop,F.location,{initialHydration:!0}),D}function G(){u&&u(),m&&m(),f.clear(),L&&L.abort(),F.fetchers.forEach((ee,re)=>Ne(re)),F.blockers.forEach((ee,re)=>ze(re))}function j(ee){return f.add(ee),()=>f.delete(ee)}function q(ee,re){re===void 0&&(re={}),F=ur({},F,ee);let ne=[],pe=[];c.v7_fetcherPersist&&F.fetchers.forEach((ke,Te)=>{ke.state==="idle"&&(H.has(Te)?pe.push(Te):ne.push(Te))}),[...f].forEach(ke=>ke(F,{deletedFetchers:pe,unstable_viewTransitionOpts:re.viewTransitionOpts,unstable_flushSync:re.flushSync===!0})),c.v7_fetcherPersist&&(ne.forEach(ke=>F.fetchers.delete(ke)),pe.forEach(ke=>Ne(ke)))}function K(ee,re,ne){var pe,ke;let{flushSync:Te}=ne===void 0?{}:ne,$e=F.actionData!=null&&F.navigation.formMethod!=null&&Qi(F.navigation.formMethod)&&F.navigation.state==="loading"&&((pe=ee.state)==null?void 0:pe._isRedirect)!==!0,Pe;re.actionData?Object.keys(re.actionData).length>0?Pe=re.actionData:Pe=null:$e?Pe=F.actionData:Pe=null;let ce=re.loaderData?f7(F.loaderData,re.loaderData,re.matches||[],re.errors):F.loaderData,_e=F.blockers;_e.size>0&&(_e=new Map(_e),_e.forEach((Xe,dt)=>_e.set(dt,Du)));let Ve=_===!0||F.navigation.formMethod!=null&&Qi(F.navigation.formMethod)&&((ke=ee.state)==null?void 0:ke._isRedirect)!==!0;s&&(a=s,s=void 0),g||N===hr.Pop||(N===hr.Push?e.history.push(ee,ee.state):N===hr.Replace&&e.history.replace(ee,ee.state));let Ce;if(N===hr.Pop){let Xe=R.get(F.location.pathname);Xe&&Xe.has(ee.pathname)?Ce={currentLocation:F.location,nextLocation:ee}:R.has(ee.pathname)&&(Ce={currentLocation:ee,nextLocation:F.location})}else if(I){let Xe=R.get(F.location.pathname);Xe?Xe.add(ee.pathname):(Xe=new Set([ee.pathname]),R.set(F.location.pathname,Xe)),Ce={currentLocation:F.location,nextLocation:ee}}q(ur({},re,{actionData:Pe,loaderData:ce,historyAction:N,location:ee,initialized:!0,navigation:Xm,revalidation:"idle",restoreScrollPosition:ut(ee,re.matches||F.matches),preventScrollReset:Ve,blockers:_e}),{viewTransitionOpts:Ce,flushSync:Te===!0}),N=hr.Pop,_=!1,I=!1,g=!1,h=!1,x=[],S=[]}async function Z(ee,re){if(typeof ee=="number"){e.history.go(ee);return}let ne=r2(F.location,F.matches,l,c.v7_prependBasename,ee,c.v7_relativeSplatPath,re==null?void 0:re.fromRouteId,re==null?void 0:re.relative),{path:pe,submission:ke,error:Te}=o7(c.v7_normalizeFormMethod,!1,ne,re),$e=F.location,Pe=i0(F.location,pe,re&&re.state);Pe=ur({},Pe,e.history.encodeLocation(Pe));let ce=re&&re.replace!=null?re.replace:void 0,_e=hr.Push;ce===!0?_e=hr.Replace:ce===!1||ke!=null&&Qi(ke.formMethod)&&ke.formAction===F.location.pathname+F.location.search&&(_e=hr.Replace);let Ve=re&&"preventScrollReset"in re?re.preventScrollReset===!0:void 0,Ce=(re&&re.unstable_flushSync)===!0,Xe=xe({currentLocation:$e,nextLocation:Pe,historyAction:_e});if(Xe){le(Xe,{state:"blocked",location:Pe,proceed(){le(Xe,{state:"proceeding",proceed:void 0,reset:void 0,location:Pe}),Z(ee,re)},reset(){let dt=new Map(F.blockers);dt.set(Xe,Du),q({blockers:dt})}});return}return await Q(_e,Pe,{submission:ke,pendingError:Te,preventScrollReset:Ve,replace:re&&re.replace,enableViewTransition:re&&re.unstable_viewTransition,flushSync:Ce})}function te(){if(Ue(),q({revalidation:"loading"}),F.navigation.state!=="submitting"){if(F.navigation.state==="idle"){Q(F.historyAction,F.location,{startUninterruptedRevalidation:!0});return}Q(N||F.historyAction,F.navigation.location,{overrideNavigation:F.navigation})}}async function Q(ee,re,ne){L&&L.abort(),L=null,N=ee,g=(ne&&ne.startUninterruptedRevalidation)===!0,Qe(F.location,F.matches),_=(ne&&ne.preventScrollReset)===!0,I=(ne&&ne.enableViewTransition)===!0;let pe=s||a,ke=ne&&ne.overrideNavigation,Te=tc(pe,re,l),$e=(ne&&ne.flushSync)===!0;if(!Te){let dt=mi(404,{pathname:re.pathname}),{matches:qe,route:ht}=d7(pe);je(),K(re,{matches:qe,loaderData:{},errors:{[ht.id]:dt}},{flushSync:$e});return}if(F.initialized&&!h&&_re(F.location,re)&&!(ne&&ne.submission&&Qi(ne.submission.formMethod))){K(re,{matches:Te},{flushSync:$e});return}L=new AbortController;let Pe=Nu(e.history,re,L.signal,ne&&ne.submission),ce,_e;if(ne&&ne.pendingError)_e={[Sf(Te).route.id]:ne.pendingError};else if(ne&&ne.submission&&Qi(ne.submission.formMethod)){let dt=await oe(Pe,re,ne.submission,Te,{replace:ne.replace,flushSync:$e});if(dt.shortCircuited)return;ce=dt.pendingActionData,_e=dt.pendingActionError,ke=Jm(re,ne.submission),$e=!1,Pe=new Request(Pe.url,{signal:Pe.signal})}let{shortCircuited:Ve,loaderData:Ce,errors:Xe}=await me(Pe,re,Te,ke,ne&&ne.submission,ne&&ne.fetcherSubmission,ne&&ne.replace,ne&&ne.initialHydration===!0,$e,ce,_e);Ve||(L=null,K(re,ur({matches:Te},ce?{actionData:ce}:{},{loaderData:Ce,errors:Xe})))}async function oe(ee,re,ne,pe,ke){ke===void 0&&(ke={}),Ue();let Te=Bre(re,ne);q({navigation:Te},{flushSync:ke.flushSync===!0});let $e,Pe=i2(pe,re);if(!Pe.route.action&&!Pe.route.lazy)$e={type:lr.error,error:mi(405,{method:ee.method,pathname:re.pathname,routeId:Pe.route.id})};else if($e=await Lu("action",ee,Pe,pe,o,i,l,c.v7_relativeSplatPath),ee.signal.aborted)return{shortCircuited:!0};if(zs($e)){let ce;return ke&&ke.replace!=null?ce=ke.replace:ce=$e.location===F.location.pathname+F.location.search,await we(F,$e,{submission:ne,replace:ce}),{shortCircuited:!0}}if(rc($e)){let ce=Sf(pe,Pe.route.id);return(ke&&ke.replace)!==!0&&(N=hr.Push),{pendingActionData:{},pendingActionError:{[ce.route.id]:$e.error}}}if(Ns($e))throw mi(400,{type:"defer-action"});return{pendingActionData:{[Pe.route.id]:$e.data}}}async function me(ee,re,ne,pe,ke,Te,$e,Pe,ce,_e,Ve){let Ce=pe||Jm(re,ke),Xe=ke||Te||x7(Ce),dt=s||a,[qe,ht]=a7(e.history,F,ne,Xe,re,c.v7_partialHydration&&Pe===!0,h,x,S,H,A,E,dt,l,_e,Ve);if(je(gt=>!(ne&&ne.some(St=>St.route.id===gt))||qe&&qe.some(St=>St.route.id===gt)),$=++k,qe.length===0&&ht.length===0){let gt=ot();return K(re,ur({matches:ne,loaderData:{},errors:Ve||null},_e?{actionData:_e}:{},gt?{fetchers:new Map(F.fetchers)}:{}),{flushSync:ce}),{shortCircuited:!0}}if(!g&&(!c.v7_partialHydration||!Pe)){ht.forEach(St=>{let Ht=F.fetchers.get(St.key),Hr=zu(void 0,Ht?Ht.data:void 0);F.fetchers.set(St.key,Hr)});let gt=_e||F.actionData;q(ur({navigation:Ce},gt?Object.keys(gt).length===0?{actionData:null}:{actionData:gt}:{},ht.length>0?{fetchers:new Map(F.fetchers)}:{}),{flushSync:ce})}ht.forEach(gt=>{T.has(gt.key)&&de(gt.key),gt.controller&&T.set(gt.key,gt.controller)});let mt=()=>ht.forEach(gt=>de(gt.key));L&&L.signal.addEventListener("abort",mt);let{results:rt,loaderResults:ae,fetcherResults:ie}=await He(F.matches,ne,qe,ht,ee);if(ee.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",mt),ht.forEach(gt=>T.delete(gt.key));let ve=h7(rt);if(ve){if(ve.idx>=qe.length){let gt=ht[ve.idx-qe.length].key;E.add(gt)}return await we(F,ve.result,{replace:$e}),{shortCircuited:!0}}let{loaderData:Ae,errors:Ye}=u7(F,ne,qe,ae,Ve,ht,ie,O);O.forEach((gt,St)=>{gt.subscribe(Ht=>{(Ht||gt.done)&&O.delete(St)})}),c.v7_partialHydration&&Pe&&F.errors&&Object.entries(F.errors).filter(gt=>{let[St]=gt;return!qe.some(Ht=>Ht.route.id===St)}).forEach(gt=>{let[St,Ht]=gt;Ye=Object.assign(Ye||{},{[St]:Ht})});let Le=ot(),pt=lt($),Bt=Le||pt||ht.length>0;return ur({loaderData:Ae,errors:Ye},Bt?{fetchers:new Map(F.fetchers)}:{})}function se(ee,re,ne,pe){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(ee)&&de(ee);let ke=(pe&&pe.unstable_flushSync)===!0,Te=s||a,$e=r2(F.location,F.matches,l,c.v7_prependBasename,ne,c.v7_relativeSplatPath,re,pe==null?void 0:pe.relative),Pe=tc(Te,$e,l);if(!Pe){Ze(ee,re,mi(404,{pathname:$e}),{flushSync:ke});return}let{path:ce,submission:_e,error:Ve}=o7(c.v7_normalizeFormMethod,!0,$e,pe);if(Ve){Ze(ee,re,Ve,{flushSync:ke});return}let Ce=i2(Pe,ce);if(_=(pe&&pe.preventScrollReset)===!0,_e&&Qi(_e.formMethod)){ye(ee,re,ce,Ce,Pe,ke,_e);return}A.set(ee,{routeId:re,path:ce}),Re(ee,re,ce,Ce,Pe,ke,_e)}async function ye(ee,re,ne,pe,ke,Te,$e){if(Ue(),A.delete(ee),!pe.route.action&&!pe.route.lazy){let St=mi(405,{method:$e.formMethod,pathname:ne,routeId:re});Ze(ee,re,St,{flushSync:Te});return}let Pe=F.fetchers.get(ee);Me(ee,Ire($e,Pe),{flushSync:Te});let ce=new AbortController,_e=Nu(e.history,ne,ce.signal,$e);T.set(ee,ce);let Ve=k,Ce=await Lu("action",_e,pe,ke,o,i,l,c.v7_relativeSplatPath);if(_e.signal.aborted){T.get(ee)===ce&&T.delete(ee);return}if(c.v7_fetcherPersist&&H.has(ee)){if(zs(Ce)||rc(Ce)){Me(ee,_a(void 0));return}}else{if(zs(Ce))if(T.delete(ee),$>Ve){Me(ee,_a(void 0));return}else return E.add(ee),Me(ee,zu($e)),we(F,Ce,{fetcherSubmission:$e});if(rc(Ce)){Ze(ee,re,Ce.error);return}}if(Ns(Ce))throw mi(400,{type:"defer-action"});let Xe=F.navigation.location||F.location,dt=Nu(e.history,Xe,ce.signal),qe=s||a,ht=F.navigation.state!=="idle"?tc(qe,F.navigation.location,l):F.matches;Mt(ht,"Didn't find any matches after fetcher action");let mt=++k;P.set(ee,mt);let rt=zu($e,Ce.data);F.fetchers.set(ee,rt);let[ae,ie]=a7(e.history,F,ht,$e,Xe,!1,h,x,S,H,A,E,qe,l,{[pe.route.id]:Ce.data},void 0);ie.filter(St=>St.key!==ee).forEach(St=>{let Ht=St.key,Hr=F.fetchers.get(Ht),Cn=zu(void 0,Hr?Hr.data:void 0);F.fetchers.set(Ht,Cn),T.has(Ht)&&de(Ht),St.controller&&T.set(Ht,St.controller)}),q({fetchers:new Map(F.fetchers)});let ve=()=>ie.forEach(St=>de(St.key));ce.signal.addEventListener("abort",ve);let{results:Ae,loaderResults:Ye,fetcherResults:Le}=await He(F.matches,ht,ae,ie,dt);if(ce.signal.aborted)return;ce.signal.removeEventListener("abort",ve),P.delete(ee),T.delete(ee),ie.forEach(St=>T.delete(St.key));let pt=h7(Ae);if(pt){if(pt.idx>=ae.length){let St=ie[pt.idx-ae.length].key;E.add(St)}return we(F,pt.result)}let{loaderData:Bt,errors:gt}=u7(F,F.matches,ae,Ye,void 0,ie,Le,O);if(F.fetchers.has(ee)){let St=_a(Ce.data);F.fetchers.set(ee,St)}lt(mt),F.navigation.state==="loading"&&mt>$?(Mt(N,"Expected pending action"),L&&L.abort(),K(F.navigation.location,{matches:ht,loaderData:Bt,errors:gt,fetchers:new Map(F.fetchers)})):(q({errors:gt,loaderData:f7(F.loaderData,Bt,ht,gt),fetchers:new Map(F.fetchers)}),h=!1)}async function Re(ee,re,ne,pe,ke,Te,$e){let Pe=F.fetchers.get(ee);Me(ee,zu($e,Pe?Pe.data:void 0),{flushSync:Te});let ce=new AbortController,_e=Nu(e.history,ne,ce.signal);T.set(ee,ce);let Ve=k,Ce=await Lu("loader",_e,pe,ke,o,i,l,c.v7_relativeSplatPath);if(Ns(Ce)&&(Ce=await hP(Ce,_e.signal,!0)||Ce),T.get(ee)===ce&&T.delete(ee),!_e.signal.aborted){if(H.has(ee)){Me(ee,_a(void 0));return}if(zs(Ce))if($>Ve){Me(ee,_a(void 0));return}else{E.add(ee),await we(F,Ce);return}if(rc(Ce)){Ze(ee,re,Ce.error);return}Mt(!Ns(Ce),"Unhandled fetcher deferred data"),Me(ee,_a(Ce.data))}}async function we(ee,re,ne){let{submission:pe,fetcherSubmission:ke,replace:Te}=ne===void 0?{}:ne;re.revalidate&&(h=!0);let $e=i0(ee.location,re.location,{_isRedirect:!0});if(Mt($e,"Expected a location on the redirect navigation"),r){let Xe=!1;if(re.reloadDocument)Xe=!0;else if(cP.test(re.location)){const dt=e.history.createURL(re.location);Xe=dt.origin!==t.location.origin||lu(dt.pathname,l)==null}if(Xe){Te?t.location.replace(re.location):t.location.assign(re.location);return}}L=null;let Pe=Te===!0?hr.Replace:hr.Push,{formMethod:ce,formAction:_e,formEncType:Ve}=ee.navigation;!pe&&!ke&&ce&&_e&&Ve&&(pe=x7(ee.navigation));let Ce=pe||ke;if(wre.has(re.status)&&Ce&&Qi(Ce.formMethod))await Q(Pe,$e,{submission:ur({},Ce,{formAction:re.location}),preventScrollReset:_});else{let Xe=Jm($e,pe);await Q(Pe,$e,{overrideNavigation:Xe,fetcherSubmission:ke,preventScrollReset:_})}}async function He(ee,re,ne,pe,ke){let Te=await Promise.all([...ne.map(ce=>Lu("loader",ke,ce,re,o,i,l,c.v7_relativeSplatPath)),...pe.map(ce=>ce.matches&&ce.match&&ce.controller?Lu("loader",Nu(e.history,ce.path,ce.controller.signal),ce.match,ce.matches,o,i,l,c.v7_relativeSplatPath):{type:lr.error,error:mi(404,{pathname:ce.path})})]),$e=Te.slice(0,ne.length),Pe=Te.slice(ne.length);return await Promise.all([p7(ee,ne,$e,$e.map(()=>ke.signal),!1,F.loaderData),p7(ee,pe.map(ce=>ce.match),Pe,pe.map(ce=>ce.controller?ce.controller.signal:null),!0)]),{results:Te,loaderResults:$e,fetcherResults:Pe}}function Ue(){h=!0,x.push(...je()),A.forEach((ee,re)=>{T.has(re)&&(S.push(re),de(re))})}function Me(ee,re,ne){ne===void 0&&(ne={}),F.fetchers.set(ee,re),q({fetchers:new Map(F.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function Ze(ee,re,ne,pe){pe===void 0&&(pe={});let ke=Sf(F.matches,re);Ne(ee),q({errors:{[ke.route.id]:ne},fetchers:new Map(F.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function Je(ee){return c.v7_fetcherPersist&&(z.set(ee,(z.get(ee)||0)+1),H.has(ee)&&H.delete(ee)),F.fetchers.get(ee)||Sre}function Ne(ee){let re=F.fetchers.get(ee);T.has(ee)&&!(re&&re.state==="loading"&&P.has(ee))&&de(ee),A.delete(ee),P.delete(ee),E.delete(ee),H.delete(ee),F.fetchers.delete(ee)}function De(ee){if(c.v7_fetcherPersist){let re=(z.get(ee)||0)-1;re<=0?(z.delete(ee),H.add(ee)):z.set(ee,re)}else Ne(ee);q({fetchers:new Map(F.fetchers)})}function de(ee){let re=T.get(ee);Mt(re,"Expected fetch controller: "+ee),re.abort(),T.delete(ee)}function Ie(ee){for(let re of ee){let ne=Je(re),pe=_a(ne.data);F.fetchers.set(re,pe)}}function ot(){let ee=[],re=!1;for(let ne of E){let pe=F.fetchers.get(ne);Mt(pe,"Expected fetcher: "+ne),pe.state==="loading"&&(E.delete(ne),ee.push(ne),re=!0)}return Ie(ee),re}function lt(ee){let re=[];for(let[ne,pe]of P)if(pe0}function ge(ee,re){let ne=F.blockers.get(ee)||Du;return V.get(ee)!==re&&V.set(ee,re),ne}function ze(ee){F.blockers.delete(ee),V.delete(ee)}function le(ee,re){let ne=F.blockers.get(ee)||Du;Mt(ne.state==="unblocked"&&re.state==="blocked"||ne.state==="blocked"&&re.state==="blocked"||ne.state==="blocked"&&re.state==="proceeding"||ne.state==="blocked"&&re.state==="unblocked"||ne.state==="proceeding"&&re.state==="unblocked","Invalid blocker state transition: "+ne.state+" -> "+re.state);let pe=new Map(F.blockers);pe.set(ee,re),q({blockers:pe})}function xe(ee){let{currentLocation:re,nextLocation:ne,historyAction:pe}=ee;if(V.size===0)return;V.size>1&&jc(!1,"A router only supports one blocker at a time");let ke=Array.from(V.entries()),[Te,$e]=ke[ke.length-1],Pe=F.blockers.get(Te);if(!(Pe&&Pe.state==="proceeding")&&$e({currentLocation:re,nextLocation:ne,historyAction:pe}))return Te}function je(ee){let re=[];return O.forEach((ne,pe)=>{(!ee||ee(pe))&&(ne.cancel(),re.push(pe),O.delete(pe))}),re}function We(ee,re,ne){if(d=ee,p=re,b=ne||null,!v&&F.navigation===Xm){v=!0;let pe=ut(F.location,F.matches);pe!=null&&q({restoreScrollPosition:pe})}return()=>{d=null,p=null,b=null}}function Fe(ee,re){return b&&b(ee,re.map(pe=>Zte(pe,F.loaderData)))||ee.key}function Qe(ee,re){if(d&&p){let ne=Fe(ee,re);d[ne]=p()}}function ut(ee,re){if(d){let ne=Fe(ee,re),pe=d[ne];if(typeof pe=="number")return pe}return null}function Ge(ee){o={},s=t2(ee,i,void 0,o)}return D={get basename(){return l},get future(){return c},get state(){return F},get routes(){return a},get window(){return t},initialize:J,subscribe:j,enableScrollRestoration:We,navigate:Z,fetch:se,revalidate:te,createHref:ee=>e.history.createHref(ee),encodeLocation:ee=>e.history.encodeLocation(ee),getFetcher:Je,deleteFetcher:De,dispose:G,getBlocker:ge,deleteBlocker:ze,_internalFetchControllers:T,_internalActiveDeferreds:O,_internalSetRoutes:Ge},D}function Mre(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function r2(e,t,r,n,i,o,a,s){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let u=j1(i||".",z1(l,o),lu(e.pathname,r)||e.pathname,s==="path");return i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!$4(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(u.pathname=u.pathname==="/"?r:ra([r,u.pathname])),sl(u)}function o7(e,t,r,n){if(!n||!Mre(n))return{path:r};if(n.formMethod&&!$re(n.formMethod))return{path:r,error:mi(405,{method:n.formMethod})};let i=()=>({path:r,error:mi(400,{type:"invalid-body"})}),o=n.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=dP(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Qi(a))return i();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((b,p)=>{let[v,w]=p;return""+b+v+"="+w+` +`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!Qi(a))return i();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}Mt(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=n2(n.formData),c=n.formData;else if(n.body instanceof FormData)l=n2(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=c7(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=c7(l)}catch{return i()}let u={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Qi(u.formMethod))return{path:r,submission:u};let f=ya(r);return t&&f.search&&$4(f.search)&&l.append("index",""),f.search="?"+l,{path:sl(f),submission:u}}function Pre(e,t){let r=e;if(t){let n=e.findIndex(i=>i.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function a7(e,t,r,n,i,o,a,s,l,c,u,f,d,b,p,v){let w=v?Object.values(v)[0]:p?Object.values(p)[0]:void 0,C=e.createURL(t.location),y=e.createURL(i),M=v?Object.keys(v)[0]:void 0,D=Pre(r,M).filter((N,_)=>{let{route:L}=N;if(L.lazy)return!0;if(L.loader==null)return!1;if(o)return L.loader.hydrate?!0:t.loaderData[L.id]===void 0&&(!t.errors||t.errors[L.id]===void 0);if(Are(t.loaderData,t.matches[_],N)||s.some(m=>m===N.route.id))return!0;let I=t.matches[_],R=N;return s7(N,ur({currentUrl:C,currentParams:I.params,nextUrl:y,nextParams:R.params},n,{actionResult:w,defaultShouldRevalidate:a||C.pathname+C.search===y.pathname+y.search||C.search!==y.search||fP(I,R)}))}),F=[];return u.forEach((N,_)=>{if(o||!r.some(g=>g.route.id===N.routeId)||c.has(_))return;let L=tc(d,N.path,b);if(!L){F.push({key:_,routeId:N.routeId,path:N.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(_),R=i2(L,N.path),m=!1;f.has(_)?m=!1:l.includes(_)?m=!0:I&&I.state!=="idle"&&I.data===void 0?m=a:m=s7(R,ur({currentUrl:C,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:w,defaultShouldRevalidate:a})),m&&F.push({key:_,routeId:N.routeId,path:N.path,matches:L,match:R,controller:new AbortController})}),[D,F]}function Are(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function fP(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function s7(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function l7(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];Mt(i,"No route found in manifest");let o={};for(let a in n){let l=i[a]!==void 0&&a!=="hasErrorBoundary";jc(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!Xte.has(a)&&(o[a]=n[a])}Object.assign(i,o),Object.assign(i,ur({},t(i),{lazy:void 0}))}async function Lu(e,t,r,n,i,o,a,s,l){l===void 0&&(l={});let c,u,f,d=v=>{let w,C=new Promise((y,M)=>w=M);return f=()=>w(),t.signal.addEventListener("abort",f),Promise.race([v({request:t,params:r.params,context:l.requestContext}),C])};try{let v=r.route[e];if(r.route.lazy)if(v){let w,C=await Promise.all([d(v).catch(y=>{w=y}),l7(r.route,o,i)]);if(w)throw w;u=C[0]}else if(await l7(r.route,o,i),v=r.route[e],v)u=await d(v);else if(e==="action"){let w=new URL(t.url),C=w.pathname+w.search;throw mi(405,{method:t.method,pathname:C,routeId:r.route.id})}else return{type:lr.data,data:void 0};else if(v)u=await d(v);else{let w=new URL(t.url),C=w.pathname+w.search;throw mi(404,{pathname:C})}Mt(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){c=lr.error,u=v}finally{f&&t.signal.removeEventListener("abort",f)}if(Tre(u)){let v=u.status;if(yre.has(v)){let C=u.headers.get("Location");if(Mt(C,"Redirects returned/thrown from loaders/actions must have a Location header"),!cP.test(C))C=r2(new URL(t.url),n.slice(0,n.indexOf(r)+1),a,!0,C,s);else if(!l.isStaticRequest){let y=new URL(t.url),M=C.startsWith("//")?new URL(y.protocol+C):new URL(C),B=lu(M.pathname,a)!=null;M.origin===y.origin&&B&&(C=M.pathname+M.search+M.hash)}if(l.isStaticRequest)throw u.headers.set("Location",C),u;return{type:lr.redirect,status:v,location:C,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:c===lr.error?lr.error:lr.data,response:u};let w;try{let C=u.headers.get("Content-Type");C&&/\bapplication\/json\b/.test(C)?u.body==null?w=null:w=await u.json():w=await u.text()}catch(C){return{type:lr.error,error:C}}return c===lr.error?{type:c,error:new T4(v,u.statusText,w),headers:u.headers}:{type:lr.data,data:w,statusCode:u.status,headers:u.headers}}if(c===lr.error)return{type:c,error:u};if(Rre(u)){var b,p;return{type:lr.deferred,deferredData:u,statusCode:(b=u.init)==null?void 0:b.status,headers:((p=u.init)==null?void 0:p.headers)&&new Headers(u.init.headers)}}return{type:lr.data,data:u}}function Nu(e,t,r,n){let i=e.createURL(dP(t)).toString(),o={signal:r};if(n&&Qi(n.formMethod)){let{formMethod:a,formEncType:s}=n;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=n2(n.formData):o.body=n.formData}return new Request(i,o)}function n2(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function c7(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function kre(e,t,r,n,i){let o={},a=null,s,l=!1,c={};return r.forEach((u,f)=>{let d=t[f].route.id;if(Mt(!zs(u),"Cannot handle redirect results in processLoaderData"),rc(u)){let b=Sf(e,d),p=u.error;n&&(p=Object.values(n)[0],n=void 0),a=a||{},a[b.route.id]==null&&(a[b.route.id]=p),o[d]=void 0,l||(l=!0,s=sP(u.error)?u.error.status:500),u.headers&&(c[d]=u.headers)}else Ns(u)?(i.set(d,u.deferredData),o[d]=u.deferredData.data):o[d]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(s=u.statusCode),u.headers&&(c[d]=u.headers)}),n&&(a=n,o[Object.keys(n)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:c}}function u7(e,t,r,n,i,o,a,s){let{loaderData:l,errors:c}=kre(t,r,n,i,s);for(let u=0;un.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function d7(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function mi(e,t){let{pathname:r,routeId:n,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&r&&n?s="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(a="Not Found",s='No route matches URL "'+r+'"'):e===405&&(a="Method Not Allowed",i&&r&&n?s="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new T4(e||500,a,new Error(s),!0)}function h7(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(zs(r))return{result:r,idx:t}}}function dP(e){let t=typeof e=="string"?ya(e):e;return sl(ur({},t,{hash:""}))}function _re(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ns(e){return e.type===lr.deferred}function rc(e){return e.type===lr.error}function zs(e){return(e&&e.type)===lr.redirect}function Rre(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Tre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function $re(e){return bre.has(e.toLowerCase())}function Qi(e){return gre.has(e.toLowerCase())}async function p7(e,t,r,n,i,o){for(let a=0;af.route.id===l.route.id),u=c!=null&&!fP(c,l)&&(o&&o[l.route.id])!==void 0;if(Ns(s)&&(i||u)){let f=n[a];Mt(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await hP(s,f,i).then(d=>{d&&(r[a]=d||r[a])})}}}async function hP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:lr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:lr.error,error:i}}return{type:lr.data,data:e.deferredData.data}}}function $4(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function i2(e,t){let r=typeof t=="string"?ya(t).search:t.search;if(e[e.length-1].route.index&&$4(r||""))return e[e.length-1];let n=aP(e);return n[n.length-1]}function x7(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:o,json:a}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function Jm(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Bre(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function zu(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ire(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function _a(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Fre(e,t){try{let r=e.sessionStorage.getItem(uP);if(r){let n=JSON.parse(r);for(let[i,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function Ore(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(uP,JSON.stringify(r))}catch(n){jc(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.22.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),U.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let f=j1(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ra([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,a,o,e])}const Nre=U.createContext(null);function zre(e){let t=U.useContext(No).outlet;return t&&U.createElement(Nre.Provider,{value:e},t)}function Nue(){let{matches:e}=U.useContext(No),t=e[e.length-1];return t?t.params:{}}function gP(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=U.useContext(hs),{matches:i}=U.useContext(No),{pathname:o}=uu(),a=JSON.stringify(z1(i,n.v7_relativeSplatPath));return U.useMemo(()=>j1(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function jre(e,t,r,n){cu()||Mt(!1);let{navigator:i}=U.useContext(hs),{matches:o}=U.useContext(No),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=uu(),u;if(t){var f;let w=typeof t=="string"?ya(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Mt(!1),u=w}else u=c;let d=u.pathname||"/",b=d;if(l!=="/"){let w=l.replace(/^\//,"").split("/");b="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let p=tc(e,{pathname:b}),v=qre(p&&p.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:ra([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:ra([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,r,n);return t&&v?U.createElement(H1.Provider,{value:{location:o0({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:hr.Pop}},v):v}function Ure(){let e=Xre(),t=sP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return U.createElement(U.Fragment,null,U.createElement("h2",null,"Unexpected Application Error!"),U.createElement("h3",{style:{fontStyle:"italic"}},t),r?U.createElement("pre",{style:i},r):null,null)}const Hre=U.createElement(Ure,null);class Wre extends U.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){}render(){return this.state.error!==void 0?U.createElement(No.Provider,{value:this.props.routeContext},U.createElement(xP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Vre(e){let{routeContext:t,match:r,children:n}=e,i=U.useContext(U1);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),U.createElement(No.Provider,{value:t},n)}function qre(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let a=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id]));u>=0||Mt(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,d)=>{let b,p=!1,v=null,w=null;r&&(b=s&&f.route.id?s[f.route.id]:void 0,v=f.route.errorElement||Hre,l&&(c<0&&d===0?(Zre("route-fallback",!1),p=!0,w=null):c===d&&(p=!0,w=f.route.hydrateFallbackElement||null)));let C=t.concat(a.slice(0,d+1)),y=()=>{let M;return b?M=v:p?M=w:f.route.Component?M=U.createElement(f.route.Component,null):f.route.element?M=f.route.element:M=u,U.createElement(Vre,{match:f,routeContext:{outlet:u,matches:C,isDataRoute:r!=null},children:M})};return r&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?U.createElement(Wre,{location:r.location,revalidation:r.revalidation,component:v,error:b,children:y(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):y()},null)}var vP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(vP||{}),Jh=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Jh||{});function Kre(e){let t=U.useContext(U1);return t||Mt(!1),t}function Gre(e){let t=U.useContext(pP);return t||Mt(!1),t}function Yre(e){let t=U.useContext(No);return t||Mt(!1),t}function bP(e){let t=Yre(),r=t.matches[t.matches.length-1];return r.route.id||Mt(!1),r.route.id}function Xre(){var e;let t=U.useContext(xP),r=Gre(Jh.UseRouteError),n=bP(Jh.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Jre(){let{router:e}=Kre(vP.UseNavigateStable),t=bP(Jh.UseNavigateStable),r=U.useRef(!1);return mP(()=>{r.current=!0}),U.useCallback(function(i,o){o===void 0&&(o={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,o0({fromRouteId:t},o)))},[e,t])}const m7={};function Zre(e,t,r){!t&&!m7[e]&&(m7[e]=!0)}function zue(e){let{to:t,replace:r,state:n,relative:i}=e;cu()||Mt(!1);let{future:o,static:a}=U.useContext(hs),{matches:s}=U.useContext(No),{pathname:l}=uu(),c=B4(),u=j1(t,z1(s,o.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(u);return U.useEffect(()=>c(JSON.parse(f),{replace:r,state:n,relative:i}),[c,f,i,r,n]),null}function jue(e){return zre(e.context)}function Qre(e){let{basename:t="/",children:r=null,location:n,navigationType:i=hr.Pop,navigator:o,static:a=!1,future:s}=e;cu()&&Mt(!1);let l=t.replace(/^\/*/,"/"),c=U.useMemo(()=>({basename:l,navigator:o,static:a,future:o0({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof n=="string"&&(n=ya(n));let{pathname:u="/",search:f="",hash:d="",state:b=null,key:p="default"}=n,v=U.useMemo(()=>{let w=lu(u,l);return w==null?null:{location:{pathname:w,search:f,hash:d,state:b,key:p},navigationType:i}},[l,u,f,d,b,p,i]);return v==null?null:U.createElement(hs.Provider,{value:c},U.createElement(H1.Provider,{children:r,value:v}))}new Promise(()=>{});function ene(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:U.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:U.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:U.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.22.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function a0(){return a0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function rne(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nne(e,t){return e.button===0&&(!t||t==="_self")&&!rne(e)}function o2(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function ine(e,t){let r=o2(e);return t&&t.forEach((n,i)=>{r.has(i)||t.getAll(i).forEach(o=>{r.append(i,o)})}),r}const one=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ane="6";try{window.__reactRouterVersion=ane}catch{}function Uue(e,t){return Ere({basename:t==null?void 0:t.basename,future:a0({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Kte({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||sne(),routes:e,mapRouteProperties:ene,window:t==null?void 0:t.window}).initialize()}function sne(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=a0({},t,{errors:lne(t.errors)})),t}function lne(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new T4(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let o=new Error(i.message);o.stack="",r[n]=o}}else r[n]=i;return r}const cne=U.createContext({isTransitioning:!1}),une=U.createContext(new Map),fne="startTransition",g7=bc[fne],dne="flushSync",v7=rN[dne];function hne(e){g7?g7(e):e()}function ju(e){v7?v7(e):e()}class pne{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function Hue(e){let{fallbackElement:t,router:r,future:n}=e,[i,o]=U.useState(r.state),[a,s]=U.useState(),[l,c]=U.useState({isTransitioning:!1}),[u,f]=U.useState(),[d,b]=U.useState(),[p,v]=U.useState(),w=U.useRef(new Map),{v7_startTransition:C}=n||{},y=U.useCallback(N=>{C?hne(N):N()},[C]),M=U.useCallback((N,_)=>{let{deletedFetchers:L,unstable_flushSync:I,unstable_viewTransitionOpts:R}=_;L.forEach(g=>w.current.delete(g)),N.fetchers.forEach((g,h)=>{g.data!==void 0&&w.current.set(h,g.data)});let m=r.window==null||typeof r.window.document.startViewTransition!="function";if(!R||m){I?ju(()=>o(N)):y(()=>o(N));return}if(I){ju(()=>{d&&(u&&u.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:R.currentLocation,nextLocation:R.nextLocation})});let g=r.window.document.startViewTransition(()=>{ju(()=>o(N))});g.finished.finally(()=>{ju(()=>{f(void 0),b(void 0),s(void 0),c({isTransitioning:!1})})}),ju(()=>b(g));return}d?(u&&u.resolve(),d.skipTransition(),v({state:N,currentLocation:R.currentLocation,nextLocation:R.nextLocation})):(s(N),c({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}))},[r.window,d,u,w,y]);U.useLayoutEffect(()=>r.subscribe(M),[r,M]),U.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new pne)},[l]),U.useEffect(()=>{if(u&&a&&r.window){let N=a,_=u.promise,L=r.window.document.startViewTransition(async()=>{y(()=>o(N)),await _});L.finished.finally(()=>{f(void 0),b(void 0),s(void 0),c({isTransitioning:!1})}),b(L)}},[y,a,u,r.window]),U.useEffect(()=>{u&&a&&i.location.key===a.location.key&&u.resolve()},[u,d,i.location,a]),U.useEffect(()=>{!l.isTransitioning&&p&&(s(p.state),c({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),v(void 0))},[l.isTransitioning,p]),U.useEffect(()=>{},[]);let B=U.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:N=>r.navigate(N),push:(N,_,L)=>r.navigate(N,{state:_,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(N,_,L)=>r.navigate(N,{replace:!0,state:_,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[r]),D=r.basename||"/",F=U.useMemo(()=>({router:r,navigator:B,static:!1,basename:D}),[r,B,D]);return U.createElement(U.Fragment,null,U.createElement(U1.Provider,{value:F},U.createElement(pP.Provider,{value:i},U.createElement(une.Provider,{value:w.current},U.createElement(cne.Provider,{value:l},U.createElement(Qre,{basename:D,location:i.location,navigationType:i.historyAction,navigator:B,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?U.createElement(xne,{routes:r.routes,future:r.future,state:i}):t))))),null)}function xne(e){let{routes:t,future:r,state:n}=e;return jre(t,void 0,n,r)}const mne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wue=U.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:u,unstable_viewTransition:f}=t,d=tne(t,one),{basename:b}=U.useContext(hs),p,v=!1;if(typeof c=="string"&&gne.test(c)&&(p=c,mne))try{let M=new URL(window.location.href),B=c.startsWith("//")?new URL(M.protocol+c):new URL(c),D=lu(B.pathname,b);B.origin===M.origin&&D!=null?c=D+B.search+B.hash:v=!0}catch{}let w=Dre(c,{relative:i}),C=vne(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:i,unstable_viewTransition:f});function y(M){n&&n(M),M.defaultPrevented||C(M)}return U.createElement("a",a0({},d,{href:p||w,onClick:v||o?n:y,ref:r,target:l}))});var b7;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(b7||(b7={}));var y7;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(y7||(y7={}));function vne(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=B4(),c=uu(),u=gP(e,{relative:a});return U.useCallback(f=>{if(nne(f,r)){f.preventDefault();let d=n!==void 0?n:sl(c)===sl(u);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[c,l,u,n,i,r,e,o,a,s])}function Vue(e){let t=U.useRef(o2(e)),r=U.useRef(!1),n=uu(),i=U.useMemo(()=>ine(n.search,r.current?null:t.current),[n.search]),o=B4(),a=U.useCallback((s,l)=>{const c=o2(typeof s=="function"?s(i):s);r.current=!0,o("?"+c,l)},[o,i]);return[i,a]}var I4={},bne=wr;Object.defineProperty(I4,"__esModule",{value:!0});var yne=I4.default=void 0,wne=bne(Rr()),Sne=Y;yne=I4.default=(0,wne.default)((0,Sne.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var F4={},Cne=wr;Object.defineProperty(F4,"__esModule",{value:!0});var Ene=F4.default=void 0,Mne=Cne(Rr()),Pne=Y;Ene=F4.default=(0,Mne.default)((0,Pne.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkModeOutlined");var O4={},Ane=wr;Object.defineProperty(O4,"__esModule",{value:!0});var kne=O4.default=void 0,_ne=Ane(Rr()),Rne=Y;kne=O4.default=(0,_ne.default)((0,Rne.jsx)("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightModeOutlined");var D4={},Tne=wr;Object.defineProperty(D4,"__esModule",{value:!0});var $ne=D4.default=void 0,Bne=Tne(Rr()),Ine=Y;$ne=D4.default=(0,Bne.default)((0,Ine.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var L4={},Fne=wr;Object.defineProperty(L4,"__esModule",{value:!0});var One=L4.default=void 0,Dne=Fne(Rr()),Lne=Y;One=L4.default=(0,Dne.default)((0,Lne.jsx)("path",{d:"m12 5.69 5 4.5V18h-2v-6H9v6H7v-7.81zM12 3 2 12h3v8h6v-6h2v6h6v-8h3z"}),"HomeOutlined");var N4={},Nne=wr;Object.defineProperty(N4,"__esModule",{value:!0});var zne=N4.default=void 0,jne=Nne(Rr()),Une=Y;zne=N4.default=(0,jne.default)((0,Une.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var z4={},Hne=wr;Object.defineProperty(z4,"__esModule",{value:!0});var Wne=z4.default=void 0,Vne=Hne(Rr()),qne=Y;Wne=z4.default=(0,Vne.default)((0,qne.jsx)("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"SettingsOutlined");var j4={},Kne=wr;Object.defineProperty(j4,"__esModule",{value:!0});var Gne=j4.default=void 0,Yne=Kne(Rr()),Xne=Y;Gne=j4.default=(0,Yne.default)((0,Xne.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var U4={},Jne=wr;Object.defineProperty(U4,"__esModule",{value:!0});var Zne=U4.default=void 0,Qne=Jne(Rr()),eie=Y;Zne=U4.default=(0,Qne.default)((0,eie.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var H4={},tie=wr;Object.defineProperty(H4,"__esModule",{value:!0});var rie=H4.default=void 0,nie=tie(Rr()),iie=Y;rie=H4.default=(0,nie.default)((0,iie.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"MenuTwoTone");var W4={},oie=wr;Object.defineProperty(W4,"__esModule",{value:!0});var aie=W4.default=void 0,sie=oie(Rr()),lie=Y;aie=W4.default=(0,sie.default)((0,lie.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 16.5c-.83 0-1.5-.67-1.5-1.5h3c0 .83-.67 1.5-1.5 1.5m5-2.5H7v-1l1-1v-2.61C8 9.27 9.03 7.47 11 7v-.5c0-.57.43-1 1-1s1 .43 1 1V7c1.97.47 3 2.28 3 4.39V14l1 1z"}),"CircleNotifications");var V4={},cie=wr;Object.defineProperty(V4,"__esModule",{value:!0});var uie=V4.default=void 0,fie=cie(Rr()),die=Y;uie=V4.default=(0,fie.default)((0,die.jsx)("path",{d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"}),"KeyboardBackspace");var q4={exports:{}};q4.exports;(function(e){(function(t,r){function n(g,h){if(!g)throw new Error(h||"Assertion failed")}function i(g,h){g.super_=h;var x=function(){};x.prototype=h.prototype,g.prototype=new x,g.prototype.constructor=g}function o(g,h,x){if(o.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((h==="le"||h==="be")&&(x=h,h=10),this._init(g||0,h||10,x||"be"))}typeof t=="object"?t.exports=o:r.BN=o,o.BN=o,o.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=Ip.Buffer}catch{}o.isBN=function(h){return h instanceof o?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===o.wordSize&&Array.isArray(h.words)},o.max=function(h,x){return h.cmp(x)>0?h:x},o.min=function(h,x){return h.cmp(x)<0?h:x},o.prototype._init=function(h,x,S){if(typeof h=="number")return this._initNumber(h,x,S);if(typeof h=="object")return this._initArray(h,x,S);x==="hex"&&(x=16),n(x===(x|0)&&x>=2&&x<=36),h=h.toString().replace(/\s+/g,"");var T=0;h[0]==="-"&&(T++,this.negative=1),T=0;T-=3)$=h[T]|h[T-1]<<8|h[T-2]<<16,this.words[k]|=$<>>26-P&67108863,P+=24,P>=26&&(P-=26,k++);else if(S==="le")for(T=0,k=0;T>>26-P&67108863,P+=24,P>=26&&(P-=26,k++);return this._strip()};function s(g,h){var x=g.charCodeAt(h);if(x>=48&&x<=57)return x-48;if(x>=65&&x<=70)return x-55;if(x>=97&&x<=102)return x-87;n(!1,"Invalid character in "+g)}function l(g,h,x){var S=s(g,x);return x-1>=h&&(S|=s(g,x-1)<<4),S}o.prototype._parseHex=function(h,x,S){this.length=Math.ceil((h.length-x)/6),this.words=new Array(this.length);for(var T=0;T=x;T-=2)P=l(h,x,T)<=18?(k-=18,$+=1,this.words[$]|=P>>>26):k+=8;else{var E=h.length-x;for(T=E%2===0?x+1:x;T=18?(k-=18,$+=1,this.words[$]|=P>>>26):k+=8}this._strip()};function c(g,h,x,S){for(var T=0,k=0,$=Math.min(g.length,x),P=h;P<$;P++){var E=g.charCodeAt(P)-48;T*=S,E>=49?k=E-49+10:E>=17?k=E-17+10:k=E,n(E>=0&&k1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch{o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(h,x){h=h||10,x=x|0||1;var S;if(h===16||h==="hex"){S="";for(var T=0,k=0,$=0;$>>24-T&16777215,T+=2,T>=26&&(T-=26,$--),k!==0||$!==this.length-1?S=d[6-E.length]+E+S:S=E+S}for(k!==0&&(S=k.toString(16)+S);S.length%x!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(h===(h|0)&&h>=2&&h<=36){var A=b[h],z=p[h];S="";var H=this.clone();for(H.negative=0;!H.isZero();){var O=H.modrn(z).toString(h);H=H.idivn(z),H.isZero()?S=O+S:S=d[A-O.length]+O+S}for(this.isZero()&&(S="0"+S);S.length%x!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(h,x){return this.toArrayLike(a,h,x)}),o.prototype.toArray=function(h,x){return this.toArrayLike(Array,h,x)};var v=function(h,x){return h.allocUnsafe?h.allocUnsafe(x):new h(x)};o.prototype.toArrayLike=function(h,x,S){this._strip();var T=this.byteLength(),k=S||Math.max(1,T);n(T<=k,"byte array longer than desired length"),n(k>0,"Requested array length <= 0");var $=v(h,k),P=x==="le"?"LE":"BE";return this["_toArrayLike"+P]($,T),$},o.prototype._toArrayLikeLE=function(h,x){for(var S=0,T=0,k=0,$=0;k>8&255),S>16&255),$===6?(S>24&255),T=0,$=0):(T=P>>>24,$+=2)}if(S=0&&(h[S--]=P>>8&255),S>=0&&(h[S--]=P>>16&255),$===6?(S>=0&&(h[S--]=P>>24&255),T=0,$=0):(T=P>>>24,$+=2)}if(S>=0)for(h[S--]=T;S>=0;)h[S--]=0},Math.clz32?o.prototype._countBits=function(h){return 32-Math.clz32(h)}:o.prototype._countBits=function(h){var x=h,S=0;return x>=4096&&(S+=13,x>>>=13),x>=64&&(S+=7,x>>>=7),x>=8&&(S+=4,x>>>=4),x>=2&&(S+=2,x>>>=2),S+x},o.prototype._zeroBits=function(h){if(h===0)return 26;var x=h,S=0;return x&8191||(S+=13,x>>>=13),x&127||(S+=7,x>>>=7),x&15||(S+=4,x>>>=4),x&3||(S+=2,x>>>=2),x&1||S++,S},o.prototype.bitLength=function(){var h=this.words[this.length-1],x=this._countBits(h);return(this.length-1)*26+x};function w(g){for(var h=new Array(g.bitLength()),x=0;x>>T&1}return h}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,x=0;xh.length?this.clone().ior(h):h.clone().ior(this)},o.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},o.prototype.iuand=function(h){var x;this.length>h.length?x=h:x=this;for(var S=0;Sh.length?this.clone().iand(h):h.clone().iand(this)},o.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},o.prototype.iuxor=function(h){var x,S;this.length>h.length?(x=this,S=h):(x=h,S=this);for(var T=0;Th.length?this.clone().ixor(h):h.clone().ixor(this)},o.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},o.prototype.inotn=function(h){n(typeof h=="number"&&h>=0);var x=Math.ceil(h/26)|0,S=h%26;this._expand(x),S>0&&x--;for(var T=0;T0&&(this.words[T]=~this.words[T]&67108863>>26-S),this._strip()},o.prototype.notn=function(h){return this.clone().inotn(h)},o.prototype.setn=function(h,x){n(typeof h=="number"&&h>=0);var S=h/26|0,T=h%26;return this._expand(S+1),x?this.words[S]=this.words[S]|1<h.length?(S=this,T=h):(S=h,T=this);for(var k=0,$=0;$>>26;for(;k!==0&&$>>26;if(this.length=S.length,k!==0)this.words[this.length]=k,this.length++;else if(S!==this)for(;$h.length?this.clone().iadd(h):h.clone().iadd(this)},o.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var x=this.iadd(h);return h.negative=1,x._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var S=this.cmp(h);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;var T,k;S>0?(T=this,k=h):(T=h,k=this);for(var $=0,P=0;P>26,this.words[P]=x&67108863;for(;$!==0&&P>26,this.words[P]=x&67108863;if($===0&&P>>26,H=E&67108863,O=Math.min(A,h.length-1),V=Math.max(0,A-g.length+1);V<=O;V++){var X=A-V|0;T=g.words[X]|0,k=h.words[V]|0,$=T*k+H,z+=$/67108864|0,H=$&67108863}x.words[A]=H|0,E=z|0}return E!==0?x.words[A]=E|0:x.length--,x._strip()}var y=function(h,x,S){var T=h.words,k=x.words,$=S.words,P=0,E,A,z,H=T[0]|0,O=H&8191,V=H>>>13,X=T[1]|0,J=X&8191,G=X>>>13,j=T[2]|0,q=j&8191,K=j>>>13,Z=T[3]|0,te=Z&8191,Q=Z>>>13,oe=T[4]|0,me=oe&8191,se=oe>>>13,ye=T[5]|0,Re=ye&8191,we=ye>>>13,He=T[6]|0,Ue=He&8191,Me=He>>>13,Ze=T[7]|0,Je=Ze&8191,Ne=Ze>>>13,De=T[8]|0,de=De&8191,Ie=De>>>13,ot=T[9]|0,lt=ot&8191,ge=ot>>>13,ze=k[0]|0,le=ze&8191,xe=ze>>>13,je=k[1]|0,We=je&8191,Fe=je>>>13,Qe=k[2]|0,ut=Qe&8191,Ge=Qe>>>13,ee=k[3]|0,re=ee&8191,ne=ee>>>13,pe=k[4]|0,ke=pe&8191,Te=pe>>>13,$e=k[5]|0,Pe=$e&8191,ce=$e>>>13,_e=k[6]|0,Ve=_e&8191,Ce=_e>>>13,Xe=k[7]|0,dt=Xe&8191,qe=Xe>>>13,ht=k[8]|0,mt=ht&8191,rt=ht>>>13,ae=k[9]|0,ie=ae&8191,ve=ae>>>13;S.negative=h.negative^x.negative,S.length=19,E=Math.imul(O,le),A=Math.imul(O,xe),A=A+Math.imul(V,le)|0,z=Math.imul(V,xe);var Ae=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,E=Math.imul(J,le),A=Math.imul(J,xe),A=A+Math.imul(G,le)|0,z=Math.imul(G,xe),E=E+Math.imul(O,We)|0,A=A+Math.imul(O,Fe)|0,A=A+Math.imul(V,We)|0,z=z+Math.imul(V,Fe)|0;var Ye=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,E=Math.imul(q,le),A=Math.imul(q,xe),A=A+Math.imul(K,le)|0,z=Math.imul(K,xe),E=E+Math.imul(J,We)|0,A=A+Math.imul(J,Fe)|0,A=A+Math.imul(G,We)|0,z=z+Math.imul(G,Fe)|0,E=E+Math.imul(O,ut)|0,A=A+Math.imul(O,Ge)|0,A=A+Math.imul(V,ut)|0,z=z+Math.imul(V,Ge)|0;var Le=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(Le>>>26)|0,Le&=67108863,E=Math.imul(te,le),A=Math.imul(te,xe),A=A+Math.imul(Q,le)|0,z=Math.imul(Q,xe),E=E+Math.imul(q,We)|0,A=A+Math.imul(q,Fe)|0,A=A+Math.imul(K,We)|0,z=z+Math.imul(K,Fe)|0,E=E+Math.imul(J,ut)|0,A=A+Math.imul(J,Ge)|0,A=A+Math.imul(G,ut)|0,z=z+Math.imul(G,Ge)|0,E=E+Math.imul(O,re)|0,A=A+Math.imul(O,ne)|0,A=A+Math.imul(V,re)|0,z=z+Math.imul(V,ne)|0;var pt=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(pt>>>26)|0,pt&=67108863,E=Math.imul(me,le),A=Math.imul(me,xe),A=A+Math.imul(se,le)|0,z=Math.imul(se,xe),E=E+Math.imul(te,We)|0,A=A+Math.imul(te,Fe)|0,A=A+Math.imul(Q,We)|0,z=z+Math.imul(Q,Fe)|0,E=E+Math.imul(q,ut)|0,A=A+Math.imul(q,Ge)|0,A=A+Math.imul(K,ut)|0,z=z+Math.imul(K,Ge)|0,E=E+Math.imul(J,re)|0,A=A+Math.imul(J,ne)|0,A=A+Math.imul(G,re)|0,z=z+Math.imul(G,ne)|0,E=E+Math.imul(O,ke)|0,A=A+Math.imul(O,Te)|0,A=A+Math.imul(V,ke)|0,z=z+Math.imul(V,Te)|0;var Bt=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,E=Math.imul(Re,le),A=Math.imul(Re,xe),A=A+Math.imul(we,le)|0,z=Math.imul(we,xe),E=E+Math.imul(me,We)|0,A=A+Math.imul(me,Fe)|0,A=A+Math.imul(se,We)|0,z=z+Math.imul(se,Fe)|0,E=E+Math.imul(te,ut)|0,A=A+Math.imul(te,Ge)|0,A=A+Math.imul(Q,ut)|0,z=z+Math.imul(Q,Ge)|0,E=E+Math.imul(q,re)|0,A=A+Math.imul(q,ne)|0,A=A+Math.imul(K,re)|0,z=z+Math.imul(K,ne)|0,E=E+Math.imul(J,ke)|0,A=A+Math.imul(J,Te)|0,A=A+Math.imul(G,ke)|0,z=z+Math.imul(G,Te)|0,E=E+Math.imul(O,Pe)|0,A=A+Math.imul(O,ce)|0,A=A+Math.imul(V,Pe)|0,z=z+Math.imul(V,ce)|0;var gt=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(gt>>>26)|0,gt&=67108863,E=Math.imul(Ue,le),A=Math.imul(Ue,xe),A=A+Math.imul(Me,le)|0,z=Math.imul(Me,xe),E=E+Math.imul(Re,We)|0,A=A+Math.imul(Re,Fe)|0,A=A+Math.imul(we,We)|0,z=z+Math.imul(we,Fe)|0,E=E+Math.imul(me,ut)|0,A=A+Math.imul(me,Ge)|0,A=A+Math.imul(se,ut)|0,z=z+Math.imul(se,Ge)|0,E=E+Math.imul(te,re)|0,A=A+Math.imul(te,ne)|0,A=A+Math.imul(Q,re)|0,z=z+Math.imul(Q,ne)|0,E=E+Math.imul(q,ke)|0,A=A+Math.imul(q,Te)|0,A=A+Math.imul(K,ke)|0,z=z+Math.imul(K,Te)|0,E=E+Math.imul(J,Pe)|0,A=A+Math.imul(J,ce)|0,A=A+Math.imul(G,Pe)|0,z=z+Math.imul(G,ce)|0,E=E+Math.imul(O,Ve)|0,A=A+Math.imul(O,Ce)|0,A=A+Math.imul(V,Ve)|0,z=z+Math.imul(V,Ce)|0;var St=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(St>>>26)|0,St&=67108863,E=Math.imul(Je,le),A=Math.imul(Je,xe),A=A+Math.imul(Ne,le)|0,z=Math.imul(Ne,xe),E=E+Math.imul(Ue,We)|0,A=A+Math.imul(Ue,Fe)|0,A=A+Math.imul(Me,We)|0,z=z+Math.imul(Me,Fe)|0,E=E+Math.imul(Re,ut)|0,A=A+Math.imul(Re,Ge)|0,A=A+Math.imul(we,ut)|0,z=z+Math.imul(we,Ge)|0,E=E+Math.imul(me,re)|0,A=A+Math.imul(me,ne)|0,A=A+Math.imul(se,re)|0,z=z+Math.imul(se,ne)|0,E=E+Math.imul(te,ke)|0,A=A+Math.imul(te,Te)|0,A=A+Math.imul(Q,ke)|0,z=z+Math.imul(Q,Te)|0,E=E+Math.imul(q,Pe)|0,A=A+Math.imul(q,ce)|0,A=A+Math.imul(K,Pe)|0,z=z+Math.imul(K,ce)|0,E=E+Math.imul(J,Ve)|0,A=A+Math.imul(J,Ce)|0,A=A+Math.imul(G,Ve)|0,z=z+Math.imul(G,Ce)|0,E=E+Math.imul(O,dt)|0,A=A+Math.imul(O,qe)|0,A=A+Math.imul(V,dt)|0,z=z+Math.imul(V,qe)|0;var Ht=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,E=Math.imul(de,le),A=Math.imul(de,xe),A=A+Math.imul(Ie,le)|0,z=Math.imul(Ie,xe),E=E+Math.imul(Je,We)|0,A=A+Math.imul(Je,Fe)|0,A=A+Math.imul(Ne,We)|0,z=z+Math.imul(Ne,Fe)|0,E=E+Math.imul(Ue,ut)|0,A=A+Math.imul(Ue,Ge)|0,A=A+Math.imul(Me,ut)|0,z=z+Math.imul(Me,Ge)|0,E=E+Math.imul(Re,re)|0,A=A+Math.imul(Re,ne)|0,A=A+Math.imul(we,re)|0,z=z+Math.imul(we,ne)|0,E=E+Math.imul(me,ke)|0,A=A+Math.imul(me,Te)|0,A=A+Math.imul(se,ke)|0,z=z+Math.imul(se,Te)|0,E=E+Math.imul(te,Pe)|0,A=A+Math.imul(te,ce)|0,A=A+Math.imul(Q,Pe)|0,z=z+Math.imul(Q,ce)|0,E=E+Math.imul(q,Ve)|0,A=A+Math.imul(q,Ce)|0,A=A+Math.imul(K,Ve)|0,z=z+Math.imul(K,Ce)|0,E=E+Math.imul(J,dt)|0,A=A+Math.imul(J,qe)|0,A=A+Math.imul(G,dt)|0,z=z+Math.imul(G,qe)|0,E=E+Math.imul(O,mt)|0,A=A+Math.imul(O,rt)|0,A=A+Math.imul(V,mt)|0,z=z+Math.imul(V,rt)|0;var Hr=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,E=Math.imul(lt,le),A=Math.imul(lt,xe),A=A+Math.imul(ge,le)|0,z=Math.imul(ge,xe),E=E+Math.imul(de,We)|0,A=A+Math.imul(de,Fe)|0,A=A+Math.imul(Ie,We)|0,z=z+Math.imul(Ie,Fe)|0,E=E+Math.imul(Je,ut)|0,A=A+Math.imul(Je,Ge)|0,A=A+Math.imul(Ne,ut)|0,z=z+Math.imul(Ne,Ge)|0,E=E+Math.imul(Ue,re)|0,A=A+Math.imul(Ue,ne)|0,A=A+Math.imul(Me,re)|0,z=z+Math.imul(Me,ne)|0,E=E+Math.imul(Re,ke)|0,A=A+Math.imul(Re,Te)|0,A=A+Math.imul(we,ke)|0,z=z+Math.imul(we,Te)|0,E=E+Math.imul(me,Pe)|0,A=A+Math.imul(me,ce)|0,A=A+Math.imul(se,Pe)|0,z=z+Math.imul(se,ce)|0,E=E+Math.imul(te,Ve)|0,A=A+Math.imul(te,Ce)|0,A=A+Math.imul(Q,Ve)|0,z=z+Math.imul(Q,Ce)|0,E=E+Math.imul(q,dt)|0,A=A+Math.imul(q,qe)|0,A=A+Math.imul(K,dt)|0,z=z+Math.imul(K,qe)|0,E=E+Math.imul(J,mt)|0,A=A+Math.imul(J,rt)|0,A=A+Math.imul(G,mt)|0,z=z+Math.imul(G,rt)|0,E=E+Math.imul(O,ie)|0,A=A+Math.imul(O,ve)|0,A=A+Math.imul(V,ie)|0,z=z+Math.imul(V,ve)|0;var Cn=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,E=Math.imul(lt,We),A=Math.imul(lt,Fe),A=A+Math.imul(ge,We)|0,z=Math.imul(ge,Fe),E=E+Math.imul(de,ut)|0,A=A+Math.imul(de,Ge)|0,A=A+Math.imul(Ie,ut)|0,z=z+Math.imul(Ie,Ge)|0,E=E+Math.imul(Je,re)|0,A=A+Math.imul(Je,ne)|0,A=A+Math.imul(Ne,re)|0,z=z+Math.imul(Ne,ne)|0,E=E+Math.imul(Ue,ke)|0,A=A+Math.imul(Ue,Te)|0,A=A+Math.imul(Me,ke)|0,z=z+Math.imul(Me,Te)|0,E=E+Math.imul(Re,Pe)|0,A=A+Math.imul(Re,ce)|0,A=A+Math.imul(we,Pe)|0,z=z+Math.imul(we,ce)|0,E=E+Math.imul(me,Ve)|0,A=A+Math.imul(me,Ce)|0,A=A+Math.imul(se,Ve)|0,z=z+Math.imul(se,Ce)|0,E=E+Math.imul(te,dt)|0,A=A+Math.imul(te,qe)|0,A=A+Math.imul(Q,dt)|0,z=z+Math.imul(Q,qe)|0,E=E+Math.imul(q,mt)|0,A=A+Math.imul(q,rt)|0,A=A+Math.imul(K,mt)|0,z=z+Math.imul(K,rt)|0,E=E+Math.imul(J,ie)|0,A=A+Math.imul(J,ve)|0,A=A+Math.imul(G,ie)|0,z=z+Math.imul(G,ve)|0;var ms=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(ms>>>26)|0,ms&=67108863,E=Math.imul(lt,ut),A=Math.imul(lt,Ge),A=A+Math.imul(ge,ut)|0,z=Math.imul(ge,Ge),E=E+Math.imul(de,re)|0,A=A+Math.imul(de,ne)|0,A=A+Math.imul(Ie,re)|0,z=z+Math.imul(Ie,ne)|0,E=E+Math.imul(Je,ke)|0,A=A+Math.imul(Je,Te)|0,A=A+Math.imul(Ne,ke)|0,z=z+Math.imul(Ne,Te)|0,E=E+Math.imul(Ue,Pe)|0,A=A+Math.imul(Ue,ce)|0,A=A+Math.imul(Me,Pe)|0,z=z+Math.imul(Me,ce)|0,E=E+Math.imul(Re,Ve)|0,A=A+Math.imul(Re,Ce)|0,A=A+Math.imul(we,Ve)|0,z=z+Math.imul(we,Ce)|0,E=E+Math.imul(me,dt)|0,A=A+Math.imul(me,qe)|0,A=A+Math.imul(se,dt)|0,z=z+Math.imul(se,qe)|0,E=E+Math.imul(te,mt)|0,A=A+Math.imul(te,rt)|0,A=A+Math.imul(Q,mt)|0,z=z+Math.imul(Q,rt)|0,E=E+Math.imul(q,ie)|0,A=A+Math.imul(q,ve)|0,A=A+Math.imul(K,ie)|0,z=z+Math.imul(K,ve)|0;var gs=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(gs>>>26)|0,gs&=67108863,E=Math.imul(lt,re),A=Math.imul(lt,ne),A=A+Math.imul(ge,re)|0,z=Math.imul(ge,ne),E=E+Math.imul(de,ke)|0,A=A+Math.imul(de,Te)|0,A=A+Math.imul(Ie,ke)|0,z=z+Math.imul(Ie,Te)|0,E=E+Math.imul(Je,Pe)|0,A=A+Math.imul(Je,ce)|0,A=A+Math.imul(Ne,Pe)|0,z=z+Math.imul(Ne,ce)|0,E=E+Math.imul(Ue,Ve)|0,A=A+Math.imul(Ue,Ce)|0,A=A+Math.imul(Me,Ve)|0,z=z+Math.imul(Me,Ce)|0,E=E+Math.imul(Re,dt)|0,A=A+Math.imul(Re,qe)|0,A=A+Math.imul(we,dt)|0,z=z+Math.imul(we,qe)|0,E=E+Math.imul(me,mt)|0,A=A+Math.imul(me,rt)|0,A=A+Math.imul(se,mt)|0,z=z+Math.imul(se,rt)|0,E=E+Math.imul(te,ie)|0,A=A+Math.imul(te,ve)|0,A=A+Math.imul(Q,ie)|0,z=z+Math.imul(Q,ve)|0;var vs=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(vs>>>26)|0,vs&=67108863,E=Math.imul(lt,ke),A=Math.imul(lt,Te),A=A+Math.imul(ge,ke)|0,z=Math.imul(ge,Te),E=E+Math.imul(de,Pe)|0,A=A+Math.imul(de,ce)|0,A=A+Math.imul(Ie,Pe)|0,z=z+Math.imul(Ie,ce)|0,E=E+Math.imul(Je,Ve)|0,A=A+Math.imul(Je,Ce)|0,A=A+Math.imul(Ne,Ve)|0,z=z+Math.imul(Ne,Ce)|0,E=E+Math.imul(Ue,dt)|0,A=A+Math.imul(Ue,qe)|0,A=A+Math.imul(Me,dt)|0,z=z+Math.imul(Me,qe)|0,E=E+Math.imul(Re,mt)|0,A=A+Math.imul(Re,rt)|0,A=A+Math.imul(we,mt)|0,z=z+Math.imul(we,rt)|0,E=E+Math.imul(me,ie)|0,A=A+Math.imul(me,ve)|0,A=A+Math.imul(se,ie)|0,z=z+Math.imul(se,ve)|0;var bs=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(bs>>>26)|0,bs&=67108863,E=Math.imul(lt,Pe),A=Math.imul(lt,ce),A=A+Math.imul(ge,Pe)|0,z=Math.imul(ge,ce),E=E+Math.imul(de,Ve)|0,A=A+Math.imul(de,Ce)|0,A=A+Math.imul(Ie,Ve)|0,z=z+Math.imul(Ie,Ce)|0,E=E+Math.imul(Je,dt)|0,A=A+Math.imul(Je,qe)|0,A=A+Math.imul(Ne,dt)|0,z=z+Math.imul(Ne,qe)|0,E=E+Math.imul(Ue,mt)|0,A=A+Math.imul(Ue,rt)|0,A=A+Math.imul(Me,mt)|0,z=z+Math.imul(Me,rt)|0,E=E+Math.imul(Re,ie)|0,A=A+Math.imul(Re,ve)|0,A=A+Math.imul(we,ie)|0,z=z+Math.imul(we,ve)|0;var ys=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(ys>>>26)|0,ys&=67108863,E=Math.imul(lt,Ve),A=Math.imul(lt,Ce),A=A+Math.imul(ge,Ve)|0,z=Math.imul(ge,Ce),E=E+Math.imul(de,dt)|0,A=A+Math.imul(de,qe)|0,A=A+Math.imul(Ie,dt)|0,z=z+Math.imul(Ie,qe)|0,E=E+Math.imul(Je,mt)|0,A=A+Math.imul(Je,rt)|0,A=A+Math.imul(Ne,mt)|0,z=z+Math.imul(Ne,rt)|0,E=E+Math.imul(Ue,ie)|0,A=A+Math.imul(Ue,ve)|0,A=A+Math.imul(Me,ie)|0,z=z+Math.imul(Me,ve)|0;var ws=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(ws>>>26)|0,ws&=67108863,E=Math.imul(lt,dt),A=Math.imul(lt,qe),A=A+Math.imul(ge,dt)|0,z=Math.imul(ge,qe),E=E+Math.imul(de,mt)|0,A=A+Math.imul(de,rt)|0,A=A+Math.imul(Ie,mt)|0,z=z+Math.imul(Ie,rt)|0,E=E+Math.imul(Je,ie)|0,A=A+Math.imul(Je,ve)|0,A=A+Math.imul(Ne,ie)|0,z=z+Math.imul(Ne,ve)|0;var Ss=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(Ss>>>26)|0,Ss&=67108863,E=Math.imul(lt,mt),A=Math.imul(lt,rt),A=A+Math.imul(ge,mt)|0,z=Math.imul(ge,rt),E=E+Math.imul(de,ie)|0,A=A+Math.imul(de,ve)|0,A=A+Math.imul(Ie,ie)|0,z=z+Math.imul(Ie,ve)|0;var rx=(P+E|0)+((A&8191)<<13)|0;P=(z+(A>>>13)|0)+(rx>>>26)|0,rx&=67108863,E=Math.imul(lt,ie),A=Math.imul(lt,ve),A=A+Math.imul(ge,ie)|0,z=Math.imul(ge,ve);var nx=(P+E|0)+((A&8191)<<13)|0;return P=(z+(A>>>13)|0)+(nx>>>26)|0,nx&=67108863,$[0]=Ae,$[1]=Ye,$[2]=Le,$[3]=pt,$[4]=Bt,$[5]=gt,$[6]=St,$[7]=Ht,$[8]=Hr,$[9]=Cn,$[10]=ms,$[11]=gs,$[12]=vs,$[13]=bs,$[14]=ys,$[15]=ws,$[16]=Ss,$[17]=rx,$[18]=nx,P!==0&&($[19]=P,S.length++),S};Math.imul||(y=C);function M(g,h,x){x.negative=h.negative^g.negative,x.length=g.length+h.length;for(var S=0,T=0,k=0;k>>26)|0,T+=$>>>26,$&=67108863}x.words[k]=P,S=$,$=T}return S!==0?x.words[k]=S:x.length--,x._strip()}function B(g,h,x){return M(g,h,x)}o.prototype.mulTo=function(h,x){var S,T=this.length+h.length;return this.length===10&&h.length===10?S=y(this,h,x):T<63?S=C(this,h,x):T<1024?S=M(this,h,x):S=B(this,h,x),S},o.prototype.mul=function(h){var x=new o(null);return x.words=new Array(this.length+h.length),this.mulTo(h,x)},o.prototype.mulf=function(h){var x=new o(null);return x.words=new Array(this.length+h.length),B(this,h,x)},o.prototype.imul=function(h){return this.clone().mulTo(h,this)},o.prototype.imuln=function(h){var x=h<0;x&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var S=0,T=0;T>=26,S+=k/67108864|0,S+=$>>>26,this.words[T]=$&67108863}return S!==0&&(this.words[T]=S,this.length++),x?this.ineg():this},o.prototype.muln=function(h){return this.clone().imuln(h)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(h){var x=w(h);if(x.length===0)return new o(1);for(var S=this,T=0;T=0);var x=h%26,S=(h-x)/26,T=67108863>>>26-x<<26-x,k;if(x!==0){var $=0;for(k=0;k>>26-x}$&&(this.words[k]=$,this.length++)}if(S!==0){for(k=this.length-1;k>=0;k--)this.words[k+S]=this.words[k];for(k=0;k=0);var T;x?T=(x-x%26)/26:T=0;var k=h%26,$=Math.min((h-k)/26,this.length),P=67108863^67108863>>>k<$)for(this.length-=$,A=0;A=0&&(z!==0||A>=T);A--){var H=this.words[A]|0;this.words[A]=z<<26-k|H>>>k,z=H&P}return E&&z!==0&&(E.words[E.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(h,x,S){return n(this.negative===0),this.iushrn(h,x,S)},o.prototype.shln=function(h){return this.clone().ishln(h)},o.prototype.ushln=function(h){return this.clone().iushln(h)},o.prototype.shrn=function(h){return this.clone().ishrn(h)},o.prototype.ushrn=function(h){return this.clone().iushrn(h)},o.prototype.testn=function(h){n(typeof h=="number"&&h>=0);var x=h%26,S=(h-x)/26,T=1<=0);var x=h%26,S=(h-x)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(x!==0&&S++,this.length=Math.min(S,this.length),x!==0){var T=67108863^67108863>>>x<=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},o.prototype.isubn=function(h){if(n(typeof h=="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x>26)-(E/67108864|0),this.words[k+S]=$&67108863}for(;k>26,this.words[k+S]=$&67108863;if(P===0)return this._strip();for(n(P===-1),P=0,k=0;k>26,this.words[k]=$&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(h,x){var S=this.length-h.length,T=this.clone(),k=h,$=k.words[k.length-1]|0,P=this._countBits($);S=26-P,S!==0&&(k=k.ushln(S),T.iushln(S),$=k.words[k.length-1]|0);var E=T.length-k.length,A;if(x!=="mod"){A=new o(null),A.length=E+1,A.words=new Array(A.length);for(var z=0;z=0;O--){var V=(T.words[k.length+O]|0)*67108864+(T.words[k.length+O-1]|0);for(V=Math.min(V/$|0,67108863),T._ishlnsubmul(k,V,O);T.negative!==0;)V--,T.negative=0,T._ishlnsubmul(k,1,O),T.isZero()||(T.negative^=1);A&&(A.words[O]=V)}return A&&A._strip(),T._strip(),x!=="div"&&S!==0&&T.iushrn(S),{div:A||null,mod:T}},o.prototype.divmod=function(h,x,S){if(n(!h.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var T,k,$;return this.negative!==0&&h.negative===0?($=this.neg().divmod(h,x),x!=="mod"&&(T=$.div.neg()),x!=="div"&&(k=$.mod.neg(),S&&k.negative!==0&&k.iadd(h)),{div:T,mod:k}):this.negative===0&&h.negative!==0?($=this.divmod(h.neg(),x),x!=="mod"&&(T=$.div.neg()),{div:T,mod:$.mod}):this.negative&h.negative?($=this.neg().divmod(h.neg(),x),x!=="div"&&(k=$.mod.neg(),S&&k.negative!==0&&k.isub(h)),{div:$.div,mod:k}):h.length>this.length||this.cmp(h)<0?{div:new o(0),mod:this}:h.length===1?x==="div"?{div:this.divn(h.words[0]),mod:null}:x==="mod"?{div:null,mod:new o(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new o(this.modrn(h.words[0]))}:this._wordDiv(h,x)},o.prototype.div=function(h){return this.divmod(h,"div",!1).div},o.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},o.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},o.prototype.divRound=function(h){var x=this.divmod(h);if(x.mod.isZero())return x.div;var S=x.div.negative!==0?x.mod.isub(h):x.mod,T=h.ushrn(1),k=h.andln(1),$=S.cmp(T);return $<0||k===1&&$===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},o.prototype.modrn=function(h){var x=h<0;x&&(h=-h),n(h<=67108863);for(var S=(1<<26)%h,T=0,k=this.length-1;k>=0;k--)T=(S*T+(this.words[k]|0))%h;return x?-T:T},o.prototype.modn=function(h){return this.modrn(h)},o.prototype.idivn=function(h){var x=h<0;x&&(h=-h),n(h<=67108863);for(var S=0,T=this.length-1;T>=0;T--){var k=(this.words[T]|0)+S*67108864;this.words[T]=k/h|0,S=k%h}return this._strip(),x?this.ineg():this},o.prototype.divn=function(h){return this.clone().idivn(h)},o.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var x=this,S=h.clone();x.negative!==0?x=x.umod(h):x=x.clone();for(var T=new o(1),k=new o(0),$=new o(0),P=new o(1),E=0;x.isEven()&&S.isEven();)x.iushrn(1),S.iushrn(1),++E;for(var A=S.clone(),z=x.clone();!x.isZero();){for(var H=0,O=1;!(x.words[0]&O)&&H<26;++H,O<<=1);if(H>0)for(x.iushrn(H);H-- >0;)(T.isOdd()||k.isOdd())&&(T.iadd(A),k.isub(z)),T.iushrn(1),k.iushrn(1);for(var V=0,X=1;!(S.words[0]&X)&&V<26;++V,X<<=1);if(V>0)for(S.iushrn(V);V-- >0;)($.isOdd()||P.isOdd())&&($.iadd(A),P.isub(z)),$.iushrn(1),P.iushrn(1);x.cmp(S)>=0?(x.isub(S),T.isub($),k.isub(P)):(S.isub(x),$.isub(T),P.isub(k))}return{a:$,b:P,gcd:S.iushln(E)}},o.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var x=this,S=h.clone();x.negative!==0?x=x.umod(h):x=x.clone();for(var T=new o(1),k=new o(0),$=S.clone();x.cmpn(1)>0&&S.cmpn(1)>0;){for(var P=0,E=1;!(x.words[0]&E)&&P<26;++P,E<<=1);if(P>0)for(x.iushrn(P);P-- >0;)T.isOdd()&&T.iadd($),T.iushrn(1);for(var A=0,z=1;!(S.words[0]&z)&&A<26;++A,z<<=1);if(A>0)for(S.iushrn(A);A-- >0;)k.isOdd()&&k.iadd($),k.iushrn(1);x.cmp(S)>=0?(x.isub(S),T.isub(k)):(S.isub(x),k.isub(T))}var H;return x.cmpn(1)===0?H=T:H=k,H.cmpn(0)<0&&H.iadd(h),H},o.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var x=this.clone(),S=h.clone();x.negative=0,S.negative=0;for(var T=0;x.isEven()&&S.isEven();T++)x.iushrn(1),S.iushrn(1);do{for(;x.isEven();)x.iushrn(1);for(;S.isEven();)S.iushrn(1);var k=x.cmp(S);if(k<0){var $=x;x=S,S=$}else if(k===0||S.cmpn(1)===0)break;x.isub(S)}while(!0);return S.iushln(T)},o.prototype.invm=function(h){return this.egcd(h).a.umod(h)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(h){return this.words[0]&h},o.prototype.bincn=function(h){n(typeof h=="number");var x=h%26,S=(h-x)/26,T=1<>>26,P&=67108863,this.words[$]=P}return k!==0&&(this.words[$]=k,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(h){var x=h<0;if(this.negative!==0&&!x)return-1;if(this.negative===0&&x)return 1;this._strip();var S;if(this.length>1)S=1;else{x&&(h=-h),n(h<=67108863,"Number is too big");var T=this.words[0]|0;S=T===h?0:Th.length)return 1;if(this.length=0;S--){var T=this.words[S]|0,k=h.words[S]|0;if(T!==k){Tk&&(x=1);break}}return x},o.prototype.gtn=function(h){return this.cmpn(h)===1},o.prototype.gt=function(h){return this.cmp(h)===1},o.prototype.gten=function(h){return this.cmpn(h)>=0},o.prototype.gte=function(h){return this.cmp(h)>=0},o.prototype.ltn=function(h){return this.cmpn(h)===-1},o.prototype.lt=function(h){return this.cmp(h)===-1},o.prototype.lten=function(h){return this.cmpn(h)<=0},o.prototype.lte=function(h){return this.cmp(h)<=0},o.prototype.eqn=function(h){return this.cmpn(h)===0},o.prototype.eq=function(h){return this.cmp(h)===0},o.red=function(h){return new R(h)},o.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(h){return this.red=h,this},o.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},o.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},o.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},o.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},o.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},o.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},o.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},o.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var D={k256:null,p224:null,p192:null,p25519:null};function F(g,h){this.name=g,this.p=new o(h,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var h=new o(null);return h.words=new Array(Math.ceil(this.n/13)),h},F.prototype.ireduce=function(h){var x=h,S;do this.split(x,this.tmp),x=this.imulK(x),x=x.iadd(this.tmp),S=x.bitLength();while(S>this.n);var T=S0?x.isub(this.p):x.strip!==void 0?x.strip():x._strip(),x},F.prototype.split=function(h,x){h.iushrn(this.n,0,x)},F.prototype.imulK=function(h){return h.imul(this.k)};function N(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(N,F),N.prototype.split=function(h,x){for(var S=4194303,T=Math.min(h.length,9),k=0;k>>22,$=P}$>>>=22,h.words[k-10]=$,$===0&&h.length>10?h.length-=10:h.length-=9},N.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var x=0,S=0;S>>=26,h.words[S]=k,x=T}return x!==0&&(h.words[h.length++]=x),h},o._prime=function(h){if(D[h])return D[h];var x;if(h==="k256")x=new N;else if(h==="p224")x=new _;else if(h==="p192")x=new L;else if(h==="p25519")x=new I;else throw new Error("Unknown prime "+h);return D[h]=x,x};function R(g){if(typeof g=="string"){var h=o._prime(g);this.m=h.p,this.prime=h}else n(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}R.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},R.prototype._verify2=function(h,x){n((h.negative|x.negative)===0,"red works only with positives"),n(h.red&&h.red===x.red,"red works only with red numbers")},R.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(u(h,h.umod(this.m)._forceRed(this)),h)},R.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},R.prototype.add=function(h,x){this._verify2(h,x);var S=h.add(x);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},R.prototype.iadd=function(h,x){this._verify2(h,x);var S=h.iadd(x);return S.cmp(this.m)>=0&&S.isub(this.m),S},R.prototype.sub=function(h,x){this._verify2(h,x);var S=h.sub(x);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},R.prototype.isub=function(h,x){this._verify2(h,x);var S=h.isub(x);return S.cmpn(0)<0&&S.iadd(this.m),S},R.prototype.shl=function(h,x){return this._verify1(h),this.imod(h.ushln(x))},R.prototype.imul=function(h,x){return this._verify2(h,x),this.imod(h.imul(x))},R.prototype.mul=function(h,x){return this._verify2(h,x),this.imod(h.mul(x))},R.prototype.isqr=function(h){return this.imul(h,h.clone())},R.prototype.sqr=function(h){return this.mul(h,h)},R.prototype.sqrt=function(h){if(h.isZero())return h.clone();var x=this.m.andln(3);if(n(x%2===1),x===3){var S=this.m.add(new o(1)).iushrn(2);return this.pow(h,S)}for(var T=this.m.subn(1),k=0;!T.isZero()&&T.andln(1)===0;)k++,T.iushrn(1);n(!T.isZero());var $=new o(1).toRed(this),P=$.redNeg(),E=this.m.subn(1).iushrn(1),A=this.m.bitLength();for(A=new o(2*A*A).toRed(this);this.pow(A,E).cmp(P)!==0;)A.redIAdd(P);for(var z=this.pow(A,T),H=this.pow(h,T.addn(1).iushrn(1)),O=this.pow(h,T),V=k;O.cmp($)!==0;){for(var X=O,J=0;X.cmp($)!==0;J++)X=X.redSqr();n(J=0;k--){for(var z=x.words[k],H=A-1;H>=0;H--){var O=z>>H&1;if($!==T[0]&&($=this.sqr($)),O===0&&P===0){E=0;continue}P<<=1,P|=O,E++,!(E!==S&&(k!==0||H!==0))&&($=this.mul($,T[P]),E=0,P=0)}A=26}return $},R.prototype.convertTo=function(h){var x=h.umod(this.m);return x===h?x.clone():x},R.prototype.convertFrom=function(h){var x=h.clone();return x.red=null,x},o.mont=function(h){return new m(h)};function m(g){R.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(m,R),m.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},m.prototype.convertFrom=function(h){var x=this.imod(h.mul(this.rinv));return x.red=null,x},m.prototype.imul=function(h,x){if(h.isZero()||x.isZero())return h.words[0]=0,h.length=1,h;var S=h.imul(x),T=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=S.isub(T).iushrn(this.shift),$=k;return k.cmp(this.m)>=0?$=k.isub(this.m):k.cmpn(0)<0&&($=k.iadd(this.m)),$._forceRed(this)},m.prototype.mul=function(h,x){if(h.isZero()||x.isZero())return new o(0)._forceRed(this);var S=h.mul(x),T=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=S.isub(T).iushrn(this.shift),$=k;return k.cmp(this.m)>=0?$=k.isub(this.m):k.cmpn(0)<0&&($=k.iadd(this.m)),$._forceRed(this)},m.prototype.invm=function(h){var x=this.imod(h._invmp(this.m).mul(this.r2));return x._forceRed(this)}})(e,st)})(q4);var hie=q4.exports;const yt=_r(hie),pie="logger/5.7.0";let w7=!1,S7=!1;const Xd={debug:1,default:2,info:2,warning:3,error:4,off:5};let C7=Xd.default,Zm=null;function xie(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch{e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(e){return e.message}return null}const E7=xie();var a2;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(a2||(a2={}));var Ji;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(Ji||(Ji={}));const M7="0123456789abcdef";class ct{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){const n=t.toLowerCase();Xd[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),C7>Xd[n]}debug(...t){this._log(ct.levels.DEBUG,t)}info(...t){this._log(ct.levels.INFO,t)}warn(...t){this._log(ct.levels.WARNING,t)}makeError(t,r,n){if(S7)return this.makeError("censored error",r,{});r||(r=ct.errors.UNKNOWN_ERROR),n||(n={});const i=[];Object.keys(n).forEach(l=>{const c=n[l];try{if(c instanceof Uint8Array){let u="";for(let f=0;f>4],u+=M7[c[f]&15];i.push(l+"=Uint8Array(0x"+u+")")}else i.push(l+"="+JSON.stringify(c))}catch{i.push(l+"="+JSON.stringify(n[l].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);const o=t;let a="";switch(r){case Ji.NUMERIC_FAULT:{a="NUMERIC_FAULT";const l=t;switch(l){case"overflow":case"underflow":case"division-by-zero":a+="-"+l;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result";break}break}case Ji.CALL_EXCEPTION:case Ji.INSUFFICIENT_FUNDS:case Ji.MISSING_NEW:case Ji.NONCE_EXPIRED:case Ji.REPLACEMENT_UNDERPRICED:case Ji.TRANSACTION_REPLACED:case Ji.UNPREDICTABLE_GAS_LIMIT:a=r;break}a&&(t+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(t+=" ("+i.join(", ")+")");const s=new Error(t);return s.reason=o,s.code=r,Object.keys(n).forEach(function(l){s[l]=n[l]}),s}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,ct.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,i){t||this.throwError(r,n,i)}assertArgument(t,r,n,i){t||this.throwArgumentError(r,n,i)}checkNormalize(t){E7&&this.throwError("platform missing String.prototype.normalize",ct.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:E7})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,ct.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,ct.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",tr&&this.throwError("too many arguments"+n,ct.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",ct.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",ct.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",ct.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return Zm||(Zm=new ct(pie)),Zm}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",ct.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),w7){if(!t)return;this.globalLogger().throwError("error censorship permanent",ct.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}S7=!!t,w7=!!r}static setLogLevel(t){const r=Xd[t.toLowerCase()];if(r==null){ct.globalLogger().warn("invalid log level - "+t);return}C7=r}static from(t){return new ct(t)}}ct.errors=Ji;ct.levels=a2;const mie="bytes/5.7.0",xr=new ct(mie);function yP(e){return!!e.toHexString}function pc(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return pc(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function K4(e){return ln(e)&&!(e.length%2)||fu(e)}function P7(e){return typeof e=="number"&&e==e&&e%1===0}function fu(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!P7(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function at(e,t){if(t||(t={}),typeof e=="number"){xr.checkSafeUint53(e,"invalid arrayify value");const r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),pc(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),yP(e)&&(e=e.toHexString()),ln(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":xr.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let i=0;iat(i)),r=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(r);return t.reduce((i,o)=>(n.set(o,i),i+o.length),0),pc(n)}function Xa(e){let t=at(e);if(t.length===0)return t;let r=0;for(;rt&&xr.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),pc(r)}function ln(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}const Qm="0123456789abcdef";function vt(e,t){if(t||(t={}),typeof e=="number"){xr.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=Qm[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),yP(e))return e.toHexString();if(ln(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":xr.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(fu(e)){let r="0x";for(let n=0;n>4]+Qm[i&15]}return r}return xr.throwArgumentError("invalid hexlify value","value",e)}function wP(e){if(typeof e!="string")e=vt(e);else if(!ln(e)||e.length%2)return null;return(e.length-2)/2}function s0(e,t,r){return typeof e!="string"?e=vt(e):(!ln(e)||e.length%2)&&xr.throwArgumentError("invalid hexData","value",e),t=2+2*t,r!=null?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function xc(e){let t="0x";return e.forEach(r=>{t+=vt(r).substring(2)}),t}function On(e,t){for(typeof e!="string"?e=vt(e):ln(e)||xr.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&xr.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function L0(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(K4(e)){let r=at(e);r.length===64?(t.v=27+(r[32]>>7),r[32]&=127,t.r=vt(r.slice(0,32)),t.s=vt(r.slice(32,64))):r.length===65?(t.r=vt(r.slice(0,32)),t.s=vt(r.slice(32,64)),t.v=r[64]):xr.throwArgumentError("invalid signature string","signature",e),t.v<27&&(t.v===0||t.v===1?t.v+=27:xr.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=vt(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,t._vs!=null){const i=gie(at(t._vs),32);t._vs=vt(i);const o=i[0]>=128?1:0;t.recoveryParam==null?t.recoveryParam=o:t.recoveryParam!==o&&xr.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),i[0]&=127;const a=vt(i);t.s==null?t.s=a:t.s!==a&&xr.throwArgumentError("signature v mismatch _vs","signature",e)}if(t.recoveryParam==null)t.v==null?xr.throwArgumentError("signature missing v and recoveryParam","signature",e):t.v===0||t.v===1?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(t.v==null)t.v=27+t.recoveryParam;else{const i=t.v===0||t.v===1?t.v:1-t.v%2;t.recoveryParam!==i&&xr.throwArgumentError("signature recoveryParam mismatch v","signature",e)}t.r==null||!ln(t.r)?xr.throwArgumentError("signature missing or invalid r","signature",e):t.r=On(t.r,32),t.s==null||!ln(t.s)?xr.throwArgumentError("signature missing or invalid s","signature",e):t.s=On(t.s,32);const r=at(t.s);r[0]>=128&&xr.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const n=vt(r);t._vs&&(ln(t._vs)||xr.throwArgumentError("signature invalid _vs","signature",e),t._vs=On(t._vs,32)),t._vs==null?t._vs=n:t._vs!==n&&xr.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function A7(e){return e=L0(e),vt(rs([e.r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}const SP="bignumber/5.7.0";var Zh=yt.BN;const Wo=new ct(SP),eg={},k7=9007199254740991;function vie(e){return e!=null&&(_t.isBigNumber(e)||typeof e=="number"&&e%1===0||typeof e=="string"&&!!e.match(/^-?[0-9]+$/)||ln(e)||typeof e=="bigint"||fu(e))}let _7=!1;class _t{constructor(t,r){t!==eg&&Wo.throwError("cannot call constructor directly; use BigNumber.from",ct.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return En(Pt(this).fromTwos(t))}toTwos(t){return En(Pt(this).toTwos(t))}abs(){return this._hex[0]==="-"?_t.from(this._hex.substring(1)):this}add(t){return En(Pt(this).add(Pt(t)))}sub(t){return En(Pt(this).sub(Pt(t)))}div(t){return _t.from(t).isZero()&&di("division-by-zero","div"),En(Pt(this).div(Pt(t)))}mul(t){return En(Pt(this).mul(Pt(t)))}mod(t){const r=Pt(t);return r.isNeg()&&di("division-by-zero","mod"),En(Pt(this).umod(r))}pow(t){const r=Pt(t);return r.isNeg()&&di("negative-power","pow"),En(Pt(this).pow(r))}and(t){const r=Pt(t);return(this.isNegative()||r.isNeg())&&di("unbound-bitwise-result","and"),En(Pt(this).and(r))}or(t){const r=Pt(t);return(this.isNegative()||r.isNeg())&&di("unbound-bitwise-result","or"),En(Pt(this).or(r))}xor(t){const r=Pt(t);return(this.isNegative()||r.isNeg())&&di("unbound-bitwise-result","xor"),En(Pt(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&di("negative-width","mask"),En(Pt(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&di("negative-width","shl"),En(Pt(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&di("negative-width","shr"),En(Pt(this).shrn(t))}eq(t){return Pt(this).eq(Pt(t))}lt(t){return Pt(this).lt(Pt(t))}lte(t){return Pt(this).lte(Pt(t))}gt(t){return Pt(this).gt(Pt(t))}gte(t){return Pt(this).gte(Pt(t))}isNegative(){return this._hex[0]==="-"}isZero(){return Pt(this).isZero()}toNumber(){try{return Pt(this).toNumber()}catch{di("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Wo.throwError("this platform does not support BigInt",ct.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?_7||(_7=!0,Wo.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Wo.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",ct.errors.UNEXPECTED_ARGUMENT,{}):Wo.throwError("BigNumber.toString does not accept parameters",ct.errors.UNEXPECTED_ARGUMENT,{})),Pt(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof _t)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new _t(eg,l0(t)):t.match(/^-?[0-9]+$/)?new _t(eg,l0(new Zh(t))):Wo.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&di("underflow","BigNumber.from",t),(t>=k7||t<=-k7)&&di("overflow","BigNumber.from",t),_t.from(String(t));const r=t;if(typeof r=="bigint")return _t.from(r.toString());if(fu(r))return _t.from(vt(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return _t.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(ln(n)||n[0]==="-"&&ln(n.substring(1))))return _t.from(n)}return Wo.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function l0(e){if(typeof e!="string")return l0(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&Wo.throwArgumentError("invalid hex","value",e),e=l0(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function En(e){return _t.from(l0(e))}function Pt(e){const t=_t.from(e).toHexString();return t[0]==="-"?new Zh("-"+t.substring(3),16):new Zh(t.substring(2),16)}function di(e,t,r){const n={fault:e,operation:t};return r!=null&&(n.value=r),Wo.throwError(e,ct.errors.NUMERIC_FAULT,n)}function bie(e){return new Zh(e,36).toString(16)}const pn=new ct(SP),Cf={},CP=_t.from(0),EP=_t.from(-1);function MP(e,t,r,n){const i={fault:t,operation:r};return n!==void 0&&(i.value=n),pn.throwError(e,ct.errors.NUMERIC_FAULT,i)}let Ef="0";for(;Ef.length<256;)Ef+=Ef;function G4(e){if(typeof e!="number")try{e=_t.from(e).toNumber()}catch{}return typeof e=="number"&&e>=0&&e<=256&&!(e%1)?"1"+Ef.substring(0,e):pn.throwArgumentError("invalid decimal size","decimals",e)}function Jd(e,t){t==null&&(t=0);const r=G4(t);e=_t.from(e);const n=e.lt(CP);n&&(e=e.mul(EP));let i=e.mod(r).toString();for(;i.length2&&pn.throwArgumentError("too many decimal points","value",e);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(a.length>r.length-1&&MP("fractional component exceeds decimals","underflow","parseFixed"),a===""&&(a="0");a.lengtht[a]==null?l:(typeof t[a]!==s&&pn.throwArgumentError("invalid fixed format ("+a+" not "+s+")","format."+a,t[a]),t[a]);r=o("signed","boolean",r),n=o("width","number",n),i=o("decimals","number",i)}return n%8&&pn.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&pn.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new mc(Cf,r,n,i)}}class Vr{constructor(t,r,n,i){t!==Cf&&pn.throwError("cannot use FixedNumber constructor; use FixedNumber.from",ct.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&pn.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const r=xo(this._value,this.format.decimals),n=xo(t._value,t.format.decimals);return Vr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const r=xo(this._value,this.format.decimals),n=xo(t._value,t.format.decimals);return Vr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const r=xo(this._value,this.format.decimals),n=xo(t._value,t.format.decimals);return Vr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const r=xo(this._value,this.format.decimals),n=xo(t._value,t.format.decimals);return Vr.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");t.length===1&&t.push("0");let r=Vr.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(R7.toFormat(r.format))),r}ceiling(){const t=this.toString().split(".");t.length===1&&t.push("0");let r=Vr.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(R7.toFormat(r.format))),r}round(t){t==null&&(t=0);const r=this.toString().split(".");if(r.length===1&&r.push("0"),(t<0||t>80||t%1)&&pn.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;const n=Vr.from("1"+Ef.substring(0,t),this.format),i=yie.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(t){if(t==null)return this._hex;t%8&&pn.throwArgumentError("invalid byte width","width",t);const r=_t.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return On(r,t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return Vr.fromString(this._value,t)}static fromValue(t,r,n){return n==null&&r!=null&&!vie(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),Vr.fromString(Jd(t,r),mc.from(n))}static fromString(t,r){r==null&&(r="fixed");const n=mc.from(r),i=xo(t,n.decimals);!n.signed&&i.lt(CP)&&MP("unsigned value cannot be negative","overflow","value",t);let o=null;n.signed?o=i.toTwos(n.width).toHexString():(o=i.toHexString(),o=On(o,n.width/8));const a=Jd(i,n.decimals);return new Vr(Cf,o,a,n)}static fromBytes(t,r){r==null&&(r="fixed");const n=mc.from(r);if(at(t).length>n.width/8)throw new Error("overflow");let i=_t.from(t);n.signed&&(i=i.fromTwos(n.width));const o=i.toTwos((n.signed?0:1)+n.width).toHexString(),a=Jd(i,n.decimals);return new Vr(Cf,o,a,n)}static from(t,r){if(typeof t=="string")return Vr.fromString(t,r);if(fu(t))return Vr.fromBytes(t,r);try{return Vr.fromValue(t,0,r)}catch(n){if(n.code!==ct.errors.INVALID_ARGUMENT)throw n}return pn.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!!(t&&t._isFixedNumber)}}const R7=Vr.from(1),yie=Vr.from("0.5"),wie="properties/5.7.0";var Sie=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const Qh=new ct(wie);function wt(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function nc(e){return Sie(this,void 0,void 0,function*(){const t=Object.keys(e).map(n=>{const i=e[n];return Promise.resolve(i).then(o=>({key:n,value:o}))});return(yield Promise.all(t)).reduce((n,i)=>(n[i.key]=i.value,n),{})})}function Cie(e,t){(!e||typeof e!="object")&&Qh.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||Qh.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function s2(e){const t={};for(const r in e)t[r]=e[r];return t}const Eie={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function PP(e){if(e==null||Eie[typeof e])return!0;if(Array.isArray(e)||typeof e=="object"){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let r=0;rep(t)));if(typeof e=="object"){const t={};for(const r in e){const n=e[r];n!==void 0&&wt(t,r,ep(n))}return t}return Qh.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}function ep(e){return Mie(e)}class AP{constructor(t){for(const r in t)this[r]=ep(t[r])}}var kP={exports:{}};/** + * [js-sha3]{@link https://github.com/emn178/js-sha3} + * + * @version 0.8.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2018 + * @license MIT + */(function(e){(function(){var t="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var o=!n&&typeof self=="object",a=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=st:o&&(i=self);var s=!i.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,l=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),u=[31,7936,2031616,520093696],f=[4,1024,262144,67108864],d=[1,256,65536,16777216],b=[6,1536,393216,100663296],p=[0,8,16,24],v=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],w=[224,256,384,512],C=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],M={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"}),l&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(O){return typeof O=="object"&&O.buffer&&O.buffer.constructor===ArrayBuffer});for(var B=function(O,V,X){return function(J){return new A(O,V,O).update(J)[X]()}},D=function(O,V,X){return function(J,G){return new A(O,V,G).update(J)[X]()}},F=function(O,V,X){return function(J,G,j,q){return h["cshake"+O].update(J,G,j,q)[X]()}},N=function(O,V,X){return function(J,G,j,q){return h["kmac"+O].update(J,G,j,q)[X]()}},_=function(O,V,X,J){for(var G=0;G>5,this.byteCount=this.blockCount<<2,this.outputBlocks=X>>5,this.extraBytes=(X&31)>>3;for(var J=0;J<50;++J)this.s[J]=0}A.prototype.update=function(O){if(this.finalized)throw new Error(r);var V,X=typeof O;if(X!=="string"){if(X==="object"){if(O===null)throw new Error(t);if(l&&O.constructor===ArrayBuffer)O=new Uint8Array(O);else if(!Array.isArray(O)&&(!l||!ArrayBuffer.isView(O)))throw new Error(t)}else throw new Error(t);V=!0}for(var J=this.blocks,G=this.byteCount,j=O.length,q=this.blockCount,K=0,Z=this.s,te,Q;K>2]|=O[K]<>2]|=Q<>2]|=(192|Q>>6)<>2]|=(128|Q&63)<=57344?(J[te>>2]|=(224|Q>>12)<>2]|=(128|Q>>6&63)<>2]|=(128|Q&63)<>2]|=(240|Q>>18)<>2]|=(128|Q>>12&63)<>2]|=(128|Q>>6&63)<>2]|=(128|Q&63)<=G){for(this.start=te-G,this.block=J[q],te=0;te>8,X=O&255;X>0;)G.unshift(X),O=O>>8,X=O&255,++J;return V?G.push(J):G.unshift(J),this.update(G),G.length},A.prototype.encodeString=function(O){var V,X=typeof O;if(X!=="string"){if(X==="object"){if(O===null)throw new Error(t);if(l&&O.constructor===ArrayBuffer)O=new Uint8Array(O);else if(!Array.isArray(O)&&(!l||!ArrayBuffer.isView(O)))throw new Error(t)}else throw new Error(t);V=!0}var J=0,G=O.length;if(V)J=G;else for(var j=0;j=57344?J+=3:(q=65536+((q&1023)<<10|O.charCodeAt(++j)&1023),J+=4)}return J+=this.encode(J*8),this.update(O),J},A.prototype.bytepad=function(O,V){for(var X=this.encode(V),J=0;J>2]|=this.padding[V&3],this.lastByteIndex===this.byteCount)for(O[0]=O[X],V=1;V>4&15]+c[K&15]+c[K>>12&15]+c[K>>8&15]+c[K>>20&15]+c[K>>16&15]+c[K>>28&15]+c[K>>24&15];j%O===0&&(H(V),G=0)}return J&&(K=V[G],q+=c[K>>4&15]+c[K&15],J>1&&(q+=c[K>>12&15]+c[K>>8&15]),J>2&&(q+=c[K>>20&15]+c[K>>16&15])),q},A.prototype.arrayBuffer=function(){this.finalize();var O=this.blockCount,V=this.s,X=this.outputBlocks,J=this.extraBytes,G=0,j=0,q=this.outputBits>>3,K;J?K=new ArrayBuffer(X+1<<2):K=new ArrayBuffer(q);for(var Z=new Uint32Array(K);j>8&255,q[K+2]=Z>>16&255,q[K+3]=Z>>24&255;j%O===0&&H(V)}return J&&(K=j<<2,Z=V[G],q[K]=Z&255,J>1&&(q[K+1]=Z>>8&255),J>2&&(q[K+2]=Z>>16&255)),q};function z(O,V,X){A.call(this,O,V,X)}z.prototype=new A,z.prototype.finalize=function(){return this.encode(this.outputBits,!0),A.prototype.finalize.call(this)};var H=function(O){var V,X,J,G,j,q,K,Z,te,Q,oe,me,se,ye,Re,we,He,Ue,Me,Ze,Je,Ne,De,de,Ie,ot,lt,ge,ze,le,xe,je,We,Fe,Qe,ut,Ge,ee,re,ne,pe,ke,Te,$e,Pe,ce,_e,Ve,Ce,Xe,dt,qe,ht,mt,rt,ae,ie,ve,Ae,Ye,Le,pt,Bt;for(J=0;J<48;J+=2)G=O[0]^O[10]^O[20]^O[30]^O[40],j=O[1]^O[11]^O[21]^O[31]^O[41],q=O[2]^O[12]^O[22]^O[32]^O[42],K=O[3]^O[13]^O[23]^O[33]^O[43],Z=O[4]^O[14]^O[24]^O[34]^O[44],te=O[5]^O[15]^O[25]^O[35]^O[45],Q=O[6]^O[16]^O[26]^O[36]^O[46],oe=O[7]^O[17]^O[27]^O[37]^O[47],me=O[8]^O[18]^O[28]^O[38]^O[48],se=O[9]^O[19]^O[29]^O[39]^O[49],V=me^(q<<1|K>>>31),X=se^(K<<1|q>>>31),O[0]^=V,O[1]^=X,O[10]^=V,O[11]^=X,O[20]^=V,O[21]^=X,O[30]^=V,O[31]^=X,O[40]^=V,O[41]^=X,V=G^(Z<<1|te>>>31),X=j^(te<<1|Z>>>31),O[2]^=V,O[3]^=X,O[12]^=V,O[13]^=X,O[22]^=V,O[23]^=X,O[32]^=V,O[33]^=X,O[42]^=V,O[43]^=X,V=q^(Q<<1|oe>>>31),X=K^(oe<<1|Q>>>31),O[4]^=V,O[5]^=X,O[14]^=V,O[15]^=X,O[24]^=V,O[25]^=X,O[34]^=V,O[35]^=X,O[44]^=V,O[45]^=X,V=Z^(me<<1|se>>>31),X=te^(se<<1|me>>>31),O[6]^=V,O[7]^=X,O[16]^=V,O[17]^=X,O[26]^=V,O[27]^=X,O[36]^=V,O[37]^=X,O[46]^=V,O[47]^=X,V=Q^(G<<1|j>>>31),X=oe^(j<<1|G>>>31),O[8]^=V,O[9]^=X,O[18]^=V,O[19]^=X,O[28]^=V,O[29]^=X,O[38]^=V,O[39]^=X,O[48]^=V,O[49]^=X,ye=O[0],Re=O[1],ce=O[11]<<4|O[10]>>>28,_e=O[10]<<4|O[11]>>>28,ge=O[20]<<3|O[21]>>>29,ze=O[21]<<3|O[20]>>>29,Ye=O[31]<<9|O[30]>>>23,Le=O[30]<<9|O[31]>>>23,ke=O[40]<<18|O[41]>>>14,Te=O[41]<<18|O[40]>>>14,Fe=O[2]<<1|O[3]>>>31,Qe=O[3]<<1|O[2]>>>31,we=O[13]<<12|O[12]>>>20,He=O[12]<<12|O[13]>>>20,Ve=O[22]<<10|O[23]>>>22,Ce=O[23]<<10|O[22]>>>22,le=O[33]<<13|O[32]>>>19,xe=O[32]<<13|O[33]>>>19,pt=O[42]<<2|O[43]>>>30,Bt=O[43]<<2|O[42]>>>30,mt=O[5]<<30|O[4]>>>2,rt=O[4]<<30|O[5]>>>2,ut=O[14]<<6|O[15]>>>26,Ge=O[15]<<6|O[14]>>>26,Ue=O[25]<<11|O[24]>>>21,Me=O[24]<<11|O[25]>>>21,Xe=O[34]<<15|O[35]>>>17,dt=O[35]<<15|O[34]>>>17,je=O[45]<<29|O[44]>>>3,We=O[44]<<29|O[45]>>>3,de=O[6]<<28|O[7]>>>4,Ie=O[7]<<28|O[6]>>>4,ae=O[17]<<23|O[16]>>>9,ie=O[16]<<23|O[17]>>>9,ee=O[26]<<25|O[27]>>>7,re=O[27]<<25|O[26]>>>7,Ze=O[36]<<21|O[37]>>>11,Je=O[37]<<21|O[36]>>>11,qe=O[47]<<24|O[46]>>>8,ht=O[46]<<24|O[47]>>>8,$e=O[8]<<27|O[9]>>>5,Pe=O[9]<<27|O[8]>>>5,ot=O[18]<<20|O[19]>>>12,lt=O[19]<<20|O[18]>>>12,ve=O[29]<<7|O[28]>>>25,Ae=O[28]<<7|O[29]>>>25,ne=O[38]<<8|O[39]>>>24,pe=O[39]<<8|O[38]>>>24,Ne=O[48]<<14|O[49]>>>18,De=O[49]<<14|O[48]>>>18,O[0]=ye^~we&Ue,O[1]=Re^~He&Me,O[10]=de^~ot&ge,O[11]=Ie^~lt&ze,O[20]=Fe^~ut&ee,O[21]=Qe^~Ge&re,O[30]=$e^~ce&Ve,O[31]=Pe^~_e&Ce,O[40]=mt^~ae&ve,O[41]=rt^~ie&Ae,O[2]=we^~Ue&Ze,O[3]=He^~Me&Je,O[12]=ot^~ge&le,O[13]=lt^~ze&xe,O[22]=ut^~ee&ne,O[23]=Ge^~re&pe,O[32]=ce^~Ve&Xe,O[33]=_e^~Ce&dt,O[42]=ae^~ve&Ye,O[43]=ie^~Ae&Le,O[4]=Ue^~Ze&Ne,O[5]=Me^~Je&De,O[14]=ge^~le&je,O[15]=ze^~xe&We,O[24]=ee^~ne&ke,O[25]=re^~pe&Te,O[34]=Ve^~Xe&qe,O[35]=Ce^~dt&ht,O[44]=ve^~Ye&pt,O[45]=Ae^~Le&Bt,O[6]=Ze^~Ne&ye,O[7]=Je^~De&Re,O[16]=le^~je&de,O[17]=xe^~We&Ie,O[26]=ne^~ke&Fe,O[27]=pe^~Te&Qe,O[36]=Xe^~qe&$e,O[37]=dt^~ht&Pe,O[46]=Ye^~pt&mt,O[47]=Le^~Bt&rt,O[8]=Ne^~ye&we,O[9]=De^~Re&He,O[18]=je^~de&ot,O[19]=We^~Ie<,O[28]=ke^~Fe&ut,O[29]=Te^~Qe&Ge,O[38]=qe^~$e&ce,O[39]=ht^~Pe&_e,O[48]=pt^~mt&ae,O[49]=Bt^~rt&ie,O[0]^=v[J],O[1]^=v[J+1]};if(s)e.exports=h;else for(S=0;S>=8;return t}function _P(e){if(Array.isArray(e)){let n=[];if(e.forEach(function(o){n=n.concat(_P(o))}),n.length<=55)return n.unshift(192+n.length),n;const i=T7(n.length);return i.unshift(247+i.length),i.concat(n)}K4(e)||_ie.throwArgumentError("RLP object must be BytesLike","object",e);const t=Array.prototype.slice.call(at(e));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=T7(t.length);return r.unshift(183+r.length),r.concat(t)}function tp(e){return vt(_P(e))}const Rie="address/5.7.0",ef=new ct(Rie);function $7(e){ln(e,20)||ef.throwArgumentError("invalid address","address",e),e=e.toLowerCase();const t=e.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=t[i].charCodeAt(0);const n=at(xn(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(n[i>>1]&15)>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}const Tie=9007199254740991;function $ie(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}const Y4={};for(let e=0;e<10;e++)Y4[String(e)]=String(e);for(let e=0;e<26;e++)Y4[String.fromCharCode(65+e)]=String(10+e);const B7=Math.floor($ie(Tie));function Bie(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";let t=e.split("").map(n=>Y4[n]).join("");for(;t.length>=B7;){let n=t.substring(0,B7);t=parseInt(n,10)%97+t.substring(n.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function Oi(e){let t=null;if(typeof e!="string"&&ef.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))e.substring(0,2)!=="0x"&&(e="0x"+e),t=$7(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&ef.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==Bie(e)&&ef.throwArgumentError("bad icap checksum","address",e),t=bie(e.substring(4));t.length<40;)t="0"+t;t=$7("0x"+t)}else ef.throwArgumentError("invalid address","address",e);return t}function que(e){try{return Oi(e),!0}catch{}return!1}const Iie="strings/5.7.0",Fie=new ct(Iie);var ll;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(ll||(ll={}));var I7;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(I7||(I7={}));function na(e,t=ll.current){t!=ll.current&&(Fie.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const o=e.charCodeAt(n);if(n>=e.length||(o&64512)!==56320)throw new Error("invalid utf-8 string");const a=65536+((i&1023)<<10)+(o&1023);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(a&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return at(r)}function X4(e){return xn(na(e))}const Oie="hash/5.7.0",Die=`Ethereum Signed Message: +`;function Lie(e){return typeof e=="string"&&(e=na(e)),xn(rs([na(Die),na(String(e.length)),e]))}var Nie=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const tr=new ct(Oie),RP=new Uint8Array(32);RP.fill(0);const zie=_t.from(-1),TP=_t.from(0),$P=_t.from(1),jie=_t.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Uie(e){const t=at(e),r=t.length%32;return r?xc([t,RP.slice(r)]):vt(t)}const Hie=On($P.toHexString(),32),Wie=On(TP.toHexString(),32),F7={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},tg=["name","version","chainId","verifyingContract","salt"];function O7(e){return function(t){return typeof t!="string"&&tr.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const Vie={name:O7("name"),version:O7("version"),chainId:function(e){try{return _t.from(e).toString()}catch{}return tr.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Oi(e).toLowerCase()}catch{}return tr.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=at(e);if(t.length!==32)throw new Error("bad length");return vt(t)}catch{}return tr.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function rg(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=t[1]==="",n=parseInt(t[2]||"256");(n%8!==0||n>256||t[2]&&t[2]!==String(n))&&tr.throwArgumentError("invalid numeric width","type",e);const i=jie.mask(r?n-1:n),o=r?i.add($P).mul(zie):TP;return function(a){const s=_t.from(a);return(s.lt(o)||s.gt(i))&&tr.throwArgumentError(`value out-of-bounds for ${e}`,"value",a),On(s.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(r===0||r>32||t[1]!==String(r))&&tr.throwArgumentError("invalid bytes width","type",e),function(n){return at(n).length!==r&&tr.throwArgumentError(`invalid length for ${e}`,"value",n),Uie(n)}}}switch(e){case"address":return function(t){return On(Oi(t),32)};case"bool":return function(t){return t?Hie:Wie};case"bytes":return function(t){return xn(t)};case"string":return function(t){return X4(t)}}return null}function D7(e,t){return`${e}(${t.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Wn{constructor(t){wt(this,"types",Object.freeze(ep(t))),wt(this,"_encoderCache",{}),wt(this,"_types",{});const r={},n={},i={};Object.keys(t).forEach(s=>{r[s]={},n[s]=[],i[s]={}});for(const s in t){const l={};t[s].forEach(c=>{l[c.name]&&tr.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(s)}`,"types",t),l[c.name]=!0;const u=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];u===s&&tr.throwArgumentError(`circular type reference to ${JSON.stringify(u)}`,"types",t),!rg(u)&&(n[u]||tr.throwArgumentError(`unknown type ${JSON.stringify(u)}`,"types",t),n[u].push(s),r[s][u]=!0)})}const o=Object.keys(n).filter(s=>n[s].length===0);o.length===0?tr.throwArgumentError("missing primary type","types",t):o.length>1&&tr.throwArgumentError(`ambiguous primary types or unused types: ${o.map(s=>JSON.stringify(s)).join(", ")}`,"types",t),wt(this,"primaryType",o[0]);function a(s,l){l[s]&&tr.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",t),l[s]=!0,Object.keys(r[s]).forEach(c=>{n[c]&&(a(c,l),Object.keys(l).forEach(u=>{i[u][c]=!0}))}),delete l[s]}a(this.primaryType,{});for(const s in i){const l=Object.keys(i[s]);l.sort(),this._types[s]=D7(s,t[s])+l.map(c=>D7(c,t[c])).join("")}}getEncoder(t){let r=this._encoderCache[t];return r||(r=this._encoderCache[t]=this._getEncoder(t)),r}_getEncoder(t){{const i=rg(t);if(i)return i}const r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const i=r[1],o=this.getEncoder(i),a=parseInt(r[3]);return s=>{a>=0&&s.length!==a&&tr.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",s);let l=s.map(o);return this._types[i]&&(l=l.map(xn)),xn(xc(l))}}const n=this.types[t];if(n){const i=X4(this._types[t]);return o=>{const a=n.map(({name:s,type:l})=>{const c=this.getEncoder(l)(o[s]);return this._types[l]?xn(c):c});return a.unshift(i),xc(a)}}return tr.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const r=this._types[t];return r||tr.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),r}encodeData(t,r){return this.getEncoder(t)(r)}hashStruct(t,r){return xn(this.encodeData(t,r))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,r,n){if(rg(t))return n(t,r);const i=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const a=i[1],s=parseInt(i[3]);return s>=0&&r.length!==s&&tr.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(l=>this._visit(a,l,n))}const o=this.types[t];return o?o.reduce((a,{name:s,type:l})=>(a[s]=this._visit(l,r[s],n),a),{}):tr.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,r){return this._visit(this.primaryType,t,r)}static from(t){return new Wn(t)}static getPrimaryType(t){return Wn.from(t).primaryType}static hashStruct(t,r,n){return Wn.from(r).hashStruct(t,n)}static hashDomain(t){const r=[];for(const n in t){const i=F7[n];i||tr.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",t),r.push({name:n,type:i})}return r.sort((n,i)=>tg.indexOf(n.name)-tg.indexOf(i.name)),Wn.hashStruct("EIP712Domain",{EIP712Domain:r},t)}static encode(t,r,n){return xc(["0x1901",Wn.hashDomain(t),Wn.from(r).hash(n)])}static hash(t,r,n){return xn(Wn.encode(t,r,n))}static resolveNames(t,r,n,i){return Nie(this,void 0,void 0,function*(){t=s2(t);const o={};t.verifyingContract&&!ln(t.verifyingContract,20)&&(o[t.verifyingContract]="0x");const a=Wn.from(r);a.visit(n,(s,l)=>(s==="address"&&!ln(l,20)&&(o[l]="0x"),l));for(const s in o)o[s]=yield i(s);return t.verifyingContract&&o[t.verifyingContract]&&(t.verifyingContract=o[t.verifyingContract]),n=a.visit(n,(s,l)=>s==="address"&&o[l]?o[l]:l),{domain:t,value:n}})}static getPayload(t,r,n){Wn.hashDomain(t);const i={},o=[];tg.forEach(l=>{const c=t[l];c!=null&&(i[l]=Vie[l](c),o.push({name:l,type:F7[l]}))});const a=Wn.from(r),s=s2(r);return s.EIP712Domain?tr.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=o,a.encode(n),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(n,(l,c)=>{if(l.match(/^bytes(\d*)/))return vt(at(c));if(l.match(/^u?int/))return _t.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&tr.throwArgumentError("invalid string","value",c),c}return tr.throwArgumentError("unsupported type","type",l)})}}}const qie="abstract-provider/5.7.0";var Kie=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const Gie=new ct(qie);class J4{constructor(){Gie.checkAbstract(new.target,J4),wt(this,"_isProvider",!0)}getFeeData(){return Kie(this,void 0,void 0,function*(){const{block:t,gasPrice:r}=yield nc({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(a=>null)});let n=null,i=null,o=null;return t&&t.baseFeePerGas&&(n=t.baseFeePerGas,o=_t.from("1500000000"),i=t.baseFeePerGas.mul(2).add(o)),{lastBaseFeePerGas:n,maxFeePerGas:i,maxPriorityFeePerGas:o,gasPrice:r}})}addListener(t,r){return this.on(t,r)}removeListener(t,r){return this.off(t,r)}static isProvider(t){return!!(t&&t._isProvider)}}const Yie="abstract-signer/5.7.0";var Gi=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const Yi=new ct(Yie),Xie=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Jie=[ct.errors.INSUFFICIENT_FUNDS,ct.errors.NONCE_EXPIRED,ct.errors.REPLACEMENT_UNDERPRICED];class Z4{constructor(){Yi.checkAbstract(new.target,Z4),wt(this,"_isSigner",!0)}getBalance(t){return Gi(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return Gi(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return Gi(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield nc(this.checkTransaction(t));return yield this.provider.estimateGas(r)})}call(t,r){return Gi(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield nc(this.checkTransaction(t));return yield this.provider.call(n,r)})}sendTransaction(t){return Gi(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(t),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return Gi(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Gi(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Gi(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return Gi(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(const n in t)Xie.indexOf(n)===-1&&Yi.throwArgumentError("invalid transaction key: "+n,"transaction",t);const r=s2(t);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&Yi.throwArgumentError("from address mismatch","transaction",t),n[0])),r}populateTransaction(t){return Gi(this,void 0,void 0,function*(){const r=yield nc(this.checkTransaction(t));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>Gi(this,void 0,void 0,function*(){if(i==null)return null;const o=yield this.resolveName(i);return o==null&&Yi.throwArgumentError("provided ENS name resolves to null","tx.to",i),o})),r.to.catch(i=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?Yi.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(r.type===0||r.type===1)&&n&&Yi.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(r.type==null)if(i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const o=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=o,r.maxPriorityFeePerGas=o}else r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else i.gasPrice!=null?(n&&Yi.throwError("network does not support EIP-1559",ct.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):Yi.throwError("failed to get consistent fee data",ct.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(i=>{if(Jie.indexOf(i.code)>=0)throw i;return Yi.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",ct.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(i=>(i[1]!==0&&i[0]!==i[1]&&Yi.throwArgumentError("chainId address mismatch","transaction",t),i[0])),yield nc(r)})}_checkProvider(t){this.provider||Yi.throwError("missing provider",ct.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}}function du(e,t,r){return r={path:t,exports:{},require:function(n,i){return Zie(n,i??r.path)}},e(r,r.exports),r.exports}function Zie(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Q4=BP;function BP(e,t){if(!e)throw new Error(t||"Assertion failed")}BP.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};var oo=du(function(e,t){var r=t;function n(a,s){if(Array.isArray(a))return a.slice();if(!a)return[];var l=[];if(typeof a!="string"){for(var c=0;c>8,d=u&255;f?l.push(f,d):l.push(d)}return l}r.toArray=n;function i(a){return a.length===1?"0"+a:a}r.zero2=i;function o(a){for(var s="",l=0;l(d>>1)-1?v=(d>>1)-w:v=w,b.isubn(v)):v=0,f[p]=v,b.iushrn(1)}return f}r.getNAF=n;function i(l,c){var u=[[],[]];l=l.clone(),c=c.clone();for(var f=0,d=0,b;l.cmpn(-f)>0||c.cmpn(-d)>0;){var p=l.andln(3)+f&3,v=c.andln(3)+d&3;p===3&&(p=-1),v===3&&(v=-1);var w;p&1?(b=l.andln(7)+f&7,(b===3||b===5)&&v===2?w=-p:w=p):w=0,u[0].push(w);var C;v&1?(b=c.andln(7)+d&7,(b===3||b===5)&&p===2?C=-v:C=v):C=0,u[1].push(C),2*f===w+1&&(f=1-f),2*d===C+1&&(d=1-d),l.iushrn(1),c.iushrn(1)}return u}r.getJSF=i;function o(l,c,u){var f="_"+c;l.prototype[c]=function(){return this[f]!==void 0?this[f]:this[f]=u.call(this)}}r.cachedProperty=o;function a(l){return typeof l=="string"?r.toArray(l,"hex"):l}r.parseBytes=a;function s(l){return new yt(l,"hex","le")}r.intFromLE=s}),rp=ui.getNAF,Qie=ui.getJSF,np=ui.assert;function ps(e,t){this.type=e,this.p=new yt(t.p,16),this.red=t.prime?yt.red(t.prime):yt.mont(this.p),this.zero=new yt(0).toRed(this.red),this.one=new yt(1).toRed(this.red),this.two=new yt(2).toRed(this.red),this.n=t.n&&new yt(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var vl=ps;ps.prototype.point=function(){throw new Error("Not implemented")};ps.prototype.validate=function(){throw new Error("Not implemented")};ps.prototype._fixedNafMul=function(t,r){np(t.precomputed);var n=t._getDoubles(),i=rp(r,1,this._bitLength),o=(1<=s;c--)l=(l<<1)+i[c];a.push(l)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=o;d>0;d--){for(s=0;s=0;l--){for(var c=0;l>=0&&a[l]===0;l--)c++;if(l>=0&&c++,s=s.dblp(c),l<0)break;var u=a[l];np(u!==0),t.type==="affine"?u>0?s=s.mixedAdd(o[u-1>>1]):s=s.mixedAdd(o[-u-1>>1].neg()):u>0?s=s.add(o[u-1>>1]):s=s.add(o[-u-1>>1].neg())}return t.type==="affine"?s.toP():s};ps.prototype._wnafMulAdd=function(t,r,n,i,o){var a=this._wnafT1,s=this._wnafT2,l=this._wnafT3,c=0,u,f,d;for(u=0;u=1;u-=2){var p=u-1,v=u;if(a[p]!==1||a[v]!==1){l[p]=rp(n[p],a[p],this._bitLength),l[v]=rp(n[v],a[v],this._bitLength),c=Math.max(l[p].length,c),c=Math.max(l[v].length,c);continue}var w=[r[p],null,null,r[v]];r[p].y.cmp(r[v].y)===0?(w[1]=r[p].add(r[v]),w[2]=r[p].toJ().mixedAdd(r[v].neg())):r[p].y.cmp(r[v].y.redNeg())===0?(w[1]=r[p].toJ().mixedAdd(r[v]),w[2]=r[p].add(r[v].neg())):(w[1]=r[p].toJ().mixedAdd(r[v]),w[2]=r[p].toJ().mixedAdd(r[v].neg()));var C=[-3,-1,-5,-7,0,7,5,1,3],y=Qie(n[p],n[v]);for(c=Math.max(y[0].length,c),l[p]=new Array(c),l[v]=new Array(c),f=0;f=0;u--){for(var N=0;u>=0;){var _=!0;for(f=0;f=0&&N++,D=D.dblp(N),u<0)break;for(f=0;f0?d=s[f][L-1>>1]:L<0&&(d=s[f][-L-1>>1].neg()),d.type==="affine"?D=D.mixedAdd(d):D=D.add(d))}}for(u=0;u=Math.ceil((t.bitLength()+1)/r.step):!1};Ui.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,o=0;o=0&&(b=c,p=u),f.negative&&(f=f.neg(),d=d.neg()),b.negative&&(b=b.neg(),p=p.neg()),[{a:f,b:d},{a:b,b:p}]};Hi.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],i=r[1],o=i.b.mul(t).divRound(this.n),a=n.b.neg().mul(t).divRound(this.n),s=o.mul(n.a),l=a.mul(i.a),c=o.mul(n.b),u=a.mul(i.b),f=t.sub(s).sub(l),d=c.add(u).neg();return{k1:f,k2:d}};Hi.prototype.pointFromX=function(t,r){t=new yt(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var o=i.fromRed().isOdd();return(r&&!o||!r&&o)&&(i=i.redNeg()),this.point(t,i)};Hi.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,i=this.a.redMul(r),o=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(o).cmpn(0)===0};Hi.prototype._endoWnafMulAdd=function(t,r,n){for(var i=this._endoWnafT1,o=this._endoWnafT2,a=0;a":""};Ur.prototype.isInfinity=function(){return this.inf};Ur.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(t.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Ur.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),a=o.redSqr().redISub(this.x.redAdd(this.x)),s=o.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)};Ur.prototype.getX=function(){return this.x.fromRed()};Ur.prototype.getY=function(){return this.y.fromRed()};Ur.prototype.mul=function(t){return t=new yt(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};Ur.prototype.mulAdd=function(t,r,n){var i=[this,r],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)};Ur.prototype.jmulAdd=function(t,r,n){var i=[this,r],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)};Ur.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};Ur.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(o){return o.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Ur.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function en(e,t,r,n){vl.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new yt(0)):(this.x=new yt(t,16),this.y=new yt(r,16),this.z=new yt(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}e3(en,vl.BasePoint);Hi.prototype.jpoint=function(t,r,n){return new en(this,t,r,n)};en.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(t);return this.curve.point(n,i)};en.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};en.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),o=t.x.redMul(n),a=this.y.redMul(r.redMul(t.z)),s=t.y.redMul(n.redMul(this.z)),l=i.redSub(o),c=a.redSub(s);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=l.redSqr(),f=u.redMul(l),d=i.redMul(u),b=c.redSqr().redIAdd(f).redISub(d).redISub(d),p=c.redMul(d.redISub(b)).redISub(a.redMul(f)),v=this.z.redMul(t.z).redMul(l);return this.curve.jpoint(b,p,v)};en.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=t.x.redMul(r),o=this.y,a=t.y.redMul(r).redMul(this.z),s=n.redSub(i),l=o.redSub(a);if(s.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=n.redMul(c),d=l.redSqr().redIAdd(u).redISub(f).redISub(f),b=l.redMul(f.redISub(d)).redISub(o.redMul(u)),p=this.z.redMul(s);return this.curve.jpoint(d,b,p)};en.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(o),this.x.cmp(n)===0)return!0}};en.prototype.inspect=function(){return this.isInfinity()?"":""};en.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Zd=du(function(e,t){var r=t;r.base=vl,r.short=toe,r.mont=null,r.edwards=null}),Qd=du(function(e,t){var r=t,n=ui.assert;function i(s){s.type==="short"?this.curve=new Zd.short(s):s.type==="edwards"?this.curve=new Zd.edwards(s):this.curve=new Zd.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=i;function o(s,l){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){var c=new i(l);return Object.defineProperty(r,s,{configurable:!0,enumerable:!0,value:c}),c}})}o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:qn.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:qn.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:qn.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:qn.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:qn.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:qn.sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:qn.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var a;try{a=null.crash()}catch{a=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:qn.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})});function ns(e){if(!(this instanceof ns))return new ns(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=oo.toArray(e.entropy,e.entropyEnc||"hex"),r=oo.toArray(e.nonce,e.nonceEnc||"hex"),n=oo.toArray(e.pers,e.persEnc||"hex");Q4(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var IP=ns;ns.prototype._init=function(t,r,n){var i=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};ns.prototype.generate=function(t,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=oo.toArray(n,i||"hex"),this._update(n));for(var o=[];o.length"};var roe=ui.assert;function W1(e,t){if(e instanceof W1)return e;this._importDER(e,t)||(roe(e.r&&e.s,"Signature without r or s"),this.r=new yt(e.r,16),this.s=new yt(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var V1=W1;function noe(){this.place=0}function ng(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return i<=127?!1:(t.place=a,i)}function L7(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}W1.prototype.toDER=function(t){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=L7(r),n=L7(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];ig(i,r.length),i=i.concat(r),i.push(2),ig(i,n.length);var o=i.concat(n),a=[48];return ig(a,o.length),a=a.concat(o),ui.encode(a,t)};var ioe=function(){throw new Error("unsupported")},FP=ui.assert;function Di(e){if(!(this instanceof Di))return new Di(e);typeof e=="string"&&(FP(Object.prototype.hasOwnProperty.call(Qd,e),"Unknown curve "+e),e=Qd[e]),e instanceof Qd.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var ooe=Di;Di.prototype.keyPair=function(t){return new t3(this,t)};Di.prototype.keyFromPrivate=function(t,r){return t3.fromPrivate(this,t,r)};Di.prototype.keyFromPublic=function(t,r){return t3.fromPublic(this,t,r)};Di.prototype.genKeyPair=function(t){t||(t={});for(var r=new IP({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||ioe(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new yt(2));;){var o=new yt(r.generate(n));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}};Di.prototype._truncateToN=function(t,r){var n=t.byteLength()*8-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};Di.prototype.sign=function(t,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),t=this._truncateToN(new yt(t,16));for(var o=this.n.byteLength(),a=r.getPrivate().toArray("be",o),s=t.toArray("be",o),l=new IP({hash:this.hash,entropy:a,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new yt(1)),u=0;;u++){var f=i.k?i.k(u):new yt(l.generate(this.n.byteLength()));if(f=this._truncateToN(f,!0),!(f.cmpn(1)<=0||f.cmp(c)>=0)){var d=this.g.mul(f);if(!d.isInfinity()){var b=d.getX(),p=b.umod(this.n);if(p.cmpn(0)!==0){var v=f.invm(this.n).mul(p.mul(r.getPrivate()).iadd(t));if(v=v.umod(this.n),v.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(b.cmp(p)!==0?2:0);return i.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),w^=1),new V1({r:p,s:v,recoveryParam:w})}}}}}};Di.prototype.verify=function(t,r,n,i){t=this._truncateToN(new yt(t,16)),n=this.keyFromPublic(n,i),r=new V1(r,"hex");var o=r.r,a=r.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),l=s.mul(t).umod(this.n),c=s.mul(o).umod(this.n),u;return this.curve._maxwellTrick?(u=this.g.jmulAdd(l,n.getPublic(),c),u.isInfinity()?!1:u.eqXToP(o)):(u=this.g.mulAdd(l,n.getPublic(),c),u.isInfinity()?!1:u.getX().umod(this.n).cmp(o)===0)};Di.prototype.recoverPubKey=function(e,t,r,n){FP((3&r)===r,"The recovery param is more than two bits"),t=new V1(t,n);var i=this.n,o=new yt(e),a=t.r,s=t.s,l=r&1,c=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?a=this.curve.pointFromX(a.add(this.curve.n),l):a=this.curve.pointFromX(a,l);var u=t.r.invm(i),f=i.sub(o).mul(u).umod(i),d=s.mul(u).umod(i);return this.g.mulAdd(f,a,d)};Di.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new V1(t,n),t.recoveryParam!==null)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch{continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var aoe=du(function(e,t){var r=t;r.version="6.5.4",r.utils=ui,r.rand=function(){throw new Error("unsupported")},r.curve=Zd,r.curves=Qd,r.ec=ooe,r.eddsa=null}),soe=aoe.ec;const loe="signing-key/5.7.0",c2=new ct(loe);let og=null;function Ko(){return og||(og=new soe("secp256k1")),og}class gc{constructor(t){wt(this,"curve","secp256k1"),wt(this,"privateKey",vt(t)),wP(this.privateKey)!==32&&c2.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=Ko().keyFromPrivate(at(this.privateKey));wt(this,"publicKey","0x"+r.getPublic(!1,"hex")),wt(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),wt(this,"_isSigningKey",!0)}_addPoint(t){const r=Ko().keyFromPublic(at(this.publicKey)),n=Ko().keyFromPublic(at(t));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(t){const r=Ko().keyFromPrivate(at(this.privateKey)),n=at(t);n.length!==32&&c2.throwArgumentError("bad digest length","digest",t);const i=r.sign(n,{canonical:!0});return L0({recoveryParam:i.recoveryParam,r:On("0x"+i.r.toString(16),32),s:On("0x"+i.s.toString(16),32)})}computeSharedSecret(t){const r=Ko().keyFromPrivate(at(this.privateKey)),n=Ko().keyFromPublic(at(OP(t)));return On("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function OP(e,t){const r=at(e);if(r.length===32){const n=new gc(r);return t?"0x"+Ko().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return t?vt(r):"0x"+Ko().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return t?"0x"+Ko().keyFromPublic(r).getPublic(!0,"hex"):vt(r)}return c2.throwArgumentError("invalid public or private key","key","[REDACTED]")}const coe="transactions/5.7.0",ro=new ct(coe);var N7;(function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"})(N7||(N7={}));const uoe=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],foe={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function vc(e){const t=OP(e);return Oi(s0(xn(s0(t,1)),12))}function Yn(e,t){const r=Xa(_t.from(e).toHexString());return r.length>32&&ro.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function ag(e,t){return{address:Oi(e),storageKeys:(t||[]).map((r,n)=>(wP(r)!==32&&ro.throwArgumentError("invalid access list storageKey",`accessList[${e}:${n}]`,r),r.toLowerCase()))}}function doe(e){if(Array.isArray(e))return e.map((r,n)=>Array.isArray(r)?(r.length>2&&ro.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),ag(r[0],r[1])):ag(r.address,r.storageKeys));const t=Object.keys(e).map(r=>{const n=e[r].reduce((i,o)=>(i[o]=!0,i),{});return ag(r,Object.keys(n).sort())});return t.sort((r,n)=>r.address.localeCompare(n.address)),t}function DP(e){return doe(e).map(t=>[t.address,t.storageKeys])}function hoe(e,t){if(e.gasPrice!=null){const n=_t.from(e.gasPrice),i=_t.from(e.maxFeePerGas||0);n.eq(i)||ro.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[Yn(e.chainId||0,"chainId"),Yn(e.nonce||0,"nonce"),Yn(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Yn(e.maxFeePerGas||0,"maxFeePerGas"),Yn(e.gasLimit||0,"gasLimit"),e.to!=null?Oi(e.to):"0x",Yn(e.value||0,"value"),e.data||"0x",DP(e.accessList||[])];if(t){const n=L0(t);r.push(Yn(n.recoveryParam,"recoveryParam")),r.push(Xa(n.r)),r.push(Xa(n.s))}return xc(["0x02",tp(r)])}function poe(e,t){const r=[Yn(e.chainId||0,"chainId"),Yn(e.nonce||0,"nonce"),Yn(e.gasPrice||0,"gasPrice"),Yn(e.gasLimit||0,"gasLimit"),e.to!=null?Oi(e.to):"0x",Yn(e.value||0,"value"),e.data||"0x",DP(e.accessList||[])];if(t){const n=L0(t);r.push(Yn(n.recoveryParam,"recoveryParam")),r.push(Xa(n.r)),r.push(Xa(n.s))}return xc(["0x01",tp(r)])}function xoe(e,t){Cie(e,foe);const r=[];uoe.forEach(function(a){let s=e[a.name]||[];const l={};a.numeric&&(l.hexPad="left"),s=at(vt(s,l)),a.length&&s.length!==a.length&&s.length>0&&ro.throwArgumentError("invalid length for "+a.name,"transaction:"+a.name,s),a.maxLength&&(s=Xa(s),s.length>a.maxLength&&ro.throwArgumentError("invalid length for "+a.name,"transaction:"+a.name,s)),r.push(vt(s))});let n=0;if(e.chainId!=null?(n=e.chainId,typeof n!="number"&&ro.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!K4(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),n!==0&&(r.push(vt(n)),r.push("0x"),r.push("0x")),!t)return tp(r);const i=L0(t);let o=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),o+=n*2+8,i.v>28&&i.v!==o&&ro.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==o&&ro.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(vt(o)),r.push(Xa(at(i.r))),r.push(Xa(at(i.s))),tp(r)}function z7(e,t){if(e.type==null||e.type===0)return e.accessList!=null&&ro.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),xoe(e,t);switch(e.type){case 1:return poe(e,t);case 2:return hoe(e,t)}return ro.throwError(`unsupported transaction type: ${e.type}`,ct.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}class LP{constructor(t){wt(this,"alphabet",t),wt(this,"base",t.length),wt(this,"_alphabetMap",{}),wt(this,"_leader",t.charAt(0));for(let r=0;r0;)n.push(a%this.base),a=a/this.base|0}let i="";for(let o=0;r[o]===0&&o=0;--o)i+=this.alphabet[n[o]];return i}decode(t){if(typeof t!="string")throw new TypeError("Expected String");let r=[];if(t.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;o>0;)r.push(o&255),o>>=8}for(let n=0;t[n]===this._leader&&n>24&255,l[t.length+1]=f>>16&255,l[t.length+2]=f>>8&255,l[t.length+3]=f&255;let d=at(ip(i,e,l));o||(o=d.length,u=new Uint8Array(o),a=Math.ceil(n/o),c=n-(a-1)*o),u.set(d);for(let v=1;v=256)throw new Error("Depth too large!");return H7(rs([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",vt(this.depth),this.parentFingerprint,On(vt(this.index),4),this.chainCode,this.privateKey!=null?rs(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new vi($l,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw new Error("invalid index - "+String(t));let r=this.path;r&&(r+="/"+(t&~Uu));const n=new Uint8Array(37);if(t&Uu){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(at(this.privateKey),1),r&&(r+="'")}else n.set(at(this.publicKey));for(let f=24;f>=0;f-=8)n[33+(f>>3)]=t>>24-f&255;const i=at(ip(c0.sha512,this.chainCode,n)),o=i.slice(0,32),a=i.slice(32);let s=null,l=null;this.privateKey?s=Cd(_t.from(o).add(this.privateKey).mod(Eoe)):l=new gc(vt(o))._addPoint(this.publicKey);let c=r;const u=this.mnemonic;return u&&(c=Object.freeze({phrase:u.phrase,path:r,locale:u.locale||"en"})),new vi($l,s,l,this.fingerprint,Cd(a),t,this.depth+1,c)}derivePath(t){const r=t.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+t);r[0]==="m"&&r.shift();let n=this;for(let i=0;i=Uu)throw new Error("invalid path index - "+o);n=n._derive(Uu+a)}else if(o.match(/^[0-9]+$/)){const a=parseInt(o);if(a>=Uu)throw new Error("invalid path index - "+o);n=n._derive(a)}else throw new Error("invalid path component - "+o)}return n}static _fromSeed(t,r){const n=at(t);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=at(ip(c0.sha512,Moe,n));return new vi($l,Cd(i.slice(0,32)),null,"0x00000000",Cd(i.slice(32)),0,0,r)}static fromMnemonic(t,r,n){return n=n3(n),t=i3(UP(t,n),n),vi._fromSeed(Aoe(t,r),{phrase:t,path:"m",locale:n.locale})}static fromSeed(t){return vi._fromSeed(t,null)}static fromExtendedKey(t){const r=NP.decode(t);(r.length!==82||H7(r.slice(0,78))!==t)&&op.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=vt(r.slice(5,9)),o=parseInt(vt(r.slice(9,13)).substring(2),16),a=vt(r.slice(13,45)),s=r.slice(45,78);switch(vt(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new vi($l,null,vt(s),i,a,o,n,null);case"0x0488ade4":case"0x04358394 ":if(s[0]!==0)break;return new vi($l,vt(s.slice(1)),null,i,a,o,n,null)}return op.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function Aoe(e,t){t||(t="");const r=na("mnemonic"+t,ll.NFKD);return r3(na(e,ll.NFKD),r,2048,64,"sha512")}function UP(e,t){t=n3(t),op.checkNormalize();const r=t.split(e);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=at(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let c=0;c>3]|=1<<7-i%8),i++}const o=32*r.length/3,a=r.length/3,s=jP(a);if((at(u0(n.slice(0,o/8)))[0]&s)!==(n[n.length-1]&s))throw new Error("invalid checksum");return vt(n.slice(0,o/8))}function i3(e,t){if(t=n3(t),e=at(e),e.length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let a=0;a8?(r[r.length-1]<<=8,r[r.length-1]|=e[a],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[a]>>8-n,r.push(e[a]&Poe(8-n)),n+=3);const i=e.length/4,o=at(u0(e))[0]&jP(i);return r[r.length-1]<<=i,r[r.length-1]|=o>>8-i,t.join(r.map(a=>t.getWord(a)))}const koe="random/5.7.0",u2=new ct(koe);function _oe(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const W7=_oe();let eh=W7.crypto||W7.msCrypto;(!eh||!eh.getRandomValues)&&(u2.warn("WARNING: Missing strong random number source"),eh={getRandomValues:function(e){return u2.throwError("no secure random source avaialble",ct.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function tf(e){(e<=0||e>1024||e%1||e!=e)&&u2.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return eh.getRandomValues(t),at(t)}var HP={exports:{}};(function(e,t){(function(r){function n(E){return parseInt(E)===E}function i(E){if(!n(E.length))return!1;for(var A=0;A255)return!1;return!0}function o(E,A){if(E.buffer&&ArrayBuffer.isView(E)&&E.name==="Uint8Array")return A&&(E.slice?E=E.slice():E=Array.prototype.slice.call(E)),E;if(Array.isArray(E)){if(!i(E))throw new Error("Array contains invalid value: "+E);return new Uint8Array(E)}if(n(E.length)&&i(E))return new Uint8Array(E);throw new Error("unsupported array-like object")}function a(E){return new Uint8Array(E)}function s(E,A,z,H,O){(H!=null||O!=null)&&(E.slice?E=E.slice(H,O):E=Array.prototype.slice.call(E,H,O)),A.set(E,z)}var l=function(){function E(z){var H=[],O=0;for(z=encodeURI(z);O191&&V<224?(H.push(String.fromCharCode((V&31)<<6|z[O+1]&63)),O+=2):(H.push(String.fromCharCode((V&15)<<12|(z[O+1]&63)<<6|z[O+2]&63)),O+=3)}return H.join("")}return{toBytes:E,fromBytes:A}}(),c=function(){function E(H){for(var O=[],V=0;V>4]+A[X&15])}return O.join("")}return{toBytes:E,fromBytes:z}}(),u={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],b=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],v=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],w=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],C=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],M=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],B=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],D=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],F=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],N=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],_=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],L=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function I(E){for(var A=[],z=0;z>2,this._Ke[V][A%4]=O[A],this._Kd[E-V][A%4]=O[A];for(var X=0,J=H,G;J>16&255]<<24^d[G>>8&255]<<16^d[G&255]<<8^d[G>>24&255]^f[X]<<24,X+=1,H!=8)for(var A=1;A>8&255]<<8^d[G>>16&255]<<16^d[G>>24&255]<<24;for(var A=H/2+1;A>2,q=J%4,this._Ke[j][q]=O[A],this._Kd[E-j][q]=O[A++],J++}for(var j=1;j>24&255]^N[G>>16&255]^_[G>>8&255]^L[G&255]},R.prototype.encrypt=function(E){if(E.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var A=this._Ke.length-1,z=[0,0,0,0],H=I(E),O=0;O<4;O++)H[O]^=this._Ke[0][O];for(var V=1;V>24&255]^v[H[(O+1)%4]>>16&255]^w[H[(O+2)%4]>>8&255]^C[H[(O+3)%4]&255]^this._Ke[V][O];H=z.slice()}for(var X=a(16),J,O=0;O<4;O++)J=this._Ke[A][O],X[4*O]=(d[H[O]>>24&255]^J>>24)&255,X[4*O+1]=(d[H[(O+1)%4]>>16&255]^J>>16)&255,X[4*O+2]=(d[H[(O+2)%4]>>8&255]^J>>8)&255,X[4*O+3]=(d[H[(O+3)%4]&255]^J)&255;return X},R.prototype.decrypt=function(E){if(E.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var A=this._Kd.length-1,z=[0,0,0,0],H=I(E),O=0;O<4;O++)H[O]^=this._Kd[0][O];for(var V=1;V>24&255]^M[H[(O+3)%4]>>16&255]^B[H[(O+2)%4]>>8&255]^D[H[(O+1)%4]&255]^this._Kd[V][O];H=z.slice()}for(var X=a(16),J,O=0;O<4;O++)J=this._Kd[A][O],X[4*O]=(b[H[O]>>24&255]^J>>24)&255,X[4*O+1]=(b[H[(O+3)%4]>>16&255]^J>>16)&255,X[4*O+2]=(b[H[(O+2)%4]>>8&255]^J>>8)&255,X[4*O+3]=(b[H[(O+1)%4]&255]^J)&255;return X};var m=function(E){if(!(this instanceof m))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new R(E)};m.prototype.encrypt=function(E){if(E=o(E),E.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var A=a(E.length),z=a(16),H=0;H=0;--A)this._counter[A]=E%256,E=E>>8},S.prototype.setBytes=function(E){if(E=o(E,!0),E.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=E},S.prototype.increment=function(){for(var E=15;E>=0;E--)if(this._counter[E]===255)this._counter[E]=0;else{this._counter[E]++;break}};var T=function(E,A){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",A instanceof S||(A=new S(A)),this._counter=A,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new R(E)};T.prototype.encrypt=function(E){for(var A=o(E,!0),z=0;z16)throw new Error("PKCS#7 padding byte out of range");for(var z=E.length-A,H=0;H=64;){let P=C,E=y,A=M,z=B,H=D,O=F,V=N,X=_,J,G,j,q,K;for(G=0;G<16;G++)j=k+G*4,L[G]=(T[j]&255)<<24|(T[j+1]&255)<<16|(T[j+2]&255)<<8|T[j+3]&255;for(G=16;G<64;G++)J=L[G-2],q=(J>>>17|J<<15)^(J>>>19|J<<13)^J>>>10,J=L[G-15],K=(J>>>7|J<<25)^(J>>>18|J<<14)^J>>>3,L[G]=(q+L[G-7]|0)+(K+L[G-16]|0)|0;for(G=0;G<64;G++)q=(((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&O^~H&V)|0)+(X+(w[G]+L[G]|0)|0)|0,K=((P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10))+(P&E^P&A^E&A)|0,X=V,V=O,O=H,H=z+q|0,z=A,A=E,E=P,P=q+K|0;C=C+P|0,y=y+E|0,M=M+A|0,B=B+z|0,D=D+H|0,F=F+O|0,N=N+V|0,_=_+X|0,k+=64,$-=64}}I(v);let R,m=v.length%64,g=v.length/536870912|0,h=v.length<<3,x=m<56?56:120,S=v.slice(v.length-m,v.length);for(S.push(128),R=m+1;R>>24&255),S.push(g>>>16&255),S.push(g>>>8&255),S.push(g>>>0&255),S.push(h>>>24&255),S.push(h>>>16&255),S.push(h>>>8&255),S.push(h>>>0&255),I(S),[C>>>24&255,C>>>16&255,C>>>8&255,C>>>0&255,y>>>24&255,y>>>16&255,y>>>8&255,y>>>0&255,M>>>24&255,M>>>16&255,M>>>8&255,M>>>0&255,B>>>24&255,B>>>16&255,B>>>8&255,B>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,F>>>24&255,F>>>16&255,F>>>8&255,F>>>0&255,N>>>24&255,N>>>16&255,N>>>8&255,N>>>0&255,_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255]}function o(v,w,C){v=v.length<=64?v:i(v);const y=64+w.length+4,M=new Array(y),B=new Array(64);let D,F=[];for(D=0;D<64;D++)M[D]=54;for(D=0;D=y-4;_--){if(M[_]++,M[_]<=255)return;M[_]=0}}for(;C>=32;)N(),F=F.concat(i(B.concat(i(M)))),C-=32;return C>0&&(N(),F=F.concat(i(B.concat(i(M))).slice(0,C))),F}function a(v,w,C,y,M){let B;for(u(v,(2*C-1)*16,M,0,16),B=0;B<2*C;B++)c(v,B*16,M,16),l(M,y),u(M,0,v,w+B*16,16);for(B=0;B>>32-w}function l(v,w){u(v,0,w,0,16);for(let C=8;C>0;C-=2)w[4]^=s(w[0]+w[12],7),w[8]^=s(w[4]+w[0],9),w[12]^=s(w[8]+w[4],13),w[0]^=s(w[12]+w[8],18),w[9]^=s(w[5]+w[1],7),w[13]^=s(w[9]+w[5],9),w[1]^=s(w[13]+w[9],13),w[5]^=s(w[1]+w[13],18),w[14]^=s(w[10]+w[6],7),w[2]^=s(w[14]+w[10],9),w[6]^=s(w[2]+w[14],13),w[10]^=s(w[6]+w[2],18),w[3]^=s(w[15]+w[11],7),w[7]^=s(w[3]+w[15],9),w[11]^=s(w[7]+w[3],13),w[15]^=s(w[11]+w[7],18),w[1]^=s(w[0]+w[3],7),w[2]^=s(w[1]+w[0],9),w[3]^=s(w[2]+w[1],13),w[0]^=s(w[3]+w[2],18),w[6]^=s(w[5]+w[4],7),w[7]^=s(w[6]+w[5],9),w[4]^=s(w[7]+w[6],13),w[5]^=s(w[4]+w[7],18),w[11]^=s(w[10]+w[9],7),w[8]^=s(w[11]+w[10],9),w[9]^=s(w[8]+w[11],13),w[10]^=s(w[9]+w[8],18),w[12]^=s(w[15]+w[14],7),w[13]^=s(w[12]+w[15],9),w[14]^=s(w[13]+w[12],13),w[15]^=s(w[14]+w[13],18);for(let C=0;C<16;++C)v[C]+=w[C]}function c(v,w,C,y){for(let M=0;M=256)return!1}return!0}function d(v,w){if(typeof v!="number"||v%1)throw new Error("invalid "+w);return v}function b(v,w,C,y,M,B,D){if(C=d(C,"N"),y=d(y,"r"),M=d(M,"p"),B=d(B,"dkLen"),C===0||C&C-1)throw new Error("N must be power of 2");if(C>2147483647/128/y)throw new Error("N too large");if(y>2147483647/128/M)throw new Error("r too large");if(!f(v))throw new Error("password must be an array or buffer");if(v=Array.prototype.slice.call(v),!f(w))throw new Error("salt must be an array or buffer");w=Array.prototype.slice.call(w);let F=o(v,w,M*128*y);const N=new Uint32Array(M*32*y);for(let H=0;HE&&(H=E);for(let V=0;VE&&(H=E);for(let V=0;V>0&255),F.push(N[V]>>8&255),F.push(N[V]>>16&255),F.push(N[V]>>24&255);const O=o(v,F,B);return D&&D(null,1,O),O}D&&A(z)};if(!D)for(;;){const H=z();if(H!=null)return H}z()}const p={scrypt:function(v,w,C,y,M,B,D){return new Promise(function(F,N){let _=0;D&&D(0),b(v,w,C,y,M,B,function(L,I,R){if(L)N(L);else if(R)D&&_!==1&&D(1),F(new Uint8Array(R));else if(D&&I!==_)return _=I,D(I)})})},syncScrypt:function(v,w,C,y,M,B){return new Uint8Array(b(v,w,C,y,M,B))}};e.exports=p})()})(GP);var Ioe=GP.exports;const a3=_r(Ioe);var Foe=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const f2=new ct(WP);function V7(e){return e!=null&&e.mnemonic&&e.mnemonic.phrase}class Ooe extends AP{isKeystoreAccount(t){return!!(t&&t._isKeystoreAccount)}}function Doe(e,t,r){if(mr(e,"crypto/cipher")==="aes-128-ctr"){const i=Ys(mr(e,"crypto/cipherparams/iv")),o=new Co.Counter(i),a=new Co.ModeOfOperation.ctr(t,o);return at(a.decrypt(r))}return null}function YP(e,t){const r=Ys(mr(e,"crypto/ciphertext"));if(vt(xn(rs([t.slice(16,32),r]))).substring(2)!==mr(e,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=Doe(e,t.slice(0,16),r);i||f2.throwError("unsupported cipher",ct.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const o=t.slice(32,64),a=vc(i);if(e.address){let l=e.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),Oi(l)!==a)throw new Error("address mismatch")}const s={_isKeystoreAccount:!0,address:a,privateKey:vt(i)};if(mr(e,"x-ethers/version")==="0.1"){const l=Ys(mr(e,"x-ethers/mnemonicCiphertext")),c=Ys(mr(e,"x-ethers/mnemonicCounter")),u=new Co.Counter(c),f=new Co.ModeOfOperation.ctr(o,u),d=mr(e,"x-ethers/path")||f0,b=mr(e,"x-ethers/locale")||"en",p=at(f.decrypt(l));try{const v=i3(p,b),w=vi.fromMnemonic(v,null,b).derivePath(d);if(w.privateKey!=s.privateKey)throw new Error("mnemonic mismatch");s.mnemonic=w.mnemonic}catch(v){if(v.code!==ct.errors.INVALID_ARGUMENT||v.argument!=="wordlist")throw v}}return new Ooe(s)}function XP(e,t,r,n,i){return at(r3(e,t,r,n,i))}function Loe(e,t,r,n,i){return Promise.resolve(XP(e,t,r,n,i))}function JP(e,t,r,n,i){const o=o3(t),a=mr(e,"crypto/kdf");if(a&&typeof a=="string"){const s=function(l,c){return f2.throwArgumentError("invalid key-derivation function parameters",l,c)};if(a.toLowerCase()==="scrypt"){const l=Ys(mr(e,"crypto/kdfparams/salt")),c=parseInt(mr(e,"crypto/kdfparams/n")),u=parseInt(mr(e,"crypto/kdfparams/r")),f=parseInt(mr(e,"crypto/kdfparams/p"));(!c||!u||!f)&&s("kdf",a),c&c-1&&s("N",c);const d=parseInt(mr(e,"crypto/kdfparams/dklen"));return d!==32&&s("dklen",d),n(o,l,c,u,f,64,i)}else if(a.toLowerCase()==="pbkdf2"){const l=Ys(mr(e,"crypto/kdfparams/salt"));let c=null;const u=mr(e,"crypto/kdfparams/prf");u==="hmac-sha256"?c="sha256":u==="hmac-sha512"?c="sha512":s("prf",u);const f=parseInt(mr(e,"crypto/kdfparams/c")),d=parseInt(mr(e,"crypto/kdfparams/dklen"));return d!==32&&s("dklen",d),r(o,l,f,d,c)}}return f2.throwArgumentError("unsupported key-derivation function","kdf",a)}function Noe(e,t){const r=JSON.parse(e),n=JP(r,t,XP,a3.syncScrypt);return YP(r,n)}function zoe(e,t,r){return Foe(this,void 0,void 0,function*(){const n=JSON.parse(e),i=yield JP(n,t,Loe,a3.scrypt,r);return YP(n,i)})}function joe(e,t,r,n){try{if(Oi(e.address)!==vc(e.privateKey))throw new Error("address/privateKey mismatch");if(V7(e)){const w=e.mnemonic;if(vi.fromMnemonic(w.phrase,null,w.locale).derivePath(w.path||f0).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(w){return Promise.reject(w)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=at(e.privateKey),o=o3(t);let a=null,s=null,l=null;if(V7(e)){const w=e.mnemonic;a=at(UP(w.phrase,w.locale||"en")),s=w.path||f0,l=w.locale||"en"}let c=r.client;c||(c="ethers.js");let u=null;r.salt?u=at(r.salt):u=tf(32);let f=null;if(r.iv){if(f=at(r.iv),f.length!==16)throw new Error("invalid iv")}else f=tf(16);let d=null;if(r.uuid){if(d=at(r.uuid),d.length!==16)throw new Error("invalid uuid")}else d=tf(16);let b=1<<17,p=8,v=1;return r.scrypt&&(r.scrypt.N&&(b=r.scrypt.N),r.scrypt.r&&(p=r.scrypt.r),r.scrypt.p&&(v=r.scrypt.p)),a3.scrypt(o,u,b,p,v,64,n).then(w=>{w=at(w);const C=w.slice(0,16),y=w.slice(16,32),M=w.slice(32,64),B=new Co.Counter(f),D=new Co.ModeOfOperation.ctr(C,B),F=at(D.encrypt(i)),N=xn(rs([y,F])),_={address:e.address.substring(2).toLowerCase(),id:Toe(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:vt(f).substring(2)},ciphertext:vt(F).substring(2),kdf:"scrypt",kdfparams:{salt:vt(u).substring(2),n:b,dklen:32,p:v,r:p},mac:N.substring(2)}};if(a){const L=tf(16),I=new Co.Counter(L),R=new Co.ModeOfOperation.ctr(M,I),m=at(R.encrypt(a)),g=new Date,h=g.getUTCFullYear()+"-"+Hu(g.getUTCMonth()+1,2)+"-"+Hu(g.getUTCDate(),2)+"T"+Hu(g.getUTCHours(),2)+"-"+Hu(g.getUTCMinutes(),2)+"-"+Hu(g.getUTCSeconds(),2)+".0Z";_["x-ethers"]={client:c,gethFilename:"UTC--"+h+"--"+_.address,mnemonicCounter:vt(L).substring(2),mnemonicCiphertext:vt(m).substring(2),path:s,locale:l,version:"0.1"}}return JSON.stringify(_)})}function Uoe(e,t,r){if(qP(e)){r&&r(0);const n=VP(e,t);return r&&r(1),Promise.resolve(n)}return KP(e)?zoe(e,t,r):Promise.reject(new Error("invalid JSON wallet"))}function Hoe(e,t){if(qP(e))return VP(e,t);if(KP(e))return Noe(e,t);throw new Error("invalid JSON wallet")}const Woe="wallet/5.7.0";var q7=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const Bl=new ct(Woe);function Voe(e){return e!=null&&ln(e.privateKey,32)&&e.address!=null}function qoe(e){const t=e.mnemonic;return t&&t.phrase}class Ll extends Z4{constructor(t,r){if(super(),Voe(t)){const n=new gc(t.privateKey);if(wt(this,"_signingKey",()=>n),wt(this,"address",vc(this.publicKey)),this.address!==Oi(t.address)&&Bl.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),qoe(t)){const i=t.mnemonic;wt(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||f0,locale:i.locale||"en"}));const o=this.mnemonic,a=vi.fromMnemonic(o.phrase,null,o.locale).derivePath(o.path);vc(a.privateKey)!==this.address&&Bl.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else wt(this,"_mnemonic",()=>null)}else{if(gc.isSigningKey(t))t.curve!=="secp256k1"&&Bl.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),wt(this,"_signingKey",()=>t);else{typeof t=="string"&&t.match(/^[0-9a-f]*$/i)&&t.length===64&&(t="0x"+t);const n=new gc(t);wt(this,"_signingKey",()=>n)}wt(this,"_mnemonic",()=>null),wt(this,"address",vc(this.publicKey))}r&&!J4.isProvider(r)&&Bl.throwArgumentError("invalid provider","provider",r),wt(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(t){return new Ll(this,t)}signTransaction(t){return nc(t).then(r=>{r.from!=null&&(Oi(r.from)!==this.address&&Bl.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete r.from);const n=this._signingKey().signDigest(xn(z7(r)));return z7(r,n)})}signMessage(t){return q7(this,void 0,void 0,function*(){return A7(this._signingKey().signDigest(Lie(t)))})}_signTypedData(t,r,n){return q7(this,void 0,void 0,function*(){const i=yield Wn.resolveNames(t,r,n,o=>(this.provider==null&&Bl.throwError("cannot resolve ENS names without a provider",ct.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:o}),this.provider.resolveName(o)));return A7(this._signingKey().signDigest(Wn.hash(i.domain,r,i.value)))})}encrypt(t,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),joe(this,t,r,n)}static createRandom(t){let r=tf(16);t||(t={}),t.extraEntropy&&(r=at(s0(xn(rs([r,t.extraEntropy])),0,16)));const n=i3(r,t.locale);return Ll.fromMnemonic(n,t.path,t.locale)}static fromEncryptedJson(t,r,n){return Uoe(t,r,n).then(i=>new Ll(i))}static fromEncryptedJsonSync(t,r){return new Ll(Hoe(t,r))}static fromMnemonic(t,r,n){return r||(r=f0),new Ll(vi.fromMnemonic(t,null,n).derivePath(r))}}const Koe="units/5.7.0",Goe=new ct(Koe),ZP=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Kue(e,t){if(typeof t=="string"){const r=ZP.indexOf(t);r!==-1&&(t=3*r)}return Jd(e,t??18)}function Gue(e,t){if(typeof e!="string"&&Goe.throwArgumentError("value must be a string","value",e),typeof t=="string"){const r=ZP.indexOf(t);r!==-1&&(t=3*r)}return xo(e,t??18)}function Yoe(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function Xoe(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function s3(e,...t){if(!Xoe(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function K7(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Joe(e,t){s3(e);const r=t.outputLen;if(e.lengthnew DataView(e.buffer,e.byteOffset,e.byteLength),po=(e,t)=>e<<32-t|e>>>t;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Zoe(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function QP(e){return typeof e=="string"&&(e=Zoe(e)),s3(e),e}class Qoe{clone(){return this._cloneInto()}}function eae(e){const t=n=>e().update(QP(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function tae(e=32){if(sg&&typeof sg.getRandomValues=="function")return sg.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}function rae(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),s=Number(r&o),l=n?4:0,c=n?0:4;e.setUint32(t+l,a,n),e.setUint32(t+c,s,n)}const nae=(e,t,r)=>e&t^~e&r,iae=(e,t,r)=>e&t^e&r^t&r;class oae extends Qoe{constructor(t,r,n,i){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=lg(this.buffer)}update(t){K7(this);const{view:r,buffer:n,blockLen:i}=this;t=QP(t);const o=t.length;for(let a=0;ai-a&&(this.process(n,0),a=0);for(let f=a;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f>>3,v=po(b,17)^po(b,19)^b>>>10;ka[f]=v+ka[f-7]+p+ka[f-16]|0}let{A:n,B:i,C:o,D:a,E:s,F:l,G:c,H:u}=this;for(let f=0;f<64;f++){const d=po(s,6)^po(s,11)^po(s,25),b=u+d+nae(s,l,c)+aae[f]+ka[f]|0,v=(po(n,2)^po(n,13)^po(n,22))+iae(n,i,o)|0;u=c,c=l,l=s,s=a+b|0,a=o,o=i,i=n,n=b+v|0}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,a=a+this.D|0,s=s+this.E|0,l=l+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(n,i,o,a,s,l,c,u)}roundClean(){ka.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const lae=eae(()=>new sae);/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ap(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function cae(...e){const t=o=>o,r=(o,a)=>s=>o(a(s)),n=e.map(o=>o.encode).reduceRight(r,t),i=e.map(o=>o.decode).reduce(r,t);return{encode:n,decode:i}}function uae(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return t.map(r=>{if(r<0||r>=e.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${e.length})`);return e[r]})},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("alphabet.decode input should be array of strings");return t.map(r=>{if(typeof r!="string")throw new Error(`alphabet.decode: not string element=${r}`);const n=e.indexOf(r);if(n===-1)throw new Error(`Unknown letter: "${r}". Allowed: ${e}`);return n})}}}function fae(e=""){if(typeof e!="string")throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("join.encode input should be array of strings");for(let r of t)if(typeof r!="string")throw new Error(`join.encode: non-string input=${r}`);return t.join(e)},decode:t=>{if(typeof t!="string")throw new Error("join.decode input should be string");return t.split(e)}}}function dae(e,t="="){if(typeof t!="string")throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&typeof r[0]!="string")throw new Error("padding.encode input should be array of strings");for(let n of r)if(typeof n!="string")throw new Error(`padding.encode: non-string input=${n}`);for(;r.length*e%8;)r.push(t);return r},decode(r){if(!Array.isArray(r)||r.length&&typeof r[0]!="string")throw new Error("padding.encode input should be array of strings");for(let i of r)if(typeof i!="string")throw new Error(`padding.decode: non-string input=${i}`);let n=r.length;if(n*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if(!((n-1)*e%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,n)}}}function d2(e,t,r){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let n=0;const i=[],o=Array.from(e);for(o.forEach(a=>{if(a<0||a>=t)throw new Error(`Wrong integer: ${a}`)});;){let a=0,s=!0;for(let l=n;lt?eA(t,e%t):e,sp=(e,t)=>e+(t-eA(e,t));function h2(e,t,r,n){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(sp(t,r)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${sp(t,r)}`);let i=0,o=0;const a=2**r-1,s=[];for(const l of e){if(l>=2**t)throw new Error(`convertRadix2: invalid data word=${l} from=${t}`);if(i=i<32)throw new Error(`convertRadix2: carry overflow pos=${o} from=${t}`);for(o+=t;o>=r;o-=r)s.push((i>>o-r&a)>>>0);i&=2**o-1}if(i=i<=t)throw new Error("Excess padding");if(!n&&i)throw new Error(`Non-zero padding: ${i}`);return n&&o>0&&s.push(i>>>0),s}function hae(e){return{encode:t=>{if(!ap(t))throw new Error("radix.encode input should be Uint8Array");return d2(Array.from(t),2**8,e)},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(d2(t,e,2**8))}}}function pae(e,t=!1){if(e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(sp(8,e)>32||sp(e,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!ap(r))throw new Error("radix2.encode input should be Uint8Array");return h2(Array.from(r),8,e,!t)},decode:r=>{if(!Array.isArray(r)||r.length&&typeof r[0]!="number")throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(h2(r,e,8,t))}}}function xae(e,t){if(typeof t!="function")throw new Error("checksum fn should be function");return{encode(r){if(!ap(r))throw new Error("checksum.encode: input should be Uint8Array");const n=t(r).slice(0,e),i=new Uint8Array(r.length+e);return i.set(r),i.set(n,r.length),i},decode(r){if(!ap(r))throw new Error("checksum.decode: input should be Uint8Array");const n=r.slice(0,-e),i=t(n).slice(0,e),o=r.slice(-e);for(let a=0;ae[0]==="あいこくしん";function gae(e){if(typeof e!="string")throw new TypeError(`Invalid mnemonic type: ${typeof e}`);return e.normalize("NFKD")}function vae(e){const t=gae(e),r=t.split(" ");if(![12,15,18,21,24].includes(r.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:r}}function tA(e){s3(e,16,20,24,28,32)}function Yue(e,t=128){if(Yoe(t),t%32!==0||t>256)throw new TypeError("Invalid entropy");return wae(tae(t/8),e)}const bae=e=>{const t=8-e.length/4;return new Uint8Array([lae(e)[0]>>t<{if(typeof t!="string")throw new Error(`Wordlist: non-string element: ${t}`)}),Ed.chain(Ed.checksum(1,bae),Ed.radix2(11,!0),Ed.alphabet(e))}function yae(e,t){const{words:r}=vae(e),n=rA(t).decode(r);return tA(n),n}function wae(e,t){return tA(e),rA(t).encode(e).join(mae(t)?" ":" ")}function Xue(e,t){try{yae(e,t)}catch{return!1}return!0}const Jue=`abandon +ability +able +about +above +absent +absorb +abstract +absurd +abuse +access +accident +account +accuse +achieve +acid +acoustic +acquire +across +act +action +actor +actress +actual +adapt +add +addict +address +adjust +admit +adult +advance +advice +aerobic +affair +afford +afraid +again +age +agent +agree +ahead +aim +air +airport +aisle +alarm +album +alcohol +alert +alien +all +alley +allow +almost +alone +alpha +already +also +alter +always +amateur +amazing +among +amount +amused +analyst +anchor +ancient +anger +angle +angry +animal +ankle +announce +annual +another +answer +antenna +antique +anxiety +any +apart +apology +appear +apple +approve +april +arch +arctic +area +arena +argue +arm +armed +armor +army +around +arrange +arrest +arrive +arrow +art +artefact +artist +artwork +ask +aspect +assault +asset +assist +assume +asthma +athlete +atom +attack +attend +attitude +attract +auction +audit +august +aunt +author +auto +autumn +average +avocado +avoid +awake +aware +away +awesome +awful +awkward +axis +baby +bachelor +bacon +badge +bag +balance +balcony +ball +bamboo +banana +banner +bar +barely +bargain +barrel +base +basic +basket +battle +beach +bean +beauty +because +become +beef +before +begin +behave +behind +believe +below +belt +bench +benefit +best +betray +better +between +beyond +bicycle +bid +bike +bind +biology +bird +birth +bitter +black +blade +blame +blanket +blast +bleak +bless +blind +blood +blossom +blouse +blue +blur +blush +board +boat +body +boil +bomb +bone +bonus +book +boost +border +boring +borrow +boss +bottom +bounce +box +boy +bracket +brain +brand +brass +brave +bread +breeze +brick +bridge +brief +bright +bring +brisk +broccoli +broken +bronze +broom +brother +brown +brush +bubble +buddy +budget +buffalo +build +bulb +bulk +bullet +bundle +bunker +burden +burger +burst +bus +business +busy +butter +buyer +buzz +cabbage +cabin +cable +cactus +cage +cake +call +calm +camera +camp +can +canal +cancel +candy +cannon +canoe +canvas +canyon +capable +capital +captain +car +carbon +card +cargo +carpet +carry +cart +case +cash +casino +castle +casual +cat +catalog +catch +category +cattle +caught +cause +caution +cave +ceiling +celery +cement +census +century +cereal +certain +chair +chalk +champion +change +chaos +chapter +charge +chase +chat +cheap +check +cheese +chef +cherry +chest +chicken +chief +child +chimney +choice +choose +chronic +chuckle +chunk +churn +cigar +cinnamon +circle +citizen +city +civil +claim +clap +clarify +claw +clay +clean +clerk +clever +click +client +cliff +climb +clinic +clip +clock +clog +close +cloth +cloud +clown +club +clump +cluster +clutch +coach +coast +coconut +code +coffee +coil +coin +collect +color +column +combine +come +comfort +comic +common +company +concert +conduct +confirm +congress +connect +consider +control +convince +cook +cool +copper +copy +coral +core +corn +correct +cost +cotton +couch +country +couple +course +cousin +cover +coyote +crack +cradle +craft +cram +crane +crash +crater +crawl +crazy +cream +credit +creek +crew +cricket +crime +crisp +critic +crop +cross +crouch +crowd +crucial +cruel +cruise +crumble +crunch +crush +cry +crystal +cube +culture +cup +cupboard +curious +current +curtain +curve +cushion +custom +cute +cycle +dad +damage +damp +dance +danger +daring +dash +daughter +dawn +day +deal +debate +debris +decade +december +decide +decline +decorate +decrease +deer +defense +define +defy +degree +delay +deliver +demand +demise +denial +dentist +deny +depart +depend +deposit +depth +deputy +derive +describe +desert +design +desk +despair +destroy +detail +detect +develop +device +devote +diagram +dial +diamond +diary +dice +diesel +diet +differ +digital +dignity +dilemma +dinner +dinosaur +direct +dirt +disagree +discover +disease +dish +dismiss +disorder +display +distance +divert +divide +divorce +dizzy +doctor +document +dog +doll +dolphin +domain +donate +donkey +donor +door +dose +double +dove +draft +dragon +drama +drastic +draw +dream +dress +drift +drill +drink +drip +drive +drop +drum +dry +duck +dumb +dune +during +dust +dutch +duty +dwarf +dynamic +eager +eagle +early +earn +earth +easily +east +easy +echo +ecology +economy +edge +edit +educate +effort +egg +eight +either +elbow +elder +electric +elegant +element +elephant +elevator +elite +else +embark +embody +embrace +emerge +emotion +employ +empower +empty +enable +enact +end +endless +endorse +enemy +energy +enforce +engage +engine +enhance +enjoy +enlist +enough +enrich +enroll +ensure +enter +entire +entry +envelope +episode +equal +equip +era +erase +erode +erosion +error +erupt +escape +essay +essence +estate +eternal +ethics +evidence +evil +evoke +evolve +exact +example +excess +exchange +excite +exclude +excuse +execute +exercise +exhaust +exhibit +exile +exist +exit +exotic +expand +expect +expire +explain +expose +express +extend +extra +eye +eyebrow +fabric +face +faculty +fade +faint +faith +fall +false +fame +family +famous +fan +fancy +fantasy +farm +fashion +fat +fatal +father +fatigue +fault +favorite +feature +february +federal +fee +feed +feel +female +fence +festival +fetch +fever +few +fiber +fiction +field +figure +file +film +filter +final +find +fine +finger +finish +fire +firm +first +fiscal +fish +fit +fitness +fix +flag +flame +flash +flat +flavor +flee +flight +flip +float +flock +floor +flower +fluid +flush +fly +foam +focus +fog +foil +fold +follow +food +foot +force +forest +forget +fork +fortune +forum +forward +fossil +foster +found +fox +fragile +frame +frequent +fresh +friend +fringe +frog +front +frost +frown +frozen +fruit +fuel +fun +funny +furnace +fury +future +gadget +gain +galaxy +gallery +game +gap +garage +garbage +garden +garlic +garment +gas +gasp +gate +gather +gauge +gaze +general +genius +genre +gentle +genuine +gesture +ghost +giant +gift +giggle +ginger +giraffe +girl +give +glad +glance +glare +glass +glide +glimpse +globe +gloom +glory +glove +glow +glue +goat +goddess +gold +good +goose +gorilla +gospel +gossip +govern +gown +grab +grace +grain +grant +grape +grass +gravity +great +green +grid +grief +grit +grocery +group +grow +grunt +guard +guess +guide +guilt +guitar +gun +gym +habit +hair +half +hammer +hamster +hand +happy +harbor +hard +harsh +harvest +hat +have +hawk +hazard +head +health +heart +heavy +hedgehog +height +hello +helmet +help +hen +hero +hidden +high +hill +hint +hip +hire +history +hobby +hockey +hold +hole +holiday +hollow +home +honey +hood +hope +horn +horror +horse +hospital +host +hotel +hour +hover +hub +huge +human +humble +humor +hundred +hungry +hunt +hurdle +hurry +hurt +husband +hybrid +ice +icon +idea +identify +idle +ignore +ill +illegal +illness +image +imitate +immense +immune +impact +impose +improve +impulse +inch +include +income +increase +index +indicate +indoor +industry +infant +inflict +inform +inhale +inherit +initial +inject +injury +inmate +inner +innocent +input +inquiry +insane +insect +inside +inspire +install +intact +interest +into +invest +invite +involve +iron +island +isolate +issue +item +ivory +jacket +jaguar +jar +jazz +jealous +jeans +jelly +jewel +job +join +joke +journey +joy +judge +juice +jump +jungle +junior +junk +just +kangaroo +keen +keep +ketchup +key +kick +kid +kidney +kind +kingdom +kiss +kit +kitchen +kite +kitten +kiwi +knee +knife +knock +know +lab +label +labor +ladder +lady +lake +lamp +language +laptop +large +later +latin +laugh +laundry +lava +law +lawn +lawsuit +layer +lazy +leader +leaf +learn +leave +lecture +left +leg +legal +legend +leisure +lemon +lend +length +lens +leopard +lesson +letter +level +liar +liberty +library +license +life +lift +light +like +limb +limit +link +lion +liquid +list +little +live +lizard +load +loan +lobster +local +lock +logic +lonely +long +loop +lottery +loud +lounge +love +loyal +lucky +luggage +lumber +lunar +lunch +luxury +lyrics +machine +mad +magic +magnet +maid +mail +main +major +make +mammal +man +manage +mandate +mango +mansion +manual +maple +marble +march +margin +marine +market +marriage +mask +mass +master +match +material +math +matrix +matter +maximum +maze +meadow +mean +measure +meat +mechanic +medal +media +melody +melt +member +memory +mention +menu +mercy +merge +merit +merry +mesh +message +metal +method +middle +midnight +milk +million +mimic +mind +minimum +minor +minute +miracle +mirror +misery +miss +mistake +mix +mixed +mixture +mobile +model +modify +mom +moment +monitor +monkey +monster +month +moon +moral +more +morning +mosquito +mother +motion +motor +mountain +mouse +move +movie +much +muffin +mule +multiply +muscle +museum +mushroom +music +must +mutual +myself +mystery +myth +naive +name +napkin +narrow +nasty +nation +nature +near +neck +need +negative +neglect +neither +nephew +nerve +nest +net +network +neutral +never +news +next +nice +night +noble +noise +nominee +noodle +normal +north +nose +notable +note +nothing +notice +novel +now +nuclear +number +nurse +nut +oak +obey +object +oblige +obscure +observe +obtain +obvious +occur +ocean +october +odor +off +offer +office +often +oil +okay +old +olive +olympic +omit +once +one +onion +online +only +open +opera +opinion +oppose +option +orange +orbit +orchard +order +ordinary +organ +orient +original +orphan +ostrich +other +outdoor +outer +output +outside +oval +oven +over +own +owner +oxygen +oyster +ozone +pact +paddle +page +pair +palace +palm +panda +panel +panic +panther +paper +parade +parent +park +parrot +party +pass +patch +path +patient +patrol +pattern +pause +pave +payment +peace +peanut +pear +peasant +pelican +pen +penalty +pencil +people +pepper +perfect +permit +person +pet +phone +photo +phrase +physical +piano +picnic +picture +piece +pig +pigeon +pill +pilot +pink +pioneer +pipe +pistol +pitch +pizza +place +planet +plastic +plate +play +please +pledge +pluck +plug +plunge +poem +poet +point +polar +pole +police +pond +pony +pool +popular +portion +position +possible +post +potato +pottery +poverty +powder +power +practice +praise +predict +prefer +prepare +present +pretty +prevent +price +pride +primary +print +priority +prison +private +prize +problem +process +produce +profit +program +project +promote +proof +property +prosper +protect +proud +provide +public +pudding +pull +pulp +pulse +pumpkin +punch +pupil +puppy +purchase +purity +purpose +purse +push +put +puzzle +pyramid +quality +quantum +quarter +question +quick +quit +quiz +quote +rabbit +raccoon +race +rack +radar +radio +rail +rain +raise +rally +ramp +ranch +random +range +rapid +rare +rate +rather +raven +raw +razor +ready +real +reason +rebel +rebuild +recall +receive +recipe +record +recycle +reduce +reflect +reform +refuse +region +regret +regular +reject +relax +release +relief +rely +remain +remember +remind +remove +render +renew +rent +reopen +repair +repeat +replace +report +require +rescue +resemble +resist +resource +response +result +retire +retreat +return +reunion +reveal +review +reward +rhythm +rib +ribbon +rice +rich +ride +ridge +rifle +right +rigid +ring +riot +ripple +risk +ritual +rival +river +road +roast +robot +robust +rocket +romance +roof +rookie +room +rose +rotate +rough +round +route +royal +rubber +rude +rug +rule +run +runway +rural +sad +saddle +sadness +safe +sail +salad +salmon +salon +salt +salute +same +sample +sand +satisfy +satoshi +sauce +sausage +save +say +scale +scan +scare +scatter +scene +scheme +school +science +scissors +scorpion +scout +scrap +screen +script +scrub +sea +search +season +seat +second +secret +section +security +seed +seek +segment +select +sell +seminar +senior +sense +sentence +series +service +session +settle +setup +seven +shadow +shaft +shallow +share +shed +shell +sheriff +shield +shift +shine +ship +shiver +shock +shoe +shoot +shop +short +shoulder +shove +shrimp +shrug +shuffle +shy +sibling +sick +side +siege +sight +sign +silent +silk +silly +silver +similar +simple +since +sing +siren +sister +situate +six +size +skate +sketch +ski +skill +skin +skirt +skull +slab +slam +sleep +slender +slice +slide +slight +slim +slogan +slot +slow +slush +small +smart +smile +smoke +smooth +snack +snake +snap +sniff +snow +soap +soccer +social +sock +soda +soft +solar +soldier +solid +solution +solve +someone +song +soon +sorry +sort +soul +sound +soup +source +south +space +spare +spatial +spawn +speak +special +speed +spell +spend +sphere +spice +spider +spike +spin +spirit +split +spoil +sponsor +spoon +sport +spot +spray +spread +spring +spy +square +squeeze +squirrel +stable +stadium +staff +stage +stairs +stamp +stand +start +state +stay +steak +steel +stem +step +stereo +stick +still +sting +stock +stomach +stone +stool +story +stove +strategy +street +strike +strong +struggle +student +stuff +stumble +style +subject +submit +subway +success +such +sudden +suffer +sugar +suggest +suit +summer +sun +sunny +sunset +super +supply +supreme +sure +surface +surge +surprise +surround +survey +suspect +sustain +swallow +swamp +swap +swarm +swear +sweet +swift +swim +swing +switch +sword +symbol +symptom +syrup +system +table +tackle +tag +tail +talent +talk +tank +tape +target +task +taste +tattoo +taxi +teach +team +tell +ten +tenant +tennis +tent +term +test +text +thank +that +theme +then +theory +there +they +thing +this +thought +three +thrive +throw +thumb +thunder +ticket +tide +tiger +tilt +timber +time +tiny +tip +tired +tissue +title +toast +tobacco +today +toddler +toe +together +toilet +token +tomato +tomorrow +tone +tongue +tonight +tool +tooth +top +topic +topple +torch +tornado +tortoise +toss +total +tourist +toward +tower +town +toy +track +trade +traffic +tragic +train +transfer +trap +trash +travel +tray +treat +tree +trend +trial +tribe +trick +trigger +trim +trip +trophy +trouble +truck +true +truly +trumpet +trust +truth +try +tube +tuition +tumble +tuna +tunnel +turkey +turn +turtle +twelve +twenty +twice +twin +twist +two +type +typical +ugly +umbrella +unable +unaware +uncle +uncover +under +undo +unfair +unfold +unhappy +uniform +unique +unit +universe +unknown +unlock +until +unusual +unveil +update +upgrade +uphold +upon +upper +upset +urban +urge +usage +use +used +useful +useless +usual +utility +vacant +vacuum +vague +valid +valley +valve +van +vanish +vapor +various +vast +vault +vehicle +velvet +vendor +venture +venue +verb +verify +version +very +vessel +veteran +viable +vibrant +vicious +victory +video +view +village +vintage +violin +virtual +virus +visa +visit +visual +vital +vivid +vocal +voice +void +volcano +volume +vote +voyage +wage +wagon +wait +walk +wall +walnut +want +warfare +warm +warrior +wash +wasp +waste +water +wave +way +wealth +weapon +wear +weasel +weather +web +wedding +weekend +weird +welcome +west +wet +whale +what +wheat +wheel +when +where +whip +whisper +wide +width +wife +wild +will +win +window +wine +wing +wink +winner +winter +wire +wisdom +wise +wish +witness +wolf +woman +wonder +wood +wool +word +work +world +worry +worth +wrap +wreck +wrestle +wrist +write +wrong +yard +year +yellow +you +young +youth +zebra +zero +zone +zoo`.split(` +`);var Sae=Object.defineProperty,lp=Object.getOwnPropertySymbols,nA=Object.prototype.hasOwnProperty,iA=Object.prototype.propertyIsEnumerable,G7=(e,t,r)=>t in e?Sae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y7=(e,t)=>{for(var r in t||(t={}))nA.call(t,r)&&G7(e,r,t[r]);if(lp)for(var r of lp(t))iA.call(t,r)&&G7(e,r,t[r]);return e},Cae=(e,t)=>{var r={};for(var n in e)nA.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&lp)for(var n of lp(e))t.indexOf(n)<0&&iA.call(e,n)&&(r[n]=e[n]);return r};/** + * @license QR Code generator library (TypeScript) + * Copyright (c) Project Nayuki. + * SPDX-License-Identifier: MIT + */var cl;(e=>{const t=class{constructor(l,c,u,f){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],lt.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let d=[];for(let p=0;p7)throw new RangeError("Invalid value");let p,v;for(p=u;;p++){const M=t.getNumDataCodewords(p,c)*8,B=s.getTotalBits(l,p);if(B<=M){v=B;break}if(p>=f)throw new RangeError("Data too long")}for(const M of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])b&&v<=t.getNumDataCodewords(p,M)*8&&(c=M);let w=[];for(const M of l){n(M.mode.modeBits,4,w),n(M.numChars,M.mode.numCharCountBits(p),w);for(const B of M.getData())w.push(B)}o(w.length==v);const C=t.getNumDataCodewords(p,c)*8;o(w.length<=C),n(0,Math.min(4,C-w.length),w),n(0,(8-w.length%8)%8,w),o(w.length%8==0);for(let M=236;w.lengthy[B>>>3]|=M<<7-(B&7)),new t(p,c,y,d)}getModule(l,c){return 0<=l&&l>>9)*1335;const f=(c<<10|u)^21522;o(f>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,i(f,d));this.setFunctionModule(8,7,i(f,6)),this.setFunctionModule(8,8,i(f,7)),this.setFunctionModule(7,8,i(f,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,i(f,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,i(f,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,i(f,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;o(c>>>18==0);for(let u=0;u<18;u++){const f=i(c,u),d=this.size-11+u%3,b=Math.floor(u/3);this.setFunctionModule(d,b,f),this.setFunctionModule(b,d,f)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let f=-4;f<=4;f++){const d=Math.max(Math.abs(f),Math.abs(u)),b=l+f,p=c+u;0<=b&&b{(M!=v-d||D>=p)&&y.push(B[M])});return o(y.length==b),y}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let f=0;f>>3],7-(c&7)),c++)}}o(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c5&&l++):(this.finderPenaltyAddHistory(p,v),b||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),b=this.modules[d][w],p=1);l+=this.finderPenaltyTerminateAndCount(b,p,v)*t.PENALTY_N3}for(let d=0;d5&&l++):(this.finderPenaltyAddHistory(p,v),b||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),b=this.modules[w][d],p=1);l+=this.finderPenaltyTerminateAndCount(b,p,v)*t.PENALTY_N3}for(let d=0;db+(p?1:0),c);const u=this.size*this.size,f=Math.ceil(Math.abs(c*20-u*10)/u)-1;return o(0<=f&&f<=9),l+=f*t.PENALTY_N4,o(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let f=this.size-7;u.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return o(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let f=0;f0);for(const f of l){const d=f^u.shift();u.push(0),c.forEach((b,p)=>u[p]^=t.reedSolomonMultiply(b,d))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let f=7;f>=0;f--)u=u<<1^(u>>>7)*285,u^=(c>>>f&1)*l;return o(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];o(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};let r=t;r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;function n(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let f=c-1;f>=0;f--)u.push(l>>>f&1)}function i(l,c){return(l>>>c&1)!=0}function o(l){if(!l)throw new Error("Assertion error")}const a=class{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)n(u,8,c);return new a(a.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!a.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u=1<{(t=>{const r=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};let n=r;n.LOW=new r(0,1),n.MEDIUM=new r(1,0),n.QUARTILE=new r(2,3),n.HIGH=new r(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(cl||(cl={}));(e=>{(t=>{const r=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};let n=r;n.NUMERIC=new r(1,[10,12,14]),n.ALPHANUMERIC=new r(2,[9,11,13]),n.BYTE=new r(4,[8,16,16]),n.KANJI=new r(8,[8,10,12]),n.ECI=new r(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(cl||(cl={}));var rf=cl;/** + * @license qrcode.react + * Copyright (c) Paul O'Shannessy + * SPDX-License-Identifier: ISC + */var Eae={L:rf.QrCode.Ecc.LOW,M:rf.QrCode.Ecc.MEDIUM,Q:rf.QrCode.Ecc.QUARTILE,H:rf.QrCode.Ecc.HIGH},Mae=128,Pae="L",Aae="#FFFFFF",kae="#000000",_ae=!1,oA=4,Rae=.1;function Tae(e,t=0){const r=[];return e.forEach(function(n,i){let o=null;n.forEach(function(a,s){if(!a&&o!==null){r.push(`M${o+t} ${i+t}h${s-o}v1H${o+t}z`),o=null;return}if(s===n.length-1){if(!a)return;o===null?r.push(`M${s+t},${i+t} h1v1H${s+t}z`):r.push(`M${o+t},${i+t} h${s+1-o}v1H${o+t}z`);return}a&&o===null&&(o=s)})}),r.join("")}function $ae(e,t){return e.slice().map((r,n)=>n=t.y+t.h?r:r.map((i,o)=>o=t.x+t.w?i:!1))}function Bae(e,t,r,n){if(n==null)return null;const i=r?oA:0,o=e.length+i*2,a=Math.floor(t*Rae),s=o/t,l=(n.width||a)*s,c=(n.height||a)*s,u=n.x==null?e.length/2-l/2:n.x*s,f=n.y==null?e.length/2-c/2:n.y*s;let d=null;if(n.excavate){let b=Math.floor(u),p=Math.floor(f),v=Math.ceil(l+u-b),w=Math.ceil(c+f-p);d={x:b,y:p,w:v,h:w}}return{x:u,y:f,h:c,w:l,excavation:d}}var Iae=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function Zue(e){const t=e,{value:r,size:n=Mae,level:i=Pae,bgColor:o=Aae,fgColor:a=kae,includeMargin:s=_ae,style:l,imageSettings:c}=t,u=Cae(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=c==null?void 0:c.src,d=U.useRef(null),b=U.useRef(null),[p,v]=U.useState(!1);U.useEffect(()=>{if(d.current!=null){const y=d.current,M=y.getContext("2d");if(!M)return;let B=rf.QrCode.encodeText(r,Eae[i]).getModules();const D=s?oA:0,F=B.length+D*2,N=Bae(B,n,s,c),_=b.current,L=N!=null&&_!==null&&_.complete&&_.naturalHeight!==0&&_.naturalWidth!==0;L&&N.excavation!=null&&(B=$ae(B,N.excavation));const I=window.devicePixelRatio||1;y.height=y.width=n*I;const R=n/F*I;M.scale(R,R),M.fillStyle=o,M.fillRect(0,0,F,F),M.fillStyle=a,Iae?M.fill(new Path2D(Tae(B,D))):B.forEach(function(m,g){m.forEach(function(h,x){h&&M.fillRect(x+D,g+D,1,1)})}),L&&M.drawImage(_,N.x+D,N.y+D,N.w,N.h)}}),U.useEffect(()=>{v(!1)},[f]);const w=Y7({height:n,width:n},l);let C=null;return f!=null&&(C=mn.createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{v(!0)},ref:b})),mn.createElement(mn.Fragment,null,mn.createElement("canvas",Y7({style:w,height:n,width:n,ref:d},u)),C)}var aA={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",a=0;a0)return Lae(e);if(r==="number"&&isNaN(e)===!1)return t.long?zae(e):Nae(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Lae(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Oae;case"days":case"day":case"d":return r*x0;case"hours":case"hour":case"hrs":case"hr":case"h":return r*p0;case"minutes":case"minute":case"mins":case"min":case"m":return r*h0;case"seconds":case"second":case"secs":case"sec":case"s":return r*d0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Nae(e){return e>=x0?Math.round(e/x0)+"d":e>=p0?Math.round(e/p0)+"h":e>=h0?Math.round(e/h0)+"m":e>=d0?Math.round(e/d0)+"s":e+"ms"}function zae(e){return Md(e,x0,"day")||Md(e,p0,"hour")||Md(e,h0,"minute")||Md(e,d0,"second")||e+" ms"}function Md(e,t,r){if(!(e=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}};function i(c){var u=this.useColors;if(c[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+c[0]+(u?"%c ":" ")+"+"+t.humanize(this.diff),!!u){var f="color: "+this.color;c.splice(1,0,f,"color: inherit");var d=0,b=0;c[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(d++,p==="%c"&&(b=d))}),c.splice(b,0,f)}}function o(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch{}}function s(){var c;try{c=t.storage.debug}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=r.DEBUG),c}t.enable(s());function l(){try{return window.localStorage}catch{}}})(p2,p2.exports);var Uae=p2.exports,X7=Uae("jsonp"),Hae=qae,Wae=0;function Vae(){}function qae(e,t,r){typeof t=="function"&&(r=t,t={}),t||(t={});var n=t.prefix||"__jp",i=t.name||n+Wae++,o=t.param||"callback",a=t.timeout!=null?t.timeout:6e4,s=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head,c,u;a&&(u=setTimeout(function(){f(),r&&r(new Error("Timeout"))},a));function f(){c.parentNode&&c.parentNode.removeChild(c),window[i]=Vae,u&&clearTimeout(u)}function d(){window[i]&&f()}return window[i]=function(b){X7("jsonp got",b),f(),r&&r(null,b)},e+=(~e.indexOf("?")?"&":"?")+o+"="+s(i),e=e.replace("?&","?"),X7('jsonp req "%s"',e),c=document.createElement("script"),c.src=e,l.parentNode.insertBefore(c,l),d}const bl=_r(Hae);var Kae=Object.defineProperty,Gae=Object.defineProperties,Yae=Object.getOwnPropertyDescriptors,cp=Object.getOwnPropertySymbols,lA=Object.prototype.hasOwnProperty,cA=Object.prototype.propertyIsEnumerable,J7=(e,t,r)=>t in e?Kae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xn=(e,t)=>{for(var r in t||(t={}))lA.call(t,r)&&J7(e,r,t[r]);if(cp)for(var r of cp(t))cA.call(t,r)&&J7(e,r,t[r]);return e},q1=(e,t)=>Gae(e,Yae(t)),K1=(e,t)=>{var r={};for(var n in e)lA.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cp)for(var n of cp(e))t.indexOf(n)<0&&cA.call(e,n)&&(r[n]=e[n]);return r};function z0(e){return r=>{var n=r,{bgStyle:i={},borderRadius:o=0,iconFillColor:a="white",round:s=!1,size:l=64}=n,c=K1(n,["bgStyle","borderRadius","iconFillColor","round","size"]);return Y.jsxs("svg",q1(Xn({viewBox:"0 0 64 64",width:l,height:l},c),{children:[s?Y.jsx("circle",{cx:"32",cy:"32",r:"32",fill:e.color,style:i}):Y.jsx("rect",{width:"64",height:"64",rx:o,ry:o,fill:e.color,style:i}),Y.jsx("path",{d:e.path,fill:a})]}))}}function Kt(e){const t=Object.entries(e).filter(([,r])=>r!=null).map(([r,n])=>`${encodeURIComponent(r)}=${encodeURIComponent(String(n))}`);return t.length>0?`?${t.join("&")}`:""}const Xae=e=>!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function",Jae=(e,t)=>({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-t/2}),Zae=(e,t)=>({top:(window.screen.height-t)/2,left:(window.screen.width-e)/2});function Qae(e,t,r){var n=t,{height:i,width:o}=n,a=K1(n,["height","width"]);const s=Xn({height:i,width:o,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},a),l=window.open(e,"",Object.keys(s).map(c=>`${c}=${s[c]}`).join(", "));if(r){const c=window.setInterval(()=>{try{(l===null||l.closed)&&(window.clearInterval(c),r(l))}catch{}},1e3)}return l}function ese(e){var t=e,{beforeOnClick:r,children:n,className:i,disabled:o,disabledStyle:a={opacity:.6},forwardedRef:s,htmlTitle:l,networkLink:c,networkName:u,onClick:f,onShareWindowClose:d,openShareDialogOnClick:b=!0,opts:p,resetButtonStyle:v=!0,style:w,url:C,windowHeight:y=400,windowPosition:M="windowCenter",windowWidth:B=550}=t,D=K1(t,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","htmlTitle","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"]);const F=async L=>{const I=c(C,p);if(!o){if(L.preventDefault(),r){const R=r();Xae(R)&&await R}if(b){const R=Xn({height:y,width:B},M==="windowCenter"?Jae(B,y):Zae(B,y));Qae(I,R,d)}f&&f(L,I)}},N=sA("react-share__ShareButton",{"react-share__ShareButton--disabled":!!o,disabled:!!o},i),_=Xn(Xn(v?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},w),o&&a);return Y.jsx("button",q1(Xn({},D),{className:N,onClick:F,ref:s,style:_,title:l,children:n}))}function dr(e,t,r,n){function i(o,a){const s=r(o),l=Xn({},o);return Object.keys(s).forEach(u=>{delete l[u]}),Y.jsx(ese,q1(Xn(Xn({},n),l),{forwardedRef:a,networkName:e,networkLink:t,opts:r(o)}))}return i.displayName=`ShareButton-${e}`,U.forwardRef(i)}function tse(e,{subject:t,body:r,separator:n}){return"mailto:"+Kt({subject:t,body:r?r+n+e:e})}dr("email",tse,e=>({subject:e.subject,body:e.body,separator:e.separator||" "}),{openShareDialogOnClick:!1,onClick:(e,t)=>{window.location.href=t}});const rse=z0({color:"#0965FE",networkName:"facebook",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"}),Que=rse;function nse(e,{appId:t,redirectUri:r,to:n}){return"https://www.facebook.com/dialog/send"+Kt({link:e,redirect_uri:r||e,app_id:t,to:n})}dr("facebookmessenger",nse,e=>({appId:e.appId,redirectUri:e.redirectUri,to:e.to}),{windowWidth:1e3,windowHeight:820});class ise extends Error{constructor(t){super(t),this.name="AssertionError"}}function ir(e,t){if(!e)throw new ise(t)}function ose(e,{hashtag:t}){return ir(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+Kt({u:e,hashtag:t})}const ase=dr("facebook",ose,e=>({hashtag:e.hashtag}),{windowWidth:550,windowHeight:400}),efe=ase;function sse(){const e=U.useRef(!1);return U.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),U.useCallback(()=>e.current,[])}function lse(e){var t=e,{children:r=d=>d,className:n,getCount:i,url:o}=t,a=K1(t,["children","className","getCount","url"]);const s=sse(),[l,c]=U.useState(void 0),[u,f]=U.useState(!1);return U.useEffect(()=>{f(!0),i(o,d=>{s()&&(c(d),f(!1))})},[o]),Y.jsx("span",q1(Xn({className:sA("react-share__ShareCount",n)},a),{children:!u&&l!==void 0&&r(l)}))}function yl(e){const t=r=>Y.jsx(lse,Xn({getCount:e},r));return t.displayName=`ShareCount(${e.name})`,t}function cse(e,t){const r=`https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`;bl(r,(n,i)=>{t(!n&&i&&i.og_object&&i.og_object.engagement?i.og_object.engagement.count:void 0)})}yl(cse);function use(e,{title:t}){return ir(e,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${t}`}dr("hatena",use,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});function fse(e,t){bl("https://bookmark.hatenaapis.com/count/entry"+Kt({url:e}),(n,i)=>{t(i??void 0)})}yl(fse);function dse(e,{title:t,description:r}){return ir(e,"instapaper.url"),"http://www.instapaper.com/hello2"+Kt({url:e,title:t,description:r})}dr("instapaper",dse,e=>({title:e.title,description:e.description}),{windowWidth:500,windowHeight:500,windowPosition:"windowCenter"});function hse(e,{title:t}){return ir(e,"line.url"),"https://social-plugins.line.me/lineit/share"+Kt({url:e,text:t})}dr("line",hse,e=>({title:e.title}),{windowWidth:500,windowHeight:500});const pse=z0({color:"#0077B5",networkName:"linkedin",path:"M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z"}),tfe=pse;function xse(e,{title:t,summary:r,source:n}){return ir(e,"linkedin.url"),"https://linkedin.com/shareArticle"+Kt({url:e,mini:"true",title:t,summary:r,source:n})}const mse=dr("linkedin",xse,({title:e,summary:t,source:r})=>({title:e,summary:t,source:r}),{windowWidth:750,windowHeight:600}),rfe=mse;function gse(e,{title:t,description:r}){return ir(e,"livejournal.url"),"https://www.livejournal.com/update.bml"+Kt({subject:t,event:r})}dr("livejournal",gse,e=>({title:e.title,description:e.description}),{windowWidth:660,windowHeight:460});function vse(e,{title:t,description:r,imageUrl:n}){return ir(e,"mailru.url"),"https://connect.mail.ru/share"+Kt({url:e,title:t,description:r,image_url:n})}dr("mailru",vse,e=>({title:e.title,description:e.description,imageUrl:e.imageUrl}),{windowWidth:660,windowHeight:460});function bse(e,{title:t,description:r,image:n}){return ir(e,"ok.url"),"https://connect.ok.ru/offer"+Kt({url:e,title:t,description:r,imageUrl:n})}dr("ok",bse,e=>({title:e.title,description:e.description,image:e.image}),{windowWidth:588,windowHeight:480,windowPosition:"screenCenter"});function yse(e,t){window.OK||(window.OK={Share:{count:function(o,a){var s,l;(l=(s=window.OK.callbacks)[o])==null||l.call(s,a)}},callbacks:[]});const r="https://connect.ok.ru/dk",n=window.OK.callbacks.length;return window.ODKL={updateCount(i,o){var a,s;const l=i===""?0:parseInt(i.replace("react-share-",""),10);(s=(a=window.OK.callbacks)[l])==null||s.call(a,o===""?void 0:parseInt(o,10))}},window.OK.callbacks.push(t),bl(r+Kt({"st.cmd":"extLike",uid:`react-share-${n}`,ref:e}))}yl(yse);function wse(e,{media:t,description:r,pinId:n}){return n?`https://pinterest.com/pin/${n}/repin/x/`:(ir(e,"pinterest.url"),ir(t,"pinterest.media"),"https://pinterest.com/pin/create/button/"+Kt({url:e,media:t,description:r}))}dr("pinterest",wse,e=>({media:e.media,description:e.description,pinId:e.pinId}),{windowWidth:1e3,windowHeight:730});function Sse(e,t){bl("https://api.pinterest.com/v1/urls/count.json"+Kt({url:e}),(n,i)=>{t(i?i.count:void 0)})}yl(Sse);function Cse(e,{title:t}){return ir(e,"pocket.url"),"https://getpocket.com/save"+Kt({url:e,title:t})}dr("pocket",Cse,e=>({title:e.title}),{windowWidth:500,windowHeight:500});const Ese=z0({color:"#FF5700",networkName:"reddit",path:"M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"}),nfe=Ese;function Mse(e,{title:t}){return ir(e,"reddit.url"),"https://www.reddit.com/submit"+Kt({url:e,title:t})}const Pse=dr("reddit",Mse,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"}),ife=Pse;function Ase(e,{title:t}){return ir(e,"gab.url"),"https://gab.com/compose"+Kt({url:e,text:t})}dr("gab",Ase,e=>({title:e.title}),{windowWidth:660,windowHeight:640,windowPosition:"windowCenter"});function kse(e,t){const r=`https://www.reddit.com/api/info.json?limit=1&url=${e}`;bl(r,{param:"jsonp"},(n,i)=>{t(!n&&i&&i.data&&i.data.children.length>0&&i.data.children[0].data.score?i.data.children[0].data.score:void 0)})}yl(kse);const _se=z0({color:"#25A3E3",networkName:"telegram",path:"m45.90873,15.44335c-0.6901,-0.0281 -1.37668,0.14048 -1.96142,0.41265c-0.84989,0.32661 -8.63939,3.33986 -16.5237,6.39174c-3.9685,1.53296 -7.93349,3.06593 -10.98537,4.24067c-3.05012,1.1765 -5.34694,2.05098 -5.4681,2.09312c-0.80775,0.28096 -1.89996,0.63566 -2.82712,1.72788c-0.23354,0.27218 -0.46884,0.62161 -0.58825,1.10275c-0.11941,0.48114 -0.06673,1.09222 0.16682,1.5716c0.46533,0.96052 1.25376,1.35737 2.18443,1.71383c3.09051,0.99037 6.28638,1.93508 8.93263,2.8236c0.97632,3.44171 1.91401,6.89571 2.84116,10.34268c0.30554,0.69185 0.97105,0.94823 1.65764,0.95525l-0.00351,0.03512c0,0 0.53908,0.05268 1.06412,-0.07375c0.52679,-0.12292 1.18879,-0.42846 1.79109,-0.99212c0.662,-0.62161 2.45836,-2.38812 3.47683,-3.38552l7.6736,5.66477l0.06146,0.03512c0,0 0.84989,0.59703 2.09312,0.68132c0.62161,0.04214 1.4399,-0.07726 2.14229,-0.59176c0.70766,-0.51626 1.1765,-1.34683 1.396,-2.29506c0.65673,-2.86224 5.00979,-23.57745 5.75257,-27.00686l-0.02107,0.08077c0.51977,-1.93157 0.32837,-3.70159 -0.87096,-4.74991c-0.60054,-0.52152 -1.2924,-0.7498 -1.98425,-0.77965l0,0.00176zm-0.2072,3.29069c0.04741,0.0439 0.0439,0.0439 0.00351,0.04741c-0.01229,-0.00351 0.14048,0.2072 -0.15804,1.32576l-0.01229,0.04214l-0.00878,0.03863c-0.75858,3.50668 -5.15554,24.40802 -5.74203,26.96472c-0.08077,0.34417 -0.11414,0.31959 -0.09482,0.29852c-0.1756,-0.02634 -0.50045,-0.16506 -0.52679,-0.1756l-13.13468,-9.70175c4.4988,-4.33199 9.09945,-8.25307 13.744,-12.43229c0.8218,-0.41265 0.68483,-1.68573 -0.29852,-1.70681c-1.04305,0.24584 -1.92279,0.99564 -2.8798,1.47502c-5.49971,3.2626 -11.11882,6.13186 -16.55882,9.49279c-2.792,-0.97105 -5.57873,-1.77704 -8.15298,-2.57601c2.2336,-0.89555 4.00889,-1.55579 5.75608,-2.23009c3.05188,-1.1765 7.01687,-2.7042 10.98537,-4.24067c7.94051,-3.06944 15.92667,-6.16346 16.62028,-6.43037l0.05619,-0.02283l0.05268,-0.02283c0.19316,-0.0878 0.30378,-0.09658 0.35471,-0.10009c0,0 -0.01756,-0.05795 -0.00351,-0.04566l-0.00176,0zm-20.91715,22.0638l2.16687,1.60145c-0.93418,0.91311 -1.81743,1.77353 -2.45485,2.38812l0.28798,-3.98957"}),ofe=_se;function Rse(e,{title:t}){return ir(e,"telegram.url"),"https://telegram.me/share/url"+Kt({url:e,text:t})}const Tse=dr("telegram",Rse,e=>({title:e.title}),{windowWidth:550,windowHeight:400}),afe=Tse;function $se(e,{title:t,caption:r,tags:n,posttype:i}){return ir(e,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+Kt({canonicalUrl:e,title:t,caption:r,tags:n,posttype:i})}dr("tumblr",$se,e=>({title:e.title,tags:(e.tags||[]).join(","),caption:e.caption,posttype:e.posttype||"link"}),{windowWidth:660,windowHeight:460});function Bse(e,t){return bl("https://api.tumblr.com/v2/share/stats"+Kt({url:e}),(n,i)=>{t(!n&&i&&i.response?i.response.note_count:void 0)})}yl(Bse);const Ise=z0({color:"#00aced",networkName:"twitter",path:"M48,22.1c-1.2,0.5-2.4,0.9-3.8,1c1.4-0.8,2.4-2.1,2.9-3.6c-1.3,0.8-2.7,1.3-4.2,1.6 C41.7,19.8,40,19,38.2,19c-3.6,0-6.6,2.9-6.6,6.6c0,0.5,0.1,1,0.2,1.5c-5.5-0.3-10.3-2.9-13.5-6.9c-0.6,1-0.9,2.1-0.9,3.3 c0,2.3,1.2,4.3,2.9,5.5c-1.1,0-2.1-0.3-3-0.8c0,0,0,0.1,0,0.1c0,3.2,2.3,5.8,5.3,6.4c-0.6,0.1-1.1,0.2-1.7,0.2c-0.4,0-0.8,0-1.2-0.1 c0.8,2.6,3.3,4.5,6.1,4.6c-2.2,1.8-5.1,2.8-8.2,2.8c-0.5,0-1.1,0-1.6-0.1c2.9,1.9,6.4,2.9,10.1,2.9c12.1,0,18.7-10,18.7-18.7 c0-0.3,0-0.6,0-0.8C46,24.5,47.1,23.4,48,22.1z"}),sfe=Ise;function Fse(e,{title:t,via:r,hashtags:n=[],related:i=[]}){return ir(e,"twitter.url"),ir(Array.isArray(n),"twitter.hashtags is not an array"),ir(Array.isArray(i),"twitter.related is not an array"),"https://twitter.com/intent/tweet"+Kt({url:e,text:t,via:r,hashtags:n.length>0?n.join(","):void 0,related:i.length>0?i.join(","):void 0})}const Ose=dr("twitter",Fse,e=>({hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}),{windowWidth:550,windowHeight:400}),lfe=Ose;function Dse(e,{title:t,separator:r}){return ir(e,"viber.url"),"viber://forward"+Kt({text:t?t+r+e:e})}dr("viber",Dse,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:660,windowHeight:460});function Lse(e,{title:t,image:r,noParse:n,noVkLinks:i}){return ir(e,"vk.url"),"https://vk.com/share.php"+Kt({url:e,title:t,image:r,noparse:n?1:0,no_vk_links:i?1:0})}dr("vk",Lse,e=>({title:e.title,image:e.image,noParse:e.noParse,noVkLinks:e.noVkLinks}),{windowWidth:660,windowHeight:460});function Nse(e,t){window.VK||(window.VK={}),window.VK.Share={count:(i,o)=>{var a,s;return(s=(a=window.VK.callbacks)==null?void 0:a[i])==null?void 0:s.call(a,o)}},window.VK.callbacks=[];const r="https://vk.com/share.php",n=window.VK.callbacks.length;return window.VK.callbacks.push(t),bl(r+Kt({act:"count",index:n,url:e}))}yl(Nse);function zse(e,{title:t,image:r}){return ir(e,"weibo.url"),"http://service.weibo.com/share/share.php"+Kt({url:e,title:t,pic:r})}dr("weibo",zse,e=>({title:e.title,image:e.image}),{windowWidth:660,windowHeight:550,windowPosition:"screenCenter"});function jse(){return/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)}function Use(e,{title:t,separator:r}){return ir(e,"whatsapp.url"),"https://"+(jse()?"api":"web")+".whatsapp.com/send"+Kt({text:t?t+r+e:e})}dr("whatsapp",Use,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:550,windowHeight:400});function Hse(e,{quote:t,hashtag:r}){return ir(e,"workplace.url"),"https://work.facebook.com/sharer.php"+Kt({u:e,quote:t,hashtag:r})}dr("workplace",Hse,e=>({quote:e.quote,hashtag:e.hashtag}),{windowWidth:550,windowHeight:400});var hu={},cg={},ug={},fg={},G1={},dg={},Wse=hg(typeof Buffer<"u"&&Buffer)||hg(st.Buffer)||hg(typeof window<"u"&&window.Buffer)||st.Buffer;function hg(e){return e&&e.isBuffer&&e}var Vse={}.toString,l3=Array.isArray||function(e){return Vse.call(e)=="[object Array]"},pg={exports:{}},Z7;function qse(){if(Z7)return pg.exports;Z7=1;var e=Wi(),t=pg.exports=r(0);t.alloc=r,t.concat=e.concat,t.from=n;function r(i){return new Array(i)}function n(i){if(!e.isBuffer(i)&&e.isView(i))i=e.Uint8Array.from(i);else if(e.isArrayBuffer(i))i=new Uint8Array(i);else{if(typeof i=="string")return e.from.call(t,i);if(typeof i=="number")throw new TypeError('"value" argument must not be a number')}return Array.prototype.slice.call(i)}return pg.exports}var xg={exports:{}},Q7;function Kse(){if(Q7)return xg.exports;Q7=1;var e=Wi(),t=e.global,r=xg.exports=e.hasBuffer?n(0):[];r.alloc=e.hasBuffer&&t.alloc||n,r.concat=e.concat,r.from=i;function n(o){return new t(o)}function i(o){if(!e.isBuffer(o)&&e.isView(o))o=e.Uint8Array.from(o);else if(e.isArrayBuffer(o))o=new Uint8Array(o);else{if(typeof o=="string")return e.from.call(r,o);if(typeof o=="number")throw new TypeError('"value" argument must not be a number')}return t.from&&t.from.length!==1?t.from(o):new t(o)}return xg.exports}var mg={exports:{}},e9;function Gse(){if(e9)return mg.exports;e9=1;var e=Wi(),t=mg.exports=e.hasArrayBuffer?r(0):[];t.alloc=r,t.concat=e.concat,t.from=n;function r(i){return new Uint8Array(i)}function n(i){if(e.isView(i)){var o=i.byteOffset,a=i.byteLength;i=i.buffer,i.byteLength!==a&&(i.slice?i=i.slice(o,o+a):(i=new Uint8Array(i),i.byteLength!==a&&(i=Array.prototype.slice.call(i,o,o+a))))}else{if(typeof i=="string")return e.from.call(t,i);if(typeof i=="number")throw new TypeError('"value" argument must not be a number')}return new Uint8Array(i)}return mg.exports}var Il={},Y1={};Y1.copy=Jse;Y1.toString=Xse;Y1.write=Yse;function Yse(e,t){for(var r=this,n=t||(t|=0),i=e.length,o=0,a=0;a>>6,r[n++]=128|o&63):o<55296||o>57343?(r[n++]=224|o>>>12,r[n++]=128|o>>>6&63,r[n++]=128|o&63):(o=(o-55296<<10|e.charCodeAt(a++)-56320)+65536,r[n++]=240|o>>>18,r[n++]=128|o>>>12&63,r[n++]=128|o>>>6&63,r[n++]=128|o&63);return n-t}function Xse(e,t,r){var n=this,i=t|0;r||(r=n.length);for(var o="",a=0;i=65536?(a-=65536,o+=String.fromCharCode((a>>>10)+55296,(a&1023)+56320)):o+=String.fromCharCode(a)}return o}function Jse(e,t,r,n){var i;r||(r=0),!n&&n!==0&&(n=this.length),t||(t=0);var o=n-r;if(e===this&&r=0;i--)e[i+t]=this[i+r];else for(i=0;i0?S(j,q,K):K<0?T(j,q,K):w(j,q,a,0))}function H(G,j,q,K){var Z=0,te=q.length,Q=0,oe=0;q[0]==="-"&&Z++;for(var me=Z;Z=0))break;oe=oe*K+se,Q=Q*K+Math.floor(oe/l),oe%=l}me&&(Q=~Q,oe?oe=l-oe:Q++),X(G,j+I,Q),X(G,j+R,oe)}function O(){var G=this.buffer,j=this.offset,q=J(G,j+I),K=J(G,j+R);return L||(q|=0),q?q*l+K:K}function V(G){var j=this.buffer,q=this.offset,K=J(j,q+I),Z=J(j,q+R),te="",Q=!L&&K&2147483648;for(Q&&(K=~K,Z=l-Z),G=G||10;;){var oe=K%G*l+Z;if(K=Math.floor(K/G),Z=Math.floor(oe/G),te=(oe%G).toString(G)+te,!K&&!Z)break}return Q&&(te="-"+te),te}function X(G,j,q){G[j+x]=q&255,q=q>>8,G[j+h]=q&255,q=q>>8,G[j+g]=q&255,q=q>>8,G[j+m]=q&255}function J(G,j){return G[j+m]*c+(G[j+g]<<16)+(G[j+h]<<8)+G[j+x]}}function d(N){var _=this.buffer,L=this.offset;return u=null,N!==!1&&L===0&&_.length===8&&s(_)?_:C(_,L)}function b(N){var _=this.buffer,L=this.offset;if(u=n,N!==!1&&L===0&&_.length===8&&Buffer.isBuffer(_))return _;var I=new n(8);return w(I,0,_,L),I}function p(N){var _=this.buffer,L=this.offset,I=_.buffer;if(u=i,N!==!1&&L===0&&I instanceof o&&I.byteLength===8)return I;var R=new i(8);return w(R,0,_,L),R.buffer}function v(N,_){var L=N&&N.length;return _|=0,L&&_+8<=L&&typeof N[_]!="string"}function w(N,_,L,I){_|=0,I|=0;for(var R=0;R<8;R++)N[_++]=L[I++]&255}function C(N,_){return Array.prototype.slice.call(N,_,_+8)}function y(N,_,L){for(var I=_+8;I>_;)N[--I]=L&255,L/=256}function M(N,_,L){var I=_+8;for(L++;I>_;)N[--I]=-L&255^255,L/=256}function B(N,_,L){for(var I=_+8;_ */J1.read=function(e,t,r,n,i){var o,a,s=i*8-n-1,l=(1<>1,u=-7,f=r?i-1:0,d=r?-1:1,b=e[t+f];for(f+=d,o=b&(1<<-u)-1,b>>=-u,u+=s;u>0;o=o*256+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=a*256+e[t+f],f+=d,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-c}return(b?-1:1)*a*Math.pow(2,o-n)};J1.write=function(e,t,r,n,i,o){var a,s,l,c=o*8-i-1,u=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,p=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?t+=d/l:t+=d*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a=a+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+b]=s&255,b+=p,s/=256,i-=8);for(a=a<0;e[r+b]=a&255,b+=p,a/=256,c-=8);e[r+b-p]|=v*128};var u3={},ele=u3.uint8=new Array(256);for(var Pd=0;Pd<=255;Pd++)ele[Pd]=tle(Pd);function tle(e){return function(t){var r=t.reserve(1);t.buffer[r]=e}}var dA=J1,hA=X1,rle=hA.Uint64BE,nle=hA.Int64BE,pA=u3.uint8,Z1=Wi(),Zt=Z1.global,ile=Z1.hasBuffer&&"TYPED_ARRAY_SUPPORT"in Zt,ole=ile&&!Zt.TYPED_ARRAY_SUPPORT,i9=Z1.hasBuffer&&Zt.prototype||{};fA.getWriteToken=ale;function ale(e){return e&&e.uint8array?sle():ole||Z1.hasBuffer&&e&&e.safe?lle():xA()}function sle(){var e=xA();return e[202]=Nt(202,4,vA),e[203]=Nt(203,8,bA),e}function xA(){var e=pA.slice();return e[196]=Wu(196),e[197]=Ps(197),e[198]=As(198),e[199]=Wu(199),e[200]=Ps(200),e[201]=As(201),e[202]=Nt(202,4,i9.writeFloatBE||vA,!0),e[203]=Nt(203,8,i9.writeDoubleBE||bA,!0),e[204]=Wu(204),e[205]=Ps(205),e[206]=As(206),e[207]=Nt(207,8,mA),e[208]=Wu(208),e[209]=Ps(209),e[210]=As(210),e[211]=Nt(211,8,gA),e[217]=Wu(217),e[218]=Ps(218),e[219]=As(219),e[220]=Ps(220),e[221]=As(221),e[222]=Ps(222),e[223]=As(223),e}function lle(){var e=pA.slice();return e[196]=Nt(196,1,Zt.prototype.writeUInt8),e[197]=Nt(197,2,Zt.prototype.writeUInt16BE),e[198]=Nt(198,4,Zt.prototype.writeUInt32BE),e[199]=Nt(199,1,Zt.prototype.writeUInt8),e[200]=Nt(200,2,Zt.prototype.writeUInt16BE),e[201]=Nt(201,4,Zt.prototype.writeUInt32BE),e[202]=Nt(202,4,Zt.prototype.writeFloatBE),e[203]=Nt(203,8,Zt.prototype.writeDoubleBE),e[204]=Nt(204,1,Zt.prototype.writeUInt8),e[205]=Nt(205,2,Zt.prototype.writeUInt16BE),e[206]=Nt(206,4,Zt.prototype.writeUInt32BE),e[207]=Nt(207,8,mA),e[208]=Nt(208,1,Zt.prototype.writeInt8),e[209]=Nt(209,2,Zt.prototype.writeInt16BE),e[210]=Nt(210,4,Zt.prototype.writeInt32BE),e[211]=Nt(211,8,gA),e[217]=Nt(217,1,Zt.prototype.writeUInt8),e[218]=Nt(218,2,Zt.prototype.writeUInt16BE),e[219]=Nt(219,4,Zt.prototype.writeUInt32BE),e[220]=Nt(220,2,Zt.prototype.writeUInt16BE),e[221]=Nt(221,4,Zt.prototype.writeUInt32BE),e[222]=Nt(222,2,Zt.prototype.writeUInt16BE),e[223]=Nt(223,4,Zt.prototype.writeUInt32BE),e}function Wu(e){return function(t,r){var n=t.reserve(2),i=t.buffer;i[n++]=e,i[n]=r}}function Ps(e){return function(t,r){var n=t.reserve(3),i=t.buffer;i[n++]=e,i[n++]=r>>>8,i[n]=r}}function As(e){return function(t,r){var n=t.reserve(5),i=t.buffer;i[n++]=e,i[n++]=r>>>24,i[n++]=r>>>16,i[n++]=r>>>8,i[n]=r}}function Nt(e,t,r,n){return function(i,o){var a=i.reserve(t+1);i.buffer[a++]=e,r.call(i.buffer,o,a,n)}}function mA(e,t){new rle(this,t,e)}function gA(e,t){new nle(this,t,e)}function vA(e,t){dA.write(this,e,t,!1,23,4)}function bA(e,t){dA.write(this,e,t,!1,52,8)}var cle=l3,yA=X1,ule=yA.Uint64BE,fle=yA.Int64BE,o9=Wi(),a9=c3(),dle=fA,hle=u3.uint8,ple=G1.ExtBuffer,xle=typeof Uint8Array<"u",mle=typeof Map<"u",pu=[];pu[1]=212;pu[2]=213;pu[4]=214;pu[8]=215;pu[16]=216;uA.getWriteType=gle;function gle(e){var t=dle.getWriteToken(e),r=e&&e.useraw,n=xle&&e&&e.binarraybuffer,i=n?o9.isArrayBuffer:o9.isBuffer,o=n?D:B,a=mle&&e&&e.usemap,s=a?_:N,l={boolean:c,function:y,number:u,object:r?C:w,string:v(r?p:b),symbol:y,undefined:y};return l;function c(I,R){var m=R?195:194;t[m](I,R)}function u(I,R){var m=R|0,g;if(R!==m){g=203,t[g](I,R);return}else-32<=m&&m<=127?g=m&255:0<=m?g=m<=255?204:m<=65535?205:206:g=-128<=m?208:-32768<=m?209:210;t[g](I,m)}function f(I,R){var m=207;t[m](I,R.toArray())}function d(I,R){var m=211;t[m](I,R.toArray())}function b(I){return I<32?1:I<=255?2:I<=65535?3:5}function p(I){return I<32?1:I<=65535?3:5}function v(I){return R;function R(m,g){var h=g.length,x=5+h*3;m.offset=m.reserve(x);var S=m.buffer,T=I(h),k=m.offset+T;h=a9.write.call(S,g,k);var $=I(h);if(T!==$){var P=k+$-T,E=k+h;a9.copy.call(S,S,P,k,E)}var A=$===1?160+h:$<=3?215+$:219;t[A](m,h),m.offset+=h}}function w(I,R){if(R===null)return y(I,R);if(i(R))return o(I,R);if(cle(R))return M(I,R);if(ule.isUint64BE(R))return f(I,R);if(fle.isInt64BE(R))return d(I,R);var m=I.codec.getExtPacker(R);if(m&&(R=m(R)),R instanceof ple)return F(I,R);s(I,R)}function C(I,R){if(i(R))return L(I,R);w(I,R)}function y(I,R){var m=192;t[m](I,R)}function M(I,R){var m=R.length,g=m<16?144+m:m<=65535?220:221;t[g](I,m);for(var h=I.codec.encode,x=0;xthis.buffer.length)throw new Error(l9);return this.offset=o,i}}function Ale(){return{bufferish:Pf,write:kle,fetch:e,flush:t,push:CA,pull:r,read:SA,reserve:n,send:i,maxBufferSize:Mle,minBufferSize:Ele,offset:0,start:0};function e(){var o=this.start;if(o1?this.bufferish.concat(o):o[0];return o.length=0,a}function n(o){var a=o|0;if(this.buffer){var s=this.buffer.length,l=this.offset|0,c=l+a;if(cthis.minBufferSize)this.flush(),this.push(o);else{var s=this.reserve(a);Pf.prototype.copy.call(o,this.buffer,s)}}}function kle(){throw new Error("method not implemented: write()")}function _le(){throw new Error("method not implemented: fetch()")}function SA(){var e=this.buffers&&this.buffers.length;return e?(this.flush(),this.pull()):this.fetch()}function CA(e){var t=this.buffers||(this.buffers=[]);t.push(e)}function Rle(){var e=this.buffers||(this.buffers=[]);return e.shift()}function EA(e){return t;function t(r){for(var n in e)r[n]=e[n];return r}}var c9;function MA(){if(c9)return ug;c9=1,ug.EncodeBuffer=r;var e=f3().preset,t=Q1.FlexEncoder;t.mixin(r.prototype);function r(n){if(!(this instanceof r))return new r(n);if(n&&(this.options=n,n.codec)){var i=this.codec=n.codec;i.bufferish&&(this.bufferish=i.bufferish)}}return r.prototype.codec=e,r.prototype.write=function(n){this.codec.encode(this,n)},ug}var u9;function PA(){if(u9)return cg;u9=1,cg.encode=t;var e=MA().EncodeBuffer;function t(r,n){var i=new e(n);return i.write(r),i.read()}return cg}var vg={},bg={},yg={},wg={},f9;function Tle(){if(f9)return wg;f9=1,wg.setExtUnpackers=i;var e=Wi(),t=e.global,r,n={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function i(u){u.addExtUnpacker(14,[o,s(Error)]),u.addExtUnpacker(1,[o,s(EvalError)]),u.addExtUnpacker(2,[o,s(RangeError)]),u.addExtUnpacker(3,[o,s(ReferenceError)]),u.addExtUnpacker(4,[o,s(SyntaxError)]),u.addExtUnpacker(5,[o,s(TypeError)]),u.addExtUnpacker(6,[o,s(URIError)]),u.addExtUnpacker(10,[o,a]),u.addExtUnpacker(11,[o,l(Boolean)]),u.addExtUnpacker(12,[o,l(String)]),u.addExtUnpacker(13,[o,l(Date)]),u.addExtUnpacker(15,[o,l(Number)]),typeof Uint8Array<"u"&&(u.addExtUnpacker(17,l(Int8Array)),u.addExtUnpacker(18,l(Uint8Array)),u.addExtUnpacker(19,[c,l(Int16Array)]),u.addExtUnpacker(20,[c,l(Uint16Array)]),u.addExtUnpacker(21,[c,l(Int32Array)]),u.addExtUnpacker(22,[c,l(Uint32Array)]),u.addExtUnpacker(23,[c,l(Float32Array)]),typeof Float64Array<"u"&&u.addExtUnpacker(24,[c,l(Float64Array)]),typeof Uint8ClampedArray<"u"&&u.addExtUnpacker(25,l(Uint8ClampedArray)),u.addExtUnpacker(26,c),u.addExtUnpacker(29,[c,l(DataView)])),e.hasBuffer&&u.addExtUnpacker(27,l(t))}function o(u){return r||(r=FA().decode),r(u)}function a(u){return RegExp.apply(null,u)}function s(u){return function(f){var d=new u;for(var b in n)d[b]=f[b];return d}}function l(u){return function(f){return new u(f)}}function c(u){return new Uint8Array(u).buffer}return wg}var ex={},AA=J1,kA=X1,_A=kA.Uint64BE,RA=kA.Int64BE;ex.getReadFormat=Ile;ex.readUint8=TA;var d3=Wi(),tx=c3(),$le=typeof Map<"u",Ble=!0;function Ile(e){var t=d3.hasArrayBuffer&&e&&e.binarraybuffer,r=e&&e.int64,n=$le&&e&&e.usemap,i={map:n?Ole:Fle,array:Dle,str:Lle,bin:t?zle:Nle,ext:jle,uint8:TA,uint16:Hle,uint32:Vle,uint64:Ad(8,r?Yle:Kle),int8:Ule,int16:Wle,int32:qle,int64:Ad(8,r?Xle:Gle),float32:Ad(4,Jle),float64:Ad(8,Zle)};return i}function Fle(e,t){var r={},n,i=new Array(t),o=new Array(t),a=e.codec.decode;for(n=0;n=x?h:""+Array(x+1-T.length).join(S)+h},B={s:M,z:function(h){var x=-h.utcOffset(),S=Math.abs(x),T=Math.floor(S/60),k=S%60;return(x<=0?"+":"-")+M(T,2,"0")+":"+M(k,2,"0")},m:function h(x,S){if(x.date()1)return h(P[0])}else{var E=x.name;F[E]=x,k=E}return!T&&k&&(D=k),k||!T&&D},I=function(h,x){if(_(h))return h.clone();var S=typeof x=="object"?x:{};return S.date=h,S.args=arguments,new m(S)},R=B;R.l=L,R.i=_,R.w=function(h,x){return I(h,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var m=function(){function h(S){this.$L=L(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[N]=!0}var x=h.prototype;return x.parse=function(S){this.$d=function(T){var k=T.date,$=T.utc;if(k===null)return new Date(NaN);if(R.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var P=k.match(w);if(P){var E=P[2]-1||0,A=(P[7]||"0").substring(0,3);return $?new Date(Date.UTC(P[1],E,P[3]||1,P[4]||0,P[5]||0,P[6]||0,A)):new Date(P[1],E,P[3]||1,P[4]||0,P[5]||0,P[6]||0,A)}}return new Date(k)}(S),this.init()},x.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},x.$utils=function(){return R},x.isValid=function(){return this.$d.toString()!==v},x.isSame=function(S,T){var k=I(S);return this.startOf(T)<=k&&k<=this.endOf(T)},x.isAfter=function(S,T){return I(S)0,F<=D.r||!D.r){F<=1&&B>0&&(D=y[B-1]);var N=C[D.l];b&&(F=b(""+F)),v=typeof N=="string"?N.replace("%d",F):N(F,u,D.l,w);break}}if(u)return v;var _=w?C.future:C.past;return typeof _=="function"?_(v):_.replace("%s",v)},o.to=function(c,u){return s(c,u,this,!0)},o.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?i.utc():i()};o.toNow=function(c){return this.to(l(this),c)},o.fromNow=function(c){return this.from(l(this),c)}}})})(KA);var pce=KA.exports;const dfe=_r(pce);var GA={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(st,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(i,o,a){var s,l=function(d,b,p){p===void 0&&(p={});var v=new Date(d),w=function(C,y){y===void 0&&(y={});var M=y.timeZoneName||"short",B=C+"|"+M,D=n[B];return D||(D=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:C,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),n[B]=D),D}(b,p);return w.formatToParts(v)},c=function(d,b){for(var p=l(d,b),v=[],w=0;w=0&&(v[B]=parseInt(M,10))}var D=v[3],F=D===24?0:D,N=v[0]+"-"+v[1]+"-"+v[2]+" "+F+":"+v[4]+":"+v[5]+":000",_=+d;return(a.utc(N).valueOf()-(_-=_%1e3))/6e4},u=o.prototype;u.tz=function(d,b){d===void 0&&(d=s);var p=this.utcOffset(),v=this.toDate(),w=v.toLocaleString("en-US",{timeZone:d}),C=Math.round((v-new Date(w))/1e3/60),y=a(w,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(v.getTimezoneOffset()/15)-C,!0);if(b){var M=y.utcOffset();y=y.add(p-M,"minute")}return y.$x.$timezone=d,y},u.offsetName=function(d){var b=this.$x.$timezone||a.tz.guess(),p=l(this.valueOf(),b,{timeZoneName:d}).find(function(v){return v.type.toLowerCase()==="timezonename"});return p&&p.value};var f=u.startOf;u.startOf=function(d,b){if(!this.$x||!this.$x.$timezone)return f.call(this,d,b);var p=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return f.call(p,d,b).tz(this.$x.$timezone,!0)},a.tz=function(d,b,p){var v=p&&b,w=p||b||s,C=c(+a(),w);if(typeof d!="string")return a(d).tz(w);var y=function(F,N,_){var L=F-60*N*1e3,I=c(L,_);if(N===I)return[L,N];var R=c(L-=60*(I-N)*1e3,_);return I===R?[L,I]:[F-60*Math.min(I,R)*1e3,Math.max(I,R)]}(a.utc(d,v).valueOf(),C,w),M=y[0],B=y[1],D=a(M).utcOffset(B);return D.$x.$timezone=w,D},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(d){s=d}}})})(GA);var xce=GA.exports;const hfe=_r(xce);var mce={exports:{}};(function(e,t){(function(r,n){e.exports=n(wl)})(st,function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(mce);var gce={exports:{}};(function(e,t){(function(r,n){e.exports=n(wl)})(st,function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),o={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"週":a+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(gce);var vce={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(st,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(r){var n=["th","st","nd","rd"],i=r%100;return"["+r+(n[(i-20)%10]||n[i]||n[0])+"]"}}})})(vce);var bce={exports:{}};(function(e,t){(function(r,n){e.exports=n(wl)})(st,function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),o={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a){return a+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(a){return a<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(o,null,!0),o})})(bce);var yce={exports:{}};(function(e,t){(function(r,n){e.exports=n(wl)})(st,function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),o={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(a){return a+"º"}};return i.default.locale(o,null,!0),o})})(yce);var wce={exports:{}};(function(e,t){(function(r,n){e.exports=n(wl)})(st,function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),o={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};return i.default.locale(o,null,!0),o})})(wce);var Sce={exports:{}};(function(e,t){(function(r,n){e.exports=n(wl)})(st,function(r){function n(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var i=n(r),o="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),a={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},s={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},l={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:o,monthsShort:o,weekStart:6,meridiem:function(c){return c>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(c){return c.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(u){return s[u]}).replace(/،/g,",")},postformat:function(c){return c.replace(/\d/g,function(u){return a[u]}).replace(/,/g,"،")},ordinal:function(c){return c},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return i.default.locale(l,null,!0),l})})(Sce);var m3={},Cce=wr;Object.defineProperty(m3,"__esModule",{value:!0});var Ece=m3.default=void 0,Mce=Cce(Rr()),Pce=Y;Ece=m3.default=(0,Mce.default)((0,Pce.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");var YA={exports:{}};(function(e,t){(function(r,n){n()})(st,function(){function r(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function n(c,u,f){var d=new XMLHttpRequest;d.open("GET",c),d.responseType="blob",d.onload=function(){l(d.response,u,f)},d.onerror=function(){},d.send()}function i(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof st=="object"&&st.global===st?st:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(c,u,f){var d=a.URL||a.webkitURL,b=document.createElement("a");u=u||c.name||"download",b.download=u,b.rel="noopener",typeof c=="string"?(b.href=c,b.origin===location.origin?o(b):i(b.href)?n(c,u,f):o(b,b.target="_blank")):(b.href=d.createObjectURL(c),setTimeout(function(){d.revokeObjectURL(b.href)},4e4),setTimeout(function(){o(b)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,f){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(r(c,f),u);else if(i(c))n(c,u,f);else{var d=document.createElement("a");d.href=c,d.target="_blank",setTimeout(function(){o(d)})}}:function(c,u,f,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof c=="string")return n(c,u,f);var b=c.type==="application/octet-stream",p=/constructor/i.test(a.HTMLElement)||a.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||b&&p||s)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var M=w.result;M=v?M:M.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=M:location=M,d=null},w.readAsDataURL(c)}else{var C=a.URL||a.webkitURL,y=C.createObjectURL(c);d?d.location=y:location.href=y,d=null,setTimeout(function(){C.revokeObjectURL(y)},4e4)}});a.saveAs=l.saveAs=l,e.exports=l})})(YA);var pfe=YA.exports;export{Qce as $,uQ as A,Fce as B,Dce as C,Fue as D,pa as E,Gce as F,tue as G,DV as H,Rte as I,Due as J,Lue as K,Xt as L,S$ as M,_te as N,he as O,ga as P,aue as Q,mn as R,yue as S,Yce as T,Oue as U,cue as V,yne as W,Ls as X,qq as Y,xue as Z,gue as _,kr as a,uie as a$,Ote as a0,bue as a1,La as a2,kce as a3,iue as a4,lue as a5,B4 as a6,fue as a7,Wue as a8,Wte as a9,rie as aA,ZK as aB,Zne as aC,rue as aD,Jce as aE,XE as aF,jue as aG,zue as aH,FV as aI,nue as aJ,due as aK,JV as aL,Yue as aM,Xue as aN,Aoe as aO,vi as aP,Ll as aQ,que as aR,Gue as aS,Kue as aT,Jue as aU,iU as aV,Rue as aW,Cue as aX,pue as aY,Nq as aZ,Sue as a_,zte as aa,Bte as ab,mue as ac,Xce as ad,wue as ae,o2 as af,xM as ag,aG as ah,kne as ai,Ene as aj,uu as ak,iX as al,hue as am,vue as an,uue as ao,$ne as ap,One as aq,zne as ar,Wne as as,eue as at,aie as au,Zce as av,Tue as aw,Kce as ax,Gne as ay,$ue as az,Ice as b,Uue as b0,Hue as b1,y5 as b2,Vce as b3,Nue as b4,Zue as b5,hM as b6,efe as b7,Que as b8,rfe as b9,hfe as bA,pfe as bB,tfe as ba,ife as bb,nfe as bc,afe as bd,ofe as be,lfe as bf,sfe as bg,jK as bh,oce as bi,cce as bj,Vue as bk,Pue as bl,Eue as bm,Aue as bn,_ue as bo,Vv as bp,Mue as bq,kue as br,Ece as bs,hu as bt,sue as bu,m4 as bv,cfe as bw,ffe as bx,dfe as by,ufe as bz,Oce as c,$ce as d,Bce as e,B_ as f,Tce as g,jce as h,zce as i,_ce as j,Hce as k,nF as l,Lce as m,G2 as n,DY as o,yS as p,Bue as q,U as r,Wce as s,Uce as t,qce as u,Nce as v,gn as w,Rce as x,oue as y,Iue as z};