diff --git a/45-8a5195944dc1f5eb.js.download b/45-8a5195944dc1f5eb.js.download new file mode 100644 index 0000000..aafb6b6 --- /dev/null +++ b/45-8a5195944dc1f5eb.js.download @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45],{42683:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var o=n(67294);n(24600);let r=o.createContext({isInsideModal:!1})},10045:function(e,t,n){"use strict";n.d(t,{u:function(){return eu}});var o,r,i,l,u,a,c,s,f,d,v,p,w=n(67294),b="undefined"!=typeof window&&window.document&&window.document.createElement?w.useLayoutEffect:w.useEffect,m=!1,h=0,E=function(){return++h};function g(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}function y(e){return g()?e?e.ownerDocument:document:null}function M(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,o=Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(t);!(n=o()).done;)!function(e,t){if(null!=e){if(L(e))e(t);else try{e.current=t}catch(n){throw Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}}(n.value,e)},t)}function O(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}var V=g()?w.useLayoutEffect:w.useEffect,T=n(73935),D=function(e){var t,n=e.children,o=e.type,r=void 0===o?"reach-portal":o,i=e.containerRef,l=(0,w.useRef)(null),u=(0,w.useRef)(null),a=(t=(0,w.useState)(Object.create(null))[1],(0,w.useCallback)(function(){t(Object.create(null))},[]));return V(function(){if(l.current){var e=l.current.ownerDocument,t=(null==i?void 0:i.current)||e.body;return u.current=null==e?void 0:e.createElement(r),t.appendChild(u.current),a(),function(){u.current&&t&&t.removeChild(u.current)}}},[r,a,i]),u.current?(0,T.createPortal)(n,u.current):(0,w.createElement)("span",{ref:l})};function x(){return(x=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,C);return(0,w.createElement)(void 0===n?"span":n,x({ref:t,style:x({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},void 0===o?{}:o)},r))}),I=n(51826);function A(e,t,n){"boolean"==typeof t?o=t:(o=null==(i=null==t?void 0:t.observe)||i,r=null==t?void 0:t.onChange),L(n)&&(r=n);var o,r,i,l=(0,w.useState)(e.current),u=l[0],a=l[1],c=(0,w.useRef)(!1),s=(0,w.useRef)(!1),f=(0,w.useState)(null),d=f[0],v=f[1],p=(0,w.useRef)(r);return V(function(){p.current=r,e.current!==u&&a(e.current)}),V(function(){u&&!c.current&&(c.current=!0,v(u.getBoundingClientRect()))},[u]),V(function(){if(o){var t=u;if(s.current||(s.current=!0,t=e.current),t){var n=(0,I.Z)(t,function(e){null==p.current||p.current(e),v(e)});return n.observe(),function(){n.unobserve()}}}},[o,u,e]),d}function F(){return(F=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}var B=["label","ariaLabel","isVisible","id"],j=["ariaLabel","aria-label","as","id","isVisible","label","position","style","triggerRect"],k=["type"];(o=f||(f={})).Idle="IDLE",o.Focused="FOCUSED",o.Visible="VISIBLE",o.LeavingVisible="LEAVING_VISIBLE",o.Dismissed="DISMISSED",(r=d||(d={})).Blur="BLUR",r.Focus="FOCUS",r.GlobalMouseMove="GLOBAL_MOUSE_MOVE",r.MouseDown="MOUSE_DOWN",r.MouseEnter="MOUSE_ENTER",r.MouseLeave="MOUSE_LEAVE",r.MouseMove="MOUSE_MOVE",r.Rest="REST",r.SelectWithKeyboard="SELECT_WITH_KEYBOARD",r.TimeComplete="TIME_COMPLETE";var U={initial:f.Idle,states:((s={})[f.Idle]={enter:K,on:((i={})[d.MouseEnter]=f.Focused,i[d.Focus]=f.Visible,i)},s[f.Focused]={enter:function(){window.clearTimeout(v),v=window.setTimeout(function(){Y({type:d.Rest})},100)},leave:function(){window.clearTimeout(v)},on:((l={})[d.MouseMove]=f.Focused,l[d.MouseLeave]=f.Idle,l[d.MouseDown]=f.Dismissed,l[d.Blur]=f.Idle,l[d.Rest]=f.Visible,l)},s[f.Visible]={on:((u={})[d.Focus]=f.Focused,u[d.MouseEnter]=f.Focused,u[d.MouseLeave]=f.LeavingVisible,u[d.Blur]=f.LeavingVisible,u[d.MouseDown]=f.Dismissed,u[d.SelectWithKeyboard]=f.Dismissed,u[d.GlobalMouseMove]=f.LeavingVisible,u)},s[f.LeavingVisible]={enter:function(){window.clearTimeout(p),p=window.setTimeout(function(){return Y({type:d.TimeComplete})},500)},leave:function(){window.clearTimeout(p),K()},on:((a={})[d.MouseEnter]=f.Visible,a[d.Focus]=f.Visible,a[d.TimeComplete]=f.Idle,a)},s[f.Dismissed]={leave:function(){K()},on:((c={})[d.MouseLeave]=f.Idle,c[d.Blur]=f.Idle,c)},s)},N={value:U.initial,context:{id:null}},W=[];function K(){N.context.id=null}var Z=(0,w.forwardRef)(function(e,t){var n=e.label,o=e.ariaLabel,r=e.isVisible,i=e.id,l=P(e,B);return r?(0,w.createElement)(D,null,(0,w.createElement)(G,F({ref:t,label:n,"aria-label":o,isVisible:r},l,{id:M("tooltip",String(i))}))):null}),G=(0,w.forwardRef)(function(e,t){var n=e.ariaLabel,o=e["aria-label"],r=e.as,i=e.id,l=e.isVisible,u=e.label,a=e.position,c=e.style,s=e.triggerRect,f=P(e,j),d=null!=(o||n),v=(0,w.useRef)(null),p=S(t,v),b=A(v,{observe:l});return(0,w.createElement)(w.Fragment,null,(0,w.createElement)(void 0===r?"div":r,F({role:d?void 0:"tooltip"},f,{ref:p,"data-reach-tooltip":"",id:d?void 0:i,style:F({},c,b?(void 0===a?H:a)(s,b):{visibility:"hidden"})}),u),d&&(0,w.createElement)(R,{role:"tooltip",id:i},o||n))}),H=function(e,t,n){void 0===n&&(n=8);var o,r,i,l,u=(l=(i=y(void 0)).defaultView||window,i?{width:null!=(o=i.documentElement.clientWidth)?o:l.innerWidth,height:null!=(r=i.documentElement.clientHeight)?r:l.innerHeight}:{width:0,height:0}),a=u.width,c=u.height;if(!e||!t)return{};var s={top:e.top-t.height<0,right:a{let{triggerRect:t,size:n,offset:o,verticalPosition:r,isTooltipVisibilityForced:i}=e,l={top:void 0,left:void 0};if(!t)return l;let u=i?0:window.scrollY,a=q[n];return"top"===r?l.top=t.top-a-o+u:l.top=t.bottom+a+o+u,l.left=t.left-a-2+t.width/2,l};var ee=n(88298),et=n.n(ee);let en=e=>{let{triggerRect:t,className:n,size:o,offset:r,inModal:i,verticalPosition:l,isTooltipVisible:u,isTooltipVisibilityForced:a,requiresUtilClassPrefix:c}=e;if(!u)return null;let s=J({triggerRect:t,size:o,offset:r,verticalPosition:l,isTooltipVisibilityForced:a}),f=(0,z.Z)({"starboard-root":c},et().arrowContainer),d=(0,z.Z)(et().arrow,n,et()[o],{[et().flip]:"bottom"===l,[et().inModal]:i});return w.createElement($.Z,null,w.createElement("div",{className:f},w.createElement("div",{className:d,style:s})))};var eo=n(8074),er=n.n(eo);let ei=w.useLayoutEffect,el=(e,t,n,o,r,i)=>{if(!e||!t)return{};let l=e.left+e.width/2,u=l-t.width/2,a=window.innerWidth-t.width,c=i?0:window.scrollY;return{left:Math.min(Math.max(2,u),a)+r,top:("top"===o?e.top-t.height-n:e.bottom+n)+c}},eu=e=>{let{callOnOpenOnForce:t,children:n,label:o,ariaLabel:r,forceVisible:i,offset:l=0,className:u,onOpen:a,requiresUtilClassPrefix:c,size:s="large",verticalPosition:v="top",contentClassName:p,horizontalOffset:h=0,arrowClassName:g,dataTestId:L,onTooltipMouseOver:_,onTooltipMouseOut:V,forceHidden:T}=e,D=(0,w.useContext)(Q.t),[x,C]=function(e){var t,n,o,r,i,l,u,a,c=void 0===e?{}:e,s=c.id,v=c.onPointerEnter,p=c.onPointerMove,h=c.onPointerLeave,g=c.onPointerDown,L=c.onMouseEnter,_=c.onMouseMove,V=c.onMouseLeave,T=c.onMouseDown,D=c.onFocus,x=c.onBlur,C=c.onKeyDown,R=c.disabled,I=c.ref,F=c.DEBUG_STYLE,P=String((i=s||(m?E():null),u=(l=(0,w.useState)(i))[0],a=l[1],b(function(){null===u&&a(E())},[]),(0,w.useEffect)(function(){!1===m&&(m=!0)},[]),null!=u?String(u):void 0)),B=(0,w.useState)(!!F||X(P,!0)),j=B[0],k=B[1],U=(0,w.useRef)(null),K=S(I,U),Z=A(U,{observe:j});function G(e,t){return"undefined"!=typeof window&&"PointerEvent"in window?e:O(e,t)}function H(e){return function(t){"mouse"===t.pointerType&&e(t)}}function z(){Y({type:d.MouseEnter,id:P})}function Q(){Y({type:d.MouseMove,id:P})}function q(){Y({type:d.MouseLeave})}function $(){N.context.id===P&&Y({type:d.MouseDown})}return(0,w.useEffect)(function(){var e;return e=function(){k(X(P))},W.push(e),function(){W.splice(W.indexOf(e),1)}},[P]),(0,w.useEffect)(function(){var e=y(U.current);function t(e){("Escape"===e.key||"Esc"===e.key)&&N.value===f.Visible&&Y({type:d.SelectWithKeyboard})}return e.addEventListener("keydown",t),function(){return e.removeEventListener("keydown",t)}},[]),n=(t={disabled:R,isVisible:j,ref:U}).disabled,o=t.isVisible,r=t.ref,(0,w.useEffect)(function(){if("undefined"!=typeof window&&"PointerEvent"in window&&n&&o){var e=y(r.current);return e.addEventListener("mousemove",t),function(){e.removeEventListener("mousemove",t)}}function t(e){!o||e.target instanceof Element&&e.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||Y({type:d.GlobalMouseMove})}},[n,o,r]),[{"aria-describedby":j?M("tooltip",P):void 0,"data-state":j?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:K,onPointerEnter:O(v,H(z)),onPointerMove:O(p,H(Q)),onPointerLeave:O(h,H(q)),onPointerDown:O(g,H($)),onMouseEnter:G(L,z),onMouseMove:G(_,Q),onMouseLeave:G(V,q),onMouseDown:G(T,$),onFocus:O(D,function(){window.__REACH_DISABLE_TOOLTIPS||Y({type:d.Focus,id:P})}),onBlur:O(x,function(){N.context.id===P&&Y({type:d.Blur})}),onKeyDown:O(C,function(e){("Enter"===e.key||" "===e.key)&&Y({type:d.SelectWithKeyboard})})},{id:P,triggerRect:Z,isVisible:j},j]}(),R=(0,w.useRef)(null),I=(0,w.useRef)(120),{isVisible:F,triggerRect:P}=C,B=i||F,j=!!D,k=q[s];return ei(()=>{var e,t;if(R.current){let n=null!==(t=null===(e=R.current)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==t?t:void 0;I.current=n.height,_&&R.current.addEventListener("mouseover",_),V&&R.current.addEventListener("mouseout",V)}return()=>{R.current&&(_&&R.current.removeEventListener("mouseover",_),V&&R.current.removeEventListener("mouseout",V))}}),P&&window.innerHeight{a&&(i&&t?a():F&&a())},[a,B,i,t,F]),T?n:w.createElement(w.Fragment,null,w.cloneElement(n,x),w.createElement(Z,Object.assign({ref:R},C,{isVisible:B,label:o,ariaLabel:r,className:(0,z.Z)(er().tooltip,u,p,{[er().large]:"large"===s,[er().inModal]:j}),"data-testid":L,position:(e,t)=>el(e,t,k+l,v,h,i)})),w.createElement(en,{triggerRect:P,className:(0,z.Z)(u,g),size:s,offset:l,inModal:j,verticalPosition:v,isTooltipVisible:B,isTooltipVisibilityForced:i,requiresUtilClassPrefix:c}))}},8074:function(e){e.exports={tooltip:"Tooltip_tooltip__6DmKD",large:"Tooltip_large__VzacL",inModal:"Tooltip_inModal__dhnUp"}},88298:function(e){e.exports={arrowContainer:"TooltipArrow_arrowContainer__CrW8T",arrow:"TooltipArrow_arrow__If0Ni",small:"TooltipArrow_small__LHHCg",micro:"TooltipArrow_micro__Q4XZD",flip:"TooltipArrow_flip__GgZL_",inModal:"TooltipArrow_inModal__QNDCr"}}}]); \ No newline at end of file diff --git a/_app-d89e61d281abc48c.js.download b/_app-d89e61d281abc48c.js.download new file mode 100644 index 0000000..7943199 --- /dev/null +++ b/_app-d89e61d281abc48c.js.download @@ -0,0 +1,119 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{1581:function(ei,eo,ea){"use strict";var eu,ec;ea.d(eo,{Yd:function(){return eE}});let ed="logger/5.6.0",ef=!1,eh=!1,eg={debug:1,default:2,info:2,warning:3,error:4,off:5},em=eg.default,eb=null;function ew(){try{let ei=[];if(["NFD","NFC","NFKD","NFKC"].forEach(eo=>{try{if("test"!=="test".normalize(eo))throw Error("bad normalize")}catch(ea){ei.push(eo)}}),ei.length)throw Error("missing "+ei.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(ei){return ei.message}return null}let e_=ew();!function(ei){ei.DEBUG="DEBUG",ei.INFO="INFO",ei.WARNING="WARNING",ei.ERROR="ERROR",ei.OFF="OFF"}(eu||(eu={})),function(ei){ei.UNKNOWN_ERROR="UNKNOWN_ERROR",ei.NOT_IMPLEMENTED="NOT_IMPLEMENTED",ei.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",ei.NETWORK_ERROR="NETWORK_ERROR",ei.SERVER_ERROR="SERVER_ERROR",ei.TIMEOUT="TIMEOUT",ei.BUFFER_OVERRUN="BUFFER_OVERRUN",ei.NUMERIC_FAULT="NUMERIC_FAULT",ei.MISSING_NEW="MISSING_NEW",ei.INVALID_ARGUMENT="INVALID_ARGUMENT",ei.MISSING_ARGUMENT="MISSING_ARGUMENT",ei.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",ei.CALL_EXCEPTION="CALL_EXCEPTION",ei.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",ei.NONCE_EXPIRED="NONCE_EXPIRED",ei.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",ei.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",ei.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(ec||(ec={}));let eS="0123456789abcdef";class eE{constructor(ei){Object.defineProperty(this,"version",{enumerable:!0,value:ei,writable:!1})}_log(ei,eo){let ea=ei.toLowerCase();null==eg[ea]&&this.throwArgumentError("invalid log level name","logLevel",ei),em>eg[ea]||console.log.apply(console,eo)}debug(...ei){this._log(eE.levels.DEBUG,ei)}info(...ei){this._log(eE.levels.INFO,ei)}warn(...ei){this._log(eE.levels.WARNING,ei)}makeError(ei,eo,ea){if(eh)return this.makeError("censored error",eo,{});eo||(eo=eE.errors.UNKNOWN_ERROR),ea||(ea={});let eu=[];Object.keys(ea).forEach(ei=>{let eo=ea[ei];try{if(eo instanceof Uint8Array){let ea="";for(let ei=0;ei>4]+eS[15&eo[ei]];eu.push(ei+"=Uint8Array(0x"+ea+")")}else eu.push(ei+"="+JSON.stringify(eo))}catch(eo){eu.push(ei+"="+JSON.stringify(ea[ei].toString()))}}),eu.push(`code=${eo}`),eu.push(`version=${this.version}`);let ed=ei,ef="";switch(eo){case ec.NUMERIC_FAULT:{ef="NUMERIC_FAULT";let eo=ei;switch(eo){case"overflow":case"underflow":case"division-by-zero":ef+="-"+eo;break;case"negative-power":case"negative-width":ef+="-unsupported";break;case"unbound-bitwise-result":ef+="-unbound-result"}break}case ec.CALL_EXCEPTION:case ec.INSUFFICIENT_FUNDS:case ec.MISSING_NEW:case ec.NONCE_EXPIRED:case ec.REPLACEMENT_UNDERPRICED:case ec.TRANSACTION_REPLACED:case ec.UNPREDICTABLE_GAS_LIMIT:ef=eo}ef&&(ei+=" [ See: https://links.ethers.org/v5-errors-"+ef+" ]"),eu.length&&(ei+=" ("+eu.join(", ")+")");let eg=Error(ei);return eg.reason=ed,eg.code=eo,Object.keys(ea).forEach(function(ei){eg[ei]=ea[ei]}),eg}throwError(ei,eo,ea){throw this.makeError(ei,eo,ea)}throwArgumentError(ei,eo,ea){return this.throwError(ei,eE.errors.INVALID_ARGUMENT,{argument:eo,value:ea})}assert(ei,eo,ea,eu){ei||this.throwError(eo,ea,eu)}assertArgument(ei,eo,ea,eu){ei||this.throwArgumentError(eo,ea,eu)}checkNormalize(ei){null==ei&&(ei="platform missing String.prototype.normalize"),e_&&this.throwError("platform missing String.prototype.normalize",eE.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:e_})}checkSafeUint53(ei,eo){"number"==typeof ei&&(null==eo&&(eo="value not safe"),(ei<0||ei>=9007199254740991)&&this.throwError(eo,eE.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:ei}),ei%1&&this.throwError(eo,eE.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:ei}))}checkArgumentCount(ei,eo,ea){ea=ea?": "+ea:"",eieo&&this.throwError("too many arguments"+ea,eE.errors.UNEXPECTED_ARGUMENT,{count:ei,expectedCount:eo})}checkNew(ei,eo){(ei===Object||null==ei)&&this.throwError("missing new",eE.errors.MISSING_NEW,{name:eo.name})}checkAbstract(ei,eo){ei===eo?this.throwError("cannot instantiate abstract class "+JSON.stringify(eo.name)+" directly; use a sub-class",eE.errors.UNSUPPORTED_OPERATION,{name:ei.name,operation:"new"}):(ei===Object||null==ei)&&this.throwError("missing new",eE.errors.MISSING_NEW,{name:eo.name})}static globalLogger(){return eb||(eb=new eE(ed)),eb}static setCensorship(ei,eo){if(!ei&&eo&&this.globalLogger().throwError("cannot permanently disable censorship",eE.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ef){if(!ei)return;this.globalLogger().throwError("error censorship permanent",eE.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}eh=!!ei,ef=!!eo}static setLogLevel(ei){let eo=eg[ei.toLowerCase()];if(null==eo){eE.globalLogger().warn("invalid log level - "+ei);return}em=eo}static from(ei){return new eE(ei)}}eE.errors=ec,eE.levels=eu},99976:function(ei,eo,ea){"use strict";ea.d(eo,{p:function(){return eh}});let eu=ei=>{let eo=new Uint8Array(ei.length/2);for(let ea=0,eu=0;ea{let eo="";for(let ea=0;eaed(void 0,void 0,void 0,function*(){let eo=yield crypto.subtle.digest("SHA-256",ei);return crypto.subtle.digest("SHA-256",eo)}),eh=(ei,eo={})=>ed(void 0,void 0,void 0,function*(){let ea,ed;let{logTime:eh}=eo,eg=eu(ei.data),em=new Uint8Array(ei.randomness),eb=new Uint8Array(eg.length+em.length);eb.set(eg),eh&&console.time("PoW");let ew=1;do crypto.getRandomValues(em),eb.set(em,eg.length),ea=yield ef(eb),ed=new DataView(ea),ew++;while(ed.getUint32(0)>>32-ei.difficulty!=0);return eh&&console.timeEnd("PoW"),{solution:ec(em),attempts:ew}})},1624:function(ei,eo,ea){"use strict";ea.d(eo,{K:function(){return ec},e:function(){return ed}});let eu=Symbol("Foundation");function ec(ei,eo){let ea=ei;return Object.defineProperty(ea,eu,{enumerable:!1,configurable:!1,writable:!1,value:eo}),ea}function ed(ei){return ei[eu]}},29869:function(ei,eo,ea){"use strict";let eu,ec;ea.d(eo,{r:function(){return eg},y:function(){return em}});var ed=ea(67294),ef=ea(1624);function eh(ei){if(!ei){let ei="createIcon factory has not been set, make sure to import design system web or mobile first!";throw console.error(ei),Error(ei)}}let eg=(ei,eo)=>{eu=ei,ec=eo},em=ei=>(0,ef.K)(ed.memo(eo=>(eh(eu),eu(ei,eo))),ed.memo(eo=>(eh(ec),ec(ei,eo))))},83633:function(ei,eo,ea){"use strict";ea.d(eo,{x:function(){return ec}});var eu=ea(29869);let ec=(0,eu.y)({name:"Close",paths:[{d:"M19.25 4.75L4.75 19.25M19.25 19.25L4.75 4.75",strokeLinecap:"round",strokeLinejoin:"round",stroke:!0}]})},21645:function(ei,eo,ea){"use strict";ea.d(eo,{K:function(){return ed},w:function(){return ef}});var eu=ea(67294),ec=ea(80910);let ed={isReady:!1,refetchCount:0,observers:{withCaptureException:(0,ec.E)(),withCaptureMessage:(0,ec.V)()}},ef=(0,eu.createContext)(ed)},76592:function(ei,eo,ea){"use strict";var eu,ec,ed,ef,eh;ea.d(eo,{LE:function(){return ef},pQ:function(){return ed},qA:function(){return eh}}),function(ei){ei.Fatal="fatal",ei.Error="error",ei.Warning="warning",ei.Log="log",ei.Info="info",ei.Debug="debug"}(eu||(eu={})),function(ei){ei.Email="Email",ei.Username="Username",ei.Country="Country",ei.State="State",ei.TermsOfService="ToS",ei.Password="Password",ei.Code="Code"}(ec||(ec={})),function(ei){ei.SIGN_IN="login",ei.SIGN_UP="signup"}(ed||(ed={})),function(ei){ei.Sardine="sardine"}(ef||(ef={})),function(ei){ei.Sandbox="sandbox",ei.Production="production"}(eh||(eh={}))},80910:function(ei,eo,ea){"use strict";ea.d(eo,{E:function(){return ed},V:function(){return ec}});var eu=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let ec=ei=>(eo,ea)=>eu(void 0,void 0,void 0,function*(){try{yield eo()}catch(eo){ei?ei(ea,{extra:{error:eo}}):console.warn(ea)}}),ed=ei=>eo=>eu(void 0,void 0,void 0,function*(){try{yield eo()}catch(eo){eo&&ei?ei(eo):console.warn(String(eo))}})},92799:function(ei,eo,ea){"use strict";ea.d(eo,{t:function(){return ed}});var eu=ea(67294),ec=ea(21645);let ed=()=>{let{isReady:ei,slid:eo,vendorId:ea}=(0,eu.useContext)(ec.w);return{isReady:ei,slid:eo,vendorId:ea}}},93055:function(ei,eo,ea){"use strict";ea.d(eo,{V:function(){return ed}});var eu=ea(67294),ec=ea(19952);let ed=(ei,{memoizeResult:eo}={})=>{let ea=(0,eu.useRef)(ei);ea.current=ei;let ed=(0,eu.useRef)(eo?(...ei)=>ea.current(...ei):(0,ec.GA)((...ei)=>ea.current(...ei),ec.Fh));return ed.current}},60720:function(ei,eo,ea){"use strict";ea.d(eo,{Q:function(){return ed}});var eu=ea(67294);let ec=(0,eu.createContext)(void 0),ed=()=>ec},19952:function(ei,eo,ea){"use strict";ea.d(eo,{$K:function(){return eu},Fh:function(){return em},GA:function(){return ew},HD:function(){return ec},Kn:function(){return ef},hj:function(){return ed},sO:function(){return eb},tI:function(){return eh}});let eu=ei=>null!=ei,ec=ei=>"string"==typeof ei,ed=ei=>"number"==typeof ei,ef=ei=>"object"==typeof ei&&null!==ei&&!Array.isArray(ei),eh=ei=>ei instanceof Promise||"object"==typeof ei&&"function"==typeof ei.then&&"function"==typeof ei.catch&&"function"==typeof ei.finally,eg=ei=>Object.fromEntries(Object.entries(ei).sort(([ei],[eo])=>ei>eo?1:-1)),em=(ei,eo)=>JSON.stringify(ef(ei)?eg(ei):ei)===JSON.stringify(ef(eo)?eg(eo):eo),eb=(ei,eo,ea)=>ei&&eo in ei?ei[eo]:null==ei?void 0:ei[ea],ew=(ei,eo)=>{let ea;return(...eu)=>{let ec=ei(...eu);return eo(ea,ec)||(ea=ec),ea}}},91572:function(ei,eo,ea){"use strict";var eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT,ek,eC,eO,eI,eP;ea.d(eo,{Et:function(){return e_},G8:function(){return em},WS:function(){return ek},ZL:function(){return eg},aS:function(){return ew},ez:function(){return ec},h2:function(){return eI},kf:function(){return eC},lF:function(){return eS},sV:function(){return eO}}),function(ei){ei.Standard="standard",ei.Cryptowatch="cryptowatch",ei.FixApi="fix-api",ei.Paradigm="paradigm",ei.DomainManagement="domain-management"}(eu||(eu={})),function(ei){ei.All="all",ei.Currency="currency",ei.Equity="equity",ei.Nft="nft"}(ec||(ec={})),function(ei){ei.Stock="stock",ei.Etf="etf"}(ed||(ed={})),function(ei){ei.Crypto="crypto",ei.Fiat="fiat"}(ef||(ef={})),function(ei){ei.Red="red",ei.Yellow="yellow",ei.Green="green",ei.Blue="blue"}(eh||(eh={})),function(ei){ei.AD="AD",ei.AE="AE",ei.AF="AF",ei.AG="AG",ei.AI="AI",ei.AL="AL",ei.AM="AM",ei.AO="AO",ei.AQ="AQ",ei.AR="AR",ei.AS="AS",ei.AT="AT",ei.AU="AU",ei.AW="AW",ei.AX="AX",ei.AZ="AZ",ei.BA="BA",ei.BB="BB",ei.BD="BD",ei.BE="BE",ei.BF="BF",ei.BG="BG",ei.BH="BH",ei.BI="BI",ei.BJ="BJ",ei.BL="BL",ei.BM="BM",ei.BN="BN",ei.BO="BO",ei.BQ="BQ",ei.BR="BR",ei.BS="BS",ei.BT="BT",ei.BV="BV",ei.BW="BW",ei.BY="BY",ei.BZ="BZ",ei.CA="CA",ei.CC="CC",ei.CD="CD",ei.CF="CF",ei.CG="CG",ei.CH="CH",ei.CI="CI",ei.CK="CK",ei.CL="CL",ei.CM="CM",ei.CN="CN",ei.CO="CO",ei.CR="CR",ei.CU="CU",ei.CV="CV",ei.CW="CW",ei.CX="CX",ei.CY="CY",ei.CZ="CZ",ei.DE="DE",ei.DJ="DJ",ei.DK="DK",ei.DM="DM",ei.DO="DO",ei.DZ="DZ",ei.EC="EC",ei.EE="EE",ei.EG="EG",ei.EH="EH",ei.ER="ER",ei.ES="ES",ei.ET="ET",ei.FI="FI",ei.FJ="FJ",ei.FK="FK",ei.FM="FM",ei.FO="FO",ei.FR="FR",ei.GA="GA",ei.GB="GB",ei.GD="GD",ei.GE="GE",ei.GF="GF",ei.GG="GG",ei.GH="GH",ei.GI="GI",ei.GL="GL",ei.GM="GM",ei.GN="GN",ei.GP="GP",ei.GQ="GQ",ei.GR="GR",ei.GS="GS",ei.GT="GT",ei.GU="GU",ei.GW="GW",ei.GY="GY",ei.HK="HK",ei.HM="HM",ei.HN="HN",ei.HR="HR",ei.HT="HT",ei.HU="HU",ei.ID="ID",ei.IE="IE",ei.IL="IL",ei.IM="IM",ei.IN="IN",ei.IO="IO",ei.IQ="IQ",ei.IR="IR",ei.IS="IS",ei.IT="IT",ei.JE="JE",ei.JM="JM",ei.JO="JO",ei.JP="JP",ei.KE="KE",ei.KG="KG",ei.KH="KH",ei.KI="KI",ei.KM="KM",ei.KN="KN",ei.KP="KP",ei.KR="KR",ei.KW="KW",ei.KY="KY",ei.KZ="KZ",ei.LA="LA",ei.LB="LB",ei.LC="LC",ei.LI="LI",ei.LK="LK",ei.LR="LR",ei.LS="LS",ei.LT="LT",ei.LU="LU",ei.LV="LV",ei.LY="LY",ei.MA="MA",ei.MC="MC",ei.MD="MD",ei.ME="ME",ei.MF="MF",ei.MG="MG",ei.MH="MH",ei.MK="MK",ei.ML="ML",ei.MM="MM",ei.MN="MN",ei.MO="MO",ei.MP="MP",ei.MQ="MQ",ei.MR="MR",ei.MS="MS",ei.MT="MT",ei.MU="MU",ei.MV="MV",ei.MW="MW",ei.MX="MX",ei.MY="MY",ei.MZ="MZ",ei.NA="NA",ei.NC="NC",ei.NE="NE",ei.NF="NF",ei.NG="NG",ei.NI="NI",ei.NL="NL",ei.NO="NO",ei.NP="NP",ei.NR="NR",ei.NU="NU",ei.NZ="NZ",ei.OM="OM",ei.PA="PA",ei.PE="PE",ei.PF="PF",ei.PG="PG",ei.PH="PH",ei.PK="PK",ei.PL="PL",ei.PM="PM",ei.PN="PN",ei.PR="PR",ei.PS="PS",ei.PT="PT",ei.PW="PW",ei.PY="PY",ei.QA="QA",ei.RE="RE",ei.RO="RO",ei.RS="RS",ei.RU="RU",ei.RW="RW",ei.SA="SA",ei.SB="SB",ei.SC="SC",ei.SD="SD",ei.SE="SE",ei.SG="SG",ei.SH="SH",ei.SI="SI",ei.SJ="SJ",ei.SK="SK",ei.SL="SL",ei.SM="SM",ei.SN="SN",ei.SO="SO",ei.SR="SR",ei.SS="SS",ei.ST="ST",ei.SV="SV",ei.SX="SX",ei.SY="SY",ei.SZ="SZ",ei.TC="TC",ei.TD="TD",ei.TF="TF",ei.TG="TG",ei.TH="TH",ei.TJ="TJ",ei.TK="TK",ei.TL="TL",ei.TM="TM",ei.TN="TN",ei.TO="TO",ei.TR="TR",ei.TT="TT",ei.TV="TV",ei.TW="TW",ei.TZ="TZ",ei.UA="UA",ei.UG="UG",ei.UM="UM",ei.US="US",ei.UY="UY",ei.UZ="UZ",ei.VA="VA",ei.VC="VC",ei.VE="VE",ei.VG="VG",ei.VI="VI",ei.VN="VN",ei.VU="VU",ei.WF="WF",ei.WS="WS",ei.YE="YE",ei.YT="YT",ei.ZA="ZA",ei.ZM="ZM",ei.ZW="ZW",ei.AC="AC",ei.AN="AN",ei.AP="AP",ei.CP="CP",ei.DG="DG",ei.EA="EA",ei.EU="EU",ei.IC="IC",ei.JX="JX",ei.TA="TA",ei.QO="QO",ei.XK="XK",ei.Value0C="0C"}(eg||(eg={})),function(ei){ei.Addressbook="addressbook",ei.Audit="audit",ei.Deposit="deposit",ei.DocumentManager="document_manager",ei.Earnings="earnings",ei.Equities="equities",ei.HistoryExport="history_export",ei.Nft="nft",ei.Otc="otc",ei.Ptl="ptl",ei.Triggers="triggers",ei.Securitypass="securitypass",ei.Securitytfa="securitytfa",ei.Sessionextend="sessionextend",ei.Settingsaccount="settingsaccount",ei.Settingsapi="settingsapi",ei.Settingsnotify="settingsnotify",ei.Settingsverify="settingsverify",ei.Subaccounts="subaccounts",ei.Trade="trade",ei.Transfers="transfers",ei.Withdraw="withdraw",ei.Verification="verification",ei.Bankonboarding="bankonboarding",ei.Custody="custody"}(em||(em={})),function(ei){ei.AccountantLetter="AccountantLetter",ei.AccountSecurityPhoto="AccountSecurityPhoto",ei.AMLPolicy="AMLPolicy",ei.AMLQuestionnaire="AMLQuestionnaire",ei.AOI="AOI",ei.AssetLetter="AssetLetter",ei.BankStatement="BankStatement",ei.BATMContract="BATMContract",ei.BATMQuestionnaire="BATMQuestionnaire",ei.BusinessAddress="BusinessAddress",ei.BusinessOperationsDocument="BusinessOperationsDocument",ei.BylawDocument="BylawDocument",ei.CCStatement="CCStatement",ei.CertificateOfBusinessNameChange="CertificateOfBusinessNameChange",ei.CIPDocument="CIPDocument",ei.CompanyShareRegistry="CompanyShareRegistry",ei.CorporateFormation="CorporateFormation",ei.DBATradeNameDocument="DBA/TradeNameDocument",ei.DriversLicense="DriversLicense",ei.DriversLicenseBack="DriversLicenseBack",ei.EINLetter="EINLetter",ei.FinancialStatement="FinancialStatement",ei.IDCard="IDCard",ei.IDCardBack="IDCardBack",ei.IDHeadshot="IDHeadshot",ei.Invalid="Invalid",ei.KrakenStatement="KrakenStatement",ei.LetterOfGoodStanding="LetterOfGoodStanding",ei.MarriageCertificate="MarriageCertificate",ei.NameChangeCertificate="NameChangeCertificate",ei.OperatingAgreement="OperatingAgreement",ei.OrganizationalChart="OrganizationalChart",ei.Other="Other",ei.Passport="Passport",ei.PassportAddressPage="PassportAddressPage",ei.PayStub="PayStub",ei.ProspectusOfferingHedgeFund="ProspectusOffering(HedgeFund)",ei.RegulationLicensing="RegulationLicensing",ei.ResidenceCard="ResidenceCard",ei.ResidenceCardBack="ResidenceCardBack",ei.ResidenceCert="ResidenceCert",ei.Selfie="Selfie",ei.SanctionsPolicy="SanctionsPolicy",ei.ServiceAgreementWithScreeningVendor="ServiceAgreementWithScreeningVendor",ei.SocialInsurancePaymentReceipt="SocialInsurancePaymentReceipt",ei.SocialSecurityCard="SocialSecurityCard",ei.SpecialPermanentResidenceCard="SpecialPermanentResidenceCard",ei.SpecialPermanentResidenceCardBack="SpecialPermanentResidenceCardBack",ei.TaxReceipt="TaxReceipt",ei.TaxReturn="TaxReturn",ei.TrustDeedCertificate="TrustDeed/Certificate",ei.Unprocessed="Unprocessed",ei.Uncategorized="Uncategorized",ei.UtilityBill="UtilityBill",ei.VoidedCheck="VoidedCheck",ei.VoterIDCard="VoterIDCard",ei.VVCScreenshot="VVCScreenshot"}(eb||(eb={})),function(ei){ei.Account="Account",ei.AddressBook="AddressBook",ei.API="API",ei.Approval="Approval",ei.Auth="Auth",ei.Blocktrade="Blocktrade",ei.BM="BM",ei.CTSScheduler="CTS-Scheduler",ei.Custody="Custody",ei.Export="Export",ei.Database="Database",ei.Document="Document",ei.Device="Device",ei.Earnings="Earnings",ei.Funding="Funding",ei.General="General",ei.KYC="KYC",ei.Markets="Markets",ei.NFT="NFT",ei.Perm="Perm",ei.PTL="PTL",ei.Report="Report",ei.Rewards="Rewards",ei.Role="Role",ei.P2P="P2P",ei.Service="Service",ei.Session="Session",ei.Storage="Storage",ei.Order="Order",ei.OTC="OTC",ei.Trade="Trade",ei.ThirdParty="ThirdParty",ei.Query="Query",ei.WebSocket="WebSocket",ei.Zendesk="Zendesk"}(ew||(ew={})),function(ei){ei.E="E",ei.W="W"}(e_||(e_={})),function(ei){ei.AboveMax="Above max",ei.AccountAlreadyCorporate="Account already corporate",ei.AccountDisabled="Account disabled",ei.AccountLocked="Account locked",ei.AccountNotCorporate="Account not corporate",ei.AccountIsSanctioned="Account is sanctioned",ei.AccountUnconfirmed="Account unconfirmed",ei.ActiveQuotes="Active quotes",ei.AddressAutocomplete="Address autocomplete",ei.AddressPredictions="Address predictions",ei.AddressDetail="Address detail",ei.AlreadyProcessed="Already Processed",ei.ApprovalNotFound="Approval not found",ei.ApprovalFailed="Approval failed",ei.ApprovalDenied="Approval denied",ei.AcquisitionLimitExceeded="Acquisition limit exceeded",ei.AuthorizationError="Authorization error",ei.BadRequest="Bad request",ei.BadTransaction="Bad transaction",ei.BadWebSocketMessage="Bad WebSocket message",ei.BelowMin="Below min",ei.Busy="Busy",ei.Denied="Denied",ei.DroppedMessage="Dropped message",ei.EmailNotAvailable="Email not available",ei.ExposureExceeded="Exposure exceeded",ei.Failed="Failed",ei.Forbidden="Forbidden",ei.LocationBlacklisted="Location blacklisted",ei.InternalError="Internal error",ei.IncompleteCurrencyConversion="Incomplete currency conversion",ei.InvalidAmount="Invalid amount",ei.InvalidArguments="Invalid arguments",ei.InvalidAsset="Invalid asset",ei.InvalidAssetClass="Invalid asset class",ei.InvalidAssetPair="Invalid asset pair",ei.InvalidCountryCode="Invalid country code",ei.InvalidCSRF="Invalid CSRF",ei.InvalidDevice="Invalid device",ei.InvalidKey="Invalid key",ei.InvalidXKoriginHeader="Invalid x-korigin header",ei.InvalidNonce="Invalid nonce",ei.InvalidOperationOwner="Invalid operation owner",ei.InvalidOrder="Invalid order",ei.InvalidPeriod="Invalid period",ei.InvalidPosition="Invalid position",ei.InvalidPOW="Invalid POW",ei.InvalidPrice="Invalid price",ei.InvalidRequest="Invalid request",ei.InvalidSession="Invalid session",ei.InvalidSignature="Invalid signature",ei.InvalidStepUpAuthentication="Invalid step-up authentication",ei.InvalidTimeoutArgument="Invalid timeout argument",ei.InvalidTimestamp="Invalid timestamp",ei.InvalidUser="Invalid user",ei.InvalidWallet="Invalid wallet",ei.LockedOut="Locked out",ei.LoginFailed="Login failed",ei.MandatoryDeviceApproval="Mandatory device approval",ei.MarketInCancelOnlyMode="Market in cancel_only mode",ei.MarketInLimitOnlyMode="Market in limit_only mode",ei.MarketInPostOnlyMode="Market in post_only mode",ei.MissingXKoriginHeader="Missing x-korigin header",ei.MustLogout="Must logout",ei.NewPasswordMatchesOldPassword="New password matches old password",ei.NoSession="No session",ei.NotFound="Not found",ei.NotQuotedYet="Not quoted yet",ei.NoChange="No change",ei.NoFundingMethod="No funding method",ei.PermissionDenied="Permission denied",ei.QuoteAlreadyAccepted="Quote already accepted",ei.QuoteAlreadyExpired="Quote already expired",ei.QuoteAlreadyRejected="Quote already rejected",ei.RateLimitExceeded="Rate limit exceeded",ei.RequestArguments="Request arguments",ei.ResentConfirmation="Resent confirmation",ei.RFQNotEnabled="RFQ not enabled",ei.RoleNotFound="Role not found",ei.ScheduledActionNotFound="Scheduled action not found",ei.ScheduledActionLimitExceeded="Scheduled action limit exceeded",ei.ScheduledActionValidationError="Scheduled action validation error",ei.ScheduledActionTimeFilterError="Scheduled action time filter error",ei.SessionExpired="Session expired",ei.SettingsLocked="Settings locked",ei.SpecNotFound="Spec not found",ei.Terminated="Terminated",ei.Value2FAConfigurationNotFound="2FA configuration not found",ei.Tier4IndividualApplicationLocked="Tier 4 individual application locked",ei.Tier4CorporateApplicationLocked="Tier 4 corporate application locked",ei.Timeout="Timeout",ei.TooManyDocuments="Too many documents",ei.TooManyRequests="Too many requests",ei.UnableToAccept="Unable to accept",ei.UnableToReject="Unable to reject",ei.UnableToProvideQuote="Unable to provide quote",ei.UnapprovedDevice="Unapproved device",ei.Unavailable="Unavailable",ei.UnexpectedError="Unexpected error",ei.UnknownId="Unknown id",ei.UnknownAsset="Unknown asset",ei.UnknownAssetClass="Unknown asset class",ei.UnknownAssetPair="Unknown asset pair",ei.UnknownDocument="Unknown document",ei.UnknownMethod="Unknown method",ei.InvalidStakingMethod="Invalid staking method",ei.UnknownOrder="Unknown order",ei.UnprocessableEntity="Unprocessable entity",ei.UnknownWithdrawKey="Unknown withdraw key",ei.UsernameNotAvailable="Username not available",ei.UnsupportedContentType="Unsupported content-type",ei.ViewPerm="View perm",ei.ProfileIsMissingRequiredData="Profile is missing required data",ei.MissingEmailType="Missing email type",ei.ProfileContainsInvalidData="Profile contains invalid data",ei.UnknownZendeskApplication="Unknown Zendesk application",ei.QuantityIsTooSmallForAsset="Quantity is too small for asset",ei.QuantityIsTooLargeForAsset="Quantity is too large for asset",ei.IdentifierDoesNotMatchAnyRecords="Identifier does not match any records",ei.InvalidNoteContents="Invalid note contents",ei.AliasInvalid="Alias invalid",ei.AliasAlreadyUsed="Alias already used",ei.ContactListInvalid="Contact list invalid",ei.ContactNotFound="Contact not found",ei.DailyLimitExceeded="Daily limit exceeded",ei.TransferDeniedOnRecipientSide="Transfer denied on recipient side",ei.TransferDeniedOnSenderSide="Transfer denied on sender side",ei.InsufficientFunds="Insufficient funds",ei.AssetConversionRateIsStale="Asset conversion rate is stale",ei.NoncompliantValue="Noncompliant value",ei.InvalidPermissions="Invalid permissions",ei.NotReady="Not ready",ei.AddressVerificationNeeded="Address verification needed",ei.FeeAmountIsGreaterThanAssetAmount="Fee amount is greater than asset amount",ei.TooManyAddresses="Too many addresses",ei.NoData="No data",ei.TemporaryLockout="Temporary lockout",ei.CostMinimumNotMet="Cost minimum not met",ei.InsufficientInitialMargin="Insufficient initial margin",ei.MarginLevelTooLow="Margin level too low",ei.MarginPositionSizeExceeded="Margin position size exceeded",ei.NoVolumeToClosePosition="No volume to close position",ei.NotEnoughLeavesQty="Not enough leaves qty",ei.OrderMinimumNotMet="Order minimum not met",ei.OrdersLimitExceeded="Orders limit exceeded",ei.PostOnlyOrder="Post only order",ei.ReduceOnly="Reduce only",ei.MarketInReduceOnlyMode="Market in reduce_only mode",ei.UserKYCStatusUnverified="User KYC status unverified",ei.UserLocked="User Locked"}(eS||(eS={})),function(ei){ei.Currency="currency",ei.Equity="equity",ei.Forex="forex",ei.Nft="nft",ei.Volume="volume"}(eE||(eE={})),function(ei){ei.None="none",ei.Deposit="deposit",ei.Withdrawal="withdrawal",ei.Trade="trade",ei.Margin="margin",ei.Adjustment="adjustment",ei.Rollover="rollover",ei.Credit="credit",ei.Transfer="transfer",ei.Settled="settled",ei.Staking="staking",ei.Sale="sale",ei.Conversion="conversion",ei.Eqtrade="eqtrade",ei.Dividend="dividend",ei.Nfttrade="nfttrade",ei.Reward="reward",ei.Nftcreatorfee="nftcreatorfee",ei.Marginconversion="marginconversion",ei.Reserve="reserve",ei.Blocktrade="blocktrade",ei.Earn="earn",ei.Nftrebate="nftrebate",ei.Custodytransfer="custodytransfer",ei.Spend="spend",ei.Receive="receive"}(eA||(eA={})),function(ei){ei.Standard="standard",ei.Extended="extended"}(eT||(eT={})),function(ei){ei.TwoFactor="two-factor",ei.ApiKey="api-key",ei.AccountSettings="account-settings",ei.Bypass="bypass"}(ek||(ek={})),function(ei){ei.Main="main",ei.Secret="secret",ei.Trade="trade",ei.Funds="funds"}(eC||(eC={})),function(ei){ei.None="none",ei.GoogleAuthHotp="google_auth_hotp",ei.GoogleAuthTotp="google_auth_totp",ei.Yubikey="yubikey",ei.Password="password",ei.Webauthn="webauthn"}(eO||(eO={})),function(ei){ei.Unknown="unknown",ei.None="none",ei.Locked="locked",ei.Starter="starter",ei.Express="express",ei.ExpressFailed="express_failed",ei.Incomplete="incomplete",ei.Intermediate="intermediate",ei.Pro="pro",ei.ProPersonal="pro_personal",ei.ProBusiness="pro_business"}(eI||(eI={})),function(ei){ei.Buy="buy",ei.Sell="sell"}(eP||(eP={}))},54084:function(ei,eo,ea){"use strict";ea.d(eo,{B:function(){return eu}});class eu extends Error{constructor(ei,eo,ea,ec){super(ei),this.response=eo,this.data=ea,Object.setPrototypeOf(this,eu.prototype),"severity"in ec&&(this.severity=ec.severity),"errorClass"in ec&&(this.errorClass=ec.errorClass),"type"in ec&&(this.type=ec.type),"msg"in ec&&(this.msg=ec.msg),"value"in ec&&(this.value=ec.value),"field"in ec&&(this.field=ec.field),"error"in ec&&(this.error=ec.error),"valid_options"in ec&&(this.valid_options=ec.valid_options)}}},52458:function(ei,eo,ea){"use strict";ea.d(eo,{o:function(){return ec}});var eu=ea(67294);let ec=(0,eu.createContext)(null)},89866:function(ei,eo,ea){"use strict";ea.d(eo,{W:function(){return ed}});var eu=ea(67294),ec=ea(52458);let ed=()=>{let ei=(0,eu.useContext)(ec.o);if(null===ei)throw Error("useInternalApiClient must be used as a child of InternalApiClientProvider.");return ei}},17123:function(ei,eo,ea){"use strict";ea.d(eo,{B:function(){return ec}});var eu=ea(67294);let ec=(0,eu.createContext)(null)},77599:function(ei,eo,ea){"use strict";var eu;ea.d(eo,{T:function(){return eu}}),function(ei){ei.INITIALIZING="initializing",ei.AVAILABLE="available",ei.EXPIRED="expired"}(eu||(eu={}))},88643:function(ei,eo,ea){"use strict";ea.d(eo,{k:function(){return ed}});var eu=ea(67294),ec=ea(17123);let ed=()=>{let ei=(0,eu.useContext)(ec.B);if(null===ei)throw Error("useSession must be used as a child of SessionProvider.");return ei}},95924:function(ei,eo,ea){"use strict";ea.d(eo,{e:function(){return ec}});var eu=ea(67294);let ec=(0,eu.createContext)(void 0)},93009:function(ei,eo,ea){"use strict";ea.d(eo,{n:function(){return ed}});var eu=ea(67294),ec=ea(95924);let ed=()=>{let ei=(0,eu.useContext)(ec.e);if(void 0===ei)throw Error("useLaunchDarklyMultiEnvContext must be used within a LaunchDarklyMultiEnvProvider");return ei}},2264:function(ei,eo,ea){"use strict";ea.d(eo,{V:function(){return ec}});var eu=ea(93009);let ec=ei=>{let{featureFlagsOfAllEnv:eo}=(0,eu.n)(),ea=ei?eo.secondary[ei]:eo.primary;return ea}},71565:function(ei,eo,ea){"use strict";ea.d(eo,{m:function(){return ec}});var eu=ea(93009);let ec=ei=>{let{multiEnvService:eo}=(0,eu.n)();return eo.getIsInitialized()?eo.getLDClient(ei):void 0}},50550:function(ei,eo,ea){"use strict";ea.d(eo,{r:function(){return ed}});var eu=ea(67294),ec=ea(54276);let ed=(ei,eo=[],ea)=>{let[ed,ef]=(0,ec.i)(ei,ea);return(0,eu.useEffect)(()=>{ed()},eo),Object.assign(Object.assign({},ef),{mutate:ed})}},54276:function(ei,eo,ea){"use strict";ea.d(eo,{i:function(){return ef}});var eu=ea(67294),ec=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let ed={ignoreWhileCallingFn:!1},ef=(ei,eo=ed)=>{let[ea,ef]=(0,eu.useState)({data:void 0,loading:!1,error:void 0}),eh=(0,eu.useRef)({mutationId:0,state:ea,callback:ei,options:eo});eh.current=Object.assign(Object.assign({},eh.current),{state:ea,callback:ei,options:Object.assign(Object.assign({},ed),eo)});let eg=(0,eu.useCallback)(ei=>{ef(eo=>{let ea=Object.assign(Object.assign({},eo),ei);return eh.current.state=ea,ea})},[]),em=(0,eu.useCallback)((...ei)=>ec(void 0,void 0,void 0,function*(){var eo,ea,eu,ec;if(eh.current.options.ignoreWhileCallingFn&&eh.current.state.loading)return;let ed=++eh.current.mutationId;eg({loading:!0});try{let eu=yield eh.current.callback(...ei);return eh.current.mutationId===ed&&(eg({data:eu,loading:!1,error:void 0}),null===(ea=(eo=eh.current.options).onCompleted)||void 0===ea||ea.call(eo,eu)),eu}catch(ei){eh.current.mutationId===ed&&(eg({data:void 0,loading:!1,error:ei}),null===(ec=(eu=eh.current.options).onError)||void 0===ec||ec.call(eu,ei));return}}),[eg]);return[em,ea]}},30514:function(ei,eo,ea){"use strict";ea.d(eo,{_:function(){return ec}});var eu=ea(67294);function ec(ei,eo,ea){let ec=(0,eu.useRef)(null==ea?void 0:ea.onError);ec.current=null==ea?void 0:ea.onError;let[ed,ef]=(0,eu.useState)(()=>{try{let ea="undefined"!=typeof window&&window.localStorage.getItem(ei);return ea?JSON.parse(ea):eo}catch(ei){return ec.current?ec.current(ei):console.error(ei),eo}}),eh=(0,eu.useRef)(null==ea?void 0:ea.onExpire);return eh.current=null==ea?void 0:ea.onExpire,(0,eu.useEffect)(()=>{if("undefined"!=typeof window)try{window.localStorage.setItem(ei,JSON.stringify(ed))}catch(ei){ec.current?ec.current(ei):console.error(ei)}},[ei,ed]),[ed,ef]}},8793:function(ei,eo,ea){"use strict";ea.d(eo,{X:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M4.58571 12L10.2928 17.7072L11.707 16.2929L8.41409 13L19 13L19 11L8.41418 11L11.707 7.70715L10.2928 6.29294L4.58571 12Z",fill:ea}))});ef.displayName="ArrowLeft"},66711:function(ei,eo,ea){"use strict";ea.d(eo,{o:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M19.4143 12L13.7072 6.29285L12.293 7.70706L15.5859 11H5V13H15.5858L12.293 16.2928L13.7072 17.7071L19.4143 12Z",fill:ea}))});ef.displayName="ArrowRight"},79154:function(ei,eo,ea){"use strict";ea.d(eo,{p:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M12 16L7 10L17 10L12 16Z",fill:ea}))});ef.displayName="CaretDown"},59470:function(ei,eo,ea){"use strict";ea.d(eo,{U:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M12 8L17 14H7L12 8Z",fill:ea}))});ef.displayName="CaretUp"},63808:function(ei,eo,ea){"use strict";ea.d(eo,{N:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M20.4844 9.4844L19.0702 8.07019L11.9991 15.1413L4.92803 8.07019L3.51381 9.4844L11.9991 17.9697L20.4844 9.4844Z",fill:ea}))});ef.displayName="ChevronLargeDown"},54761:function(ei,eo,ea){"use strict";ea.d(eo,{y:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12Z",fill:ea}),eu.createElement("path",{d:"M16.2072 9.70712L10.5001 15.4142L7.29297 12.2071L8.70718 10.7929L10.5001 12.5858L14.793 8.29291L16.2072 9.70712Z",fill:ea}))});ef.displayName="CircleCheck"},3325:function(ei,eo,ea){"use strict";ea.d(eo,{e:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M6.3439 4.92896L4.92969 6.34317L10.5865 12L4.92969 17.6569L6.3439 19.0711L12.0008 13.4142L17.6576 19.0711L19.0718 17.6569L13.415 12L19.0718 6.34317L17.6576 4.92896L12.0008 10.5858L6.3439 4.92896Z",fill:ea}))});ef.displayName="CloseLarge"},19037:function(ei,eo,ea){"use strict";ea.d(eo,{$:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M10.5905 12.0053L6.03906 16.5567L7.45328 17.9709L12.0047 13.4195L16.5562 17.9709L17.9704 16.5567L13.4189 12.0053L17.9704 7.45383L16.5562 6.03961L12.0047 10.591L7.45328 6.03961L6.03906 7.45383L10.5905 12.0053Z",fill:ea}))});ef.displayName="CloseMedium"},33762:function(ei,eo,ea){"use strict";ea.d(eo,{E:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M10.5906 12.0053L7.04688 15.549L8.46109 16.9632L12.0048 13.4195L15.5485 16.9632L16.9627 15.549L13.419 12.0053L16.9627 8.46158L15.5485 7.04736L12.0048 10.5911L8.46109 7.04736L7.04688 8.46158L10.5906 12.0053Z",fill:ea}))});ef.displayName="CloseSmall"},67834:function(ei,eo,ea){"use strict";ea.d(eo,{k:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M13 10V18H11V10H13Z",fill:ea}),eu.createElement("path",{d:"M13 8V6H11V8H13Z",fill:ea}),eu.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4Z",fill:ea}))});ef.displayName="Info"},71394:function(ei,eo,ea){"use strict";ea.d(eo,{o:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M3 11C3 6.58 6.58 3 11 3C15.42 3 19 6.58 19 11C19 12.8494 18.3733 14.5517 17.3205 15.9062L20.7072 19.2929L19.293 20.7071L15.9063 17.3204C14.5517 18.3732 12.8494 19 11 19C6.58 19 3 15.42 3 11ZM17 11C17 7.69 14.31 5 11 5C7.69 5 5 7.69 5 11C5 14.31 7.69 17 11 17C14.31 17 17 14.31 17 11Z",fill:ea}))});ef.displayName="Search"},22062:function(ei,eo,ea){"use strict";ea.d(eo,{v:function(){return ef}});var eu=ea(67294),ec=ea(93552),ed=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ef=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ef=ed(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ec.ti)(ef),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M11 14V8H13V14H11Z",fill:ea}),eu.createElement("path",{d:"M11 18V16H13V18H11Z",fill:ea}),eu.createElement("path",{d:"M9.15093 3.76C9.74093 2.59 10.8709 2 12.0009 2C13.1309 2 14.2609 2.59 14.8509 3.76L21.6609 17.39C22.7209 19.51 21.1809 22 18.8109 22H5.19093C2.82093 22 1.28093 19.51 2.34093 17.39L9.15093 3.76ZM13.0609 4.66C12.7609 4.06 12.2209 4 12.0009 4C11.7809 4 11.2409 4.06 10.9409 4.66L4.13093 18.29C3.86093 18.83 4.08093 19.28 4.18093 19.45C4.29093 19.62 4.59093 20.01 5.19093 20.01H18.8109C19.4109 20.01 19.7209 19.62 19.8209 19.45C19.9209 19.28 20.1409 18.82 19.8709 18.29L13.0609 4.66Z",fill:ea}))});ef.displayName="Warning"},93552:function(ei,eo,ea){"use strict";ea.d(eo,{ti:function(){return eh}});var eu=ea(86010),ec=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};function ed(ei){switch(ei){case"x-small":return 16;case"small":return 20;case"medium":return 24;case"large":return 32;case"x-large":return 40;case"xx-large":return 56}}let ef=(ei="medium")=>{let eo=ed(ei);return{width:eo,height:eo}},eh=ei=>{var{size:eo,className:ea}=ei,ed=ec(ei,["size","className"]);return Object.assign(Object.assign(Object.assign({},ef(eo)),{className:(0,eu.Z)("svg-icon",ea)}),ed)}},71013:function(ei,eo,ea){"use strict";var eu;ea.d(eo,{C:function(){return eu}}),function(ei){ei.AC="AC",ei.AD="AD",ei.AE="AE",ei.AF="AF",ei.AG="AG",ei.AI="AI",ei.AL="AL",ei.AM="AM",ei.AO="AO",ei.AQ="AQ",ei.AR="AR",ei.AS="AS",ei.AT="AT",ei.AU="AU",ei.AW="AW",ei.AX="AX",ei.AZ="AZ",ei.BA="BA",ei.BB="BB",ei.BD="BD",ei.BE="BE",ei.BF="BF",ei.BG="BG",ei.BH="BH",ei.BI="BI",ei.BJ="BJ",ei.BL="BL",ei.BM="BM",ei.BN="BN",ei.BO="BO",ei.BQ="BQ",ei.BR="BR",ei.BS="BS",ei.BT="BT",ei.BV="BV",ei.BW="BW",ei.BY="BY",ei.BZ="BZ",ei.CA="CA",ei.CC="CC",ei.CD="CD",ei.CF="CF",ei.CG="CG",ei.CH="CH",ei.CI="CI",ei.CK="CK",ei.CL="CL",ei.CM="CM",ei.CN="CN",ei.CO="CO",ei.CR="CR",ei.CU="CU",ei.CV="CV",ei.CW="CW",ei.CX="CX",ei.CY="CY",ei.CZ="CZ",ei.DE="DE",ei.DG="DG",ei.DJ="DJ",ei.DK="DK",ei.DM="DM",ei.DO="DO",ei.DZ="DZ",ei.EC="EC",ei.EE="EE",ei.EG="EG",ei.EH="EH",ei.ER="ER",ei.ES="ES",ei.ET="ET",ei.FI="FI",ei.FJ="FJ",ei.FK="FK",ei.FM="FM",ei.FO="FO",ei.FR="FR",ei.GA="GA",ei.GB="GB",ei.GD="GD",ei.GE="GE",ei.GF="GF",ei.GG="GG",ei.GH="GH",ei.GI="GI",ei.GL="GL",ei.GM="GM",ei.GN="GN",ei.GP="GP",ei.GQ="GQ",ei.GR="GR",ei.GS="GS",ei.GT="GT",ei.GU="GU",ei.GW="GW",ei.GY="GY",ei.HK="HK",ei.HM="HM",ei.HN="HN",ei.HR="HR",ei.HT="HT",ei.HU="HU",ei.ID="ID",ei.IE="IE",ei.IL="IL",ei.IM="IM",ei.IN="IN",ei.IO="IO",ei.IQ="IQ",ei.IR="IR",ei.IS="IS",ei.IT="IT",ei.JE="JE",ei.JM="JM",ei.JO="JO",ei.JP="JP",ei.KE="KE",ei.KG="KG",ei.KH="KH",ei.KI="KI",ei.KM="KM",ei.KN="KN",ei.KP="KP",ei.KR="KR",ei.KW="KW",ei.KY="KY",ei.KZ="KZ",ei.LA="LA",ei.LB="LB",ei.LC="LC",ei.LI="LI",ei.LK="LK",ei.LR="LR",ei.LS="LS",ei.LT="LT",ei.LU="LU",ei.LV="LV",ei.LY="LY",ei.MA="MA",ei.MC="MC",ei.MD="MD",ei.ME="ME",ei.MF="MF",ei.MG="MG",ei.MH="MH",ei.MK="MK",ei.ML="ML",ei.MM="MM",ei.MN="MN",ei.MO="MO",ei.MP="MP",ei.MQ="MQ",ei.MR="MR",ei.MS="MS",ei.MT="MT",ei.MU="MU",ei.MV="MV",ei.MW="MW",ei.MX="MX",ei.MY="MY",ei.MZ="MZ",ei.NA="NA",ei.NC="NC",ei.NE="NE",ei.NF="NF",ei.NG="NG",ei.NI="NI",ei.NL="NL",ei.NO="NO",ei.NP="NP",ei.NR="NR",ei.NU="NU",ei.NZ="NZ",ei.OM="OM",ei.PA="PA",ei.PE="PE",ei.PF="PF",ei.PG="PG",ei.PH="PH",ei.PK="PK",ei.PL="PL",ei.PM="PM",ei.PN="PN",ei.PR="PR",ei.PS="PS",ei.PT="PT",ei.PW="PW",ei.PY="PY",ei.QA="QA",ei.RE="RE",ei.RO="RO",ei.RS="RS",ei.RU="RU",ei.RW="RW",ei.SA="SA",ei.SB="SB",ei.SC="SC",ei.SD="SD",ei.SE="SE",ei.SG="SG",ei.SH="SH",ei.SI="SI",ei.SJ="SJ",ei.SK="SK",ei.SL="SL",ei.SM="SM",ei.SN="SN",ei.SO="SO",ei.SR="SR",ei.SS="SS",ei.ST="ST",ei.SV="SV",ei.SX="SX",ei.SY="SY",ei.SZ="SZ",ei.TA="TA",ei.TC="TC",ei.TD="TD",ei.TF="TF",ei.TG="TG",ei.TH="TH",ei.TJ="TJ",ei.TK="TK",ei.TL="TL",ei.TM="TM",ei.TN="TN",ei.TO="TO",ei.TR="TR",ei.TT="TT",ei.TV="TV",ei.TW="TW",ei.TZ="TZ",ei.UA="UA",ei.UG="UG",ei.UM="UM",ei.US="US",ei.UY="UY",ei.UZ="UZ",ei.VA="VA",ei.VC="VC",ei.VE="VE",ei.VG="VG",ei.VI="VI",ei.VN="VN",ei.VU="VU",ei.WF="WF",ei.WS="WS",ei.XK="XK",ei.YE="YE",ei.YT="YT",ei.ZA="ZA",ei.ZM="ZM",ei.ZW="ZW"}(eu||(eu={}))},48293:function(ei,eo,ea){"use strict";var eu;ea.d(eo,{dU:function(){return ec}}),function(ei){ei["en-us"]="en-us",ei["fr-fr"]="fr-fr",ei["ja-jp"]="ja-jp",ei["en-gb"]="en-gb",ei["es-es"]="es-es",ei["fil-ph"]="fil-ph",ei["it-it"]="it-it",ei["pt-br"]="pt-br",ei["ru-ru"]="ru-ru",ei["vi-vn"]="vi-vn",ei["tr-tr"]="tr-tr",ei["uk-ua"]="uk-ua",ei["zh-cn"]="zh-cn"}(eu||(eu={})),eu["en-us"];let ec=new Map([[eu["en-us"],"U.S. English"],[eu["en-gb"],"British English"],[eu["es-es"],"Espa\xf1ol"],[eu["fil-ph"],"Filipino"],[eu["fr-fr"],"Fran\xe7ais"],[eu["it-it"],"Italiano"],[eu["pt-br"],"Portugu\xeas"],[eu["ru-ru"],"Русский"],[eu["vi-vn"],"Tiếng Việt"],[eu["tr-tr"],"T\xfcrk\xe7e"],[eu["uk-ua"],"Українська"],[eu["zh-cn"],"中文"],[eu["ja-jp"],"日本語"]])},54367:function(ei,eo,ea){"use strict";ea.d(eo,{z:function(){return eu}});let eu={Channel:{Undefined:0,Web:1,Mobile:2,RestApi:3,WebSocket:4,FixApi:5,Desktop:6},Device:{Undefined:0,PC:1,Smartphone:2,Tablet:3},Feature:{Undefined:0,Instant:1,SpotTrading:2,FuturesTrading:3,Deposit:4,Withdrawal:5,Staking:6,Nft:7,Earnings:8,RecurringSimpleOrder:9,ScheduledSimpleOrder:10,Bridge:11},Product:{Undefined:0,Retail:1,ProLegacy:2,Pro:3,Custody:4,Nft:5,FuturesLegacy:6,CryptoFacilities:7}}},67181:function(ei,eo,ea){"use strict";ea.d(eo,{Q:function(){return eS}});var eu=ea(54276),ec=ea(82492),ed=ea.n(ec);let ef=ei=>{let eo=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(ei))));return eo.replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")},eh=ei=>{let eo=ei.replace(/_/g,"/").replace(/-/g,"+");for(;eo.length%4!=0;)eo+="=";return Uint8Array.from(atob(eo),ei=>ei.charCodeAt(0))},eg=()=>globalThis.location.hostname.split(".").slice(-2).join(".")||"kraken.com",em=ei=>{var eo,ea;return ed()({},ei,{publicKey:{challenge:eh(ei.publicKey.challenge),rpId:eg(),rp:{id:eg()},allowCredentials:null===(eo=ei.publicKey.allowCredentials)||void 0===eo?void 0:eo.map(ei=>Object.assign(Object.assign({},ei),{id:eh(ei.id)})),excludeCredentials:null===(ea=ei.publicKey.excludeCredentials)||void 0===ea?void 0:ea.map(ei=>Object.assign(Object.assign({},ei),{id:eh(ei.id)}))}})},eb=ei=>({id:ei.id,type:ei.type,rawId:ef(ei.rawId),response:{authenticatorData:ef(ei.response.authenticatorData),clientDataJSON:ef(ei.response.clientDataJSON),signature:ef(ei.response.signature),userHandle:ef(ei.response.userHandle)}});var ew=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let e_=ei=>ew(void 0,void 0,void 0,function*(){let eo=em(ei),ea=yield navigator.credentials.get(eo);if(!ea)return null;if("public-key"!==ea.type)throw Error(`Invariant: Unexpected credential type: ${ea.type}. Expected types: ["public-key"].`);return eb(ea)}),eS=({onCompleted:ei,onError:eo}={})=>(0,eu.i)(ei=>e_(ei),{onCompleted:ei,onError:eo})},92003:function(ei){"use strict";function eo({mustBeMetaMask:ei=!1,silent:eo=!1,timeout:ea=3e3}={}){ec();let eu=!1;return new Promise(ec=>{window.ethereum?ed():(window.addEventListener("ethereum#initialized",ed,{once:!0}),setTimeout(()=>{ed()},ea));function ed(){if(eu)return;eu=!0,window.removeEventListener("ethereum#initialized",ed);let{ethereum:ea}=window;if(ea&&(!ei||ea.isMetaMask))ec(ea);else{let eu=ei&&ea?"Non-MetaMask window.ethereum detected.":"Unable to detect window.ethereum.";eo||console.error("@metamask/detect-provider:",eu),ec(null)}}});function ec(){if("boolean"!=typeof ei)throw Error("@metamask/detect-provider: Expected option 'mustBeMetaMask' to be a boolean.");if("boolean"!=typeof eo)throw Error("@metamask/detect-provider: Expected option 'silent' to be a boolean.");if("number"!=typeof ea)throw Error("@metamask/detect-provider: Expected option 'timeout' to be a number.")}}ei.exports=eo},24600:function(ei,eo,ea){"use strict";ea.d(eo,{cZ:function(){return n8},t9:function(){return n4}});var eu,ec=ea(67294),ed=ea(60577),ef=ea(1269);function eh(ei,eo){if(null==ei)return{};var ea,eu,ec={},ed=Object.keys(ei);for(eu=0;eu=0||(ec[ea]=ei[ea]);return ec}function eg(){return(eg=Object.assign||function(ei){for(var eo=1;eo=0}).sort(tf)},tg="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",tm="".concat(tg,", [data-focus-guard]"),tv=function(ei,eo){return eK((ei.shadowRoot||ei).children).reduce(function(ei,ea){return ei.concat(ea.matches(eo?tm:tg)?[ea]:[],tv(ea))},[])},tb=function(ei,eo){var ea;return ei instanceof HTMLIFrameElement&&(null===(ea=ei.contentDocument)||void 0===ea?void 0:ea.body)?tw([ei.contentDocument.body],eo):[ei]},tw=function(ei,eo){return ei.reduce(function(ei,ea){var eu,ec=tv(ea,eo),ed=(eu=[]).concat.apply(eu,ec.map(function(ei){return tb(ei,eo)}));return ei.concat(ed,ea.parentNode?eK(ea.parentNode.querySelectorAll(tg)).filter(function(ei){return ei===ea}):[])},[])},t_=function(ei){return eK(ei.querySelectorAll("[".concat(e_,"]"))).map(function(ei){return tw([ei])}).reduce(function(ei,eo){return ei.concat(eo)},[])},tS=function(ei,eo){return eK(ei).filter(function(ei){return e0(eo,ei)}).filter(function(ei){return e7(ei)})},tE=function(ei,eo){return void 0===eo&&(eo=new Map),eK(ei).filter(function(ei){return e5(eo,ei)})},tA=function(ei,eo,ea){return tp(tS(tw(ei,ea),eo),!0,ea)},tT=function(ei,eo){return tp(tS(tw(ei),eo),!1)},tk=function(ei,eo){return tS(t_(ei),eo)},tC=function(ei,eo){return ei.shadowRoot?tC(ei.shadowRoot,eo):!!(void 0!==Object.getPrototypeOf(ei).contains&&Object.getPrototypeOf(ei).contains.call(ei,eo))||eK(ei.children).some(function(ei){var ea;if(ei instanceof HTMLIFrameElement){var eu=null===(ea=ei.contentDocument)||void 0===ea?void 0:ea.body;return!!eu&&tC(eu,eo)}return tC(ei,eo)})},tO=function(ei){try{return ei()}catch(ei){return}},tI=function(ei){if(void 0===ei&&(ei=document),ei&&ei.activeElement){var eo=ei.activeElement;return eo.shadowRoot?tI(eo.shadowRoot):eo instanceof HTMLIFrameElement&&tO(function(){return eo.contentWindow.document})?tI(eo.contentWindow.document):eo}},tP=function(ei){void 0===ei&&(ei=document);var eo=tI(ei);return!!eo&&eK(ei.querySelectorAll("[".concat(ew,"]"))).some(function(ei){return tC(ei,eo)})},tD=function(ei){for(var eo=new Set,ea=ei.length,eu=0;eu0&&eo.add(ec),(ed&Node.DOCUMENT_POSITION_CONTAINS)>0&&eo.add(eu)}return ei.filter(function(ei,ea){return!eo.has(ea)})},tN=function(ei){return ei.parentNode?tN(ei.parentNode):ei},tM=function(ei){return eY(ei).filter(Boolean).reduce(function(ei,eo){var ea=eo.getAttribute(em);return ei.push.apply(ei,ea?tD(eK(tN(eo).querySelectorAll("[".concat(em,'="').concat(ea,'"]:not([').concat(eb,'="disabled"])')))):[eo]),ei},[])},tj=function(ei,eo){return ei===eo},tR=function(ei,eo){return!!eK(ei.querySelectorAll("iframe")).some(function(ei){return tj(ei,eo)})},tL=function(ei,eo){return void 0===eo&&(eo=tI(eZ(ei).ownerDocument)),!!eo&&(!eo.dataset||!eo.dataset.focusGuard)&&tM(ei).some(function(ei){return tC(ei,eo)||tR(ei,eo)})},tF=function(ei,eo){"focus"in ei&&ei.focus(eo),"contentWindow"in ei&&ei.contentWindow&&ei.contentWindow.focus()},tB=function(ei,eo){return eo.filter(e9).filter(function(eo){return eo.name===ei.name}).filter(function(ei){return ei.checked})[0]||ei},tU=function(ei,eo){return e9(ei)&&ei.name?tB(ei,eo):ei},tG=function(ei){var eo=new Set;return ei.forEach(function(ea){return eo.add(tU(ea,ei))}),ei.filter(function(ei){return eo.has(ei)})},tV=function(ei){return ei[0]&&ei.length>1?tU(ei[0],ei):ei[0]},tq=function(ei,eo){return ei.length>1?ei.indexOf(tU(ei[eo],ei)):eo},tH="NEW_FOCUS",tW=function(ei,eo,ea,eu){var ec=ei.length,ed=ei[0],ef=ei[ec-1],eh=tu(ea);if(!(ea&&ei.indexOf(ea)>=0)){var eg=void 0!==ea?eo.indexOf(ea):-1,em=eu?eo.indexOf(eu):eg,eb=eu?ei.indexOf(eu):-1,ew=eg-em,e_=eo.indexOf(ed),eS=eo.indexOf(ef),eE=tG(eo),eA=(void 0!==ea?eE.indexOf(ea):-1)-(eu?eE.indexOf(eu):eg),eT=tq(ei,0),ek=tq(ei,ec-1);if(-1===eg||-1===eb)return tH;if(!ew&&eb>=0)return eb;if(eg<=e_&&eh&&Math.abs(ew)>1)return ek;if(eg>=eS&&eh&&Math.abs(ew)>1)return eT;if(ew&&Math.abs(eA)>1)return eb;if(eg<=e_)return ek;if(eg>eS)return eT;if(ew)return Math.abs(ew)>1?eb:(ec+eb+ew)%ec}},tK=function(ei){return function(eo){var ea,eu=null===(ea=e4(eo))||void 0===ea?void 0:ea.autofocus;return eo.autofocus||void 0!==eu&&"false"!==eu||ei.indexOf(eo)>=0}},tY=function(ei,eo,ea){var eu=tE(ei.map(function(ei){return ei.node}).filter(tK(ea)));return eu&&eu.length?tV(eu):tV(tE(eo))},tZ=function(ei,eo){return void 0===eo&&(eo=[]),eo.push(ei),ei.parentNode&&tZ(ei.parentNode.host||ei.parentNode,eo),eo},t$=function(ei,eo){for(var ea=tZ(ei),eu=tZ(eo),ec=0;ec=0)return ed}return!1},tJ=function(ei,eo,ea){var eu=eY(ei),ec=eY(eo),ed=eu[0],ef=!1;return ec.filter(Boolean).forEach(function(ei){ef=t$(ef||ei,ei)||ef,ea.filter(Boolean).forEach(function(ei){var eo=t$(ed,ei);eo&&(ef=!ef||tC(eo,ef)?eo:t$(eo,ef))})}),ef},tQ=function(ei,eo){return ei.reduce(function(ei,ea){return ei.concat(tk(ea,eo))},[])},tX=function(ei,eo){var ea=new Map;return eo.forEach(function(ei){return ea.set(ei.node,ei)}),ei.map(function(ei){return ea.get(ei)}).filter(td)},ra=function(ei,eo){var ea=tI(eY(ei).length>0?document:eZ(ei).ownerDocument),eu=tM(ei).filter(tc),ec=tJ(ea||ei,ei,eu),ed=new Map,ef=tT(eu,ed),eh=tA(eu,ed).filter(function(ei){return tc(ei.node)});if(eh[0]||(eh=ef)[0]){var eg=tT([ec],ed).map(function(ei){return ei.node}),em=tX(eg,eh),eb=em.map(function(ei){return ei.node}),ew=tW(eb,eg,ea,eo);if(ew===tH){var e_=tY(ef,eb,tQ(eu,ed));return e_?{node:e_}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===ew?ew:em[ew]}},ru=0,rc=!1,rf=function(ei,eo,ea){void 0===ea&&(ea={});var eu=ra(ei,eo);if(!rc&&eu){if(ru>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),rc=!0,setTimeout(function(){rc=!1},1);return}ru++,tF(eu.node,ea.focusOptions),ru--}},rh=function(ei){var eo=tM(ei).filter(tc),ea=tJ(ei,ei,eo),eu=new Map,ec=tA([ea],eu,!0),ed=tA(eo,eu).filter(function(ei){return tc(ei.node)}).map(function(ei){return ei.node});return ec.map(function(ei){var eo=ei.node;return{node:eo,index:ei.index,lockItem:ed.indexOf(eo)>=0,guard:tu(eo)}})};function rp(ei){setTimeout(ei,1)}var ry=function(){return document&&document.activeElement===document.body},rw=function(){return ry()||tP()},r_=null,rS=null,rE=null,rA=!1,rT=function(){return!0},rk=function(ei){return(r_.whiteList||rT)(ei)},rC=function(ei,eo){rE={observerNode:ei,portaledElement:eo}},rO=function(ei){return rE&&rE.portaledElement===ei};function rI(ei,eo,ea,eu){var ec=null,ed=ei;do{var ef=eu[ed];if(ef.guard)ef.node.dataset.focusAutoGuard&&(ec=ef);else if(ef.lockItem){if(ed!==ei)return;ec=null}else break}while((ed+=ea)!==eo);ec&&(ec.node.tabIndex=0)}var rP=function(ei){return ei&&"current"in ei?ei.current:ei},rD=function(ei){return ei?!!rA:"meanwhile"===rA},rN=function ei(eo,ea,eu){return ea&&(ea.host===eo&&(!ea.activeElement||eu.contains(ea.activeElement))||ea.parentNode&&ei(eo,ea.parentNode,eu))},rM=function(ei,eo){return eo.some(function(eo){return rN(ei,eo,eo)})},rj=function(){var ei=!1;if(r_){var eo=r_,ea=eo.observed,eu=eo.persistentFocus,ec=eo.autoFocus,ed=eo.shards,ef=eo.crossFrame,eh=eo.focusOptions,eg=ea||rE&&rE.portaledElement,em=document&&document.activeElement;if(eg){var eb=[eg].concat(ed.map(rP).filter(Boolean));if((!em||rk(em))&&(eu||rD(ef)||!rw()||!rS&&ec)&&(eg&&!(tL(eb)||em&&rM(em,eb)||rO(em,eg))&&(document&&!rS&&em&&!ec?(em.blur&&em.blur(),document.body.focus()):(ei=rf(eb,rS,{focusOptions:eh}),rE={})),rA=!1,rS=document&&document.activeElement),document){var ew=document&&document.activeElement,e_=rh(eb),eS=e_.map(function(ei){return ei.node}).indexOf(ew);eS>-1&&(e_.filter(function(ei){var eo=ei.guard,ea=ei.node;return eo&&ea.dataset.focusAutoGuard}).forEach(function(ei){return ei.node.removeAttribute("tabIndex")}),rI(eS,e_.length,1,e_),rI(eS,-1,-1,e_))}}}return ei},rR=function(ei){rj()&&ei&&(ei.stopPropagation(),ei.preventDefault())},rL=function(){return rp(rj)},rF=function(ei){var eo=ei.target,ea=ei.currentTarget;ea.contains(eo)||rC(ea,eo)},rB=function(){return null},rU=function(){rA="just",rp(function(){rA="meanwhile"})},rz=function(){document.addEventListener("focusin",rR),document.addEventListener("focusout",rL),window.addEventListener("blur",rU)},rG=function(){document.removeEventListener("focusin",rR),document.removeEventListener("focusout",rL),window.removeEventListener("blur",rU)};function rV(ei){return ei.filter(function(ei){return!ei.disabled})}function rq(ei){var eo=ei.slice(-1)[0];eo&&!r_&&rz();var ea=r_,eu=ea&&eo&&eo.id===ea.id;r_=eo,!ea||eu||(ea.onDeactivation(),ei.filter(function(ei){return ei.id===ea.id}).length||ea.returnFocus(!eo)),eo?(rS=null,eu&&ea.observed===eo.observed||eo.onActivation(),rj(!0),rp(rj)):(rG(),rS=null)}eM.assignSyncMedium(rF),ej.assignMedium(rL),eR.assignMedium(function(ei){return ei({moveFocusInside:rf,focusInside:tL})});var rH=eW(rV,rq)(rB),rW=ec.forwardRef(function(ei,eo){return ec.createElement(eU,eg({sideCar:rH,ref:eo},ei))}),rK=eU.propTypes||{};rK.sideCar,eh(rK,["sideCar"]),rW.propTypes={};var rY=rW,rZ="right-scroll-bar-position",r$="width-before-scroll-bar",rJ="with-scroll-bars-hidden",rQ="--removed-body-scroll-bar-size",rX=eN(),ni=function(){},no=ec.forwardRef(function(ei,eo){var ea=ec.useRef(null),eu=ec.useState({onScrollCapture:ni,onWheelCapture:ni,onTouchMoveCapture:ni}),ed=eu[0],ef=eu[1],eh=ei.forwardProps,eg=ei.children,em=ei.className,eb=ei.removeScrollBar,ew=ei.enabled,e_=ei.shards,eS=ei.sideCar,eE=ei.noIsolation,eA=ei.inert,ek=ei.allowPinchZoom,eC=ei.as,eI=void 0===eC?"div":eC,eP=ei.gapMode,eD=(0,eO._T)(ei,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),eN=eS,eM=eT([ea,eo]),ej=(0,eO.pi)((0,eO.pi)({},eD),ed);return ec.createElement(ec.Fragment,null,ew&&ec.createElement(eN,{sideCar:rX,removeScrollBar:eb,shards:e_,noIsolation:eE,inert:eA,setCallbacks:ef,allowPinchZoom:!!ek,lockRef:ea,gapMode:eP}),eh?ec.cloneElement(ec.Children.only(eg),(0,eO.pi)((0,eO.pi)({},ej),{ref:eM})):ec.createElement(eI,(0,eO.pi)({},ej,{className:em,ref:eM}),eg))});no.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},no.classNames={fullWidth:r$,zeroRight:rZ};var nu=function(ei){var eo=ei.sideCar,ea=(0,eO._T)(ei,["sideCar"]);if(!eo)throw Error("Sidecar: please provide `sideCar` property to import the right car");var eu=eo.read();if(!eu)throw Error("Sidecar medium not found");return ec.createElement(eu,(0,eO.pi)({},ea))};function nd(ei,eo){return ei.useMedium(eo),nu}nu.isSideCarExport=!0;var nf=function(){return eu||ea.nc};function nh(){if(!document)return null;var ei=document.createElement("style");ei.type="text/css";var eo=nf();return eo&&ei.setAttribute("nonce",eo),ei}function np(ei,eo){ei.styleSheet?ei.styleSheet.cssText=eo:ei.appendChild(document.createTextNode(eo))}function ng(ei){(document.head||document.getElementsByTagName("head")[0]).appendChild(ei)}var ny=function(){var ei=0,eo=null;return{add:function(ea){0==ei&&(eo=nh())&&(np(eo,ea),ng(eo)),ei++},remove:function(){--ei||!eo||(eo.parentNode&&eo.parentNode.removeChild(eo),eo=null)}}},nw=function(){var ei=ny();return function(eo,ea){ec.useEffect(function(){return ei.add(eo),function(){ei.remove()}},[eo&&ea])}},n_=function(){var ei=nw();return function(eo){return ei(eo.styles,eo.dynamic),null}},nS={left:0,top:0,right:0,gap:0},nE=function(ei){return parseInt(ei||"",10)||0},nx=function(ei){var eo=window.getComputedStyle(document.body),ea=eo["padding"===ei?"paddingLeft":"marginLeft"],eu=eo["padding"===ei?"paddingTop":"marginTop"],ec=eo["padding"===ei?"paddingRight":"marginRight"];return[nE(ea),nE(eu),nE(ec)]},nA=function(ei){if(void 0===ei&&(ei="margin"),"undefined"==typeof window)return nS;var eo=nx(ei),ea=document.documentElement.clientWidth,eu=window.innerWidth;return{left:eo[0],top:eo[1],right:eo[2],gap:Math.max(0,eu-ea+eo[2]-eo[0])}},nT=n_(),nk=function(ei,eo,ea,eu){var ec=ei.left,ed=ei.top,ef=ei.right,eh=ei.gap;return void 0===ea&&(ea="margin"),"\n .".concat(rJ," {\n overflow: hidden ").concat(eu,";\n padding-right: ").concat(eh,"px ").concat(eu,";\n }\n body {\n overflow: hidden ").concat(eu,";\n overscroll-behavior: contain;\n ").concat([eo&&"position: relative ".concat(eu,";"),"margin"===ea&&"\n padding-left: ".concat(ec,"px;\n padding-top: ").concat(ed,"px;\n padding-right: ").concat(ef,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(eh,"px ").concat(eu,";\n "),"padding"===ea&&"padding-right: ".concat(eh,"px ").concat(eu,";")].filter(Boolean).join(""),"\n }\n \n .").concat(rZ," {\n right: ").concat(eh,"px ").concat(eu,";\n }\n \n .").concat(r$," {\n margin-right: ").concat(eh,"px ").concat(eu,";\n }\n \n .").concat(rZ," .").concat(rZ," {\n right: 0 ").concat(eu,";\n }\n \n .").concat(r$," .").concat(r$," {\n margin-right: 0 ").concat(eu,";\n }\n \n body {\n ").concat(rQ,": ").concat(eh,"px;\n }\n")},nC=function(ei){var eo=ei.noRelative,ea=ei.noImportant,eu=ei.gapMode,ed=void 0===eu?"margin":eu,ef=ec.useMemo(function(){return nA(ed)},[ed]);return ec.createElement(nT,{styles:nk(ef,!eo,ed,ea?"":"!important")})},nO=!1;if("undefined"!=typeof window)try{var nI=Object.defineProperty({},"passive",{get:function(){return nO=!0,!0}});window.addEventListener("test",nI,nI),window.removeEventListener("test",nI,nI)}catch(ei){nO=!1}var nP=!!nO&&{passive:!1},nD=function(ei){return"TEXTAREA"===ei.tagName},nN=function(ei,eo){var ea=window.getComputedStyle(ei);return"hidden"!==ea[eo]&&!(ea.overflowY===ea.overflowX&&!nD(ei)&&"visible"===ea[eo])},nM=function(ei){return nN(ei,"overflowY")},nj=function(ei){return nN(ei,"overflowX")},nR=function(ei,eo){var ea=eo.ownerDocument,eu=eo;do{if("undefined"!=typeof ShadowRoot&&eu instanceof ShadowRoot&&(eu=eu.host),nB(ei,eu)){var ec=nU(ei,eu);if(ec[1]>ec[2])return!0}eu=eu.parentNode}while(eu&&eu!==ea.body);return!1},nL=function(ei){return[ei.scrollTop,ei.scrollHeight,ei.clientHeight]},nF=function(ei){return[ei.scrollLeft,ei.scrollWidth,ei.clientWidth]},nB=function(ei,eo){return"v"===ei?nM(eo):nj(eo)},nU=function(ei,eo){return"v"===ei?nL(eo):nF(eo)},nz=function(ei,eo){return"h"===ei&&"rtl"===eo?-1:1},nG=function(ei,eo,ea,eu,ec){var ed=nz(ei,window.getComputedStyle(eo).direction),ef=ed*eu,eh=ea.target,eg=eo.contains(eh),em=!1,eb=ef>0,ew=0,e_=0;do{var eS=nU(ei,eh),eE=eS[0],eA=eS[1]-eS[2]-ed*eE;(eE||eA)&&nB(ei,eh)&&(ew+=eA,e_+=eE),eh=eh instanceof ShadowRoot?eh.host:eh.parentNode}while(!eg&&eh!==document.body||eg&&(eo.contains(eh)||eo===eh));return eb&&(ec&&1>Math.abs(ew)||!ec&&ef>ew)?em=!0:!eb&&(ec&&1>Math.abs(e_)||!ec&&-ef>e_)&&(em=!0),em},nV=function(ei){return"changedTouches"in ei?[ei.changedTouches[0].clientX,ei.changedTouches[0].clientY]:[0,0]},nq=function(ei){return[ei.deltaX,ei.deltaY]},nH=function(ei){return ei&&"current"in ei?ei.current:ei},nW=function(ei,eo){return ei[0]===eo[0]&&ei[1]===eo[1]},nK=function(ei){return"\n .block-interactivity-".concat(ei," {pointer-events: none;}\n .allow-interactivity-").concat(ei," {pointer-events: all;}\n")},nY=0,nZ=[];function n$(ei){for(var eo=null;null!==ei;)ei instanceof ShadowRoot&&(eo=ei.host,ei=ei.host),ei=ei.parentNode;return eo}var nJ=nd(rX,function(ei){var eo=ec.useRef([]),ea=ec.useRef([0,0]),eu=ec.useRef(),ed=ec.useState(nY++)[0],ef=ec.useState(n_)[0],eh=ec.useRef(ei);ec.useEffect(function(){eh.current=ei},[ei]),ec.useEffect(function(){if(ei.inert){document.body.classList.add("block-interactivity-".concat(ed));var eo=(0,eO.ev)([ei.lockRef.current],(ei.shards||[]).map(nH),!0).filter(Boolean);return eo.forEach(function(ei){return ei.classList.add("allow-interactivity-".concat(ed))}),function(){document.body.classList.remove("block-interactivity-".concat(ed)),eo.forEach(function(ei){return ei.classList.remove("allow-interactivity-".concat(ed))})}}},[ei.inert,ei.lockRef.current,ei.shards]);var eg=ec.useCallback(function(ei,eo){if("touches"in ei&&2===ei.touches.length)return!eh.current.allowPinchZoom;var ec,ed=nV(ei),ef=ea.current,eg="deltaX"in ei?ei.deltaX:ef[0]-ed[0],em="deltaY"in ei?ei.deltaY:ef[1]-ed[1],eb=ei.target,ew=Math.abs(eg)>Math.abs(em)?"h":"v";if("touches"in ei&&"h"===ew&&"range"===eb.type)return!1;var e_=nR(ew,eb);if(!e_)return!0;if(e_?ec=ew:(ec="v"===ew?"h":"v",e_=nR(ew,eb)),!e_)return!1;if(!eu.current&&"changedTouches"in ei&&(eg||em)&&(eu.current=ec),!ec)return!0;var eS=eu.current||ec;return nG(eS,eo,ei,"h"===eS?eg:em,!0)},[]),em=ec.useCallback(function(ei){var ea=ei;if(nZ.length&&nZ[nZ.length-1]===ef){var eu="deltaY"in ea?nq(ea):nV(ea),ec=eo.current.filter(function(ei){return ei.name===ea.type&&(ei.target===ea.target||ea.target===ei.shadowParent)&&nW(ei.delta,eu)})[0];if(ec&&ec.should){ea.cancelable&&ea.preventDefault();return}if(!ec){var ed=(eh.current.shards||[]).map(nH).filter(Boolean).filter(function(ei){return ei.contains(ea.target)});(ed.length>0?eg(ea,ed[0]):!eh.current.noIsolation)&&ea.cancelable&&ea.preventDefault()}}},[]),eb=ec.useCallback(function(ei,ea,eu,ec){var ed={name:ei,delta:ea,target:eu,should:ec,shadowParent:n$(eu)};eo.current.push(ed),setTimeout(function(){eo.current=eo.current.filter(function(ei){return ei!==ed})},1)},[]),ew=ec.useCallback(function(ei){ea.current=nV(ei),eu.current=void 0},[]),e_=ec.useCallback(function(eo){eb(eo.type,nq(eo),eo.target,eg(eo,ei.lockRef.current))},[]),eS=ec.useCallback(function(eo){eb(eo.type,nV(eo),eo.target,eg(eo,ei.lockRef.current))},[]);ec.useEffect(function(){return nZ.push(ef),ei.setCallbacks({onScrollCapture:e_,onWheelCapture:e_,onTouchMoveCapture:eS}),document.addEventListener("wheel",em,nP),document.addEventListener("touchmove",em,nP),document.addEventListener("touchstart",ew,nP),function(){nZ=nZ.filter(function(ei){return ei!==ef}),document.removeEventListener("wheel",em,nP),document.removeEventListener("touchmove",em,nP),document.removeEventListener("touchstart",ew,nP)}},[]);var eE=ei.removeScrollBar,eA=ei.inert;return ec.createElement(ec.Fragment,null,eA?ec.createElement(ef,{styles:nK(ed)}):null,eE?ec.createElement(nC,{gapMode:ei.gapMode}):null)}),nQ=ec.forwardRef(function(ei,eo){return ec.createElement(no,(0,eO.pi)({},ei,{ref:eo,sideCar:nJ}))});nQ.classNames=no.classNames;var nX=nQ,n0=ea(45697),n3=ea.n(n0);function n5(ei,eo){if(null==ei)return{};var ea,eu,ec={},ed=Object.keys(ei);for(eu=0;eu=0||(ec[ea]=ei[ea]);return ec}n3().bool,n3().bool,n3().bool,n3().func;var n4=(0,ec.forwardRef)(function(ei,eo){var ea=ei.isOpen,eu=void 0===ea||ea,eh=n5(ei,["isOpen"]);return(0,ec.useEffect)(function(){return(0,ef.X1)("dialog")},[]),(0,ec.useEffect)(function(){eu?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame(function(){window.__REACH_DISABLE_TOOLTIPS=!1})},[eu]),eu?ec.createElement(ed.Z,{"data-reach-dialog-wrapper":""},ec.createElement(n6,Object.assign({ref:eo},eh))):null}),n6=(0,ec.forwardRef)(function(ei,eo){var ea=ei.allowPinchZoom,eu=ei.dangerouslyBypassFocusLock,ed=void 0!==eu&&eu,eh=ei.dangerouslyBypassScrollLock,eg=void 0!==eh&&eh,em=ei.initialFocusRef,eb=ei.onClick,ew=ei.onDismiss,e_=void 0===ew?ef.ZT:ew,eS=ei.onKeyDown,eE=ei.onMouseDown,eA=ei.unstable_lockFocusAcrossFrames,eT=void 0===eA||eA,ek=n5(ei,["allowPinchZoom","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"]),eC=(0,ec.useRef)(null),eO=(0,ec.useRef)(null),eI=(0,ef.A7)(eO,eo),eP=(0,ec.useCallback)(function(){em&&em.current&&em.current.focus()},[em]);function eD(ei){eC.current===ei.target&&(ei.stopPropagation(),e_(ei))}function eN(ei){"Escape"===ei.key&&(ei.stopPropagation(),e_(ei))}function eM(ei){eC.current=ei.target}return(0,ec.useEffect)(function(){return eO.current?n9(eO.current):void 0},[]),ec.createElement(rY,{autoFocus:!0,returnFocus:!0,onActivation:eP,disabled:ed,crossFrame:eT},ec.createElement(nX,{allowPinchZoom:ea,enabled:!eg},ec.createElement("div",Object.assign({},ek,{ref:eI,"data-reach-dialog-overlay":"",onClick:(0,ef.ag)(eb,eD),onKeyDown:(0,ef.ag)(eS,eN),onMouseDown:(0,ef.ag)(eE,eM)}))))}),n8=(0,ec.forwardRef)(function(ei,eo){var ea=ei.onClick,eu=(ei.onKeyDown,n5(ei,["onClick","onKeyDown"]));return ec.createElement("div",Object.assign({"aria-modal":"true",role:"dialog",tabIndex:-1},eu,{ref:eo,"data-reach-dialog-content":"",onClick:(0,ef.ag)(ea,function(ei){ei.stopPropagation()})}))});function n9(ei){var eo=[],ea=[],eu=(0,ef.r3)(ei)||document;return ei?(Array.prototype.forEach.call(eu.querySelectorAll("body > *"),function(eu){if(eu!==(null===(ec=ei.parentNode)||void 0===ec?void 0:null===(ed=ec.parentNode)||void 0===ed?void 0:ed.parentNode)){var ec,ed,ef=eu.getAttribute("aria-hidden");(null===ef||"false"===ef)&&(eo.push(ef),ea.push(eu),eu.setAttribute("aria-hidden","true"))}}),function(){ea.forEach(function(ei,ea){var eu=eo[ea];null===eu?ei.removeAttribute("aria-hidden"):ei.setAttribute("aria-hidden",eu)})}):ef.ZT}},51826:function(ei,eo){"use strict";var ea,eu=["bottom","height","left","right","top","width"],ec=function(ei,eo){return void 0===ei&&(ei={}),void 0===eo&&(eo={}),eu.some(function(ea){return ei[ea]!==eo[ea]})},ed=new Map,ef=function ei(){var eo=[];ed.forEach(function(ei,ea){var eu=ea.getBoundingClientRect();ec(eu,ei.rect)&&(ei.rect=eu,eo.push(ei))}),eo.forEach(function(ei){ei.callbacks.forEach(function(eo){return eo(ei.rect)})}),ea=window.requestAnimationFrame(ei)};function eh(ei,eo){return{observe:function(){var ea=0===ed.size;ed.has(ei)?ed.get(ei).callbacks.push(eo):ed.set(ei,{rect:void 0,hasRectChanged:!1,callbacks:[eo]}),ea&&ef()},unobserve:function(){var eu=ed.get(ei);if(eu){var ec=eu.callbacks.indexOf(eo);ec>=0&&eu.callbacks.splice(ec,1),eu.callbacks.length||ed.delete(ei),ed.size||cancelAnimationFrame(ea)}}}}eo.Z=eh},56740:function(ei,eo,ea){"use strict";ea.d(eo,{ZP:function(){return eP},MN:function(){return eT},g0:function(){return eC},Kp:function(){return ek}});var eu=ea(67294),ec=ea(60577),ed=ea(51826),ef=ea(1269);function eh(ei,eo,ea){void 0===eo&&(eo=!0);var ec=(0,eu.useState)(ei.current),eh=ec[0],eg=ec[1],em=(0,eu.useRef)(!1),eb=(0,eu.useRef)(!1),ew=(0,eu.useState)(null),e_=ew[0],eS=ew[1],eE=(0,eu.useRef)();return(0,ef.LI)(function(){eE.current=ea,ei.current!==eh&&eg(ei.current)}),(0,ef.LI)(function(){eh&&!em.current&&(em.current=!0,eS(eh.getBoundingClientRect()))},[eh]),(0,ef.LI)(function(){var ea,eu=eh;if(eb.current||(eb.current=!0,eu=ei.current),!eu)return ec;return ea=(0,ed.Z)(eu,function(ei){eE.current&&eE.current(ei),eS(ei)}),eo&&ea.observe(),ec;function ec(){ea&&ea.unobserve()}},[eo,eh]),e_}var eg=ea(34760),em=ea.n(eg);function eb(){return(eb=Object.assign||function(ei){for(var eo=1;eo=0||(ec[ea]=ei[ea]);return ec}var e_=(0,eu.forwardRef)(function(ei,eo){return eu.createElement(ec.Z,null,eu.createElement(eS,Object.assign({ref:eo},ei)))}),eS=(0,eu.forwardRef)(function(ei,eo){var ea=ei.targetRef,ec=ei.position,ed=void 0===ec?eT:ec,eg=ei.unstable_observableRefs,em=void 0===eg?[]:eg,e_=ew(ei,["targetRef","position","unstable_observableRefs"]),eS=(0,eu.useRef)(null),eA=eh(eS,!e_.hidden),ek=eh(ea,!e_.hidden),eC=(0,ef.A7)(eS,eo);return eI(ea,eS),eu.createElement("div",Object.assign({"data-reach-popover":"",ref:eC},e_,{style:eb({position:"absolute"},eE.apply(void 0,[ed,ek,eA].concat(em)),e_.style)}))});function eE(ei,eo,ea){for(var eu=arguments.length,ec=Array(eu>3?eu-3:0),ed=3;ed!1,getSardineSessionKey:()=>"",logoutUserOnSardine:()=>!1});ec.displayName="SardineContext";let{Provider:ed,Consumer:ef}=ec,eh=(ei,eo)=>{let ea="sandbox"===ei;var eu="default"===eo?"":eo||"";return eu=eu?`${eu}.`:"",ea?`api.sandbox.${eu}sardine.ai`:`api.${eu}sardine.ai`},eg=function(ei){let{children:eo,clientId:ea,environment:ec,region:ef}=ei,[eg,em]=(0,eu.useState)(),[eb,ew]=(0,eu.useState)(),e_=eh(ec,ef);return(0,eu.useEffect)(()=>{var ei;if(!eb||!(null!=eb&&eb.sessionKey)||eg)return()=>{};let{customerId:eo,sessionKey:eu,flow:ed,enableBiometrics:ef,enableGeoLocation:eh,enablePortScanning:ew,fields:eS,parentSessionKey:eE,partnerId:eA}=eb,eT=document.createElement("script");eT.src=`https://${e_}/assets/loader.min.js`,eT.async=!0,eT.type="text/javascript",eT.onload=function(){var ei;let eg=null==(ei=null==window?void 0:window._Sardine)?void 0:ei.createContext({clientId:ea,sessionKey:eu,userIdHash:eo,flow:ed||window.location.pathname,environment:ec,partnerId:eA,parentSessionKey:eE,enablePortScanning:ew,enableBiometrics:ef||!0,enableGeoLocation:eh,fields:eS,parentElement:document.body,onDeviceResponse:function(ei){}});em(eg)};let ek=document.getElementsByTagName("script")[0];return null==(ei=null==ek?void 0:ek.parentNode)||ei.insertBefore(eT,ek),()=>{eT.remove()}},[eb]),eu.createElement(ed,{value:{updateSardineConfig:ei=>(!eg||!!eg.updateConfig(ei))&&(ew(ei),!0),getSardineSessionKey:()=>(null==eb?void 0:eb.sessionKey)||"",logoutUserOnSardine:()=>!!eg&&eg.updateConfig({customerId:void 0})}},eo)}},4591:function(ei,eo,ea){"use strict";function eu(ei,eo){return new Promise(function(ea,eu){var ec=setTimeout(function(){eu(Error("Promise timed out"))},eo);ei.then(function(ei){return clearTimeout(ec),ea(ei)}).catch(eu)})}function ec(ei){return new Promise(function(eo){return setTimeout(eo,ei)})}function ed(ei,eo,ea){var ed=function(){try{return Promise.resolve(eo(ei))}catch(ei){return Promise.reject(ei)}};return ec(ea).then(function(){return eu(ed(),1e3)}).catch(function(eo){null==ei||ei.log("warn","Callback Error",{error:eo}),null==ei||ei.stats.increment("callback_error")}).then(function(){return ei})}ea.d(eo,{FJ:function(){return eu},UI:function(){return ed}})},98191:function(ei,eo,ea){"use strict";ea.d(eo,{Y:function(){return eg},_:function(){return em}});var eu=ea(59108),ec=ea(96475),ed=ea(97582),ef=function(){function ei(){this._logs=[]}return ei.prototype.log=function(ei,eo,ea){var eu=new Date;this._logs.push({level:ei,message:eo,time:eu,extras:ea})},Object.defineProperty(ei.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),ei.prototype.flush=function(){if(this.logs.length>1){var ei=this._logs.reduce(function(ei,eo){var ea,eu,ec,ef=(0,ed.pi)((0,ed.pi)({},eo),{json:JSON.stringify(eo.extras,null," "),extras:eo.extras});delete ef.time;var eh=null!==(ec=null===(eu=eo.time)||void 0===eu?void 0:eu.toISOString())&&void 0!==ec?ec:"";return ei[eh]&&(eh="".concat(eh,"-").concat(Math.random())),(0,ed.pi)((0,ed.pi)({},ei),((ea={})[eh]=ef,ea))},{});console.table?console.table(ei):console.log(ei)}else this.logs.forEach(function(ei){var eo=ei.level,ea=ei.message,eu=ei.extras;"info"===eo||"debug"===eo?console.log(ea,null!=eu?eu:""):console[eo](ea,null!=eu?eu:"")});this._logs=[]},ei}(),eh=ea(50732),eg=function(){return function(ei){var eo,ea,eu;this.retry=null===(eo=ei.retry)||void 0===eo||eo,this.type=null!==(ea=ei.type)&&void 0!==ea?ea:"plugin Error",this.reason=null!==(eu=ei.reason)&&void 0!==eu?eu:""}}(),em=function(){function ei(ei,eo,ea,ec){void 0===eo&&(eo=(0,eu.v4)()),void 0===ea&&(ea=new eh.i),void 0===ec&&(ec=new ef),this.attempts=0,this.event=ei,this._id=eo,this.logger=ec,this.stats=ea}return ei.system=function(){},ei.prototype.isSame=function(ei){return ei.id===this.id},ei.prototype.cancel=function(ei){if(ei)throw ei;throw new eg({reason:"Context Cancel"})},ei.prototype.log=function(ei,eo,ea){this.logger.log(ei,eo,ea)},Object.defineProperty(ei.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),ei.prototype.updateEvent=function(ei,eo){var ea;if("integrations"===ei.split(".")[0]){var eu=ei.split(".")[1];if((null===(ea=this.event.integrations)||void 0===ea?void 0:ea[eu])===!1)return this.event}return(0,ec.N)(this.event,ei,eo),this.event},ei.prototype.failedDelivery=function(){return this._failedDelivery},ei.prototype.setFailedDelivery=function(ei){this._failedDelivery=ei},ei.prototype.logs=function(){return this.logger.logs},ei.prototype.flush=function(){this.logger.flush(),this.stats.flush()},ei.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},ei}()},51181:function(ei,eo,ea){"use strict";ea.d(eo,{M:function(){return ef},Z:function(){return eh}});var eu=ea(97582),ec=ea(38714);function ed(ei){var eo=Math.random()+1,ea=ei.minTimeout,eu=void 0===ea?500:ea,ec=ei.factor,ed=void 0===ec?2:ec,ef=ei.attempt,eh=ei.maxTimeout;return Math.min(eo*eu*Math.pow(ed,ef),void 0===eh?1/0:eh)}var ef="onRemoveFromFuture",eh=function(ei){function eo(eo,ea,eu){var ec=ei.call(this)||this;return ec.future=[],ec.maxAttempts=eo,ec.queue=ea,ec.seen=null!=eu?eu:{},ec}return(0,eu.ZT)(eo,ei),eo.prototype.push=function(){for(var ei=this,eo=[],ea=0;eaei.maxAttempts||ei.includes(eo))&&(ei.queue.push(eo),!0)});return this.queue=this.queue.sort(function(eo,ea){return ei.getAttempts(eo)-ei.getAttempts(ea)}),eu},eo.prototype.pushWithBackoff=function(ei){var eo=this;if(0===this.getAttempts(ei))return this.push(ei)[0];var ea=this.updateAttempts(ei);return!(ea>this.maxAttempts||this.includes(ei))&&(setTimeout(function(){eo.queue.push(ei),eo.future=eo.future.filter(function(eo){return eo.id!==ei.id}),eo.emit(ef)},ed({attempt:ea-1})),this.future.push(ei),!0)},eo.prototype.getAttempts=function(ei){var eo;return null!==(eo=this.seen[ei.id])&&void 0!==eo?eo:0},eo.prototype.updateAttempts=function(ei){return this.seen[ei.id]=this.getAttempts(ei)+1,this.getAttempts(ei)},eo.prototype.includes=function(ei){return this.queue.includes(ei)||this.future.includes(ei)||!!this.queue.find(function(eo){return eo.id===ei.id})||!!this.future.find(function(eo){return eo.id===ei.id})},eo.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(eo.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),eo}(ec.Q)},69147:function(ei,eo,ea){"use strict";ea.d(eo,{a:function(){return ef},z:function(){return eh}});var eu=ea(97582),ec=ea(98191);function ed(ei){return(0,eu.mG)(this,void 0,void 0,function(){return(0,eu.Jh)(this,function(eo){switch(eo.label){case 0:return eo.trys.push([0,2,,3]),[4,ei()];case 1:return[2,eo.sent()];case 2:return[2,Promise.reject(eo.sent())];case 3:return[2]}})})}function ef(ei,eo){ei.log("debug","plugin",{plugin:eo.name});var ea=new Date().getTime(),eu=eo[ei.event.type];return void 0===eu?Promise.resolve(ei):ed(function(){return eu.apply(eo,[ei])}).then(function(ei){var eu=new Date().getTime()-ea;return ei.stats.gauge("plugin_time",eu,["plugin:".concat(eo.name)]),ei}).catch(function(ea){if(ea instanceof ec.Y&&"middleware_cancellation"===ea.type)throw ea;return ea instanceof ec.Y?(ei.log("warn",ea.type,{plugin:eo.name,error:ea}),ea):(ei.log("error","plugin Error",{plugin:eo.name,error:ea}),ei.stats.increment("plugin_error",1,["plugin:".concat(eo.name)]),ea)})}function eh(ei,eo){return ef(ei,eo).then(function(eo){if(eo instanceof ec._)return eo;ei.log("debug","Context canceled"),ei.stats.increment("context_canceled"),ei.cancel(eo)})}},50732:function(ei,eo,ea){"use strict";ea.d(eo,{i:function(){return ef},s:function(){return ed}});var eu=ea(97582),ec=function(ei){return({gauge:"g",counter:"c"})[ei]},ed=function(){function ei(){this.metrics=[]}return ei.prototype.increment=function(ei,eo,ea){void 0===eo&&(eo=1),this.metrics.push({metric:ei,value:eo,tags:null!=ea?ea:[],type:"counter",timestamp:Date.now()})},ei.prototype.gauge=function(ei,eo,ea){this.metrics.push({metric:ei,value:eo,tags:null!=ea?ea:[],type:"gauge",timestamp:Date.now()})},ei.prototype.flush=function(){var ei=this.metrics.map(function(ei){return(0,eu.pi)((0,eu.pi)({},ei),{tags:ei.tags.join(",")})});console.table?console.table(ei):console.log(ei),this.metrics=[]},ei.prototype.serialize=function(){return this.metrics.map(function(ei){return{m:ei.metric,v:ei.value,t:ei.tags,k:ec(ei.type),e:ei.timestamp}})},ei}(),ef=function(ei){function eo(){return null!==ei&&ei.apply(this,arguments)||this}return(0,eu.ZT)(eo,ei),eo.prototype.gauge=function(){for(var ei=[],eo=0;eothis.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(ei)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},ei.prototype.on=function(ei,eo){return this.callbacks[ei]?(this.callbacks[ei].push(eo),this.warnIfPossibleMemoryLeak(ei)):this.callbacks[ei]=[eo],this},ei.prototype.once=function(ei,eo){var ea=this,eu=function(){for(var ec=[],ed=0;ed0){var ef=!1,eh=function(){ef||(ef=!0,ed.flush().catch(ew),ef=!1,setTimeout(eh,ed.flushTimer))};eh()}}return ei.prototype.increment=function(ei,eo){if(!(!ei.includes("analytics_js.")||0===eo.length||Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var ea=eb(ei,eo,(0,eg.B)());this.queue.push(ea),ei.includes("error")&&this.flush().catch(ew)}},ei.prototype.flush=function(){return(0,ec.mG)(this,void 0,void 0,function(){var ei=this;return(0,ec.Jh)(this,function(eo){switch(eo.label){case 0:if(this.queue.length<=0)return[2];return[4,this.send().catch(function(eo){ew(eo),ei.sampleRate=0})];case 1:return eo.sent(),[2]}})})},ei.prototype.send=function(){return(0,ec.mG)(this,void 0,void 0,function(){var ei,eo,ea;return(0,ec.Jh)(this,function(eu){return ei={series:this.queue},this.queue=[],eo={"Content-Type":"text/plain"},ea="https://".concat(this.host,"/m"),[2,(0,ef.h)(ea,{headers:eo,body:JSON.stringify(ei),method:"POST"})]})})},ei}(),eS=function(ei){function eo(){return null!==ei&&ei.apply(this,arguments)||this}return(0,ec.ZT)(eo,ei),eo.initRemoteMetrics=function(ei){eu=new e_(ei)},eo.prototype.increment=function(eo,ea,ec){ei.prototype.increment.call(this,eo,ea,ec),null==eu||eu.increment(eo,null!=ec?ec:[])},eo}(ed.s)},92311:function(ei,eo,ea){"use strict";function eu(ei,eo){var ea=eo.methodName,eu=eo.integrationName,ec=eo.type,ed=eo.didError,ef=void 0!==ed&&ed;ei.stats.increment("analytics_js.integration.invoke".concat(ef?".error":""),1,["method:".concat(ea),"integration_name:".concat(eu),"type:".concat(ec)])}ea.d(eo,{z:function(){return eu}})},39821:function(ei,eo,ea){"use strict";ea.d(eo,{i:function(){return eu}});var eu="1.62.0"},55609:function(ei,eo,ea){"use strict";ea.d(eo,{h:function(){return ef}});var eu=ea(63144),ec=ea.n(eu),ed=ea(44083),ef=function(){for(var ei=[],eo=0;eoei},ef=eh.getItem(ec),eg=ef?JSON.parse(ef):null,em=null===eg||ed(eg);if(em){eh.setItem(ec,JSON.stringify(eS()+eu)),eo(),eh.removeItem(ec);return}!em&&ea<3?setTimeout(function(){eE(ei,eo,ea+1)},eu):console.error("Unable to retrieve lock")}var eA=function(ei){function eo(eo,ea){var ec=ei.call(this,eo,[])||this,ed="persisted-queue:v1:".concat(ea,":items"),ef="persisted-queue:v1:".concat(ea,":seen"),eh=[],eS={};return eE(ea,function(){try{eh=eg(ed),eS=eb(ef),e_(ed),e_(ef),ec.queue=(0,eu.ev)((0,eu.ev)([],eh,!0),ec.queue,!0),ec.seen=(0,eu.pi)((0,eu.pi)({},eS),ec.seen)}catch(ei){console.error(ei)}}),window.addEventListener("pagehide",function(){if(ec.todo>0){var ei=(0,eu.ev)((0,eu.ev)([],ec.queue,!0),ec.future,!0);try{eE(ea,function(){em(ed,ei),ew(ef,ec.seen)})}catch(ei){console.error(ei)}}}),ec}return(0,eu.ZT)(eo,ei),eo}(ec.Z)},23888:function(ei,eo,ea){"use strict";ea.d(eo,{D:function(){return ec}});var eu=ea(49969);function ec(ei,eo){var ea=new eu.Facade(ei,eo);return"track"===ei.type&&(ea=new eu.Track(ei,eo)),"identify"===ei.type&&(ea=new eu.Identify(ei,eo)),"page"===ei.type&&(ea=new eu.Page(ei,eo)),"alias"===ei.type&&(ea=new eu.Alias(ei,eo)),"group"===ei.type&&(ea=new eu.Group(ei,eo)),"screen"===ei.type&&(ea=new eu.Screen(ei,eo)),Object.defineProperty(ea,"obj",{value:ei,writable:!0}),ea}},7227:function(ei,eo,ea){"use strict";ea.d(eo,{B:function(){return ec}});var eu="npm";function ec(){return eu}},66170:function(ei,eo,ea){"use strict";ea.r(eo),ea.d(eo,{applyDestinationMiddleware:function(){return ef},sourceMiddlewarePlugin:function(){return eh}});var eu=ea(97582),ec=ea(98191),ed=ea(23888);function ef(ei,eo,ea){return(0,eu.mG)(this,void 0,void 0,function(){var ec,ef,eh,eg;function em(eo,ea){return(0,eu.mG)(this,void 0,void 0,function(){var ec,ef,eh;return(0,eu.Jh)(this,function(eg){switch(eg.label){case 0:return ec=!1,ef=null,[4,ea({payload:(0,ed.D)(eo,{clone:!0,traverse:!1}),integration:ei,next:function(ei){ec=!0,null===ei&&(ef=null),ei&&(ef=ei.obj)}})];case 1:return eg.sent(),ec||null===ef||(ef.integrations=(0,eu.pi)((0,eu.pi)({},eo.integrations),((eh={})[ei]=!1,eh))),[2,ef]}})})}return(0,eu.Jh)(this,function(ei){switch(ei.label){case 0:ec=(0,ed.D)(eo,{clone:!0,traverse:!1}).rawEvent(),ef=0,eh=ea,ei.label=1;case 1:if(!(ef-1&&(ei.type="ios"),eo.indexOf("android")>-1&&(ei.type="android")),ei},ew.userAgent=eb.proxy("context.userAgent"),ew.timezone=eb.proxy("context.timezone"),ew.timestamp=eb.field("timestamp"),ew.channel=eb.field("channel"),ew.ip=eb.proxy("context.ip"),ew.userId=eb.field("userId"),ec.default(ew)},63789:function(ei,eo,ea){"use strict";var eu=this&&this.__importDefault||function(ei){return ei&&ei.__esModule?ei:{default:ei}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.Group=void 0;var ec=eu(ea(35717)),ed=eu(ea(66243)),ef=eu(ea(18013)),eh=ea(40747);function eg(ei,eo){eh.Facade.call(this,ei,eo)}eo.Group=eg,ec.default(eg,eh.Facade);var em=eg.prototype;em.action=function(){return"group"},em.type=em.action,em.groupId=eh.Facade.field("groupId"),em.created=function(){var ei=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(ei)return ef.default(ei)},em.email=function(){var ei=this.proxy("traits.email");if(ei)return ei;var eo=this.groupId();if(ed.default(eo))return eo},em.traits=function(ei){var eo=this.properties(),ea=this.groupId();for(var eu in ei=ei||{},ea&&(eo.id=ea),ei)if(Object.prototype.hasOwnProperty.call(ei,eu)){var ec=null==this[eu]?this.proxy("traits."+eu):this[eu]();if(null==ec)continue;eo[ei[eu]]=ec,delete eo[eu]}return eo},em.name=eh.Facade.proxy("traits.name"),em.industry=eh.Facade.proxy("traits.industry"),em.employees=eh.Facade.proxy("traits.employees"),em.properties=function(){return this.field("traits")||this.field("properties")||{}}},98649:function(ei,eo,ea){"use strict";var eu=this&&this.__importDefault||function(ei){return ei&&ei.__esModule?ei:{default:ei}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.Identify=void 0;var ec=ea(40747),ed=eu(ea(53410)),ef=eu(ea(35717)),eh=eu(ea(66243)),eg=eu(ea(18013)),em=function(ei){return ei.trim()};function eb(ei,eo){ec.Facade.call(this,ei,eo)}eo.Identify=eb,ef.default(eb,ec.Facade);var ew=eb.prototype;ew.action=function(){return"identify"},ew.type=ew.action,ew.traits=function(ei){var eo=this.field("traits")||{},ea=this.userId();for(var eu in ei=ei||{},ea&&(eo.id=ea),ei){var ec=null==this[eu]?this.proxy("traits."+eu):this[eu]();null!=ec&&(eo[ei[eu]]=ec,eu!==ei[eu]&&delete eo[eu])}return eo},ew.email=function(){var ei=this.proxy("traits.email");if(ei)return ei;var eo=this.userId();if(eh.default(eo))return eo},ew.created=function(){var ei=this.proxy("traits.created")||this.proxy("traits.createdAt");if(ei)return eg.default(ei)},ew.companyCreated=function(){var ei=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(ei)return eg.default(ei)},ew.companyName=function(){return this.proxy("traits.company.name")},ew.name=function(){var ei=this.proxy("traits.name");if("string"==typeof ei)return em(ei);var eo=this.firstName(),ea=this.lastName();if(eo&&ea)return em(eo+" "+ea)},ew.firstName=function(){var ei=this.proxy("traits.firstName");if("string"==typeof ei)return em(ei);var eo=this.proxy("traits.name");if("string"==typeof eo)return em(eo).split(" ")[0]},ew.lastName=function(){var ei=this.proxy("traits.lastName");if("string"==typeof ei)return em(ei);var eo=this.proxy("traits.name");if("string"==typeof eo){var ea=em(eo).indexOf(" ");if(-1!==ea)return em(eo.substr(ea+1))}},ew.uid=function(){return this.userId()||this.username()||this.email()},ew.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},ew.age=function(){var ei=this.birthday(),eo=ed.default(this.traits(),"age");if(null!=eo)return eo;if(ei instanceof Date){var ea=new Date;return ea.getFullYear()-ei.getFullYear()}},ew.avatar=function(){var ei=this.traits();return ed.default(ei,"avatar")||ed.default(ei,"photoUrl")||ed.default(ei,"avatarUrl")},ew.position=function(){var ei=this.traits();return ed.default(ei,"position")||ed.default(ei,"jobTitle")},ew.username=ec.Facade.proxy("traits.username"),ew.website=ec.Facade.one("traits.website"),ew.websites=ec.Facade.multi("traits.website"),ew.phone=ec.Facade.one("traits.phone"),ew.phones=ec.Facade.multi("traits.phone"),ew.address=ec.Facade.proxy("traits.address"),ew.gender=ec.Facade.proxy("traits.gender"),ew.birthday=ec.Facade.proxy("traits.birthday")},49969:function(ei,eo,ea){"use strict";var eu=this&&this.__assign||function(){return(eu=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;eaea.call(eo,...ei)),eo=void 0)}return ea}ea.r(eg),ea.d(eg,{Breadcrumbs:function(){return nH},Dedupe:function(){return iE},GlobalHandlers:function(){return nX},HttpContext:function(){return iS},LinkedErrors:function(){return ib},TryCatch:function(){return iu}});var eb=ea(62844),ew=ea(21170),e_=ea(12343),eS=ea(71235),eE=ea(61422);let eA="production";var eT=ea(67597),ek=ea(96893),eC=ea(20535);function eO(ei){let eo=(0,ew.ph)(),ea={sid:(0,eb.DM)(),init:!0,timestamp:eo,started:eo,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>eD(ea)};return ei&&eI(ea,ei),ea}function eI(ei,eo={}){if(!eo.user||(!ei.ipAddress&&eo.user.ip_address&&(ei.ipAddress=eo.user.ip_address),ei.did||eo.did||(ei.did=eo.user.id||eo.user.email||eo.user.username)),ei.timestamp=eo.timestamp||(0,ew.ph)(),eo.ignoreDuration&&(ei.ignoreDuration=eo.ignoreDuration),eo.sid&&(ei.sid=32===eo.sid.length?eo.sid:(0,eb.DM)()),void 0!==eo.init&&(ei.init=eo.init),!ei.did&&eo.did&&(ei.did=`${eo.did}`),"number"==typeof eo.started&&(ei.started=eo.started),ei.ignoreDuration)ei.duration=void 0;else if("number"==typeof eo.duration)ei.duration=eo.duration;else{let eo=ei.timestamp-ei.started;ei.duration=eo>=0?eo:0}eo.release&&(ei.release=eo.release),eo.environment&&(ei.environment=eo.environment),!ei.ipAddress&&eo.ipAddress&&(ei.ipAddress=eo.ipAddress),!ei.userAgent&&eo.userAgent&&(ei.userAgent=eo.userAgent),"number"==typeof eo.errors&&(ei.errors=eo.errors),eo.status&&(ei.status=eo.status)}function eP(ei,eo){let ea={};eo?ea={status:eo}:"ok"===ei.status&&(ea={status:"exited"}),eI(ei,ea)}function eD(ei){return(0,eC.Jr)({sid:`${ei.sid}`,init:ei.init,started:new Date(1e3*ei.started).toISOString(),timestamp:new Date(1e3*ei.timestamp).toISOString(),status:ei.status,errors:ei.errors,did:"number"==typeof ei.did||"string"==typeof ei.did?`${ei.did}`:void 0,duration:ei.duration,attrs:{release:ei.release,environment:ei.environment,ip_address:ei.ipAddress,user_agent:ei.userAgent}})}let eN=100;class eM{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(ei){let eo=new eM;return ei&&(eo._breadcrumbs=[...ei._breadcrumbs],eo._tags={...ei._tags},eo._extra={...ei._extra},eo._contexts={...ei._contexts},eo._user=ei._user,eo._level=ei._level,eo._span=ei._span,eo._session=ei._session,eo._transactionName=ei._transactionName,eo._fingerprint=ei._fingerprint,eo._eventProcessors=[...ei._eventProcessors],eo._requestSession=ei._requestSession,eo._attachments=[...ei._attachments],eo._sdkProcessingMetadata={...ei._sdkProcessingMetadata}),eo}addScopeListener(ei){this._scopeListeners.push(ei)}addEventProcessor(ei){return this._eventProcessors.push(ei),this}setUser(ei){return this._user=ei||{},this._session&&eI(this._session,{user:ei}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(ei){return this._requestSession=ei,this}setTags(ei){return this._tags={...this._tags,...ei},this._notifyScopeListeners(),this}setTag(ei,eo){return this._tags={...this._tags,[ei]:eo},this._notifyScopeListeners(),this}setExtras(ei){return this._extra={...this._extra,...ei},this._notifyScopeListeners(),this}setExtra(ei,eo){return this._extra={...this._extra,[ei]:eo},this._notifyScopeListeners(),this}setFingerprint(ei){return this._fingerprint=ei,this._notifyScopeListeners(),this}setLevel(ei){return this._level=ei,this._notifyScopeListeners(),this}setTransactionName(ei){return this._transactionName=ei,this._notifyScopeListeners(),this}setContext(ei,eo){return null===eo?delete this._contexts[ei]:this._contexts[ei]=eo,this._notifyScopeListeners(),this}setSpan(ei){return this._span=ei,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let ei=this.getSpan();return ei&&ei.transaction}setSession(ei){return ei?this._session=ei:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(ei){if(!ei)return this;if("function"==typeof ei){let eo=ei(this);return eo instanceof eM?eo:this}return ei instanceof eM?(this._tags={...this._tags,...ei._tags},this._extra={...this._extra,...ei._extra},this._contexts={...this._contexts,...ei._contexts},ei._user&&Object.keys(ei._user).length&&(this._user=ei._user),ei._level&&(this._level=ei._level),ei._fingerprint&&(this._fingerprint=ei._fingerprint),ei._requestSession&&(this._requestSession=ei._requestSession)):(0,eT.PO)(ei)&&(this._tags={...this._tags,...ei.tags},this._extra={...this._extra,...ei.extra},this._contexts={...this._contexts,...ei.contexts},ei.user&&(this._user=ei.user),ei.level&&(this._level=ei.level),ei.fingerprint&&(this._fingerprint=ei.fingerprint),ei.requestSession&&(this._requestSession=ei.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(ei,eo){let ea="number"==typeof eo?eo:eN;if(ea<=0)return this;let eu={timestamp:(0,ew.yW)(),...ei};return this._breadcrumbs=[...this._breadcrumbs,eu].slice(-ea),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(ei){return this._attachments.push(ei),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(ei,eo={}){if(this._extra&&Object.keys(this._extra).length&&(ei.extra={...this._extra,...ei.extra}),this._tags&&Object.keys(this._tags).length&&(ei.tags={...this._tags,...ei.tags}),this._user&&Object.keys(this._user).length&&(ei.user={...this._user,...ei.user}),this._contexts&&Object.keys(this._contexts).length&&(ei.contexts={...this._contexts,...ei.contexts}),this._level&&(ei.level=this._level),this._transactionName&&(ei.transaction=this._transactionName),this._span){ei.contexts={trace:this._span.getTraceContext(),...ei.contexts};let eo=this._span.transaction&&this._span.transaction.name;eo&&(ei.tags={transaction:eo,...ei.tags})}return this._applyFingerprint(ei),ei.breadcrumbs=[...ei.breadcrumbs||[],...this._breadcrumbs],ei.breadcrumbs=ei.breadcrumbs.length>0?ei.breadcrumbs:void 0,ei.sdkProcessingMetadata={...ei.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...ej(),...this._eventProcessors],ei,eo)}setSDKProcessingMetadata(ei){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...ei},this}_notifyEventProcessors(ei,eo,ea,eu=0){return new ek.cW((ec,ed)=>{let ef=ei[eu];if(null===eo||"function"!=typeof ef)ec(eo);else{let eh=ef({...eo},ea);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ef.id&&null===eh&&e_.kg.log(`Event processor "${ef.id}" dropped event`),(0,eT.J8)(eh)?eh.then(eo=>this._notifyEventProcessors(ei,eo,ea,eu+1).then(ec)).then(null,ed):this._notifyEventProcessors(ei,eh,ea,eu+1).then(ec).then(null,ed)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(ei=>{ei(this)}),this._notifyingListeners=!1)}_applyFingerprint(ei){ei.fingerprint=ei.fingerprint?(0,eb.lE)(ei.fingerprint):[],this._fingerprint&&(ei.fingerprint=ei.fingerprint.concat(this._fingerprint)),ei.fingerprint&&!ei.fingerprint.length&&delete ei.fingerprint}}function ej(){return(0,eS.YO)("globalEventProcessors",()=>[])}let eR=4,eL=100;class eF{__init(){this._stack=[{}]}constructor(ei,eo=new eM,ea=eR){this._version=ea,eF.prototype.__init.call(this),this.getStackTop().scope=eo,ei&&this.bindClient(ei)}isOlderThan(ei){return this._version{ec.captureException(ei,{originalException:ei,syntheticException:eu,...eo,event_id:ea},ed)}),ea}captureMessage(ei,eo,ea){let eu=this._lastEventId=ea&&ea.event_id?ea.event_id:(0,eb.DM)(),ec=Error(ei);return this._withClient((ed,ef)=>{ed.captureMessage(ei,eo,{originalException:ei,syntheticException:ec,...ea,event_id:eu},ef)}),eu}captureEvent(ei,eo){let ea=eo&&eo.event_id?eo.event_id:(0,eb.DM)();return ei.type||(this._lastEventId=ea),this._withClient((eu,ec)=>{eu.captureEvent(ei,{...eo,event_id:ea},ec)}),ea}lastEventId(){return this._lastEventId}addBreadcrumb(ei,eo){let{scope:ea,client:eu}=this.getStackTop();if(!ea||!eu)return;let{beforeBreadcrumb:ec=null,maxBreadcrumbs:ed=eL}=eu.getOptions&&eu.getOptions()||{};if(ed<=0)return;let ef=(0,ew.yW)(),eh={timestamp:ef,...ei},eg=ec?(0,e_.Cf)(()=>ec(eh,eo)):eh;null!==eg&&ea.addBreadcrumb(eg,ed)}setUser(ei){let eo=this.getScope();eo&&eo.setUser(ei)}setTags(ei){let eo=this.getScope();eo&&eo.setTags(ei)}setExtras(ei){let eo=this.getScope();eo&&eo.setExtras(ei)}setTag(ei,eo){let ea=this.getScope();ea&&ea.setTag(ei,eo)}setExtra(ei,eo){let ea=this.getScope();ea&&ea.setExtra(ei,eo)}setContext(ei,eo){let ea=this.getScope();ea&&ea.setContext(ei,eo)}configureScope(ei){let{scope:eo,client:ea}=this.getStackTop();eo&&ea&&ei(eo)}run(ei){let eo=eU(this);try{ei(this)}finally{eU(eo)}}getIntegration(ei){let eo=this.getClient();if(!eo)return null;try{return eo.getIntegration(ei)}catch(eo){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Cannot retrieve integration ${ei.id} from the current Hub`),null}}startTransaction(ei,eo){return this._callExtensionMethod("startTransaction",ei,eo)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(ei=!1){if(ei)return this.endSession();this._sendSessionUpdate()}endSession(){let ei=this.getStackTop(),eo=ei&&ei.scope,ea=eo&&eo.getSession();ea&&eP(ea),this._sendSessionUpdate(),eo&&eo.setSession()}startSession(ei){let{scope:eo,client:ea}=this.getStackTop(),{release:eu,environment:ec=eA}=ea&&ea.getOptions()||{},{userAgent:ed}=eS.n2.navigator||{},ef=eO({release:eu,environment:ec,...eo&&{user:eo.getUser()},...ed&&{userAgent:ed},...ei});if(eo){let ei=eo.getSession&&eo.getSession();ei&&"ok"===ei.status&&eI(ei,{status:"exited"}),this.endSession(),eo.setSession(ef)}return ef}shouldSendDefaultPii(){let ei=this.getClient(),eo=ei&&ei.getOptions();return!!(eo&&eo.sendDefaultPii)}_sendSessionUpdate(){let{scope:ei,client:eo}=this.getStackTop();if(!ei)return;let ea=ei.getSession();ea&&eo&&eo.captureSession&&eo.captureSession(ea)}_withClient(ei){let{scope:eo,client:ea}=this.getStackTop();ea&&ei(ea,eo)}_callExtensionMethod(ei,...eo){let ea=eB(),eu=ea.__SENTRY__;if(eu&&eu.extensions&&"function"==typeof eu.extensions[ei])return eu.extensions[ei].apply(this,eo);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Extension method ${ei} couldn't be found, doing nothing.`)}}function eB(){return eS.n2.__SENTRY__=eS.n2.__SENTRY__||{extensions:{},hub:void 0},eS.n2}function eU(ei){let eo=eB(),ea=eW(eo);return eK(eo,ei),ea}function eG(){let ei=eB();return((!eH(ei)||eW(ei).isOlderThan(eR))&&eK(ei,new eF),(0,eE.KV)())?eV(ei):eW(ei)}function eV(ei){try{let eo=eB().__SENTRY__,ea=eo&&eo.extensions&&eo.extensions.domain&&eo.extensions.domain.active;if(!ea)return eW(ei);if(!eH(ea)||eW(ea).isOlderThan(eR)){let eo=eW(ei).getStackTop();eK(ea,new eF(eo.client,eM.clone(eo.scope)))}return eW(ea)}catch(eo){return eW(ei)}}function eH(ei){return!!(ei&&ei.__SENTRY__&&ei.__SENTRY__.hub)}function eW(ei){return(0,eS.YO)("hub",()=>new eF,ei)}function eK(ei,eo){if(!ei)return!1;let ea=ei.__SENTRY__=ei.__SENTRY__||{};return ea.hub=eo,!0}function eY(ei){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let eo=eG().getClient(),ea=ei||eo&&eo.getOptions();return!!ea&&(ea.enableTracing||"tracesSampleRate"in ea||"tracesSampler"in ea)}function eZ(ei,eo){let ea=0;for(let eo=ei.length-1;eo>=0;eo--){let eu=ei[eo];"."===eu?ei.splice(eo,1):".."===eu?(ei.splice(eo,1),ea++):ea&&(ei.splice(eo,1),ea--)}if(eo)for(;ea--;ea)ei.unshift("..");return ei}let e$=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function eJ(ei){let eo=e$.exec(ei);return eo?eo.slice(1):[]}function eQ(...ei){let eo="",ea=!1;for(let eu=ei.length-1;eu>=-1&&!ea;eu--){let ec=eu>=0?ei[eu]:"/";ec&&(eo=`${ec}/${eo}`,ea="/"===ec.charAt(0))}return eo=eZ(eo.split("/").filter(ei=>!!ei),!ea).join("/"),(ea?"/":"")+eo||"."}function eX(ei){let eo=0;for(;eo=0&&""===ei[ea];ea--);return eo>ea?[]:ei.slice(eo,ea-eo+1)}function e0(ei,eo){ei=eQ(ei).slice(1),eo=eQ(eo).slice(1);let ea=eX(ei.split("/")),eu=eX(eo.split("/")),ec=Math.min(ea.length,eu.length),ed=ec;for(let ei=0;ei{let ea=eo().getIntegration(e5);return ea?ea.process(ei):ei})}process(ei){let eo=ei;return ei.exception&&Array.isArray(ei.exception.values)&&(eo=this._processExceptionsEvent(eo)),eo}__init3(){this._iteratee=ei=>{if(!ei.filename)return ei;let eo=/^[A-Z]:\\/.test(ei.filename),ea=/^\//.test(ei.filename);if(eo||ea){let ea=eo?ei.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):ei.filename,eu=this._root?e0(this._root,ea):e3(ea);ei.filename=`${this._prefix}${eu}`}return ei}}_processExceptionsEvent(ei){try{return{...ei,exception:{...ei.exception,values:ei.exception.values.map(ei=>({...ei,...ei.stacktrace&&{stacktrace:this._processStacktrace(ei.stacktrace)}}))}}}catch(eo){return ei}}_processStacktrace(ei){return{...ei,frames:ei&&ei.frames&&ei.frames.map(ei=>this._iteratee(ei))}}}e5.__initStatic();let e4="7.42.0";var e6=ea(57321);let e8=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class e9{static __initStatic(){this.id="InboundFilters"}__init(){this.name=e9.id}constructor(ei={}){this._options=ei,e9.prototype.__init.call(this)}setupOnce(ei,eo){let ea=ei=>{let ea=eo();if(ea){let eo=ea.getIntegration(e9);if(eo){let eu=ea.getClient(),ec=eu?eu.getOptions():{},ed=e7(eo._options,ec);return ta(ei,ed)?null:ei}}return ei};ea.id=this.name,ei(ea)}}function e7(ei={},eo={}){return{allowUrls:[...ei.allowUrls||[],...eo.allowUrls||[]],denyUrls:[...ei.denyUrls||[],...eo.denyUrls||[]],ignoreErrors:[...ei.ignoreErrors||[],...eo.ignoreErrors||[],...e8],ignoreInternal:void 0===ei.ignoreInternal||ei.ignoreInternal}}function ta(ei,eo){return eo.ignoreInternal&&tp(ei)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Event dropped due to being internal Sentry Error. +Event: ${(0,eb.jH)(ei)}`),!0):tu(ei,eo.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${(0,eb.jH)(ei)}`),!0):tc(ei,eo.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${(0,eb.jH)(ei)}. +Url: ${tm(ei)}`),!0):!td(ei,eo.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${(0,eb.jH)(ei)}. +Url: ${tm(ei)}`),!0)}function tu(ei,eo){return!!eo&&!!eo.length&&tf(ei).some(ei=>(0,e6.U0)(ei,eo))}function tc(ei,eo){if(!eo||!eo.length)return!1;let ea=tm(ei);return!!ea&&(0,e6.U0)(ea,eo)}function td(ei,eo){if(!eo||!eo.length)return!0;let ea=tm(ei);return!ea||(0,e6.U0)(ea,eo)}function tf(ei){if(ei.message)return[ei.message];if(ei.exception)try{let{type:eo="",value:ea=""}=ei.exception.values&&ei.exception.values[0]||{};return[`${ea}`,`${eo}: ${ea}`]}catch(eo){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.error(`Cannot extract message for event ${(0,eb.jH)(ei)}`)}return[]}function tp(ei){try{return"SentryError"===ei.exception.values[0].type}catch(ei){}return!1}function tg(ei=[]){for(let eo=ei.length-1;eo>=0;eo--){let ea=ei[eo];if(ea&&""!==ea.filename&&"[native code]"!==ea.filename)return ea.filename||null}return null}function tm(ei){try{let eo;try{eo=ei.exception.values[0].stacktrace.frames}catch(ei){}return eo?tg(eo):null}catch(eo){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.error(`Cannot extract url for event ${(0,eb.jH)(ei)}`),null}}e9.__initStatic();class tv{constructor(){tv.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=tv.id}setupOnce(){eu=Function.prototype.toString,Function.prototype.toString=function(...ei){let eo=(0,eC.HK)(this)||this;return eu.apply(eo,ei)}}}tv.__initStatic();let tb="production";function tw(ei){let eo=(0,ew.ph)(),ea={sid:(0,eb.DM)(),init:!0,timestamp:eo,started:eo,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>tE(ea)};return ei&&t_(ea,ei),ea}function t_(ei,eo={}){if(!eo.user||(!ei.ipAddress&&eo.user.ip_address&&(ei.ipAddress=eo.user.ip_address),ei.did||eo.did||(ei.did=eo.user.id||eo.user.email||eo.user.username)),ei.timestamp=eo.timestamp||(0,ew.ph)(),eo.ignoreDuration&&(ei.ignoreDuration=eo.ignoreDuration),eo.sid&&(ei.sid=32===eo.sid.length?eo.sid:(0,eb.DM)()),void 0!==eo.init&&(ei.init=eo.init),!ei.did&&eo.did&&(ei.did=`${eo.did}`),"number"==typeof eo.started&&(ei.started=eo.started),ei.ignoreDuration)ei.duration=void 0;else if("number"==typeof eo.duration)ei.duration=eo.duration;else{let eo=ei.timestamp-ei.started;ei.duration=eo>=0?eo:0}eo.release&&(ei.release=eo.release),eo.environment&&(ei.environment=eo.environment),!ei.ipAddress&&eo.ipAddress&&(ei.ipAddress=eo.ipAddress),!ei.userAgent&&eo.userAgent&&(ei.userAgent=eo.userAgent),"number"==typeof eo.errors&&(ei.errors=eo.errors),eo.status&&(ei.status=eo.status)}function tS(ei,eo){let ea={};eo?ea={status:eo}:"ok"===ei.status&&(ea={status:"exited"}),t_(ei,ea)}function tE(ei){return(0,eC.Jr)({sid:`${ei.sid}`,init:ei.init,started:new Date(1e3*ei.started).toISOString(),timestamp:new Date(1e3*ei.timestamp).toISOString(),status:ei.status,errors:ei.errors,did:"number"==typeof ei.did||"string"==typeof ei.did?`${ei.did}`:void 0,duration:ei.duration,attrs:{release:ei.release,environment:ei.environment,ip_address:ei.ipAddress,user_agent:ei.userAgent}})}let tA=100;class tT{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(ei){let eo=new tT;return ei&&(eo._breadcrumbs=[...ei._breadcrumbs],eo._tags={...ei._tags},eo._extra={...ei._extra},eo._contexts={...ei._contexts},eo._user=ei._user,eo._level=ei._level,eo._span=ei._span,eo._session=ei._session,eo._transactionName=ei._transactionName,eo._fingerprint=ei._fingerprint,eo._eventProcessors=[...ei._eventProcessors],eo._requestSession=ei._requestSession,eo._attachments=[...ei._attachments],eo._sdkProcessingMetadata={...ei._sdkProcessingMetadata}),eo}addScopeListener(ei){this._scopeListeners.push(ei)}addEventProcessor(ei){return this._eventProcessors.push(ei),this}setUser(ei){return this._user=ei||{},this._session&&t_(this._session,{user:ei}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(ei){return this._requestSession=ei,this}setTags(ei){return this._tags={...this._tags,...ei},this._notifyScopeListeners(),this}setTag(ei,eo){return this._tags={...this._tags,[ei]:eo},this._notifyScopeListeners(),this}setExtras(ei){return this._extra={...this._extra,...ei},this._notifyScopeListeners(),this}setExtra(ei,eo){return this._extra={...this._extra,[ei]:eo},this._notifyScopeListeners(),this}setFingerprint(ei){return this._fingerprint=ei,this._notifyScopeListeners(),this}setLevel(ei){return this._level=ei,this._notifyScopeListeners(),this}setTransactionName(ei){return this._transactionName=ei,this._notifyScopeListeners(),this}setContext(ei,eo){return null===eo?delete this._contexts[ei]:this._contexts[ei]=eo,this._notifyScopeListeners(),this}setSpan(ei){return this._span=ei,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let ei=this.getSpan();return ei&&ei.transaction}setSession(ei){return ei?this._session=ei:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(ei){if(!ei)return this;if("function"==typeof ei){let eo=ei(this);return eo instanceof tT?eo:this}return ei instanceof tT?(this._tags={...this._tags,...ei._tags},this._extra={...this._extra,...ei._extra},this._contexts={...this._contexts,...ei._contexts},ei._user&&Object.keys(ei._user).length&&(this._user=ei._user),ei._level&&(this._level=ei._level),ei._fingerprint&&(this._fingerprint=ei._fingerprint),ei._requestSession&&(this._requestSession=ei._requestSession)):(0,eT.PO)(ei)&&(this._tags={...this._tags,...ei.tags},this._extra={...this._extra,...ei.extra},this._contexts={...this._contexts,...ei.contexts},ei.user&&(this._user=ei.user),ei.level&&(this._level=ei.level),ei.fingerprint&&(this._fingerprint=ei.fingerprint),ei.requestSession&&(this._requestSession=ei.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(ei,eo){let ea="number"==typeof eo?eo:tA;if(ea<=0)return this;let eu={timestamp:(0,ew.yW)(),...ei};return this._breadcrumbs=[...this._breadcrumbs,eu].slice(-ea),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(ei){return this._attachments.push(ei),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(ei,eo={}){if(this._extra&&Object.keys(this._extra).length&&(ei.extra={...this._extra,...ei.extra}),this._tags&&Object.keys(this._tags).length&&(ei.tags={...this._tags,...ei.tags}),this._user&&Object.keys(this._user).length&&(ei.user={...this._user,...ei.user}),this._contexts&&Object.keys(this._contexts).length&&(ei.contexts={...this._contexts,...ei.contexts}),this._level&&(ei.level=this._level),this._transactionName&&(ei.transaction=this._transactionName),this._span){ei.contexts={trace:this._span.getTraceContext(),...ei.contexts};let eo=this._span.transaction&&this._span.transaction.name;eo&&(ei.tags={transaction:eo,...ei.tags})}return this._applyFingerprint(ei),ei.breadcrumbs=[...ei.breadcrumbs||[],...this._breadcrumbs],ei.breadcrumbs=ei.breadcrumbs.length>0?ei.breadcrumbs:void 0,ei.sdkProcessingMetadata={...ei.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...tk(),...this._eventProcessors],ei,eo)}setSDKProcessingMetadata(ei){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...ei},this}_notifyEventProcessors(ei,eo,ea,eu=0){return new ek.cW((ec,ed)=>{let ef=ei[eu];if(null===eo||"function"!=typeof ef)ec(eo);else{let eh=ef({...eo},ea);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ef.id&&null===eh&&e_.kg.log(`Event processor "${ef.id}" dropped event`),(0,eT.J8)(eh)?eh.then(eo=>this._notifyEventProcessors(ei,eo,ea,eu+1).then(ec)).then(null,ed):this._notifyEventProcessors(ei,eh,ea,eu+1).then(ec).then(null,ed)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(ei=>{ei(this)}),this._notifyingListeners=!1)}_applyFingerprint(ei){ei.fingerprint=ei.fingerprint?(0,eb.lE)(ei.fingerprint):[],this._fingerprint&&(ei.fingerprint=ei.fingerprint.concat(this._fingerprint)),ei.fingerprint&&!ei.fingerprint.length&&delete ei.fingerprint}}function tk(){return(0,eS.YO)("globalEventProcessors",()=>[])}function tC(ei){tk().push(ei)}let tO=4,tI=100;class tP{__init(){this._stack=[{}]}constructor(ei,eo=new tT,ea=tO){this._version=ea,tP.prototype.__init.call(this),this.getStackTop().scope=eo,ei&&this.bindClient(ei)}isOlderThan(ei){return this._version{ec.captureException(ei,{originalException:ei,syntheticException:eu,...eo,event_id:ea},ed)}),ea}captureMessage(ei,eo,ea){let eu=this._lastEventId=ea&&ea.event_id?ea.event_id:(0,eb.DM)(),ec=Error(ei);return this._withClient((ed,ef)=>{ed.captureMessage(ei,eo,{originalException:ei,syntheticException:ec,...ea,event_id:eu},ef)}),eu}captureEvent(ei,eo){let ea=eo&&eo.event_id?eo.event_id:(0,eb.DM)();return ei.type||(this._lastEventId=ea),this._withClient((eu,ec)=>{eu.captureEvent(ei,{...eo,event_id:ea},ec)}),ea}lastEventId(){return this._lastEventId}addBreadcrumb(ei,eo){let{scope:ea,client:eu}=this.getStackTop();if(!ea||!eu)return;let{beforeBreadcrumb:ec=null,maxBreadcrumbs:ed=tI}=eu.getOptions&&eu.getOptions()||{};if(ed<=0)return;let ef=(0,ew.yW)(),eh={timestamp:ef,...ei},eg=ec?(0,e_.Cf)(()=>ec(eh,eo)):eh;null!==eg&&ea.addBreadcrumb(eg,ed)}setUser(ei){let eo=this.getScope();eo&&eo.setUser(ei)}setTags(ei){let eo=this.getScope();eo&&eo.setTags(ei)}setExtras(ei){let eo=this.getScope();eo&&eo.setExtras(ei)}setTag(ei,eo){let ea=this.getScope();ea&&ea.setTag(ei,eo)}setExtra(ei,eo){let ea=this.getScope();ea&&ea.setExtra(ei,eo)}setContext(ei,eo){let ea=this.getScope();ea&&ea.setContext(ei,eo)}configureScope(ei){let{scope:eo,client:ea}=this.getStackTop();eo&&ea&&ei(eo)}run(ei){let eo=tN(this);try{ei(this)}finally{tN(eo)}}getIntegration(ei){let eo=this.getClient();if(!eo)return null;try{return eo.getIntegration(ei)}catch(eo){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Cannot retrieve integration ${ei.id} from the current Hub`),null}}startTransaction(ei,eo){return this._callExtensionMethod("startTransaction",ei,eo)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(ei=!1){if(ei)return this.endSession();this._sendSessionUpdate()}endSession(){let ei=this.getStackTop(),eo=ei&&ei.scope,ea=eo&&eo.getSession();ea&&tS(ea),this._sendSessionUpdate(),eo&&eo.setSession()}startSession(ei){let{scope:eo,client:ea}=this.getStackTop(),{release:eu,environment:ec=tb}=ea&&ea.getOptions()||{},{userAgent:ed}=eS.n2.navigator||{},ef=tw({release:eu,environment:ec,...eo&&{user:eo.getUser()},...ed&&{userAgent:ed},...ei});if(eo){let ei=eo.getSession&&eo.getSession();ei&&"ok"===ei.status&&t_(ei,{status:"exited"}),this.endSession(),eo.setSession(ef)}return ef}shouldSendDefaultPii(){let ei=this.getClient(),eo=ei&&ei.getOptions();return!!(eo&&eo.sendDefaultPii)}_sendSessionUpdate(){let{scope:ei,client:eo}=this.getStackTop();if(!ei)return;let ea=ei.getSession();ea&&eo&&eo.captureSession&&eo.captureSession(ea)}_withClient(ei){let{scope:eo,client:ea}=this.getStackTop();ea&&ei(ea,eo)}_callExtensionMethod(ei,...eo){let ea=tD(),eu=ea.__SENTRY__;if(eu&&eu.extensions&&"function"==typeof eu.extensions[ei])return eu.extensions[ei].apply(this,eo);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Extension method ${ei} couldn't be found, doing nothing.`)}}function tD(){return eS.n2.__SENTRY__=eS.n2.__SENTRY__||{extensions:{},hub:void 0},eS.n2}function tN(ei){let eo=tD(),ea=tL(eo);return tF(eo,ei),ea}function tM(){let ei=tD();return((!tR(ei)||tL(ei).isOlderThan(tO))&&tF(ei,new tP),(0,eE.KV)())?tj(ei):tL(ei)}function tj(ei){try{let eo=tD().__SENTRY__,ea=eo&&eo.extensions&&eo.extensions.domain&&eo.extensions.domain.active;if(!ea)return tL(ei);if(!tR(ea)||tL(ea).isOlderThan(tO)){let eo=tL(ei).getStackTop();tF(ea,new tP(eo.client,tT.clone(eo.scope)))}return tL(ea)}catch(eo){return tL(ei)}}function tR(ei){return!!(ei&&ei.__SENTRY__&&ei.__SENTRY__.hub)}function tL(ei){return(0,eS.YO)("hub",()=>new tP,ei)}function tF(ei,eo){if(!ei)return!1;let ea=ei.__SENTRY__=ei.__SENTRY__||{};return ea.hub=eo,!0}let tB=[];function tU(ei){let eo={};return ei.forEach(ei=>{let{name:ea}=ei,eu=eo[ea];eu&&!eu.isDefaultInstance&&ei.isDefaultInstance||(eo[ea]=ei)}),Object.keys(eo).map(ei=>eo[ei])}function tG(ei){let eo;let ea=ei.defaultIntegrations||[],eu=ei.integrations;ea.forEach(ei=>{ei.isDefaultInstance=!0}),eo=Array.isArray(eu)?[...ea,...eu]:"function"==typeof eu?(0,eb.lE)(eu(ea)):ea;let ec=tU(eo),ed=ec.findIndex(ei=>"Debug"===ei.name);if(-1!==ed){let[ei]=ec.splice(ed,1);ec.push(ei)}return ec}function tV(ei){let eo={};return ei.forEach(ei=>{ei&&tq(ei,eo)}),eo}function tq(ei,eo){eo[ei.name]=ei,-1===tB.indexOf(ei.name)&&(ei.setupOnce(tC,tM),tB.push(ei.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.log(`Integration installed: ${ei.name}`))}function tH(ei,eo){!0===eo.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?e_.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));let ea=tM(),eu=ea.getScope();eu&&eu.update(eo.initialScope);let ec=new ei(eo);ea.bindClient(ec)}class tW extends Error{constructor(ei,eo="warn"){super(ei),this.message=ei,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=eo}}let tK=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tY(ei){return"http"===ei||"https"===ei}function tZ(ei,eo=!1){let{host:ea,path:eu,pass:ec,port:ed,projectId:ef,protocol:eh,publicKey:eg}=ei;return`${eh}://${eg}${eo&&ec?`:${ec}`:""}@${ea}${ed?`:${ed}`:""}/${eu?`${eu}/`:eu}${ef}`}function t$(ei){let eo=tK.exec(ei);if(!eo)throw new tW(`Invalid Sentry Dsn: ${ei}`);let[ea,eu,ec="",ed,ef="",eh]=eo.slice(1),eg="",em=eh,eb=em.split("/");if(eb.length>1&&(eg=eb.slice(0,-1).join("/"),em=eb.pop()),em){let ei=em.match(/^\d+/);ei&&(em=ei[0])}return tJ({host:ed,pass:ec,path:eg,projectId:em,port:ef,protocol:ea,publicKey:eu})}function tJ(ei){return{protocol:ei.protocol,publicKey:ei.publicKey||"",pass:ei.pass||"",host:ei.host,port:ei.port||"",path:ei.path||"",projectId:ei.projectId}}function tQ(ei){if(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__))return;let{port:eo,projectId:ea,protocol:eu}=ei,ec=["protocol","publicKey","host","projectId"];if(ec.forEach(eo=>{if(!ei[eo])throw new tW(`Invalid Sentry Dsn: ${eo} missing`)}),!ea.match(/^\d+$/))throw new tW(`Invalid Sentry Dsn: Invalid projectId ${ea}`);if(!tY(eu))throw new tW(`Invalid Sentry Dsn: Invalid protocol ${eu}`);if(eo&&isNaN(parseInt(eo,10)))throw new tW(`Invalid Sentry Dsn: Invalid port ${eo}`);return!0}function tX(ei){let eo="string"==typeof ei?t$(ei):tJ(ei);return tQ(eo),eo}let ra="7";function ru(ei){let eo=ei.protocol?`${ei.protocol}:`:"",ea=ei.port?`:${ei.port}`:"";return`${eo}//${ei.host}${ea}${ei.path?`/${ei.path}`:""}/api/`}function rc(ei){return`${ru(ei)}${ei.projectId}/envelope/`}function rf(ei,eo){return(0,eC._j)({sentry_key:ei.publicKey,sentry_version:ra,...eo&&{sentry_client:`${eo.name}/${eo.version}`}})}function rh(ei,eo={}){let ea="string"==typeof eo?eo:eo.tunnel,eu="string"!=typeof eo&&eo._metadata?eo._metadata.sdk:void 0;return ea||`${rc(ei)}?${rf(ei,eu)}`}function rp(ei,eo){let ea=tX(ei),eu=`${ru(ea)}embed/error-page/`,ec=`dsn=${tZ(ea)}`;for(let ei in eo)if("dsn"!==ei){if("user"===ei){let ei=eo.user;if(!ei)continue;ei.name&&(ec+=`&name=${encodeURIComponent(ei.name)}`),ei.email&&(ec+=`&email=${encodeURIComponent(ei.email)}`)}else ec+=`&${encodeURIComponent(ei)}=${encodeURIComponent(eo[ei])}`}return`${eu}?${ec}`}var ry=ea(30360),rw=ea(8823),r_=ea(9732);function rS(){let ei="function"==typeof WeakSet,eo=ei?new WeakSet:[];return[function(ea){if(ei)return!!eo.has(ea)||(eo.add(ea),!1);for(let ei=0;eiea?rA(ei,eo-1,ea):eu}function rT(ei,eo,ea=Infinity,eu=Infinity,ec=rS()){let[ed,ef]=ec;if(null===eo||["number","boolean","string"].includes(typeof eo)&&!(0,eT.i2)(eo))return eo;let eh=rk(ei,eo);if(!eh.startsWith("[object "))return eh;if(eo.__sentry_skip_normalization__)return eo;let eg=ea;if("number"==typeof eo.__sentry_override_normalization_depth__&&(eg=eo.__sentry_override_normalization_depth__),0===eg)return eh.replace("object ","");if(ed(eo))return"[Circular ~]";let em=eo;if(em&&"function"==typeof em.toJSON)try{let ei=em.toJSON();return rT("",ei,eg-1,eu,ec)}catch(ei){}let eb=Array.isArray(eo)?[]:{},ew=0,e_=(0,eC.Sh)(eo);for(let ei in e_){if(!Object.prototype.hasOwnProperty.call(e_,ei))continue;if(ew>=eu){eb[ei]="[MaxProperties ~]";break}let eo=e_[ei];eb[ei]=rT(ei,eo,eg-1,eu,ec),ew++}return ef(eo),eb}function rk(ei,eo){try{if("domain"===ei&&eo&&"object"==typeof eo&&eo._events)return"[Domain]";if("domainEmitter"===ei)return"[DomainEmitter]";if(void 0!==ea.g&&eo===ea.g)return"[Global]";if("undefined"!=typeof window&&eo===window)return"[Window]";if("undefined"!=typeof document&&eo===document)return"[Document]";if((0,eT.Cy)(eo))return"[SyntheticEvent]";if("number"==typeof eo&&eo!=eo)return"[NaN]";if(void 0===eo)return"[undefined]";if("function"==typeof eo)return`[Function: ${(0,ry.$P)(eo)}]`;if("symbol"==typeof eo)return`[${String(eo)}]`;if("bigint"==typeof eo)return`[BigInt: ${String(eo)}]`;return`[object ${rC(eo)}]`}catch(ei){return`**non-serializable** (${ei})`}}function rC(ei){let eo=Object.getPrototypeOf(ei);return eo?eo.constructor.name:"null prototype"}function rO(ei){return~-encodeURI(ei).split(/%..|./).length}function rI(ei){return rO(JSON.stringify(ei))}function rP(ei,eo=[]){return[ei,eo]}function rD(ei,eo){let[ea,eu]=ei;return[ea,[...eu,eo]]}function rN(ei,eo){let ea=ei[1];for(let ei of ea){let ea=ei[0].type,eu=eo(ei,ea);if(eu)return!0}return!1}function rM(ei,eo){let ea=eo||new TextEncoder;return ea.encode(ei)}function rj(ei,eo){let[ea,eu]=ei,ec=JSON.stringify(ea);function ed(ei){"string"==typeof ec?ec="string"==typeof ei?ec+ei:[rM(ec,eo),ei]:ec.push("string"==typeof ei?rM(ei,eo):ei)}for(let ei of eu){let[eo,ea]=ei;if(ed(` +${JSON.stringify(eo)} +`),"string"==typeof ea||ea instanceof Uint8Array)ed(ea);else{let ei;try{ei=JSON.stringify(ea)}catch(eo){ei=JSON.stringify(rE(ea))}ed(ei)}}return"string"==typeof ec?ec:rR(ec)}function rR(ei){let eo=ei.reduce((ei,eo)=>ei+eo.length,0),ea=new Uint8Array(eo),eu=0;for(let eo of ei)ea.set(eo,eu),eu+=eo.length;return ea}function rL(ei,eo){let ea="string"==typeof ei.data?rM(ei.data,eo):ei.data;return[(0,eC.Jr)({type:"attachment",length:ea.length,filename:ei.filename,content_type:ei.contentType,attachment_type:ei.attachmentType}),ea]}let rF={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function rB(ei){return rF[ei]}function rU(ei){if(!ei||!ei.sdk)return;let{name:eo,version:ea}=ei.sdk;return{name:eo,version:ea}}function rz(ei,eo,ea,eu){let ec=ei.sdkProcessingMetadata&&ei.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:ei.event_id,sent_at:new Date().toISOString(),...eo&&{sdk:eo},...!!ea&&{dsn:tZ(eu)},..."transaction"===ei.type&&ec&&{trace:(0,eC.Jr)({...ec})}}}function rG(ei,eo){return eo&&(ei.sdk=ei.sdk||{},ei.sdk.name=ei.sdk.name||eo.name,ei.sdk.version=ei.sdk.version||eo.version,ei.sdk.integrations=[...ei.sdk.integrations||[],...eo.integrations||[]],ei.sdk.packages=[...ei.sdk.packages||[],...eo.packages||[]]),ei}function rV(ei,eo,ea,eu){let ec=rU(ea),ed={sent_at:new Date().toISOString(),...ec&&{sdk:ec},...!!eu&&{dsn:tZ(eo)}},ef="aggregates"in ei?[{type:"sessions"},ei]:[{type:"session"},ei];return rP(ed,[ef])}function rq(ei,eo,ea,eu){let ec=rU(ea),ed=ei.type&&"replay_event"!==ei.type?ei.type:"event";rG(ei,ea&&ea.sdk);let ef=rz(ei,ec,eu,eo);delete ei.sdkProcessingMetadata;let eh=[{type:ed},ei];return rP(ef,[eh])}function rH(ei,eo,ea,eu){let{normalizeDepth:ec=3,normalizeMaxBreadth:ed=1e3}=ei,ef={...eo,event_id:eo.event_id||ea.event_id||(0,eb.DM)(),timestamp:eo.timestamp||(0,ew.yW)()},eh=ea.integrations||ei.integrations.map(ei=>ei.name);rW(ef,ei),rY(ef,eh),rK(ef,ei.stackParser);let eg=eu;ea.captureContext&&(eg=tT.clone(eg).update(ea.captureContext));let em=(0,ek.WD)(ef);if(eg){if(eg.getAttachments){let ei=[...ea.attachments||[],...eg.getAttachments()];ei.length&&(ea.attachments=ei)}em=eg.applyToEvent(ef,ea)}return em.then(ei=>"number"==typeof ec&&ec>0?rZ(ei,ec,ed):ei)}function rW(ei,eo){let{environment:ea,release:eu,dist:ec,maxValueLength:ed=250}=eo;"environment"in ei||(ei.environment="environment"in eo?ea:tb),void 0===ei.release&&void 0!==eu&&(ei.release=eu),void 0===ei.dist&&void 0!==ec&&(ei.dist=ec),ei.message&&(ei.message=(0,e6.$G)(ei.message,ed));let ef=ei.exception&&ei.exception.values&&ei.exception.values[0];ef&&ef.value&&(ef.value=(0,e6.$G)(ef.value,ed));let eh=ei.request;eh&&eh.url&&(eh.url=(0,e6.$G)(eh.url,ed))}function rK(ei,eo){let ea=eS.n2._sentryDebugIds;if(!ea)return;let eu=Object.keys(ea).reduce((ei,eu)=>{let ec=eo(eu);for(let eo of ec)if(eo.abs_path){ei[eo.abs_path]=ea[eu];break}return ei},{}),ec=new Set;try{ei.exception.values.forEach(ei=>{ei.stacktrace.frames.forEach(ei=>{ei.abs_path&&ec.add(ei.abs_path)})})}catch(ei){}ei.debug_meta=ei.debug_meta||{},ei.debug_meta.images=ei.debug_meta.images||[];let ed=ei.debug_meta.images;ec.forEach(ei=>{eu[ei]&&ed.push({type:"sourcemap",code_file:ei,debug_id:eu[ei]})})}function rY(ei,eo){eo.length>0&&(ei.sdk=ei.sdk||{},ei.sdk.integrations=[...ei.sdk.integrations||[],...eo])}function rZ(ei,eo,ea){if(!ei)return null;let eu={...ei,...ei.breadcrumbs&&{breadcrumbs:ei.breadcrumbs.map(ei=>({...ei,...ei.data&&{data:rE(ei.data,eo,ea)}}))},...ei.user&&{user:rE(ei.user,eo,ea)},...ei.contexts&&{contexts:rE(ei.contexts,eo,ea)},...ei.extra&&{extra:rE(ei.extra,eo,ea)}};return ei.contexts&&ei.contexts.trace&&eu.contexts&&(eu.contexts.trace=ei.contexts.trace,ei.contexts.trace.data&&(eu.contexts.trace.data=rE(ei.contexts.trace.data,eo,ea))),ei.spans&&(eu.spans=ei.spans.map(ei=>(ei.data&&(ei.data=rE(ei.data,eo,ea)),ei))),eu}let r$="Not capturing exception because it's already been captured.";class rJ{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(ei){if(rJ.prototype.__init.call(this),rJ.prototype.__init2.call(this),rJ.prototype.__init3.call(this),rJ.prototype.__init4.call(this),rJ.prototype.__init5.call(this),this._options=ei,ei.dsn){this._dsn=tX(ei.dsn);let eo=rh(this._dsn,ei);this._transport=ei.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...ei.transportOptions,url:eo})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn("No DSN provided, client will not do anything.")}captureException(ei,eo,ea){if((0,eb.YO)(ei)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.log(r$);return}let eu=eo&&eo.event_id;return this._process(this.eventFromException(ei,eo).then(ei=>this._captureEvent(ei,eo,ea)).then(ei=>{eu=ei})),eu}captureMessage(ei,eo,ea,eu){let ec=ea&&ea.event_id,ed=(0,eT.pt)(ei)?this.eventFromMessage(String(ei),eo,ea):this.eventFromException(ei,ea);return this._process(ed.then(ei=>this._captureEvent(ei,ea,eu)).then(ei=>{ec=ei})),ec}captureEvent(ei,eo,ea){if(eo&&eo.originalException&&(0,eb.YO)(eo.originalException)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.log(r$);return}let eu=eo&&eo.event_id;return this._process(this._captureEvent(ei,eo,ea).then(ei=>{eu=ei})),eu}captureSession(ei){if(!this._isEnabled()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn("SDK not enabled, will not capture session.");return}"string"!=typeof ei.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(ei),t_(ei,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(ei){let eo=this._transport;return eo?this._isClientDoneProcessing(ei).then(ea=>eo.flush(ei).then(ei=>ea&&ei)):(0,ek.WD)(!0)}close(ei){return this.flush(ei).then(ei=>(this.getOptions().enabled=!1,ei))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=tV(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(ei){return this._integrations[ei]}getIntegration(ei){try{return this._integrations[ei.id]||null}catch(eo){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Cannot retrieve integration ${ei.id} from the current Client`),null}}addIntegration(ei){tq(ei,this._integrations)}sendEvent(ei,eo={}){if(this._dsn){let ea=rq(ei,this._dsn,this._options._metadata,this._options.tunnel);for(let ei of eo.attachments||[])ea=rD(ea,rL(ei,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(ea)}}sendSession(ei){if(this._dsn){let eo=rV(ei,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(eo)}}recordDroppedEvent(ei,eo,ea){if(this._options.sendClientReports){let ea=`${ei}:${eo}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.log(`Adding outcome: "${ea}"`),this._outcomes[ea]=this._outcomes[ea]+1||1}}on(ei,eo){this._hooks[ei]||(this._hooks[ei]=[]),this._hooks[ei].push(eo)}emit(ei,...eo){this._hooks[ei]&&this._hooks[ei].forEach(ei=>ei(...eo))}_updateSessionFromEvent(ei,eo){let ea=!1,eu=!1,ec=eo.exception&&eo.exception.values;if(ec)for(let ei of(eu=!0,ec)){let eo=ei.mechanism;if(eo&&!1===eo.handled){ea=!0;break}}let ed="ok"===ei.status,ef=ed&&0===ei.errors||ed&&ea;ef&&(t_(ei,{...ea&&{status:"crashed"},errors:ei.errors||Number(eu||ea)}),this.captureSession(ei))}_isClientDoneProcessing(ei){return new ek.cW(eo=>{let ea=0,eu=1,ec=setInterval(()=>{0==this._numProcessing?(clearInterval(ec),eo(!0)):(ea+=eu,ei&&ea>=ei&&(clearInterval(ec),eo(!1)))},eu)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(ei,eo,ea){let eu=this.getOptions(),ec=Object.keys(this._integrations);return!eo.integrations&&ec.length>0&&(eo.integrations=ec),rH(eu,ei,eo,ea)}_captureEvent(ei,eo={},ea){return this._processEvent(ei,eo,ea).then(ei=>ei.event_id,ei=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){let eo=ei;"log"===eo.logLevel?e_.kg.log(eo.message):e_.kg.warn(eo)}})}_processEvent(ei,eo,ea){let eu=this.getOptions(),{sampleRate:ec}=eu;if(!this._isEnabled())return(0,ek.$2)(new tW("SDK not enabled, will not capture event.","log"));let ed=no(ei),ef=ni(ei),eh=ei.type||"error",eg=`before send for type \`${eh}\``;if(ef&&"number"==typeof ec&&Math.random()>ec)return this.recordDroppedEvent("sample_rate","error",ei),(0,ek.$2)(new tW(`Discarding event because it's not included in the random sample (sampling rate = ${ec})`,"log"));let em="replay_event"===eh?"replay":eh;return this._prepareEvent(ei,eo,ea).then(ea=>{if(null===ea)throw this.recordDroppedEvent("event_processor",em,ei),new tW("An event processor returned `null`, will not send event.","log");let ec=eo.data&&!0===eo.data.__sentry__;if(ec)return ea;let ed=rX(eu,ea,eo);return rQ(ed,eg)}).then(eu=>{if(null===eu)throw this.recordDroppedEvent("before_send",em,ei),new tW(`${eg} returned \`null\`, will not send event.`,"log");let ec=ea&&ea.getSession();!ed&&ec&&this._updateSessionFromEvent(ec,eu);let ef=eu.transaction_info;if(ed&&ef&&eu.transaction!==ei.transaction){let ei="custom";eu.transaction_info={...ef,source:ei}}return this.sendEvent(eu,eo),eu}).then(null,ei=>{if(ei instanceof tW)throw ei;throw this.captureException(ei,{data:{__sentry__:!0},originalException:ei}),new tW(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${ei}`)})}_process(ei){this._numProcessing++,ei.then(ei=>(this._numProcessing--,ei),ei=>(this._numProcessing--,ei))}_sendEnvelope(ei){this._transport&&this._dsn?this._transport.send(ei).then(null,ei=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.error("Error while sending event:",ei)}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.error("Transport disabled")}_clearOutcomes(){let ei=this._outcomes;return this._outcomes={},Object.keys(ei).map(eo=>{let[ea,eu]=eo.split(":");return{reason:ea,category:eu,quantity:ei[eo]}})}}function rQ(ei,eo){let ea=`${eo} must return \`null\` or a valid event.`;if((0,eT.J8)(ei))return ei.then(ei=>{if(!(0,eT.PO)(ei)&&null!==ei)throw new tW(ea);return ei},ei=>{throw new tW(`${eo} rejected with ${ei}`)});if(!(0,eT.PO)(ei)&&null!==ei)throw new tW(ea);return ei}function rX(ei,eo,ea){let{beforeSend:eu,beforeSendTransaction:ec}=ei;return ni(eo)&&eu?eu(eo,ea):no(eo)&&ec?ec(eo,ea):eo}function ni(ei){return void 0===ei.type}function no(ei){return"transaction"===ei.type}var nu=ea(68518);function nd(ei,eo,ea){let eu=[{type:"client_report"},{timestamp:ea||(0,ew.yW)(),discarded_events:ei}];return rP(eo?{dsn:eo}:{},[eu])}function nf(ei,eo){let ea=ng(ei,eo),eu={type:eo&&eo.name,value:n_(eo)};return ea.length&&(eu.stacktrace={frames:ea}),void 0===eu.type&&""===eu.value&&(eu.value="Unrecoverable error caught"),eu}function nh(ei,eo,ea,eu){let ec=tM(),ed=ec.getClient(),ef=ed&&ed.getOptions().normalizeDepth,eh={exception:{values:[{type:(0,eT.cO)(eo)?eo.constructor.name:eu?"UnhandledRejection":"Error",value:`Non-Error ${eu?"promise rejection":"exception"} captured with keys: ${(0,eC.zf)(eo)}`}]},extra:{__serialized__:rA(eo,ef)}};if(ea){let eo=ng(ei,ea);eo.length&&(eh.exception.values[0].stacktrace={frames:eo})}return eh}function np(ei,eo){return{exception:{values:[nf(ei,eo)]}}}function ng(ei,eo){let ea=eo.stacktrace||eo.stack||"",eu=nw(eo);try{return ei(ea,eu)}catch(ei){}return[]}let ny=/Minified React error #\d+;/i;function nw(ei){if(ei){if("number"==typeof ei.framesToPop)return ei.framesToPop;if(ny.test(ei.message))return 1}return 0}function n_(ei){let eo=ei&&ei.message;return eo?eo.error&&"string"==typeof eo.error.message?eo.error.message:eo:"No error message"}function nS(ei,eo,ea,eu){let ec=ea&&ea.syntheticException||void 0,ed=nx(ei,eo,ec,eu);return(0,eb.EG)(ed),ed.level="error",ea&&ea.event_id&&(ed.event_id=ea.event_id),(0,ek.WD)(ed)}function nE(ei,eo,ea="info",eu,ec){let ed=eu&&eu.syntheticException||void 0,ef=nA(ei,eo,ed,ec);return ef.level=ea,eu&&eu.event_id&&(ef.event_id=eu.event_id),(0,ek.WD)(ef)}function nx(ei,eo,ea,eu,ec){let ed;if((0,eT.VW)(eo)&&eo.error){let ea=eo;return np(ei,ea.error)}if((0,eT.TX)(eo)||(0,eT.fm)(eo)){let ec=eo;if("stack"in eo)ed=np(ei,eo);else{let eo=ec.name||((0,eT.TX)(ec)?"DOMError":"DOMException"),ef=ec.message?`${eo}: ${ec.message}`:eo;ed=nA(ei,ef,ea,eu),(0,eb.Db)(ed,ef)}return"code"in ec&&(ed.tags={...ed.tags,"DOMException.code":`${ec.code}`}),ed}if((0,eT.VZ)(eo))return np(ei,eo);if((0,eT.PO)(eo)||(0,eT.cO)(eo)){let eu=eo;return ed=nh(ei,eu,ea,ec),(0,eb.EG)(ed,{synthetic:!0}),ed}return ed=nA(ei,eo,ea,eu),(0,eb.Db)(ed,`${eo}`,void 0),(0,eb.EG)(ed,{synthetic:!0}),ed}function nA(ei,eo,ea,eu){let ec={message:eo};if(eu&&ea){let eu=ng(ei,ea);eu.length&&(ec.exception={values:[{value:eo,stacktrace:{frames:eu}}]})}return ec}function nT(ei,eo){return tM().captureException(ei,{captureContext:eo})}function nk(ei,eo){let ea="string"==typeof eo?eo:void 0,eu="string"!=typeof eo?{captureContext:eo}:void 0;return tM().captureMessage(ei,ea,eu)}function nC(ei){tM().configureScope(ei)}function nO(ei,eo){tM().setContext(ei,eo)}function nI(ei,eo){tM().setTag(ei,eo)}function nP(ei){tM().setUser(ei)}function nD(ei){tM().withScope(ei)}let nN=eS.n2,nM=0;function nj(){return nM>0}function nR(){nM++,setTimeout(()=>{nM--})}function nL(ei,eo={},ea){if("function"!=typeof ei)return ei;try{let eo=ei.__sentry_wrapped__;if(eo)return eo;if((0,eC.HK)(ei))return ei}catch(eo){return ei}let eu=function(){let eu=Array.prototype.slice.call(arguments);try{ea&&"function"==typeof ea&&ea.apply(this,arguments);let ec=eu.map(ei=>nL(ei,eo));return ei.apply(this,ec)}catch(ei){throw nR(),nD(ea=>{ea.addEventProcessor(ei=>(eo.mechanism&&((0,eb.Db)(ei,void 0,void 0),(0,eb.EG)(ei,eo.mechanism)),ei.extra={...ei.extra,arguments:eu},ei)),nT(ei)}),ei}};try{for(let eo in ei)Object.prototype.hasOwnProperty.call(ei,eo)&&(eu[eo]=ei[eo])}catch(ei){}(0,eC.$Q)(eu,ei),(0,eC.xp)(ei,"__sentry_wrapped__",eu);try{let eo=Object.getOwnPropertyDescriptor(eu,"name");eo.configurable&&Object.defineProperty(eu,"name",{get:()=>ei.name})}catch(ei){}return eu}var nF=ea(58464);let nB=["fatal","error","warning","log","info","debug"];function nU(ei){return"warn"===ei?"warning":nB.includes(ei)?ei:"log"}function nz(ei){if(!ei)return{};let eo=ei.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!eo)return{};let ea=eo[6]||"",eu=eo[8]||"";return{host:eo[4],path:eo[5],protocol:eo[2],relative:eo[5]+ea+eu}}function nG(ei){return ei.split(/[\?#]/,1)[0]}let nV=1024,nq="Breadcrumbs";class nH{static __initStatic(){this.id=nq}__init(){this.name=nH.id}constructor(ei){nH.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...ei}}setupOnce(){this.options.console&&(0,r_.o)("console",nK),this.options.dom&&(0,r_.o)("dom",nW(this.options.dom)),this.options.xhr&&(0,r_.o)("xhr",nY),this.options.fetch&&(0,r_.o)("fetch",nZ),this.options.history&&(0,r_.o)("history",n$)}addSentryBreadcrumb(ei){this.options.sentry&&tM().addBreadcrumb({category:`sentry.${"transaction"===ei.type?"transaction":"event"}`,event_id:ei.event_id,level:ei.level,message:(0,eb.jH)(ei)},{event:ei})}}function nW(ei){return function(eo){let ea;let eu="object"==typeof ei?ei.serializeAttribute:void 0,ec="object"==typeof ei&&"number"==typeof ei.maxStringLength?ei.maxStringLength:void 0;ec&&ec>nV&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`\`dom.maxStringLength\` cannot exceed ${nV}, but a value of ${ec} was configured. Sentry will use ${nV} instead.`),ec=nV),"string"==typeof eu&&(eu=[eu]);try{let ei=eo.event;ea=nJ(ei)?(0,nF.Rt)(ei.target,{keyAttrs:eu,maxStringLength:ec}):(0,nF.Rt)(ei,{keyAttrs:eu,maxStringLength:ec})}catch(ei){ea=""}0!==ea.length&&tM().addBreadcrumb({category:`ui.${eo.name}`,message:ea},{event:eo.event,name:eo.name,global:eo.global})}}function nK(ei){for(let eo=0;eo{"hidden"===nN.document.visibilityState&&this._flushOutcomes()})}eventFromException(ei,eo){return nS(this._options.stackParser,ei,eo,this._options.attachStacktrace)}eventFromMessage(ei,eo="info",ea){return nE(this._options.stackParser,ei,eo,ea,this._options.attachStacktrace)}sendEvent(ei,eo){let ea=this.getIntegrationById(nq);ea&&ea.addSentryBreadcrumb&&ea.addSentryBreadcrumb(ei),super.sendEvent(ei,eo)}_prepareEvent(ei,eo,ea){return ei.platform=ei.platform||"javascript",super._prepareEvent(ei,eo,ea)}_flushOutcomes(){let ei=this._clearOutcomes();if(0===ei.length){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.log("No outcomes to send");return}if(!this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.log("No dsn provided, will not send outcomes");return}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.log("Sending outcomes:",ei);let eo=rh(this._dsn,this._options),ea=nd(ei,this._options.tunnel&&tZ(this._dsn));try{let ei="[object Navigator]"===Object.prototype.toString.call(nN&&nN.navigator),eu=ei&&"function"==typeof nN.navigator.sendBeacon;if(eu&&!this._options.transportOptions){let ei=nN.navigator.sendBeacon.bind(nN.navigator);ei(eo,rj(ea))}else this._sendEnvelope(ea)}catch(ei){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.error(ei)}}}class nX{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=nX.id}__init2(){this._installFunc={onerror:n0,onunhandledrejection:n3}}constructor(ei){nX.prototype.__init.call(this),nX.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...ei}}setupOnce(){Error.stackTraceLimit=50;let ei=this._options;for(let eo in ei){let ea=this._installFunc[eo];ea&&ei[eo]&&(n8(eo),ea(),this._installFunc[eo]=void 0)}}}function n0(){(0,r_.o)("error",ei=>{let[eo,ea,eu]=n7();if(!eo.getIntegration(nX))return;let{msg:ec,url:ed,line:ef,column:eh,error:eg}=ei;if(nj()||eg&&eg.__sentry_own_request__)return;let em=void 0===eg&&(0,eT.HD)(ec)?n4(ec,ed,ef,eh):n6(nx(ea,eg||ec,void 0,eu,!1),ed,ef,eh);em.level="error",n9(eo,eg,em,"onerror")})}function n3(){(0,r_.o)("unhandledrejection",ei=>{let[eo,ea,eu]=n7();if(!eo.getIntegration(nX))return;let ec=ei;try{"reason"in ei?ec=ei.reason:"detail"in ei&&"reason"in ei.detail&&(ec=ei.detail.reason)}catch(ei){}if(nj()||ec&&ec.__sentry_own_request__)return!0;let ed=(0,eT.pt)(ec)?n5(ec):nx(ea,ec,void 0,eu,!0);ed.level="error",n9(eo,ec,ed,"onunhandledrejection")})}function n5(ei){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(ei)}`}]}}}function n4(ei,eo,ea,eu){let ec=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,ed=(0,eT.VW)(ei)?ei.message:ei,ef="Error",eh=ed.match(ec);eh&&(ef=eh[1],ed=eh[2]);let eg={exception:{values:[{type:ef,value:ed}]}};return n6(eg,eo,ea,eu)}function n6(ei,eo,ea,eu){let ec=ei.exception=ei.exception||{},ed=ec.values=ec.values||[],ef=ed[0]=ed[0]||{},eh=ef.stacktrace=ef.stacktrace||{},eg=eh.frames=eh.frames||[],em=isNaN(parseInt(eu,10))?void 0:eu,eb=isNaN(parseInt(ea,10))?void 0:ea,ew=(0,eT.HD)(eo)&&eo.length>0?eo:(0,nF.l4)();return 0===eg.length&&eg.push({colno:em,filename:ew,function:"?",in_app:!0,lineno:eb}),ei}function n8(ei){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.log(`Global Handler attached: ${ei}`)}function n9(ei,eo,ea,eu){(0,eb.EG)(ea,{handled:!1,type:eu}),ei.captureEvent(ea,{originalException:eo})}function n7(){let ei=tM(),eo=ei.getClient(),ea=eo&&eo.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[ei,ea.stackParser,ea.attachStacktrace]}nX.__initStatic();let ia=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class iu{static __initStatic(){this.id="TryCatch"}__init(){this.name=iu.id}constructor(ei){iu.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...ei}}setupOnce(){this._options.setTimeout&&(0,eC.hl)(nN,"setTimeout",ic),this._options.setInterval&&(0,eC.hl)(nN,"setInterval",ic),this._options.requestAnimationFrame&&(0,eC.hl)(nN,"requestAnimationFrame",ih),this._options.XMLHttpRequest&&"XMLHttpRequest"in nN&&(0,eC.hl)(XMLHttpRequest.prototype,"send",ip);let ei=this._options.eventTarget;if(ei){let eo=Array.isArray(ei)?ei:ia;eo.forEach(ig)}}}function ic(ei){return function(...eo){let ea=eo[0];return eo[0]=nL(ea,{mechanism:{data:{function:(0,ry.$P)(ei)},handled:!0,type:"instrument"}}),ei.apply(this,eo)}}function ih(ei){return function(eo){return ei.apply(this,[nL(eo,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,ry.$P)(ei)},handled:!0,type:"instrument"}})])}}function ip(ei){return function(...eo){let ea=this,eu=["onload","onerror","onprogress","onreadystatechange"];return eu.forEach(ei=>{ei in ea&&"function"==typeof ea[ei]&&(0,eC.hl)(ea,ei,function(eo){let ea={mechanism:{data:{function:ei,handler:(0,ry.$P)(eo)},handled:!0,type:"instrument"}},eu=(0,eC.HK)(eo);return eu&&(ea.mechanism.data.handler=(0,ry.$P)(eu)),nL(eo,ea)})}),ei.apply(this,eo)}}function ig(ei){let eo=nN,ea=eo[ei]&&eo[ei].prototype;ea&&ea.hasOwnProperty&&ea.hasOwnProperty("addEventListener")&&((0,eC.hl)(ea,"addEventListener",function(eo){return function(ea,eu,ec){try{"function"==typeof eu.handleEvent&&(eu.handleEvent=nL(eu.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,ry.$P)(eu),target:ei},handled:!0,type:"instrument"}}))}catch(ei){}return eo.apply(this,[ea,nL(eu,{mechanism:{data:{function:"addEventListener",handler:(0,ry.$P)(eu),target:ei},handled:!0,type:"instrument"}}),ec])}}),(0,eC.hl)(ea,"removeEventListener",function(ei){return function(eo,ea,eu){let ec=ea;try{let ea=ec&&ec.__sentry_wrapped__;ea&&ei.call(this,eo,ea,eu)}catch(ei){}return ei.call(this,eo,ec,eu)}}))}iu.__initStatic();let iy="cause",iv=5;class ib{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=ib.id}constructor(ei={}){ib.prototype.__init.call(this),this._key=ei.key||iy,this._limit=ei.limit||iv}setupOnce(){let ei=tM().getClient();ei&&tC((eo,ea)=>{let eu=tM().getIntegration(ib);return eu?iw(ei.getOptions().stackParser,eu._key,eu._limit,eo,ea):eo})}}function iw(ei,eo,ea,eu,ec){if(!eu.exception||!eu.exception.values||!ec||!(0,eT.V9)(ec.originalException,Error))return eu;let ed=i_(ei,ea,ec.originalException,eo);return eu.exception.values=[...ed,...eu.exception.values],eu}function i_(ei,eo,ea,eu,ec=[]){if(!(0,eT.V9)(ea[eu],Error)||ec.length+1>=eo)return ec;let ed=nf(ei,ea[eu]);return i_(ei,eo,ea[eu],eu,[ed,...ec])}ib.__initStatic();class iS{constructor(){iS.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=iS.id}setupOnce(){tC(ei=>{if(tM().getIntegration(iS)){if(!nN.navigator&&!nN.location&&!nN.document)return ei;let eo=ei.request&&ei.request.url||nN.location&&nN.location.href,{referrer:ea}=nN.document||{},{userAgent:eu}=nN.navigator||{},ec={...ei.request&&ei.request.headers,...ea&&{Referer:ea},...eu&&{"User-Agent":eu}},ed={...ei.request,...eo&&{url:eo},headers:ec};return{...ei,request:ed}}return ei})}}iS.__initStatic();class iE{constructor(){iE.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=iE.id}setupOnce(ei,eo){let ea=ei=>{if(ei.type)return ei;let ea=eo().getIntegration(iE);if(ea){try{if(iA(ei,ea._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(ei){}return ea._previousEvent=ei}return ei};ea.id=this.name,ei(ea)}}function iA(ei,eo){return!!eo&&!!(iT(ei,eo)||iC(ei,eo))}function iT(ei,eo){let ea=ei.message,eu=eo.message;return!!((ea||eu)&&(!ea||eu)&&(ea||!eu)&&ea===eu&&iI(ei,eo)&&iO(ei,eo))}function iC(ei,eo){let ea=iP(eo),eu=iP(ei);return!!(ea&&eu&&ea.type===eu.type&&ea.value===eu.value&&iI(ei,eo)&&iO(ei,eo))}function iO(ei,eo){let ea=iD(ei),eu=iD(eo);if(!ea&&!eu)return!0;if(ea&&!eu||!ea&&eu||eu.length!==ea.length)return!1;for(let ei=0;ei|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iB=/\((\S*)(?::(\d+))(?::(\d+))\)/,iU=ei=>{let eo=iF.exec(ei);if(eo){let ei=eo[2]&&0===eo[2].indexOf("eval");if(ei){let ei=iB.exec(eo[2]);ei&&(eo[2]=ei[1],eo[3]=ei[2],eo[4]=ei[3])}let[ea,eu]=i0(eo[1]||iN,eo[2]);return iL(eu,ea,eo[3]?+eo[3]:void 0,eo[4]?+eo[4]:void 0)}},iG=[iM,iU],iV=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,iq=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,iH=ei=>{let eo=iV.exec(ei);if(eo){let ei=eo[3]&&eo[3].indexOf(" > eval")>-1;if(ei){let ei=iq.exec(eo[3]);ei&&(eo[1]=eo[1]||"eval",eo[3]=ei[1],eo[4]=ei[2],eo[5]="")}let ea=eo[3],eu=eo[1]||iN;return[eu,ea]=i0(eu,ea),iL(ea,eu,eo[4]?+eo[4]:void 0,eo[5]?+eo[5]:void 0)}},iW=[iR,iH],iK=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,iZ=ei=>{let eo=iK.exec(ei);return eo?iL(eo[2],eo[1]||iN,+eo[3],eo[4]?+eo[4]:void 0):void 0},i$=[ij,iZ],iJ=[iG,iW,i$],iQ=(0,ry.pE)(...iJ),i0=(ei,eo)=>{let ea=-1!==ei.indexOf("safari-extension"),eu=-1!==ei.indexOf("safari-web-extension");return ea||eu?[-1!==ei.indexOf("@")?ei.split("@")[0]:iN,ea?`safari-extension:${eo}`:`safari-web-extension:${eo}`]:[ei,eo]};function i6(ei){let eo=[];function ea(){return void 0===ei||eo.lengtheu(ec)).then(null,()=>eu(ec).then(null,()=>{})),ec}function ed(ei){return new ek.cW((ea,eu)=>{let ec=eo.length;if(!ec)return ea(!0);let ed=setTimeout(()=>{ei&&ei>0&&ea(!1)},ei);eo.forEach(ei=>{(0,ek.WD)(ei).then(()=>{--ec||(clearTimeout(ed),ea(!0))},eu)})})}return{$:eo,add:ec,drain:ed}}let i8=6e4;function i9(ei,eo=Date.now()){let ea=parseInt(`${ei}`,10);if(!isNaN(ea))return 1e3*ea;let eu=Date.parse(`${ei}`);return isNaN(eu)?i8:eu-eo}function i7(ei,eo){return ei[eo]||ei.all||0}function oi(ei,eo,ea=Date.now()){return i7(ei,eo)>ea}function oo(ei,{statusCode:eo,headers:ea},eu=Date.now()){let ec={...ei},ed=ea&&ea["x-sentry-rate-limits"],ef=ea&&ea["retry-after"];if(ed)for(let ei of ed.trim().split(",")){let[eo,ea]=ei.split(":",2),ed=parseInt(eo,10),ef=(isNaN(ed)?60:ed)*1e3;if(ea)for(let ei of ea.split(";"))ec[ei]=eu+ef;else ec.all=eu+ef}else ef?ec.all=eu+i9(ef,eu):429===eo&&(ec.all=eu+6e4);return ec}let oa=30;function ol(ei,eo,ea=i6(ei.bufferSize||oa)){let eu={},ec=ei=>ea.drain(ei);return{send:function(ec){let ed=[];if(rN(ec,(eo,ea)=>{let ec=rB(ea);if(oi(eu,ec)){let eu=ou(eo,ea);ei.recordDroppedEvent("ratelimit_backoff",ec,eu)}else ed.push(eo)}),0===ed.length)return(0,ek.WD)();let ef=rP(ec[0],ed),eh=eo=>{rN(ef,(ea,eu)=>{let ec=ou(ea,eu);ei.recordDroppedEvent(eo,rB(eu),ec)})},eg=()=>eo({body:rj(ef,ei.textEncoder)}).then(ei=>(void 0!==ei.statusCode&&(ei.statusCode<200||ei.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn(`Sentry responded with status code ${ei.statusCode} to sent event.`),eu=oo(eu,ei),ei),ei=>{throw eh("network_error"),ei});return ea.add(eg).then(ei=>ei,ei=>{if(ei instanceof tW)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.error("Skipped sending event because buffer is full."),eh("queue_overflow"),(0,ek.WD)();throw ei})},flush:ec}}function ou(ei,eo){if("event"===eo||"transaction"===eo)return Array.isArray(ei)?ei[1]:void 0}function oc(){if(ec)return ec;if((0,rw.Du)(nN.fetch))return ec=nN.fetch.bind(nN);let ei=nN.document,eo=nN.fetch;if(ei&&"function"==typeof ei.createElement)try{let ea=ei.createElement("iframe");ea.hidden=!0,ei.head.appendChild(ea);let eu=ea.contentWindow;eu&&eu.fetch&&(eo=eu.fetch),ei.head.removeChild(ea)}catch(ei){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",ei)}return ec=eo.bind(nN)}function od(){ec=void 0}function oh(ei,eo=oc()){function ea(ea){let eu={body:ea.body,method:"POST",referrerPolicy:"origin",headers:ei.headers,keepalive:ea.body.length<=65536,...ei.fetchOptions};try{return eo(ei.url,eu).then(ei=>({statusCode:ei.status,headers:{"x-sentry-rate-limits":ei.headers.get("X-Sentry-Rate-Limits"),"retry-after":ei.headers.get("Retry-After")}}))}catch(ei){return od(),(0,ek.$2)(ei)}}return ol(ei,ea)}let og=4;function om(ei){function eo(eo){return new ek.cW((ea,eu)=>{let ec=new XMLHttpRequest;for(let eo in ec.onerror=eu,ec.onreadystatechange=()=>{ec.readyState===og&&ea({statusCode:ec.status,headers:{"x-sentry-rate-limits":ec.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":ec.getResponseHeader("Retry-After")}})},ec.open("POST",ei.url),ei.headers)Object.prototype.hasOwnProperty.call(ei.headers,eo)&&ec.setRequestHeader(eo,ei.headers[eo]);ec.send(eo.body)})}return ol(ei,eo)}let ov=[new e9,new tv,new iu,new nH,new nX,new ib,new iE,new iS];function ow(ei={}){void 0===ei.defaultIntegrations&&(ei.defaultIntegrations=ov),void 0===ei.release&&("string"==typeof __SENTRY_RELEASE__&&(ei.release=__SENTRY_RELEASE__),nN.SENTRY_RELEASE&&nN.SENTRY_RELEASE.id&&(ei.release=nN.SENTRY_RELEASE.id)),void 0===ei.autoSessionTracking&&(ei.autoSessionTracking=!0),void 0===ei.sendClientReports&&(ei.sendClientReports=!0);let eo={...ei,stackParser:(0,ry.Sq)(ei.stackParser||iQ),integrations:tG(ei),transport:ei.transport||((0,rw.Ak)()?oh:om)};tH(nQ,eo),ei.autoSessionTracking&&oE()}function o_(ei={},eo=tM()){if(!nN.document){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.error("Global document not defined in showReportDialog call");return}let{client:ea,scope:eu}=eo.getStackTop(),ec=ei.dsn||ea&&ea.getDsn();if(!ec){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.error("DSN not configured for showReportDialog call");return}eu&&(ei.user={...eu.getUser(),...ei.user}),ei.eventId||(ei.eventId=eo.lastEventId());let ed=nN.document.createElement("script");ed.async=!0,ed.src=rp(ec,ei),ei.onLoad&&(ed.onload=ei.onLoad);let ef=nN.document.head||nN.document.body;ef?ef.appendChild(ed):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.error("Not injecting report dialog. No injection point found in HTML")}function oS(ei){ei.startSession({ignoreDuration:!0}),ei.captureSession()}function oE(){if(void 0===nN.document){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let ei=tM();ei.captureSession&&(oS(ei),(0,r_.o)("history",({from:ei,to:eo})=>{void 0===ei||ei===eo||oS(tM())}))}function oA(ei){ei._metadata=ei._metadata||{},ei._metadata.sdk=ei._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:e4}],version:e4},ow(ei)}let oT={};nN.Sentry&&nN.Sentry.Integrations&&(oT=nN.Sentry.Integrations),ea(8679);var oC=ea(67294);function oI(ei){let eo=ei.match(/^([^.]+)/);return null!==eo&&parseInt(eo[0])>=17}let oP={componentStack:null,error:null,eventId:null};class oD extends oC.Component{constructor(...ei){super(...ei),oD.prototype.__init.call(this),oD.prototype.__init2.call(this)}__init(){this.state=oP}componentDidCatch(ei,{componentStack:eo}){let{beforeCapture:ea,onError:eu,showDialog:ec,dialogOptions:ed}=this.props;nD(ef=>{if(oI(oC.version)&&(0,eT.VZ)(ei)){let ea=Error(ei.message);ea.name=`React ErrorBoundary ${ea.name}`,ea.stack=eo,ei.cause=ea}ea&&ea(ef,ei,eo);let eh=nT(ei,{contexts:{react:{componentStack:eo}}});eu&&eu(ei,eo,eh),ec&&o_({...ed,eventId:eh}),this.setState({error:ei,componentStack:eo,eventId:eh})})}componentDidMount(){let{onMount:ei}=this.props;ei&&ei()}componentWillUnmount(){let{error:ei,componentStack:eo,eventId:ea}=this.state,{onUnmount:eu}=this.props;eu&&eu(ei,eo,ea)}__init2(){this.resetErrorBoundary=()=>{let{onReset:ei}=this.props,{error:eo,componentStack:ea,eventId:eu}=this.state;ei&&ei(eo,ea,eu),this.setState(oP)}}render(){let{fallback:ei,children:eo}=this.props,ea=this.state;if(ea.error){let eo;return(eo="function"==typeof ei?ei({error:ea.error,componentStack:ea.componentStack,resetError:this.resetErrorBoundary,eventId:ea.eventId}):ei,oC.isValidElement(eo))?eo:(ei&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof eo?eo():eo}}var oN=ea(53928),oM=ea(83454);function oj(ei){let eo=ei?oM.env.NEXT_PUBLIC_VERCEL_ENV:oM.env.VERCEL_ENV;return eo?`vercel-${eo}`:void 0}let oR="7.42.0",oL="npm:@sentry/";function oF(ei,eo){ei._metadata=ei._metadata||{},ei._metadata.sdk=ei._metadata.sdk||{name:"sentry.javascript.nextjs",packages:eo.map(ei=>({name:`${oL}${ei}`,version:oR})),version:oR}}function oB(ei,eo,ea){let eu=eo.match(/([a-z_]+)\.(.*)/i);if(null===eu)ei[eo]=ea;else{let eo=ei[eu[1]];oB(eo,eu[2],ea)}}function oU(ei,eo,ea={}){return Array.isArray(eo)?oz(ei,eo,ea):oG(ei,eo,ea)}function oz(ei,eo,ea){let eu=eo.find(eo=>eo.name===ei.name);if(eu){for(let[ei,eo]of Object.entries(ea))oB(eu,ei,eo);return eo}return[...eo,ei]}function oG(ei,eo,ea){let eu=eu=>{let ec=eo(eu);if(ei.allowExclusionByUser){let eo=ec.find(eo=>eo.name===ei.name);if(!eo)return ec}return oz(ei,ec,ea)};return eu}var oV=ea(77638),oq=ea(99181),oH=ea(11163),oW=ea.n(oH);let oK=nN;function oZ(){let ei;let eo=oK.document.getElementById("__NEXT_DATA__");if(eo&&eo.innerHTML)try{ei=JSON.parse(eo.innerHTML)}catch(ei){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn("Could not extract __NEXT_DATA__")}if(!ei)return{};let ea={},{page:eu,query:ec,props:ed}=ei;return ea.route=eu,ea.params=ec,ed&&ed.pageProps&&(ed.pageProps._sentryBaggage&&(ea.baggage=ed.pageProps._sentryBaggage),ed.pageProps._sentryTraceData&&(ea.traceParentData=(0,oV.q)(ed.pageProps._sentryTraceData))),ea}let o$={"routing.instrumentation":"next-router"},oJ=eG().getClient();function oQ(ei,eo=!0,ea=!0){let{route:eu,traceParentData:ec,baggage:eh,params:eg}=oZ();if(ef=eu||oK.location.pathname,eo){let eo=eu?"route":"url",ea=(0,oq.EN)(eh);ed=ei({name:ef,op:"pageload",tags:o$,...eg&&oJ&&oJ.getOptions().sendDefaultPii&&{data:eg},...ec,metadata:{source:eo,dynamicSamplingContext:ec&&!ea?{}:ea}})}ea&&oW().events.on("routeChangeStart",eo=>{let ea,eu;let ec=o0(nG(eo));ec?(ea=ec,eu="route"):(ea=eo,eu="url");let eh={...o$,from:ef};ef=ea,ed&&ed.finish();let eg=ei({name:ea,op:"navigation",tags:eh,metadata:{source:eu}});if(eg){let ei=eg.startChild({op:"ui.nextjs.route-change",description:"Next.js Route Change"}),eo=()=>{ei.finish(),oW().events.off("routeChangeComplete",eo)};oW().events.on("routeChangeComplete",eo)}})}function o0(ei){let eo=(oK.__BUILD_MANIFEST||{}).sortedPages;if(eo)return eo.find(eo=>{let ea=o3(eo);return ei.match(ea)})}function o3(ei){let eo=ei.split("/"),ea="";eo[eo.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(eo.pop(),ea="(?:/(.+?))?");let eu=eo.map(ei=>ei.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${eu}${ea}(?:/)?$`)}let o5=ea.g;function o4(ei){let eo=o5.__sentryRewritesTunnelPath__;if(eo&&ei.dsn){let ea=t$(ei.dsn),eu=ea.host.match(/^o(\d+)\.ingest\.sentry\.io$/);if(eu){let ec=eu[1],ed=`${eo}?o=${ec}&p=${ea.projectId}`;ei.tunnel=ed,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.info(`Tunneling events to "${ed}"`)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e_.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}let o6=ea.g;function o8(ei){o4(ei),oF(ei,["nextjs","react"]),ei.environment=ei.environment||oj(!0)||"production",o9(ei),oA(ei),nC(ei=>{ei.setTag("runtime","browser");let eo=ei=>"transaction"===ei.type&&"/404"===ei.transaction?null:ei;eo.id="NextClient404Filter",ei.addEventProcessor(eo)})}function o9(ei){let eo=ei.integrations||[],ea=o6.__rewriteFramesAssetPrefixPath__||"",eu=new e5({iteratee:ei=>{try{let{origin:eo}=new URL(ei.filename);ei.filename=em([ei,"access",ei=>ei.filename,"optionalAccess",ei=>ei.replace,"call",ei=>ei(eo,"app://"),"access",ei=>ei.replace,"call",ei=>ei(ea,"")])}catch(ei){}return ei.filename&&ei.filename.startsWith("app:///_next")&&(ei.filename=decodeURI(ei.filename)),ei.filename&&ei.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(ei.in_app=!1),ei}});if(eo=oU(eu,eo),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&eY(ei)){let ei=new oN.gE({tracingOrigins:[...oN.k3.tracingOrigins,/^(api\/)/],routingInstrumentation:oQ});eo=oU(ei,eo,{"options.routingInstrumentation":oQ})}ei.integrations=eo}},17597:function(ei,eo,ea){"use strict";ea.d(eo,{r:function(){return e_}});var eu=ea(93631),ec=ea(18126),ed=ea(61422),ef=ea(80096),eh=ea(9732),eg=ea(12343);function em(){(0,eh.o)("error",eb),(0,eh.o)("unhandledrejection",eb)}function eb(){let ei=(0,ef.x1)();if(ei){let eo="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eg.kg.log(`[Tracing] Transaction: ${eo} -> Global error occured`),ei.setStatus(eo)}}function ew(){let eo=(0,eu.cu)();if(!eo.__SENTRY__)return;let ea={mongodb(){let eo=(0,ed.l$)(ei,"./node/integrations/mongo");return new eo.Mongo},mongoose(){let eo=(0,ed.l$)(ei,"./node/integrations/mongo");return new eo.Mongo({mongoose:!0})},mysql(){let eo=(0,ed.l$)(ei,"./node/integrations/mysql");return new eo.Mysql},pg(){let eo=(0,ed.l$)(ei,"./node/integrations/postgres");return new eo.Postgres}},ec=Object.keys(ea).filter(ei=>!!(0,ed.$y)(ei)).map(ei=>{try{return ea[ei]()}catch(ei){return}}).filter(ei=>ei);ec.length>0&&(eo.__SENTRY__.integrations=[...eo.__SENTRY__.integrations||[],...ec])}function e_(){(0,ec.T)(),(0,ed.KV)()&&ew(),em()}ei=ea.hmd(ei)},53928:function(ei,eo,ea){"use strict";let eu,ec;ea.d(eo,{gE:function(){return tI},jK:function(){return ed},k3:function(){return tw}});var ed={};ea.r(ed),ea.d(ed,{gE:function(){return tI}});var ef=ea(17597),eh=ea(19497),eg=ea(77638),em=ea(18126),eb=ea(12343),ew=ea(99181),e_=ea(58464),eS=ea(80096),eE=ea(71235);let eA=eE.n2;function eT(){eA&&eA.document?eA.document.addEventListener("visibilitychange",()=>{let ei=(0,eS.x1)();if(eA.document.hidden&&ei){let eo="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log(`[Tracing] Transaction: ${eo} -> since tab moved to the background, op: ${ei.op}`),ei.status||ei.setStatus(eo),ei.setTag("visibilitychange","document.hidden"),ei.finish()}}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var ek=ea(21170);let eC=(ei,eo,ea)=>{let eu,ec;return ed=>{eo.value>=0&&(ed||ea)&&((ec=eo.value-(eu||0))||void 0===eu)&&(eu=eo.value,eo.delta=ec,ei(eo))}},eO=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,eI=()=>{let ei=eA.performance.timing,eo=eA.performance.navigation.type,ea={entryType:"navigation",startTime:0,type:2==eo?"back_forward":1===eo?"reload":"navigate"};for(let eo in ei)"navigationStart"!==eo&&"toJSON"!==eo&&(ea[eo]=Math.max(ei[eo]-ei.navigationStart,0));return ea},eP=()=>eA.__WEB_VITALS_POLYFILL__?eA.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||eI()):eA.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],eD=()=>{let ei=eP();return ei&&ei.activationStart||0},eN=(ei,eo)=>{let ea=eP(),eu="navigate";return ea&&(eu=eA.document.prerendering||eD()>0?"prerender":ea.type.replace(/_/g,"-")),{name:ei,value:void 0===eo?-1:eo,rating:"good",delta:0,entries:[],id:eO(),navigationType:eu}},eM=(ei,eo,ea)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(ei)){let eu=new PerformanceObserver(ei=>{eo(ei.getEntries())});return eu.observe(Object.assign({type:ei,buffered:!0},ea||{})),eu}}catch(ei){}},ej=(ei,eo)=>{let ea=eu=>{("pagehide"===eu.type||"hidden"===eA.document.visibilityState)&&(ei(eu),eo&&(removeEventListener("visibilitychange",ea,!0),removeEventListener("pagehide",ea,!0)))};addEventListener("visibilitychange",ea,!0),addEventListener("pagehide",ea,!0)},eR=ei=>{let eo;let ea=eN("CLS",0),eu=0,ec=[],ed=ei=>{ei.forEach(ei=>{if(!ei.hadRecentInput){let ed=ec[0],ef=ec[ec.length-1];eu&&0!==ec.length&&ei.startTime-ef.startTime<1e3&&ei.startTime-ed.startTime<5e3?(eu+=ei.value,ec.push(ei)):(eu=ei.value,ec=[ei]),eu>ea.value&&(ea.value=eu,ea.entries=ec,eo&&eo())}})},ef=eM("layout-shift",ed);if(ef){eo=eC(ei,ea);let eu=()=>{ed(ef.takeRecords()),eo(!0)};return ej(eu),eu}},eL=-1,eF=()=>"hidden"!==eA.document.visibilityState||eA.document.prerendering?1/0:0,eB=()=>{ej(({timeStamp:ei})=>{eL=ei},!0)},eU=()=>(eL<0&&(eL=eF(),eB()),{get firstHiddenTime(){return eL}}),eG=ei=>{let eo;let ea=eU(),eu=eN("FID"),ec=ei=>{ei.startTime{ei.forEach(ec)},ef=eM("first-input",ed);eo=eC(ei,eu),ef&&ej(()=>{ed(ef.takeRecords()),ef.disconnect()},!0)},eV={},eH=ei=>{let eo;let ea=eU(),eu=eN("LCP"),ec=ei=>{let ec=ei[ei.length-1];if(ec){let ei=Math.max(ec.startTime-eD(),0);ei{eV[eu.id]||(ec(ed.takeRecords()),ed.disconnect(),eV[eu.id]=!0,eo(!0))};return["keydown","click"].forEach(ei=>{addEventListener(ei,ea,{once:!0,capture:!0})}),ej(ea,!0),ea}};function eW(ei){return"number"==typeof ei&&isFinite(ei)}function eK(ei,{startTimestamp:eo,...ea}){return eo&&ei.startTimestamp>eo&&(ei.startTimestamp=eo),ei.startChild({startTimestamp:eo,...ea})}function eY(ei){return ei/1e3}function eZ(){return eA&&eA.addEventListener&&eA.performance}let e$=0,eJ={};function eQ(){let ei=eZ();if(ei&&ek.Z1){ei.mark&&eA.performance.mark("sentry-tracing-init"),e4();let eo=e3(),ea=e5();return()=>{eo&&eo(),ea&&ea()}}return()=>void 0}function eX(){let ei=ei=>{for(let eo of ei){let ei=(0,eS.x1)();if(!ei)return;let ea=eY(ek.Z1+eo.startTime),eu=eY(eo.duration);ei.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:ea,endTimestamp:ea+eu})}};eM("longtask",ei)}function e0(){let ei=ei=>{for(let eo of ei){let ei=(0,eS.x1)();if(!ei)return;if("click"===eo.name){let ea=eY(ek.Z1+eo.startTime),eu=eY(eo.duration);ei.startChild({description:(0,e_.Rt)(eo.target),op:`ui.interaction.${eo.name}`,startTimestamp:ea,endTimestamp:ea+eu})}}};eM("event",ei,{durationThreshold:0})}function e3(){return eR(ei=>{let eo=ei.entries.pop();eo&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log("[Measurements] Adding CLS"),eJ.cls={value:ei.value,unit:""},ec=eo)})}function e5(){return eH(ei=>{let eo=ei.entries.pop();eo&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log("[Measurements] Adding LCP"),eJ.lcp={value:ei.value,unit:"millisecond"},eu=eo)})}function e4(){eG(ei=>{let eo=ei.entries.pop();if(!eo)return;let ea=eY(ek.Z1),eu=eY(eo.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log("[Measurements] Adding FID"),eJ.fid={value:ei.value,unit:"millisecond"},eJ["mark.fid"]={value:ea+eu,unit:"second"}})}function e6(ei){let eo,ea;let ed=eZ();if(!ed||!eA.performance.getEntries||!ek.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log("[Tracing] Adding & adjusting spans using Performance API");let ef=eY(ek.Z1),eh=ed.getEntries();if(eh.slice(e$).forEach(eu=>{let ec=eY(eu.startTime),ed=eY(eu.duration);if("navigation"!==ei.op||!(ef+ec{if(!eJ[eo]||ef>=ei.startTimestamp)return;let ea=eJ[eo].value,eu=ef+eY(ea),ec=Math.abs((eu-ei.startTimestamp)*1e3),ed=ec-ea;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log(`[Measurements] Normalized ${eo} from ${ea} to ${ec} (${ed})`),eJ[eo].value=ec});let eu=eJ["mark.fid"];eu&&eJ.fid&&(eK(ei,{description:"first input delay",endTimestamp:eu.value+eY(eJ.fid.value),op:"ui.action",startTimestamp:eu.value}),delete eJ["mark.fid"]),"fcp"in eJ||delete eJ.cls,Object.keys(eJ).forEach(eo=>{ei.setMeasurement(eo,eJ[eo].value,eJ[eo].unit)}),td(ei)}eu=void 0,ec=void 0,eJ={}}function e8(ei,eo,ea,eu,ec){let ed=ec+ea,ef=ed+eu;return eK(ei,{description:eo.name,endTimestamp:ef,op:eo.entryType,startTimestamp:ed}),ed}function e9(ei,eo,ea){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(eu=>{e7(ei,eo,eu,ea)}),e7(ei,eo,"secureConnection",ea,"TLS/SSL","connectEnd"),e7(ei,eo,"fetch",ea,"cache","domainLookupStart"),e7(ei,eo,"domainLookup",ea,"DNS"),ta(ei,eo,ea)}function e7(ei,eo,ea,eu,ec,ed){let ef=ed?eo[ed]:eo[`${ea}End`],eh=eo[`${ea}Start`];eh&&ef&&eK(ei,{op:"browser",description:ec||ea,startTimestamp:eu+eY(eh),endTimestamp:eu+eY(ef)})}function ta(ei,eo,ea){eK(ei,{op:"browser",description:"request",startTimestamp:ea+eY(eo.requestStart),endTimestamp:ea+eY(eo.responseEnd)}),eK(ei,{op:"browser",description:"response",startTimestamp:ea+eY(eo.responseStart),endTimestamp:ea+eY(eo.responseEnd)})}function tu(ei,eo,ea,eu,ec,ed){if("xmlhttprequest"===eo.initiatorType||"fetch"===eo.initiatorType)return;let ef={};"transferSize"in eo&&(ef["Transfer Size"]=eo.transferSize),"encodedBodySize"in eo&&(ef["Encoded Body Size"]=eo.encodedBodySize),"decodedBodySize"in eo&&(ef["Decoded Body Size"]=eo.decodedBodySize),"renderBlockingStatus"in eo&&(ef["resource.render_blocking_status"]=eo.renderBlockingStatus);let eh=ed+eu,eg=eh+ec;eK(ei,{description:ea,endTimestamp:eg,op:eo.initiatorType?`resource.${eo.initiatorType}`:"resource.other",startTimestamp:eh,data:ef})}function tc(ei){let eo=eA.navigator;if(!eo)return;let ea=eo.connection;ea&&(ea.effectiveType&&ei.setTag("effectiveConnectionType",ea.effectiveType),ea.type&&ei.setTag("connectionType",ea.type),eW(ea.rtt)&&(eJ["connection.rtt"]={value:ea.rtt,unit:"millisecond"})),eW(eo.deviceMemory)&&ei.setTag("deviceMemory",`${eo.deviceMemory} GB`),eW(eo.hardwareConcurrency)&&ei.setTag("hardwareConcurrency",String(eo.hardwareConcurrency))}function td(ei){eu&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log("[Measurements] Adding LCP Data"),eu.element&&ei.setTag("lcp.element",(0,e_.Rt)(eu.element)),eu.id&&ei.setTag("lcp.id",eu.id),eu.url&&ei.setTag("lcp.url",eu.url.trim().slice(0,200)),ei.setTag("lcp.size",eu.size)),ec&&ec.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log("[Measurements] Adding CLS Data"),ec.sources.forEach((eo,ea)=>ei.setTag(`cls.source.${ea+1}`,(0,e_.Rt)(eo.node))))}var tf=ea(17374),tp=ea(93631),tg=ea(9732),tm=ea(57321),tv=ea(67597);let tb=["localhost",/^\//],tw={traceFetch:!0,traceXHR:!0,tracingOrigins:tb,tracePropagationTargets:tb};function t_(ei){let{traceFetch:eo,traceXHR:ea,tracePropagationTargets:eu,tracingOrigins:ec,shouldCreateSpanForRequest:ed}={traceFetch:tw.traceFetch,traceXHR:tw.traceXHR,...ei},ef="function"==typeof ed?ed:ei=>!0,eh=ei=>tS(ei,eu||ec),eg={};eo&&(0,tg.o)("fetch",ei=>{tE(ei,ef,eh,eg)}),ea&&(0,tg.o)("xhr",ei=>{tT(ei,ef,eh,eg)})}function tS(ei,eo){return(0,tm.U0)(ei,eo||tb)}function tE(ei,eo,ea,eu){if(!(0,tf.z)()||!(ei.fetchData&&eo(ei.fetchData.url)))return;if(ei.endTimestamp){let eo=ei.fetchData.__span;if(!eo)return;let ea=eu[eo];ea&&(ei.response?ea.setHttpStatus(ei.response.status):ei.error&&ea.setStatus("internal_error"),ea.finish(),delete eu[eo]);return}let ec=(0,tp.Gd)().getScope(),ed=ec&&ec.getSpan(),ef=ed&&ed.transaction;if(ed&&ef){let eo=ed.startChild({data:{...ei.fetchData,type:"fetch"},description:`${ei.fetchData.method} ${ei.fetchData.url}`,op:"http.client"});ei.fetchData.__span=eo.spanId,eu[eo.spanId]=eo;let ec=ei.args[0];ei.args[1]=ei.args[1]||{};let eh=ei.args[1];ea(ei.fetchData.url)&&(eh.headers=tA(ec,ef.getDynamicSamplingContext(),eo,eh))}}function tA(ei,eo,ea,eu){let ec=(0,ew.IQ)(eo),ed=ea.toTraceparent(),ef="undefined"!=typeof Request&&(0,tv.V9)(ei,Request)?ei.headers:eu.headers;if(!ef)return{"sentry-trace":ed,baggage:ec};if("undefined"!=typeof Headers&&(0,tv.V9)(ef,Headers)){let ei=new Headers(ef);return ei.append("sentry-trace",ed),ec&&ei.append(ew.bU,ec),ei}if(Array.isArray(ef)){let ei=[...ef,["sentry-trace",ed]];return ec&&ei.push([ew.bU,ec]),ei}{let ei="baggage"in ef?ef.baggage:void 0,eo=[];return Array.isArray(ei)?eo.push(...ei):ei&&eo.push(ei),ec&&eo.push(ec),{...ef,"sentry-trace":ed,baggage:eo.length>0?eo.join(","):void 0}}}function tT(ei,eo,ea,eu){if(!(0,tf.z)()||ei.xhr&&ei.xhr.__sentry_own_request__||!(ei.xhr&&ei.xhr.__sentry_xhr__&&eo(ei.xhr.__sentry_xhr__.url)))return;let ec=ei.xhr.__sentry_xhr__;if(ei.endTimestamp){let eo=ei.xhr.__sentry_xhr_span_id__;if(!eo)return;let ea=eu[eo];ea&&(ea.setHttpStatus(ec.status_code),ea.finish(),delete eu[eo]);return}let ed=(0,tp.Gd)().getScope(),ef=ed&&ed.getSpan(),eh=ef&&ef.transaction;if(ef&&eh){let eo=ef.startChild({data:{...ec.data,type:"xhr",method:ec.method,url:ec.url},description:`${ec.method} ${ec.url}`,op:"http.client"});if(ei.xhr.__sentry_xhr_span_id__=eo.spanId,eu[ei.xhr.__sentry_xhr_span_id__]=eo,ei.xhr.setRequestHeader&&ea(ei.xhr.__sentry_xhr__.url))try{ei.xhr.setRequestHeader("sentry-trace",eo.toTraceparent());let ea=eh.getDynamicSamplingContext(),eu=(0,ew.IQ)(ea);eu&&ei.xhr.setRequestHeader(ew.bU,eu)}catch(ei){}}}function tk(ei,eo=!0,ea=!0){let eu;if(!eA||!eA.location){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.warn("Could not initialize routing instrumentation due to invalid location");return}let ec=eA.location.href;eo&&(eu=ei({name:eA.location.pathname,op:"pageload",metadata:{source:"url"}})),ea&&(0,tg.o)("history",({to:eo,from:ea})=>{if(void 0===ea&&ec&&-1!==ec.indexOf(eo)){ec=void 0;return}ea!==eo&&(ec=void 0,eu&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log(`[Tracing] Finishing current transaction with op: ${eu.op}`),eu.finish()),eu=ei({name:eA.location.pathname,op:"navigation",metadata:{source:"url"}}))})}let tC="BrowserTracing",tO={...eh.AT,markBackgroundTransactions:!0,routingInstrumentation:tk,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...tw};class tI{__init(){this.name=tC}constructor(ei){tI.prototype.__init.call(this),this.options={...tO,...ei},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),ei&&!ei.tracePropagationTargets&&ei.tracingOrigins&&(this.options.tracePropagationTargets=ei.tracingOrigins),this._collectWebVitals=eQ(),this.options.enableLongTask&&eX(),this.options._experiments.enableInteractions&&e0()}setupOnce(ei,eo){this._getCurrentHub=eo;let{routingInstrumentation:ea,startTransactionOnLocationChange:eu,startTransactionOnPageLoad:ec,markBackgroundTransactions:ed,traceFetch:ef,traceXHR:eh,tracePropagationTargets:eg,shouldCreateSpanForRequest:em,_experiments:eb}=this.options;ea(ei=>{let ea=this._createRouteTransaction(ei);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(ea,ei,eo),ea},ec,eu),ed&&eT(),eb.enableInteractions&&this._registerInteractionListener(),t_({traceFetch:ef,traceXHR:eh,tracePropagationTargets:eg,shouldCreateSpanForRequest:em})}_createRouteTransaction(ei){if(!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.warn(`[Tracing] Did not create ${ei.op} transaction because _getCurrentHub is invalid.`);return}let{beforeNavigate:eo,idleTimeout:ea,finalTimeout:eu,heartbeatInterval:ec}=this.options,ed="pageload"===ei.op,ef=ed?tP("sentry-trace"):null,eh=ed?tP("baggage"):null,e_=ef?(0,eg.q)(ef):void 0,eS=eh?(0,ew.EN)(eh):void 0,eE={...ei,...e_,metadata:{...ei.metadata,dynamicSamplingContext:e_&&!eS?{}:eS},trimEnd:!0},eT="function"==typeof eo?eo(eE):eE,ek=void 0===eT?{...eE,sampled:!1}:eT;ek.metadata=ek.name!==eE.name?{...ek.metadata,source:"custom"}:ek.metadata,this._latestRouteName=ek.name,this._latestRouteSource=ek.metadata&&ek.metadata.source,!1===ek.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log(`[Tracing] Will not send ${ek.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.log(`[Tracing] Starting ${ek.op} transaction on scope`);let eC=this._getCurrentHub(),{location:eO}=eA,eI=(0,em.l)(eC,ek,ea,eu,!0,{location:eO},ec);return eI.registerBeforeFinishCallback(ei=>{this._collectWebVitals(),e6(ei)}),eI}_registerInteractionListener(){let ei;let eo=()=>{let{idleTimeout:eo,finalTimeout:ea,heartbeatInterval:eu}=this.options,ec="ui.action.click";if(ei&&(ei.finish(),ei=void 0),!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.warn(`[Tracing] Did not create ${ec} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.kg.warn(`[Tracing] Did not create ${ec} transaction because _latestRouteName is missing.`);return}let ed=this._getCurrentHub(),{location:ef}=eA,eh={name:this._latestRouteName,op:ec,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};ei=(0,em.l)(ed,eh,eo,ea,!0,{location:ef},eu)};["click"].forEach(ei=>{addEventListener(ei,eo,{once:!1,capture:!0})})}}function tP(ei){let eo=(0,e_.qT)(`meta[name=${ei}]`);return eo?eo.getAttribute("content"):null}("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,ef.r)()},84152:function(ei,eo,ea){"use strict";ea.d(eo,{J:function(){return eu}});let eu="production"},93631:function(ei,eo,ea){"use strict";ea.d(eo,{Gd:function(){return eM},cu:function(){return eD}});var eu=ea(62844),ec=ea(21170),ed=ea(12343),ef=ea(71235),eh=ea(61422),eg=ea(84152),em=ea(67597),eb=ea(96893),ew=ea(20535);function e_(ei){let eo=(0,ec.ph)(),ea={sid:(0,eu.DM)(),init:!0,timestamp:eo,started:eo,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>eA(ea)};return ei&&eS(ea,ei),ea}function eS(ei,eo={}){if(!eo.user||(!ei.ipAddress&&eo.user.ip_address&&(ei.ipAddress=eo.user.ip_address),ei.did||eo.did||(ei.did=eo.user.id||eo.user.email||eo.user.username)),ei.timestamp=eo.timestamp||(0,ec.ph)(),eo.ignoreDuration&&(ei.ignoreDuration=eo.ignoreDuration),eo.sid&&(ei.sid=32===eo.sid.length?eo.sid:(0,eu.DM)()),void 0!==eo.init&&(ei.init=eo.init),!ei.did&&eo.did&&(ei.did=`${eo.did}`),"number"==typeof eo.started&&(ei.started=eo.started),ei.ignoreDuration)ei.duration=void 0;else if("number"==typeof eo.duration)ei.duration=eo.duration;else{let eo=ei.timestamp-ei.started;ei.duration=eo>=0?eo:0}eo.release&&(ei.release=eo.release),eo.environment&&(ei.environment=eo.environment),!ei.ipAddress&&eo.ipAddress&&(ei.ipAddress=eo.ipAddress),!ei.userAgent&&eo.userAgent&&(ei.userAgent=eo.userAgent),"number"==typeof eo.errors&&(ei.errors=eo.errors),eo.status&&(ei.status=eo.status)}function eE(ei,eo){let ea={};eo?ea={status:eo}:"ok"===ei.status&&(ea={status:"exited"}),eS(ei,ea)}function eA(ei){return(0,ew.Jr)({sid:`${ei.sid}`,init:ei.init,started:new Date(1e3*ei.started).toISOString(),timestamp:new Date(1e3*ei.timestamp).toISOString(),status:ei.status,errors:ei.errors,did:"number"==typeof ei.did||"string"==typeof ei.did?`${ei.did}`:void 0,duration:ei.duration,attrs:{release:ei.release,environment:ei.environment,ip_address:ei.ipAddress,user_agent:ei.userAgent}})}let eT=100;class ek{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(ei){let eo=new ek;return ei&&(eo._breadcrumbs=[...ei._breadcrumbs],eo._tags={...ei._tags},eo._extra={...ei._extra},eo._contexts={...ei._contexts},eo._user=ei._user,eo._level=ei._level,eo._span=ei._span,eo._session=ei._session,eo._transactionName=ei._transactionName,eo._fingerprint=ei._fingerprint,eo._eventProcessors=[...ei._eventProcessors],eo._requestSession=ei._requestSession,eo._attachments=[...ei._attachments],eo._sdkProcessingMetadata={...ei._sdkProcessingMetadata}),eo}addScopeListener(ei){this._scopeListeners.push(ei)}addEventProcessor(ei){return this._eventProcessors.push(ei),this}setUser(ei){return this._user=ei||{},this._session&&eS(this._session,{user:ei}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(ei){return this._requestSession=ei,this}setTags(ei){return this._tags={...this._tags,...ei},this._notifyScopeListeners(),this}setTag(ei,eo){return this._tags={...this._tags,[ei]:eo},this._notifyScopeListeners(),this}setExtras(ei){return this._extra={...this._extra,...ei},this._notifyScopeListeners(),this}setExtra(ei,eo){return this._extra={...this._extra,[ei]:eo},this._notifyScopeListeners(),this}setFingerprint(ei){return this._fingerprint=ei,this._notifyScopeListeners(),this}setLevel(ei){return this._level=ei,this._notifyScopeListeners(),this}setTransactionName(ei){return this._transactionName=ei,this._notifyScopeListeners(),this}setContext(ei,eo){return null===eo?delete this._contexts[ei]:this._contexts[ei]=eo,this._notifyScopeListeners(),this}setSpan(ei){return this._span=ei,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let ei=this.getSpan();return ei&&ei.transaction}setSession(ei){return ei?this._session=ei:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(ei){if(!ei)return this;if("function"==typeof ei){let eo=ei(this);return eo instanceof ek?eo:this}return ei instanceof ek?(this._tags={...this._tags,...ei._tags},this._extra={...this._extra,...ei._extra},this._contexts={...this._contexts,...ei._contexts},ei._user&&Object.keys(ei._user).length&&(this._user=ei._user),ei._level&&(this._level=ei._level),ei._fingerprint&&(this._fingerprint=ei._fingerprint),ei._requestSession&&(this._requestSession=ei._requestSession)):(0,em.PO)(ei)&&(this._tags={...this._tags,...ei.tags},this._extra={...this._extra,...ei.extra},this._contexts={...this._contexts,...ei.contexts},ei.user&&(this._user=ei.user),ei.level&&(this._level=ei.level),ei.fingerprint&&(this._fingerprint=ei.fingerprint),ei.requestSession&&(this._requestSession=ei.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(ei,eo){let ea="number"==typeof eo?eo:eT;if(ea<=0)return this;let eu={timestamp:(0,ec.yW)(),...ei};return this._breadcrumbs=[...this._breadcrumbs,eu].slice(-ea),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(ei){return this._attachments.push(ei),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(ei,eo={}){if(this._extra&&Object.keys(this._extra).length&&(ei.extra={...this._extra,...ei.extra}),this._tags&&Object.keys(this._tags).length&&(ei.tags={...this._tags,...ei.tags}),this._user&&Object.keys(this._user).length&&(ei.user={...this._user,...ei.user}),this._contexts&&Object.keys(this._contexts).length&&(ei.contexts={...this._contexts,...ei.contexts}),this._level&&(ei.level=this._level),this._transactionName&&(ei.transaction=this._transactionName),this._span){ei.contexts={trace:this._span.getTraceContext(),...ei.contexts};let eo=this._span.transaction&&this._span.transaction.name;eo&&(ei.tags={transaction:eo,...ei.tags})}return this._applyFingerprint(ei),ei.breadcrumbs=[...ei.breadcrumbs||[],...this._breadcrumbs],ei.breadcrumbs=ei.breadcrumbs.length>0?ei.breadcrumbs:void 0,ei.sdkProcessingMetadata={...ei.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...eC(),...this._eventProcessors],ei,eo)}setSDKProcessingMetadata(ei){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...ei},this}_notifyEventProcessors(ei,eo,ea,eu=0){return new eb.cW((ec,ef)=>{let eh=ei[eu];if(null===eo||"function"!=typeof eh)ec(eo);else{let eg=eh({...eo},ea);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eh.id&&null===eg&&ed.kg.log(`Event processor "${eh.id}" dropped event`),(0,em.J8)(eg)?eg.then(eo=>this._notifyEventProcessors(ei,eo,ea,eu+1).then(ec)).then(null,ef):this._notifyEventProcessors(ei,eg,ea,eu+1).then(ec).then(null,ef)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(ei=>{ei(this)}),this._notifyingListeners=!1)}_applyFingerprint(ei){ei.fingerprint=ei.fingerprint?(0,eu.lE)(ei.fingerprint):[],this._fingerprint&&(ei.fingerprint=ei.fingerprint.concat(this._fingerprint)),ei.fingerprint&&!ei.fingerprint.length&&delete ei.fingerprint}}function eC(){return(0,ef.YO)("globalEventProcessors",()=>[])}let eO=4,eI=100;class eP{__init(){this._stack=[{}]}constructor(ei,eo=new ek,ea=eO){this._version=ea,eP.prototype.__init.call(this),this.getStackTop().scope=eo,ei&&this.bindClient(ei)}isOlderThan(ei){return this._version{eu.captureException(ei,{originalException:ei,syntheticException:ec,...eo,event_id:ea},ed)}),ea}captureMessage(ei,eo,ea){let ec=this._lastEventId=ea&&ea.event_id?ea.event_id:(0,eu.DM)(),ed=Error(ei);return this._withClient((eu,ef)=>{eu.captureMessage(ei,eo,{originalException:ei,syntheticException:ed,...ea,event_id:ec},ef)}),ec}captureEvent(ei,eo){let ea=eo&&eo.event_id?eo.event_id:(0,eu.DM)();return ei.type||(this._lastEventId=ea),this._withClient((eu,ec)=>{eu.captureEvent(ei,{...eo,event_id:ea},ec)}),ea}lastEventId(){return this._lastEventId}addBreadcrumb(ei,eo){let{scope:ea,client:eu}=this.getStackTop();if(!ea||!eu)return;let{beforeBreadcrumb:ef=null,maxBreadcrumbs:eh=eI}=eu.getOptions&&eu.getOptions()||{};if(eh<=0)return;let eg=(0,ec.yW)(),em={timestamp:eg,...ei},eb=ef?(0,ed.Cf)(()=>ef(em,eo)):em;null!==eb&&ea.addBreadcrumb(eb,eh)}setUser(ei){let eo=this.getScope();eo&&eo.setUser(ei)}setTags(ei){let eo=this.getScope();eo&&eo.setTags(ei)}setExtras(ei){let eo=this.getScope();eo&&eo.setExtras(ei)}setTag(ei,eo){let ea=this.getScope();ea&&ea.setTag(ei,eo)}setExtra(ei,eo){let ea=this.getScope();ea&&ea.setExtra(ei,eo)}setContext(ei,eo){let ea=this.getScope();ea&&ea.setContext(ei,eo)}configureScope(ei){let{scope:eo,client:ea}=this.getStackTop();eo&&ea&&ei(eo)}run(ei){let eo=eN(this);try{ei(this)}finally{eN(eo)}}getIntegration(ei){let eo=this.getClient();if(!eo)return null;try{return eo.getIntegration(ei)}catch(eo){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ed.kg.warn(`Cannot retrieve integration ${ei.id} from the current Hub`),null}}startTransaction(ei,eo){return this._callExtensionMethod("startTransaction",ei,eo)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(ei=!1){if(ei)return this.endSession();this._sendSessionUpdate()}endSession(){let ei=this.getStackTop(),eo=ei&&ei.scope,ea=eo&&eo.getSession();ea&&eE(ea),this._sendSessionUpdate(),eo&&eo.setSession()}startSession(ei){let{scope:eo,client:ea}=this.getStackTop(),{release:eu,environment:ec=eg.J}=ea&&ea.getOptions()||{},{userAgent:ed}=ef.n2.navigator||{},eh=e_({release:eu,environment:ec,...eo&&{user:eo.getUser()},...ed&&{userAgent:ed},...ei});if(eo){let ei=eo.getSession&&eo.getSession();ei&&"ok"===ei.status&&eS(ei,{status:"exited"}),this.endSession(),eo.setSession(eh)}return eh}shouldSendDefaultPii(){let ei=this.getClient(),eo=ei&&ei.getOptions();return!!(eo&&eo.sendDefaultPii)}_sendSessionUpdate(){let{scope:ei,client:eo}=this.getStackTop();if(!ei)return;let ea=ei.getSession();ea&&eo&&eo.captureSession&&eo.captureSession(ea)}_withClient(ei){let{scope:eo,client:ea}=this.getStackTop();ea&&ei(ea,eo)}_callExtensionMethod(ei,...eo){let ea=eD(),eu=ea.__SENTRY__;if(eu&&eu.extensions&&"function"==typeof eu.extensions[ei])return eu.extensions[ei].apply(this,eo);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ed.kg.warn(`Extension method ${ei} couldn't be found, doing nothing.`)}}function eD(){return ef.n2.__SENTRY__=ef.n2.__SENTRY__||{extensions:{},hub:void 0},ef.n2}function eN(ei){let eo=eD(),ea=eL(eo);return eF(eo,ei),ea}function eM(){let ei=eD();return((!eR(ei)||eL(ei).isOlderThan(eO))&&eF(ei,new eP),(0,eh.KV)())?ej(ei):eL(ei)}function ej(ei){try{let eo=eD().__SENTRY__,ea=eo&&eo.extensions&&eo.extensions.domain&&eo.extensions.domain.active;if(!ea)return eL(ei);if(!eR(ea)||eL(ea).isOlderThan(eO)){let eo=eL(ei).getStackTop();eF(ea,new eP(eo.client,ek.clone(eo.scope)))}return eL(ea)}catch(eo){return eL(ei)}}function eR(ei){return!!(ei&&ei.__SENTRY__&&ei.__SENTRY__.hub)}function eL(ei){return(0,ef.YO)("hub",()=>new eP,ei)}function eF(ei,eo){if(!ei)return!1;let ea=ei.__SENTRY__=ei.__SENTRY__||{};return ea.hub=eo,!0}},18126:function(ei,eo,ea){"use strict";ea.d(eo,{T:function(){return eE},l:function(){return eS}});var eu=ea(12343),ec=ea(67597),ed=ea(93631),ef=ea(17374),eh=ea(19497),eg=ea(73532);function em(){let ei=this.getScope();if(ei){let eo=ei.getSpan();if(eo)return{"sentry-trace":eo.toTraceparent()}}return{}}function eb(ei,eo,ea){let ec;return(0,ef.z)(eo)?void 0!==ei.sampled?(ei.setMetadata({sampleRate:Number(ei.sampled)}),ei):("function"==typeof eo.tracesSampler?(ec=eo.tracesSampler(ea),ei.setMetadata({sampleRate:Number(ec)})):void 0!==ea.parentSampled?ec=ea.parentSampled:void 0!==eo.tracesSampleRate?(ec=eo.tracesSampleRate,ei.setMetadata({sampleRate:Number(ec)})):(ec=1,ei.setMetadata({sampleRate:ec})),ew(ec))?ec?(ei.sampled=Math.random()1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eu.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${ei}.`),!1)}function e_(ei,eo){let ea=this.getClient(),ec=ea&&ea.getOptions()||{},ed=ec.instrumenter||"sentry",ef=ei.instrumenter||"sentry";ed!==ef&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eu.kg.error(`A transaction was started with instrumenter=\`${ef}\`, but the SDK is configured with the \`${ed}\` instrumenter. +The transaction will not be sampled. Please use the ${ed} instrumentation to start transactions.`),ei.sampled=!1);let eh=new eg.Y(ei,this);return(eh=eb(eh,ec,{parentSampled:ei.parentSampled,transactionContext:ei,...eo})).sampled&&eh.initSpanRecorder(ec._experiments&&ec._experiments.maxSpans),ea&&ea.emit&&ea.emit("startTransaction",eh),eh}function eS(ei,eo,ea,eu,ec,ed,ef){let eg=ei.getClient(),em=eg&&eg.getOptions()||{},ew=new eh.io(eo,ei,ea,eu,ef,ec);return(ew=eb(ew,em,{parentSampled:eo.parentSampled,transactionContext:eo,...ed})).sampled&&ew.initSpanRecorder(em._experiments&&em._experiments.maxSpans),eg&&eg.emit&&eg.emit("startTransaction",ew),ew}function eE(){let ei=(0,ed.cu)();ei.__SENTRY__&&(ei.__SENTRY__.extensions=ei.__SENTRY__.extensions||{},ei.__SENTRY__.extensions.startTransaction||(ei.__SENTRY__.extensions.startTransaction=e_),ei.__SENTRY__.extensions.traceHeaders||(ei.__SENTRY__.extensions.traceHeaders=em))}},19497:function(ei,eo,ea){"use strict";ea.d(eo,{AT:function(){return eh},io:function(){return em}});var eu=ea(21170),ec=ea(12343),ed=ea(83330),ef=ea(73532);let eh={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class eg extends ed.gB{constructor(ei,eo,ea,eu){super(eu),this._pushActivity=ei,this._popActivity=eo,this.transactionSpanId=ea}add(ei){ei.spanId!==this.transactionSpanId&&(ei.finish=eo=>{ei.endTimestamp="number"==typeof eo?eo:(0,eu._I)(),this._popActivity(ei.spanId)},void 0===ei.endTimestamp&&this._pushActivity(ei.spanId)),super.add(ei)}}class em extends ef.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}constructor(ei,eo,ea=eh.idleTimeout,eu=eh.finalTimeout,ed=eh.heartbeatInterval,ef=!1){super(ei,eo),this._idleHub=eo,this._idleTimeout=ea,this._finalTimeout=eu,this._heartbeatInterval=ed,this._onScope=ef,em.prototype.__init.call(this),em.prototype.__init2.call(this),em.prototype.__init3.call(this),em.prototype.__init4.call(this),em.prototype.__init5.call(this),ef&&(eb(eo),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),eo.configureScope(ei=>ei.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())},this._finalTimeout)}finish(ei=(0,eu._I)()){if(this._finished=!0,this.activities={},this.spanRecorder){for(let eo of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*ei).toISOString(),this.op),this._beforeFinishCallbacks))eo(this,ei);this.spanRecorder.spans=this.spanRecorder.spans.filter(eo=>{if(eo.spanId===this.spanId)return!0;!eo.endTimestamp&&(eo.endTimestamp=ei,eo.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(eo,void 0,2)));let ea=eo.startTimestamp{this._finished||this._pushActivity(ei)},ea=ei=>{this._finished||this._popActivity(ei)};this.spanRecorder=new eg(eo,ea,this.spanId,ei),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(ei,{restartOnChildSpanChange:eo}={restartOnChildSpanChange:!0}){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,this._idleTimeoutCanceledPermanently=!1===eo,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&this.finish(ei))}_restartIdleTimeout(ei){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(ei)},this._idleTimeout)}_pushActivity(ei){this.cancelIdleTimeout(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log(`[Tracing] pushActivity: ${ei}`),this.activities[ei]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(ei){if(this.activities[ei]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log(`[Tracing] popActivity ${ei}`),delete this.activities[ei],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let ei=(0,eu._I)();this._idleTimeoutCanceledPermanently?this.finish(ei):this._restartIdleTimeout(ei+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let ei=Object.keys(this.activities).join("");ei===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=ei,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function eb(ei){let eo=ei.getScope();if(eo){let ei=eo.getTransaction();ei&&eo.setSpan(void 0)}}},83330:function(ei,eo,ea){"use strict";ea.d(eo,{Dr:function(){return eg},gB:function(){return eh}});var eu=ea(62844),ec=ea(21170),ed=ea(12343),ef=ea(20535);class eh{__init(){this.spans=[]}constructor(ei=1e3){eh.prototype.__init.call(this),this._maxlen=ei}add(ei){this.spans.length>this._maxlen?ei.spanRecorder=void 0:this.spans.push(ei)}}class eg{__init2(){this.traceId=(0,eu.DM)()}__init3(){this.spanId=(0,eu.DM)().substring(16)}__init4(){this.startTimestamp=(0,ec._I)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(ei){if(eg.prototype.__init2.call(this),eg.prototype.__init3.call(this),eg.prototype.__init4.call(this),eg.prototype.__init5.call(this),eg.prototype.__init6.call(this),eg.prototype.__init7.call(this),!ei)return this;ei.traceId&&(this.traceId=ei.traceId),ei.spanId&&(this.spanId=ei.spanId),ei.parentSpanId&&(this.parentSpanId=ei.parentSpanId),"sampled"in ei&&(this.sampled=ei.sampled),ei.op&&(this.op=ei.op),ei.description&&(this.description=ei.description),ei.data&&(this.data=ei.data),ei.tags&&(this.tags=ei.tags),ei.status&&(this.status=ei.status),ei.startTimestamp&&(this.startTimestamp=ei.startTimestamp),ei.endTimestamp&&(this.endTimestamp=ei.endTimestamp),ei.instrumenter&&(this.instrumenter=ei.instrumenter)}startChild(ei){let eo=new eg({...ei,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(eo.spanRecorder=this.spanRecorder,eo.spanRecorder&&eo.spanRecorder.add(eo),eo.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eo.transaction){let ea=ei&&ei.op||"< unknown op >",eu=eo.transaction.name||"< unknown name >",ec=eo.transaction.spanId,ef=`[Tracing] Starting '${ea}' span on transaction '${eu}' (${ec}).`;eo.transaction.metadata.spanMetadata[eo.spanId]={logMessage:ef},ed.kg.log(ef)}return eo}setTag(ei,eo){return this.tags={...this.tags,[ei]:eo},this}setData(ei,eo){return this.data={...this.data,[ei]:eo},this}setStatus(ei){return this.status=ei,this}setHttpStatus(ei){this.setTag("http.status_code",String(ei));let eo=em(ei);return"unknown_error"!==eo&&this.setStatus(eo),this}isSuccess(){return"ok"===this.status}finish(ei){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:ei}=this.transaction.metadata.spanMetadata[this.spanId];ei&&ed.kg.log(ei.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof ei?ei:(0,ec._I)()}toTraceparent(){let ei="";return void 0!==this.sampled&&(ei=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${ei}`}toContext(){return(0,ef.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(ei){return this.data=ei.data||{},this.description=ei.description,this.endTimestamp=ei.endTimestamp,this.op=ei.op,this.parentSpanId=ei.parentSpanId,this.sampled=ei.sampled,this.spanId=ei.spanId||this.spanId,this.startTimestamp=ei.startTimestamp||this.startTimestamp,this.status=ei.status,this.tags=ei.tags||{},this.traceId=ei.traceId||this.traceId,this}getTraceContext(){return(0,ef.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,ef.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function em(ei){if(ei<400&&ei>=100)return"ok";if(ei>=400&&ei<500)switch(ei){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(ei>=500&&ei<600)switch(ei){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}},73532:function(ei,eo,ea){"use strict";ea.d(eo,{Y:function(){return eg}});var eu=ea(12343),ec=ea(20535),ed=ea(84152),ef=ea(93631),eh=ea(83330);class eg extends eh.Dr{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(ei,eo){super(ei),eg.prototype.__init.call(this),eg.prototype.__init2.call(this),eg.prototype.__init3.call(this),this._hub=eo||(0,ef.Gd)(),this._name=ei.name||"",this.metadata={source:"custom",...ei.metadata,spanMetadata:{}},this._trimEnd=ei.trimEnd,this.transaction=this;let ea=this.metadata.dynamicSamplingContext;ea&&(this._frozenDynamicSamplingContext={...ea})}get name(){return this._name}set name(ei){this.setName(ei)}setName(ei,eo="custom"){this._name=ei,this.metadata.source=eo}initSpanRecorder(ei=1e3){this.spanRecorder||(this.spanRecorder=new eh.gB(ei)),this.spanRecorder.add(this)}setContext(ei,eo){null===eo?delete this._contexts[ei]:this._contexts[ei]=eo}setMeasurement(ei,eo,ea=""){this._measurements[ei]={value:eo,unit:ea}}setMetadata(ei){this.metadata={...this.metadata,...ei}}finish(ei){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eu.kg.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(ei);let eo=this._hub.getClient();if(eo&&eo.emit&&eo.emit("finishTransaction",this),!0!==this.sampled){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eu.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),eo&&eo.recordDroppedEvent("sample_rate","transaction");return}let ea=this.spanRecorder?this.spanRecorder.spans.filter(ei=>ei!==this&&ei.endTimestamp):[];this._trimEnd&&ea.length>0&&(this.endTimestamp=ea.reduce((ei,eo)=>ei.endTimestamp&&eo.endTimestamp?ei.endTimestamp>eo.endTimestamp?ei:eo:ei).endTimestamp);let ec=this.metadata,ed={contexts:{...this._contexts,trace:this.getTraceContext()},spans:ea,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...ec,dynamicSamplingContext:this.getDynamicSamplingContext()},...ec.source&&{transaction_info:{source:ec.source}}},ef=Object.keys(this._measurements).length>0;return ef&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eu.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),ed.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eu.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(ed)}toContext(){let ei=super.toContext();return(0,ec.Jr)({...ei,name:this.name,trimEnd:this._trimEnd})}updateWithContext(ei){return super.updateWithContext(ei),this.name=ei.name||"",this._trimEnd=ei.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let ei=this._hub||(0,ef.Gd)(),eo=ei&&ei.getClient();if(!eo)return{};let{environment:ea,release:eu}=eo.getOptions()||{},{publicKey:eh}=eo.getDsn()||{},eg=this.metadata.sampleRate,em=void 0!==eg?eg.toString():void 0,eb=ei.getScope(),{segment:ew}=eb&&eb.getUser()||{},e_=this.metadata.source,eS=e_&&"url"!==e_?this.name:void 0,eE=(0,ec.Jr)({environment:ea||ed.J,release:eu,transaction:eS,user_segment:ew,public_key:eh,trace_id:this.traceId,sample_rate:em});return eE}}},80096:function(ei,eo,ea){"use strict";ea.d(eo,{x1:function(){return ec}});var eu=ea(93631);function ec(ei){let eo=ei||(0,eu.Gd)(),ea=eo.getScope();return ea&&ea.getTransaction()}},17374:function(ei,eo,ea){"use strict";ea.d(eo,{z:function(){return ec}});var eu=ea(93631);function ec(ei){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let eo=(0,eu.Gd)().getClient(),ea=ei||eo&&eo.getOptions();return!!ea&&(ea.enableTracing||"tracesSampleRate"in ea||"tracesSampler"in ea)}},99181:function(ei,eo,ea){"use strict";ea.d(eo,{EN:function(){return em},IQ:function(){return eb},bU:function(){return ed}});var eu=ea(67597),ec=ea(12343);let ed="baggage",ef="sentry-",eh=/^sentry-/,eg=8192;function em(ei){if(!(0,eu.HD)(ei)&&!Array.isArray(ei))return;let eo={};if(Array.isArray(ei))eo=ei.reduce((ei,eo)=>{let ea=ew(eo);return{...ei,...ea}},{});else{if(!ei)return;eo=ew(ei)}let ea=Object.entries(eo).reduce((ei,[eo,ea])=>{if(eo.match(eh)){let eu=eo.slice(ef.length);ei[eu]=ea}return ei},{});return Object.keys(ea).length>0?ea:void 0}function eb(ei){let eo=Object.entries(ei).reduce((ei,[eo,ea])=>(ea&&(ei[`${ef}${eo}`]=ea),ei),{});return e_(eo)}function ew(ei){return ei.split(",").map(ei=>ei.split("=").map(ei=>decodeURIComponent(ei.trim()))).reduce((ei,[eo,ea])=>(ei[eo]=ea,ei),{})}function e_(ei){if(0!==Object.keys(ei).length)return Object.entries(ei).reduce((ei,[eo,ea],eu)=>{let ed=`${encodeURIComponent(eo)}=${encodeURIComponent(ea)}`,ef=0===eu?ed:`${ei},${ed}`;return ef.length>eg?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ec.kg.warn(`Not adding key: ${eo} with val: ${ea} to baggage header due to exceeding baggage size limits.`),ei):ef},"")}},58464:function(ei,eo,ea){"use strict";ea.d(eo,{Rt:function(){return eh},l4:function(){return em},qT:function(){return eb}});var eu=ea(67597),ec=ea(71235);let ed=(0,ec.Rf)(),ef=80;function eh(ei,eo={}){try{let ea,eu=ei,ec=5,ed=[],eh=0,em=0,eb=" > ",ew=eb.length,e_=Array.isArray(eo)?eo:eo.keyAttrs,eS=!Array.isArray(eo)&&eo.maxStringLength||ef;for(;eu&&eh++1)||!(em+ed.length*ew+ea.length>=eS)));)ed.push(ea),em+=ea.length,eu=eu.parentNode;return ed.reverse().join(eb)}catch(ei){return""}}function eg(ei,eo){let ea,ec,ed,ef,eh;let eg=ei,em=[];if(!eg||!eg.tagName)return"";em.push(eg.tagName.toLowerCase());let eb=eo&&eo.length?eo.filter(ei=>eg.getAttribute(ei)).map(ei=>[ei,eg.getAttribute(ei)]):null;if(eb&&eb.length)eb.forEach(ei=>{em.push(`[${ei[0]}="${ei[1]}"]`)});else if(eg.id&&em.push(`#${eg.id}`),(ea=eg.className)&&(0,eu.HD)(ea))for(eh=0,ec=ea.split(/\s+/);eh(ek("fetch",{...ea,endTimestamp:Date.now(),response:ei}),ei),ei=>{throw ek("fetch",{...ea,endTimestamp:Date.now(),error:ei}),ei})}})}function eI(ei=[]){return"Request"in e_&&(0,ef.V9)(ei[0],Request)&&ei[0].method?String(ei[0].method).toUpperCase():ei[1]&&ei[1].method?String(ei[1].method).toUpperCase():"GET"}function eP(ei=[]){return"string"==typeof ei[0]?ei[0]:"Request"in e_&&(0,ef.V9)(ei[0],Request)?ei[0].url:String(ei[0])}function eD(){if(!("XMLHttpRequest"in e_))return;let ei=XMLHttpRequest.prototype;(0,eg.hl)(ei,"open",function(ei){return function(...eo){let ea=this,eu=eo[1],ec=ea.__sentry_xhr__={method:(0,ef.HD)(eo[0])?eo[0].toUpperCase():eo[0],url:eo[1]};(0,ef.HD)(eu)&&"POST"===ec.method&&eu.match(/sentry_key/)&&(ea.__sentry_own_request__=!0);let ed=function(){if(4===ea.readyState){try{ec.status_code=ea.status}catch(ei){}ek("xhr",{args:eo,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:ea})}};return"onreadystatechange"in ea&&"function"==typeof ea.onreadystatechange?(0,eg.hl)(ea,"onreadystatechange",function(ei){return function(...eo){return ed(),ei.apply(ea,eo)}}):ea.addEventListener("readystatechange",ed),ei.apply(ea,eo)}}),(0,eg.hl)(ei,"send",function(ei){return function(...eo){return this.__sentry_xhr__&&void 0!==eo[0]&&(this.__sentry_xhr__.body=eo[0]),ek("xhr",{args:eo,startTimestamp:Date.now(),xhr:this}),ei.apply(this,eo)}})}function eN(){if(!(0,eb.Bf)())return;let ei=e_.onpopstate;function eo(ei){return function(...eo){let ea=eo.length>2?eo[2]:void 0;if(ea){let ei=eu,eo=String(ea);eu=eo,ek("history",{from:ei,to:eo})}return ei.apply(this,eo)}}e_.onpopstate=function(...eo){let ea=e_.location.href,ec=eu;if(eu=ea,ek("history",{from:ec,to:ea}),ei)try{return ei.apply(this,eo)}catch(ei){}},(0,eg.hl)(e_.history,"pushState",eo),(0,eg.hl)(e_.history,"replaceState",eo)}let eM=1e3;function ej(ei,eo){if(!ei||ei.type!==eo.type)return!0;try{if(ei.target!==eo.target)return!0}catch(ei){}return!1}function eR(ei){if("keypress"!==ei.type)return!1;try{let eo=ei.target;if(!eo||!eo.tagName)return!0;if("INPUT"===eo.tagName||"TEXTAREA"===eo.tagName||eo.isContentEditable)return!1}catch(ei){}return!0}function eL(ei,eo=!1){return ea=>{if(!ea||ed===ea||eR(ea))return;let eu="keypress"===ea.type?"input":ea.type;void 0===ec?(ei({event:ea,name:eu,global:eo}),ed=ea):ej(ed,ea)&&(ei({event:ea,name:eu,global:eo}),ed=ea),clearTimeout(ec),ec=e_.setTimeout(()=>{ec=void 0},eM)}}function eF(){if(!("document"in e_))return;let ei=ek.bind(null,"dom"),eo=eL(ei,!0);e_.document.addEventListener("click",eo,!1),e_.document.addEventListener("keypress",eo,!1),["EventTarget","Node"].forEach(eo=>{let ea=e_[eo]&&e_[eo].prototype;ea&&ea.hasOwnProperty&&ea.hasOwnProperty("addEventListener")&&((0,eg.hl)(ea,"addEventListener",function(eo){return function(ea,eu,ec){if("click"===ea||"keypress"==ea)try{let eu=this,ed=eu.__sentry_instrumentation_handlers__=eu.__sentry_instrumentation_handlers__||{},ef=ed[ea]=ed[ea]||{refCount:0};if(!ef.handler){let eu=eL(ei);ef.handler=eu,eo.call(this,ea,eu,ec)}ef.refCount++}catch(ei){}return eo.call(this,ea,eu,ec)}}),(0,eg.hl)(ea,"removeEventListener",function(ei){return function(eo,ea,eu){if("click"===eo||"keypress"==eo)try{let ea=this,ec=ea.__sentry_instrumentation_handlers__||{},ed=ec[eo];ed&&(ed.refCount--,ed.refCount<=0&&(ei.call(this,eo,ed.handler,eu),ed.handler=void 0,delete ec[eo]),0===Object.keys(ec).length&&delete ea.__sentry_instrumentation_handlers__)}catch(ei){}return ei.call(this,eo,ea,eu)}}))})}let eB=null;function eU(){eB=e_.onerror,e_.onerror=function(ei,eo,ea,eu,ec){return ek("error",{column:eu,error:ec,line:ea,msg:ei,url:eo}),!!eB&&eB.apply(this,arguments)}}let eG=null;function eV(){eG=e_.onunhandledrejection,e_.onunhandledrejection=function(ei){return ek("unhandledrejection",ei),!eG||eG.apply(this,arguments)}}},67597:function(ei,eo,ea){"use strict";ea.d(eo,{Cy:function(){return eT},HD:function(){return em},J8:function(){return eA},Kj:function(){return eE},PO:function(){return ew},TX:function(){return eh},V9:function(){return eC},VW:function(){return ef},VZ:function(){return ec},cO:function(){return e_},fm:function(){return eg},i2:function(){return ek},kK:function(){return eS},pt:function(){return eb}});let eu=Object.prototype.toString;function ec(ei){switch(eu.call(ei)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return eC(ei,Error)}}function ed(ei,eo){return eu.call(ei)===`[object ${eo}]`}function ef(ei){return ed(ei,"ErrorEvent")}function eh(ei){return ed(ei,"DOMError")}function eg(ei){return ed(ei,"DOMException")}function em(ei){return ed(ei,"String")}function eb(ei){return null===ei||"object"!=typeof ei&&"function"!=typeof ei}function ew(ei){return ed(ei,"Object")}function e_(ei){return"undefined"!=typeof Event&&eC(ei,Event)}function eS(ei){return"undefined"!=typeof Element&&eC(ei,Element)}function eE(ei){return ed(ei,"RegExp")}function eA(ei){return!!(ei&&ei.then&&"function"==typeof ei.then)}function eT(ei){return ew(ei)&&"nativeEvent"in ei&&"preventDefault"in ei&&"stopPropagation"in ei}function ek(ei){return"number"==typeof ei&&ei!=ei}function eC(ei,eo){try{return ei instanceof eo}catch(ei){return!1}}},12343:function(ei,eo,ea){"use strict";let eu;ea.d(eo,{Cf:function(){return eh},RU:function(){return ef},kg:function(){return eu}});var ec=ea(71235);let ed="Sentry Logger ",ef=["debug","info","warn","error","log","assert","trace"];function eh(ei){if(!("console"in ec.n2))return ei();let eo=ec.n2.console,ea={};ef.forEach(ei=>{let eu=eo[ei]&&eo[ei].__sentry_original__;ei in eo&&eu&&(ea[ei]=eo[ei],eo[ei]=eu)});try{return ei()}finally{Object.keys(ea).forEach(ei=>{eo[ei]=ea[ei]})}}function eg(){let ei=!1,eo={enable:()=>{ei=!0},disable:()=>{ei=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?ef.forEach(ea=>{eo[ea]=(...eo)=>{ei&&eh(()=>{ec.n2.console[ea](`${ed}[${ea}]:`,...eo)})}}):ef.forEach(ei=>{eo[ei]=()=>void 0}),eo}eu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,ec.YO)("logger",eg):eg()},62844:function(ei,eo,ea){"use strict";ea.d(eo,{DM:function(){return ed},Db:function(){return eg},EG:function(){return em},YO:function(){return eb},jH:function(){return eh},lE:function(){return ew}});var eu=ea(20535),ec=ea(71235);function ed(){let ei=ec.n2,eo=ei.crypto||ei.msCrypto;if(eo&&eo.randomUUID)return eo.randomUUID().replace(/-/g,"");let ea=eo&&eo.getRandomValues?()=>eo.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return"10000000100040008000100000000000".replace(/[018]/g,ei=>(ei^(15&ea())>>ei/4).toString(16))}function ef(ei){return ei.exception&&ei.exception.values?ei.exception.values[0]:void 0}function eh(ei){let{message:eo,event_id:ea}=ei;if(eo)return eo;let eu=ef(ei);return eu?eu.type&&eu.value?`${eu.type}: ${eu.value}`:eu.type||eu.value||ea||"":ea||""}function eg(ei,eo,ea){let eu=ei.exception=ei.exception||{},ec=eu.values=eu.values||[],ed=ec[0]=ec[0]||{};ed.value||(ed.value=eo||""),ed.type||(ed.type=ea||"Error")}function em(ei,eo){let ea=ef(ei);if(!ea)return;let eu={type:"generic",handled:!0},ec=ea.mechanism;if(ea.mechanism={...eu,...ec,...eo},eo&&"data"in eo){let ei={...ec&&ec.data,...eo.data};ea.mechanism.data=ei}}function eb(ei){if(ei&&ei.__sentry_captured__)return!0;try{(0,eu.xp)(ei,"__sentry_captured__",!0)}catch(ei){}return!1}function ew(ei){return Array.isArray(ei)?ei:[ei]}},61422:function(ei,eo,ea){"use strict";ea.d(eo,{$y:function(){return eh},KV:function(){return ed},l$:function(){return ef}});var eu=ea(68518);ei=ea.hmd(ei);var ec=ea(83454);function ed(){return!(0,eu.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==ec?ec:0)}function ef(ei,eo){return ei.require(eo)}function eh(eo){let ea;try{ea=ef(ei,eo)}catch(ei){}try{let{cwd:eu}=ef(ei,"process");ea=ef(ei,`${eu()}/node_modules/${eo}`)}catch(ei){}return ea}},20535:function(ei,eo,ea){"use strict";ea.d(eo,{$Q:function(){return eg},HK:function(){return em},Jr:function(){return eA},Sh:function(){return ew},_j:function(){return eb},hl:function(){return ef},xp:function(){return eh},zf:function(){return eE}});var eu=ea(58464),ec=ea(67597),ed=ea(57321);function ef(ei,eo,ea){if(!(eo in ei))return;let eu=ei[eo],ec=ea(eu);if("function"==typeof ec)try{eg(ec,eu)}catch(ei){}ei[eo]=ec}function eh(ei,eo,ea){Object.defineProperty(ei,eo,{value:ea,writable:!0,configurable:!0})}function eg(ei,eo){let ea=eo.prototype||{};ei.prototype=eo.prototype=ea,eh(ei,"__sentry_original__",eo)}function em(ei){return ei.__sentry_original__}function eb(ei){return Object.keys(ei).map(eo=>`${encodeURIComponent(eo)}=${encodeURIComponent(ei[eo])}`).join("&")}function ew(ei){if((0,ec.VZ)(ei))return{message:ei.message,name:ei.name,stack:ei.stack,...eS(ei)};if(!(0,ec.cO)(ei))return ei;{let eo={type:ei.type,target:e_(ei.target),currentTarget:e_(ei.currentTarget),...eS(ei)};return"undefined"!=typeof CustomEvent&&(0,ec.V9)(ei,CustomEvent)&&(eo.detail=ei.detail),eo}}function e_(ei){try{return(0,ec.kK)(ei)?(0,eu.Rt)(ei):Object.prototype.toString.call(ei)}catch(ei){return""}}function eS(ei){if("object"!=typeof ei||null===ei)return{};{let eo={};for(let ea in ei)Object.prototype.hasOwnProperty.call(ei,ea)&&(eo[ea]=ei[ea]);return eo}}function eE(ei,eo=40){let ea=Object.keys(ew(ei));if(ea.sort(),!ea.length)return"[object has no keys]";if(ea[0].length>=eo)return(0,ed.$G)(ea[0],eo);for(let ei=ea.length;ei>0;ei--){let eu=ea.slice(0,ei).join(", ");if(!(eu.length>eo)){if(ei===ea.length)return eu;return(0,ed.$G)(eu,eo)}}return""}function eA(ei){let eo=new Map;return eT(ei,eo)}function eT(ei,eo){if((0,ec.PO)(ei)){let ea=eo.get(ei);if(void 0!==ea)return ea;let eu={};for(let ea of(eo.set(ei,eu),Object.keys(ei)))void 0!==ei[ea]&&(eu[ea]=eT(ei[ea],eo));return eu}if(Array.isArray(ei)){let ea=eo.get(ei);if(void 0!==ea)return ea;let eu=[];return eo.set(ei,eu),ei.forEach(ei=>{eu.push(eT(ei,eo))}),eu}return ei}},30360:function(ei,eo,ea){"use strict";ea.d(eo,{$P:function(){return eg},Sq:function(){return ed},pE:function(){return ec}});let eu=50;function ec(...ei){let eo=ei.sort((ei,eo)=>ei[0]-eo[0]).map(ei=>ei[1]);return(ei,ea=0)=>{let eu=[];for(let ec of ei.split("\n").slice(ea)){if(ec.length>1024)continue;let ei=ec.replace(/\(error: (.*)\)/,"$1");for(let ea of eo){let eo=ea(ei);if(eo){eu.push(eo);break}}}return ef(eu)}}function ed(ei){return Array.isArray(ei)?ec(...ei):ei}function ef(ei){if(!ei.length)return[];let eo=ei,ea=eo[0].function||"",ec=eo[eo.length-1].function||"";return(-1!==ea.indexOf("captureMessage")||-1!==ea.indexOf("captureException"))&&(eo=eo.slice(1)),-1!==ec.indexOf("sentryWrapped")&&(eo=eo.slice(0,-1)),eo.slice(0,eu).map(ei=>({...ei,filename:ei.filename||eo[0].filename,function:ei.function||"?"})).reverse()}let eh="";function eg(ei){try{if(!ei||"function"!=typeof ei)return eh;return ei.name||eh}catch(ei){return eh}}},57321:function(ei,eo,ea){"use strict";ea.d(eo,{$G:function(){return ec},U0:function(){return eh},nK:function(){return ed}});var eu=ea(67597);function ec(ei,eo=0){return"string"!=typeof ei||0===eo?ei:ei.length<=eo?ei:`${ei.slice(0,eo)}...`}function ed(ei,eo){if(!Array.isArray(ei))return"";let ea=[];for(let eo=0;eoef(ei,eo,ea))}},8823:function(ei,eo,ea){"use strict";ea.d(eo,{Ak:function(){return ef},Bf:function(){return em},Du:function(){return eh},t$:function(){return eg}});var eu=ea(12343),ec=ea(71235);let ed=(0,ec.Rf)();function ef(){if(!("fetch"in ed))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(ei){return!1}}function eh(ei){return ei&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(ei.toString())}function eg(){if(!ef())return!1;if(eh(ed.fetch))return!0;let ei=!1,eo=ed.document;if(eo&&"function"==typeof eo.createElement)try{let ea=eo.createElement("iframe");ea.hidden=!0,eo.head.appendChild(ea),ea.contentWindow&&ea.contentWindow.fetch&&(ei=eh(ea.contentWindow.fetch)),eo.head.removeChild(ea)}catch(ei){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eu.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",ei)}return ei}function em(){let ei=ed.chrome,eo=ei&&ei.app&&ei.app.runtime,ea="history"in ed&&!!ed.history.pushState&&!!ed.history.replaceState;return!eo&&ea}},96893:function(ei,eo,ea){"use strict";ea.d(eo,{$2:function(){return ef},WD:function(){return ed},cW:function(){return eh}});var eu,ec=ea(67597);function ed(ei){return new eh(eo=>{eo(ei)})}function ef(ei){return new eh((eo,ea)=>{ea(ei)})}!function(ei){let eo=0;ei[ei.PENDING=eo]="PENDING";let ea=1;ei[ei.RESOLVED=ea]="RESOLVED";let eu=2;ei[ei.REJECTED=eu]="REJECTED"}(eu||(eu={}));class eh{__init(){this._state=eu.PENDING}__init2(){this._handlers=[]}constructor(ei){eh.prototype.__init.call(this),eh.prototype.__init2.call(this),eh.prototype.__init3.call(this),eh.prototype.__init4.call(this),eh.prototype.__init5.call(this),eh.prototype.__init6.call(this);try{ei(this._resolve,this._reject)}catch(ei){this._reject(ei)}}then(ei,eo){return new eh((ea,eu)=>{this._handlers.push([!1,eo=>{if(ei)try{ea(ei(eo))}catch(ei){eu(ei)}else ea(eo)},ei=>{if(eo)try{ea(eo(ei))}catch(ei){eu(ei)}else eu(ei)}]),this._executeHandlers()})}catch(ei){return this.then(ei=>ei,ei)}finally(ei){return new eh((eo,ea)=>{let eu,ec;return this.then(eo=>{ec=!1,eu=eo,ei&&ei()},eo=>{ec=!0,eu=eo,ei&&ei()}).then(()=>{if(ec){ea(eu);return}eo(eu)})})}__init3(){this._resolve=ei=>{this._setResult(eu.RESOLVED,ei)}}__init4(){this._reject=ei=>{this._setResult(eu.REJECTED,ei)}}__init5(){this._setResult=(ei,eo)=>{if(this._state===eu.PENDING){if((0,ec.J8)(eo)){eo.then(this._resolve,this._reject);return}this._state=ei,this._value=eo,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===eu.PENDING)return;let ei=this._handlers.slice();this._handlers=[],ei.forEach(ei=>{ei[0]||(this._state===eu.RESOLVED&&ei[1](this._value),this._state===eu.REJECTED&&ei[2](this._value),ei[0]=!0)})}}}},21170:function(ei,eo,ea){"use strict";let eu;ea.d(eo,{Z1:function(){return eA},_I:function(){return eE},ph:function(){return eS},yW:function(){return e_}});var ec=ea(61422),ed=ea(71235);ei=ea.hmd(ei);let ef=(0,ed.Rf)(),eh={nowSeconds:()=>Date.now()/1e3};function eg(){let{performance:ei}=ef;if(!ei||!ei.now)return;let eo=Date.now()-ei.now();return{now:()=>ei.now(),timeOrigin:eo}}function em(){try{let eo=(0,ec.l$)(ei,"perf_hooks");return eo.performance}catch(ei){return}}let eb=(0,ec.KV)()?em():eg(),ew=void 0===eb?eh:{nowSeconds:()=>(eb.timeOrigin+eb.now())/1e3},e_=eh.nowSeconds.bind(eh),eS=ew.nowSeconds.bind(ew),eE=eS,eA=(()=>{let{performance:ei}=ef;if(!ei||!ei.now){eu="none";return}let eo=36e5,ea=ei.now(),ec=Date.now(),ed=ei.timeOrigin?Math.abs(ei.timeOrigin+ea-ec):eo,eh=ed>16}function ed(ei,eo){return void 0===eo&&(eo=0),(ei[eo+0]<<8|ei[eo+1])>>>0}function ef(ei,eo){return void 0===eo&&(eo=0),(ei[eo+1]<<8|ei[eo])<<16>>16}function eh(ei,eo){return void 0===eo&&(eo=0),(ei[eo+1]<<8|ei[eo])>>>0}function eg(ei,eo,ea){return void 0===eo&&(eo=new Uint8Array(2)),void 0===ea&&(ea=0),eo[ea+0]=ei>>>8,eo[ea+1]=ei>>>0,eo}function em(ei,eo,ea){return void 0===eo&&(eo=new Uint8Array(2)),void 0===ea&&(ea=0),eo[ea+0]=ei>>>0,eo[ea+1]=ei>>>8,eo}function eb(ei,eo){return void 0===eo&&(eo=0),ei[eo]<<24|ei[eo+1]<<16|ei[eo+2]<<8|ei[eo+3]}function ew(ei,eo){return void 0===eo&&(eo=0),(ei[eo]<<24|ei[eo+1]<<16|ei[eo+2]<<8|ei[eo+3])>>>0}function e_(ei,eo){return void 0===eo&&(eo=0),ei[eo+3]<<24|ei[eo+2]<<16|ei[eo+1]<<8|ei[eo]}function eS(ei,eo){return void 0===eo&&(eo=0),(ei[eo+3]<<24|ei[eo+2]<<16|ei[eo+1]<<8|ei[eo])>>>0}function eE(ei,eo,ea){return void 0===eo&&(eo=new Uint8Array(4)),void 0===ea&&(ea=0),eo[ea+0]=ei>>>24,eo[ea+1]=ei>>>16,eo[ea+2]=ei>>>8,eo[ea+3]=ei>>>0,eo}function eA(ei,eo,ea){return void 0===eo&&(eo=new Uint8Array(4)),void 0===ea&&(ea=0),eo[ea+0]=ei>>>0,eo[ea+1]=ei>>>8,eo[ea+2]=ei>>>16,eo[ea+3]=ei>>>24,eo}function eT(ei,eo){void 0===eo&&(eo=0);var ea=eb(ei,eo),eu=eb(ei,eo+4);return 4294967296*ea+eu-(eu>>31)*4294967296}function ek(ei,eo){return void 0===eo&&(eo=0),4294967296*ew(ei,eo)+ew(ei,eo+4)}function eC(ei,eo){void 0===eo&&(eo=0);var ea=e_(ei,eo);return 4294967296*e_(ei,eo+4)+ea-(ea>>31)*4294967296}function eO(ei,eo){void 0===eo&&(eo=0);var ea=eS(ei,eo);return 4294967296*eS(ei,eo+4)+ea}function eI(ei,eo,ea){return void 0===eo&&(eo=new Uint8Array(8)),void 0===ea&&(ea=0),eE(ei/4294967296>>>0,eo,ea),eE(ei>>>0,eo,ea+4),eo}function eP(ei,eo,ea){return void 0===eo&&(eo=new Uint8Array(8)),void 0===ea&&(ea=0),eA(ei>>>0,eo,ea),eA(ei/4294967296>>>0,eo,ea+4),eo}function eD(ei,eo,ea){if(void 0===ea&&(ea=0),ei%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(ei/8>eo.length-ea)throw Error("readUintBE: array is too short for the given bitLength");for(var eu=0,ec=1,ed=ei/8+ea-1;ed>=ea;ed--)eu+=eo[ed]*ec,ec*=256;return eu}function eN(ei,eo,ea){if(void 0===ea&&(ea=0),ei%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(ei/8>eo.length-ea)throw Error("readUintLE: array is too short for the given bitLength");for(var eu=0,ec=1,ed=ea;ed=ec;ef--)ea[ef]=eo/ed&255,ed*=256;return ea}function ej(ei,eo,ea,ec){if(void 0===ea&&(ea=new Uint8Array(ei/8)),void 0===ec&&(ec=0),ei%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!eu.isSafeInteger(eo))throw Error("writeUintLE value must be an integer");for(var ed=1,ef=ec;ef>>16|eH<<16)|0,ej=ej>>>20|ej<<12,eW^=eD=eD+eR|0,eR^=eU=eU+(eW=eW>>>16|eW<<16)|0,eR=eR>>>20|eR<<12,eK^=eN=eN+eL|0,eL^=eG=eG+(eK=eK>>>16|eK<<16)|0,eL=eL>>>20|eL<<12,eY^=eM=eM+eF|0,eF^=eV=eV+(eY=eY>>>16|eY<<16)|0,eF=eF>>>20|eF<<12,eK^=eN=eN+eL|0,eL^=eG=eG+(eK=eK>>>24|eK<<8)|0,eL=eL>>>25|eL<<7,eY^=eM=eM+eF|0,eF^=eV=eV+(eY=eY>>>24|eY<<8)|0,eF=eF>>>25|eF<<7,eW^=eD=eD+eR|0,eR^=eU=eU+(eW=eW>>>24|eW<<8)|0,eR=eR>>>25|eR<<7,eH^=eP=eP+ej|0,ej^=eB=eB+(eH=eH>>>24|eH<<8)|0,ej=ej>>>25|ej<<7,eY^=eP=eP+eR|0,eR^=eG=eG+(eY=eY>>>16|eY<<16)|0,eR=eR>>>20|eR<<12,eH^=eD=eD+eL|0,eL^=eV=eV+(eH=eH>>>16|eH<<16)|0,eL=eL>>>20|eL<<12,eW^=eN=eN+eF|0,eF^=eB=eB+(eW=eW>>>16|eW<<16)|0,eF=eF>>>20|eF<<12,eK^=eM=eM+ej|0,ej^=eU=eU+(eK=eK>>>16|eK<<16)|0,ej=ej>>>20|ej<<12,eW^=eN=eN+eF|0,eF^=eB=eB+(eW=eW>>>24|eW<<8)|0,eF=eF>>>25|eF<<7,eK^=eM=eM+ej|0,ej^=eU=eU+(eK=eK>>>24|eK<<8)|0,ej=ej>>>25|ej<<7,eH^=eD=eD+eL|0,eL^=eV=eV+(eH=eH>>>24|eH<<8)|0,eL=eL>>>25|eL<<7,eY^=eP=eP+eR|0,eR^=eG=eG+(eY=eY>>>24|eY<<8)|0,eR=eR>>>25|eR<<7;eu.writeUint32LE(eP+ec|0,ei,0),eu.writeUint32LE(eD+ef|0,ei,4),eu.writeUint32LE(eN+eh|0,ei,8),eu.writeUint32LE(eM+eg|0,ei,12),eu.writeUint32LE(ej+em|0,ei,16),eu.writeUint32LE(eR+eb|0,ei,20),eu.writeUint32LE(eL+ew|0,ei,24),eu.writeUint32LE(eF+e_|0,ei,28),eu.writeUint32LE(eB+eS|0,ei,32),eu.writeUint32LE(eU+eE|0,ei,36),eu.writeUint32LE(eG+eA|0,ei,40),eu.writeUint32LE(eV+eT|0,ei,44),eu.writeUint32LE(eH+ek|0,ei,48),eu.writeUint32LE(eW+eC|0,ei,52),eu.writeUint32LE(eK+eO|0,ei,56),eu.writeUint32LE(eY+eI|0,ei,60)}function eh(ei,eo,ea,eu,ed){if(void 0===ed&&(ed=0),32!==ei.length)throw Error("ChaCha: key size must be 32 bytes");if(eu.length>>=8,eo++;if(eu>0)throw Error("ChaCha: counter overflow")}eo.streamXOR=eh,eo.stream=eg},15501:function(ei,eo,ea){"use strict";eu={value:!0};var eu,ec=ea(25439),ed=ea(63027),ef=ea(17309),eh=ea(98099),eg=ea(4153);eo.Cv=32,eo.WH=12,eo.pg=16;var em=new Uint8Array(16),eb=function(){function ei(ei){if(this.nonceLength=eo.WH,this.tagLength=eo.pg,ei.length!==eo.Cv)throw Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(ei)}return ei.prototype.seal=function(ei,eo,ea,eu){if(ei.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var ed,eh=new Uint8Array(16);eh.set(ei,eh.length-ei.length);var eg=new Uint8Array(32);ec.stream(this._key,eh,eg,4);var em=eo.length+this.tagLength;if(eu){if(eu.length!==em)throw Error("ChaCha20Poly1305: incorrect destination length");ed=eu}else ed=new Uint8Array(em);return ec.streamXOR(this._key,eh,eo,ed,4),this._authenticate(ed.subarray(ed.length-this.tagLength,ed.length),eg,ed.subarray(0,ed.length-this.tagLength),ea),ef.wipe(eh),ed},ei.prototype.open=function(ei,eo,ea,eu){if(ei.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(eo.length0&&ec.update(em.subarray(eu.length%16))),ec.update(ea),ea.length%16>0&&ec.update(em.subarray(ea.length%16));var eg=new Uint8Array(8);eu&&eh.writeUint64LE(eu.length,eg),ec.update(eg),eh.writeUint64LE(ea.length,eg),ec.update(eg);for(var eb=ec.digest(),ew=0;ew>>31&1}function ec(ei,eo){if(ei.length!==eo.length)return 0;for(var ea=0,eu=0;eu>>8}function ed(ei,eo){return 0!==ei.length&&0!==eo.length&&0!==ec(ei,eo)}Object.defineProperty(eo,"__esModule",{value:!0}),eo.select=ea,eo.lessOrEqual=eu,eo.compare=ec,eo.equal=ed},31050:function(ei,eo,ea){"use strict";var eu;eu={value:!0},eu=eu=eu=eo.Xx=eu=eu=eo._w=eo.aP=eo.KS=eu=eo.jQ=void 0;let ec=ea(31416),ed=ea(93350),ef=ea(17309);function eh(ei){let eo=new Float64Array(16);if(ei)for(let ea=0;ea>16&1),ea[ei-1]&=65535;ea[15]=eu[15]-32767-(ea[14]>>16&1);let ei=ea[15]>>16&1;ea[14]&=65535,eT(eu,ea,1-ei)}for(let eo=0;eo<16;eo++)ei[2*eo]=255&eu[eo],ei[2*eo+1]=eu[eo]>>8}function eC(ei,eo){let ea=0;for(let eu=0;eu<32;eu++)ea|=ei[eu]^eo[eu];return(1&ea-1>>>8)-1}eh([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function eO(ei){let eo=new Uint8Array(32);return ek(eo,ei),1&eo[0]}function eI(ei,eo,ea){for(let eu=0;eu<16;eu++)ei[eu]=eo[eu]+ea[eu]}function eP(ei,eo,ea){for(let eu=0;eu<16;eu++)ei[eu]=eo[eu]-ea[eu]}function eD(ei,eo,ea){let eu,ec,ed=0,ef=0,eh=0,eg=0,em=0,eb=0,ew=0,e_=0,eS=0,eE=0,eA=0,eT=0,ek=0,eC=0,eO=0,eI=0,eP=0,eD=0,eN=0,eM=0,ej=0,eR=0,eL=0,eF=0,eB=0,eU=0,eG=0,eV=0,eH=0,eW=0,eK=0,eY=ea[0],eZ=ea[1],e$=ea[2],eJ=ea[3],eQ=ea[4],eX=ea[5],e0=ea[6],e3=ea[7],e5=ea[8],e4=ea[9],e6=ea[10],e8=ea[11],e9=ea[12],e7=ea[13],ta=ea[14],tu=ea[15];ed+=(eu=eo[0])*eY,ef+=eu*eZ,eh+=eu*e$,eg+=eu*eJ,em+=eu*eQ,eb+=eu*eX,ew+=eu*e0,e_+=eu*e3,eS+=eu*e5,eE+=eu*e4,eA+=eu*e6,eT+=eu*e8,ek+=eu*e9,eC+=eu*e7,eO+=eu*ta,eI+=eu*tu,ef+=(eu=eo[1])*eY,eh+=eu*eZ,eg+=eu*e$,em+=eu*eJ,eb+=eu*eQ,ew+=eu*eX,e_+=eu*e0,eS+=eu*e3,eE+=eu*e5,eA+=eu*e4,eT+=eu*e6,ek+=eu*e8,eC+=eu*e9,eO+=eu*e7,eI+=eu*ta,eP+=eu*tu,eh+=(eu=eo[2])*eY,eg+=eu*eZ,em+=eu*e$,eb+=eu*eJ,ew+=eu*eQ,e_+=eu*eX,eS+=eu*e0,eE+=eu*e3,eA+=eu*e5,eT+=eu*e4,ek+=eu*e6,eC+=eu*e8,eO+=eu*e9,eI+=eu*e7,eP+=eu*ta,eD+=eu*tu,eg+=(eu=eo[3])*eY,em+=eu*eZ,eb+=eu*e$,ew+=eu*eJ,e_+=eu*eQ,eS+=eu*eX,eE+=eu*e0,eA+=eu*e3,eT+=eu*e5,ek+=eu*e4,eC+=eu*e6,eO+=eu*e8,eI+=eu*e9,eP+=eu*e7,eD+=eu*ta,eN+=eu*tu,em+=(eu=eo[4])*eY,eb+=eu*eZ,ew+=eu*e$,e_+=eu*eJ,eS+=eu*eQ,eE+=eu*eX,eA+=eu*e0,eT+=eu*e3,ek+=eu*e5,eC+=eu*e4,eO+=eu*e6,eI+=eu*e8,eP+=eu*e9,eD+=eu*e7,eN+=eu*ta,eM+=eu*tu,eb+=(eu=eo[5])*eY,ew+=eu*eZ,e_+=eu*e$,eS+=eu*eJ,eE+=eu*eQ,eA+=eu*eX,eT+=eu*e0,ek+=eu*e3,eC+=eu*e5,eO+=eu*e4,eI+=eu*e6,eP+=eu*e8,eD+=eu*e9,eN+=eu*e7,eM+=eu*ta,ej+=eu*tu,ew+=(eu=eo[6])*eY,e_+=eu*eZ,eS+=eu*e$,eE+=eu*eJ,eA+=eu*eQ,eT+=eu*eX,ek+=eu*e0,eC+=eu*e3,eO+=eu*e5,eI+=eu*e4,eP+=eu*e6,eD+=eu*e8,eN+=eu*e9,eM+=eu*e7,ej+=eu*ta,eR+=eu*tu,e_+=(eu=eo[7])*eY,eS+=eu*eZ,eE+=eu*e$,eA+=eu*eJ,eT+=eu*eQ,ek+=eu*eX,eC+=eu*e0,eO+=eu*e3,eI+=eu*e5,eP+=eu*e4,eD+=eu*e6,eN+=eu*e8,eM+=eu*e9,ej+=eu*e7,eR+=eu*ta,eL+=eu*tu,eS+=(eu=eo[8])*eY,eE+=eu*eZ,eA+=eu*e$,eT+=eu*eJ,ek+=eu*eQ,eC+=eu*eX,eO+=eu*e0,eI+=eu*e3,eP+=eu*e5,eD+=eu*e4,eN+=eu*e6,eM+=eu*e8,ej+=eu*e9,eR+=eu*e7,eL+=eu*ta,eF+=eu*tu,eE+=(eu=eo[9])*eY,eA+=eu*eZ,eT+=eu*e$,ek+=eu*eJ,eC+=eu*eQ,eO+=eu*eX,eI+=eu*e0,eP+=eu*e3,eD+=eu*e5,eN+=eu*e4,eM+=eu*e6,ej+=eu*e8,eR+=eu*e9,eL+=eu*e7,eF+=eu*ta,eB+=eu*tu,eA+=(eu=eo[10])*eY,eT+=eu*eZ,ek+=eu*e$,eC+=eu*eJ,eO+=eu*eQ,eI+=eu*eX,eP+=eu*e0,eD+=eu*e3,eN+=eu*e5,eM+=eu*e4,ej+=eu*e6,eR+=eu*e8,eL+=eu*e9,eF+=eu*e7,eB+=eu*ta,eU+=eu*tu,eT+=(eu=eo[11])*eY,ek+=eu*eZ,eC+=eu*e$,eO+=eu*eJ,eI+=eu*eQ,eP+=eu*eX,eD+=eu*e0,eN+=eu*e3,eM+=eu*e5,ej+=eu*e4,eR+=eu*e6,eL+=eu*e8,eF+=eu*e9,eB+=eu*e7,eU+=eu*ta,eG+=eu*tu,ek+=(eu=eo[12])*eY,eC+=eu*eZ,eO+=eu*e$,eI+=eu*eJ,eP+=eu*eQ,eD+=eu*eX,eN+=eu*e0,eM+=eu*e3,ej+=eu*e5,eR+=eu*e4,eL+=eu*e6,eF+=eu*e8,eB+=eu*e9,eU+=eu*e7,eG+=eu*ta,eV+=eu*tu,eC+=(eu=eo[13])*eY,eO+=eu*eZ,eI+=eu*e$,eP+=eu*eJ,eD+=eu*eQ,eN+=eu*eX,eM+=eu*e0,ej+=eu*e3,eR+=eu*e5,eL+=eu*e4,eF+=eu*e6,eB+=eu*e8,eU+=eu*e9,eG+=eu*e7,eV+=eu*ta,eH+=eu*tu,eO+=(eu=eo[14])*eY,eI+=eu*eZ,eP+=eu*e$,eD+=eu*eJ,eN+=eu*eQ,eM+=eu*eX,ej+=eu*e0,eR+=eu*e3,eL+=eu*e5,eF+=eu*e4,eB+=eu*e6,eU+=eu*e8,eG+=eu*e9,eV+=eu*e7,eH+=eu*ta,eW+=eu*tu,eI+=(eu=eo[15])*eY,eP+=eu*eZ,eD+=eu*e$,eN+=eu*eJ,eM+=eu*eQ,ej+=eu*eX,eR+=eu*e0,eL+=eu*e3,eF+=eu*e5,eB+=eu*e4,eU+=eu*e6,eG+=eu*e8,eV+=eu*e9,eH+=eu*e7,eW+=eu*ta,eK+=eu*tu,ed+=38*eP,ef+=38*eD,eh+=38*eN,eg+=38*eM,em+=38*ej,eb+=38*eR,ew+=38*eL,e_+=38*eF,eS+=38*eB,eE+=38*eU,eA+=38*eG,eT+=38*eV,ek+=38*eH,eC+=38*eW,eO+=38*eK,ec=Math.floor((eu=ed+(ec=1)+65535)/65536),ed=eu-65536*ec,ec=Math.floor((eu=ef+ec+65535)/65536),ef=eu-65536*ec,ec=Math.floor((eu=eh+ec+65535)/65536),eh=eu-65536*ec,ec=Math.floor((eu=eg+ec+65535)/65536),eg=eu-65536*ec,ec=Math.floor((eu=em+ec+65535)/65536),em=eu-65536*ec,ec=Math.floor((eu=eb+ec+65535)/65536),eb=eu-65536*ec,ec=Math.floor((eu=ew+ec+65535)/65536),ew=eu-65536*ec,ec=Math.floor((eu=e_+ec+65535)/65536),e_=eu-65536*ec,ec=Math.floor((eu=eS+ec+65535)/65536),eS=eu-65536*ec,ec=Math.floor((eu=eE+ec+65535)/65536),eE=eu-65536*ec,ec=Math.floor((eu=eA+ec+65535)/65536),eA=eu-65536*ec,ec=Math.floor((eu=eT+ec+65535)/65536),eT=eu-65536*ec,ec=Math.floor((eu=ek+ec+65535)/65536),ek=eu-65536*ec,ec=Math.floor((eu=eC+ec+65535)/65536),eC=eu-65536*ec,ec=Math.floor((eu=eO+ec+65535)/65536),eO=eu-65536*ec,ec=Math.floor((eu=eI+ec+65535)/65536),eI=eu-65536*ec,ed+=ec-1+37*(ec-1),ec=Math.floor((eu=ed+(ec=1)+65535)/65536),ed=eu-65536*ec,ec=Math.floor((eu=ef+ec+65535)/65536),ef=eu-65536*ec,ec=Math.floor((eu=eh+ec+65535)/65536),eh=eu-65536*ec,ec=Math.floor((eu=eg+ec+65535)/65536),eg=eu-65536*ec,ec=Math.floor((eu=em+ec+65535)/65536),em=eu-65536*ec,ec=Math.floor((eu=eb+ec+65535)/65536),eb=eu-65536*ec,ec=Math.floor((eu=ew+ec+65535)/65536),ew=eu-65536*ec,ec=Math.floor((eu=e_+ec+65535)/65536),e_=eu-65536*ec,ec=Math.floor((eu=eS+ec+65535)/65536),eS=eu-65536*ec,ec=Math.floor((eu=eE+ec+65535)/65536),eE=eu-65536*ec,ec=Math.floor((eu=eA+ec+65535)/65536),eA=eu-65536*ec,ec=Math.floor((eu=eT+ec+65535)/65536),eT=eu-65536*ec,ec=Math.floor((eu=ek+ec+65535)/65536),ek=eu-65536*ec,ec=Math.floor((eu=eC+ec+65535)/65536),eC=eu-65536*ec,ec=Math.floor((eu=eO+ec+65535)/65536),eO=eu-65536*ec,ec=Math.floor((eu=eI+ec+65535)/65536),eI=eu-65536*ec,ed+=ec-1+37*(ec-1),ei[0]=ed,ei[1]=ef,ei[2]=eh,ei[3]=eg,ei[4]=em,ei[5]=eb,ei[6]=ew,ei[7]=e_,ei[8]=eS,ei[9]=eE,ei[10]=eA,ei[11]=eT,ei[12]=ek,ei[13]=eC,ei[14]=eO,ei[15]=eI}function eN(ei,eo){eD(ei,eo,eo)}function eM(ei,eo){let ea;let eu=eh();for(ea=0;ea<16;ea++)eu[ea]=eo[ea];for(ea=253;ea>=0;ea--)eN(eu,eu),2!==ea&&4!==ea&&eD(eu,eu,eo);for(ea=0;ea<16;ea++)ei[ea]=eu[ea]}function ej(ei,eo){let ea=eh(),eu=eh(),ec=eh(),ed=eh(),ef=eh(),eg=eh(),em=eh(),eb=eh(),e_=eh();eP(ea,ei[1],ei[0]),eP(e_,eo[1],eo[0]),eD(ea,ea,e_),eI(eu,ei[0],ei[1]),eI(e_,eo[0],eo[1]),eD(eu,eu,e_),eD(ec,ei[3],eo[3]),eD(ec,ec,ew),eD(ed,ei[2],eo[2]),eI(ed,ed,ed),eP(ef,eu,ea),eP(eg,ed,ec),eI(em,ed,ec),eI(eb,eu,ea),eD(ei[0],ef,eg),eD(ei[1],eb,em),eD(ei[2],em,eg),eD(ei[3],ef,eb)}function eR(ei,eo,ea){for(let eu=0;eu<4;eu++)eT(ei[eu],eo[eu],ea)}function eL(ei,eo){let ea=eh(),eu=eh(),ec=eh();eM(ec,eo[2]),eD(ea,eo[0],ec),eD(eu,eo[1],ec),ek(ei,eu),ei[31]^=eO(ea)<<7}function eF(ei,eo,ea){eE(ei[0],em),eE(ei[1],eb),eE(ei[2],eb),eE(ei[3],em);for(let eu=255;eu>=0;--eu){let ec=ea[eu/8|0]>>(7&eu)&1;eR(ei,eo,ec),ej(eo,ei),ej(ei,ei),eR(ei,eo,ec)}}function eB(ei,eo){let ea=[eh(),eh(),eh(),eh()];eE(ea[0],e_),eE(ea[1],eS),eE(ea[2],eb),eD(ea[3],e_,eS),eF(ei,ea,eo)}function eU(ei){if(ei.length!==eo.aP)throw Error(`ed25519: seed must be ${eo.aP} bytes`);let ea=(0,ed.hash)(ei);ea[0]&=248,ea[31]&=127,ea[31]|=64;let eu=new Uint8Array(32),ec=[eh(),eh(),eh(),eh()];eB(ec,ea),eL(eu,ec);let ef=new Uint8Array(64);return ef.set(ei),ef.set(eu,32),{publicKey:eu,secretKey:ef}}eo._w=eU,eu=function(ei){let eo=(0,ec.randomBytes)(32,ei),ea=eU(eo);return(0,ef.wipe)(eo),ea},eu=function(ei){if(ei.length!==eo.KS)throw Error(`ed25519: secret key must be ${eo.KS} bytes`);return new Uint8Array(ei.subarray(32))};let eG=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function eV(ei,eo){let ea,eu,ec,ed;for(eu=63;eu>=32;--eu){for(ea=0,ec=eu-32,ed=eu-12;ec>4)*eG[ec],ea=eo[ec]>>8,eo[ec]&=255;for(ec=0;ec<32;ec++)eo[ec]-=ea*eG[ec];for(eu=0;eu<32;eu++)eo[eu+1]+=eo[eu]>>8,ei[eu]=255&eo[eu]}function eH(ei){let eo=new Float64Array(64);for(let ea=0;ea<64;ea++)eo[ea]=ei[ea];for(let eo=0;eo<64;eo++)ei[eo]=0;eV(ei,eo)}function eW(ei,eo){let ea=new Float64Array(64),eu=[eh(),eh(),eh(),eh()],ec=(0,ed.hash)(ei.subarray(0,32));ec[0]&=248,ec[31]&=127,ec[31]|=64;let ef=new Uint8Array(64);ef.set(ec.subarray(32),32);let eg=new ed.SHA512;eg.update(ef.subarray(32)),eg.update(eo);let em=eg.digest();eg.clean(),eH(em),eB(eu,em),eL(ef,eu),eg.reset(),eg.update(ef.subarray(0,32)),eg.update(ei.subarray(32)),eg.update(eo);let eb=eg.digest();eH(eb);for(let ei=0;ei<32;ei++)ea[ei]=em[ei];for(let ei=0;ei<32;ei++)for(let eo=0;eo<32;eo++)ea[ei+eo]+=eb[ei]*ec[eo];return eV(ef.subarray(32),ea),ef}eo.Xx=eW},79984:function(ei,eo){"use strict";function ea(ei){return void 0!==ei.saveState&&void 0!==ei.restoreState&&void 0!==ei.cleanSavedState}Object.defineProperty(eo,"__esModule",{value:!0}),eo.isSerializableHash=ea},512:function(ei,eo,ea){"use strict";eu={value:!0};var eu,ec=ea(25629),ed=ea(17309),ef=function(){function ei(ei,eo,ea,eu){void 0===ea&&(ea=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=ei,this._info=eu;var ed=ec.hmac(this._hash,ea,eo);this._hmac=new ec.HMAC(ei,ed),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return ei.prototype._fillBuffer=function(){this._counter[0]++;var ei=this._counter[0];if(0===ei)throw Error("hkdf: cannot expand more");this._hmac.reset(),ei>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},ei.prototype.expand=function(ei){for(var eo=new Uint8Array(ei),ea=0;eathis.blockSize?this._inner.update(eo).finish(ea).clean():ea.set(eo);for(var ec=0;ec>>16&65535,eu=65535&ei,ec=eo>>>16&65535,ed=65535&eo;return eu*ed+(ea*ed+eu*ec<<16>>>0)|0}function eu(ei,eo){return ei+eo|0}function ec(ei,eo){return ei-eo|0}function ed(ei,eo){return ei<>>32-eo}function ef(ei,eo){return ei<<32-eo|ei>>>eo}function eh(ei){return"number"==typeof ei&&isFinite(ei)&&Math.floor(ei)===ei}Object.defineProperty(eo,"__esModule",{value:!0}),eo.mul=Math.imul||ea,eo.add=eu,eo.sub=ec,eo.rotl=ed,eo.rotr=ef,eo.isInteger=Number.isInteger||eh,eo.MAX_SAFE_INTEGER=9007199254740991,eo.isSafeInteger=function(ei){return eo.isInteger(ei)&&ei>=-eo.MAX_SAFE_INTEGER&&ei<=eo.MAX_SAFE_INTEGER}},63027:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var eu=ea(4153),ec=ea(17309);eo.DIGEST_LENGTH=16;var ed=function(){function ei(ei){this.digestLength=eo.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var ea=ei[0]|ei[1]<<8;this._r[0]=8191&ea;var eu=ei[2]|ei[3]<<8;this._r[1]=(ea>>>13|eu<<3)&8191;var ec=ei[4]|ei[5]<<8;this._r[2]=(eu>>>10|ec<<6)&7939;var ed=ei[6]|ei[7]<<8;this._r[3]=(ec>>>7|ed<<9)&8191;var ef=ei[8]|ei[9]<<8;this._r[4]=(ed>>>4|ef<<12)&255,this._r[5]=ef>>>1&8190;var eh=ei[10]|ei[11]<<8;this._r[6]=(ef>>>14|eh<<2)&8191;var eg=ei[12]|ei[13]<<8;this._r[7]=(eh>>>11|eg<<5)&8065;var em=ei[14]|ei[15]<<8;this._r[8]=(eg>>>8|em<<8)&8191,this._r[9]=em>>>5&127,this._pad[0]=ei[16]|ei[17]<<8,this._pad[1]=ei[18]|ei[19]<<8,this._pad[2]=ei[20]|ei[21]<<8,this._pad[3]=ei[22]|ei[23]<<8,this._pad[4]=ei[24]|ei[25]<<8,this._pad[5]=ei[26]|ei[27]<<8,this._pad[6]=ei[28]|ei[29]<<8,this._pad[7]=ei[30]|ei[31]<<8}return ei.prototype._blocks=function(ei,eo,ea){for(var eu=this._fin?0:2048,ec=this._h[0],ed=this._h[1],ef=this._h[2],eh=this._h[3],eg=this._h[4],em=this._h[5],eb=this._h[6],ew=this._h[7],e_=this._h[8],eS=this._h[9],eE=this._r[0],eA=this._r[1],eT=this._r[2],ek=this._r[3],eC=this._r[4],eO=this._r[5],eI=this._r[6],eP=this._r[7],eD=this._r[8],eN=this._r[9];ea>=16;){var eM,ej=ei[eo+0]|ei[eo+1]<<8;ec+=8191&ej;var eR=ei[eo+2]|ei[eo+3]<<8;ed+=(ej>>>13|eR<<3)&8191;var eL=ei[eo+4]|ei[eo+5]<<8;ef+=(eR>>>10|eL<<6)&8191;var eF=ei[eo+6]|ei[eo+7]<<8;eh+=(eL>>>7|eF<<9)&8191;var eB=ei[eo+8]|ei[eo+9]<<8;eg+=(eF>>>4|eB<<12)&8191,em+=eB>>>1&8191;var eU=ei[eo+10]|ei[eo+11]<<8;eb+=(eB>>>14|eU<<2)&8191;var eG=ei[eo+12]|ei[eo+13]<<8;ew+=(eU>>>11|eG<<5)&8191;var eV=ei[eo+14]|ei[eo+15]<<8;e_+=(eG>>>8|eV<<8)&8191,eS+=eV>>>5|eu;var eH=0;eH=(eM=0+ec*eE+ed*(5*eN)+ef*(5*eD)+eh*(5*eP)+eg*(5*eI))>>>13,eM&=8191,eM+=em*(5*eO)+eb*(5*eC)+ew*(5*ek)+e_*(5*eT)+eS*(5*eA),eH+=eM>>>13,eM&=8191;var eW=eH;eW+=ec*eA+ed*eE+ef*(5*eN)+eh*(5*eD)+eg*(5*eP),eH=eW>>>13,eW&=8191,eW+=em*(5*eI)+eb*(5*eO)+ew*(5*eC)+e_*(5*ek)+eS*(5*eT),eH+=eW>>>13,eW&=8191;var eK=eH;eK+=ec*eT+ed*eA+ef*eE+eh*(5*eN)+eg*(5*eD),eH=eK>>>13,eK&=8191,eK+=em*(5*eP)+eb*(5*eI)+ew*(5*eO)+e_*(5*eC)+eS*(5*ek),eH+=eK>>>13,eK&=8191;var eY=eH;eY+=ec*ek+ed*eT+ef*eA+eh*eE+eg*(5*eN),eH=eY>>>13,eY&=8191,eY+=em*(5*eD)+eb*(5*eP)+ew*(5*eI)+e_*(5*eO)+eS*(5*eC),eH+=eY>>>13,eY&=8191;var eZ=eH;eZ+=ec*eC+ed*ek+ef*eT+eh*eA+eg*eE,eH=eZ>>>13,eZ&=8191,eZ+=em*(5*eN)+eb*(5*eD)+ew*(5*eP)+e_*(5*eI)+eS*(5*eO),eH+=eZ>>>13,eZ&=8191;var e$=eH;e$+=ec*eO+ed*eC+ef*ek+eh*eT+eg*eA,eH=e$>>>13,e$&=8191,e$+=em*eE+eb*(5*eN)+ew*(5*eD)+e_*(5*eP)+eS*(5*eI),eH+=e$>>>13,e$&=8191;var eJ=eH;eJ+=ec*eI+ed*eO+ef*eC+eh*ek+eg*eT,eH=eJ>>>13,eJ&=8191,eJ+=em*eA+eb*eE+ew*(5*eN)+e_*(5*eD)+eS*(5*eP),eH+=eJ>>>13,eJ&=8191;var eQ=eH;eQ+=ec*eP+ed*eI+ef*eO+eh*eC+eg*ek,eH=eQ>>>13,eQ&=8191,eQ+=em*eT+eb*eA+ew*eE+e_*(5*eN)+eS*(5*eD),eH+=eQ>>>13,eQ&=8191;var eX=eH;eX+=ec*eD+ed*eP+ef*eI+eh*eO+eg*eC,eH=eX>>>13,eX&=8191,eX+=em*ek+eb*eT+ew*eA+e_*eE+eS*(5*eN),eH+=eX>>>13,eX&=8191;var e0=eH;e0+=ec*eN+ed*eD+ef*eP+eh*eI+eg*eO,eH=e0>>>13,e0&=8191,e0+=em*eC+eb*ek+ew*eT+e_*eA+eS*eE,eH+=e0>>>13,e0&=8191,eM=8191&(eH=(eH=(eH<<2)+eH|0)+eM|0),eH>>>=13,eW+=eH,ec=eM,ed=eW,ef=eK,eh=eY,eg=eZ,em=e$,eb=eJ,ew=eQ,e_=eX,eS=e0,eo+=16,ea-=16}this._h[0]=ec,this._h[1]=ed,this._h[2]=ef,this._h[3]=eh,this._h[4]=eg,this._h[5]=em,this._h[6]=eb,this._h[7]=ew,this._h[8]=e_,this._h[9]=eS},ei.prototype.finish=function(ei,eo){void 0===eo&&(eo=0);var ea,eu,ec,ed,ef=new Uint16Array(10);if(this._leftover){for(ed=this._leftover,this._buffer[ed++]=1;ed<16;ed++)this._buffer[ed]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(ea=this._h[1]>>>13,this._h[1]&=8191,ed=2;ed<10;ed++)this._h[ed]+=ea,ea=this._h[ed]>>>13,this._h[ed]&=8191;for(this._h[0]+=5*ea,ea=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=ea,ea=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=ea,ef[0]=this._h[0]+5,ea=ef[0]>>>13,ef[0]&=8191,ed=1;ed<10;ed++)ef[ed]=this._h[ed]+ea,ea=ef[ed]>>>13,ef[ed]&=8191;for(ef[9]-=8192,eu=(1^ea)-1,ed=0;ed<10;ed++)ef[ed]&=eu;for(ed=0,eu=~eu;ed<10;ed++)this._h[ed]=this._h[ed]&eu|ef[ed];for(ed=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,ec=this._h[0]+this._pad[0],this._h[0]=65535&ec;ed<8;ed++)ec=(this._h[ed]+this._pad[ed]|0)+(ec>>>16)|0,this._h[ed]=65535&ec;return ei[eo+0]=this._h[0]>>>0,ei[eo+1]=this._h[0]>>>8,ei[eo+2]=this._h[1]>>>0,ei[eo+3]=this._h[1]>>>8,ei[eo+4]=this._h[2]>>>0,ei[eo+5]=this._h[2]>>>8,ei[eo+6]=this._h[3]>>>0,ei[eo+7]=this._h[3]>>>8,ei[eo+8]=this._h[4]>>>0,ei[eo+9]=this._h[4]>>>8,ei[eo+10]=this._h[5]>>>0,ei[eo+11]=this._h[5]>>>8,ei[eo+12]=this._h[6]>>>0,ei[eo+13]=this._h[6]>>>8,ei[eo+14]=this._h[7]>>>0,ei[eo+15]=this._h[7]>>>8,this._finished=!0,this},ei.prototype.update=function(ei){var eo,ea=0,eu=ei.length;if(this._leftover){(eo=16-this._leftover)>eu&&(eo=eu);for(var ec=0;ec=16&&(eo=eu-eu%16,this._blocks(ei,ea,eo),ea+=eo,eu-=eo),eu){for(var ec=0;ec256)throw Error("randomString charset is too long");let ec="",eh=ea.length,em=256-256%eh;for(;ei>0;){let eo=ef(Math.ceil(256*ei/em),eu);for(let eu=0;eu0;eu++){let ed=eo[eu];ed0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=ei[ea++],eo--;this._bufferLength===this.blockSize&&(eg(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(eo>=this.blockSize&&(ea=eg(this._temp,this._state,ei,ea,eo),eo%=this.blockSize);eo>0;)this._buffer[this._bufferLength++]=ei[ea++],eo--;return this},ei.prototype.finish=function(ei){if(!this._finished){var eo=this._bytesHashed,ea=this._bufferLength,eu=eo/536870912|0,ed=eo<<3,ef=eo%64<56?64:128;this._buffer[ea]=128;for(var eh=ea+1;eh0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},ei.prototype.restoreState=function(ei){return this._state.set(ei.state),this._bufferLength=ei.bufferLength,ei.buffer&&this._buffer.set(ei.buffer),this._bytesHashed=ei.bytesHashed,this._finished=!1,this},ei.prototype.cleanSavedState=function(ei){ed.wipe(ei.state),ei.buffer&&ed.wipe(ei.buffer),ei.bufferLength=0,ei.bytesHashed=0},ei}();eo.mE=ef;var eh=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function eg(ei,eo,ea,eu,ed){for(;ed>=64;){for(var ef=eo[0],eg=eo[1],em=eo[2],eb=eo[3],ew=eo[4],e_=eo[5],eS=eo[6],eE=eo[7],eA=0;eA<16;eA++){var eT=eu+4*eA;ei[eA]=ec.readUint32BE(ea,eT)}for(var eA=16;eA<64;eA++){var ek=ei[eA-2],eC=(ek>>>17|ek<<15)^(ek>>>19|ek<<13)^ek>>>10,eO=((ek=ei[eA-15])>>>7|ek<<25)^(ek>>>18|ek<<14)^ek>>>3;ei[eA]=(eC+ei[eA-7]|0)+(eO+ei[eA-16]|0)}for(var eA=0;eA<64;eA++){var eC=(((ew>>>6|ew<<26)^(ew>>>11|ew<<21)^(ew>>>25|ew<<7))+(ew&e_^~ew&eS)|0)+(eE+(eh[eA]+ei[eA]|0)|0)|0,eO=((ef>>>2|ef<<30)^(ef>>>13|ef<<19)^(ef>>>22|ef<<10))+(ef&eg^ef&em^eg&em)|0;eE=eS,eS=e_,e_=ew,ew=eb+eC|0,eb=em,em=eg,eg=ef,ef=eC+eO|0}eo[0]+=ef,eo[1]+=eg,eo[2]+=em,eo[3]+=eb,eo[4]+=ew,eo[5]+=e_,eo[6]+=eS,eo[7]+=eE,eu+=64,ed-=64}return eu}function em(ei){var eo=new ef;eo.update(ei);var ea=eo.digest();return eo.clean(),ea}eo.vp=em},93350:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var eu=ea(98099),ec=ea(17309);eo.DIGEST_LENGTH=64,eo.BLOCK_SIZE=128;var ed=function(){function ei(){this.digestLength=eo.DIGEST_LENGTH,this.blockSize=eo.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return ei.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},ei.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},ei.prototype.clean=function(){ec.wipe(this._buffer),ec.wipe(this._tempHi),ec.wipe(this._tempLo),this.reset()},ei.prototype.update=function(ei,ea){if(void 0===ea&&(ea=ei.length),this._finished)throw Error("SHA512: can't update because hash was finished.");var eu=0;if(this._bytesHashed+=ea,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=ei[eu++],ea--;this._bufferLength===this.blockSize&&(eh(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(ea>=this.blockSize&&(eu=eh(this._tempHi,this._tempLo,this._stateHi,this._stateLo,ei,eu,ea),ea%=this.blockSize);ea>0;)this._buffer[this._bufferLength++]=ei[eu++],ea--;return this},ei.prototype.finish=function(ei){if(!this._finished){var eo=this._bytesHashed,ea=this._bufferLength,ec=eo/536870912|0,ed=eo<<3,ef=eo%128<112?128:256;this._buffer[ea]=128;for(var eg=ea+1;eg0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},ei.prototype.restoreState=function(ei){return this._stateHi.set(ei.stateHi),this._stateLo.set(ei.stateLo),this._bufferLength=ei.bufferLength,ei.buffer&&this._buffer.set(ei.buffer),this._bytesHashed=ei.bytesHashed,this._finished=!1,this},ei.prototype.cleanSavedState=function(ei){ec.wipe(ei.stateHi),ec.wipe(ei.stateLo),ei.buffer&&ec.wipe(ei.buffer),ei.bufferLength=0,ei.bytesHashed=0},ei}();eo.SHA512=ed;var ef=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function eh(ei,eo,ea,ec,ed,eh,eg){for(var em,eb,ew,e_,eS,eE,eA,eT,ek=ea[0],eC=ea[1],eO=ea[2],eI=ea[3],eP=ea[4],eD=ea[5],eN=ea[6],eM=ea[7],ej=ec[0],eR=ec[1],eL=ec[2],eF=ec[3],eB=ec[4],eU=ec[5],eG=ec[6],eV=ec[7];eg>=128;){for(var eH=0;eH<16;eH++){var eW=8*eH+eh;ei[eH]=eu.readUint32BE(ed,eW),eo[eH]=eu.readUint32BE(ed,eW+4)}for(var eH=0;eH<80;eH++){var eK=ek,eY=eC,eZ=eO,e$=eI,eJ=eP,eQ=eD,eX=eN,e0=eM,e3=ej,e5=eR,e4=eL,e6=eF,e8=eB,e9=eU,e7=eG,ta=eV;if(em=eM,eS=65535&(eb=eV),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=(eP>>>14|eB<<18)^(eP>>>18|eB<<14)^(eB>>>9|eP<<23),eS+=65535&(eb=(eB>>>14|eP<<18)^(eB>>>18|eP<<14)^(eP>>>9|eB<<23)),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,em=eP&eD^~eP&eN,eS+=65535&(eb=eB&eU^~eB&eG),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,em=ef[2*eH],eS+=65535&(eb=ef[2*eH+1]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,em=ei[eH%16],eS+=65535&(eb=eo[eH%16]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ew=65535&eA|eT<<16,e_=65535&eS|eE<<16,em=ew,eS=65535&(eb=e_),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=(ek>>>28|ej<<4)^(ej>>>2|ek<<30)^(ej>>>7|ek<<25),eS+=65535&(eb=(ej>>>28|ek<<4)^(ek>>>2|ej<<30)^(ek>>>7|ej<<25)),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,em=ek&eC^ek&eO^eC&eO,eS+=65535&(eb=ej&eR^ej&eL^eR&eL),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,e0=65535&eA|eT<<16,ta=65535&eS|eE<<16,em=e$,eS=65535&(eb=e6),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ew,eS+=65535&(eb=e_),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,e$=65535&eA|eT<<16,e6=65535&eS|eE<<16,eC=eK,eO=eY,eI=eZ,eP=e$,eD=eJ,eN=eQ,eM=eX,ek=e0,eR=e3,eL=e5,eF=e4,eB=e6,eU=e8,eG=e9,eV=e7,ej=ta,eH%16==15)for(var eW=0;eW<16;eW++)em=ei[eW],eS=65535&(eb=eo[eW]),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ei[(eW+9)%16],eS+=65535&(eb=eo[(eW+9)%16]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,em=((ew=ei[(eW+1)%16])>>>1|(e_=eo[(eW+1)%16])<<31)^(ew>>>8|e_<<24)^ew>>>7,eS+=65535&(eb=(e_>>>1|ew<<31)^(e_>>>8|ew<<24)^(e_>>>7|ew<<25)),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,em=((ew=ei[(eW+14)%16])>>>19|(e_=eo[(eW+14)%16])<<13)^(e_>>>29|ew<<3)^ew>>>6,eS+=65535&(eb=(e_>>>19|ew<<13)^(ew>>>29|e_<<3)^(e_>>>6|ew<<26)),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ei[eW]=65535&eA|eT<<16,eo[eW]=65535&eS|eE<<16}em=ek,eS=65535&(eb=ej),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ea[0],eS+=65535&(eb=ec[0]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ea[0]=ek=65535&eA|eT<<16,ec[0]=ej=65535&eS|eE<<16,em=eC,eS=65535&(eb=eR),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ea[1],eS+=65535&(eb=ec[1]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ea[1]=eC=65535&eA|eT<<16,ec[1]=eR=65535&eS|eE<<16,em=eO,eS=65535&(eb=eL),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ea[2],eS+=65535&(eb=ec[2]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ea[2]=eO=65535&eA|eT<<16,ec[2]=eL=65535&eS|eE<<16,em=eI,eS=65535&(eb=eF),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ea[3],eS+=65535&(eb=ec[3]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ea[3]=eI=65535&eA|eT<<16,ec[3]=eF=65535&eS|eE<<16,em=eP,eS=65535&(eb=eB),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ea[4],eS+=65535&(eb=ec[4]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ea[4]=eP=65535&eA|eT<<16,ec[4]=eB=65535&eS|eE<<16,em=eD,eS=65535&(eb=eU),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ea[5],eS+=65535&(eb=ec[5]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ea[5]=eD=65535&eA|eT<<16,ec[5]=eU=65535&eS|eE<<16,em=eN,eS=65535&(eb=eG),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ea[6],eS+=65535&(eb=ec[6]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ea[6]=eN=65535&eA|eT<<16,ec[6]=eG=65535&eS|eE<<16,em=eM,eS=65535&(eb=eV),eE=eb>>>16,eA=65535&em,eT=em>>>16,em=ea[7],eS+=65535&(eb=ec[7]),eE+=eb>>>16,eA+=65535&em,eT+=em>>>16,eE+=eS>>>16,eA+=eE>>>16,eT+=eA>>>16,ea[7]=eM=65535&eA|eT<<16,ec[7]=eV=65535&eS|eE<<16,eh+=128,eg-=128}return eh}function eg(ei){var eo=new ed;eo.update(ei);var ea=eo.digest();return eo.clean(),ea}eo.hash=eg},17309:function(ei,eo){"use strict";function ea(ei){for(var eo=0;eo>16&1),ea[ei-1]&=65535;ea[15]=eu[15]-32767-(ea[14]>>16&1);let ei=ea[15]>>16&1;ea[14]&=65535,eb(eu,ea,1-ei)}for(let eo=0;eo<16;eo++)ei[2*eo]=255&eu[eo],ei[2*eo+1]=eu[eo]>>8}function e_(ei,eo){for(let ea=0;ea<16;ea++)ei[ea]=eo[2*ea]+(eo[2*ea+1]<<8);ei[15]&=32767}function eS(ei,eo,ea){for(let eu=0;eu<16;eu++)ei[eu]=eo[eu]+ea[eu]}function eE(ei,eo,ea){for(let eu=0;eu<16;eu++)ei[eu]=eo[eu]-ea[eu]}function eA(ei,eo,ea){let eu,ec,ed=0,ef=0,eh=0,eg=0,em=0,eb=0,ew=0,e_=0,eS=0,eE=0,eA=0,eT=0,ek=0,eC=0,eO=0,eI=0,eP=0,eD=0,eN=0,eM=0,ej=0,eR=0,eL=0,eF=0,eB=0,eU=0,eG=0,eV=0,eH=0,eW=0,eK=0,eY=ea[0],eZ=ea[1],e$=ea[2],eJ=ea[3],eQ=ea[4],eX=ea[5],e0=ea[6],e3=ea[7],e5=ea[8],e4=ea[9],e6=ea[10],e8=ea[11],e9=ea[12],e7=ea[13],ta=ea[14],tu=ea[15];ed+=(eu=eo[0])*eY,ef+=eu*eZ,eh+=eu*e$,eg+=eu*eJ,em+=eu*eQ,eb+=eu*eX,ew+=eu*e0,e_+=eu*e3,eS+=eu*e5,eE+=eu*e4,eA+=eu*e6,eT+=eu*e8,ek+=eu*e9,eC+=eu*e7,eO+=eu*ta,eI+=eu*tu,ef+=(eu=eo[1])*eY,eh+=eu*eZ,eg+=eu*e$,em+=eu*eJ,eb+=eu*eQ,ew+=eu*eX,e_+=eu*e0,eS+=eu*e3,eE+=eu*e5,eA+=eu*e4,eT+=eu*e6,ek+=eu*e8,eC+=eu*e9,eO+=eu*e7,eI+=eu*ta,eP+=eu*tu,eh+=(eu=eo[2])*eY,eg+=eu*eZ,em+=eu*e$,eb+=eu*eJ,ew+=eu*eQ,e_+=eu*eX,eS+=eu*e0,eE+=eu*e3,eA+=eu*e5,eT+=eu*e4,ek+=eu*e6,eC+=eu*e8,eO+=eu*e9,eI+=eu*e7,eP+=eu*ta,eD+=eu*tu,eg+=(eu=eo[3])*eY,em+=eu*eZ,eb+=eu*e$,ew+=eu*eJ,e_+=eu*eQ,eS+=eu*eX,eE+=eu*e0,eA+=eu*e3,eT+=eu*e5,ek+=eu*e4,eC+=eu*e6,eO+=eu*e8,eI+=eu*e9,eP+=eu*e7,eD+=eu*ta,eN+=eu*tu,em+=(eu=eo[4])*eY,eb+=eu*eZ,ew+=eu*e$,e_+=eu*eJ,eS+=eu*eQ,eE+=eu*eX,eA+=eu*e0,eT+=eu*e3,ek+=eu*e5,eC+=eu*e4,eO+=eu*e6,eI+=eu*e8,eP+=eu*e9,eD+=eu*e7,eN+=eu*ta,eM+=eu*tu,eb+=(eu=eo[5])*eY,ew+=eu*eZ,e_+=eu*e$,eS+=eu*eJ,eE+=eu*eQ,eA+=eu*eX,eT+=eu*e0,ek+=eu*e3,eC+=eu*e5,eO+=eu*e4,eI+=eu*e6,eP+=eu*e8,eD+=eu*e9,eN+=eu*e7,eM+=eu*ta,ej+=eu*tu,ew+=(eu=eo[6])*eY,e_+=eu*eZ,eS+=eu*e$,eE+=eu*eJ,eA+=eu*eQ,eT+=eu*eX,ek+=eu*e0,eC+=eu*e3,eO+=eu*e5,eI+=eu*e4,eP+=eu*e6,eD+=eu*e8,eN+=eu*e9,eM+=eu*e7,ej+=eu*ta,eR+=eu*tu,e_+=(eu=eo[7])*eY,eS+=eu*eZ,eE+=eu*e$,eA+=eu*eJ,eT+=eu*eQ,ek+=eu*eX,eC+=eu*e0,eO+=eu*e3,eI+=eu*e5,eP+=eu*e4,eD+=eu*e6,eN+=eu*e8,eM+=eu*e9,ej+=eu*e7,eR+=eu*ta,eL+=eu*tu,eS+=(eu=eo[8])*eY,eE+=eu*eZ,eA+=eu*e$,eT+=eu*eJ,ek+=eu*eQ,eC+=eu*eX,eO+=eu*e0,eI+=eu*e3,eP+=eu*e5,eD+=eu*e4,eN+=eu*e6,eM+=eu*e8,ej+=eu*e9,eR+=eu*e7,eL+=eu*ta,eF+=eu*tu,eE+=(eu=eo[9])*eY,eA+=eu*eZ,eT+=eu*e$,ek+=eu*eJ,eC+=eu*eQ,eO+=eu*eX,eI+=eu*e0,eP+=eu*e3,eD+=eu*e5,eN+=eu*e4,eM+=eu*e6,ej+=eu*e8,eR+=eu*e9,eL+=eu*e7,eF+=eu*ta,eB+=eu*tu,eA+=(eu=eo[10])*eY,eT+=eu*eZ,ek+=eu*e$,eC+=eu*eJ,eO+=eu*eQ,eI+=eu*eX,eP+=eu*e0,eD+=eu*e3,eN+=eu*e5,eM+=eu*e4,ej+=eu*e6,eR+=eu*e8,eL+=eu*e9,eF+=eu*e7,eB+=eu*ta,eU+=eu*tu,eT+=(eu=eo[11])*eY,ek+=eu*eZ,eC+=eu*e$,eO+=eu*eJ,eI+=eu*eQ,eP+=eu*eX,eD+=eu*e0,eN+=eu*e3,eM+=eu*e5,ej+=eu*e4,eR+=eu*e6,eL+=eu*e8,eF+=eu*e9,eB+=eu*e7,eU+=eu*ta,eG+=eu*tu,ek+=(eu=eo[12])*eY,eC+=eu*eZ,eO+=eu*e$,eI+=eu*eJ,eP+=eu*eQ,eD+=eu*eX,eN+=eu*e0,eM+=eu*e3,ej+=eu*e5,eR+=eu*e4,eL+=eu*e6,eF+=eu*e8,eB+=eu*e9,eU+=eu*e7,eG+=eu*ta,eV+=eu*tu,eC+=(eu=eo[13])*eY,eO+=eu*eZ,eI+=eu*e$,eP+=eu*eJ,eD+=eu*eQ,eN+=eu*eX,eM+=eu*e0,ej+=eu*e3,eR+=eu*e5,eL+=eu*e4,eF+=eu*e6,eB+=eu*e8,eU+=eu*e9,eG+=eu*e7,eV+=eu*ta,eH+=eu*tu,eO+=(eu=eo[14])*eY,eI+=eu*eZ,eP+=eu*e$,eD+=eu*eJ,eN+=eu*eQ,eM+=eu*eX,ej+=eu*e0,eR+=eu*e3,eL+=eu*e5,eF+=eu*e4,eB+=eu*e6,eU+=eu*e8,eG+=eu*e9,eV+=eu*e7,eH+=eu*ta,eW+=eu*tu,eI+=(eu=eo[15])*eY,eP+=eu*eZ,eD+=eu*e$,eN+=eu*eJ,eM+=eu*eQ,ej+=eu*eX,eR+=eu*e0,eL+=eu*e3,eF+=eu*e5,eB+=eu*e4,eU+=eu*e6,eG+=eu*e8,eV+=eu*e9,eH+=eu*e7,eW+=eu*ta,eK+=eu*tu,ed+=38*eP,ef+=38*eD,eh+=38*eN,eg+=38*eM,em+=38*ej,eb+=38*eR,ew+=38*eL,e_+=38*eF,eS+=38*eB,eE+=38*eU,eA+=38*eG,eT+=38*eV,ek+=38*eH,eC+=38*eW,eO+=38*eK,ec=Math.floor((eu=ed+(ec=1)+65535)/65536),ed=eu-65536*ec,ec=Math.floor((eu=ef+ec+65535)/65536),ef=eu-65536*ec,ec=Math.floor((eu=eh+ec+65535)/65536),eh=eu-65536*ec,ec=Math.floor((eu=eg+ec+65535)/65536),eg=eu-65536*ec,ec=Math.floor((eu=em+ec+65535)/65536),em=eu-65536*ec,ec=Math.floor((eu=eb+ec+65535)/65536),eb=eu-65536*ec,ec=Math.floor((eu=ew+ec+65535)/65536),ew=eu-65536*ec,ec=Math.floor((eu=e_+ec+65535)/65536),e_=eu-65536*ec,ec=Math.floor((eu=eS+ec+65535)/65536),eS=eu-65536*ec,ec=Math.floor((eu=eE+ec+65535)/65536),eE=eu-65536*ec,ec=Math.floor((eu=eA+ec+65535)/65536),eA=eu-65536*ec,ec=Math.floor((eu=eT+ec+65535)/65536),eT=eu-65536*ec,ec=Math.floor((eu=ek+ec+65535)/65536),ek=eu-65536*ec,ec=Math.floor((eu=eC+ec+65535)/65536),eC=eu-65536*ec,ec=Math.floor((eu=eO+ec+65535)/65536),eO=eu-65536*ec,ec=Math.floor((eu=eI+ec+65535)/65536),eI=eu-65536*ec,ed+=ec-1+37*(ec-1),ec=Math.floor((eu=ed+(ec=1)+65535)/65536),ed=eu-65536*ec,ec=Math.floor((eu=ef+ec+65535)/65536),ef=eu-65536*ec,ec=Math.floor((eu=eh+ec+65535)/65536),eh=eu-65536*ec,ec=Math.floor((eu=eg+ec+65535)/65536),eg=eu-65536*ec,ec=Math.floor((eu=em+ec+65535)/65536),em=eu-65536*ec,ec=Math.floor((eu=eb+ec+65535)/65536),eb=eu-65536*ec,ec=Math.floor((eu=ew+ec+65535)/65536),ew=eu-65536*ec,ec=Math.floor((eu=e_+ec+65535)/65536),e_=eu-65536*ec,ec=Math.floor((eu=eS+ec+65535)/65536),eS=eu-65536*ec,ec=Math.floor((eu=eE+ec+65535)/65536),eE=eu-65536*ec,ec=Math.floor((eu=eA+ec+65535)/65536),eA=eu-65536*ec,ec=Math.floor((eu=eT+ec+65535)/65536),eT=eu-65536*ec,ec=Math.floor((eu=ek+ec+65535)/65536),ek=eu-65536*ec,ec=Math.floor((eu=eC+ec+65535)/65536),eC=eu-65536*ec,ec=Math.floor((eu=eO+ec+65535)/65536),eO=eu-65536*ec,ec=Math.floor((eu=eI+ec+65535)/65536),eI=eu-65536*ec,ed+=ec-1+37*(ec-1),ei[0]=ed,ei[1]=ef,ei[2]=eh,ei[3]=eg,ei[4]=em,ei[5]=eb,ei[6]=ew,ei[7]=e_,ei[8]=eS,ei[9]=eE,ei[10]=eA,ei[11]=eT,ei[12]=ek,ei[13]=eC,ei[14]=eO,ei[15]=eI}function eT(ei,eo){eA(ei,eo,eo)}function ek(ei,eo){let ea=ef();for(let ei=0;ei<16;ei++)ea[ei]=eo[ei];for(let ei=253;ei>=0;ei--)eT(ea,ea),2!==ei&&4!==ei&&eA(ea,ea,eo);for(let eo=0;eo<16;eo++)ei[eo]=ea[eo]}function eC(ei,eo){let ea=new Uint8Array(32),eu=new Float64Array(80),ec=ef(),ed=ef(),eh=ef(),em=ef(),eC=ef(),eO=ef();for(let eo=0;eo<31;eo++)ea[eo]=ei[eo];ea[31]=127&ei[31]|64,ea[0]&=248,e_(eu,eo);for(let ei=0;ei<16;ei++)ed[ei]=eu[ei];ec[0]=em[0]=1;for(let ei=254;ei>=0;--ei){let eo=ea[ei>>>3]>>>(7&ei)&1;eb(ec,ed,eo),eb(eh,em,eo),eS(eC,ec,eh),eE(ec,ec,eh),eS(eh,ed,em),eE(ed,ed,em),eT(em,eC),eT(eO,ec),eA(ec,eh,ec),eA(eh,ed,eC),eS(eC,ec,eh),eE(ec,ec,eh),eT(ed,ec),eE(eh,em,eO),eA(ec,eh,eg),eS(ec,ec,em),eA(eh,eh,ec),eA(ec,em,eO),eA(em,ed,eu),eT(ed,eC),eb(ec,ed,eo),eb(eh,em,eo)}for(let ei=0;ei<16;ei++)eu[ei+16]=ec[ei],eu[ei+32]=eh[ei],eu[ei+48]=ed[ei],eu[ei+64]=em[ei];let eI=eu.subarray(32),eP=eu.subarray(16);ek(eI,eI),eA(eP,eP,eI);let eD=new Uint8Array(32);return ew(eD,eP),eD}function eO(ei){return eC(ei,eh)}function eI(ei){if(ei.length!==eo.KS)throw Error(`x25519: seed must be ${eo.KS} bytes`);let ea=new Uint8Array(ei),eu=eO(ea);return{publicKey:eu,secretKey:ea}}function eP(ei){let eo=(0,ec.randomBytes)(32,ei),ea=eI(eo);return(0,ed.wipe)(eo),ea}function eD(ei,ea,eu=!1){if(ei.length!==eo.kz)throw Error("X25519: incorrect secret key length");if(ea.length!==eo.kz)throw Error("X25519: incorrect public key length");let ec=eC(ei,ea);if(eu){let ei=0;for(let eo=0;eoeo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function eh(ei,eo,ea,eu){var ec,ed=arguments.length,ef=ed<3?eo:null===eu?eu=Object.getOwnPropertyDescriptor(eo,ea):eu;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ef=Reflect.decorate(ei,eo,ea,eu);else for(var eh=ei.length-1;eh>=0;eh--)(ec=ei[eh])&&(ef=(ed<3?ec(ef):ed>3?ec(eo,ea,ef):ec(eo,ea))||ef);return ed>3&&ef&&Object.defineProperty(eo,ea,ef),ef}function eg(ei,eo){return function(ea,eu){eo(ea,eu,ei)}}function em(ei,eo){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ei,eo)}function eb(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})}function ew(ei,eo){var ea,eu,ec,ed,ef={label:0,sent:function(){if(1&ec[0])throw ec[1];return ec[1]},trys:[],ops:[]};return ed={next:eh(0),throw:eh(1),return:eh(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function eh(ei){return function(eo){return eg([ei,eo])}}function eg(ed){if(ea)throw TypeError("Generator is already executing.");for(;ef;)try{if(ea=1,eu&&(ec=2&ed[0]?eu.return:ed[0]?eu.throw||((ec=eu.return)&&ec.call(eu),0):eu.next)&&!(ec=ec.call(eu,ed[1])).done)return ec;switch(eu=0,ec&&(ed=[2&ed[0],ec.value]),ed[0]){case 0:case 1:ec=ed;break;case 4:return ef.label++,{value:ed[1],done:!1};case 5:ef.label++,eu=ed[1],ed=[0];continue;case 7:ed=ef.ops.pop(),ef.trys.pop();continue;default:if(!(ec=(ec=ef.trys).length>0&&ec[ec.length-1])&&(6===ed[0]||2===ed[0])){ef=0;continue}if(3===ed[0]&&(!ec||ed[1]>ec[0]&&ed[1]=ei.length&&(ei=void 0),{value:ei&&ei[eu++],done:!ei}}};throw TypeError(eo?"Object is not iterable.":"Symbol.iterator is not defined.")}function eA(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef}function eT(){for(var ei=[],eo=0;eo1||eh(ei,eo)})})}function eh(ei,eo){try{eg(ec[ei](eo))}catch(ei){ew(ed[0][3],ei)}}function eg(ei){ei.value instanceof eC?Promise.resolve(ei.value.v).then(em,eb):ew(ed[0][2],ei)}function em(ei){eh("next",ei)}function eb(ei){eh("throw",ei)}function ew(ei,eo){ei(eo),ed.shift(),ed.length&&eh(ed[0][0],ed[0][1])}}function eI(ei){var eo,ea;return eo={},eu("next"),eu("throw",function(ei){throw ei}),eu("return"),eo[Symbol.iterator]=function(){return this},eo;function eu(eu,ec){eo[eu]=ei[eu]?function(eo){return(ea=!ea)?{value:eC(ei[eu](eo)),done:"return"===eu}:ec?ec(eo):eo}:ec}}function eP(ei){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var eo,ea=ei[Symbol.asyncIterator];return ea?ea.call(ei):(ei=eE(ei),eo={},eu("next"),eu("throw"),eu("return"),eo[Symbol.asyncIterator]=function(){return this},eo);function eu(ea){eo[ea]=ei[ea]&&function(eo){return new Promise(function(eu,ed){ec(eu,ed,(eo=ei[ea](eo)).done,eo.value)})}}function ec(ei,eo,ea,eu){Promise.resolve(eu).then(function(eo){ei({value:eo,done:ea})},eo)}}function eD(ei,eo){return Object.defineProperty?Object.defineProperty(ei,"raw",{value:eo}):ei.raw=eo,ei}function eN(ei){if(ei&&ei.__esModule)return ei;var eo={};if(null!=ei)for(var ea in ei)Object.hasOwnProperty.call(ei,ea)&&(eo[ea]=ei[ea]);return eo.default=ei,eo}function eM(ei){return ei&&ei.__esModule?ei:{default:ei}}function ej(ei,eo){if(!eo.has(ei))throw TypeError("attempted to get private field on non-instance");return eo.get(ei)}function eR(ei,eo,ea){if(!eo.has(ei))throw TypeError("attempted to set private field on non-instance");return eo.set(ei,ea),ea}},38200:function(ei,eo,ea){"use strict";ea.d(eo,{q:function(){return eu}});class eu{}},30997:function(ei,eo,ea){"use strict";ea.r(eo),ea.d(eo,{IEvents:function(){return eu.q}});var eu=ea(38200)},32568:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.HEARTBEAT_EVENTS=eo.HEARTBEAT_INTERVAL=void 0;let eu=ea(66736);eo.HEARTBEAT_INTERVAL=eu.FIVE_SECONDS,eo.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}},53401:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});let eu=ea(39653);eu.__exportStar(ea(32568),eo)},38969:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.HeartBeat=void 0;let eu=ea(39653),ec=ea(17187),ed=ea(66736),ef=ea(1614),eh=ea(53401);class eg extends ef.IHeartBeat{constructor(ei){super(ei),this.events=new ec.EventEmitter,this.interval=eh.HEARTBEAT_INTERVAL,this.interval=(null==ei?void 0:ei.interval)||eh.HEARTBEAT_INTERVAL}static init(ei){return eu.__awaiter(this,void 0,void 0,function*(){let eo=new eg(ei);return yield eo.init(),eo})}init(){return eu.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(ei,eo){this.events.on(ei,eo)}once(ei,eo){this.events.once(ei,eo)}off(ei,eo){this.events.off(ei,eo)}removeListener(ei,eo){this.events.removeListener(ei,eo)}initialize(){return eu.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),ed.toMiliseconds(this.interval))})}pulse(){this.events.emit(eh.HEARTBEAT_EVENTS.pulse)}}eo.HeartBeat=eg},90772:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});let eu=ea(39653);eu.__exportStar(ea(38969),eo),eu.__exportStar(ea(1614),eo),eu.__exportStar(ea(53401),eo)},44174:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.IHeartBeat=void 0;let eu=ea(30997);class ec extends eu.IEvents{constructor(ei){super()}}eo.IHeartBeat=ec},1614:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});let eu=ea(39653);eu.__exportStar(ea(44174),eo)},39653:function(ei,eo,ea){"use strict";ea.r(eo),ea.d(eo,{__assign:function(){return ed},__asyncDelegator:function(){return eI},__asyncGenerator:function(){return eO},__asyncValues:function(){return eP},__await:function(){return eC},__awaiter:function(){return eb},__classPrivateFieldGet:function(){return ej},__classPrivateFieldSet:function(){return eR},__createBinding:function(){return e_},__decorate:function(){return eh},__exportStar:function(){return eS},__extends:function(){return ec},__generator:function(){return ew},__importDefault:function(){return eM},__importStar:function(){return eN},__makeTemplateObject:function(){return eD},__metadata:function(){return em},__param:function(){return eg},__read:function(){return eA},__rest:function(){return ef},__spread:function(){return eT},__spreadArrays:function(){return ek},__values:function(){return eE}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var eu=function(ei,eo){return(eu=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(ei,eo){ei.__proto__=eo}||function(ei,eo){for(var ea in eo)eo.hasOwnProperty(ea)&&(ei[ea]=eo[ea])})(ei,eo)};function ec(ei,eo){function ea(){this.constructor=ei}eu(ei,eo),ei.prototype=null===eo?Object.create(eo):(ea.prototype=eo.prototype,new ea)}var ed=function(){return(ed=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;eaeo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function eh(ei,eo,ea,eu){var ec,ed=arguments.length,ef=ed<3?eo:null===eu?eu=Object.getOwnPropertyDescriptor(eo,ea):eu;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ef=Reflect.decorate(ei,eo,ea,eu);else for(var eh=ei.length-1;eh>=0;eh--)(ec=ei[eh])&&(ef=(ed<3?ec(ef):ed>3?ec(eo,ea,ef):ec(eo,ea))||ef);return ed>3&&ef&&Object.defineProperty(eo,ea,ef),ef}function eg(ei,eo){return function(ea,eu){eo(ea,eu,ei)}}function em(ei,eo){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ei,eo)}function eb(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})}function ew(ei,eo){var ea,eu,ec,ed,ef={label:0,sent:function(){if(1&ec[0])throw ec[1];return ec[1]},trys:[],ops:[]};return ed={next:eh(0),throw:eh(1),return:eh(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function eh(ei){return function(eo){return eg([ei,eo])}}function eg(ed){if(ea)throw TypeError("Generator is already executing.");for(;ef;)try{if(ea=1,eu&&(ec=2&ed[0]?eu.return:ed[0]?eu.throw||((ec=eu.return)&&ec.call(eu),0):eu.next)&&!(ec=ec.call(eu,ed[1])).done)return ec;switch(eu=0,ec&&(ed=[2&ed[0],ec.value]),ed[0]){case 0:case 1:ec=ed;break;case 4:return ef.label++,{value:ed[1],done:!1};case 5:ef.label++,eu=ed[1],ed=[0];continue;case 7:ed=ef.ops.pop(),ef.trys.pop();continue;default:if(!(ec=(ec=ef.trys).length>0&&ec[ec.length-1])&&(6===ed[0]||2===ed[0])){ef=0;continue}if(3===ed[0]&&(!ec||ed[1]>ec[0]&&ed[1]=ei.length&&(ei=void 0),{value:ei&&ei[eu++],done:!ei}}};throw TypeError(eo?"Object is not iterable.":"Symbol.iterator is not defined.")}function eA(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef}function eT(){for(var ei=[],eo=0;eo1||eh(ei,eo)})})}function eh(ei,eo){try{eg(ec[ei](eo))}catch(ei){ew(ed[0][3],ei)}}function eg(ei){ei.value instanceof eC?Promise.resolve(ei.value.v).then(em,eb):ew(ed[0][2],ei)}function em(ei){eh("next",ei)}function eb(ei){eh("throw",ei)}function ew(ei,eo){ei(eo),ed.shift(),ed.length&&eh(ed[0][0],ed[0][1])}}function eI(ei){var eo,ea;return eo={},eu("next"),eu("throw",function(ei){throw ei}),eu("return"),eo[Symbol.iterator]=function(){return this},eo;function eu(eu,ec){eo[eu]=ei[eu]?function(eo){return(ea=!ea)?{value:eC(ei[eu](eo)),done:"return"===eu}:ec?ec(eo):eo}:ec}}function eP(ei){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var eo,ea=ei[Symbol.asyncIterator];return ea?ea.call(ei):(ei=eE(ei),eo={},eu("next"),eu("throw"),eu("return"),eo[Symbol.asyncIterator]=function(){return this},eo);function eu(ea){eo[ea]=ei[ea]&&function(eo){return new Promise(function(eu,ed){ec(eu,ed,(eo=ei[ea](eo)).done,eo.value)})}}function ec(ei,eo,ea,eu){Promise.resolve(eu).then(function(eo){ei({value:eo,done:ea})},eo)}}function eD(ei,eo){return Object.defineProperty?Object.defineProperty(ei,"raw",{value:eo}):ei.raw=eo,ei}function eN(ei){if(ei&&ei.__esModule)return ei;var eo={};if(null!=ei)for(var ea in ei)Object.hasOwnProperty.call(ei,ea)&&(eo[ea]=ei[ea]);return eo.default=ei,eo}function eM(ei){return ei&&ei.__esModule?ei:{default:ei}}function ej(ei,eo){if(!eo.has(ei))throw TypeError("attempted to get private field on non-instance");return eo.get(ei)}function eR(ei,eo,ea){if(!eo.has(ei))throw TypeError("attempted to set private field on non-instance");return eo.set(ei,ea),ea}},85150:function(ei,eo,ea){"use strict";var eu;eu={value:!0},eu=void 0;let ec=ea(33893),ed=ea(63954),ef=ec.__importDefault(ea(30653)),eh=ea(59728);class eg{constructor(){this.localStorage=ef.default}getKeys(){return ec.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return ec.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(eh.parseEntry)})}getItem(ei){return ec.__awaiter(this,void 0,void 0,function*(){let eo=this.localStorage.getItem(ei);if(null!==eo)return ed.safeJsonParse(eo)})}setItem(ei,eo){return ec.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(ei,ed.safeJsonStringify(eo))})}removeItem(ei){return ec.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(ei)})}}eu=eg,eo.ZP=eg},30653:function(ei,eo,ea){"use strict";!function(){let eo;function eu(){}(eo=eu).prototype.getItem=function(ei){return this.hasOwnProperty(ei)?String(this[ei]):null},eo.prototype.setItem=function(ei,eo){this[ei]=String(eo)},eo.prototype.removeItem=function(ei){delete this[ei]},eo.prototype.clear=function(){let ei=this;Object.keys(ei).forEach(function(eo){ei[eo]=void 0,delete ei[eo]})},eo.prototype.key=function(ei){return ei=ei||0,Object.keys(this)[ei]},eo.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),void 0!==ea.g&&ea.g.localStorage?ei.exports=ea.g.localStorage:"undefined"!=typeof window&&window.localStorage?ei.exports=window.localStorage:ei.exports=new eu}()},59728:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});let eu=ea(33893);eu.__exportStar(ea(39076),eo),eu.__exportStar(ea(20496),eo)},39076:function(ei,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.IKeyValueStorage=void 0;class ea{}eo.IKeyValueStorage=ea},20496:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.parseEntry=void 0;let eu=ea(63954);function ec(ei){var eo;return[ei[0],eu.safeJsonParse(null!==(eo=ei[1])&&void 0!==eo?eo:"")]}eo.parseEntry=ec},33893:function(ei,eo,ea){"use strict";ea.r(eo),ea.d(eo,{__assign:function(){return ed},__asyncDelegator:function(){return eI},__asyncGenerator:function(){return eO},__asyncValues:function(){return eP},__await:function(){return eC},__awaiter:function(){return eb},__classPrivateFieldGet:function(){return ej},__classPrivateFieldSet:function(){return eR},__createBinding:function(){return e_},__decorate:function(){return eh},__exportStar:function(){return eS},__extends:function(){return ec},__generator:function(){return ew},__importDefault:function(){return eM},__importStar:function(){return eN},__makeTemplateObject:function(){return eD},__metadata:function(){return em},__param:function(){return eg},__read:function(){return eA},__rest:function(){return ef},__spread:function(){return eT},__spreadArrays:function(){return ek},__values:function(){return eE}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var eu=function(ei,eo){return(eu=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(ei,eo){ei.__proto__=eo}||function(ei,eo){for(var ea in eo)eo.hasOwnProperty(ea)&&(ei[ea]=eo[ea])})(ei,eo)};function ec(ei,eo){function ea(){this.constructor=ei}eu(ei,eo),ei.prototype=null===eo?Object.create(eo):(ea.prototype=eo.prototype,new ea)}var ed=function(){return(ed=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;eaeo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function eh(ei,eo,ea,eu){var ec,ed=arguments.length,ef=ed<3?eo:null===eu?eu=Object.getOwnPropertyDescriptor(eo,ea):eu;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ef=Reflect.decorate(ei,eo,ea,eu);else for(var eh=ei.length-1;eh>=0;eh--)(ec=ei[eh])&&(ef=(ed<3?ec(ef):ed>3?ec(eo,ea,ef):ec(eo,ea))||ef);return ed>3&&ef&&Object.defineProperty(eo,ea,ef),ef}function eg(ei,eo){return function(ea,eu){eo(ea,eu,ei)}}function em(ei,eo){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ei,eo)}function eb(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})}function ew(ei,eo){var ea,eu,ec,ed,ef={label:0,sent:function(){if(1&ec[0])throw ec[1];return ec[1]},trys:[],ops:[]};return ed={next:eh(0),throw:eh(1),return:eh(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function eh(ei){return function(eo){return eg([ei,eo])}}function eg(ed){if(ea)throw TypeError("Generator is already executing.");for(;ef;)try{if(ea=1,eu&&(ec=2&ed[0]?eu.return:ed[0]?eu.throw||((ec=eu.return)&&ec.call(eu),0):eu.next)&&!(ec=ec.call(eu,ed[1])).done)return ec;switch(eu=0,ec&&(ed=[2&ed[0],ec.value]),ed[0]){case 0:case 1:ec=ed;break;case 4:return ef.label++,{value:ed[1],done:!1};case 5:ef.label++,eu=ed[1],ed=[0];continue;case 7:ed=ef.ops.pop(),ef.trys.pop();continue;default:if(!(ec=(ec=ef.trys).length>0&&ec[ec.length-1])&&(6===ed[0]||2===ed[0])){ef=0;continue}if(3===ed[0]&&(!ec||ed[1]>ec[0]&&ed[1]=ei.length&&(ei=void 0),{value:ei&&ei[eu++],done:!ei}}};throw TypeError(eo?"Object is not iterable.":"Symbol.iterator is not defined.")}function eA(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef}function eT(){for(var ei=[],eo=0;eo1||eh(ei,eo)})})}function eh(ei,eo){try{eg(ec[ei](eo))}catch(ei){ew(ed[0][3],ei)}}function eg(ei){ei.value instanceof eC?Promise.resolve(ei.value.v).then(em,eb):ew(ed[0][2],ei)}function em(ei){eh("next",ei)}function eb(ei){eh("throw",ei)}function ew(ei,eo){ei(eo),ed.shift(),ed.length&&eh(ed[0][0],ed[0][1])}}function eI(ei){var eo,ea;return eo={},eu("next"),eu("throw",function(ei){throw ei}),eu("return"),eo[Symbol.iterator]=function(){return this},eo;function eu(eu,ec){eo[eu]=ei[eu]?function(eo){return(ea=!ea)?{value:eC(ei[eu](eo)),done:"return"===eu}:ec?ec(eo):eo}:ec}}function eP(ei){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var eo,ea=ei[Symbol.asyncIterator];return ea?ea.call(ei):(ei=eE(ei),eo={},eu("next"),eu("throw"),eu("return"),eo[Symbol.asyncIterator]=function(){return this},eo);function eu(ea){eo[ea]=ei[ea]&&function(eo){return new Promise(function(eu,ed){ec(eu,ed,(eo=ei[ea](eo)).done,eo.value)})}}function ec(ei,eo,ea,eu){Promise.resolve(eu).then(function(eo){ei({value:eo,done:ea})},eo)}}function eD(ei,eo){return Object.defineProperty?Object.defineProperty(ei,"raw",{value:eo}):ei.raw=eo,ei}function eN(ei){if(ei&&ei.__esModule)return ei;var eo={};if(null!=ei)for(var ea in ei)Object.hasOwnProperty.call(ei,ea)&&(eo[ea]=ei[ea]);return eo.default=ei,eo}function eM(ei){return ei&&ei.__esModule?ei:{default:ei}}function ej(ei,eo){if(!eo.has(ei))throw TypeError("attempted to get private field on non-instance");return eo.get(ei)}function eR(ei,eo,ea){if(!eo.has(ei))throw TypeError("attempted to set private field on non-instance");return eo.set(ei,ea),ea}},65727:function(ei,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.PINO_CUSTOM_CONTEXT_KEY=eo.PINO_LOGGER_DEFAULTS=void 0,eo.PINO_LOGGER_DEFAULTS={level:"info"},eo.PINO_CUSTOM_CONTEXT_KEY="custom_context"},9107:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.pino=void 0;let eu=ea(57121),ec=eu.__importDefault(ea(36559));Object.defineProperty(eo,"pino",{enumerable:!0,get:function(){return ec.default}}),eu.__exportStar(ea(65727),eo),eu.__exportStar(ea(58048),eo)},58048:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.generateChildLogger=eo.formatChildLoggerContext=eo.getLoggerContext=eo.setBrowserLoggerContext=eo.getBrowserLoggerContext=eo.getDefaultLoggerOptions=void 0;let eu=ea(65727);function ec(ei){return Object.assign(Object.assign({},ei),{level:(null==ei?void 0:ei.level)||eu.PINO_LOGGER_DEFAULTS.level})}function ed(ei,eo=eu.PINO_CUSTOM_CONTEXT_KEY){return ei[eo]||""}function ef(ei,eo,ea=eu.PINO_CUSTOM_CONTEXT_KEY){return ei[ea]=eo,ei}function eh(ei,eo=eu.PINO_CUSTOM_CONTEXT_KEY){return void 0===ei.bindings?ed(ei,eo):ei.bindings().context||""}function eg(ei,eo,ea=eu.PINO_CUSTOM_CONTEXT_KEY){let ec=eh(ei,ea),ed=ec.trim()?`${ec}/${eo}`:eo;return ed}function em(ei,eo,ea=eu.PINO_CUSTOM_CONTEXT_KEY){let ec=eg(ei,eo,ea),ed=ei.child({context:ec});return ef(ed,ec,ea)}eo.getDefaultLoggerOptions=ec,eo.getBrowserLoggerContext=ed,eo.setBrowserLoggerContext=ef,eo.getLoggerContext=eh,eo.formatChildLoggerContext=eg,eo.generateChildLogger=em},57121:function(ei,eo,ea){"use strict";ea.r(eo),ea.d(eo,{__assign:function(){return ed},__asyncDelegator:function(){return eI},__asyncGenerator:function(){return eO},__asyncValues:function(){return eP},__await:function(){return eC},__awaiter:function(){return eb},__classPrivateFieldGet:function(){return ej},__classPrivateFieldSet:function(){return eR},__createBinding:function(){return e_},__decorate:function(){return eh},__exportStar:function(){return eS},__extends:function(){return ec},__generator:function(){return ew},__importDefault:function(){return eM},__importStar:function(){return eN},__makeTemplateObject:function(){return eD},__metadata:function(){return em},__param:function(){return eg},__read:function(){return eA},__rest:function(){return ef},__spread:function(){return eT},__spreadArrays:function(){return ek},__values:function(){return eE}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var eu=function(ei,eo){return(eu=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(ei,eo){ei.__proto__=eo}||function(ei,eo){for(var ea in eo)eo.hasOwnProperty(ea)&&(ei[ea]=eo[ea])})(ei,eo)};function ec(ei,eo){function ea(){this.constructor=ei}eu(ei,eo),ei.prototype=null===eo?Object.create(eo):(ea.prototype=eo.prototype,new ea)}var ed=function(){return(ed=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;eaeo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function eh(ei,eo,ea,eu){var ec,ed=arguments.length,ef=ed<3?eo:null===eu?eu=Object.getOwnPropertyDescriptor(eo,ea):eu;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ef=Reflect.decorate(ei,eo,ea,eu);else for(var eh=ei.length-1;eh>=0;eh--)(ec=ei[eh])&&(ef=(ed<3?ec(ef):ed>3?ec(eo,ea,ef):ec(eo,ea))||ef);return ed>3&&ef&&Object.defineProperty(eo,ea,ef),ef}function eg(ei,eo){return function(ea,eu){eo(ea,eu,ei)}}function em(ei,eo){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ei,eo)}function eb(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})}function ew(ei,eo){var ea,eu,ec,ed,ef={label:0,sent:function(){if(1&ec[0])throw ec[1];return ec[1]},trys:[],ops:[]};return ed={next:eh(0),throw:eh(1),return:eh(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function eh(ei){return function(eo){return eg([ei,eo])}}function eg(ed){if(ea)throw TypeError("Generator is already executing.");for(;ef;)try{if(ea=1,eu&&(ec=2&ed[0]?eu.return:ed[0]?eu.throw||((ec=eu.return)&&ec.call(eu),0):eu.next)&&!(ec=ec.call(eu,ed[1])).done)return ec;switch(eu=0,ec&&(ed=[2&ed[0],ec.value]),ed[0]){case 0:case 1:ec=ed;break;case 4:return ef.label++,{value:ed[1],done:!1};case 5:ef.label++,eu=ed[1],ed=[0];continue;case 7:ed=ef.ops.pop(),ef.trys.pop();continue;default:if(!(ec=(ec=ef.trys).length>0&&ec[ec.length-1])&&(6===ed[0]||2===ed[0])){ef=0;continue}if(3===ed[0]&&(!ec||ed[1]>ec[0]&&ed[1]=ei.length&&(ei=void 0),{value:ei&&ei[eu++],done:!ei}}};throw TypeError(eo?"Object is not iterable.":"Symbol.iterator is not defined.")}function eA(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef}function eT(){for(var ei=[],eo=0;eo1||eh(ei,eo)})})}function eh(ei,eo){try{eg(ec[ei](eo))}catch(ei){ew(ed[0][3],ei)}}function eg(ei){ei.value instanceof eC?Promise.resolve(ei.value.v).then(em,eb):ew(ed[0][2],ei)}function em(ei){eh("next",ei)}function eb(ei){eh("throw",ei)}function ew(ei,eo){ei(eo),ed.shift(),ed.length&&eh(ed[0][0],ed[0][1])}}function eI(ei){var eo,ea;return eo={},eu("next"),eu("throw",function(ei){throw ei}),eu("return"),eo[Symbol.iterator]=function(){return this},eo;function eu(eu,ec){eo[eu]=ei[eu]?function(eo){return(ea=!ea)?{value:eC(ei[eu](eo)),done:"return"===eu}:ec?ec(eo):eo}:ec}}function eP(ei){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var eo,ea=ei[Symbol.asyncIterator];return ea?ea.call(ei):(ei=eE(ei),eo={},eu("next"),eu("throw"),eu("return"),eo[Symbol.asyncIterator]=function(){return this},eo);function eu(ea){eo[ea]=ei[ea]&&function(eo){return new Promise(function(eu,ed){ec(eu,ed,(eo=ei[ea](eo)).done,eo.value)})}}function ec(ei,eo,ea,eu){Promise.resolve(eu).then(function(eo){ei({value:eo,done:ea})},eo)}}function eD(ei,eo){return Object.defineProperty?Object.defineProperty(ei,"raw",{value:eo}):ei.raw=eo,ei}function eN(ei){if(ei&&ei.__esModule)return ei;var eo={};if(null!=ei)for(var ea in ei)Object.hasOwnProperty.call(ei,ea)&&(eo[ea]=ei[ea]);return eo.default=ei,eo}function eM(ei){return ei&&ei.__esModule?ei:{default:ei}}function ej(ei,eo){if(!eo.has(ei))throw TypeError("attempted to get private field on non-instance");return eo.get(ei)}function eR(ei,eo,ea){if(!eo.has(ei))throw TypeError("attempted to set private field on non-instance");return eo.set(ei,ea),ea}},61882:function(){},43014:function(){},36900:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});let eu=ea(30004);eu.__exportStar(ea(46869),eo),eu.__exportStar(ea(88033),eo)},46869:function(ei,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.ONE_THOUSAND=eo.ONE_HUNDRED=void 0,eo.ONE_HUNDRED=100,eo.ONE_THOUSAND=1e3},88033:function(ei,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.ONE_YEAR=eo.FOUR_WEEKS=eo.THREE_WEEKS=eo.TWO_WEEKS=eo.ONE_WEEK=eo.THIRTY_DAYS=eo.SEVEN_DAYS=eo.FIVE_DAYS=eo.THREE_DAYS=eo.ONE_DAY=eo.TWENTY_FOUR_HOURS=eo.TWELVE_HOURS=eo.SIX_HOURS=eo.THREE_HOURS=eo.ONE_HOUR=eo.SIXTY_MINUTES=eo.THIRTY_MINUTES=eo.TEN_MINUTES=eo.FIVE_MINUTES=eo.ONE_MINUTE=eo.SIXTY_SECONDS=eo.THIRTY_SECONDS=eo.TEN_SECONDS=eo.FIVE_SECONDS=eo.ONE_SECOND=void 0,eo.ONE_SECOND=1,eo.FIVE_SECONDS=5,eo.TEN_SECONDS=10,eo.THIRTY_SECONDS=30,eo.SIXTY_SECONDS=60,eo.ONE_MINUTE=eo.SIXTY_SECONDS,eo.FIVE_MINUTES=5*eo.ONE_MINUTE,eo.TEN_MINUTES=10*eo.ONE_MINUTE,eo.THIRTY_MINUTES=30*eo.ONE_MINUTE,eo.SIXTY_MINUTES=60*eo.ONE_MINUTE,eo.ONE_HOUR=eo.SIXTY_MINUTES,eo.THREE_HOURS=3*eo.ONE_HOUR,eo.SIX_HOURS=6*eo.ONE_HOUR,eo.TWELVE_HOURS=12*eo.ONE_HOUR,eo.TWENTY_FOUR_HOURS=24*eo.ONE_HOUR,eo.ONE_DAY=eo.TWENTY_FOUR_HOURS,eo.THREE_DAYS=3*eo.ONE_DAY,eo.FIVE_DAYS=5*eo.ONE_DAY,eo.SEVEN_DAYS=7*eo.ONE_DAY,eo.THIRTY_DAYS=30*eo.ONE_DAY,eo.ONE_WEEK=eo.SEVEN_DAYS,eo.TWO_WEEKS=2*eo.ONE_WEEK,eo.THREE_WEEKS=3*eo.ONE_WEEK,eo.FOUR_WEEKS=4*eo.ONE_WEEK,eo.ONE_YEAR=365*eo.ONE_DAY},66736:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});let eu=ea(30004);eu.__exportStar(ea(44273),eo),eu.__exportStar(ea(47001),eo),eu.__exportStar(ea(52939),eo),eu.__exportStar(ea(36900),eo)},52939:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});let eu=ea(30004);eu.__exportStar(ea(88766),eo)},88766:function(ei,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.IWatch=void 0;class ea{}eo.IWatch=ea},83207:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.fromMiliseconds=eo.toMiliseconds=void 0;let eu=ea(36900);function ec(ei){return ei*eu.ONE_THOUSAND}function ed(ei){return Math.floor(ei/eu.ONE_THOUSAND)}eo.toMiliseconds=ec,eo.fromMiliseconds=ed},83873:function(ei,eo){"use strict";function ea(ei){return new Promise(eo=>{setTimeout(()=>{eo(!0)},ei)})}Object.defineProperty(eo,"__esModule",{value:!0}),eo.delay=void 0,eo.delay=ea},44273:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0});let eu=ea(30004);eu.__exportStar(ea(83873),eo),eu.__exportStar(ea(83207),eo)},47001:function(ei,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.Watch=void 0;class ea{constructor(){this.timestamps=new Map}start(ei){if(this.timestamps.has(ei))throw Error(`Watch already started for label: ${ei}`);this.timestamps.set(ei,{started:Date.now()})}stop(ei){let eo=this.get(ei);if(void 0!==eo.elapsed)throw Error(`Watch already stopped for label: ${ei}`);let ea=Date.now()-eo.started;this.timestamps.set(ei,{started:eo.started,elapsed:ea})}get(ei){let eo=this.timestamps.get(ei);if(void 0===eo)throw Error(`No timestamp found for label: ${ei}`);return eo}elapsed(ei){let eo=this.get(ei),ea=eo.elapsed||Date.now()-eo.started;return ea}}eo.Watch=ea,eo.default=ea},30004:function(ei,eo,ea){"use strict";ea.r(eo),ea.d(eo,{__assign:function(){return ed},__asyncDelegator:function(){return eI},__asyncGenerator:function(){return eO},__asyncValues:function(){return eP},__await:function(){return eC},__awaiter:function(){return eb},__classPrivateFieldGet:function(){return ej},__classPrivateFieldSet:function(){return eR},__createBinding:function(){return e_},__decorate:function(){return eh},__exportStar:function(){return eS},__extends:function(){return ec},__generator:function(){return ew},__importDefault:function(){return eM},__importStar:function(){return eN},__makeTemplateObject:function(){return eD},__metadata:function(){return em},__param:function(){return eg},__read:function(){return eA},__rest:function(){return ef},__spread:function(){return eT},__spreadArrays:function(){return ek},__values:function(){return eE}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var eu=function(ei,eo){return(eu=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(ei,eo){ei.__proto__=eo}||function(ei,eo){for(var ea in eo)eo.hasOwnProperty(ea)&&(ei[ea]=eo[ea])})(ei,eo)};function ec(ei,eo){function ea(){this.constructor=ei}eu(ei,eo),ei.prototype=null===eo?Object.create(eo):(ea.prototype=eo.prototype,new ea)}var ed=function(){return(ed=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;eaeo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function eh(ei,eo,ea,eu){var ec,ed=arguments.length,ef=ed<3?eo:null===eu?eu=Object.getOwnPropertyDescriptor(eo,ea):eu;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ef=Reflect.decorate(ei,eo,ea,eu);else for(var eh=ei.length-1;eh>=0;eh--)(ec=ei[eh])&&(ef=(ed<3?ec(ef):ed>3?ec(eo,ea,ef):ec(eo,ea))||ef);return ed>3&&ef&&Object.defineProperty(eo,ea,ef),ef}function eg(ei,eo){return function(ea,eu){eo(ea,eu,ei)}}function em(ei,eo){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ei,eo)}function eb(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})}function ew(ei,eo){var ea,eu,ec,ed,ef={label:0,sent:function(){if(1&ec[0])throw ec[1];return ec[1]},trys:[],ops:[]};return ed={next:eh(0),throw:eh(1),return:eh(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function eh(ei){return function(eo){return eg([ei,eo])}}function eg(ed){if(ea)throw TypeError("Generator is already executing.");for(;ef;)try{if(ea=1,eu&&(ec=2&ed[0]?eu.return:ed[0]?eu.throw||((ec=eu.return)&&ec.call(eu),0):eu.next)&&!(ec=ec.call(eu,ed[1])).done)return ec;switch(eu=0,ec&&(ed=[2&ed[0],ec.value]),ed[0]){case 0:case 1:ec=ed;break;case 4:return ef.label++,{value:ed[1],done:!1};case 5:ef.label++,eu=ed[1],ed=[0];continue;case 7:ed=ef.ops.pop(),ef.trys.pop();continue;default:if(!(ec=(ec=ef.trys).length>0&&ec[ec.length-1])&&(6===ed[0]||2===ed[0])){ef=0;continue}if(3===ed[0]&&(!ec||ed[1]>ec[0]&&ed[1]=ei.length&&(ei=void 0),{value:ei&&ei[eu++],done:!ei}}};throw TypeError(eo?"Object is not iterable.":"Symbol.iterator is not defined.")}function eA(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef}function eT(){for(var ei=[],eo=0;eo1||eh(ei,eo)})})}function eh(ei,eo){try{eg(ec[ei](eo))}catch(ei){ew(ed[0][3],ei)}}function eg(ei){ei.value instanceof eC?Promise.resolve(ei.value.v).then(em,eb):ew(ed[0][2],ei)}function em(ei){eh("next",ei)}function eb(ei){eh("throw",ei)}function ew(ei,eo){ei(eo),ed.shift(),ed.length&&eh(ed[0][0],ed[0][1])}}function eI(ei){var eo,ea;return eo={},eu("next"),eu("throw",function(ei){throw ei}),eu("return"),eo[Symbol.iterator]=function(){return this},eo;function eu(eu,ec){eo[eu]=ei[eu]?function(eo){return(ea=!ea)?{value:eC(ei[eu](eo)),done:"return"===eu}:ec?ec(eo):eo}:ec}}function eP(ei){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var eo,ea=ei[Symbol.asyncIterator];return ea?ea.call(ei):(ei=eE(ei),eo={},eu("next"),eu("throw"),eu("return"),eo[Symbol.asyncIterator]=function(){return this},eo);function eu(ea){eo[ea]=ei[ea]&&function(eo){return new Promise(function(eu,ed){ec(eu,ed,(eo=ei[ea](eo)).done,eo.value)})}}function ec(ei,eo,ea,eu){Promise.resolve(eu).then(function(eo){ei({value:eo,done:ea})},eo)}}function eD(ei,eo){return Object.defineProperty?Object.defineProperty(ei,"raw",{value:eo}):ei.raw=eo,ei}function eN(ei){if(ei&&ei.__esModule)return ei;var eo={};if(null!=ei)for(var ea in ei)Object.hasOwnProperty.call(ei,ea)&&(eo[ea]=ei[ea]);return eo.default=ei,eo}function eM(ei){return ei&&ei.__esModule?ei:{default:ei}}function ej(ei,eo){if(!eo.has(ei))throw TypeError("attempted to get private field on non-instance");return eo.get(ei)}function eR(ei,eo,ea){if(!eo.has(ei))throw TypeError("attempted to set private field on non-instance");return eo.set(ei,ea),ea}},62873:function(ei,eo){"use strict";function ea(ei){let eo;return"undefined"!=typeof window&&void 0!==window[ei]&&(eo=window[ei]),eo}function eu(ei){let eo=ea(ei);if(!eo)throw Error(`${ei} is not defined in Window`);return eo}function ec(){return eu("document")}function ed(){return ea("document")}function ef(){return eu("navigator")}function eh(){return ea("navigator")}function eg(){return eu("location")}function em(){return ea("location")}function eb(){return eu("crypto")}function ew(){return ea("crypto")}function e_(){return eu("localStorage")}function eS(){return ea("localStorage")}Object.defineProperty(eo,"__esModule",{value:!0}),eo.getLocalStorage=eo.getLocalStorageOrThrow=eo.getCrypto=eo.getCryptoOrThrow=eo.getLocation=eo.getLocationOrThrow=eo.getNavigator=eo.getNavigatorOrThrow=eo.getDocument=eo.getDocumentOrThrow=eo.getFromWindowOrThrow=eo.getFromWindow=void 0,eo.getFromWindow=ea,eo.getFromWindowOrThrow=eu,eo.getDocumentOrThrow=ec,eo.getDocument=ed,eo.getNavigatorOrThrow=ef,eo.getNavigator=eh,eo.getLocationOrThrow=eg,eo.getLocation=em,eo.getCryptoOrThrow=eb,eo.getCrypto=ew,eo.getLocalStorageOrThrow=e_,eo.getLocalStorage=eS},65755:function(ei,eo,ea){"use strict";var eu;eu={value:!0},eo.D=void 0;let ec=ea(62873);function ed(){let ei,eo;try{ei=ec.getDocumentOrThrow(),eo=ec.getLocationOrThrow()}catch(ei){return null}function ea(){let ea=ei.getElementsByTagName("link"),eu=[];for(let ei=0;ei-1){let ei=ec.getAttribute("href");if(ei){if(-1===ei.toLowerCase().indexOf("https:")&&-1===ei.toLowerCase().indexOf("http:")&&0!==ei.indexOf("//")){let ea=eo.protocol+"//"+eo.host;if(0===ei.indexOf("/"))ea+=ei;else{let eu=eo.pathname.split("/");eu.pop();let ec=eu.join("/");ea+=ec+"/"+ei}eu.push(ea)}else if(0===ei.indexOf("//")){let ea=eo.protocol+ei;eu.push(ea)}else eu.push(ei)}}}return eu}function eu(...eo){let ea=ei.getElementsByTagName("meta");for(let ei=0;eieu.getAttribute(ei)).filter(ei=>!!ei&&eo.includes(ei));if(ec.length&&ec){let ei=eu.getAttribute("content");if(ei)return ei}}return""}function ed(){let eo=eu("name","og:site_name","og:title","twitter:title");return eo||(eo=ei.title),eo}function ef(){let ei=eu("description","og:description","twitter:description","keywords");return ei}let eh=ed(),eg=ef(),em=eo.origin,eb=ea(),ew={description:eg,url:em,icons:eb,name:eh};return ew}eo.D=ed},65096:function(ei,eo,ea){"use strict";var eu=ea(47153),ec=ea(83610),ed=ea(47531),ef=ea(74022),eh=ea(35035),eg=ea(1516),em=ea(47753),eb=ea(3978),ew=ea(42889);ei.exports=ek,ek.prototype.validate=eC,ek.prototype.compile=eO,ek.prototype.addSchema=eI,ek.prototype.addMetaSchema=eP,ek.prototype.validateSchema=eD,ek.prototype.getSchema=eM,ek.prototype.removeSchema=eL,ek.prototype.addFormat=eY,ek.prototype.errorsText=eK,ek.prototype._addSchema=eB,ek.prototype._compile=eU,ek.prototype.compileAsync=ea(42931);var e_=ea(14895);ek.prototype.addKeyword=e_.add,ek.prototype.getKeyword=e_.get,ek.prototype.removeKeyword=e_.remove,ek.prototype.validateKeyword=e_.validate;var eS=ea(87802);ek.ValidationError=eS.Validation,ek.MissingRefError=eS.MissingRef,ek.$dataMetaSchema=eb;var eE="http://json-schema.org/draft-07/schema",eA=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],eT=["/properties"];function ek(ei){if(!(this instanceof ek))return new ek(ei);ei=this._opts=ew.copy(ei)||{},e3(this),this._schemas={},this._refs={},this._fragments={},this._formats=eg(ei.format),this._cache=ei.cache||new ed,this._loadingSchemas={},this._compilations=[],this.RULES=em(),this._getId=eG(ei),ei.loopRequired=ei.loopRequired||1/0,"property"==ei.errorDataPath&&(ei._errorDataPathProperty=!0),void 0===ei.serialize&&(ei.serialize=eh),this._metaOpts=e0(this),ei.formats&&eJ(this),ei.keywords&&eQ(this),eZ(this),"object"==typeof ei.meta&&this.addMetaSchema(ei.meta),ei.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),e$(this)}function eC(ei,eo){if("string"==typeof ei){if(!(ea=this.getSchema(ei)))throw Error('no schema with key or ref "'+ei+'"')}else{var ea,eu=this._addSchema(ei);ea=eu.validate||this._compile(eu)}var ec=ea(eo);return!0!==ea.$async&&(this.errors=ea.errors),ec}function eO(ei,eo){var ea=this._addSchema(ei,void 0,eo);return ea.validate||this._compile(ea)}function eI(ei,eo,ea,eu){if(Array.isArray(ei)){for(var ed=0;ed%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,ew=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,e_=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,eS=/^(?:\/(?:[^~/]|~0|~1)*)*$/,eE=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,eA=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function eT(ei){return ei="full"==ei?"full":"fast",eu.copy(eT[ei])}function ek(ei){return ei%4==0&&(ei%100!=0||ei%400==0)}function eC(ei){var eo=ei.match(ec);if(!eo)return!1;var ea=+eo[1],eu=+eo[2],ef=+eo[3];return eu>=1&&eu<=12&&ef>=1&&ef<=(2==eu&&ek(ea)?29:ed[eu])}function eO(ei,eo){var ea=ei.match(ef);if(!ea)return!1;var eu=ea[1],ec=ea[2],ed=ea[3],eh=ea[5];return(eu<=23&&ec<=59&&ed<=59||23==eu&&59==ec&&60==ed)&&(!eo||eh)}ei.exports=eT,eT.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":eb,url:ew,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:eh,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ej,uuid:e_,"json-pointer":eS,"json-pointer-uri-fragment":eE,"relative-json-pointer":eA},eT.full={date:eC,time:eO,"date-time":eP,uri:eN,"uri-reference":em,"uri-template":eb,url:ew,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:eh,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ej,uuid:e_,"json-pointer":eS,"json-pointer-uri-fragment":eE,"relative-json-pointer":eA};var eI=/t|\s/i;function eP(ei){var eo=ei.split(eI);return 2==eo.length&&eC(eo[0])&&eO(eo[1],!0)}var eD=/\/|:/;function eN(ei){return eD.test(ei)&&eg.test(ei)}var eM=/[^\\]\\Z/;function ej(ei){if(eM.test(ei))return!1;try{return new RegExp(ei),!0}catch(ei){return!1}}},47153:function(ei,eo,ea){"use strict";var eu=ea(83610),ec=ea(42889),ed=ea(87802),ef=ea(35035),eh=ea(19508),eg=ec.ucs2length,em=ea(64063),eb=ed.Validation;function ew(ei,eo,ea,eE){var eI=this,eP=this._opts,eD=[void 0],eN={},eM=[],ej={},eR=[],eL={},eF=[];eo=eo||{schema:ei,refVal:eD,refs:eN};var eB=e_.call(this,ei,eo,eE),eU=this._compilations[eB.index];if(eB.compiling)return eU.callValidate=eK;var eG=this._formats,eV=this.RULES;try{var eH=eY(ei,eo,ea,eE);eU.validate=eH;var eW=eU.callValidate;return eW&&(eW.schema=eH.schema,eW.errors=null,eW.refs=eH.refs,eW.refVal=eH.refVal,eW.root=eH.root,eW.$async=eH.$async,eP.sourceCode&&(eW.source=eH.source)),eH}finally{eS.call(this,ei,eo,eE)}function eK(){var ei=eU.validate,eo=ei.apply(this,arguments);return eK.errors=ei.errors,eo}function eY(ei,ea,ef,e_){var eS,eE=!ea||ea&&ea.schema==ei;if(ea.schema!=eo.schema)return ew.call(eI,ei,ea,ef,e_);var ej=!0===ei.$async,eL=eh({isTop:!0,schema:ei,isRoot:eE,baseId:e_,root:ea,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:ed.MissingRef,RULES:eV,validate:eh,util:ec,resolve:eu,resolveRef:eZ,usePattern:e0,useDefault:e3,useCustomRule:e5,opts:eP,formats:eG,logger:eI.logger,self:eI});eL=eO(eD,ek)+eO(eM,eA)+eO(eR,eT)+eO(eF,eC)+eL,eP.processCode&&(eL=eP.processCode(eL,ei));try{eS=Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",eL)(eI,eV,eG,eo,eD,eR,eF,em,eg,eb),eD[0]=eS}catch(ei){throw eI.logger.error("Error compiling schema, function code:",eL),ei}return eS.schema=ei,eS.errors=null,eS.refs=eN,eS.refVal=eD,eS.root=eE?eS:ea,ej&&(eS.$async=!0),!0===eP.sourceCode&&(eS.source={code:eL,patterns:eM,defaults:eR}),eS}function eZ(ei,ec,ed){var ef,eh,eg=eN[ec=eu.url(ei,ec)];if(void 0!==eg)return eX(ef=eD[eg],eh="refVal["+eg+"]");if(!ed&&eo.refs){var em=eo.refs[ec];if(void 0!==em)return eh=e$(ec,ef=eo.refVal[em]),eX(ef,eh)}eh=e$(ec);var eb=eu.call(eI,eY,eo,ec);if(void 0===eb){var e_=ea&&ea[ec];e_&&(eb=eu.inlineRef(e_,eP.inlineRefs)?e_:ew.call(eI,e_,eo,ea,ei))}if(void 0!==eb)return eQ(ec,eb),eX(eb,eh);eJ(ec)}function e$(ei,eo){var ea=eD.length;return eD[ea]=eo,eN[ei]=ea,"refVal"+ea}function eJ(ei){delete eN[ei]}function eQ(ei,eo){eD[eN[ei]]=eo}function eX(ei,eo){return"object"==typeof ei||"boolean"==typeof ei?{code:eo,schema:ei,inline:!0}:{code:eo,$async:ei&&!!ei.$async}}function e0(ei){var eo=ej[ei];return void 0===eo&&(eo=ej[ei]=eM.length,eM[eo]=ei),"pattern"+eo}function e3(ei){switch(typeof ei){case"boolean":case"number":return""+ei;case"string":return ec.toQuotedString(ei);case"object":if(null===ei)return"null";var eo=ef(ei),ea=eL[eo];return void 0===ea&&(ea=eL[eo]=eR.length,eR[ea]=ei),"default"+ea}}function e5(ei,eo,ea,eu){if(!1!==eI._opts.validateSchema){var ec,ed=ei.definition.dependencies;if(ed&&!ed.every(function(ei){return Object.prototype.hasOwnProperty.call(ea,ei)}))throw Error("parent schema must have all required keywords: "+ed.join(","));var ef=ei.definition.validateSchema;if(ef&&!ef(eo)){var eh="keyword schema is invalid: "+eI.errorsText(ef.errors);if("log"==eI._opts.validateSchema)eI.logger.error(eh);else throw Error(eh)}}var eg=ei.definition.compile,em=ei.definition.inline,eb=ei.definition.macro;if(eg)ec=eg.call(eI,eo,ea,eu);else if(eb)ec=eb.call(eI,eo,ea,eu),!1!==eP.validateSchema&&eI.validateSchema(ec,!0);else if(em)ec=em.call(eI,eu,ei.keyword,eo,ea);else if(!(ec=ei.definition.validate))return;if(void 0===ec)throw Error('custom keyword "'+ei.keyword+'"failed to compile');var ew=eF.length;return eF[ew]=ec,{code:"customRule"+ew,validate:ec}}}function e_(ei,eo,ea){var eu=eE.call(this,ei,eo,ea);return eu>=0?{index:eu,compiling:!0}:(eu=this._compilations.length,this._compilations[eu]={schema:ei,root:eo,baseId:ea},{index:eu,compiling:!1})}function eS(ei,eo,ea){var eu=eE.call(this,ei,eo,ea);eu>=0&&this._compilations.splice(eu,1)}function eE(ei,eo,ea){for(var eu=0;eu=55296&&eo<=56319&&ec=eo)throw Error("Cannot access property/index "+eu+" levels up, current level is "+eo);return ea[eo-eu]}if(eu>eo)throw Error("Cannot access data "+eu+" levels up, current level is "+eo);if(ed="data"+(eo-eu||""),!ec)return ed}for(var eu,ec,ed,ef,eh=ed,eg=ec.split("/"),em=0;em",eO=eE?">":"<",eu=void 0;if(!(eS||"number"==typeof eg||void 0===eg))throw Error(eo+" must be number");if(!(ek||void 0===eT||"number"==typeof eT||"boolean"==typeof eT))throw Error(eA+" must be number or boolean");if(ek){var eI=ei.util.getData(eT.$data,eh,ei.dataPathArr),eP="exclusive"+ef,eD="exclType"+ef,eN="exclIsNumber"+ef,eM="op"+ef,ej="' + "+eM+" + '";ed+=" var schemaExcl"+ef+" = "+eI+"; "+(" var "+eP+"; var "+eD+" = typeof "+(eI="schemaExcl"+ef)+"; if ("+eD+" != 'boolean' && "+eD+" != 'undefined' && ")+eD+" != 'number') { ";var eu=eA,eR=eR||[];eR.push(ed),ed="",!1!==ei.createErrors?(ed+=" { keyword: '"+(eu||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eb)+" , params: {} ",!1!==ei.opts.messages&&(ed+=" , message: '"+eA+" should be boolean' "),ei.opts.verbose&&(ed+=" , schema: validate.schema"+em+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+e_+" "),ed+=" } "):ed+=" {} ";var eL=ed;ed=eR.pop(),!ei.compositeRule&&ew?ei.async?ed+=" throw new ValidationError(["+eL+"]); ":ed+=" validate.errors = ["+eL+"]; return false; ":ed+=" var err = "+eL+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ed+=" } else if ( ",eS&&(ed+=" ("+ec+" !== undefined && typeof "+ec+" != 'number') || "),ed+=" "+eD+" == 'number' ? ( ("+eP+" = "+ec+" === undefined || "+eI+" "+eC+"= "+ec+") ? "+e_+" "+eO+"= "+eI+" : "+e_+" "+eO+" "+ec+" ) : ( ("+eP+" = "+eI+" === true) ? "+e_+" "+eO+"= "+ec+" : "+e_+" "+eO+" "+ec+" ) || "+e_+" !== "+e_+") { var op"+ef+" = "+eP+" ? '"+eC+"' : '"+eC+"='; ",void 0===eg&&(eu=eA,eb=ei.errSchemaPath+"/"+eA,ec=eI,eS=ek)}else{var eN="number"==typeof eT,ej=eC;if(eN&&eS){var eM="'"+ej+"'";ed+=" if ( ",eS&&(ed+=" ("+ec+" !== undefined && typeof "+ec+" != 'number') || "),ed+=" ( "+ec+" === undefined || "+eT+" "+eC+"= "+ec+" ? "+e_+" "+eO+"= "+eT+" : "+e_+" "+eO+" "+ec+" ) || "+e_+" !== "+e_+") { "}else{eN&&void 0===eg?(eP=!0,eu=eA,eb=ei.errSchemaPath+"/"+eA,ec=eT,eO+="="):(eN&&(ec=Math[eE?"min":"max"](eT,eg)),eT===(!eN||ec)?(eP=!0,eu=eA,eb=ei.errSchemaPath+"/"+eA,eO+="="):(eP=!1,ej+="="));var eM="'"+ej+"'";ed+=" if ( ",eS&&(ed+=" ("+ec+" !== undefined && typeof "+ec+" != 'number') || "),ed+=" "+e_+" "+eO+" "+ec+" || "+e_+" !== "+e_+") { "}}eu=eu||eo;var eR=eR||[];eR.push(ed),ed="",!1!==ei.createErrors?(ed+=" { keyword: '"+(eu||"_limit")+"' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eb)+" , params: { comparison: "+eM+", limit: "+ec+", exclusive: "+eP+" } ",!1!==ei.opts.messages&&(ed+=" , message: 'should be "+ej+" ",eS?ed+="' + "+ec:ed+=""+ec+"'"),ei.opts.verbose&&(ed+=" , schema: ",eS?ed+="validate.schema"+em:ed+=""+eg,ed+=" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+e_+" "),ed+=" } "):ed+=" {} ";var eL=ed;return ed=eR.pop(),!ei.compositeRule&&ew?ei.async?ed+=" throw new ValidationError(["+eL+"]); ":ed+=" validate.errors = ["+eL+"]; return false; ":ed+=" var err = "+eL+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ed+=" } ",ew&&(ed+=" else { "),ed}},33038:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu,ec,ed=" ",ef=ei.level,eh=ei.dataLevel,eg=ei.schema[eo],em=ei.schemaPath+ei.util.getProperty(eo),eb=ei.errSchemaPath+"/"+eo,ew=!ei.opts.allErrors,e_="data"+(eh||""),eS=ei.opts.$data&&eg&&eg.$data;if(eS?(ed+=" var schema"+ef+" = "+ei.util.getData(eg.$data,eh,ei.dataPathArr)+"; ",ec="schema"+ef):ec=eg,!(eS||"number"==typeof eg))throw Error(eo+" must be number");var eE="maxItems"==eo?">":"<";ed+="if ( ",eS&&(ed+=" ("+ec+" !== undefined && typeof "+ec+" != 'number') || "),ed+=" "+e_+".length "+eE+" "+ec+") { ";var eu=eo,eA=eA||[];eA.push(ed),ed="",!1!==ei.createErrors?(ed+=" { keyword: '"+(eu||"_limitItems")+"' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eb)+" , params: { limit: "+ec+" } ",!1!==ei.opts.messages&&(ed+=" , message: 'should NOT have ","maxItems"==eo?ed+="more":ed+="fewer",ed+=" than ",eS?ed+="' + "+ec+" + '":ed+=""+eg,ed+=" items' "),ei.opts.verbose&&(ed+=" , schema: ",eS?ed+="validate.schema"+em:ed+=""+eg,ed+=" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+e_+" "),ed+=" } "):ed+=" {} ";var eT=ed;return ed=eA.pop(),!ei.compositeRule&&ew?ei.async?ed+=" throw new ValidationError(["+eT+"]); ":ed+=" validate.errors = ["+eT+"]; return false; ":ed+=" var err = "+eT+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ed+="} ",ew&&(ed+=" else { "),ed}},80425:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu,ec,ed=" ",ef=ei.level,eh=ei.dataLevel,eg=ei.schema[eo],em=ei.schemaPath+ei.util.getProperty(eo),eb=ei.errSchemaPath+"/"+eo,ew=!ei.opts.allErrors,e_="data"+(eh||""),eS=ei.opts.$data&&eg&&eg.$data;if(eS?(ed+=" var schema"+ef+" = "+ei.util.getData(eg.$data,eh,ei.dataPathArr)+"; ",ec="schema"+ef):ec=eg,!(eS||"number"==typeof eg))throw Error(eo+" must be number");var eE="maxLength"==eo?">":"<";ed+="if ( ",eS&&(ed+=" ("+ec+" !== undefined && typeof "+ec+" != 'number') || "),!1===ei.opts.unicode?ed+=" "+e_+".length ":ed+=" ucs2length("+e_+") ",ed+=" "+eE+" "+ec+") { ";var eu=eo,eA=eA||[];eA.push(ed),ed="",!1!==ei.createErrors?(ed+=" { keyword: '"+(eu||"_limitLength")+"' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eb)+" , params: { limit: "+ec+" } ",!1!==ei.opts.messages&&(ed+=" , message: 'should NOT be ","maxLength"==eo?ed+="longer":ed+="shorter",ed+=" than ",eS?ed+="' + "+ec+" + '":ed+=""+eg,ed+=" characters' "),ei.opts.verbose&&(ed+=" , schema: ",eS?ed+="validate.schema"+em:ed+=""+eg,ed+=" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+e_+" "),ed+=" } "):ed+=" {} ";var eT=ed;return ed=eA.pop(),!ei.compositeRule&&ew?ei.async?ed+=" throw new ValidationError(["+eT+"]); ":ed+=" validate.errors = ["+eT+"]; return false; ":ed+=" var err = "+eT+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ed+="} ",ew&&(ed+=" else { "),ed}},78204:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu,ec,ed=" ",ef=ei.level,eh=ei.dataLevel,eg=ei.schema[eo],em=ei.schemaPath+ei.util.getProperty(eo),eb=ei.errSchemaPath+"/"+eo,ew=!ei.opts.allErrors,e_="data"+(eh||""),eS=ei.opts.$data&&eg&&eg.$data;if(eS?(ed+=" var schema"+ef+" = "+ei.util.getData(eg.$data,eh,ei.dataPathArr)+"; ",ec="schema"+ef):ec=eg,!(eS||"number"==typeof eg))throw Error(eo+" must be number");var eE="maxProperties"==eo?">":"<";ed+="if ( ",eS&&(ed+=" ("+ec+" !== undefined && typeof "+ec+" != 'number') || "),ed+=" Object.keys("+e_+").length "+eE+" "+ec+") { ";var eu=eo,eA=eA||[];eA.push(ed),ed="",!1!==ei.createErrors?(ed+=" { keyword: '"+(eu||"_limitProperties")+"' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eb)+" , params: { limit: "+ec+" } ",!1!==ei.opts.messages&&(ed+=" , message: 'should NOT have ","maxProperties"==eo?ed+="more":ed+="fewer",ed+=" than ",eS?ed+="' + "+ec+" + '":ed+=""+eg,ed+=" properties' "),ei.opts.verbose&&(ed+=" , schema: ",eS?ed+="validate.schema"+em:ed+=""+eg,ed+=" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+e_+" "),ed+=" } "):ed+=" {} ";var eT=ed;return ed=eA.pop(),!ei.compositeRule&&ew?ei.async?ed+=" throw new ValidationError(["+eT+"]); ":ed+=" validate.errors = ["+eT+"]; return false; ":ed+=" var err = "+eT+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ed+="} ",ew&&(ed+=" else { "),ed}},42988:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu=" ",ec=ei.schema[eo],ed=ei.schemaPath+ei.util.getProperty(eo),ef=ei.errSchemaPath+"/"+eo,eh=!ei.opts.allErrors,eg=ei.util.copy(ei),em="";eg.level++;var eb="valid"+eg.level,ew=eg.baseId,e_=!0,eS=ec;if(eS)for(var eE,eA=-1,eT=eS.length-1;eA0||!1===eE:ei.util.schemaHasRules(eE,ei.RULES.all))&&(e_=!1,eg.schema=eE,eg.schemaPath=ed+"["+eA+"]",eg.errSchemaPath=ef+"/"+eA,eu+=" "+ei.validate(eg)+" ",eg.baseId=ew,eh&&(eu+=" if ("+eb+") { ",em+="}"));return eh&&(e_?eu+=" if (true) { ":eu+=" "+em.slice(0,-1)+" "),eu}},39996:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu=" ",ec=ei.level,ed=ei.dataLevel,ef=ei.schema[eo],eh=ei.schemaPath+ei.util.getProperty(eo),eg=ei.errSchemaPath+"/"+eo,em=!ei.opts.allErrors,eb="data"+(ed||""),ew="valid"+ec,e_="errs__"+ec,eS=ei.util.copy(ei),eE="";eS.level++;var eA="valid"+eS.level;if(ef.every(function(eo){return ei.opts.strictKeywords?"object"==typeof eo&&Object.keys(eo).length>0||!1===eo:ei.util.schemaHasRules(eo,ei.RULES.all)})){var eT=eS.baseId;eu+=" var "+e_+" = errors; var "+ew+" = false; ";var ek=ei.compositeRule;ei.compositeRule=eS.compositeRule=!0;var eC=ef;if(eC)for(var eO,eI=-1,eP=eC.length-1;eI0||!1===ef:ei.util.schemaHasRules(ef,ei.RULES.all);if(eu+="var "+e_+" = errors;var "+ew+";",eI){var eP=ei.compositeRule;ei.compositeRule=eS.compositeRule=!0,eS.schema=ef,eS.schemaPath=eh,eS.errSchemaPath=eg,eu+=" var "+eA+" = false; for (var "+eT+" = 0; "+eT+" < "+eb+".length; "+eT+"++) { ",eS.errorPath=ei.util.getPathExpr(ei.errorPath,eT,ei.opts.jsonPointers,!0);var eD=eb+"["+eT+"]";eS.dataPathArr[ek]=eT;var eN=ei.validate(eS);eS.baseId=eO,2>ei.util.varOccurences(eN,eC)?eu+=" "+ei.util.varReplace(eN,eC,eD)+" ":eu+=" var "+eC+" = "+eD+"; "+eN+" ",eu+=" if ("+eA+") break; } ",ei.compositeRule=eS.compositeRule=eP,eu+=" "+eE+" if (!"+eA+") {"}else eu+=" if ("+eb+".length == 0) {";var eM=eM||[];eM.push(eu),eu="",!1!==ei.createErrors?(eu+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eg)+" , params: {} ",!1!==ei.opts.messages&&(eu+=" , message: 'should contain a valid item' "),ei.opts.verbose&&(eu+=" , schema: validate.schema"+eh+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+eb+" "),eu+=" } "):eu+=" {} ";var ej=eu;return eu=eM.pop(),!ei.compositeRule&&em?ei.async?eu+=" throw new ValidationError(["+ej+"]); ":eu+=" validate.errors = ["+ej+"]; return false; ":eu+=" var err = "+ej+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",eu+=" } else { ",eI&&(eu+=" errors = "+e_+"; if (vErrors !== null) { if ("+e_+") vErrors.length = "+e_+"; else vErrors = null; } "),ei.opts.allErrors&&(eu+=" } "),eu}},14165:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu,ec,ed,ef,eh,eg,em,eb=" ",ew=ei.level,e_=ei.dataLevel,eS=ei.schema[eo],eE=ei.schemaPath+ei.util.getProperty(eo),eA=ei.errSchemaPath+"/"+eo,eT=!ei.opts.allErrors,ek="data"+(e_||""),eC="valid"+ew,eO="errs__"+ew,eI=ei.opts.$data&&eS&&eS.$data;eI?(eb+=" var schema"+ew+" = "+ei.util.getData(eS.$data,e_,ei.dataPathArr)+"; ",em="schema"+ew):em=eS;var eP=this,eD="definition"+ew,eN=eP.definition,eM="";if(eI&&eN.$data){eh="keywordValidate"+ew;var ej=eN.validateSchema;eb+=" var "+eD+" = RULES.custom['"+eo+"'].definition; var "+eh+" = "+eD+".validate;"}else{if(!(ef=ei.useCustomRule(eP,eS,ei.schema,ei)))return;em="validate.schema"+eE,eh=ef.code,eu=eN.compile,ec=eN.inline,ed=eN.macro}var eR=eh+".errors",eL="i"+ew,eF="ruleErr"+ew,eB=eN.async;if(eB&&!ei.async)throw Error("async keyword in sync schema");if(ec||ed||(eb+=""+eR+" = null;"),eb+="var "+eO+" = errors;var "+eC+";",eI&&eN.$data&&(eM+="}",eb+=" if ("+em+" === undefined) { "+eC+" = true; } else { ",ej&&(eM+="}",eb+=" "+eC+" = "+eD+".validateSchema("+em+"); if ("+eC+") { ")),ec)eN.statements?eb+=" "+ef.validate+" ":eb+=" "+eC+" = "+ef.validate+"; ";else if(ed){var eU=ei.util.copy(ei),eM="";eU.level++;var eG="valid"+eU.level;eU.schema=ef.validate,eU.schemaPath="";var eV=ei.compositeRule;ei.compositeRule=eU.compositeRule=!0;var eH=ei.validate(eU).replace(/validate\.schema/g,eh);ei.compositeRule=eU.compositeRule=eV,eb+=" "+eH}else{var eW=eW||[];eW.push(eb),eb=" "+eh+".call( ",ei.opts.passContext?eb+="this":eb+="self",eu||!1===eN.schema?eb+=" , "+ek+" ":eb+=" , "+em+" , "+ek+" , validate.schema"+ei.schemaPath+" ",eb+=" , (dataPath || '')",'""'!=ei.errorPath&&(eb+=" + "+ei.errorPath);var eK=e_?"data"+(e_-1||""):"parentData",eY=e_?ei.dataPathArr[e_]:"parentDataProperty",eZ=eb+=" , "+eK+" , "+eY+" , rootData ) ";eb=eW.pop(),!1===eN.errors?(eb+=" "+eC+" = ",eB&&(eb+="await "),eb+=""+eZ+"; "):eB?eb+=" var "+(eR="customErrors"+ew)+" = null; try { "+eC+" = await "+eZ+"; } catch (e) { "+eC+" = false; if (e instanceof ValidationError) "+eR+" = e.errors; else throw e; } ":eb+=" "+eR+" = null; "+eC+" = "+eZ+"; "}if(eN.modifying&&(eb+=" if ("+eK+") "+ek+" = "+eK+"["+eY+"];"),eb+=""+eM,eN.valid)eT&&(eb+=" if (true) { ");else{eb+=" if ( ",void 0===eN.valid?(eb+=" !",ed?eb+=""+eG:eb+=""+eC):eb+=" "+!eN.valid+" ",eb+=") { ",eg=eP.keyword;var eW=eW||[];eW.push(eb),eb="";var eW=eW||[];eW.push(eb),eb="",!1!==ei.createErrors?(eb+=" { keyword: '"+(eg||"custom")+"' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eA)+" , params: { keyword: '"+eP.keyword+"' } ",!1!==ei.opts.messages&&(eb+=" , message: 'should pass \""+eP.keyword+"\" keyword validation' "),ei.opts.verbose&&(eb+=" , schema: validate.schema"+eE+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+ek+" "),eb+=" } "):eb+=" {} ";var e$=eb;eb=eW.pop(),!ei.compositeRule&&eT?ei.async?eb+=" throw new ValidationError(["+e$+"]); ":eb+=" validate.errors = ["+e$+"]; return false; ":eb+=" var err = "+e$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var eJ=eb;eb=eW.pop(),ec?eN.errors?"full"!=eN.errors&&(eb+=" for (var "+eL+"="+eO+"; "+eL+"0||!1===eC:ei.util.schemaHasRules(eC,ei.RULES.all))&&(eu+=" "+eE+" = true; if ( "+eb+ei.util.getProperty(eP)+" !== undefined ",ek&&(eu+=" && Object.prototype.hasOwnProperty.call("+eb+", '"+ei.util.escapeQuotes(eP)+"') "),eu+=") { ",e_.schema=eC,e_.schemaPath=eh+ei.util.getProperty(eP),e_.errSchemaPath=eg+"/"+ei.util.escapeFragment(eP),eu+=" "+ei.validate(e_)+" ",e_.baseId=eK,eu+=" } ",em&&(eu+=" if ("+eE+") { ",eS+="}"))}return em&&(eu+=" "+eS+" if ("+ew+" == errors) {"),eu}},31740:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu,ec=" ",ed=ei.level,ef=ei.dataLevel,eh=ei.schema[eo],eg=ei.schemaPath+ei.util.getProperty(eo),em=ei.errSchemaPath+"/"+eo,eb=!ei.opts.allErrors,ew="data"+(ef||""),e_="valid"+ed,eS=ei.opts.$data&&eh&&eh.$data;eS?(ec+=" var schema"+ed+" = "+ei.util.getData(eh.$data,ef,ei.dataPathArr)+"; ",eu="schema"+ed):eu=eh;var eE="i"+ed,eA="schema"+ed;eS||(ec+=" var "+eA+" = validate.schema"+eg+";"),ec+="var "+e_+";",eS&&(ec+=" if (schema"+ed+" === undefined) "+e_+" = true; else if (!Array.isArray(schema"+ed+")) "+e_+" = false; else {"),ec+=""+e_+" = false;for (var "+eE+"=0; "+eE+"<"+eA+".length; "+eE+"++) if (equal("+ew+", "+eA+"["+eE+"])) { "+e_+" = true; break; }",eS&&(ec+=" } "),ec+=" if (!"+e_+") { ";var eT=eT||[];eT.push(ec),ec="",!1!==ei.createErrors?(ec+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(em)+" , params: { allowedValues: schema"+ed+" } ",!1!==ei.opts.messages&&(ec+=" , message: 'should be equal to one of the allowed values' "),ei.opts.verbose&&(ec+=" , schema: validate.schema"+eg+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+ew+" "),ec+=" } "):ec+=" {} ";var ek=ec;return ec=eT.pop(),!ei.compositeRule&&eb?ei.async?ec+=" throw new ValidationError(["+ek+"]); ":ec+=" validate.errors = ["+ek+"]; return false; ":ec+=" var err = "+ek+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ec+=" }",eb&&(ec+=" else { "),ec}},39014:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu=" ",ec=ei.level,ed=ei.dataLevel,ef=ei.schema[eo],eh=ei.schemaPath+ei.util.getProperty(eo),eg=ei.errSchemaPath+"/"+eo,em=!ei.opts.allErrors,eb="data"+(ed||"");if(!1===ei.opts.format)return em&&(eu+=" if (true) { "),eu;var ew,e_=ei.opts.$data&&ef&&ef.$data;e_?(eu+=" var schema"+ec+" = "+ei.util.getData(ef.$data,ed,ei.dataPathArr)+"; ",ew="schema"+ec):ew=ef;var eS=ei.opts.unknownFormats,eE=Array.isArray(eS);if(e_){var eA="format"+ec,eT="isObject"+ec,ek="formatType"+ec;eu+=" var "+eA+" = formats["+ew+"]; var "+eT+" = typeof "+eA+" == 'object' && !("+eA+" instanceof RegExp) && "+eA+".validate; var "+ek+" = "+eT+" && "+eA+".type || 'string'; if ("+eT+") { ",ei.async&&(eu+=" var async"+ec+" = "+eA+".async; "),eu+=" "+eA+" = "+eA+".validate; } if ( ",e_&&(eu+=" ("+ew+" !== undefined && typeof "+ew+" != 'string') || "),eu+=" (","ignore"!=eS&&(eu+=" ("+ew+" && !"+eA+" ",eE&&(eu+=" && self._opts.unknownFormats.indexOf("+ew+") == -1 "),eu+=") || "),eu+=" ("+eA+" && "+ek+" == '"+ea+"' && !(typeof "+eA+" == 'function' ? ",ei.async?eu+=" (async"+ec+" ? await "+eA+"("+eb+") : "+eA+"("+eb+")) ":eu+=" "+eA+"("+eb+") ",eu+=" : "+eA+".test("+eb+"))))) {"}else{var eA=ei.formats[ef];if(!eA){if("ignore"==eS)return ei.logger.warn('unknown format "'+ef+'" ignored in schema at path "'+ei.errSchemaPath+'"'),em&&(eu+=" if (true) { "),eu;if(eE&&eS.indexOf(ef)>=0)return em&&(eu+=" if (true) { "),eu;throw Error('unknown format "'+ef+'" is used in schema at path "'+ei.errSchemaPath+'"')}var eT="object"==typeof eA&&!(eA instanceof RegExp)&&eA.validate,ek=eT&&eA.type||"string";if(eT){var eC=!0===eA.async;eA=eA.validate}if(ek!=ea)return em&&(eu+=" if (true) { "),eu;if(eC){if(!ei.async)throw Error("async format in sync schema");var eO="formats"+ei.util.getProperty(ef)+".validate";eu+=" if (!(await "+eO+"("+eb+"))) { "}else{eu+=" if (! ";var eO="formats"+ei.util.getProperty(ef);eT&&(eO+=".validate"),"function"==typeof eA?eu+=" "+eO+"("+eb+") ":eu+=" "+eO+".test("+eb+") ",eu+=") { "}}var eI=eI||[];eI.push(eu),eu="",!1!==ei.createErrors?(eu+=" { keyword: 'format' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eg)+" , params: { format: ",e_?eu+=""+ew:eu+=""+ei.util.toQuotedString(ef),eu+=" } ",!1!==ei.opts.messages&&(eu+=" , message: 'should match format \"",e_?eu+="' + "+ew+" + '":eu+=""+ei.util.escapeQuotes(ef),eu+="\"' "),ei.opts.verbose&&(eu+=" , schema: ",e_?eu+="validate.schema"+eh:eu+=""+ei.util.toQuotedString(ef),eu+=" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+eb+" "),eu+=" } "):eu+=" {} ";var eP=eu;return eu=eI.pop(),!ei.compositeRule&&em?ei.async?eu+=" throw new ValidationError(["+eP+"]); ":eu+=" validate.errors = ["+eP+"]; return false; ":eu+=" var err = "+eP+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",eu+=" } ",em&&(eu+=" else { "),eu}},17231:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu=" ",ec=ei.level,ed=ei.dataLevel,ef=ei.schema[eo],eh=ei.schemaPath+ei.util.getProperty(eo),eg=ei.errSchemaPath+"/"+eo,em=!ei.opts.allErrors,eb="data"+(ed||""),ew="valid"+ec,e_="errs__"+ec,eS=ei.util.copy(ei);eS.level++;var eE="valid"+eS.level,eA=ei.schema.then,eT=ei.schema.else,ek=void 0!==eA&&(ei.opts.strictKeywords?"object"==typeof eA&&Object.keys(eA).length>0||!1===eA:ei.util.schemaHasRules(eA,ei.RULES.all)),eC=void 0!==eT&&(ei.opts.strictKeywords?"object"==typeof eT&&Object.keys(eT).length>0||!1===eT:ei.util.schemaHasRules(eT,ei.RULES.all)),eO=eS.baseId;if(ek||eC){eS.createErrors=!1,eS.schema=ef,eS.schemaPath=eh,eS.errSchemaPath=eg,eu+=" var "+e_+" = errors; var "+ew+" = true; ";var eI,eP=ei.compositeRule;ei.compositeRule=eS.compositeRule=!0,eu+=" "+ei.validate(eS)+" ",eS.baseId=eO,eS.createErrors=!0,eu+=" errors = "+e_+"; if (vErrors !== null) { if ("+e_+") vErrors.length = "+e_+"; else vErrors = null; } ",ei.compositeRule=eS.compositeRule=eP,ek?(eu+=" if ("+eE+") { ",eS.schema=ei.schema.then,eS.schemaPath=ei.schemaPath+".then",eS.errSchemaPath=ei.errSchemaPath+"/then",eu+=" "+ei.validate(eS)+" ",eS.baseId=eO,eu+=" "+ew+" = "+eE+"; ",ek&&eC?eu+=" var "+(eI="ifClause"+ec)+" = 'then'; ":eI="'then'",eu+=" } ",eC&&(eu+=" else { ")):eu+=" if (!"+eE+") { ",eC&&(eS.schema=ei.schema.else,eS.schemaPath=ei.schemaPath+".else",eS.errSchemaPath=ei.errSchemaPath+"/else",eu+=" "+ei.validate(eS)+" ",eS.baseId=eO,eu+=" "+ew+" = "+eE+"; ",ek&&eC?eu+=" var "+(eI="ifClause"+ec)+" = 'else'; ":eI="'else'",eu+=" } "),eu+=" if (!"+ew+") { var err = ",!1!==ei.createErrors?(eu+=" { keyword: 'if' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eg)+" , params: { failingKeyword: "+eI+" } ",!1!==ei.opts.messages&&(eu+=" , message: 'should match \"' + "+eI+" + '\" schema' "),ei.opts.verbose&&(eu+=" , schema: validate.schema"+eh+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+eb+" "),eu+=" } "):eu+=" {} ",eu+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!ei.compositeRule&&em&&(ei.async?eu+=" throw new ValidationError(vErrors); ":eu+=" validate.errors = vErrors; return false; "),eu+=" } ",em&&(eu+=" else { ")}else em&&(eu+=" if (true) { ");return eu}},66674:function(ei,eo,ea){"use strict";ei.exports={$ref:ea(62392),allOf:ea(42988),anyOf:ea(39996),$comment:ea(57812),const:ea(25306),contains:ea(2840),dependencies:ea(66659),enum:ea(31740),format:ea(39014),if:ea(17231),items:ea(37482),maximum:ea(18210),minimum:ea(18210),maxItems:ea(33038),minItems:ea(33038),maxLength:ea(80425),minLength:ea(80425),maxProperties:ea(78204),minProperties:ea(78204),multipleOf:ea(43673),not:ea(28528),oneOf:ea(59709),pattern:ea(49614),properties:ea(81175),propertyNames:ea(58441),required:ea(71287),uniqueItems:ea(3603),validate:ea(19508)}},37482:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu=" ",ec=ei.level,ed=ei.dataLevel,ef=ei.schema[eo],eh=ei.schemaPath+ei.util.getProperty(eo),eg=ei.errSchemaPath+"/"+eo,em=!ei.opts.allErrors,eb="data"+(ed||""),ew="valid"+ec,e_="errs__"+ec,eS=ei.util.copy(ei),eE="";eS.level++;var eA="valid"+eS.level,eT="i"+ec,ek=eS.dataLevel=ei.dataLevel+1,eC="data"+ek,eO=ei.baseId;if(eu+="var "+e_+" = errors;var "+ew+";",Array.isArray(ef)){var eI=ei.schema.additionalItems;if(!1===eI){eu+=" "+ew+" = "+eb+".length <= "+ef.length+"; ";var eP=eg;eg=ei.errSchemaPath+"/additionalItems",eu+=" if (!"+ew+") { ";var eD=eD||[];eD.push(eu),eu="",!1!==ei.createErrors?(eu+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eg)+" , params: { limit: "+ef.length+" } ",!1!==ei.opts.messages&&(eu+=" , message: 'should NOT have more than "+ef.length+" items' "),ei.opts.verbose&&(eu+=" , schema: false , parentSchema: validate.schema"+ei.schemaPath+" , data: "+eb+" "),eu+=" } "):eu+=" {} ";var eN=eu;eu=eD.pop(),!ei.compositeRule&&em?ei.async?eu+=" throw new ValidationError(["+eN+"]); ":eu+=" validate.errors = ["+eN+"]; return false; ":eu+=" var err = "+eN+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",eu+=" } ",eg=eP,em&&(eE+="}",eu+=" else { ")}var eM=ef;if(eM){for(var ej,eR=-1,eL=eM.length-1;eR0||!1===ej:ei.util.schemaHasRules(ej,ei.RULES.all)){eu+=" "+eA+" = true; if ("+eb+".length > "+eR+") { ";var eF=eb+"["+eR+"]";eS.schema=ej,eS.schemaPath=eh+"["+eR+"]",eS.errSchemaPath=eg+"/"+eR,eS.errorPath=ei.util.getPathExpr(ei.errorPath,eR,ei.opts.jsonPointers,!0),eS.dataPathArr[ek]=eR;var eB=ei.validate(eS);eS.baseId=eO,2>ei.util.varOccurences(eB,eC)?eu+=" "+ei.util.varReplace(eB,eC,eF)+" ":eu+=" var "+eC+" = "+eF+"; "+eB+" ",eu+=" } ",em&&(eu+=" if ("+eA+") { ",eE+="}")}}if("object"==typeof eI&&(ei.opts.strictKeywords?"object"==typeof eI&&Object.keys(eI).length>0||!1===eI:ei.util.schemaHasRules(eI,ei.RULES.all))){eS.schema=eI,eS.schemaPath=ei.schemaPath+".additionalItems",eS.errSchemaPath=ei.errSchemaPath+"/additionalItems",eu+=" "+eA+" = true; if ("+eb+".length > "+ef.length+") { for (var "+eT+" = "+ef.length+"; "+eT+" < "+eb+".length; "+eT+"++) { ",eS.errorPath=ei.util.getPathExpr(ei.errorPath,eT,ei.opts.jsonPointers,!0);var eF=eb+"["+eT+"]";eS.dataPathArr[ek]=eT;var eB=ei.validate(eS);eS.baseId=eO,2>ei.util.varOccurences(eB,eC)?eu+=" "+ei.util.varReplace(eB,eC,eF)+" ":eu+=" var "+eC+" = "+eF+"; "+eB+" ",em&&(eu+=" if (!"+eA+") break; "),eu+=" } } ",em&&(eu+=" if ("+eA+") { ",eE+="}")}}else if(ei.opts.strictKeywords?"object"==typeof ef&&Object.keys(ef).length>0||!1===ef:ei.util.schemaHasRules(ef,ei.RULES.all)){eS.schema=ef,eS.schemaPath=eh,eS.errSchemaPath=eg,eu+=" for (var "+eT+" = 0; "+eT+" < "+eb+".length; "+eT+"++) { ",eS.errorPath=ei.util.getPathExpr(ei.errorPath,eT,ei.opts.jsonPointers,!0);var eF=eb+"["+eT+"]";eS.dataPathArr[ek]=eT;var eB=ei.validate(eS);eS.baseId=eO,2>ei.util.varOccurences(eB,eC)?eu+=" "+ei.util.varReplace(eB,eC,eF)+" ":eu+=" var "+eC+" = "+eF+"; "+eB+" ",em&&(eu+=" if (!"+eA+") break; "),eu+=" }"}return em&&(eu+=" "+eE+" if ("+e_+" == errors) {"),eu}},43673:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu,ec=" ",ed=ei.level,ef=ei.dataLevel,eh=ei.schema[eo],eg=ei.schemaPath+ei.util.getProperty(eo),em=ei.errSchemaPath+"/"+eo,eb=!ei.opts.allErrors,ew="data"+(ef||""),e_=ei.opts.$data&&eh&&eh.$data;if(e_?(ec+=" var schema"+ed+" = "+ei.util.getData(eh.$data,ef,ei.dataPathArr)+"; ",eu="schema"+ed):eu=eh,!(e_||"number"==typeof eh))throw Error(eo+" must be number");ec+="var division"+ed+";if (",e_&&(ec+=" "+eu+" !== undefined && ( typeof "+eu+" != 'number' || "),ec+=" (division"+ed+" = "+ew+" / "+eu+", ",ei.opts.multipleOfPrecision?ec+=" Math.abs(Math.round(division"+ed+") - division"+ed+") > 1e-"+ei.opts.multipleOfPrecision+" ":ec+=" division"+ed+" !== parseInt(division"+ed+") ",ec+=" ) ",e_&&(ec+=" ) "),ec+=" ) { ";var eS=eS||[];eS.push(ec),ec="",!1!==ei.createErrors?(ec+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(em)+" , params: { multipleOf: "+eu+" } ",!1!==ei.opts.messages&&(ec+=" , message: 'should be multiple of ",e_?ec+="' + "+eu:ec+=""+eu+"'"),ei.opts.verbose&&(ec+=" , schema: ",e_?ec+="validate.schema"+eg:ec+=""+eh,ec+=" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+ew+" "),ec+=" } "):ec+=" {} ";var eE=ec;return ec=eS.pop(),!ei.compositeRule&&eb?ei.async?ec+=" throw new ValidationError(["+eE+"]); ":ec+=" validate.errors = ["+eE+"]; return false; ":ec+=" var err = "+eE+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ec+="} ",eb&&(ec+=" else { "),ec}},28528:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu=" ",ec=ei.level,ed=ei.dataLevel,ef=ei.schema[eo],eh=ei.schemaPath+ei.util.getProperty(eo),eg=ei.errSchemaPath+"/"+eo,em=!ei.opts.allErrors,eb="data"+(ed||""),ew="errs__"+ec,e_=ei.util.copy(ei);e_.level++;var eS="valid"+e_.level;if(ei.opts.strictKeywords?"object"==typeof ef&&Object.keys(ef).length>0||!1===ef:ei.util.schemaHasRules(ef,ei.RULES.all)){e_.schema=ef,e_.schemaPath=eh,e_.errSchemaPath=eg,eu+=" var "+ew+" = errors; ";var eE,eA=ei.compositeRule;ei.compositeRule=e_.compositeRule=!0,e_.createErrors=!1,e_.opts.allErrors&&(eE=e_.opts.allErrors,e_.opts.allErrors=!1),eu+=" "+ei.validate(e_)+" ",e_.createErrors=!0,eE&&(e_.opts.allErrors=eE),ei.compositeRule=e_.compositeRule=eA,eu+=" if ("+eS+") { ";var eT=eT||[];eT.push(eu),eu="",!1!==ei.createErrors?(eu+=" { keyword: 'not' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eg)+" , params: {} ",!1!==ei.opts.messages&&(eu+=" , message: 'should NOT be valid' "),ei.opts.verbose&&(eu+=" , schema: validate.schema"+eh+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+eb+" "),eu+=" } "):eu+=" {} ";var ek=eu;eu=eT.pop(),!ei.compositeRule&&em?ei.async?eu+=" throw new ValidationError(["+ek+"]); ":eu+=" validate.errors = ["+ek+"]; return false; ":eu+=" var err = "+ek+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",eu+=" } else { errors = "+ew+"; if (vErrors !== null) { if ("+ew+") vErrors.length = "+ew+"; else vErrors = null; } ",ei.opts.allErrors&&(eu+=" } ")}else eu+=" var err = ",!1!==ei.createErrors?(eu+=" { keyword: 'not' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eg)+" , params: {} ",!1!==ei.opts.messages&&(eu+=" , message: 'should NOT be valid' "),ei.opts.verbose&&(eu+=" , schema: validate.schema"+eh+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+eb+" "),eu+=" } "):eu+=" {} ",eu+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",em&&(eu+=" if (false) { ");return eu}},59709:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu=" ",ec=ei.level,ed=ei.dataLevel,ef=ei.schema[eo],eh=ei.schemaPath+ei.util.getProperty(eo),eg=ei.errSchemaPath+"/"+eo,em=!ei.opts.allErrors,eb="data"+(ed||""),ew="valid"+ec,e_="errs__"+ec,eS=ei.util.copy(ei),eE="";eS.level++;var eA="valid"+eS.level,eT=eS.baseId,ek="prevValid"+ec,eC="passingSchemas"+ec;eu+="var "+e_+" = errors , "+ek+" = false , "+ew+" = false , "+eC+" = null; ";var eO=ei.compositeRule;ei.compositeRule=eS.compositeRule=!0;var eI=ef;if(eI)for(var eP,eD=-1,eN=eI.length-1;eD0||!1===eP:ei.util.schemaHasRules(eP,ei.RULES.all))?(eS.schema=eP,eS.schemaPath=eh+"["+eD+"]",eS.errSchemaPath=eg+"/"+eD,eu+=" "+ei.validate(eS)+" ",eS.baseId=eT):eu+=" var "+eA+" = true; ",eD&&(eu+=" if ("+eA+" && "+ek+") { "+ew+" = false; "+eC+" = ["+eC+", "+eD+"]; } else { ",eE+="}"),eu+=" if ("+eA+") { "+ew+" = "+ek+" = true; "+eC+" = "+eD+"; }";return ei.compositeRule=eS.compositeRule=eO,eu+=""+eE+"if (!"+ew+") { var err = ",!1!==ei.createErrors?(eu+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eg)+" , params: { passingSchemas: "+eC+" } ",!1!==ei.opts.messages&&(eu+=" , message: 'should match exactly one schema in oneOf' "),ei.opts.verbose&&(eu+=" , schema: validate.schema"+eh+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+eb+" "),eu+=" } "):eu+=" {} ",eu+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!ei.compositeRule&&em&&(ei.async?eu+=" throw new ValidationError(vErrors); ":eu+=" validate.errors = vErrors; return false; "),eu+="} else { errors = "+e_+"; if (vErrors !== null) { if ("+e_+") vErrors.length = "+e_+"; else vErrors = null; }",ei.opts.allErrors&&(eu+=" } "),eu}},49614:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu,ec=" ",ed=ei.level,ef=ei.dataLevel,eh=ei.schema[eo],eg=ei.schemaPath+ei.util.getProperty(eo),em=ei.errSchemaPath+"/"+eo,eb=!ei.opts.allErrors,ew="data"+(ef||""),e_=ei.opts.$data&&eh&&eh.$data;e_?(ec+=" var schema"+ed+" = "+ei.util.getData(eh.$data,ef,ei.dataPathArr)+"; ",eu="schema"+ed):eu=eh;var eS=e_?"(new RegExp("+eu+"))":ei.usePattern(eh);ec+="if ( ",e_&&(ec+=" ("+eu+" !== undefined && typeof "+eu+" != 'string') || "),ec+=" !"+eS+".test("+ew+") ) { ";var eE=eE||[];eE.push(ec),ec="",!1!==ei.createErrors?(ec+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(em)+" , params: { pattern: ",e_?ec+=""+eu:ec+=""+ei.util.toQuotedString(eh),ec+=" } ",!1!==ei.opts.messages&&(ec+=" , message: 'should match pattern \"",e_?ec+="' + "+eu+" + '":ec+=""+ei.util.escapeQuotes(eh),ec+="\"' "),ei.opts.verbose&&(ec+=" , schema: ",e_?ec+="validate.schema"+eg:ec+=""+ei.util.toQuotedString(eh),ec+=" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+ew+" "),ec+=" } "):ec+=" {} ";var eA=ec;return ec=eE.pop(),!ei.compositeRule&&eb?ei.async?ec+=" throw new ValidationError(["+eA+"]); ":ec+=" validate.errors = ["+eA+"]; return false; ":ec+=" var err = "+eA+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ec+="} ",eb&&(ec+=" else { "),ec}},81175:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu=" ",ec=ei.level,ed=ei.dataLevel,ef=ei.schema[eo],eh=ei.schemaPath+ei.util.getProperty(eo),eg=ei.errSchemaPath+"/"+eo,em=!ei.opts.allErrors,eb="data"+(ed||""),ew="errs__"+ec,e_=ei.util.copy(ei),eS="";e_.level++;var eE="valid"+e_.level,eA="key"+ec,eT="idx"+ec,ek=e_.dataLevel=ei.dataLevel+1,eC="data"+ek,eO="dataProperties"+ec,eI=Object.keys(ef||{}).filter(eH),eP=ei.schema.patternProperties||{},eD=Object.keys(eP).filter(eH),eN=ei.schema.additionalProperties,eM=eI.length||eD.length,ej=!1===eN,eR="object"==typeof eN&&Object.keys(eN).length,eL=ei.opts.removeAdditional,eF=ej||eR||eL,eB=ei.opts.ownProperties,eU=ei.baseId,eG=ei.schema.required;if(eG&&!(ei.opts.$data&&eG.$data)&&eG.length8)eu+=" || validate.schema"+eh+".hasOwnProperty("+eA+") ";else{var eW=eI;if(eW)for(var eK,eY=-1,eZ=eW.length-1;eYei.util.varOccurences(e7,eC)?eu+=" "+ei.util.varReplace(e7,eC,e9)+" ":eu+=" var "+eC+" = "+e9+"; "+e7+" ",eu+=" if (!"+eE+") { errors = "+ew+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+eb+"["+eA+"]; } ",ei.compositeRule=e_.compositeRule=e8}else{e_.schema=eN,e_.schemaPath=ei.schemaPath+".additionalProperties",e_.errSchemaPath=ei.errSchemaPath+"/additionalProperties",e_.errorPath=ei.opts._errorDataPathProperty?ei.errorPath:ei.util.getPathExpr(ei.errorPath,eA,ei.opts.jsonPointers);var e9=eb+"["+eA+"]";e_.dataPathArr[ek]=eA;var e7=ei.validate(e_);e_.baseId=eU,2>ei.util.varOccurences(e7,eC)?eu+=" "+ei.util.varReplace(e7,eC,e9)+" ":eu+=" var "+eC+" = "+e9+"; "+e7+" ",em&&(eu+=" if (!"+eE+") break; ")}}ei.errorPath=e0}eM&&(eu+=" } "),eu+=" } ",em&&(eu+=" if ("+eE+") { ",eS+="}")}var ta=ei.opts.useDefaults&&!ei.compositeRule;if(eI.length){var tu=eI;if(tu)for(var eK,tc=-1,td=tu.length-1;tc0||!1===tf:ei.util.schemaHasRules(tf,ei.RULES.all)){var tp=ei.util.getProperty(eK),e9=eb+tp,tg=ta&&void 0!==tf.default;e_.schema=tf,e_.schemaPath=eh+tp,e_.errSchemaPath=eg+"/"+ei.util.escapeFragment(eK),e_.errorPath=ei.util.getPath(ei.errorPath,eK,ei.opts.jsonPointers),e_.dataPathArr[ek]=ei.util.toQuotedString(eK);var e7=ei.validate(e_);if(e_.baseId=eU,2>ei.util.varOccurences(e7,eC)){e7=ei.util.varReplace(e7,eC,e9);var tm=e9}else{var tm=eC;eu+=" var "+eC+" = "+e9+"; "}if(tg)eu+=" "+e7+" ";else{if(eV&&eV[eK]){eu+=" if ( "+tm+" === undefined ",eB&&(eu+=" || ! Object.prototype.hasOwnProperty.call("+eb+", '"+ei.util.escapeQuotes(eK)+"') "),eu+=") { "+eE+" = false; ";var e0=ei.errorPath,e5=eg,tv=ei.util.escapeQuotes(eK);ei.opts._errorDataPathProperty&&(ei.errorPath=ei.util.getPath(e0,eK,ei.opts.jsonPointers)),eg=ei.errSchemaPath+"/required";var e4=e4||[];e4.push(eu),eu="",!1!==ei.createErrors?(eu+=" { keyword: 'required' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eg)+" , params: { missingProperty: '"+tv+"' } ",!1!==ei.opts.messages&&(eu+=" , message: '",ei.opts._errorDataPathProperty?eu+="is a required property":eu+="should have required property \\'"+tv+"\\'",eu+="' "),ei.opts.verbose&&(eu+=" , schema: validate.schema"+eh+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+eb+" "),eu+=" } "):eu+=" {} ";var e6=eu;eu=e4.pop(),!ei.compositeRule&&em?ei.async?eu+=" throw new ValidationError(["+e6+"]); ":eu+=" validate.errors = ["+e6+"]; return false; ":eu+=" var err = "+e6+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",eg=e5,ei.errorPath=e0,eu+=" } else { "}else em?(eu+=" if ( "+tm+" === undefined ",eB&&(eu+=" || ! Object.prototype.hasOwnProperty.call("+eb+", '"+ei.util.escapeQuotes(eK)+"') "),eu+=") { "+eE+" = true; } else { "):(eu+=" if ("+tm+" !== undefined ",eB&&(eu+=" && Object.prototype.hasOwnProperty.call("+eb+", '"+ei.util.escapeQuotes(eK)+"') "),eu+=" ) { ");eu+=" "+e7+" } "}}em&&(eu+=" if ("+eE+") { ",eS+="}")}}if(eD.length){var tb=eD;if(tb)for(var eJ,tw=-1,t_=tb.length-1;tw0||!1===tf:ei.util.schemaHasRules(tf,ei.RULES.all)){e_.schema=tf,e_.schemaPath=ei.schemaPath+".patternProperties"+ei.util.getProperty(eJ),e_.errSchemaPath=ei.errSchemaPath+"/patternProperties/"+ei.util.escapeFragment(eJ),eB?eu+=" "+eO+" = "+eO+" || Object.keys("+eb+"); for (var "+eT+"=0; "+eT+"<"+eO+".length; "+eT+"++) { var "+eA+" = "+eO+"["+eT+"]; ":eu+=" for (var "+eA+" in "+eb+") { ",eu+=" if ("+ei.usePattern(eJ)+".test("+eA+")) { ",e_.errorPath=ei.util.getPathExpr(ei.errorPath,eA,ei.opts.jsonPointers);var e9=eb+"["+eA+"]";e_.dataPathArr[ek]=eA;var e7=ei.validate(e_);e_.baseId=eU,2>ei.util.varOccurences(e7,eC)?eu+=" "+ei.util.varReplace(e7,eC,e9)+" ":eu+=" var "+eC+" = "+e9+"; "+e7+" ",em&&(eu+=" if (!"+eE+") break; "),eu+=" } ",em&&(eu+=" else "+eE+" = true; "),eu+=" } ",em&&(eu+=" if ("+eE+") { ",eS+="}")}}}return em&&(eu+=" "+eS+" if ("+ew+" == errors) {"),eu}},58441:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu=" ",ec=ei.level,ed=ei.dataLevel,ef=ei.schema[eo],eh=ei.schemaPath+ei.util.getProperty(eo),eg=ei.errSchemaPath+"/"+eo,em=!ei.opts.allErrors,eb="data"+(ed||""),ew="errs__"+ec,e_=ei.util.copy(ei),eS="";e_.level++;var eE="valid"+e_.level;if(eu+="var "+ew+" = errors;",ei.opts.strictKeywords?"object"==typeof ef&&Object.keys(ef).length>0||!1===ef:ei.util.schemaHasRules(ef,ei.RULES.all)){e_.schema=ef,e_.schemaPath=eh,e_.errSchemaPath=eg;var eA="key"+ec,eT="idx"+ec,ek="i"+ec,eC="' + "+eA+" + '",eO="data"+(e_.dataLevel=ei.dataLevel+1),eI="dataProperties"+ec,eP=ei.opts.ownProperties,eD=ei.baseId;eP&&(eu+=" var "+eI+" = undefined; "),eP?eu+=" "+eI+" = "+eI+" || Object.keys("+eb+"); for (var "+eT+"=0; "+eT+"<"+eI+".length; "+eT+"++) { var "+eA+" = "+eI+"["+eT+"]; ":eu+=" for (var "+eA+" in "+eb+") { ",eu+=" var startErrs"+ec+" = errors; ";var eN=eA,eM=ei.compositeRule;ei.compositeRule=e_.compositeRule=!0;var ej=ei.validate(e_);e_.baseId=eD,2>ei.util.varOccurences(ej,eO)?eu+=" "+ei.util.varReplace(ej,eO,eN)+" ":eu+=" var "+eO+" = "+eN+"; "+ej+" ",ei.compositeRule=e_.compositeRule=eM,eu+=" if (!"+eE+") { for (var "+ek+"=startErrs"+ec+"; "+ek+"0||!1===eI:ei.util.schemaHasRules(eI,ei.RULES.all))||(eA[eA.length]=ek)}}else var eA=eh}if(eS||eA.length){var eP=ei.errorPath,eD=eS||eA.length>=ei.opts.loopRequired,eN=ei.opts.ownProperties;if(eb){if(ec+=" var missing"+ed+"; ",eD){eS||(ec+=" var "+eE+" = validate.schema"+eg+"; ");var eM="i"+ed,ej="schema"+ed+"["+eM+"]",eR="' + "+ej+" + '";ei.opts._errorDataPathProperty&&(ei.errorPath=ei.util.getPathExpr(eP,ej,ei.opts.jsonPointers)),ec+=" var "+e_+" = true; ",eS&&(ec+=" if (schema"+ed+" === undefined) "+e_+" = true; else if (!Array.isArray(schema"+ed+")) "+e_+" = false; else {"),ec+=" for (var "+eM+" = 0; "+eM+" < "+eE+".length; "+eM+"++) { "+e_+" = "+ew+"["+eE+"["+eM+"]] !== undefined ",eN&&(ec+=" && Object.prototype.hasOwnProperty.call("+ew+", "+eE+"["+eM+"]) "),ec+="; if (!"+e_+") break; } ",eS&&(ec+=" } "),ec+=" if (!"+e_+") { ";var eL=eL||[];eL.push(ec),ec="",!1!==ei.createErrors?(ec+=" { keyword: 'required' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(em)+" , params: { missingProperty: '"+eR+"' } ",!1!==ei.opts.messages&&(ec+=" , message: '",ei.opts._errorDataPathProperty?ec+="is a required property":ec+="should have required property \\'"+eR+"\\'",ec+="' "),ei.opts.verbose&&(ec+=" , schema: validate.schema"+eg+" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+ew+" "),ec+=" } "):ec+=" {} ";var eF=ec;ec=eL.pop(),!ei.compositeRule&&eb?ei.async?ec+=" throw new ValidationError(["+eF+"]); ":ec+=" validate.errors = ["+eF+"]; return false; ":ec+=" var err = "+eF+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ec+=" } else { "}else{ec+=" if ( ";var eB=eA;if(eB)for(var eU,eM=-1,eG=eB.length-1;eM 1) { ";var eE=ei.schema.items&&ei.schema.items.type,eA=Array.isArray(eE);if(!eE||"object"==eE||"array"==eE||eA&&(eE.indexOf("object")>=0||eE.indexOf("array")>=0))ec+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+ew+"[i], "+ew+"[j])) { "+e_+" = false; break outer; } } } ";else{var eT="checkDataType"+(eA?"s":"");ec+=" var itemIndices = {}, item; for (;i--;) { var item = "+ew+"[i]; if ("+ei.util[eT](eE,"item",ei.opts.strictNumbers,!0)+") continue; ",eA&&(ec+=" if (typeof item == 'string') item = '\"' + item; "),ec+=" if (typeof itemIndices[item] == 'number') { "+e_+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}ec+=" } ",eS&&(ec+=" } "),ec+=" if (!"+e_+") { ";var ek=ek||[];ek.push(ec),ec="",!1!==ei.createErrors?(ec+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(em)+" , params: { i: i, j: j } ",!1!==ei.opts.messages&&(ec+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),ei.opts.verbose&&(ec+=" , schema: ",eS?ec+="validate.schema"+eg:ec+=""+eh,ec+=" , parentSchema: validate.schema"+ei.schemaPath+" , data: "+ew+" "),ec+=" } "):ec+=" {} ";var eC=ec;ec=ek.pop(),!ei.compositeRule&&eb?ei.async?ec+=" throw new ValidationError(["+eC+"]); ":ec+=" validate.errors = ["+eC+"]; return false; ":ec+=" var err = "+eC+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",ec+=" } ",eb&&(ec+=" else { ")}else eb&&(ec+=" if (true) { ");return ec}},19508:function(ei){"use strict";ei.exports=function(ei,eo,ea){var eu="",ec=!0===ei.schema.$async,ed=ei.util.schemaHasRulesExcept(ei.schema,ei.RULES.all,"$ref"),ef=ei.self._getId(ei.schema);if(ei.opts.strictKeywords){var eh=ei.util.schemaUnknownRules(ei.schema,ei.RULES.keywords);if(eh){var eg="unknown keyword: "+eh;if("log"===ei.opts.strictKeywords)ei.logger.warn(eg);else throw Error(eg)}}if(ei.isTop&&(eu+=" var validate = ",ec&&(ei.async=!0,eu+="async "),eu+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",ef&&(ei.opts.sourceCode||ei.opts.processCode)&&(eu+=" /*# sourceURL="+ef+" */ ")),"boolean"==typeof ei.schema||!(ed||ei.schema.$ref)){var em,eo="false schema",eb=ei.level,ew=ei.dataLevel,e_=ei.schema[eo],eS=ei.schemaPath+ei.util.getProperty(eo),eE=ei.errSchemaPath+"/"+eo,eA=!ei.opts.allErrors,eT="data"+(ew||""),ek="valid"+eb;if(!1===ei.schema){ei.isTop?eA=!0:eu+=" var "+ek+" = false; ";var eC=eC||[];eC.push(eu),eu="",!1!==ei.createErrors?(eu+=" { keyword: '"+(em||"false schema")+"' , dataPath: (dataPath || '') + "+ei.errorPath+" , schemaPath: "+ei.util.toQuotedString(eE)+" , params: {} ",!1!==ei.opts.messages&&(eu+=" , message: 'boolean schema is false' "),ei.opts.verbose&&(eu+=" , schema: false , parentSchema: validate.schema"+ei.schemaPath+" , data: "+eT+" "),eu+=" } "):eu+=" {} ";var eO=eu;eu=eC.pop(),!ei.compositeRule&&eA?ei.async?eu+=" throw new ValidationError(["+eO+"]); ":eu+=" validate.errors = ["+eO+"]; return false; ":eu+=" var err = "+eO+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else ei.isTop?ec?eu+=" return data; ":eu+=" validate.errors = null; return true; ":eu+=" var "+ek+" = true; ";return ei.isTop&&(eu+=" }; return validate; "),eu}if(ei.isTop){var eI=ei.isTop,eb=ei.level=0,ew=ei.dataLevel=0,eT="data";if(ei.rootId=ei.resolve.fullPath(ei.self._getId(ei.root.schema)),ei.baseId=ei.baseId||ei.rootId,delete ei.isTop,ei.dataPathArr=[""],void 0!==ei.schema.default&&ei.opts.useDefaults&&ei.opts.strictDefaults){var eP="default is ignored in the schema root";if("log"===ei.opts.strictDefaults)ei.logger.warn(eP);else throw Error(eP)}eu+=" var vErrors = null; var errors = 0; if (rootData === undefined) rootData = data; "}else{var eb=ei.level,ew=ei.dataLevel,eT="data"+(ew||"");if(ef&&(ei.baseId=ei.resolve.url(ei.baseId,ef)),ec&&!ei.async)throw Error("async schema in sync schema");eu+=" var errs_"+eb+" = errors;"}var ek="valid"+eb,eA=!ei.opts.allErrors,eD="",eN="",eM=ei.schema.type,ej=Array.isArray(eM);if(eM&&ei.opts.nullable&&!0===ei.schema.nullable&&(ej?-1==eM.indexOf("null")&&(eM=eM.concat("null")):"null"!=eM&&(eM=[eM,"null"],ej=!0)),ej&&1==eM.length&&(eM=eM[0],ej=!1),ei.schema.$ref&&ed){if("fail"==ei.opts.extendRefs)throw Error('$ref: validation keywords used in schema at path "'+ei.errSchemaPath+'" (see option extendRefs)');!0!==ei.opts.extendRefs&&(ed=!1,ei.logger.warn('$ref: keywords ignored in schema at path "'+ei.errSchemaPath+'"'))}if(ei.schema.$comment&&ei.opts.$comment&&(eu+=" "+ei.RULES.all.$comment.code(ei,"$comment")),eM){if(ei.opts.coerceTypes)var eR=ei.util.coerceToTypes(ei.opts.coerceTypes,eM);var eL=ei.RULES.types[eM];if(eR||ej||!0===eL||eL&&!td(eL)){var eS=ei.schemaPath+".type",eE=ei.errSchemaPath+"/type",eS=ei.schemaPath+".type",eE=ei.errSchemaPath+"/type",eF=ej?"checkDataTypes":"checkDataType";if(eu+=" if ("+ei.util[eF](eM,eT,ei.opts.strictNumbers,!0)+") { ",eR){var eB="dataType"+eb,eU="coerced"+eb;eu+=" var "+eB+" = typeof "+eT+"; var "+eU+" = undefined; ","array"==ei.opts.coerceTypes&&(eu+=" if ("+eB+" == 'object' && Array.isArray("+eT+") && "+eT+".length == 1) { "+eT+" = "+eT+"[0]; "+eB+" = typeof "+eT+"; if ("+ei.util.checkDataType(ei.schema.type,eT,ei.opts.strictNumbers)+") "+eU+" = "+eT+"; } "),eu+=" if ("+eU+" !== undefined) ; ";var eG=eR;if(eG)for(var em,eV,eH=-1,eW=eG.length-1;eH=200&&ei<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ec.forEach(["delete","get","head"],function(ei){e_.headers[ei]={}}),ec.forEach(["post","put","patch"],function(ei){e_.headers[ei]=ec.merge(em)}),ei.exports=e_},77874:function(ei){"use strict";ei.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:function(ei){ei.exports={version:"0.27.2"}},91849:function(ei){"use strict";ei.exports=function(ei,eo){return function(){for(var ea=Array(arguments.length),eu=0;eu=0)&&("set-cookie"===eo?ef[eo]=(ef[eo]?ef[eo]:[]).concat([ea]):ef[eo]=ef[eo]?ef[eo]+", "+ea:ea)}),ef}},90205:function(ei){"use strict";ei.exports=function(ei){var eo=/^([-+\w]{1,25})(:?\/\/|:)/.exec(ei);return eo&&eo[1]||""}},8713:function(ei){"use strict";ei.exports=function(ei){return function(eo){return ei.apply(null,eo)}}},47675:function(ei,eo,ea){"use strict";var eu=ea(48764).Buffer,ec=ea(64867);function ed(ei,eo){eo=eo||new FormData;var ea=[];function ed(ei){return null===ei?"":ec.isDate(ei)?ei.toISOString():ec.isArrayBuffer(ei)||ec.isTypedArray(ei)?"function"==typeof Blob?new Blob([ei]):eu.from(ei):ei}function ef(ei,eu){if(ec.isPlainObject(ei)||ec.isArray(ei)){if(-1!==ea.indexOf(ei))throw Error("Circular reference detected in "+eu);ea.push(ei),ec.forEach(ei,function(ei,ea){if(!ec.isUndefined(ei)){var eh,eg=eu?eu+"."+ea:ea;if(ei&&!eu&&"object"==typeof ei){if(ec.endsWith(ea,"{}"))ei=JSON.stringify(ei);else if(ec.endsWith(ea,"[]")&&(eh=ec.toArray(ei))){eh.forEach(function(ei){ec.isUndefined(ei)||eo.append(eg,ed(ei))});return}}ef(ei,eg)}}),ea.pop()}else eo.append(eu,ed(ei))}return ef(ei),eo}ei.exports=ed},54875:function(ei,eo,ea){"use strict";var eu=ea(97288).version,ec=ea(82648),ed={};["object","boolean","number","function","string","symbol"].forEach(function(ei,eo){ed[ei]=function(ea){return typeof ea===ei||"a"+(eo<1?"n ":" ")+ei}});var ef={};function eh(ei,eo,ea){if("object"!=typeof ei)throw new ec("options must be an object",ec.ERR_BAD_OPTION_VALUE);for(var eu=Object.keys(ei),ed=eu.length;ed-->0;){var ef=eu[ed],eh=eo[ef];if(eh){var eg=ei[ef],em=void 0===eg||eh(eg,ef,ei);if(!0!==em)throw new ec("option "+ef+" must be "+em,ec.ERR_BAD_OPTION_VALUE);continue}if(!0!==ea)throw new ec("Unknown option "+ef,ec.ERR_BAD_OPTION)}}ed.transitional=function(ei,eo,ea){function ed(ei,eo){return"[Axios v"+eu+"] Transitional option '"+ei+"'"+eo+(ea?". "+ea:"")}return function(ea,eu,eh){if(!1===ei)throw new ec(ed(eu," has been removed"+(eo?" in "+eo:"")),ec.ERR_DEPRECATED);return eo&&!ef[eu]&&(ef[eu]=!0,console.warn(ed(eu," has been deprecated since v"+eo+" and will be removed in the near future"))),!ei||ei(ea,eu,eh)}},ei.exports={assertOptions:eh,validators:ed}},64867:function(ei,eo,ea){"use strict";var eu=ea(91849),ec=Object.prototype.toString,ed=function(ei){return function(eo){var ea=ec.call(eo);return ei[ea]||(ei[ea]=ea.slice(8,-1).toLowerCase())}}(Object.create(null));function ef(ei){return ei=ei.toLowerCase(),function(eo){return ed(eo)===ei}}function eh(ei){return Array.isArray(ei)}function eg(ei){return void 0===ei}function em(ei){return null!==ei&&!eg(ei)&&null!==ei.constructor&&!eg(ei.constructor)&&"function"==typeof ei.constructor.isBuffer&&ei.constructor.isBuffer(ei)}var eb=ef("ArrayBuffer");function ew(ei){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(ei):ei&&ei.buffer&&eb(ei.buffer)}function e_(ei){return"string"==typeof ei}function eS(ei){return"number"==typeof ei}function eE(ei){return null!==ei&&"object"==typeof ei}function eA(ei){if("object"!==ed(ei))return!1;var eo=Object.getPrototypeOf(ei);return null===eo||eo===Object.prototype}var eT=ef("Date"),ek=ef("File"),eC=ef("Blob"),eO=ef("FileList");function eI(ei){return"[object Function]"===ec.call(ei)}function eP(ei){return eE(ei)&&eI(ei.pipe)}function eD(ei){var eo="[object FormData]";return ei&&("function"==typeof FormData&&ei instanceof FormData||ec.call(ei)===eo||eI(ei.toString)&&ei.toString()===eo)}var eN=ef("URLSearchParams");function eM(ei){return ei.trim?ei.trim():ei.replace(/^\s+|\s+$/g,"")}function ej(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function eR(ei,eo){if(null!=ei){if("object"!=typeof ei&&(ei=[ei]),eh(ei))for(var ea=0,eu=ei.length;ea0;)ef[ed=eu[ec]]||(eo[ed]=ei[ed],ef[ed]=!0);ei=Object.getPrototypeOf(ei)}while(ei&&(!ea||ea(ei,eo))&&ei!==Object.prototype);return eo}function eV(ei,eo,ea){ei=String(ei),(void 0===ea||ea>ei.length)&&(ea=ei.length),ea-=eo.length;var eu=ei.indexOf(eo,ea);return-1!==eu&&eu===ea}function eH(ei){if(!ei)return null;var eo=ei.length;if(eg(eo))return null;for(var ea=Array(eo);eo-->0;)ea[eo]=ei[eo];return ea}var eW=function(ei){return function(eo){return ei&&eo instanceof ei}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array));ei.exports={isArray:eh,isArrayBuffer:eb,isBuffer:em,isFormData:eD,isArrayBufferView:ew,isString:e_,isNumber:eS,isObject:eE,isPlainObject:eA,isUndefined:eg,isDate:eT,isFile:ek,isBlob:eC,isFunction:eI,isStream:eP,isURLSearchParams:eN,isStandardBrowserEnv:ej,forEach:eR,merge:eL,extend:eF,trim:eM,stripBOM:eB,inherits:eU,toFlatObject:eG,kindOf:ed,kindOfTest:ef,endsWith:eV,toArray:eH,isTypedArray:eW,isFileList:eO}},58162:function(ei,eo,ea){"use strict";var eu=ea(89509).Buffer;function ec(ei){if(ei.length>=255)throw TypeError("Alphabet too long");for(var eo=new Uint8Array(256),ea=0;ea>>0,eb=new Uint8Array(ef);ei[ea];){var ew=eo[ei.charCodeAt(ea)];if(255===ew)return;for(var e_=0,eS=ef-1;(0!==ew||e_>>0,eb[eS]=ew%256>>>0,ew=ew/256>>>0;if(0!==ew)throw Error("Non-zero carry");ed=e_,ea++}for(var eE=ef-ed;eE!==ef&&0===eb[eE];)eE++;var eA=eu.allocUnsafe(ec+(ef-eE));eA.fill(0,0,ec);for(var eT=ec;eE!==ef;)eA[eT++]=eb[eE++];return eA}function e_(ei){var eo=ew(ei);if(eo)return eo;throw Error("Non-base"+eh+" character")}return{encode:function(eo){if((Array.isArray(eo)||eo instanceof Uint8Array)&&(eo=eu.from(eo)),!eu.isBuffer(eo))throw TypeError("Expected Buffer");if(0===eo.length)return"";for(var ea=0,ec=0,ed=0,ef=eo.length;ed!==ef&&0===eo[ed];)ed++,ea++;for(var em=(ef-ed)*eb+1>>>0,ew=new Uint8Array(em);ed!==ef;){for(var e_=eo[ed],eS=0,eE=em-1;(0!==e_||eS>>0,ew[eE]=e_%eh>>>0,e_=e_/eh>>>0;if(0!==e_)throw Error("Non-zero carry");ec=eS,ed++}for(var eA=em-ec;eA!==em&&0===ew[eA];)eA++;for(var eT=eg.repeat(ea);eA0)throw Error("Invalid string. Length must be a multiple of 4");var ea=ei.indexOf("=");-1===ea&&(ea=eo);var eu=ea===eo?0:4-ea%4;return[ea,eu]}function em(ei){var eo=eg(ei),ea=eo[0],eu=eo[1];return(ea+eu)*3/4-eu}function eb(ei,eo,ea){return(eo+ea)*3/4-ea}function ew(ei){var eo,ea,ed=eg(ei),ef=ed[0],eh=ed[1],em=new ec(eb(ei,ef,eh)),ew=0,e_=eh>0?ef-4:ef;for(ea=0;ea>16&255,em[ew++]=eo>>8&255,em[ew++]=255&eo;return 2===eh&&(eo=eu[ei.charCodeAt(ea)]<<2|eu[ei.charCodeAt(ea+1)]>>4,em[ew++]=255&eo),1===eh&&(eo=eu[ei.charCodeAt(ea)]<<10|eu[ei.charCodeAt(ea+1)]<<4|eu[ei.charCodeAt(ea+2)]>>2,em[ew++]=eo>>8&255,em[ew++]=255&eo),em}function e_(ei){return ea[ei>>18&63]+ea[ei>>12&63]+ea[ei>>6&63]+ea[63&ei]}function eS(ei,eo,ea){for(var eu=[],ec=eo;eceg?eg:eh+ef));return 1===ec?ed.push(ea[(eo=ei[eu-1])>>2]+ea[eo<<4&63]+"=="):2===ec&&ed.push(ea[(eo=(ei[eu-2]<<8)+ei[eu-1])>>10]+ea[eo>>4&63]+ea[eo<<2&63]+"="),ed.join("")}eu["-".charCodeAt(0)]=62,eu["_".charCodeAt(0)]=63},40475:function(ei,eo,ea){"use strict";var eu,ec=ea(48764).Buffer;function ed(ei){{let eo=ec.from(ei);eo.reverse();let ea=eo.toString("hex");return 0===ea.length?BigInt(0):BigInt(`0x${ea}`)}}function ef(ei,eo){{let ea=ei.toString(16),eu=ec.from(ea.padStart(2*eo,"0").slice(0,2*eo),"hex");return eu.reverse(),eu}}eu={value:!0},eo.oU=ed,eu=function(ei){{let eo=ei.toString("hex");return 0===eo.length?BigInt(0):BigInt(`0x${eo}`)}},eo.k$=ef},13550:function(ei,eo,ea){!function(ei,eo){"use strict";function eu(ei,eo){if(!ei)throw Error(eo||"Assertion failed")}function ec(ei,eo){ei.super_=eo;var ea=function(){};ea.prototype=eo.prototype,ei.prototype=new ea,ei.prototype.constructor=ei}function ed(ei,eo,ea){if(ed.isBN(ei))return ei;this.negative=0,this.words=null,this.length=0,this.red=null,null!==ei&&(("le"===eo||"be"===eo)&&(ea=eo,eo=10),this._init(ei||0,eo||10,ea||"be"))}"object"==typeof ei?ei.exports=ed:eo.BN=ed,ed.BN=ed,ed.wordSize=26;try{ew="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:ea(46601).Buffer}catch(ei){}function ef(ei,eo){var ea=ei.charCodeAt(eo);return ea>=48&&ea<=57?ea-48:ea>=65&&ea<=70?ea-55:ea>=97&&ea<=102?ea-87:void eu(!1,"Invalid character in "+ei)}function eh(ei,eo,ea){var eu=ef(ei,ea);return ea-1>=eo&&(eu|=ef(ei,ea-1)<<4),eu}function eg(ei,eo,ea,ec){for(var ed=0,ef=0,eh=Math.min(ei.length,ea),eg=eo;eg=49?em-49+10:em>=17?em-17+10:em,eu(em>=0&&ef0?ei:eo},ed.min=function(ei,eo){return 0>ei.cmp(eo)?ei:eo},ed.prototype._init=function(ei,eo,ea){if("number"==typeof ei)return this._initNumber(ei,eo,ea);if("object"==typeof ei)return this._initArray(ei,eo,ea);"hex"===eo&&(eo=16),eu(eo===(0|eo)&&eo>=2&&eo<=36);var ec=0;"-"===(ei=ei.toString().replace(/\s+/g,""))[0]&&(ec++,this.negative=1),ec=0;ef-=3)ed=ei[ef]|ei[ef-1]<<8|ei[ef-2]<<16,this.words[ec]|=ed<>>26-eh&67108863,(eh+=24)>=26&&(eh-=26,ec++);else if("le"===ea)for(ef=0,ec=0;ef>>26-eh&67108863,(eh+=24)>=26&&(eh-=26,ec++);return this._strip()},ed.prototype._parseHex=function(ei,eo,ea){this.length=Math.ceil((ei.length-eo)/6),this.words=Array(this.length);for(var eu,ec=0;ec=eo;ec-=2)eu=eh(ei,eo,ec)<=18?(ed-=18,ef+=1,this.words[ef]|=eu>>>26):ed+=8;else for(ec=(ei.length-eo)%2==0?eo+1:eo;ec=18?(ed-=18,ef+=1,this.words[ef]|=eu>>>26):ed+=8;this._strip()},ed.prototype._parseBase=function(ei,eo,ea){this.words=[0],this.length=1;for(var eu=0,ec=1;ec<=67108863;ec*=eo)eu++;eu--,ec=ec/eo|0;for(var ed=ei.length-ea,ef=ed%eu,eh=Math.min(ed,ed-ef)+ea,em=0,eb=ea;eb1&&0===this.words[this.length-1];)this.length--;return this._normSign()},ed.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{ed.prototype[Symbol.for("nodejs.util.inspect.custom")]=eb}catch(ei){ed.prototype.inspect=eb}else ed.prototype.inspect=eb;function eb(){return(this.red?""}var ew,e_=["","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"],eS=[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],eE=[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];ed.prototype.toString=function(ei,eo){if(eo=0|eo||1,16===(ei=ei||10)||"hex"===ei){ea="";for(var ea,ec=0,ed=0,ef=0;ef>>24-ec&16777215,(ec+=2)>=26&&(ec-=26,ef--),ea=0!==ed||ef!==this.length-1?e_[6-eg.length]+eg+ea:eg+ea}for(0!==ed&&(ea=ed.toString(16)+ea);ea.length%eo!=0;)ea="0"+ea;return 0!==this.negative&&(ea="-"+ea),ea}if(ei===(0|ei)&&ei>=2&&ei<=36){var em=eS[ei],eb=eE[ei];ea="";var ew=this.clone();for(ew.negative=0;!ew.isZero();){var eA=ew.modrn(eb).toString(ei);ea=(ew=ew.idivn(eb)).isZero()?eA+ea:e_[em-eA.length]+eA+ea}for(this.isZero()&&(ea="0"+ea);ea.length%eo!=0;)ea="0"+ea;return 0!==this.negative&&(ea="-"+ea),ea}eu(!1,"Base should be between 2 and 36")},ed.prototype.toNumber=function(){var ei=this.words[0];return 2===this.length?ei+=67108864*this.words[1]:3===this.length&&1===this.words[2]?ei+=4503599627370496+67108864*this.words[1]:this.length>2&&eu(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-ei:ei},ed.prototype.toJSON=function(){return this.toString(16,2)},ew&&(ed.prototype.toBuffer=function(ei,eo){return this.toArrayLike(ew,ei,eo)}),ed.prototype.toArray=function(ei,eo){return this.toArrayLike(Array,ei,eo)};var eA=function(ei,eo){return ei.allocUnsafe?ei.allocUnsafe(eo):new ei(eo)};function eT(ei){for(var eo=Array(ei.bitLength()),ea=0;ea>>ec&1}return eo}function ek(ei,eo,ea){ea.negative=eo.negative^ei.negative;var eu=ei.length+eo.length|0;ea.length=eu,eu=eu-1|0;var ec=0|ei.words[0],ed=0|eo.words[0],ef=ec*ed,eh=67108863&ef,eg=ef/67108864|0;ea.words[0]=eh;for(var em=1;em>>26,ew=67108863&eg,e_=Math.min(em,eo.length-1),eS=Math.max(0,em-ei.length+1);eS<=e_;eS++){var eE=em-eS|0;eb+=(ef=(ec=0|ei.words[eE])*(ed=0|eo.words[eS])+ew)/67108864|0,ew=67108863&ef}ea.words[em]=0|ew,eg=0|eb}return 0!==eg?ea.words[em]=0|eg:ea.length--,ea._strip()}ed.prototype.toArrayLike=function(ei,eo,ea){this._strip();var ec=this.byteLength(),ed=ea||Math.max(1,ec);eu(ec<=ed,"byte array longer than desired length"),eu(ed>0,"Requested array length <= 0");var ef=eA(ei,ed);return this["_toArrayLike"+("le"===eo?"LE":"BE")](ef,ec),ef},ed.prototype._toArrayLikeLE=function(ei,eo){for(var ea=0,eu=0,ec=0,ed=0;ec>8&255),ea>16&255),6===ed?(ea>24&255),eu=0,ed=0):(eu=ef>>>24,ed+=2)}if(ea=0&&(ei[ea--]=ef>>8&255),ea>=0&&(ei[ea--]=ef>>16&255),6===ed?(ea>=0&&(ei[ea--]=ef>>24&255),eu=0,ed=0):(eu=ef>>>24,ed+=2)}if(ea>=0)for(ei[ea--]=eu;ea>=0;)ei[ea--]=0},Math.clz32?ed.prototype._countBits=function(ei){return 32-Math.clz32(ei)}:ed.prototype._countBits=function(ei){var eo=ei,ea=0;return eo>=4096&&(ea+=13,eo>>>=13),eo>=64&&(ea+=7,eo>>>=7),eo>=8&&(ea+=4,eo>>>=4),eo>=2&&(ea+=2,eo>>>=2),ea+eo},ed.prototype._zeroBits=function(ei){if(0===ei)return 26;var eo=ei,ea=0;return(8191&eo)==0&&(ea+=13,eo>>>=13),(127&eo)==0&&(ea+=7,eo>>>=7),(15&eo)==0&&(ea+=4,eo>>>=4),(3&eo)==0&&(ea+=2,eo>>>=2),(1&eo)==0&&ea++,ea},ed.prototype.bitLength=function(){var ei=this.words[this.length-1],eo=this._countBits(ei);return(this.length-1)*26+eo},ed.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ei=0,eo=0;eoei.length?this.clone().ior(ei):ei.clone().ior(this)},ed.prototype.uor=function(ei){return this.length>ei.length?this.clone().iuor(ei):ei.clone().iuor(this)},ed.prototype.iuand=function(ei){var eo;eo=this.length>ei.length?ei:this;for(var ea=0;eaei.length?this.clone().iand(ei):ei.clone().iand(this)},ed.prototype.uand=function(ei){return this.length>ei.length?this.clone().iuand(ei):ei.clone().iuand(this)},ed.prototype.iuxor=function(ei){this.length>ei.length?(eo=this,ea=ei):(eo=ei,ea=this);for(var eo,ea,eu=0;euei.length?this.clone().ixor(ei):ei.clone().ixor(this)},ed.prototype.uxor=function(ei){return this.length>ei.length?this.clone().iuxor(ei):ei.clone().iuxor(this)},ed.prototype.inotn=function(ei){eu("number"==typeof ei&&ei>=0);var eo=0|Math.ceil(ei/26),ea=ei%26;this._expand(eo),ea>0&&eo--;for(var ec=0;ec0&&(this.words[ec]=~this.words[ec]&67108863>>26-ea),this._strip()},ed.prototype.notn=function(ei){return this.clone().inotn(ei)},ed.prototype.setn=function(ei,eo){eu("number"==typeof ei&&ei>=0);var ea=ei/26|0,ec=ei%26;return this._expand(ea+1),eo?this.words[ea]=this.words[ea]|1<ei.length?(ea=this,eu=ei):(ea=ei,eu=this);for(var eo,ea,eu,ec=0,ed=0;ed>>26;for(;0!==ec&&ed>>26;if(this.length=ea.length,0!==ec)this.words[this.length]=ec,this.length++;else if(ea!==this)for(;edei.length?this.clone().iadd(ei):ei.clone().iadd(this)},ed.prototype.isub=function(ei){if(0!==ei.negative){ei.negative=0;var eo,ea,eu=this.iadd(ei);return ei.negative=1,eu._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(ei),this.negative=1,this._normSign();var ec=this.cmp(ei);if(0===ec)return this.negative=0,this.length=1,this.words[0]=0,this;ec>0?(eo=this,ea=ei):(eo=ei,ea=this);for(var ed=0,ef=0;ef>26,this.words[ef]=67108863&eu;for(;0!==ed&&ef>26,this.words[ef]=67108863&eu;if(0===ed&&ef>>13,eS=0|ef[1],eE=8191&eS,eA=eS>>>13,eT=0|ef[2],ek=8191&eT,eC=eT>>>13,eO=0|ef[3],eI=8191&eO,eP=eO>>>13,eD=0|ef[4],eN=8191&eD,eM=eD>>>13,ej=0|ef[5],eR=8191&ej,eL=ej>>>13,eF=0|ef[6],eB=8191&eF,eU=eF>>>13,eG=0|ef[7],eV=8191&eG,eH=eG>>>13,eW=0|ef[8],eK=8191&eW,eY=eW>>>13,eZ=0|ef[9],e$=8191&eZ,eJ=eZ>>>13,eQ=0|eh[0],eX=8191&eQ,e0=eQ>>>13,e3=0|eh[1],e5=8191&e3,e4=e3>>>13,e6=0|eh[2],e8=8191&e6,e9=e6>>>13,e7=0|eh[3],ta=8191&e7,tu=e7>>>13,tc=0|eh[4],td=8191&tc,tf=tc>>>13,tp=0|eh[5],tg=8191&tp,tm=tp>>>13,tv=0|eh[6],tb=8191&tv,tw=tv>>>13,t_=0|eh[7],tS=8191&t_,tE=t_>>>13,tA=0|eh[8],tT=8191&tA,tk=tA>>>13,tC=0|eh[9],tO=8191&tC,tI=tC>>>13;ea.negative=ei.negative^eo.negative,ea.length=19;var tP=(em+(eu=Math.imul(ew,eX))|0)+((8191&(ec=(ec=Math.imul(ew,e0))+Math.imul(e_,eX)|0))<<13)|0;em=((ed=Math.imul(e_,e0))+(ec>>>13)|0)+(tP>>>26)|0,tP&=67108863,eu=Math.imul(eE,eX),ec=(ec=Math.imul(eE,e0))+Math.imul(eA,eX)|0,ed=Math.imul(eA,e0);var tD=(em+(eu=eu+Math.imul(ew,e5)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ew,e4)|0)+Math.imul(e_,e5)|0))<<13)|0;em=((ed=ed+Math.imul(e_,e4)|0)+(ec>>>13)|0)+(tD>>>26)|0,tD&=67108863,eu=Math.imul(ek,eX),ec=(ec=Math.imul(ek,e0))+Math.imul(eC,eX)|0,ed=Math.imul(eC,e0),eu=eu+Math.imul(eE,e5)|0,ec=(ec=ec+Math.imul(eE,e4)|0)+Math.imul(eA,e5)|0,ed=ed+Math.imul(eA,e4)|0;var tN=(em+(eu=eu+Math.imul(ew,e8)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ew,e9)|0)+Math.imul(e_,e8)|0))<<13)|0;em=((ed=ed+Math.imul(e_,e9)|0)+(ec>>>13)|0)+(tN>>>26)|0,tN&=67108863,eu=Math.imul(eI,eX),ec=(ec=Math.imul(eI,e0))+Math.imul(eP,eX)|0,ed=Math.imul(eP,e0),eu=eu+Math.imul(ek,e5)|0,ec=(ec=ec+Math.imul(ek,e4)|0)+Math.imul(eC,e5)|0,ed=ed+Math.imul(eC,e4)|0,eu=eu+Math.imul(eE,e8)|0,ec=(ec=ec+Math.imul(eE,e9)|0)+Math.imul(eA,e8)|0,ed=ed+Math.imul(eA,e9)|0;var tM=(em+(eu=eu+Math.imul(ew,ta)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ew,tu)|0)+Math.imul(e_,ta)|0))<<13)|0;em=((ed=ed+Math.imul(e_,tu)|0)+(ec>>>13)|0)+(tM>>>26)|0,tM&=67108863,eu=Math.imul(eN,eX),ec=(ec=Math.imul(eN,e0))+Math.imul(eM,eX)|0,ed=Math.imul(eM,e0),eu=eu+Math.imul(eI,e5)|0,ec=(ec=ec+Math.imul(eI,e4)|0)+Math.imul(eP,e5)|0,ed=ed+Math.imul(eP,e4)|0,eu=eu+Math.imul(ek,e8)|0,ec=(ec=ec+Math.imul(ek,e9)|0)+Math.imul(eC,e8)|0,ed=ed+Math.imul(eC,e9)|0,eu=eu+Math.imul(eE,ta)|0,ec=(ec=ec+Math.imul(eE,tu)|0)+Math.imul(eA,ta)|0,ed=ed+Math.imul(eA,tu)|0;var tj=(em+(eu=eu+Math.imul(ew,td)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ew,tf)|0)+Math.imul(e_,td)|0))<<13)|0;em=((ed=ed+Math.imul(e_,tf)|0)+(ec>>>13)|0)+(tj>>>26)|0,tj&=67108863,eu=Math.imul(eR,eX),ec=(ec=Math.imul(eR,e0))+Math.imul(eL,eX)|0,ed=Math.imul(eL,e0),eu=eu+Math.imul(eN,e5)|0,ec=(ec=ec+Math.imul(eN,e4)|0)+Math.imul(eM,e5)|0,ed=ed+Math.imul(eM,e4)|0,eu=eu+Math.imul(eI,e8)|0,ec=(ec=ec+Math.imul(eI,e9)|0)+Math.imul(eP,e8)|0,ed=ed+Math.imul(eP,e9)|0,eu=eu+Math.imul(ek,ta)|0,ec=(ec=ec+Math.imul(ek,tu)|0)+Math.imul(eC,ta)|0,ed=ed+Math.imul(eC,tu)|0,eu=eu+Math.imul(eE,td)|0,ec=(ec=ec+Math.imul(eE,tf)|0)+Math.imul(eA,td)|0,ed=ed+Math.imul(eA,tf)|0;var tR=(em+(eu=eu+Math.imul(ew,tg)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ew,tm)|0)+Math.imul(e_,tg)|0))<<13)|0;em=((ed=ed+Math.imul(e_,tm)|0)+(ec>>>13)|0)+(tR>>>26)|0,tR&=67108863,eu=Math.imul(eB,eX),ec=(ec=Math.imul(eB,e0))+Math.imul(eU,eX)|0,ed=Math.imul(eU,e0),eu=eu+Math.imul(eR,e5)|0,ec=(ec=ec+Math.imul(eR,e4)|0)+Math.imul(eL,e5)|0,ed=ed+Math.imul(eL,e4)|0,eu=eu+Math.imul(eN,e8)|0,ec=(ec=ec+Math.imul(eN,e9)|0)+Math.imul(eM,e8)|0,ed=ed+Math.imul(eM,e9)|0,eu=eu+Math.imul(eI,ta)|0,ec=(ec=ec+Math.imul(eI,tu)|0)+Math.imul(eP,ta)|0,ed=ed+Math.imul(eP,tu)|0,eu=eu+Math.imul(ek,td)|0,ec=(ec=ec+Math.imul(ek,tf)|0)+Math.imul(eC,td)|0,ed=ed+Math.imul(eC,tf)|0,eu=eu+Math.imul(eE,tg)|0,ec=(ec=ec+Math.imul(eE,tm)|0)+Math.imul(eA,tg)|0,ed=ed+Math.imul(eA,tm)|0;var tL=(em+(eu=eu+Math.imul(ew,tb)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ew,tw)|0)+Math.imul(e_,tb)|0))<<13)|0;em=((ed=ed+Math.imul(e_,tw)|0)+(ec>>>13)|0)+(tL>>>26)|0,tL&=67108863,eu=Math.imul(eV,eX),ec=(ec=Math.imul(eV,e0))+Math.imul(eH,eX)|0,ed=Math.imul(eH,e0),eu=eu+Math.imul(eB,e5)|0,ec=(ec=ec+Math.imul(eB,e4)|0)+Math.imul(eU,e5)|0,ed=ed+Math.imul(eU,e4)|0,eu=eu+Math.imul(eR,e8)|0,ec=(ec=ec+Math.imul(eR,e9)|0)+Math.imul(eL,e8)|0,ed=ed+Math.imul(eL,e9)|0,eu=eu+Math.imul(eN,ta)|0,ec=(ec=ec+Math.imul(eN,tu)|0)+Math.imul(eM,ta)|0,ed=ed+Math.imul(eM,tu)|0,eu=eu+Math.imul(eI,td)|0,ec=(ec=ec+Math.imul(eI,tf)|0)+Math.imul(eP,td)|0,ed=ed+Math.imul(eP,tf)|0,eu=eu+Math.imul(ek,tg)|0,ec=(ec=ec+Math.imul(ek,tm)|0)+Math.imul(eC,tg)|0,ed=ed+Math.imul(eC,tm)|0,eu=eu+Math.imul(eE,tb)|0,ec=(ec=ec+Math.imul(eE,tw)|0)+Math.imul(eA,tb)|0,ed=ed+Math.imul(eA,tw)|0;var tF=(em+(eu=eu+Math.imul(ew,tS)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ew,tE)|0)+Math.imul(e_,tS)|0))<<13)|0;em=((ed=ed+Math.imul(e_,tE)|0)+(ec>>>13)|0)+(tF>>>26)|0,tF&=67108863,eu=Math.imul(eK,eX),ec=(ec=Math.imul(eK,e0))+Math.imul(eY,eX)|0,ed=Math.imul(eY,e0),eu=eu+Math.imul(eV,e5)|0,ec=(ec=ec+Math.imul(eV,e4)|0)+Math.imul(eH,e5)|0,ed=ed+Math.imul(eH,e4)|0,eu=eu+Math.imul(eB,e8)|0,ec=(ec=ec+Math.imul(eB,e9)|0)+Math.imul(eU,e8)|0,ed=ed+Math.imul(eU,e9)|0,eu=eu+Math.imul(eR,ta)|0,ec=(ec=ec+Math.imul(eR,tu)|0)+Math.imul(eL,ta)|0,ed=ed+Math.imul(eL,tu)|0,eu=eu+Math.imul(eN,td)|0,ec=(ec=ec+Math.imul(eN,tf)|0)+Math.imul(eM,td)|0,ed=ed+Math.imul(eM,tf)|0,eu=eu+Math.imul(eI,tg)|0,ec=(ec=ec+Math.imul(eI,tm)|0)+Math.imul(eP,tg)|0,ed=ed+Math.imul(eP,tm)|0,eu=eu+Math.imul(ek,tb)|0,ec=(ec=ec+Math.imul(ek,tw)|0)+Math.imul(eC,tb)|0,ed=ed+Math.imul(eC,tw)|0,eu=eu+Math.imul(eE,tS)|0,ec=(ec=ec+Math.imul(eE,tE)|0)+Math.imul(eA,tS)|0,ed=ed+Math.imul(eA,tE)|0;var tB=(em+(eu=eu+Math.imul(ew,tT)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ew,tk)|0)+Math.imul(e_,tT)|0))<<13)|0;em=((ed=ed+Math.imul(e_,tk)|0)+(ec>>>13)|0)+(tB>>>26)|0,tB&=67108863,eu=Math.imul(e$,eX),ec=(ec=Math.imul(e$,e0))+Math.imul(eJ,eX)|0,ed=Math.imul(eJ,e0),eu=eu+Math.imul(eK,e5)|0,ec=(ec=ec+Math.imul(eK,e4)|0)+Math.imul(eY,e5)|0,ed=ed+Math.imul(eY,e4)|0,eu=eu+Math.imul(eV,e8)|0,ec=(ec=ec+Math.imul(eV,e9)|0)+Math.imul(eH,e8)|0,ed=ed+Math.imul(eH,e9)|0,eu=eu+Math.imul(eB,ta)|0,ec=(ec=ec+Math.imul(eB,tu)|0)+Math.imul(eU,ta)|0,ed=ed+Math.imul(eU,tu)|0,eu=eu+Math.imul(eR,td)|0,ec=(ec=ec+Math.imul(eR,tf)|0)+Math.imul(eL,td)|0,ed=ed+Math.imul(eL,tf)|0,eu=eu+Math.imul(eN,tg)|0,ec=(ec=ec+Math.imul(eN,tm)|0)+Math.imul(eM,tg)|0,ed=ed+Math.imul(eM,tm)|0,eu=eu+Math.imul(eI,tb)|0,ec=(ec=ec+Math.imul(eI,tw)|0)+Math.imul(eP,tb)|0,ed=ed+Math.imul(eP,tw)|0,eu=eu+Math.imul(ek,tS)|0,ec=(ec=ec+Math.imul(ek,tE)|0)+Math.imul(eC,tS)|0,ed=ed+Math.imul(eC,tE)|0,eu=eu+Math.imul(eE,tT)|0,ec=(ec=ec+Math.imul(eE,tk)|0)+Math.imul(eA,tT)|0,ed=ed+Math.imul(eA,tk)|0;var tU=(em+(eu=eu+Math.imul(ew,tO)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ew,tI)|0)+Math.imul(e_,tO)|0))<<13)|0;em=((ed=ed+Math.imul(e_,tI)|0)+(ec>>>13)|0)+(tU>>>26)|0,tU&=67108863,eu=Math.imul(e$,e5),ec=(ec=Math.imul(e$,e4))+Math.imul(eJ,e5)|0,ed=Math.imul(eJ,e4),eu=eu+Math.imul(eK,e8)|0,ec=(ec=ec+Math.imul(eK,e9)|0)+Math.imul(eY,e8)|0,ed=ed+Math.imul(eY,e9)|0,eu=eu+Math.imul(eV,ta)|0,ec=(ec=ec+Math.imul(eV,tu)|0)+Math.imul(eH,ta)|0,ed=ed+Math.imul(eH,tu)|0,eu=eu+Math.imul(eB,td)|0,ec=(ec=ec+Math.imul(eB,tf)|0)+Math.imul(eU,td)|0,ed=ed+Math.imul(eU,tf)|0,eu=eu+Math.imul(eR,tg)|0,ec=(ec=ec+Math.imul(eR,tm)|0)+Math.imul(eL,tg)|0,ed=ed+Math.imul(eL,tm)|0,eu=eu+Math.imul(eN,tb)|0,ec=(ec=ec+Math.imul(eN,tw)|0)+Math.imul(eM,tb)|0,ed=ed+Math.imul(eM,tw)|0,eu=eu+Math.imul(eI,tS)|0,ec=(ec=ec+Math.imul(eI,tE)|0)+Math.imul(eP,tS)|0,ed=ed+Math.imul(eP,tE)|0,eu=eu+Math.imul(ek,tT)|0,ec=(ec=ec+Math.imul(ek,tk)|0)+Math.imul(eC,tT)|0,ed=ed+Math.imul(eC,tk)|0;var tG=(em+(eu=eu+Math.imul(eE,tO)|0)|0)+((8191&(ec=(ec=ec+Math.imul(eE,tI)|0)+Math.imul(eA,tO)|0))<<13)|0;em=((ed=ed+Math.imul(eA,tI)|0)+(ec>>>13)|0)+(tG>>>26)|0,tG&=67108863,eu=Math.imul(e$,e8),ec=(ec=Math.imul(e$,e9))+Math.imul(eJ,e8)|0,ed=Math.imul(eJ,e9),eu=eu+Math.imul(eK,ta)|0,ec=(ec=ec+Math.imul(eK,tu)|0)+Math.imul(eY,ta)|0,ed=ed+Math.imul(eY,tu)|0,eu=eu+Math.imul(eV,td)|0,ec=(ec=ec+Math.imul(eV,tf)|0)+Math.imul(eH,td)|0,ed=ed+Math.imul(eH,tf)|0,eu=eu+Math.imul(eB,tg)|0,ec=(ec=ec+Math.imul(eB,tm)|0)+Math.imul(eU,tg)|0,ed=ed+Math.imul(eU,tm)|0,eu=eu+Math.imul(eR,tb)|0,ec=(ec=ec+Math.imul(eR,tw)|0)+Math.imul(eL,tb)|0,ed=ed+Math.imul(eL,tw)|0,eu=eu+Math.imul(eN,tS)|0,ec=(ec=ec+Math.imul(eN,tE)|0)+Math.imul(eM,tS)|0,ed=ed+Math.imul(eM,tE)|0,eu=eu+Math.imul(eI,tT)|0,ec=(ec=ec+Math.imul(eI,tk)|0)+Math.imul(eP,tT)|0,ed=ed+Math.imul(eP,tk)|0;var tV=(em+(eu=eu+Math.imul(ek,tO)|0)|0)+((8191&(ec=(ec=ec+Math.imul(ek,tI)|0)+Math.imul(eC,tO)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tI)|0)+(ec>>>13)|0)+(tV>>>26)|0,tV&=67108863,eu=Math.imul(e$,ta),ec=(ec=Math.imul(e$,tu))+Math.imul(eJ,ta)|0,ed=Math.imul(eJ,tu),eu=eu+Math.imul(eK,td)|0,ec=(ec=ec+Math.imul(eK,tf)|0)+Math.imul(eY,td)|0,ed=ed+Math.imul(eY,tf)|0,eu=eu+Math.imul(eV,tg)|0,ec=(ec=ec+Math.imul(eV,tm)|0)+Math.imul(eH,tg)|0,ed=ed+Math.imul(eH,tm)|0,eu=eu+Math.imul(eB,tb)|0,ec=(ec=ec+Math.imul(eB,tw)|0)+Math.imul(eU,tb)|0,ed=ed+Math.imul(eU,tw)|0,eu=eu+Math.imul(eR,tS)|0,ec=(ec=ec+Math.imul(eR,tE)|0)+Math.imul(eL,tS)|0,ed=ed+Math.imul(eL,tE)|0,eu=eu+Math.imul(eN,tT)|0,ec=(ec=ec+Math.imul(eN,tk)|0)+Math.imul(eM,tT)|0,ed=ed+Math.imul(eM,tk)|0;var tq=(em+(eu=eu+Math.imul(eI,tO)|0)|0)+((8191&(ec=(ec=ec+Math.imul(eI,tI)|0)+Math.imul(eP,tO)|0))<<13)|0;em=((ed=ed+Math.imul(eP,tI)|0)+(ec>>>13)|0)+(tq>>>26)|0,tq&=67108863,eu=Math.imul(e$,td),ec=(ec=Math.imul(e$,tf))+Math.imul(eJ,td)|0,ed=Math.imul(eJ,tf),eu=eu+Math.imul(eK,tg)|0,ec=(ec=ec+Math.imul(eK,tm)|0)+Math.imul(eY,tg)|0,ed=ed+Math.imul(eY,tm)|0,eu=eu+Math.imul(eV,tb)|0,ec=(ec=ec+Math.imul(eV,tw)|0)+Math.imul(eH,tb)|0,ed=ed+Math.imul(eH,tw)|0,eu=eu+Math.imul(eB,tS)|0,ec=(ec=ec+Math.imul(eB,tE)|0)+Math.imul(eU,tS)|0,ed=ed+Math.imul(eU,tE)|0,eu=eu+Math.imul(eR,tT)|0,ec=(ec=ec+Math.imul(eR,tk)|0)+Math.imul(eL,tT)|0,ed=ed+Math.imul(eL,tk)|0;var tH=(em+(eu=eu+Math.imul(eN,tO)|0)|0)+((8191&(ec=(ec=ec+Math.imul(eN,tI)|0)+Math.imul(eM,tO)|0))<<13)|0;em=((ed=ed+Math.imul(eM,tI)|0)+(ec>>>13)|0)+(tH>>>26)|0,tH&=67108863,eu=Math.imul(e$,tg),ec=(ec=Math.imul(e$,tm))+Math.imul(eJ,tg)|0,ed=Math.imul(eJ,tm),eu=eu+Math.imul(eK,tb)|0,ec=(ec=ec+Math.imul(eK,tw)|0)+Math.imul(eY,tb)|0,ed=ed+Math.imul(eY,tw)|0,eu=eu+Math.imul(eV,tS)|0,ec=(ec=ec+Math.imul(eV,tE)|0)+Math.imul(eH,tS)|0,ed=ed+Math.imul(eH,tE)|0,eu=eu+Math.imul(eB,tT)|0,ec=(ec=ec+Math.imul(eB,tk)|0)+Math.imul(eU,tT)|0,ed=ed+Math.imul(eU,tk)|0;var tW=(em+(eu=eu+Math.imul(eR,tO)|0)|0)+((8191&(ec=(ec=ec+Math.imul(eR,tI)|0)+Math.imul(eL,tO)|0))<<13)|0;em=((ed=ed+Math.imul(eL,tI)|0)+(ec>>>13)|0)+(tW>>>26)|0,tW&=67108863,eu=Math.imul(e$,tb),ec=(ec=Math.imul(e$,tw))+Math.imul(eJ,tb)|0,ed=Math.imul(eJ,tw),eu=eu+Math.imul(eK,tS)|0,ec=(ec=ec+Math.imul(eK,tE)|0)+Math.imul(eY,tS)|0,ed=ed+Math.imul(eY,tE)|0,eu=eu+Math.imul(eV,tT)|0,ec=(ec=ec+Math.imul(eV,tk)|0)+Math.imul(eH,tT)|0,ed=ed+Math.imul(eH,tk)|0;var tK=(em+(eu=eu+Math.imul(eB,tO)|0)|0)+((8191&(ec=(ec=ec+Math.imul(eB,tI)|0)+Math.imul(eU,tO)|0))<<13)|0;em=((ed=ed+Math.imul(eU,tI)|0)+(ec>>>13)|0)+(tK>>>26)|0,tK&=67108863,eu=Math.imul(e$,tS),ec=(ec=Math.imul(e$,tE))+Math.imul(eJ,tS)|0,ed=Math.imul(eJ,tE),eu=eu+Math.imul(eK,tT)|0,ec=(ec=ec+Math.imul(eK,tk)|0)+Math.imul(eY,tT)|0,ed=ed+Math.imul(eY,tk)|0;var tY=(em+(eu=eu+Math.imul(eV,tO)|0)|0)+((8191&(ec=(ec=ec+Math.imul(eV,tI)|0)+Math.imul(eH,tO)|0))<<13)|0;em=((ed=ed+Math.imul(eH,tI)|0)+(ec>>>13)|0)+(tY>>>26)|0,tY&=67108863,eu=Math.imul(e$,tT),ec=(ec=Math.imul(e$,tk))+Math.imul(eJ,tT)|0,ed=Math.imul(eJ,tk);var tZ=(em+(eu=eu+Math.imul(eK,tO)|0)|0)+((8191&(ec=(ec=ec+Math.imul(eK,tI)|0)+Math.imul(eY,tO)|0))<<13)|0;em=((ed=ed+Math.imul(eY,tI)|0)+(ec>>>13)|0)+(tZ>>>26)|0,tZ&=67108863;var t$=(em+(eu=Math.imul(e$,tO))|0)+((8191&(ec=(ec=Math.imul(e$,tI))+Math.imul(eJ,tO)|0))<<13)|0;return em=((ed=Math.imul(eJ,tI))+(ec>>>13)|0)+(t$>>>26)|0,t$&=67108863,eg[0]=tP,eg[1]=tD,eg[2]=tN,eg[3]=tM,eg[4]=tj,eg[5]=tR,eg[6]=tL,eg[7]=tF,eg[8]=tB,eg[9]=tU,eg[10]=tG,eg[11]=tV,eg[12]=tq,eg[13]=tH,eg[14]=tW,eg[15]=tK,eg[16]=tY,eg[17]=tZ,eg[18]=t$,0!==em&&(eg[19]=em,ea.length++),ea};function eO(ei,eo,ea){ea.negative=eo.negative^ei.negative,ea.length=ei.length+eo.length;for(var eu=0,ec=0,ed=0;ed>>26)|0)>>>26,ef&=67108863}ea.words[ed]=eh,eu=ef,ef=ec}return 0!==eu?ea.words[ed]=eu:ea.length--,ea._strip()}function eI(ei,eo,ea){return eO(ei,eo,ea)}function eP(ei,eo){this.x=ei,this.y=eo}Math.imul||(eC=ek),ed.prototype.mulTo=function(ei,eo){var ea=this.length+ei.length;return 10===this.length&&10===ei.length?eC(this,ei,eo):ea<63?ek(this,ei,eo):ea<1024?eO(this,ei,eo):eI(this,ei,eo)},eP.prototype.makeRBT=function(ei){for(var eo=Array(ei),ea=ed.prototype._countBits(ei)-1,eu=0;eu>=1;return eu},eP.prototype.permute=function(ei,eo,ea,eu,ec,ed){for(var ef=0;ef>>=1)ec++;return 1<>>=13,ea[2*ef+1]=8191&ed,ed>>>=13;for(ef=2*eo;ef>=26,ea+=(ed/67108864|0)+(ef>>>26),this.words[ec]=67108863&ef}return 0!==ea&&(this.words[ec]=ea,this.length++),eo?this.ineg():this},ed.prototype.muln=function(ei){return this.clone().imuln(ei)},ed.prototype.sqr=function(){return this.mul(this)},ed.prototype.isqr=function(){return this.imul(this.clone())},ed.prototype.pow=function(ei){var eo=eT(ei);if(0===eo.length)return new ed(1);for(var ea=this,eu=0;eu=0);var eo,ea=ei%26,ec=(ei-ea)/26,ed=67108863>>>26-ea<<26-ea;if(0!==ea){var ef=0;for(eo=0;eo>>26-ea}ef&&(this.words[eo]=ef,this.length++)}if(0!==ec){for(eo=this.length-1;eo>=0;eo--)this.words[eo+ec]=this.words[eo];for(eo=0;eo=0),ec=eo?(eo-eo%26)/26:0;var ec,ed=ei%26,ef=Math.min((ei-ed)/26,this.length),eh=67108863^67108863>>>ed<ef)for(this.length-=ef,em=0;em=0&&(0!==eb||em>=ec);em--){var ew=0|this.words[em];this.words[em]=eb<<26-ed|ew>>>ed,eb=ew&eh}return eg&&0!==eb&&(eg.words[eg.length++]=eb),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},ed.prototype.ishrn=function(ei,eo,ea){return eu(0===this.negative),this.iushrn(ei,eo,ea)},ed.prototype.shln=function(ei){return this.clone().ishln(ei)},ed.prototype.ushln=function(ei){return this.clone().iushln(ei)},ed.prototype.shrn=function(ei){return this.clone().ishrn(ei)},ed.prototype.ushrn=function(ei){return this.clone().iushrn(ei)},ed.prototype.testn=function(ei){eu("number"==typeof ei&&ei>=0);var eo=ei%26,ea=(ei-eo)/26,ec=1<=0);var eo=ei%26,ea=(ei-eo)/26;if(eu(0===this.negative,"imaskn works only with positive numbers"),this.length<=ea)return this;if(0!==eo&&ea++,this.length=Math.min(ea,this.length),0!==eo){var ec=67108863^67108863>>>eo<=67108864;eo++)this.words[eo]-=67108864,eo===this.length-1?this.words[eo+1]=1:this.words[eo+1]++;return this.length=Math.max(this.length,eo+1),this},ed.prototype.isubn=function(ei){if(eu("number"==typeof ei),eu(ei<67108864),ei<0)return this.iaddn(-ei);if(0!==this.negative)return this.negative=0,this.iaddn(ei),this.negative=1,this;if(this.words[0]-=ei,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var eo=0;eo>26)-(eg/67108864|0),this.words[ec+ea]=67108863&ed}for(;ec>26,this.words[ec+ea]=67108863&ed;if(0===eh)return this._strip();for(eu(-1===eh),eh=0,ec=0;ec>26,this.words[ec]=67108863&ed;return this.negative=1,this._strip()},ed.prototype._wordDiv=function(ei,eo){var ea,eu=this.length-ei.length,ec=this.clone(),ef=ei,eh=0|ef.words[ef.length-1];0!=(eu=26-this._countBits(eh))&&(ef=ef.ushln(eu),ec.iushln(eu),eh=0|ef.words[ef.length-1]);var eg=ec.length-ef.length;if("mod"!==eo){(ea=new ed(null)).length=eg+1,ea.words=Array(ea.length);for(var em=0;em=0;ew--){var e_=(0|ec.words[ef.length+ew])*67108864+(0|ec.words[ef.length+ew-1]);for(e_=Math.min(e_/eh|0,67108863),ec._ishlnsubmul(ef,e_,ew);0!==ec.negative;)e_--,ec.negative=0,ec._ishlnsubmul(ef,1,ew),ec.isZero()||(ec.negative^=1);ea&&(ea.words[ew]=e_)}return ea&&ea._strip(),ec._strip(),"div"!==eo&&0!==eu&&ec.iushrn(eu),{div:ea||null,mod:ec}},ed.prototype.divmod=function(ei,eo,ea){var ec,ef,eh;return(eu(!ei.isZero()),this.isZero())?{div:new ed(0),mod:new ed(0)}:0!==this.negative&&0===ei.negative?(eh=this.neg().divmod(ei,eo),"mod"!==eo&&(ec=eh.div.neg()),"div"!==eo&&(ef=eh.mod.neg(),ea&&0!==ef.negative&&ef.iadd(ei)),{div:ec,mod:ef}):0===this.negative&&0!==ei.negative?(eh=this.divmod(ei.neg(),eo),"mod"!==eo&&(ec=eh.div.neg()),{div:ec,mod:eh.mod}):(this.negative&ei.negative)!=0?(eh=this.neg().divmod(ei.neg(),eo),"div"!==eo&&(ef=eh.mod.neg(),ea&&0!==ef.negative&&ef.isub(ei)),{div:eh.div,mod:ef}):ei.length>this.length||0>this.cmp(ei)?{div:new ed(0),mod:this}:1===ei.length?"div"===eo?{div:this.divn(ei.words[0]),mod:null}:"mod"===eo?{div:null,mod:new ed(this.modrn(ei.words[0]))}:{div:this.divn(ei.words[0]),mod:new ed(this.modrn(ei.words[0]))}:this._wordDiv(ei,eo)},ed.prototype.div=function(ei){return this.divmod(ei,"div",!1).div},ed.prototype.mod=function(ei){return this.divmod(ei,"mod",!1).mod},ed.prototype.umod=function(ei){return this.divmod(ei,"mod",!0).mod},ed.prototype.divRound=function(ei){var eo=this.divmod(ei);if(eo.mod.isZero())return eo.div;var ea=0!==eo.div.negative?eo.mod.isub(ei):eo.mod,eu=ei.ushrn(1),ec=ei.andln(1),ed=ea.cmp(eu);return ed<0||1===ec&&0===ed?eo.div:0!==eo.div.negative?eo.div.isubn(1):eo.div.iaddn(1)},ed.prototype.modrn=function(ei){var eo=ei<0;eo&&(ei=-ei),eu(ei<=67108863);for(var ea=67108864%ei,ec=0,ed=this.length-1;ed>=0;ed--)ec=(ea*ec+(0|this.words[ed]))%ei;return eo?-ec:ec},ed.prototype.modn=function(ei){return this.modrn(ei)},ed.prototype.idivn=function(ei){var eo=ei<0;eo&&(ei=-ei),eu(ei<=67108863);for(var ea=0,ec=this.length-1;ec>=0;ec--){var ed=(0|this.words[ec])+67108864*ea;this.words[ec]=ed/ei|0,ea=ed%ei}return this._strip(),eo?this.ineg():this},ed.prototype.divn=function(ei){return this.clone().idivn(ei)},ed.prototype.egcd=function(ei){eu(0===ei.negative),eu(!ei.isZero());var eo=this,ea=ei.clone();eo=0!==eo.negative?eo.umod(ei):eo.clone();for(var ec=new ed(1),ef=new ed(0),eh=new ed(0),eg=new ed(1),em=0;eo.isEven()&&ea.isEven();)eo.iushrn(1),ea.iushrn(1),++em;for(var eb=ea.clone(),ew=eo.clone();!eo.isZero();){for(var e_=0,eS=1;(eo.words[0]&eS)==0&&e_<26;++e_,eS<<=1);if(e_>0)for(eo.iushrn(e_);e_-->0;)(ec.isOdd()||ef.isOdd())&&(ec.iadd(eb),ef.isub(ew)),ec.iushrn(1),ef.iushrn(1);for(var eE=0,eA=1;(ea.words[0]&eA)==0&&eE<26;++eE,eA<<=1);if(eE>0)for(ea.iushrn(eE);eE-->0;)(eh.isOdd()||eg.isOdd())&&(eh.iadd(eb),eg.isub(ew)),eh.iushrn(1),eg.iushrn(1);eo.cmp(ea)>=0?(eo.isub(ea),ec.isub(eh),ef.isub(eg)):(ea.isub(eo),eh.isub(ec),eg.isub(ef))}return{a:eh,b:eg,gcd:ea.iushln(em)}},ed.prototype._invmp=function(ei){eu(0===ei.negative),eu(!ei.isZero());var eo,ea=this,ec=ei.clone();ea=0!==ea.negative?ea.umod(ei):ea.clone();for(var ef=new ed(1),eh=new ed(0),eg=ec.clone();ea.cmpn(1)>0&&ec.cmpn(1)>0;){for(var em=0,eb=1;(ea.words[0]&eb)==0&&em<26;++em,eb<<=1);if(em>0)for(ea.iushrn(em);em-->0;)ef.isOdd()&&ef.iadd(eg),ef.iushrn(1);for(var ew=0,e_=1;(ec.words[0]&e_)==0&&ew<26;++ew,e_<<=1);if(ew>0)for(ec.iushrn(ew);ew-->0;)eh.isOdd()&&eh.iadd(eg),eh.iushrn(1);ea.cmp(ec)>=0?(ea.isub(ec),ef.isub(eh)):(ec.isub(ea),eh.isub(ef))}return 0>(eo=0===ea.cmpn(1)?ef:eh).cmpn(0)&&eo.iadd(ei),eo},ed.prototype.gcd=function(ei){if(this.isZero())return ei.abs();if(ei.isZero())return this.abs();var eo=this.clone(),ea=ei.clone();eo.negative=0,ea.negative=0;for(var eu=0;eo.isEven()&&ea.isEven();eu++)eo.iushrn(1),ea.iushrn(1);for(;;){for(;eo.isEven();)eo.iushrn(1);for(;ea.isEven();)ea.iushrn(1);var ec=eo.cmp(ea);if(ec<0){var ed=eo;eo=ea,ea=ed}else if(0===ec||0===ea.cmpn(1))break;eo.isub(ea)}return ea.iushln(eu)},ed.prototype.invm=function(ei){return this.egcd(ei).a.umod(ei)},ed.prototype.isEven=function(){return(1&this.words[0])==0},ed.prototype.isOdd=function(){return(1&this.words[0])==1},ed.prototype.andln=function(ei){return this.words[0]&ei},ed.prototype.bincn=function(ei){eu("number"==typeof ei);var eo=ei%26,ea=(ei-eo)/26,ec=1<>>26,eh&=67108863,this.words[ef]=eh}return 0!==ed&&(this.words[ef]=ed,this.length++),this},ed.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},ed.prototype.cmpn=function(ei){var eo,ea=ei<0;if(0!==this.negative&&!ea)return-1;if(0===this.negative&&ea)return 1;if(this._strip(),this.length>1)eo=1;else{ea&&(ei=-ei),eu(ei<=67108863,"Number is too big");var ec=0|this.words[0];eo=ec===ei?0:ecei.length)return 1;if(this.length=0;ea--){var eu=0|this.words[ea],ec=0|ei.words[ea];if(eu!==ec){euec&&(eo=1);break}}return eo},ed.prototype.gtn=function(ei){return 1===this.cmpn(ei)},ed.prototype.gt=function(ei){return 1===this.cmp(ei)},ed.prototype.gten=function(ei){return this.cmpn(ei)>=0},ed.prototype.gte=function(ei){return this.cmp(ei)>=0},ed.prototype.ltn=function(ei){return-1===this.cmpn(ei)},ed.prototype.lt=function(ei){return-1===this.cmp(ei)},ed.prototype.lten=function(ei){return 0>=this.cmpn(ei)},ed.prototype.lte=function(ei){return 0>=this.cmp(ei)},ed.prototype.eqn=function(ei){return 0===this.cmpn(ei)},ed.prototype.eq=function(ei){return 0===this.cmp(ei)},ed.red=function(ei){return new eF(ei)},ed.prototype.toRed=function(ei){return eu(!this.red,"Already a number in reduction context"),eu(0===this.negative,"red works only with positives"),ei.convertTo(this)._forceRed(ei)},ed.prototype.fromRed=function(){return eu(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ed.prototype._forceRed=function(ei){return this.red=ei,this},ed.prototype.forceRed=function(ei){return eu(!this.red,"Already a number in reduction context"),this._forceRed(ei)},ed.prototype.redAdd=function(ei){return eu(this.red,"redAdd works only with red numbers"),this.red.add(this,ei)},ed.prototype.redIAdd=function(ei){return eu(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ei)},ed.prototype.redSub=function(ei){return eu(this.red,"redSub works only with red numbers"),this.red.sub(this,ei)},ed.prototype.redISub=function(ei){return eu(this.red,"redISub works only with red numbers"),this.red.isub(this,ei)},ed.prototype.redShl=function(ei){return eu(this.red,"redShl works only with red numbers"),this.red.shl(this,ei)},ed.prototype.redMul=function(ei){return eu(this.red,"redMul works only with red numbers"),this.red._verify2(this,ei),this.red.mul(this,ei)},ed.prototype.redIMul=function(ei){return eu(this.red,"redMul works only with red numbers"),this.red._verify2(this,ei),this.red.imul(this,ei)},ed.prototype.redSqr=function(){return eu(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ed.prototype.redISqr=function(){return eu(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ed.prototype.redSqrt=function(){return eu(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ed.prototype.redInvm=function(){return eu(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ed.prototype.redNeg=function(){return eu(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ed.prototype.redPow=function(ei){return eu(this.red&&!ei.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ei)};var eD={k256:null,p224:null,p192:null,p25519:null};function eN(ei,eo){this.name=ei,this.p=new ed(eo,16),this.n=this.p.bitLength(),this.k=new ed(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function eM(){eN.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ej(){eN.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function eR(){eN.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function eL(){eN.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function eF(ei){if("string"==typeof ei){var eo=ed._prime(ei);this.m=eo.p,this.prime=eo}else eu(ei.gtn(1),"modulus must be greater than 1"),this.m=ei,this.prime=null}function eB(ei){eF.call(this,ei),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new ed(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)}eN.prototype._tmp=function(){var ei=new ed(null);return ei.words=Array(Math.ceil(this.n/13)),ei},eN.prototype.ireduce=function(ei){var eo,ea=ei;do this.split(ea,this.tmp),eo=(ea=(ea=this.imulK(ea)).iadd(this.tmp)).bitLength();while(eo>this.n);var eu=eo0?ea.isub(this.p):void 0!==ea.strip?ea.strip():ea._strip(),ea},eN.prototype.split=function(ei,eo){ei.iushrn(this.n,0,eo)},eN.prototype.imulK=function(ei){return ei.imul(this.k)},ec(eM,eN),eM.prototype.split=function(ei,eo){for(var ea=4194303,eu=Math.min(ei.length,9),ec=0;ec>>22,ed=ef}ed>>>=22,ei.words[ec-10]=ed,0===ed&&ei.length>10?ei.length-=10:ei.length-=9},eM.prototype.imulK=function(ei){ei.words[ei.length]=0,ei.words[ei.length+1]=0,ei.length+=2;for(var eo=0,ea=0;ea>>=26,ei.words[ea]=ec,eo=eu}return 0!==eo&&(ei.words[ei.length++]=eo),ei},ed._prime=function(ei){var eo;if(eD[ei])return eD[ei];if("k256"===ei)eo=new eM;else if("p224"===ei)eo=new ej;else if("p192"===ei)eo=new eR;else if("p25519"===ei)eo=new eL;else throw Error("Unknown prime "+ei);return eD[ei]=eo,eo},eF.prototype._verify1=function(ei){eu(0===ei.negative,"red works only with positives"),eu(ei.red,"red works only with red numbers")},eF.prototype._verify2=function(ei,eo){eu((ei.negative|eo.negative)==0,"red works only with positives"),eu(ei.red&&ei.red===eo.red,"red works only with red numbers")},eF.prototype.imod=function(ei){return this.prime?this.prime.ireduce(ei)._forceRed(this):(em(ei,ei.umod(this.m)._forceRed(this)),ei)},eF.prototype.neg=function(ei){return ei.isZero()?ei.clone():this.m.sub(ei)._forceRed(this)},eF.prototype.add=function(ei,eo){this._verify2(ei,eo);var ea=ei.add(eo);return ea.cmp(this.m)>=0&&ea.isub(this.m),ea._forceRed(this)},eF.prototype.iadd=function(ei,eo){this._verify2(ei,eo);var ea=ei.iadd(eo);return ea.cmp(this.m)>=0&&ea.isub(this.m),ea},eF.prototype.sub=function(ei,eo){this._verify2(ei,eo);var ea=ei.sub(eo);return 0>ea.cmpn(0)&&ea.iadd(this.m),ea._forceRed(this)},eF.prototype.isub=function(ei,eo){this._verify2(ei,eo);var ea=ei.isub(eo);return 0>ea.cmpn(0)&&ea.iadd(this.m),ea},eF.prototype.shl=function(ei,eo){return this._verify1(ei),this.imod(ei.ushln(eo))},eF.prototype.imul=function(ei,eo){return this._verify2(ei,eo),this.imod(ei.imul(eo))},eF.prototype.mul=function(ei,eo){return this._verify2(ei,eo),this.imod(ei.mul(eo))},eF.prototype.isqr=function(ei){return this.imul(ei,ei.clone())},eF.prototype.sqr=function(ei){return this.mul(ei,ei)},eF.prototype.sqrt=function(ei){if(ei.isZero())return ei.clone();var eo=this.m.andln(3);if(eu(eo%2==1),3===eo){var ea=this.m.add(new ed(1)).iushrn(2);return this.pow(ei,ea)}for(var ec=this.m.subn(1),ef=0;!ec.isZero()&&0===ec.andln(1);)ef++,ec.iushrn(1);eu(!ec.isZero());var eh=new ed(1).toRed(this),eg=eh.redNeg(),em=this.m.subn(1).iushrn(1),eb=this.m.bitLength();for(eb=new ed(2*eb*eb).toRed(this);0!==this.pow(eb,em).cmp(eg);)eb.redIAdd(eg);for(var ew=this.pow(eb,ec),e_=this.pow(ei,ec.addn(1).iushrn(1)),eS=this.pow(ei,ec),eE=ef;0!==eS.cmp(eh);){for(var eA=eS,eT=0;0!==eA.cmp(eh);eT++)eA=eA.redSqr();eu(eT=0;ec--){for(var eb=eo.words[ec],ew=em-1;ew>=0;ew--){var e_=eb>>ew&1;if(ef!==eu[0]&&(ef=this.sqr(ef)),0===e_&&0===eh){eg=0;continue}eh<<=1,eh|=e_,(++eg===ea||0===ec&&0===ew)&&(ef=this.mul(ef,eu[eh]),eg=0,eh=0)}em=26}return ef},eF.prototype.convertTo=function(ei){var eo=ei.umod(this.m);return eo===ei?eo.clone():eo},eF.prototype.convertFrom=function(ei){var eo=ei.clone();return eo.red=null,eo},ed.mont=function(ei){return new eB(ei)},ec(eB,eF),eB.prototype.convertTo=function(ei){return this.imod(ei.ushln(this.shift))},eB.prototype.convertFrom=function(ei){var eo=this.imod(ei.mul(this.rinv));return eo.red=null,eo},eB.prototype.imul=function(ei,eo){if(ei.isZero()||eo.isZero())return ei.words[0]=0,ei.length=1,ei;var ea=ei.imul(eo),eu=ea.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ec=ea.isub(eu).iushrn(this.shift),ed=ec;return ec.cmp(this.m)>=0?ed=ec.isub(this.m):0>ec.cmpn(0)&&(ed=ec.iadd(this.m)),ed._forceRed(this)},eB.prototype.mul=function(ei,eo){if(ei.isZero()||eo.isZero())return new ed(0)._forceRed(this);var ea=ei.mul(eo),eu=ea.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ec=ea.isub(eu).iushrn(this.shift),ef=ec;return ec.cmp(this.m)>=0?ef=ec.isub(this.m):0>ec.cmpn(0)&&(ef=ec.iadd(this.m)),ef._forceRed(this)},eB.prototype.invm=function(ei){return this.imod(ei._invmp(this.m).mul(this.r2))._forceRed(this)}}(ei=ea.nmd(ei),this)},25532:function(ei,eo,ea){"use strict";var eu=ea(48764).Buffer,ec=this&&this.__createBinding||(Object.create?function(ei,eo,ea,eu){void 0===eu&&(eu=ea),Object.defineProperty(ei,eu,{enumerable:!0,get:function(){return eo[ea]}})}:function(ei,eo,ea,eu){void 0===eu&&(eu=ea),ei[eu]=eo[ea]}),ed=this&&this.__setModuleDefault||(Object.create?function(ei,eo){Object.defineProperty(ei,"default",{enumerable:!0,value:eo})}:function(ei,eo){ei.default=eo}),ef=this&&this.__decorate||function(ei,eo,ea,eu){var ec,ed=arguments.length,ef=ed<3?eo:null===eu?eu=Object.getOwnPropertyDescriptor(eo,ea):eu;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ef=Reflect.decorate(ei,eo,ea,eu);else for(var eh=ei.length-1;eh>=0;eh--)(ec=ei[eh])&&(ef=(ed<3?ec(ef):ed>3?ec(eo,ea,ef):ec(eo,ea))||ef);return ed>3&&ef&&Object.defineProperty(eo,ea,ef),ef},eh=this&&this.__importStar||function(ei){if(ei&&ei.__esModule)return ei;var eo={};if(null!=ei)for(var ea in ei)"default"!==ea&&Object.hasOwnProperty.call(ei,ea)&&ec(eo,ei,ea);return ed(eo,ei),eo},eg=this&&this.__importDefault||function(ei){return ei&&ei.__esModule?ei:{default:ei}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.deserializeUnchecked=eo.deserialize=eo.serialize=eo.BinaryReader=eo.BinaryWriter=eo.BorshError=eo.baseDecode=eo.baseEncode=void 0;let em=eg(ea(13550)),eb=eg(ea(97304)),ew=eh(ea(21127)),e_="function"!=typeof TextDecoder?ew.TextDecoder:TextDecoder,eS=new e_("utf-8",{fatal:!0});function eE(ei){return"string"==typeof ei&&(ei=eu.from(ei,"utf8")),eb.default.encode(eu.from(ei))}function eA(ei){return eu.from(eb.default.decode(ei))}eo.baseEncode=eE,eo.baseDecode=eA;let eT=1024;class ek extends Error{constructor(ei){super(ei),this.fieldPath=[],this.originalMessage=ei}addToFieldPath(ei){this.fieldPath.splice(0,0,ei),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}eo.BorshError=ek;class eC{constructor(){this.buf=eu.alloc(eT),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=eu.concat([this.buf,eu.alloc(eT)]))}writeU8(ei){this.maybeResize(),this.buf.writeUInt8(ei,this.length),this.length+=1}writeU16(ei){this.maybeResize(),this.buf.writeUInt16LE(ei,this.length),this.length+=2}writeU32(ei){this.maybeResize(),this.buf.writeUInt32LE(ei,this.length),this.length+=4}writeU64(ei){this.maybeResize(),this.writeBuffer(eu.from(new em.default(ei).toArray("le",8)))}writeU128(ei){this.maybeResize(),this.writeBuffer(eu.from(new em.default(ei).toArray("le",16)))}writeU256(ei){this.maybeResize(),this.writeBuffer(eu.from(new em.default(ei).toArray("le",32)))}writeU512(ei){this.maybeResize(),this.writeBuffer(eu.from(new em.default(ei).toArray("le",64)))}writeBuffer(ei){this.buf=eu.concat([eu.from(this.buf.subarray(0,this.length)),ei,eu.alloc(eT)]),this.length+=ei.length}writeString(ei){this.maybeResize();let eo=eu.from(ei,"utf8");this.writeU32(eo.length),this.writeBuffer(eo)}writeFixedArray(ei){this.writeBuffer(eu.from(ei))}writeArray(ei,eo){for(let ea of(this.maybeResize(),this.writeU32(ei.length),ei))this.maybeResize(),eo(ea)}toArray(){return this.buf.subarray(0,this.length)}}function eO(ei,eo,ea){let eu=ea.value;ea.value=function(...ei){try{return eu.apply(this,ei)}catch(ei){if(ei instanceof RangeError){let eo=ei.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(eo)>=0)throw new ek("Reached the end of buffer when deserializing")}throw ei}}}eo.BinaryWriter=eC;class eI{constructor(ei){this.buf=ei,this.offset=0}readU8(){let ei=this.buf.readUInt8(this.offset);return this.offset+=1,ei}readU16(){let ei=this.buf.readUInt16LE(this.offset);return this.offset+=2,ei}readU32(){let ei=this.buf.readUInt32LE(this.offset);return this.offset+=4,ei}readU64(){let ei=this.readBuffer(8);return new em.default(ei,"le")}readU128(){let ei=this.readBuffer(16);return new em.default(ei,"le")}readU256(){let ei=this.readBuffer(32);return new em.default(ei,"le")}readU512(){let ei=this.readBuffer(64);return new em.default(ei,"le")}readBuffer(ei){if(this.offset+ei>this.buf.length)throw new ek(`Expected buffer length ${ei} isn't within bounds`);let eo=this.buf.slice(this.offset,this.offset+ei);return this.offset+=ei,eo}readString(){let ei=this.readU32(),eo=this.readBuffer(ei);try{return eS.decode(eo)}catch(ei){throw new ek(`Error decoding UTF-8 string: ${ei}`)}}readFixedArray(ei){return new Uint8Array(this.readBuffer(ei))}readArray(ei){let eo=this.readU32(),ea=[];for(let eu=0;eu{eD(ei,eo,ea,eu[0],ec)})}else if(void 0!==eu.kind)switch(eu.kind){case"option":null==ea?ec.writeU8(0):(ec.writeU8(1),eD(ei,eo,ea,eu.type,ec));break;case"map":ec.writeU32(ea.size),ea.forEach((ea,ed)=>{eD(ei,eo,ed,eu.key,ec),eD(ei,eo,ea,eu.value,ec)});break;default:throw new ek(`FieldType ${eu} unrecognized`)}else eN(ei,ea,ec)}catch(ei){throw ei instanceof ek&&ei.addToFieldPath(eo),ei}}function eN(ei,eo,ea){if("function"==typeof eo.borshSerialize){eo.borshSerialize(ea);return}let eu=ei.get(eo.constructor);if(!eu)throw new ek(`Class ${eo.constructor.name} is missing in schema`);if("struct"===eu.kind)eu.fields.map(([eu,ec])=>{eD(ei,eu,eo[eu],ec,ea)});else if("enum"===eu.kind){let ec=eo[eu.field];for(let ed=0;edej(ei,eo,ea[0],eu));{let eo=[];for(let ec=0;ec=eu.values.length)throw new ek(`Enum index: ${ec} is out of range`);let[ed,ef]=eu.values[ec],eh=ej(ei,ed,ef,ea);return new eo({[ed]:eh})}throw new ek(`Unexpected schema kind: ${eu.kind} for ${eo.constructor.name}`)}function eL(ei,eo,ea,eu=eI){let ec=new eu(ea),ed=eR(ei,eo,ec);if(ec.offset=255)throw TypeError("Alphabet too long");for(var eo=new Uint8Array(256),ea=0;ea>>0,em=new Uint8Array(ed);ei[ea];){var eb=eo[ei.charCodeAt(ea)];if(255===eb)return;for(var ew=0,e_=ed-1;(0!==eb||ew>>0,em[e_]=eb%256>>>0,eb=eb/256>>>0;if(0!==eb)throw Error("Non-zero carry");ec=ew,ea++}for(var eS=ed-ec;eS!==ed&&0===em[eS];)eS++;for(var eE=new Uint8Array(eu+(ed-eS)),eA=eu;eS!==ed;)eE[eA++]=em[eS++];return eE}function ew(ei){var eo=eb(ei);if(eo)return eo;throw Error("Non-base"+ef+" character")}return{encode:function(eo){if(eo instanceof Uint8Array||(ArrayBuffer.isView(eo)?eo=new Uint8Array(eo.buffer,eo.byteOffset,eo.byteLength):Array.isArray(eo)&&(eo=Uint8Array.from(eo))),!(eo instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===eo.length)return"";for(var ea=0,eu=0,ec=0,ed=eo.length;ec!==ed&&0===eo[ec];)ec++,ea++;for(var eg=(ed-ec)*em+1>>>0,eb=new Uint8Array(eg);ec!==ed;){for(var ew=eo[ec],e_=0,eS=eg-1;(0!==ew||e_>>0,eb[eS]=ew%ef>>>0,ew=ew/ef>>>0;if(0!==ew)throw Error("Non-zero carry");eu=e_,ec++}for(var eE=eg-eu;eE!==eg&&0===eb[eE];)eE++;for(var eA=eh.repeat(ea);eE +* @license MIT +*/let eu=ea(79742),ec=ea(80645),ed="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;eo.Buffer=em,eo.SlowBuffer=eI,eo.INSPECT_MAX_BYTES=50;let ef=2147483647;function eh(){try{let ei=new Uint8Array(1),eo={foo:function(){return 42}};return Object.setPrototypeOf(eo,Uint8Array.prototype),Object.setPrototypeOf(ei,eo),42===ei.foo()}catch(ei){return!1}}function eg(ei){if(ei>ef)throw RangeError('The value "'+ei+'" is invalid for option "size"');let eo=new Uint8Array(ei);return Object.setPrototypeOf(eo,em.prototype),eo}function em(ei,eo,ea){if("number"==typeof ei){if("string"==typeof eo)throw TypeError('The "string" argument must be of type string. Received type number');return eS(ei)}return eb(ei,eo,ea)}function eb(ei,eo,ea){if("string"==typeof ei)return eE(ei,eo);if(ArrayBuffer.isView(ei))return eT(ei);if(null==ei)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ei);if(tw(ei,ArrayBuffer)||ei&&tw(ei.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(tw(ei,SharedArrayBuffer)||ei&&tw(ei.buffer,SharedArrayBuffer)))return ek(ei,eo,ea);if("number"==typeof ei)throw TypeError('The "value" argument must not be of type number. Received type number');let eu=ei.valueOf&&ei.valueOf();if(null!=eu&&eu!==ei)return em.from(eu,eo,ea);let ec=eC(ei);if(ec)return ec;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof ei[Symbol.toPrimitive])return em.from(ei[Symbol.toPrimitive]("string"),eo,ea);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ei)}function ew(ei){if("number"!=typeof ei)throw TypeError('"size" argument must be of type number');if(ei<0)throw RangeError('The value "'+ei+'" is invalid for option "size"')}function e_(ei,eo,ea){return(ew(ei),ei<=0)?eg(ei):void 0!==eo?"string"==typeof ea?eg(ei).fill(eo,ea):eg(ei).fill(eo):eg(ei)}function eS(ei){return ew(ei),eg(ei<0?0:0|eO(ei))}function eE(ei,eo){if(("string"!=typeof eo||""===eo)&&(eo="utf8"),!em.isEncoding(eo))throw TypeError("Unknown encoding: "+eo);let ea=0|eP(ei,eo),eu=eg(ea),ec=eu.write(ei,eo);return ec!==ea&&(eu=eu.slice(0,ec)),eu}function eA(ei){let eo=ei.length<0?0:0|eO(ei.length),ea=eg(eo);for(let eu=0;eu=ef)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ef.toString(16)+" bytes");return 0|ei}function eI(ei){return+ei!=ei&&(ei=0),em.alloc(+ei)}function eP(ei,eo){if(em.isBuffer(ei))return ei.length;if(ArrayBuffer.isView(ei)||tw(ei,ArrayBuffer))return ei.byteLength;if("string"!=typeof ei)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ei);let ea=ei.length,eu=arguments.length>2&&!0===arguments[2];if(!eu&&0===ea)return 0;let ec=!1;for(;;)switch(eo){case"ascii":case"latin1":case"binary":return ea;case"utf8":case"utf-8":return tp(ei).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ea;case"hex":return ea>>>1;case"base64":return tv(ei).length;default:if(ec)return eu?-1:tp(ei).length;eo=(""+eo).toLowerCase(),ec=!0}}function eD(ei,eo,ea){let eu=!1;if((void 0===eo||eo<0)&&(eo=0),eo>this.length||((void 0===ea||ea>this.length)&&(ea=this.length),ea<=0||(ea>>>=0)<=(eo>>>=0)))return"";for(ei||(ei="utf8");;)switch(ei){case"hex":return eZ(this,eo,ea);case"utf8":case"utf-8":return eV(this,eo,ea);case"ascii":return eK(this,eo,ea);case"latin1":case"binary":return eY(this,eo,ea);case"base64":return eG(this,eo,ea);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e$(this,eo,ea);default:if(eu)throw TypeError("Unknown encoding: "+ei);ei=(ei+"").toLowerCase(),eu=!0}}function eN(ei,eo,ea){let eu=ei[eo];ei[eo]=ei[ea],ei[ea]=eu}function eM(ei,eo,ea,eu,ec){if(0===ei.length)return-1;if("string"==typeof ea?(eu=ea,ea=0):ea>2147483647?ea=2147483647:ea<-2147483648&&(ea=-2147483648),t_(ea=+ea)&&(ea=ec?0:ei.length-1),ea<0&&(ea=ei.length+ea),ea>=ei.length){if(ec)return-1;ea=ei.length-1}else if(ea<0){if(!ec)return-1;ea=0}if("string"==typeof eo&&(eo=em.from(eo,eu)),em.isBuffer(eo))return 0===eo.length?-1:ej(ei,eo,ea,eu,ec);if("number"==typeof eo)return(eo&=255,"function"==typeof Uint8Array.prototype.indexOf)?ec?Uint8Array.prototype.indexOf.call(ei,eo,ea):Uint8Array.prototype.lastIndexOf.call(ei,eo,ea):ej(ei,[eo],ea,eu,ec);throw TypeError("val must be string, number or Buffer")}function ej(ei,eo,ea,eu,ec){let ed,ef=1,eh=ei.length,eg=eo.length;if(void 0!==eu&&("ucs2"===(eu=String(eu).toLowerCase())||"ucs-2"===eu||"utf16le"===eu||"utf-16le"===eu)){if(ei.length<2||eo.length<2)return-1;ef=2,eh/=2,eg/=2,ea/=2}function em(ei,eo){return 1===ef?ei[eo]:ei.readUInt16BE(eo*ef)}if(ec){let eu=-1;for(ed=ea;edeh&&(ea=eh-eg),ed=ea;ed>=0;ed--){let ea=!0;for(let eu=0;eued&&(eu=ed):eu=ed;let ef=eo.length;for(eu>ef/2&&(eu=ef/2),ec=0;ec239?4:eo>223?3:eo>191?2:1;if(ec+ef<=ea){let ea,eu,eh,eg;switch(ef){case 1:eo<128&&(ed=eo);break;case 2:(192&(ea=ei[ec+1]))==128&&(eg=(31&eo)<<6|63&ea)>127&&(ed=eg);break;case 3:ea=ei[ec+1],eu=ei[ec+2],(192&ea)==128&&(192&eu)==128&&(eg=(15&eo)<<12|(63&ea)<<6|63&eu)>2047&&(eg<55296||eg>57343)&&(ed=eg);break;case 4:ea=ei[ec+1],eu=ei[ec+2],eh=ei[ec+3],(192&ea)==128&&(192&eu)==128&&(192&eh)==128&&(eg=(15&eo)<<18|(63&ea)<<12|(63&eu)<<6|63&eh)>65535&&eg<1114112&&(ed=eg)}}null===ed?(ed=65533,ef=1):ed>65535&&(ed-=65536,eu.push(ed>>>10&1023|55296),ed=56320|1023&ed),eu.push(ed),ec+=ef}return eW(eu)}eo.kMaxLength=ef,em.TYPED_ARRAY_SUPPORT=eh(),em.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(em.prototype,"parent",{enumerable:!0,get:function(){if(em.isBuffer(this))return this.buffer}}),Object.defineProperty(em.prototype,"offset",{enumerable:!0,get:function(){if(em.isBuffer(this))return this.byteOffset}}),em.poolSize=8192,em.from=function(ei,eo,ea){return eb(ei,eo,ea)},Object.setPrototypeOf(em.prototype,Uint8Array.prototype),Object.setPrototypeOf(em,Uint8Array),em.alloc=function(ei,eo,ea){return e_(ei,eo,ea)},em.allocUnsafe=function(ei){return eS(ei)},em.allocUnsafeSlow=function(ei){return eS(ei)},em.isBuffer=function(ei){return null!=ei&&!0===ei._isBuffer&&ei!==em.prototype},em.compare=function(ei,eo){if(tw(ei,Uint8Array)&&(ei=em.from(ei,ei.offset,ei.byteLength)),tw(eo,Uint8Array)&&(eo=em.from(eo,eo.offset,eo.byteLength)),!em.isBuffer(ei)||!em.isBuffer(eo))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ei===eo)return 0;let ea=ei.length,eu=eo.length;for(let ec=0,ed=Math.min(ea,eu);eceu.length?(em.isBuffer(eo)||(eo=em.from(eo)),eo.copy(eu,ec)):Uint8Array.prototype.set.call(eu,eo,ec);else if(em.isBuffer(eo))eo.copy(eu,ec);else throw TypeError('"list" argument must be an Array of Buffers');ec+=eo.length}return eu},em.byteLength=eP,em.prototype._isBuffer=!0,em.prototype.swap16=function(){let ei=this.length;if(ei%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let eo=0;eoea&&(ei+=" ... "),""},ed&&(em.prototype[ed]=em.prototype.inspect),em.prototype.compare=function(ei,eo,ea,eu,ec){if(tw(ei,Uint8Array)&&(ei=em.from(ei,ei.offset,ei.byteLength)),!em.isBuffer(ei))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ei);if(void 0===eo&&(eo=0),void 0===ea&&(ea=ei?ei.length:0),void 0===eu&&(eu=0),void 0===ec&&(ec=this.length),eo<0||ea>ei.length||eu<0||ec>this.length)throw RangeError("out of range index");if(eu>=ec&&eo>=ea)return 0;if(eu>=ec)return-1;if(eo>=ea)return 1;if(eo>>>=0,ea>>>=0,eu>>>=0,ec>>>=0,this===ei)return 0;let ed=ec-eu,ef=ea-eo,eh=Math.min(ed,ef),eg=this.slice(eu,ec),eb=ei.slice(eo,ea);for(let ei=0;ei>>=0,isFinite(ea)?(ea>>>=0,void 0===eu&&(eu="utf8")):(eu=ea,ea=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ec=this.length-eo;if((void 0===ea||ea>ec)&&(ea=ec),ei.length>0&&(ea<0||eo<0)||eo>this.length)throw RangeError("Attempt to write outside buffer bounds");eu||(eu="utf8");let ed=!1;for(;;)switch(eu){case"hex":return eR(this,ei,eo,ea);case"utf8":case"utf-8":return eL(this,ei,eo,ea);case"ascii":case"latin1":case"binary":return eF(this,ei,eo,ea);case"base64":return eB(this,ei,eo,ea);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eU(this,ei,eo,ea);default:if(ed)throw TypeError("Unknown encoding: "+eu);eu=(""+eu).toLowerCase(),ed=!0}},em.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let eH=4096;function eW(ei){let eo=ei.length;if(eo<=eH)return String.fromCharCode.apply(String,ei);let ea="",eu=0;for(;eueu)&&(ea=eu);let ec="";for(let eu=eo;euea)throw RangeError("Trying to access beyond buffer length")}function eQ(ei,eo,ea,eu,ec,ed){if(!em.isBuffer(ei))throw TypeError('"buffer" argument must be a Buffer instance');if(eo>ec||eoei.length)throw RangeError("Index out of range")}function eX(ei,eo,ea,eu,ec){ta(eo,eu,ec,ei,ea,7);let ed=Number(eo&BigInt(4294967295));ei[ea++]=ed,ed>>=8,ei[ea++]=ed,ed>>=8,ei[ea++]=ed,ed>>=8,ei[ea++]=ed;let ef=Number(eo>>BigInt(32)&BigInt(4294967295));return ei[ea++]=ef,ef>>=8,ei[ea++]=ef,ef>>=8,ei[ea++]=ef,ef>>=8,ei[ea++]=ef,ea}function e0(ei,eo,ea,eu,ec){ta(eo,eu,ec,ei,ea,7);let ed=Number(eo&BigInt(4294967295));ei[ea+7]=ed,ed>>=8,ei[ea+6]=ed,ed>>=8,ei[ea+5]=ed,ed>>=8,ei[ea+4]=ed;let ef=Number(eo>>BigInt(32)&BigInt(4294967295));return ei[ea+3]=ef,ef>>=8,ei[ea+2]=ef,ef>>=8,ei[ea+1]=ef,ef>>=8,ei[ea]=ef,ea+8}function e3(ei,eo,ea,eu,ec,ed){if(ea+eu>ei.length||ea<0)throw RangeError("Index out of range")}function e5(ei,eo,ea,eu,ed){return eo=+eo,ea>>>=0,ed||e3(ei,eo,ea,4,34028234663852886e22,-34028234663852886e22),ec.write(ei,eo,ea,eu,23,4),ea+4}function e4(ei,eo,ea,eu,ed){return eo=+eo,ea>>>=0,ed||e3(ei,eo,ea,8,17976931348623157e292,-17976931348623157e292),ec.write(ei,eo,ea,eu,52,8),ea+8}em.prototype.slice=function(ei,eo){let ea=this.length;ei=~~ei,eo=void 0===eo?ea:~~eo,ei<0?(ei+=ea)<0&&(ei=0):ei>ea&&(ei=ea),eo<0?(eo+=ea)<0&&(eo=0):eo>ea&&(eo=ea),eo>>=0,eo>>>=0,ea||eJ(ei,eo,this.length);let eu=this[ei],ec=1,ed=0;for(;++ed>>=0,eo>>>=0,ea||eJ(ei,eo,this.length);let eu=this[ei+--eo],ec=1;for(;eo>0&&(ec*=256);)eu+=this[ei+--eo]*ec;return eu},em.prototype.readUint8=em.prototype.readUInt8=function(ei,eo){return ei>>>=0,eo||eJ(ei,1,this.length),this[ei]},em.prototype.readUint16LE=em.prototype.readUInt16LE=function(ei,eo){return ei>>>=0,eo||eJ(ei,2,this.length),this[ei]|this[ei+1]<<8},em.prototype.readUint16BE=em.prototype.readUInt16BE=function(ei,eo){return ei>>>=0,eo||eJ(ei,2,this.length),this[ei]<<8|this[ei+1]},em.prototype.readUint32LE=em.prototype.readUInt32LE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),(this[ei]|this[ei+1]<<8|this[ei+2]<<16)+16777216*this[ei+3]},em.prototype.readUint32BE=em.prototype.readUInt32BE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),16777216*this[ei]+(this[ei+1]<<16|this[ei+2]<<8|this[ei+3])},em.prototype.readBigUInt64LE=tE(function(ei){tu(ei>>>=0,"offset");let eo=this[ei],ea=this[ei+7];(void 0===eo||void 0===ea)&&tc(ei,this.length-8);let eu=eo+256*this[++ei]+65536*this[++ei]+16777216*this[++ei],ec=this[++ei]+256*this[++ei]+65536*this[++ei]+16777216*ea;return BigInt(eu)+(BigInt(ec)<>>=0,"offset");let eo=this[ei],ea=this[ei+7];(void 0===eo||void 0===ea)&&tc(ei,this.length-8);let eu=16777216*eo+65536*this[++ei]+256*this[++ei]+this[++ei],ec=16777216*this[++ei]+65536*this[++ei]+256*this[++ei]+ea;return(BigInt(eu)<>>=0,eo>>>=0,ea||eJ(ei,eo,this.length);let eu=this[ei],ec=1,ed=0;for(;++ed=(ec*=128)&&(eu-=Math.pow(2,8*eo)),eu},em.prototype.readIntBE=function(ei,eo,ea){ei>>>=0,eo>>>=0,ea||eJ(ei,eo,this.length);let eu=eo,ec=1,ed=this[ei+--eu];for(;eu>0&&(ec*=256);)ed+=this[ei+--eu]*ec;return ed>=(ec*=128)&&(ed-=Math.pow(2,8*eo)),ed},em.prototype.readInt8=function(ei,eo){return(ei>>>=0,eo||eJ(ei,1,this.length),128&this[ei])?-((255-this[ei]+1)*1):this[ei]},em.prototype.readInt16LE=function(ei,eo){ei>>>=0,eo||eJ(ei,2,this.length);let ea=this[ei]|this[ei+1]<<8;return 32768&ea?4294901760|ea:ea},em.prototype.readInt16BE=function(ei,eo){ei>>>=0,eo||eJ(ei,2,this.length);let ea=this[ei+1]|this[ei]<<8;return 32768&ea?4294901760|ea:ea},em.prototype.readInt32LE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),this[ei]|this[ei+1]<<8|this[ei+2]<<16|this[ei+3]<<24},em.prototype.readInt32BE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),this[ei]<<24|this[ei+1]<<16|this[ei+2]<<8|this[ei+3]},em.prototype.readBigInt64LE=tE(function(ei){tu(ei>>>=0,"offset");let eo=this[ei],ea=this[ei+7];(void 0===eo||void 0===ea)&&tc(ei,this.length-8);let eu=this[ei+4]+256*this[ei+5]+65536*this[ei+6]+(ea<<24);return(BigInt(eu)<>>=0,"offset");let eo=this[ei],ea=this[ei+7];(void 0===eo||void 0===ea)&&tc(ei,this.length-8);let eu=(eo<<24)+65536*this[++ei]+256*this[++ei]+this[++ei];return(BigInt(eu)<>>=0,eo||eJ(ei,4,this.length),ec.read(this,ei,!0,23,4)},em.prototype.readFloatBE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),ec.read(this,ei,!1,23,4)},em.prototype.readDoubleLE=function(ei,eo){return ei>>>=0,eo||eJ(ei,8,this.length),ec.read(this,ei,!0,52,8)},em.prototype.readDoubleBE=function(ei,eo){return ei>>>=0,eo||eJ(ei,8,this.length),ec.read(this,ei,!1,52,8)},em.prototype.writeUintLE=em.prototype.writeUIntLE=function(ei,eo,ea,eu){if(ei=+ei,eo>>>=0,ea>>>=0,!eu){let eu=Math.pow(2,8*ea)-1;eQ(this,ei,eo,ea,eu,0)}let ec=1,ed=0;for(this[eo]=255&ei;++ed>>=0,ea>>>=0,!eu){let eu=Math.pow(2,8*ea)-1;eQ(this,ei,eo,ea,eu,0)}let ec=ea-1,ed=1;for(this[eo+ec]=255&ei;--ec>=0&&(ed*=256);)this[eo+ec]=ei/ed&255;return eo+ea},em.prototype.writeUint8=em.prototype.writeUInt8=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,1,255,0),this[eo]=255&ei,eo+1},em.prototype.writeUint16LE=em.prototype.writeUInt16LE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,2,65535,0),this[eo]=255&ei,this[eo+1]=ei>>>8,eo+2},em.prototype.writeUint16BE=em.prototype.writeUInt16BE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,2,65535,0),this[eo]=ei>>>8,this[eo+1]=255&ei,eo+2},em.prototype.writeUint32LE=em.prototype.writeUInt32LE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,4,4294967295,0),this[eo+3]=ei>>>24,this[eo+2]=ei>>>16,this[eo+1]=ei>>>8,this[eo]=255&ei,eo+4},em.prototype.writeUint32BE=em.prototype.writeUInt32BE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,4,4294967295,0),this[eo]=ei>>>24,this[eo+1]=ei>>>16,this[eo+2]=ei>>>8,this[eo+3]=255&ei,eo+4},em.prototype.writeBigUInt64LE=tE(function(ei,eo=0){return eX(this,ei,eo,BigInt(0),BigInt("0xffffffffffffffff"))}),em.prototype.writeBigUInt64BE=tE(function(ei,eo=0){return e0(this,ei,eo,BigInt(0),BigInt("0xffffffffffffffff"))}),em.prototype.writeIntLE=function(ei,eo,ea,eu){if(ei=+ei,eo>>>=0,!eu){let eu=Math.pow(2,8*ea-1);eQ(this,ei,eo,ea,eu-1,-eu)}let ec=0,ed=1,ef=0;for(this[eo]=255&ei;++ec>0)-ef&255;return eo+ea},em.prototype.writeIntBE=function(ei,eo,ea,eu){if(ei=+ei,eo>>>=0,!eu){let eu=Math.pow(2,8*ea-1);eQ(this,ei,eo,ea,eu-1,-eu)}let ec=ea-1,ed=1,ef=0;for(this[eo+ec]=255&ei;--ec>=0&&(ed*=256);)ei<0&&0===ef&&0!==this[eo+ec+1]&&(ef=1),this[eo+ec]=(ei/ed>>0)-ef&255;return eo+ea},em.prototype.writeInt8=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,1,127,-128),ei<0&&(ei=255+ei+1),this[eo]=255&ei,eo+1},em.prototype.writeInt16LE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,2,32767,-32768),this[eo]=255&ei,this[eo+1]=ei>>>8,eo+2},em.prototype.writeInt16BE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,2,32767,-32768),this[eo]=ei>>>8,this[eo+1]=255&ei,eo+2},em.prototype.writeInt32LE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,4,2147483647,-2147483648),this[eo]=255&ei,this[eo+1]=ei>>>8,this[eo+2]=ei>>>16,this[eo+3]=ei>>>24,eo+4},em.prototype.writeInt32BE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,4,2147483647,-2147483648),ei<0&&(ei=4294967295+ei+1),this[eo]=ei>>>24,this[eo+1]=ei>>>16,this[eo+2]=ei>>>8,this[eo+3]=255&ei,eo+4},em.prototype.writeBigInt64LE=tE(function(ei,eo=0){return eX(this,ei,eo,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),em.prototype.writeBigInt64BE=tE(function(ei,eo=0){return e0(this,ei,eo,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),em.prototype.writeFloatLE=function(ei,eo,ea){return e5(this,ei,eo,!0,ea)},em.prototype.writeFloatBE=function(ei,eo,ea){return e5(this,ei,eo,!1,ea)},em.prototype.writeDoubleLE=function(ei,eo,ea){return e4(this,ei,eo,!0,ea)},em.prototype.writeDoubleBE=function(ei,eo,ea){return e4(this,ei,eo,!1,ea)},em.prototype.copy=function(ei,eo,ea,eu){if(!em.isBuffer(ei))throw TypeError("argument should be a Buffer");if(ea||(ea=0),eu||0===eu||(eu=this.length),eo>=ei.length&&(eo=ei.length),eo||(eo=0),eu>0&&eu=this.length)throw RangeError("Index out of range");if(eu<0)throw RangeError("sourceEnd out of bounds");eu>this.length&&(eu=this.length),ei.length-eo>>=0,ea=void 0===ea?this.length:ea>>>0,ei||(ei=0),"number"==typeof ei)for(ec=eo;ec=eu+4;ea-=3)eo=`_${ei.slice(ea-3,ea)}${eo}`;return`${ei.slice(0,ea)}${eo}`}function e7(ei,eo,ea){tu(eo,"offset"),(void 0===ei[eo]||void 0===ei[eo+ea])&&tc(eo,ei.length-(ea+1))}function ta(ei,eo,ea,eu,ec,ed){if(ei>ea||ei3?0===eo||eo===BigInt(0)?`>= 0${ec} and < 2${ec} ** ${(ed+1)*8}${ec}`:`>= -(2${ec} ** ${(ed+1)*8-1}${ec}) and < 2 ** ${(ed+1)*8-1}${ec}`:`>= ${eo}${ec} and <= ${ea}${ec}`,new e6.ERR_OUT_OF_RANGE("value",eu,ei)}e7(eu,ec,ed)}function tu(ei,eo){if("number"!=typeof ei)throw new e6.ERR_INVALID_ARG_TYPE(eo,"number",ei)}function tc(ei,eo,ea){if(Math.floor(ei)!==ei)throw tu(ei,ea),new e6.ERR_OUT_OF_RANGE(ea||"offset","an integer",ei);if(eo<0)throw new e6.ERR_BUFFER_OUT_OF_BOUNDS;throw new e6.ERR_OUT_OF_RANGE(ea||"offset",`>= ${ea?1:0} and <= ${eo}`,ei)}e8("ERR_BUFFER_OUT_OF_BOUNDS",function(ei){return ei?`${ei} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),e8("ERR_INVALID_ARG_TYPE",function(ei,eo){return`The "${ei}" argument must be of type number. Received type ${typeof eo}`},TypeError),e8("ERR_OUT_OF_RANGE",function(ei,eo,ea){let eu=`The value of "${ei}" is out of range.`,ec=ea;return Number.isInteger(ea)&&Math.abs(ea)>4294967296?ec=e9(String(ea)):"bigint"==typeof ea&&(ec=String(ea),(ea>BigInt(2)**BigInt(32)||ea<-(BigInt(2)**BigInt(32)))&&(ec=e9(ec)),ec+="n"),eu+=` It must be ${eo}. Received ${ec}`},RangeError);let td=/[^+/0-9A-Za-z-_]/g;function tf(ei){if((ei=(ei=ei.split("=")[0]).trim().replace(td,"")).length<2)return"";for(;ei.length%4!=0;)ei+="=";return ei}function tp(ei,eo){let ea;eo=eo||1/0;let eu=ei.length,ec=null,ed=[];for(let ef=0;ef55295&&ea<57344){if(!ec){if(ea>56319||ef+1===eu){(eo-=3)>-1&&ed.push(239,191,189);continue}ec=ea;continue}if(ea<56320){(eo-=3)>-1&&ed.push(239,191,189),ec=ea;continue}ea=(ec-55296<<10|ea-56320)+65536}else ec&&(eo-=3)>-1&&ed.push(239,191,189);if(ec=null,ea<128){if((eo-=1)<0)break;ed.push(ea)}else if(ea<2048){if((eo-=2)<0)break;ed.push(ea>>6|192,63&ea|128)}else if(ea<65536){if((eo-=3)<0)break;ed.push(ea>>12|224,ea>>6&63|128,63&ea|128)}else if(ea<1114112){if((eo-=4)<0)break;ed.push(ea>>18|240,ea>>12&63|128,ea>>6&63|128,63&ea|128)}else throw Error("Invalid code point")}return ed}function tg(ei){let eo=[];for(let ea=0;ea>8,ec.push(ea%256),ec.push(eu);return ec}function tv(ei){return eu.toByteArray(tf(ei))}function tb(ei,eo,ea,eu){let ec;for(ec=0;ec=eo.length)&&!(ec>=ei.length);++ec)eo[ec+ea]=ei[ec];return ec}function tw(ei,eo){return ei instanceof eo||null!=ei&&null!=ei.constructor&&null!=ei.constructor.name&&ei.constructor.name===eo.name}function t_(ei){return ei!=ei}let tS=function(){let ei="0123456789abcdef",eo=Array(256);for(let ea=0;ea<16;++ea){let eu=16*ea;for(let ec=0;ec<16;++ec)eo[eu+ec]=ei[ea]+ei[ec]}return eo}();function tE(ei){return"undefined"==typeof BigInt?tA:ei}function tA(){throw Error("BigInt not supported")}},21924:function(ei,eo,ea){"use strict";var eu=ea(40210),ec=ea(55559),ed=ec(eu("String.prototype.indexOf"));ei.exports=function(ei,eo){var ea=eu(ei,!!eo);return"function"==typeof ea&&ed(ei,".prototype.")>-1?ec(ea):ea}},55559:function(ei,eo,ea){"use strict";var eu=ea(58612),ec=ea(40210),ed=ec("%Function.prototype.apply%"),ef=ec("%Function.prototype.call%"),eh=ec("%Reflect.apply%",!0)||eu.call(ef,ed),eg=ec("%Object.getOwnPropertyDescriptor%",!0),em=ec("%Object.defineProperty%",!0),eb=ec("%Math.max%");if(em)try{em({},"a",{value:1})}catch(ei){em=null}ei.exports=function(ei){var eo=eh(eu,ef,arguments);return eg&&em&&eg(eo,"length").configurable&&em(eo,"length",{value:1+eb(0,ei.length-(arguments.length-1))}),eo};var ew=function(){return eh(eu,ed,arguments)};em?em(ei.exports,"apply",{value:ew}):ei.exports.apply=ew},94184:function(ei,eo){var ea;/*! +Copyright (c) 2018 Jed Watson. +Licensed under the MIT License (MIT), see +http://jedwatson.github.io/classnames +*/!function(){"use strict";var eu={}.hasOwnProperty;function ec(){for(var ei=[],eo=0;eo=0)&&Object.prototype.hasOwnProperty.call(ei,eu)&&(ea[eu]=ei[eu]);return ea}var ed=ea(1),ef=ea(2),eh=ea(9),eg=ea(10),em=ea(11),eb=ea(12),ew=ea(13),e_=ea(14),eS=ea(15),eE=ef({componentDidMount:function(){this.init()},componentDidUpdate:function(ei){var eo=this,ea=(eo.props.options||{}).phoneRegionCode,eu=eo.props.value,ec=eo.properties;eo.updateRegisteredEvents(eo.props),ei.value!==eu&&null!=eu&&(eu=eu.toString())!==eo.properties.result&&(eo.properties.initValue=eu,eo.onInput(eu,!0)),(ei.options||{}).phoneRegionCode!==ea&&ea&&ea!==eo.properties.phoneRegionCode&&(eo.properties.phoneRegionCode=ea,eo.initPhoneFormatter(),eo.onInput(eo.properties.result)),e_.setSelection(eo.element,eo.state.cursorPosition,ec.document)},updateRegisteredEvents:function(ei){var eo=this,ea=eo.registeredEvents,eu=ea.onKeyDown,ec=ea.onChange,ed=ea.onFocus,ef=ea.onBlur,eh=ea.onInit;ei.onInit&&ei.onInit!==eh&&(eo.registeredEvents.onInit=ei.onInit),ei.onChange&&ei.onChange!==ec&&(eo.registeredEvents.onChange=ei.onChange),ei.onFocus&&ei.onFocus!==ed&&(eo.registeredEvents.onFocus=ei.onFocus),ei.onBlur&&ei.onBlur!==ef&&(eo.registeredEvents.onBlur=ei.onBlur),ei.onKeyDown&&ei.onKeyDown!==eu&&(eo.registeredEvents.onKeyDown=ei.onKeyDown)},getInitialState:function(){var ei=this,eo=ei.props,ea=eo.value,eu=eo.options,ec=eo.onKeyDown,ed=eo.onChange,ef=eo.onFocus,eh=eo.onBlur,eg=eo.onInit;return ei.registeredEvents={onInit:eg||e_.noop,onChange:ed||e_.noop,onFocus:ef||e_.noop,onBlur:eh||e_.noop,onKeyDown:ec||e_.noop},eu||(eu={}),eu.initValue=ea,ei.properties=eS.assign({},eu),{value:ei.properties.result,cursorPosition:0}},init:function(){var ei=this,eo=ei.properties;if(!eo.numeral&&!eo.phone&&!eo.creditCard&&!eo.time&&!eo.date&&0===eo.blocksLength&&!eo.prefix){ei.onInput(eo.initValue),ei.registeredEvents.onInit(ei);return}eo.maxLength=e_.getMaxLength(eo.blocks),ei.isAndroid=e_.isAndroid(),ei.initPhoneFormatter(),ei.initDateFormatter(),ei.initTimeFormatter(),ei.initNumeralFormatter(),(eo.initValue||eo.prefix&&!eo.noImmediatePrefix)&&ei.onInput(eo.initValue),ei.registeredEvents.onInit(ei)},initNumeralFormatter:function(){var ei=this,eo=ei.properties;eo.numeral&&(eo.numeralFormatter=new eh(eo.numeralDecimalMark,eo.numeralIntegerScale,eo.numeralDecimalScale,eo.numeralThousandsGroupStyle,eo.numeralPositiveOnly,eo.stripLeadingZeroes,eo.prefix,eo.signBeforePrefix,eo.tailPrefix,eo.delimiter))},initTimeFormatter:function(){var ei=this,eo=ei.properties;eo.time&&(eo.timeFormatter=new em(eo.timePattern,eo.timeFormat),eo.blocks=eo.timeFormatter.getBlocks(),eo.blocksLength=eo.blocks.length,eo.maxLength=e_.getMaxLength(eo.blocks))},initDateFormatter:function(){var ei=this,eo=ei.properties;eo.date&&(eo.dateFormatter=new eg(eo.datePattern,eo.dateMin,eo.dateMax),eo.blocks=eo.dateFormatter.getBlocks(),eo.blocksLength=eo.blocks.length,eo.maxLength=e_.getMaxLength(eo.blocks))},initPhoneFormatter:function(){var ei=this,eo=ei.properties;if(eo.phone)try{eo.phoneFormatter=new eb(new eo.root.Cleave.AsYouTypeFormatter(eo.phoneRegionCode),eo.delimiter)}catch(ei){throw Error("Please include phone-type-formatter.{country}.js lib")}},setRawValue:function(ei){var eo=this,ea=eo.properties;ei=null!=ei?ei.toString():"",ea.numeral&&(ei=ei.replace(".",ea.numeralDecimalMark)),ea.postDelimiterBackspace=!1,eo.onChange({target:{value:ei},stopPropagation:e_.noop,preventDefault:e_.noop,persist:e_.noop})},getRawValue:function(){var ei=this,eo=ei.properties,ea=eo.result;return eo.rawValueTrimPrefix&&(ea=e_.getPrefixStrippedValue(ea,eo.prefix,eo.prefixLength,eo.result,eo.delimiter,eo.delimiters,eo.noImmediatePrefix,eo.tailPrefix,eo.signBeforePrefix)),ea=eo.numeral?eo.numeralFormatter?eo.numeralFormatter.getRawValue(ea):"":e_.stripDelimiters(ea,eo.delimiter,eo.delimiters)},getISOFormatDate:function(){var ei=this,eo=ei.properties;return eo.date?eo.dateFormatter.getISOFormatDate():""},getISOFormatTime:function(){var ei=this,eo=ei.properties;return eo.time?eo.timeFormatter.getISOFormatTime():""},onInit:function(ei){return ei},onKeyDown:function(ei){var eo=this,ea=eo.properties,eu=ei.which||ei.keyCode;eo.lastInputValue=ea.result,eo.isBackward=8===eu,eo.registeredEvents.onKeyDown(ei)},onFocus:function(ei){var eo=this,ea=eo.properties;ea.prefix&&ea.noImmediatePrefix&&!ei.target.value&&eo.onInput(ea.prefix),ei.target.rawValue=eo.getRawValue(),ei.target.value=ea.result,eo.registeredEvents.onFocus(ei),e_.fixPrefixCursor(eo.element,ea.prefix,ea.delimiter,ea.delimiters)},onBlur:function(ei){var eo=this,ea=eo.properties;ei.target.rawValue=eo.getRawValue(),ei.target.value=ea.result,eo.registeredEvents.onBlur(ei)},onChange:function(ei){var eo=this,ea=eo.properties;eo.isBackward=eo.isBackward||"deleteContentBackward"===ei.inputType;var eu=e_.getPostDelimiter(eo.lastInputValue,ea.delimiter,ea.delimiters);eo.isBackward&&eu?ea.postDelimiterBackspace=eu:ea.postDelimiterBackspace=!1,eo.onInput(ei.target.value),ei.target.rawValue=eo.getRawValue(),ei.target.value=ea.result,eo.registeredEvents.onChange(ei)},onInput:function(ei,eo){var ea=this,eu=ea.properties,ec=e_.getPostDelimiter(ei,eu.delimiter,eu.delimiters);if(eo||eu.numeral||!eu.postDelimiterBackspace||ec||(ei=e_.headStr(ei,ei.length-eu.postDelimiterBackspace.length)),eu.phone){eu.prefix&&(!eu.noImmediatePrefix||ei.length)?eu.result=eu.prefix+eu.phoneFormatter.format(ei).slice(eu.prefix.length):eu.result=eu.phoneFormatter.format(ei),ea.updateValueState();return}if(eu.numeral){eu.prefix&&eu.noImmediatePrefix&&0===ei.length?eu.result="":eu.result=eu.numeralFormatter.format(ei),ea.updateValueState();return}if(eu.date&&(ei=eu.dateFormatter.getValidatedDate(ei)),eu.time&&(ei=eu.timeFormatter.getValidatedTime(ei)),ei=e_.stripDelimiters(ei,eu.delimiter,eu.delimiters),ei=e_.getPrefixStrippedValue(ei,eu.prefix,eu.prefixLength,eu.result,eu.delimiter,eu.delimiters,eu.noImmediatePrefix,eu.tailPrefix,eu.signBeforePrefix),ei=eu.numericOnly?e_.strip(ei,/[^\d]/g):ei,ei=eu.uppercase?ei.toUpperCase():ei,ei=eu.lowercase?ei.toLowerCase():ei,eu.prefix&&(eu.tailPrefix?ei+=eu.prefix:ei=eu.prefix+ei,0===eu.blocksLength)){eu.result=ei,ea.updateValueState();return}eu.creditCard&&ea.updateCreditCardPropsByValue(ei),ei=eu.maxLength>0?e_.headStr(ei,eu.maxLength):ei,eu.result=e_.getFormattedValue(ei,eu.blocks,eu.blocksLength,eu.delimiter,eu.delimiters,eu.delimiterLazyShow),ea.updateValueState()},updateCreditCardPropsByValue:function(ei){var eo,ea=this,eu=ea.properties;e_.headStr(eu.result,4)!==e_.headStr(ei,4)&&(eo=ew.getInfo(ei,eu.creditCardStrictMode),eu.blocks=eo.blocks,eu.blocksLength=eu.blocks.length,eu.maxLength=e_.getMaxLength(eu.blocks),eu.creditCardType!==eo.type&&(eu.creditCardType=eo.type,eu.onCreditCardTypeChanged.call(ea,eu.creditCardType)))},updateValueState:function(){var ei=this,eo=ei.properties;if(!ei.element){ei.setState({value:eo.result});return}var ea=ei.element.selectionEnd,eu=ei.element.value,ec=eo.result;if(ei.lastInputValue=ec,ea=e_.getNextCursorPosition(ea,eu,ec,eo.delimiter,eo.delimiters),ei.isAndroid){window.setTimeout(function(){ei.setState({value:ec,cursorPosition:ea})},1);return}ei.setState({value:ec,cursorPosition:ea})},render:function(){var ei=this,eo=ei.props,ea=(eo.value,eo.options,eo.onKeyDown,eo.onFocus,eo.onBlur,eo.onChange,eo.onInit,eo.htmlRef),ef=ec(eo,["value","options","onKeyDown","onFocus","onBlur","onChange","onInit","htmlRef"]);return ed.createElement("input",eu({type:"text",ref:function(eo){ei.element=eo,ea&&ea.apply(this,arguments)},value:ei.state.value,onKeyDown:ei.onKeyDown,onChange:ei.onChange,onFocus:ei.onFocus,onBlur:ei.onBlur},ef))}});ei.exports=eE},function(eo,ea){eo.exports=ei},function(ei,eo,ea){"use strict";var eu=ea(1),ec=ea(3);if(void 0===eu)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var ed=new eu.Component().updater;ei.exports=ec(eu.Component,eu.isValidElement,ed)},function(ei,eo,ea){"use strict";var eu,ec=ea(4),ed=ea(5),ef=ea(6),eh="mixins";function eg(ei){return ei}function em(ei,eo,ea){var eu=[],em={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},eb={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},ew={displayName:function(ei,eo){ei.displayName=eo},mixins:function(ei,eo){if(eo)for(var ea=0;ea0?ea:0,ew.numeralDecimalScale=eu>=0?eu:2,ew.numeralThousandsGroupStyle=ec||ei.groupStyle.thousand,ew.numeralPositiveOnly=!!ed,ew.stripLeadingZeroes=!1!==ef,ew.prefix=eh||""===eh?eh:"",ew.signBeforePrefix=!!eg,ew.tailPrefix=!!em,ew.delimiter=eb||""===eb?eb:",",ew.delimiterRE=eb?RegExp("\\"+eb,"g"):""};ea.groupStyle={thousand:"thousand",lakh:"lakh",wan:"wan",none:"none"},ea.prototype={getRawValue:function(ei){return ei.replace(this.delimiterRE,"").replace(this.numeralDecimalMark,".")},format:function(ei){var eo,eu,ec,ed,ef=this,eh="";switch(ei=ei.replace(/[A-Za-z]/g,"").replace(ef.numeralDecimalMark,"M").replace(/[^\dM-]/g,"").replace(/^\-/,"N").replace(/\-/g,"").replace("N",ef.numeralPositiveOnly?"":"-").replace("M",ef.numeralDecimalMark),ef.stripLeadingZeroes&&(ei=ei.replace(/^(-)?0+(?=\d)/,"$1")),eu="-"===ei.slice(0,1)?"-":"",ec=void 0!==ef.prefix?ef.signBeforePrefix?eu+ef.prefix:ef.prefix+eu:eu,ed=ei,ei.indexOf(ef.numeralDecimalMark)>=0&&(ed=(eo=ei.split(ef.numeralDecimalMark))[0],eh=ef.numeralDecimalMark+eo[1].slice(0,ef.numeralDecimalScale)),"-"===eu&&(ed=ed.slice(1)),ef.numeralIntegerScale>0&&(ed=ed.slice(0,ef.numeralIntegerScale)),ef.numeralThousandsGroupStyle){case ea.groupStyle.lakh:ed=ed.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+ef.delimiter);break;case ea.groupStyle.wan:ed=ed.replace(/(\d)(?=(\d{4})+$)/g,"$1"+ef.delimiter);break;case ea.groupStyle.thousand:ed=ed.replace(/(\d)(?=(\d{3})+$)/g,"$1"+ef.delimiter)}return ef.tailPrefix?eu+ed.toString()+(ef.numeralDecimalScale>0?eh.toString():"")+ef.prefix:ec+ed.toString()+(ef.numeralDecimalScale>0?eh.toString():"")}},ei.exports=ea},function(ei,eo){"use strict";var ea=function(ei,eo,ea){var eu=this;eu.date=[],eu.blocks=[],eu.datePattern=ei,eu.dateMin=eo.split("-").reverse().map(function(ei){return parseInt(ei,10)}),2===eu.dateMin.length&&eu.dateMin.unshift(0),eu.dateMax=ea.split("-").reverse().map(function(ei){return parseInt(ei,10)}),2===eu.dateMax.length&&eu.dateMax.unshift(0),eu.initBlocks()};ea.prototype={initBlocks:function(){var ei=this;ei.datePattern.forEach(function(eo){"Y"===eo?ei.blocks.push(4):ei.blocks.push(2)})},getISOFormatDate:function(){var ei=this,eo=ei.date;return eo[2]?eo[2]+"-"+ei.addLeadingZero(eo[1])+"-"+ei.addLeadingZero(eo[0]):""},getBlocks:function(){return this.blocks},getValidatedDate:function(ei){var eo=this,ea="";return ei=ei.replace(/[^\d]/g,""),eo.blocks.forEach(function(eu,ec){if(ei.length>0){var ed=ei.slice(0,eu),ef=ed.slice(0,1),eh=ei.slice(eu);switch(eo.datePattern[ec]){case"d":"00"===ed?ed="01":parseInt(ef,10)>3?ed="0"+ef:parseInt(ed,10)>31&&(ed="31");break;case"m":"00"===ed?ed="01":parseInt(ef,10)>1?ed="0"+ef:parseInt(ed,10)>12&&(ed="12")}ea+=ed,ei=eh}}),this.getFixedDateString(ea)},getFixedDateString:function(ei){var eo,ea,eu,ec=this,ed=ec.datePattern,ef=[],eh=0,eg=0,em=0,eb=0,ew=0,e_=0,eS=!1;return 4===ei.length&&"y"!==ed[0].toLowerCase()&&"y"!==ed[1].toLowerCase()&&(ew=2-(eb="d"===ed[0]?0:2),eo=parseInt(ei.slice(eb,eb+2),10),ea=parseInt(ei.slice(ew,ew+2),10),ef=this.getFixedDate(eo,ea,0)),8===ei.length&&(ed.forEach(function(ei,eo){switch(ei){case"d":eh=eo;break;case"m":eg=eo;break;default:em=eo}}),e_=2*em,eb=eh<=em?2*eh:2*eh+2,ew=eg<=em?2*eg:2*eg+2,eo=parseInt(ei.slice(eb,eb+2),10),ea=parseInt(ei.slice(ew,ew+2),10),eu=parseInt(ei.slice(e_,e_+4),10),eS=4===ei.slice(e_,e_+4).length,ef=this.getFixedDate(eo,ea,eu)),4===ei.length&&("y"===ed[0]||"y"===ed[1])&&(e_=2-(ew="m"===ed[0]?0:2),ea=parseInt(ei.slice(ew,ew+2),10),eu=parseInt(ei.slice(e_,e_+2),10),eS=2===ei.slice(e_,e_+2).length,ef=[0,ea,eu]),6===ei.length&&("Y"===ed[0]||"Y"===ed[1])&&(e_=2-.5*(ew="m"===ed[0]?0:4),ea=parseInt(ei.slice(ew,ew+2),10),eu=parseInt(ei.slice(e_,e_+4),10),eS=4===ei.slice(e_,e_+4).length,ef=[0,ea,eu]),ef=ec.getRangeFixedDate(ef),ec.date=ef,0===ef.length?ei:ed.reduce(function(ei,eo){switch(eo){case"d":return ei+(0===ef[0]?"":ec.addLeadingZero(ef[0]));case"m":return ei+(0===ef[1]?"":ec.addLeadingZero(ef[1]));case"y":return ei+(eS?ec.addLeadingZeroForYear(ef[2],!1):"");case"Y":return ei+(eS?ec.addLeadingZeroForYear(ef[2],!0):"")}},"")},getRangeFixedDate:function(ei){var eo=this,ea=eo.datePattern,eu=eo.dateMin||[],ec=eo.dateMax||[];return!ei.length||eu.length<3&&ec.length<3||ea.find(function(ei){return"y"===ei.toLowerCase()})&&0===ei[2]?ei:ec.length&&(ec[2]ei[2]||eu[2]===ei[2]&&(eu[1]>ei[1]||eu[1]===ei[1]&&eu[0]>ei[0]))?eu:ei},getFixedDate:function(ei,eo,ea){return ei=Math.min(ei,31),eo=Math.min(eo,12),ea=parseInt(ea||0,10),(eo<7&&eo%2==0||eo>8&&eo%2==1)&&(ei=Math.min(ei,2===eo?this.isLeapYear(ea)?29:28:30)),[ei,eo,ea]},isLeapYear:function(ei){return ei%4==0&&ei%100!=0||ei%400==0},addLeadingZero:function(ei){return(ei<10?"0":"")+ei},addLeadingZeroForYear:function(ei,eo){return eo?(ei<10?"000":ei<100?"00":ei<1e3?"0":"")+ei:(ei<10?"0":"")+ei}},ei.exports=ea},function(ei,eo){"use strict";var ea=function(ei,eo){var ea=this;ea.time=[],ea.blocks=[],ea.timePattern=ei,ea.timeFormat=eo,ea.initBlocks()};ea.prototype={initBlocks:function(){var ei=this;ei.timePattern.forEach(function(){ei.blocks.push(2)})},getISOFormatTime:function(){var ei=this,eo=ei.time;return eo[2]?ei.addLeadingZero(eo[0])+":"+ei.addLeadingZero(eo[1])+":"+ei.addLeadingZero(eo[2]):""},getBlocks:function(){return this.blocks},getTimeFormatOptions:function(){var ei=this;return"12"===String(ei.timeFormat)?{maxHourFirstDigit:1,maxHours:12,maxMinutesFirstDigit:5,maxMinutes:60}:{maxHourFirstDigit:2,maxHours:23,maxMinutesFirstDigit:5,maxMinutes:60}},getValidatedTime:function(ei){var eo=this,ea="";ei=ei.replace(/[^\d]/g,"");var eu=eo.getTimeFormatOptions();return eo.blocks.forEach(function(ec,ed){if(ei.length>0){var ef=ei.slice(0,ec),eh=ef.slice(0,1),eg=ei.slice(ec);switch(eo.timePattern[ed]){case"h":parseInt(eh,10)>eu.maxHourFirstDigit?ef="0"+eh:parseInt(ef,10)>eu.maxHours&&(ef=eu.maxHours+"");break;case"m":case"s":parseInt(eh,10)>eu.maxMinutesFirstDigit?ef="0"+eh:parseInt(ef,10)>eu.maxMinutes&&(ef=eu.maxMinutes+"")}ea+=ef,ei=eg}}),this.getFixedTimeString(ea)},getFixedTimeString:function(ei){var eo,ea,eu,ec=this,ed=ec.timePattern,ef=[],eh=0,eg=0,em=0,eb=0,ew=0,e_=0;return 6===ei.length&&(ed.forEach(function(ei,eo){switch(ei){case"s":eh=2*eo;break;case"m":eg=2*eo;break;case"h":em=2*eo}}),e_=em,ew=eg,eb=eh,eo=parseInt(ei.slice(eb,eb+2),10),ea=parseInt(ei.slice(ew,ew+2),10),eu=parseInt(ei.slice(e_,e_+2),10),ef=this.getFixedTime(eu,ea,eo)),4===ei.length&&0>ec.timePattern.indexOf("s")&&(ed.forEach(function(ei,eo){switch(ei){case"m":eg=2*eo;break;case"h":em=2*eo}}),e_=em,ew=eg,eo=0,ea=parseInt(ei.slice(ew,ew+2),10),eu=parseInt(ei.slice(e_,e_+2),10),ef=this.getFixedTime(eu,ea,eo)),ec.time=ef,0===ef.length?ei:ed.reduce(function(ei,eo){switch(eo){case"s":return ei+ec.addLeadingZero(ef[2]);case"m":return ei+ec.addLeadingZero(ef[1]);case"h":return ei+ec.addLeadingZero(ef[0])}},"")},getFixedTime:function(ei,eo,ea){return ea=Math.min(parseInt(ea||0,10),60),eo=Math.min(eo,60),[ei=Math.min(ei,60),eo,ea]},addLeadingZero:function(ei){return(ei<10?"0":"")+ei}},ei.exports=ea},function(ei,eo){"use strict";var ea=function(ei,eo){var ea=this;ea.delimiter=eo||""===eo?eo:" ",ea.delimiterRE=eo?RegExp("\\"+eo,"g"):"",ea.formatter=ei};ea.prototype={setFormatter:function(ei){this.formatter=ei},format:function(ei){var eo=this;eo.formatter.clear(),ei=(ei=(ei=ei.replace(/[^\d+]/g,"")).replace(/^\+/,"B").replace(/\+/g,"").replace("B","+")).replace(eo.delimiterRE,"");for(var ea,eu="",ec=!1,ed=0,ef=ei.length;ed0,eg="";return 0===ea?ei:(eo.forEach(function(eo,em){if(ei.length>0){var eb=ei.slice(0,eo),ew=ei.slice(eo);eg=eh?ec[ed?em-1:em]||eg:eu,ed?(em>0&&(ef+=eg),ef+=eb):(ef+=eb,eb.length===eo&&em0?eo.numeralIntegerScale:0,ei.numeralDecimalScale=eo.numeralDecimalScale>=0?eo.numeralDecimalScale:2,ei.numeralDecimalMark=eo.numeralDecimalMark||".",ei.numeralThousandsGroupStyle=eo.numeralThousandsGroupStyle||"thousand",ei.numeralPositiveOnly=!!eo.numeralPositiveOnly,ei.stripLeadingZeroes=!1!==eo.stripLeadingZeroes,ei.signBeforePrefix=!!eo.signBeforePrefix,ei.tailPrefix=!!eo.tailPrefix,ei.swapHiddenInput=!!eo.swapHiddenInput,ei.numericOnly=ei.creditCard||ei.date||!!eo.numericOnly,ei.uppercase=!!eo.uppercase,ei.lowercase=!!eo.lowercase,ei.prefix=ei.creditCard||ei.date?"":eo.prefix||"",ei.noImmediatePrefix=!!eo.noImmediatePrefix,ei.prefixLength=ei.prefix.length,ei.rawValueTrimPrefix=!!eo.rawValueTrimPrefix,ei.copyDelimiter=!!eo.copyDelimiter,ei.initValue=void 0!==eo.initValue&&null!==eo.initValue?eo.initValue.toString():"",ei.delimiter=eo.delimiter||""===eo.delimiter?eo.delimiter:eo.date?"/":eo.time?":":eo.numeral?",":(eo.phone," "),ei.delimiterLength=ei.delimiter.length,ei.delimiterLazyShow=!!eo.delimiterLazyShow,ei.delimiters=eo.delimiters||[],ei.blocks=eo.blocks||[],ei.blocksLength=ei.blocks.length,ei.root=(void 0===ea.g?"undefined":eu(ea.g))==="object"&&ea.g?ea.g:window,ei.document=eo.document||ei.root.document,ei.maxLength=0,ei.backspace=!1,ei.result="",ei.onValueChanged=eo.onValueChanged||function(){},ei}};ei.exports=ec}])})},52034:function(ei,eo,ea){ei.exports=ea(13038)},86010:function(ei,eo,ea){"use strict";function eu(ei){var eo,ea,ec="";if("string"==typeof ei||"number"==typeof ei)ec+=ei;else if("object"==typeof ei){if(Array.isArray(ei))for(eo=0;eo1?"s":"")+" required, but only "+eo.length+" present")}ea.d(eo,{Z:function(){return eu}})},83946:function(ei,eo,ea){"use strict";function eu(ei){if(null===ei||!0===ei||!1===ei)return NaN;var eo=Number(ei);return isNaN(eo)?eo:eo<0?Math.ceil(eo):Math.floor(eo)}ea.d(eo,{Z:function(){return eu}})},12274:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return ed}});var eu=ea(19013),ec=ea(13882);function ed(ei){return(0,ec.Z)(1,arguments),!isNaN((0,eu.Z)(ei))}},19013:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return ec}});var eu=ea(13882);function ec(ei){(0,eu.Z)(1,arguments);var eo=Object.prototype.toString.call(ei);return ei instanceof Date||"object"==typeof ei&&"[object Date]"===eo?new Date(ei.getTime()):"number"==typeof ei||"[object Number]"===eo?new Date(ei):(("string"==typeof ei||"[object String]"===eo)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},44020:function(ei){"use strict";var eo="%[a-f0-9]{2}",ea=RegExp("("+eo+")|([^%]+?)","gi"),eu=RegExp("("+eo+")+","gi");function ec(ei,eo){try{return[decodeURIComponent(ei.join(""))]}catch(ei){}if(1===ei.length)return ei;eo=eo||1;var ea=ei.slice(0,eo),eu=ei.slice(eo);return Array.prototype.concat.call([],ec(ea),ec(eu))}function ed(ei){try{return decodeURIComponent(ei)}catch(ed){for(var eo=ei.match(ea)||[],eu=1;eu=0||(ec[ea]=ei[ea]);return ec}function ec(){return(ec=Object.assign||function(ei){for(var eo=1;eoeo||ed>ei&&ef=eo&&eh>=ea?ed-ei-eu:ef>eo&&ehea?ef-eo+ec:0}ea(21726);var eE=function(ei,eo){var ea=window,eu=eo.scrollMode,ec=eo.block,ed=eo.inline,ef=eo.boundary,eh=eo.skipOverflowHiddenElements,eg="function"==typeof ef?ef:function(ei){return ei!==ef};if(!eb(ei))throw TypeError("Invalid target");for(var em,ew,eE=document.scrollingElement||document.documentElement,eA=[],eT=ei;eb(eT)&&eg(eT);){if((eT=null==(ew=(em=eT).parentElement)?em.getRootNode().host||null:ew)===eE){eA.push(eT);break}null!=eT&&eT===document.body&&e_(eT)&&!e_(document.documentElement)||null!=eT&&e_(eT,eh)&&eA.push(eT)}for(var ek=ea.visualViewport?ea.visualViewport.width:innerWidth,eC=ea.visualViewport?ea.visualViewport.height:innerHeight,eO=window.scrollX||pageXOffset,eI=window.scrollY||pageYOffset,eP=ei.getBoundingClientRect(),eD=eP.height,eN=eP.width,eM=eP.top,ej=eP.right,eR=eP.bottom,eL=eP.left,eF="start"===ec||"nearest"===ec?eM:"end"===ec?eR:eM+eD/2,eB="center"===ed?eL+eN/2:"end"===ed?ej:eL,eU=[],eG=0;eG=0&&eL>=0&&eR<=eC&&ej<=ek&&eM>=eY&&eR<=e$&&eL>=eJ&&ej<=eZ)break;var eQ=getComputedStyle(eV),eX=parseInt(eQ.borderLeftWidth,10),e0=parseInt(eQ.borderTopWidth,10),e3=parseInt(eQ.borderRightWidth,10),e5=parseInt(eQ.borderBottomWidth,10),e4=0,e6=0,e8="offsetWidth"in eV?eV.offsetWidth-eV.clientWidth-eX-e3:0,e9="offsetHeight"in eV?eV.offsetHeight-eV.clientHeight-e0-e5:0,e7="offsetWidth"in eV?0===eV.offsetWidth?0:eK/eV.offsetWidth:0,ta="offsetHeight"in eV?0===eV.offsetHeight?0:eW/eV.offsetHeight:0;if(eE===eV)e4="start"===ec?eF:"end"===ec?eF-eC:"nearest"===ec?eS(eI,eI+eC,eC,e0,e5,eI+eF,eI+eF+eD,eD):eF-eC/2,e6="start"===ed?eB:"center"===ed?eB-ek/2:"end"===ed?eB-ek:eS(eO,eO+ek,ek,eX,e3,eO+eB,eO+eB+eN,eN),e4=Math.max(0,e4+eI),e6=Math.max(0,e6+eO);else{e4="start"===ec?eF-eY-e0:"end"===ec?eF-e$+e5+e9:"nearest"===ec?eS(eY,e$,eW,e0,e5+e9,eF,eF+eD,eD):eF-(eY+eW/2)+e9/2,e6="start"===ed?eB-eJ-eX:"center"===ed?eB-(eJ+eK/2)+e8/2:"end"===ed?eB-eZ+e3+e8:eS(eJ,eZ,eK,eX,e3+e8,eB,eB+eN,eN);var tu=eV.scrollLeft,tc=eV.scrollTop;eF+=tc-(e4=Math.max(0,Math.min(tc+e4/ta,eV.scrollHeight-eW/ta+e9))),eB+=tu-(e6=Math.max(0,Math.min(tu+e6/e7,eV.scrollWidth-eK/e7+e8)))}eU.push({el:eV,top:e4,left:e6})}return eU},eA=0;function eT(ei){return"function"==typeof ei?ei:ek}function ek(){}function eC(ei,eo){null!==ei&&eE(ei,{boundary:eo,block:"nearest",scrollMode:"if-needed"}).forEach(function(ei){var eo=ei.el,ea=ei.top,eu=ei.left;eo.scrollTop=ea,eo.scrollLeft=eu})}function eO(ei,eo){return ei===eo||ei.contains&&ei.contains(eo)}function eI(ei,eo){var ea;function eu(){ea&&clearTimeout(ea)}function ec(){for(var ec=arguments.length,ed=Array(ec),ef=0;ef1?ea-1:0),ec=1;ec=37&&ea<=40&&0!==eo.indexOf("Arrow")?"Arrow"+eo:eo}function eH(ei,eo,ea,eu,ec){void 0===ec&&(ec=!0);var ed=ea-1;("number"!=typeof eo||eo<0||eo>=ea)&&(eo=ei>0?-1:ed+1);var ef=eo+ei;ef<0?ef=ec?ed:0:ef>ed&&(ef=ec?0:ed);var eh=eW(ei,ef,ea,eu,ec);return-1===eh?eo:eh}function eW(ei,eo,ea,eu,ec){var ed=eu(eo);if(!ed||!ed.hasAttribute("disabled"))return eo;if(ei>0){for(var ef=eo+1;ef=0;eh--)if(!eu(eh).hasAttribute("disabled"))return eh;return ec?ei>0?eW(1,0,ea,eu,!1):eW(-1,ea-1,ea,eu,!1):-1}function eK(ei,eo,ea,eu){return void 0===eu&&(eu=!0),eo.some(function(eo){return eo&&(eO(eo,ei)||eu&&eO(eo,ea.activeElement))})}var eY=eI(function(){e$().textContent=""},500);function eZ(ei,eo){var ea=e$(eo);ei&&(ea.textContent=ei,eY())}function e$(ei){void 0===ei&&(ei=document);var eo=ei.getElementById("a11y-status-message");return eo||((eo=ei.createElement("div")).setAttribute("id","a11y-status-message"),eo.setAttribute("role","status"),eo.setAttribute("aria-live","polite"),eo.setAttribute("aria-relevant","additions text"),Object.assign(eo.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),ei.body.appendChild(eo)),eo}var eJ=0,eQ=1,eX=2,e0=3,e3=4,e5=5,e4=6,e6=7,e8=8,e9=9,e7=10,ta=11,tu=12,tc=13,td=14,tf=15,tp=16,tg=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),tm=function(){var ei=function(ei){function eo(eo){var ea=ei.call(this,eo)||this;ea.id=ea.props.id||"downshift-"+eN(),ea.menuId=ea.props.menuId||ea.id+"-menu",ea.labelId=ea.props.labelId||ea.id+"-label",ea.inputId=ea.props.inputId||ea.id+"-input",ea.getItemId=ea.props.getItemId||function(ei){return ea.id+"-item-"+ei},ea.input=null,ea.items=[],ea.itemCount=null,ea.previousResultCount=0,ea.timeoutIds=[],ea.internalSetTimeout=function(ei,eo){var eu=setTimeout(function(){ea.timeoutIds=ea.timeoutIds.filter(function(ei){return ei!==eu}),ei()},eo);ea.timeoutIds.push(eu)},ea.setItemCount=function(ei){ea.itemCount=ei},ea.unsetItemCount=function(){ea.itemCount=null},ea.setHighlightedIndex=function(ei,eo){void 0===ei&&(ei=ea.props.defaultHighlightedIndex),void 0===eo&&(eo={}),eo=eB(eo),ea.internalSetState(ec({highlightedIndex:ei},eo))},ea.clearSelection=function(ei){ea.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:ea.props.defaultHighlightedIndex,isOpen:ea.props.defaultIsOpen},ei)},ea.selectItem=function(ei,eo,eu){eo=eB(eo),ea.internalSetState(ec({isOpen:ea.props.defaultIsOpen,highlightedIndex:ea.props.defaultHighlightedIndex,selectedItem:ei,inputValue:ea.props.itemToString(ei)},eo),eu)},ea.selectItemAtIndex=function(ei,eo,eu){var ec=ea.items[ei];null!=ec&&ea.selectItem(ec,eo,eu)},ea.selectHighlightedItem=function(ei,eo){return ea.selectItemAtIndex(ea.getState().highlightedIndex,ei,eo)},ea.internalSetState=function(ei,eo){var eu,ed,ef={},eh="function"==typeof ei;return!eh&&ei.hasOwnProperty("inputValue")&&ea.props.onInputValueChange(ei.inputValue,ec({},ea.getStateAndHelpers(),{},ei)),ea.setState(function(eo){eo=ea.getState(eo);var eg=eh?ei(eo):ei;eu=(eg=ea.props.stateReducer(eo,eg)).hasOwnProperty("selectedItem");var em={},eb={};return eu&&eg.selectedItem!==eo.selectedItem&&(ed=eg.selectedItem),eg.type=eg.type||eJ,Object.keys(eg).forEach(function(ei){eo[ei]!==eg[ei]&&(ef[ei]=eg[ei]),"type"!==ei&&(eb[ei]=eg[ei],eG(ea.props,ei)||(em[ei]=eg[ei]))}),eh&&eg.hasOwnProperty("inputValue")&&ea.props.onInputValueChange(eg.inputValue,ec({},ea.getStateAndHelpers(),{},eg)),em},function(){eT(eo)(),Object.keys(ef).length>1&&ea.props.onStateChange(ef,ea.getStateAndHelpers()),eu&&ea.props.onSelect(ei.selectedItem,ea.getStateAndHelpers()),void 0!==ed&&ea.props.onChange(ed,ea.getStateAndHelpers()),ea.props.onUserAction(ef,ea.getStateAndHelpers())})},ea.rootRef=function(ei){return ea._rootNode=ei},ea.getRootProps=function(ei,eo){var ed,ef=void 0===ei?{}:ei,eh=ef.refKey,eg=void 0===eh?"ref":eh,em=ef.ref,eb=eu(ef,["refKey","ref"]),ew=(void 0===eo?{}:eo).suppressRefError,e_=void 0!==ew&&ew;ea.getRootProps.called=!0,ea.getRootProps.refKey=eg,ea.getRootProps.suppressRefError=e_;var eS=ea.getState().isOpen;return ec(((ed={})[eg]=eD(em,ea.rootRef),ed.role="combobox",ed["aria-expanded"]=eS,ed["aria-haspopup"]="listbox",ed["aria-owns"]=eS?ea.menuId:null,ed["aria-labelledby"]=ea.labelId,ed),eb)},ea.keyDownHandlers={ArrowDown:function(ei){var eo=this;if(ei.preventDefault(),this.getState().isOpen){var ea=ei.shiftKey?5:1;this.moveHighlightedIndex(ea,{type:e3})}else this.internalSetState({isOpen:!0,type:e3},function(){var ei=eo.getItemCount();if(ei>0){var ea=eH(1,eo.getState().highlightedIndex,ei,function(ei){return eo.getItemNodeFromIndex(ei)});eo.setHighlightedIndex(ea,{type:e3})}})},ArrowUp:function(ei){var eo=this;if(ei.preventDefault(),this.getState().isOpen){var ea=ei.shiftKey?-5:-1;this.moveHighlightedIndex(ea,{type:e0})}else this.internalSetState({isOpen:!0,type:e0},function(){var ei=eo.getItemCount();if(ei>0){var ea=eH(-1,eo.getState().highlightedIndex,ei,function(ei){return eo.getItemNodeFromIndex(ei)});eo.setHighlightedIndex(ea,{type:e0})}})},Enter:function(ei){if(229!==ei.which){var eo=this.getState(),ea=eo.isOpen,eu=eo.highlightedIndex;if(ea&&null!=eu){ei.preventDefault();var ec=this.items[eu],ed=this.getItemNodeFromIndex(eu);if(null==ec||ed&&ed.hasAttribute("disabled"))return;this.selectHighlightedItem({type:e4})}}},Escape:function(ei){ei.preventDefault(),this.reset({type:e5,selectedItem:null,inputValue:""})}},ea.buttonKeyDownHandlers=ec({},ea.keyDownHandlers,{" ":function(ei){ei.preventDefault(),this.toggleMenu({type:tu})}}),ea.inputKeyDownHandlers=ec({},ea.keyDownHandlers,{Home:function(ei){var eo=this;ei.preventDefault();var ea=this.getItemCount(),eu=this.getState().isOpen;if(!(ea<=0)&&eu){var ec=eW(1,0,ea,function(ei){return eo.getItemNodeFromIndex(ei)},!1);this.setHighlightedIndex(ec,{type:e6})}},End:function(ei){var eo=this;ei.preventDefault();var ea=this.getItemCount(),eu=this.getState().isOpen;if(!(ea<=0)&&eu){var ec=eW(-1,ea-1,ea,function(ei){return eo.getItemNodeFromIndex(ei)},!1);this.setHighlightedIndex(ec,{type:e8})}}}),ea.getToggleButtonProps=function(ei){var eo=void 0===ei?{}:ei,ed=eo.onClick,ef=(eo.onPress,eo.onKeyDown),eh=eo.onKeyUp,eg=eo.onBlur,em=eu(eo,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),eb=ea.getState().isOpen,ew={onClick:eP(ed,ea.buttonHandleClick),onKeyDown:eP(ef,ea.buttonHandleKeyDown),onKeyUp:eP(eh,ea.buttonHandleKeyUp),onBlur:eP(eg,ea.buttonHandleBlur)};return ec({type:"button",role:"button","aria-label":eb?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},em.disabled?{}:ew,{},em)},ea.buttonHandleKeyUp=function(ei){ei.preventDefault()},ea.buttonHandleKeyDown=function(ei){var eo=eV(ei);ea.buttonKeyDownHandlers[eo]&&ea.buttonKeyDownHandlers[eo].call(ed(ea),ei)},ea.buttonHandleClick=function(ei){ei.preventDefault(),ea.props.environment.document.activeElement===ea.props.environment.document.body&&ei.target.focus(),ea.internalSetTimeout(function(){return ea.toggleMenu({type:tc})})},ea.buttonHandleBlur=function(ei){var eo=ei.target;ea.internalSetTimeout(function(){ea.isMouseDown||null!=ea.props.environment.document.activeElement&&ea.props.environment.document.activeElement.id===ea.inputId||ea.props.environment.document.activeElement===eo||ea.reset({type:td})})},ea.getLabelProps=function(ei){return ec({htmlFor:ea.inputId,id:ea.labelId},ei)},ea.getInputProps=function(ei){var eo,ed,ef=void 0===ei?{}:ei,eh=ef.onKeyDown,eg=ef.onBlur,em=ef.onChange,eb=ef.onInput,ew=(ef.onChangeText,eu(ef,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),e_={};eo="onChange";var eS=ea.getState(),eE=eS.inputValue,eA=eS.isOpen,eT=eS.highlightedIndex;return ew.disabled||((ed={})[eo]=eP(em,eb,ea.inputHandleChange),ed.onKeyDown=eP(eh,ea.inputHandleKeyDown),ed.onBlur=eP(eg,ea.inputHandleBlur),e_=ed),ec({"aria-autocomplete":"list","aria-activedescendant":eA&&"number"==typeof eT&&eT>=0?ea.getItemId(eT):null,"aria-controls":eA?ea.menuId:null,"aria-labelledby":ea.labelId,autoComplete:"off",value:eE,id:ea.inputId},e_,{},ew)},ea.inputHandleKeyDown=function(ei){var eo=eV(ei);eo&&ea.inputKeyDownHandlers[eo]&&ea.inputKeyDownHandlers[eo].call(ed(ea),ei)},ea.inputHandleChange=function(ei){ea.internalSetState({type:ta,isOpen:!0,inputValue:ei.target.value,highlightedIndex:ea.props.defaultHighlightedIndex})},ea.inputHandleBlur=function(){ea.internalSetTimeout(function(){var ei=ea.props.environment.document&&!!ea.props.environment.document.activeElement&&!!ea.props.environment.document.activeElement.dataset&&ea.props.environment.document.activeElement.dataset.toggle&&ea._rootNode&&ea._rootNode.contains(ea.props.environment.document.activeElement);ea.isMouseDown||ei||ea.reset({type:e7})})},ea.menuRef=function(ei){ea._menuNode=ei},ea.getMenuProps=function(ei,eo){var ed,ef=void 0===ei?{}:ei,eh=ef.refKey,eg=void 0===eh?"ref":eh,em=ef.ref,eb=eu(ef,["refKey","ref"]),ew=(void 0===eo?{}:eo).suppressRefError,e_=void 0!==ew&&ew;return ea.getMenuProps.called=!0,ea.getMenuProps.refKey=eg,ea.getMenuProps.suppressRefError=e_,ec(((ed={})[eg]=eD(em,ea.menuRef),ed.role="listbox",ed["aria-labelledby"]=eb&&eb["aria-label"]?null:ea.labelId,ed.id=ea.menuId,ed),eb)},ea.getItemProps=function(ei){var eo,ed=void 0===ei?{}:ei,ef=ed.onMouseMove,eh=ed.onMouseDown,eg=ed.onClick,em=(ed.onPress,ed.index),eb=ed.item,ew=void 0===eb?void 0:eb,e_=eu(ed,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===em?(ea.items.push(ew),em=ea.items.indexOf(ew)):ea.items[em]=ew;var eS="onClick",eE=eg,eA=((eo={onMouseMove:eP(ef,function(){em!==ea.getState().highlightedIndex&&(ea.setHighlightedIndex(em,{type:eX}),ea.avoidScrolling=!0,ea.internalSetTimeout(function(){return ea.avoidScrolling=!1},250))}),onMouseDown:eP(eh,function(ei){ei.preventDefault()})})[eS]=eP(eE,function(){ea.selectItemAtIndex(em,{type:e9})}),eo),eT=e_.disabled?{onMouseDown:eA.onMouseDown}:eA;return ec({id:ea.getItemId(em),role:"option","aria-selected":ea.getState().highlightedIndex===em},eT,{},e_)},ea.clearItems=function(){ea.items=[]},ea.reset=function(ei,eo){void 0===ei&&(ei={}),ei=eB(ei),ea.internalSetState(function(eo){var eu=eo.selectedItem;return ec({isOpen:ea.props.defaultIsOpen,highlightedIndex:ea.props.defaultHighlightedIndex,inputValue:ea.props.itemToString(eu)},ei)},eo)},ea.toggleMenu=function(ei,eo){void 0===ei&&(ei={}),ei=eB(ei),ea.internalSetState(function(eo){var eu=eo.isOpen;return ec({isOpen:!eu},eu&&{highlightedIndex:ea.props.defaultHighlightedIndex},{},ei)},function(){var eu=ea.getState(),ec=eu.isOpen,ed=eu.highlightedIndex;ec&&ea.getItemCount()>0&&"number"==typeof ed&&ea.setHighlightedIndex(ed,ei),eT(eo)()})},ea.openMenu=function(ei){ea.internalSetState({isOpen:!0},ei)},ea.closeMenu=function(ei){ea.internalSetState({isOpen:!1},ei)},ea.updateStatus=eI(function(){var ei=ea.getState(),eo=ea.items[ei.highlightedIndex],eu=ea.getItemCount(),ed=ea.props.getA11yStatusMessage(ec({itemToString:ea.props.itemToString,previousResultCount:ea.previousResultCount,resultCount:eu,highlightedItem:eo},ei));ea.previousResultCount=eu,eZ(ed,ea.props.environment.document)},200);var ef=ea.props,eh=ef.defaultHighlightedIndex,eg=ef.initialHighlightedIndex,em=void 0===eg?eh:eg,eb=ef.defaultIsOpen,ew=ef.initialIsOpen,e_=void 0===ew?eb:ew,eS=ef.initialInputValue,eE=void 0===eS?"":eS,eA=ef.initialSelectedItem,ek=void 0===eA?null:eA,eC=ea.getState({highlightedIndex:em,isOpen:e_,inputValue:eE,selectedItem:ek});return null!=eC.selectedItem&&void 0===ea.props.initialInputValue&&(eC.inputValue=ea.props.itemToString(eC.selectedItem)),ea.state=eC,ea}ef(eo,ei);var ea=eo.prototype;return ea.internalClearTimeouts=function(){this.timeoutIds.forEach(function(ei){clearTimeout(ei)}),this.timeoutIds=[]},ea.getState=function(ei){return void 0===ei&&(ei=this.state),eU(ei,this.props)},ea.getItemCount=function(){var ei=this.items.length;return null!=this.itemCount?ei=this.itemCount:void 0!==this.props.itemCount&&(ei=this.props.itemCount),ei},ea.getItemNodeFromIndex=function(ei){return this.props.environment.document.getElementById(this.getItemId(ei))},ea.scrollHighlightedItemIntoView=function(){var ei=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(ei,this._menuNode)},ea.moveHighlightedIndex=function(ei,eo){var ea=this,eu=this.getItemCount(),ec=this.getState().highlightedIndex;if(eu>0){var ed=eH(ei,ec,eu,function(ei){return ea.getItemNodeFromIndex(ei)});this.setHighlightedIndex(ed,eo)}},ea.getStateAndHelpers=function(){var ei=this.getState(),eo=ei.highlightedIndex,ea=ei.inputValue,eu=ei.selectedItem,ec=ei.isOpen,ed=this.props.itemToString,ef=this.id,eh=this.getRootProps,eg=this.getToggleButtonProps,em=this.getLabelProps,eb=this.getMenuProps,ew=this.getInputProps,e_=this.getItemProps,eS=this.openMenu,eE=this.closeMenu,eA=this.toggleMenu,eT=this.selectItem,ek=this.selectItemAtIndex,eC=this.selectHighlightedItem,eO=this.setHighlightedIndex,eI=this.clearSelection,eP=this.clearItems;return{getRootProps:eh,getToggleButtonProps:eg,getLabelProps:em,getMenuProps:eb,getInputProps:ew,getItemProps:e_,reset:this.reset,openMenu:eS,closeMenu:eE,toggleMenu:eA,selectItem:eT,selectItemAtIndex:ek,selectHighlightedItem:eC,setHighlightedIndex:eO,clearSelection:eI,clearItems:eP,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:ed,id:ef,highlightedIndex:eo,inputValue:ea,isOpen:ec,selectedItem:eu}},ea.componentDidMount=function(){var ei=this,eo=function(){ei.isMouseDown=!0},ea=function(eo){ei.isMouseDown=!1,!eK(eo.target,[ei._rootNode,ei._menuNode],ei.props.environment.document)&&ei.getState().isOpen&&ei.reset({type:eQ},function(){return ei.props.onOuterClick(ei.getStateAndHelpers())})},eu=function(){ei.isTouchMove=!1},ec=function(){ei.isTouchMove=!0},ed=function(eo){var ea=eK(eo.target,[ei._rootNode,ei._menuNode],ei.props.environment.document,!1);ei.isTouchMove||ea||!ei.getState().isOpen||ei.reset({type:tp},function(){return ei.props.onOuterClick(ei.getStateAndHelpers())})},ef=this.props.environment;ef.addEventListener("mousedown",eo),ef.addEventListener("mouseup",ea),ef.addEventListener("touchstart",eu),ef.addEventListener("touchmove",ec),ef.addEventListener("touchend",ed),this.cleanup=function(){ei.internalClearTimeouts(),ei.updateStatus.cancel(),ef.removeEventListener("mousedown",eo),ef.removeEventListener("mouseup",ea),ef.removeEventListener("touchstart",eu),ef.removeEventListener("touchmove",ec),ef.removeEventListener("touchend",ed)}},ea.shouldScroll=function(ei,eo){var ea=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,eu=(void 0===eo.highlightedIndex?ei:eo).highlightedIndex;return ea&&this.getState().isOpen&&!ei.isOpen||ea!==eu},ea.componentDidUpdate=function(ei,eo){eG(this.props,"selectedItem")&&this.props.selectedItemChanged(ei.selectedItem,this.props.selectedItem)&&this.internalSetState({type:tf,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(eo,ei)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},ea.componentWillUnmount=function(){this.cleanup()},ea.render=function(){var ei=ej(this.props.children,ek);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var eo=ej(ei(this.getStateAndHelpers()));return eo?this.getRootProps.called||this.props.suppressRefError?eo:eR(eo)?(0,em.cloneElement)(eo,this.getRootProps(eL(eo))):void 0:null},eo}(em.Component);return ei.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:eM,itemToString:function(ei){return null==ei?"":String(ei)},onStateChange:ek,onInputValueChange:ek,onUserAction:ek,onChange:ek,onSelect:ek,onOuterClick:ek,selectedItemChanged:function(ei,eo){return ei!==eo},environment:"undefined"==typeof window?{}:window,stateReducer:function(ei,eo){return eo},suppressRefError:!1,scrollIntoView:eC},ei.stateChangeTypes=tg,ei}(),tv={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function tb(ei,eo,ea){var eu=ei.props,ed=ei.type,ef={};Object.keys(eo).forEach(function(ei){tw(ei,eu,eo,ea),ea[ei]!==eo[ei]&&(ef[ei]=ea[ei])}),eu.onStateChange&&Object.keys(ef).length&&eu.onStateChange(ec({type:ed},ef))}function tw(ei,eo,ea,eu){var ec="on"+tC(ei)+"Change";eo[ec]&&void 0!==eu[ei]&&eu[ei]!==ea[ei]&&eo[ec](eu)}function t_(ei,eo){return eo.changes}function tS(ei){var eo=ei.selectedItem,ea=ei.itemToString;return eo?ea(eo)+" has been selected.":""}var tE=eI(function(ei,eo){eZ(ei(),eo)},200);function tA(ei){var eo=ei.id,ea=ei.labelId,eu=ei.menuId,ec=ei.getItemId,ed=ei.toggleButtonId,ef=void 0===eo?"downshift-"+eN():eo;return{labelId:ea||ef+"-label",menuId:eu||ef+"-menu",getItemId:ec||function(ei){return ef+"-item-"+ei},toggleButtonId:ed||ef+"-toggle-button"}}function tT(ei,eo,ea){return void 0!==ei?ei:0===ea.length?-1:ea.indexOf(eo)}function tk(ei){return/^\S{1}$/.test(ei)}function tC(ei){return""+ei.slice(0,1).toUpperCase()+ei.slice(1)}function tO(ei,eo,ea){var eu=(0,em.useRef)(),ed=(0,em.useRef)(),ef=(0,em.useCallback)(function(eo,ea){ed.current=ea;var eu=ei(eo=eU(eo,ea.props),ea);return ea.props.stateReducer(eo,ec({},ea,{changes:eu}))},[ei]),eh=(0,em.useReducer)(ef,eo),eg=eh[0],eb=eh[1],ew=ed.current;return(0,em.useEffect)(function(){ew&&eu.current&&eu.current!==eg&&tb(ew,eu.current,eg),eu.current=eg},[eg,ea,ew]),[eg,function(ei){return eb(ec({props:ea},ei))}]}function tI(ei,eo,ea){var eu=tO(ei,eo,ea),ec=eu[0],ed=eu[1];return[eU(ec,ea),ed]}var tP={itemToString:function(ei){return ei?String(ei):""},stateReducer:t_,getA11ySelectionMessage:tS,scrollIntoView:eC,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function tD(ei,eo,ea){void 0===ea&&(ea=tv);var eu="default"+tC(eo);return eu in ei?ei[eu]:ea[eo]}function tN(ei,eo,ea){if(void 0===ea&&(ea=tv),eo in ei)return ei[eo];var eu="initial"+tC(eo);return eu in ei?ei[eu]:tD(ei,eo,ea)}function tM(ei){var eo=tN(ei,"selectedItem"),ea=tN(ei,"isOpen"),eu=tN(ei,"highlightedIndex"),ec=tN(ei,"inputValue");return{highlightedIndex:eu<0&&eo?ei.items.indexOf(eo):eu,isOpen:ea,selectedItem:eo,inputValue:ec}}function tj(ei,eo,ea,eu){var ec=ei.items,ed=ei.initialHighlightedIndex,ef=ei.defaultHighlightedIndex,eh=eo.selectedItem,eg=eo.highlightedIndex;return void 0!==ed&&eg===ed?ed:void 0!==ef?ef:eh?0===ea?ec.indexOf(eh):eH(ea,ec.indexOf(eh),ec.length,eu,!1):0===ea?-1:ea<0?ec.length-1:0}function tR(ei,eo,ea,eu){var ec=(0,em.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,em.useEffect)(function(){var ed=function(){ec.current.isMouseDown=!0},ef=function(ed){ec.current.isMouseDown=!1,ei&&!eK(ed.target,eo.map(function(ei){return ei.current}),ea.document)&&eu()},eh=function(){ec.current.isTouchMove=!1},eg=function(){ec.current.isTouchMove=!0},em=function(ed){!ei||ec.current.isTouchMove||eK(ed.target,eo.map(function(ei){return ei.current}),ea.document,!1)||eu()};return ea.addEventListener("mousedown",ed),ea.addEventListener("mouseup",ef),ea.addEventListener("touchstart",eh),ea.addEventListener("touchmove",eg),ea.addEventListener("touchend",em),function(){ea.removeEventListener("mousedown",ed),ea.removeEventListener("mouseup",ef),ea.removeEventListener("touchstart",eh),ea.removeEventListener("touchmove",eg),ea.removeEventListener("touchend",em)}},[ei,ea]),ec.current.isMouseDown}function tL(ei,eo,ea,eu,ec){for(var ed=ea.map(function(ei){return eu(ei).toLowerCase()}),ef=ei.toLowerCase(),eh=function(ei,eo){var ea=ec(eo);return ei.startsWith(ef)&&!(ea&&ea.hasAttribute("disabled"))},eg=eo+1;eg=0&&{selectedItem:ed.items[em]});break;case tX:ea={highlightedIndex:tj(ed,ei,1,eo.getItemNodeFromIndex),isOpen:!0};break;case ra:ea={highlightedIndex:tj(ed,ei,-1,eo.getItemNodeFromIndex),isOpen:!0};break;case tH:case tW:ea=ec({isOpen:tD(ed,"isOpen"),highlightedIndex:tD(ed,"highlightedIndex")},ei.highlightedIndex>=0&&{selectedItem:ed.items[ei.highlightedIndex]});break;case tV:ea={highlightedIndex:eW(1,0,ed.items.length,eo.getItemNodeFromIndex,!1)};break;case tq:ea={highlightedIndex:eW(-1,ed.items.length-1,ed.items.length,eo.getItemNodeFromIndex,!1)};break;case tG:case tY:ea={isOpen:!1,highlightedIndex:-1};break;case tK:var eb=eo.key,ew=""+ei.inputValue+eb,e_=tL(ew,ei.highlightedIndex,ed.items,ed.itemToString,eo.getItemNodeFromIndex);ea=ec({inputValue:ew},e_>=0&&{highlightedIndex:e_});break;case tB:ea={highlightedIndex:eH(ef?5:1,ei.highlightedIndex,ed.items.length,eo.getItemNodeFromIndex,ed.circularNavigation)};break;case tU:ea={highlightedIndex:eH(ef?-5:-1,ei.highlightedIndex,ed.items.length,eo.getItemNodeFromIndex,ed.circularNavigation)};break;case tZ:ea={highlightedIndex:-1};break;case tQ:case rc:ea={isOpen:!ei.isOpen,highlightedIndex:ei.isOpen?-1:tj(ed,ei,0)};break;case rf:ea={isOpen:!0,highlightedIndex:tj(ed,ei,0)};break;case rh:ea={isOpen:!1};break;case rp:ea={highlightedIndex:eo.highlightedIndex};break;case ry:ea={selectedItem:eo.selectedItem};break;case rw:ea={inputValue:eo.inputValue};break;case r_:ea={highlightedIndex:tD(ed,"highlightedIndex"),isOpen:tD(ed,"isOpen"),selectedItem:tD(ed,"selectedItem"),inputValue:tD(ed,"inputValue")};break;default:throw Error("Reducer called without proper action type.")}return ec({},ei,{},ea)}var rE=0,rA=1,rT=2,rk=3,rC=4,rO=5,rI=6,rP=7,rD=8,rN=9,rM=10,rj=11,rR=12,rL=13,rF=14,rB=15,rU=16,rz=17,rG=18,rV=19,rq=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownEnter:5,InputChange:6,InputBlur:7,MenuMouseLeave:8,ItemMouseMove:9,ItemClick:10,ToggleButtonClick:11,FunctionToggleMenu:12,FunctionOpenMenu:13,FunctionCloseMenu:14,FunctionSetHighlightedIndex:15,FunctionSelectItem:16,FunctionSetInputValue:17,FunctionReset:18,ControlledPropUpdatedSelectedItem:19});function rH(ei){var eo=ei.id,ea=ei.inputId,ed=eu(ei,["id","inputId"]),ef=void 0===eo?"downshift-"+eN():eo;return ec({inputId:ea||ef+"-input"},tA(ec({id:eo},ed)))}function rW(ei){var eo=tM(ei),ea=eo.selectedItem,eu=eo.inputValue;return""===eu&&ea&&void 0===ei.defaultInputValue&&void 0===ei.initialInputValue&&void 0===ei.inputValue&&(eu=ei.itemToString(ea)),ec({},eo,{inputValue:eu})}function rK(ei,eo,ea){var eu=(0,em.useRef)(),ec=tO(ei,eo,ea),ed=ec[0],ef=ec[1];return eG(ea,"selectedItem")&&(eu.current!==ea.selectedItem&&ef({type:rV,inputValue:ea.itemToString(ea.selectedItem)}),eu.current=ed.selectedItem===eu.current?ea.selectedItem:ed.selectedItem),[eU(ed,ea),ef]}eg().array.isRequired,eg().func,eg().func,eg().func,eg().bool,eg().number,eg().number,eg().number,eg().bool,eg().bool,eg().bool,eg().any,eg().any,eg().any,eg().string,eg().string,eg().string,eg().string,eg().string,eg().string,eg().func,eg().string,eg().string,eg().func,eg().func,eg().func,eg().func,eg().func,eg().func,eg().shape({addEventListener:eg().func,removeEventListener:eg().func,document:eg().shape({getElementById:eg().func,activeElement:eg().any,body:eg().any})});var rY=ec({},tP,{getA11yStatusMessage:eM,circularNavigation:!0});function rZ(ei,eo){var ea,eu=eo.type,ed=eo.props,ef=eo.shiftKey;switch(eu){case rN:ea={highlightedIndex:eo.index};break;case rM:ea={isOpen:tD(ed,"isOpen"),highlightedIndex:tD(ed,"highlightedIndex"),selectedItem:ed.items[eo.index],inputValue:ed.itemToString(ed.items[eo.index])};break;case rE:ea=ei.isOpen?{highlightedIndex:eH(ef?5:1,ei.highlightedIndex,ed.items.length,eo.getItemNodeFromIndex,ed.circularNavigation)}:{highlightedIndex:tj(ed,ei,1,eo.getItemNodeFromIndex),isOpen:!0};break;case rA:ea=ei.isOpen?{highlightedIndex:eH(ef?-5:-1,ei.highlightedIndex,ed.items.length,eo.getItemNodeFromIndex,ed.circularNavigation)}:{highlightedIndex:tj(ed,ei,-1,eo.getItemNodeFromIndex),isOpen:!0};break;case rO:ea=ec({},ei.highlightedIndex>=0&&{selectedItem:ed.items[ei.highlightedIndex],isOpen:tD(ed,"isOpen"),highlightedIndex:tD(ed,"highlightedIndex"),inputValue:ed.itemToString(ed.items[ei.highlightedIndex])});break;case rT:ea={isOpen:!1,selectedItem:null,highlightedIndex:-1,inputValue:""};break;case rk:ea={highlightedIndex:eW(1,0,ed.items.length,eo.getItemNodeFromIndex,!1)};break;case rC:ea={highlightedIndex:eW(-1,ed.items.length-1,ed.items.length,eo.getItemNodeFromIndex,!1)};break;case rP:ea=ec({isOpen:!1},ei.highlightedIndex>=0&&{selectedItem:ed.items[ei.highlightedIndex],inputValue:ed.itemToString(ed.items[ei.highlightedIndex]),highlightedIndex:-1});break;case rI:ea={isOpen:!0,highlightedIndex:tD(ed,"highlightedIndex"),inputValue:eo.inputValue};break;case rD:ea={highlightedIndex:-1};break;case rj:case rR:ea={isOpen:!ei.isOpen,highlightedIndex:ei.isOpen?-1:tj(ed,ei,0)};break;case rL:ea={isOpen:!0,highlightedIndex:tj(ed,ei,0)};break;case rF:ea={isOpen:!1};break;case rB:ea={highlightedIndex:eo.highlightedIndex};break;case rU:ea={selectedItem:eo.selectedItem};break;case rV:case rz:ea={inputValue:eo.inputValue};break;case rG:ea={highlightedIndex:tD(ed,"highlightedIndex"),isOpen:tD(ed,"isOpen"),selectedItem:tD(ed,"selectedItem"),inputValue:tD(ed,"inputValue")};break;default:throw Error("Reducer called without proper action type.")}return ec({},ei,{},ea)}var r$={activeIndex:-1,selectedItems:[]};function rJ(ei,eo){return tN(ei,eo,r$)}function rQ(ei,eo){return tD(ei,eo,r$)}function rX(ei){return{activeIndex:rJ(ei,"activeIndex"),selectedItems:rJ(ei,"selectedItems")}}function ni(ei){if(ei.shiftKey||ei.metaKey||ei.ctrlKey||ei.altKey)return!1;var eo=ei.target;return!(eo instanceof HTMLInputElement)||""===eo.value||0===eo.selectionStart&&0===eo.selectionEnd}function no(ei){var eo=ei.removedSelectedItem;return(0,ei.itemToString)(eo)+" has been removed."}eg().array,eg().array,eg().array,eg().func,eg().func,eg().func,eg().number,eg().number,eg().number,eg().func,eg().func,eg().string,eg().string,eg().shape({addEventListener:eg().func,removeEventListener:eg().func,document:eg().shape({getElementById:eg().func,activeElement:eg().any,body:eg().any})});var nu={itemToString:tP.itemToString,stateReducer:tP.stateReducer,environment:tP.environment,getA11yRemovalMessage:no,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},nd=0,nf=1,nh=2,np=3,ng=4,ny=5,nw=6,n_=7,nS=8,nE=9,nx=10,nA=11,nT=12;function nk(ei,eo){var ea,eu=eo.type,ed=eo.index,ef=eo.props,eh=eo.selectedItem,eg=ei.activeIndex,em=ei.selectedItems;switch(eu){case nd:ea={activeIndex:ed};break;case ng:ea={activeIndex:eg-1<0?0:eg-1};break;case np:ea={activeIndex:eg+1>=em.length?-1:eg+1};break;case nh:case nf:var eb=eg;1===em.length?eb=-1:eg===em.length-1&&(eb=em.length-2),ea=ec({selectedItems:[].concat(em.slice(0,eg),em.slice(eg+1))},{activeIndex:eb});break;case ny:ea={activeIndex:em.length-1};break;case nw:ea={selectedItems:em.slice(0,em.length-1)};break;case nS:ea={selectedItems:[].concat(em,[eh])};break;case n_:ea={activeIndex:-1};break;case nE:var ew=eg,e_=em.indexOf(eh);1===em.length?ew=-1:e_===em.length-1&&(ew=em.length-2),ea=ec({selectedItems:[].concat(em.slice(0,e_),em.slice(e_+1))},{activeIndex:ew});break;case nx:ea={selectedItems:eo.selectedItems};break;case nA:ea={activeIndex:eo.activeIndex};break;case nT:ea={activeIndex:rQ(ef,"activeIndex"),selectedItems:rQ(ef,"selectedItems")};break;default:throw Error("Reducer called without proper action type.")}return ec({},ei,{},ea)}var nC=tm},56781:function(ei,eo){"use strict";var ea,eu="function"==typeof Symbol&&Symbol.for,ec=eu?Symbol.for("react.element"):60103,ed=eu?Symbol.for("react.portal"):60106,ef=eu?Symbol.for("react.fragment"):60107,eh=eu?Symbol.for("react.strict_mode"):60108,eg=eu?Symbol.for("react.profiler"):60114,em=eu?Symbol.for("react.provider"):60109,eb=eu?Symbol.for("react.context"):60110,ew=eu?Symbol.for("react.async_mode"):60111,e_=eu?Symbol.for("react.concurrent_mode"):60111,eS=eu?Symbol.for("react.forward_ref"):60112,eE=eu?Symbol.for("react.suspense"):60113,eA=(eu&&Symbol.for("react.suspense_list"),eu?Symbol.for("react.memo"):60115),eT=eu?Symbol.for("react.lazy"):60116;function ek(ei){if("object"==typeof ei&&null!==ei){var eo=ei.$$typeof;switch(eo){case ec:switch(ei=ei.type){case ew:case e_:case ef:case eg:case eh:case eE:return ei;default:switch(ei=ei&&ei.$$typeof){case eb:case eS:case eT:case eA:case em:return ei;default:return eo}}case ed:return eo}}}function eC(ei){return ek(ei)===e_}eu&&Symbol.for("react.block"),eu&&Symbol.for("react.fundamental"),eu&&Symbol.for("react.responder"),eu&&Symbol.for("react.scope"),ea=ew,ea=e_,ea=eb,ea=em,ea=ec,ea=eS,ea=ef,ea=eT,ea=eA,ea=ed,ea=eg,ea=eh,ea=eE,ea=function(ei){return eC(ei)||ek(ei)===ew},ea=eC,ea=function(ei){return ek(ei)===eb},ea=function(ei){return ek(ei)===em},ea=function(ei){return"object"==typeof ei&&null!==ei&&ei.$$typeof===ec},ea=function(ei){return ek(ei)===eS},ea=function(ei){return ek(ei)===ef},ea=function(ei){return ek(ei)===eT},ea=function(ei){return ek(ei)===eA},ea=function(ei){return ek(ei)===ed},ea=function(ei){return ek(ei)===eg},ea=function(ei){return ek(ei)===eh},ea=function(ei){return ek(ei)===eE}},21726:function(ei,eo,ea){"use strict";ea(56781)},26729:function(ei){"use strict";var eo=Object.prototype.hasOwnProperty,ea="~";function eu(){}function ec(ei,eo,ea){this.fn=ei,this.context=eo,this.once=ea||!1}function ed(ei,eo,eu,ed,ef){if("function"!=typeof eu)throw TypeError("The listener must be a function");var eh=new ec(eu,ed||ei,ef),eg=ea?ea+eo:eo;return ei._events[eg]?ei._events[eg].fn?ei._events[eg]=[ei._events[eg],eh]:ei._events[eg].push(eh):(ei._events[eg]=eh,ei._eventsCount++),ei}function ef(ei,eo){0==--ei._eventsCount?ei._events=new eu:delete ei._events[eo]}function eh(){this._events=new eu,this._eventsCount=0}Object.create&&(eu.prototype=Object.create(null),new eu().__proto__||(ea=!1)),eh.prototype.eventNames=function(){var ei,eu,ec=[];if(0===this._eventsCount)return ec;for(eu in ei=this._events)eo.call(ei,eu)&&ec.push(ea?eu.slice(1):eu);return Object.getOwnPropertySymbols?ec.concat(Object.getOwnPropertySymbols(ei)):ec},eh.prototype.listeners=function(ei){var eo=ea?ea+ei:ei,eu=this._events[eo];if(!eu)return[];if(eu.fn)return[eu.fn];for(var ec=0,ed=eu.length,ef=Array(ed);ec0&&eh.length>ed&&!eh.warned){eh.warned=!0;var ed,ef,eh,eb=Error("Possible EventEmitter memory leak detected. "+eh.length+" "+String(eo)+" listeners added. Use emitter.setMaxListeners() to increase limit");eb.name="MaxListenersExceededWarning",eb.emitter=ei,eb.type=eo,eb.count=eh.length,ec(eb)}return ei}function ew(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function e_(ei,eo,ea){var eu={fired:!1,wrapFn:void 0,target:ei,type:eo,listener:ea},ec=ew.bind(eu);return ec.listener=ea,eu.wrapFn=ec,ec}function eS(ei,eo,ea){var eu=ei._events;if(void 0===eu)return[];var ec=eu[eo];return void 0===ec?[]:"function"==typeof ec?ea?[ec.listener||ec]:[ec]:ea?ek(ec):eA(ec,ec.length)}function eE(ei){var eo=this._events;if(void 0!==eo){var ea=eo[ei];if("function"==typeof ea)return 1;if(void 0!==ea)return ea.length}return 0}function eA(ei,eo){for(var ea=Array(eo),eu=0;eu0&&(ef=eo[0]),ef instanceof Error)throw ef;var ef,eh=Error("Unhandled error."+(ef?" ("+ef.message+")":""));throw eh.context=ef,eh}var eg=ed[ei];if(void 0===eg)return!1;if("function"==typeof eg)eu(eg,this,eo);else for(var em=eg.length,eb=eA(eg,em),ea=0;ea=0;ed--)if(ea[ed]===eo||ea[ed].listener===eo){ef=ea[ed].listener,ec=ed;break}if(ec<0)return this;0===ec?ea.shift():eT(ea,ec),1===ea.length&&(eu[ei]=ea[0]),void 0!==eu.removeListener&&this.emit("removeListener",ei,ef||eo)}return this},ef.prototype.off=ef.prototype.removeListener,ef.prototype.removeAllListeners=function(ei){var eo,ea,eu;if(void 0===(ea=this._events))return this;if(void 0===ea.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ea[ei]&&(0==--this._eventsCount?this._events=Object.create(null):delete ea[ei]),this;if(0==arguments.length){var ec,ed=Object.keys(ea);for(eu=0;eu=0;eu--)this.removeListener(ei,eo[eu]);return this},ef.prototype.listeners=function(ei){return eS(this,ei,!0)},ef.prototype.rawListeners=function(ei){return eS(this,ei,!1)},ef.listenerCount=function(ei,eo){return"function"==typeof ei.listenerCount?ei.listenerCount(eo):eE.call(ei,eo)},ef.prototype.listenerCount=eE,ef.prototype.eventNames=function(){return this._eventsCount>0?eo(this._events):[]}},64063:function(ei){"use strict";ei.exports=function ei(eo,ea){if(eo===ea)return!0;if(eo&&ea&&"object"==typeof eo&&"object"==typeof ea){if(eo.constructor!==ea.constructor)return!1;if(Array.isArray(eo)){if((eu=eo.length)!=ea.length)return!1;for(ec=eu;0!=ec--;)if(!ei(eo[ec],ea[ec]))return!1;return!0}if(eo.constructor===RegExp)return eo.source===ea.source&&eo.flags===ea.flags;if(eo.valueOf!==Object.prototype.valueOf)return eo.valueOf()===ea.valueOf();if(eo.toString!==Object.prototype.toString)return eo.toString()===ea.toString();if((eu=(ed=Object.keys(eo)).length)!==Object.keys(ea).length)return!1;for(ec=eu;0!=ec--;)if(!Object.prototype.hasOwnProperty.call(ea,ed[ec]))return!1;for(ec=eu;0!=ec--;){var eu,ec,ed,ef=ed[ec];if(!ei(eo[ef],ea[ef]))return!1}return!0}return eo!=eo&&ea!=ea}},35035:function(ei){"use strict";ei.exports=function(ei,eo){eo||(eo={}),"function"==typeof eo&&(eo={cmp:eo});var ea="boolean"==typeof eo.cycles&&eo.cycles,eu=eo.cmp&&function(ei){return function(eo){return function(ea,eu){return ei({key:ea,value:eo[ea]},{key:eu,value:eo[eu]})}}}(eo.cmp),ec=[];return function ei(eo){if(eo&&eo.toJSON&&"function"==typeof eo.toJSON&&(eo=eo.toJSON()),void 0!==eo){if("number"==typeof eo)return isFinite(eo)?""+eo:"null";if("object"!=typeof eo)return JSON.stringify(eo);if(Array.isArray(eo)){for(ed=0,ef="[";edeb.depthLimit||void 0!==eb.edgesLimit&&ec+1>eb.edgesLimit){eh(eo,ei,eu,ef);return}if(ed.push(ei),Array.isArray(ei))for(ew=0;eweo?1:0}function eb(ei,eo,ea,ef){void 0===ef&&(ef=ed());var eh,eg=ew(ei,"",0,[],void 0,0,ef)||ei;try{eh=0===ec.length?JSON.stringify(eg,eo,ea):JSON.stringify(eg,e_(eo),ea)}catch(ei){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==eu.length;){var em=eu.pop();4===em.length?Object.defineProperty(em[0],em[1],em[3]):em[0][em[1]]=em[2]}}return eh}function ew(ei,ec,ed,ef,eg,eb,e_){if(eb+=1,"object"==typeof ei&&null!==ei){for(eS=0;eSe_.depthLimit||void 0!==e_.edgesLimit&&ed+1>e_.edgesLimit){eh(eo,ei,ec,eg);return}if(ef.push(ei),Array.isArray(ei))for(eS=0;eS0)for(var eu=0;eu1&&"boolean"!=typeof eo)throw new ef('"allowMissing" argument must be a boolean');if(null===eR(/^%?[^%]*%?$/,ei))throw new ec("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ea=eB(ei),eu=ea.length>0?ea[0]:"",ed=eU("%"+eu+"%",eo),eh=ed.name,em=ed.value,eb=!1,ew=ed.alias;ew&&(eu=ew[0],eN(ea,eD([0,1],ew)));for(var e_=1,eS=!0;e_=ea.length){var eC=eg(em,eE);em=(eS=!!eC)&&"get"in eC&&!("originalValue"in eC.get)?eC.get:em[eE]}else eS=eP(em,eE),em=em[eE];eS&&!eb&&(eT[eh]=em)}}return em}},28185:function(ei){"use strict";var eo={foo:{}},ea=Object;ei.exports=function(){return({__proto__:eo}).foo===eo.foo&&!(({__proto__:null})instanceof ea)}},41405:function(ei,eo,ea){"use strict";var eu="undefined"!=typeof Symbol&&Symbol,ec=ea(55419);ei.exports=function(){return"function"==typeof eu&&"function"==typeof Symbol&&"symbol"==typeof eu("foo")&&"symbol"==typeof Symbol("bar")&&ec()}},55419:function(ei){"use strict";ei.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var ei={},eo=Symbol("test"),ea=Object(eo);if("string"==typeof eo||"[object Symbol]"!==Object.prototype.toString.call(eo)||"[object Symbol]"!==Object.prototype.toString.call(ea))return!1;var eu=42;for(eo in ei[eo]=eu,ei)return!1;if("function"==typeof Object.keys&&0!==Object.keys(ei).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(ei).length)return!1;var ec=Object.getOwnPropertySymbols(ei);if(1!==ec.length||ec[0]!==eo||!Object.prototype.propertyIsEnumerable.call(ei,eo))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ed=Object.getOwnPropertyDescriptor(ei,eo);if(ed.value!==eu||!0!==ed.enumerable)return!1}return!0}},17642:function(ei){"use strict";var eo={}.hasOwnProperty,ea=Function.prototype.call;ei.exports=ea.bind?ea.bind(eo):function(ei,eu){return ea.call(eo,ei,eu)}},8679:function(ei,eo,ea){"use strict";var eu=ea(21296),ec={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ed={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ef={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eg={};function em(ei){return eu.isMemo(ei)?eh:eg[ei.$$typeof]||ec}eg[eu.ForwardRef]=ef,eg[eu.Memo]=eh;var eb=Object.defineProperty,ew=Object.getOwnPropertyNames,e_=Object.getOwnPropertySymbols,eS=Object.getOwnPropertyDescriptor,eE=Object.getPrototypeOf,eA=Object.prototype;function eT(ei,eo,ea){if("string"!=typeof eo){if(eA){var eu=eE(eo);eu&&eu!==eA&&eT(ei,eu,ea)}var ec=ew(eo);e_&&(ec=ec.concat(e_(eo)));for(var ef=em(ei),eh=em(eo),eg=0;eg*/eo.read=function(ei,eo,ea,eu,ec){var ed,ef,eh=8*ec-eu-1,eg=(1<>1,eb=-7,ew=ea?ec-1:0,e_=ea?-1:1,eS=ei[eo+ew];for(ew+=e_,ed=eS&(1<<-eb)-1,eS>>=-eb,eb+=eh;eb>0;ed=256*ed+ei[eo+ew],ew+=e_,eb-=8);for(ef=ed&(1<<-eb)-1,ed>>=-eb,eb+=eu;eb>0;ef=256*ef+ei[eo+ew],ew+=e_,eb-=8);if(0===ed)ed=1-em;else{if(ed===eg)return ef?NaN:(eS?-1:1)*(1/0);ef+=Math.pow(2,eu),ed-=em}return(eS?-1:1)*ef*Math.pow(2,ed-eu)},eo.write=function(ei,eo,ea,eu,ec,ed){var ef,eh,eg,em=8*ed-ec-1,eb=(1<>1,e_=23===ec?5960464477539062e-23:0,eS=eu?0:ed-1,eE=eu?1:-1,eA=eo<0||0===eo&&1/eo<0?1:0;for(isNaN(eo=Math.abs(eo))||eo===1/0?(eh=isNaN(eo)?1:0,ef=eb):(ef=Math.floor(Math.log(eo)/Math.LN2),eo*(eg=Math.pow(2,-ef))<1&&(ef--,eg*=2),ef+ew>=1?eo+=e_/eg:eo+=e_*Math.pow(2,1-ew),eo*eg>=2&&(ef++,eg/=2),ef+ew>=eb?(eh=0,ef=eb):ef+ew>=1?(eh=(eo*eg-1)*Math.pow(2,ec),ef+=ew):(eh=eo*Math.pow(2,ew-1)*Math.pow(2,ec),ef=0));ec>=8;ei[ea+eS]=255&eh,eS+=eE,eh/=256,ec-=8);for(ef=ef<0;ei[ea+eS]=255&ef,eS+=eE,ef/=256,em-=8);ei[ea+eS-eE]|=128*eA}},35717:function(ei){"function"==typeof Object.create?ei.exports=function(ei,eo){eo&&(ei.super_=eo,ei.prototype=Object.create(eo.prototype,{constructor:{value:ei,enumerable:!1,writable:!0,configurable:!0}}))}:ei.exports=function(ei,eo){if(eo){ei.super_=eo;var ea=function(){};ea.prototype=eo.prototype,ei.prototype=new ea,ei.prototype.constructor=ei}}},53630:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eI}});var eu=/iPhone/i,ec=/iPod/i,ed=/iPad/i,ef=/\biOS-universal(?:.+)Mac\b/i,eh=/\bAndroid(?:.+)Mobile\b/i,eg=/Android/i,em=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,eb=/Silk/i,ew=/Windows Phone/i,e_=/\bWindows(?:.+)ARM\b/i,eS=/BlackBerry/i,eE=/BB10/i,eA=/Opera Mini/i,eT=/\b(CriOS|Chrome)(?:.+)Mobile/i,ek=/Mobile(?:.+)Firefox\b/i,eC=function(ei){return void 0!==ei&&"MacIntel"===ei.platform&&"number"==typeof ei.maxTouchPoints&&ei.maxTouchPoints>1&&"undefined"==typeof MSStream};function eO(ei){return function(eo){return eo.test(ei)}}function eI(ei){var eo={userAgent:"",platform:"",maxTouchPoints:0};ei||"undefined"==typeof navigator?"string"==typeof ei?eo.userAgent=ei:ei&&ei.userAgent&&(eo={userAgent:ei.userAgent,platform:ei.platform,maxTouchPoints:ei.maxTouchPoints||0}):eo={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var ea=eo.userAgent,eI=ea.split("[FBAN");void 0!==eI[1]&&(ea=eI[0]),void 0!==(eI=ea.split("Twitter"))[1]&&(ea=eI[0]);var eP=eO(ea),eD={apple:{phone:eP(eu)&&!eP(ew),ipod:eP(ec),tablet:!eP(eu)&&(eP(ed)||eC(eo))&&!eP(ew),universal:eP(ef),device:(eP(eu)||eP(ec)||eP(ed)||eP(ef)||eC(eo))&&!eP(ew)},amazon:{phone:eP(em),tablet:!eP(em)&&eP(eb),device:eP(em)||eP(eb)},android:{phone:!eP(ew)&&eP(em)||!eP(ew)&&eP(eh),tablet:!eP(ew)&&!eP(em)&&!eP(eh)&&(eP(eb)||eP(eg)),device:!eP(ew)&&(eP(em)||eP(eb)||eP(eh)||eP(eg))||eP(/\bokhttp\b/i)},windows:{phone:eP(ew),tablet:eP(e_),device:eP(ew)||eP(e_)},other:{blackberry:eP(eS),blackberry10:eP(eE),opera:eP(eA),firefox:eP(ek),chrome:eP(eT),device:eP(eS)||eP(eE)||eP(eA)||eP(ek)||eP(eT)},any:!1,phone:!1,tablet:!1};return eD.any=eD.apple.device||eD.android.device||eD.windows.device||eD.other.device,eD.phone=eD.apple.phone||eD.android.phone||eD.windows.phone,eD.tablet=eD.apple.tablet||eD.android.tablet||eD.windows.tablet,eD}},31198:function(ei,eo,ea){"use strict";let eu=ea(74134).v4,ec=ea(17741),ed=function(ei,eo){if(!(this instanceof ed))return new ed(ei,eo);eo||(eo={}),this.options={reviver:void 0!==eo.reviver?eo.reviver:null,replacer:void 0!==eo.replacer?eo.replacer:null,generator:void 0!==eo.generator?eo.generator:function(){return eu()},version:void 0!==eo.version?eo.version:2,notificationIdNull:"boolean"==typeof eo.notificationIdNull&&eo.notificationIdNull},this.callServer=ei};ei.exports=ed,ed.prototype.request=function(ei,eo,ea,eu){let ed;let ef=this,eh=null,eg=Array.isArray(ei)&&"function"==typeof eo;if(1===this.options.version&&eg)throw TypeError("JSON-RPC 1.0 does not support batching");let em=!eg&&ei&&"object"==typeof ei&&"function"==typeof eo;if(eg||em)eu=eo,eh=ei;else{"function"==typeof ea&&(eu=ea,ea=void 0);let ed="function"==typeof eu;try{eh=ec(ei,eo,ea,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(ei){if(ed)return eu(ei);throw ei}if(!ed)return eh}try{ed=JSON.stringify(eh,this.options.replacer)}catch(ei){return eu(ei)}return this.callServer(ed,function(ei,eo){ef._parseResponse(ei,eo,eu)}),eh},ed.prototype._parseResponse=function(ei,eo,ea){let eu;if(ei){ea(ei);return}if(!eo)return ea();try{eu=JSON.parse(eo,this.options.reviver)}catch(ei){return ea(ei)}if(3===ea.length){if(!Array.isArray(eu))return ea(null,eu.error,eu.result);{let ei=function(ei){return void 0!==ei.error},eo=function(eo){return!ei(eo)};return ea(null,eu.filter(ei),eu.filter(eo))}}ea(null,eu)}},17741:function(ei,eo,ea){"use strict";let eu=ea(74134).v4,ec=function(ei,eo,ea,ec){if("string"!=typeof ei)throw TypeError(ei+" must be a string");ec=ec||{};let ed="number"==typeof ec.version?ec.version:2;if(1!==ed&&2!==ed)throw TypeError(ed+" must be 1 or 2");let ef={method:ei};if(2===ed&&(ef.jsonrpc="2.0"),eo){if("object"!=typeof eo&&!Array.isArray(eo))throw TypeError(eo+" must be an object, array or omitted");ef.params=eo}if(void 0===ea){let ei="function"==typeof ec.generator?ec.generator:function(){return eu()};ef.id=ei(ef,ec)}else 2===ed&&null===ea?ec.notificationIdNull&&(ef.id=null):ef.id=ea;return ef};ei.exports=ec},91094:function(ei,eo,ea){var eu,ec=ea(83454);!function(){"use strict";var ed="input is invalid type",ef="finalize already called",eh="object"==typeof window,eg=eh?window:{};eg.JS_SHA3_NO_WINDOW&&(eh=!1);var em=!eh&&"object"==typeof self;!eg.JS_SHA3_NO_NODE_JS&&"object"==typeof ec&&ec.versions&&ec.versions.node?eg=ea.g:em&&(eg=self);var eb=!eg.JS_SHA3_NO_COMMON_JS&&ei.exports,ew=ea.amdO,e_=!eg.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,eS="0123456789abcdef".split(""),eE=[31,7936,2031616,520093696],eA=[4,1024,262144,67108864],eT=[1,256,65536,16777216],ek=[6,1536,393216,100663296],eC=[0,8,16,24],eO=[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],eI=[224,256,384,512],eP=[128,256],eD=["hex","buffer","arrayBuffer","array","digest"],eN={128:168,256:136};(eg.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(ei){return"[object Array]"===Object.prototype.toString.call(ei)}),e_&&(eg.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(ei){return"object"==typeof ei&&ei.buffer&&ei.buffer.constructor===ArrayBuffer});for(var eM=function(ei,eo,ea){return function(eu){return new eJ(ei,eo,ei).update(eu)[ea]()}},ej=function(ei,eo,ea){return function(eu,ec){return new eJ(ei,eo,ec).update(eu)[ea]()}},eR=function(ei,eo,ea){return function(eo,eu,ec,ed){return eG["cshake"+ei].update(eo,eu,ec,ed)[ea]()}},eL=function(ei,eo,ea){return function(eo,eu,ec,ed){return eG["kmac"+ei].update(eo,eu,ec,ed)[ea]()}},eF=function(ei,eo,ea,eu){for(var ec=0;ec>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ea>>5,this.extraBytes=(31&ea)>>3;for(var eu=0;eu<50;++eu)this.s[eu]=0}function eQ(ei,eo,ea){eJ.call(this,ei,eo,ea)}eJ.prototype.update=function(ei){if(this.finalized)throw Error(ef);var eo,ea=typeof ei;if("string"!==ea){if("object"===ea){if(null===ei)throw Error(ed);if(e_&&ei.constructor===ArrayBuffer)ei=new Uint8Array(ei);else if(!Array.isArray(ei)&&(!e_||!ArrayBuffer.isView(ei)))throw Error(ed)}else throw Error(ed);eo=!0}for(var eu,ec,eh=this.blocks,eg=this.byteCount,em=ei.length,eb=this.blockCount,ew=0,eS=this.s;ew>2]|=ei[ew]<>2]|=ec<>2]|=(192|ec>>6)<>2]|=(128|63&ec)<=57344?(eh[eu>>2]|=(224|ec>>12)<>2]|=(128|ec>>6&63)<>2]|=(128|63&ec)<>2]|=(240|ec>>18)<>2]|=(128|ec>>12&63)<>2]|=(128|ec>>6&63)<>2]|=(128|63&ec)<=eg){for(this.start=eu-eg,this.block=eh[eb],eu=0;eu>=8,ea=255&ei;ea>0;)ec.unshift(ea),ei>>=8,ea=255&ei,++eu;return eo?ec.push(eu):ec.unshift(eu),this.update(ec),ec.length},eJ.prototype.encodeString=function(ei){var eo,ea=typeof ei;if("string"!==ea){if("object"===ea){if(null===ei)throw Error(ed);if(e_&&ei.constructor===ArrayBuffer)ei=new Uint8Array(ei);else if(!Array.isArray(ei)&&(!e_||!ArrayBuffer.isView(ei)))throw Error(ed)}else throw Error(ed);eo=!0}var eu=0,ec=ei.length;if(eo)eu=ec;else for(var ef=0;ef=57344?eu+=3:(eh=65536+((1023&eh)<<10|1023&ei.charCodeAt(++ef)),eu+=4)}return eu+=this.encode(8*eu),this.update(ei),eu},eJ.prototype.bytepad=function(ei,eo){for(var ea=this.encode(eo),eu=0;eu>2]|=this.padding[3&eo],this.lastByteIndex===this.byteCount)for(eo=1,ei[0]=ei[ea];eo>4&15]+eS[15&ei]+eS[ei>>12&15]+eS[ei>>8&15]+eS[ei>>20&15]+eS[ei>>16&15]+eS[ei>>28&15]+eS[ei>>24&15];ef%eo==0&&(eX(ea),ed=0)}return ec&&(eh+=eS[(ei=ea[ed])>>4&15]+eS[15&ei],ec>1&&(eh+=eS[ei>>12&15]+eS[ei>>8&15]),ec>2&&(eh+=eS[ei>>20&15]+eS[ei>>16&15])),eh},eJ.prototype.arrayBuffer=function(){this.finalize();var ei,eo=this.blockCount,ea=this.s,eu=this.outputBlocks,ec=this.extraBytes,ed=0,ef=0,eh=this.outputBits>>3;ei=new ArrayBuffer(ec?eu+1<<2:eh);for(var eg=new Uint32Array(ei);ef>8&255,eg[ei+2]=eo>>16&255,eg[ei+3]=eo>>24&255;eh%ea==0&&eX(eu)}return ed&&(ei=eh<<2,eo=eu[ef],eg[ei]=255&eo,ed>1&&(eg[ei+1]=eo>>8&255),ed>2&&(eg[ei+2]=eo>>16&255)),eg},eQ.prototype=new eJ,eQ.prototype.finalize=function(){return this.encode(this.outputBits,!0),eJ.prototype.finalize.call(this)};var eX=function(ei){var eo,ea,eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT,ek,eC,eI,eP,eD,eN,eM,ej,eR,eL,eF,eB,eU,eG,eV,eH,eW,eK,eY,eZ,e$,eJ,eQ,eX,e0,e3,e5,e4,e6,e8,e9,e7,ta,tu,tc,td,tf,tp,tg,tm,tv,tb,tw,t_,tS,tE,tA;for(eu=0;eu<48;eu+=2)ec=ei[0]^ei[10]^ei[20]^ei[30]^ei[40],ed=ei[1]^ei[11]^ei[21]^ei[31]^ei[41],ef=ei[2]^ei[12]^ei[22]^ei[32]^ei[42],eh=ei[3]^ei[13]^ei[23]^ei[33]^ei[43],eg=ei[4]^ei[14]^ei[24]^ei[34]^ei[44],em=ei[5]^ei[15]^ei[25]^ei[35]^ei[45],eb=ei[6]^ei[16]^ei[26]^ei[36]^ei[46],ew=ei[7]^ei[17]^ei[27]^ei[37]^ei[47],e_=ei[8]^ei[18]^ei[28]^ei[38]^ei[48],eS=ei[9]^ei[19]^ei[29]^ei[39]^ei[49],eo=e_^(ef<<1|eh>>>31),ea=eS^(eh<<1|ef>>>31),ei[0]^=eo,ei[1]^=ea,ei[10]^=eo,ei[11]^=ea,ei[20]^=eo,ei[21]^=ea,ei[30]^=eo,ei[31]^=ea,ei[40]^=eo,ei[41]^=ea,eo=ec^(eg<<1|em>>>31),ea=ed^(em<<1|eg>>>31),ei[2]^=eo,ei[3]^=ea,ei[12]^=eo,ei[13]^=ea,ei[22]^=eo,ei[23]^=ea,ei[32]^=eo,ei[33]^=ea,ei[42]^=eo,ei[43]^=ea,eo=ef^(eb<<1|ew>>>31),ea=eh^(ew<<1|eb>>>31),ei[4]^=eo,ei[5]^=ea,ei[14]^=eo,ei[15]^=ea,ei[24]^=eo,ei[25]^=ea,ei[34]^=eo,ei[35]^=ea,ei[44]^=eo,ei[45]^=ea,eo=eg^(e_<<1|eS>>>31),ea=em^(eS<<1|e_>>>31),ei[6]^=eo,ei[7]^=ea,ei[16]^=eo,ei[17]^=ea,ei[26]^=eo,ei[27]^=ea,ei[36]^=eo,ei[37]^=ea,ei[46]^=eo,ei[47]^=ea,eo=eb^(ec<<1|ed>>>31),ea=ew^(ed<<1|ec>>>31),ei[8]^=eo,ei[9]^=ea,ei[18]^=eo,ei[19]^=ea,ei[28]^=eo,ei[29]^=ea,ei[38]^=eo,ei[39]^=ea,ei[48]^=eo,ei[49]^=ea,eE=ei[0],eA=ei[1],e8=ei[11]<<4|ei[10]>>>28,e9=ei[10]<<4|ei[11]>>>28,eB=ei[20]<<3|ei[21]>>>29,eU=ei[21]<<3|ei[20]>>>29,t_=ei[31]<<9|ei[30]>>>23,tS=ei[30]<<9|ei[31]>>>23,e3=ei[40]<<18|ei[41]>>>14,e5=ei[41]<<18|ei[40]>>>14,eK=ei[2]<<1|ei[3]>>>31,eY=ei[3]<<1|ei[2]>>>31,eT=ei[13]<<12|ei[12]>>>20,ek=ei[12]<<12|ei[13]>>>20,e7=ei[22]<<10|ei[23]>>>22,ta=ei[23]<<10|ei[22]>>>22,eG=ei[33]<<13|ei[32]>>>19,eV=ei[32]<<13|ei[33]>>>19,tE=ei[42]<<2|ei[43]>>>30,tA=ei[43]<<2|ei[42]>>>30,tp=ei[5]<<30|ei[4]>>>2,tg=ei[4]<<30|ei[5]>>>2,eZ=ei[14]<<6|ei[15]>>>26,e$=ei[15]<<6|ei[14]>>>26,eC=ei[25]<<11|ei[24]>>>21,eI=ei[24]<<11|ei[25]>>>21,tu=ei[34]<<15|ei[35]>>>17,tc=ei[35]<<15|ei[34]>>>17,eH=ei[45]<<29|ei[44]>>>3,eW=ei[44]<<29|ei[45]>>>3,ej=ei[6]<<28|ei[7]>>>4,eR=ei[7]<<28|ei[6]>>>4,tm=ei[17]<<23|ei[16]>>>9,tv=ei[16]<<23|ei[17]>>>9,eJ=ei[26]<<25|ei[27]>>>7,eQ=ei[27]<<25|ei[26]>>>7,eP=ei[36]<<21|ei[37]>>>11,eD=ei[37]<<21|ei[36]>>>11,td=ei[47]<<24|ei[46]>>>8,tf=ei[46]<<24|ei[47]>>>8,e4=ei[8]<<27|ei[9]>>>5,e6=ei[9]<<27|ei[8]>>>5,eL=ei[18]<<20|ei[19]>>>12,eF=ei[19]<<20|ei[18]>>>12,tb=ei[29]<<7|ei[28]>>>25,tw=ei[28]<<7|ei[29]>>>25,eX=ei[38]<<8|ei[39]>>>24,e0=ei[39]<<8|ei[38]>>>24,eN=ei[48]<<14|ei[49]>>>18,eM=ei[49]<<14|ei[48]>>>18,ei[0]=eE^~eT&eC,ei[1]=eA^~ek&eI,ei[10]=ej^~eL&eB,ei[11]=eR^~eF&eU,ei[20]=eK^~eZ&eJ,ei[21]=eY^~e$&eQ,ei[30]=e4^~e8&e7,ei[31]=e6^~e9&ta,ei[40]=tp^~tm&tb,ei[41]=tg^~tv&tw,ei[2]=eT^~eC&eP,ei[3]=ek^~eI&eD,ei[12]=eL^~eB&eG,ei[13]=eF^~eU&eV,ei[22]=eZ^~eJ&eX,ei[23]=e$^~eQ&e0,ei[32]=e8^~e7&tu,ei[33]=e9^~ta&tc,ei[42]=tm^~tb&t_,ei[43]=tv^~tw&tS,ei[4]=eC^~eP&eN,ei[5]=eI^~eD&eM,ei[14]=eB^~eG&eH,ei[15]=eU^~eV&eW,ei[24]=eJ^~eX&e3,ei[25]=eQ^~e0&e5,ei[34]=e7^~tu&td,ei[35]=ta^~tc&tf,ei[44]=tb^~t_&tE,ei[45]=tw^~tS&tA,ei[6]=eP^~eN&eE,ei[7]=eD^~eM&eA,ei[16]=eG^~eH&ej,ei[17]=eV^~eW&eR,ei[26]=eX^~e3&eK,ei[27]=e0^~e5&eY,ei[36]=tu^~td&e4,ei[37]=tc^~tf&e6,ei[46]=t_^~tE&tp,ei[47]=tS^~tA&tg,ei[8]=eN^~eE&eT,ei[9]=eM^~eA&ek,ei[18]=eH^~ej&eL,ei[19]=eW^~eR&eF,ei[28]=e3^~eK&eZ,ei[29]=e5^~eY&e$,ei[38]=td^~e4&e8,ei[39]=tf^~e6&e9,ei[48]=tE^~tp&tm,ei[49]=tA^~tg&tv,ei[0]^=eO[eu],ei[1]^=eO[eu+1]};if(eb)ei.exports=eG;else{for(eH=0;eH-1}function rA(ei,eo){var ea=this.__data__,eu=rG(ea,ei);return eu<0?(++this.size,ea.push([ei,eo])):ea[eu][1]=eo,this}function rT(ei){var eo=-1,ea=null==ei?0:ei.length;for(this.clear();++eoem))return!1;var ew=eh.get(ei);if(ew&&eh.get(eo))return ew==eo;var e_=-1,eS=!0,eE=ea&ef?new rD:void 0;for(eh.set(ei,eo),eh.set(eo,ei);++e_-1&&ei%1==0&&ei-1&&ei%1==0&&ei<=eh}function nP(ei){var eo=typeof ei;return null!=ei&&("object"==eo||"function"==eo)}function nD(ei){return null!=ei&&"object"==typeof ei}var nN=ta?tp(ta):rZ;function nM(ei){return nT(ei)?rz(ei):r$(ei)}function nj(){return[]}function nR(){return!1}ei.exports=nC},18552:function(ei,eo,ea){var eu=ea(10852)(ea(55639),"DataView");ei.exports=eu},1989:function(ei,eo,ea){var eu=ea(51789),ec=ea(80401),ed=ea(57667),ef=ea(21327),eh=ea(81866);function eg(ei){var eo=-1,ea=null==ei?0:ei.length;for(this.clear();++eo0&&ea(eb)?eo>1?ed(eb,eo-1,ea,ef,eh):eu(eh,eb):ef||(eh[eh.length]=eb)}return eh}ei.exports=ed},28483:function(ei,eo,ea){var eu=ea(25063)();ei.exports=eu},47816:function(ei,eo,ea){var eu=ea(28483),ec=ea(3674);function ed(ei,eo){return ei&&eu(ei,eo,ec)}ei.exports=ed},97786:function(ei,eo,ea){var eu=ea(71811),ec=ea(40327);function ed(ei,eo){eo=eu(eo,ei);for(var ea=0,ed=eo.length;null!=ei&&eaec?0:ec+eo),(ea=ea>ec?ec:ea)<0&&(ea+=ec),ec=eo>ea?0:ea-eo>>>0,eo>>>=0;for(var ed=Array(ec);++eu=ec?ei:eu(ei,eo,ea)}ei.exports=ec},74318:function(ei,eo,ea){var eu=ea(11149);function ec(ei){var eo=new ei.constructor(ei.byteLength);return new eu(eo).set(new eu(ei)),eo}ei.exports=ec},64626:function(ei,eo,ea){ei=ea.nmd(ei);var eu=ea(55639),ec=eo&&!eo.nodeType&&eo,ed=ec&&ei&&!ei.nodeType&&ei,ef=ed&&ed.exports===ec?eu.Buffer:void 0,eh=ef?ef.allocUnsafe:void 0;function eg(ei,eo){if(eo)return ei.slice();var ea=ei.length,eu=eh?eh(ea):new ei.constructor(ea);return ei.copy(eu),eu}ei.exports=eg},57157:function(ei,eo,ea){var eu=ea(74318);function ec(ei,eo){var ea=eo?eu(ei.buffer):ei.buffer;return new ei.constructor(ea,ei.byteOffset,ei.byteLength)}ei.exports=ec},93147:function(ei){var eo=/\w*$/;function ea(ei){var ea=new ei.constructor(ei.source,eo.exec(ei));return ea.lastIndex=ei.lastIndex,ea}ei.exports=ea},40419:function(ei,eo,ea){var eu=ea(62705),ec=eu?eu.prototype:void 0,ed=ec?ec.valueOf:void 0;function ef(ei){return ed?Object(ed.call(ei)):{}}ei.exports=ef},77133:function(ei,eo,ea){var eu=ea(74318);function ec(ei,eo){var ea=eo?eu(ei.buffer):ei.buffer;return new ei.constructor(ea,ei.byteOffset,ei.length)}ei.exports=ec},278:function(ei){function eo(ei,eo){var ea=-1,eu=ei.length;for(eo||(eo=Array(eu));++ea1?ea[ed-1]:void 0,eh=ed>2?ea[2]:void 0;for(ef=ei.length>3&&"function"==typeof ef?(ed--,ef):void 0,eh&&ec(ea[0],ea[1],eh)&&(ef=ed<3?void 0:ef,ed=1),eo=Object(eo);++eue_))return!1;var eE=eb.get(ei),eA=eb.get(eo);if(eE&&eA)return eE==eo&&eA==ei;var eT=-1,ek=!0,eC=ea&eh?new eu:void 0;for(eb.set(ei,eo),eb.set(eo,ei);++eT-1&&ei%1==0&&ei-1}ei.exports=ec},54705:function(ei,eo,ea){var eu=ea(18470);function ec(ei,eo){var ea=this.__data__,ec=eu(ea,ei);return ec<0?(++this.size,ea.push([ei,eo])):ea[ec][1]=eo,this}ei.exports=ec},24785:function(ei,eo,ea){var eu=ea(1989),ec=ea(38407),ed=ea(57071);function ef(){this.size=0,this.__data__={hash:new eu,map:new(ed||ec),string:new eu}}ei.exports=ef},11285:function(ei,eo,ea){var eu=ea(45050);function ec(ei){var eo=eu(this,ei).delete(ei);return this.size-=eo?1:0,eo}ei.exports=ec},96e3:function(ei,eo,ea){var eu=ea(45050);function ec(ei){return eu(this,ei).get(ei)}ei.exports=ec},49916:function(ei,eo,ea){var eu=ea(45050);function ec(ei){return eu(this,ei).has(ei)}ei.exports=ec},95265:function(ei,eo,ea){var eu=ea(45050);function ec(ei,eo){var ea=eu(this,ei),ec=ea.size;return ea.set(ei,eo),this.size+=ea.size==ec?0:1,this}ei.exports=ec},68776:function(ei){function eo(ei){var eo=-1,ea=Array(ei.size);return ei.forEach(function(ei,eu){ea[++eo]=[eu,ei]}),ea}ei.exports=eo},42634:function(ei){function eo(ei,eo){return function(ea){return null!=ea&&ea[ei]===eo&&(void 0!==eo||ei in Object(ea))}}ei.exports=eo},24523:function(ei,eo,ea){var eu=ea(88306),ec=500;function ed(ei){var eo=eu(ei,function(ei){return ea.size===ec&&ea.clear(),ei}),ea=eo.cache;return eo}ei.exports=ed},94536:function(ei,eo,ea){var eu=ea(10852)(Object,"create");ei.exports=eu},86916:function(ei,eo,ea){var eu=ea(5569)(Object.keys,Object);ei.exports=eu},33498:function(ei){function eo(ei){var eo=[];if(null!=ei)for(var ea in Object(ei))eo.push(ea);return eo}ei.exports=eo},31167:function(ei,eo,ea){ei=ea.nmd(ei);var eu=ea(31957),ec=eo&&!eo.nodeType&&eo,ed=ec&&ei&&!ei.nodeType&&ei,ef=ed&&ed.exports===ec&&eu.process,eh=function(){try{var ei=ed&&ed.require&&ed.require("util").types;if(ei)return ei;return ef&&ef.binding&&ef.binding("util")}catch(ei){}}();ei.exports=eh},2333:function(ei){var eo=Object.prototype.toString;function ea(ei){return eo.call(ei)}ei.exports=ea},5569:function(ei){function eo(ei,eo){return function(ea){return ei(eo(ea))}}ei.exports=eo},45357:function(ei,eo,ea){var eu=ea(96874),ec=Math.max;function ed(ei,eo,ea){return eo=ec(void 0===eo?ei.length-1:eo,0),function(){for(var ed=arguments,ef=-1,eh=ec(ed.length-eo,0),eg=Array(eh);++ef0){if(++ec>=eo)return arguments[0]}else ec=0;return ei.apply(void 0,arguments)}}ei.exports=ec},37465:function(ei,eo,ea){var eu=ea(38407);function ec(){this.__data__=new eu,this.size=0}ei.exports=ec},63779:function(ei){function eo(ei){var eo=this.__data__,ea=eo.delete(ei);return this.size=eo.size,ea}ei.exports=eo},67599:function(ei){function eo(ei){return this.__data__.get(ei)}ei.exports=eo},44758:function(ei){function eo(ei){return this.__data__.has(ei)}ei.exports=eo},34309:function(ei,eo,ea){var eu=ea(38407),ec=ea(57071),ed=ea(83369),ef=200;function eh(ei,eo){var ea=this.__data__;if(ea instanceof eu){var eh=ea.__data__;if(!ec||eh.length=eo||ea<0||ek&&eu>=ew}function eN(){var ei=ec();if(eD(ei))return eM(ei);eS=setTimeout(eN,eP(ei))}function eM(ei){return(eS=void 0,eC&&em)?eO(ei):(em=eb=void 0,e_)}function ej(){void 0!==eS&&clearTimeout(eS),eA=0,em=eE=eb=eS=void 0}function eR(){return void 0===eS?e_:eM(ec())}function eL(){var ei=ec(),ea=eD(ei);if(em=arguments,eb=this,eE=ei,ea){if(void 0===eS)return eI(eE);if(ek)return clearTimeout(eS),eS=setTimeout(eN,eo),eO(eE)}return void 0===eS&&(eS=setTimeout(eN,eo)),e_}return eo=ed(eo)||0,eu(ea)&&(eT=!!ea.leading,ew=(ek="maxWait"in ea)?eh(ed(ea.maxWait)||0,eo):ew,eC="trailing"in ea?!!ea.trailing:eC),eL.cancel=ej,eL.flush=eR,eL}ei.exports=em},53816:function(ei,eo,ea){var eu=ea(69389),ec=ea(79833),ed=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ef=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function eh(ei){return(ei=ec(ei))&&ei.replace(ed,eu).replace(ef,"")}ei.exports=eh},77813:function(ei){function eo(ei,eo){return ei===eo||ei!=ei&&eo!=eo}ei.exports=eo},85564:function(ei,eo,ea){var eu=ea(21078);function ec(ei){return(null==ei?0:ei.length)?eu(ei,1):[]}ei.exports=ec},27361:function(ei,eo,ea){var eu=ea(97786);function ec(ei,eo,ea){var ec=null==ei?void 0:eu(ei,eo);return void 0===ec?ea:ec}ei.exports=ec},79095:function(ei,eo,ea){var eu=ea(13),ec=ea(222);function ed(ei,eo){return null!=ei&&ec(ei,eo,eu)}ei.exports=ed},6557:function(ei){function eo(ei){return ei}ei.exports=eo},35694:function(ei,eo,ea){var eu=ea(9454),ec=ea(37005),ed=Object.prototype,ef=ed.hasOwnProperty,eh=ed.propertyIsEnumerable,eg=eu(function(){return arguments}())?eu:function(ei){return ec(ei)&&ef.call(ei,"callee")&&!eh.call(ei,"callee")};ei.exports=eg},1469:function(ei){var eo=Array.isArray;ei.exports=eo},98612:function(ei,eo,ea){var eu=ea(23560),ec=ea(41780);function ed(ei){return null!=ei&&ec(ei.length)&&!eu(ei)}ei.exports=ed},29246:function(ei,eo,ea){var eu=ea(98612),ec=ea(37005);function ed(ei){return ec(ei)&&eu(ei)}ei.exports=ed},44144:function(ei,eo,ea){ei=ea.nmd(ei);var eu=ea(55639),ec=ea(95062),ed=eo&&!eo.nodeType&&eo,ef=ed&&ei&&!ei.nodeType&&ei,eh=ef&&ef.exports===ed?eu.Buffer:void 0,eg=(eh?eh.isBuffer:void 0)||ec;ei.exports=eg},23560:function(ei,eo,ea){var eu=ea(44239),ec=ea(13218),ed="[object AsyncFunction]",ef="[object Function]",eh="[object GeneratorFunction]",eg="[object Proxy]";function em(ei){if(!ec(ei))return!1;var eo=eu(ei);return eo==ef||eo==eh||eo==ed||eo==eg}ei.exports=em},41780:function(ei){var eo=9007199254740991;function ea(ei){return"number"==typeof ei&&ei>-1&&ei%1==0&&ei<=eo}ei.exports=ea},56688:function(ei,eo,ea){var eu=ea(25588),ec=ea(7518),ed=ea(31167),ef=ed&&ed.isMap,eh=ef?ec(ef):eu;ei.exports=eh},13218:function(ei){function eo(ei){var eo=typeof ei;return null!=ei&&("object"==eo||"function"==eo)}ei.exports=eo},37005:function(ei){function eo(ei){return null!=ei&&"object"==typeof ei}ei.exports=eo},68630:function(ei,eo,ea){var eu=ea(44239),ec=ea(85924),ed=ea(37005),ef="[object Object]",eh=Object.prototype,eg=Function.prototype.toString,em=eh.hasOwnProperty,eb=eg.call(Object);function ew(ei){if(!ed(ei)||eu(ei)!=ef)return!1;var eo=ec(ei);if(null===eo)return!0;var ea=em.call(eo,"constructor")&&eo.constructor;return"function"==typeof ea&&ea instanceof ea&&eg.call(ea)==eb}ei.exports=ew},72928:function(ei,eo,ea){var eu=ea(29221),ec=ea(7518),ed=ea(31167),ef=ed&&ed.isSet,eh=ef?ec(ef):eu;ei.exports=eh},33448:function(ei,eo,ea){var eu=ea(44239),ec=ea(37005),ed="[object Symbol]";function ef(ei){return"symbol"==typeof ei||ec(ei)&&eu(ei)==ed}ei.exports=ef},36719:function(ei,eo,ea){var eu=ea(38749),ec=ea(7518),ed=ea(31167),ef=ed&&ed.isTypedArray,eh=ef?ec(ef):eu;ei.exports=eh},3674:function(ei,eo,ea){var eu=ea(14636),ec=ea(280),ed=ea(98612);function ef(ei){return ed(ei)?eu(ei):ec(ei)}ei.exports=ef},81704:function(ei,eo,ea){var eu=ea(14636),ec=ea(10313),ed=ea(98612);function ef(ei){return ed(ei)?eu(ei,!0):ec(ei)}ei.exports=ef},10928:function(ei){function eo(ei){var eo=null==ei?0:ei.length;return eo?ei[eo-1]:void 0}ei.exports=eo},96486:function(ei,eo,ea){var eu;ei=ea.nmd(ei),(function(){var ec,ed="4.17.21",ef=200,eh="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",eg="Expected a function",em="Invalid `variable` option passed into `_.template`",eb="__lodash_hash_undefined__",ew=500,e_="__lodash_placeholder__",eS=1,eE=2,eA=4,eT=1,ek=2,eC=1,eO=2,eI=4,eP=8,eD=16,eN=32,eM=64,ej=128,eR=256,eL=512,eF=30,eB="...",eU=800,eG=16,eV=1,eH=2,eW=3,eK=1/0,eY=9007199254740991,eZ=17976931348623157e292,e$=0/0,eJ=4294967295,eQ=4294967294,eX=2147483647,e0=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],e3="[object Arguments]",e5="[object Array]",e4="[object AsyncFunction]",e6="[object Boolean]",e8="[object Date]",e9="[object DOMException]",e7="[object Error]",ta="[object Function]",tu="[object GeneratorFunction]",tc="[object Map]",td="[object Number]",tf="[object Null]",tp="[object Object]",tg="[object Promise]",tm="[object Proxy]",tv="[object RegExp]",tb="[object Set]",tw="[object String]",t_="[object Symbol]",tS="[object Undefined]",tE="[object WeakMap]",tA="[object WeakSet]",tT="[object ArrayBuffer]",tk="[object DataView]",tC="[object Float32Array]",tO="[object Float64Array]",tI="[object Int8Array]",tP="[object Int16Array]",tD="[object Int32Array]",tN="[object Uint8Array]",tM="[object Uint8ClampedArray]",tj="[object Uint16Array]",tR="[object Uint32Array]",tL=/\b__p \+= '';/g,tF=/\b(__p \+=) '' \+/g,tB=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tU=/&(?:amp|lt|gt|quot|#39);/g,tG=/[&<>"']/g,tV=RegExp(tU.source),tq=RegExp(tG.source),tH=/<%-([\s\S]+?)%>/g,tW=/<%([\s\S]+?)%>/g,tK=/<%=([\s\S]+?)%>/g,tY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tZ=/^\w*$/,t$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tJ=/[\\^$.*+?()[\]{}|]/g,tQ=RegExp(tJ.source),tX=/^\s+/,ra=/\s/,ru=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rc=/\{\n\/\* \[wrapped with (.+)\] \*/,rf=/,? & /,rh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rp=/[()=,{}\[\]\/\s]/,ry=/\\(\\)?/g,rw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,r_=/\w*$/,rS=/^[-+]0x[0-9a-f]+$/i,rE=/^0b[01]+$/i,rA=/^\[object .+?Constructor\]$/,rT=/^0o[0-7]+$/i,rk=/^(?:0|[1-9]\d*)$/,rC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rO=/($^)/,rI=/['\n\r\u2028\u2029\\]/g,rP="\ud800-\udfff",rD="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",rN="\\u2700-\\u27bf",rM="a-z\\xdf-\\xf6\\xf8-\\xff",rj="A-Z\\xc0-\\xd6\\xd8-\\xde",rR="\\ufe0e\\ufe0f",rL="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rF="['’]",rB="["+rP+"]",rU="["+rL+"]",rz="["+rD+"]",rG="\\d+",rV="["+rN+"]",rq="["+rM+"]",rH="[^"+rP+rL+rG+rN+rM+rj+"]",rW="\ud83c[\udffb-\udfff]",rK="[^"+rP+"]",rY="(?:\ud83c[\udde6-\uddff]){2}",rZ="[\ud800-\udbff][\udc00-\udfff]",r$="["+rj+"]",rJ="\\u200d",rQ="(?:"+rq+"|"+rH+")",rX="(?:"+r$+"|"+rH+")",ni="(?:"+rF+"(?:d|ll|m|re|s|t|ve))?",no="(?:"+rF+"(?:D|LL|M|RE|S|T|VE))?",nu="(?:"+rz+"|"+rW+")?",nd="["+rR+"]?",nf="(?:"+rJ+"(?:"+[rK,rY,rZ].join("|")+")"+nd+nu+")*",nh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",np="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ng=nd+nu+nf,ny="(?:"+[rV,rY,rZ].join("|")+")"+ng,nw="(?:"+[rK+rz+"?",rz,rY,rZ,rB].join("|")+")",n_=RegExp(rF,"g"),nS=RegExp(rz,"g"),nE=RegExp(rW+"(?="+rW+")|"+nw+ng,"g"),nx=RegExp([r$+"?"+rq+"+"+ni+"(?="+[rU,r$,"$"].join("|")+")",rX+"+"+no+"(?="+[rU,r$+rQ,"$"].join("|")+")",r$+"?"+rQ+"+"+ni,r$+"+"+no,np,nh,rG,ny].join("|"),"g"),nA=RegExp("["+rJ+rP+rD+rR+"]"),nT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nC=-1,nO={};nO[tC]=nO[tO]=nO[tI]=nO[tP]=nO[tD]=nO[tN]=nO[tM]=nO[tj]=nO[tR]=!0,nO[e3]=nO[e5]=nO[tT]=nO[e6]=nO[tk]=nO[e8]=nO[e7]=nO[ta]=nO[tc]=nO[td]=nO[tp]=nO[tv]=nO[tb]=nO[tw]=nO[tE]=!1;var nI={};nI[e3]=nI[e5]=nI[tT]=nI[tk]=nI[e6]=nI[e8]=nI[tC]=nI[tO]=nI[tI]=nI[tP]=nI[tD]=nI[tc]=nI[td]=nI[tp]=nI[tv]=nI[tb]=nI[tw]=nI[t_]=nI[tN]=nI[tM]=nI[tj]=nI[tR]=!0,nI[e7]=nI[ta]=nI[tE]=!1;var nP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nD={"&":"&","<":"<",">":">",'"':""","'":"'"},nN={"&":"&","<":"<",">":">",""":'"',"'":"'"},nM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nj=parseFloat,nR=parseInt,nL="object"==typeof ea.g&&ea.g&&ea.g.Object===Object&&ea.g,nF="object"==typeof self&&self&&self.Object===Object&&self,nB=nL||nF||Function("return this")(),nU=eo&&!eo.nodeType&&eo,nz=nU&&ei&&!ei.nodeType&&ei,nG=nz&&nz.exports===nU,nV=nG&&nL.process,nq=function(){try{var ei=nz&&nz.require&&nz.require("util").types;if(ei)return ei;return nV&&nV.binding&&nV.binding("util")}catch(ei){}}(),nH=nq&&nq.isArrayBuffer,nW=nq&&nq.isDate,nK=nq&&nq.isMap,nY=nq&&nq.isRegExp,nZ=nq&&nq.isSet,n$=nq&&nq.isTypedArray;function nJ(ei,eo,ea){switch(ea.length){case 0:return ei.call(eo);case 1:return ei.call(eo,ea[0]);case 2:return ei.call(eo,ea[0],ea[1]);case 3:return ei.call(eo,ea[0],ea[1],ea[2])}return ei.apply(eo,ea)}function nQ(ei,eo,ea,eu){for(var ec=-1,ed=null==ei?0:ei.length;++ec-1}function n6(ei,eo,ea){for(var eu=-1,ec=null==ei?0:ei.length;++eu-1;);return ea}function iR(ei,eo){for(var ea=ei.length;ea--&&iv(eo,ei[ea],0)>-1;);return ea}function iL(ei,eo){for(var ea=ei.length,eu=0;ea--;)ei[ea]===eo&&++eu;return eu}var iF=iE(nP),iB=iE(nD);function iU(ei){return"\\"+nM[ei]}function iG(ei,eo){return null==ei?ec:ei[eo]}function iV(ei){return nA.test(ei)}function iq(ei){return nT.test(ei)}function iH(ei){for(var eo,ea=[];!(eo=ei.next()).done;)ea.push(eo.value);return ea}function iW(ei){var eo=-1,ea=Array(ei.size);return ei.forEach(function(ei,eu){ea[++eo]=[eu,ei]}),ea}function iK(ei,eo){return function(ea){return ei(eo(ea))}}function iZ(ei,eo){for(var ea=-1,eu=ei.length,ec=0,ed=[];++ea-1}function oV(ei,eo){var ea=this.__data__,eu=sh(ea,ei);return eu<0?(++this.size,ea.push([ei,eo])):ea[eu][1]=eo,this}function oq(ei){var eo=-1,ea=null==ei?0:ei.length;for(this.clear();++eo=eo?ei:eo)),ei}function sA(ei,eo,ea,eu,ed,ef){var eh,eg=eo&eS,em=eo&eE,eb=eo&eA;if(ea&&(eh=ed?ea(ei,eu,ed,ef):ea(ei)),ec!==eh)return eh;if(!hv(ei))return ei;var ew=f4(ei);if(ew){if(eh=uI(ei),!eg)return lD(ei,eh)}else{var e_=uT(ei),eT=e_==ta||e_==tu;if(hr(ei))return lS(ei,eg);if(e_==tp||e_==e3||eT&&!ed){if(eh=em||eT?{}:uP(ei),!eg)return em?lj(ei,sv(eh,ei)):lM(ei,sm(eh,ei))}else{if(!nI[e_])return ed?ei:{};eh=uD(ei,e_,eg)}}ef||(ef=new o3);var ek=ef.get(ei);if(ek)return ek;ef.set(ei,eh),hP(ei)?ei.forEach(function(eu){eh.add(sA(eu,eo,ea,eu,ei,ef))}):hw(ei)&&ei.forEach(function(eu,ec){eh.set(ec,sA(eu,eo,ea,ec,ei,ef))});var eC=eb?em?ug:uh:em?pT:pA,eO=ew?ec:eC(ei);return nX(eO||ei,function(eu,ec){eO&&(eu=ei[ec=eu]),sf(eh,ec,sA(eu,eo,ea,ec,ei,ef))}),eh}function sT(ei){var eo=pA(ei);return function(ea){return sk(ea,ei,eo)}}function sk(ei,eo,ea){var eu=ea.length;if(null==ei)return!eu;for(ei=rD(ei);eu--;){var ed=ea[eu],ef=eo[ed],eh=ei[ed];if(ec===eh&&!(ed in ei)||!ef(eh))return!1}return!0}function sC(ei,eo,ea){if("function"!=typeof ei)throw new rj(eg);return u3(function(){ei.apply(ec,ea)},eo)}function sO(ei,eo,ea,eu){var ec=-1,ed=n4,eh=!0,eg=ei.length,em=[],eb=eo.length;if(!eg)return em;ea&&(eo=n8(eo,iD(ea))),eu?(ed=n6,eh=!1):eo.length>=ef&&(ed=iM,eh=!1,eo=new oJ(eo));e:for(;++eced?0:ed+ea),(eu=ec===eu||eu>ed?ed:hG(eu))<0&&(eu+=ed),eu=ea>eu?0:hV(eu);ea0&&ea(eh)?eo>1?sR(eh,eo-1,ea,eu,ec):n9(ec,eh):eu||(ec[ec.length]=eh)}return ec}var sL=lB(),sF=lB(!0);function sB(ei,eo){return ei&&sL(ei,eo,pA)}function sU(ei,eo){return ei&&sF(ei,eo,pA)}function sG(ei,eo){return n5(eo,function(eo){return hp(ei[eo])})}function sV(ei,eo){eo=lv(eo,ei);for(var ea=0,eu=eo.length;null!=ei&&eaeo}function sK(ei,eo){return null!=ei&&rz.call(ei,eo)}function sY(ei,eo){return null!=ei&&eo in rD(ei)}function sZ(ei,eo,ea){return ei>=nM(eo,ea)&&ei=120&&e_.length>=120)?new oJ(eg&&e_):ec}e_=ei[0];var eS=-1,eE=em[0];e:for(;++eS-1;)eh!==ei&&no.call(eh,eg,1),no.call(ei,eg,1);return ei}function aM(ei,eo){for(var ea=ei?eo.length:0,eu=ea-1;ea--;){var ec=eo[ea];if(ea==eu||ec!==ed){var ed=ec;uj(ec)?no.call(ei,ec,1):lc(ei,ec)}}return ei}function aj(ei,eo){return ei+nE(nU()*(eo-ei+1))}function aR(ei,eo,eu,ec){for(var ed=-1,ef=nN(nw((eo-ei)/(eu||1)),0),eh=ea(ef);ef--;)eh[ec?ef:++ed]=ei,ei+=eu;return eh}function aL(ei,eo){var ea="";if(!ei||eo<1||eo>eY)return ea;do eo%2&&(ea+=ei),(eo=nE(eo/2))&&(ei+=ei);while(eo);return ea}function aF(ei,eo){return u5(uZ(ei,eo,gR),ei+"")}function aU(ei){return si(pH(ei))}function aG(ei,eo){var ea=pH(ei);return u9(ea,sE(eo,0,ea.length))}function aV(ei,eo,ea,eu){if(!hv(ei))return ei;eo=lv(eo,ei);for(var ed=-1,ef=eo.length,eh=ef-1,eg=ei;null!=eg&&++eded?0:ed+eo),(eu=eu>ed?ed:eu)<0&&(eu+=ed),ed=eo>eu?0:eu-eo>>>0,eo>>>=0;for(var ef=ea(ed);++ec>>1,ef=ei[ed];null!==ef&&!hN(ef)&&(ea?ef<=eo:ef=ef){var eb=eo?null:l9(ei);if(eb)return i$(eb);eh=!1,ec=iM,em=new oJ}else em=eo?[]:eg;e:for(;++eu=eu?ei:aK(ei,eo,ea)}var l_=np||function(ei){return nB.clearTimeout(ei)};function lS(ei,eo){if(eo)return ei.slice();var ea=ei.length,eu=rJ?rJ(ea):new ei.constructor(ea);return ei.copy(eu),eu}function lE(ei){var eo=new ei.constructor(ei.byteLength);return new r$(eo).set(new r$(ei)),eo}function lx(ei,eo){var ea=eo?lE(ei.buffer):ei.buffer;return new ei.constructor(ea,ei.byteOffset,ei.byteLength)}function lA(ei){var eo=new ei.constructor(ei.source,r_.exec(ei));return eo.lastIndex=ei.lastIndex,eo}function lT(ei){return ov?rD(ov.call(ei)):{}}function lk(ei,eo){var ea=eo?lE(ei.buffer):ei.buffer;return new ei.constructor(ea,ei.byteOffset,ei.length)}function lC(ei,eo){if(ei!==eo){var ea=ec!==ei,eu=null===ei,ed=ei==ei,ef=hN(ei),eh=ec!==eo,eg=null===eo,em=eo==eo,eb=hN(eo);if(!eg&&!eb&&!ef&&ei>eo||ef&&eh&&em&&!eg&&!eb||eu&&eh&&em||!ea&&em||!ed)return 1;if(!eu&&!ef&&!eb&&ei=eh)return eg;return eg*("desc"==ea[eu]?-1:1)}}return ei.index-eo.index}function lI(ei,eo,eu,ec){for(var ed=-1,ef=ei.length,eh=eu.length,eg=-1,em=eo.length,eb=nN(ef-eh,0),ew=ea(em+eb),e_=!ec;++eg1?ea[ed-1]:ec,eh=ed>2?ea[2]:ec;for(ef=ei.length>3&&"function"==typeof ef?(ed--,ef):ec,eh&&uR(ea[0],ea[1],eh)&&(ef=ed<3?ec:ef,ed=1),eo=rD(eo);++eu-1?ed[ef?eo[eh]:eh]:ec}}function lW(ei){return uf(function(eo){var ea=eo.length,eu=ea,ed=oA.prototype.thru;for(ei&&eo.reverse();eu--;){var ef=eo[eu];if("function"!=typeof ef)throw new rj(eg);if(ed&&!eh&&"wrapper"==uy(ef))var eh=new oA([],!0)}for(eu=eh?eu:ea;++eu1&&eC.reverse(),e_&&ebeg))return!1;var eb=ef.get(ei),ew=ef.get(eo);if(eb&&ew)return eb==eo&&ew==ei;var e_=-1,eS=!0,eE=ea&ek?new oJ:ec;for(ef.set(ei,eo),ef.set(eo,ei);++e_1?"& ":"")+eo[eu],eo=eo.join(ea>2?", ":" "),ei.replace(ru,"{\n/* [wrapped with "+eo+"] */\n")}function uM(ei){return f4(ei)||f5(ei)||!!(nu&&ei&&ei[nu])}function uj(ei,eo){var ea=typeof ei;return!!(eo=null==eo?eY:eo)&&("number"==ea||"symbol"!=ea&&rk.test(ei))&&ei>-1&&ei%1==0&&ei0){if(++eo>=eU)return arguments[0]}else eo=0;return ei.apply(ec,arguments)}}function u9(ei,eo){var ea=-1,eu=ei.length,ed=eu-1;for(eo=ec===eo?eu:eo;++ea1?ei[eo-1]:ec;return ea="function"==typeof ea?(ei.pop(),ea):ec,d_(ei,ea)});function dI(ei){var eo=o_(ei);return eo.__chain__=!0,eo}function dP(ei,eo){return eo(ei),ei}function dD(ei,eo){return eo(ei)}var dN=uf(function(ei){var eo=ei.length,ea=eo?ei[0]:0,eu=this.__wrapped__,ed=function(eo){return sS(eo,ei)};return!(eo>1)&&!this.__actions__.length&&eu instanceof oT&&uj(ea)?((eu=eu.slice(ea,+ea+(eo?1:0))).__actions__.push({func:dD,args:[ed],thisArg:ec}),new oA(eu,this.__chain__).thru(function(ei){return eo&&!ei.length&&ei.push(ec),ei})):this.thru(ed)});function dM(){return dI(this)}function dj(){return new oA(this.value(),this.__chain__)}function dR(){ec===this.__values__&&(this.__values__=hU(this.value()));var ei=this.__index__>=this.__values__.length,eo=ei?ec:this.__values__[this.__index__++];return{done:ei,value:eo}}function dL(){return this}function dF(ei){for(var eo,ea=this;ea instanceof oE;){var eu=ca(ea);eu.__index__=0,eu.__values__=ec,eo?ed.__wrapped__=eu:eo=eu;var ed=eu;ea=ea.__wrapped__}return ed.__wrapped__=ei,eo}function dB(){var ei=this.__wrapped__;if(ei instanceof oT){var eo=ei;return this.__actions__.length&&(eo=new oT(this)),(eo=eo.reverse()).__actions__.push({func:dD,args:[cH],thisArg:ec}),new oA(eo,this.__chain__)}return this.thru(cH)}function dU(){return lh(this.__wrapped__,this.__actions__)}var dz=lR(function(ei,eo,ea){rz.call(ei,ea)?++ei[ea]:sb(ei,ea,1)});function dG(ei,eo,ea){var eu=f4(ei)?n3:sD;return ea&&uR(ei,eo,ea)&&(eo=ec),eu(ei,ub(eo,3))}function dV(ei,eo){return(f4(ei)?n5:sj)(ei,ub(eo,3))}var dq=lH(cS),dH=lH(cE);function dW(ei,eo){return sR(fo(ei,eo),1)}function dK(ei,eo){return sR(fo(ei,eo),eK)}function dY(ei,eo,ea){return ea=ec===ea?1:hG(ea),sR(fo(ei,eo),ea)}function dZ(ei,eo){return(f4(ei)?nX:sI)(ei,ub(eo,3))}function d$(ei,eo){return(f4(ei)?n0:sP)(ei,ub(eo,3))}var dJ=lR(function(ei,eo,ea){rz.call(ei,ea)?ei[ea].push(eo):sb(ei,ea,[eo])});function dQ(ei,eo,ea,eu){ei=f8(ei)?ei:pH(ei),ea=ea&&!eu?hG(ea):0;var ec=ei.length;return ea<0&&(ea=nN(ec+ea,0)),hD(ei)?ea<=ec&&ei.indexOf(eo,ea)>-1:!!ec&&iv(ei,eo,ea)>-1}var dX=aF(function(ei,eo,eu){var ec=-1,ed="function"==typeof eo,ef=f8(ei)?ea(ei.length):[];return sI(ei,function(ei){ef[++ec]=ed?nJ(eo,ei,eu):sQ(ei,eo,eu)}),ef}),fi=lR(function(ei,eo,ea){sb(ei,ea,eo)});function fo(ei,eo){return(f4(ei)?n8:ab)(ei,ub(eo,3))}function fa(ei,eo,ea,eu){return null==ei?[]:(f4(eo)||(eo=null==eo?[]:[eo]),f4(ea=eu?ec:ea)||(ea=null==ea?[]:[ea]),aO(ei,eo,ea))}var fl=lR(function(ei,eo,ea){ei[ea?0:1].push(eo)},function(){return[[],[]]});function fu(ei,eo,ea){var eu=f4(ei)?n7:iA,ec=arguments.length<3;return eu(ei,ub(eo,4),ea,ec,sI)}function fh(ei,eo,ea){var eu=f4(ei)?ia:iA,ec=arguments.length<3;return eu(ei,ub(eo,4),ea,ec,sP)}function fp(ei,eo){return(f4(ei)?n5:sj)(ei,fR(ub(eo,3)))}function fg(ei){return(f4(ei)?si:aU)(ei)}function fm(ei,eo,ea){return eo=(ea?uR(ei,eo,ea):ec===eo)?1:hG(eo),(f4(ei)?so:aG)(ei,eo)}function fy(ei){return(f4(ei)?sa:aW)(ei)}function fb(ei){if(null==ei)return 0;if(f8(ei))return hD(ei)?i6(ei):ei.length;var eo=uT(ei);return eo==tc||eo==tb?ei.size:ag(ei).length}function fw(ei,eo,ea){var eu=f4(ei)?iu:aY;return ea&&uR(ei,eo,ea)&&(eo=ec),eu(ei,ub(eo,3))}var f_=aF(function(ei,eo){if(null==ei)return[];var ea=eo.length;return ea>1&&uR(ei,eo[0],eo[1])?eo=[]:ea>2&&uR(eo[0],eo[1],eo[2])&&(eo=[eo[0]]),aO(ei,sR(eo,1),[])}),fS=ng||function(){return nB.Date.now()};function fE(ei,eo){if("function"!=typeof eo)throw new rj(eg);return ei=hG(ei),function(){if(--ei<1)return eo.apply(this,arguments)}}function fx(ei,eo,ea){return eo=ea?ec:eo,eo=ei&&null==eo?ei.length:eo,ur(ei,ej,ec,ec,ec,ec,eo)}function fA(ei,eo){var ea;if("function"!=typeof eo)throw new rj(eg);return ei=hG(ei),function(){return--ei>0&&(ea=eo.apply(this,arguments)),ei<=1&&(eo=ec),ea}}var fT=aF(function(ei,eo,ea){var eu=eC;if(ea.length){var ec=iZ(ea,uv(fT));eu|=eN}return ur(ei,eu,eo,ea,ec)}),fC=aF(function(ei,eo,ea){var eu=eC|eO;if(ea.length){var ec=iZ(ea,uv(fC));eu|=eN}return ur(eo,eu,ei,ea,ec)});function fO(ei,eo,ea){eo=ea?ec:eo;var eu=ur(ei,eP,ec,ec,ec,ec,ec,eo);return eu.placeholder=fO.placeholder,eu}function fI(ei,eo,ea){eo=ea?ec:eo;var eu=ur(ei,eD,ec,ec,ec,ec,ec,eo);return eu.placeholder=fI.placeholder,eu}function fP(ei,eo,ea){var eu,ed,ef,eh,em,eb,ew=0,e_=!1,eS=!1,eE=!0;if("function"!=typeof ei)throw new rj(eg);function eA(eo){var ea=eu,ef=ed;return eu=ed=ec,ew=eo,eh=ei.apply(ef,ea)}function eT(ei){return ew=ei,em=u3(eO,eo),e_?eA(ei):eh}function ek(ei){var ea=ei-eb,eu=ei-ew,ec=eo-ea;return eS?nM(ec,ef-eu):ec}function eC(ei){var ea=ei-eb,eu=ei-ew;return ec===eb||ea>=eo||ea<0||eS&&eu>=ef}function eO(){var ei=fS();if(eC(ei))return eI(ei);em=u3(eO,ek(ei))}function eI(ei){return(em=ec,eE&&eu)?eA(ei):(eu=ed=ec,eh)}function eP(){ec!==em&&l_(em),ew=0,eu=eb=ed=em=ec}function eD(){return ec===em?eh:eI(fS())}function eN(){var ei=fS(),ea=eC(ei);if(eu=arguments,ed=this,eb=ei,ea){if(ec===em)return eT(eb);if(eS)return l_(em),em=u3(eO,eo),eA(eb)}return ec===em&&(em=u3(eO,eo)),eh}return eo=hq(eo)||0,hv(ea)&&(e_=!!ea.leading,ef=(eS="maxWait"in ea)?nN(hq(ea.maxWait)||0,eo):ef,eE="trailing"in ea?!!ea.trailing:eE),eN.cancel=eP,eN.flush=eD,eN}var fD=aF(function(ei,eo){return sC(ei,1,eo)}),fN=aF(function(ei,eo,ea){return sC(ei,hq(eo)||0,ea)});function fM(ei){return ur(ei,eL)}function fj(ei,eo){if("function"!=typeof ei||null!=eo&&"function"!=typeof eo)throw new rj(eg);var ea=function(){var eu=arguments,ec=eo?eo.apply(this,eu):eu[0],ed=ea.cache;if(ed.has(ec))return ed.get(ec);var ef=ei.apply(this,eu);return ea.cache=ed.set(ec,ef)||ed,ef};return ea.cache=new(fj.Cache||oq),ea}function fR(ei){if("function"!=typeof ei)throw new rj(eg);return function(){var eo=arguments;switch(eo.length){case 0:return!ei.call(this);case 1:return!ei.call(this,eo[0]);case 2:return!ei.call(this,eo[0],eo[1]);case 3:return!ei.call(this,eo[0],eo[1],eo[2])}return!ei.apply(this,eo)}}function fL(ei){return fA(2,ei)}fj.Cache=oq;var fF=lb(function(ei,eo){var ea=(eo=1==eo.length&&f4(eo[0])?n8(eo[0],iD(ub())):n8(sR(eo,1),iD(ub()))).length;return aF(function(eu){for(var ec=-1,ed=nM(eu.length,ea);++ec=eo}),f5=sX(function(){return arguments}())?sX:function(ei){return hb(ei)&&rz.call(ei,"callee")&&!ni.call(ei,"callee")},f4=ea.isArray,f6=nH?iD(nH):s5;function f8(ei){return null!=ei&&hy(ei.length)&&!hp(ei)}function f9(ei){return hb(ei)&&f8(ei)}function f7(ei){return!0===ei||!1===ei||hb(ei)&&sH(ei)==e6}var hr=nA||g0,hn=nW?iD(nW):s4;function ho(ei){return hb(ei)&&1===ei.nodeType&&!hC(ei)}function ha(ei){if(null==ei)return!0;if(f8(ei)&&(f4(ei)||"string"==typeof ei||"function"==typeof ei.splice||hr(ei)||hM(ei)||f5(ei)))return!ei.length;var eo=uT(ei);if(eo==tc||eo==tb)return!ei.size;if(uG(ei))return!ag(ei).length;for(var ea in ei)if(rz.call(ei,ea))return!1;return!0}function hu(ei,eo){return s6(ei,eo)}function hc(ei,eo,ea){var eu=(ea="function"==typeof ea?ea:ec)?ea(ei,eo):ec;return ec===eu?s6(ei,eo,ec,ea):!!eu}function hd(ei){if(!hb(ei))return!1;var eo=sH(ei);return eo==e7||eo==e9||"string"==typeof ei.message&&"string"==typeof ei.name&&!hC(ei)}function hf(ei){return"number"==typeof ei&&nT(ei)}function hp(ei){if(!hv(ei))return!1;var eo=sH(ei);return eo==ta||eo==tu||eo==e4||eo==tm}function hg(ei){return"number"==typeof ei&&ei==hG(ei)}function hy(ei){return"number"==typeof ei&&ei>-1&&ei%1==0&&ei<=eY}function hv(ei){var eo=typeof ei;return null!=ei&&("object"==eo||"function"==eo)}function hb(ei){return null!=ei&&"object"==typeof ei}var hw=nK?iD(nK):s9;function h_(ei,eo){return ei===eo||s7(ei,eo,u_(eo))}function hS(ei,eo,ea){return ea="function"==typeof ea?ea:ec,s7(ei,eo,u_(eo),ea)}function hE(ei){return hk(ei)&&ei!=+ei}function hx(ei){if(uz(ei))throw new ra(eh);return ao(ei)}function hA(ei){return null===ei}function hT(ei){return null==ei}function hk(ei){return"number"==typeof ei||hb(ei)&&sH(ei)==td}function hC(ei){if(!hb(ei)||sH(ei)!=tp)return!1;var eo=rQ(ei);if(null===eo)return!0;var ea=rz.call(eo,"constructor")&&eo.constructor;return"function"==typeof ea&&ea instanceof ea&&rU.call(ea)==rH}var hO=nY?iD(nY):aa;function hI(ei){return hg(ei)&&ei>=-eY&&ei<=eY}var hP=nZ?iD(nZ):au;function hD(ei){return"string"==typeof ei||!f4(ei)&&hb(ei)&&sH(ei)==tw}function hN(ei){return"symbol"==typeof ei||hb(ei)&&sH(ei)==t_}var hM=n$?iD(n$):ac;function hj(ei){return ec===ei}function hR(ei){return hb(ei)&&uT(ei)==tE}function hL(ei){return hb(ei)&&sH(ei)==tA}var hF=l0(av),hB=l0(function(ei,eo){return ei<=eo});function hU(ei){if(!ei)return[];if(f8(ei))return hD(ei)?i8(ei):lD(ei);if(nd&&ei[nd])return iH(ei[nd]());var eo=uT(ei);return(eo==tc?iW:eo==tb?i$:pH)(ei)}function hz(ei){return ei?(ei=hq(ei))===eK||ei===-eK?(ei<0?-1:1)*eZ:ei==ei?ei:0:0===ei?ei:0}function hG(ei){var eo=hz(ei),ea=eo%1;return eo==eo?ea?eo-ea:eo:0}function hV(ei){return ei?sE(hG(ei),0,eJ):0}function hq(ei){if("number"==typeof ei)return ei;if(hN(ei))return e$;if(hv(ei)){var eo="function"==typeof ei.valueOf?ei.valueOf():ei;ei=hv(eo)?eo+"":eo}if("string"!=typeof ei)return 0===ei?ei:+ei;ei=iP(ei);var ea=rE.test(ei);return ea||rT.test(ei)?nR(ei.slice(2),ea?2:8):rS.test(ei)?e$:+ei}function hH(ei){return lN(ei,pT(ei))}function hW(ei){return ei?sE(hG(ei),-eY,eY):0===ei?ei:0}function hK(ei){return null==ei?"":la(ei)}var hY=lL(function(ei,eo){if(uG(eo)||f8(eo)){lN(eo,pA(eo),ei);return}for(var ea in eo)rz.call(eo,ea)&&sf(ei,ea,eo[ea])}),hZ=lL(function(ei,eo){lN(eo,pT(eo),ei)}),h$=lL(function(ei,eo,ea,eu){lN(eo,pT(eo),ei,eu)}),hJ=lL(function(ei,eo,ea,eu){lN(eo,pA(eo),ei,eu)}),hQ=uf(sS);function hX(ei,eo){var ea=oS(ei);return null==eo?ea:sm(ea,eo)}var pn=aF(function(ei,eo){ei=rD(ei);var ea=-1,eu=eo.length,ed=eu>2?eo[2]:ec;for(ed&&uR(eo[0],eo[1],ed)&&(eu=1);++ea1),eo}),lN(ei,ug(ei),ea),eu&&(ea=sA(ea,eS|eE|eA,ul));for(var ec=eo.length;ec--;)lc(ea,eo[ec]);return ea});function pD(ei,eo){return pM(ei,fR(ub(eo)))}var pN=uf(function(ei,eo){return null==ei?{}:aI(ei,eo)});function pM(ei,eo){if(null==ei)return{};var ea=n8(ug(ei),function(ei){return[ei]});return eo=ub(eo),aP(ei,ea,function(ei,ea){return eo(ei,ea[0])})}function pj(ei,eo,ea){eo=lv(eo,ei);var eu=-1,ed=eo.length;for(ed||(ed=1,ei=ec);++eueo){var eu=ei;ei=eo,eo=eu}if(ea||ei%1||eo%1){var ed=nU();return nM(ei+ed*(eo-ei+nj("1e-"+((ed+"").length-1))),eo)}return aj(ei,eo)}var p$=lG(function(ei,eo,ea){return eo=eo.toLowerCase(),ei+(ea?pJ(eo):eo)});function pJ(ei){return gT(hK(ei).toLowerCase())}function pQ(ei){return(ei=hK(ei))&&ei.replace(rC,iF).replace(nS,"")}function pX(ei,eo,ea){ei=hK(ei),eo=la(eo);var eu=ei.length,ed=ea=ec===ea?eu:sE(hG(ea),0,eu);return(ea-=eo.length)>=0&&ei.slice(ea,ed)==eo}function p6(ei){return(ei=hK(ei))&&tq.test(ei)?ei.replace(tG,iB):ei}function p8(ei){return(ei=hK(ei))&&tQ.test(ei)?ei.replace(tJ,"\\$&"):ei}var p9=lG(function(ei,eo,ea){return ei+(ea?"-":"")+eo.toLowerCase()}),p7=lG(function(ei,eo,ea){return ei+(ea?" ":"")+eo.toLowerCase()}),gn=lz("toLowerCase");function gi(ei,eo,ea){ei=hK(ei);var eu=(eo=hG(eo))?i6(ei):0;if(!eo||eu>=eo)return ei;var ec=(eo-eu)/2;return lJ(nE(ec),ea)+ei+lJ(nw(ec),ea)}function go(ei,eo,ea){ei=hK(ei);var eu=(eo=hG(eo))?i6(ei):0;return eo&&eu>>0)?(ei=hK(ei))&&("string"==typeof eo||null!=eo&&!hO(eo))&&!(eo=la(eo))&&iV(ei)?lw(i8(ei),0,ea):ei.split(eo,ea):[]}var gp=lG(function(ei,eo,ea){return ei+(ea?" ":"")+gT(eo)});function gm(ei,eo,ea){return ei=hK(ei),ea=null==ea?0:sE(hG(ea),0,ei.length),eo=la(eo),ei.slice(ea,ea+eo.length)==eo}function gy(ei,eo,ea){var eu=o_.templateSettings;ea&&uR(ei,eo,ea)&&(eo=ec),ei=hK(ei),eo=h$({},eo,eu,ui);var ed,ef,eh=h$({},eo.imports,eu.imports,ui),eg=pA(eh),eb=iN(eh,eg),ew=0,e_=eo.interpolate||rO,eS="__p += '",eE=rN((eo.escape||rO).source+"|"+e_.source+"|"+(e_===tK?rw:rO).source+"|"+(eo.evaluate||rO).source+"|$","g"),eA="//# sourceURL="+(rz.call(eo,"sourceURL")?(eo.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nC+"]")+"\n";ei.replace(eE,function(eo,ea,eu,ec,eh,eg){return eu||(eu=ec),eS+=ei.slice(ew,eg).replace(rI,iU),ea&&(ed=!0,eS+="' +\n__e("+ea+") +\n'"),eh&&(ef=!0,eS+="';\n"+eh+";\n__p += '"),eu&&(eS+="' +\n((__t = ("+eu+")) == null ? '' : __t) +\n'"),ew=eg+eo.length,eo}),eS+="';\n";var eT=rz.call(eo,"variable")&&eo.variable;if(eT){if(rp.test(eT))throw new ra(em)}else eS="with (obj) {\n"+eS+"\n}\n";eS=(ef?eS.replace(tL,""):eS).replace(tF,"$1").replace(tB,"$1;"),eS="function("+(eT||"obj")+") {\n"+(eT?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(ed?", __e = _.escape":"")+(ef?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+eS+"return __p\n}";var ek=gC(function(){return rh(eg,eA+"return "+eS).apply(ec,eb)});if(ek.source=eS,hd(ek))throw ek;return ek}function gv(ei){return hK(ei).toLowerCase()}function gb(ei){return hK(ei).toUpperCase()}function gw(ei,eo,ea){if((ei=hK(ei))&&(ea||ec===eo))return iP(ei);if(!ei||!(eo=la(eo)))return ei;var eu=i8(ei),ed=i8(eo),ef=ij(eu,ed),eh=iR(eu,ed)+1;return lw(eu,ef,eh).join("")}function g_(ei,eo,ea){if((ei=hK(ei))&&(ea||ec===eo))return ei.slice(0,i9(ei)+1);if(!ei||!(eo=la(eo)))return ei;var eu=i8(ei),ed=iR(eu,i8(eo))+1;return lw(eu,0,ed).join("")}function gS(ei,eo,ea){if((ei=hK(ei))&&(ea||ec===eo))return ei.replace(tX,"");if(!ei||!(eo=la(eo)))return ei;var eu=i8(ei),ed=ij(eu,i8(eo));return lw(eu,ed).join("")}function gE(ei,eo){var ea=eF,eu=eB;if(hv(eo)){var ed="separator"in eo?eo.separator:ed;ea="length"in eo?hG(eo.length):ea,eu="omission"in eo?la(eo.omission):eu}var ef=(ei=hK(ei)).length;if(iV(ei)){var eh=i8(ei);ef=eh.length}if(ea>=ef)return ei;var eg=ea-i6(eu);if(eg<1)return eu;var em=eh?lw(eh,0,eg).join(""):ei.slice(0,eg);if(ec===ed)return em+eu;if(eh&&(eg+=em.length-eg),hO(ed)){if(ei.slice(eg).search(ed)){var eb,ew=em;for(ed.global||(ed=rN(ed.source,hK(r_.exec(ed))+"g")),ed.lastIndex=0;eb=ed.exec(ew);)var e_=eb.index;em=em.slice(0,ec===e_?eg:e_)}}else if(ei.indexOf(la(ed),eg)!=eg){var eS=em.lastIndexOf(ed);eS>-1&&(em=em.slice(0,eS))}return em+eu}function gx(ei){return(ei=hK(ei))&&tV.test(ei)?ei.replace(tU,i7):ei}var gA=lG(function(ei,eo,ea){return ei+(ea?" ":"")+eo.toUpperCase()}),gT=lz("toUpperCase");function gk(ei,eo,ea){return(ei=hK(ei),eo=ea?ec:eo,ec===eo)?iq(ei)?oa(ei):ip(ei):ei.match(eo)||[]}var gC=aF(function(ei,eo){try{return nJ(ei,ec,eo)}catch(ei){return hd(ei)?ei:new ra(ei)}}),gO=uf(function(ei,eo){return nX(eo,function(eo){sb(ei,eo=cr(eo),fT(ei[eo],ei))}),ei});function gI(ei){var eo=null==ei?0:ei.length,ea=ub();return ei=eo?n8(ei,function(ei){if("function"!=typeof ei[1])throw new rj(eg);return[ea(ei[0]),ei[1]]}):[],aF(function(ea){for(var eu=-1;++eueY)return[];var ea=eJ,eu=nM(ei,eJ);eo=ub(eo),ei-=eJ;for(var ec=iO(eu,eo);++ea0||eo<0)?new oT(ea):(ei<0?ea=ea.takeRight(-ei):ei&&(ea=ea.drop(ei)),ec!==eo&&(ea=(eo=hG(eo))<0?ea.dropRight(-eo):ea.take(eo-ei)),ea)},oT.prototype.takeRightWhile=function(ei){return this.reverse().takeWhile(ei).reverse()},oT.prototype.toArray=function(){return this.take(eJ)},sB(oT.prototype,function(ei,eo){var ea=/^(?:filter|find|map|reject)|While$/.test(eo),eu=/^(?:head|last)$/.test(eo),ed=o_[eu?"take"+("last"==eo?"Right":""):eo],ef=eu||/^find/.test(eo);ed&&(o_.prototype[eo]=function(){var eo=this.__wrapped__,eh=eu?[1]:arguments,eg=eo instanceof oT,em=eh[0],eb=eg||f4(eo),ew=function(ei){var eo=ed.apply(o_,n9([ei],eh));return eu&&e_?eo[0]:eo};eb&&ea&&"function"==typeof em&&1!=em.length&&(eg=eb=!1);var e_=this.__chain__,eS=!!this.__actions__.length,eE=ef&&!e_,eA=eg&&!eS;if(!ef&&eb){eo=eA?eo:new oT(this);var eT=ei.apply(eo,eh);return eT.__actions__.push({func:dD,args:[ew],thisArg:ec}),new oA(eT,e_)}return eE&&eA?ei.apply(this,eh):(eT=this.thru(ew),eE?eu?eT.value()[0]:eT.value():eT)})}),nX(["pop","push","shift","sort","splice","unshift"],function(ei){var eo=rR[ei],ea=/^(?:push|sort|unshift)$/.test(ei)?"tap":"thru",eu=/^(?:pop|shift)$/.test(ei);o_.prototype[ei]=function(){var ei=arguments;if(eu&&!this.__chain__){var ec=this.value();return eo.apply(f4(ec)?ec:[],ei)}return this[ea](function(ea){return eo.apply(f4(ea)?ea:[],ei)})}}),sB(oT.prototype,function(ei,eo){var ea=o_[eo];if(ea){var eu=ea.name+"";rz.call(oo,eu)||(oo[eu]=[]),oo[eu].push({name:eo,func:ea})}}),oo[lK(ec,eO).name]=[{name:"wrapper",func:ec}],oT.prototype.clone=oC,oT.prototype.reverse=oI,oT.prototype.value=oP,o_.prototype.at=dN,o_.prototype.chain=dM,o_.prototype.commit=dj,o_.prototype.next=dR,o_.prototype.plant=dF,o_.prototype.reverse=dB,o_.prototype.toJSON=o_.prototype.valueOf=o_.prototype.value=dU,o_.prototype.first=o_.prototype.head,nd&&(o_.prototype[nd]=dL),o_}();nB._=ol,eu=(function(){return ol}).call(eo,ea,eo,ei),ec!==eu&&(ei.exports=eu)}).call(this)},66604:function(ei,eo,ea){var eu=ea(89465),ec=ea(47816),ed=ea(67206);function ef(ei,eo){var ea={};return eo=ed(eo,3),ec(ei,function(ei,ec,ed){eu(ea,ec,eo(ei,ec,ed))}),ea}ei.exports=ef},88306:function(ei,eo,ea){var eu=ea(83369),ec="Expected a function";function ed(ei,eo){if("function"!=typeof ei||null!=eo&&"function"!=typeof eo)throw TypeError(ec);var ea=function(){var eu=arguments,ec=eo?eo.apply(this,eu):eu[0],ed=ea.cache;if(ed.has(ec))return ed.get(ec);var ef=ei.apply(this,eu);return ea.cache=ed.set(ec,ef)||ed,ef};return ea.cache=new(ed.Cache||eu),ea}ed.Cache=eu,ei.exports=ed},82492:function(ei,eo,ea){var eu=ea(42980),ec=ea(21463)(function(ei,eo,ea){eu(ei,eo,ea)});ei.exports=ec},94885:function(ei){var eo="Expected a function";function ea(ei){if("function"!=typeof ei)throw TypeError(eo);return function(){var eo=arguments;switch(eo.length){case 0:return!ei.call(this);case 1:return!ei.call(this,eo[0]);case 2:return!ei.call(this,eo[0],eo[1]);case 3:return!ei.call(this,eo[0],eo[1],eo[2])}return!ei.apply(this,eo)}}ei.exports=ea},7771:function(ei,eo,ea){var eu=ea(55639),ec=function(){return eu.Date.now()};ei.exports=ec},57557:function(ei,eo,ea){var eu=ea(29932),ec=ea(85990),ed=ea(57406),ef=ea(71811),eh=ea(98363),eg=ea(60696),em=ea(99021),eb=ea(46904),ew=1,e_=2,eS=4,eE=em(function(ei,eo){var ea={};if(null==ei)return ea;var em=!1;eo=eu(eo,function(eo){return eo=ef(eo,ei),em||(em=eo.length>1),eo}),eh(ei,eb(ei),ea),em&&(ea=ec(ea,ew|e_|eS,eg));for(var eE=eo.length;eE--;)ed(ea,eo[eE]);return ea});ei.exports=eE},14176:function(ei,eo,ea){var eu=ea(67206),ec=ea(94885),ed=ea(35937);function ef(ei,eo){return ed(ei,ec(eu(eo)))}ei.exports=ef},35937:function(ei,eo,ea){var eu=ea(29932),ec=ea(67206),ed=ea(63012),ef=ea(46904);function eh(ei,eo){if(null==ei)return{};var ea=eu(ef(ei),function(ei){return[ei]});return eo=ec(eo),ed(ei,ea,function(ei,ea){return eo(ei,ea[0])})}ei.exports=eh},39601:function(ei,eo,ea){var eu=ea(40371),ec=ea(79152),ed=ea(15403),ef=ea(40327);function eh(ei){return ed(ei)?eu(ef(ei)):ec(ei)}ei.exports=eh},36968:function(ei,eo,ea){var eu=ea(10611);function ec(ei,eo,ea){return null==ei?ei:eu(ei,eo,ea)}ei.exports=ec},70479:function(ei){function eo(){return[]}ei.exports=eo},95062:function(ei){function eo(){return!1}ei.exports=eo},23493:function(ei,eo,ea){var eu=ea(23279),ec=ea(13218),ed="Expected a function";function ef(ei,eo,ea){var ef=!0,eh=!0;if("function"!=typeof ei)throw TypeError(ed);return ec(ea)&&(ef="leading"in ea?!!ea.leading:ef,eh="trailing"in ea?!!ea.trailing:eh),eu(ei,eo,{leading:ef,maxWait:eo,trailing:eh})}ei.exports=ef},14841:function(ei,eo,ea){var eu=ea(27561),ec=ea(13218),ed=ea(33448),ef=0/0,eh=/^[-+]0x[0-9a-f]+$/i,eg=/^0b[01]+$/i,em=/^0o[0-7]+$/i,eb=parseInt;function ew(ei){if("number"==typeof ei)return ei;if(ed(ei))return ef;if(ec(ei)){var eo="function"==typeof ei.valueOf?ei.valueOf():ei;ei=ec(eo)?eo+"":eo}if("string"!=typeof ei)return 0===ei?ei:+ei;ei=eu(ei);var ea=eg.test(ei);return ea||em.test(ei)?eb(ei.slice(2),ea?2:8):eh.test(ei)?ef:+ei}ei.exports=ew},59881:function(ei,eo,ea){var eu=ea(98363),ec=ea(81704);function ed(ei){return eu(ei,ec(ei))}ei.exports=ed},79833:function(ei,eo,ea){var eu=ea(80531);function ec(ei){return null==ei?"":eu(ei)}ei.exports=ec},11700:function(ei,eo,ea){var eu=ea(98805)("toUpperCase");ei.exports=eu},58748:function(ei,eo,ea){var eu=ea(49029),ec=ea(93157),ed=ea(79833),ef=ea(2757);function eh(ei,eo,ea){return(ei=ed(ei),void 0===(eo=ea?void 0:eo))?ec(ei)?ef(ei):eu(ei):ei.match(eo)||[]}ei.exports=eh},11248:function(module,exports,__webpack_require__){"undefined"!=typeof navigator&&function(ei,eo){module.exports=eo()}(0,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(ei){_useWebWorker=!!ei},getWebWorker=function(){return _useWebWorker},setLocationHref=function(ei){locationHref=ei},getLocationHref=function(){return locationHref};function createTag(ei){return document.createElement(ei)}function extendPrototype(ei,eo){var ea,eu,ec=ei.length;for(ea=0;ea1?ea[1]=1:ea[1]<=0&&(ea[1]=0),HSVtoRGB(ea[0],ea[1],ea[2])}function addBrightnessToRGB(ei,eo){var ea=RGBtoHSV(255*ei[0],255*ei[1],255*ei[2]);return ea[2]+=eo,ea[2]>1?ea[2]=1:ea[2]<0&&(ea[2]=0),HSVtoRGB(ea[0],ea[1],ea[2])}function addHueToRGB(ei,eo){var ea=RGBtoHSV(255*ei[0],255*ei[1],255*ei[2]);return ea[0]+=eo/360,ea[0]>1?ea[0]-=1:ea[0]<0&&(ea[0]+=1),HSVtoRGB(ea[0],ea[1],ea[2])}var rgbToHex=function(){var ei,eo,ea=[];for(ei=0;ei<256;ei+=1)eo=ei.toString(16),ea[ei]=1===eo.length?"0"+eo:eo;return function(ei,eo,eu){return ei<0&&(ei=0),eo<0&&(eo=0),eu<0&&(eu=0),"#"+ea[ei]+ea[eo]+ea[eu]}}(),setSubframeEnabled=function(ei){subframeEnabled=!!ei},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(ei){expressionsPlugin=ei},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(ei){expressionsInterfaces=ei},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(ei){defaultCurveSegments=ei},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(ei){idPrefix$1=ei},getIdPrefix=function(){return idPrefix$1};function createNS(ei){return document.createElementNS(svgNS,ei)}function _typeof$5(ei){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ei){return typeof ei}:function(ei){return ei&&"function"==typeof Symbol&&ei.constructor===Symbol&&ei!==Symbol.prototype?"symbol":typeof ei})(ei)}var dataManager=function(){var ei,eo,ea=1,eu=[],ec={onmessage:function(){},postMessage:function(eo){ei({data:eo})}},ed={postMessage:function(ei){ec.onmessage({data:ei})}};function ef(eo){if(window.Worker&&window.Blob&&getWebWorker()){var ea=new Blob(["var _workerSelf = self; self.onmessage = ",eo.toString()],{type:"text/javascript"}),eu=URL.createObjectURL(ea);return new Worker(eu)}return ei=eo,ec}function eh(){eo||((eo=ef(function(ei){function eo(){function ei(eo,ea){var ef,eh,eg,em,eb,ew,e_=eo.length;for(eh=0;eh=0;eo-=1)if("sh"===ei[eo].ty){if(ei[eo].ks.k.i)ed(ei[eo].ks.k);else for(ea=0,eu=ei[eo].ks.k.length;eaea[0]||!(ea[0]>ei[0])&&(ei[1]>ea[1]||!(ea[1]>ei[1])&&(ei[2]>ea[2]||!(ea[2]>ei[2])&&null))}var eh=function(){var ei=[4,4,14];function eo(ei){var eo=ei.t.d;ei.t.d={k:[{s:eo,t:0}]}}function ea(ei){var ea,eu=ei.length;for(ea=0;ea=0;ea-=1)if("sh"===ei[ea].ty){if(ei[ea].ks.k.i)ei[ea].ks.k.c=ei[ea].closed;else for(eu=0,ec=ei[ea].ks.k.length;eu500)&&(this._imageLoaded(),clearInterval(ea)),eo+=1}).bind(this),50)}function ed(eo){var ea=eu(eo,this.assetsPath,this.path),ec=createNS("image");isSafari?this.testImageLoaded(ec):ec.addEventListener("load",this._imageLoaded,!1),ec.addEventListener("error",(function(){ed.img=ei,this._imageLoaded()}).bind(this),!1),ec.setAttributeNS("http://www.w3.org/1999/xlink","href",ea),this._elementHelper.append?this._elementHelper.append(ec):this._elementHelper.appendChild(ec);var ed={img:ec,assetData:eo};return ed}function ef(eo){var ea=eu(eo,this.assetsPath,this.path),ec=createTag("img");ec.crossOrigin="anonymous",ec.addEventListener("load",this._imageLoaded,!1),ec.addEventListener("error",(function(){ed.img=ei,this._imageLoaded()}).bind(this),!1),ec.src=ea;var ed={img:ec,assetData:eo};return ed}function eh(ei){var eo={assetData:ei},ea=eu(ei,this.assetsPath,this.path);return dataManager.loadData(ea,(function(ei){eo.img=ei,this._footageLoaded()}).bind(this),(function(){eo.img={},this._footageLoaded()}).bind(this)),eo}function eg(ei,eo){this.imagesLoadedCb=eo;var ea,eu=ei.length;for(ea=0;eathis.animationData.op&&(this.animationData.op=ei.op,this.totalFrames=Math.floor(ei.op-this.animationData.ip));var eo,ea,eu=this.animationData.layers,ec=eu.length,ed=ei.layers,ef=ed.length;for(ea=0;eathis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(ei){this.triggerRenderFrameError(ei)}},AnimationItem.prototype.play=function(ei){(!ei||this.name===ei)&&!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(ei){ei&&this.name!==ei||!1!==this.isPaused||(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(ei){ei&&this.name!==ei||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(ei){ei&&this.name!==ei||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(ei){for(var eo,ea=0;ea=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?eo>=this.totalFrames?(this.playCount+=1,this.checkSegments(eo%this.totalFrames)||(this.setCurrentRawFrameValue(eo%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(eo):this.checkSegments(eo>this.totalFrames?eo%this.totalFrames:0)||(ea=!0,eo=this.totalFrames-1):eo<0?this.checkSegments(eo%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+eo%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(ea=!0,eo=0)):this.setCurrentRawFrameValue(eo),ea&&(this.setCurrentRawFrameValue(eo),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(ei,eo){this.playCount=0,ei[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=ei[0]-ei[1],this.timeCompleted=this.totalFrames,this.firstFrame=ei[1],this.setCurrentRawFrameValue(this.totalFrames-.001-eo)):ei[1]>ei[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=ei[1]-ei[0],this.timeCompleted=this.totalFrames,this.firstFrame=ei[0],this.setCurrentRawFrameValue(.001+eo)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(ei,eo){var ea=-1;this.isPaused&&(this.currentRawFrame+this.firstFrameeo&&(ea=eo-ei)),this.firstFrame=ei,this.totalFrames=eo-ei,this.timeCompleted=this.totalFrames,-1!==ea&&this.goToAndStop(ea,!0)},AnimationItem.prototype.playSegments=function(ei,eo){if(eo&&(this.segments.length=0),"object"===_typeof$4(ei[0])){var ea,eu=ei.length;for(ea=0;ea=0;ea-=1)eo[ea].animation.destroy(ei)}function eM(ei,eo,ea){var eu,ec=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ed=ec.length;for(eu=0;eu0?ea=eg:eo=eg;while(Math.abs(eh)>ed&&++em=ec?eT(ei,eb,eo,ea):0===ew?eb:eA(ei,ed,ed+eg,eo,ea)}},ei}(),pooling=function(){return{double:function(ei){return ei.concat(createSizedArray(ei.length))}}}(),poolFactory=function(){return function(ei,eo,ea){var eu=0,ec=ei,ed=createSizedArray(ec);return{newElement:function(){var ei;return eu?(eu-=1,ei=ed[eu]):ei=eo(),ei},release:function(ei){eu===ec&&(ed=pooling.double(ed),ec*=2),ea&&ea(ei),ed[eu]=ei,eu+=1}}}}(),bezierLengthPool=function(){return poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})}(),segmentsLengthPool=function(){function ei(ei){var eo,ea=ei.lengths.length;for(eo=0;eo-.001&&ef<.001}function ea(ea,eu,ec,ed,ef,eh,eg,em,eb){if(0===ec&&0===eh&&0===eb)return eo(ea,eu,ed,ef,eg,em);var ew,e_=ei.sqrt(ei.pow(ed-ea,2)+ei.pow(ef-eu,2)+ei.pow(eh-ec,2)),eS=ei.sqrt(ei.pow(eg-ea,2)+ei.pow(em-eu,2)+ei.pow(eb-ec,2)),eE=ei.sqrt(ei.pow(eg-ed,2)+ei.pow(em-ef,2)+ei.pow(eb-eh,2));return(ew=e_>eS?e_>eE?e_-eS-eE:eE-eS-e_:eE>eS?eE-eS-e_:eS-e_-eE)>-.0001&&ew<1e-4}var eu=function(){return function(ei,eo,ea,eu){var ec,ed,ef,eh,eg,em,eb=getDefaultCurveSegments(),ew=0,e_=[],eS=[],eE=bezierLengthPool.newElement();for(ec=0,ef=ea.length;ecef?-1:1,em=!0;em;)if(eu[ed]<=ef&&eu[ed+1]>ef?(eh=(ef-eu[ed])/(eu[ed+1]-eu[ed]),em=!1):ed+=eg,ed<0||ed>=ec-1){if(ed===ec-1)return ea[ed];em=!1}return ea[ed]+(ea[ed+1]-ea[ed])*eh}function em(eo,ea,eu,ec,ed,ef){var eh=eg(ed,ef),em=1-eh;return[ei.round((em*em*em*eo[0]+(eh*em*em+em*eh*em+em*em*eh)*eu[0]+(eh*eh*em+em*eh*eh+eh*em*eh)*ec[0]+eh*eh*eh*ea[0])*1e3)/1e3,ei.round((em*em*em*eo[1]+(eh*em*em+em*eh*em+em*em*eh)*eu[1]+(eh*eh*em+em*eh*eh+eh*em*eh)*ec[1]+eh*eh*eh*ea[1])*1e3)/1e3]}var eb=createTypedArray("float32",8);return{getSegmentsLength:ec,getNewSegment:function(eo,ea,eu,ec,ed,ef,eh){ed<0?ed=0:ed>1&&(ed=1);var em,ew=eg(ed,eh),e_=eg(ef=ef>1?1:ef,eh),eS=eo.length,eE=1-ew,eA=1-e_,eT=eE*eE*eE,ek=ew*eE*eE*3,eC=ew*ew*eE*3,eO=ew*ew*ew,eI=eE*eE*eA,eP=ew*eE*eA+eE*ew*eA+eE*eE*e_,eD=ew*ew*eA+eE*ew*e_+ew*eE*e_,eN=ew*ew*e_,eM=eE*eA*eA,ej=ew*eA*eA+eE*e_*eA+eE*eA*e_,eR=ew*e_*eA+eE*e_*e_+ew*eA*e_,eL=ew*e_*e_,eF=eA*eA*eA,eB=e_*eA*eA+eA*e_*eA+eA*eA*e_,eU=e_*e_*eA+eA*e_*e_+e_*eA*e_,eG=e_*e_*e_;for(em=0;em=eC.t-eh){ek.h&&(ek=eC),eg=0;break}if(eC.t-eh>ei){eg=em;break}em=e_||ei=e_?eE.points.length-1:0;for(eI=0,eP=eE.points[eA].point.length;eI=eB&&eF=e_?(eT[0]=eR[0],eT[1]=eR[1],eT[2]=eR[2]):ei<=eS?(eT[0]=ek.s[0],eT[1]=ek.s[1],eT[2]=ek.s[2]):quaternionToEuler(eT,slerp(createQuaternion(ek.s),createQuaternion(eR),(ei-eS)/(e_-eS)));else for(em=0;em=e_?eD=1:ei1e-6?(ed=Math.sin(eu=Math.acos(ec)),ef=Math.sin((1-ea)*eu)/ed,eh=Math.sin(ea*eu)/ed):(ef=1-ea,eh=ea),eg[0]=ef*em+eh*eS,eg[1]=ef*eb+eh*eE,eg[2]=ef*ew+eh*eA,eg[3]=ef*e_+eh*eT,eg}function quaternionToEuler(ei,eo){var ea=eo[0],eu=eo[1],ec=eo[2],ed=eo[3],ef=Math.atan2(2*eu*ed-2*ea*ec,1-2*eu*eu-2*ec*ec),eh=Math.asin(2*ea*eu+2*ec*ed),eg=Math.atan2(2*ea*ed-2*eu*ec,1-2*ea*ea-2*ec*ec);ei[0]=ef/degToRads,ei[1]=eh/degToRads,ei[2]=eg/degToRads}function createQuaternion(ei){var eo=ei[0]*degToRads,ea=ei[1]*degToRads,eu=ei[2]*degToRads,ec=Math.cos(eo/2),ed=Math.cos(ea/2),ef=Math.cos(eu/2),eh=Math.sin(eo/2),eg=Math.sin(ea/2),em=Math.sin(eu/2),eb=ec*ed*ef-eh*eg*em;return[eh*eg*ef+ec*ed*em,eh*ed*ef+ec*eg*em,ec*eg*ef-eh*ed*em,eb]}function getValueAtCurrentTime(){var ei=this.comp.renderedFrame-this.offsetTime,eo=this.keyframes[0].t-this.offsetTime,ea=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(ei===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=ea&&ei>=ea||this._caching.lastFrame=ei&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var eu=this.interpolateValue(ei,this._caching);this.pv=eu}return this._caching.lastFrame=ei,this.pv}function setVValue(ei){var eo;if("unidimensional"===this.propType)eo=ei*this.mult,mathAbs(this.v-eo)>1e-5&&(this.v=eo,this._mdf=!0);else for(var ea=0,eu=this.v.length;ea1e-5&&(this.v[ea]=eo,this._mdf=!0),ea+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var ei,eo=this.effectsSequence.length,ea=this.kf?this.pv:this.data.k;for(ei=0;ei=this._maxLength&&this.doubleArrayLength(),ea){case"v":ed=this.v;break;case"i":ed=this.i;break;case"o":ed=this.o;break;default:ed=[]}ed[eu]&&(!ed[eu]||ec)||(ed[eu]=pointPool.newElement()),ed[eu][0]=ei,ed[eu][1]=eo},ShapePath.prototype.setTripleAt=function(ei,eo,ea,eu,ec,ed,ef,eh){this.setXYAt(ei,eo,"v",ef,eh),this.setXYAt(ea,eu,"o",ef,eh),this.setXYAt(ec,ed,"i",ef,eh)},ShapePath.prototype.reverse=function(){var ei,eo=new ShapePath;eo.setPathData(this.c,this._length);var ea=this.v,eu=this.o,ec=this.i,ed=0;this.c&&(eo.setTripleAt(ea[0][0],ea[0][1],ec[0][0],ec[0][1],eu[0][0],eu[0][1],0,!1),ed=1);var ef=this._length-1,eh=this._length;for(ei=ed;ei=ec[ec.length-1].t-this.offsetTime)ed=ec[ec.length-1].s?ec[ec.length-1].s[0]:ec[ec.length-2].e[0],eh=!0;else{for(var ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT,ek,eC=eu,eO=ec.length-1,eI=!0;eI&&(eE=ec[eC],!((eA=ec[eC+1]).t-this.offsetTime>ei));)eC=eA.t-this.offsetTime?e_=1:eieu&&eo>eu)||(this._caching.lastIndex=ec0||ei>-.000001&&ei<0?eu(ei*eo)/eo:ei}function eH(){var ei=this.props;return"matrix("+eV(ei[0])+","+eV(ei[1])+","+eV(ei[4])+","+eV(ei[5])+","+eV(ei[12])+","+eV(ei[13])+")"}return function(){this.reset=ec,this.rotate=ed,this.rotateX=ef,this.rotateY=eh,this.rotateZ=eg,this.skew=eb,this.skewFromAxis=ew,this.shear=em,this.scale=e_,this.setTransform=eS,this.translate=eE,this.transform=eA,this.multiply=eT,this.applyToPoint=eP,this.applyToX=eD,this.applyToY=eN,this.applyToZ=eM,this.applyToPointArray=eB,this.applyToTriplePoints=eF,this.applyToPointStringified=eU,this.toCSS=eG,this.to2dCSS=eH,this.clone=eO,this.cloneFromProps=eI,this.equals=eC,this.inversePoints=eL,this.inversePoint=eR,this.getInverseMatrix=ej,this._t=this.transform,this.isIdentity=ek,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(ei){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ei){return typeof ei}:function(ei){return ei&&"function"==typeof Symbol&&ei.constructor===Symbol&&ei!==Symbol.prototype?"symbol":typeof ei})(ei)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(ei){setLocationHref(ei)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(ei){setSubframeEnabled(ei)}function setPrefix(ei){setIdPrefix(ei)}function loadAnimation(ei){return!0===standalone&&(ei.animationData=JSON.parse(animationData)),animationManager.loadAnimation(ei)}function setQuality(ei){if("string"==typeof ei)switch(ei){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(ei)&&ei>1&&setDefaultCurveSegments(ei);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(ei,eo){"expressions"===ei&&setExpressionsPlugin(eo)}function getFactory(ei){switch(ei){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(ei){for(var eo=queryString.split("&"),ea=0;ea=1?eh.push({s:ei-1,e:eo-1}):(eh.push({s:ei,e:1}),eh.push({s:0,e:eo-1}));var eg=[],em=eh.length;for(ed=0;edeu+ea||eg.push([ef.s*ec<=eu?0:(ef.s*ec-eu)/ea,ef.e*ec>=eu+ea?1:(ef.e*ec-eu)/ea]);return eg.length||eg.push([0,0]),eg},TrimModifier.prototype.releasePathsData=function(ei){var eo,ea=ei.length;for(eo=0;eo1?1+eo:this.s.v<0?0+eo:this.s.v+eo)>(ef=this.e.v>1?1+eo:this.e.v<0?0+eo:this.e.v+eo)){var ea=ed;ed=ef,ef=ea}ed=1e-4*Math.round(1e4*ed),ef=1e-4*Math.round(1e4*ef),this.sValue=ed,this.eValue=ef}else ed=this.sValue,ef=this.eValue;var eu=this.shapes.length,ec=0;if(ef===ed)for(eg=0;eg=0;eg-=1)if((eE=this.shapes[eg]).shape._mdf){for((eA=eE.localShapeCollection).releaseShapes(),2===this.m&&eu>1?(eT=this.calculateShapeEdges(ed,ef,eE.totalShapeLength,eI,ec),eI+=eE.totalShapeLength):eT=[[eC,eO]],eb=eT.length,em=0;em=1?ek.push({s:eE.totalShapeLength*(eC-1),e:eE.totalShapeLength*(eO-1)}):(ek.push({s:eE.totalShapeLength*eC,e:eE.totalShapeLength}),ek.push({s:0,e:eE.totalShapeLength*(eO-1)}));var eP=this.addShapes(eE,ek[0]);if(ek[0].s!==ek[0].e){if(ek.length>1){if(eE.shape.paths.shapes[eE.shape.paths._length-1].c){var eD=eP.pop();this.addPaths(eP,eA),eP=this.addShapes(eE,ek[1],eD)}else this.addPaths(eP,eA),eP=this.addShapes(eE,ek[1])}this.addPaths(eP,eA)}}eE.shape.paths=eA}}},TrimModifier.prototype.addPaths=function(ei,eo){var ea,eu=ei.length;for(ea=0;eaeo.e){ea.c=!1;break}else eo.s<=eE&&eo.e>=eE+ef.addedLength?(this.addSegment(e_[eu].v[ec-1],e_[eu].o[ec-1],e_[eu].i[ec],e_[eu].v[ec],ea,eh,eT),eT=!1):(em=bez.getNewSegment(e_[eu].v[ec-1],e_[eu].v[ec],e_[eu].o[ec-1],e_[eu].i[ec],(eo.s-eE)/ef.addedLength,(eo.e-eE)/ef.addedLength,eg[ec-1]),this.addSegmentFromArray(em,ea,eh,eT),eT=!1,ea.c=!1),eE+=ef.addedLength,eh+=1;if(e_[eu].c&&eg.length){if(ef=eg[ec-1],eE<=eo.e){var ek=eg[ec-1].addedLength;eo.s<=eE&&eo.e>=eE+ek?(this.addSegment(e_[eu].v[ec-1],e_[eu].o[ec-1],e_[eu].i[0],e_[eu].v[0],ea,eh,eT),eT=!1):(em=bez.getNewSegment(e_[eu].v[ec-1],e_[eu].v[0],e_[eu].o[ec-1],e_[eu].i[0],(eo.s-eE)/ek,(eo.e-eE)/ek,eg[ec-1]),this.addSegmentFromArray(em,ea,eh,eT),eT=!1,ea.c=!1)}else ea.c=!1;eE+=ef.addedLength,eh+=1}if(ea._length&&(ea.setXYAt(ea.v[eb][0],ea.v[eb][1],"i",eb),ea.setXYAt(ea.v[ea._length-1][0],ea.v[ea._length-1][1],"o",ea._length-1)),eE>eo.e)break;eu=this.p.keyframes[this.p.keyframes.length-1].t?(eu=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ea,0),ec=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ea,0)):(eu=this.p.pv,ec=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ea,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){eu=[],ec=[];var eu,ec,ed=this.px,ef=this.py;ed._caching.lastFrame+ed.offsetTime<=ed.keyframes[0].t?(eu[0]=ed.getValueAtTime((ed.keyframes[0].t+.01)/ea,0),eu[1]=ef.getValueAtTime((ef.keyframes[0].t+.01)/ea,0),ec[0]=ed.getValueAtTime(ed.keyframes[0].t/ea,0),ec[1]=ef.getValueAtTime(ef.keyframes[0].t/ea,0)):ed._caching.lastFrame+ed.offsetTime>=ed.keyframes[ed.keyframes.length-1].t?(eu[0]=ed.getValueAtTime(ed.keyframes[ed.keyframes.length-1].t/ea,0),eu[1]=ef.getValueAtTime(ef.keyframes[ef.keyframes.length-1].t/ea,0),ec[0]=ed.getValueAtTime((ed.keyframes[ed.keyframes.length-1].t-.01)/ea,0),ec[1]=ef.getValueAtTime((ef.keyframes[ef.keyframes.length-1].t-.01)/ea,0)):(eu=[ed.pv,ef.pv],ec[0]=ed.getValueAtTime((ed._caching.lastFrame+ed.offsetTime-.01)/ea,ed.offsetTime),ec[1]=ef.getValueAtTime((ef._caching.lastFrame+ef.offsetTime-.01)/ea,ef.offsetTime))}else eu=ec=ei;this.v.rotate(-Math.atan2(eu[1]-ec[1],eu[0]-ec[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function eu(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function ec(){}function ed(ei){this._addDynamicProperty(ei),this.elem.addDynamicProperty(ei),this._isDirty=!0}function ef(ei,eo,ea){if(this.elem=ei,this.frameId=-1,this.propType="transform",this.data=eo,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(ea||ei),eo.p&&eo.p.s?(this.px=PropertyFactory.getProp(ei,eo.p.x,0,0,this),this.py=PropertyFactory.getProp(ei,eo.p.y,0,0,this),eo.p.z&&(this.pz=PropertyFactory.getProp(ei,eo.p.z,0,0,this))):this.p=PropertyFactory.getProp(ei,eo.p||{k:[0,0,0]},1,0,this),eo.rx){if(this.rx=PropertyFactory.getProp(ei,eo.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(ei,eo.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(ei,eo.rz,0,degToRads,this),eo.or.k[0].ti){var eu,ec=eo.or.k.length;for(eu=0;eu=Math.abs(ei)}function lerp(ei,eo,ea){return ei*(1-ea)+eo*ea}function lerpPoint(ei,eo,ea){return[lerp(ei[0],eo[0],ea),lerp(ei[1],eo[1],ea)]}function quadRoots(ei,eo,ea){if(0===ei)return[];var eu=eo*eo-4*ei*ea;if(eu<0)return[];var ec=-eo/(2*ei);if(0===eu)return[ec];var ed=Math.sqrt(eu)/(2*ei);return[ec-ed,ec+ed]}function polynomialCoefficients(ei,eo,ea,eu){return[-ei+3*eo-3*ea+eu,3*ei-6*eo+3*ea,-3*ei+3*eo,ei]}function singlePoint(ei){return new PolynomialBezier(ei,ei,ei,ei,!1)}function PolynomialBezier(ei,eo,ea,eu,ec){ec&&pointEqual(ei,eo)&&(eo=lerpPoint(ei,eu,1/3)),ec&&pointEqual(ea,eu)&&(ea=lerpPoint(ei,eu,2/3));var ed=polynomialCoefficients(ei[0],eo[0],ea[0],eu[0]),ef=polynomialCoefficients(ei[1],eo[1],ea[1],eu[1]);this.a=[ed[0],ef[0]],this.b=[ed[1],ef[1]],this.c=[ed[2],ef[2]],this.d=[ed[3],ef[3]],this.points=[ei,eo,ea,eu]}function extrema(ei,eo){var ea=ei.points[0][eo],eu=ei.points[ei.points.length-1][eo];if(ea>eu){var ec=eu;eu=ea,ea=ec}for(var ed=quadRoots(3*ei.a[eo],2*ei.b[eo],ei.c[eo]),ef=0;ef0&&ed[ef]<1){var eh=ei.point(ed[ef])[eo];eheu&&(eu=eh)}return{min:ea,max:eu}}function intersectData(ei,eo,ea){var eu=ei.boundingBox();return{cx:eu.cx,cy:eu.cy,width:eu.width,height:eu.height,bez:ei,t:(eo+ea)/2,t1:eo,t2:ea}}function splitData(ei){var eo=ei.bez.split(.5);return[intersectData(eo[0],ei.t1,ei.t),intersectData(eo[1],ei.t,ei.t2)]}function boxIntersect(ei,eo){return 2*Math.abs(ei.cx-eo.cx)=ed||ei.width<=eu&&ei.height<=eu&&eo.width<=eu&&eo.height<=eu){ec.push([ei.t,eo.t]);return}var ef=splitData(ei),eh=splitData(eo);intersectsImpl(ef[0],eh[0],ea+1,eu,ec,ed),intersectsImpl(ef[0],eh[1],ea+1,eu,ec,ed),intersectsImpl(ef[1],eh[0],ea+1,eu,ec,ed),intersectsImpl(ef[1],eh[1],ea+1,eu,ec,ed)}}function crossProduct(ei,eo){return[ei[1]*eo[2]-ei[2]*eo[1],ei[2]*eo[0]-ei[0]*eo[2],ei[0]*eo[1]-ei[1]*eo[0]]}function lineIntersection(ei,eo,ea,eu){var ec=[ei[0],ei[1],1],ed=[eo[0],eo[1],1],ef=[ea[0],ea[1],1],eh=[eu[0],eu[1],1],eg=crossProduct(crossProduct(ec,ed),crossProduct(ef,eh));return floatZero(eg[2])?null:[eg[0]/eg[2],eg[1]/eg[2]]}function polarOffset(ei,eo,ea){return[ei[0]+Math.cos(eo)*ea,ei[1]-Math.sin(eo)*ea]}function pointDistance(ei,eo){return Math.hypot(ei[0]-eo[0],ei[1]-eo[1])}function pointEqual(ei,eo){return floatEqual(ei[0],eo[0])&&floatEqual(ei[1],eo[1])}function ZigZagModifier(){}function setPoint(ei,eo,ea,eu,ec,ed,ef){var eh=ea-Math.PI/2,eg=ea+Math.PI/2,em=eo[0]+Math.cos(ea)*eu*ec,eb=eo[1]-Math.sin(ea)*eu*ec;ei.setTripleAt(em,eb,em+Math.cos(eh)*ed,eb-Math.sin(eh)*ed,em+Math.cos(eg)*ef,eb-Math.sin(eg)*ef,ei.length())}function getPerpendicularVector(ei,eo){var ea=[eo[0]-ei[0],eo[1]-ei[1]],eu=-(.5*Math.PI);return[Math.cos(eu)*ea[0]-Math.sin(eu)*ea[1],Math.sin(eu)*ea[0]+Math.cos(eu)*ea[1]]}function getProjectingAngle(ei,eo){var ea=0===eo?ei.length()-1:eo-1,eu=(eo+1)%ei.length(),ec=getPerpendicularVector(ei.v[ea],ei.v[eu]);return Math.atan2(0,1)-Math.atan2(ec[1],ec[0])}function zigZagCorner(ei,eo,ea,eu,ec,ed,ef){var eh=getProjectingAngle(eo,ea),eg=eo.v[ea%eo._length],em=eo.v[0===ea?eo._length-1:ea-1],eb=eo.v[(ea+1)%eo._length],ew=2===ed?Math.sqrt(Math.pow(eg[0]-em[0],2)+Math.pow(eg[1]-em[1],2)):0,e_=2===ed?Math.sqrt(Math.pow(eg[0]-eb[0],2)+Math.pow(eg[1]-eb[1],2)):0;setPoint(ei,eo.v[ea%eo._length],eh,ef,eu,e_/((ec+1)*2),ew/((ec+1)*2),ed)}function zigZagSegment(ei,eo,ea,eu,ec,ed){for(var ef=0;ef1&&eo.length>1&&(ec=getIntersection(ei[0],eo[eo.length-1])))?[[ei[0].split(ec[0])[0]],[eo[eo.length-1].split(ec[1])[1]]]:[ea,eu]}function pruneIntersections(ei){for(var eo,ea=1;ea1&&(eo=pruneSegmentIntersection(ei[ei.length-1],ei[0]),ei[ei.length-1]=eo[0],ei[0]=eo[1]),ei}function offsetSegmentSplit(ei,eo){var ea,eu,ec,ed,ef=ei.inflectionPoints();if(0===ef.length)return[offsetSegment(ei,eo)];if(1===ef.length||floatEqual(ef[1],1))return ea=(ec=ei.split(ef[0]))[0],eu=ec[1],[offsetSegment(ea,eo),offsetSegment(eu,eo)];ea=(ec=ei.split(ef[0]))[0];var eh=(ef[1]-ef[0])/(1-ef[0]);return ed=(ec=ec[1].split(eh))[0],eu=ec[1],[offsetSegment(ea,eo),offsetSegment(ed,eo),offsetSegment(eu,eo)]}function OffsetPathModifier(){}function getFontProperties(ei){for(var eo=ei.fStyle?ei.fStyle.split(" "):[],ea="normal",eu="normal",ec=eo.length,ed=0;ed0;)ea-=1,this._elements.unshift(eo[ea]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(ei){var eo,ea=ei.length;for(eo=0;eo0?Math.floor(eE):Math.ceil(eE),ek=this.pMatrix.props,eC=this.rMatrix.props,eO=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var eI=0;if(eE>0){for(;eIeT;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),eI-=1;eA&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-eA,!0),eI-=eA)}for(ec=1===this.data.m?0:this._currentCopies-1,ed=1===this.data.m?1:-1,ef=this._currentCopies;ef;){if(em=(eu=(ea=this.elemsData[ec].it)[ea.length-1].transform.mProps.v.props).length,ea[ea.length-1].transform.mProps._mdf=!0,ea[ea.length-1].transform.op._mdf=!0,ea[ea.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(ec/(this._currentCopies-1)),0!==eI){for((0!==ec&&1===ed||ec!==this._currentCopies-1&&-1===ed)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(eC[0],eC[1],eC[2],eC[3],eC[4],eC[5],eC[6],eC[7],eC[8],eC[9],eC[10],eC[11],eC[12],eC[13],eC[14],eC[15]),this.matrix.transform(eO[0],eO[1],eO[2],eO[3],eO[4],eO[5],eO[6],eO[7],eO[8],eO[9],eO[10],eO[11],eO[12],eO[13],eO[14],eO[15]),this.matrix.transform(ek[0],ek[1],ek[2],ek[3],ek[4],ek[5],ek[6],ek[7],ek[8],ek[9],ek[10],ek[11],ek[12],ek[13],ek[14],ek[15]),eg=0;eg0&&eu<1?[eo]:[]:[eo-eu,eo+eu].filter(function(ei){return ei>0&&ei<1})},PolynomialBezier.prototype.split=function(ei){if(ei<=0)return[singlePoint(this.points[0]),this];if(ei>=1)return[this,singlePoint(this.points[this.points.length-1])];var eo=lerpPoint(this.points[0],this.points[1],ei),ea=lerpPoint(this.points[1],this.points[2],ei),eu=lerpPoint(this.points[2],this.points[3],ei),ec=lerpPoint(eo,ea,ei),ed=lerpPoint(ea,eu,ei),ef=lerpPoint(ec,ed,ei);return[new PolynomialBezier(this.points[0],eo,ec,ef,!0),new PolynomialBezier(ef,ed,eu,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var ei=this.bounds();return{left:ei.x.min,right:ei.x.max,top:ei.y.min,bottom:ei.y.max,width:ei.x.max-ei.x.min,height:ei.y.max-ei.y.min,cx:(ei.x.max+ei.x.min)/2,cy:(ei.y.max+ei.y.min)/2}},PolynomialBezier.prototype.intersections=function(ei,eo,ea){void 0===eo&&(eo=2),void 0===ea&&(ea=7);var eu=[];return intersectsImpl(intersectData(this,0,1),intersectData(ei,0,1),0,eo,eu,ea),eu},PolynomialBezier.shapeSegment=function(ei,eo){var ea=(eo+1)%ei.length();return new PolynomialBezier(ei.v[eo],ei.o[eo],ei.i[ea],ei.v[ea],!0)},PolynomialBezier.shapeSegmentInverted=function(ei,eo){var ea=(eo+1)%ei.length();return new PolynomialBezier(ei.v[ea],ei.i[ea],ei.o[eo],ei.v[eo],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(ei,eo){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(ei,eo.s,0,null,this),this.frequency=PropertyFactory.getProp(ei,eo.r,0,null,this),this.pointsType=PropertyFactory.getProp(ei,eo.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(ei,eo,ea,eu){var ec=ei._length,ed=shapePool.newElement();if(ed.c=ei.c,ei.c||(ec-=1),0===ec)return ed;var ef=-1,eh=PolynomialBezier.shapeSegment(ei,0);zigZagCorner(ed,ei,0,eo,ea,eu,ef);for(var eg=0;eg=0;ec-=1)ef=PolynomialBezier.shapeSegmentInverted(ei,ec),em.push(offsetSegmentSplit(ef,eo));em=pruneIntersections(em);var eb=null,ew=null;for(ec=0;ec0&&(eg=!1),eg){var em=createTag("style");em.setAttribute("f-forigin",ea[ed].fOrigin),em.setAttribute("f-origin",ea[ed].origin),em.setAttribute("f-family",ea[ed].fFamily),em.type="text/css",em.innerText="@font-face {font-family: "+ea[ed].fFamily+"; font-style: normal; src: url('"+ea[ed].fPath+"');}",eo.appendChild(em)}}else if("g"===ea[ed].fOrigin||1===ea[ed].origin){for(eh=0,ef=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');eh=55296&&ea<=56319){var eu=ei.charCodeAt(1);eu>=56320&&eu<=57343&&(eo=(ea-55296)*1024+eu-56320+65536)}return eo}function eD(ei,eo){var ea=ei.toString(16)+eo.toString(16);return-1!==ew.indexOf(ea)}function eN(ei){return ei===eg}function eM(ei){return ei===eh}function ej(ei){var eo=eP(ei);return eo>=em&&eo<=eb}function eR(ei){return ej(ei.substr(0,2))&&ej(ei.substr(2,2))}function eL(ei){return-1!==ea.indexOf(ei)}function eF(ei,eo){var ea=eP(ei.substr(eo,2));if(ea!==eu)return!1;var eh=0;for(eo+=2;eh<5;){if((ea=eP(ei.substr(eo,2)))ef)return!1;eh+=1,eo+=2}return eP(ei.substr(eo,2))===ec}function eB(){this.isLoaded=!0}var eU=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};eU.isModifier=eD,eU.isZeroWidthJoiner=eN,eU.isFlagEmoji=eR,eU.isRegionalCode=ej,eU.isCombinedCharacter=eL,eU.isRegionalFlag=eF,eU.isVariationSelector=eM,eU.BLACK_FLAG_CODE_POINT=eu;var eG={addChars:ek,addFonts:eT,getCharData:eC,getFontByName:eI,measureText:eO,checkLoadedFonts:eE,setIsLoaded:eB};return eU.prototype=eG,eU}();function SlotManager(ei){this.animationData=ei}function slotFactory(ei){return new SlotManager(ei)}function RenderableElement(){}SlotManager.prototype.getProp=function(ei){return this.animationData.slots&&this.animationData.slots[ei.sid]?Object.assign(ei,this.animationData.slots[ei.sid].p):ei},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(ei){-1===this.renderableComponents.indexOf(ei)&&this.renderableComponents.push(ei)},removeRenderableComponent:function(ei){-1!==this.renderableComponents.indexOf(ei)&&this.renderableComponents.splice(this.renderableComponents.indexOf(ei),1)},prepareRenderableFrame:function(ei){this.checkLayerLimits(ei)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(ei){this.data.ip-this.data.st<=ei&&this.data.op-this.data.st>ei?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var ei,eo=this.renderableComponents.length;for(ei=0;ei.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(ei){this.audio.rate(ei)},AudioElement.prototype.volume=function(ei){this._volumeMultiplier=ei,this._previousVolume=ei*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(ei){var eo,ea,eu=this.layers.length;for(this.completeLayers=!0,eo=eu-1;eo>=0;eo-=1)!this.elements[eo]&&(ea=this.layers[eo]).ip-ea.st<=ei-this.layers[eo].st&&ea.op-ea.st>ei-this.layers[eo].st&&this.buildItem(eo),this.completeLayers=!!this.elements[eo]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(ei){switch(ei.ty){case 2:return this.createImage(ei);case 0:return this.createComp(ei);case 1:return this.createSolid(ei);case 3:default:return this.createNull(ei);case 4:return this.createShape(ei);case 5:return this.createText(ei);case 6:return this.createAudio(ei);case 13:return this.createCamera(ei);case 15:return this.createFootage(ei)}},BaseRenderer.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(ei){return new AudioElement(ei,this.globalData,this)},BaseRenderer.prototype.createFootage=function(ei){return new FootageElement(ei,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var ei,eo=this.layers.length;for(ei=0;ei0&&(this.maskElement.setAttribute("id",eg),this.element.maskedElement.setAttribute(eb,"url("+getLocationHref()+"#"+eg+")"),eu.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var ei=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:ei,localMat:ei,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var ei,eo=this.finalTransform.mat,ea=0,eu=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;ea1&&(ed+=" C"+eo.o[eu-1][0]+","+eo.o[eu-1][1]+" "+eo.i[0][0]+","+eo.i[0][1]+" "+eo.v[0][0]+","+eo.v[0][1]),ea.lastPath!==ed){var ef="";ea.elem&&(eo.c&&(ef=ei.inv?this.solidPath+ed:ed),ea.elem.setAttribute("d",ef)),ea.lastPath=ed}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var ei={};function eo(ei,eo){var ea=createNS("filter");return ea.setAttribute("id",ei),!0!==eo&&(ea.setAttribute("filterUnits","objectBoundingBox"),ea.setAttribute("x","0%"),ea.setAttribute("y","0%"),ea.setAttribute("width","100%"),ea.setAttribute("height","100%")),ea}function ea(){var ei=createNS("feColorMatrix");return ei.setAttribute("type","matrix"),ei.setAttribute("color-interpolation-filters","sRGB"),ei.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),ei}return ei.createFilter=eo,ei.createAlphaToLuminanceFilter=ea,ei}(),featureSupport=function(){var ei={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(ei.maskType=!1),/firefox/i.test(navigator.userAgent)&&(ei.svgLumaHidden=!1),ei}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(ei){var eo,ea,eu="SourceGraphic",ec=ei.data.ef?ei.data.ef.length:0,ed=createElementID(),ef=filtersFactory.createFilter(ed,!0),eh=0;for(eo=0,this.filters=[];eo=0&&!this.shapeModifiers[ei].processShapes(this._isFirstFrame);ei-=1);}},searchProcessedElement:function(ei){for(var eo=this.processedElements,ea=0,eu=eo.length;ea.01)return!1;ea+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var ei=0,eo=this.data.k.k.length;ei0;)eg=eu.transformers[eE].mProps._mdf||eg,eS-=1,eE-=1;if(eg)for(eS=eT-eu.styles[eb].lvl,eE=eu.transformers.length-1;eS>0;)e_.multiply(eu.transformers[eE].mProps.v),eS-=1,eE-=1}else e_=ei;if(ef=(ew=eu.sh.paths)._length,eg){for(ed=0,eh="";ed=1?eC=.99:eC<=-1&&(eC=-.99);var eO=eh*eC,eI=Math.cos(ek+eo.a.v)*eO+eb[0],eP=Math.sin(ek+eo.a.v)*eO+eb[1];eg.setAttribute("fx",eI),eg.setAttribute("fy",eP),em&&!eo.g._collapsable&&(eo.of.setAttribute("fx",eI),eo.of.setAttribute("fy",eP))}}function eg(ei,eo,ea){var eu=eo.style,ec=eo.d;ec&&(ec._mdf||ea)&&ec.dashStr&&(eu.pElem.setAttribute("stroke-dasharray",ec.dashStr),eu.pElem.setAttribute("stroke-dashoffset",ec.dashoffset[0])),eo.c&&(eo.c._mdf||ea)&&eu.pElem.setAttribute("stroke","rgb("+bmFloor(eo.c.v[0])+","+bmFloor(eo.c.v[1])+","+bmFloor(eo.c.v[2])+")"),(eo.o._mdf||ea)&&eu.pElem.setAttribute("stroke-opacity",eo.o.v),(eo.w._mdf||ea)&&(eu.pElem.setAttribute("stroke-width",eo.w.v),eu.msElem&&eu.msElem.setAttribute("stroke-width",eo.w.v))}return{createRenderFunction:function(ei){switch(ei.ty){case"fl":return ed;case"gf":return eh;case"gs":return ef;case"st":return eg;case"sh":case"el":case"rc":case"sr":return ec;case"tr":return ea;case"no":return eu;default:return null}}}}();function SVGShapeElement(ei,eo,ea){this.shapes=[],this.shapesData=ei.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(ei,eo,ea),this.prevViewData=[]}function LetterProps(ei,eo,ea,eu,ec,ed){this.o=ei,this.sw=eo,this.sc=ea,this.fc=eu,this.m=ec,this.p=ed,this._mdf={o:!0,sw:!!eo,sc:!!ea,fc:!!eu,m:!0,p:!0}}function TextProperty(ei,eo){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,eo.d&&eo.d.sid&&(eo.d=ei.globalData.slotManager.getProp(eo.d)),this.data=eo,this.elem=ei,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var ei,eo,ea,eu,ec=this.shapes.length,ed=this.stylesList.length,ef=[],eh=!1;for(ea=0;ea1&&eh&&this.setShapesAsAnimated(ef)}},SVGShapeElement.prototype.setShapesAsAnimated=function(ei){var eo,ea=ei.length;for(eo=0;eo=0;eh-=1){if((e_=this.searchProcessedElement(ei[eh]))?eo[eh]=ea[e_-1]:ei[eh]._render=ef,"fl"===ei[eh].ty||"st"===ei[eh].ty||"gf"===ei[eh].ty||"gs"===ei[eh].ty||"no"===ei[eh].ty)e_?eo[eh].style.closed=!1:eo[eh]=this.createStyleElement(ei[eh],ec),ei[eh]._render&&eo[eh].style.pElem.parentNode!==eu&&eu.appendChild(eo[eh].style.pElem),eA.push(eo[eh].style);else if("gr"===ei[eh].ty){if(e_)for(eg=0,em=eo[eh].it.length;eg1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(ei){this.effectsSequence.push(ei),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(ei){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||ei){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var eo,ea=this.currentData,eu=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var ec=this.effectsSequence.length,ed=ei||this.data.d.k[this.keysIndex].s;for(eo=0;eoeo);)ea+=1;return this.keysIndex!==ea&&(this.keysIndex=ea),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(ei){for(var eo,ea,eu=[],ec=0,ed=ei.length,ef=!1,eh=!1,eg="";ec=55296&&eo<=56319?FontManager.isRegionalFlag(ei,ec)?eg=ei.substr(ec,14):(ea=ei.charCodeAt(ec+1))>=56320&&ea<=57343&&(FontManager.isModifier(eo,ea)?(eg=ei.substr(ec,2),ef=!0):eg=FontManager.isFlagEmoji(ei.substr(ec,4))?ei.substr(ec,4):ei.substr(ec,2)):eo>56319?(ea=ei.charCodeAt(ec+1),FontManager.isVariationSelector(eo)&&(ef=!0)):FontManager.isZeroWidthJoiner(eo)&&(ef=!0,eh=!0),ef?(eu[eu.length-1]+=eg,ef=!1):eu.push(eg),ec+=eg.length;return eu},TextProperty.prototype.completeTextData=function(ei){ei.__complete=!0;var eo=this.elem.globalData.fontManager,ea=this.data,eu=[],ec=0,ed=ea.m.g,ef=0,eh=0,eg=0,em=[],eb=0,ew=0,e_=eo.getFontByName(ei.f),eS=0,eE=getFontProperties(e_);ei.fWeight=eE.weight,ei.fStyle=eE.style,ei.finalSize=ei.s,ei.finalText=this.buildFinalText(ei.t),ek=ei.finalText.length,ei.finalLineHeight=ei.lh;var eA=ei.tr/1e3*ei.finalSize;if(ei.sz)for(var eT,ek,eC,eO,eI,eP,eD,eN,eM,ej,eR=!0,eL=ei.sz[0],eF=ei.sz[1];eR;){ej=this.buildFinalText(ei.t),eM=0,eb=0,ek=ej.length,eA=ei.tr/1e3*ei.finalSize;var eB=-1;for(eT=0;eTeL&&" "!==ej[eT]?(-1===eB?ek+=1:eT=eB,eM+=ei.finalLineHeight||1.2*ei.finalSize,ej.splice(eT,eB===eT?1:0,"\r"),eB=-1,eb=0):eb+=eS+eA;eM+=e_.ascent*ei.finalSize/100,this.canResize&&ei.finalSize>this.minimumFontSize&&eFew?eb:ew,eb=-2*eA,eO="",eC=!0,eg+=1):eO=eH,eo.chars?(eD=eo.getCharData(eH,e_.fStyle,eo.getFontByName(ei.f).fFamily),eS=eC?0:eD.w*ei.finalSize/100):eS=eo.measureText(eO,ei.f,ei.finalSize)," "===eH?eU+=eS+eA:(eb+=eS+eA+eU,eU=0),eu.push({l:eS,an:eS,add:ef,n:eC,anIndexes:[],val:eO,line:eg,animatorJustifyOffset:0}),2==ed){if(ef+=eS,""===eO||" "===eO||eT===ek-1){for((""===eO||" "===eO)&&(ef-=eS);eh<=eT;)eu[eh].an=ef,eu[eh].ind=ec,eu[eh].extra=eS,eh+=1;ec+=1,ef=0}}else if(3==ed){if(ef+=eS,""===eO||eT===ek-1){for(""===eO&&(ef-=eS);eh<=eT;)eu[eh].an=ef,eu[eh].ind=ec,eu[eh].extra=eS,eh+=1;ef=0,ec+=1}}else eu[ec].ind=ec,eu[ec].extra=0,ec+=1;if(ei.l=eu,ew=eb>ew?eb:ew,em.push(eb),ei.sz)ei.boxWidth=ei.sz[0],ei.justifyOffset=0;else switch(ei.boxWidth=ew,ei.j){case 1:ei.justifyOffset=-ei.boxWidth;break;case 2:ei.justifyOffset=-ei.boxWidth/2;break;default:ei.justifyOffset=0}ei.lineWidths=em;var eG=ea.a;eP=eG.length;var eV=[];for(eI=0;eI0?ec=this.ne.v/100:ed=-this.ne.v/100,this.xe.v>0?ef=1-this.xe.v/100:eh=1+this.xe.v/100;var eg=BezierFactory.getBezierEasing(ec,ed,ef,eh).get,em=0,eb=this.finalS,ew=this.finalE,e_=this.data.sh;if(2===e_)em=eg(em=ew===eb?eu>=ew?1:0:ei(0,eo(.5/(ew-eb)+(eu-eb)/(ew-eb),1)));else if(3===e_)em=eg(em=ew===eb?eu>=ew?0:1:1-ei(0,eo(.5/(ew-eb)+(eu-eb)/(ew-eb),1)));else if(4===e_)ew===eb?em=0:(em=ei(0,eo(.5/(ew-eb)+(eu-eb)/(ew-eb),1)))<.5?em*=2:em=1-2*(em-.5),em=eg(em);else if(5===e_){if(ew===eb)em=0;else{var eS=ew-eb,eE=-eS/2+(eu=eo(ei(0,eu+.5-eb),ew-eb)),eA=eS/2;em=Math.sqrt(1-eE*eE/(eA*eA))}em=eg(em)}else 6===e_?em=eg(em=ew===eb?0:(1+Math.cos(Math.PI+2*Math.PI*(eu=eo(ei(0,eu+.5-eb),ew-eb))/(ew-eb)))/2):(eu>=ea(eb)&&(em=eu-eb<0?ei(0,eo(eo(ew,1)-(eb-eu),1)):ei(0,eo(ew-eu,1))),em=eg(em));if(100!==this.sm.v){var eT=.01*this.sm.v;0===eT&&(eT=1e-8);var ek=.5-.5*eT;em1&&(em=1)}return em*this.a.v},getValue:function(ei){this.iterateDynamicProperties(),this._mdf=ei||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,ei&&2===this.data.r&&(this.e.v=this._currentTextLength);var eo=2===this.data.r?1:100/this.data.totalChars,ea=this.o.v/eo,eu=this.s.v/eo+ea,ec=this.e.v/eo+ea;if(eu>ec){var ed=eu;eu=ec,ec=ed}this.finalS=eu,this.finalE=ec}},extendPrototype([DynamicPropertyContainer],eu),{getTextSelectorProp:function(ei,eo,ea){return new eu(ei,eo,ea)}}}();function TextAnimatorDataProperty(ei,eo,ea){var eu={propType:!1},ec=PropertyFactory.getProp,ed=eo.a;this.a={r:ed.r?ec(ei,ed.r,0,degToRads,ea):eu,rx:ed.rx?ec(ei,ed.rx,0,degToRads,ea):eu,ry:ed.ry?ec(ei,ed.ry,0,degToRads,ea):eu,sk:ed.sk?ec(ei,ed.sk,0,degToRads,ea):eu,sa:ed.sa?ec(ei,ed.sa,0,degToRads,ea):eu,s:ed.s?ec(ei,ed.s,1,.01,ea):eu,a:ed.a?ec(ei,ed.a,1,0,ea):eu,o:ed.o?ec(ei,ed.o,0,.01,ea):eu,p:ed.p?ec(ei,ed.p,1,0,ea):eu,sw:ed.sw?ec(ei,ed.sw,0,0,ea):eu,sc:ed.sc?ec(ei,ed.sc,1,0,ea):eu,fc:ed.fc?ec(ei,ed.fc,1,0,ea):eu,fh:ed.fh?ec(ei,ed.fh,0,0,ea):eu,fs:ed.fs?ec(ei,ed.fs,0,.01,ea):eu,fb:ed.fb?ec(ei,ed.fb,0,.01,ea):eu,t:ed.t?ec(ei,ed.t,0,0,ea):eu},this.s=TextSelectorProp.getTextSelectorProp(ei,eo.s,ea),this.s.t=eo.s.t}function TextAnimatorProperty(ei,eo,ea){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=ei,this._renderType=eo,this._elem=ea,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(ea)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var ei,eo,ea=this._textData.a.length,eu=PropertyFactory.getProp;for(ei=0;ei=eV+t_||!eJ?(e3=(eV+t_-eW)/eH.partialLength,em=e$.point[0]+(eH.point[0]-e$.point[0])*e3,eb=e$.point[1]+(eH.point[1]-e$.point[1])*e3,eN.translate(-eI[0]*eR[eB].an*.005,-(.01*(eI[1]*e8))),eK=!1):eJ&&(eW+=eH.partialLength,(eY+=1)>=eJ.length&&(eY=0,eQ[eZ+=1]?eJ=eQ[eZ].points:e5.v.c?(eY=0,eJ=eQ[eZ=0].points):(eW-=eH.partialLength,eJ=null)),eJ&&(e$=eH,eX=(eH=eJ[eY]).partialLength));eg=eR[eB].an/2-eR[eB].add,eN.translate(-eg,0,0)}else eg=eR[eB].an/2-eR[eB].add,eN.translate(-eg,0,0),eN.translate(-eI[0]*eR[eB].an*.005,-eI[1]*e8*.01,0);for(ec=0;eceA?this.textSpans[eA].span:createNS(ed?"g":"text"),eS<=eA){if(ek.setAttribute("stroke-linecap","butt"),ek.setAttribute("stroke-linejoin","round"),ek.setAttribute("stroke-miterlimit","4"),this.textSpans[eA].span=ek,ed){var eE=createNS("g");ek.appendChild(eE),this.textSpans[eA].childSpan=eE}this.textSpans[eA].span=ek,this.layerElement.appendChild(ek)}ek.style.display="inherit"}if(ef.reset(),eg&&(ec[eA].n&&(em=-e_,eb+=ei.yOffset+(ew?1:0),ew=!1),this.applyTextPropertiesToMatrix(ei,ef,ec[eA].line,em,eb),em+=(ec[eA].l||0)+e_),ed){if(1===(eC=this.globalData.fontManager.getCharData(ei.finalText[eA],eo.fStyle,this.globalData.fontManager.getFontByName(ei.f).fFamily)).t)eO=new SVGCompElement(eC.data,this.globalData,this);else{var eA,eT,ek,eC,eO,eI=emptyShapeData;eC.data&&eC.data.shapes&&(eI=this.buildShapeData(eC.data,ei.finalSize)),eO=new SVGShapeElement(eI,this.globalData,this)}if(this.textSpans[eA].glyph){var eP=this.textSpans[eA].glyph;this.textSpans[eA].childSpan.removeChild(eP.layerElement),eP.destroy()}this.textSpans[eA].glyph=eO,eO._debug=!0,eO.prepareFrame(0),eO.renderFrame(),this.textSpans[eA].childSpan.appendChild(eO.layerElement),1===eC.t&&this.textSpans[eA].childSpan.setAttribute("transform","scale("+ei.finalSize/100+","+ei.finalSize/100+")")}else eg&&ek.setAttribute("transform","translate("+ef.props[12]+","+ef.props[13]+")"),ek.textContent=ec[eA].val,ek.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}eg&&ek&&ek.setAttribute("d",eh)}else{var eD=this.textContainer,eN="start";switch(ei.j){case 1:eN="end";break;case 2:eN="middle";break;default:eN="start"}eD.setAttribute("text-anchor",eN),eD.setAttribute("letter-spacing",e_);var eM=this.buildTextContents(ei.finalText);for(eA=0,eT=eM.length,eb=ei.ps?ei.ps[1]+ei.ascent:0;eA=0;eo-=1)(this.completeLayers||this.elements[eo])&&this.elements[eo].prepareFrame(ei-this.layers[eo].st);if(this.globalData._mdf)for(eo=0;eo=0;eo-=1)(this.completeLayers||this.elements[eo])&&(this.elements[eo].prepareFrame(this.renderedFrame-this.layers[eo].st),this.elements[eo]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var ei,eo=this.layers.length;for(ei=0;ei=0;ea-=1)ei.finalTransform.multiply(ei.transforms[ea].transform.mProps.v);ei._mdf=ec},processSequences:function(ei){var eo,ea=this.sequenceList.length;for(eo=0;eo=1){this.buffers=[];var ei=this.globalData.canvasContext,eo=assetLoader.createCanvas(ei.canvas.width,ei.canvas.height);this.buffers.push(eo);var ea=assetLoader.createCanvas(ei.canvas.width,ei.canvas.height);this.buffers.push(ea),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var ei=this.globalData;if(ei.blendMode!==this.data.bm){ei.blendMode=this.data.bm;var eo=getBlendMode(this.data.bm);ei.canvasContext.globalCompositeOperation=eo}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(ei){ei.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var ei=this.buffers[0].getContext("2d");this.clearCanvas(ei),ei.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var ei=this.buffers[1],eo=ei.getContext("2d");if(this.clearCanvas(eo),eo.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var ea=assetLoader.getLumaCanvas(this.canvasContext.canvas);ea.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(ea,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(ei,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(ei){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||ei)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var eo=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(eo),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(eo),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(ei,eo){var ea={data:ei,type:ei.ty,preTransforms:this.transformsManager.addTransformSequence(eo),transforms:[],elements:[],closed:!0===ei.hd},eu={};if("fl"===ei.ty||"st"===ei.ty?(eu.c=PropertyFactory.getProp(this,ei.c,1,255,this),eu.c.k||(ea.co="rgb("+bmFloor(eu.c.v[0])+","+bmFloor(eu.c.v[1])+","+bmFloor(eu.c.v[2])+")")):("gf"===ei.ty||"gs"===ei.ty)&&(eu.s=PropertyFactory.getProp(this,ei.s,1,null,this),eu.e=PropertyFactory.getProp(this,ei.e,1,null,this),eu.h=PropertyFactory.getProp(this,ei.h||{k:0},0,.01,this),eu.a=PropertyFactory.getProp(this,ei.a||{k:0},0,degToRads,this),eu.g=new GradientProperty(this,ei.g,this)),eu.o=PropertyFactory.getProp(this,ei.o,0,.01,this),"st"===ei.ty||"gs"===ei.ty){if(ea.lc=lineCapEnum[ei.lc||2],ea.lj=lineJoinEnum[ei.lj||2],1==ei.lj&&(ea.ml=ei.ml),eu.w=PropertyFactory.getProp(this,ei.w,0,null,this),eu.w.k||(ea.wi=eu.w.v),ei.d){var ec=new DashProperty(this,ei.d,"canvas",this);eu.d=ec,eu.d.k||(ea.da=eu.d.dashArray,ea.do=eu.d.dashoffset[0])}}else ea.r=2===ei.r?"evenodd":"nonzero";return this.stylesList.push(ea),eu.style=ea,eu},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(ei){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,ei.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,ei,this)}}},CVShapeElement.prototype.createShapeElement=function(ei){var eo=new CVShapeData(this,ei,this.stylesList,this.transformsManager);return this.shapes.push(eo),this.addShapeToModifiers(eo),eo},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var ei,eo=this.itemsData.length;for(ei=0;ei=0;ed-=1){if((eg=this.searchProcessedElement(ei[ed]))?eo[ed]=ea[eg-1]:ei[ed]._shouldRender=eu,"fl"===ei[ed].ty||"st"===ei[ed].ty||"gf"===ei[ed].ty||"gs"===ei[ed].ty)eg?eo[ed].style.closed=!1:eo[ed]=this.createStyleElement(ei[ed],eE),e_.push(eo[ed].style);else if("gr"===ei[ed].ty){if(eg)for(ef=0,eh=eo[ed].it.length;ef=0;ec-=1)"tr"===eo[ec].ty?(ed=ea[ec].transform,this.renderShapeTransform(ei,ed)):"sh"===eo[ec].ty||"el"===eo[ec].ty||"rc"===eo[ec].ty||"sr"===eo[ec].ty?this.renderPath(eo[ec],ea[ec]):"fl"===eo[ec].ty?this.renderFill(eo[ec],ea[ec],ed):"st"===eo[ec].ty?this.renderStroke(eo[ec],ea[ec],ed):"gf"===eo[ec].ty||"gs"===eo[ec].ty?this.renderGradientFill(eo[ec],ea[ec],ed):"gr"===eo[ec].ty?this.renderShape(ed,eo[ec].it,ea[ec].it):eo[ec].ty;eu&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(ei,eo){if(this._isFirstFrame||eo._mdf||ei.transforms._mdf){var ea,eu,ec,ed=ei.trNodes,ef=eo.paths,eh=ef._length;ed.length=0;var eg=ei.transforms.finalTransform;for(ec=0;ec=1?ew=.99:ew<=-1&&(ew=-.99);var e_=em*ew,eS=Math.cos(eb+eo.a.v)*e_+eh[0],eE=Math.sin(eb+eo.a.v)*e_+eh[1];ec=ef.createRadialGradient(eS,eE,0,eh[0],eh[1],em)}var eA=ei.g.p,eT=eo.g.c,ek=1;for(ed=0;edeh&&"xMidYMid slice"===eg||efec&&"meet"===eh||edec&&"slice"===eh)?this.transformCanvas.tx=(ea-this.transformCanvas.w*(eu/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===em&&(edec&&"slice"===eh)?this.transformCanvas.tx=(ea-this.transformCanvas.w*(eu/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,"YMid"===eb&&(ed>ec&&"meet"===eh||edec&&"meet"===eh||ed=0;ei-=1)this.elements[ei]&&this.elements[ei].destroy&&this.elements[ei].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(ei,eo){if((this.renderedFrame!==ei||!0!==this.renderConfig.clearCanvas||eo)&&!this.destroyed&&-1!==ei){this.renderedFrame=ei,this.globalData.frameNum=ei-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||eo,this.globalData.projectInterface.currentFrame=ei;var ea,eu=this.layers.length;for(this.completeLayers||this.checkLayers(ei),ea=eu-1;ea>=0;ea-=1)(this.completeLayers||this.elements[ea])&&this.elements[ea].prepareFrame(ei-this.layers[ea].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),ea=eu-1;ea>=0;ea-=1)(this.completeLayers||this.elements[ea])&&this.elements[ea].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(ei){var eo=this.elements;if(!eo[ei]&&99!==this.layers[ei].ty){var ea=this.createItem(this.layers[ei],this,this.globalData);eo[ei]=ea,ea.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var ei=2*this._length,eo=0;for(eo=this._length;eo=0;ei-=1)(this.completeLayers||this.elements[ei])&&this.elements[ei].renderFrame()},CVCompElement.prototype.destroy=function(){var ei;for(ei=this.layers.length-1;ei>=0;ei-=1)this.elements[ei]&&this.elements[ei].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(ei){return new CVCompElement(ei,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(ei){return new CVCompElement(ei,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var ei=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var eo=this.finalTransform.mat.toCSS();ei.transform=eo,ei.webkitTransform=eo}this.finalTransform._opMdf&&(ei.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var ei;this.data.hasMask?((ei=createNS("rect")).setAttribute("width",this.data.sw),ei.setAttribute("height",this.data.sh),ei.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((ei=createTag("div")).style.width=this.data.sw+"px",ei.style.height=this.data.sh+"px",ei.style.backgroundColor=this.data.sc),this.layerElement.appendChild(ei)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var ei;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),ei=this.svgElement;else{ei=createNS("svg");var eo=this.comp.data?this.comp.data:this.globalData.compSize;ei.setAttribute("width",eo.w),ei.setAttribute("height",eo.h),ei.appendChild(this.shapesContainer),this.layerElement.appendChild(ei)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=ei},HShapeElement.prototype.getTransformedPoint=function(ei,eo){var ea,eu=ei.length;for(ea=0;ea0&&eh<1&&ew[e_].push(this.calculateF(eh,ei,eo,ea,eu,e_)):(eg=ed*ed-4*ef*ec)>=0&&((em=(-ed+bmSqrt(eg))/(2*ec))>0&&em<1&&ew[e_].push(this.calculateF(em,ei,eo,ea,eu,e_)),(eb=(-ed-bmSqrt(eg))/(2*ec))>0&&eb<1&&ew[e_].push(this.calculateF(eb,ei,eo,ea,eu,e_))));this.shapeBoundingBox.left=bmMin.apply(null,ew[0]),this.shapeBoundingBox.top=bmMin.apply(null,ew[1]),this.shapeBoundingBox.right=bmMax.apply(null,ew[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,ew[1])},HShapeElement.prototype.calculateF=function(ei,eo,ea,eu,ec,ed){return bmPow(1-ei,3)*eo[ed]+3*bmPow(1-ei,2)*ei*ea[ed]+3*(1-ei)*bmPow(ei,2)*eu[ed]+bmPow(ei,3)*ec[ed]},HShapeElement.prototype.calculateBoundingBox=function(ei,eo){var ea,eu=ei.length;for(ea=0;eaea&&(ea=ec)}ea*=ei.mult}else ea=ei.v*ei.mult;eo.x-=ea,eo.xMax+=ea,eo.y-=ea,eo.yMax+=ea},HShapeElement.prototype.currentBoxContains=function(ei){return this.currentBBox.x<=ei.x&&this.currentBBox.y<=ei.y&&this.currentBBox.width+this.currentBBox.x>=ei.x+ei.width&&this.currentBBox.height+this.currentBBox.y>=ei.y+ei.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var ei=this.tempBoundingBox,eo=999999;if(ei.x=eo,ei.xMax=-eo,ei.y=eo,ei.yMax=-eo,this.calculateBoundingBox(this.itemsData,ei),ei.width=ei.xMax=0;ea-=1){var eo=this.hierarchy[ea].finalTransform.mProp;this.mat.translate(-eo.p.v[0],-eo.p.v[1],eo.p.v[2]),this.mat.rotateX(-eo.or.v[0]).rotateY(-eo.or.v[1]).rotateZ(eo.or.v[2]),this.mat.rotateX(-eo.rx.v).rotateY(-eo.ry.v).rotateZ(eo.rz.v),this.mat.scale(1/eo.s.v[0],1/eo.s.v[1],1/eo.s.v[2]),this.mat.translate(eo.a.v[0],eo.a.v[1],eo.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var ea,eu,ec,ed=Math.sqrt(Math.pow((ec=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]])[0],2)+Math.pow(ec[1],2)+Math.pow(ec[2],2)),ef=[ec[0]/ed,ec[1]/ed,ec[2]/ed],eh=Math.sqrt(ef[2]*ef[2]+ef[0]*ef[0]),eg=Math.atan2(ef[1],eh),em=Math.atan2(ef[0],-ef[2]);this.mat.rotateY(em).rotateX(-eg)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var eb=!this._prevMat.equals(this.mat);if((eb||this.pe._mdf)&&this.comp.threeDElements){for(ea=0,eu=this.comp.threeDElements.length;ea=ei)return this.threeDElements[eo].perspectiveElem;eo+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(ei,eo){var ea,eu,ec=createTag("div");styleDiv(ec);var ed=createTag("div");if(styleDiv(ed),"3d"===eo){(ea=ec.style).width=this.globalData.compSize.w+"px",ea.height=this.globalData.compSize.h+"px";var ef="50% 50%";ea.webkitTransformOrigin=ef,ea.mozTransformOrigin=ef,ea.transformOrigin=ef;var eh="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(eu=ed.style).transform=eh,eu.webkitTransform=eh}ec.appendChild(ed);var eg={container:ed,perspectiveElem:ec,startPos:ei,endPos:ei,type:eo};return this.threeDElements.push(eg),eg},HybridRendererBase.prototype.build3dContainers=function(){var ei,eo,ea=this.layers.length,eu="";for(ei=0;ei=0;ei-=1)this.resizerElem.appendChild(this.threeDElements[ei].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(ei,eo){for(var ea=0,eu=this.threeDElements.length;eaef?(ei=ec/this.globalData.compSize.w,eo=ec/this.globalData.compSize.w,ea=0,eu=(ed-this.globalData.compSize.h*(ec/this.globalData.compSize.w))/2):(ei=ed/this.globalData.compSize.h,eo=ed/this.globalData.compSize.h,ea=(ec-this.globalData.compSize.w*(ed/this.globalData.compSize.h))/2,eu=0);var eh=this.resizerElem.style;eh.webkitTransform="matrix3d("+ei+",0,0,0,0,"+eo+",0,0,0,0,1,0,"+ea+","+eu+",0,1)",eh.transform=eh.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var ei,eo=this.globalData.compSize.w,ea=this.globalData.compSize.h,eu=this.threeDElements.length;for(ei=0;ei=eb;)ei/=2,eo/=2,ea>>>=1;return(ei+ea)/eo};return eI.int32=function(){return 0|eO.g(4)},eI.quick=function(){return eO.g(4)/4294967296},eI.double=eI,eT(eC(eO.S),ei),(eu.pass||ef||function(ei,ea,eu,ec){return(ec&&(ec.S&&eE(ec,eO),ei.state=function(){return eE(eO,{})}),eu)?(eo[eh]=ei,ea):ei})(eI,e_,"global"in eu?eu.global:this==eo,eu.state)}function eS(ei){var eo,ea=ei.length,eu=this,ed=0,ef=eu.i=eu.j=0,eh=eu.S=[];for(ea||(ei=[ea++]);edea){var eu=ea;ea=eo,eo=eu}return Math.min(Math.max(ei,eo),ea)}function radiansToDegrees(ei){return ei/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(ei){return ei*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(ei,eo){if("number"==typeof ei||ei instanceof Number)return eo=eo||0,Math.abs(ei-eo);eo||(eo=helperLengthArray);var ea,eu=Math.min(ei.length,eo.length),ec=0;for(ea=0;ea.5?em/(2-ef-eh):em/(ef+eh),ef){case eu:eo=(ec-ed)/em+(ec1&&(ea-=1),ea<1/6)?ei+(eo-ei)*6*ea:ea<.5?eo:ea<2/3?ei+(eo-ei)*(2/3-ea)*6:ei}function hslToRgb(ei){var eo,ea,eu,ec=ei[0],ed=ei[1],ef=ei[2];if(0===ed)eo=ef,eu=ef,ea=ef;else{var eh=ef<.5?ef*(1+ed):ef+ed-ef*ed,eg=2*ef-eh;eo=hue2rgb(eg,eh,ec+1/3),ea=hue2rgb(eg,eh,ec),eu=hue2rgb(eg,eh,ec-1/3)}return[eo,ea,eu,ei[3]]}function linear(ei,eo,ea,eu,ec){if((void 0===eu||void 0===ec)&&(eu=eo,ec=ea,eo=0,ea=1),ea=ea)return ec;var eh=ea===eo?0:(ei-eo)/(ea-eo);if(!eu.length)return eu+(ec-eu)*eh;var eg=eu.length,em=createTypedArray("float32",eg);for(ed=0;ed1){for(eu=0;eu1?eo=1:eo<0&&(eo=0);var ef=ei(eo);if($bm_isInstanceOfArray(ec)){var eh,eg=ec.length,em=createTypedArray("float32",eg);for(eh=0;ehdata.k[eo].t&&eidata.k[eo+1].t-ei?(ea=eo+2,eu=data.k[eo+1].t):(ea=eo+1,eu=data.k[eo].t);break}}-1===ea&&(ea=eo+1,eu=data.k[eo].t)}}else ea=0,eu=0;var ed={};return ed.index=ea,ed.time=eu/elem.comp.globalData.frameRate,ed}function key(ei){if(!data.k.length||"number"==typeof data.k[0])throw Error("The property has no keyframe at index "+ei);ei-=1,eo={time:data.k[ei].t/elem.comp.globalData.frameRate,value:[]};var eo,ea,eu,ec=Object.prototype.hasOwnProperty.call(data.k[ei],"s")?data.k[ei].s:data.k[ei-1].e;for(ea=0,eu=ec.length;eaem.length-1)&&(eo=em.length-1),eu=eb-(ec=em[em.length-1-eo].t)),"pingpong"===ei){if(Math.floor((eg-ec)/eu)%2!=0)return this.getValueAtTime((eu-(eg-ec)%eu+ec)/this.comp.globalData.frameRate,0)}else if("offset"===ei){var ew=this.getValueAtTime(ec/this.comp.globalData.frameRate,0),e_=this.getValueAtTime(eb/this.comp.globalData.frameRate,0),eS=this.getValueAtTime(((eg-ec)%eu+ec)/this.comp.globalData.frameRate,0),eE=Math.floor((eg-ec)/eu);if(this.pv.length){for(ed=0,ef=(eh=Array(ew.length)).length;ed=eb)return this.pv;if(ea?(eu=eo?Math.abs(this.elem.comp.globalData.frameRate*eo):Math.max(0,this.elem.data.op-eb),ec=eb+eu):((!eo||eo>em.length-1)&&(eo=em.length-1),eu=(ec=em[eo].t)-eb),"pingpong"===ei){if(Math.floor((eb-eg)/eu)%2==0)return this.getValueAtTime(((eb-eg)%eu+eb)/this.comp.globalData.frameRate,0)}else if("offset"===ei){var ew=this.getValueAtTime(eb/this.comp.globalData.frameRate,0),e_=this.getValueAtTime(ec/this.comp.globalData.frameRate,0),eS=this.getValueAtTime((eu-(eb-eg)%eu+eb)/this.comp.globalData.frameRate,0),eE=Math.floor((eb-eg)/eu)+1;if(this.pv.length){for(ed=0,ef=(eh=Array(ew.length)).length;ed1?(ef-ed)/(eo-1):1,eg=0,em=0;for(ea=this.pv.length?createTypedArray("float32",this.pv.length):0;egef){var eb=eh,ew=eu.c&&eh===eg-1?0:eh+1,e_=(ef-em)/ed[eh].addedLength;ea=bez.getPointInSegment(eu.v[eb],eu.v[ew],eu.o[eb],eu.i[ew],e_,ed[eh]);break}em+=ed[eh].addedLength,eh+=1}return ea||(ea=eu.c?[eu.v[0][0],eu.v[0][1]]:[eu.v[eu._length-1][0],eu.v[eu._length-1][1]]),ea},vectorOnPath:function(ei,eo,ea){1==ei?ei=this.v.c:0==ei&&(ei=.999);var eu=this.pointOnPath(ei,eo),ec=this.pointOnPath(ei+.001,eo),ed=ec[0]-eu[0],ef=ec[1]-eu[1],eh=Math.sqrt(Math.pow(ed,2)+Math.pow(ef,2));return 0===eh?[0,0]:"tangent"===ea?[ed/eh,ef/eh]:[-ef/eh,ed/eh]},tangentOnPath:function(ei,eo){return this.vectorOnPath(ei,eo,"tangent")},normalOnPath:function(ei,eo){return this.vectorOnPath(ei,eo,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([eb],eg),extendPrototype([eb],em),em.prototype.getValueAtTime=eh,em.prototype.initiateExpression=ExpressionManager.initiateExpression;var ew=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(ei,eo,ea,eu,ec){var ed=ew(ei,eo,ea,eu,ec);return ed.propertyIndex=eo.ix,ed.lock=!1,3===ea?expressionHelpers.searchExpressions(ei,eo.pt,ed):4===ea&&expressionHelpers.searchExpressions(ei,eo.ks,ed),ed.k&&ei.addDynamicProperty(ed),ed}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function ei(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(ei,eo){var ea=this.calculateExpression(eo);if(ei.t!==ea){var eu={};return this.copyData(eu,ei),eu.t=ea.toString(),eu.__complete=!1,eu}return ei},TextProperty.prototype.searchProperty=function(){var ei=this.searchKeyframes(),eo=this.searchExpressions();return this.kf=ei||eo,this.kf},TextProperty.prototype.searchExpressions=ei}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(ei,eo){var ea,eu,ec=createNS("feMerge");for(ec.setAttribute("result",ei),eu=0;eu=eb?eE<0?eu:ec:eu+eS*Math.pow((ed-ei)/eE,1/ea),ew[e_]=ef,e_+=1,eh+=256/(eg-1);return ew.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(ei){if(ei||this.filterManager._mdf){var eo,ea=this.filterManager.effectElements;this.feFuncRComposed&&(ei||ea[3].p._mdf||ea[4].p._mdf||ea[5].p._mdf||ea[6].p._mdf||ea[7].p._mdf)&&(eo=this.getTableValue(ea[3].p.v,ea[4].p.v,ea[5].p.v,ea[6].p.v,ea[7].p.v),this.feFuncRComposed.setAttribute("tableValues",eo),this.feFuncGComposed.setAttribute("tableValues",eo),this.feFuncBComposed.setAttribute("tableValues",eo)),this.feFuncR&&(ei||ea[10].p._mdf||ea[11].p._mdf||ea[12].p._mdf||ea[13].p._mdf||ea[14].p._mdf)&&(eo=this.getTableValue(ea[10].p.v,ea[11].p.v,ea[12].p.v,ea[13].p.v,ea[14].p.v),this.feFuncR.setAttribute("tableValues",eo)),this.feFuncG&&(ei||ea[17].p._mdf||ea[18].p._mdf||ea[19].p._mdf||ea[20].p._mdf||ea[21].p._mdf)&&(eo=this.getTableValue(ea[17].p.v,ea[18].p.v,ea[19].p.v,ea[20].p.v,ea[21].p.v),this.feFuncG.setAttribute("tableValues",eo)),this.feFuncB&&(ei||ea[24].p._mdf||ea[25].p._mdf||ea[26].p._mdf||ea[27].p._mdf||ea[28].p._mdf)&&(eo=this.getTableValue(ea[24].p.v,ea[25].p.v,ea[26].p.v,ea[27].p.v,ea[28].p.v),this.feFuncB.setAttribute("tableValues",eo)),this.feFuncA&&(ei||ea[31].p._mdf||ea[32].p._mdf||ea[33].p._mdf||ea[34].p._mdf||ea[35].p._mdf)&&(eo=this.getTableValue(ea[31].p.v,ea[32].p.v,ea[33].p.v,ea[34].p.v,ea[35].p.v),this.feFuncA.setAttribute("tableValues",eo))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(ei){if(ei||this.filterManager._mdf){if((ei||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),ei||this.filterManager.effectElements[0].p._mdf){var eo=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*eo[0]),Math.round(255*eo[1]),Math.round(255*eo[2])))}if((ei||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),ei||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var ea=this.filterManager.effectElements[3].p.v,eu=(this.filterManager.effectElements[2].p.v-90)*degToRads,ec=ea*Math.cos(eu),ed=ea*Math.sin(eu);this.feOffset.setAttribute("dx",ec),this.feOffset.setAttribute("dy",ed)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(ei,eo,ea){this.initialized=!1,this.filterManager=eo,this.filterElem=ei,this.elem=ea,ea.matteElement=createNS("g"),ea.matteElement.appendChild(ea.layerElement),ea.matteElement.appendChild(ea.transformedElement),ea.baseElement=ea.matteElement}function SVGGaussianBlurEffect(ei,eo,ea,eu){ei.setAttribute("x","-100%"),ei.setAttribute("y","-100%"),ei.setAttribute("width","300%"),ei.setAttribute("height","300%"),this.filterManager=eo;var ec=createNS("feGaussianBlur");ec.setAttribute("result",eu),ei.appendChild(ec),this.feGaussianBlur=ec}function TransformEffect(){}function SVGTransformEffect(ei,eo){this.init(eo)}function CVTransformEffect(ei){this.init(ei)}return SVGMatte3Effect.prototype.findSymbol=function(ei){for(var eo=0,ea=_svgMatteSymbols.length;eo>>0;for(eo=0;eo0)for(ea=0;ea=0?ea?"+":"":"-")+Math.pow(10,Math.max(0,ec)).toString().substr(1)+eu}var eK=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,eY=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,eZ={},e$={};function eJ(ei,eo,ea,eu){var ec=eu;"string"==typeof eu&&(ec=function(){return this[eu]()}),ei&&(e$[ei]=ec),eo&&(e$[eo[0]]=function(){return eW(ec.apply(this,arguments),eo[1],eo[2])}),ea&&(e$[ea]=function(){return this.localeData().ordinal(ec.apply(this,arguments),ei)})}function eQ(ei){return ei.match(/\[[\s\S]/)?ei.replace(/^\[|\]$/g,""):ei.replace(/\\/g,"")}function eX(ei){var eo,ea,eu=ei.match(eK);for(eo=0,ea=eu.length;eo=0&&eY.test(ei);)ei=ei.replace(eY,eu),eY.lastIndex=0,ea-=1;return ei}var e5={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function e4(ei){var eo=this._longDateFormat[ei],ea=this._longDateFormat[ei.toUpperCase()];return eo||!ea?eo:(this._longDateFormat[ei]=ea.match(eK).map(function(ei){return"MMMM"===ei||"MM"===ei||"DD"===ei||"dddd"===ei?ei.slice(1):ei}).join(""),this._longDateFormat[ei])}var e6="Invalid date";function e8(){return this._invalidDate}var e9="%d",e7=/\d{1,2}/;function ta(ei){return this._ordinal.replace("%d",ei)}var tu={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tc(ei,eo,ea,eu){var ec=this._relativeTime[ea];return eF(ec)?ec(ei,eo,ea,eu):ec.replace(/%d/i,ei)}function td(ei,eo){var ea=this._relativeTime[ei>0?"future":"past"];return eF(ea)?ea(eo):ea.replace(/%s/i,eo)}var tf={};function tp(ei,eo){var ea=ei.toLowerCase();tf[ea]=tf[ea+"s"]=tf[eo]=ei}function tg(ei){return"string"==typeof ei?tf[ei]||tf[ei.toLowerCase()]:void 0}function tm(ei){var eo,ea,eu={};for(ea in ei)ed(ei,ea)&&(eo=tg(ea))&&(eu[eo]=ei[ea]);return eu}var tv={};function tb(ei,eo){tv[ei]=eo}function tw(ei){var eo,ea=[];for(eo in ei)ed(ei,eo)&&ea.push({unit:eo,priority:tv[eo]});return ea.sort(function(ei,eo){return ei.priority-eo.priority}),ea}function t_(ei){return ei%4==0&&ei%100!=0||ei%400==0}function tS(ei){return ei<0?Math.ceil(ei)||0:Math.floor(ei)}function tE(ei){var eo=+ei,ea=0;return 0!==eo&&isFinite(eo)&&(ea=tS(eo)),ea}function tA(ei,ea){return function(eu){return null!=eu?(tk(this,ei,eu),eo.updateOffset(this,ea),this):tT(this,ei)}}function tT(ei,eo){return ei.isValid()?ei._d["get"+(ei._isUTC?"UTC":"")+eo]():NaN}function tk(ei,eo,ea){ei.isValid()&&!isNaN(ea)&&("FullYear"===eo&&t_(ei.year())&&1===ei.month()&&29===ei.date()?(ea=tE(ea),ei._d["set"+(ei._isUTC?"UTC":"")+eo](ea,ei.month(),rI(ea,ei.month()))):ei._d["set"+(ei._isUTC?"UTC":"")+eo](ea))}function tC(ei){return eF(this[ei=tg(ei)])?this[ei]():this}function tO(ei,eo){if("object"==typeof ei){var ea,eu=tw(ei=tm(ei)),ec=eu.length;for(ea=0;ea68?1900:2e3)};var rK=tA("FullYear",!0);function rY(){return t_(this.year())}function rZ(ei,eo,ea,eu,ec,ed,ef){var eh;return ei<100&&ei>=0?isFinite((eh=new Date(ei+400,eo,ea,eu,ec,ed,ef)).getFullYear())&&eh.setFullYear(ei):eh=new Date(ei,eo,ea,eu,ec,ed,ef),eh}function r$(ei){var eo,ea;return ei<100&&ei>=0?(ea=Array.prototype.slice.call(arguments),ea[0]=ei+400,isFinite((eo=new Date(Date.UTC.apply(null,ea))).getUTCFullYear())&&eo.setUTCFullYear(ei)):eo=new Date(Date.UTC.apply(null,arguments)),eo}function rJ(ei,eo,ea){var eu=7+eo-ea;return-((7+r$(ei,0,eu).getUTCDay()-eo)%7)+eu-1}function rQ(ei,eo,ea,eu,ec){var ed,ef,eh=1+7*(eo-1)+(7+ea-eu)%7+rJ(ei,eu,ec);return eh<=0?ef=rW(ed=ei-1)+eh:eh>rW(ei)?(ed=ei+1,ef=eh-rW(ei)):(ed=ei,ef=eh),{year:ed,dayOfYear:ef}}function rX(ei,eo,ea){var eu,ec,ed=rJ(ei.year(),eo,ea),ef=Math.floor((ei.dayOfYear()-ed-1)/7)+1;return ef<1?eu=ef+ni(ec=ei.year()-1,eo,ea):ef>ni(ei.year(),eo,ea)?(eu=ef-ni(ei.year(),eo,ea),ec=ei.year()+1):(ec=ei.year(),eu=ef),{week:eu,year:ec}}function ni(ei,eo,ea){var eu=rJ(ei,eo,ea),ec=rJ(ei+1,eo,ea);return(rW(ei)-eu+ec)/7}function no(ei){return rX(ei,this._week.dow,this._week.doy).week}eJ("w",["ww",2],"wo","week"),eJ("W",["WW",2],"Wo","isoWeek"),tp("week","w"),tp("isoWeek","W"),tb("week",5),tb("isoWeek",5),tQ("w",tB),tQ("ww",tB,tj),tQ("W",tB),tQ("WW",tB,tj),rh(["w","ww","W","WW"],function(ei,eo,ea,eu){eo[eu.substr(0,1)]=tE(ei)});var nu={dow:0,doy:6};function nd(){return this._week.dow}function nf(){return this._week.doy}function nh(ei){var eo=this.localeData().week(this);return null==ei?eo:this.add((ei-eo)*7,"d")}function np(ei){var eo=rX(this,1,4).week;return null==ei?eo:this.add((ei-eo)*7,"d")}function ng(ei,eo){return"string"!=typeof ei?ei:isNaN(ei)?"number"==typeof(ei=eo.weekdaysParse(ei))?ei:null:parseInt(ei,10)}function ny(ei,eo){return"string"==typeof ei?eo.weekdaysParse(ei)%7||7:isNaN(ei)?null:ei}function nw(ei,eo){return ei.slice(eo,7).concat(ei.slice(0,eo))}eJ("d",0,"do","day"),eJ("dd",0,0,function(ei){return this.localeData().weekdaysMin(this,ei)}),eJ("ddd",0,0,function(ei){return this.localeData().weekdaysShort(this,ei)}),eJ("dddd",0,0,function(ei){return this.localeData().weekdays(this,ei)}),eJ("e",0,0,"weekday"),eJ("E",0,0,"isoWeekday"),tp("day","d"),tp("weekday","e"),tp("isoWeekday","E"),tb("day",11),tb("weekday",11),tb("isoWeekday",11),tQ("d",tB),tQ("e",tB),tQ("E",tB),tQ("dd",function(ei,eo){return eo.weekdaysMinRegex(ei)}),tQ("ddd",function(ei,eo){return eo.weekdaysShortRegex(ei)}),tQ("dddd",function(ei,eo){return eo.weekdaysRegex(ei)}),rh(["dd","ddd","dddd"],function(ei,eo,ea,eu){var ec=ea._locale.weekdaysParse(ei,eu,ea._strict);null!=ec?eo.d=ec:eE(ea).invalidWeekday=ei}),rh(["d","e","E"],function(ei,eo,ea,eu){eo[eu]=tE(ei)});var n_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),nS="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),nE="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),nx=tJ,nA=tJ,nT=tJ;function nk(ei,eo){var ea=eu(this._weekdays)?this._weekdays:this._weekdays[ei&&!0!==ei&&this._weekdays.isFormat.test(eo)?"format":"standalone"];return!0===ei?nw(ea,this._week.dow):ei?ea[ei.day()]:ea}function nC(ei){return!0===ei?nw(this._weekdaysShort,this._week.dow):ei?this._weekdaysShort[ei.day()]:this._weekdaysShort}function nO(ei){return!0===ei?nw(this._weekdaysMin,this._week.dow):ei?this._weekdaysMin[ei.day()]:this._weekdaysMin}function nI(ei,eo,ea){var eu,ec,ed,ef=ei.toLocaleLowerCase();if(!this._weekdaysParse)for(eu=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];eu<7;++eu)ed=e_([2e3,1]).day(eu),this._minWeekdaysParse[eu]=this.weekdaysMin(ed,"").toLocaleLowerCase(),this._shortWeekdaysParse[eu]=this.weekdaysShort(ed,"").toLocaleLowerCase(),this._weekdaysParse[eu]=this.weekdays(ed,"").toLocaleLowerCase();return ea?"dddd"===eo?-1!==(ec=nK.call(this._weekdaysParse,ef))?ec:null:"ddd"===eo?-1!==(ec=nK.call(this._shortWeekdaysParse,ef))?ec:null:-1!==(ec=nK.call(this._minWeekdaysParse,ef))?ec:null:"dddd"===eo?-1!==(ec=nK.call(this._weekdaysParse,ef))||-1!==(ec=nK.call(this._shortWeekdaysParse,ef))?ec:-1!==(ec=nK.call(this._minWeekdaysParse,ef))?ec:null:"ddd"===eo?-1!==(ec=nK.call(this._shortWeekdaysParse,ef))||-1!==(ec=nK.call(this._weekdaysParse,ef))?ec:-1!==(ec=nK.call(this._minWeekdaysParse,ef))?ec:null:-1!==(ec=nK.call(this._minWeekdaysParse,ef))||-1!==(ec=nK.call(this._weekdaysParse,ef))?ec:-1!==(ec=nK.call(this._shortWeekdaysParse,ef))?ec:null}function nP(ei,eo,ea){var eu,ec,ed;if(this._weekdaysParseExact)return nI.call(this,ei,eo,ea);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),eu=0;eu<7;eu++){if(ec=e_([2e3,1]).day(eu),ea&&!this._fullWeekdaysParse[eu]&&(this._fullWeekdaysParse[eu]=RegExp("^"+this.weekdays(ec,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[eu]=RegExp("^"+this.weekdaysShort(ec,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[eu]=RegExp("^"+this.weekdaysMin(ec,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[eu]||(ed="^"+this.weekdays(ec,"")+"|^"+this.weekdaysShort(ec,"")+"|^"+this.weekdaysMin(ec,""),this._weekdaysParse[eu]=RegExp(ed.replace(".",""),"i")),ea&&"dddd"===eo&&this._fullWeekdaysParse[eu].test(ei)||ea&&"ddd"===eo&&this._shortWeekdaysParse[eu].test(ei))return eu;if(ea&&"dd"===eo&&this._minWeekdaysParse[eu].test(ei))return eu;if(!ea&&this._weekdaysParse[eu].test(ei))return eu}}function nD(ei){if(!this.isValid())return null!=ei?this:NaN;var eo=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=ei?(ei=ng(ei,this.localeData()),this.add(ei-eo,"d")):eo}function nN(ei){if(!this.isValid())return null!=ei?this:NaN;var eo=(this.day()+7-this.localeData()._week.dow)%7;return null==ei?eo:this.add(ei-eo,"d")}function nM(ei){if(!this.isValid())return null!=ei?this:NaN;if(null==ei)return this.day()||7;var eo=ny(ei,this.localeData());return this.day(this.day()%7?eo:eo-7)}function nj(ei){return this._weekdaysParseExact?(ed(this,"_weekdaysRegex")||nF.call(this),ei)?this._weekdaysStrictRegex:this._weekdaysRegex:(ed(this,"_weekdaysRegex")||(this._weekdaysRegex=nx),this._weekdaysStrictRegex&&ei?this._weekdaysStrictRegex:this._weekdaysRegex)}function nR(ei){return this._weekdaysParseExact?(ed(this,"_weekdaysRegex")||nF.call(this),ei)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(ed(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=nA),this._weekdaysShortStrictRegex&&ei?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function nL(ei){return this._weekdaysParseExact?(ed(this,"_weekdaysRegex")||nF.call(this),ei)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(ed(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nT),this._weekdaysMinStrictRegex&&ei?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nF(){function ei(ei,eo){return eo.length-ei.length}var eo,ea,eu,ec,ed,ef=[],eh=[],eg=[],em=[];for(eo=0;eo<7;eo++)ea=e_([2e3,1]).day(eo),eu=ru(this.weekdaysMin(ea,"")),ec=ru(this.weekdaysShort(ea,"")),ed=ru(this.weekdays(ea,"")),ef.push(eu),eh.push(ec),eg.push(ed),em.push(eu),em.push(ec),em.push(ed);ef.sort(ei),eh.sort(ei),eg.sort(ei),em.sort(ei),this._weekdaysRegex=RegExp("^("+em.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+eg.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+eh.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+ef.join("|")+")","i")}function nB(){return this.hours()%12||12}function nU(){return this.hours()||24}function nz(ei,eo){eJ(ei,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),eo)})}function nG(ei,eo){return eo._meridiemParse}function nV(ei){return"p"===(ei+"").toLowerCase().charAt(0)}eJ("H",["HH",2],0,"hour"),eJ("h",["hh",2],0,nB),eJ("k",["kk",2],0,nU),eJ("hmm",0,0,function(){return""+nB.apply(this)+eW(this.minutes(),2)}),eJ("hmmss",0,0,function(){return""+nB.apply(this)+eW(this.minutes(),2)+eW(this.seconds(),2)}),eJ("Hmm",0,0,function(){return""+this.hours()+eW(this.minutes(),2)}),eJ("Hmmss",0,0,function(){return""+this.hours()+eW(this.minutes(),2)+eW(this.seconds(),2)}),nz("a",!0),nz("A",!1),tp("hour","h"),tb("hour",13),tQ("a",nG),tQ("A",nG),tQ("H",tB),tQ("h",tB),tQ("k",tB),tQ("HH",tB,tj),tQ("hh",tB,tj),tQ("kk",tB,tj),tQ("hmm",tU),tQ("hmmss",tG),tQ("Hmm",tU),tQ("Hmmss",tG),rf(["H","HH"],rS),rf(["k","kk"],function(ei,eo,ea){var eu=tE(ei);eo[rS]=24===eu?0:eu}),rf(["a","A"],function(ei,eo,ea){ea._isPm=ea._locale.isPM(ei),ea._meridiem=ei}),rf(["h","hh"],function(ei,eo,ea){eo[rS]=tE(ei),eE(ea).bigHour=!0}),rf("hmm",function(ei,eo,ea){var eu=ei.length-2;eo[rS]=tE(ei.substr(0,eu)),eo[rE]=tE(ei.substr(eu)),eE(ea).bigHour=!0}),rf("hmmss",function(ei,eo,ea){var eu=ei.length-4,ec=ei.length-2;eo[rS]=tE(ei.substr(0,eu)),eo[rE]=tE(ei.substr(eu,2)),eo[rA]=tE(ei.substr(ec)),eE(ea).bigHour=!0}),rf("Hmm",function(ei,eo,ea){var eu=ei.length-2;eo[rS]=tE(ei.substr(0,eu)),eo[rE]=tE(ei.substr(eu))}),rf("Hmmss",function(ei,eo,ea){var eu=ei.length-4,ec=ei.length-2;eo[rS]=tE(ei.substr(0,eu)),eo[rE]=tE(ei.substr(eu,2)),eo[rA]=tE(ei.substr(ec))});var nq=/[ap]\.?m?\.?/i,nH=tA("Hours",!0);function nW(ei,eo,ea){return ei>11?ea?"pm":"PM":ea?"am":"AM"}var nK,nY,nZ={calendar:eV,longDateFormat:e5,invalidDate:e6,ordinal:e9,dayOfMonthOrdinalParse:e7,relativeTime:tu,months:rP,monthsShort:rD,week:nu,weekdays:n_,weekdaysMin:nE,weekdaysShort:nS,meridiemParse:nq},n$={},nJ={};function nQ(ei,eo){var ea,eu=Math.min(ei.length,eo.length);for(ea=0;ea0;){if(eu=n5(ec.slice(0,eo).join("-")))return eu;if(ea&&ea.length>=eo&&nQ(ec,ea)>=eo-1)break;eo--}ed++}return nY}function n3(ei){return null!=ei.match("^[^/\\\\]*$")}function n5(eo){var ea=null;if(void 0===n$[eo]&&ei&&ei.exports&&n3(eo))try{ea=nY._abbr,function(){var ei=Error("Cannot find module 'undefined'");throw ei.code="MODULE_NOT_FOUND",ei}(),n4(ea)}catch(ei){n$[eo]=null}return n$[eo]}function n4(ei,eo){var ea;return ei&&((ea=eh(eo)?n9(ei):n6(ei,eo))?nY=ea:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+ei+" not found. Did you forget to load it?")),nY._abbr}function n6(ei,eo){if(null===eo)return delete n$[ei],null;var ea,eu=nZ;if(eo.abbr=ei,null!=n$[ei])eL("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),eu=n$[ei]._config;else if(null!=eo.parentLocale){if(null!=n$[eo.parentLocale])eu=n$[eo.parentLocale]._config;else{if(null==(ea=n5(eo.parentLocale)))return nJ[eo.parentLocale]||(nJ[eo.parentLocale]=[]),nJ[eo.parentLocale].push({name:ei,config:eo}),null;eu=ea._config}}return n$[ei]=new eG(eU(eu,eo)),nJ[ei]&&nJ[ei].forEach(function(ei){n6(ei.name,ei.config)}),n4(ei),n$[ei]}function n8(ei,eo){if(null!=eo){var ea,eu,ec=nZ;null!=n$[ei]&&null!=n$[ei].parentLocale?n$[ei].set(eU(n$[ei]._config,eo)):(null!=(eu=n5(ei))&&(ec=eu._config),eo=eU(ec,eo),null==eu&&(eo.abbr=ei),(ea=new eG(eo)).parentLocale=n$[ei],n$[ei]=ea),n4(ei)}else null!=n$[ei]&&(null!=n$[ei].parentLocale?(n$[ei]=n$[ei].parentLocale,ei===n4()&&n4(ei)):null!=n$[ei]&&delete n$[ei]);return n$[ei]}function n9(ei){var eo;if(ei&&ei._locale&&ei._locale._abbr&&(ei=ei._locale._abbr),!ei)return nY;if(!eu(ei)){if(eo=n5(ei))return eo;ei=[ei]}return n0(ei)}function n7(){return tD(n$)}function ia(ei){var eo,ea=ei._a;return ea&&-2===eE(ei).overflow&&(eo=ea[rw]<0||ea[rw]>11?rw:ea[r_]<1||ea[r_]>rI(ea[ry],ea[rw])?r_:ea[rS]<0||ea[rS]>24||24===ea[rS]&&(0!==ea[rE]||0!==ea[rA]||0!==ea[rT])?rS:ea[rE]<0||ea[rE]>59?rE:ea[rA]<0||ea[rA]>59?rA:ea[rT]<0||ea[rT]>999?rT:-1,eE(ei)._overflowDayOfYear&&(eor_)&&(eo=r_),eE(ei)._overflowWeeks&&-1===eo&&(eo=rk),eE(ei)._overflowWeekday&&-1===eo&&(eo=rC),eE(ei).overflow=eo),ei}var iu=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ic=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ih=/Z|[+-]\d\d(?::?\d\d)?/,ip=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ig=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],iy=/^\/?Date\((-?\d+)/i,iv=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ib={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function iw(ei){var eo,ea,eu,ec,ed,ef,eh=ei._i,eg=iu.exec(eh)||ic.exec(eh),em=ip.length,eb=ig.length;if(eg){for(eo=0,eE(ei).iso=!0,ea=em;eorW(ed)||0===ei._dayOfYear)&&(eE(ei)._overflowDayOfYear=!0),ea=r$(ed,0,ei._dayOfYear),ei._a[rw]=ea.getUTCMonth(),ei._a[r_]=ea.getUTCDate()),eo=0;eo<3&&null==ei._a[eo];++eo)ei._a[eo]=ef[eo]=eu[eo];for(;eo<7;eo++)ei._a[eo]=ef[eo]=null==ei._a[eo]?2===eo?1:0:ei._a[eo];24===ei._a[rS]&&0===ei._a[rE]&&0===ei._a[rA]&&0===ei._a[rT]&&(ei._nextDay=!0,ei._a[rS]=0),ei._d=(ei._useUTC?r$:rZ).apply(null,ef),ec=ei._useUTC?ei._d.getUTCDay():ei._d.getDay(),null!=ei._tzm&&ei._d.setUTCMinutes(ei._d.getUTCMinutes()-ei._tzm),ei._nextDay&&(ei._a[rS]=24),ei._w&&void 0!==ei._w.d&&ei._w.d!==ec&&(eE(ei).weekdayMismatch=!0)}}function iN(ei){var eo,ea,eu,ec,ed,ef,eh,eg,em;null!=(eo=ei._w).GG||null!=eo.W||null!=eo.E?(ed=1,ef=4,ea=iI(eo.GG,ei._a[ry],rX(iV(),1,4).year),eu=iI(eo.W,1),((ec=iI(eo.E,1))<1||ec>7)&&(eg=!0)):(ed=ei._locale._week.dow,ef=ei._locale._week.doy,em=rX(iV(),ed,ef),ea=iI(eo.gg,ei._a[ry],em.year),eu=iI(eo.w,em.week),null!=eo.d?((ec=eo.d)<0||ec>6)&&(eg=!0):null!=eo.e?(ec=eo.e+ed,(eo.e<0||eo.e>6)&&(eg=!0)):ec=ed),eu<1||eu>ni(ea,ed,ef)?eE(ei)._overflowWeeks=!0:null!=eg?eE(ei)._overflowWeekday=!0:(eh=rQ(ea,eu,ec,ed,ef),ei._a[ry]=eh.year,ei._dayOfYear=eh.dayOfYear)}function iM(ei){if(ei._f===eo.ISO_8601){iw(ei);return}if(ei._f===eo.RFC_2822){iC(ei);return}ei._a=[],eE(ei).empty=!0;var ea,eu,ec,ed,ef,eh,eg,em=""+ei._i,eb=em.length,ew=0;for(ea=0,eg=(ec=e3(ei._f,ei._locale).match(eK)||[]).length;ea0&&eE(ei).unusedInput.push(ef),em=em.slice(em.indexOf(eu)+eu.length),ew+=eu.length),e$[ed]?(eu?eE(ei).empty=!1:eE(ei).unusedTokens.push(ed),rp(ed,eu,ei)):ei._strict&&!eu&&eE(ei).unusedTokens.push(ed);eE(ei).charsLeftOver=eb-ew,em.length>0&&eE(ei).unusedInput.push(em),ei._a[rS]<=12&&!0===eE(ei).bigHour&&ei._a[rS]>0&&(eE(ei).bigHour=void 0),eE(ei).parsedDateParts=ei._a.slice(0),eE(ei).meridiem=ei._meridiem,ei._a[rS]=ij(ei._locale,ei._a[rS],ei._meridiem),null!==(eh=eE(ei).era)&&(ei._a[ry]=ei._locale.erasConvertYear(eh,ei._a[ry])),iD(ei),ia(ei)}function ij(ei,eo,ea){var eu;return null==ea?eo:null!=ei.meridiemHour?ei.meridiemHour(eo,ea):(null!=ei.isPM&&((eu=ei.isPM(ea))&&eo<12&&(eo+=12),eu||12!==eo||(eo=0)),eo)}function iR(ei){var eo,ea,eu,ec,ed,ef,eh=!1,eg=ei._f.length;if(0===eg){eE(ei).invalidFormat=!0,ei._d=new Date(NaN);return}for(ec=0;ecthis?this:ei:eT()});function iW(ei,eo){var ea,ec;if(1===eo.length&&eu(eo[0])&&(eo=eo[0]),!eo.length)return iV();for(ec=1,ea=eo[0];ecMath.abs(ei)&&!eu&&(ei*=60);return!this._isUTC&&ea&&(ec=oc(this)),this._offset=ei,this._isUTC=!0,null!=ec&&this.add(ec,"m"),ed===ei||(!ea||this._changeInProgress?oR(this,oP(ei-ed,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,eo.updateOffset(this,!0),this._changeInProgress=null)),this}function oh(ei,eo){return null!=ei?("string"!=typeof ei&&(ei=-ei),this.utcOffset(ei,eo),this):-this.utcOffset()}function og(ei){return this.utcOffset(0,ei)}function om(ei){return this._isUTC&&(this.utcOffset(0,ei),this._isUTC=!1,ei&&this.subtract(oc(this),"m")),this}function ov(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var ei=ol(tY,this._i);null!=ei?this.utcOffset(ei):this.utcOffset(0,!0)}return this}function ow(ei){return!!this.isValid()&&(ei=ei?iV(ei).utcOffset():0,(this.utcOffset()-ei)%60==0)}function o_(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function oS(){if(!eh(this._isDSTShifted))return this._isDSTShifted;var ei,eo={};return eP(eo,this),(eo=iB(eo))._a?(ei=eo._isUTC?e_(eo._a):iV(eo._a),this._isDSTShifted=this.isValid()&&oi(eo._a,ei.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function oE(){return!!this.isValid()&&!this._isUTC}function oA(){return!!this.isValid()&&this._isUTC}function oT(){return!!this.isValid()&&this._isUTC&&0===this._offset}eo.updateOffset=function(){};var oC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,oI=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function oP(ei,eo){var ea,eu,ec,ef=ei,eh=null;return i9(ei)?ef={ms:ei._milliseconds,d:ei._days,M:ei._months}:eg(ei)||!isNaN(+ei)?(ef={},eo?ef[eo]=+ei:ef.milliseconds=+ei):(eh=oC.exec(ei))?(ea="-"===eh[1]?-1:1,ef={y:0,d:tE(eh[r_])*ea,h:tE(eh[rS])*ea,m:tE(eh[rE])*ea,s:tE(eh[rA])*ea,ms:tE(i7(1e3*eh[rT]))*ea}):(eh=oI.exec(ei))?(ea="-"===eh[1]?-1:1,ef={y:oD(eh[2],ea),M:oD(eh[3],ea),w:oD(eh[4],ea),d:oD(eh[5],ea),h:oD(eh[6],ea),m:oD(eh[7],ea),s:oD(eh[8],ea)}):null==ef?ef={}:"object"==typeof ef&&("from"in ef||"to"in ef)&&(ec=oM(iV(ef.from),iV(ef.to)),(ef={}).ms=ec.milliseconds,ef.M=ec.months),eu=new i8(ef),i9(ei)&&ed(ei,"_locale")&&(eu._locale=ei._locale),i9(ei)&&ed(ei,"_isValid")&&(eu._isValid=ei._isValid),eu}function oD(ei,eo){var ea=ei&&parseFloat(ei.replace(",","."));return(isNaN(ea)?0:ea)*eo}function oN(ei,eo){var ea={};return ea.months=eo.month()-ei.month()+(eo.year()-ei.year())*12,ei.clone().add(ea.months,"M").isAfter(eo)&&--ea.months,ea.milliseconds=+eo-+ei.clone().add(ea.months,"M"),ea}function oM(ei,eo){var ea;return ei.isValid()&&eo.isValid()?(eo=ou(eo,ei),ei.isBefore(eo)?ea=oN(ei,eo):((ea=oN(eo,ei)).milliseconds=-ea.milliseconds,ea.months=-ea.months),ea):{milliseconds:0,months:0}}function oj(ei,eo){return function(ea,eu){var ec;return null===eu||isNaN(+eu)||(eL(eo,"moment()."+eo+"(period, number) is deprecated. Please use moment()."+eo+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ec=ea,ea=eu,eu=ec),oR(this,oP(ea,eu),ei),this}}function oR(ei,ea,eu,ec){var ed=ea._milliseconds,ef=i7(ea._days),eh=i7(ea._months);ei.isValid()&&(ec=null==ec||ec,eh&&rU(ei,tT(ei,"Month")+eh*eu),ef&&tk(ei,"Date",tT(ei,"Date")+ef*eu),ed&&ei._d.setTime(ei._d.valueOf()+ed*eu),ec&&eo.updateOffset(ei,ef||eh))}oP.fn=i8.prototype,oP.invalid=i6;var oL=oj(1,"add"),oF=oj(-1,"subtract");function oB(ei){return"string"==typeof ei||ei instanceof String}function oU(ei){return eN(ei)||em(ei)||oB(ei)||eg(ei)||oG(ei)||oz(ei)||null==ei}function oz(ei){var eo,ea,eu=ec(ei)&&!ef(ei),eh=!1,eg=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],em=eg.length;for(eo=0;eoea.valueOf():ea.valueOf()ea.year()||ea.year()>9999?e0(ea,eo?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):eF(Date.prototype.toISOString)?eo?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",e0(ea,"Z")):e0(ea,eo?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function o8(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var ei,eo,ea,eu,ec="moment",ed="";return this.isLocal()||(ec=0===this.utcOffset()?"moment.utc":"moment.parseZone",ed="Z"),ei="["+ec+'("]',eo=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",ea="-MM-DD[T]HH:mm:ss.SSS",eu=ed+'[")]',this.format(ei+eo+ea+eu)}function o9(ei){ei||(ei=this.isUtc()?eo.defaultFormatUtc:eo.defaultFormat);var ea=e0(this,ei);return this.localeData().postformat(ea)}function o7(ei,eo){return this.isValid()&&(eN(ei)&&ei.isValid()||iV(ei).isValid())?oP({to:this,from:ei}).locale(this.locale()).humanize(!eo):this.localeData().invalidDate()}function si(ei){return this.from(iV(),ei)}function so(ei,eo){return this.isValid()&&(eN(ei)&&ei.isValid()||iV(ei).isValid())?oP({from:this,to:ei}).locale(this.locale()).humanize(!eo):this.localeData().invalidDate()}function sa(ei){return this.to(iV(),ei)}function su(ei){var eo;return void 0===ei?this._locale._abbr:(null!=(eo=n9(ei))&&(this._locale=eo),this)}eo.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",eo.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sf=ej("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(ei){return void 0===ei?this.localeData():this.locale(ei)});function sh(){return this._locale}var sp=1e3,sm=6e4,sv=36e5,sb=126227808e5;function sS(ei,eo){return(ei%eo+eo)%eo}function sE(ei,eo,ea){return ei<100&&ei>=0?new Date(ei+400,eo,ea)-sb:new Date(ei,eo,ea).valueOf()}function sA(ei,eo,ea){return ei<100&&ei>=0?Date.UTC(ei+400,eo,ea)-sb:Date.UTC(ei,eo,ea)}function sT(ei){var ea,eu;if(void 0===(ei=tg(ei))||"millisecond"===ei||!this.isValid())return this;switch(eu=this._isUTC?sA:sE,ei){case"year":ea=eu(this.year(),0,1);break;case"quarter":ea=eu(this.year(),this.month()-this.month()%3,1);break;case"month":ea=eu(this.year(),this.month(),1);break;case"week":ea=eu(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":ea=eu(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":ea=eu(this.year(),this.month(),this.date());break;case"hour":ea=this._d.valueOf(),ea-=sS(ea+(this._isUTC?0:this.utcOffset()*sm),sv);break;case"minute":ea=this._d.valueOf(),ea-=sS(ea,sm);break;case"second":ea=this._d.valueOf(),ea-=sS(ea,sp)}return this._d.setTime(ea),eo.updateOffset(this,!0),this}function sk(ei){var ea,eu;if(void 0===(ei=tg(ei))||"millisecond"===ei||!this.isValid())return this;switch(eu=this._isUTC?sA:sE,ei){case"year":ea=eu(this.year()+1,0,1)-1;break;case"quarter":ea=eu(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":ea=eu(this.year(),this.month()+1,1)-1;break;case"week":ea=eu(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":ea=eu(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":ea=eu(this.year(),this.month(),this.date()+1)-1;break;case"hour":ea=this._d.valueOf(),ea+=sv-sS(ea+(this._isUTC?0:this.utcOffset()*sm),sv)-1;break;case"minute":ea=this._d.valueOf(),ea+=sm-sS(ea,sm)-1;break;case"second":ea=this._d.valueOf(),ea+=sp-sS(ea,sp)-1}return this._d.setTime(ea),eo.updateOffset(this,!0),this}function sC(){return this._d.valueOf()-6e4*(this._offset||0)}function sO(){return Math.floor(this.valueOf()/1e3)}function sI(){return new Date(this.valueOf())}function sP(){var ei=this;return[ei.year(),ei.month(),ei.date(),ei.hour(),ei.minute(),ei.second(),ei.millisecond()]}function sD(){var ei=this;return{years:ei.year(),months:ei.month(),date:ei.date(),hours:ei.hours(),minutes:ei.minutes(),seconds:ei.seconds(),milliseconds:ei.milliseconds()}}function sN(){return this.isValid()?this.toISOString():null}function sM(){return eA(this)}function sj(){return ew({},eE(this))}function sR(){return eE(this).overflow}function sL(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function sF(ei,ea){var eu,ec,ed,ef=this._eras||n9("en")._eras;for(eu=0,ec=ef.length;eu=0)return eg[eu]}function sU(ei,ea){var eu=ei.since<=ei.until?1:-1;return void 0===ea?eo(ei.since).year():eo(ei.since).year()+(ea-ei.offset)*eu}function sG(){var ei,eo,ea,eu=this.localeData().eras();for(ei=0,eo=eu.length;ei(ed=ni(ei,eu,ec))&&(eo=ed),au.call(this,ei,eo,ea,eu,ec))}function au(ei,eo,ea,eu,ec){var ed=rQ(ei,eo,ea,eu,ec),ef=r$(ed.year,0,ed.dayOfYear);return this.year(ef.getUTCFullYear()),this.month(ef.getUTCMonth()),this.date(ef.getUTCDate()),this}function ac(ei){return null==ei?Math.ceil((this.month()+1)/3):this.month((ei-1)*3+this.month()%3)}eJ("N",0,0,"eraAbbr"),eJ("NN",0,0,"eraAbbr"),eJ("NNN",0,0,"eraAbbr"),eJ("NNNN",0,0,"eraName"),eJ("NNNNN",0,0,"eraNarrow"),eJ("y",["y",1],"yo","eraYear"),eJ("y",["yy",2],0,"eraYear"),eJ("y",["yyy",3],0,"eraYear"),eJ("y",["yyyy",4],0,"eraYear"),tQ("N",sZ),tQ("NN",sZ),tQ("NNN",sZ),tQ("NNNN",s$),tQ("NNNNN",sJ),rf(["N","NN","NNN","NNNN","NNNNN"],function(ei,eo,ea,eu){var ec=ea._locale.erasParse(ei,eu,ea._strict);ec?eE(ea).era=ec:eE(ea).invalidEra=ei}),tQ("y",tW),tQ("yy",tW),tQ("yyy",tW),tQ("yyyy",tW),tQ("yo",sQ),rf(["y","yy","yyy","yyyy"],ry),rf(["yo"],function(ei,eo,ea,eu){var ec;ea._locale._eraYearOrdinalRegex&&(ec=ei.match(ea._locale._eraYearOrdinalRegex)),ea._locale.eraYearOrdinalParse?eo[ry]=ea._locale.eraYearOrdinalParse(ei,ec):eo[ry]=parseInt(ei,10)}),eJ(0,["gg",2],0,function(){return this.weekYear()%100}),eJ(0,["GG",2],0,function(){return this.isoWeekYear()%100}),s5("gggg","weekYear"),s5("ggggg","weekYear"),s5("GGGG","isoWeekYear"),s5("GGGGG","isoWeekYear"),tp("weekYear","gg"),tp("isoWeekYear","GG"),tb("weekYear",1),tb("isoWeekYear",1),tQ("G",tK),tQ("g",tK),tQ("GG",tB,tj),tQ("gg",tB,tj),tQ("GGGG",tq,tL),tQ("gggg",tq,tL),tQ("GGGGG",tH,tF),tQ("ggggg",tH,tF),rh(["gggg","ggggg","GGGG","GGGGG"],function(ei,eo,ea,eu){eo[eu.substr(0,2)]=tE(ei)}),rh(["gg","GG"],function(ei,ea,eu,ec){ea[ec]=eo.parseTwoDigitYear(ei)}),eJ("Q",0,"Qo","quarter"),tp("quarter","Q"),tb("quarter",7),tQ("Q",tM),rf("Q",function(ei,eo){eo[rw]=(tE(ei)-1)*3}),eJ("D",["DD",2],"Do","date"),tp("date","D"),tb("date",9),tQ("D",tB),tQ("DD",tB,tj),tQ("Do",function(ei,eo){return ei?eo._dayOfMonthOrdinalParse||eo._ordinalParse:eo._dayOfMonthOrdinalParseLenient}),rf(["D","DD"],r_),rf("Do",function(ei,eo){eo[r_]=tE(ei.match(tB)[0])});var af=tA("Date",!0);function ag(ei){var eo=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==ei?eo:this.add(ei-eo,"d")}eJ("DDD",["DDDD",3],"DDDo","dayOfYear"),tp("dayOfYear","DDD"),tb("dayOfYear",4),tQ("DDD",tV),tQ("DDDD",tR),rf(["DDD","DDDD"],function(ei,eo,ea){ea._dayOfYear=tE(ei)}),eJ("m",["mm",2],0,"minute"),tp("minute","m"),tb("minute",14),tQ("m",tB),tQ("mm",tB,tj),rf(["m","mm"],rE);var am=tA("Minutes",!1);eJ("s",["ss",2],0,"second"),tp("second","s"),tb("second",15),tQ("s",tB),tQ("ss",tB,tj),rf(["s","ss"],rA);var av=tA("Seconds",!1);for(eJ("S",0,0,function(){return~~(this.millisecond()/100)}),eJ(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),eJ(0,["SSS",3],0,"millisecond"),eJ(0,["SSSS",4],0,function(){return 10*this.millisecond()}),eJ(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),eJ(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),eJ(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),eJ(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),eJ(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),tp("millisecond","ms"),tb("millisecond",16),tQ("S",tV,tM),tQ("SS",tV,tj),tQ("SSS",tV,tR),ek="SSSS";ek.length<=9;ek+="S")tQ(ek,tW);function ab(ei,eo){eo[rT]=tE(("0."+ei)*1e3)}for(ek="S";ek.length<=9;ek+="S")rf(ek,ab);function a_(){return this._isUTC?"UTC":""}function aS(){return this._isUTC?"Coordinated Universal Time":""}eC=tA("Milliseconds",!1),eJ("z",0,0,"zoneAbbr"),eJ("zz",0,0,"zoneName");var aE=eD.prototype;function ak(ei){return iV(1e3*ei)}function aC(){return iV.apply(null,arguments).parseZone()}function aO(ei){return ei}aE.add=oL,aE.calendar=oH,aE.clone=oW,aE.diff=o3,aE.endOf=sk,aE.format=o9,aE.from=o7,aE.fromNow=si,aE.to=so,aE.toNow=sa,aE.get=tC,aE.invalidAt=sR,aE.isAfter=oK,aE.isBefore=oZ,aE.isBetween=o$,aE.isSame=oJ,aE.isSameOrAfter=oQ,aE.isSameOrBefore=o0,aE.isValid=sM,aE.lang=sf,aE.locale=su,aE.localeData=sh,aE.max=iH,aE.min=iq,aE.parsingFlags=sj,aE.set=tO,aE.startOf=sT,aE.subtract=oF,aE.toArray=sP,aE.toObject=sD,aE.toDate=sI,aE.toISOString=o6,aE.inspect=o8,"undefined"!=typeof Symbol&&null!=Symbol.for&&(aE[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),aE.toJSON=sN,aE.toString=o4,aE.unix=sO,aE.valueOf=sC,aE.creationData=sL,aE.eraName=sG,aE.eraNarrow=sV,aE.eraAbbr=sq,aE.eraYear=sH,aE.year=rK,aE.isLeapYear=rY,aE.weekYear=s4,aE.isoWeekYear=s6,aE.quarter=aE.quarters=ac,aE.month=rz,aE.daysInMonth=rG,aE.week=aE.weeks=nh,aE.isoWeek=aE.isoWeeks=np,aE.weeksInYear=s7,aE.weeksInWeekYear=ao,aE.isoWeeksInYear=s8,aE.isoWeeksInISOWeekYear=s9,aE.date=af,aE.day=aE.days=nD,aE.weekday=nN,aE.isoWeekday=nM,aE.dayOfYear=ag,aE.hour=aE.hours=nH,aE.minute=aE.minutes=am,aE.second=aE.seconds=av,aE.millisecond=aE.milliseconds=eC,aE.utcOffset=od,aE.utc=og,aE.local=om,aE.parseZone=ov,aE.hasAlignedHourOffset=ow,aE.isDST=o_,aE.isLocal=oE,aE.isUtcOffset=oA,aE.isUtc=oT,aE.isUTC=oT,aE.zoneAbbr=a_,aE.zoneName=aS,aE.dates=ej("dates accessor is deprecated. Use date instead.",af),aE.months=ej("months accessor is deprecated. Use month instead",rz),aE.years=ej("years accessor is deprecated. Use year instead",rK),aE.zone=ej("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",oh),aE.isDSTShifted=ej("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",oS);var aI=eG.prototype;function aP(ei,eo,ea,eu){var ec=n9(),ed=e_().set(eu,eo);return ec[ea](ed,ei)}function aD(ei,eo,ea){if(eg(ei)&&(eo=ei,ei=void 0),ei=ei||"",null!=eo)return aP(ei,eo,ea,"month");var eu,ec=[];for(eu=0;eu<12;eu++)ec[eu]=aP(ei,eu,ea,"month");return ec}function aN(ei,eo,ea,eu){"boolean"==typeof ei?(eg(eo)&&(ea=eo,eo=void 0),eo=eo||""):(ea=eo=ei,ei=!1,eg(eo)&&(ea=eo,eo=void 0),eo=eo||"");var ec,ed=n9(),ef=ei?ed._week.dow:0,eh=[];if(null!=ea)return aP(eo,(ea+ef)%7,eu,"day");for(ec=0;ec<7;ec++)eh[ec]=aP(eo,(ec+ef)%7,eu,"day");return eh}function aM(ei,eo){return aD(ei,eo,"months")}function aj(ei,eo){return aD(ei,eo,"monthsShort")}function aR(ei,eo,ea){return aN(ei,eo,ea,"weekdays")}function aL(ei,eo,ea){return aN(ei,eo,ea,"weekdaysShort")}function aF(ei,eo,ea){return aN(ei,eo,ea,"weekdaysMin")}aI.calendar=eH,aI.longDateFormat=e4,aI.invalidDate=e8,aI.ordinal=ta,aI.preparse=aO,aI.postformat=aO,aI.relativeTime=tc,aI.pastFuture=td,aI.set=eB,aI.eras=sF,aI.erasParse=sB,aI.erasConvertYear=sU,aI.erasAbbrRegex=sK,aI.erasNameRegex=sW,aI.erasNarrowRegex=sY,aI.months=rR,aI.monthsShort=rL,aI.monthsParse=rB,aI.monthsRegex=rq,aI.monthsShortRegex=rV,aI.week=no,aI.firstDayOfYear=nf,aI.firstDayOfWeek=nd,aI.weekdays=nk,aI.weekdaysMin=nO,aI.weekdaysShort=nC,aI.weekdaysParse=nP,aI.weekdaysRegex=nj,aI.weekdaysShortRegex=nR,aI.weekdaysMinRegex=nL,aI.isPM=nV,aI.meridiem=nW,n4("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(ei){var eo=ei%10,ea=1===tE(ei%100/10)?"th":1===eo?"st":2===eo?"nd":3===eo?"rd":"th";return ei+ea}}),eo.lang=ej("moment.lang is deprecated. Use moment.locale instead.",n4),eo.langData=ej("moment.langData is deprecated. Use moment.localeData instead.",n9);var aU=Math.abs;function aG(){var ei=this._data;return this._milliseconds=aU(this._milliseconds),this._days=aU(this._days),this._months=aU(this._months),ei.milliseconds=aU(ei.milliseconds),ei.seconds=aU(ei.seconds),ei.minutes=aU(ei.minutes),ei.hours=aU(ei.hours),ei.months=aU(ei.months),ei.years=aU(ei.years),this}function aV(ei,eo,ea,eu){var ec=oP(eo,ea);return ei._milliseconds+=eu*ec._milliseconds,ei._days+=eu*ec._days,ei._months+=eu*ec._months,ei._bubble()}function aq(ei,eo){return aV(this,ei,eo,1)}function aH(ei,eo){return aV(this,ei,eo,-1)}function aW(ei){return ei<0?Math.floor(ei):Math.ceil(ei)}function aK(){var ei,eo,ea,eu,ec,ed=this._milliseconds,ef=this._days,eh=this._months,eg=this._data;return ed>=0&&ef>=0&&eh>=0||ed<=0&&ef<=0&&eh<=0||(ed+=864e5*aW(aZ(eh)+ef),ef=0,eh=0),eg.milliseconds=ed%1e3,ei=tS(ed/1e3),eg.seconds=ei%60,eo=tS(ei/60),eg.minutes=eo%60,ea=tS(eo/60),eg.hours=ea%24,ef+=tS(ea/24),eh+=ec=tS(aY(ef)),ef-=aW(aZ(ec)),eu=tS(eh/12),eh%=12,eg.days=ef,eg.months=eh,eg.years=eu,this}function aY(ei){return 4800*ei/146097}function aZ(ei){return 146097*ei/4800}function a$(ei){if(!this.isValid())return NaN;var eo,ea,eu=this._milliseconds;if("month"===(ei=tg(ei))||"quarter"===ei||"year"===ei)switch(eo=this._days+eu/864e5,ea=this._months+aY(eo),ei){case"month":return ea;case"quarter":return ea/3;case"year":return ea/12}else switch(eo=this._days+Math.round(aZ(this._months)),ei){case"week":return eo/7+eu/6048e5;case"day":return eo+eu/864e5;case"hour":return 24*eo+eu/36e5;case"minute":return 1440*eo+eu/6e4;case"second":return 86400*eo+eu/1e3;case"millisecond":return Math.floor(864e5*eo)+eu;default:throw Error("Unknown unit "+ei)}}function aJ(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*tE(this._months/12):NaN}function aQ(ei){return function(){return this.as(ei)}}var la=aQ("ms"),ll=aQ("s"),lc=aQ("m"),ld=aQ("h"),lf=aQ("d"),lh=aQ("w"),lp=aQ("M"),lg=aQ("Q"),lm=aQ("y");function ly(){return oP(this)}function lv(ei){return ei=tg(ei),this.isValid()?this[ei+"s"]():NaN}function lb(ei){return function(){return this.isValid()?this._data[ei]:NaN}}var lw=lb("milliseconds"),l_=lb("seconds"),lS=lb("minutes"),lE=lb("hours"),lx=lb("days"),lA=lb("months"),lT=lb("years");function lk(){return tS(this.days()/7)}var lC=Math.round,lO={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lI(ei,eo,ea,eu,ec){return ec.relativeTime(eo||1,!!ea,ei,eu)}function lP(ei,eo,ea,eu){var ec=oP(ei).abs(),ed=lC(ec.as("s")),ef=lC(ec.as("m")),eh=lC(ec.as("h")),eg=lC(ec.as("d")),em=lC(ec.as("M")),eb=lC(ec.as("w")),ew=lC(ec.as("y")),e_=ed<=ea.ss&&["s",ed]||ed0,e_[4]=eu,lI.apply(null,e_)}function lD(ei){return void 0===ei?lC:"function"==typeof ei&&(lC=ei,!0)}function lN(ei,eo){return void 0!==lO[ei]&&(void 0===eo?lO[ei]:(lO[ei]=eo,"s"===ei&&(lO.ss=eo-1),!0))}function lM(ei,eo){if(!this.isValid())return this.localeData().invalidDate();var ea,eu,ec=!1,ed=lO;return"object"==typeof ei&&(eo=ei,ei=!1),"boolean"==typeof ei&&(ec=ei),"object"==typeof eo&&(ed=Object.assign({},lO,eo),null!=eo.s&&null==eo.ss&&(ed.ss=eo.s-1)),eu=lP(this,!ec,ed,ea=this.localeData()),ec&&(eu=ea.pastFuture(+this,eu)),ea.postformat(eu)}var lj=Math.abs;function lR(ei){return(ei>0)-(ei<0)||+ei}function lL(){if(!this.isValid())return this.localeData().invalidDate();var ei,eo,ea,eu,ec,ed,ef,eh,eg=lj(this._milliseconds)/1e3,em=lj(this._days),eb=lj(this._months),ew=this.asSeconds();return ew?(ei=tS(eg/60),eo=tS(ei/60),eg%=60,ei%=60,ea=tS(eb/12),eb%=12,eu=eg?eg.toFixed(3).replace(/\.?0+$/,""):"",ec=ew<0?"-":"",ed=lR(this._months)!==lR(ew)?"-":"",ef=lR(this._days)!==lR(ew)?"-":"",eh=lR(this._milliseconds)!==lR(ew)?"-":"",ec+"P"+(ea?ed+ea+"Y":"")+(eb?ed+eb+"M":"")+(em?ef+em+"D":"")+(eo||ei||eg?"T":"")+(eo?eh+eo+"H":"")+(ei?eh+ei+"M":"")+(eg?eh+eu+"S":"")):"P0D"}var lF=i8.prototype;return lF.isValid=i0,lF.abs=aG,lF.add=aq,lF.subtract=aH,lF.as=a$,lF.asMilliseconds=la,lF.asSeconds=ll,lF.asMinutes=lc,lF.asHours=ld,lF.asDays=lf,lF.asWeeks=lh,lF.asMonths=lp,lF.asQuarters=lg,lF.asYears=lm,lF.valueOf=aJ,lF._bubble=aK,lF.clone=ly,lF.get=lv,lF.milliseconds=lw,lF.seconds=l_,lF.minutes=lS,lF.hours=lE,lF.days=lx,lF.weeks=lk,lF.months=lA,lF.years=lT,lF.humanize=lM,lF.toISOString=lL,lF.toString=lL,lF.toJSON=lL,lF.locale=su,lF.localeData=sh,lF.toIsoString=ej("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lL),lF.lang=sf,eJ("X",0,0,"unix"),eJ("x",0,0,"valueOf"),tQ("x",tK),tQ("X",t$),rf("X",function(ei,eo,ea){ea._d=new Date(1e3*parseFloat(ei))}),rf("x",function(ei,eo,ea){ea._d=new Date(tE(ei))}),eo.version="2.29.4",ea(iV),eo.fn=aE,eo.min=iK,eo.max=iZ,eo.now=i$,eo.utc=e_,eo.unix=ak,eo.months=aM,eo.isDate=em,eo.locale=n4,eo.invalid=eT,eo.duration=oP,eo.isMoment=eN,eo.weekdays=aR,eo.parseZone=aC,eo.localeData=n9,eo.isDuration=i9,eo.monthsShort=aj,eo.weekdaysMin=aF,eo.defineLocale=n6,eo.updateLocale=n8,eo.locales=n7,eo.weekdaysShort=aL,eo.normalizeUnits=tg,eo.relativeTimeRounding=lD,eo.relativeTimeThreshold=lN,eo.calendarFormat=oq,eo.prototype=aE,eo.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},eo})},18013:function(ei,eo,ea){"use strict";var eu=ea(28336),ec=ea(18040),ed=ea(24085),ef=Object.prototype.toString;function eh(ei){return"[object Date]"===ef.call(ei)}function eg(ei){return"[object Number]"===ef.call(ei)}function em(ei){return ei<315576e5?1e3*ei:ei}ei.exports=function(ei){return eh(ei)?ei:eg(ei)?new Date(em(ei)):eu.is(ei)?eu.parse(ei):ec.is(ei)?ec.parse(ei):ed.is(ei)?ed.parse(ei):new Date(ei)}},18040:function(ei,eo){"use strict";var ea=/\d{13}/;eo.is=function(ei){return ea.test(ei)},eo.parse=function(ei){return ei=parseInt(ei,10),new Date(ei)}},24085:function(ei,eo){"use strict";var ea=/\d{10}/;eo.is=function(ei){return ea.test(ei)},eo.parse=function(ei){var eo=1e3*parseInt(ei,10);return new Date(eo)}},63144:function(ei){"use strict";let eo=self.fetch.bind(self);ei.exports=eo,ei.exports.default=ei.exports},83454:function(ei,eo,ea){"use strict";var eu,ec;ei.exports=(null==(eu=ea.g.process)?void 0:eu.env)&&"object"==typeof(null==(ec=ea.g.process)?void 0:ec.env)?ea.g.process:ea(77663)},6840:function(ei,eo,ea){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return ea(69283)}])},158:function(ei,eo,ea){"use strict";ea.d(eo,{Ct:function(){return eN},zx:function(){return tf},Qj:function(){return t_},xv:function(){return tA}});var eu=ea(67294),ec=ea(29869);let ed=ei=>"boolean"==typeof ei?"".concat(ei):0===ei?"0":ei,ef=function(){for(var ei=arguments.length,eo=Array(ei),ea=0;eaea=>{var eu;if((null==eo?void 0:eo.variants)==null)return ef(ei,null==ea?void 0:ea.class,null==ea?void 0:ea.className);let{variants:ec,defaultVariants:eh}=eo,eg=Object.keys(ec).map(ei=>{let eo=null==ea?void 0:ea[ei],eu=null==eh?void 0:eh[ei];if(null===eo)return null;let ef=ed(eo)||ed(eu);return ec[ei][ef]}),em=ea&&Object.entries(ea).reduce((ei,eo)=>{let[ea,eu]=eo;return void 0===eu||(ei[ea]=eu),ei},{}),eb=null==eo?void 0:null===(eu=eo.compoundVariants)||void 0===eu?void 0:eu.reduce((ei,eo)=>{let{class:ea,className:eu,...ec}=eo;return Object.entries(ec).every(ei=>{let[eo,ea]=ei;return Array.isArray(ea)?ea.includes({...eh,...em}[eo]):({...eh,...em})[eo]===ea})?[...ei,ea,eu]:ei},[]);return ef(ei,eg,eb,null==ea?void 0:ea.class,null==ea?void 0:ea.className)};var eg=ea(86010);let em=!0,eb=!1;var ew=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};function e_(ei){var eo,ea,eu,ec,{spacing:ed,spacingBottom:ef,spacingEnd:eh,spacingHorizontal:eg,spacingStart:em,spacingTop:eb,spacingVertical:e_}=ei,eS=ew(ei,["spacing","spacingBottom","spacingEnd","spacingHorizontal","spacingStart","spacingTop","spacingVertical"]);return em=(null!==(eo=null!=em?em:eg)&&void 0!==eo?eo:ed)||0,eh=(null!==(ea=null!=eh?eh:eg)&&void 0!==ea?ea:ed)||0,eb=(null!==(eu=null!=eb?eb:e_)&&void 0!==eu?eu:ed)||0,ef=(null!==(ec=null!=ef?ef:e_)&&void 0!==ec?ec:ed)||0,{className:"ms-ds-".concat(em," me-ds-").concat(eh," mt-ds-").concat(eb," mb-ds-").concat(ef),rest:eS}}var eS=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eE=eh("",{variants:{tone:{primary:"fill-ds-icon-primary",neutral:"fill-ds-icon-neutral",dimmed:"fill-ds-icon-dimmed",positive:"fill-ds-icon-positive",negative:"fill-ds-icon-negative",warning:"fill-ds-icon-warning",disabled:"fill-ds-icon-disabled",info:"fill-ds-icon-info",current:"fill-current"}}}),eA=eh("",{variants:{tone:{primary:"stroke-ds-icon-primary",neutral:"stroke-ds-icon-neutral",dimmed:"stroke-ds-icon-dimmed",positive:"stroke-ds-icon-positive",negative:"stroke-ds-icon-negative",warning:"stroke-ds-icon-warning",disabled:"stroke-ds-icon-disabled",info:"stroke-ds-icon-info",current:"stroke-current"}}}),eT=eh("stroke-ds-icon",{variants:{size:{xxs:"w-ds-icon-xxs h-ds-icon-xxs",xs:"w-ds-icon-xs h-ds-icon-xs",sm:"w-ds-icon-sm h-ds-icon-sm",md:"w-ds-icon-md h-ds-icon-md",lg:"w-ds-icon-lg h-ds-icon-lg",xl:"w-ds-icon-xl h-ds-icon-xl"},disabled:{true:eb?"opacity-40":""}}}),ek=(ei,eo)=>{let{paths:ea,lines:ec,rects:ed,circles:ef}=ei,{tone:eh,size:eb,className:ew,disabled:ek,props:eC}=eo,eO=eh;em&&ek&&"current"!==eO&&(eO="disabled");let{className:eI,rest:eP}=e_(eC);return eu.createElement("svg",Object.assign({},eP,{className:(0,eg.Z)(ew,eI,"string"==typeof eb?eT({size:eb}):void 0),style:"number"==typeof eb?{width:"".concat(eb,"px"),height:"".concat(eb,"px")}:void 0,viewBox:"0 0 24 24"}),null==ea?void 0:ea.map((ei,eo)=>{var{stroke:ea,fill:ec}=ei,ed=eS(ei,["stroke","fill"]);return eu.createElement("path",Object.assign({key:eo},ed,{className:(0,eg.Z)(ec?eE({tone:eO}):"fill-transparent",ea?eA({tone:eO}):"stroke-transparent")}))}),null==ec?void 0:ec.map((ei,eo)=>{var{stroke:ea,fill:ec}=ei,ed=eS(ei,["stroke","fill"]);return eu.createElement("line",Object.assign({key:eo},ed,{className:(0,eg.Z)(ec?eE({tone:eO}):"fill-transparent",ea?eA({tone:eO}):"stroke-transparent")}))}),null==ed?void 0:ed.map((ei,eo)=>{var{stroke:ea,fill:ec}=ei,ed=eS(ei,["stroke","fill"]);return eu.createElement("rect",Object.assign({key:eo},ed,{className:(0,eg.Z)(ec?eE({tone:eO}):"fill-transparent",ea?eA({tone:eO}):"stroke-transparent")}))}),null==ef?void 0:ef.map((ei,eo)=>{var{stroke:ea,fill:ec}=ei,ed=eS(ei,["stroke","fill"]);return eu.createElement("circle",Object.assign({key:eo},ed,{className:(0,eg.Z)(ec?eE({tone:eO}):"fill-transparent",ea?eA({tone:eO}):"stroke-transparent")}))}))};(0,ec.r)((ei,eo)=>{var{tone:ea,size:eu,disabled:ec}=eo;return ek(ei,{tone:ea||"primary",size:eu||"md",disabled:ec,props:eS(eo,["tone","size","disabled"])})},(ei,eo)=>{var{tone:ea,size:eu,disabled:ec,className:ed}=eo;return ek(ei,{tone:ea||"primary",size:eu||"md",className:ed,disabled:ec,props:eS(eo,["tone","size","disabled","className"])})}),ea(95778),ea(93669);var eC=ea(1624),eO=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eI=eh("inline-flex flex-row items-center".concat(em?" rounded-ds-2 px-ds-3":""),{variants:{size:{sm:em?"text-ds-plex-10-semibold-caps py-ds-1":"px-ds-2 text-ds-plex-10-regular rounded-ds-3",md:em?"text-ds-plex-12-semibold-caps":"px-ds-3 text-ds-plex-12-regular rounded-ds-4",lg:em?"":"px-ds-4 text-ds-plex-12-regular rounded-ds-5"}}}),eP=eh("inline-flex ",{variants:{size:{sm:"my-px",md:"my-ds-2",lg:"my-ds-3"}}}),eD=em?{lg:"sm",md:"sm",sm:"xs"}:{lg:"xs",md:"xs",sm:"xxs"},eN=ei=>{var{size:eo="md",tone:ea="primary",emphasis:ec="high",text:ed,iconLeft:ef,iconRight:eh}=ei,eb=eO(ei,["size","tone","emphasis","text","iconLeft","iconRight"]);em&&"lg"===eo&&(eo="md");let ew=ef?(0,eC.e)(ef):null,eS=eh?(0,eC.e)(eh):null,{className:eE}=e_(eb),eA="bg-ds-badge-".concat(ea,"-").concat(ec),eT="high"===ec?em&&"warning"===ea?"text-ds-badge-high-inverse":"text-ds-badge-high":"text-ds-badge-".concat(ea),ek=eD[eo];return eu.createElement("div",{className:(0,eg.Z)(eE,eA,eT,eI({size:eo}))},ew?eu.createElement(ew,{size:ek,tone:"current",spacingEnd:2}):null,eu.createElement("span",{className:eP({size:eo})},ed),eS?eu.createElement(eS,{size:ek,tone:"current",spacingStart:2}):null)};var eM=ea(9471);let ej=ei=>{let eo=(0,eu.useRef)(ei&&"current"in ei?ei.current:null);return((0,eu.useEffect)(()=>{ei&&"function"==typeof ei&&ei(eo.current)},[ei]),ei&&"current"in ei)?ei:eo};var eR=ea(66604),eL=ea.n(eR),eF=ea(23279),eB=ea.n(eF);function eU(ei,eo,ea){let{enableDebounce:ec=!0,enableEvents:ed=!0}=ea,ef=(0,eu.useRef)(ed);return ef.current=ed,(0,eu.useMemo)(()=>ec?eL()(ei,ei=>{if(ei)return eB()(function(){for(var eo=arguments.length,ea=Array(eo),eu=0;eu{var ea;let eu=eo,ec=ei&&eo&&(null===(ea=null==eV?void 0:eV[ei])||void 0===ea?void 0:ea[eo]);return ec&&(eu=ec),eu},eW=ei=>"info"===ei||"inverted"===ei?"primary":ei;var eK=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};function eY(ei){var{tone:eo="primary",emphasis:ea="medium",size:eu="sm",loading:ec=!1}=ei,ed=eK(ei,["tone","emphasis","size","loading"]);let ef=eb?eW(eo):eo;return Object.assign(Object.assign({},ed),{tone:ef,emphasis:eb?eH(ef,ea):ea,size:eu,loading:ec})}var eZ=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let e$=(0,eC.e)(eG),eJ=eh("box-border relative focus-visible:outline focus-visible:outline-2 disabled:pointer-events-none border-0 ".concat(em?"outline-offset-2":""),{variants:{loading:{true:"pointer-events-none"},disabled:{true:eb?"opacity-40":"cursor-default",false:"cursor-pointer"},as:{button:"[-webkit-appearance:button]",a:""},invertedTone:{true:em?"focus:outline-ds-button-inverted":"focus:outline-ds-button",false:"focus:outline-ds-button"}}}),eQ=eh(em?"rounded-ds-round":"",{variants:{size:{xs:eb?"rounded-ds-4":"",sm:eb?"rounded-ds-4":"",md:eb?"rounded-ds-5":"",lg:eb?"rounded-ds-5":"",xl:eb?"rounded-ds-5":""}}}),eX=eh("",{variants:{tone:{primary:"border-ds-button-primary-low",negative:"border-ds-button-negative-low",positive:"border-ds-button-positive-low",neutral:"border-ds-button-neutral-low",warning:"border-ds-button-warning-low",info:"border-ds-button-info-low",inverted:"border-ds-button-inverted-low"}}}),e0=ei=>{let{tone:eo,emphasis:ea,loading:eu,size:ec,disabled:ed,as:ef,fullWidth:eh}=ei,ew=eb||em&&!ed?["text-ds-button-".concat(eo,"-").concat(ea),"hover:text-ds-button-".concat(eo,"-").concat(ea,"-hover"),"bg-ds-button-".concat(eo,"-").concat(ea),"hover:bg-ds-button-".concat(eo,"-").concat(ea,"-hover"),"active:bg-ds-button-".concat(eo,"-").concat(ea,"-active")]:[];return(0,eg.Z)(ew,eh?"w-full":"",em?ed?{"text-ds-button-inverted-disabled bg-ds-button-none-disabled":"none"===ea&&"inverted"===eo,"text-ds-button-disabled bg-ds-button-none-disabled":"none"===ea&&"inverted"!==eo,"text-ds-button-inverted-disabled bg-ds-button-inverted-disabled":"none"!==ea&&"inverted"===eo,"text-ds-button-disabled bg-ds-button-disabled":"none"!==ea&&"inverted"!==eo}:{"shadow-ds-button-primary-high hover:shadow-ds-button-primary-high-hover active:shadow-ds-button-primary-high-active":"primary"===eo&&"high"===ea}:"",eQ({size:ec}),eJ({loading:eu,disabled:!!ed,as:ef,invertedTone:"inverted"===eo}))},e3=(0,eu.forwardRef)((ei,eo)=>{let ea=ej(eo),{className:ec,rest:ed}=e_(ei),ef=eY(ed),{children:eh,inert:eb,className:ew,disabled:eS,loading:eE,tone:eA,size:eT,emphasis:ek,as:eC="button",fullWidth:eO=!1}=ef,eI=eZ(ef,["children","inert","className","disabled","loading","tone","size","emphasis","as","fullWidth"]);return eu.createElement(eC,Object.assign(Object.assign(Object.assign(Object.assign({ref:ea,className:(0,eg.Z)(ew,ec,e0({tone:eA,size:eT,emphasis:ek,loading:eE,disabled:!!eS,as:eC,fullWidth:eO})),inert:eb?"":void 0},"button"===eC?{type:"button"}:null),{disabled:eS}),eI),"a"===eC&&eS?{tabIndex:"-1"}:null),[eh,eE&&eu.createElement("span",{className:"absolute left-0 top-0 inline-flex h-full w-full items-center justify-center"},eu.createElement(e$,{className:"animate-spin",tone:"current",size:"sm"})),em&&("low"===ek||"high"===ek&&"primary"===eA)&&!eS&&eu.createElement("div",{className:(0,eg.Z)(eQ({size:eT}),"absolute left-0 top-0 m-0 box-border h-full w-full border border-solid","low"===ek?eX({tone:eA}):"border-ds-button-primary-high hover:border-0")})])}),e5=eh("inline-block no-underline",{variants:{size:{xs:"",sm:"",md:"",lg:"",xl:""},direction:{vertical:"w-full py-3 px-1 rounded-ds-5",horizontal:""}},compoundVariants:[{direction:"vertical",size:["xs","sm","md"],class:"text-ds-button-xs"},{direction:"vertical",size:["lg","xl"],class:"text-ds-button-v-lg"},{direction:"horizontal",size:"xs",class:"text-ds-button-xs ".concat(eb?"px-ds-3 py-1.5 rounded-ds-4":"px-ds-5 py-ds-3")},{direction:"horizontal",size:"sm",class:"text-ds-button-sm ".concat(eb?"px-ds-4 py-1.5 rounded-ds-4":"px-ds-5 py-ds-3")},{direction:"horizontal",size:"md",class:"text-ds-button-md ".concat(eb?"px-ds-4 py-ds-3 rounded-ds-5":"px-ds-7 py-ds-4")},{direction:"horizontal",size:"lg",class:"text-ds-button-lg ".concat(eb?"px-ds-5 py-ds-4 rounded-ds-5":"px-ds-7 py-ds-5")},{direction:"horizontal",size:"xl",class:"text-ds-button-xl ".concat(eb?"p-ds-5 rounded-ds-5":"px-ds-7 py-ds-5")}]}),e4=eh("flex items-center justify-center",{variants:{loading:{true:"invisible"},direction:{vertical:"flex-col",horizontal:""},size:{xs:"",sm:"",md:"",lg:"",xl:""}},compoundVariants:[{size:["xs","sm","md"],direction:"vertical",class:"gap-y-0.5"},{size:["lg","xl"],direction:"vertical",class:"gap-y-2"}]}),e6=ei=>{switch(ei){case"xl":case"lg":case"md":case"sm":return"sm";case"xs":return"xs";default:return ei}},e8=ei=>{switch(ei){case"xl":case"lg":return"md";case"md":case"sm":case"xs":return"sm";default:return ei}},e9=ei=>{let{direction:eo,size:ea}=ei;return em?"md":"horizontal"===eo?e6(ea):e8(ea)},e7=ei=>"vertical"===ei?0:3,ta=eh("",{variants:{size:{xs:eb?"":"my-px",sm:eb?"":"my-px",md:eb?"":"my-px",lg:"-my-px",xl:"-my-px"}}}),tu=ei=>{let{iconStart:eo,iconEnd:ea,loading:ec,text:ed,size:ef="md",direction:eh="horizontal"}=ei,em=eo?(0,eC.e)(eo):null,eb=ea?(0,eC.e)(ea):null;return eu.createElement("div",{className:(0,eg.Z)(e4({size:ef,direction:eh,loading:!!ec}))},!!em&&eu.createElement(em,{tone:"current",size:e9({direction:eh,size:ef}),spacingEnd:e7(eh)}),eu.createElement("span",{className:ta({size:ef})},ed),!!eb&&eu.createElement(eb,{tone:"current",size:e9({direction:eh,size:ef}),spacingStart:e7(eh)}))};var tc=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let td=300,tf=(0,eu.forwardRef)((ei,eo)=>{var{iconLeft:ea,iconRight:ec,iconStart:ed,iconEnd:ef,text:eh,size:eg="md",onPress:em,preventDoubleClick:eb,direction:ew="horizontal"}=ei,e_=tc(ei,["iconLeft","iconRight","iconStart","iconEnd","text","size","onPress","preventDoubleClick","direction"]);let eS=ej(eo),eE=eU({onPress:em},td,{enableDebounce:!!eb,enableEvents:!e_.loading}),{buttonProps:eA}=(0,eM.U)(Object.assign(Object.assign(Object.assign({},e_),eE),{isDisabled:e_.disabled}),eS);return eu.createElement(e3,Object.assign({},e_,eA,{ref:eS,className:e5({size:eg,direction:ew}),size:eg,as:"button"}),eu.createElement(tu,{iconStart:ed||ea,iconEnd:ef||ec,text:eh,loading:e_.loading,size:eg,direction:ew}))});var tp=ea(768),tg=ea(28628),tm=ea(72290);function tv(ei,eo){let{elementType:ea="a",onPress:eu,onPressStart:ec,onPressEnd:ed,onClick:ef,isDisabled:eh,...eg}=ei,em={};"a"!==ea&&(em={role:"link",tabIndex:eh?void 0:0});let{focusableProps:eb}=(0,tg.kc)(ei,eo),{pressProps:ew,isPressed:e_}=(0,tm.r7)({onPress:eu,onPressStart:ec,onPressEnd:ed,isDisabled:eh,ref:eo}),eS=(0,tp.zL)(eg,{labelable:!0,isLink:"a"===ea}),eE=(0,tp.dG)(eb,ew),eA=(0,tp.tv)();return{isPressed:e_,linkProps:(0,tp.dG)(eS,{...eE,...em,"aria-disabled":eh||void 0,"aria-current":ei["aria-current"],onClick:ei=>{var eo;null===(eo=ew.onClick)||void 0===eo||eo.call(ew,ei),ef&&(ef(ei),console.warn("onClick is deprecated, please use onPress")),!eA.isNative&&ei.currentTarget instanceof HTMLAnchorElement&&ei.currentTarget.href&&!ei.isDefaultPrevented()&&(0,tp.b0)(ei.currentTarget,ei)&&(ei.preventDefault(),eA.open(ei.currentTarget,ei))}})}}var tb=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let tw=300,t_=(0,eu.forwardRef)((ei,eo)=>{var{iconLeft:ea,iconRight:ec,iconStart:ed,iconEnd:ef,text:eh,size:eg="md",onPress:em,direction:eb="horizontal",preventDoubleClick:ew}=ei,e_=tb(ei,["iconLeft","iconRight","iconStart","iconEnd","text","size","onPress","direction","preventDoubleClick"]);let eS=ej(eo),eE=eU({onPress:em},tw,{enableDebounce:!!ew,enableEvents:!e_.loading}),{linkProps:eA}=tv(Object.assign(Object.assign(Object.assign({},e_),eE),{isDisabled:e_.disabled}),eS);return eu.createElement(e3,Object.assign({},e_,eA,{ref:eS,className:e5({direction:eb,size:eg}),size:eg,as:"a"}),eu.createElement(tu,{iconStart:ed||ea,iconEnd:ef||ec,text:eh,loading:e_.loading,size:eg,direction:eb}))}),tS=eh("",{variants:{tone:{primary:"text-ds-primary",neutral:"text-ds-neutral",dimmed:"text-ds-dimmed",positive:"text-ds-positive",negative:"text-ds-negative",warning:"text-ds-warning",brand:"text-ds-brand",info:"text-ds-info",inverted:"text-ds-inverted",disabled:"text-ds-disabled"},type:{body1:"text-ds-plex-16-regular",body2:"text-ds-plex-14-regular",caption1:"text-ds-plex-12-regular",caption2:"text-ds-plex-10-regular",heading1:"text-ds-celias-36-bold",heading2:"text-ds-celias-28-medium",heading3:"text-ds-celias-24-medium",heading4:"text-ds-celias-20-medium",heading5:"text-ds-celias-20-medium",label1:"text-ds-plex-18-medium",label2:"text-ds-plex-16-medium",label3:"text-ds-plex-14-medium",label4:"text-ds-plex-12-medium",labelMono1:"text-ds-plex-14-regular-mono",labelMono2:"text-ds-plex-12-regular-mono"},dashed:{true:"underline decoration-dashed underline-offset-4 decoration-ds-text-dashed"}}});var tE=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let tA=(0,eu.forwardRef)((ei,eo)=>{var{as:ea="span",children:ec,tone:ed="primary",type:ef="label1",dashed:eh=!1,htmlFor:em}=ei,eb=tE(ei,["as","children","tone","type","dashed","htmlFor"]);let{className:ew,rest:eS}=e_(eb);return eu.createElement(ea,Object.assign(Object.assign({},eS),{className:(0,eg.Z)(tS({dashed:eh,tone:ed,type:ef}),ew),ref:eo,htmlFor:"label"===ea?em:void 0}),eu.createElement(eu.Fragment,null,ec))})},88808:function(ei,eo,ea){"use strict";ea.d(eo,{B:function(){return ed},Z:function(){return ec}});var eu=ea(67294);let ec=(0,eu.createContext)({triggerAlert:(ei,eo,ea,eu)=>{},dismissAlert:()=>{},currentAlert:null}),ed=()=>{let ei=(0,eu.useContext)(ec);return ei}},72439:function(ei,eo,ea){"use strict";ea.d(eo,{Y:function(){return eg}});var eu=ea(67294);let ec=ei=>{let{options:eo,ref:ea}=ei;return{container:ea,renderer:"svg",loop:eo.loop||!0,autoplay:eo.autoplay||!0,rendererSettings:eo.rendererSettings,animationData:eo.animationData}},ed=ei=>"number"==typeof ei?"".concat(ei,"px"):ei||"100%",ef=ei=>{let{width:eo,height:ea,maxHeight:eu="100%",maxWidth:ec="100%"}=ei;return{width:ed(eo),height:ed(ea),overflow:"hidden",margin:"0 auto",outline:"none",maxHeight:eu,maxWidth:ec}},eh=ei=>{let{options:eo,title:ed="",width:eh=24,height:eg=24,maxHeight:em="100%",maxWidth:eb="100%",ariaRole:ew,speed:e_=1,direction:eS=1,isStopped:eE=!1,isPaused:eA=!1,isClickToPauseDisabled:eT=!0,eventListeners:ek=[]}=ei,eC=(0,eu.useRef)(null),[eO,eI]=(0,eu.useState)(),[eP,eD]=(0,eu.useState)(),[eN,eM]=(0,eu.useState)(null);(0,eu.useEffect)(()=>{Promise.resolve().then(ea.t.bind(ea,11248,23)).then(ei=>eM(ei.default))},[]),(0,eu.useEffect)(()=>()=>{eP&&(eF(ek),eP.destroy())},[]),(0,eu.useEffect)(()=>{if(eC.current){let ei=ec({options:eo,ref:eC.current});eI(ei)}},[eo]),(0,eu.useEffect)(()=>{eO&&eN&&(eP&&(eF(ek),eP.destroy()),eD(eN.loadAnimation(eO)))},[eO,eN]),(0,eu.useEffect)(()=>{eP&&eL(ek)},[eP]),(0,eu.useEffect)(()=>{eP&&(eE?eP.stop():eP.play(),eA&&!eP.isPaused?eP.pause():!eA&&eP.isPaused&&eP.pause(),eP.setSpeed(e_),eP.setDirection(eS))},[eA,e_,eS,eE,eP]);let ej=()=>{eP&&(eP.isPaused?eP.play():eP.pause())},eR=eT?()=>null:ej,eL=ei=>{eP&&ei.forEach(ei=>{eP.addEventListener(ei.name,ei.callback)})},eF=ei=>{eP&&ei.forEach(ei=>{eP.removeEventListener(ei.name,ei.callback)})},eB=ef({width:eh,height:eg,maxHeight:em,maxWidth:eb});return eu.createElement("div",{ref:eC,style:eB,onClick:eR,title:ed,role:ew})},eg=eu.memo(eh)},72261:function(ei,eo,ea){"use strict";ea.d(eo,{CA:function(){return eu},Qj:function(){return e_},zx:function(){return ew}});var eu,ec=ea(67294),ed=ea(86010),ef=ea(20317),eh=ea.n(ef),eg=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let em=ec.forwardRef((ei,eo)=>{let{innerClassName:ea,outerClassName:eu,kind:ef="primary",size:em="large",disabled:eb=!1,className:ew,onClick:e_,children:eS}=ei,eE=eg(ei,["innerClassName","outerClassName","kind","size","disabled","className","onClick","children"]);return ec.createElement("button",Object.assign({ref:eo,className:(0,ed.Z)(eh().button,eh()[ef],eh()[em],ew,"no-tab-highlight"),onClick:e_,disabled:eb},eE),ec.createElement("div",{className:(0,ed.Z)(eh().focusRing,eu)},ec.createElement("div",{className:eh().spacer},ec.createElement("div",{className:(0,ed.Z)(eh().buttonInner,ea)},eS))))}),eb=ec.forwardRef((ei,eo)=>{var{children:ea,className:eu}=ei,ef=eg(ei,["children","className"]);return ec.createElement("button",Object.assign({ref:eo,className:(0,ed.Z)("pointer","inline-flex","items-center","text-N600",eu)},ef),ea)}),ew=ec.forwardRef((ei,eo)=>{let{kind:ea}=ei;return"inline"===ea?ec.createElement(eb,Object.assign({},ei,{ref:eo})):ec.createElement(em,Object.assign({},ei,{ref:eo}))});!function(ei){ei.Blank="_blank",ei.Self="_self",ei.Parent="_parent",ei.Top="_top"}(eu||(eu={}));let e_=(0,ec.forwardRef)((ei,eo)=>{var{children:ea,className:eu,disabled:ef,fullWidth:em,href:eb,kind:ew="primary",size:e_="large",onClick:eS,innerClassName:eE,outerClassName:eA,target:eT}=ei,ek=eg(ei,["children","className","disabled","fullWidth","href","kind","size","onClick","innerClassName","outerClassName","target"]);return ec.createElement("a",Object.assign({className:(0,ed.Z)(eh().button,eh()[ew],eh()[e_],{[eh().disabled]:ef},eu),href:ef?"#":eb,onClick:eS,ref:eo,target:eT},ek),ec.createElement("div",{className:(0,ed.Z)(eh().focusRing,eA)},ec.createElement("div",{className:eh().spacer},ec.createElement("div",{className:(0,ed.Z)(eh().buttonInner,{[eh().fullWidth]:em},eE)},ea))))})},59720:function(ei,eo,ea){"use strict";ea.d(eo,{T:function(){return eS}});var eu=ea(67294),ec=ea(86010),ed=ea(72261),ef=ea(59112),eh=ea(39311),eg=ea.n(eh),em=ea(62410),eb=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ew=ei=>{var{wideConfirm:eo,loadingMessage:ea,className:ed,spinnerClassName:ef,size:eh,color:ew}=ei,e_=eb(ei,["wideConfirm","loadingMessage","className","spinnerClassName","size","color"]);return eu.createElement("div",Object.assign({"data-testid":"loading indicator",className:(0,ec.Z)({"mb3/2":eo},eg().loadingIndicator,ed)},e_),eu.createElement("div",{className:(0,ec.Z)(eg().loadingSpinner,"relative","dib","vertical-middle")},eu.createElement(em.T,{skinny:!0,size:eh,className:ef,color:ew})),ea&&eu.createElement("span",{className:"label-2 text-I200 ml1"},ea))};var e_=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eS=ei=>{var{confirmButtonText:eo,cancelButtonText:ea,onConfirm:ef,onCancel:eh,className:em,innerClassName:eb,isLoading:eS,loadingMessage:eE,wideConfirm:eA,confirmDisabled:eT,buttonSize:ek="extra-large"}=ei,eC=e_(ei,["confirmButtonText","cancelButtonText","onConfirm","onCancel","className","innerClassName","isLoading","loadingMessage","wideConfirm","confirmDisabled","buttonSize"]);return eu.createElement("div",Object.assign({className:(0,ec.Z)("flex","w-100","items-center",{"flex-column":eA,"justify-end":!eS,"justify-between":eS},em,eg().confirmation)},eC),eS&&eu.createElement(ew,{wideConfirm:eA,loadingMessage:eE}),eu.createElement("div",{className:(0,ec.Z)({"w-100":eA},eg().buttons)},eh&&!eS&&!eA&&eu.createElement(ed.zx,Object.assign({size:ek,"data-testid":"cancel button"},eS?{disabled:!0}:{},{kind:"cancel",onClick:eh,className:(0,ec.Z)("mr3",eg().cancelButton),innerClassName:eb,type:"button"}),ea),eu.createElement(ed.zx,Object.assign({size:ek,"data-testid":"confirm button"},eS||eT?{disabled:!0}:{},{type:ef?void 0:"submit",onClick:ef,className:(0,ec.Z)(eg().confirmButton,{"w-100":eA,[eg().tallButton]:eA}),innerClassName:eb}),eo)))};eS.defaultProps={confirmButtonText:eu.createElement(ef.x,{langKey:"general:Confirm"}),cancelButtonText:eu.createElement(ef.x,{langKey:"general:Cancel"})}},92299:function(ei,eo,ea){"use strict";ea.d(eo,{m:function(){return ew}});var eu=ea(67294),ec=ea(86010),ed=ea(78320),ef=ea.n(ed),eh=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eg="https://assets.kraken.com/marketing/web/icons/",em=ei=>"eth2"===ei||"eth2.s"===ei?"eth":"xbt"===ei?"btc":ei;class eb extends Error{constructor(ei,{src:eo}){super(ei),this.src="",this.name="IconError",this.src=eo}}let ew=(0,eu.forwardRef)((ei,eo)=>{var{className:ea,asset:ed,circle:ew=!1,fallback:e_=!0,transparent:eS=!0,onError:eE,color:eA}=ei,eT=eh(ei,["className","asset","circle","fallback","transparent","onError","color"]);let ek=em(ed.toLowerCase()),eC=(ew?ek:ek+"-s")+"_colored.svg",eO="".concat(eg,"sym-").concat(eC,"?e=").concat(document.location.hostname),eI="".concat(eg,"sym-o.svg?e=").concat(document.location.hostname),[eP,eD]=(0,eu.useState)(),[eN,eM]=(0,eu.useState)(!1),ej=(0,eu.useCallback)(ei=>{ei.stopPropagation(),eD(new eb("error loading ".concat(ei.currentTarget.src),{src:ei.currentTarget.src})),null==eE||eE(ei)},[eE]),eR=(0,eu.useCallback)(()=>{eM(!0)},[]),eL=eP&&e_?eI:eO;return eu.createElement("img",Object.assign({ref:eo,src:eL,alt:ed,width:"24px",height:"24px",className:(0,ec.Z)({[ef().error]:eP&&(eI===eP.src||!e_),[ef().circle]:ew,[ef().notTransparent]:!eS,[ef().btc]:"btc"===ek,[ef().loading]:!eP&&!eN},ea),onError:ej,onLoad:eR},eT))});ew.displayName="Crypton"},22997:function(ei,eo,ea){"use strict";ea.d(eo,{PJ:function(){return ed},TB:function(){return eg},bY:function(){return eh},g:function(){return ec},xz:function(){return ef}});let eu=ei=>ei<10?"0".concat(ei):ei,ec=(ei,eo)=>{if(!eo)return ei;let ea=ed(ei,eo),eu=ea.getTime()-ei.getTime();return new Date(ei.getTime()-eu)},ed=(ei,eo)=>{let ea=new Intl.DateTimeFormat("en-us",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:eo}),eu=ei.getMilliseconds(),ec=new Date(ei).setMilliseconds(0),ed=new Date(ea.format(ec));return ed.setMilliseconds(eu),ed},ef=function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"00:00:00";if(ei){let eo=eu(ei.getHours()),ea=eu(ei.getMinutes()),ec=eu(ei.getSeconds());return"".concat(eo,":").concat(ea,":").concat(ec)}return eo};function eh(ei){return ei?"filPH"===ei?"fil":"zh-cn"===ei?ei:ei.split("-")[0]:"en"}function eg(ei,eo){let[ea,eu,ec]=ei.split(":"),ed=new Date(eo.getTime());return ea&&ed.setHours(Number(ea)),eu&&ed.setMinutes(Number(eu)),ec&&ed.setSeconds(Number(ec)),ed}},98319:function(ei,eo,ea){"use strict";ea.d(eo,{d:function(){return eh}});var eu=ea(67294),ec=ea(86010);let ed=ei=>{var eo;if(!ei||eu.Children.count(ei)>1)return!1;let ea=Array.isArray(ei)?ei[0]:ei;return"string"==typeof ea||"number"==typeof ea||!!(null===(eo=null==ea?void 0:ea.props)||void 0===eo?void 0:eo.langKey)};var ef=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eh=eu.forwardRef((ei,eo)=>{var{target:ea="_BLANK",rel:eh="noopener noreferrer",children:eg}=ei,em=ef(ei,["target","rel","children"]);return eu.createElement("a",Object.assign({ref:eo,target:ea,rel:eh},em,{className:(0,ec.Z)(em.className,ed(eg)&&"text-tab-highlight")}),eg)})},11770:function(ei,eo,ea){"use strict";ea.d(eo,{gN:function(){return e$}});var eu=ea(67294),ec=ea(39189),ed=ea(52034),ef=ea.n(ed),eh=ea(86010),eg=ea(1922);let em=(ei,eo={})=>{let{precision:ea,compact:ec,forceMinimumFractionDigits:ed=!0}=eo;return(0,eu.useMemo)(()=>new Intl.NumberFormat(ei,{style:"decimal",notation:ec?"compact":"standard",minimumFractionDigits:ed?ea:void 0,maximumFractionDigits:ea}),[ei,ea,ec,ed])},eb=ei=>(0,eu.useMemo)(()=>{let eo=10000.12.toLocaleString(ei,{minimumFractionDigits:2}),ea=eo.charAt(2),eu=eo.charAt(6);return{decimalSeparator:eu,groupSeparator:ea}},[ei]);var ew=ea(93552),e_=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eS=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ec=e_(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ew.ti)(ec),{ref:eo,viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M10 3C8.34315 3 7 4.34315 7 6C7 7.65685 8.34315 9 10 9C11.6569 9 13 7.65685 13 6C13 4.34315 11.6569 3 10 3ZM9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6Z",fill:ea}),eu.createElement("path",{d:"M0 6C0 6 4 0 10 0C16 0 20 6 20 6C20 6 16 12 10 12C4 12 0 6 0 6ZM17.45 6C16.12 4.5 13.39 2 10 2C6.61 2 3.89 4.5 2.55 6C3.88 7.5 6.61 10 10 10C13.39 10 16.12 7.5 17.45 6Z",fill:ea}))});var eE=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eA=eu.forwardRef((ei,eo)=>{var{color:ea}=ei,ec=eE(ei,["color"]);return eu.createElement("svg",Object.assign({},(0,ew.ti)(ec),{ref:eo,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eu.createElement("path",{d:"M17.0711 0.514648L18.4853 1.92886L2.92893 17.4852L1.51472 16.071L7.2924 10.2933C7.29249 10.2935 7.29232 10.2931 7.2924 10.2933L11.293 6.29198C11.2928 6.2919 11.2931 6.29206 11.293 6.29198L17.0711 0.514648ZM9.30148 8.28424C9.29572 8.28986 9.29003 8.29555 9.28441 8.3013L9.30148 8.28424Z",fill:ea}),eu.createElement("path",{d:"M8.91264 12.9148C9.26655 12.97 9.62933 12.9999 10 12.9999C13.39 12.9999 16.12 10.4999 17.45 8.99992C16.8805 8.35765 16.0544 7.53204 15.0296 6.79785L16.4612 5.36625C18.6964 7.04448 20 8.99992 20 8.99992C20 8.99992 16 14.9999 10 14.9999C9.0277 14.9999 8.10791 14.8424 7.24916 14.5783L8.91264 12.9148Z",fill:ea}),eu.createElement("path",{d:"M10 2.99992C10.9719 2.99992 11.8912 3.15734 12.7496 3.42118L11.086 5.08481C10.7325 5.02974 10.3702 4.99992 10 4.99992C6.61 4.99992 3.89 7.48993 2.55 8.99992C3.11931 9.64201 3.94515 10.4673 4.96947 11.2014L3.53789 12.6329C1.30328 10.9549 0 8.99992 0 8.99992C0 8.99992 4 2.99992 10 2.99992Z",fill:ea}),eu.createElement("path",{d:"M10.1664 6.00436C10.1113 6.00135 10.0558 5.99983 10 5.99983C8.34315 5.99983 7 7.34297 7 8.99983C7 9.05565 7.00152 9.11112 7.00453 9.16619L10.1664 6.00436Z",fill:ea}),eu.createElement("path",{d:"M9.83216 11.9952C9.88772 11.9983 9.94368 11.9998 10 11.9998C11.6569 11.9998 13 10.6567 13 8.99983C13 8.9435 12.9984 8.88754 12.9954 8.83199L9.83216 11.9952Z",fill:ea}))});var eT=ea(45651),ek=ea(31204),eC=ea.n(ek),eO=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eI=eu.createContext({});function eP(){let ei=eu.useContext(eI);if(!ei)throw Error("Field compound components cannot be rendered outside the Field component");return ei}let eD=ei=>{var{className:eo}=ei,ea=eO(ei,["className"]);let ec=eP();return eu.createElement("span",Object.assign({},ea,{className:(0,eh.Z)(eC().input,"w-100 body-2 text-N600 h-100 db",{[eC().floating]:ec.floating,[eC().compact]:ec.compact,"pl2 pr2":!ec.floating,"pl3/2 pr3/2":ec.floating},eo)}),ec.value)},eN=ei=>{var{className:eo}=ei,ea=eO(ei,["className"]);return eu.createElement("span",Object.assign({},ea,{className:(0,eh.Z)("caption-4 text-N600",eo)}),ea.children)},eM=ei=>{var{className:eo}=ei,ea=eO(ei,["className"]);let ec=eP();return eu.createElement("label",Object.assign({},ea,{htmlFor:ec.id,className:(0,eh.Z)("text-N400 body-1 border-1 h-100 flex items-center",eo,eC().label,{"text-G300":"positive"===ec.type},{"text-R300":"negative"===ec.type})}),ea.children)},ej=ei=>{var{className:eo,required:ea}=ei,ec=eO(ei,["className","required"]);let ed=eP();return eu.createElement("label",Object.assign({},ec,{htmlFor:ed.id,className:(0,eh.Z)("text-N300 absolute",eC().floatingLabel,eo,{[eC().compact]:ed.compact,"text-G300":"positive"===ed.type,"text-R300":"negative"===ed.type})}),ea&&"* ",ec.children)},eR=ei=>{var{className:eo}=ei,ea=eO(ei,["className"]);return eu.createElement("div",Object.assign({},ea,{className:(0,eh.Z)("relative flex-auto",eo,eC().floatingContainer)}),ea.children)},eL=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{i18n:{language:eo}}=(0,eg.$G)(),{language:ea,precision:eu,compact:ec,forceMinimumFractionDigits:ed}=ei;return em(null!=ea?ea:eo,{precision:eu,compact:ec,forceMinimumFractionDigits:ed})},eF=ei=>{let{i18n:{language:eo}}=(0,eg.$G)();return eb(null!=ei?ei:eo)},eB=function(ei,eo){var ea;let eu=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",ec=Number(ei),ed=null===(ea=String(ei))||void 0===ea?void 0:ea.split(eu);return 1==ed.length||ed[1].length{let eo=eP(),{className:ea,skipFormatting:ed=!1,decimalScale:ef=2,locale:eg,allowNegative:em=!1,allowedDecimalSeparators:eb}=ei,ew=eO(ei,["className","skipFormatting","decimalScale","locale","allowNegative","allowedDecimalSeparators"]),{groupSeparator:e_,decimalSeparator:eS}=eF(eg);function eE(ei){let eo=ei.replace(RegExp("\\"+e_,"g"),"");return Number.isNaN(eo=eo.replace(RegExp("\\"+eS,"g"),"."))?0:eo}let eA=eL({language:eg,precision:ef,compact:!1,forceMinimumFractionDigits:!ed}),eT=eo.value?eA.format(Number(eo.value)):"";return eu.createElement(ec.Z,Object.assign({},ew,{allowNegative:em,id:eo.id,allowedDecimalSeparators:eb,decimalSeparator:eS,decimalScale:ef,thousandSeparator:e_,customInput:eG,getInputRef:ei.getInputRef,onFocus:eo.onFocus,onBlur:ei=>{if(0!==ef&&eo.value&&!isNaN(Number(eo.value))){let ei=ed?eo.value:eB(eo.value,ef,eS),ea={target:{id:eo.id,name:eo.name,value:ei}};eo.onChange&&eo.value!==ei&&eo.onChange(ea)}eo.onBlur&&eo.onBlur(ei)},isNumericString:!1,name:eo.name,disabled:eo.disabled,className:(0,eh.Z)("body-mono-2 pl0",ea),onChange:ei=>{if(eo.onChange){let ea={target:{id:eo.id,name:eo.name,value:eE(ei.target.value)}};eo.onChange(ea)}},value:eT}))},eG=eu.forwardRef((ei,eo)=>{var{className:ea}=ei,ec=eO(ei,["className"]);let ed=eP();return eu.createElement("input",Object.assign({},ec,{ref:eo,className:(0,eh.Z)("w-100 text-N600 h-100",eC().input,ea,{[eC().floating]:ed.floating,[eC().compact]:ed.compact,"body-2":!ed.compact,"caption-2":ed.compact,"pl2 pr2":!ed.floating,"pl3/2 pr3/2":ed.floating,"cursor-disabled":ed.disabled})}))}),eV=ei=>{var{className:eo,children:ea}=ei,ec=eO(ei,["className","children"]);let{floating:ed}=eP();return eu.createElement("div",Object.assign({},ec,{className:(0,eh.Z)("w-100 body-2 text-N600 h-100",eC().input,eo,{[eC().floating]:ed,"pl2 pr2":!ed,"pl3/2 pr3/2":ed})}),ea)},eH=ei=>{var{className:eo}=ei,ea=eO(ei,["className"]);let{value:ec,floating:ed,multiline:ef}=eP();return eu.createElement("div",Object.assign({},ea,{className:(0,eh.Z)("w-100 body-2 text-N600 h-100",eC().input,eo,{[eC().floating]:ed,"pl2 pr2":!ed,"pl3/2 pr3/2":ed,[eC().multiline]:ef})}),ec)},eW=ei=>{var{className:eo,showSeconds:ea=!0}=ei,ec=eO(ei,["className","showSeconds"]);let ed=eP(),eg=ea?["h","m","s"]:["h","m"];return eu.createElement(ef(),Object.assign({},ec,{id:ed.id,name:ed.name,options:{time:!0,timePattern:eg},key:"".concat(ed.id,"-").concat(eg.join("-")),className:(0,eh.Z)("w-100 body-mono-2 text-N600 h-100",eC().input,eo,{[eC().floating]:ed.floating,[eC().compact]:ed.compact,"pl2 pr2":!ed.floating,"pl3/2 pr3/2":ed.floating}),disabled:ed.disabled,onChange:ed.onChange,onFocus:ed.onFocus,onBlur:ed.onBlur,value:ed.value}))},eK=eu.forwardRef((ei,eo)=>{var{className:ea}=ei,ec=eO(ei,["className"]);let ed=eP();return eu.createElement(eG,Object.assign({},ec,{ref:eo,id:ed.id,name:ed.name,className:(0,eh.Z)("w-100 body-2 text-N600 h-100",eC().input,ea,{[eC().floating]:ed.floating,[eC().compact]:ed.compact,"pl2 pr2":!ed.floating}),disabled:ed.disabled,onChange:ed.onChange,onFocus:ed.onFocus,onBlur:ed.onBlur,value:ed.value}))}),eY=(0,eu.forwardRef)((ei,eo)=>{let[ea,ec]=(0,eu.useState)(!1),[ed,ef]=(0,eu.useState)(!1),eg=eu.useRef(null),em=eu.useRef(null),eb=()=>{ec(ei=>!ei),ef(!0)};eu.useEffect(()=>{var ei;ed&&(null===(ei=(ea?eg:em).current)||void 0===ei||ei.focus(),ef(!1))},[ed]);let ew={className:(0,eh.Z)("text-N600",eC().iconRight),tabIndex:0,onClick:eb,size:"small",type:"button"};return eu.createElement(eu.Fragment,null,eu.createElement(eK,Object.assign({},ei,{ref:eo,className:(0,eh.Z)(eC().withIconRight,ei.className),type:ea?"text":"password"})),ea?eu.createElement(eT.h,Object.assign({icon:eS},ew,{ref:eg,"data-testid":"hide-password-button"})):eu.createElement(eT.h,Object.assign({icon:eA},ew,{ref:em,"data-testid":"show-password-button"})))}),eZ=ei=>{var{className:eo,children:ea}=ei,ec=eO(ei,["className","children"]);return ea?eu.createElement("div",Object.assign({className:(0,eh.Z)(eC().errorText,"pt1/4 caption-2 text-R300",eo)},ec),ea):null},e$=ei=>{var{className:eo,"data-testid":ea,dirtyClassName:ec}=ei,ed=eO(ei,["className","data-testid","dirtyClassName"]);(void 0!=ed.errorText||ed.error)&&(ed.type="negative");let ef=void 0!==ed.value&&""!==ed.value,eg=(0,eh.Z)(eC().dirty,ec);return eu.createElement(eI.Provider,{value:ed},eu.createElement("div",{className:(0,eh.Z)("relative flex",eC().container,eo,{[eg]:ef,[eC().negative]:"negative"===ed.type,[eC().positive]:"positive"===ed.type}),"data-testid":ea},eu.createElement("div",{className:(0,eh.Z)("w-100 tl flex items-center")},eu.Children.map(ed.children,(ei,eo)=>ei&&"object"==typeof ei&&"props"in ei?eu.cloneElement(ei,{key:eo,className:(0,eh.Z)("flex items-center h-100 bg-pure-white no-tab-highlight",ei.props.className,eC().FieldItem,{"bg-NT100":ed.disabled},{"bg-N100":"locked"===ed.type})}):ei))),ed.errorText&&eu.createElement("div",{className:(0,eh.Z)(eC().errorText,"pt1/4 caption-2 text-R300"),"data-testid":"".concat(ea,"-error-message")},ed.errorText),ed.helperText&&eu.createElement("div",{className:(0,eh.Z)("mt1/2 caption-2 text-N500",{"text-R300":"negative"===ed.type,"text-G300":"positive"===ed.type})},ed.helperText))};e$.TimeInput=eW,e$.FloatingLabel=ej,e$.Floating=eR,e$.Label=eM,e$.ErrorText=eZ,e$.NumberInput=eU,e$.PasswordInput=eY,e$.Subtext=eN,e$.TextInput=eK,e$.ChildInput=eV,e$.FakeInput=eH,e$.Value=eD},45651:function(ei,eo,ea){"use strict";ea.d(eo,{h:function(){return em}});var eu=ea(67294),ec=ea(86010),ed=ea(59112),ef=ea(94433),eh=ea.n(ef),eg=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let em=eu.forwardRef((ei,eo)=>{var{size:ea,type:ef="button",className:em,color:eb,icon:ew,textPosition:e_="left",textLangKey:eS,dataTestId:eE}=ei,eA=eg(ei,["size","type","className","color","icon","textPosition","textLangKey","dataTestId"]);return eu.createElement("button",Object.assign({ref:eo,type:ef,className:(0,ec.Z)("flex",eh().button,em,"no-tab-highlight")},eA),eu.createElement("div",{className:(0,ec.Z)(eh().innerDiv,eh()[e_],"roundel"),"data-testid":eE},eS&&eu.createElement(ed.x,{langKey:eS}),eu.createElement(ew,{size:ea,color:eb})))})},24160:function(ei,eo,ea){"use strict";ea.d(eo,{x:function(){return ec}});var eu=ea(67294);let ec=ei=>{let{timeInterval:eo=200}=ei,[ea,ec]=(0,eu.useState)(0);(0,eu.useEffect)(()=>{let ei=setInterval(()=>{if(3===ea){ec(0);return}ec(ea+1)},eo);return()=>clearInterval(ei)});let ed=[...Array(ea).keys()].map(()=>".").reduce((ei,eo)=>"".concat(ei).concat(eo),"");return eu.createElement("span",{"data-testid":"loading-dots"},ed)}},62410:function(ei,eo,ea){"use strict";ea.d(eo,{T:function(){return eg}});var eu=ea(67294),ec=ea(86010),ed=ea(37638),ef=ea.n(ed),eh=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eg=ei=>{var{variant:eo="light",skinny:ea,size:ed,className:eg,color:em}=ei,eb=eh(ei,["variant","skinny","size","className","color"]);return eu.createElement("div",Object.assign({style:{width:ed,height:ed,position:ed?"static":void 0,borderLeftColor:em},className:(0,ec.Z)(ef().loadingSpinner,ef()[eo],{[ef().skinny]:ea},eg)},eb))}},77172:function(ei,eo,ea){"use strict";ea.d(eo,{c:function(){return em}});var eu=ea(67294),ec=ea(86010),ed=ea(62410),ef=ea(63282),eh=ea.n(ef),eg=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let em=ei=>{let{label:eo,value:ea,loading:ef=!1,indicator:em=!1,indicatorClassName:eb="bg-N600",className:ew,labelClassName:e_,valueClassName:eS,dataTestId:eE="nutrition-fact-container"}=ei,eA=eg(ei,["label","value","loading","indicator","indicatorClassName","className","labelClassName","valueClassName","dataTestId"]);return eu.createElement("div",Object.assign({className:(0,ec.Z)(eh().lockup,eh().lockupNutritionFact,"flex items-center justify-between",ew)},eA),eu.createElement("div",{className:(0,ec.Z)(eh().lockupLabel,"text-N400 label-2 flex items-center",e_),"data-testid":"".concat(eE,"-label")},em&&eu.createElement("div",{className:(0,ec.Z)(eh().lockupIndicator,eb)}),eu.createElement("div",{className:"nowrap flex items-center"},eo)),eu.createElement("div",{className:(0,ec.Z)(eh().lockupValue,eS,"text-N600 label-2"),"data-testid":"".concat(eE,"-value")},ef?eu.createElement(ed.T,{skinny:!0,size:15}):ea))}},69938:function(ei,eo,ea){"use strict";ea.d(eo,{q:function(){return eg}});var eu=ea(67294),ec=ea(86010),ed=ea(16794),ef=ea.n(ed),eh=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eg=ei=>{var{children:eo,className:ea,kind:ed}=ei,eg=eh(ei,["children","className","kind"]);return eu.createElement("div",Object.assign({className:(0,ec.Z)(ef().notice,ea,ef()[ed])},eg),eo)}},59112:function(ei,eo,ea){"use strict";ea.d(eo,{x:function(){return eg}});var eu=ea(67294),ec=ea(1922);let ed=ei=>({"data-lang-key":ei});var ef=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let eh="__TRANSLATION_NOT_FOUND__",eg=eu.forwardRef((ei,eo)=>{var{langKey:ea,keys:eg,interpolation:em={}}=ei,eb=ef(ei,["langKey","keys","interpolation"]);let ew=Object.assign(Object.assign({},ed(ea)),eb),{t:e_}=(0,ec.$G)(),eS=e_(ea,eh,Object.assign({interpolation:em},eg));return eu.createElement("span",Object.assign({ref:eo},ew,eb),eS===eh?ea:eS)})},39189:function(ei,eo,ea){"use strict";eA={value:!0},Object.defineProperty(eo,"Z",{enumerable:!0,get:function(){return eJ}});let eu=ea(10260),ec=eu._(ea(67294));function ed(ei,eo){if(!(ei instanceof eo))throw TypeError("Cannot call a class as a function")}function ef(ei,eo){for(var ea=0;ea1)||void 0===arguments[1]||arguments[1],ea="-"===ei[0],eu=ea&&eo,ec=(ei=ei.replace("-","")).split(".");return{beforeDecimal:ec[0],afterDecimal:ec[1]||"",hasNagation:ea,addNegation:eu}}function eF(ei){if(!ei)return ei;var eo="-"===ei[0];eo&&(ei=ei.substring(1,ei.length));var ea=ei.split("."),eu=ea[0].replace(/^0+/,"")||"0",ec=ea[1]||"";return"".concat(eo?"-":"").concat(eu).concat(ec?".".concat(ec):"")}function eB(ei,eo,ea){for(var eu="",ec=ea?"0":"",ed=0;ed<=eo-1;ed++)eu+=ei[ed]||ec;return eu}function eU(ei,eo,ea){if(-1!==["","-"].indexOf(ei))return ei;var eu=-1!==ei.indexOf(".")&&eo,ec=eL(ei),ed=ec.beforeDecimal,ef=ec.afterDecimal,eh=ec.hasNagation,eg=parseFloat("0.".concat(ef||"0")).toFixed(eo).split("."),em=ed.split("").reverse().reduce(function(ei,eo,ea){return ei.length>ea?(Number(ei[0])+Number(eo)).toString()+ei.substring(1,ei.length):eo+ei},eg[0]),eb=eB(eg[1]||"",Math.min(eo,ef.length),ea),ew=eh?"-":"",e_=eu?".":"";return"".concat(ew).concat(em).concat(e_).concat(eb)}function eG(ei,eo){var ea={};return Object.keys(ei).forEach(function(eu){eo[eu]||(ea[eu]=ei[eu])}),ea}function eV(ei,eo){if(ei.value=ei.value,null!==ei){if(ei.createTextRange){var ea=ei.createTextRange();return ea.move("character",eo),ea.select(),!0}return ei.selectionStart||0===ei.selectionStart?(ei.focus(),ei.setSelectionRange(eo,eo),!0):(ei.focus(),!1)}}function eH(ei,eo){for(var ea=0,eu=0,ec=ei.length,ed=eo.length;ei[ea]===eo[ea]&&eaea&&ec-eu>ea;)eu++;return{start:ea,end:ec-eu}}function eW(ei,eo,ea){return Math.min(Math.max(ei,eo),ea)}function eK(ei){return Math.max(ei.selectionStart,ei.selectionEnd)}var eY={thousandSeparator:eI.oneOfType([eI.string,eI.oneOf([!0])]),decimalSeparator:eI.string,allowedDecimalSeparators:eI.arrayOf(eI.string),thousandsGroupStyle:eI.oneOf(["thousand","lakh","wan"]),decimalScale:eI.number,fixedDecimalScale:eI.bool,displayType:eI.oneOf(["input","text"]),prefix:eI.string,suffix:eI.string,format:eI.oneOfType([eI.string,eI.func]),removeFormatting:eI.func,mask:eI.oneOfType([eI.string,eI.arrayOf(eI.string)]),value:eI.oneOfType([eI.number,eI.string]),defaultValue:eI.oneOfType([eI.number,eI.string]),isNumericString:eI.bool,customInput:eI.elementType,allowNegative:eI.bool,allowEmptyFormatting:eI.bool,allowLeadingZeros:eI.bool,onValueChange:eI.func,onKeyDown:eI.func,onMouseUp:eI.func,onChange:eI.func,onFocus:eI.func,onBlur:eI.func,type:eI.oneOf(["text","tel","password"]),isAllowed:eI.func,renderText:eI.func,getInputRef:eI.oneOfType([eI.func,eI.shape({current:eI.any})])},eZ={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:eP,onChange:eP,onKeyDown:eP,onMouseUp:eP,onFocus:eP,onBlur:eP,isAllowed:eD},e$=function(ei){function eo(ei){ed(this,eo),ea=eS(this,eb(eo).call(this,ei));var ea,eu=ei.defaultValue;ea.validateProps();var ec=ea.formatValueProp(eu);return ea.state={value:ec,numAsString:ea.removeFormatting(ec)},ea.selectionBeforeInput={selectionStart:0,selectionEnd:0},ea.onChange=ea.onChange.bind(e_(ea)),ea.onKeyDown=ea.onKeyDown.bind(e_(ea)),ea.onMouseUp=ea.onMouseUp.bind(e_(ea)),ea.onFocus=ea.onFocus.bind(e_(ea)),ea.onBlur=ea.onBlur.bind(e_(ea)),ea}return em(eo,ei),eh(eo,[{key:"componentDidUpdate",value:function(ei){this.updateValueIfRequired(ei)}},{key:"updateValueIfRequired",value:function(ei){var eo=this.props,ea=this.state,eu=this.focusedElm,ec=ea.value,ed=ea.numAsString,ef=void 0===ed?"":ed;if(ei!==eo){this.validateProps();var eh=this.formatNumString(ef),eg=void 0===eo.value?eh:this.formatValueProp(),em=this.removeFormatting(eg),eb=parseFloat(em),ew=parseFloat(ef);(isNaN(eb)&&isNaN(ew)||eb===ew)&&eh===ec&&(null!==eu||eg===ec)||this.updateValue({formattedValue:eg,numAsString:em,input:eu})}}},{key:"getFloatString",value:function(){var ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",eo=this.props.decimalScale,ea=this.getSeparators().decimalSeparator,eu=this.getNumberRegex(!0),ec="-"===ei[0];ec&&(ei=ei.replace("-","")),ea&&0===eo&&(ei=ei.split(ea)[0]);var ed=(ei=(ei.match(eu)||[]).join("").replace(ea,".")).indexOf(".");return-1!==ed&&(ei="".concat(ei.substring(0,ed),".").concat(ei.substring(ed+1,ei.length).replace(RegExp(eM(ea),"g"),""))),ec&&(ei="-"+ei),ei}},{key:"getNumberRegex",value:function(ei,eo){var ea=this.props,eu=ea.format,ec=ea.decimalScale,ed=this.getSeparators().decimalSeparator;return RegExp("\\d"+(!ed||0===ec||eo||eu?"":"|"+eM(ed)),ei?"g":void 0)}},{key:"getSeparators",value:function(){var ei=this.props.decimalSeparator,eo=this.props,ea=eo.thousandSeparator,eu=eo.allowedDecimalSeparators;return!0===ea&&(ea=","),eu||(eu=[ei,"."]),{decimalSeparator:ei,thousandSeparator:ea,allowedDecimalSeparators:eu}}},{key:"getMaskAtIndex",value:function(ei){var eo=this.props.mask,ea=void 0===eo?" ":eo;return"string"==typeof ea?ea:ea[ei]||" "}},{key:"getValueObject",value:function(ei,eo){var ea=parseFloat(eo);return{formattedValue:ei,value:eo,floatValue:isNaN(ea)?void 0:ea}}},{key:"validateProps",value:function(){var ei=this.props.mask,eo=this.getSeparators(),ea=eo.decimalSeparator,eu=eo.thousandSeparator;if(ea===eu)throw Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: ".concat(eu,' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: ').concat(ea," (default value for decimalSeparator is .)\n "));if(ei&&("string"===ei?ei:ei.toString()).match(/\d/g))throw Error("\n Mask ".concat(ei," should not contain numeric character;\n "))}},{key:"setPatchedCaretPosition",value:function(ei,eo,ea){eV(ei,eo),setTimeout(function(){ei.value===ea&&eV(ei,eo)},0)}},{key:"correctCaretPosition",value:function(ei,eo,ea){var eu=this.props,ec=eu.prefix,ed=eu.suffix,ef=eu.format;if(""===ei)return 0;if(eo=eW(eo,0,ei.length),!ef){var eh="-"===ei[0];return eW(eo,ec.length+(eh?1:0),ei.length-ed.length)}if("function"==typeof ef||"#"===ef[eo]&&eN(ei[eo])||"#"===ef[eo-1]&&eN(ei[eo-1]))return eo;var eg=ef.indexOf("#");eo=eW(eo,eg,ef.lastIndexOf("#")+1);for(var em=ef.substring(eo,ef.length).indexOf("#"),eb=eo,ew=eo+(-1===em?0:em);eb>eg&&("#"!==ef[eb]||!eN(ei[eb]));)eb-=1;return!eN(ei[ew])||"left"===ea&&eo!==eg||eo-eb0&&void 0!==arguments[0]?arguments[0]:"",eo=this.props,ea=eo.format,eu=eo.allowEmptyFormatting,ec=ei;return""!==ei||eu?"-"!==ei||ea?"string"==typeof ea?this.formatWithPattern(ec):"function"==typeof ea?ea(ec):this.formatAsNumber(ec):"-":""}},{key:"formatValueProp",value:function(ei){var eo=this.props,ea=eo.format,eu=eo.decimalScale,ec=eo.fixedDecimalScale,ed=eo.allowEmptyFormatting,ef=this.props,eh=ef.value,eg=void 0===eh?ei:eh,em=ef.isNumericString,eb=!eg&&0!==eg;return(eb&&ed&&(eg=""),eb&&!ed)?"":("number"==typeof eg&&(eg=eg.toString(),em=!0),"Infinity"===eg&&em&&(eg=""),em&&!ea&&"number"==typeof eu&&(eg=eU(eg,eu,ec)),em?this.formatNumString(eg):this.formatInput(eg))}},{key:"formatNegation",value:function(){var ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",eo=this.props.allowNegative,ea=/(-)/,eu=RegExp("(-)(.)*(-)"),ec=ea.test(ei),ed=eu.test(ei);return ei=ei.replace(/-/g,""),ec&&!ed&&eo&&(ei="-"+ei),ei}},{key:"formatInput",value:function(){var ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.props.format||(ei=this.removePrefixAndSuffix(ei),ei=this.formatNegation(ei)),ei=this.removeFormatting(ei),this.formatNumString(ei)}},{key:"isCharacterAFormat",value:function(ei,eo){var ea=this.props,eu=ea.format,ec=ea.prefix,ed=ea.suffix,ef=ea.decimalScale,eh=ea.fixedDecimalScale,eg=this.getSeparators().decimalSeparator;return"string"==typeof eu&&"#"!==eu[ei]||!eu&&(ei=eo.length-ed.length||!!ef&&!!eh&&eo[ei]===eg)}},{key:"checkIfFormatGotDeleted",value:function(ei,eo,ea){for(var eu=ei;eueo.length||!ea.length||ek===eC||0===eE&&eA===eo.length||eE===eI&&eA===eP)return ea;if(this.checkIfFormatGotDeleted(ek,eC,eo)&&(ea=eo),!ec){var eD=this.removeFormatting(ea),eN=eL(eD,ed),eM=eN.beforeDecimal,ej=eN.afterDecimal,eR=eN.addNegation,eF=eieI;)eO--;eO=this.correctCaretPosition(eh,eO,"left")}}}else for(;!eT.test(eh[eO])&&eOeP)&&(ei.preventDefault(),this.setPatchedCaretPosition(ea,eO,eh)),ei.isUnitTestRun&&this.setPatchedCaretPosition(ea,eO,eh),eE(ei)}},{key:"onMouseUp",value:function(ei){var eo=ei.target,ea=eo.selectionStart,eu=eo.selectionEnd,ec=eo.value,ed=void 0===ec?"":ec;if(ea===eu){var ef=this.correctCaretPosition(ed,ea);ef!==ea&&this.setPatchedCaretPosition(eo,ef,ed)}this.props.onMouseUp(ei)}},{key:"onFocus",value:function(ei){var eo=this;ei.persist(),this.focusedElm=ei.target,this.focusTimeout=setTimeout(function(){var ea=ei.target,eu=ea.selectionStart,ec=ea.selectionEnd,ed=ea.value,ef=void 0===ed?"":ed,eh=eo.correctCaretPosition(ef,eu);eh===eu||0===eu&&ec===ef.length||eo.setPatchedCaretPosition(ea,eh,ef),eo.props.onFocus(ei)},0)}},{key:"render",value:function(){var ei=this.props,eo=ei.type,ea=ei.displayType,eu=ei.customInput,ed=ei.renderText,ef=ei.getInputRef,eh=this.state.value,em=eG(this.props,eY),eb=eg({inputMode:"numeric"},em,{type:eo,value:eh,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===ea)return ed?ed(eh)||null:ec.default.createElement("span",eg({},em,{ref:ef}),eh);if(eu){var ew=eu;return ec.default.createElement(ew,eg({},eb,{ref:ef}))}return ec.default.createElement("input",eg({},eb,{ref:ef}))}}]),eo}(ec.default.Component);e$.propTypes=eY,e$.defaultProps=eZ;let eJ=e$},34716:function(ei,eo,ea){"use strict";ea.d(eo,{oM:function(){return tc},Jq:function(){return eZ},FM:function(){return e0},aQ:function(){return e6},Qf:function(){return e3},gX:function(){return eM},cM:function(){return eD},uB:function(){return eB},$m:function(){return eF},Hs:function(){return e9},KK:function(){return ta},Sl:function(){return e7},xD:function(){return eI}});var eu,ec,ed=ea(76489);function ef(){return"object"==typeof document&&"string"==typeof document.cookie}function eh(ei,eo){return"string"==typeof ei?ed.Q(ei,eo):"object"==typeof ei&&null!==ei?ei:{}}function eg(ei,eo){return void 0===eo&&(eo=!ei||"{"!==ei[0]&&"["!==ei[0]&&'"'!==ei[0]),!eo}function em(ei,eo){void 0===eo&&(eo={});var ea=eb(ei);if(eg(ea,eo.doNotParse))try{return JSON.parse(ea)}catch(ei){}return ei}function eb(ei){return ei&&"j"===ei[0]&&":"===ei[1]?ei.substr(2):ei}var ew=function(){return(ew=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;ea=0&&this.changeListeners.splice(eo,1)},ei}(),eS=ea(67294),eE=ea(97582),eA=function(ei){void 0===ei&&(ei=[]);var eo=(0,eS.useState)(ei),ea=eo[0],eu=eo[1];return{add:function(ei){eu(function(eo){return(0,eE.pr)(eo,[ei])})},remove:function(){var ei;return eu(function(eo){var ea=eo[0],eu=eo.slice(1);return ei=ea,eu}),ei},get first(){return ea[0]},get last(){return ea[ea.length-1]},get size(){return ea.length}}},eT=ea(83454),ek=function(){return(ek=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;ea0&&ec[ec.length-1])&&(6===ed[0]||2===ed[0])){ef=0;continue}if(3===ed[0]&&(!ec||ed[1]>ec[0]&&ed[1]=e4&&(clearInterval(em),eu(Error("Segment failed to load in reasonable time")))},e5);ed.addSourceMiddleware(eK(ei.config.abUuid)),ed.load(eo,null===(ec=ei.config)||void 0===ec?void 0:ec.options)}}),this.initialized},ei.prototype.setSessionID=function(ei){},ei.prototype.identify=function(ei,eo,ea){return eC(this,void 0,void 0,function(){return eO(this,function(eu){switch(eu.label){case 0:return eu.trys.push([0,2,,3]),[4,this.initialized];case 1:return eu.sent(),[2,new Promise(function(eu){var ec,ed=ei?[ei,eo,ea,eu]:[eo,ea,eu];return(ec=window.analytics).identify.apply(ec,ed)})];case 2:return eu.sent(),[3,3];case 3:return[2]}})})},ei.prototype.viewPage=function(ei,eo){return eC(this,void 0,void 0,function(){return eO(this,function(ea){switch(ea.label){case 0:return ea.trys.push([0,2,,3]),[4,this.initialized];case 1:return ea.sent(),[2,new Promise(function(ea){return window.analytics.page(ei,eo,ea)})];case 2:return ea.sent(),[3,3];case 3:return[2]}})})},ei.prototype.track=function(ei,eo,ea){return eC(this,void 0,void 0,function(){return eO(this,function(eu){switch(eu.label){case 0:if(!eo.segment)return[2];eu.label=1;case 1:return eu.trys.push([1,3,,4]),[4,this.initialized];case 2:return eu.sent(),[2,new Promise(function(eu){return window.analytics.track(ei,eo.segment,ea,eu)})];case 3:return eu.sent(),[3,4];case 4:return[2]}})})},ei.prototype.increment=function(){return eC(this,void 0,void 0,function(){return eO(this,function(ei){return[2,Promise.resolve(void 0)]})})},ei.prototype.reset=function(){window.analytics.reset()},ei}();function e8(ei){var eo=document,ea=function(ea){eo.addEventListener(ei,{handleEvent:function(ei){var eo=ei.detail;return ea({_channel:ei.type,payload:eo})}})},eu=function(ea){eo.removeEventListener(ei,{handleEvent:function(ei){var eo=ei.detail;return ea({_channel:ei.type,payload:eo})}})},ec=function(ea){eo.dispatchEvent(new CustomEvent(ei,{detail:ea}))};return{_channel:ei,subscribe:ea,unsubscribe:eu,publish:ec}}!function(ei){ei.ANALYTICS="KRK_ANALYTICS"}(eu||(eu={}));var e9=function(){return{analytics:(0,eS.useRef)(e8(eu.ANALYTICS)).current}},e7=function(){var ei=e9().analytics;return{track:(0,eS.useCallback)(function(eo){return null==ei?void 0:ei.publish(ek({},eo))},[ei]),reset:(0,eS.useCallback)(function(){return null==ei?void 0:ei.publish({eventType:"RESET"})},[ei])}};function ta(ei){var eo=eA(),ea=eo.add,eu=eo.remove,ec=eo.size,ed=eo.first;return(0,eS.useEffect)(function(){ei&&!(ec<=0)&&(ei(ed),eu())},[ei,eu,ed,ec]),{addToQueue:ea,queueSize:ec}}function tu(ei){var eo=this;return Promise.all(ei.map(function(ei){return eC(eo,void 0,void 0,function(){var eo,ea;return eO(this,function(eu){switch(eu.label){case 0:return eu.trys.push([0,2,,3]),ea={status:"fulfilled"},[4,ei];case 1:return ea.value=eu.sent(),eo=ea,[3,3];case 2:return eo={status:"rejected",reason:eu.sent()},[3,3];case 3:return[2,eo]}})})}))}var tc=function(){function ei(){this.providers=new Map}return Object.defineProperty(ei.prototype,"allProviders",{get:function(){return Array.from(this.providers.values())},enumerable:!1,configurable:!0}),ei.prototype.getSessionId=function(){return this.sessionID},ei.prototype.init=function(){return eC(this,void 0,void 0,function(){return eO(this,function(ei){return[2,tu(this.allProviders.map(function(ei){return ei.init()}))]})})},ei.prototype.register=function(ei,eo){this.providers.set(eo||Symbol(),ei),this.userID&&ei.identify(this.userID,this.userTraits||{}),this.sessionID&&ei.setSessionID(this.sessionID)},ei.prototype.get=function(ei){return this.providers.get(ei)},ei.prototype.setSessionID=function(ei){this.sessionID&&console.warn("Session ID already set. Setting session ID multiple times"),this.sessionID=ei,this.providers.forEach(function(eo){return eo.setSessionID(ei)})},ei.prototype.identify=function(ei,eo,ea){return void 0===eo&&(eo={}),eC(this,void 0,void 0,function(){var eu;return eO(this,function(ec){switch(ec.label){case 0:return this.userID&&console.warn("User ID already set. Setting user ID multiple times"),ei&&(this.userID=ei),eu=Object.entries(eo).reduce(function(ei,eo){var ea=eo[0],eu=eo[1];return("string"==typeof eu||"boolean"==typeof eu||"number"==typeof eu||Array.isArray(eu))&&(ei[ea]=eu),ei},{}),[4,Promise.all(this.allProviders.map(function(eo){return eo.identify(ei,eu,ea)}))];case 1:return ec.sent(),[2]}})})},ei.prototype.viewPage=function(ei,eo){return void 0===ei&&(ei={}),eC(this,void 0,void 0,function(){var ea;return eO(this,function(eu){switch(eu.label){case 0:return ea=ei||{},[4,Promise.all(this.allProviders.map(function(ei){return ei.viewPage(ea,eo)}))];case 1:return eu.sent(),[2]}})})},ei.prototype.track=function(ei,eo,ea){return eC(this,void 0,void 0,function(){return eO(this,function(eu){switch(eu.label){case 0:return[4,Promise.all(this.allProviders.map(function(eu){return eu.track(ei,eo,ea)}))];case 1:return eu.sent(),[2]}})})},ei.prototype.increment=function(ei){return eC(this,void 0,void 0,function(){return eO(this,function(eo){switch(eo.label){case 0:return[4,Promise.all(this.allProviders.map(function(eo){return null==eo?void 0:eo.increment(ei)}))];case 1:return eo.sent(),[2]}})})},ei.prototype.reset=function(){this.allProviders.map(function(ei){return null==ei?void 0:ei.reset()})},ei}();!function(ei){ei.GA="Google Analytics",ei.GoogleAnalytics4="Google Analytics 4 Web",ei.Mixpanel="Mixpanel",ei.Segment="Segment.io",ei.Bing="Bing Ads",ei.Twitter="Twitter Ads",ei.LinkedIn="LinkedIn Insight Tag",ei.Facebook="Facebook Pixel",ei.OptimizelyFn="Optimizely Track Event API (cygnus)",ei.Braze="Braze Cloud Mode (Actions)"}(ec||(ec={}))},80773:function(ei,eo,ea){"use strict";var eu=ea(81927),ec=ea(53928),ed=ea(83454),ef=window;ef.__sentryRewritesTunnelPath__=void 0,ef.SENTRY_RELEASE={id:"19647-nft-app"},ef.__rewriteFramesAssetPrefixPath__="/nft";let eh=()=>{var ei;let eo=null==window?void 0:null===(ei=window.location)||void 0===ei?void 0:ei.hostname;return eo.split(".").length>3?"review-app":eo},eg=ed.env.SENTRY_DSN||ed.env.NEXT_PUBLIC_SENTRY_DSN;eu.S1({dsn:eg||"https://dcdff1f89b064a32811034edbde4c62a@o552333.ingest.sentry.io/6712841",integrations:[new ec.jK.gE],tracesSampleRate:.2,environment:eh(),ignoreErrors:["Non-Error exception captured with keys: currentTarget, isTrusted, target, type"]})},69069:function(ei,eo,ea){"use strict";var eu;eu={value:!0},eu=eu=eu=eu=eu=eu=eu=eu=eo._O=eu=eu=eo.Jq=eu=eo.KB=eo.u8=eo.cv=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=void 0,eu=eu=eu=eo.Ik=eu=eu=eo.A9=eu=eo.n_=eu=eu=eu=eu=eu=eu=eu=eu=eu=eu=eo.gM=eu=eu=eu=eu=void 0;let ec=ea(48764);function ed(ei){if(!(ei instanceof Uint8Array))throw TypeError("b must be a Uint8Array")}function ef(ei){return ed(ei),ec.Buffer.from(ei.buffer,ei.byteOffset,ei.length)}eu=ed,eu=ef;class eh{makeDestinationObject(){return{}}getSpan(ei,eo){if(0>this.span)throw RangeError("indeterminate span");return this.span}replicate(ei){let eo=Object.create(this.constructor.prototype);return Object.assign(eo,this),eo.property=ei,eo}fromArray(ei){}constructor(ei,eo){if(!Number.isInteger(ei))throw TypeError("span must be an integer");this.span=ei,this.property=eo}}function eg(ei,eo){return eo.property?ei+"["+eo.property+"]":ei}eu=eh,eu=eg,eu=function(ei,eo){if("function"!=typeof ei)throw TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(ei,"layout_"))throw Error("Class is already bound to a layout");if(!(eo&&eo instanceof eh))throw TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(eo,"boundConstructor_"))throw Error("layout is already bound to a constructor");ei.layout_=eo,eo.boundConstructor_=ei,eo.makeDestinationObject=()=>new ei,Object.defineProperty(ei.prototype,"encode",{value(ei,ea){return eo.encode(this,ei,ea)},writable:!0}),Object.defineProperty(ei,"decode",{value:(ei,ea)=>eo.decode(ei,ea),writable:!0})};class em extends eh{isCount(){throw Error("ExternalLayout is abstract")}}eu=em;class eb extends em{isCount(){return!0}decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ed(ei);let ea=ei.length-eo;return Math.floor(ea/this.elementSpan)}encode(ei,eo,ea){return 0}constructor(ei=1,eo){if(!Number.isInteger(ei)||0>=ei)throw TypeError("elementSpan must be a (positive) integer");super(-1,eo),this.elementSpan=ei}}eu=eb;class ew extends em{isCount(){return this.layout instanceof e_||this.layout instanceof eS}decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(ei,eo+this.offset)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(ei,eo,ea+this.offset)}constructor(ei,eo=0,ea){if(!(ei instanceof eh))throw TypeError("layout must be a Layout");if(!Number.isInteger(eo))throw TypeError("offset must be integer or undefined");super(ei.span,ea||ei.property),this.layout=ei,this.offset=eo}}eu=ew;class e_ extends eh{decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ef(ei).readUIntLE(eo,this.span)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ef(eo).writeUIntLE(ei,ea,this.span),this.span}constructor(ei,eo){if(super(ei,eo),61&&void 0!==arguments[1]?arguments[1]:0;return ef(ei).readUIntBE(eo,this.span)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ef(eo).writeUIntBE(ei,ea,this.span),this.span}constructor(ei,eo){if(super(ei,eo),61&&void 0!==arguments[1]?arguments[1]:0;return ef(ei).readIntLE(eo,this.span)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ef(eo).writeIntLE(ei,ea,this.span),this.span}constructor(ei,eo){if(super(ei,eo),61&&void 0!==arguments[1]?arguments[1]:0;return ef(ei).readIntBE(eo,this.span)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ef(eo).writeIntBE(ei,ea,this.span),this.span}constructor(ei,eo){if(super(ei,eo),61&&void 0!==arguments[1]?arguments[1]:0,ea=ef(ei),eu=ea.readUInt32LE(eo),ec=ea.readUInt32LE(eo+4);return eC(ec,eu)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,eu=ek(ei),ec=ef(eo);return ec.writeUInt32LE(eu.lo32,ea),ec.writeUInt32LE(eu.hi32,ea+4),8}constructor(ei){super(8,ei)}}eu=eO;class eI extends eh{decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ea=ef(ei),eu=ea.readUInt32BE(eo),ec=ea.readUInt32BE(eo+4);return eC(eu,ec)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,eu=ek(ei),ec=ef(eo);return ec.writeUInt32BE(eu.hi32,ea),ec.writeUInt32BE(eu.lo32,ea+4),8}constructor(ei){super(8,ei)}}eu=eI;class eP extends eh{decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ea=ef(ei),eu=ea.readUInt32LE(eo),ec=ea.readInt32LE(eo+4);return eC(ec,eu)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,eu=ek(ei),ec=ef(eo);return ec.writeUInt32LE(eu.lo32,ea),ec.writeInt32LE(eu.hi32,ea+4),8}constructor(ei){super(8,ei)}}eu=eP;class eD extends eh{decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ea=ef(ei),eu=ea.readInt32BE(eo),ec=ea.readUInt32BE(eo+4);return eC(eu,ec)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,eu=ek(ei),ec=ef(eo);return ec.writeInt32BE(eu.hi32,ea),ec.writeUInt32BE(eu.lo32,ea+4),8}constructor(ei){super(8,ei)}}eu=eD;class eN extends eh{decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ef(ei).readFloatLE(eo)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ef(eo).writeFloatLE(ei,ea),4}constructor(ei){super(4,ei)}}eu=eN;class eM extends eh{decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ef(ei).readFloatBE(eo)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ef(eo).writeFloatBE(ei,ea),4}constructor(ei){super(4,ei)}}eu=eM;class ej extends eh{decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ef(ei).readDoubleLE(eo)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ef(eo).writeDoubleLE(ei,ea),8}constructor(ei){super(8,ei)}}eu=ej;class eR extends eh{decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ef(ei).readDoubleBE(eo)}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ef(eo).writeDoubleBE(ei,ea),8}constructor(ei){super(8,ei)}}eu=eR;class eL extends eh{getSpan(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let ea=0,eu=this.count;if(eu instanceof em&&(eu=eu.decode(ei,eo)),01&&void 0!==arguments[1]?arguments[1]:0,ea=[],eu=0,ec=this.count;for(ec instanceof em&&(ec=ec.decode(ei,eo));eu2&&void 0!==arguments[2]?arguments[2]:0,eu=this.elementLayout,ec=ei.reduce((ei,ec)=>ei+eu.encode(ec,eo,ea+ei),0);return this.count instanceof em&&this.count.encode(ei.length,eo,ea),ec}constructor(ei,eo,ea){if(!(ei instanceof eh))throw TypeError("elementLayout must be a Layout");if(!(eo instanceof em&&eo.isCount()||Number.isInteger(eo)&&0<=eo))throw TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let eu=-1;eo instanceof em||!(01&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let ea=0;try{ea=this.fields.reduce((ea,eu)=>{let ec=eu.getSpan(ei,eo);return eo+=ec,ea+ec},0)}catch(ei){throw RangeError("indeterminate span")}return ea}decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ed(ei);let ea=this.makeDestinationObject();for(let eu of this.fields)if(void 0!==eu.property&&(ea[eu.property]=eu.decode(ei,eo)),eo+=eu.getSpan(ei,eo),this.decodePrefixes&&ei.length===eo)break;return ea}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,eu=ea,ec=0,ed=0;for(let eu of this.fields){let ef=eu.span;if(ed=0ef&&(ef=eu.getSpan(eo,ea)))}ec=ea,ea+=ef}return ec+ed-eu}fromArray(ei){let eo=this.makeDestinationObject();for(let ea of this.fields)void 0!==ea.property&&0ea.span?eo=-1:0<=eo&&(eo+=ea.span)}}constructor(ei,eo,ea){if(!(Array.isArray(ei)&&ei.reduce((ei,eo)=>ei&&eo instanceof eh,!0)))throw TypeError("fields must be array of Layout instances");for(let eu of("boolean"==typeof eo&&void 0===ea&&(ea=eo,eo=void 0),ei))if(0>eu.span&&void 0===eu.property)throw Error("fields cannot contain unnamed variable-length layout");let eu=-1;try{eu=ei.reduce((ei,eo)=>ei+eo.getSpan(),0)}catch(ei){}super(eu,eo),this.fields=ei,this.decodePrefixes=!!ea}}eu=eF;class eB{decode(ei,eo){throw Error("UnionDiscriminator is abstract")}encode(ei,eo,ea){throw Error("UnionDiscriminator is abstract")}constructor(ei){this.property=ei}}eu=eB;class eU extends eB{decode(ei,eo){return this.layout.decode(ei,eo)}encode(ei,eo,ea){return this.layout.encode(ei,eo,ea)}constructor(ei,eo){if(!(ei instanceof em&&ei.isCount()))throw TypeError("layout must be an unsigned integer ExternalLayout");super(eo||ei.property||"variant"),this.layout=ei}}eu=eU;class eG extends eh{getSpan(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let ea=this.getVariant(ei,eo);if(!ea)throw Error("unable to determine span for unrecognized variant");return ea.getSpan(ei,eo)}defaultGetSourceVariant(ei){if(Object.prototype.hasOwnProperty.call(ei,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(ei,this.defaultLayout.property))return;let eo=this.registry[ei[this.discriminator.property]];if(eo&&(!eo.layout||eo.property&&Object.prototype.hasOwnProperty.call(ei,eo.property)))return eo}else for(let eo in this.registry){let ea=this.registry[eo];if(ea.property&&Object.prototype.hasOwnProperty.call(ei,ea.property))return ea}throw Error("unable to infer src variant")}decode(ei){let eo,ea=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,eu=this.discriminator,ec=eu.decode(ei,ea),ed=this.registry[ec];if(void 0===ed){let ed=this.defaultLayout,ef=0;this.usesPrefixDiscriminator&&(ef=eu.layout.span),(eo=this.makeDestinationObject())[eu.property]=ec,eo[ed.property]=ed.decode(ei,ea+ef)}else eo=ed.decode(ei,ea);return eo}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,eu=this.getSourceVariant(ei);if(void 0===eu){let eu=this.discriminator,ec=this.defaultLayout,ed=0;return this.usesPrefixDiscriminator&&(ed=eu.layout.span),eu.encode(ei[eu.property],eo,ea),ed+ec.encode(ei[ec.property],eo,ea+ed)}return eu.encode(ei,eo,ea)}addVariant(ei,eo,ea){let eu=new eV(this,ei,eo,ea);return this.registry[ei]=eu,eu}getVariant(ei){let eo,ea=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return eo=ei instanceof Uint8Array?this.discriminator.decode(ei,ea):ei,this.registry[eo]}constructor(ei,eo,ea){let eu;if(ei instanceof e_||ei instanceof eS)eu=new eU(new ew(ei));else if(ei instanceof em&&ei.isCount())eu=new eU(ei);else if(ei instanceof eB)eu=ei;else throw TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===eo&&(eo=null),!(null===eo||eo instanceof eh))throw TypeError("defaultLayout must be null or a Layout");if(null!==eo){if(0>eo.span)throw Error("defaultLayout must have constant span");void 0===eo.property&&(eo=eo.replicate("content"))}let ec=-1;eo&&0<=(ec=eo.span)&&(ei instanceof e_||ei instanceof eS)&&(ec+=eu.layout.span),super(ec,ea),this.discriminator=eu,this.usesPrefixDiscriminator=ei instanceof e_||ei instanceof eS,this.defaultLayout=eo,this.registry={};let ed=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(ei){return ed(ei)},this.configGetSourceVariant=function(ei){ed=ei.bind(this)}}}eu=eG;class eV extends eh{getSpan(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let ea=0;this.union.usesPrefixDiscriminator&&(ea=this.union.discriminator.layout.span);let eu=0;return this.layout&&(eu=this.layout.getSpan(ei,eo+ea)),ea+eu}decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ea=this.makeDestinationObject();if(this!==this.union.getVariant(ei,eo))throw Error("variant mismatch");let eu=0;return this.union.usesPrefixDiscriminator&&(eu=this.union.discriminator.layout.span),this.layout?ea[this.property]=this.layout.decode(ei,eo+eu):this.property?ea[this.property]=!0:this.union.usesPrefixDiscriminator&&(ea[this.union.discriminator.property]=this.variant),ea}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,eu=0;if(this.union.usesPrefixDiscriminator&&(eu=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(ei,this.property))throw TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,eo,ea);let ec=eu;if(this.layout&&(this.layout.encode(ei[this.property],eo,ea+eu),ec+=this.layout.getSpan(eo,ea+eu),0<=this.union.span&&ec>this.union.span))throw Error("encoded variant overruns containing union");return ec}fromArray(ei){if(this.layout)return this.layout.fromArray(ei)}constructor(ei,eo,ea,eu){if(!(ei instanceof eG))throw TypeError("union must be a Union");if(!Number.isInteger(eo)||0>eo)throw TypeError("variant must be a (non-negative) integer");if("string"==typeof ea&&void 0===eu&&(eu=ea,ea=null),ea){if(!(ea instanceof eh))throw TypeError("layout must be a Layout");if(null!==ei.defaultLayout&&0<=ea.span&&ea.span>ei.defaultLayout.span)throw Error("variant span exceeds span of containing union");if("string"!=typeof eu)throw TypeError("variant must have a String property")}let ec=ei.span;0>ei.span&&0<=(ec=ea?ea.span:0)&&ei.usesPrefixDiscriminator&&(ec+=ei.discriminator.layout.span),super(ec,eu),this.union=ei,this.variant=eo,this.layout=ea||null}}function eH(ei){return 0>ei&&(ei+=4294967296),ei}eu=eV;class eW extends eh{decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ea=this.makeDestinationObject(),eu=this.word.decode(ei,eo);for(let eo of(this._packedSetValue(eu),this.fields))void 0!==eo.property&&(ea[eo.property]=eo.decode(ei));return ea}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,eu=this.word.decode(eo,ea);for(let eo of(this._packedSetValue(eu),this.fields))if(void 0!==eo.property){let ea=ei[eo.property];void 0!==ea&&eo.encode(ea)}return this.word.encode(this._packedGetValue(),eo,ea)}addField(ei,eo){let ea=new eK(this,ei,eo);return this.fields.push(ea),ea}addBoolean(ei){let eo=new eY(this,ei);return this.fields.push(eo),eo}fieldFor(ei){if("string"!=typeof ei)throw TypeError("property must be string");for(let eo of this.fields)if(eo.property===ei)return eo}constructor(ei,eo,ea){if(!(ei instanceof e_||ei instanceof eS))throw TypeError("word must be a UInt or UIntBE layout");if("string"==typeof eo&&void 0===ea&&(ea=eo,eo=!1),4>>this.start;return ec}encode(ei){if("number"!=typeof ei||!Number.isInteger(ei)||ei!==eH(ei&this.valueMask))throw TypeError(eg("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);let eo=this.container._packedGetValue(),ea=eH(ei<=eo)throw TypeError("bits must be positive integer");let eu=8*ei.span,ec=ei.fields.reduce((ei,eo)=>ei+eo.bits,0);if(eo+ec>eu)throw Error("bits too long for span remainder ("+(eu-ec)+" of "+eu+" remain)");this.container=ei,this.bits=eo,this.valueMask=(1<ea&&(ea=this.length.decode(ei,eo)),ea}decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ea=this.span;return 0>ea&&(ea=this.length.decode(ei,eo)),ef(ei).slice(eo,eo+ea)}encode(ei,eo,ea){let eu=this.length;if(this.length instanceof em&&(eu=ei.length),!(ei instanceof Uint8Array&&eu===ei.length))throw TypeError(eg("Blob.encode",this)+" requires (length "+eu+") Uint8Array as src");if(ea+eu>eo.length)throw RangeError("encoding overruns Uint8Array");let ec=ef(ei);return ef(eo).write(ec.toString("hex"),ea,eu,"hex"),this.length instanceof em&&this.length.encode(eu,eo,ea),eu}constructor(ei,eo){if(!(ei instanceof em&&ei.isCount()||Number.isInteger(ei)&&0<=ei))throw TypeError("length must be positive integer or an unsigned integer ExternalLayout");let ea=-1;ei instanceof em||(ea=ei),super(ea,eo),this.length=ei}}eu=eZ;class e$ extends eh{getSpan(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ed(ei);let ea=eo;for(;ea1&&void 0!==arguments[1]?arguments[1]:0,ea=this.getSpan(ei,eo);return ef(ei).slice(eo,eo+ea-1).toString("utf-8")}encode(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof ei&&(ei=String(ei));let eu=ec.Buffer.from(ei,"utf8"),ed=eu.length;if(ea+ed>eo.length)throw RangeError("encoding overruns Buffer");let eh=ef(eo);return eu.copy(eh,ea),eh[ea+ed]=0,ed+1}constructor(ei){super(-1,ei)}}eu=e$;class eJ extends eh{getSpan(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ed(ei),ei.length-eo}decode(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ea=this.getSpan(ei,eo);if(0<=this.maxSpan&&this.maxSpan2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof ei&&(ei=String(ei));let eu=ec.Buffer.from(ei,"utf8"),ed=eu.length;if(0<=this.maxSpan&&this.maxSpaneo.length)throw RangeError("encoding overruns Buffer");return eu.copy(ef(eo),ea),ed}constructor(ei,eo){if("string"==typeof ei&&void 0===eo&&(eo=ei,ei=void 0),void 0===ei)ei=-1;else if(!Number.isInteger(ei))throw TypeError("maxSpan must be an integer");super(-1,eo),this.maxSpan=ei}}eu=eJ;class eQ extends eh{decode(ei,eo){return this.value}encode(ei,eo,ea){return 0}constructor(ei,eo){super(0,eo),this.value=ei}}eu=eQ,eu=(ei,eo)=>new eb(ei,eo),eo.cv=(ei,eo,ea)=>new ew(ei,eo,ea),eo.u8=ei=>new e_(1,ei),eo.KB=ei=>new e_(2,ei),eu=ei=>new e_(3,ei),eo.Jq=ei=>new e_(4,ei),eu=ei=>new e_(5,ei),eu=ei=>new e_(6,ei),eo._O=ei=>new eO(ei),eu=ei=>new eS(2,ei),eu=ei=>new eS(3,ei),eu=ei=>new eS(4,ei),eu=ei=>new eS(5,ei),eu=ei=>new eS(6,ei),eu=ei=>new eI(ei),eu=ei=>new eE(1,ei),eu=ei=>new eE(2,ei),eu=ei=>new eE(3,ei),eu=ei=>new eE(4,ei),eu=ei=>new eE(5,ei),eu=ei=>new eE(6,ei),eo.gM=ei=>new eP(ei),eu=ei=>new eA(2,ei),eu=ei=>new eA(3,ei),eu=ei=>new eA(4,ei),eu=ei=>new eA(5,ei),eu=ei=>new eA(6,ei),eu=ei=>new eD(ei),eu=ei=>new eN(ei),eu=ei=>new eM(ei),eu=ei=>new ej(ei),eu=ei=>new eR(ei),eo.n_=(ei,eo,ea)=>new eF(ei,eo,ea),eu=(ei,eo,ea)=>new eW(ei,eo,ea),eo.A9=(ei,eo,ea)=>new eL(ei,eo,ea),eu=(ei,eo,ea)=>new eG(ei,eo,ea),eu=(ei,eo)=>new eU(ei,eo),eo.Ik=(ei,eo)=>new eZ(ei,eo),(ei,eo)=>new eQ(ei,eo)},11963:function(ei,eo,ea){"use strict";function eu(ei,eo,ea){return eo in ei?Object.defineProperty(ei,eo,{value:ea,enumerable:!0,configurable:!0,writable:!0}):ei[eo]=ea,ei}ea.d(eo,{_u:function(){return rJ},H_:function(){return r$},WU:function(){return ny}});var ec,ed,ef=ea(13550),eh=ea.n(ef),eg=ea(75808),em={},eb={};eb.byteLength=eC,eb.toByteArray=eI,eb.fromByteArray=eN;for(var ew=[],e_=[],eS="undefined"!=typeof Uint8Array?Uint8Array:Array,eE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eA=0,eT=eE.length;eA0)throw Error("Invalid string. Length must be a multiple of 4");var ea=ei.indexOf("=");-1===ea&&(ea=eo);var eu=ea===eo?0:4-ea%4;return[ea,eu]}function eC(ei){var eo=ek(ei),ea=eo[0],eu=eo[1];return(ea+eu)*3/4-eu}function eO(ei,eo,ea){return(eo+ea)*3/4-ea}function eI(ei){var eo,ea,eu=ek(ei),ec=eu[0],ed=eu[1],ef=new eS(eO(ei,ec,ed)),eh=0,eg=ed>0?ec-4:ec;for(ea=0;ea>16&255,ef[eh++]=eo>>8&255,ef[eh++]=255&eo;return 2===ed&&(eo=e_[ei.charCodeAt(ea)]<<2|e_[ei.charCodeAt(ea+1)]>>4,ef[eh++]=255&eo),1===ed&&(eo=e_[ei.charCodeAt(ea)]<<10|e_[ei.charCodeAt(ea+1)]<<4|e_[ei.charCodeAt(ea+2)]>>2,ef[eh++]=eo>>8&255,ef[eh++]=255&eo),ef}function eP(ei){return ew[ei>>18&63]+ew[ei>>12&63]+ew[ei>>6&63]+ew[63&ei]}function eD(ei,eo,ea){for(var eu=[],ec=eo;eceh?eh:ef+ed));return 1===eu?ec.push(ew[(eo=ei[ea-1])>>2]+ew[eo<<4&63]+"=="):2===eu&&ec.push(ew[(eo=(ei[ea-2]<<8)+ei[ea-1])>>10]+ew[eo>>4&63]+ew[eo<<2&63]+"="),ec.join("")}e_["-".charCodeAt(0)]=62,e_["_".charCodeAt(0)]=63;var eM={};/*!ieee754. BSD-3-Clause License. Feross Aboukhadijeh */eM.read=function(ei,eo,ea,eu,ec){var ed,ef,eh=8*ec-eu-1,eg=(1<>1,eb=-7,ew=ea?ec-1:0,e_=ea?-1:1,eS=ei[eo+ew];for(ew+=e_,ed=eS&(1<<-eb)-1,eS>>=-eb,eb+=eh;eb>0;ed=256*ed+ei[eo+ew],ew+=e_,eb-=8);for(ef=ed&(1<<-eb)-1,ed>>=-eb,eb+=eu;eb>0;ef=256*ef+ei[eo+ew],ew+=e_,eb-=8);if(0===ed)ed=1-em;else{if(ed===eg)return ef?NaN:(eS?-1:1)*(1/0);ef+=Math.pow(2,eu),ed-=em}return(eS?-1:1)*ef*Math.pow(2,ed-eu)},eM.write=function(ei,eo,ea,eu,ec,ed){var ef,eh,eg,em=8*ed-ec-1,eb=(1<>1,e_=23===ec?5960464477539062e-23:0,eS=eu?0:ed-1,eE=eu?1:-1,eA=eo<0||0===eo&&1/eo<0?1:0;for(isNaN(eo=Math.abs(eo))||eo===1/0?(eh=isNaN(eo)?1:0,ef=eb):(ef=Math.floor(Math.log(eo)/Math.LN2),eo*(eg=Math.pow(2,-ef))<1&&(ef--,eg*=2),ef+ew>=1?eo+=e_/eg:eo+=e_*Math.pow(2,1-ew),eo*eg>=2&&(ef++,eg/=2),ef+ew>=eb?(eh=0,ef=eb):ef+ew>=1?(eh=(eo*eg-1)*Math.pow(2,ec),ef+=ew):(eh=eo*Math.pow(2,ew-1)*Math.pow(2,ec),ef=0));ec>=8;ei[ea+eS]=255&eh,eS+=eE,eh/=256,ec-=8);for(ef=ef<0;ei[ea+eS]=255&ef,eS+=eE,ef/=256,em-=8);ei[ea+eS-eE]|=128*eA},/*! +* The buffer module from node.js, for the browser. +* +* @author Feross Aboukhadijeh +* @license MIT +*/function(ei){let eo=eb,ea=eM,eu="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ei.Buffer=eh,ei.SlowBuffer=eO,ei.INSPECT_MAX_BYTES=50;let ec=2147483647;function ed(){try{let ei=new Uint8Array(1),eo={foo:function(){return 42}};return Object.setPrototypeOf(eo,Uint8Array.prototype),Object.setPrototypeOf(ei,eo),42===ei.foo()}catch(ei){return!1}}function ef(ei){if(ei>ec)throw RangeError('The value "'+ei+'" is invalid for option "size"');let eo=new Uint8Array(ei);return Object.setPrototypeOf(eo,eh.prototype),eo}function eh(ei,eo,ea){if("number"==typeof ei){if("string"==typeof eo)throw TypeError('The "string" argument must be of type string. Received type number');return e_(ei)}return eg(ei,eo,ea)}function eg(ei,eo,ea){if("string"==typeof ei)return eS(ei,eo);if(ArrayBuffer.isView(ei))return eA(ei);if(null==ei)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ei);if(tw(ei,ArrayBuffer)||ei&&tw(ei.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(tw(ei,SharedArrayBuffer)||ei&&tw(ei.buffer,SharedArrayBuffer)))return eT(ei,eo,ea);if("number"==typeof ei)throw TypeError('The "value" argument must not be of type number. Received type number');let eu=ei.valueOf&&ei.valueOf();if(null!=eu&&eu!==ei)return eh.from(eu,eo,ea);let ec=ek(ei);if(ec)return ec;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof ei[Symbol.toPrimitive])return eh.from(ei[Symbol.toPrimitive]("string"),eo,ea);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ei)}function em(ei){if("number"!=typeof ei)throw TypeError('"size" argument must be of type number');if(ei<0)throw RangeError('The value "'+ei+'" is invalid for option "size"')}function ew(ei,eo,ea){return(em(ei),ei<=0)?ef(ei):void 0!==eo?"string"==typeof ea?ef(ei).fill(eo,ea):ef(ei).fill(eo):ef(ei)}function e_(ei){return em(ei),ef(ei<0?0:0|eC(ei))}function eS(ei,eo){if(("string"!=typeof eo||""===eo)&&(eo="utf8"),!eh.isEncoding(eo))throw TypeError("Unknown encoding: "+eo);let ea=0|eI(ei,eo),eu=ef(ea),ec=eu.write(ei,eo);return ec!==ea&&(eu=eu.slice(0,ec)),eu}function eE(ei){let eo=ei.length<0?0:0|eC(ei.length),ea=ef(eo);for(let eu=0;eu=ec)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ec.toString(16)+" bytes");return 0|ei}function eO(ei){return+ei!=ei&&(ei=0),eh.alloc(+ei)}function eI(ei,eo){if(eh.isBuffer(ei))return ei.length;if(ArrayBuffer.isView(ei)||tw(ei,ArrayBuffer))return ei.byteLength;if("string"!=typeof ei)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ei);let ea=ei.length,eu=arguments.length>2&&!0===arguments[2];if(!eu&&0===ea)return 0;let ec=!1;for(;;)switch(eo){case"ascii":case"latin1":case"binary":return ea;case"utf8":case"utf-8":return tp(ei).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ea;case"hex":return ea>>>1;case"base64":return tv(ei).length;default:if(ec)return eu?-1:tp(ei).length;eo=(""+eo).toLowerCase(),ec=!0}}function eP(ei,eo,ea){let eu=!1;if((void 0===eo||eo<0)&&(eo=0),eo>this.length||((void 0===ea||ea>this.length)&&(ea=this.length),ea<=0||(ea>>>=0)<=(eo>>>=0)))return"";for(ei||(ei="utf8");;)switch(ei){case"hex":return eZ(this,eo,ea);case"utf8":case"utf-8":return eV(this,eo,ea);case"ascii":return eK(this,eo,ea);case"latin1":case"binary":return eY(this,eo,ea);case"base64":return eG(this,eo,ea);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e$(this,eo,ea);default:if(eu)throw TypeError("Unknown encoding: "+ei);ei=(ei+"").toLowerCase(),eu=!0}}function eD(ei,eo,ea){let eu=ei[eo];ei[eo]=ei[ea],ei[ea]=eu}function eN(ei,eo,ea,eu,ec){if(0===ei.length)return-1;if("string"==typeof ea?(eu=ea,ea=0):ea>2147483647?ea=2147483647:ea<-2147483648&&(ea=-2147483648),t_(ea=+ea)&&(ea=ec?0:ei.length-1),ea<0&&(ea=ei.length+ea),ea>=ei.length){if(ec)return-1;ea=ei.length-1}else if(ea<0){if(!ec)return-1;ea=0}if("string"==typeof eo&&(eo=eh.from(eo,eu)),eh.isBuffer(eo))return 0===eo.length?-1:ej(ei,eo,ea,eu,ec);if("number"==typeof eo)return(eo&=255,"function"==typeof Uint8Array.prototype.indexOf)?ec?Uint8Array.prototype.indexOf.call(ei,eo,ea):Uint8Array.prototype.lastIndexOf.call(ei,eo,ea):ej(ei,[eo],ea,eu,ec);throw TypeError("val must be string, number or Buffer")}function ej(ei,eo,ea,eu,ec){let ed,ef=1,eh=ei.length,eg=eo.length;if(void 0!==eu&&("ucs2"===(eu=String(eu).toLowerCase())||"ucs-2"===eu||"utf16le"===eu||"utf-16le"===eu)){if(ei.length<2||eo.length<2)return-1;ef=2,eh/=2,eg/=2,ea/=2}function em(ei,eo){return 1===ef?ei[eo]:ei.readUInt16BE(eo*ef)}if(ec){let eu=-1;for(ed=ea;edeh&&(ea=eh-eg),ed=ea;ed>=0;ed--){let ea=!0;for(let eu=0;eued&&(eu=ed):eu=ed;let ef=eo.length;for(eu>ef/2&&(eu=ef/2),ec=0;ec239?4:eo>223?3:eo>191?2:1;if(ec+ef<=ea){let ea,eu,eh,eg;switch(ef){case 1:eo<128&&(ed=eo);break;case 2:(192&(ea=ei[ec+1]))==128&&(eg=(31&eo)<<6|63&ea)>127&&(ed=eg);break;case 3:ea=ei[ec+1],eu=ei[ec+2],(192&ea)==128&&(192&eu)==128&&(eg=(15&eo)<<12|(63&ea)<<6|63&eu)>2047&&(eg<55296||eg>57343)&&(ed=eg);break;case 4:ea=ei[ec+1],eu=ei[ec+2],eh=ei[ec+3],(192&ea)==128&&(192&eu)==128&&(192&eh)==128&&(eg=(15&eo)<<18|(63&ea)<<12|(63&eu)<<6|63&eh)>65535&&eg<1114112&&(ed=eg)}}null===ed?(ed=65533,ef=1):ed>65535&&(ed-=65536,eu.push(ed>>>10&1023|55296),ed=56320|1023&ed),eu.push(ed),ec+=ef}return eW(eu)}ei.kMaxLength=ec,eh.TYPED_ARRAY_SUPPORT=ed(),eh.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(eh.prototype,"parent",{enumerable:!0,get:function(){if(eh.isBuffer(this))return this.buffer}}),Object.defineProperty(eh.prototype,"offset",{enumerable:!0,get:function(){if(eh.isBuffer(this))return this.byteOffset}}),eh.poolSize=8192,eh.from=function(ei,eo,ea){return eg(ei,eo,ea)},Object.setPrototypeOf(eh.prototype,Uint8Array.prototype),Object.setPrototypeOf(eh,Uint8Array),eh.alloc=function(ei,eo,ea){return ew(ei,eo,ea)},eh.allocUnsafe=function(ei){return e_(ei)},eh.allocUnsafeSlow=function(ei){return e_(ei)},eh.isBuffer=function(ei){return null!=ei&&!0===ei._isBuffer&&ei!==eh.prototype},eh.compare=function(ei,eo){if(tw(ei,Uint8Array)&&(ei=eh.from(ei,ei.offset,ei.byteLength)),tw(eo,Uint8Array)&&(eo=eh.from(eo,eo.offset,eo.byteLength)),!eh.isBuffer(ei)||!eh.isBuffer(eo))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ei===eo)return 0;let ea=ei.length,eu=eo.length;for(let ec=0,ed=Math.min(ea,eu);eceu.length?(eh.isBuffer(eo)||(eo=eh.from(eo)),eo.copy(eu,ec)):Uint8Array.prototype.set.call(eu,eo,ec);else if(eh.isBuffer(eo))eo.copy(eu,ec);else throw TypeError('"list" argument must be an Array of Buffers');ec+=eo.length}return eu},eh.byteLength=eI,eh.prototype._isBuffer=!0,eh.prototype.swap16=function(){let ei=this.length;if(ei%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let eo=0;eoea&&(eo+=" ... "),""},eu&&(eh.prototype[eu]=eh.prototype.inspect),eh.prototype.compare=function(ei,eo,ea,eu,ec){if(tw(ei,Uint8Array)&&(ei=eh.from(ei,ei.offset,ei.byteLength)),!eh.isBuffer(ei))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ei);if(void 0===eo&&(eo=0),void 0===ea&&(ea=ei?ei.length:0),void 0===eu&&(eu=0),void 0===ec&&(ec=this.length),eo<0||ea>ei.length||eu<0||ec>this.length)throw RangeError("out of range index");if(eu>=ec&&eo>=ea)return 0;if(eu>=ec)return-1;if(eo>=ea)return 1;if(eo>>>=0,ea>>>=0,eu>>>=0,ec>>>=0,this===ei)return 0;let ed=ec-eu,ef=ea-eo,eg=Math.min(ed,ef),em=this.slice(eu,ec),eb=ei.slice(eo,ea);for(let ei=0;ei>>=0,isFinite(ea)?(ea>>>=0,void 0===eu&&(eu="utf8")):(eu=ea,ea=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ec=this.length-eo;if((void 0===ea||ea>ec)&&(ea=ec),ei.length>0&&(ea<0||eo<0)||eo>this.length)throw RangeError("Attempt to write outside buffer bounds");eu||(eu="utf8");let ed=!1;for(;;)switch(eu){case"hex":return eR(this,ei,eo,ea);case"utf8":case"utf-8":return eL(this,ei,eo,ea);case"ascii":case"latin1":case"binary":return eF(this,ei,eo,ea);case"base64":return eB(this,ei,eo,ea);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eU(this,ei,eo,ea);default:if(ed)throw TypeError("Unknown encoding: "+eu);eu=(""+eu).toLowerCase(),ed=!0}},eh.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let eH=4096;function eW(ei){let eo=ei.length;if(eo<=eH)return String.fromCharCode.apply(String,ei);let ea="",eu=0;for(;eueu)&&(ea=eu);let ec="";for(let eu=eo;euea)throw RangeError("Trying to access beyond buffer length")}function eQ(ei,eo,ea,eu,ec,ed){if(!eh.isBuffer(ei))throw TypeError('"buffer" argument must be a Buffer instance');if(eo>ec||eoei.length)throw RangeError("Index out of range")}function eX(ei,eo,ea,eu,ec){ta(eo,eu,ec,ei,ea,7);let ed=Number(eo&BigInt(4294967295));ei[ea++]=ed,ed>>=8,ei[ea++]=ed,ed>>=8,ei[ea++]=ed,ed>>=8,ei[ea++]=ed;let ef=Number(eo>>BigInt(32)&BigInt(4294967295));return ei[ea++]=ef,ef>>=8,ei[ea++]=ef,ef>>=8,ei[ea++]=ef,ef>>=8,ei[ea++]=ef,ea}function e0(ei,eo,ea,eu,ec){ta(eo,eu,ec,ei,ea,7);let ed=Number(eo&BigInt(4294967295));ei[ea+7]=ed,ed>>=8,ei[ea+6]=ed,ed>>=8,ei[ea+5]=ed,ed>>=8,ei[ea+4]=ed;let ef=Number(eo>>BigInt(32)&BigInt(4294967295));return ei[ea+3]=ef,ef>>=8,ei[ea+2]=ef,ef>>=8,ei[ea+1]=ef,ef>>=8,ei[ea]=ef,ea+8}function e3(ei,eo,ea,eu,ec,ed){if(ea+eu>ei.length||ea<0)throw RangeError("Index out of range")}function e5(ei,eo,eu,ec,ed){return eo=+eo,eu>>>=0,ed||e3(ei,eo,eu,4),ea.write(ei,eo,eu,ec,23,4),eu+4}function e4(ei,eo,eu,ec,ed){return eo=+eo,eu>>>=0,ed||e3(ei,eo,eu,8),ea.write(ei,eo,eu,ec,52,8),eu+8}eh.prototype.slice=function(ei,eo){let ea=this.length;ei=~~ei,eo=void 0===eo?ea:~~eo,ei<0?(ei+=ea)<0&&(ei=0):ei>ea&&(ei=ea),eo<0?(eo+=ea)<0&&(eo=0):eo>ea&&(eo=ea),eo>>=0,eo>>>=0,ea||eJ(ei,eo,this.length);let eu=this[ei],ec=1,ed=0;for(;++ed>>=0,eo>>>=0,ea||eJ(ei,eo,this.length);let eu=this[ei+--eo],ec=1;for(;eo>0&&(ec*=256);)eu+=this[ei+--eo]*ec;return eu},eh.prototype.readUint8=eh.prototype.readUInt8=function(ei,eo){return ei>>>=0,eo||eJ(ei,1,this.length),this[ei]},eh.prototype.readUint16LE=eh.prototype.readUInt16LE=function(ei,eo){return ei>>>=0,eo||eJ(ei,2,this.length),this[ei]|this[ei+1]<<8},eh.prototype.readUint16BE=eh.prototype.readUInt16BE=function(ei,eo){return ei>>>=0,eo||eJ(ei,2,this.length),this[ei]<<8|this[ei+1]},eh.prototype.readUint32LE=eh.prototype.readUInt32LE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),(this[ei]|this[ei+1]<<8|this[ei+2]<<16)+16777216*this[ei+3]},eh.prototype.readUint32BE=eh.prototype.readUInt32BE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),16777216*this[ei]+(this[ei+1]<<16|this[ei+2]<<8|this[ei+3])},eh.prototype.readBigUInt64LE=tE(function(ei){tu(ei>>>=0,"offset");let eo=this[ei],ea=this[ei+7];(void 0===eo||void 0===ea)&&tc(ei,this.length-8);let eu=eo+256*this[++ei]+65536*this[++ei]+16777216*this[++ei],ec=this[++ei]+256*this[++ei]+65536*this[++ei]+16777216*ea;return BigInt(eu)+(BigInt(ec)<>>=0,"offset");let eo=this[ei],ea=this[ei+7];(void 0===eo||void 0===ea)&&tc(ei,this.length-8);let eu=16777216*eo+65536*this[++ei]+256*this[++ei]+this[++ei],ec=16777216*this[++ei]+65536*this[++ei]+256*this[++ei]+ea;return(BigInt(eu)<>>=0,eo>>>=0,ea||eJ(ei,eo,this.length);let eu=this[ei],ec=1,ed=0;for(;++ed=(ec*=128)&&(eu-=Math.pow(2,8*eo)),eu},eh.prototype.readIntBE=function(ei,eo,ea){ei>>>=0,eo>>>=0,ea||eJ(ei,eo,this.length);let eu=eo,ec=1,ed=this[ei+--eu];for(;eu>0&&(ec*=256);)ed+=this[ei+--eu]*ec;return ed>=(ec*=128)&&(ed-=Math.pow(2,8*eo)),ed},eh.prototype.readInt8=function(ei,eo){return(ei>>>=0,eo||eJ(ei,1,this.length),128&this[ei])?-((255-this[ei]+1)*1):this[ei]},eh.prototype.readInt16LE=function(ei,eo){ei>>>=0,eo||eJ(ei,2,this.length);let ea=this[ei]|this[ei+1]<<8;return 32768&ea?4294901760|ea:ea},eh.prototype.readInt16BE=function(ei,eo){ei>>>=0,eo||eJ(ei,2,this.length);let ea=this[ei+1]|this[ei]<<8;return 32768&ea?4294901760|ea:ea},eh.prototype.readInt32LE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),this[ei]|this[ei+1]<<8|this[ei+2]<<16|this[ei+3]<<24},eh.prototype.readInt32BE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),this[ei]<<24|this[ei+1]<<16|this[ei+2]<<8|this[ei+3]},eh.prototype.readBigInt64LE=tE(function(ei){tu(ei>>>=0,"offset");let eo=this[ei],ea=this[ei+7];(void 0===eo||void 0===ea)&&tc(ei,this.length-8);let eu=this[ei+4]+256*this[ei+5]+65536*this[ei+6]+(ea<<24);return(BigInt(eu)<>>=0,"offset");let eo=this[ei],ea=this[ei+7];(void 0===eo||void 0===ea)&&tc(ei,this.length-8);let eu=(eo<<24)+65536*this[++ei]+256*this[++ei]+this[++ei];return(BigInt(eu)<>>=0,eo||eJ(ei,4,this.length),ea.read(this,ei,!0,23,4)},eh.prototype.readFloatBE=function(ei,eo){return ei>>>=0,eo||eJ(ei,4,this.length),ea.read(this,ei,!1,23,4)},eh.prototype.readDoubleLE=function(ei,eo){return ei>>>=0,eo||eJ(ei,8,this.length),ea.read(this,ei,!0,52,8)},eh.prototype.readDoubleBE=function(ei,eo){return ei>>>=0,eo||eJ(ei,8,this.length),ea.read(this,ei,!1,52,8)},eh.prototype.writeUintLE=eh.prototype.writeUIntLE=function(ei,eo,ea,eu){if(ei=+ei,eo>>>=0,ea>>>=0,!eu){let eu=Math.pow(2,8*ea)-1;eQ(this,ei,eo,ea,eu,0)}let ec=1,ed=0;for(this[eo]=255&ei;++ed>>=0,ea>>>=0,!eu){let eu=Math.pow(2,8*ea)-1;eQ(this,ei,eo,ea,eu,0)}let ec=ea-1,ed=1;for(this[eo+ec]=255&ei;--ec>=0&&(ed*=256);)this[eo+ec]=ei/ed&255;return eo+ea},eh.prototype.writeUint8=eh.prototype.writeUInt8=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,1,255,0),this[eo]=255&ei,eo+1},eh.prototype.writeUint16LE=eh.prototype.writeUInt16LE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,2,65535,0),this[eo]=255&ei,this[eo+1]=ei>>>8,eo+2},eh.prototype.writeUint16BE=eh.prototype.writeUInt16BE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,2,65535,0),this[eo]=ei>>>8,this[eo+1]=255&ei,eo+2},eh.prototype.writeUint32LE=eh.prototype.writeUInt32LE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,4,4294967295,0),this[eo+3]=ei>>>24,this[eo+2]=ei>>>16,this[eo+1]=ei>>>8,this[eo]=255&ei,eo+4},eh.prototype.writeUint32BE=eh.prototype.writeUInt32BE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,4,4294967295,0),this[eo]=ei>>>24,this[eo+1]=ei>>>16,this[eo+2]=ei>>>8,this[eo+3]=255&ei,eo+4},eh.prototype.writeBigUInt64LE=tE(function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return eX(this,ei,eo,BigInt(0),BigInt("0xffffffffffffffff"))}),eh.prototype.writeBigUInt64BE=tE(function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e0(this,ei,eo,BigInt(0),BigInt("0xffffffffffffffff"))}),eh.prototype.writeIntLE=function(ei,eo,ea,eu){if(ei=+ei,eo>>>=0,!eu){let eu=Math.pow(2,8*ea-1);eQ(this,ei,eo,ea,eu-1,-eu)}let ec=0,ed=1,ef=0;for(this[eo]=255&ei;++ec>0)-ef&255;return eo+ea},eh.prototype.writeIntBE=function(ei,eo,ea,eu){if(ei=+ei,eo>>>=0,!eu){let eu=Math.pow(2,8*ea-1);eQ(this,ei,eo,ea,eu-1,-eu)}let ec=ea-1,ed=1,ef=0;for(this[eo+ec]=255&ei;--ec>=0&&(ed*=256);)ei<0&&0===ef&&0!==this[eo+ec+1]&&(ef=1),this[eo+ec]=(ei/ed>>0)-ef&255;return eo+ea},eh.prototype.writeInt8=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,1,127,-128),ei<0&&(ei=255+ei+1),this[eo]=255&ei,eo+1},eh.prototype.writeInt16LE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,2,32767,-32768),this[eo]=255&ei,this[eo+1]=ei>>>8,eo+2},eh.prototype.writeInt16BE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,2,32767,-32768),this[eo]=ei>>>8,this[eo+1]=255&ei,eo+2},eh.prototype.writeInt32LE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,4,2147483647,-2147483648),this[eo]=255&ei,this[eo+1]=ei>>>8,this[eo+2]=ei>>>16,this[eo+3]=ei>>>24,eo+4},eh.prototype.writeInt32BE=function(ei,eo,ea){return ei=+ei,eo>>>=0,ea||eQ(this,ei,eo,4,2147483647,-2147483648),ei<0&&(ei=4294967295+ei+1),this[eo]=ei>>>24,this[eo+1]=ei>>>16,this[eo+2]=ei>>>8,this[eo+3]=255&ei,eo+4},eh.prototype.writeBigInt64LE=tE(function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return eX(this,ei,eo,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),eh.prototype.writeBigInt64BE=tE(function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e0(this,ei,eo,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),eh.prototype.writeFloatLE=function(ei,eo,ea){return e5(this,ei,eo,!0,ea)},eh.prototype.writeFloatBE=function(ei,eo,ea){return e5(this,ei,eo,!1,ea)},eh.prototype.writeDoubleLE=function(ei,eo,ea){return e4(this,ei,eo,!0,ea)},eh.prototype.writeDoubleBE=function(ei,eo,ea){return e4(this,ei,eo,!1,ea)},eh.prototype.copy=function(ei,eo,ea,eu){if(!eh.isBuffer(ei))throw TypeError("argument should be a Buffer");if(ea||(ea=0),eu||0===eu||(eu=this.length),eo>=ei.length&&(eo=ei.length),eo||(eo=0),eu>0&&eu=this.length)throw RangeError("Index out of range");if(eu<0)throw RangeError("sourceEnd out of bounds");eu>this.length&&(eu=this.length),ei.length-eo>>=0,ea=void 0===ea?this.length:ea>>>0,ei||(ei=0),"number"==typeof ei)for(ec=eo;ec=eu+4;ea-=3)eo="_".concat(ei.slice(ea-3,ea)).concat(eo);return"".concat(ei.slice(0,ea)).concat(eo)}function e7(ei,eo,ea){tu(eo,"offset"),(void 0===ei[eo]||void 0===ei[eo+ea])&&tc(eo,ei.length-(ea+1))}function ta(ei,eo,ea,eu,ec,ed){if(ei>ea||ei3?0===eo||eo===BigInt(0)?">= 0".concat(ec," and < 2").concat(ec," ** ").concat((ed+1)*8).concat(ec):">= -(2".concat(ec," ** ").concat((ed+1)*8-1).concat(ec,") and < 2 ** ")+"".concat((ed+1)*8-1).concat(ec):">= ".concat(eo).concat(ec," and <= ").concat(ea).concat(ec),new e6.ERR_OUT_OF_RANGE("value",eu,ei)}e7(eu,ec,ed)}function tu(ei,eo){if("number"!=typeof ei)throw new e6.ERR_INVALID_ARG_TYPE(eo,"number",ei)}function tc(ei,eo,ea){if(Math.floor(ei)!==ei)throw tu(ei,ea),new e6.ERR_OUT_OF_RANGE(ea||"offset","an integer",ei);if(eo<0)throw new e6.ERR_BUFFER_OUT_OF_BOUNDS;throw new e6.ERR_OUT_OF_RANGE(ea||"offset",">= ".concat(ea?1:0," and <= ").concat(eo),ei)}e8("ERR_BUFFER_OUT_OF_BOUNDS",function(ei){return ei?"".concat(ei," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),e8("ERR_INVALID_ARG_TYPE",function(ei,eo){return'The "'.concat(ei,'" argument must be of type number. Received type ').concat(typeof eo)},TypeError),e8("ERR_OUT_OF_RANGE",function(ei,eo,ea){let eu='The value of "'.concat(ei,'" is out of range.'),ec=ea;return Number.isInteger(ea)&&Math.abs(ea)>4294967296?ec=e9(String(ea)):"bigint"==typeof ea&&(ec=String(ea),(ea>BigInt(2)**BigInt(32)||ea<-(BigInt(2)**BigInt(32)))&&(ec=e9(ec)),ec+="n"),eu+=" It must be ".concat(eo,". Received ").concat(ec)},RangeError);let td=/[^+/0-9A-Za-z-_]/g;function tf(ei){if((ei=(ei=ei.split("=")[0]).trim().replace(td,"")).length<2)return"";for(;ei.length%4!=0;)ei+="=";return ei}function tp(ei,eo){let ea;eo=eo||1/0;let eu=ei.length,ec=null,ed=[];for(let ef=0;ef55295&&ea<57344){if(!ec){if(ea>56319||ef+1===eu){(eo-=3)>-1&&ed.push(239,191,189);continue}ec=ea;continue}if(ea<56320){(eo-=3)>-1&&ed.push(239,191,189),ec=ea;continue}ea=(ec-55296<<10|ea-56320)+65536}else ec&&(eo-=3)>-1&&ed.push(239,191,189);if(ec=null,ea<128){if((eo-=1)<0)break;ed.push(ea)}else if(ea<2048){if((eo-=2)<0)break;ed.push(ea>>6|192,63&ea|128)}else if(ea<65536){if((eo-=3)<0)break;ed.push(ea>>12|224,ea>>6&63|128,63&ea|128)}else if(ea<1114112){if((eo-=4)<0)break;ed.push(ea>>18|240,ea>>12&63|128,ea>>6&63|128,63&ea|128)}else throw Error("Invalid code point")}return ed}function tg(ei){let eo=[];for(let ea=0;ea>8,ec.push(ea%256),ec.push(eu);return ec}function tv(ei){return eo.toByteArray(tf(ei))}function tb(ei,eo,ea,eu){let ec;for(ec=0;ec=eo.length)&&!(ec>=ei.length);++ec)eo[ec+ea]=ei[ec];return ec}function tw(ei,eo){return ei instanceof eo||null!=ei&&null!=ei.constructor&&null!=ei.constructor.name&&ei.constructor.name===eo.name}function t_(ei){return ei!=ei}let tS=function(){let ei="0123456789abcdef",eo=Array(256);for(let ea=0;ea<16;++ea){let eu=16*ea;for(let ec=0;ec<16;++ec)eo[eu+ec]=ei[ea]+ei[ec]}return eo}();function tE(ei){return"undefined"==typeof BigInt?tA:ei}function tA(){throw Error("BigInt not supported")}}(em);var ej=void 0!==ea.g?ea.g:"undefined"!=typeof self?self:window,eR=ec="function"==typeof Object.create?function(ei,eo){ei.super_=eo,ei.prototype=Object.create(eo.prototype,{constructor:{value:ei,enumerable:!1,writable:!0,configurable:!0}})}:function(ei,eo){ei.super_=eo;var ea=function(){};ea.prototype=eo.prototype,ei.prototype=new ea,ei.prototype.constructor=ei};function eL(ei,eo){var ea={seen:[],stylize:eB};return arguments.length>=3&&(ea.depth=arguments[2]),arguments.length>=4&&(ea.colors=arguments[3]),e$(eo)?ea.showHidden=eo:eo&&ta(ea,eo),e0(ea.showHidden)&&(ea.showHidden=!1),e0(ea.depth)&&(ea.depth=2),e0(ea.colors)&&(ea.colors=!1),e0(ea.customInspect)&&(ea.customInspect=!0),ea.colors&&(ea.stylize=eF),eG(ea,ei,ea.depth)}function eF(ei,eo){var ea=eL.styles[eo];return ea?"\x1b["+eL.colors[ea][0]+"m"+ei+"\x1b["+eL.colors[ea][1]+"m":ei}function eB(ei,eo){return ei}function eU(ei){var eo={};return ei.forEach(function(ei,ea){eo[ei]=!0}),eo}function eG(ei,eo,ea){if(ei.customInspect&&eo&&e8(eo.inspect)&&eo.inspect!==eL&&!(eo.constructor&&eo.constructor.prototype===eo)){var eu,ec=eo.inspect(ea,ei);return eX(ec)||(ec=eG(ei,ec,ea)),ec}var ed=eV(ei,eo);if(ed)return ed;var ef=Object.keys(eo),eh=eU(ef);if(ei.showHidden&&(ef=Object.getOwnPropertyNames(eo)),e6(eo)&&(ef.indexOf("message")>=0||ef.indexOf("description")>=0))return eH(eo);if(0===ef.length){if(e8(eo)){var eg=eo.name?": "+eo.name:"";return ei.stylize("[Function"+eg+"]","special")}if(e3(eo))return ei.stylize(RegExp.prototype.toString.call(eo),"regexp");if(e4(eo))return ei.stylize(Date.prototype.toString.call(eo),"date");if(e6(eo))return eH(eo)}var em="",eb=!1,ew=["{","}"];return(eZ(eo)&&(eb=!0,ew=["[","]"]),e8(eo)&&(em=" [Function"+(eo.name?": "+eo.name:"")+"]"),e3(eo)&&(em=" "+RegExp.prototype.toString.call(eo)),e4(eo)&&(em=" "+Date.prototype.toUTCString.call(eo)),e6(eo)&&(em=" "+eH(eo)),0!==ef.length||eb&&0!=eo.length)?ea<0?e3(eo)?ei.stylize(RegExp.prototype.toString.call(eo),"regexp"):ei.stylize("[Object]","special"):(ei.seen.push(eo),eu=eb?eW(ei,eo,ea,eh,ef):ef.map(function(eu){return eK(ei,eo,ea,eh,eu,eb)}),ei.seen.pop(),eY(eu,em,ew)):ew[0]+em+ew[1]}function eV(ei,eo){if(e0(eo))return ei.stylize("undefined","undefined");if(eX(eo)){var ea="'"+JSON.stringify(eo).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ei.stylize(ea,"string")}return eQ(eo)?ei.stylize(""+eo,"number"):e$(eo)?ei.stylize(""+eo,"boolean"):eJ(eo)?ei.stylize("null","null"):void 0}function eH(ei){return"["+Error.prototype.toString.call(ei)+"]"}function eW(ei,eo,ea,eu,ec){for(var ed=[],ef=0,eh=eo.length;efei.seen.indexOf(eg.value)?(eh=eJ(ea)?eG(ei,eg.value,null):eG(ei,eg.value,ea-1)).indexOf("\n")>-1&&(eh=ed?eh.split("\n").map(function(ei){return" "+ei}).join("\n").substr(2):"\n"+eh.split("\n").map(function(ei){return" "+ei}).join("\n")):eh=ei.stylize("[Circular]","special")),e0(ef)){if(ed&&ec.match(/^\d+$/))return eh;(ef=JSON.stringify(""+ec)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ef=ef.substr(1,ef.length-2),ef=ei.stylize(ef,"name")):(ef=ef.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ef=ei.stylize(ef,"string"))}return ef+": "+eh}function eY(ei,eo,ea){return ei.reduce(function(ei,eo){return eo.indexOf("\n"),ei+eo.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ea[0]+(""===eo?"":eo+"\n ")+" "+ei.join(",\n ")+" "+ea[1]:ea[0]+eo+" "+ei.join(", ")+" "+ea[1]}function eZ(ei){return Array.isArray(ei)}function e$(ei){return"boolean"==typeof ei}function eJ(ei){return null===ei}function eQ(ei){return"number"==typeof ei}function eX(ei){return"string"==typeof ei}function e0(ei){return void 0===ei}function e3(ei){return e5(ei)&&"[object RegExp]"===e7(ei)}function e5(ei){return"object"==typeof ei&&null!==ei}function e4(ei){return e5(ei)&&"[object Date]"===e7(ei)}function e6(ei){return e5(ei)&&("[object Error]"===e7(ei)||ei instanceof Error)}function e8(ei){return"function"==typeof ei}function e9(ei){return null===ei||"boolean"==typeof ei||"number"==typeof ei||"string"==typeof ei||"symbol"==typeof ei||void 0===ei}function e7(ei){return Object.prototype.toString.call(ei)}function ta(ei,eo){if(!eo||!e5(eo))return ei;for(var ea=Object.keys(eo),eu=ea.length;eu--;)ei[ea[eu]]=eo[ea[eu]];return ei}function tu(ei,eo){return Object.prototype.hasOwnProperty.call(ei,eo)}function tc(ei,eo){if(ei===eo)return 0;for(var ea=ei.length,eu=eo.length,ec=0,ed=Math.min(ea,eu);ec=0){var ef=eu.indexOf("\n",ed+1);eu=eu.substring(ef+1)}this.stack=eu}}}function tE(ei,eo){return"string"==typeof ei?ei.length=0;ed--)if(eg[ed]!==em[ed])return!1;for(ed=eg.length-1;ed>=0;ed--)if(!tN(ei[ec=eg[ed]],eo[ec],ea,eu))return!1;return!0}function tR(ei,eo,ea){tN(ei,eo,!1)&&tk(ei,eo,ea,"notDeepEqual",tR)}function tL(ei,eo,ea){tN(ei,eo,!0)&&tk(ei,eo,ea,"notDeepStrictEqual",tL)}function tF(ei,eo,ea){ei!==eo&&tk(ei,eo,ea,"===",tF)}function tB(ei,eo,ea){ei===eo&&tk(ei,eo,ea,"!==",tB)}function tU(ei,eo){if(!ei||!eo)return!1;if("[object RegExp]"==Object.prototype.toString.call(eo))return eo.test(ei);try{if(ei instanceof eo)return!0}catch(ei){}return!Error.isPrototypeOf(eo)&&!0===eo.call({},ei)}function tG(ei){var eo;try{ei()}catch(ei){eo=ei}return eo}function tV(ei,eo,ea,eu){if("function"!=typeof eo)throw TypeError('"block" argument must be a function');"string"==typeof ea&&(eu=ea,ea=null),ec=tG(eo),eu=(ea&&ea.name?" ("+ea.name+").":".")+(eu?" "+eu:"."),ei&&!ec&&tk(ec,ea,"Missing expected exception"+eu);var ec,ed="string"==typeof eu,ef=!ei&&e6(ec),eh=!ei&&ec&&!ea;if((ef&&ed&&tU(ec,ea)||eh)&&tk(ec,ea,"Got unwanted exception"+eu),ei&&ec&&ea&&!tU(ec,ea)||!ei&&ec)throw ec}function tq(ei,eo,ea){tV(!0,ei,eo,ea)}function tH(ei,eo,ea){tV(!1,ei,eo,ea)}function tW(ei){if(ei)throw ei}tb.AssertionError=tS,eR(tS,Error),tb.fail=tk,tb.ok=tC,tb.equal=tO,tb.notEqual=tI,tb.deepEqual=tP,tb.deepStrictEqual=tD,tb.notDeepEqual=tR,tb.notDeepStrictEqual=tL,tb.strictEqual=tF,tb.notStrictEqual=tB,tb.throws=tq,tb.doesNotThrow=tH,tb.ifError=tW;var tK={};class tY{makeDestinationObject(){return{}}decode(ei,eo){throw Error("Layout is abstract")}encode(ei,eo,ea){throw Error("Layout is abstract")}getSpan(ei,eo){if(0>this.span)throw RangeError("indeterminate span");return this.span}replicate(ei){let eo=Object.create(this.constructor.prototype);return Object.assign(eo,this),eo.property=ei,eo}fromArray(ei){}constructor(ei,eo){if(!Number.isInteger(ei))throw TypeError("span must be an integer");this.span=ei,this.property=eo}}function tZ(ei,eo){return eo.property?ei+"["+eo.property+"]":ei}function t$(ei,eo){if("function"!=typeof ei)throw TypeError("Class must be constructor");if(ei.hasOwnProperty("layout_"))throw Error("Class is already bound to a layout");if(!(eo&&eo instanceof tY))throw TypeError("layout must be a Layout");if(eo.hasOwnProperty("boundConstructor_"))throw Error("layout is already bound to a constructor");ei.layout_=eo,eo.boundConstructor_=ei,eo.makeDestinationObject=()=>new ei,Object.defineProperty(ei.prototype,"encode",{value:function(ei,ea){return eo.encode(this,ei,ea)},writable:!0}),Object.defineProperty(ei,"decode",{value:function(ei,ea){return eo.decode(ei,ea)},writable:!0})}tK.Layout=tY,tK.nameWithProperty=tZ,tK.bindConstructorLayout=t$;class tJ extends tY{isCount(){throw Error("ExternalLayout is abstract")}}class tQ extends tJ{isCount(){return!0}decode(ei,eo){void 0===eo&&(eo=0);let ea=ei.length-eo;return Math.floor(ea/this.elementSpan)}encode(ei,eo,ea){return 0}constructor(ei,eo){if(void 0===ei&&(ei=1),!Number.isInteger(ei)||0>=ei)throw TypeError("elementSpan must be a (positive) integer");super(-1,eo),this.elementSpan=ei}}class tX extends tJ{isCount(){return this.layout instanceof ra||this.layout instanceof ru}decode(ei,eo){return void 0===eo&&(eo=0),this.layout.decode(ei,eo+this.offset)}encode(ei,eo,ea){return void 0===ea&&(ea=0),this.layout.encode(ei,eo,ea+this.offset)}constructor(ei,eo,ea){if(!(ei instanceof tY))throw TypeError("layout must be a Layout");if(void 0===eo)eo=0;else if(!Number.isInteger(eo))throw TypeError("offset must be integer or undefined");super(ei.span,ea||ei.property),this.layout=ei,this.offset=eo}}class ra extends tY{decode(ei,eo){return void 0===eo&&(eo=0),ei.readUIntLE(eo,this.span)}encode(ei,eo,ea){return void 0===ea&&(ea=0),eo.writeUIntLE(ei,ea,this.span),this.span}constructor(ei,eo){if(super(ei,eo),6ei+eu.encode(ec,eo,ea+ei),0);return this.count instanceof tJ&&this.count.encode(ei.length,eo,ea),ec}constructor(ei,eo,ea){if(!(ei instanceof tY))throw TypeError("elementLayout must be a Layout");if(!(eo instanceof tJ&&eo.isCount()||Number.isInteger(eo)&&0<=eo))throw TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let eu=-1;eo instanceof tJ||!(0{let ec=eu.getSpan(ei,eo);return eo+=ec,ea+ec},0)}catch(ei){throw RangeError("indeterminate span")}return ea}decode(ei,eo){void 0===eo&&(eo=0);let ea=this.makeDestinationObject();for(let eu of this.fields)if(void 0!==eu.property&&(ea[eu.property]=eu.decode(ei,eo)),eo+=eu.getSpan(ei,eo),this.decodePrefixes&&ei.length===eo)break;return ea}encode(ei,eo,ea){void 0===ea&&(ea=0);let eu=ea,ec=0,ed=0;for(let eu of this.fields){let ef=eu.span;if(ed=0ef&&(ef=eu.getSpan(eo,ea)))}ec=ea,ea+=ef}return ec+ed-eu}fromArray(ei){let eo=this.makeDestinationObject();for(let ea of this.fields)void 0!==ea.property&&0ea.span?eo=-1:0<=eo&&(eo+=ea.span)}}constructor(ei,eo,ea){if(!(Array.isArray(ei)&&ei.reduce((ei,eo)=>ei&&eo instanceof tY,!0)))throw TypeError("fields must be array of Layout instances");for(let eu of("boolean"==typeof eo&&void 0===ea&&(ea=eo,eo=void 0),ei))if(0>eu.span&&void 0===eu.property)throw Error("fields cannot contain unnamed variable-length layout");let eu=-1;try{eu=ei.reduce((ei,eo)=>ei+eo.getSpan(),0)}catch(ei){}super(eu,eo),this.fields=ei,this.decodePrefixes=!!ea}}class rP{decode(){throw Error("UnionDiscriminator is abstract")}encode(){throw Error("UnionDiscriminator is abstract")}constructor(ei){this.property=ei}}class rD extends rP{decode(ei,eo){return this.layout.decode(ei,eo)}encode(ei,eo,ea){return this.layout.encode(ei,eo,ea)}constructor(ei,eo){if(!(ei instanceof tJ&&ei.isCount()))throw TypeError("layout must be an unsigned integer ExternalLayout");super(eo||ei.property||"variant"),this.layout=ei}}class rN extends tY{getSpan(ei,eo){if(0<=this.span)return this.span;void 0===eo&&(eo=0);let ea=this.getVariant(ei,eo);if(!ea)throw Error("unable to determine span for unrecognized variant");return ea.getSpan(ei,eo)}defaultGetSourceVariant(ei){if(ei.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&ei.hasOwnProperty(this.defaultLayout.property))return;let eo=this.registry[ei[this.discriminator.property]];if(eo&&(!eo.layout||ei.hasOwnProperty(eo.property)))return eo}else for(let eo in this.registry){let ea=this.registry[eo];if(ei.hasOwnProperty(ea.property))return ea}throw Error("unable to infer src variant")}decode(ei,eo){let ea;void 0===eo&&(eo=0);let eu=this.discriminator,ec=eu.decode(ei,eo),ed=this.registry[ec];if(void 0===ed){let ef=0;ed=this.defaultLayout,this.usesPrefixDiscriminator&&(ef=eu.layout.span),(ea=this.makeDestinationObject())[eu.property]=ec,ea[ed.property]=this.defaultLayout.decode(ei,eo+ef)}else ea=ed.decode(ei,eo);return ea}encode(ei,eo,ea){void 0===ea&&(ea=0);let eu=this.getSourceVariant(ei);if(void 0===eu){let eu=this.discriminator,ec=this.defaultLayout,ed=0;return this.usesPrefixDiscriminator&&(ed=eu.layout.span),eu.encode(ei[eu.property],eo,ea),ed+ec.encode(ei[ec.property],eo,ea+ed)}return eu.encode(ei,eo,ea)}addVariant(ei,eo,ea){let eu=new rM(this,ei,eo,ea);return this.registry[ei]=eu,eu}getVariant(ei,eo){let ea=ei;return em.Buffer.isBuffer(ei)&&(void 0===eo&&(eo=0),ea=this.discriminator.decode(ei,eo)),this.registry[ea]}constructor(ei,eo,ea){let eu=ei instanceof ra||ei instanceof ru;if(eu)ei=new rD(new tX(ei));else if(ei instanceof tJ&&ei.isCount())ei=new rD(ei);else if(!(ei instanceof rP))throw TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===eo&&(eo=null),!(null===eo||eo instanceof tY))throw TypeError("defaultLayout must be null or a Layout");if(null!==eo){if(0>eo.span)throw Error("defaultLayout must have constant span");void 0===eo.property&&(eo=eo.replicate("content"))}let ec=-1;eo&&0<=(ec=eo.span)&&eu&&(ec+=ei.layout.span),super(ec,ea),this.discriminator=ei,this.usesPrefixDiscriminator=eu,this.defaultLayout=eo,this.registry={};let ed=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(ei){return ed(ei)},this.configGetSourceVariant=function(ei){ed=ei.bind(this)}}}class rM extends tY{getSpan(ei,eo){if(0<=this.span)return this.span;void 0===eo&&(eo=0);let ea=0;return this.union.usesPrefixDiscriminator&&(ea=this.union.discriminator.layout.span),ea+this.layout.getSpan(ei,eo+ea)}decode(ei,eo){let ea=this.makeDestinationObject();if(void 0===eo&&(eo=0),this!==this.union.getVariant(ei,eo))throw Error("variant mismatch");let eu=0;return this.union.usesPrefixDiscriminator&&(eu=this.union.discriminator.layout.span),this.layout?ea[this.property]=this.layout.decode(ei,eo+eu):this.property?ea[this.property]=!0:this.union.usesPrefixDiscriminator&&(ea[this.union.discriminator.property]=this.variant),ea}encode(ei,eo,ea){void 0===ea&&(ea=0);let eu=0;if(this.union.usesPrefixDiscriminator&&(eu=this.union.discriminator.layout.span),this.layout&&!ei.hasOwnProperty(this.property))throw TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,eo,ea);let ec=eu;if(this.layout&&(this.layout.encode(ei[this.property],eo,ea+eu),ec+=this.layout.getSpan(eo,ea+eu),0<=this.union.span&&ec>this.union.span))throw Error("encoded variant overruns containing union");return ec}fromArray(ei){if(this.layout)return this.layout.fromArray(ei)}constructor(ei,eo,ea,eu){if(!(ei instanceof rN))throw TypeError("union must be a Union");if(!Number.isInteger(eo)||0>eo)throw TypeError("variant must be a (non-negative) integer");if("string"==typeof ea&&void 0===eu&&(eu=ea,ea=null),ea){if(!(ea instanceof tY))throw TypeError("layout must be a Layout");if(null!==ei.defaultLayout&&0<=ea.span&&ea.span>ei.defaultLayout.span)throw Error("variant span exceeds span of containing union");if("string"!=typeof eu)throw TypeError("variant must have a String property")}let ec=ei.span;0>ei.span&&0<=(ec=ea?ea.span:0)&&ei.usesPrefixDiscriminator&&(ec+=ei.discriminator.layout.span),super(ec,eu),this.union=ei,this.variant=eo,this.layout=ea||null}}function rj(ei){return 0>ei&&(ei+=4294967296),ei}class rR extends tY{decode(ei,eo){let ea=this.makeDestinationObject();void 0===eo&&(eo=0);let eu=this.word.decode(ei,eo);for(let ei of(this._packedSetValue(eu),this.fields))void 0!==ei.property&&(ea[ei.property]=ei.decode(eu));return ea}encode(ei,eo,ea){void 0===ea&&(ea=0);let eu=this.word.decode(eo,ea);for(let eo of(this._packedSetValue(eu),this.fields))if(void 0!==eo.property){let ea=ei[eo.property];void 0!==ea&&eo.encode(ea)}return this.word.encode(this._packedGetValue(),eo,ea)}addField(ei,eo){let ea=new rL(this,ei,eo);return this.fields.push(ea),ea}addBoolean(ei){let eo=new rF(this,ei);return this.fields.push(eo),eo}fieldFor(ei){if("string"!=typeof ei)throw TypeError("property must be string");for(let eo of this.fields)if(eo.property===ei)return eo}constructor(ei,eo,ea){if(!(ei instanceof ra||ei instanceof ru))throw TypeError("word must be a UInt or UIntBE layout");if("string"==typeof eo&&void 0===ea&&(ea=eo,eo=void 0),4>>this.start;return ea}encode(ei){if(!Number.isInteger(ei)||ei!==rj(ei&this.valueMask))throw TypeError(tZ("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);let eo=this.container._packedGetValue(),ea=rj(ei<=eo)throw TypeError("bits must be positive integer");let eu=8*ei.span,ec=ei.fields.reduce((ei,eo)=>ei+eo.bits,0);if(eo+ec>eu)throw Error("bits too long for span remainder ("+(eu-ec)+" of "+eu+" remain)");this.container=ei,this.bits=eo,this.valueMask=(1<ea&&(ea=this.length.decode(ei,eo)),ea}decode(ei,eo){void 0===eo&&(eo=0);let ea=this.span;return 0>ea&&(ea=this.length.decode(ei,eo)),ei.slice(eo,eo+ea)}encode(ei,eo,ea){let eu=this.length;if(this.length instanceof tJ&&(eu=ei.length),!(em.Buffer.isBuffer(ei)&&eu===ei.length))throw TypeError(tZ("Blob.encode",this)+" requires (length "+eu+") Buffer as src");if(ea+eu>eo.length)throw RangeError("encoding overruns Buffer");return eo.write(ei.toString("hex"),ea,eu,"hex"),this.length instanceof tJ&&this.length.encode(eu,eo,ea),eu}constructor(ei,eo){if(!(ei instanceof tJ&&ei.isCount()||Number.isInteger(ei)&&0<=ei))throw TypeError("length must be positive integer or an unsigned integer ExternalLayout");let ea=-1;ei instanceof tJ||(ea=ei),super(ea,eo),this.length=ei}}class rU extends tY{getSpan(ei,eo){if(!em.Buffer.isBuffer(ei))throw TypeError("b must be a Buffer");void 0===eo&&(eo=0);let ea=eo;for(;eaeo.length)throw RangeError("encoding overruns Buffer");return eu.copy(eo,ea),eo[ea+ec]=0,ec+1}constructor(ei){super(-1,ei)}}class rz extends tY{getSpan(ei,eo){if(!em.Buffer.isBuffer(ei))throw TypeError("b must be a Buffer");return void 0===eo&&(eo=0),ei.length-eo}decode(ei,eo,ea){void 0===eo&&(eo=0);let eu=this.getSpan(ei,eo);if(0<=this.maxSpan&&this.maxSpaneo.length)throw RangeError("encoding overruns Buffer");return eu.copy(eo,ea),ec}constructor(ei,eo){if("string"==typeof ei&&void 0===eo&&(eo=ei,ei=void 0),void 0===ei)ei=-1;else if(!Number.isInteger(ei))throw TypeError("maxSpan must be an integer");super(-1,eo),this.maxSpan=ei}}class rG extends tY{decode(ei,eo,ea){return this.value}encode(ei,eo,ea){return 0}constructor(ei,eo){super(0,eo),this.value=ei}}tK.ExternalLayout=tJ,tK.GreedyCount=tQ,tK.OffsetLayout=tX,tK.UInt=ra,tK.UIntBE=ru,tK.Int=rc,tK.IntBE=rf,tK.Float=rA,tK.FloatBE=rT,tK.Double=rk,tK.DoubleBE=rC,tK.Sequence=rO,tK.Structure=rI,tK.UnionDiscriminator=rP,tK.UnionLayoutDiscriminator=rD,tK.Union=rN,tK.VariantLayout=rM,tK.BitStructure=rR,tK.BitField=rL,tK.Boolean=rF,tK.Blob=rB,tK.CString=rU,tK.UTF8=rz,tK.Constant=rG,tK.greedy=(ei,eo)=>new tQ(ei,eo),tK.offset=(ei,eo,ea)=>new tX(ei,eo,ea);var rV=tK.u8=ei=>new ra(1,ei);tK.u16=ei=>new ra(2,ei),tK.u24=ei=>new ra(3,ei);var rq=tK.u32=ei=>new ra(4,ei);tK.u40=ei=>new ra(5,ei),tK.u48=ei=>new ra(6,ei),tK.nu64=ei=>new rw(ei),tK.u16be=ei=>new ru(2,ei),tK.u24be=ei=>new ru(3,ei),tK.u32be=ei=>new ru(4,ei),tK.u40be=ei=>new ru(5,ei),tK.u48be=ei=>new ru(6,ei),tK.nu64be=ei=>new r_(ei),tK.s8=ei=>new rc(1,ei),tK.s16=ei=>new rc(2,ei),tK.s24=ei=>new rc(3,ei),tK.s32=ei=>new rc(4,ei),tK.s40=ei=>new rc(5,ei),tK.s48=ei=>new rc(6,ei),tK.ns64=ei=>new rS(ei),tK.s16be=ei=>new rf(2,ei),tK.s24be=ei=>new rf(3,ei),tK.s32be=ei=>new rf(4,ei),tK.s40be=ei=>new rf(5,ei),tK.s48be=ei=>new rf(6,ei),tK.ns64be=ei=>new rE(ei),tK.f32=ei=>new rA(ei),tK.f32be=ei=>new rT(ei),tK.f64=ei=>new rk(ei),tK.f64be=ei=>new rC(ei);var rH=tK.struct=(ei,eo,ea)=>new rI(ei,eo,ea);tK.bits=(ei,eo,ea)=>new rR(ei,eo,ea),tK.seq=(ei,eo,ea)=>new rO(ei,eo,ea),tK.union=(ei,eo,ea)=>new rN(ei,eo,ea),tK.unionLayoutDiscriminator=(ei,eo)=>new rD(ei,eo);var rW=tK.blob=(ei,eo)=>new rB(ei,eo);tK.cstr=ei=>new rU(ei),tK.utf8=(ei,eo)=>new rz(ei,eo),tK.const=(ei,eo)=>new rG(ei,eo);let rK=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return rW(32,ei)},rY=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uint64";return rW(8,ei)};function rZ(ei,eo,ea){for(var eu=arguments.length,ec=Array(eu>3?eu-3:0),ed=3;ed"00".concat(ei.toString(16)).slice(-2)).join(""),16)}}function nu(ei){return"publicKey"in ei}let nd={MintTokens:0,FreezeAccount:1,AccountOwner:2,CloseAccount:3},nf=new eg.nh("So11111111111111111111111111111111111111112"),nh=rH([rq("mintAuthorityOption"),rK("mintAuthority"),rY("supply"),rV("decimals"),rV("isInitialized"),rq("freezeAuthorityOption"),rK("freezeAuthority")]),np=rH([rK("mint"),rK("owner"),rY("amount"),rq("delegateOption"),rK("delegate"),rV("state"),rq("isNativeOption"),rY("isNative"),rY("delegatedAmount"),rq("closeAuthorityOption"),rK("closeAuthority")]),ng=rH([rV("m"),rV("n"),rV("is_initialized"),rK("signer1"),rK("signer2"),rK("signer3"),rK("signer4"),rK("signer5"),rK("signer6"),rK("signer7"),rK("signer8"),rK("signer9"),rK("signer10"),rK("signer11")]);class ny{static async getMinBalanceRentForExemptMint(ei){return await ei.getMinimumBalanceForRentExemption(nh.span)}static async getMinBalanceRentForExemptAccount(ei){return await ei.getMinimumBalanceForRentExemption(np.span)}static async getMinBalanceRentForExemptMultisig(ei){return await ei.getMinimumBalanceForRentExemption(ng.span)}static async createMint(ei,eo,ea,eu,ec,ed){let ef=eg.RG.generate(),eh=new ny(ei,ef.publicKey,ed,eo),em=await ny.getMinBalanceRentForExemptMint(ei),eb=new eg.YW;return eb.add(eg.yc.createAccount({fromPubkey:eo.publicKey,newAccountPubkey:ef.publicKey,lamports:em,space:nh.span,programId:ed})),eb.add(ny.createInitMintInstruction(ed,ef.publicKey,ec,ea,eu)),await rZ("createAccount and InitializeMint",ei,eb,eo,ef),eh}async createAccount(ei){let eo=await ny.getMinBalanceRentForExemptAccount(this.connection),ea=eg.RG.generate(),eu=new eg.YW;eu.add(eg.yc.createAccount({fromPubkey:this.payer.publicKey,newAccountPubkey:ea.publicKey,lamports:eo,space:np.span,programId:this.programId}));let ec=this.publicKey;return eu.add(ny.createInitAccountInstruction(this.programId,ec,ea.publicKey,ei)),await rZ("createAccount and InitializeAccount",this.connection,eu,this.payer,ea),ea.publicKey}async createAssociatedTokenAccount(ei){let eo=await ny.getAssociatedTokenAddress(this.associatedProgramId,this.programId,this.publicKey,ei);return this.createAssociatedTokenAccountInternal(ei,eo)}async createAssociatedTokenAccountInternal(ei,eo){return await rZ("CreateAssociatedTokenAccount",this.connection,new eg.YW().add(ny.createAssociatedTokenAccountInstruction(this.associatedProgramId,this.programId,this.publicKey,eo,ei,this.payer.publicKey)),this.payer),eo}async getOrCreateAssociatedAccountInfo(ei){let eo=await ny.getAssociatedTokenAddress(this.associatedProgramId,this.programId,this.publicKey,ei);try{return await this.getAccountInfo(eo)}catch(ea){if(ea.message===rQ||ea.message===rX){try{await this.createAssociatedTokenAccountInternal(ei,eo)}catch(ei){}return await this.getAccountInfo(eo)}throw ea}}static async createWrappedNativeAccount(ei,eo,ea,eu,ec){let ed=await ny.getMinBalanceRentForExemptAccount(ei),ef=eg.RG.generate(),eh=new eg.YW;return eh.add(eg.yc.createAccount({fromPubkey:eu.publicKey,newAccountPubkey:ef.publicKey,lamports:ed,space:np.span,programId:eo})),eh.add(eg.yc.transfer({fromPubkey:eu.publicKey,toPubkey:ef.publicKey,lamports:ec})),eh.add(ny.createInitAccountInstruction(eo,nf,ef.publicKey,ea)),await rZ("createAccount, transfer, and initializeAccount",ei,eh,eu,ef),ef.publicKey}async createMultisig(ei,eo){let ea=eg.RG.generate(),eu=await ny.getMinBalanceRentForExemptMultisig(this.connection),ec=new eg.YW;ec.add(eg.yc.createAccount({fromPubkey:this.payer.publicKey,newAccountPubkey:ea.publicKey,lamports:eu,space:ng.span,programId:this.programId}));let ed=[{pubkey:ea.publicKey,isSigner:!1,isWritable:!0},{pubkey:eg.ze,isSigner:!1,isWritable:!1}];eo.forEach(ei=>ed.push({pubkey:ei,isSigner:!1,isWritable:!1}));let ef=rH([rV("instruction"),rV("m")]),eh=em.Buffer.alloc(ef.span);return ef.encode({instruction:2,m:ei},eh),ec.add({keys:ed,programId:this.programId,data:eh}),await rZ("createAccount and InitializeMultisig",this.connection,ec,this.payer,ea),ea.publicKey}async getMintInfo(){let ei=await this.connection.getAccountInfo(this.publicKey);if(null===ei)throw Error("Failed to find mint account");if(!ei.owner.equals(this.programId))throw Error("Invalid mint owner: ".concat(JSON.stringify(ei.owner)));if(ei.data.length!=nh.span)throw Error("Invalid mint size");let eo=em.Buffer.from(ei.data),ea=nh.decode(eo);return 0===ea.mintAuthorityOption?ea.mintAuthority=null:ea.mintAuthority=new eg.nh(ea.mintAuthority),ea.supply=no.fromBuffer(ea.supply),ea.isInitialized=0!=ea.isInitialized,0===ea.freezeAuthorityOption?ea.freezeAuthority=null:ea.freezeAuthority=new eg.nh(ea.freezeAuthority),ea}async getAccountInfo(ei,eo){let ea=await this.connection.getAccountInfo(ei,eo);if(null===ea)throw Error(rQ);if(!ea.owner.equals(this.programId))throw Error(rX);if(ea.data.length!=np.span)throw Error("Invalid account size");let eu=em.Buffer.from(ea.data),ec=np.decode(eu);if(ec.address=ei,ec.mint=new eg.nh(ec.mint),ec.owner=new eg.nh(ec.owner),ec.amount=no.fromBuffer(ec.amount),0===ec.delegateOption?(ec.delegate=null,ec.delegatedAmount=new no):(ec.delegate=new eg.nh(ec.delegate),ec.delegatedAmount=no.fromBuffer(ec.delegatedAmount)),ec.isInitialized=0!==ec.state,ec.isFrozen=2===ec.state,1===ec.isNativeOption?(ec.rentExemptReserve=no.fromBuffer(ec.isNative),ec.isNative=!0):(ec.rentExemptReserve=null,ec.isNative=!1),0===ec.closeAuthorityOption?ec.closeAuthority=null:ec.closeAuthority=new eg.nh(ec.closeAuthority),!ec.mint.equals(this.publicKey))throw Error("Invalid account mint: ".concat(JSON.stringify(ec.mint)," !== ").concat(JSON.stringify(this.publicKey)));return ec}async getMultisigInfo(ei){let eo=await this.connection.getAccountInfo(ei);if(null===eo)throw Error("Failed to find multisig");if(!eo.owner.equals(this.programId))throw Error("Invalid multisig owner");if(eo.data.length!=ng.span)throw Error("Invalid multisig size");let ea=em.Buffer.from(eo.data),eu=ng.decode(ea);return eu.signer1=new eg.nh(eu.signer1),eu.signer2=new eg.nh(eu.signer2),eu.signer3=new eg.nh(eu.signer3),eu.signer4=new eg.nh(eu.signer4),eu.signer5=new eg.nh(eu.signer5),eu.signer6=new eg.nh(eu.signer6),eu.signer7=new eg.nh(eu.signer7),eu.signer8=new eg.nh(eu.signer8),eu.signer9=new eg.nh(eu.signer9),eu.signer10=new eg.nh(eu.signer10),eu.signer11=new eg.nh(eu.signer11),eu}async transfer(ei,eo,ea,eu,ec){let ed,ef;return nu(ea)?(ed=ea.publicKey,ef=[ea]):(ed=ea,ef=eu),await rZ("Transfer",this.connection,new eg.YW().add(ny.createTransferInstruction(this.programId,ei,eo,ed,eu,ec)),this.payer,...ef)}async approve(ei,eo,ea,eu,ec){let ed,ef;nu(ea)?(ed=ea.publicKey,ef=[ea]):(ed=ea,ef=eu),await rZ("Approve",this.connection,new eg.YW().add(ny.createApproveInstruction(this.programId,ei,eo,ed,eu,ec)),this.payer,...ef)}async revoke(ei,eo,ea){let eu,ec;nu(eo)?(eu=eo.publicKey,ec=[eo]):(eu=eo,ec=ea),await rZ("Revoke",this.connection,new eg.YW().add(ny.createRevokeInstruction(this.programId,ei,eu,ea)),this.payer,...ec)}async setAuthority(ei,eo,ea,eu,ec){let ed,ef;nu(eu)?(ed=eu.publicKey,ef=[eu]):(ed=eu,ef=ec),await rZ("SetAuthority",this.connection,new eg.YW().add(ny.createSetAuthorityInstruction(this.programId,ei,eo,ea,ed,ec)),this.payer,...ef)}async mintTo(ei,eo,ea,eu){let ec,ed;nu(eo)?(ec=eo.publicKey,ed=[eo]):(ec=eo,ed=ea),await rZ("MintTo",this.connection,new eg.YW().add(ny.createMintToInstruction(this.programId,this.publicKey,ei,ec,ea,eu)),this.payer,...ed)}async burn(ei,eo,ea,eu){let ec,ed;nu(eo)?(ec=eo.publicKey,ed=[eo]):(ec=eo,ed=ea),await rZ("Burn",this.connection,new eg.YW().add(ny.createBurnInstruction(this.programId,this.publicKey,ei,ec,ea,eu)),this.payer,...ed)}async closeAccount(ei,eo,ea,eu){let ec,ed;nu(ea)?(ec=ea.publicKey,ed=[ea]):(ec=ea,ed=eu),await rZ("CloseAccount",this.connection,new eg.YW().add(ny.createCloseAccountInstruction(this.programId,ei,eo,ec,eu)),this.payer,...ed)}async freezeAccount(ei,eo,ea){let eu,ec;nu(eo)?(eu=eo.publicKey,ec=[eo]):(eu=eo,ec=ea),await rZ("FreezeAccount",this.connection,new eg.YW().add(ny.createFreezeAccountInstruction(this.programId,ei,this.publicKey,eu,ea)),this.payer,...ec)}async thawAccount(ei,eo,ea){let eu,ec;nu(eo)?(eu=eo.publicKey,ec=[eo]):(eu=eo,ec=ea),await rZ("ThawAccount",this.connection,new eg.YW().add(ny.createThawAccountInstruction(this.programId,ei,this.publicKey,eu,ea)),this.payer,...ec)}async transferChecked(ei,eo,ea,eu,ec,ed){let ef,eh;return nu(ea)?(ef=ea.publicKey,eh=[ea]):(ef=ea,eh=eu),await rZ("TransferChecked",this.connection,new eg.YW().add(ny.createTransferCheckedInstruction(this.programId,ei,this.publicKey,eo,ef,eu,ec,ed)),this.payer,...eh)}async approveChecked(ei,eo,ea,eu,ec,ed){let ef,eh;nu(ea)?(ef=ea.publicKey,eh=[ea]):(ef=ea,eh=eu),await rZ("ApproveChecked",this.connection,new eg.YW().add(ny.createApproveCheckedInstruction(this.programId,ei,this.publicKey,eo,ef,eu,ec,ed)),this.payer,...eh)}async mintToChecked(ei,eo,ea,eu,ec){let ed,ef;nu(eo)?(ed=eo.publicKey,ef=[eo]):(ed=eo,ef=ea),await rZ("MintToChecked",this.connection,new eg.YW().add(ny.createMintToCheckedInstruction(this.programId,this.publicKey,ei,ed,ea,eu,ec)),this.payer,...ef)}async burnChecked(ei,eo,ea,eu,ec){let ed,ef;nu(eo)?(ed=eo.publicKey,ef=[eo]):(ed=eo,ef=ea),await rZ("BurnChecked",this.connection,new eg.YW().add(ny.createBurnCheckedInstruction(this.programId,this.publicKey,ei,ed,ea,eu,ec)),this.payer,...ef)}async syncNative(ei){await rZ("SyncNative",this.connection,new eg.YW().add(ny.createSyncNativeInstruction(this.programId,ei)),this.payer)}static createInitMintInstruction(ei,eo,ea,eu,ec){let ed=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:eg.ze,isSigner:!1,isWritable:!1}],ef=rH([rV("instruction"),rV("decimals"),rK("mintAuthority"),rV("option"),rK("freezeAuthority")]),eh=em.Buffer.alloc(1024);{let ei=ef.encode({instruction:0,decimals:ea,mintAuthority:ni(eu),option:null===ec?0:1,freezeAuthority:ni(ec||new eg.nh(0))},eh);eh=eh.slice(0,ei)}return new eg.Sl({keys:ed,programId:ei,data:eh})}static createInitAccountInstruction(ei,eo,ea,eu){let ec=[{pubkey:ea,isSigner:!1,isWritable:!0},{pubkey:eo,isSigner:!1,isWritable:!1},{pubkey:eu,isSigner:!1,isWritable:!1},{pubkey:eg.ze,isSigner:!1,isWritable:!1}],ed=rH([rV("instruction")]),ef=em.Buffer.alloc(ed.span);return ed.encode({instruction:1},ef),new eg.Sl({keys:ec,programId:ei,data:ef})}static createTransferInstruction(ei,eo,ea,eu,ec,ed){let ef=rH([rV("instruction"),rY("amount")]),eh=em.Buffer.alloc(ef.span);ef.encode({instruction:3,amount:new no(ed).toBuffer()},eh);let eb=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!0}];return 0===ec.length?eb.push({pubkey:eu,isSigner:!0,isWritable:!1}):(eb.push({pubkey:eu,isSigner:!1,isWritable:!1}),ec.forEach(ei=>eb.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:eb,programId:ei,data:eh})}static createApproveInstruction(ei,eo,ea,eu,ec,ed){let ef=rH([rV("instruction"),rY("amount")]),eh=em.Buffer.alloc(ef.span);ef.encode({instruction:4,amount:new no(ed).toBuffer()},eh);let eb=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!1}];return 0===ec.length?eb.push({pubkey:eu,isSigner:!0,isWritable:!1}):(eb.push({pubkey:eu,isSigner:!1,isWritable:!1}),ec.forEach(ei=>eb.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:eb,programId:ei,data:eh})}static createRevokeInstruction(ei,eo,ea,eu){let ec=rH([rV("instruction")]),ed=em.Buffer.alloc(ec.span);ec.encode({instruction:5},ed);let ef=[{pubkey:eo,isSigner:!1,isWritable:!0}];return 0===eu.length?ef.push({pubkey:ea,isSigner:!0,isWritable:!1}):(ef.push({pubkey:ea,isSigner:!1,isWritable:!1}),eu.forEach(ei=>ef.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:ef,programId:ei,data:ed})}static createSetAuthorityInstruction(ei,eo,ea,eu,ec,ed){let ef=rH([rV("instruction"),rV("authorityType"),rV("option"),rK("newAuthority")]),eh=em.Buffer.alloc(1024);{let ei=ef.encode({instruction:6,authorityType:nd[eu],option:null===ea?0:1,newAuthority:ni(ea||new eg.nh(0))},eh);eh=eh.slice(0,ei)}let eb=[{pubkey:eo,isSigner:!1,isWritable:!0}];return 0===ed.length?eb.push({pubkey:ec,isSigner:!0,isWritable:!1}):(eb.push({pubkey:ec,isSigner:!1,isWritable:!1}),ed.forEach(ei=>eb.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:eb,programId:ei,data:eh})}static createMintToInstruction(ei,eo,ea,eu,ec,ed){let ef=rH([rV("instruction"),rY("amount")]),eh=em.Buffer.alloc(ef.span);ef.encode({instruction:7,amount:new no(ed).toBuffer()},eh);let eb=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!0}];return 0===ec.length?eb.push({pubkey:eu,isSigner:!0,isWritable:!1}):(eb.push({pubkey:eu,isSigner:!1,isWritable:!1}),ec.forEach(ei=>eb.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:eb,programId:ei,data:eh})}static createBurnInstruction(ei,eo,ea,eu,ec,ed){let ef=rH([rV("instruction"),rY("amount")]),eh=em.Buffer.alloc(ef.span);ef.encode({instruction:8,amount:new no(ed).toBuffer()},eh);let eb=[{pubkey:ea,isSigner:!1,isWritable:!0},{pubkey:eo,isSigner:!1,isWritable:!0}];return 0===ec.length?eb.push({pubkey:eu,isSigner:!0,isWritable:!1}):(eb.push({pubkey:eu,isSigner:!1,isWritable:!1}),ec.forEach(ei=>eb.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:eb,programId:ei,data:eh})}static createCloseAccountInstruction(ei,eo,ea,eu,ec){let ed=rH([rV("instruction")]),ef=em.Buffer.alloc(ed.span);ed.encode({instruction:9},ef);let eh=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!0}];return 0===ec.length?eh.push({pubkey:eu,isSigner:!0,isWritable:!1}):(eh.push({pubkey:eu,isSigner:!1,isWritable:!1}),ec.forEach(ei=>eh.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:eh,programId:ei,data:ef})}static createFreezeAccountInstruction(ei,eo,ea,eu,ec){let ed=rH([rV("instruction")]),ef=em.Buffer.alloc(ed.span);ed.encode({instruction:10},ef);let eh=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!1}];return 0===ec.length?eh.push({pubkey:eu,isSigner:!0,isWritable:!1}):(eh.push({pubkey:eu,isSigner:!1,isWritable:!1}),ec.forEach(ei=>eh.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:eh,programId:ei,data:ef})}static createThawAccountInstruction(ei,eo,ea,eu,ec){let ed=rH([rV("instruction")]),ef=em.Buffer.alloc(ed.span);ed.encode({instruction:11},ef);let eh=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!1}];return 0===ec.length?eh.push({pubkey:eu,isSigner:!0,isWritable:!1}):(eh.push({pubkey:eu,isSigner:!1,isWritable:!1}),ec.forEach(ei=>eh.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:eh,programId:ei,data:ef})}static createTransferCheckedInstruction(ei,eo,ea,eu,ec,ed,ef,eh){let eb=rH([rV("instruction"),rY("amount"),rV("decimals")]),ew=em.Buffer.alloc(eb.span);eb.encode({instruction:12,amount:new no(ef).toBuffer(),decimals:eh},ew);let e_=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!1},{pubkey:eu,isSigner:!1,isWritable:!0}];return 0===ed.length?e_.push({pubkey:ec,isSigner:!0,isWritable:!1}):(e_.push({pubkey:ec,isSigner:!1,isWritable:!1}),ed.forEach(ei=>e_.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:e_,programId:ei,data:ew})}static createApproveCheckedInstruction(ei,eo,ea,eu,ec,ed,ef,eh){let eb=rH([rV("instruction"),rY("amount"),rV("decimals")]),ew=em.Buffer.alloc(eb.span);eb.encode({instruction:13,amount:new no(ef).toBuffer(),decimals:eh},ew);let e_=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!1},{pubkey:eu,isSigner:!1,isWritable:!1}];return 0===ed.length?e_.push({pubkey:ec,isSigner:!0,isWritable:!1}):(e_.push({pubkey:ec,isSigner:!1,isWritable:!1}),ed.forEach(ei=>e_.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:e_,programId:ei,data:ew})}static createMintToCheckedInstruction(ei,eo,ea,eu,ec,ed,ef){let eh=rH([rV("instruction"),rY("amount"),rV("decimals")]),eb=em.Buffer.alloc(eh.span);eh.encode({instruction:14,amount:new no(ed).toBuffer(),decimals:ef},eb);let ew=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!0}];return 0===ec.length?ew.push({pubkey:eu,isSigner:!0,isWritable:!1}):(ew.push({pubkey:eu,isSigner:!1,isWritable:!1}),ec.forEach(ei=>ew.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:ew,programId:ei,data:eb})}static createBurnCheckedInstruction(ei,eo,ea,eu,ec,ed,ef){let eh=rH([rV("instruction"),rY("amount"),rV("decimals")]),eb=em.Buffer.alloc(eh.span);eh.encode({instruction:15,amount:new no(ed).toBuffer(),decimals:ef},eb);let ew=[{pubkey:ea,isSigner:!1,isWritable:!0},{pubkey:eo,isSigner:!1,isWritable:!0}];return 0===ec.length?ew.push({pubkey:eu,isSigner:!0,isWritable:!1}):(ew.push({pubkey:eu,isSigner:!1,isWritable:!1}),ec.forEach(ei=>ew.push({pubkey:ei.publicKey,isSigner:!0,isWritable:!1}))),new eg.Sl({keys:ew,programId:ei,data:eb})}static createSyncNativeInstruction(ei,eo){let ea=rH([rV("instruction")]),eu=em.Buffer.alloc(ea.span);ea.encode({instruction:17},eu);let ec=[{pubkey:eo,isSigner:!1,isWritable:!0}];return new eg.Sl({keys:ec,programId:ei,data:eu})}static async getAssociatedTokenAddress(ei,eo,ea,eu){let ec=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!ec&&!eg.nh.isOnCurve(eu.toBuffer()))throw Error("Owner cannot sign: ".concat(eu.toString()));return(await eg.nh.findProgramAddress([eu.toBuffer(),eo.toBuffer(),ea.toBuffer()],ei))[0]}static createAssociatedTokenAccountInstruction(ei,eo,ea,eu,ec,ed){let ef=em.Buffer.alloc(0),eh=[{pubkey:ed,isSigner:!0,isWritable:!0},{pubkey:eu,isSigner:!1,isWritable:!0},{pubkey:ec,isSigner:!1,isWritable:!1},{pubkey:ea,isSigner:!1,isWritable:!1},{pubkey:eg.yc.programId,isSigner:!1,isWritable:!1},{pubkey:eo,isSigner:!1,isWritable:!1},{pubkey:eg.ze,isSigner:!1,isWritable:!1}];return new eg.Sl({keys:eh,programId:ei,data:ef})}constructor(ei,eo,ea,ec){eu(this,"connection",void 0),eu(this,"publicKey",void 0),eu(this,"programId",void 0),eu(this,"associatedProgramId",void 0),eu(this,"payer",void 0),Object.assign(this,{connection:ei,publicKey:eo,programId:ea,payer:ec,associatedProgramId:rJ})}}},75808:function(ei,eo,ea){"use strict";let eu;ea.d(eo,{ew:function(){return uT},RG:function(){return uk},nh:function(){return oV},ze:function(){return sC},yc:function(){return sG},YW:function(){return sv},Sl:function(){return sm},Wf:function(){return uQ},BV:function(){return sI}});var ec,ed,ef={};ea.r(ef),ea.d(ef,{bitGet:function(){return tB},bitLen:function(){return tF},bitMask:function(){return tG},bitSet:function(){return tU},bytesToHex:function(){return tA},bytesToNumberBE:function(){return tO},bytesToNumberLE:function(){return tI},concatBytes:function(){return tj},createHmacDrbg:function(){return tH},ensureBytes:function(){return tM},equalBytes:function(){return tR},hexToBytes:function(){return tC},hexToNumber:function(){return tk},numberToBytesBE:function(){return tP},numberToBytesLE:function(){return tD},numberToHexUnpadded:function(){return tT},numberToVarBytesBE:function(){return tN},utf8ToBytes:function(){return tL},validateObject:function(){return tK}});var eh=ea(48764);function eg(ei){if(!Number.isSafeInteger(ei)||ei<0)throw Error(`Wrong positive integer: ${ei}`)}function em(ei,...eo){if(!(ei instanceof Uint8Array))throw Error("Expected Uint8Array");if(eo.length>0&&!eo.includes(ei.length))throw Error(`Expected Uint8Array of length ${eo}, not of length=${ei.length}`)}function eb(ei){if("function"!=typeof ei||"function"!=typeof ei.create)throw Error("Hash should be wrapped by utils.wrapConstructor");eg(ei.outputLen),eg(ei.blockLen)}function ew(ei,eo=!0){if(ei.destroyed)throw Error("Hash instance has been destroyed");if(eo&&ei.finished)throw Error("Hash#digest() has already been called")}function e_(ei,eo){em(ei);let ea=eo.outputLen;if(ei.lengthei instanceof Uint8Array,eA=ei=>new Uint32Array(ei.buffer,ei.byteOffset,Math.floor(ei.byteLength/4)),eT=ei=>new DataView(ei.buffer,ei.byteOffset,ei.byteLength),ek=(ei,eo)=>ei<<32-eo|ei>>>eo,eC=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!eC)throw Error("Non little-endian hardware is not supported");function eO(ei){if("string"!=typeof ei)throw Error(`utf8ToBytes expected string, got ${typeof ei}`);return new Uint8Array(new TextEncoder().encode(ei))}function eI(ei){if("string"==typeof ei&&(ei=eO(ei)),!eE(ei))throw Error(`expected Uint8Array, got ${typeof ei}`);return ei}function eP(...ei){let eo=new Uint8Array(ei.reduce((ei,eo)=>ei+eo.length,0)),ea=0;return ei.forEach(ei=>{if(!eE(ei))throw Error("Uint8Array expected");eo.set(ei,ea),ea+=ei.length}),eo}Array.from({length:256},(ei,eo)=>eo.toString(16).padStart(2,"0"));class eD{clone(){return this._cloneInto()}}function eN(ei){let eo=eo=>ei().update(eI(eo)).digest(),ea=ei();return eo.outputLen=ea.outputLen,eo.blockLen=ea.blockLen,eo.create=()=>ei(),eo}function eM(ei=32){if(eS&&"function"==typeof eS.getRandomValues)return eS.getRandomValues(new Uint8Array(ei));throw Error("crypto.getRandomValues must be defined")}function ej(ei,eo,ea,eu){if("function"==typeof ei.setBigUint64)return ei.setBigUint64(eo,ea,eu);let ec=BigInt(32),ed=BigInt(4294967295),ef=Number(ea>>ec&ed),eh=Number(ea&ed),eg=eu?4:0,em=eu?0:4;ei.setUint32(eo+eg,ef,eu),ei.setUint32(eo+em,eh,eu)}class eR extends eD{constructor(ei,eo,ea,eu){super(),this.blockLen=ei,this.outputLen=eo,this.padOffset=ea,this.isLE=eu,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(ei),this.view=eT(this.buffer)}update(ei){ew(this);let{view:eo,buffer:ea,blockLen:eu}=this;ei=eI(ei);let ec=ei.length;for(let ed=0;edeu-ed&&(this.process(ea,0),ed=0);for(let ei=ed;eiem.length)throw Error("_sha2: outputLen bigger than state");for(let ei=0;ei>eF&eL)}:{h:0|Number(ei>>eF&eL),l:0|Number(ei&eL)}}function eU(ei,eo=!1){let ea=new Uint32Array(ei.length),eu=new Uint32Array(ei.length);for(let ec=0;ecBigInt(ei>>>0)<>>0),eV=(ei,eo,ea)=>ei>>>ea,eH=(ei,eo,ea)=>ei<<32-ea|eo>>>ea,eW=(ei,eo,ea)=>ei>>>ea|eo<<32-ea,eK=(ei,eo,ea)=>ei<<32-ea|eo>>>ea,eY=(ei,eo,ea)=>ei<<64-ea|eo>>>ea-32,eZ=(ei,eo,ea)=>ei>>>ea-32|eo<<64-ea,e$=(ei,eo)=>eo,eJ=(ei,eo)=>ei,eQ=(ei,eo,ea)=>ei<>>32-ea,eX=(ei,eo,ea)=>eo<>>32-ea,e0=(ei,eo,ea)=>eo<>>64-ea,e3=(ei,eo,ea)=>ei<>>64-ea;function e5(ei,eo,ea,eu){let ec=(eo>>>0)+(eu>>>0);return{h:ei+ea+(ec/4294967296|0)|0,l:0|ec}}let e4=(ei,eo,ea)=>(ei>>>0)+(eo>>>0)+(ea>>>0),e6=(ei,eo,ea,eu)=>eo+ea+eu+(ei/4294967296|0)|0,e8=(ei,eo,ea,eu)=>(ei>>>0)+(eo>>>0)+(ea>>>0)+(eu>>>0),e9=(ei,eo,ea,eu,ec)=>eo+ea+eu+ec+(ei/4294967296|0)|0,e7=(ei,eo,ea,eu,ec)=>(ei>>>0)+(eo>>>0)+(ea>>>0)+(eu>>>0)+(ec>>>0),ta=(ei,eo,ea,eu,ec,ed)=>eo+ea+eu+ec+ed+(ei/4294967296|0)|0,tu={fromBig:eB,split:eU,toBig:eG,shrSH:eV,shrSL:eH,rotrSH:eW,rotrSL:eK,rotrBH:eY,rotrBL:eZ,rotr32H:e$,rotr32L:eJ,rotlSH:eQ,rotlSL:eX,rotlBH:e0,rotlBL:e3,add:e5,add3L:e4,add3H:e6,add4L:e8,add4H:e9,add5H:ta,add5L:e7};var tc=tu;let[td,tf]=tc.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(ei=>BigInt(ei))),tp=new Uint32Array(80),tg=new Uint32Array(80);class tm extends eR{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:ei,Al:eo,Bh:ea,Bl:eu,Ch:ec,Cl:ed,Dh:ef,Dl:eh,Eh:eg,El:em,Fh:eb,Fl:ew,Gh:e_,Gl:eS,Hh:eE,Hl:eA}=this;return[ei,eo,ea,eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA]}set(ei,eo,ea,eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA){this.Ah=0|ei,this.Al=0|eo,this.Bh=0|ea,this.Bl=0|eu,this.Ch=0|ec,this.Cl=0|ed,this.Dh=0|ef,this.Dl=0|eh,this.Eh=0|eg,this.El=0|em,this.Fh=0|eb,this.Fl=0|ew,this.Gh=0|e_,this.Gl=0|eS,this.Hh=0|eE,this.Hl=0|eA}process(ei,eo){for(let ea=0;ea<16;ea++,eo+=4)tp[ea]=ei.getUint32(eo),tg[ea]=ei.getUint32(eo+=4);for(let ei=16;ei<80;ei++){let eo=0|tp[ei-15],ea=0|tg[ei-15],eu=tc.rotrSH(eo,ea,1)^tc.rotrSH(eo,ea,8)^tc.shrSH(eo,ea,7),ec=tc.rotrSL(eo,ea,1)^tc.rotrSL(eo,ea,8)^tc.shrSL(eo,ea,7),ed=0|tp[ei-2],ef=0|tg[ei-2],eh=tc.rotrSH(ed,ef,19)^tc.rotrBH(ed,ef,61)^tc.shrSH(ed,ef,6),eg=tc.rotrSL(ed,ef,19)^tc.rotrBL(ed,ef,61)^tc.shrSL(ed,ef,6),em=tc.add4L(ec,eg,tg[ei-7],tg[ei-16]),eb=tc.add4H(em,eu,eh,tp[ei-7],tp[ei-16]);tp[ei]=0|eb,tg[ei]=0|em}let{Ah:ea,Al:eu,Bh:ec,Bl:ed,Ch:ef,Cl:eh,Dh:eg,Dl:em,Eh:eb,El:ew,Fh:e_,Fl:eS,Gh:eE,Gl:eA,Hh:eT,Hl:ek}=this;for(let ei=0;ei<80;ei++){let eo=tc.rotrSH(eb,ew,14)^tc.rotrSH(eb,ew,18)^tc.rotrBH(eb,ew,41),eC=tc.rotrSL(eb,ew,14)^tc.rotrSL(eb,ew,18)^tc.rotrBL(eb,ew,41),eO=eb&e_^~eb&eE,eI=ew&eS^~ew&eA,eP=tc.add5L(ek,eC,eI,tf[ei],tg[ei]),eD=tc.add5H(eP,eT,eo,eO,td[ei],tp[ei]),eN=0|eP,eM=tc.rotrSH(ea,eu,28)^tc.rotrBH(ea,eu,34)^tc.rotrBH(ea,eu,39),ej=tc.rotrSL(ea,eu,28)^tc.rotrBL(ea,eu,34)^tc.rotrBL(ea,eu,39),eR=ea&ec^ea&ef^ec&ef,eL=eu&ed^eu&eh^ed&eh;eT=0|eE,ek=0|eA,eE=0|e_,eA=0|eS,e_=0|eb,eS=0|ew,({h:eb,l:ew}=tc.add(0|eg,0|em,0|eD,0|eN)),eg=0|ef,em=0|eh,ef=0|ec,eh=0|ed,ec=0|ea,ed=0|eu;let eF=tc.add3L(eN,ej,eL);ea=tc.add3H(eF,eD,eM,eR),eu=0|eF}({h:ea,l:eu}=tc.add(0|this.Ah,0|this.Al,0|ea,0|eu)),({h:ec,l:ed}=tc.add(0|this.Bh,0|this.Bl,0|ec,0|ed)),({h:ef,l:eh}=tc.add(0|this.Ch,0|this.Cl,0|ef,0|eh)),({h:eg,l:em}=tc.add(0|this.Dh,0|this.Dl,0|eg,0|em)),({h:eb,l:ew}=tc.add(0|this.Eh,0|this.El,0|eb,0|ew)),({h:e_,l:eS}=tc.add(0|this.Fh,0|this.Fl,0|e_,0|eS)),({h:eE,l:eA}=tc.add(0|this.Gh,0|this.Gl,0|eE,0|eA)),({h:eT,l:ek}=tc.add(0|this.Hh,0|this.Hl,0|eT,0|ek)),this.set(ea,eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT,ek)}roundClean(){tp.fill(0),tg.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}let tv=eN(()=>new tm),tb=BigInt(0),tw=BigInt(1),t_=BigInt(2),tS=ei=>ei instanceof Uint8Array,tE=Array.from({length:256},(ei,eo)=>eo.toString(16).padStart(2,"0"));function tA(ei){if(!tS(ei))throw Error("Uint8Array expected");let eo="";for(let ea=0;eaei+eo.length,0)),ea=0;return ei.forEach(ei=>{if(!tS(ei))throw Error("Uint8Array expected");eo.set(ei,ea),ea+=ei.length}),eo}function tR(ei,eo){if(ei.length!==eo.length)return!1;for(let ea=0;eatb;ei>>=tw,eo+=1);return eo}function tB(ei,eo){return ei>>BigInt(eo)&tw}let tU=(ei,eo,ea)=>ei|(ea?tw:tb)<(t_<new Uint8Array(ei),tq=ei=>Uint8Array.from(ei);function tH(ei,eo,ea){if("number"!=typeof ei||ei<2)throw Error("hashLen must be a number");if("number"!=typeof eo||eo<2)throw Error("qByteLen must be a number");if("function"!=typeof ea)throw Error("hmacFn must be a function");let eu=tV(ei),ec=tV(ei),ed=0,ef=()=>{eu.fill(1),ec.fill(0),ed=0},eh=(...ei)=>ea(ec,eu,...ei),eg=(ei=tV())=>{ec=eh(tq([0]),ei),eu=eh(),0!==ei.length&&(ec=eh(tq([1]),ei),eu=eh())},em=()=>{if(ed++>=1e3)throw Error("drbg: tried 1000 values");let ei=0,ea=[];for(;ei{let ea;for(ef(),eg(ei);!(ea=eo(em()));)eg();return ef(),ea};return eb}let tW={bigint:ei=>"bigint"==typeof ei,function:ei=>"function"==typeof ei,boolean:ei=>"boolean"==typeof ei,string:ei=>"string"==typeof ei,stringOrUint8Array:ei=>"string"==typeof ei||ei instanceof Uint8Array,isSafeInteger:ei=>Number.isSafeInteger(ei),array:ei=>Array.isArray(ei),field:(ei,eo)=>eo.Fp.isValid(ei),hash:ei=>"function"==typeof ei&&Number.isSafeInteger(ei.outputLen)};function tK(ei,eo,ea={}){let eu=(eo,ea,eu)=>{let ec=tW[ea];if("function"!=typeof ec)throw Error(`Invalid validator "${ea}", expected function`);let ed=ei[eo];if((!eu||void 0!==ed)&&!ec(ed,ei))throw Error(`Invalid param ${String(eo)}=${ed} (${typeof ed}), expected ${ea}`)};for(let[ei,ea]of Object.entries(eo))eu(ei,ea,!1);for(let[ei,eo]of Object.entries(ea))eu(ei,eo,!0);return ei}/*!noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com)*/let tY=BigInt(0),tZ=BigInt(1),t$=BigInt(2),tJ=BigInt(3),tQ=BigInt(4),tX=BigInt(5),ra=BigInt(8);function ru(ei,eo){let ea=ei%eo;return ea>=tY?ea:eo+ea}function rc(ei,eo,ea){if(ea<=tY||eo 0");if(ea===tZ)return tY;let eu=tZ;for(;eo>tY;)eo&tZ&&(eu=eu*ei%ea),ei=ei*ei%ea,eo>>=tZ;return eu}function rf(ei,eo,ea){let eu=ei;for(;eo-->tY;)eu*=eu,eu%=ea;return eu}function rh(ei,eo){if(ei===tY||eo<=tY)throw Error(`invert: expected positive integers, got n=${ei} mod=${eo}`);let ea=ru(ei,eo),eu=eo,ec=tY,ed=tZ,ef=tZ,eh=tY;for(;ea!==tY;){let ei=eu/ea,eo=eu%ea,eg=ec-ef*ei,em=ed-eh*ei;eu=ea,ea=eo,ec=ef,ed=eh,ef=eg,eh=em}let eg=eu;if(eg!==tZ)throw Error("invert: does not exist");return ru(ec,eo)}function rp(ei){let eo,ea,eu;let ec=(ei-tZ)/t$;for(eo=ei-tZ,ea=0;eo%t$===tY;eo/=t$,ea++);for(eu=t$;eu(ru(ei,eo)&tZ)===tZ,r_=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function rS(ei){let eo={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},ea=r_.reduce((ei,eo)=>(ei[eo]="function",ei),eo);return tK(ei,ea)}function rE(ei,eo,ea){if(ea 0");if(ea===tY)return ei.ONE;if(ea===tZ)return eo;let eu=ei.ONE,ec=eo;for(;ea>tY;)ea&tZ&&(eu=ei.mul(eu,ec)),ec=ei.sqr(ec),ea>>=tZ;return eu}function rA(ei,eo){let ea=Array(eo.length),eu=eo.reduce((eo,eu,ec)=>ei.is0(eu)?eo:(ea[ec]=eo,ei.mul(eo,eu)),ei.ONE),ec=ei.inv(eu);return eo.reduceRight((eo,eu,ec)=>ei.is0(eu)?eo:(ea[ec]=ei.mul(eo,ea[ec]),ei.mul(eo,eu)),ec),ea}function rT(ei,eo){let ea=void 0!==eo?eo:ei.toString(2).length,eu=Math.ceil(ea/8);return{nBitLength:ea,nByteLength:eu}}function rk(ei,eo,ea=!1,eu={}){if(ei<=tY)throw Error(`Expected Field ORDER > 0, got ${ei}`);let{nBitLength:ec,nByteLength:ed}=rT(ei,eo);if(ed>2048)throw Error("Field lengths over 2048 bytes are not supported");let ef=ry(ei),eh=Object.freeze({ORDER:ei,BITS:ec,BYTES:ed,MASK:tG(ec),ZERO:tY,ONE:tZ,create:eo=>ru(eo,ei),isValid:eo=>{if("bigint"!=typeof eo)throw Error(`Invalid field element: expected bigint, got ${typeof eo}`);return tY<=eo&&eoei===tY,isOdd:ei=>(ei&tZ)===tZ,neg:eo=>ru(-eo,ei),eql:(ei,eo)=>ei===eo,sqr:eo=>ru(eo*eo,ei),add:(eo,ea)=>ru(eo+ea,ei),sub:(eo,ea)=>ru(eo-ea,ei),mul:(eo,ea)=>ru(eo*ea,ei),pow:(ei,eo)=>rE(eh,ei,eo),div:(eo,ea)=>ru(eo*rh(ea,ei),ei),sqrN:ei=>ei*ei,addN:(ei,eo)=>ei+eo,subN:(ei,eo)=>ei-eo,mulN:(ei,eo)=>ei*eo,inv:eo=>rh(eo,ei),sqrt:eu.sqrt||(ei=>ef(eh,ei)),invertBatch:ei=>rA(eh,ei),cmov:(ei,eo,ea)=>ea?eo:ei,toBytes:ei=>ea?tD(ei,ed):tP(ei,ed),fromBytes:ei=>{if(ei.length!==ed)throw Error(`Fp.fromBytes: expected ${ed}, got ${ei.length}`);return ea?tI(ei):tO(ei)}});return Object.freeze(eh)}function rC(ei,eo){if(!ei.isOdd)throw Error("Field doesn't have isOdd");let ea=ei.sqrt(eo);return ei.isOdd(ea)?ei.neg(ea):ea}function rO(ei){if("bigint"!=typeof ei)throw Error("field order must be bigint");let eo=ei.toString(2).length;return Math.ceil(eo/8)}function rI(ei){let eo=rO(ei);return eo+Math.ceil(eo/2)}function rP(ei,eo,ea=!1){let eu=ei.length,ec=rO(eo),ed=rI(eo);if(eu<16||eu1024)throw Error(`expected ${ed}-1024 bytes of input, got ${eu}`);let ef=ea?tO(ei):tI(ei),eh=ru(ef,eo-tZ)+tZ;return ea?tD(eh,ec):tP(eh,ec)}/*!noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com)*/let rD=BigInt(0),rN=BigInt(1);function rM(ei,eo){let ea=(ei,eo)=>{let ea=eo.negate();return ei?ea:eo},eu=ei=>{let ea=Math.ceil(eo/ei)+1,eu=2**(ei-1);return{windows:ea,windowSize:eu}};return{constTimeNegate:ea,unsafeLadder(eo,ea){let eu=ei.ZERO,ec=eo;for(;ea>rD;)ea&rN&&(eu=eu.add(ec)),ec=ec.double(),ea>>=rN;return eu},precomputeWindow(ei,eo){let{windows:ea,windowSize:ec}=eu(eo),ed=[],ef=ei,eh=ef;for(let ei=0;ei>=e_,eu>eh&&(eu-=ew,ed+=rN);let ef=eo,eS=eo+Math.abs(eu)-1,eE=ei%2!=0,eA=eu<0;0===eu?em=em.add(ea(eE,ec[ef])):eg=eg.add(ea(eA,ec[eS]))}return{p:eg,f:em}},wNAFCached(ei,eo,ea,eu){let ec=ei._WINDOW_SIZE||1,ed=eo.get(ei);return ed||(ed=this.precomputeWindow(ei,ec),1!==ec&&eo.set(ei,eu(ed))),this.wNAF(ec,ed,ea)}}}function rj(ei){return rS(ei.Fp),tK(ei,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...rT(ei.n,ei.nBitLength),...ei,p:ei.Fp.ORDER})}/*!noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com)*/let rR=BigInt(0),rL=BigInt(1),rF=BigInt(2),rB=BigInt(8),rU={zip215:!0};function rz(ei){let eo=rj(ei);return tK(ei,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...eo})}function rG(ei){let eo=rz(ei),{Fp:ea,n:eu,prehash:ec,hash:ed,randomBytes:ef,nByteLength:eh,h:eg}=eo,em=rF<{try{return{isValid:!0,value:ea.sqrt(ei*ea.inv(eo))}}catch(ei){return{isValid:!1,value:rR}}}),e_=eo.adjustScalarBytes||(ei=>ei),eS=eo.domain||((ei,eo,ea)=>{if(eo.length||ea)throw Error("Contexts/pre-hash are not supported");return ei}),eE=ei=>"bigint"==typeof ei&&rReE(ei)&&eE(eo)&&eiei===rR||eA(ei,em);function ek(ei,eo){if(eA(ei,eo))return ei;throw Error(`Expected valid scalar < ${eo}, got ${typeof ei} ${ei}`)}function eC(ei){return ei===rR?ei:ek(ei,eu)}let eO=new Map;function eI(ei){if(!(ei instanceof eP))throw Error("ExtendedPoint expected")}class eP{constructor(ei,eo,ea,eu){if(this.ex=ei,this.ey=eo,this.ez=ea,this.et=eu,!eT(ei))throw Error("x required");if(!eT(eo))throw Error("y required");if(!eT(ea))throw Error("z required");if(!eT(eu))throw Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(ei){if(ei instanceof eP)throw Error("extended point not allowed");let{x:eo,y:ea}=ei||{};if(!eT(eo)||!eT(ea))throw Error("invalid affine point");return new eP(eo,ea,rL,eb(eo*ea))}static normalizeZ(ei){let eo=ea.invertBatch(ei.map(ei=>ei.ez));return ei.map((ei,ea)=>ei.toAffine(eo[ea])).map(eP.fromAffine)}_setWindowSize(ei){this._WINDOW_SIZE=ei,eO.delete(this)}assertValidity(){let{a:ei,d:ea}=eo;if(this.is0())throw Error("bad point: ZERO");let{ex:eu,ey:ec,ez:ed,et:ef}=this,eh=eb(eu*eu),eg=eb(ec*ec),em=eb(ed*ed),ew=eb(em*em),e_=eb(eh*ei),eS=eb(em*eb(e_+eg)),eE=eb(ew+eb(ea*eb(eh*eg)));if(eS!==eE)throw Error("bad point: equation left != right (1)");let eA=eb(eu*ec),eT=eb(ed*ef);if(eA!==eT)throw Error("bad point: equation left != right (2)")}equals(ei){eI(ei);let{ex:eo,ey:ea,ez:eu}=this,{ex:ec,ey:ed,ez:ef}=ei,eh=eb(eo*ef),eg=eb(ec*eu),em=eb(ea*ef),ew=eb(ed*eu);return eh===eg&&em===ew}is0(){return this.equals(eP.ZERO)}negate(){return new eP(eb(-this.ex),this.ey,this.ez,eb(-this.et))}double(){let{a:ei}=eo,{ex:ea,ey:eu,ez:ec}=this,ed=eb(ea*ea),ef=eb(eu*eu),eh=eb(rF*eb(ec*ec)),eg=eb(ei*ed),em=ea+eu,ew=eb(eb(em*em)-ed-ef),e_=eg+ef,eS=e_-eh,eE=eg-ef,eA=eb(ew*eS),eT=eb(e_*eE),ek=eb(ew*eE),eC=eb(eS*e_);return new eP(eA,eT,eC,ek)}add(ei){eI(ei);let{a:ea,d:eu}=eo,{ex:ec,ey:ed,ez:ef,et:eh}=this,{ex:eg,ey:em,ez:ew,et:e_}=ei;if(ea===BigInt(-1)){let ei=eb((ed-ec)*(em+eg)),eo=eb((ed+ec)*(em-eg)),ea=eb(eo-ei);if(ea===rR)return this.double();let eu=eb(ef*rF*e_),eS=eb(eh*rF*ew),eE=eS+eu,eA=eo+ei,eT=eS-eu,ek=eb(eE*ea),eC=eb(eA*eT),eO=eb(eE*eT),eI=eb(ea*eA);return new eP(ek,eC,eI,eO)}let eS=eb(ec*eg),eE=eb(ed*em),eA=eb(eh*eu*e_),eT=eb(ef*ew),ek=eb((ec+ed)*(eg+em)-eS-eE),eC=eT-eA,eO=eT+eA,eD=eb(eE-ea*eS),eN=eb(ek*eC),eM=eb(eO*eD),ej=eb(ek*eD),eR=eb(eC*eO);return new eP(eN,eM,eR,ej)}subtract(ei){return this.add(ei.negate())}wNAF(ei){return eM.wNAFCached(this,eO,ei,eP.normalizeZ)}multiply(ei){let{p:eo,f:ea}=this.wNAF(ek(ei,eu));return eP.normalizeZ([eo,ea])[0]}multiplyUnsafe(ei){let eo=eC(ei);return eo===rR?eN:this.equals(eN)||eo===rL?this:this.equals(eD)?this.wNAF(eo).p:eM.unsafeLadder(this,eo)}isSmallOrder(){return this.multiplyUnsafe(eg).is0()}isTorsionFree(){return eM.unsafeLadder(this,eu).is0()}toAffine(ei){let{ex:eo,ey:eu,ez:ec}=this,ed=this.is0();null==ei&&(ei=ed?rB:ea.inv(ec));let ef=eb(eo*ei),eh=eb(eu*ei),eg=eb(ec*ei);if(ed)return{x:rR,y:rL};if(eg!==rL)throw Error("invZ was invalid");return{x:ef,y:eh}}clearCofactor(){let{h:ei}=eo;return ei===rL?this:this.multiplyUnsafe(ei)}static fromHex(ei,eu=!1){let{d:ec,a:ed}=eo,ef=ea.BYTES;ei=tM("pointHex",ei,ef);let eh=ei.slice(),eg=ei[ef-1];eh[ef-1]=-129⪚let e_=tI(eh);e_===rR||(eu?ek(e_,em):ek(e_,ea.ORDER));let eS=eb(e_*e_),eE=eb(eS-rL),eA=eb(ec*eS-ed),{isValid:eT,value:eC}=ew(eE,eA);if(!eT)throw Error("Point.fromHex: invalid y coordinate");let eO=(eC&rL)===rL,eI=(128&eg)!=0;if(!eu&&eC===rR&&eI)throw Error("Point.fromHex: x=0 and x_0=1");return eI!==eO&&(eC=eb(-eC)),eP.fromAffine({x:eC,y:e_})}static fromPrivateKey(ei){return eL(ei).point}toRawBytes(){let{x:ei,y:eo}=this.toAffine(),eu=tD(eo,ea.BYTES);return eu[eu.length-1]|=ei&rL?128:0,eu}toHex(){return tA(this.toRawBytes())}}eP.BASE=new eP(eo.Gx,eo.Gy,rL,eb(eo.Gx*eo.Gy)),eP.ZERO=new eP(rR,rL,rL,rR);let{BASE:eD,ZERO:eN}=eP,eM=rM(eP,8*eh);function ej(ei){return ru(ei,eu)}function eR(ei){return ej(tI(ei))}function eL(ei){let eo=eh;ei=tM("private key",ei,eo);let ea=tM("hashed private key",ed(ei),2*eo),eu=e_(ea.slice(0,eo)),ec=ea.slice(eo,2*eo),ef=eR(eu),eg=eD.multiply(ef),em=eg.toRawBytes();return{head:eu,prefix:ec,scalar:ef,point:eg,pointBytes:em}}function eF(ei){return eL(ei).pointBytes}function eB(ei=new Uint8Array,...eo){let ea=tj(...eo);return eR(ed(eS(ea,tM("context",ei),!!ec)))}function eU(ei,eo,eu={}){ei=tM("message",ei),ec&&(ei=ec(ei));let{prefix:ed,scalar:ef,pointBytes:eg}=eL(eo),em=eB(eu.context,ed,ei),eb=eD.multiply(em).toRawBytes(),ew=eB(eu.context,eb,eg,ei),e_=ej(em+ew*ef);eC(e_);let eS=tj(eb,tD(e_,ea.BYTES));return tM("result",eS,2*eh)}let eG=rU;function eV(ei,eo,eu,ed=eG){let ef,eh,eg;let{context:em,zip215:eb}=ed,ew=ea.BYTES;ei=tM("signature",ei,2*ew),eo=tM("message",eo),ec&&(eo=ec(eo));let e_=tI(ei.slice(ew,2*ew));try{ef=eP.fromHex(eu,eb),eh=eP.fromHex(ei.slice(0,ew),eb),eg=eD.multiplyUnsafe(e_)}catch(ei){return!1}if(!eb&&ef.isSmallOrder())return!1;let eS=eB(em,eh.toRawBytes(),ef.toRawBytes(),eo),eE=eh.add(ef.multiplyUnsafe(eS));return eE.subtract(eg).clearCofactor().equals(eP.ZERO)}eD._setWindowSize(8);let eH={getExtendedPublicKey:eL,randomPrivateKey:()=>ef(ea.BYTES),precompute:(ei=8,eo=eP.BASE)=>(eo._setWindowSize(ei),eo.multiply(BigInt(3)),eo)};return{CURVE:eo,getPublicKey:eF,sign:eU,verify:eV,ExtendedPoint:eP,utils:eH}}/*!noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com)*/let rV=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),rq=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),rH=BigInt(0),rW=BigInt(1),rK=BigInt(2),rY=BigInt(5),rZ=BigInt(10),r$=BigInt(20),rJ=BigInt(40),rQ=BigInt(80);function rX(ei){let eo=rV,ea=ei*ei%eo,eu=ea*ei%eo,ec=rf(eu,rK,eo)*eu%eo,ed=rf(ec,rW,eo)*ei%eo,ef=rf(ed,rY,eo)*ed%eo,eh=rf(ef,rZ,eo)*ef%eo,eg=rf(eh,r$,eo)*eh%eo,em=rf(eg,rJ,eo)*eg%eo,eb=rf(em,rQ,eo)*em%eo,ew=rf(eb,rQ,eo)*em%eo,e_=rf(ew,rZ,eo)*ef%eo,eS=rf(e_,rK,eo)*ei%eo;return{pow_p_5_8:eS,b2:eu}}function ni(ei){return ei[0]&=248,ei[31]&=127,ei[31]|=64,ei}function no(ei,eo){let ea=rV,eu=ru(eo*eo*eo,ea),ec=ru(eu*eu*eo,ea),ed=rX(ei*ec).pow_p_5_8,ef=ru(ei*eu*ed,ea),eh=ru(eo*ef*ef,ea),eg=ef,em=ru(ef*rq,ea),eb=eh===ei,ew=eh===ru(-ei,ea),e_=eh===ru(-ei*rq,ea);return eb&&(ef=eg),(ew||e_)&&(ef=em),rw(ef,ea)&&(ef=ru(-ef,ea)),{isValid:eb||ew,value:ef}}let nu=rk(rV,void 0,!0),nd={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:nu,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:tv,randomBytes:eM,adjustScalarBytes:ni,uvRatio:no},nf=rG(nd);function nh(ei,eo,ea){if(eo.length>255)throw Error("Context is too big");return eP(eO("SigEd25519 no Ed25519 collisions"),new Uint8Array([ea?1:0,eo.length]),eo,ei)}rG({...nd,domain:nh}),rG({...nd,domain:nh,prehash:tv});let np=(nu.ORDER+BigInt(3))/BigInt(8);function ng(ei){if(!(ei instanceof nC))throw Error("RistrettoPoint expected")}nu.pow(rK,np),nu.sqrt(nu.neg(nu.ONE)),nu.ORDER,BigInt(5),BigInt(8),BigInt(486662),rC(nu,nu.neg(BigInt(486664)));let ny=null,nw=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),n_=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),nS=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),nE=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),nx=ei=>no(rW,ei),nA=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),nT=ei=>nf.CURVE.Fp.create(bytesToNumberLE(ei)&nA);function nk(ei){let{d:eo}=nf.CURVE,ea=nf.CURVE.Fp.ORDER,eu=nf.CURVE.Fp.create,ec=eu(ny*ei*ei),ed=eu((ec+rW)*nS),ef=BigInt(-1),eh=eu((ef-eo*ec)*eu(ec+eo)),{isValid:eg,value:em}=no(ed,eh),eb=eu(em*ei);isNegativeLE(eb,ea)||(eb=eu(-eb)),eg||(em=eb),eg||(ef=ec);let ew=eu(ef*(ec-rW)*nE-eh),e_=em*em,eS=eu((em+em)*eh),eE=eu(ew*nw),eA=eu(rW-e_),eT=eu(rW+e_);return new nf.ExtendedPoint(eu(eS*eT),eu(eA*eE),eu(eE*eT),eu(eS*eA))}class nC{constructor(ei){this.ep=ei}static fromAffine(ei){return new nC(nf.ExtendedPoint.fromAffine(ei))}static hashToCurve(ei){ei=ensureBytes("ristrettoHash",ei,64);let eo=nT(ei.slice(0,32)),ea=nk(eo),eu=nT(ei.slice(32,64)),ec=nk(eu);return new nC(ea.add(ec))}static fromHex(ei){ei=ensureBytes("ristrettoHex",ei,32);let{a:eo,d:ea}=nf.CURVE,eu=nf.CURVE.Fp.ORDER,ec=nf.CURVE.Fp.create,ed="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",ef=nT(ei);if(!equalBytes(numberToBytesLE(ef,32),ei)||isNegativeLE(ef,eu))throw Error(ed);let eh=ec(ef*ef),eg=ec(rW+eo*eh),em=ec(rW-eo*eh),eb=ec(eg*eg),ew=ec(em*em),e_=ec(eo*ea*eb-ew),{isValid:eS,value:eE}=nx(ec(e_*ew)),eA=ec(eE*em),eT=ec(eE*eA*e_),ek=ec((ef+ef)*eA);isNegativeLE(ek,eu)&&(ek=ec(-ek));let eC=ec(eg*eT),eO=ec(ek*eC);if(!eS||isNegativeLE(eO,eu)||eC===rH)throw Error(ed);return new nC(new nf.ExtendedPoint(ek,eC,rW,eO))}toRawBytes(){let ei,{ex:eo,ey:ea,ez:eu,et:ec}=this.ep,ed=nf.CURVE.Fp.ORDER,ef=nf.CURVE.Fp.create,eh=ef(ef(eu+ea)*ef(eu-ea)),eg=ef(eo*ea),em=ef(eg*eg),{value:eb}=nx(ef(eh*em)),ew=ef(eb*eh),e_=ef(eb*eg),eS=ef(ew*e_*ec);if(isNegativeLE(ec*eS,ed)){let eu=ef(ea*ny),ec=ef(eo*ny);eo=eu,ea=ec,ei=ef(ew*n_)}else ei=e_;isNegativeLE(eo*eS,ed)&&(ea=ef(-ea));let eE=ef((eu-ea)*ei);return isNegativeLE(eE,ed)&&(eE=ef(-eE)),numberToBytesLE(eE,32)}toHex(){return bytesToHex(this.toRawBytes())}toString(){return this.toHex()}equals(ei){ng(ei);let{ex:eo,ey:ea}=this.ep,{ex:eu,ey:ec}=ei.ep,ed=nf.CURVE.Fp.create,ef=ed(eo*ec)===ed(ea*eu),eh=ed(ea*ec)===ed(eo*eu);return ef||eh}add(ei){return ng(ei),new nC(this.ep.add(ei.ep))}subtract(ei){return ng(ei),new nC(this.ep.subtract(ei.ep))}multiply(ei){return new nC(this.ep.multiply(ei))}multiplyUnsafe(ei){return new nC(this.ep.multiplyUnsafe(ei))}}var nO=ea(13550),nI=ea.n(nO),nP=ea(18261),nD=ea.n(nP);let nN=(ei,eo,ea)=>ei&eo^~ei&ea,nM=(ei,eo,ea)=>ei&eo^ei&ea^eo&ea,nj=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),nR=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),nL=new Uint32Array(64);class nF extends eR{constructor(){super(64,32,8,!1),this.A=0|nR[0],this.B=0|nR[1],this.C=0|nR[2],this.D=0|nR[3],this.E=0|nR[4],this.F=0|nR[5],this.G=0|nR[6],this.H=0|nR[7]}get(){let{A:ei,B:eo,C:ea,D:eu,E:ec,F:ed,G:ef,H:eh}=this;return[ei,eo,ea,eu,ec,ed,ef,eh]}set(ei,eo,ea,eu,ec,ed,ef,eh){this.A=0|ei,this.B=0|eo,this.C=0|ea,this.D=0|eu,this.E=0|ec,this.F=0|ed,this.G=0|ef,this.H=0|eh}process(ei,eo){for(let ea=0;ea<16;ea++,eo+=4)nL[ea]=ei.getUint32(eo,!1);for(let ei=16;ei<64;ei++){let eo=nL[ei-15],ea=nL[ei-2],eu=ek(eo,7)^ek(eo,18)^eo>>>3,ec=ek(ea,17)^ek(ea,19)^ea>>>10;nL[ei]=ec+nL[ei-7]+eu+nL[ei-16]|0}let{A:ea,B:eu,C:ec,D:ed,E:ef,F:eh,G:eg,H:em}=this;for(let ei=0;ei<64;ei++){let eo=ek(ef,6)^ek(ef,11)^ek(ef,25),eb=em+eo+nN(ef,eh,eg)+nj[ei]+nL[ei]|0,ew=ek(ea,2)^ek(ea,13)^ek(ea,22),e_=ew+nM(ea,eu,ec)|0;em=eg,eg=eh,eh=ef,ef=ed+eb|0,ed=ec,ec=eu,eu=ea,ea=eb+e_|0}ea=ea+this.A|0,eu=eu+this.B|0,ec=ec+this.C|0,ed=ed+this.D|0,ef=ef+this.E|0,eh=eh+this.F|0,eg=eg+this.G|0,em=em+this.H|0,this.set(ea,eu,ec,ed,ef,eh,eg,em)}roundClean(){nL.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let nB=eN(()=>new nF);var nU=ea(25532),nz=ea(69069),nG=ea(40475);class nV extends TypeError{constructor(ei,eo){let ea;let{message:eu,...ec}=ei,{path:ed}=ei,ef=0===ed.length?eu:"At path: "+ed.join(".")+" -- "+eu;super(ef),Object.assign(this,ec),this.name=this.constructor.name,this.failures=()=>{var eu;return null!=(eu=ea)?eu:ea=[ei,...eo()]}}}function nq(ei){return nH(ei)&&"function"==typeof ei[Symbol.iterator]}function nH(ei){return"object"==typeof ei&&null!=ei}function nW(ei){return"string"==typeof ei?JSON.stringify(ei):""+ei}function nK(ei){let{done:eo,value:ea}=ei.next();return eo?void 0:ea}function nY(ei,eo,ea,eu){if(!0===ei)return;!1===ei?ei={}:"string"==typeof ei&&(ei={message:ei});let{path:ec,branch:ed}=eo,{type:ef}=ea,{refinement:eh,message:eg="Expected a value of type `"+ef+"`"+(eh?" with refinement `"+eh+"`":"")+", but received: `"+nW(eu)+"`"}=ei;return{value:eu,type:ef,refinement:eh,key:ec[ec.length-1],path:ec,branch:ed,...ei,message:eg}}function*nZ(ei,eo,ea,eu){for(let ec of(nq(ei)||(ei=[ei]),ei)){let ei=nY(ec,eo,ea,eu);ei&&(yield ei)}}function*n$(ei,eo,ea={}){let{path:eu=[],branch:ec=[ei],coerce:ed=!1,mask:ef=!1}=ea,eh={path:eu,branch:ec};if(ed&&(ei=eo.coercer(ei,eh),ef&&"type"!==eo.type&&nH(eo.schema)&&nH(ei)&&!Array.isArray(ei)))for(let ea in ei)void 0===eo.schema[ea]&&delete ei[ea];let eg=!0;for(let ea of eo.validator(ei,eh))eg=!1,yield[ea,void 0];for(let[ea,em,eb]of eo.entries(ei,eh)){let eo=n$(em,eb,{path:void 0===ea?eu:[...eu,ea],branch:void 0===ea?ec:[...ec,em],coerce:ed,mask:ef});for(let eu of eo)eu[0]?(eg=!1,yield[eu[0],void 0]):ed&&(em=eu[1],void 0===ea?ei=em:ei instanceof Map?ei.set(ea,em):ei instanceof Set?ei.add(em):nH(ei)&&(ei[ea]=em))}if(eg)for(let ea of eo.refiner(ei,eh))eg=!1,yield[ea,void 0];eg&&(yield[void 0,ei])}class nJ{constructor(ei){let{type:eo,schema:ea,validator:eu,refiner:ec,coercer:ed=ei=>ei,entries:ef=function*(){}}=ei;this.type=eo,this.schema=ea,this.entries=ef,this.coercer=ed,eu?this.validator=(ei,eo)=>{let ea=eu(ei,eo);return nZ(ea,eo,this,ei)}:this.validator=()=>[],ec?this.refiner=(ei,eo)=>{let ea=ec(ei,eo);return nZ(ea,eo,this,ei)}:this.refiner=()=>[]}assert(ei){return nQ(ei,this)}create(ei){return nX(ei,this)}is(ei){return n3(ei,this)}mask(ei){return n0(ei,this)}validate(ei,eo={}){return n5(ei,this,eo)}}function nQ(ei,eo){let ea=n5(ei,eo);if(ea[0])throw ea[0]}function nX(ei,eo){let ea=n5(ei,eo,{coerce:!0});if(!ea[0])return ea[1];throw ea[0]}function n0(ei,eo){let ea=n5(ei,eo,{coerce:!0,mask:!0});if(!ea[0])return ea[1];throw ea[0]}function n3(ei,eo){let ea=n5(ei,eo);return!ea[0]}function n5(ei,eo,ea={}){let eu=n$(ei,eo,ea),ec=nK(eu);if(ec[0]){let ei=new nV(ec[0],function*(){for(let ei of eu)ei[0]&&(yield ei[0])});return[ei,void 0]}{let ei=ec[1];return[void 0,ei]}}function n4(ei,eo){return new nJ({type:ei,schema:null,validator:eo})}function n6(){return n4("any",()=>!0)}function n8(ei){return new nJ({type:"array",schema:ei,*entries(eo){if(ei&&Array.isArray(eo))for(let[ea,eu]of eo.entries())yield[ea,eu,ei]},coercer:ei=>Array.isArray(ei)?ei.slice():ei,validator:ei=>Array.isArray(ei)||"Expected an array value, but received: "+nW(ei)})}function n9(){return n4("boolean",ei=>"boolean"==typeof ei)}function n7(ei){return n4("instance",eo=>eo instanceof ei||"Expected a `"+ei.name+"` instance, but received: "+nW(eo))}function ia(ei){let eo=nW(ei),ea=typeof ei;return new nJ({type:"literal",schema:"string"===ea||"number"===ea||"boolean"===ea?ei:null,validator:ea=>ea===ei||"Expected the literal `"+eo+"`, but received: "+nW(ea)})}function iu(){return n4("never",()=>!1)}function ic(ei){return new nJ({...ei,validator:(eo,ea)=>null===eo||ei.validator(eo,ea),refiner:(eo,ea)=>null===eo||ei.refiner(eo,ea)})}function ih(){return n4("number",ei=>"number"==typeof ei&&!isNaN(ei)||"Expected a number, but received: "+nW(ei))}function ip(ei){return new nJ({...ei,validator:(eo,ea)=>void 0===eo||ei.validator(eo,ea),refiner:(eo,ea)=>void 0===eo||ei.refiner(eo,ea)})}function ig(ei,eo){return new nJ({type:"record",schema:null,*entries(ea){if(nH(ea))for(let eu in ea){let ec=ea[eu];yield[eu,eu,ei],yield[eu,ec,eo]}},validator:ei=>nH(ei)||"Expected an object, but received: "+nW(ei)})}function iy(){return n4("string",ei=>"string"==typeof ei||"Expected a string, but received: "+nW(ei))}function iv(ei){let eo=iu();return new nJ({type:"tuple",schema:null,*entries(ea){if(Array.isArray(ea)){let eu=Math.max(ei.length,ea.length);for(let ec=0;ecArray.isArray(ei)||"Expected an array, but received: "+nW(ei)})}function ib(ei){let eo=Object.keys(ei);return new nJ({type:"type",schema:ei,*entries(ea){if(nH(ea))for(let eu of eo)yield[eu,ea[eu],ei[eu]]},validator:ei=>nH(ei)||"Expected an object, but received: "+nW(ei)})}function iw(ei){let eo=ei.map(ei=>ei.type).join(" | ");return new nJ({type:"union",schema:null,validator(ea,eu){let ec=[];for(let eo of ei){let[...ei]=n$(ea,eo,eu),[ed]=ei;if(!ed[0])return[];for(let[eo]of ei)eo&&ec.push(eo)}return["Expected the value to satisfy a union of `"+eo+"`, but received: "+nW(ea),...ec]}})}function i_(){return n4("unknown",()=>!0)}function iS(ei,eo,ea){return new nJ({...ei,coercer:(eu,ec)=>n3(eu,eo)?ei.coercer(ea(eu,ec),ec):ei.coercer(eu,ec)})}var iE=ea(31198),iA=ea.n(iE),iT=ea(66855),iC=ea(89062);let[iO,iI,iP]=[[],[],[]],iD=BigInt(0),iN=BigInt(1),iM=BigInt(2),ij=BigInt(7),iR=BigInt(256),iL=BigInt(113);for(let ei=0,eo=iN,ea=1,eu=0;ei<24;ei++){[ea,eu]=[eu,(2*ea+3*eu)%5],iO.push(2*(5*eu+ea)),iI.push((ei+1)*(ei+2)/2%64);let ec=iD;for(let ei=0;ei<7;ei++)(eo=(eo<>ij)*iL)%iR)&iM&&(ec^=iN<<(iN<ea>32?e0(ei,eo,ea):eQ(ei,eo,ea),iG=(ei,eo,ea)=>ea>32?e3(ei,eo,ea):eX(ei,eo,ea);function iV(ei,eo=24){let ea=new Uint32Array(10);for(let eu=24-eo;eu<24;eu++){for(let eo=0;eo<10;eo++)ea[eo]=ei[eo]^ei[eo+10]^ei[eo+20]^ei[eo+30]^ei[eo+40];for(let eo=0;eo<10;eo+=2){let eu=(eo+8)%10,ec=(eo+2)%10,ed=ea[ec],ef=ea[ec+1],eh=iU(ed,ef,1)^ea[eu],eg=iG(ed,ef,1)^ea[eu+1];for(let ea=0;ea<50;ea+=10)ei[eo+ea]^=eh,ei[eo+ea+1]^=eg}let eo=ei[2],ec=ei[3];for(let ea=0;ea<24;ea++){let eu=iI[ea],ed=iU(eo,ec,eu),ef=iG(eo,ec,eu),eh=iO[ea];eo=ei[eh],ec=ei[eh+1],ei[eh]=ed,ei[eh+1]=ef}for(let eo=0;eo<50;eo+=10){for(let eu=0;eu<10;eu++)ea[eu]=ei[eo+eu];for(let eu=0;eu<10;eu++)ei[eo+eu]^=~ea[(eu+2)%10]&ea[(eu+4)%10]}ei[0]^=iF[eu],ei[1]^=iB[eu]}ea.fill(0)}class iq extends eD{constructor(ei,eo,ea,eu=!1,ec=24){if(super(),this.blockLen=ei,this.suffix=eo,this.outputLen=ea,this.enableXOF=eu,this.rounds=ec,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,eg(ea),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=eA(this.state)}keccak(){iV(this.state32,this.rounds),this.posOut=0,this.pos=0}update(ei){ew(this);let{blockLen:eo,state:ea}=this;ei=eI(ei);let eu=ei.length;for(let ec=0;ec=ea&&this.keccak();let ed=Math.min(ea-this.posOut,ec-eu);ei.set(eo.subarray(this.posOut,this.posOut+ed),eu),this.posOut+=ed,eu+=ed}return ei}xofInto(ei){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(ei)}xof(ei){return eg(ei),this.xofInto(new Uint8Array(ei))}digestInto(ei){if(e_(ei,this),this.finished)throw Error("digest() was already called");return this.writeInto(ei),this.destroy(),ei}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(ei){let{blockLen:eo,suffix:ea,outputLen:eu,rounds:ec,enableXOF:ed}=this;return ei||(ei=new iq(eo,ea,eu,ed,ec)),ei.state32.set(this.state32),ei.pos=this.pos,ei.posOut=this.posOut,ei.finished=this.finished,ei.rounds=ec,ei.suffix=ea,ei.outputLen=eu,ei.enableXOF=ed,ei.destroyed=this.destroyed,ei}}let iH=(ei,eo,ea)=>eN(()=>new iq(eo,ei,ea)),iW=iH(1,136,32);class iK extends eD{constructor(ei,eo){super(),this.finished=!1,this.destroyed=!1,eb(ei);let ea=eI(eo);if(this.iHash=ei.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let eu=this.blockLen,ec=new Uint8Array(eu);ec.set(ea.length>eu?ei.create().update(ea).digest():ea);for(let ei=0;einew iK(ei,eo).update(ea).digest();/*!noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com)*/function i$(ei){let eo=rj(ei);tK(eo,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:ea,Fp:eu,a:ec}=eo;if(ea){if(!eu.eql(ec,eu.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof ea||"bigint"!=typeof ea.beta||"function"!=typeof ea.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...eo})}iZ.create=(ei,eo)=>new iK(ei,eo);let{bytesToNumberBE:iJ,hexToBytes:iQ}=ef,i0={Err:class extends Error{constructor(ei=""){super(ei)}},_parseInt(ei){let{Err:eo}=i0;if(ei.length<2||2!==ei[0])throw new eo("Invalid signature integer tag");let ea=ei[1],eu=ei.subarray(2,ea+2);if(!ea||eu.length!==ea)throw new eo("Invalid signature integer: wrong length");if(128&eu[0])throw new eo("Invalid signature integer: negative");if(0===eu[0]&&!(128&eu[1]))throw new eo("Invalid signature integer: unnecessary leading zero");return{d:iJ(eu),l:ei.subarray(ea+2)}},toSig(ei){let{Err:eo}=i0,ea="string"==typeof ei?iQ(ei):ei;if(!(ea instanceof Uint8Array))throw Error("ui8a expected");let eu=ea.length;if(eu<2||48!=ea[0])throw new eo("Invalid signature tag");if(ea[1]!==eu-2)throw new eo("Invalid signature: incorrect length");let{d:ec,l:ed}=i0._parseInt(ea.subarray(2)),{d:ef,l:eh}=i0._parseInt(ed);if(eh.length)throw new eo("Invalid signature: left bytes after parsing");return{r:ec,s:ef}},hexFromSig(ei){let eo=ei=>8&Number.parseInt(ei[0],16)?"00"+ei:ei,ea=ei=>{let eo=ei.toString(16);return 1&eo.length?`0${eo}`:eo},eu=eo(ea(ei.s)),ec=eo(ea(ei.r)),ed=eu.length/2,ef=ec.length/2,eh=ea(ed),eg=ea(ef);return`30${ea(ef+ed+4)}02${eg}${ec}02${eh}${eu}`}},i6=BigInt(0),i8=BigInt(1),i9=(BigInt(2),BigInt(3));function i7(ei){let eo=i$(ei),{Fp:ea}=eo,eu=eo.toBytes||((ei,eo,eu)=>{let ec=eo.toAffine();return tj(Uint8Array.from([4]),ea.toBytes(ec.x),ea.toBytes(ec.y))}),ec=eo.fromBytes||(ei=>{let eo=ei.subarray(1),eu=ea.fromBytes(eo.subarray(0,ea.BYTES)),ec=ea.fromBytes(eo.subarray(ea.BYTES,2*ea.BYTES));return{x:eu,y:ec}});function ed(ei){let{a:eu,b:ec}=eo,ed=ea.sqr(ei),ef=ea.mul(ed,ei);return ea.add(ea.add(ef,ea.mul(ei,eu)),ec)}if(!ea.eql(ea.sqr(eo.Gy),ed(eo.Gx)))throw Error("bad generator point: equation left != right");function ef(ei){return"bigint"==typeof ei&&i6ea.eql(ei,ea.ZERO);return ec(eo)&&ec(eu)?ew.ZERO:new ew(eo,eu,ea.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(ei){let eo=ea.invertBatch(ei.map(ei=>ei.pz));return ei.map((ei,ea)=>ei.toAffine(eo[ea])).map(ew.fromAffine)}static fromHex(ei){let eo=ew.fromAffine(ec(tM("pointHex",ei)));return eo.assertValidity(),eo}static fromPrivateKey(ei){return ew.BASE.multiply(eg(ei))}_setWindowSize(ei){this._WINDOW_SIZE=ei,em.delete(this)}assertValidity(){if(this.is0()){if(eo.allowInfinityPoint&&!ea.is0(this.py))return;throw Error("bad point: ZERO")}let{x:ei,y:eu}=this.toAffine();if(!ea.isValid(ei)||!ea.isValid(eu))throw Error("bad point: x or y not FE");let ec=ea.sqr(eu),ef=ed(ei);if(!ea.eql(ec,ef))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:ei}=this.toAffine();if(ea.isOdd)return!ea.isOdd(ei);throw Error("Field doesn't support isOdd")}equals(ei){eb(ei);let{px:eo,py:eu,pz:ec}=this,{px:ed,py:ef,pz:eh}=ei,eg=ea.eql(ea.mul(eo,eh),ea.mul(ed,ec)),em=ea.eql(ea.mul(eu,eh),ea.mul(ef,ec));return eg&&em}negate(){return new ew(this.px,ea.neg(this.py),this.pz)}double(){let{a:ei,b:eu}=eo,ec=ea.mul(eu,i9),{px:ed,py:ef,pz:eh}=this,eg=ea.ZERO,em=ea.ZERO,eb=ea.ZERO,e_=ea.mul(ed,ed),eS=ea.mul(ef,ef),eE=ea.mul(eh,eh),eA=ea.mul(ed,ef);return eA=ea.add(eA,eA),eb=ea.mul(ed,eh),eb=ea.add(eb,eb),eg=ea.mul(ei,eb),em=ea.mul(ec,eE),em=ea.add(eg,em),eg=ea.sub(eS,em),em=ea.add(eS,em),em=ea.mul(eg,em),eg=ea.mul(eA,eg),eb=ea.mul(ec,eb),eE=ea.mul(ei,eE),eA=ea.sub(e_,eE),eA=ea.mul(ei,eA),eA=ea.add(eA,eb),eb=ea.add(e_,e_),e_=ea.add(eb,e_),e_=ea.add(e_,eE),e_=ea.mul(e_,eA),em=ea.add(em,e_),eE=ea.mul(ef,eh),eE=ea.add(eE,eE),e_=ea.mul(eE,eA),eg=ea.sub(eg,e_),eb=ea.mul(eE,eS),eb=ea.add(eb,eb),eb=ea.add(eb,eb),new ew(eg,em,eb)}add(ei){eb(ei);let{px:eu,py:ec,pz:ed}=this,{px:ef,py:eh,pz:eg}=ei,em=ea.ZERO,e_=ea.ZERO,eS=ea.ZERO,eE=eo.a,eA=ea.mul(eo.b,i9),eT=ea.mul(eu,ef),ek=ea.mul(ec,eh),eC=ea.mul(ed,eg),eO=ea.add(eu,ec),eI=ea.add(ef,eh);eO=ea.mul(eO,eI),eI=ea.add(eT,ek),eO=ea.sub(eO,eI),eI=ea.add(eu,ed);let eP=ea.add(ef,eg);return eI=ea.mul(eI,eP),eP=ea.add(eT,eC),eI=ea.sub(eI,eP),eP=ea.add(ec,ed),em=ea.add(eh,eg),eP=ea.mul(eP,em),em=ea.add(ek,eC),eP=ea.sub(eP,em),eS=ea.mul(eE,eI),em=ea.mul(eA,eC),eS=ea.add(em,eS),em=ea.sub(ek,eS),eS=ea.add(ek,eS),e_=ea.mul(em,eS),ek=ea.add(eT,eT),ek=ea.add(ek,eT),eC=ea.mul(eE,eC),eI=ea.mul(eA,eI),ek=ea.add(ek,eC),eC=ea.sub(eT,eC),eC=ea.mul(eE,eC),eI=ea.add(eI,eC),eT=ea.mul(ek,eI),e_=ea.add(e_,eT),eT=ea.mul(eP,eI),em=ea.mul(eO,em),em=ea.sub(em,eT),eT=ea.mul(eO,ek),eS=ea.mul(eP,eS),eS=ea.add(eS,eT),new ew(em,e_,eS)}subtract(ei){return this.add(ei.negate())}is0(){return this.equals(ew.ZERO)}wNAF(ei){return eS.wNAFCached(this,em,ei,ei=>{let eo=ea.invertBatch(ei.map(ei=>ei.pz));return ei.map((ei,ea)=>ei.toAffine(eo[ea])).map(ew.fromAffine)})}multiplyUnsafe(ei){let eu=ew.ZERO;if(ei===i6)return eu;if(eh(ei),ei===i8)return this;let{endo:ec}=eo;if(!ec)return eS.unsafeLadder(this,ei);let{k1neg:ed,k1:ef,k2neg:eg,k2:em}=ec.splitScalar(ei),eb=eu,e_=eu,eE=this;for(;ef>i6||em>i6;)ef&i8&&(eb=eb.add(eE)),em&i8&&(e_=e_.add(eE)),eE=eE.double(),ef>>=i8,em>>=i8;return ed&&(eb=eb.negate()),eg&&(e_=e_.negate()),e_=new ew(ea.mul(e_.px,ec.beta),e_.py,e_.pz),eb.add(e_)}multiply(ei){let eu,ec;eh(ei);let ed=ei,{endo:ef}=eo;if(ef){let{k1neg:ei,k1:eo,k2neg:eh,k2:eg}=ef.splitScalar(ed),{p:em,f:eb}=this.wNAF(eo),{p:e_,f:eE}=this.wNAF(eg);em=eS.constTimeNegate(ei,em),e_=eS.constTimeNegate(eh,e_),e_=new ew(ea.mul(e_.px,ef.beta),e_.py,e_.pz),eu=em.add(e_),ec=eb.add(eE)}else{let{p:ei,f:eo}=this.wNAF(ed);eu=ei,ec=eo}return ew.normalizeZ([eu,ec])[0]}multiplyAndAddUnsafe(ei,eo,ea){let eu=ew.BASE,ec=(ei,eo)=>eo!==i6&&eo!==i8&&ei.equals(eu)?ei.multiply(eo):ei.multiplyUnsafe(eo),ed=ec(this,eo).add(ec(ei,ea));return ed.is0()?void 0:ed}toAffine(ei){let{px:eo,py:eu,pz:ec}=this,ed=this.is0();null==ei&&(ei=ed?ea.ONE:ea.inv(ec));let ef=ea.mul(eo,ei),eh=ea.mul(eu,ei),eg=ea.mul(ec,ei);if(ed)return{x:ea.ZERO,y:ea.ZERO};if(!ea.eql(eg,ea.ONE))throw Error("invZ was invalid");return{x:ef,y:eh}}isTorsionFree(){let{h:ei,isTorsionFree:ea}=eo;if(ei===i8)return!0;if(ea)return ea(ew,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:ei,clearCofactor:ea}=eo;return ei===i8?this:ea?ea(ew,this):this.multiplyUnsafe(eo.h)}toRawBytes(ei=!0){return this.assertValidity(),eu(ew,this,ei)}toHex(ei=!0){return tA(this.toRawBytes(ei))}}ew.BASE=new ew(eo.Gx,eo.Gy,ea.ONE),ew.ZERO=new ew(ea.ZERO,ea.ONE,ea.ZERO);let e_=eo.nBitLength,eS=rM(ew,eo.endo?Math.ceil(e_/2):e_);return{CURVE:eo,ProjectivePoint:ew,normPrivateKeyToScalar:eg,weierstrassEquation:ed,isWithinCurveOrder:ef}}function oi(ei){let eo=rj(ei);return tK(eo,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...eo})}function oo(ei){let eo=oi(ei),{Fp:ea,n:eu}=eo,ec=ea.BYTES+1,ed=2*ea.BYTES+1;function ef(ei){return i6tA(tP(ei,eo.nByteLength));function eE(ei){let eo=eu>>i8;return ei>eo}function eA(ei){return eE(ei)?eh(-ei):ei}let eT=(ei,eo,ea)=>tO(ei.slice(eo,ea));class ek{constructor(ei,eo,ea){this.r=ei,this.s=eo,this.recovery=ea,this.assertValidity()}static fromCompact(ei){let ea=eo.nByteLength;return ei=tM("compactSignature",ei,2*ea),new ek(eT(ei,0,ea),eT(ei,ea,2*ea))}static fromDER(ei){let{r:eo,s:ea}=i0.toSig(tM("DER",ei));return new ek(eo,ea)}assertValidity(){if(!e_(this.r))throw Error("r must be 0 < r < CURVE.n");if(!e_(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ei){return new ek(this.r,this.s,ei)}recoverPublicKey(ei){let{r:eu,s:ec,recovery:ed}=this,ef=eN(tM("msgHash",ei));if(null==ed||![0,1,2,3].includes(ed))throw Error("recovery id invalid");let eb=2===ed||3===ed?eu+eo.n:eu;if(eb>=ea.ORDER)throw Error("recovery id 2 or 3 invalid");let ew=(1&ed)==0?"02":"03",e_=em.fromHex(ew+eS(eb)),eE=eg(eb),eA=eh(-ef*eE),eT=eh(ec*eE),ek=em.BASE.multiplyAndAddUnsafe(e_,eA,eT);if(!ek)throw Error("point at infinify");return ek.assertValidity(),ek}hasHighS(){return eE(this.s)}normalizeS(){return this.hasHighS()?new ek(this.r,eh(-this.s),this.recovery):this}toDERRawBytes(){return tC(this.toDERHex())}toDERHex(){return i0.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return tC(this.toCompactHex())}toCompactHex(){return eS(this.r)+eS(this.s)}}let eC={isValidPrivateKey(ei){try{return eb(ei),!0}catch(ei){return!1}},normPrivateKeyToScalar:eb,randomPrivateKey:()=>{let ei=rI(eo.n);return rP(eo.randomBytes(ei),eo.n)},precompute:(ei=8,eo=em.BASE)=>(eo._setWindowSize(ei),eo.multiply(BigInt(3)),eo)};function eO(ei,eo=!0){return em.fromPrivateKey(ei).toRawBytes(eo)}function eI(ei){let eo=ei instanceof Uint8Array,ea="string"==typeof ei,eu=(eo||ea)&&ei.length;return eo?eu===ec||eu===ed:ea?eu===2*ec||eu===2*ed:ei instanceof em}function eP(ei,eo,ea=!0){if(eI(ei))throw Error("first arg must be private key");if(!eI(eo))throw Error("second arg must be public key");let eu=em.fromHex(eo);return eu.multiply(eb(ei)).toRawBytes(ea)}let eD=eo.bits2int||function(ei){let ea=tO(ei),eu=8*ei.length-eo.nBitLength;return eu>0?ea>>BigInt(eu):ea},eN=eo.bits2int_modN||function(ei){return eh(eD(ei))},eM=tG(eo.nBitLength);function ej(ei){if("bigint"!=typeof ei)throw Error("bigint expected");if(!(i6<=ei&&eiei in ec))throw Error("sign() legacy options not supported");let{hash:ed,randomBytes:ef}=eo,{lowS:ew,prehash:eS,extraEntropy:eT}=ec;null==ew&&(ew=!0),ei=tM("msgHash",ei),eS&&(ei=tM("prehashed msgHash",ed(ei)));let eC=eN(ei),eO=eb(eu),eI=[ej(eO),ej(eC)];if(null!=eT){let ei=!0===eT?ef(ea.BYTES):eT;eI.push(tM("extraEntropy",ei))}let eP=tj(...eI),eM=eC;return{seed:eP,k2sig:function(ei){let eo=eD(ei);if(!e_(eo))return;let ea=eg(eo),eu=em.BASE.multiply(eo).toAffine(),ec=eh(eu.x);if(ec===i6)return;let ed=eh(ea*eh(eM+ec*eO));if(ed===i6)return;let ef=(eu.x===ec?0:2)|Number(eu.y&i8),eb=ed;return ew&&eE(ed)&&(eb=eA(ed),ef^=1),new ek(ec,eb,ef)}}}let eL={lowS:eo.lowS,prehash:!1},eF={lowS:eo.lowS,prehash:!1};function eB(ei,ea,eu=eL){let{seed:ec,k2sig:ed}=eR(ei,ea,eu),ef=eo,eh=tH(ef.hash.outputLen,ef.nByteLength,ef.hmac);return eh(ec,ed)}return em.BASE._setWindowSize(8),{CURVE:eo,getPublicKey:eO,getSharedSecret:eP,sign:eB,verify:function(ei,ea,eu,ec=eF){let ed,ef;let eb=ei;if(ea=tM("msgHash",ea),eu=tM("publicKey",eu),"strict"in ec)throw Error("options.strict was renamed to lowS");let{lowS:ew,prehash:e_}=ec;try{if("string"==typeof eb||eb instanceof Uint8Array)try{ef=ek.fromDER(eb)}catch(ei){if(!(ei instanceof i0.Err))throw ei;ef=ek.fromCompact(eb)}else if("object"==typeof eb&&"bigint"==typeof eb.r&&"bigint"==typeof eb.s){let{r:ei,s:eo}=eb;ef=new ek(ei,eo)}else throw Error("PARSE");ed=em.fromHex(eu)}catch(ei){if("PARSE"===ei.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ew&&ef.hasHighS())return!1;e_&&(ea=eo.hash(ea));let{r:eS,s:eE}=ef,eA=eN(ea),eT=eg(eE),eC=eh(eA*eT),eO=eh(eS*eT),eI=em.BASE.multiplyAndAddUnsafe(ed,eC,eO)?.toAffine();if(!eI)return!1;let eP=eh(eI.x);return eP===eS},ProjectivePoint:em,Signature:ek,utils:eC}}/*!noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com)*/function oa(ei){return{hash:ei,hmac:(eo,...ea)=>iZ(ei,eo,eP(...ea)),randomBytes:eM}}function ol(ei,eo){let ea=eo=>oo({...ei,...oa(eo)});return Object.freeze({...ea(eo),create:ea})}BigInt(4);/*!noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com)*/let ou=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),oc=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),od=BigInt(1),oh=BigInt(2),og=(ei,eo)=>(ei+eo/oh)/eo;function om(ei){let eo=ou,ea=BigInt(3),eu=BigInt(6),ec=BigInt(11),ed=BigInt(22),ef=BigInt(23),eh=BigInt(44),eg=BigInt(88),em=ei*ei*ei%eo,eb=em*em*ei%eo,ew=rf(eb,ea,eo)*eb%eo,e_=rf(ew,ea,eo)*eb%eo,eS=rf(e_,oh,eo)*em%eo,eE=rf(eS,ec,eo)*eS%eo,eA=rf(eE,ed,eo)*eE%eo,eT=rf(eA,eh,eo)*eA%eo,ek=rf(eT,eg,eo)*eT%eo,eC=rf(ek,eh,eo)*eA%eo,eO=rf(eC,ea,eo)*eb%eo,eI=rf(eO,ef,eo)*eE%eo,eP=rf(eI,eu,eo)*em%eo,eD=rf(eP,oh,eo);if(!ov.eql(ov.sqr(eD),ei))throw Error("Cannot find square root");return eD}let ov=rk(ou,void 0,void 0,{sqrt:om}),ow=ol({a:BigInt(0),b:BigInt(7),Fp:ov,n:oc,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:ei=>{let eo=oc,ea=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),eu=-od*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),ec=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ed=ea,ef=BigInt("0x100000000000000000000000000000000"),eh=og(ed*ei,eo),eg=og(-eu*ei,eo),em=ru(ei-eh*ea-eg*ec,eo),eb=ru(-eh*eu-eg*ed,eo),ew=em>ef,e_=eb>ef;if(ew&&(em=eo-em),e_&&(eb=eo-eb),em>ef||eb>ef)throw Error("splitScalar: Endomorphism failed, k="+ei);return{k1neg:ew,k1:em,k2neg:e_,k2:eb}}}},nB),o_=BigInt(0),oS=ei=>"bigint"==typeof ei&&o_ei.charCodeAt(0)));ea=concatBytes(eo,eo),oE[ei]=ea}return sha256(concatBytes(ea,...eo))}let oT=ei=>mod(ei,ou),oC=ei=>mod(ei,oc),oI=ow.ProjectivePoint;nf.utils.randomPrivateKey;let oP=()=>{let ei=nf.utils.randomPrivateKey(),eo=oD(ei),ea=new Uint8Array(64);return ea.set(ei),ea.set(eo,32),{publicKey:eo,secretKey:ea}},oD=nf.getPublicKey;function oN(ei){try{return nf.ExtendedPoint.fromHex(ei),!0}catch(ei){return!1}}let oM=(ei,eo)=>nf.sign(ei,eo.slice(0,32)),oj=nf.verify,oR=ei=>eh.Buffer.isBuffer(ei)?ei:ei instanceof Uint8Array?eh.Buffer.from(ei.buffer,ei.byteOffset,ei.byteLength):eh.Buffer.from(ei);class oL{encode(){return eh.Buffer.from((0,nU.serialize)(oF,this))}static decode(ei){return(0,nU.deserialize)(oF,this,ei)}static decodeUnchecked(ei){return(0,nU.deserializeUnchecked)(oF,this,ei)}constructor(ei){Object.assign(this,ei)}}let oF=new Map,oB=32,oU=32;function oz(ei){return void 0!==ei._bn}let oG=1;eu=Symbol.toStringTag;class oV extends oL{static unique(){let ei=new oV(oG);return oG+=1,new oV(ei.toBuffer())}equals(ei){return this._bn.eq(ei._bn)}toBase58(){return nD().encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){let ei=this.toBuffer();return new Uint8Array(ei.buffer,ei.byteOffset,ei.byteLength)}toBuffer(){let ei=this._bn.toArrayLike(eh.Buffer);if(ei.length===oU)return ei;let eo=eh.Buffer.alloc(32);return ei.copy(eo,32-ei.length),eo}get[eu](){return"PublicKey(".concat(this.toString(),")")}toString(){return this.toBase58()}static async createWithSeed(ei,eo,ea){let eu=eh.Buffer.concat([ei.toBuffer(),eh.Buffer.from(eo),ea.toBuffer()]),ec=nB(eu);return new oV(ec)}static createProgramAddressSync(ei,eo){let ea=eh.Buffer.alloc(0);ei.forEach(function(ei){if(ei.length>oB)throw TypeError("Max seed length exceeded");ea=eh.Buffer.concat([ea,oR(ei)])}),ea=eh.Buffer.concat([ea,eo.toBuffer(),eh.Buffer.from("ProgramDerivedAddress")]);let eu=nB(ea);if(oN(eu))throw Error("Invalid seeds, address must fall off the curve");return new oV(eu)}static async createProgramAddress(ei,eo){return this.createProgramAddressSync(ei,eo)}static findProgramAddressSync(ei,eo){let ea,eu=255;for(;0!=eu;){try{let ec=ei.concat(eh.Buffer.from([eu]));ea=this.createProgramAddressSync(ec,eo)}catch(ei){if(ei instanceof TypeError)throw ei;eu--;continue}return[ea,eu]}throw Error("Unable to find a viable program address nonce")}static async findProgramAddress(ei,eo){return this.findProgramAddressSync(ei,eo)}static isOnCurve(ei){let eo=new oV(ei);return oN(eo.toBytes())}constructor(ei){if(super({}),this._bn=void 0,oz(ei))this._bn=ei._bn;else{if("string"==typeof ei){let eo=nD().decode(ei);if(eo.length!=oU)throw Error("Invalid public key input");this._bn=new(nI())(eo)}else this._bn=new(nI())(ei);if(this._bn.byteLength()>oU)throw Error("Invalid public key input")}}}ec=oV,oV.default=new ec("11111111111111111111111111111111"),oF.set(oV,{kind:"struct",fields:[["_bn","u256"]]}),new oV("BPFLoader1111111111111111111111111111111111");let oq=1232,oH=127,oW=64;class oK extends Error{constructor(ei){super("Signature ".concat(ei," has expired: block height exceeded.")),this.signature=void 0,this.signature=ei}}Object.defineProperty(oK.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class oZ extends Error{constructor(ei,eo){super("Transaction was not confirmed in ".concat(eo.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(ei," using the Solana Explorer or CLI tools.")),this.signature=void 0,this.signature=ei}}Object.defineProperty(oZ.prototype,"name",{value:"TransactionExpiredTimeoutError"});class o$ extends Error{constructor(ei){super("Signature ".concat(ei," has expired: the nonce is no longer valid.")),this.signature=void 0,this.signature=ei}}Object.defineProperty(o$.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class oJ{keySegments(){let ei=[this.staticAccountKeys];return this.accountKeysFromLookups&&(ei.push(this.accountKeysFromLookups.writable),ei.push(this.accountKeysFromLookups.readonly)),ei}get(ei){for(let eo of this.keySegments()){if(eieo+1)throw Error("Account index overflow encountered during compilation");let ea=new Map;this.keySegments().flat().forEach((ei,eo)=>{ea.set(ei.toBase58(),eo)});let eu=ei=>{let eo=ea.get(ei.toBase58());if(void 0===eo)throw Error("Encountered an unknown instruction account key during compilation");return eo};return ei.map(ei=>({programIdIndex:eu(ei.programId),accountKeyIndexes:ei.keys.map(ei=>eu(ei.pubkey)),data:ei.data}))}constructor(ei,eo){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=ei,this.accountKeysFromLookups=eo}}let oQ=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return nz.Ik(32,ei)},o0=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",eo=nz.n_([nz.Jq("length"),nz.Jq("lengthPadding"),nz.Ik(nz.cv(nz.Jq(),-8),"chars")],ei),ea=eo.decode.bind(eo),eu=eo.encode.bind(eo),ec=eo;return ec.decode=(ei,eo)=>{let eu=ea(ei,eo);return eu.chars.toString()},ec.encode=(ei,eo,ea)=>{let ec={chars:eh.Buffer.from(ei,"utf8")};return eu(ec,eo,ea)},ec.alloc=ei=>nz.Jq().span+nz.Jq().span+eh.Buffer.from(ei,"utf8").length,ec},o3=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"authorized";return nz.n_([oQ("staker"),oQ("withdrawer")],ei)},o5=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return nz.n_([nz.gM("unixTimestamp"),nz.gM("epoch"),oQ("custodian")],ei)},o4=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteInit";return nz.n_([oQ("nodePubkey"),oQ("authorizedVoter"),oQ("authorizedWithdrawer"),nz.u8("commission")],ei)},o6=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteAuthorizeWithSeedArgs";return nz.n_([nz.Jq("voteAuthorizationType"),oQ("currentAuthorityDerivedKeyOwnerPubkey"),o0("currentAuthorityDerivedKeySeed"),oQ("newAuthorized")],ei)};function o8(ei,eo){let ea=ei=>{if(ei.span>=0)return ei.span;if("function"==typeof ei.alloc)return ei.alloc(eo[ei.property]);if("count"in ei&&"elementLayout"in ei){let eu=eo[ei.property];if(Array.isArray(eu))return eu.length*ea(ei.elementLayout)}else if("fields"in ei)return o8({layout:ei},eo[ei.property]);return 0},eu=0;return ei.layout.fields.forEach(ei=>{eu+=ea(ei)}),eu}function o9(ei){let eo=0,ea=0;for(;;){let eu=ei.shift();if(eo|=(127&eu)<<7*ea,ea+=1,(128&eu)==0)break}return eo}function o7(ei,eo){let ea=eo;for(;;){let eo=127&ea;if(0==(ea>>=7)){ei.push(eo);break}eo|=128,ei.push(eo)}}function si(ei,eo){if(!ei)throw Error(eo||"Assertion failed")}class so{static compile(ei,eo){let ea=new Map,eu=ei=>{let eo=ei.toBase58(),eu=ea.get(eo);return void 0===eu&&(eu={isSigner:!1,isWritable:!1,isInvoked:!1},ea.set(eo,eu)),eu},ec=eu(eo);for(let eo of(ec.isSigner=!0,ec.isWritable=!0,ei))for(let ei of(eu(eo.programId).isInvoked=!0,eo.keys)){var ed,ef;let eo=eu(ei.pubkey);(ed=eo).isSigner||(ed.isSigner=ei.isSigner),(ef=eo).isWritable||(ef.isWritable=ei.isWritable)}return new so(eo,ea)}getMessageComponents(){let ei=[...this.keyMetaMap.entries()];si(ei.length<=256,"Max static account keys length exceeded");let eo=ei.filter(ei=>{let[,eo]=ei;return eo.isSigner&&eo.isWritable}),ea=ei.filter(ei=>{let[,eo]=ei;return eo.isSigner&&!eo.isWritable}),eu=ei.filter(ei=>{let[,eo]=ei;return!eo.isSigner&&eo.isWritable}),ec=ei.filter(ei=>{let[,eo]=ei;return!eo.isSigner&&!eo.isWritable}),ed={numRequiredSignatures:eo.length+ea.length,numReadonlySignedAccounts:ea.length,numReadonlyUnsignedAccounts:ec.length};{si(eo.length>0,"Expected at least one writable signer key");let[ei]=eo[0];si(ei===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}let ef=[...eo.map(ei=>{let[eo]=ei;return new oV(eo)}),...ea.map(ei=>{let[eo]=ei;return new oV(eo)}),...eu.map(ei=>{let[eo]=ei;return new oV(eo)}),...ec.map(ei=>{let[eo]=ei;return new oV(eo)})];return[ed,ef]}extractTableLookup(ei){let[eo,ea]=this.drainKeysFoundInLookupTable(ei.state.addresses,ei=>!ei.isSigner&&!ei.isInvoked&&ei.isWritable),[eu,ec]=this.drainKeysFoundInLookupTable(ei.state.addresses,ei=>!ei.isSigner&&!ei.isInvoked&&!ei.isWritable);if(0!==eo.length||0!==eu.length)return[{accountKey:ei.key,writableIndexes:eo,readonlyIndexes:eu},{writable:ea,readonly:ec}]}drainKeysFoundInLookupTable(ei,eo){let ea=[],eu=[];for(let[ec,ed]of this.keyMetaMap.entries())if(eo(ed)){let eo=new oV(ec),ed=ei.findIndex(ei=>ei.equals(eo));ed>=0&&(si(ed<256,"Max lookup table index exceeded"),ea.push(ed),eu.push(eo),this.keyMetaMap.delete(ec))}return[ea,eu]}constructor(ei,eo){this.payer=void 0,this.keyMetaMap=void 0,this.payer=ei,this.keyMetaMap=eo}}class sa{get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(ei=>({programIdIndex:ei.programIdIndex,accountKeyIndexes:ei.accounts,data:nD().decode(ei.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new oJ(this.staticAccountKeys)}static compile(ei){let eo=so.compile(ei.instructions,ei.payerKey),[ea,eu]=eo.getMessageComponents(),ec=new oJ(eu),ed=ec.compileInstructions(ei.instructions).map(ei=>({programIdIndex:ei.programIdIndex,accounts:ei.accountKeyIndexes,data:nD().encode(ei.data)}));return new sa({header:ea,accountKeys:eu,recentBlockhash:ei.recentBlockhash,instructions:ed})}isAccountSigner(ei){return ei=this.header.numRequiredSignatures){let ea=ei-eo,eu=this.accountKeys.length-eo,ec=eu-this.header.numReadonlyUnsignedAccounts;return ea!this.isProgramId(eo))}serialize(){let ei=this.accountKeys.length,eo=[];o7(eo,ei);let ea=this.instructions.map(ei=>{let{accounts:eo,programIdIndex:ea}=ei,eu=Array.from(nD().decode(ei.data)),ec=[];o7(ec,eo.length);let ed=[];return o7(ed,eu.length),{programIdIndex:ea,keyIndicesCount:eh.Buffer.from(ec),keyIndices:eo,dataLength:eh.Buffer.from(ed),data:eu}}),eu=[];o7(eu,ea.length);let ec=eh.Buffer.alloc(oq);eh.Buffer.from(eu).copy(ec);let ed=eu.length;ea.forEach(ei=>{let eo=nz.n_([nz.u8("programIdIndex"),nz.Ik(ei.keyIndicesCount.length,"keyIndicesCount"),nz.A9(nz.u8("keyIndex"),ei.keyIndices.length,"keyIndices"),nz.Ik(ei.dataLength.length,"dataLength"),nz.A9(nz.u8("userdatum"),ei.data.length,"data")]),ea=eo.encode(ei,ec,ed);ed+=ea}),ec=ec.slice(0,ed);let ef=nz.n_([nz.Ik(1,"numRequiredSignatures"),nz.Ik(1,"numReadonlySignedAccounts"),nz.Ik(1,"numReadonlyUnsignedAccounts"),nz.Ik(eo.length,"keyCount"),nz.A9(oQ("key"),ei,"keys"),oQ("recentBlockhash")]),eg={numRequiredSignatures:eh.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:eh.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:eh.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:eh.Buffer.from(eo),keys:this.accountKeys.map(ei=>oR(ei.toBytes())),recentBlockhash:nD().decode(this.recentBlockhash)},em=eh.Buffer.alloc(2048),eb=ef.encode(eg,em);return ec.copy(em,eb),em.slice(0,eb+ec.length)}static from(ei){let eo=[...ei],ea=eo.shift();if(ea!==(ea&oH))throw Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");let eu=eo.shift(),ec=eo.shift(),ed=o9(eo),ef=[];for(let ei=0;einew oV(ei)),this.recentBlockhash=ei.recentBlockhash,this.instructions=ei.instructions,this.instructions.forEach(ei=>this.indexToProgramIds.set(ei.programIdIndex,this.accountKeys[ei.programIdIndex]))}}class su{get version(){return 0}get numAccountKeysFromLookups(){let ei=0;for(let eo of this.addressTableLookups)ei+=eo.readonlyIndexes.length+eo.writableIndexes.length;return ei}getAccountKeys(ei){let eo;if(ei&&"accountKeysFromLookups"in ei&&ei.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=ei.accountKeysFromLookups.writable.length+ei.accountKeysFromLookups.readonly.length)throw Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");eo=ei.accountKeysFromLookups}else if(ei&&"addressLookupTableAccounts"in ei&&ei.addressLookupTableAccounts)eo=this.resolveAddressTableLookups(ei.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw Error("Failed to get account keys because address table lookups were not resolved");return new oJ(this.staticAccountKeys,eo)}isAccountSigner(ei){return ei=ea){let eo=ei-ea,eu=this.addressTableLookups.reduce((ei,eo)=>ei+eo.writableIndexes.length,0);return eo=this.header.numRequiredSignatures){let eu=ei-eo,ec=ea-eo,ed=ec-this.header.numReadonlyUnsignedAccounts;return euei.key.equals(ea.accountKey));if(!eu)throw Error("Failed to find address lookup table account for table key ".concat(ea.accountKey.toBase58()));for(let ei of ea.writableIndexes)if(eiei.toBytes()),recentBlockhash:nD().decode(this.recentBlockhash),instructionsLength:new Uint8Array(ea),serializedInstructions:eo,addressTableLookupsLength:new Uint8Array(ec),serializedAddressTableLookups:eu},ef);return ef.slice(0,eg)}serializeInstructions(){let ei=0,eo=new Uint8Array(oq);for(let ea of this.compiledInstructions){let eu=[];o7(eu,ea.accountKeyIndexes.length);let ec=[];o7(ec,ea.data.length);let ed=nz.n_([nz.u8("programIdIndex"),nz.Ik(eu.length,"encodedAccountKeyIndexesLength"),nz.A9(nz.u8(),ea.accountKeyIndexes.length,"accountKeyIndexes"),nz.Ik(ec.length,"encodedDataLength"),nz.Ik(ea.data.length,"data")]);ei+=ed.encode({programIdIndex:ea.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(eu),accountKeyIndexes:ea.accountKeyIndexes,encodedDataLength:new Uint8Array(ec),data:ea.data},eo,ei)}return eo.slice(0,ei)}serializeAddressTableLookups(){let ei=0,eo=new Uint8Array(oq);for(let ea of this.addressTableLookups){let eu=[];o7(eu,ea.writableIndexes.length);let ec=[];o7(ec,ea.readonlyIndexes.length);let ed=nz.n_([oQ("accountKey"),nz.Ik(eu.length,"encodedWritableIndexesLength"),nz.A9(nz.u8(),ea.writableIndexes.length,"writableIndexes"),nz.Ik(ec.length,"encodedReadonlyIndexesLength"),nz.A9(nz.u8(),ea.readonlyIndexes.length,"readonlyIndexes")]);ei+=ed.encode({accountKey:ea.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(eu),writableIndexes:ea.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(ec),readonlyIndexes:ea.readonlyIndexes},eo,ei)}return eo.slice(0,ei)}static deserialize(ei){let eo=[...ei],ea=eo.shift(),eu=ea&oH;si(ea!==eu,"Expected versioned message but received legacy message");let ec=eu;si(0===ec,"Expected versioned message with version 0 but found version ".concat(ec));let ed={numRequiredSignatures:eo.shift(),numReadonlySignedAccounts:eo.shift(),numReadonlyUnsignedAccounts:eo.shift()},ef=[],eh=o9(eo);for(let ei=0;ei{let eo=sf.deserializeMessageVersion(ei);if("legacy"===eo)return sa.from(ei);if(0===eo)return su.deserialize(ei);throw Error("Transaction message version ".concat(eo," deserialization is not supported"))}},sh=function(ei){return ei[ei.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",ei[ei.PROCESSED=1]="PROCESSED",ei[ei.TIMED_OUT=2]="TIMED_OUT",ei[ei.NONCE_INVALID=3]="NONCE_INVALID",ei}({}),sp=eh.Buffer.alloc(oW).fill(0);class sm{toJSON(){return{keys:this.keys.map(ei=>{let{pubkey:eo,isSigner:ea,isWritable:eu}=ei;return{pubkey:eo.toJSON(),isSigner:ea,isWritable:eu}}),programId:this.programId.toJSON(),data:[...this.data]}}constructor(ei){this.keys=void 0,this.programId=void 0,this.data=eh.Buffer.alloc(0),this.programId=ei.programId,this.keys=ei.keys,ei.data&&(this.data=ei.data)}}class sv{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(ei=>ei.toJSON()),signers:this.signatures.map(ei=>{let{publicKey:eo}=ei;return eo.toJSON()})}}add(){for(var ei=arguments.length,eo=Array(ei),ea=0;ea{"instructions"in ei?this.instructions=this.instructions.concat(ei.instructions):"data"in ei&&"programId"in ei&&"keys"in ei?this.instructions.push(ei):this.instructions.push(new sm(ei))}),this}compileMessage(){let ei,eo,ea;if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;if(this.nonceInfo?(ei=this.nonceInfo.nonce,eo=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(ei=this.recentBlockhash,eo=this.instructions),!ei)throw Error("Transaction recentBlockhash required");if(eo.length<1&&console.warn("No instructions provided"),this.feePayer)ea=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)ea=this.signatures[0].publicKey;else throw Error("Transaction fee payer required");for(let ei=0;ei{ei.keys.forEach(ei=>{ec.push({...ei})});let eo=ei.programId.toString();eu.includes(eo)||eu.push(eo)}),eu.forEach(ei=>{ec.push({pubkey:new oV(ei),isSigner:!1,isWritable:!1})});let ed=[];ec.forEach(ei=>{let eo=ei.pubkey.toString(),ea=ed.findIndex(ei=>ei.pubkey.toString()===eo);ea>-1?(ed[ea].isWritable=ed[ea].isWritable||ei.isWritable,ed[ea].isSigner=ed[ea].isSigner||ei.isSigner):ed.push(ei)}),ed.sort(function(ei,eo){if(ei.isSigner!==eo.isSigner)return ei.isSigner?-1:1;if(ei.isWritable!==eo.isWritable)return ei.isWritable?-1:1;let ea={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return ei.pubkey.toBase58().localeCompare(eo.pubkey.toBase58(),"en",ea)});let ef=ed.findIndex(ei=>ei.pubkey.equals(ea));if(ef>-1){let[ei]=ed.splice(ef,1);ei.isSigner=!0,ei.isWritable=!0,ed.unshift(ei)}else ed.unshift({pubkey:ea,isSigner:!0,isWritable:!0});for(let ei of this.signatures){let eo=ed.findIndex(eo=>eo.pubkey.equals(ei.publicKey));if(eo>-1)ed[eo].isSigner||(ed[eo].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw Error("unknown signer: ".concat(ei.publicKey.toString()))}let eh=0,eg=0,em=0,eb=[],ew=[];ed.forEach(ei=>{let{pubkey:eo,isSigner:ea,isWritable:eu}=ei;ea?(eb.push(eo.toString()),eh+=1,eu||(eg+=1)):(ew.push(eo.toString()),eu||(em+=1))});let e_=eb.concat(ew),eS=eo.map(ei=>{let{data:eo,programId:ea}=ei;return{programIdIndex:e_.indexOf(ea.toString()),accounts:ei.keys.map(ei=>e_.indexOf(ei.pubkey.toString())),data:nD().encode(eo)}});return eS.forEach(ei=>{si(ei.programIdIndex>=0),ei.accounts.forEach(ei=>si(ei>=0))}),new sa({header:{numRequiredSignatures:eh,numReadonlySignedAccounts:eg,numReadonlyUnsignedAccounts:em},accountKeys:e_,recentBlockhash:ei,instructions:eS})}_compile(){let ei=this.compileMessage(),eo=ei.accountKeys.slice(0,ei.header.numRequiredSignatures);if(this.signatures.length===eo.length){let ea=this.signatures.every((ei,ea)=>eo[ea].equals(ei.publicKey));if(ea)return ei}return this.signatures=eo.map(ei=>({signature:null,publicKey:ei})),ei}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(ei){return(await ei.getFeeForMessage(this.compileMessage())).value}setSigners(){for(var ei=arguments.length,eo=Array(ei),ea=0;ea{let eo=ei.toString();return!eu.has(eo)&&(eu.add(eo),!0)}).map(ei=>({signature:null,publicKey:ei}))}sign(){for(var ei=arguments.length,eo=Array(ei),ea=0;ea({signature:null,publicKey:ei.publicKey}));let ed=this._compile();this._partialSign(ed,...ec)}partialSign(){for(var ei=arguments.length,eo=Array(ei),ea=0;ea1?eo-1:0),eu=1;eu{let eo=oM(ec,ei.secretKey);this._addSignature(ei.publicKey,oR(eo))})}addSignature(ei,eo){this._compile(),this._addSignature(ei,eo)}_addSignature(ei,eo){si(64===eo.length);let ea=this.signatures.findIndex(eo=>ei.equals(eo.publicKey));if(ea<0)throw Error("unknown signer: ".concat(ei.toString()));this.signatures[ea].signature=eh.Buffer.from(eo)}verifySignatures(ei){return this._verifySignatures(this.serializeMessage(),void 0===ei||ei)}_verifySignatures(ei,eo){for(let{signature:ea,publicKey:eu}of this.signatures)if(null===ea){if(eo)return!1}else if(!oj(ea,ei,eu.toBytes()))return!1;return!0}serialize(ei){let{requireAllSignatures:eo,verifySignatures:ea}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},ei),eu=this.serializeMessage();if(ea&&!this._verifySignatures(eu,eo))throw Error("Signature verification failed");return this._serialize(eu)}_serialize(ei){let{signatures:eo}=this,ea=[];o7(ea,eo.length);let eu=ea.length+64*eo.length+ei.length,ec=eh.Buffer.alloc(eu);return si(eo.length<256),eh.Buffer.from(ea).copy(ec,0),eo.forEach((ei,eo)=>{let{signature:eu}=ei;null!==eu&&(si(64===eu.length,"signature has invalid length"),eh.Buffer.from(eu).copy(ec,ea.length+64*eo))}),ei.copy(ec,ea.length+64*eo.length),si(ec.length<=oq,"Transaction too large: ".concat(ec.length," > ").concat(oq)),ec}get keys(){return si(1===this.instructions.length),this.instructions[0].keys.map(ei=>ei.pubkey)}get programId(){return si(1===this.instructions.length),this.instructions[0].programId}get data(){return si(1===this.instructions.length),this.instructions[0].data}static from(ei){let eo=[...ei],ea=o9(eo),eu=[];for(let ei=0;ei1&&void 0!==arguments[1]?arguments[1]:[],ea=new sv;return ea.recentBlockhash=ei.recentBlockhash,ei.header.numRequiredSignatures>0&&(ea.feePayer=ei.accountKeys[0]),eo.forEach((eo,eu)=>{let ec={signature:eo==nD().encode(sp)?null:nD().decode(eo),publicKey:ei.accountKeys[eu]};ea.signatures.push(ec)}),ei.instructions.forEach(eo=>{let eu=eo.accounts.map(eo=>{let eu=ei.accountKeys[eo];return{pubkey:eu,isSigner:ea.signatures.some(ei=>ei.publicKey.toString()===eu.toString())||ei.isAccountSigner(eo),isWritable:ei.isAccountWritable(eo)}});ea.instructions.push(new sm({keys:eu,programId:ei.accountKeys[eo.programIdIndex],data:nD().decode(eo.data)}))}),ea._message=ei,ea._json=ea.toJSON(),ea}constructor(ei){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!ei)return;if(ei.feePayer&&(this.feePayer=ei.feePayer),ei.signatures&&(this.signatures=ei.signatures),Object.prototype.hasOwnProperty.call(ei,"nonceInfo")){let{minContextSlot:eo,nonceInfo:ea}=ei;this.minNonceContextSlot=eo,this.nonceInfo=ea}else if(Object.prototype.hasOwnProperty.call(ei,"lastValidBlockHeight")){let{blockhash:eo,lastValidBlockHeight:ea}=ei;this.recentBlockhash=eo,this.lastValidBlockHeight=ea}else{let{recentBlockhash:eo,nonceInfo:ea}=ei;ea&&(this.nonceInfo=ea),this.recentBlockhash=eo}}}let sb=160,sS=64,sE=sb/sS,sA=1e3/sE,sT=new oV("SysvarC1ock11111111111111111111111111111111");new oV("SysvarEpochSchedu1e111111111111111111111111"),new oV("Sysvar1nstructions1111111111111111111111111");let sk=new oV("SysvarRecentB1ockHashes11111111111111111111"),sC=new oV("SysvarRent111111111111111111111111111111111");new oV("SysvarRewards111111111111111111111111111111"),new oV("SysvarS1otHashes111111111111111111111111111"),new oV("SysvarS1otHistory11111111111111111111111111");let sO=new oV("SysvarStakeHistory1111111111111111111111111");async function sI(ei,eo,ea,eu){let ec;let ed=eu&&{skipPreflight:eu.skipPreflight,preflightCommitment:eu.preflightCommitment||eu.commitment,maxRetries:eu.maxRetries,minContextSlot:eu.minContextSlot},ef=await ei.sendTransaction(eo,ea,ed);if(null!=eo.recentBlockhash&&null!=eo.lastValidBlockHeight)ec=(await ei.confirmTransaction({abortSignal:null==eu?void 0:eu.abortSignal,signature:ef,blockhash:eo.recentBlockhash,lastValidBlockHeight:eo.lastValidBlockHeight},eu&&eu.commitment)).value;else if(null!=eo.minNonceContextSlot&&null!=eo.nonceInfo){let{nonceInstruction:ea}=eo.nonceInfo,ed=ea.keys[0].pubkey;ec=(await ei.confirmTransaction({abortSignal:null==eu?void 0:eu.abortSignal,minContextSlot:eo.minNonceContextSlot,nonceAccountPubkey:ed,nonceValue:eo.nonceInfo.nonce,signature:ef},eu&&eu.commitment)).value}else(null==eu?void 0:eu.abortSignal)!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),ec=(await ei.confirmTransaction(ef,eu&&eu.commitment)).value;if(ec.err)throw Error("Transaction ".concat(ef," failed (").concat(JSON.stringify(ec),")"));return ef}function sP(ei){return new Promise(eo=>setTimeout(eo,ei))}function sD(ei,eo){let ea=ei.layout.span>=0?ei.layout.span:o8(ei,eo),eu=eh.Buffer.alloc(ea),ec=Object.assign({instruction:ei.index},eo);return ei.layout.encode(ec,eu),eu}let sN=nz._O("lamportsPerSignature"),sM=nz.n_([nz.Jq("version"),nz.Jq("state"),oQ("authorizedPubkey"),oQ("nonce"),nz.n_([sN],"feeCalculator")]),sj=sM.span;class sR{static fromAccountData(ei){let eo=sM.decode(oR(ei),0);return new sR({authorizedPubkey:new oV(eo.authorizedPubkey),nonce:new oV(eo.nonce).toString(),feeCalculator:eo.feeCalculator})}constructor(ei){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=ei.authorizedPubkey,this.nonce=ei.nonce,this.feeCalculator=ei.feeCalculator}}let sL=ei=>{let eo=ei.decode.bind(ei),ea=ei.encode.bind(ei);return{decode:eo,encode:ea}},sF=ei=>eo=>{let ea=(0,nz.Ik)(ei,eo),{encode:eu,decode:ec}=sL(ea),ed=ea;return ed.decode=(ei,eo)=>{let ea=ec(ei,eo);return(0,nG.oU)(eh.Buffer.from(ea))},ed.encode=(eo,ea,ec)=>{let ed=(0,nG.k$)(eo,ei);return eu(ed,ea,ec)},ed},sB=sF(8),sU=Object.freeze({Create:{index:0,layout:nz.n_([nz.Jq("instruction"),nz.gM("lamports"),nz.gM("space"),oQ("programId")])},Assign:{index:1,layout:nz.n_([nz.Jq("instruction"),oQ("programId")])},Transfer:{index:2,layout:nz.n_([nz.Jq("instruction"),sB("lamports")])},CreateWithSeed:{index:3,layout:nz.n_([nz.Jq("instruction"),oQ("base"),o0("seed"),nz.gM("lamports"),nz.gM("space"),oQ("programId")])},AdvanceNonceAccount:{index:4,layout:nz.n_([nz.Jq("instruction")])},WithdrawNonceAccount:{index:5,layout:nz.n_([nz.Jq("instruction"),nz.gM("lamports")])},InitializeNonceAccount:{index:6,layout:nz.n_([nz.Jq("instruction"),oQ("authorized")])},AuthorizeNonceAccount:{index:7,layout:nz.n_([nz.Jq("instruction"),oQ("authorized")])},Allocate:{index:8,layout:nz.n_([nz.Jq("instruction"),nz.gM("space")])},AllocateWithSeed:{index:9,layout:nz.n_([nz.Jq("instruction"),oQ("base"),o0("seed"),nz.gM("space"),oQ("programId")])},AssignWithSeed:{index:10,layout:nz.n_([nz.Jq("instruction"),oQ("base"),o0("seed"),oQ("programId")])},TransferWithSeed:{index:11,layout:nz.n_([nz.Jq("instruction"),sB("lamports"),o0("seed"),oQ("programId")])},UpgradeNonceAccount:{index:12,layout:nz.n_([nz.Jq("instruction")])}});class sG{static createAccount(ei){let eo=sU.Create,ea=sD(eo,{lamports:ei.lamports,space:ei.space,programId:oR(ei.programId.toBuffer())});return new sm({keys:[{pubkey:ei.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:ei.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:ea})}static transfer(ei){let eo,ea;if("basePubkey"in ei){let eu=sU.TransferWithSeed;eo=sD(eu,{lamports:BigInt(ei.lamports),seed:ei.seed,programId:oR(ei.programId.toBuffer())}),ea=[{pubkey:ei.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:ei.basePubkey,isSigner:!0,isWritable:!1},{pubkey:ei.toPubkey,isSigner:!1,isWritable:!0}]}else{let eu=sU.Transfer;eo=sD(eu,{lamports:BigInt(ei.lamports)}),ea=[{pubkey:ei.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:ei.toPubkey,isSigner:!1,isWritable:!0}]}return new sm({keys:ea,programId:this.programId,data:eo})}static assign(ei){let eo,ea;if("basePubkey"in ei){let eu=sU.AssignWithSeed;eo=sD(eu,{base:oR(ei.basePubkey.toBuffer()),seed:ei.seed,programId:oR(ei.programId.toBuffer())}),ea=[{pubkey:ei.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:ei.basePubkey,isSigner:!0,isWritable:!1}]}else{let eu=sU.Assign;eo=sD(eu,{programId:oR(ei.programId.toBuffer())}),ea=[{pubkey:ei.accountPubkey,isSigner:!0,isWritable:!0}]}return new sm({keys:ea,programId:this.programId,data:eo})}static createAccountWithSeed(ei){let eo=sU.CreateWithSeed,ea=sD(eo,{base:oR(ei.basePubkey.toBuffer()),seed:ei.seed,lamports:ei.lamports,space:ei.space,programId:oR(ei.programId.toBuffer())}),eu=[{pubkey:ei.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:ei.newAccountPubkey,isSigner:!1,isWritable:!0}];return ei.basePubkey!=ei.fromPubkey&&eu.push({pubkey:ei.basePubkey,isSigner:!0,isWritable:!1}),new sm({keys:eu,programId:this.programId,data:ea})}static createNonceAccount(ei){let eo=new sv;"basePubkey"in ei&&"seed"in ei?eo.add(sG.createAccountWithSeed({fromPubkey:ei.fromPubkey,newAccountPubkey:ei.noncePubkey,basePubkey:ei.basePubkey,seed:ei.seed,lamports:ei.lamports,space:sj,programId:this.programId})):eo.add(sG.createAccount({fromPubkey:ei.fromPubkey,newAccountPubkey:ei.noncePubkey,lamports:ei.lamports,space:sj,programId:this.programId}));let ea={noncePubkey:ei.noncePubkey,authorizedPubkey:ei.authorizedPubkey};return eo.add(this.nonceInitialize(ea)),eo}static nonceInitialize(ei){let eo=sU.InitializeNonceAccount,ea=sD(eo,{authorized:oR(ei.authorizedPubkey.toBuffer())}),eu={keys:[{pubkey:ei.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:sk,isSigner:!1,isWritable:!1},{pubkey:sC,isSigner:!1,isWritable:!1}],programId:this.programId,data:ea};return new sm(eu)}static nonceAdvance(ei){let eo=sU.AdvanceNonceAccount,ea=sD(eo),eu={keys:[{pubkey:ei.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:sk,isSigner:!1,isWritable:!1},{pubkey:ei.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:ea};return new sm(eu)}static nonceWithdraw(ei){let eo=sU.WithdrawNonceAccount,ea=sD(eo,{lamports:ei.lamports});return new sm({keys:[{pubkey:ei.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:ei.toPubkey,isSigner:!1,isWritable:!0},{pubkey:sk,isSigner:!1,isWritable:!1},{pubkey:sC,isSigner:!1,isWritable:!1},{pubkey:ei.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:ea})}static nonceAuthorize(ei){let eo=sU.AuthorizeNonceAccount,ea=sD(eo,{authorized:oR(ei.newAuthorizedPubkey.toBuffer())});return new sm({keys:[{pubkey:ei.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:ei.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:ea})}static allocate(ei){let eo,ea;if("basePubkey"in ei){let eu=sU.AllocateWithSeed;eo=sD(eu,{base:oR(ei.basePubkey.toBuffer()),seed:ei.seed,space:ei.space,programId:oR(ei.programId.toBuffer())}),ea=[{pubkey:ei.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:ei.basePubkey,isSigner:!0,isWritable:!1}]}else{let eu=sU.Allocate;eo=sD(eu,{space:ei.space}),ea=[{pubkey:ei.accountPubkey,isSigner:!0,isWritable:!0}]}return new sm({keys:ea,programId:this.programId,data:eo})}constructor(){}}sG.programId=new oV("11111111111111111111111111111111");let sV=oq-300;class sq{static getMinNumSignatures(ei){return 2*(Math.ceil(ei/sq.chunkSize)+1+1)}static async load(ei,eo,ea,eu,ec){{let ed=await ei.getMinimumBalanceForRentExemption(ec.length),ef=await ei.getAccountInfo(ea.publicKey,"confirmed"),eh=null;if(null!==ef){if(ef.executable)return console.error("Program load failed, account is already executable"),!1;ef.data.length!==ec.length&&(eh=eh||new sv).add(sG.allocate({accountPubkey:ea.publicKey,space:ec.length})),ef.owner.equals(eu)||(eh=eh||new sv).add(sG.assign({accountPubkey:ea.publicKey,programId:eu})),ef.lamports0?ed:1,space:ec.length,programId:eu}));null!==eh&&await sI(ei,eh,[eo,ea],{commitment:"confirmed"})}let ed=nz.n_([nz.Jq("instruction"),nz.Jq("offset"),nz.Jq("bytesLength"),nz.Jq("bytesLengthPadding"),nz.A9(nz.u8("byte"),nz.cv(nz.Jq(),-8),"bytes")]),ef=sq.chunkSize,eg=0,em=ec,eb=[];for(;em.length>0;){let ec=em.slice(0,ef),ew=eh.Buffer.alloc(ef+16);ed.encode({instruction:0,offset:eg,bytes:ec,bytesLength:0,bytesLengthPadding:0},ew);let e_=new sv().add({keys:[{pubkey:ea.publicKey,isSigner:!0,isWritable:!0}],programId:eu,data:ew});if(eb.push(sI(ei,e_,[eo,ea],{commitment:"confirmed"})),ei._rpcEndpoint.includes("solana.com")){let ei=4;await sP(1e3/ei)}eg+=ef,em=em.slice(ef)}await Promise.all(eb);{let ec=nz.n_([nz.Jq("instruction")]),ed=eh.Buffer.alloc(ec.span);ec.encode({instruction:1},ed);let ef=new sv().add({keys:[{pubkey:ea.publicKey,isSigner:!0,isWritable:!0},{pubkey:sC,isSigner:!1,isWritable:!1}],programId:eu,data:ed}),eg="processed",em=await ei.sendTransaction(ef,[eo,ea],{preflightCommitment:eg}),{context:eb,value:ew}=await ei.confirmTransaction({signature:em,lastValidBlockHeight:ef.lastValidBlockHeight,blockhash:ef.recentBlockhash},eg);if(ew.err)throw Error("Transaction ".concat(em," failed (").concat(JSON.stringify(ew),")"));for(;;){try{let eo=await ei.getSlot({commitment:eg});if(eo>eb.slot)break}catch(ei){}await new Promise(ei=>setTimeout(ei,Math.round(sA/2)))}}return!0}constructor(){}}function sH(ei){return ei&&ei.__esModule&&Object.prototype.hasOwnProperty.call(ei,"default")?ei.default:ei}sq.chunkSize=sV,new oV("BPFLoader2111111111111111111111111111111111");var sW=Object.prototype.toString,sK=Object.keys||function(ei){var eo=[];for(var ea in ei)eo.push(ea);return eo};function sY(ei,eo){var ea,eu,ec,ed,ef,eh,eg;if(!0===ei)return"true";if(!1===ei)return"false";switch(typeof ei){case"object":if(null===ei)return null;if(ei.toJSON&&"function"==typeof ei.toJSON)return sY(ei.toJSON(),eo);if("[object Array]"===(eg=sW.call(ei))){for(ea=0,ec="[",eu=ei.length-1;ea-1&&(ec+=sY(ei[ea],!0)),ec+"]"}if("[object Object]"!==eg)return JSON.stringify(ei);for(eu=(ed=sK(ei).sort()).length,ec="",ea=0;ea1;)ei/=2,eo++;return eo}function sQ(ei){return 0===ei?1:(ei--,ei|=ei>>1,ei|=ei>>2,ei|=ei>>4,ei|=ei>>8,ei|=ei>>16,(ei|=ei>>32)+1)}class sX{getEpoch(ei){return this.getEpochAndSlotIndex(ei)[0]}getEpochAndSlotIndex(ei){if(ei{let ea=(0,iC.Z)(ei,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...eo});return"socket"in ea?this.underlyingSocket=ea.socket:this.underlyingSocket=ea,ea};super(eu,ei,eo,ea),this.underlyingSocket=void 0}}function s9(ei,eo){let ea;try{ea=ei.layout.decode(eo)}catch(ei){throw Error("invalid instruction; "+ei)}if(ea.typeIndex!==ei.index)throw Error("invalid account data; account type mismatch ".concat(ea.typeIndex," != ").concat(ei.index));return ea}let s7=56;class ao{isActive(){let ei=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===ei}static deserialize(ei){let eo=s9(aa,ei),ea=ei.length-s7;si(ea>=0,"lookup table is invalid"),si(ea%32==0,"lookup table is invalid");let eu=ea/32,{addresses:ec}=nz.n_([nz.A9(oQ(),eu,"addresses")]).decode(ei.slice(s7));return{deactivationSlot:eo.deactivationSlot,lastExtendedSlot:eo.lastExtendedSlot,lastExtendedSlotStartIndex:eo.lastExtendedStartIndex,authority:0!==eo.authority.length?new oV(eo.authority[0]):void 0,addresses:ec.map(ei=>new oV(ei))}}constructor(ei){this.key=void 0,this.state=void 0,this.key=ei.key,this.state=ei.state}}let aa={index:1,layout:nz.n_([nz.Jq("typeIndex"),sB("deactivationSlot"),nz._O("lastExtendedSlot"),nz.u8("lastExtendedStartIndex"),nz.u8(),nz.A9(oQ(),nz.cv(nz.u8(),-1),"authority")])},au=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function ac(ei){let eo=ei.match(au);if(null==eo)throw TypeError("Failed to validate endpoint URL `".concat(ei,"`"));let[ea,eu,ec,ed]=eo,ef=ei.startsWith("https:")?"wss:":"ws:",eh=null==ec?null:parseInt(ec.slice(1),10),eg=null==eh?"":":".concat(eh+1);return"".concat(ef,"//").concat(eu).concat(eg).concat(ed)}let af=iS(n7(oV),iy(),ei=>new oV(ei)),ag=iv([iy(),ia("base64")]),am=iS(n7(eh.Buffer),ag,ei=>eh.Buffer.from(ei[0],"base64")),av=3e4;function ab(ei){if(!1===/^https?:/.test(ei))throw TypeError("Endpoint URL must start with `http:` or `https:`.");return ei}function a_(ei){let eo,ea;if("string"==typeof ei)eo=ei;else if(ei){let{commitment:eu,...ec}=ei;eo=eu,ea=ec}return{commitment:eo,config:ea}}function aS(ei){return iw([ib({jsonrpc:ia("2.0"),id:iy(),result:ei}),ib({jsonrpc:ia("2.0"),id:iy(),error:ib({code:i_(),message:iy(),data:ip(n6())})})])}let aE=aS(i_());function ak(ei){return iS(aS(ei),aE,eo=>"error"in eo?eo:{...eo,result:nX(eo.result,ei)})}function aC(ei){return ak(ib({context:ib({slot:ih()}),value:ei}))}function aO(ei){return ib({context:ib({slot:ih()}),value:ei})}function aI(ei,eo){return 0===ei?new su({header:eo.header,staticAccountKeys:eo.accountKeys.map(ei=>new oV(ei)),recentBlockhash:eo.recentBlockhash,compiledInstructions:eo.instructions.map(ei=>({programIdIndex:ei.programIdIndex,accountKeyIndexes:ei.accounts,data:nD().decode(ei.data)})),addressTableLookups:eo.addressTableLookups}):new sa(eo)}let aP=ib({foundation:ih(),foundationTerm:ih(),initial:ih(),taper:ih(),terminal:ih()}),aD=ak(n8(ic(ib({epoch:ih(),effectiveSlot:ih(),amount:ih(),postBalance:ih(),commission:ip(ic(ih()))})))),aN=n8(ib({slot:ih(),prioritizationFee:ih()})),aM=ib({total:ih(),validator:ih(),foundation:ih(),epoch:ih()}),aj=ib({epoch:ih(),slotIndex:ih(),slotsInEpoch:ih(),absoluteSlot:ih(),blockHeight:ip(ih()),transactionCount:ip(ih())}),aR=ib({slotsPerEpoch:ih(),leaderScheduleSlotOffset:ih(),warmup:n9(),firstNormalEpoch:ih(),firstNormalSlot:ih()}),aL=ig(iy(),n8(ih())),aF=ic(iw([ib({}),iy()])),aU=ib({err:aF}),aG=ia("receivedSignature"),aV=ib({"solana-core":iy(),"feature-set":ip(ih())}),aq=aC(ib({err:ic(iw([ib({}),iy()])),logs:ic(n8(iy())),accounts:ip(ic(n8(ic(ib({executable:n9(),owner:iy(),lamports:ih(),data:n8(iy()),rentEpoch:ip(ih())}))))),unitsConsumed:ip(ih()),returnData:ip(ic(ib({programId:iy(),data:iv([iy(),ia("base64")])})))})),aH=aC(ib({byIdentity:ig(iy(),n8(ih())),range:ib({firstSlot:ih(),lastSlot:ih()})}));function aW(ei,eo,ea,eu,ec,ed){let ef,eh;let eg=ea||s6;null!=ed&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments."),eu&&(eh=async(ei,eo)=>{let ea=await new Promise((ea,ec)=>{try{eu(ei,eo,(ei,eo)=>ea([ei,eo]))}catch(ei){ec(ei)}});return await eg(...ea)});let em=new(iA())(async(ea,eu)=>{let ed={method:"POST",body:ea,agent:ef,headers:Object.assign({"Content-Type":"application/json"},eo||{},uA)};try{let eo,ea=5,ef=500;for(;eo=eh?await eh(ei,ed):await eg(ei,ed),429===eo.status&&!0!==ec&&(ea-=1,0!==ea);)console.log("Server responded with ".concat(eo.status," ").concat(eo.statusText,". Retrying after ").concat(ef,"ms delay...")),await sP(ef),ef*=2;let em=await eo.text();eo.ok?eu(null,em):eu(Error("".concat(eo.status," ").concat(eo.statusText,": ").concat(em)))}catch(ei){ei instanceof Error&&eu(ei)}},{});return em}function aK(ei){return(eo,ea)=>new Promise((eu,ec)=>{ei.request(eo,ea,(ei,eo)=>{if(ei){ec(ei);return}eu(eo)})})}function aY(ei){return eo=>new Promise((ea,eu)=>{0===eo.length&&ea([]);let ec=eo.map(eo=>ei.request(eo.methodName,eo.args));ei.request(ec,(ei,eo)=>{if(ei){eu(ei);return}ea(eo)})})}let aZ=ak(aP),a$=ak(aM),aJ=ak(aN),aQ=ak(aj),la=ak(aR),ll=ak(aL),lc=ak(ih()),ld=aC(ib({total:ih(),circulating:ih(),nonCirculating:ih(),nonCirculatingAccounts:n8(af)})),lf=ib({amount:iy(),uiAmount:ic(ih()),decimals:ih(),uiAmountString:ip(iy())}),lh=aC(n8(ib({address:af,amount:iy(),uiAmount:ic(ih()),decimals:ih(),uiAmountString:ip(iy())}))),lp=aC(n8(ib({pubkey:af,account:ib({executable:n9(),owner:af,lamports:ih(),data:am,rentEpoch:ih()})}))),lg=ib({program:iy(),parsed:i_(),space:ih()}),lm=aC(n8(ib({pubkey:af,account:ib({executable:n9(),owner:af,lamports:ih(),data:lg,rentEpoch:ih()})}))),ly=aC(n8(ib({lamports:ih(),address:af}))),lv=ib({executable:n9(),owner:af,lamports:ih(),data:am,rentEpoch:ih()}),lb=ib({pubkey:af,account:lv}),lw=iS(iw([n7(eh.Buffer),lg]),iw([ag,lg]),ei=>Array.isArray(ei)?nX(ei,am):ei),l_=ib({executable:n9(),owner:af,lamports:ih(),data:lw,rentEpoch:ih()}),lS=ib({pubkey:af,account:l_}),lE=ib({state:iw([ia("active"),ia("inactive"),ia("activating"),ia("deactivating")]),active:ih(),inactive:ih()}),lx=ak(n8(ib({signature:iy(),slot:ih(),err:aF,memo:ic(iy()),blockTime:ip(ic(ih()))}))),lA=ak(n8(ib({signature:iy(),slot:ih(),err:aF,memo:ic(iy()),blockTime:ip(ic(ih()))}))),lT=ib({subscription:ih(),result:aO(lv)}),lk=ib({pubkey:af,account:lv}),lC=ib({subscription:ih(),result:aO(lk)}),lO=ib({parent:ih(),slot:ih(),root:ih()}),lI=ib({subscription:ih(),result:lO}),lP=iw([ib({type:iw([ia("firstShredReceived"),ia("completed"),ia("optimisticConfirmation"),ia("root")]),slot:ih(),timestamp:ih()}),ib({type:ia("createdBank"),parent:ih(),slot:ih(),timestamp:ih()}),ib({type:ia("frozen"),slot:ih(),timestamp:ih(),stats:ib({numTransactionEntries:ih(),numSuccessfulTransactions:ih(),numFailedTransactions:ih(),maxTransactionsPerEntry:ih()})}),ib({type:ia("dead"),slot:ih(),timestamp:ih(),err:iy()})]),lD=ib({subscription:ih(),result:lP}),lN=ib({subscription:ih(),result:aO(iw([aU,aG]))}),lM=ib({subscription:ih(),result:ih()}),lj=ib({pubkey:iy(),gossip:ic(iy()),tpu:ic(iy()),rpc:ic(iy()),version:ic(iy())}),lR=ib({votePubkey:iy(),nodePubkey:iy(),activatedStake:ih(),epochVoteAccount:n9(),epochCredits:n8(iv([ih(),ih(),ih()])),commission:ih(),lastVote:ih(),rootSlot:ic(ih())}),lL=ak(ib({current:n8(lR),delinquent:n8(lR)})),lF=iw([ia("processed"),ia("confirmed"),ia("finalized")]),lB=ib({slot:ih(),confirmations:ic(ih()),err:aF,confirmationStatus:ip(lF)}),lU=aC(n8(ic(lB))),lz=ak(ih()),lG=ib({accountKey:af,writableIndexes:n8(ih()),readonlyIndexes:n8(ih())}),lV=ib({signatures:n8(iy()),message:ib({accountKeys:n8(iy()),header:ib({numRequiredSignatures:ih(),numReadonlySignedAccounts:ih(),numReadonlyUnsignedAccounts:ih()}),instructions:n8(ib({accounts:n8(ih()),data:iy(),programIdIndex:ih()})),recentBlockhash:iy(),addressTableLookups:ip(n8(lG))})}),lq=ib({pubkey:af,signer:n9(),writable:n9(),source:ip(iw([ia("transaction"),ia("lookupTable")]))}),lH=ib({accountKeys:n8(lq),signatures:n8(iy())}),lW=ib({parsed:i_(),program:iy(),programId:af}),lK=ib({accounts:n8(af),data:iy(),programId:af}),lY=iw([lK,lW]),lZ=iw([ib({parsed:i_(),program:iy(),programId:iy()}),ib({accounts:n8(iy()),data:iy(),programId:iy()})]),l$=iS(lY,lZ,ei=>"accounts"in ei?nX(ei,lK):nX(ei,lW)),lJ=ib({signatures:n8(iy()),message:ib({accountKeys:n8(lq),instructions:n8(l$),recentBlockhash:iy(),addressTableLookups:ip(ic(n8(lG)))})}),lQ=ib({accountIndex:ih(),mint:iy(),owner:ip(iy()),uiTokenAmount:lf}),lX=ib({writable:n8(af),readonly:n8(af)}),l0=ib({err:aF,fee:ih(),innerInstructions:ip(ic(n8(ib({index:ih(),instructions:n8(ib({accounts:n8(ih()),data:iy(),programIdIndex:ih()}))})))),preBalances:n8(ih()),postBalances:n8(ih()),logMessages:ip(ic(n8(iy()))),preTokenBalances:ip(ic(n8(lQ))),postTokenBalances:ip(ic(n8(lQ))),loadedAddresses:ip(lX),computeUnitsConsumed:ip(ih())}),l6=ib({err:aF,fee:ih(),innerInstructions:ip(ic(n8(ib({index:ih(),instructions:n8(l$)})))),preBalances:n8(ih()),postBalances:n8(ih()),logMessages:ip(ic(n8(iy()))),preTokenBalances:ip(ic(n8(lQ))),postTokenBalances:ip(ic(n8(lQ))),loadedAddresses:ip(lX),computeUnitsConsumed:ip(ih())}),l8=iw([ia(0),ia("legacy")]),l9=ib({pubkey:iy(),lamports:ih(),postBalance:ic(ih()),rewardType:ic(iy()),commission:ip(ic(ih()))}),l7=ak(ic(ib({blockhash:iy(),previousBlockhash:iy(),parentSlot:ih(),transactions:n8(ib({transaction:lV,meta:ic(l0),version:ip(l8)})),rewards:ip(n8(l9)),blockTime:ic(ih()),blockHeight:ic(ih())}))),ur=ak(ic(ib({blockhash:iy(),previousBlockhash:iy(),parentSlot:ih(),rewards:ip(n8(l9)),blockTime:ic(ih()),blockHeight:ic(ih())}))),ui=ak(ic(ib({blockhash:iy(),previousBlockhash:iy(),parentSlot:ih(),transactions:n8(ib({transaction:lH,meta:ic(l0),version:ip(l8)})),rewards:ip(n8(l9)),blockTime:ic(ih()),blockHeight:ic(ih())}))),uo=ak(ic(ib({blockhash:iy(),previousBlockhash:iy(),parentSlot:ih(),transactions:n8(ib({transaction:lJ,meta:ic(l6),version:ip(l8)})),rewards:ip(n8(l9)),blockTime:ic(ih()),blockHeight:ic(ih())}))),ul=ak(ic(ib({blockhash:iy(),previousBlockhash:iy(),parentSlot:ih(),transactions:n8(ib({transaction:lH,meta:ic(l6),version:ip(l8)})),rewards:ip(n8(l9)),blockTime:ic(ih()),blockHeight:ic(ih())}))),uu=ak(ic(ib({blockhash:iy(),previousBlockhash:iy(),parentSlot:ih(),rewards:ip(n8(l9)),blockTime:ic(ih()),blockHeight:ic(ih())}))),uc=ak(ic(ib({blockhash:iy(),previousBlockhash:iy(),parentSlot:ih(),transactions:n8(ib({transaction:lV,meta:ic(l0)})),rewards:ip(n8(l9)),blockTime:ic(ih())}))),ud=ak(ic(ib({blockhash:iy(),previousBlockhash:iy(),parentSlot:ih(),signatures:n8(iy()),blockTime:ic(ih())}))),uf=ak(ic(ib({slot:ih(),meta:l0,blockTime:ip(ic(ih())),transaction:lV,version:ip(l8)}))),uh=ak(ic(ib({slot:ih(),transaction:lJ,meta:ic(l6),blockTime:ip(ic(ih())),version:ip(l8)}))),ug=aC(ib({blockhash:iy(),feeCalculator:ib({lamportsPerSignature:ih()})})),um=aC(ib({blockhash:iy(),lastValidBlockHeight:ih()})),uy=aC(n9()),uv=ib({slot:ih(),numTransactions:ih(),numSlots:ih(),samplePeriodSecs:ih()}),ub=ak(n8(uv)),uw=aC(ic(ib({feeCalculator:ib({lamportsPerSignature:ih()})}))),u_=ak(iy()),uS=ak(iy()),uE=ib({err:aF,logs:n8(iy()),signature:iy()}),ux=ib({result:aO(uE),subscription:ih()}),uA={"solana-client":"js/0.0.0-development"};class uT{get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=this._buildArgs([ei.toBase58()],ea,void 0,eu),ed=await this._rpcRequest("getBalance",ec),ef=nX(ed,aC(ih()));if("error"in ef)throw new s4(ef.error,"failed to get balance for ".concat(ei.toBase58()));return ef.result}async getBalance(ei,eo){return await this.getBalanceAndContext(ei,eo).then(ei=>ei.value).catch(eo=>{throw Error("failed to get balance of account "+ei.toBase58()+": "+eo)})}async getBlockTime(ei){let eo=await this._rpcRequest("getBlockTime",[ei]),ea=nX(eo,ak(ic(ih())));if("error"in ea)throw new s4(ea.error,"failed to get block time for slot ".concat(ei));return ea.result}async getMinimumLedgerSlot(){let ei=await this._rpcRequest("minimumLedgerSlot",[]),eo=nX(ei,ak(ih()));if("error"in eo)throw new s4(eo.error,"failed to get minimum ledger slot");return eo.result}async getFirstAvailableBlock(){let ei=await this._rpcRequest("getFirstAvailableBlock",[]),eo=nX(ei,lc);if("error"in eo)throw new s4(eo.error,"failed to get first available block");return eo.result}async getSupply(ei){let eo={};eo="string"==typeof ei?{commitment:ei}:ei?{...ei,commitment:ei&&ei.commitment||this.commitment}:{commitment:this.commitment};let ea=await this._rpcRequest("getSupply",[eo]),eu=nX(ea,ld);if("error"in eu)throw new s4(eu.error,"failed to get supply");return eu.result}async getTokenSupply(ei,eo){let ea=this._buildArgs([ei.toBase58()],eo),eu=await this._rpcRequest("getTokenSupply",ea),ec=nX(eu,aC(lf));if("error"in ec)throw new s4(ec.error,"failed to get token supply");return ec.result}async getTokenAccountBalance(ei,eo){let ea=this._buildArgs([ei.toBase58()],eo),eu=await this._rpcRequest("getTokenAccountBalance",ea),ec=nX(eu,aC(lf));if("error"in ec)throw new s4(ec.error,"failed to get token account balance");return ec.result}async getTokenAccountsByOwner(ei,eo,ea){let{commitment:eu,config:ec}=a_(ea),ed=[ei.toBase58()];"mint"in eo?ed.push({mint:eo.mint.toBase58()}):ed.push({programId:eo.programId.toBase58()});let ef=this._buildArgs(ed,eu,"base64",ec),eh=await this._rpcRequest("getTokenAccountsByOwner",ef),eg=nX(eh,lp);if("error"in eg)throw new s4(eg.error,"failed to get token accounts owned by account ".concat(ei.toBase58()));return eg.result}async getParsedTokenAccountsByOwner(ei,eo,ea){let eu=[ei.toBase58()];"mint"in eo?eu.push({mint:eo.mint.toBase58()}):eu.push({programId:eo.programId.toBase58()});let ec=this._buildArgs(eu,ea,"jsonParsed"),ed=await this._rpcRequest("getTokenAccountsByOwner",ec),ef=nX(ed,lm);if("error"in ef)throw new s4(ef.error,"failed to get token accounts owned by account ".concat(ei.toBase58()));return ef.result}async getLargestAccounts(ei){let eo={...ei,commitment:ei&&ei.commitment||this.commitment},ea=eo.filter||eo.commitment?[eo]:[],eu=await this._rpcRequest("getLargestAccounts",ea),ec=nX(eu,ly);if("error"in ec)throw new s4(ec.error,"failed to get largest accounts");return ec.result}async getTokenLargestAccounts(ei,eo){let ea=this._buildArgs([ei.toBase58()],eo),eu=await this._rpcRequest("getTokenLargestAccounts",ea),ec=nX(eu,lh);if("error"in ec)throw new s4(ec.error,"failed to get token largest accounts");return ec.result}async getAccountInfoAndContext(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=this._buildArgs([ei.toBase58()],ea,"base64",eu),ed=await this._rpcRequest("getAccountInfo",ec),ef=nX(ed,aC(ic(lv)));if("error"in ef)throw new s4(ef.error,"failed to get info about account ".concat(ei.toBase58()));return ef.result}async getParsedAccountInfo(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=this._buildArgs([ei.toBase58()],ea,"jsonParsed",eu),ed=await this._rpcRequest("getAccountInfo",ec),ef=nX(ed,aC(ic(l_)));if("error"in ef)throw new s4(ef.error,"failed to get info about account ".concat(ei.toBase58()));return ef.result}async getAccountInfo(ei,eo){try{let ea=await this.getAccountInfoAndContext(ei,eo);return ea.value}catch(eo){throw Error("failed to get info about account "+ei.toBase58()+": "+eo)}}async getMultipleParsedAccounts(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=ei.map(ei=>ei.toBase58()),ed=this._buildArgs([ec],ea,"jsonParsed",eu),ef=await this._rpcRequest("getMultipleAccounts",ed),eh=nX(ef,aC(n8(ic(l_))));if("error"in eh)throw new s4(eh.error,"failed to get info for accounts ".concat(ec));return eh.result}async getMultipleAccountsInfoAndContext(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=ei.map(ei=>ei.toBase58()),ed=this._buildArgs([ec],ea,"base64",eu),ef=await this._rpcRequest("getMultipleAccounts",ed),eh=nX(ef,aC(n8(ic(lv))));if("error"in eh)throw new s4(eh.error,"failed to get info for accounts ".concat(ec));return eh.result}async getMultipleAccountsInfo(ei,eo){let ea=await this.getMultipleAccountsInfoAndContext(ei,eo);return ea.value}async getStakeActivation(ei,eo,ea){let{commitment:eu,config:ec}=a_(eo),ed=this._buildArgs([ei.toBase58()],eu,void 0,{...ec,epoch:null!=ea?ea:null==ec?void 0:ec.epoch}),ef=await this._rpcRequest("getStakeActivation",ed),eh=nX(ef,ak(lE));if("error"in eh)throw new s4(eh.error,"failed to get Stake Activation ".concat(ei.toBase58()));return eh.result}async getProgramAccounts(ei,eo){let{commitment:ea,config:eu}=a_(eo),{encoding:ec,...ed}=eu||{},ef=this._buildArgs([ei.toBase58()],ea,ec||"base64",ed),eh=await this._rpcRequest("getProgramAccounts",ef),eg=n8(lb),em=!0===ed.withContext?nX(eh,aC(eg)):nX(eh,ak(eg));if("error"in em)throw new s4(em.error,"failed to get accounts owned by program ".concat(ei.toBase58()));return em.result}async getParsedProgramAccounts(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=this._buildArgs([ei.toBase58()],ea,"jsonParsed",eu),ed=await this._rpcRequest("getProgramAccounts",ec),ef=nX(ed,ak(n8(lS)));if("error"in ef)throw new s4(ef.error,"failed to get accounts owned by program ".concat(ei.toBase58()));return ef.result}async confirmTransaction(ei,eo){let ea,eu;if("string"==typeof ei)ea=ei;else{var ec;let eo=ei;if(null===(ec=eo.abortSignal)||void 0===ec?void 0:ec.aborted)return Promise.reject(eo.abortSignal.reason);ea=eo.signature}try{eu=nD().decode(ea)}catch(ei){throw Error("signature must be base58 encoded: "+ea)}return(si(64===eu.length,"signature has invalid length"),"string"==typeof ei)?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:eo||this.commitment,signature:ea}):"lastValidBlockHeight"in ei?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:eo||this.commitment,strategy:ei}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:eo||this.commitment,strategy:ei})}getCancellationPromise(ei){return new Promise((eo,ea)=>{null!=ei&&(ei.aborted?ea(ei.reason):ei.addEventListener("abort",()=>{ea(ei.reason)}))})}getTransactionConfirmationPromise(ei){let eo,ea,{commitment:eu,signature:ec}=ei,ed=!1,ef=new Promise((ei,ef)=>{try{eo=this.onSignature(ec,(ea,eu)=>{eo=void 0;let ec={context:eu,value:ea};ei({__type:sh.PROCESSED,response:ec})},eu);let eh=new Promise(ei=>{null==eo?ei():ea=this._onSubscriptionStateChange(eo,eo=>{"subscribed"===eo&&ei()})});(async()=>{if(await eh,ed)return;let eo=await this.getSignatureStatus(ec);if(ed||null==eo)return;let{context:ea,value:eg}=eo;if(null!=eg){if(null==eg?void 0:eg.err)ef(eg.err);else{switch(eu){case"confirmed":case"single":case"singleGossip":if("processed"===eg.confirmationStatus)return;break;case"finalized":case"max":case"root":if("processed"===eg.confirmationStatus||"confirmed"===eg.confirmationStatus)return}ed=!0,ei({__type:sh.PROCESSED,response:{context:ea,value:eg}})}}})()}catch(ei){ef(ei)}}),eh=()=>{ea&&(ea(),ea=void 0),null!=eo&&(this.removeSignatureListener(eo),eo=void 0)};return{abortConfirmation:eh,confirmationPromise:ef}}async confirmTransactionUsingBlockHeightExceedanceStrategy(ei){let eo,{commitment:ea,strategy:{abortSignal:eu,lastValidBlockHeight:ec,signature:ed}}=ei,ef=!1,eh=new Promise(ei=>{let eo=async()=>{try{let ei=await this.getBlockHeight(ea);return ei}catch(ei){return-1}};(async()=>{let ea=await eo();if(!ef){for(;ea<=ec;)if(await sP(1e3),ef||(ea=await eo(),ef))return;ei({__type:sh.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:eg,confirmationPromise:em}=this.getTransactionConfirmationPromise({commitment:ea,signature:ed}),eb=this.getCancellationPromise(eu);try{let ei=await Promise.race([eb,em,eh]);if(ei.__type===sh.PROCESSED)eo=ei.response;else throw new oK(ed)}finally{ef=!0,eg()}return eo}async confirmTransactionUsingDurableNonceStrategy(ei){let eo,{commitment:ea,strategy:{abortSignal:eu,minContextSlot:ec,nonceAccountPubkey:ed,nonceValue:ef,signature:eh}}=ei,eg=!1,em=new Promise(ei=>{let eo=ef,eu=null,eh=async()=>{try{let{context:ei,value:eo}=await this.getNonceAndContext(ed,{commitment:ea,minContextSlot:ec});return eu=ei.slot,null==eo?void 0:eo.nonce}catch(ei){return eo}};(async()=>{if(eo=await eh(),!eg)for(;;){if(ef!==eo){ei({__type:sh.NONCE_INVALID,slotInWhichNonceDidAdvance:eu});return}if(await sP(2e3),eg||(eo=await eh(),eg))return}})()}),{abortConfirmation:eb,confirmationPromise:ew}=this.getTransactionConfirmationPromise({commitment:ea,signature:eh}),e_=this.getCancellationPromise(eu);try{let ei=await Promise.race([e_,ew,em]);if(ei.__type===sh.PROCESSED)eo=ei.response;else{let eu;for(;;){var eS;let eo=await this.getSignatureStatus(eh);if(null==eo)break;if(eo.context.slot<(null!==(eS=ei.slotInWhichNonceDidAdvance)&&void 0!==eS?eS:ec)){await sP(400);continue}eu=eo;break}if(null==eu?void 0:eu.value){let ei=ea||"finalized",{confirmationStatus:ec}=eu.value;switch(ei){case"processed":case"recent":if("processed"!==ec&&"confirmed"!==ec&&"finalized"!==ec)throw new o$(eh);break;case"confirmed":case"single":case"singleGossip":if("confirmed"!==ec&&"finalized"!==ec)throw new o$(eh);break;case"finalized":case"max":case"root":if("finalized"!==ec)throw new o$(eh);break;default:(ei=>{})(0)}eo={context:eu.context,value:{err:eu.value.err}}}else throw new o$(eh)}}finally{eg=!0,eb()}return eo}async confirmTransactionUsingLegacyTimeoutStrategy(ei){let eo,ea,{commitment:eu,signature:ec}=ei,ed=new Promise(ei=>{let ea=this._confirmTransactionInitialTimeout||6e4;switch(eu){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":ea=this._confirmTransactionInitialTimeout||3e4}eo=setTimeout(()=>ei({__type:sh.TIMED_OUT,timeoutMs:ea}),ea)}),{abortConfirmation:ef,confirmationPromise:eh}=this.getTransactionConfirmationPromise({commitment:eu,signature:ec});try{let ei=await Promise.race([eh,ed]);if(ei.__type===sh.PROCESSED)ea=ei.response;else throw new oZ(ec,ei.timeoutMs/1e3)}finally{clearTimeout(eo),ef()}return ea}async getClusterNodes(){let ei=await this._rpcRequest("getClusterNodes",[]),eo=nX(ei,ak(n8(lj)));if("error"in eo)throw new s4(eo.error,"failed to get cluster nodes");return eo.result}async getVoteAccounts(ei){let eo=this._buildArgs([],ei),ea=await this._rpcRequest("getVoteAccounts",eo),eu=nX(ea,lL);if("error"in eu)throw new s4(eu.error,"failed to get vote accounts");return eu.result}async getSlot(ei){let{commitment:eo,config:ea}=a_(ei),eu=this._buildArgs([],eo,void 0,ea),ec=await this._rpcRequest("getSlot",eu),ed=nX(ec,ak(ih()));if("error"in ed)throw new s4(ed.error,"failed to get slot");return ed.result}async getSlotLeader(ei){let{commitment:eo,config:ea}=a_(ei),eu=this._buildArgs([],eo,void 0,ea),ec=await this._rpcRequest("getSlotLeader",eu),ed=nX(ec,ak(iy()));if("error"in ed)throw new s4(ed.error,"failed to get slot leader");return ed.result}async getSlotLeaders(ei,eo){let ea=[ei,eo],eu=await this._rpcRequest("getSlotLeaders",ea),ec=nX(eu,ak(n8(af)));if("error"in ec)throw new s4(ec.error,"failed to get slot leaders");return ec.result}async getSignatureStatus(ei,eo){let{context:ea,value:eu}=await this.getSignatureStatuses([ei],eo);si(1===eu.length);let ec=eu[0];return{context:ea,value:ec}}async getSignatureStatuses(ei,eo){let ea=[ei];eo&&ea.push(eo);let eu=await this._rpcRequest("getSignatureStatuses",ea),ec=nX(eu,lU);if("error"in ec)throw new s4(ec.error,"failed to get signature status");return ec.result}async getTransactionCount(ei){let{commitment:eo,config:ea}=a_(ei),eu=this._buildArgs([],eo,void 0,ea),ec=await this._rpcRequest("getTransactionCount",eu),ed=nX(ec,ak(ih()));if("error"in ed)throw new s4(ed.error,"failed to get transaction count");return ed.result}async getTotalSupply(ei){let eo=await this.getSupply({commitment:ei,excludeNonCirculatingAccountsList:!0});return eo.value.total}async getInflationGovernor(ei){let eo=this._buildArgs([],ei),ea=await this._rpcRequest("getInflationGovernor",eo),eu=nX(ea,aZ);if("error"in eu)throw new s4(eu.error,"failed to get inflation");return eu.result}async getInflationReward(ei,eo,ea){let{commitment:eu,config:ec}=a_(ea),ed=this._buildArgs([ei.map(ei=>ei.toBase58())],eu,void 0,{...ec,epoch:null!=eo?eo:null==ec?void 0:ec.epoch}),ef=await this._rpcRequest("getInflationReward",ed),eh=nX(ef,aD);if("error"in eh)throw new s4(eh.error,"failed to get inflation reward");return eh.result}async getInflationRate(){let ei=await this._rpcRequest("getInflationRate",[]),eo=nX(ei,a$);if("error"in eo)throw new s4(eo.error,"failed to get inflation rate");return eo.result}async getEpochInfo(ei){let{commitment:eo,config:ea}=a_(ei),eu=this._buildArgs([],eo,void 0,ea),ec=await this._rpcRequest("getEpochInfo",eu),ed=nX(ec,aQ);if("error"in ed)throw new s4(ed.error,"failed to get epoch info");return ed.result}async getEpochSchedule(){let ei=await this._rpcRequest("getEpochSchedule",[]),eo=nX(ei,la);if("error"in eo)throw new s4(eo.error,"failed to get epoch schedule");let ea=eo.result;return new sX(ea.slotsPerEpoch,ea.leaderScheduleSlotOffset,ea.warmup,ea.firstNormalEpoch,ea.firstNormalSlot)}async getLeaderSchedule(){let ei=await this._rpcRequest("getLeaderSchedule",[]),eo=nX(ei,ll);if("error"in eo)throw new s4(eo.error,"failed to get leader schedule");return eo.result}async getMinimumBalanceForRentExemption(ei,eo){let ea=this._buildArgs([ei],eo),eu=await this._rpcRequest("getMinimumBalanceForRentExemption",ea),ec=nX(eu,lz);return"error"in ec?(console.warn("Unable to fetch minimum balance for rent exemption"),0):ec.result}async getRecentBlockhashAndContext(ei){let eo=this._buildArgs([],ei),ea=await this._rpcRequest("getRecentBlockhash",eo),eu=nX(ea,ug);if("error"in eu)throw new s4(eu.error,"failed to get recent blockhash");return eu.result}async getRecentPerformanceSamples(ei){let eo=await this._rpcRequest("getRecentPerformanceSamples",ei?[ei]:[]),ea=nX(eo,ub);if("error"in ea)throw new s4(ea.error,"failed to get recent performance samples");return ea.result}async getFeeCalculatorForBlockhash(ei,eo){let ea=this._buildArgs([ei],eo),eu=await this._rpcRequest("getFeeCalculatorForBlockhash",ea),ec=nX(eu,uw);if("error"in ec)throw new s4(ec.error,"failed to get fee calculator");let{context:ed,value:ef}=ec.result;return{context:ed,value:null!==ef?ef.feeCalculator:null}}async getFeeForMessage(ei,eo){let ea=oR(ei.serialize()).toString("base64"),eu=this._buildArgs([ea],eo),ec=await this._rpcRequest("getFeeForMessage",eu),ed=nX(ec,aC(ic(ih())));if("error"in ed)throw new s4(ed.error,"failed to get fee for message");if(null===ed.result)throw Error("invalid blockhash");return ed.result}async getRecentPrioritizationFees(ei){var eo;let ea=null==ei?void 0:null===(eo=ei.lockedWritableAccounts)||void 0===eo?void 0:eo.map(ei=>ei.toBase58()),eu=(null==ea?void 0:ea.length)?[ea]:[],ec=await this._rpcRequest("getRecentPrioritizationFees",eu),ed=nX(ec,aJ);if("error"in ed)throw new s4(ed.error,"failed to get recent prioritization fees");return ed.result}async getRecentBlockhash(ei){try{let eo=await this.getRecentBlockhashAndContext(ei);return eo.value}catch(ei){throw Error("failed to get recent blockhash: "+ei)}}async getLatestBlockhash(ei){try{let eo=await this.getLatestBlockhashAndContext(ei);return eo.value}catch(ei){throw Error("failed to get recent blockhash: "+ei)}}async getLatestBlockhashAndContext(ei){let{commitment:eo,config:ea}=a_(ei),eu=this._buildArgs([],eo,void 0,ea),ec=await this._rpcRequest("getLatestBlockhash",eu),ed=nX(ec,um);if("error"in ed)throw new s4(ed.error,"failed to get latest blockhash");return ed.result}async isBlockhashValid(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=this._buildArgs([ei],ea,void 0,eu),ed=await this._rpcRequest("isBlockhashValid",ec),ef=nX(ed,uy);if("error"in ef)throw new s4(ef.error,"failed to determine if the blockhash `"+ei+"`is valid");return ef.result}async getVersion(){let ei=await this._rpcRequest("getVersion",[]),eo=nX(ei,ak(aV));if("error"in eo)throw new s4(eo.error,"failed to get version");return eo.result}async getGenesisHash(){let ei=await this._rpcRequest("getGenesisHash",[]),eo=nX(ei,ak(iy()));if("error"in eo)throw new s4(eo.error,"failed to get genesis hash");return eo.result}async getBlock(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=this._buildArgsAtLeastConfirmed([ei],ea,void 0,eu),ed=await this._rpcRequest("getBlock",ec);try{switch(null==eu?void 0:eu.transactionDetails){case"accounts":{let ei=nX(ed,ui);if("error"in ei)throw ei.error;return ei.result}case"none":{let ei=nX(ed,ur);if("error"in ei)throw ei.error;return ei.result}default:{let ei=nX(ed,l7);if("error"in ei)throw ei.error;let{result:eo}=ei;return eo?{...eo,transactions:eo.transactions.map(ei=>{let{transaction:eo,meta:ea,version:eu}=ei;return{meta:ea,transaction:{...eo,message:aI(eu,eo.message)},version:eu}})}:null}}}catch(ei){throw new s4(ei,"failed to get confirmed block")}}async getParsedBlock(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=this._buildArgsAtLeastConfirmed([ei],ea,"jsonParsed",eu),ed=await this._rpcRequest("getBlock",ec);try{switch(null==eu?void 0:eu.transactionDetails){case"accounts":{let ei=nX(ed,ul);if("error"in ei)throw ei.error;return ei.result}case"none":{let ei=nX(ed,uu);if("error"in ei)throw ei.error;return ei.result}default:{let ei=nX(ed,uo);if("error"in ei)throw ei.error;return ei.result}}}catch(ei){throw new s4(ei,"failed to get block")}}async getBlockProduction(ei){let eo,ea;if("string"==typeof ei)ea=ei;else if(ei){let{commitment:eu,...ec}=ei;ea=eu,eo=ec}let eu=this._buildArgs([],ea,"base64",eo),ec=await this._rpcRequest("getBlockProduction",eu),ed=nX(ec,aH);if("error"in ed)throw new s4(ed.error,"failed to get block production information");return ed.result}async getTransaction(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=this._buildArgsAtLeastConfirmed([ei],ea,void 0,eu),ed=await this._rpcRequest("getTransaction",ec),ef=nX(ed,uf);if("error"in ef)throw new s4(ef.error,"failed to get transaction");let eh=ef.result;return eh?{...eh,transaction:{...eh.transaction,message:aI(eh.version,eh.transaction.message)}}:eh}async getParsedTransaction(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=this._buildArgsAtLeastConfirmed([ei],ea,"jsonParsed",eu),ed=await this._rpcRequest("getTransaction",ec),ef=nX(ed,uh);if("error"in ef)throw new s4(ef.error,"failed to get transaction");return ef.result}async getParsedTransactions(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=ei.map(ei=>{let eo=this._buildArgsAtLeastConfirmed([ei],ea,"jsonParsed",eu);return{methodName:"getTransaction",args:eo}}),ed=await this._rpcBatchRequest(ec),ef=ed.map(ei=>{let eo=nX(ei,uh);if("error"in eo)throw new s4(eo.error,"failed to get transactions");return eo.result});return ef}async getTransactions(ei,eo){let{commitment:ea,config:eu}=a_(eo),ec=ei.map(ei=>{let eo=this._buildArgsAtLeastConfirmed([ei],ea,void 0,eu);return{methodName:"getTransaction",args:eo}}),ed=await this._rpcBatchRequest(ec),ef=ed.map(ei=>{let eo=nX(ei,uf);if("error"in eo)throw new s4(eo.error,"failed to get transactions");let ea=eo.result;return ea?{...ea,transaction:{...ea.transaction,message:aI(ea.version,ea.transaction.message)}}:ea});return ef}async getConfirmedBlock(ei,eo){let ea=this._buildArgsAtLeastConfirmed([ei],eo),eu=await this._rpcRequest("getConfirmedBlock",ea),ec=nX(eu,uc);if("error"in ec)throw new s4(ec.error,"failed to get confirmed block");let ed=ec.result;if(!ed)throw Error("Confirmed block "+ei+" not found");let ef={...ed,transactions:ed.transactions.map(ei=>{let{transaction:eo,meta:ea}=ei,eu=new sa(eo.message);return{meta:ea,transaction:{...eo,message:eu}}})};return{...ef,transactions:ef.transactions.map(ei=>{let{transaction:eo,meta:ea}=ei;return{meta:ea,transaction:sv.populate(eo.message,eo.signatures)}})}}async getBlocks(ei,eo,ea){let eu=this._buildArgsAtLeastConfirmed(void 0!==eo?[ei,eo]:[ei],ea),ec=await this._rpcRequest("getBlocks",eu),ed=nX(ec,ak(n8(ih())));if("error"in ed)throw new s4(ed.error,"failed to get blocks");return ed.result}async getBlockSignatures(ei,eo){let ea=this._buildArgsAtLeastConfirmed([ei],eo,void 0,{transactionDetails:"signatures",rewards:!1}),eu=await this._rpcRequest("getBlock",ea),ec=nX(eu,ud);if("error"in ec)throw new s4(ec.error,"failed to get block");let ed=ec.result;if(!ed)throw Error("Block "+ei+" not found");return ed}async getConfirmedBlockSignatures(ei,eo){let ea=this._buildArgsAtLeastConfirmed([ei],eo,void 0,{transactionDetails:"signatures",rewards:!1}),eu=await this._rpcRequest("getConfirmedBlock",ea),ec=nX(eu,ud);if("error"in ec)throw new s4(ec.error,"failed to get confirmed block");let ed=ec.result;if(!ed)throw Error("Confirmed block "+ei+" not found");return ed}async getConfirmedTransaction(ei,eo){let ea=this._buildArgsAtLeastConfirmed([ei],eo),eu=await this._rpcRequest("getConfirmedTransaction",ea),ec=nX(eu,uf);if("error"in ec)throw new s4(ec.error,"failed to get transaction");let ed=ec.result;if(!ed)return ed;let ef=new sa(ed.transaction.message),eh=ed.transaction.signatures;return{...ed,transaction:sv.populate(ef,eh)}}async getParsedConfirmedTransaction(ei,eo){let ea=this._buildArgsAtLeastConfirmed([ei],eo,"jsonParsed"),eu=await this._rpcRequest("getConfirmedTransaction",ea),ec=nX(eu,uh);if("error"in ec)throw new s4(ec.error,"failed to get confirmed transaction");return ec.result}async getParsedConfirmedTransactions(ei,eo){let ea=ei.map(ei=>{let ea=this._buildArgsAtLeastConfirmed([ei],eo,"jsonParsed");return{methodName:"getConfirmedTransaction",args:ea}}),eu=await this._rpcBatchRequest(ea),ec=eu.map(ei=>{let eo=nX(ei,uh);if("error"in eo)throw new s4(eo.error,"failed to get confirmed transactions");return eo.result});return ec}async getConfirmedSignaturesForAddress(ei,eo,ea){let eu={},ec=await this.getFirstAvailableBlock();for(;!("until"in eu)&&!(--eo<=0)&&!(eo0&&(eu.until=ei.signatures[ei.signatures.length-1].toString())}catch(ei){if(ei instanceof Error&&ei.message.includes("skipped"))continue;throw ei}let ed=await this.getSlot("finalized");for(;!("before"in eu)&&!(++ea>ed);)try{let ei=await this.getConfirmedBlockSignatures(ea);ei.signatures.length>0&&(eu.before=ei.signatures[ei.signatures.length-1].toString())}catch(ei){if(ei instanceof Error&&ei.message.includes("skipped"))continue;throw ei}let ef=await this.getConfirmedSignaturesForAddress2(ei,eu);return ef.map(ei=>ei.signature)}async getConfirmedSignaturesForAddress2(ei,eo,ea){let eu=this._buildArgsAtLeastConfirmed([ei.toBase58()],ea,void 0,eo),ec=await this._rpcRequest("getConfirmedSignaturesForAddress2",eu),ed=nX(ec,lx);if("error"in ed)throw new s4(ed.error,"failed to get confirmed signatures for address");return ed.result}async getSignaturesForAddress(ei,eo,ea){let eu=this._buildArgsAtLeastConfirmed([ei.toBase58()],ea,void 0,eo),ec=await this._rpcRequest("getSignaturesForAddress",eu),ed=nX(ec,lA);if("error"in ed)throw new s4(ed.error,"failed to get signatures for address");return ed.result}async getAddressLookupTable(ei,eo){let{context:ea,value:eu}=await this.getAccountInfoAndContext(ei,eo),ec=null;return null!==eu&&(ec=new ao({key:ei,state:ao.deserialize(eu.data)})),{context:ea,value:ec}}async getNonceAndContext(ei,eo){let{context:ea,value:eu}=await this.getAccountInfoAndContext(ei,eo),ec=null;return null!==eu&&(ec=sR.fromAccountData(eu.data)),{context:ea,value:ec}}async getNonce(ei,eo){return await this.getNonceAndContext(ei,eo).then(ei=>ei.value).catch(eo=>{throw Error("failed to get nonce for account "+ei.toBase58()+": "+eo)})}async requestAirdrop(ei,eo){let ea=await this._rpcRequest("requestAirdrop",[ei.toBase58(),eo]),eu=nX(ea,u_);if("error"in eu)throw new s4(eu.error,"airdrop to ".concat(ei.toBase58()," failed"));return eu.result}async _blockhashWithExpiryBlockHeight(ei){if(!ei){for(;this._pollingBlockhash;)await sP(100);let ei=Date.now()-this._blockhashInfo.lastFetch,eo=ei>=av;if(null!==this._blockhashInfo.latestBlockhash&&!eo)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{let ei=Date.now(),eo=this._blockhashInfo.latestBlockhash,ea=eo?eo.blockhash:null;for(let ei=0;ei<50;ei++){let ei=await this.getLatestBlockhash("finalized");if(ea!==ei.blockhash)return this._blockhashInfo={latestBlockhash:ei,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},ei;await sP(sA/2)}throw Error("Unable to obtain a new blockhash after ".concat(Date.now()-ei,"ms"))}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(ei){let{commitment:eo,config:ea}=a_(ei),eu=this._buildArgs([],eo,"base64",ea),ec=await this._rpcRequest("getStakeMinimumDelegation",eu),ed=nX(ec,aC(ih()));if("error"in ed)throw new s4(ed.error,"failed to get stake minimum delegation");return ed.result}async simulateTransaction(ei,eo,ea){let eu;if("message"in ei){let eu=ei,ec=eu.serialize(),ed=eh.Buffer.from(ec).toString("base64");if(Array.isArray(eo)||void 0!==ea)throw Error("Invalid arguments");let ef=eo||{};ef.encoding="base64","commitment"in ef||(ef.commitment=this.commitment);let eg=[ed,ef],em=await this._rpcRequest("simulateTransaction",eg),eb=nX(em,aq);if("error"in eb)throw Error("failed to simulate transaction: "+eb.error.message);return eb.result}if(ei instanceof sv){let eo=ei;(eu=new sv).feePayer=eo.feePayer,eu.instructions=ei.instructions,eu.nonceInfo=eo.nonceInfo,eu.signatures=eo.signatures}else(eu=sv.populate(ei))._message=eu._json=void 0;if(void 0!==eo&&!Array.isArray(eo))throw Error("Invalid arguments");let ec=eo;if(eu.nonceInfo&&ec)eu.sign(...ec);else{let ei=this._disableBlockhashCaching;for(;;){let eo=await this._blockhashWithExpiryBlockHeight(ei);if(eu.lastValidBlockHeight=eo.lastValidBlockHeight,eu.recentBlockhash=eo.blockhash,!ec)break;if(eu.sign(...ec),!eu.signature)throw Error("!signature");let ea=eu.signature.toString("base64");if(this._blockhashInfo.simulatedSignatures.includes(ea)||this._blockhashInfo.transactionSignatures.includes(ea))ei=!0;else{this._blockhashInfo.simulatedSignatures.push(ea);break}}}let ed=eu._compile(),ef=ed.serialize(),eg=eu._serialize(ef),em=eg.toString("base64"),eb={encoding:"base64",commitment:this.commitment};if(ea){let ei=(Array.isArray(ea)?ea:ed.nonProgramIds()).map(ei=>ei.toBase58());eb.accounts={encoding:"base64",addresses:ei}}ec&&(eb.sigVerify=!0);let ew=[em,eb],e_=await this._rpcRequest("simulateTransaction",ew),eS=nX(e_,aq);if("error"in eS){let ei;if("data"in eS.error&&(ei=eS.error.data.logs)&&Array.isArray(ei)){let eo="\n ",ea=eo+ei.join(eo);console.error(eS.error.message,ea)}throw new s5("failed to simulate transaction: "+eS.error.message,ei)}return eS.result}async sendTransaction(ei,eo,ea){if("version"in ei){if(eo&&Array.isArray(eo))throw Error("Invalid arguments");let ea=ei.serialize();return await this.sendRawTransaction(ea,eo)}if(void 0===eo||!Array.isArray(eo))throw Error("Invalid arguments");let eu=eo;if(ei.nonceInfo)ei.sign(...eu);else{let eo=this._disableBlockhashCaching;for(;;){let ea=await this._blockhashWithExpiryBlockHeight(eo);if(ei.lastValidBlockHeight=ea.lastValidBlockHeight,ei.recentBlockhash=ea.blockhash,ei.sign(...eu),!ei.signature)throw Error("!signature");let ec=ei.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(ec))eo=!0;else{this._blockhashInfo.transactionSignatures.push(ec);break}}}let ec=ei.serialize();return await this.sendRawTransaction(ec,ea)}async sendRawTransaction(ei,eo){let ea=oR(ei).toString("base64"),eu=await this.sendEncodedTransaction(ea,eo);return eu}async sendEncodedTransaction(ei,eo){let ea={encoding:"base64"},eu=eo&&eo.skipPreflight,ec=eo&&eo.preflightCommitment||this.commitment;eo&&null!=eo.maxRetries&&(ea.maxRetries=eo.maxRetries),eo&&null!=eo.minContextSlot&&(ea.minContextSlot=eo.minContextSlot),eu&&(ea.skipPreflight=eu),ec&&(ea.preflightCommitment=ec);let ed=[ei,ea],ef=await this._rpcRequest("sendTransaction",ed),eh=nX(ef,uS);if("error"in eh){let ei;throw"data"in eh.error&&(ei=eh.error.data.logs),new s5("failed to send transaction: "+eh.error.message,ei)}return eh.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch(ei){}})()},5e3),this._updateSubscriptions()}_wsOnError(ei){this._rpcWebSocketConnected=!1,console.error("ws error:",ei.message)}_wsOnClose(ei){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3===ei){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(ei=>{let[eo,ea]=ei;this._setSubscription(eo,{...ea,state:"pending"})})}_setSubscription(ei,eo){var ea;let eu=null===(ea=this._subscriptionsByHash[ei])||void 0===ea?void 0:ea.state;if(this._subscriptionsByHash[ei]=eo,eu!==eo.state){let ea=this._subscriptionStateChangeCallbacksByHash[ei];ea&&ea.forEach(ei=>{try{ei(eo.state)}catch(ei){}})}}_onSubscriptionStateChange(ei,eo){var ea,eu;let ec=this._subscriptionHashByClientSubscriptionId[ei];if(null==ec)return()=>{};let ed=(ea=this._subscriptionStateChangeCallbacksByHash)[eu=ec]||(ea[eu]=new Set);return ed.add(eo),()=>{ed.delete(eo),0===ed.size&&delete this._subscriptionStateChangeCallbacksByHash[ec]}}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(ei){ei instanceof Error&&console.log("Error when closing socket connection: ".concat(ei.message))}},500));return}if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}let ei=this._rpcWebSocketGeneration,eo=()=>ei===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async ei=>{let ea=this._subscriptionsByHash[ei];if(void 0!==ea)switch(ea.state){case"pending":case"unsubscribed":if(0===ea.callbacks.size){delete this._subscriptionsByHash[ei],"unsubscribed"===ea.state&&delete this._subscriptionCallbacksByServerSubscriptionId[ea.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{let{args:eu,method:ec}=ea;try{this._setSubscription(ei,{...ea,state:"subscribing"});let eo=await this._rpcWebSocket.call(ec,eu);this._setSubscription(ei,{...ea,serverSubscriptionId:eo,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[eo]=ea.callbacks,await this._updateSubscriptions()}catch(ed){if(ed instanceof Error&&console.error("".concat(ec," error for argument"),eu,ed.message),!eo())return;this._setSubscription(ei,{...ea,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":0===ea.callbacks.size&&await(async()=>{let{serverSubscriptionId:eu,unsubscribeMethod:ec}=ea;if(this._subscriptionsAutoDisposedByRpc.has(eu))this._subscriptionsAutoDisposedByRpc.delete(eu);else{this._setSubscription(ei,{...ea,state:"unsubscribing"}),this._setSubscription(ei,{...ea,state:"unsubscribing"});try{await this._rpcWebSocket.call(ec,[eu])}catch(eu){if(eu instanceof Error&&console.error("".concat(ec," error:"),eu.message),!eo())return;this._setSubscription(ei,{...ea,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(ei,{...ea,state:"unsubscribed"}),await this._updateSubscriptions()})()}}))}_handleServerNotification(ei,eo){let ea=this._subscriptionCallbacksByServerSubscriptionId[ei];void 0!==ea&&ea.forEach(ei=>{try{ei(...eo)}catch(ei){console.error(ei)}})}_wsOnAccountNotification(ei){let{result:eo,subscription:ea}=nX(ei,lT);this._handleServerNotification(ea,[eo.value,eo.context])}_makeSubscription(ei,eo){let ea=this._nextClientSubscriptionId++,eu=sZ([ei.method,eo],!0),ec=this._subscriptionsByHash[eu];return void 0===ec?this._subscriptionsByHash[eu]={...ei,args:eo,callbacks:new Set([ei.callback]),state:"pending"}:ec.callbacks.add(ei.callback),this._subscriptionHashByClientSubscriptionId[ea]=eu,this._subscriptionDisposeFunctionsByClientSubscriptionId[ea]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[ea],delete this._subscriptionHashByClientSubscriptionId[ea];let eo=this._subscriptionsByHash[eu];si(void 0!==eo,"Could not find a `Subscription` when tearing down client subscription #".concat(ea)),eo.callbacks.delete(ei.callback),await this._updateSubscriptions()},this._updateSubscriptions(),ea}onAccountChange(ei,eo,ea){let eu=this._buildArgs([ei.toBase58()],ea||this._commitment||"finalized","base64");return this._makeSubscription({callback:eo,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},eu)}async removeAccountChangeListener(ei){await this._unsubscribeClientSubscription(ei,"account change")}_wsOnProgramAccountNotification(ei){let{result:eo,subscription:ea}=nX(ei,lC);this._handleServerNotification(ea,[{accountId:eo.value.pubkey,accountInfo:eo.value.account},eo.context])}onProgramAccountChange(ei,eo,ea,eu){let ec=this._buildArgs([ei.toBase58()],ea||this._commitment||"finalized","base64",eu?{filters:eu}:void 0);return this._makeSubscription({callback:eo,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},ec)}async removeProgramAccountChangeListener(ei){await this._unsubscribeClientSubscription(ei,"program account change")}onLogs(ei,eo,ea){let eu=this._buildArgs(["object"==typeof ei?{mentions:[ei.toString()]}:ei],ea||this._commitment||"finalized");return this._makeSubscription({callback:eo,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},eu)}async removeOnLogsListener(ei){await this._unsubscribeClientSubscription(ei,"logs")}_wsOnLogsNotification(ei){let{result:eo,subscription:ea}=nX(ei,ux);this._handleServerNotification(ea,[eo.value,eo.context])}_wsOnSlotNotification(ei){let{result:eo,subscription:ea}=nX(ei,lI);this._handleServerNotification(ea,[eo])}onSlotChange(ei){return this._makeSubscription({callback:ei,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(ei){await this._unsubscribeClientSubscription(ei,"slot change")}_wsOnSlotUpdatesNotification(ei){let{result:eo,subscription:ea}=nX(ei,lD);this._handleServerNotification(ea,[eo])}onSlotUpdate(ei){return this._makeSubscription({callback:ei,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(ei){await this._unsubscribeClientSubscription(ei,"slot update")}async _unsubscribeClientSubscription(ei,eo){let ea=this._subscriptionDisposeFunctionsByClientSubscriptionId[ei];ea?await ea():console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(ei,"` for '").concat(eo,"' events ")+"could not be found.")}_buildArgs(ei,eo,ea,eu){let ec=eo||this._commitment;if(ec||ea||eu){let eo={};ea&&(eo.encoding=ea),ec&&(eo.commitment=ec),eu&&(eo=Object.assign(eo,eu)),ei.push(eo)}return ei}_buildArgsAtLeastConfirmed(ei,eo,ea,eu){let ec=eo||this._commitment;if(ec&&!["confirmed","finalized"].includes(ec))throw Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(ei,eo,ea,eu)}_wsOnSignatureNotification(ei){let{result:eo,subscription:ea}=nX(ei,lN);"receivedSignature"!==eo.value&&this._subscriptionsAutoDisposedByRpc.add(ea),this._handleServerNotification(ea,"receivedSignature"===eo.value?[{type:"received"},eo.context]:[{type:"status",result:eo.value},eo.context])}onSignature(ei,eo,ea){let eu=this._buildArgs([ei],ea||this._commitment||"finalized"),ec=this._makeSubscription({callback:(ei,ea)=>{if("status"===ei.type){eo(ei.result,ea);try{this.removeSignatureListener(ec)}catch(ei){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},eu);return ec}onSignatureWithOptions(ei,eo,ea){let{commitment:eu,...ec}={...ea,commitment:ea&&ea.commitment||this._commitment||"finalized"},ed=this._buildArgs([ei],eu,void 0,ec),ef=this._makeSubscription({callback:(ei,ea)=>{eo(ei,ea);try{this.removeSignatureListener(ef)}catch(ei){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},ed);return ef}async removeSignatureListener(ei){await this._unsubscribeClientSubscription(ei,"signature result")}_wsOnRootNotification(ei){let{result:eo,subscription:ea}=nX(ei,lM);this._handleServerNotification(ea,[eo])}onRootChange(ei){return this._makeSubscription({callback:ei,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(ei){await this._unsubscribeClientSubscription(ei,"root change")}constructor(ei,eo){let ea,eu,ec,ed,ef,eh;this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{let ei={};return async eo=>{var ea;let{commitment:eu,config:ec}=a_(eo),ed=this._buildArgs([],eu,void 0,ec),ef=sZ(ed);return ei[ef]=null!==(ea=ei[ef])&&void 0!==ea?ea:(async()=>{try{let ei=await this._rpcRequest("getBlockHeight",ed),eo=nX(ei,ak(ih()));if("error"in eo)throw new s4(eo.error,"failed to get block height information");return eo.result}finally{delete ei[ef]}})(),await ei[ef]}})(),eo&&"string"==typeof eo?this._commitment=eo:eo&&(this._commitment=eo.commitment,this._confirmTransactionInitialTimeout=eo.confirmTransactionInitialTimeout,ea=eo.wsEndpoint,eu=eo.httpHeaders,ec=eo.fetch,ed=eo.fetchMiddleware,ef=eo.disableRetryOnRateLimit,eh=eo.httpAgent),this._rpcEndpoint=ab(ei),this._rpcWsEndpoint=ea||ac(ei),this._rpcClient=aW(ei,eu,ec,ed,ef,eh),this._rpcRequest=aK(this._rpcClient),this._rpcBatchRequest=aY(this._rpcClient),this._rpcWebSocket=new s8(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}}class uk{static generate(){return new uk(oP())}static fromSecretKey(ei,eo){if(64!==ei.byteLength)throw Error("bad secret key size");let ea=ei.slice(32,64);if(!eo||!eo.skipValidation){let eo=ei.slice(0,32),eu=oD(eo);for(let ei=0;ei<32;ei++)if(ea[ei]!==eu[ei])throw Error("provided secretKey is invalid")}return new uk({publicKey:ea,secretKey:ei})}static fromSeed(ei){let eo=oD(ei),ea=new Uint8Array(64);return ea.set(ei),ea.set(eo,32),new uk({publicKey:eo,secretKey:ea})}get publicKey(){return new oV(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}constructor(ei){this._keypair=void 0,this._keypair=null!=ei?ei:oP()}}let uC=Object.freeze({CreateLookupTable:{index:0,layout:nz.n_([nz.Jq("instruction"),sB("recentSlot"),nz.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:nz.n_([nz.Jq("instruction")])},ExtendLookupTable:{index:2,layout:nz.n_([nz.Jq("instruction"),sB(),nz.A9(oQ(),nz.cv(nz.Jq(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:nz.n_([nz.Jq("instruction")])},CloseLookupTable:{index:4,layout:nz.n_([nz.Jq("instruction")])}});class uO{static createLookupTable(ei){let[eo,ea]=oV.findProgramAddressSync([ei.authority.toBuffer(),(0,nG.k$)(BigInt(ei.recentSlot),8)],this.programId),eu=uC.CreateLookupTable,ec=sD(eu,{recentSlot:BigInt(ei.recentSlot),bumpSeed:ea}),ed=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ei.authority,isSigner:!0,isWritable:!1},{pubkey:ei.payer,isSigner:!0,isWritable:!0},{pubkey:sG.programId,isSigner:!1,isWritable:!1}];return[new sm({programId:this.programId,keys:ed,data:ec}),eo]}static freezeLookupTable(ei){let eo=uC.FreezeLookupTable,ea=sD(eo),eu=[{pubkey:ei.lookupTable,isSigner:!1,isWritable:!0},{pubkey:ei.authority,isSigner:!0,isWritable:!1}];return new sm({programId:this.programId,keys:eu,data:ea})}static extendLookupTable(ei){let eo=uC.ExtendLookupTable,ea=sD(eo,{addresses:ei.addresses.map(ei=>ei.toBytes())}),eu=[{pubkey:ei.lookupTable,isSigner:!1,isWritable:!0},{pubkey:ei.authority,isSigner:!0,isWritable:!1}];return ei.payer&&eu.push({pubkey:ei.payer,isSigner:!0,isWritable:!0},{pubkey:sG.programId,isSigner:!1,isWritable:!1}),new sm({programId:this.programId,keys:eu,data:ea})}static deactivateLookupTable(ei){let eo=uC.DeactivateLookupTable,ea=sD(eo),eu=[{pubkey:ei.lookupTable,isSigner:!1,isWritable:!0},{pubkey:ei.authority,isSigner:!0,isWritable:!1}];return new sm({programId:this.programId,keys:eu,data:ea})}static closeLookupTable(ei){let eo=uC.CloseLookupTable,ea=sD(eo),eu=[{pubkey:ei.lookupTable,isSigner:!1,isWritable:!0},{pubkey:ei.authority,isSigner:!0,isWritable:!1},{pubkey:ei.recipient,isSigner:!1,isWritable:!0}];return new sm({programId:this.programId,keys:eu,data:ea})}constructor(){}}uO.programId=new oV("AddressLookupTab1e1111111111111111111111111");let uI=Object.freeze({RequestUnits:{index:0,layout:nz.n_([nz.u8("instruction"),nz.Jq("units"),nz.Jq("additionalFee")])},RequestHeapFrame:{index:1,layout:nz.n_([nz.u8("instruction"),nz.Jq("bytes")])},SetComputeUnitLimit:{index:2,layout:nz.n_([nz.u8("instruction"),nz.Jq("units")])},SetComputeUnitPrice:{index:3,layout:nz.n_([nz.u8("instruction"),sB("microLamports")])}});class uP{static requestUnits(ei){let eo=uI.RequestUnits,ea=sD(eo,ei);return new sm({keys:[],programId:this.programId,data:ea})}static requestHeapFrame(ei){let eo=uI.RequestHeapFrame,ea=sD(eo,ei);return new sm({keys:[],programId:this.programId,data:ea})}static setComputeUnitLimit(ei){let eo=uI.SetComputeUnitLimit,ea=sD(eo,ei);return new sm({keys:[],programId:this.programId,data:ea})}static setComputeUnitPrice(ei){let eo=uI.SetComputeUnitPrice,ea=sD(eo,{microLamports:BigInt(ei.microLamports)});return new sm({keys:[],programId:this.programId,data:ea})}constructor(){}}uP.programId=new oV("ComputeBudget111111111111111111111111111111");let uD=64,uN=32,uM=64,uj=nz.n_([nz.u8("numSignatures"),nz.u8("padding"),nz.KB("signatureOffset"),nz.KB("signatureInstructionIndex"),nz.KB("publicKeyOffset"),nz.KB("publicKeyInstructionIndex"),nz.KB("messageDataOffset"),nz.KB("messageDataSize"),nz.KB("messageInstructionIndex")]);class uR{static createInstructionWithPublicKey(ei){let{publicKey:eo,message:ea,signature:eu,instructionIndex:ec}=ei;si(eo.length===uN,"Public Key must be ".concat(uN," bytes but received ").concat(eo.length," bytes")),si(eu.length===uM,"Signature must be ".concat(uM," bytes but received ").concat(eu.length," bytes"));let ed=uj.span,ef=ed+eo.length,eg=ef+eu.length,em=1,eb=eh.Buffer.alloc(eg+ea.length),ew=null==ec?65535:ec;return uj.encode({numSignatures:em,padding:0,signatureOffset:ef,signatureInstructionIndex:ew,publicKeyOffset:ed,publicKeyInstructionIndex:ew,messageDataOffset:eg,messageDataSize:ea.length,messageInstructionIndex:ew},eb),eb.fill(eo,ed),eb.fill(eu,ef),eb.fill(ea,eg),new sm({keys:[],programId:uR.programId,data:eb})}static createInstructionWithPrivateKey(ei){let{privateKey:eo,message:ea,instructionIndex:eu}=ei;si(eo.length===uD,"Private key must be ".concat(uD," bytes but received ").concat(eo.length," bytes"));try{let ei=uk.fromSecretKey(eo),ec=ei.publicKey.toBytes(),ed=oM(ea,ei.secretKey);return this.createInstructionWithPublicKey({publicKey:ec,message:ea,signature:ed,instructionIndex:eu})}catch(ei){throw Error("Error creating instruction; ".concat(ei))}}constructor(){}}uR.programId=new oV("Ed25519SigVerify111111111111111111111111111");let uL=(ei,eo)=>{let ea=ow.sign(ei,eo);return[ea.toCompactRawBytes(),ea.recovery]};ow.utils.isValidPrivateKey;let uF=ow.getPublicKey,uB=32,uU=20,uz=64,uG=11,uV=nz.n_([nz.u8("numSignatures"),nz.KB("signatureOffset"),nz.u8("signatureInstructionIndex"),nz.KB("ethAddressOffset"),nz.u8("ethAddressInstructionIndex"),nz.KB("messageDataOffset"),nz.KB("messageDataSize"),nz.u8("messageInstructionIndex"),nz.Ik(20,"ethAddress"),nz.Ik(64,"signature"),nz.u8("recoveryId")]);class uq{static publicKeyToEthAddress(ei){si(ei.length===uz,"Public key must be ".concat(uz," bytes but received ").concat(ei.length," bytes"));try{return eh.Buffer.from(iW(oR(ei))).slice(-uU)}catch(ei){throw Error("Error constructing Ethereum address: ".concat(ei))}}static createInstructionWithPublicKey(ei){let{publicKey:eo,message:ea,signature:eu,recoveryId:ec,instructionIndex:ed}=ei;return uq.createInstructionWithEthAddress({ethAddress:uq.publicKeyToEthAddress(eo),message:ea,signature:eu,recoveryId:ec,instructionIndex:ed})}static createInstructionWithEthAddress(ei){let eo;let{ethAddress:ea,message:eu,signature:ec,recoveryId:ed,instructionIndex:ef=0}=ei;si((eo="string"==typeof ea?ea.startsWith("0x")?eh.Buffer.from(ea.substr(2),"hex"):eh.Buffer.from(ea,"hex"):ea).length===uU,"Address must be ".concat(uU," bytes but received ").concat(eo.length," bytes"));let eg=1+uG,em=eg,eb=eg+eo.length,ew=eb+ec.length+1,e_=1,eS=eh.Buffer.alloc(uV.span+eu.length);return uV.encode({numSignatures:e_,signatureOffset:eb,signatureInstructionIndex:ef,ethAddressOffset:em,ethAddressInstructionIndex:ef,messageDataOffset:ew,messageDataSize:eu.length,messageInstructionIndex:ef,signature:oR(ec),ethAddress:oR(eo),recoveryId:ed},eS),eS.fill(oR(eu),uV.span),new sm({keys:[],programId:uq.programId,data:eS})}static createInstructionWithPrivateKey(ei){let{privateKey:eo,message:ea,instructionIndex:eu}=ei;si(eo.length===uB,"Private key must be ".concat(uB," bytes but received ").concat(eo.length," bytes"));try{let ei=oR(eo),ec=uF(ei,!1).slice(1),ed=eh.Buffer.from(iW(oR(ea))),[ef,eg]=uL(ed,ei);return this.createInstructionWithPublicKey({publicKey:ec,message:ea,signature:ef,recoveryId:eg,instructionIndex:eu})}catch(ei){throw Error("Error creating instruction; ".concat(ei))}}constructor(){}}uq.programId=new oV("KeccakSecp256k11111111111111111111111111111");let uH=new oV("StakeConfig11111111111111111111111111111111");class uW{constructor(ei,eo,ea){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=ei,this.epoch=eo,this.custodian=ea}}ed=uW,uW.default=new ed(0,0,oV.default);let uK=Object.freeze({Initialize:{index:0,layout:nz.n_([nz.Jq("instruction"),o3(),o5()])},Authorize:{index:1,layout:nz.n_([nz.Jq("instruction"),oQ("newAuthorized"),nz.Jq("stakeAuthorizationType")])},Delegate:{index:2,layout:nz.n_([nz.Jq("instruction")])},Split:{index:3,layout:nz.n_([nz.Jq("instruction"),nz.gM("lamports")])},Withdraw:{index:4,layout:nz.n_([nz.Jq("instruction"),nz.gM("lamports")])},Deactivate:{index:5,layout:nz.n_([nz.Jq("instruction")])},Merge:{index:7,layout:nz.n_([nz.Jq("instruction")])},AuthorizeWithSeed:{index:8,layout:nz.n_([nz.Jq("instruction"),oQ("newAuthorized"),nz.Jq("stakeAuthorizationType"),o0("authoritySeed"),oQ("authorityOwner")])}});Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class uY{static initialize(ei){let{stakePubkey:eo,authorized:ea,lockup:eu}=ei,ec=eu||uW.default,ed=uK.Initialize,ef=sD(ed,{authorized:{staker:oR(ea.staker.toBuffer()),withdrawer:oR(ea.withdrawer.toBuffer())},lockup:{unixTimestamp:ec.unixTimestamp,epoch:ec.epoch,custodian:oR(ec.custodian.toBuffer())}}),eh={keys:[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:sC,isSigner:!1,isWritable:!1}],programId:this.programId,data:ef};return new sm(eh)}static createAccountWithSeed(ei){let eo=new sv;eo.add(sG.createAccountWithSeed({fromPubkey:ei.fromPubkey,newAccountPubkey:ei.stakePubkey,basePubkey:ei.basePubkey,seed:ei.seed,lamports:ei.lamports,space:this.space,programId:this.programId}));let{stakePubkey:ea,authorized:eu,lockup:ec}=ei;return eo.add(this.initialize({stakePubkey:ea,authorized:eu,lockup:ec}))}static createAccount(ei){let eo=new sv;eo.add(sG.createAccount({fromPubkey:ei.fromPubkey,newAccountPubkey:ei.stakePubkey,lamports:ei.lamports,space:this.space,programId:this.programId}));let{stakePubkey:ea,authorized:eu,lockup:ec}=ei;return eo.add(this.initialize({stakePubkey:ea,authorized:eu,lockup:ec}))}static delegate(ei){let{stakePubkey:eo,authorizedPubkey:ea,votePubkey:eu}=ei,ec=uK.Delegate,ed=sD(ec);return new sv().add({keys:[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:eu,isSigner:!1,isWritable:!1},{pubkey:sT,isSigner:!1,isWritable:!1},{pubkey:sO,isSigner:!1,isWritable:!1},{pubkey:uH,isSigner:!1,isWritable:!1},{pubkey:ea,isSigner:!0,isWritable:!1}],programId:this.programId,data:ed})}static authorize(ei){let{stakePubkey:eo,authorizedPubkey:ea,newAuthorizedPubkey:eu,stakeAuthorizationType:ec,custodianPubkey:ed}=ei,ef=uK.Authorize,eh=sD(ef,{newAuthorized:oR(eu.toBuffer()),stakeAuthorizationType:ec.index}),eg=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:sT,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!0,isWritable:!1}];return ed&&eg.push({pubkey:ed,isSigner:!1,isWritable:!1}),new sv().add({keys:eg,programId:this.programId,data:eh})}static authorizeWithSeed(ei){let{stakePubkey:eo,authorityBase:ea,authoritySeed:eu,authorityOwner:ec,newAuthorizedPubkey:ed,stakeAuthorizationType:ef,custodianPubkey:eh}=ei,eg=uK.AuthorizeWithSeed,em=sD(eg,{newAuthorized:oR(ed.toBuffer()),stakeAuthorizationType:ef.index,authoritySeed:eu,authorityOwner:oR(ec.toBuffer())}),eb=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!0,isWritable:!1},{pubkey:sT,isSigner:!1,isWritable:!1}];return eh&&eb.push({pubkey:eh,isSigner:!1,isWritable:!1}),new sv().add({keys:eb,programId:this.programId,data:em})}static splitInstruction(ei){let{stakePubkey:eo,authorizedPubkey:ea,splitStakePubkey:eu,lamports:ec}=ei,ed=uK.Split,ef=sD(ed,{lamports:ec});return new sm({keys:[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:eu,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!0,isWritable:!1}],programId:this.programId,data:ef})}static split(ei){let eo=new sv;return eo.add(sG.createAccount({fromPubkey:ei.authorizedPubkey,newAccountPubkey:ei.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),eo.add(this.splitInstruction(ei))}static splitWithSeed(ei){let{stakePubkey:eo,authorizedPubkey:ea,splitStakePubkey:eu,basePubkey:ec,seed:ed,lamports:ef}=ei,eh=new sv;return eh.add(sG.allocate({accountPubkey:eu,basePubkey:ec,seed:ed,space:this.space,programId:this.programId})),eh.add(this.splitInstruction({stakePubkey:eo,authorizedPubkey:ea,splitStakePubkey:eu,lamports:ef}))}static merge(ei){let{stakePubkey:eo,sourceStakePubKey:ea,authorizedPubkey:eu}=ei,ec=uK.Merge,ed=sD(ec);return new sv().add({keys:[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!0},{pubkey:sT,isSigner:!1,isWritable:!1},{pubkey:sO,isSigner:!1,isWritable:!1},{pubkey:eu,isSigner:!0,isWritable:!1}],programId:this.programId,data:ed})}static withdraw(ei){let{stakePubkey:eo,authorizedPubkey:ea,toPubkey:eu,lamports:ec,custodianPubkey:ed}=ei,ef=uK.Withdraw,eh=sD(ef,{lamports:ec}),eg=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:eu,isSigner:!1,isWritable:!0},{pubkey:sT,isSigner:!1,isWritable:!1},{pubkey:sO,isSigner:!1,isWritable:!1},{pubkey:ea,isSigner:!0,isWritable:!1}];return ed&&eg.push({pubkey:ed,isSigner:!1,isWritable:!1}),new sv().add({keys:eg,programId:this.programId,data:eh})}static deactivate(ei){let{stakePubkey:eo,authorizedPubkey:ea}=ei,eu=uK.Deactivate,ec=sD(eu);return new sv().add({keys:[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:sT,isSigner:!1,isWritable:!1},{pubkey:ea,isSigner:!0,isWritable:!1}],programId:this.programId,data:ec})}constructor(){}}uY.programId=new oV("Stake11111111111111111111111111111111111111"),uY.space=200;let uZ=Object.freeze({InitializeAccount:{index:0,layout:nz.n_([nz.Jq("instruction"),o4()])},Authorize:{index:1,layout:nz.n_([nz.Jq("instruction"),oQ("newAuthorized"),nz.Jq("voteAuthorizationType")])},Withdraw:{index:3,layout:nz.n_([nz.Jq("instruction"),nz.gM("lamports")])},AuthorizeWithSeed:{index:10,layout:nz.n_([nz.Jq("instruction"),o6()])}});Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class u${static initializeAccount(ei){let{votePubkey:eo,nodePubkey:ea,voteInit:eu}=ei,ec=uZ.InitializeAccount,ed=sD(ec,{voteInit:{nodePubkey:oR(eu.nodePubkey.toBuffer()),authorizedVoter:oR(eu.authorizedVoter.toBuffer()),authorizedWithdrawer:oR(eu.authorizedWithdrawer.toBuffer()),commission:eu.commission}}),ef={keys:[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:sC,isSigner:!1,isWritable:!1},{pubkey:sT,isSigner:!1,isWritable:!1},{pubkey:ea,isSigner:!0,isWritable:!1}],programId:this.programId,data:ed};return new sm(ef)}static createAccount(ei){let eo=new sv;return eo.add(sG.createAccount({fromPubkey:ei.fromPubkey,newAccountPubkey:ei.votePubkey,lamports:ei.lamports,space:this.space,programId:this.programId})),eo.add(this.initializeAccount({votePubkey:ei.votePubkey,nodePubkey:ei.voteInit.nodePubkey,voteInit:ei.voteInit}))}static authorize(ei){let{votePubkey:eo,authorizedPubkey:ea,newAuthorizedPubkey:eu,voteAuthorizationType:ec}=ei,ed=uZ.Authorize,ef=sD(ed,{newAuthorized:oR(eu.toBuffer()),voteAuthorizationType:ec.index}),eh=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:sT,isSigner:!1,isWritable:!1},{pubkey:ea,isSigner:!0,isWritable:!1}];return new sv().add({keys:eh,programId:this.programId,data:ef})}static authorizeWithSeed(ei){let{currentAuthorityDerivedKeyBasePubkey:eo,currentAuthorityDerivedKeyOwnerPubkey:ea,currentAuthorityDerivedKeySeed:eu,newAuthorizedPubkey:ec,voteAuthorizationType:ed,votePubkey:ef}=ei,eh=uZ.AuthorizeWithSeed,eg=sD(eh,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:oR(ea.toBuffer()),currentAuthorityDerivedKeySeed:eu,newAuthorized:oR(ec.toBuffer()),voteAuthorizationType:ed.index}}),em=[{pubkey:ef,isSigner:!1,isWritable:!0},{pubkey:sT,isSigner:!1,isWritable:!1},{pubkey:eo,isSigner:!0,isWritable:!1}];return new sv().add({keys:em,programId:this.programId,data:eg})}static withdraw(ei){let{votePubkey:eo,authorizedWithdrawerPubkey:ea,lamports:eu,toPubkey:ec}=ei,ed=uZ.Withdraw,ef=sD(ed,{lamports:eu}),eh=[{pubkey:eo,isSigner:!1,isWritable:!0},{pubkey:ec,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!0,isWritable:!1}];return new sv().add({keys:eh,programId:this.programId,data:ef})}static safeWithdraw(ei,eo,ea){if(ei.lamports>eo-ea)throw Error("Withdraw will leave vote account with insuffcient funds.");return u$.withdraw(ei)}constructor(){}}u$.programId=new oV("Vote111111111111111111111111111111111111111"),u$.space=3731,new oV("Va1idator1nfo111111111111111111111111111111"),ib({name:iy(),website:ip(iy()),details:ip(iy()),keybaseUsername:ip(iy())}),new oV("Vote111111111111111111111111111111111111111"),nz.n_([oQ("nodePubkey"),oQ("authorizedWithdrawer"),nz.u8("commission"),nz._O(),nz.A9(nz.n_([nz._O("slot"),nz.Jq("confirmationCount")]),nz.cv(nz.Jq(),-8),"votes"),nz.u8("rootSlotValid"),nz._O("rootSlot"),nz._O(),nz.A9(nz.n_([nz._O("epoch"),oQ("authorizedVoter")]),nz.cv(nz.Jq(),-8),"authorizedVoters"),nz.n_([nz.A9(nz.n_([oQ("authorizedPubkey"),nz._O("epochOfLastAuthorizedSwitch"),nz._O("targetEpoch")]),32,"buf"),nz._O("idx"),nz.u8("isEmpty")],"priorVoters"),nz._O(),nz.A9(nz.n_([nz._O("epoch"),nz._O("credits"),nz._O("prevCredits")]),nz.cv(nz.Jq(),-8),"epochCredits"),nz.n_([nz._O("slot"),nz._O("timestamp")],"lastTimestamp")]);let uJ={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function uQ(ei,eo){let ea=!1===eo?"http":"https";if(!ei)return uJ[ea].devnet;let eu=uJ[ea][ei];if(!eu)throw Error("Unknown ".concat(ea," cluster: ").concat(ei));return eu}},18261:function(ei,eo,ea){"use strict";var eu=ea(58162),ec="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";ei.exports=eu(ec)},13991:function(ei,eo){"use strict";var ea;Object.defineProperty(eo,"__esModule",{value:!0}),function(ei,eo){for(var ea in eo)Object.defineProperty(ei,ea,{enumerable:!0,get:eo[ea]})}(eo,{PrefetchKind:function(){return ea},ACTION_REFRESH:function(){return eu},ACTION_NAVIGATE:function(){return ec},ACTION_RESTORE:function(){return ed},ACTION_SERVER_PATCH:function(){return ef},ACTION_PREFETCH:function(){return eh},ACTION_FAST_REFRESH:function(){return eg},ACTION_SERVER_ACTION:function(){return em}});let eu="refresh",ec="navigate",ed="restore",ef="server-patch",eh="prefetch",eg="fast-refresh",em="server-action";!function(ei){ei.AUTO="auto",ei.FULL="full",ei.TEMPORARY="temporary"}(ea||(ea={})),("function"==typeof eo.default||"object"==typeof eo.default&&null!==eo.default)&&void 0===eo.default.__esModule&&(Object.defineProperty(eo.default,"__esModule",{value:!0}),Object.assign(eo.default,eo),ei.exports=eo.default)},81516:function(ei,eo){"use strict";function ea(ei,eo,ea,eu){return!1}Object.defineProperty(eo,"__esModule",{value:!0}),Object.defineProperty(eo,"getDomainLocale",{enumerable:!0,get:function(){return ea}}),("function"==typeof eo.default||"object"==typeof eo.default&&null!==eo.default)&&void 0===eo.default.__esModule&&(Object.defineProperty(eo.default,"__esModule",{value:!0}),Object.assign(eo.default,eo),ei.exports=eo.default)},95569:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),Object.defineProperty(eo,"default",{enumerable:!0,get:function(){return eD}});let eu=ea(10260),ec=eu._(ea(67294)),ed=ea(14532),ef=ea(83353),eh=ea(61410),eg=ea(79064),em=ea(370),eb=ea(69955),ew=ea(24224),e_=ea(80508),eS=ea(81516),eE=ea(64266),eA=ea(13991),eT=new Set;function ek(ei,eo,ea,eu,ec,ed){if(!ed&&!(0,ef.isLocalURL)(eo))return;if(!eu.bypassPrefetchedCheck){let ec=void 0!==eu.locale?eu.locale:"locale"in ei?ei.locale:void 0,ed=eo+"%"+ea+"%"+ec;if(eT.has(ed))return;eT.add(ed)}let eh=ed?ei.prefetch(eo,ec):ei.prefetch(eo,ea,eu);Promise.resolve(eh).catch(ei=>{})}function eC(ei){let eo=ei.currentTarget,ea=eo.getAttribute("target");return ea&&"_self"!==ea||ei.metaKey||ei.ctrlKey||ei.shiftKey||ei.altKey||ei.nativeEvent&&2===ei.nativeEvent.which}function eO(ei,eo,ea,eu,ed,eh,eg,em,eb,ew){let{nodeName:e_}=ei.currentTarget,eS="A"===e_.toUpperCase();if(eS&&(eC(ei)||!eb&&!(0,ef.isLocalURL)(ea)))return;ei.preventDefault();let eE=()=>{"beforePopState"in eo?eo[ed?"replace":"push"](ea,eu,{shallow:eh,locale:em,scroll:eg}):eo[ed?"replace":"push"](eu||ea,{forceOptimisticNavigation:!ew})};eb?ec.default.startTransition(eE):eE()}function eI(ei){return"string"==typeof ei?ei:(0,eh.formatUrl)(ei)}let eP=ec.default.forwardRef(function(ei,eo){let ea,eu;let{href:ef,as:eh,children:eT,prefetch:eC=null,passHref:eP,replace:eD,shallow:eN,scroll:eM,locale:ej,onClick:eR,onMouseEnter:eL,onTouchStart:eF,legacyBehavior:eB=!1,...eU}=ei;ea=eT,eB&&("string"==typeof ea||"number"==typeof ea)&&(ea=ec.default.createElement("a",null,ea));let eG=!1!==eC,eV=null===eC?eA.PrefetchKind.AUTO:eA.PrefetchKind.FULL,eH=ec.default.useContext(eb.RouterContext),eW=ec.default.useContext(ew.AppRouterContext),eK=null!=eH?eH:eW,eY=!eH,{href:eZ,as:e$}=ec.default.useMemo(()=>{if(!eH){let ei=eI(ef);return{href:ei,as:eh?eI(eh):ei}}let[ei,eo]=(0,ed.resolveHref)(eH,ef,!0);return{href:ei,as:eh?(0,ed.resolveHref)(eH,eh):eo||ei}},[eH,ef,eh]),eJ=ec.default.useRef(eZ),eQ=ec.default.useRef(e$);eB&&(eu=ec.default.Children.only(ea));let eX=eB?eu&&"object"==typeof eu&&eu.ref:eo,[e0,e3,e5]=(0,e_.useIntersection)({rootMargin:"200px"}),e4=ec.default.useCallback(ei=>{(eQ.current!==e$||eJ.current!==eZ)&&(e5(),eQ.current=e$,eJ.current=eZ),e0(ei),eX&&("function"==typeof eX?eX(ei):"object"==typeof eX&&(eX.current=ei))},[e$,eX,eZ,e5,e0]);ec.default.useEffect(()=>{eK&&e3&&eG&&ek(eK,eZ,e$,{locale:ej},{kind:eV},eY)},[e$,eZ,e3,ej,eG,null==eH?void 0:eH.locale,eK,eY,eV]);let e6={ref:e4,onClick(ei){eB||"function"!=typeof eR||eR(ei),eB&&eu.props&&"function"==typeof eu.props.onClick&&eu.props.onClick(ei),eK&&!ei.defaultPrevented&&eO(ei,eK,eZ,e$,eD,eN,eM,ej,eY,eG)},onMouseEnter(ei){eB||"function"!=typeof eL||eL(ei),eB&&eu.props&&"function"==typeof eu.props.onMouseEnter&&eu.props.onMouseEnter(ei),eK&&(eG||!eY)&&ek(eK,eZ,e$,{locale:ej,priority:!0,bypassPrefetchedCheck:!0},{kind:eV},eY)},onTouchStart(ei){eB||"function"!=typeof eF||eF(ei),eB&&eu.props&&"function"==typeof eu.props.onTouchStart&&eu.props.onTouchStart(ei),eK&&(eG||!eY)&&ek(eK,eZ,e$,{locale:ej,priority:!0,bypassPrefetchedCheck:!0},{kind:eV},eY)}};if((0,eg.isAbsoluteUrl)(e$))e6.href=e$;else if(!eB||eP||"a"===eu.type&&!("href"in eu.props)){let ei=void 0!==ej?ej:null==eH?void 0:eH.locale,eo=(null==eH?void 0:eH.isLocaleDomain)&&(0,eS.getDomainLocale)(e$,ei,null==eH?void 0:eH.locales,null==eH?void 0:eH.domainLocales);e6.href=eo||(0,eE.addBasePath)((0,em.addLocale)(e$,ei,null==eH?void 0:eH.defaultLocale))}return eB?ec.default.cloneElement(eu,e6):ec.default.createElement("a",{...eU,...e6},ea)}),eD=eP;("function"==typeof eo.default||"object"==typeof eo.default&&null!==eo.default)&&void 0===eo.default.__esModule&&(Object.defineProperty(eo.default,"__esModule",{value:!0}),Object.assign(eo.default,eo),ei.exports=eo.default)},80508:function(ei,eo,ea){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),Object.defineProperty(eo,"useIntersection",{enumerable:!0,get:function(){return eb}});let eu=ea(67294),ec=ea(10029),ed="function"==typeof IntersectionObserver,ef=new Map,eh=[];function eg(ei){let eo;let ea={root:ei.root||null,margin:ei.rootMargin||""},eu=eh.find(ei=>ei.root===ea.root&&ei.margin===ea.margin);if(eu&&(eo=ef.get(eu)))return eo;let ec=new Map,ed=new IntersectionObserver(ei=>{ei.forEach(ei=>{let eo=ec.get(ei.target),ea=ei.isIntersecting||ei.intersectionRatio>0;eo&&ea&&eo(ea)})},ei);return eo={id:ea,observer:ed,elements:ec},eh.push(ea),ef.set(ea,eo),eo}function em(ei,eo,ea){let{id:eu,observer:ec,elements:ed}=eg(ea);return ed.set(ei,eo),ec.observe(ei),function(){if(ed.delete(ei),ec.unobserve(ei),0===ed.size){ec.disconnect(),ef.delete(eu);let ei=eh.findIndex(ei=>ei.root===eu.root&&ei.margin===eu.margin);ei>-1&&eh.splice(ei,1)}}}function eb(ei){let{rootRef:eo,rootMargin:ea,disabled:ef}=ei,eh=ef||!ed,[eg,eb]=(0,eu.useState)(!1),ew=(0,eu.useRef)(null),e_=(0,eu.useCallback)(ei=>{ew.current=ei},[]);(0,eu.useEffect)(()=>{if(ed){if(eh||eg)return;let ei=ew.current;if(ei&&ei.tagName){let eu=em(ei,ei=>ei&&eb(ei),{root:null==eo?void 0:eo.current,rootMargin:ea});return eu}}else if(!eg){let ei=(0,ec.requestIdleCallback)(()=>eb(!0));return()=>(0,ec.cancelIdleCallback)(ei)}},[eh,ea,eo,eg,ew.current]);let eS=(0,eu.useCallback)(()=>{eb(!1)},[]);return[e_,eg,eS]}("function"==typeof eo.default||"object"==typeof eo.default&&null!==eo.default)&&void 0===eo.default.__esModule&&(Object.defineProperty(eo.default,"__esModule",{value:!0}),Object.assign(eo.default,eo),ei.exports=eo.default)},74134:function(ei,eo,ea){"use strict";ea.d(eo,{v4:function(){return ew}});var eu,ec=new Uint8Array(16);function ed(){if(!eu&&!(eu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eu(ec)}for(var ef=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,eh=function(ei){return"string"==typeof ei&&ef.test(ei)},eg=[],em=0;em<256;++em)eg.push((em+256).toString(16).substr(1));var eb=function(ei){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ea=(eg[ei[eo+0]]+eg[ei[eo+1]]+eg[ei[eo+2]]+eg[ei[eo+3]]+"-"+eg[ei[eo+4]]+eg[ei[eo+5]]+"-"+eg[ei[eo+6]]+eg[ei[eo+7]]+"-"+eg[ei[eo+8]]+eg[ei[eo+9]]+"-"+eg[ei[eo+10]]+eg[ei[eo+11]]+eg[ei[eo+12]]+eg[ei[eo+13]]+eg[ei[eo+14]]+eg[ei[eo+15]]).toLowerCase();if(!eh(ea))throw TypeError("Stringified UUID is invalid");return ea},ew=function(ei,eo,ea){var eu=(ei=ei||{}).random||(ei.rng||ed)();if(eu[6]=15&eu[6]|64,eu[8]=63&eu[8]|128,eo){ea=ea||0;for(var ec=0;ec<16;++ec)eo[ea+ec]=eu[ec];return eo}return eb(eu)}},64279:function(ei,eo,ea){"use strict";ea.d(eo,{II:function(){return ef}});var eu=ea(85893),ec=ea(67294),ed=ea(9689);function ef(ei){let{type:eo,fallback:ea,children:ef,...eh}=ei,[eg,em]=(0,ec.useState)(!1),eb=(0,ec.useCallback)(()=>{"secondary"===eo&&em(!0)},[eo]),ew=(0,ec.useMemo)(()=>"primary"===eo?ea:void 0,[ea,eo]);return(0,eu.jsx)(ed.J,{...eh,fallback:ew,onError:eb,children:eg?null:ef})}ea(1922),ea(158);var eh=ea(94184),eg=ea.n(eh),em=ea(26683),eb=ea.n(em);let ew=ei=>{let{className:eo,variant:ea="standard",...ec}=ei;return(0,eu.jsx)("div",{className:eg()(eo,eb().cta,eb()[ea]),...ec})},e_=ei=>{let{className:eo,imageUrl:ea,height:ec=245,width:ed=224,style:ef,...eh}=ei;return(0,eu.jsx)("div",{className:eg()(eo,eb().image),style:{...ef,backgroundImage:"url(".concat(ea,")"),height:"".concat(ec,"px"),width:"".concat(ed,"px")},...eh})},eS=ei=>{let{className:eo,gap:ea="small",...ec}=ei;return(0,eu.jsx)("div",{className:eg()(eo,eb().content,eb()[ea]),...ec})},eE=ei=>{let{className:eo,variant:ea="fill",...ec}=ei;return(0,eu.jsx)("div",{className:eg()(eo,eb().actions,eb()[ea]),...ec})},eA=ei=>{let{className:eo,...ea}=ei;return(0,eu.jsx)("h3",{className:eg()(eo,eb().title),...ea})},eT=ei=>{let{className:eo,...ea}=ei;return(0,eu.jsx)("div",{className:eg()(eo,eb().body),...ea})};ew.Content=eS,eS.Body=eT,eS.Title=eA,eS.Image=e_,ew.Actions=eE},47316:function(ei,eo,ea){"use strict";ea.d(eo,{$:function(){return eD},z:function(){return eP}});var eu=ea(85893),ec=ea(67294),ed=ea(94184),ef=ea.n(ed),eh=ea(94907),eg=ea(51489);let em=ei=>(0,eu.jsxs)("svg",{...ei,x:"0px",y:"0px",width:"100%",height:"100%",viewBox:"0 0 1701.4 267.4",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,eu.jsx)("path",{id:"prefix___x23_0da8ffff_1_",d:"M159.5.3c29.5-1.9 59.5 4 86 17.2 39.1 19.2 70.2 53.9 84.9 94.8 6.5 18.1 10 37.2 10 56.4V240c0 2.9.1 5.9-.6 8.7-1.6 7.2-6.7 13.5-13.5 16.6-4.7 2.2-10.1 2.5-15.1 1.7-10.9-2-19.3-12.2-19.4-23.2-.1-22.1 0-44.2 0-66.4.2-6.3.2-13-3.2-18.5-5.5-10.2-18.9-15.1-29.6-10.7-9.1 3.2-15.7 12.4-15.8 22.1-.1 22.5 0 44.9 0 67.3 0 4.2.2 8.5-1 12.5-2.3 7.9-8.9 14.3-16.8 16.5-10.4 2.9-22.3-1.7-27.6-11.3-3.6-5.8-3.3-12.8-3.2-19.2-.1-22.3.1-44.6-.1-66.9-.2-11.3-9.5-21.5-20.8-23-7.3-1.1-15 1.3-20.3 6.5-4.8 4.5-7.5 11-7.5 17.6v65c-.1 5.5.6 11.1-1.5 16.2-3.2 9.3-12.6 16.1-22.5 15.8-10.1.6-20-6.4-23.2-15.9-1.8-4.7-1.4-9.7-1.4-14.7 0-22.4.1-44.8 0-67.3-.1-11.1-8.7-21.2-19.6-23.2-9.8-2.1-20.7 2.9-25.7 11.8-2.1 3.7-3.2 8-3.2 12.2V243c.1 7.1-3.2 14.1-8.6 18.6-8.2 7.2-21.5 7.6-30.2 1-6.3-4.3-10-11.6-10-19.2v-73.7c.1-27.9 7.1-55.7 20.4-80.2 10.9-20 25.8-37.9 43.7-52.1 27-21.9 60.8-35 95.4-37.1z"}),(0,eu.jsx)("path",{d:"M822.3 85.8h-36.9c1.3-25.9 6.7-49.2 30.4-63.9C839.3 7.3 865.2 4 892.1 6.2c14.6 1.2 28.8 4.3 42.2 10.5 23.5 10.8 35.1 29.3 35.1 55 .1 45.6 0 91.3 0 136.9 0 16.8 3.4 19.9 20.2 18.2 1.8-.2 3.6-.5 5.5-.8.2.9.4 1.6.4 2.3V256c-13.4 4.5-26.8 5.9-40.3 2.3-9.8-2.7-16.1-9.8-19.5-19.2-1.7-4.8-2.7-9.8-4.3-15.4-1.4 1.6-2.6 3.1-4 4.4-29.1 29.5-63.8 41.9-104.6 31.6-28.9-7.3-48.9-33.8-49.6-63.7-.2-9.6.6-19.4 2.9-28.7 5.3-21.6 20.6-34.6 40.1-43.3 13.7-6.2 28.3-8 43-9.8 17.2-2.2 34.4-4.3 51.6-6.7 11.7-1.6 17.6-7.8 19.4-19.6 3.7-23.4-6.7-39.2-29.6-44.8-13.6-3.3-27.5-3.9-41.3-1.3-20.4 3.7-31.8 15.2-35.8 35.5-.2 2.6-.6 5.3-1.2 8.5zM931 131.1c-17 9.2-33.5 11.4-50.1 13.9-14 2.2-28.2 4.2-41.6 8.6-18 5.9-26 20.7-24.5 40.5 1.3 16.5 12.6 29.8 30.3 32.7 27.5 4.6 51.9-3 71.1-23.4 5.6-5.9 10.1-14.5 11.3-22.5 2.5-15.9 2.4-32.2 3.5-49.8zM1456.3 178.7c-.9 4-1.4 7.4-2.4 10.6-16 48.4-48.1 69.3-87.2 73.6-67.8 7.5-106.5-36.9-116.5-84-7.9-37.4-6.8-74.6 9.6-109.8 15.5-33.2 40.5-55.1 77.7-61.6 44.4-7.8 107.5 14.1 118.1 83.7 2.7 17.9 3.3 36.2 5 55.1h-172.3c1.5 25.5 5.5 49.3 24.1 67.9 7.7 7.7 17.6 11.4 28.3 13.2 35 6.1 63.7-10.6 75.1-44.1 1.2-3.6 2.8-4.7 6.5-4.6 11.1.2 22.2 0 34 0zm-166.6-65.2h129c-1.4-14.9-4.1-28.9-11-41.9C1401 59 1391 50 1377.4 45.4c-44.6-15.3-90.7 20.3-87.7 68.1zM1549.1 254.8h-39.2V11.6h37.2v34.1c2.8-3.2 4.6-5.2 6.3-7.1 26.6-30.4 60.2-38.4 98.2-29 26.5 6.5 41.2 25.2 46.2 51.4 2.1 10.7 3.3 21.7 3.4 32.6.4 52.2.2 104.4.2 156.6 0 1.4-.2 2.9-.3 4.6H1661v-6.6c0-48.7.3-97.5-.2-146.2-.1-10.8-1.6-21.9-4.7-32.2-5.1-17.1-18.7-26.2-36.6-26.8-32.5-1.1-58.4 16.1-66.3 45.2-2.8 10.4-3.7 21.6-3.8 32.5-.4 42.3-.2 84.7-.3 127v7.1zM1033.4 11.6h37.8v103c2.4-2.3 3.8-3.5 5.2-4.8 30.9-31.5 61.9-63.1 92.7-94.7 2.6-2.7 5.2-3.9 9-3.9 14.5.2 29.1.1 45.1.1-2.2 2.3-3.4 3.7-4.7 5.1-27.2 27.3-54.3 54.6-81.7 81.8-3.1 3-3.2 5-1 8.6 29.7 47.3 59.2 94.6 88.8 142 1.1 1.7 2.1 3.4 3.5 5.9-2 .2-3.5.4-5 .4-13.5 0-27-.1-40.5.1-3.7.1-5.5-1.3-7.3-4.3-22.6-38.1-45.4-76.1-68.1-114.2-1-1.7-2.1-3.3-3.4-5.3-10.5 10.4-20.7 20.5-30.8 30.9-1.3 1.3-1.6 3.9-1.6 6-.1 26.7-.1 53.3-.1 80v6.9c-7.5 0-14.7.1-21.9 0-5.2-.1-12.1 1.3-15.1-1.4-2.6-2.4-1-9.6-1-14.7V18.9c.1-2.4.1-4.7.1-7.3zM597.9 11.3c-30.7 30.4-60.5 60.1-90.5 89.8 32.2 51.6 63.7 102.1 95.9 153.7-2.6.1-4.2.3-5.9.3-13.1 0-26.3-.1-39.4.1-3.8.1-5.9-1.3-7.8-4.5-22.6-38.1-45.4-76.1-68.1-114.2-.9-1.6-1.9-3.1-3.4-5.5-5.8 6-10.8 12.4-17.1 17.1-12.7 9.6-16.5 21.6-15.5 37.3 1.3 20.7.3 41.6.3 62.4v6.8h-37.5V11.5h37.3V113c.8.5 1.6 1.1 2.4 1.6 1-1.7 1.6-3.8 2.9-5.1 30.7-31.5 61.6-62.8 92.3-94.3 2.7-2.8 5.4-4.2 9.5-4.1 12.8.3 25.6.1 38.3.1 1.8.1 3.6.1 6.3.1zM672.8 51.6c19-27.8 39.2-51 76.7-44.3v41.6c-10 .7-19.8.4-29.1 2.3-23.1 4.8-40.9 25.9-44.4 51.3-.7 5-1 10.2-1 15.3-.1 43.4 0 86.9 0 130.3v6.7h-39.1V11.7h37c-.1 13-.1 25.8-.1 39.9z"})]});var eb=ea(16894),ew=ea.n(eb);let e_=ec.createContext({});function eS(){let ei=ec.useContext(e_);if(!ei)throw Error("Footer compound components cannot be rendered outside the Footer component");return ei}let eE=ei=>{let{className:eo,...ea}=ei;return(0,eu.jsx)("div",{...ea,className:ef()(ew().column,eo,ew().responsive),children:ea.children})},eA=ei=>{let{className:eo,...ea}=ei,ec=eS();return(0,eu.jsx)("div",{className:ef()(ew().languageSelect,eo),...ea,children:(0,eu.jsx)(eg.P,{id:"langSelector",onChange:ec.onLanguageChange,selectedItem:ec.language,items:ec.languages.map(ei=>({label:ei.label,value:ei.value,onMouseEnter:()=>{(0,eh.yD)(ei.value)}}))})})},eT=ei=>{let{className:eo,...ea}=ei;return(0,eu.jsx)(em,{...ea,className:ef()(ew().logo,"text-pure-white",eo)})},ek=ei=>{let{className:eo,...ea}=ei;return(0,eu.jsx)("span",{...ea,className:ef()("db pb3 caption-3","text-P300",eo),children:ea.children})},eC=ei=>{let{className:eo,...ea}=ei;return(0,eu.jsx)("ul",{...ea,className:ef()(ew().list,ew().horizontalList,ew().trade,eo),children:ea.children})},eO=ei=>{let{className:eo,...ea}=ei;return(0,eu.jsx)("ul",{...ea,className:ef()(ew().list,ew().verticalList,ew().trade,eo),children:ea.children})},eI=ei=>(0,eu.jsx)("li",{...ei,children:ei.children}),eP=ei=>{let{className:eo,children:ea}=ei;return(0,eu.jsx)("footer",{className:ef()(ew().footer,ew().trade),children:(0,eu.jsx)("div",{className:"container",children:(0,eu.jsx)("div",{className:ef()("grid",ew().container,ew().trade,eo),children:ea})})})},eD=ei=>{let{className:eo,...ea}=ei;return(0,eu.jsx)(e_.Provider,{value:ea,children:(0,eu.jsx)(eP,{className:eo,children:ea.children})})};eD.List=eO,eD.HorizontalList=eC,eD.ListItem=eI,eD.LanguageSelector=eA,eD.Logo=eT,eD.Column=eE,eD.Header=ek},63245:function(ei,eo,ea){"use strict";ea.d(eo,{b:function(){return eM},G:function(){return eN}});var eu=ea(85893),ec=ea(67294),ed=ea(94907),ef=ea(21779),eh=ea(78440),eg=ea(1922),em=ea(98319),eb=ea(59112),ew=ea(71013),e_=ea(18399),eS=ea(16164),eE=ea(24325);let eA=ec.forwardRef((ei,eo)=>{let{color:ea="white",...ec}=ei;return(0,eu.jsxs)("svg",{...(0,eE.ti)(ec),ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:ea}),(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9625 4.27499C7.59093 4.27499 4.04998 7.82018 4.04998 12.1969C4.04998 15.6984 6.31832 18.6648 9.46098 19.7153C9.85442 19.7882 10.0001 19.5451 10.0001 19.3311C10.0001 19.1414 9.99528 18.6454 9.99042 17.984C7.79008 18.4606 7.32378 16.9239 7.32378 16.9239C6.96434 16.0096 6.44461 15.7616 6.44461 15.7616C5.72574 15.2704 6.49804 15.2801 6.49804 15.2801C7.28978 15.3385 7.71236 16.0971 7.71236 16.0971C8.41666 17.308 9.56298 16.9579 10.0147 16.7537C10.0876 16.243 10.2916 15.8929 10.515 15.6935C8.76153 15.499 6.91577 14.8181 6.91577 11.7836C6.91577 10.918 7.22178 10.2128 7.73179 9.65842C7.64922 9.45417 7.37721 8.65176 7.80465 7.56244C7.80465 7.56244 8.47009 7.34846 9.98071 8.37457C10.6122 8.1995 11.2873 8.11196 11.9625 8.1071C12.6328 8.11196 13.3128 8.1995 13.9442 8.37457C15.4549 7.34846 16.1203 7.56244 16.1203 7.56244C16.5526 8.65176 16.2806 9.45903 16.198 9.65842C16.7032 10.2128 17.0092 10.918 17.0092 11.7836C17.0092 14.8279 15.1586 15.4941 13.3954 15.6935C13.6771 15.9367 13.9345 16.423 13.9345 17.1621C13.9345 18.2223 13.9248 19.0733 13.9248 19.3359C13.9248 19.5499 14.0657 19.7931 14.4688 19.7153C17.6115 18.6648 19.875 15.6984 19.875 12.2018C19.875 7.82018 16.334 4.27499 11.9625 4.27499Z",fill:ea})]})});eA.displayName="GithubIcon";let eT=ec.forwardRef((ei,eo)=>{let{color:ea="white",...ec}=ei;return(0,eu.jsxs)("svg",{...(0,eE.ti)(ec),ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:ea}),(0,eu.jsx)("path",{d:"M8.94367 9.55579H6.53465C6.42774 9.55579 6.34111 9.64265 6.34111 9.74976V17.506C6.34111 17.6131 6.42774 17.6999 6.53465 17.6999H8.94367C9.05059 17.6999 9.13722 17.6131 9.13722 17.506V9.74976C9.13722 9.64265 9.05059 9.55579 8.94367 9.55579Z",fill:ea}),(0,eu.jsx)("path",{d:"M7.73978 5.7C6.86324 5.7 6.15013 6.4139 6.15013 7.29141C6.15013 8.1693 6.86324 8.88348 7.73978 8.88348C8.61563 8.88348 9.32815 8.16926 9.32815 7.29141C9.32819 6.4139 8.61563 5.7 7.73978 5.7Z",fill:ea}),(0,eu.jsx)("path",{d:"M15.0707 9.36305C14.1032 9.36305 13.3879 9.77991 12.9541 10.2536V9.7498C12.9541 9.64269 12.8675 9.55582 12.7605 9.55582H10.4535C10.3466 9.55582 10.2599 9.64269 10.2599 9.7498V17.506C10.2599 17.6132 10.3466 17.7 10.4535 17.7H12.8572C12.9642 17.7 13.0508 17.6132 13.0508 17.506V13.6685C13.0508 12.3753 13.4013 11.8715 14.3007 11.8715C15.2803 11.8715 15.3582 12.6792 15.3582 13.735V17.506C15.3582 17.6132 15.4448 17.7 15.5517 17.7H17.9564C18.0633 17.7 18.1499 17.6132 18.1499 17.506V13.2516C18.1499 11.3288 17.7841 9.36305 15.0707 9.36305Z",fill:ea})]})});eT.displayName="LinkedInIcon";let ek=ec.forwardRef((ei,eo)=>{let{color:ea="white",...ec}=ei;return(0,eu.jsxs)("svg",{...(0,eE.ti)(ec),ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:ea}),(0,eu.jsx)("path",{d:"M17.7271 8.22147C17.5386 8.30509 17.3448 8.37565 17.1467 8.43294C17.3812 8.16778 17.56 7.85578 17.6691 7.51436C17.6936 7.43783 17.6682 7.35407 17.6053 7.30401C17.5425 7.25392 17.4552 7.24792 17.386 7.28892C16.9654 7.53836 16.5117 7.71763 16.0359 7.82245C15.5566 7.35414 14.9057 7.08763 14.2328 7.08763C12.8123 7.08763 11.6567 8.24323 11.6567 9.66364C11.6567 9.77551 11.6638 9.88676 11.6778 9.99647C9.91512 9.8417 8.27642 8.97534 7.15113 7.595C7.11103 7.5458 7.04925 7.51928 6.986 7.52435C6.92271 7.5293 6.86584 7.565 6.83387 7.61985C6.60564 8.01147 6.48498 8.45938 6.48498 8.91511C6.48498 9.53582 6.70659 10.1247 7.09806 10.5849C6.97903 10.5437 6.86352 10.4922 6.75327 10.431C6.69409 10.398 6.62185 10.3985 6.56305 10.4323C6.50422 10.466 6.46733 10.528 6.46578 10.5958C6.46551 10.6072 6.46551 10.6186 6.46551 10.6302C6.46551 11.5567 6.96416 12.3909 7.72655 12.8455C7.66105 12.839 7.5956 12.8295 7.53056 12.817C7.46352 12.8042 7.39458 12.8277 7.34936 12.8789C7.30407 12.93 7.28909 13.0012 7.30996 13.0662C7.59215 13.9473 8.31869 14.5953 9.19702 14.7929C8.46854 15.2491 7.63547 15.4881 6.76094 15.4881C6.57846 15.4881 6.39494 15.4774 6.21533 15.4562C6.1261 15.4455 6.04078 15.4982 6.0104 15.5831C5.98001 15.668 6.01222 15.7626 6.08813 15.8113C7.2116 16.5316 8.51066 16.9124 9.84478 16.9124C12.4675 16.9124 14.1082 15.6756 15.0227 14.6381C16.1631 13.3443 16.8172 11.6319 16.8172 9.93999C16.8172 9.8693 16.8161 9.79792 16.8139 9.72678C17.2638 9.38779 17.6512 8.97755 17.9664 8.50603C18.0143 8.43441 18.0091 8.33977 17.9537 8.27385C17.8983 8.20789 17.8059 8.18656 17.7271 8.22147Z",fill:ea})]})});ek.displayName="TwitterIcon";let eC=ec.forwardRef((ei,eo)=>{let{color:ea="white",...ec}=ei;return(0,eu.jsxs)("svg",{...(0,eE.ti)(ec),ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eu.jsx)("path",{d:"M10.4777 12.3912H9.1623C9.05538 12.3912 8.96875 12.3045 8.96875 12.1976V10.2295C8.96875 10.1225 9.05538 10.0359 9.1623 10.0359H10.5432V8.57454C10.5157 8.4163 10.4005 7.5036 11.229 6.74133C11.9767 6.05346 12.9233 6 13.1956 6C13.2318 6 13.2564 6.00089 13.2675 6.00143H14.8369C14.9439 6.00143 15.0305 6.08806 15.0305 6.19498V8.02494C15.0305 8.13182 14.9439 8.21849 14.8369 8.21849H13.6981C13.298 8.21849 13.0952 8.40952 13.0952 8.78625V10.0359H14.8369C14.8921 10.0359 14.9447 10.0595 14.9814 10.1007C15.0181 10.1419 15.0355 10.1968 15.0292 10.2516L14.7995 12.2453C14.7883 12.3429 14.7056 12.4167 14.6072 12.4167H13.0951V17.8065C13.0951 17.9134 13.0085 18 12.9015 18H10.6712C10.5643 18 10.4777 17.9134 10.4777 17.8065V12.3912Z",fill:ea}),(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:ea})]})});eC.displayName="FacebookIcon";var eO=ea(47316);let eI=()=>(0,eu.jsxs)(eO.$.HorizontalList,{children:[(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(em.d,{href:eS.Jt.Facebook,children:(0,eu.jsx)(eC,{})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(em.d,{href:eS.Jt.Twitter,children:(0,eu.jsx)(ek,{})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(em.d,{href:eS.Jt.LinkedIn,children:(0,eu.jsx)(eT,{})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(em.d,{href:eS.Jt.Github,children:(0,eu.jsx)(eA,{})})})]}),eP=()=>{let{href:ei}=(0,ed.aU)();return(0,eu.jsxs)(eO.$.List,{children:[(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{href:eS.k2.NftAccountSettings,children:(0,eu.jsx)(eb.x,{langKey:"general:YourAccount"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:ei,children:(0,eu.jsx)(eb.x,{langKey:"general:Logout"})})})]})},eD=ei=>{let eo,{...ea}=ei,ec=(0,ed.JL)(),{t:ef}=(0,eg.$G)(),eh=(0,ed.p1)();return ea.isEU?eo="/legal/recruitment/eu-uk":ea.country===ew.C.SG&&(eo="/legal/recruitment/sg"),(0,eu.jsxs)(eO.$,{onLanguageChange:ea.onLanguageChange,language:ea.language,languages:ea.languages,children:[(0,eu.jsx)(eO.$.Column,{children:(0,eu.jsx)(eO.$.Logo,{})}),(0,eu.jsx)(eO.$.Column,{children:(0,eu.jsx)(eI,{})}),(0,eu.jsxs)(eO.$.Column,{children:[(0,eu.jsx)(eO.$.Header,{children:(0,eu.jsx)(eb.x,{langKey:"general:About"})}),(0,eu.jsxs)(eO.$.List,{children:[(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.About),children:(0,eu.jsx)(eb.x,{langKey:"about:AboutUs"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eS.Jt.Careers,children:(0,eu.jsx)(eb.x,{langKey:"general:Careers"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.Press),children:(0,eu.jsx)(eb.x,{langKey:"general:Press"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{href:ef("locale:SupportRequestsNew"),children:(0,eu.jsx)(eb.x,{langKey:"general:Contact"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.TermsOfService),children:(0,eu.jsx)(eb.x,{langKey:"general:LegalAndPrivacy"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.MarketingSecurity),children:(0,eu.jsx)(eb.x,{langKey:"general:Security"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.Privacy),children:(0,eu.jsx)(eb.x,{langKey:"general:PrivacyPolicy"})})}),eo&&(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{href:eh(eo),children:(0,eu.jsx)(eb.x,{langKey:"general:RecruitmentPrivacyNotice"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{href:eh(eS.Jt.Disclosures),children:(0,eu.jsx)(eb.x,{langKey:"general:Disclosures"})})})]})]}),(0,eu.jsxs)(eO.$.Column,{children:[(0,eu.jsx)(eO.$.Header,{children:(0,eu.jsx)(eb.x,{langKey:"general:Resources"})}),(0,eu.jsxs)(eO.$.List,{children:[(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.FAQ),children:(0,eu.jsx)(eb.x,{langKey:"general:FAQ"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.Orderbook),children:(0,eu.jsx)(eb.x,{langKey:"general:Charts"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eS.Jt.Blog,children:(0,eu.jsx)(eb.x,{langKey:"general:Blog"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.FeeSchedule),children:(0,eu.jsx)(eb.x,{langKey:"general:Fees"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.Support),children:(0,eu.jsx)(eb.x,{langKey:"general:Support"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.API),children:(0,eu.jsx)(eb.x,{langKey:"general:API"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.PGPKey),children:(0,eu.jsx)(eb.x,{langKey:"general:PGPKey"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.SecurityAudit),children:(0,eu.jsx)(eb.x,{langKey:"general:ProofOfReserves"})})}),(0,eu.jsx)(eO.$.ListItem,{children:(0,eu.jsx)(e_.O,{prefetch:!1,href:eh(eS.Jt.BugBounty),children:(0,eu.jsx)(eb.x,{langKey:"general:BugBounty"})})})]})]}),ec?(0,eu.jsxs)(eO.$.Column,{children:[(0,eu.jsx)(eO.$.Header,{children:(0,eu.jsx)(eb.x,{langKey:"general:Account"})}),(0,eu.jsx)(eP,{})]}):null,(0,eu.jsxs)(eO.$.Column,{children:[(0,eu.jsx)(eO.$.Header,{children:(0,eu.jsx)(eb.x,{langKey:"signup:Language"})}),(0,eu.jsx)(eO.$.LanguageSelector,{})]})]})},eN=(ei,eo)=>{if(ei){let ea=eo.find(eo=>eo.value.toLowerCase()===ei.toLowerCase());if(ea)return ea}return eo[0]};function eM(ei){var eo;let{setLocalLanguage:ea}=ei,ec=(0,ed.JL)(),{data:eg}=(0,ef.Ff)(void 0,ec),em=(0,eh.z3)(null==eg?void 0:eg.country),{updatePreferences:eb}=(0,ef.Gn)(void 0,ec),{data:ew,updateAccountSettings:e_}=(0,ef.ie)(void 0,ec),eS=(0,ef.m8)({},ec),eE=ec?eS:null!==(eo=localStorage.getItem("nft_language"))&&void 0!==eo?eo:eS,eA=eN(eE,ed.J3),eT=async ei=>{let{value:eo}=ei;ec?(eb({"global.language":eo}),!ew||(null==ew?void 0:ew.settings_lock)||(null==ew?void 0:ew.lang_code)===eo||e_({lang_code:eo})):(localStorage.setItem("nft_language",eo),ea(eo))};return(0,eu.jsx)(eD,{country:null==eg?void 0:eg.country,isEU:em,language:eA,languages:ed.J3,onLanguageChange:eT})}},67582:function(ei,eo,ea){"use strict";ea.d(eo,{w:function(){return ef}});var eu=ea(85893),ec=ea(67294),ed=ea(24325);let ef=ec.forwardRef((ei,eo)=>{let{fill:ea="#2824B6",stroke:ec="#ffffff",...ef}=ei;return(0,eu.jsxs)("svg",{...(0,ed.ti)(ef),ref:eo,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eu.jsx)("path",{d:"M19.311 4.65058L17.5491 2.6825C16.3283 1.3188 14.1932 1.3188 12.9724 2.68251L11.2105 4.65058L8.57304 4.50477C6.7455 4.40374 5.23577 5.91347 5.3368 7.741L5.48261 10.3785L3.51454 12.1403C2.15083 13.3612 2.15083 15.4963 3.51454 16.7171L5.48261 18.4789L5.3368 21.1164C5.23577 22.944 6.7455 24.4537 8.57304 24.3526L11.2105 24.2068L12.9724 26.1749C14.1932 27.5386 16.3283 27.5386 17.5491 26.1749L19.311 24.2068L21.9484 24.3526C23.776 24.4537 25.2857 22.944 25.1847 21.1164L25.0389 18.4789L27.0069 16.7171C28.3707 15.4962 28.3707 13.3612 27.0069 12.1403L25.0389 10.3785L25.1847 7.741C25.2857 5.91347 23.776 4.40374 21.9484 4.50477L19.311 4.65058Z",fill:ea,stroke:ec,strokeWidth:"3.07138"}),(0,eu.jsx)("path",{d:"M11.9414 13.3223L10.835 14.4288L14.1544 17.7483L19.6869 12.2159L18.5804 11.1094L14.1544 15.5353L11.9414 13.3223Z",fill:ec})]})});ef.displayName="VerifiedBadge"},23130:function(ei,eo,ea){"use strict";ea.d(eo,{v:function(){return rA}});var eu=ea(85893),ec=ea(67294),ed=ea(65897);function ef(ei){let[eo,ea]=(0,ed.zk)(ei.isOpen,ei.defaultOpen||!1,ei.onOpenChange),eu=(0,ec.useCallback)(()=>{ea(!0)},[ea]),ef=(0,ec.useCallback)(()=>{ea(!1)},[ea]),eh=(0,ec.useCallback)(()=>{ea(!eo)},[ea,eo]);return{isOpen:eo,setOpen:ea,open:eu,close:ef,toggle:eh}}function eh(ei){let eo=ef(ei),[ea,eu]=(0,ec.useState)(null);return{focusStrategy:ea,...eo,open(ei=null){eu(ei),eo.open()},toggle(ei=null){eu(ei),eo.toggle()}}}var eg=ea(9471),em=ea(768),eb=ea(3175),ew=ea(72290),e_=ea(93791),eS=ea(73935),eE=ea(28628);function eA(ei){return(0,em.ad)()?ei.altKey:ei.ctrlKey}function eT(ei){return(0,em.V5)()?ei.metaKey:ei.ctrlKey}let ek=1e3;function eC(ei){let{keyboardDelegate:eo,selectionManager:ea,onTypeSelect:eu}=ei,ed=(0,ec.useRef)({search:"",timeout:null}).current,ef=ei=>{let ec=eO(ei.key);if(!ec||ei.ctrlKey||ei.metaKey||!ei.currentTarget.contains(ei.target))return;" "!==ec||!(ed.search.trim().length>0)||(ei.preventDefault(),"continuePropagation"in ei||ei.stopPropagation()),ed.search+=ec;let ef=eo.getKeyForSearch(ed.search,ea.focusedKey);null==ef&&(ef=eo.getKeyForSearch(ed.search)),null!=ef&&(ea.setFocusedKey(ef),eu&&eu(ef)),clearTimeout(ed.timeout),ed.timeout=setTimeout(()=>{ed.search=""},ek)};return{typeSelectProps:{onKeyDownCapture:eo.getKeyForSearch?ef:null}}}function eO(ei){return 1!==ei.length&&/^[A-Z]/i.test(ei)?"":ei}function eI(ei){let eo,{selectionManager:ea,keyboardDelegate:eu,ref:ed,autoFocus:ef=!1,shouldFocusWrap:eh=!1,disallowEmptySelection:eg=!1,disallowSelectAll:e_=!1,selectOnFocus:ek="replace"===ea.selectionBehavior,disallowTypeAhead:eO=!1,shouldUseVirtualFocus:eI,allowsTabNavigation:eP=!1,isVirtualized:eD,scrollRef:eN=ed,linkBehavior:eM="action"}=ei,{direction:ej}=(0,eb.bU)(),eR=(0,em.tv)(),eL=ei=>{var eo,ec,ef,eb,ew,eC,eO,eI;if(ei.altKey&&"Tab"===ei.key&&ei.preventDefault(),!ed.current.contains(ei.target))return;let eD=(eo,eu)=>{if(null!=eo){if(ea.isLink(eo)&&"selection"===eM&&ek&&!eA(ei)){(0,eS.flushSync)(()=>{ea.setFocusedKey(eo,eu)});let ec=eN.current.querySelector(`[data-key="${eo}"]`);eR.open(ec,ei);return}ea.setFocusedKey(eo,eu),ea.isLink(eo)&&"override"===eM||(ei.shiftKey&&"multiple"===ea.selectionMode?ea.extendSelection(eo):ek&&!eA(ei)&&ea.replaceSelection(eo))}};switch(ei.key){case"ArrowDown":if(eu.getKeyBelow){ei.preventDefault();let ed=null!=ea.focusedKey?eu.getKeyBelow(ea.focusedKey):null===(eo=eu.getFirstKey)||void 0===eo?void 0:eo.call(eu);null==ed&&eh&&(ed=null===(ec=eu.getFirstKey)||void 0===ec?void 0:ec.call(eu,ea.focusedKey)),eD(ed)}break;case"ArrowUp":if(eu.getKeyAbove){ei.preventDefault();let eo=null!=ea.focusedKey?eu.getKeyAbove(ea.focusedKey):null===(ef=eu.getLastKey)||void 0===ef?void 0:ef.call(eu);null==eo&&eh&&(eo=null===(eb=eu.getLastKey)||void 0===eb?void 0:eb.call(eu,ea.focusedKey)),eD(eo)}break;case"ArrowLeft":if(eu.getKeyLeftOf){ei.preventDefault();let eo=eu.getKeyLeftOf(ea.focusedKey);null==eo&&eh&&(eo="rtl"===ej?null===(ew=eu.getFirstKey)||void 0===ew?void 0:ew.call(eu,ea.focusedKey):null===(eC=eu.getLastKey)||void 0===eC?void 0:eC.call(eu,ea.focusedKey)),eD(eo,"rtl"===ej?"first":"last")}break;case"ArrowRight":if(eu.getKeyRightOf){ei.preventDefault();let eo=eu.getKeyRightOf(ea.focusedKey);null==eo&&eh&&(eo="rtl"===ej?null===(eO=eu.getLastKey)||void 0===eO?void 0:eO.call(eu,ea.focusedKey):null===(eI=eu.getFirstKey)||void 0===eI?void 0:eI.call(eu,ea.focusedKey)),eD(eo,"rtl"===ej?"last":"first")}break;case"Home":if(eu.getFirstKey){ei.preventDefault();let eo=eu.getFirstKey(ea.focusedKey,eT(ei));ea.setFocusedKey(eo),eT(ei)&&ei.shiftKey&&"multiple"===ea.selectionMode?ea.extendSelection(eo):ek&&ea.replaceSelection(eo)}break;case"End":if(eu.getLastKey){ei.preventDefault();let eo=eu.getLastKey(ea.focusedKey,eT(ei));ea.setFocusedKey(eo),eT(ei)&&ei.shiftKey&&"multiple"===ea.selectionMode?ea.extendSelection(eo):ek&&ea.replaceSelection(eo)}break;case"PageDown":eu.getKeyPageBelow&&(ei.preventDefault(),eD(eu.getKeyPageBelow(ea.focusedKey)));break;case"PageUp":eu.getKeyPageAbove&&(ei.preventDefault(),eD(eu.getKeyPageAbove(ea.focusedKey)));break;case"a":eT(ei)&&"multiple"===ea.selectionMode&&!0!==e_&&(ei.preventDefault(),ea.selectAll());break;case"Escape":ei.preventDefault(),eg||ea.clearSelection();break;case"Tab":if(!eP){if(ei.shiftKey)ed.current.focus();else{let ei,eo,ea=(0,eE.QL)(ed.current,{tabbable:!0});do(eo=ea.lastChild())&&(ei=eo);while(eo);ei&&!ei.contains(document.activeElement)&&(0,em.Ao)(ei)}}}},eF=(0,ec.useRef)({top:0,left:0});(0,em.zX)(eN,"scroll",eD?null:()=>{eF.current={top:eN.current.scrollTop,left:eN.current.scrollLeft}});let eB=ei=>{if(ea.isFocused){ei.currentTarget.contains(ei.target)||ea.setFocused(!1);return}if(ei.currentTarget.contains(ei.target)){if(ea.setFocused(!0),null==ea.focusedKey){var eo,ec;let ed=ei=>{null!=ei&&(ea.setFocusedKey(ei),ek&&ea.replaceSelection(ei))},ef=ei.relatedTarget;ed(ef&&ei.currentTarget.compareDocumentPosition(ef)&Node.DOCUMENT_POSITION_FOLLOWING?null!==(eo=ea.lastSelectedKey)&&void 0!==eo?eo:eu.getLastKey():null!==(ec=ea.firstSelectedKey)&&void 0!==ec?ec:eu.getFirstKey())}else eD||(eN.current.scrollTop=eF.current.top,eN.current.scrollLeft=eF.current.left);if(!eD&&null!=ea.focusedKey){let ei=eN.current.querySelector(`[data-key="${ea.focusedKey}"]`);ei&&(ei.contains(document.activeElement)||(0,em.Ao)(ei),"keyboard"===(0,ew.Jz)()&&(0,em.Gt)(ei,{containingElement:ed.current}))}}},eU=ei=>{ei.currentTarget.contains(ei.relatedTarget)||ea.setFocused(!1)},eG=(0,ec.useRef)(ef);(0,ec.useEffect)(()=>{if(eG.current){let ei=null;"first"===ef&&(ei=eu.getFirstKey()),"last"===ef&&(ei=eu.getLastKey());let eo=ea.selectedKeys;eo.size&&(ei=eo.values().next().value),ea.setFocused(!0),ea.setFocusedKey(ei),null!=ei||eI||(0,eE.ex)(ed.current)}eG.current=!1},[]);let eV=(0,ec.useRef)(ea.focusedKey);(0,ec.useEffect)(()=>{let ei=(0,ew.Jz)();if(ea.isFocused&&null!=ea.focusedKey&&(null==eN?void 0:eN.current)){let eo=eN.current.querySelector(`[data-key="${ea.focusedKey}"]`);eo&&"keyboard"===ei&&(eD||(0,em.zT)(eN.current,eo),(0,em.Gt)(eo,{containingElement:ed.current}))}ea.isFocused&&null==ea.focusedKey&&null!=eV.current&&(0,eE.ex)(ed.current),eV.current=ea.focusedKey},[eD,eN,ea.focusedKey,ea.isFocused,ed]);let eH={onKeyDown:eL,onFocus:eB,onBlur:eU,onMouseDown(ei){eN.current===ei.target&&ei.preventDefault()}},{typeSelectProps:eW}=eC({keyboardDelegate:eu,selectionManager:ea});return eO||(eH=(0,em.dG)(eW,eH)),eI||(eo=null==ea.focusedKey?0:-1),{collectionProps:{...eH,tabIndex:eo}}}function eP(ei){let{selectionManager:eo,key:ea,ref:eu,shouldSelectOnPressUp:ed,shouldUseVirtualFocus:ef,focus:eh,isDisabled:eg,onAction:eb,allowsDifferentPressOrigin:e_,linkBehavior:eS="action"}=ei,ek=(0,em.tv)(),eC=ei=>{if("keyboard"===ei.pointerType&&eA(ei))eo.toggleSelection(ea);else{if("none"===eo.selectionMode)return;if(eo.isLink(ea)){if("selection"===eS){ek.open(eu.current,ei),eo.setSelectedKeys(eo.selectedKeys);return}if("override"===eS||"none"===eS)return}"single"===eo.selectionMode?eo.isSelected(ea)&&!eo.disallowEmptySelection?eo.toggleSelection(ea):eo.replaceSelection(ea):ei&&ei.shiftKey?eo.extendSelection(ea):"toggle"===eo.selectionBehavior||ei&&(eT(ei)||"touch"===ei.pointerType||"virtual"===ei.pointerType)?eo.toggleSelection(ea):eo.replaceSelection(ea)}};(0,ec.useEffect)(()=>{ea===eo.focusedKey&&eo.isFocused&&!ef&&(eh?eh():document.activeElement!==eu.current&&(0,eE.ex)(eu.current))},[eu,ea,eo.focusedKey,eo.childFocusStrategy,eo.isFocused,ef]),eg=eg||eo.isDisabled(ea);let eO={};ef||eg?eg&&(eO.onMouseDown=ei=>{ei.preventDefault()}):eO={tabIndex:ea===eo.focusedKey?0:-1,onFocus(ei){ei.target===eu.current&&eo.setFocusedKey(ea)}};let eI=eo.isLink(ea)&&"override"===eS,eP=eo.isLink(ea)&&"selection"!==eS&&"none"!==eS,eM=!eg&&eo.canSelectItem(ea)&&!eI,ej=(eb||eP)&&!eg,eR=ej&&("replace"===eo.selectionBehavior?!eM:!eM||eo.isEmpty),eL=ej&&eM&&"replace"===eo.selectionBehavior,eF=eR||eL,eB=(0,ec.useRef)(null),eU=eF&&eM,eG=(0,ec.useRef)(!1),eV=(0,ec.useRef)(!1),eH=ei=>{eb&&eb(),eP&&ek.open(eu.current,ei)},eW={};ed?(eW.onPressStart=ei=>{eB.current=ei.pointerType,eG.current=eU,"keyboard"===ei.pointerType&&(!eF||eN())&&eC(ei)},e_?(eW.onPressUp=eR?null:ei=>{"keyboard"!==ei.pointerType&&eM&&eC(ei)},eW.onPress=eR?eH:null):eW.onPress=ei=>{eR||eL&&"mouse"!==ei.pointerType?("keyboard"!==ei.pointerType||eD())&&eH(ei):"keyboard"!==ei.pointerType&&eM&&eC(ei)}):(eW.onPressStart=ei=>{eB.current=ei.pointerType,eG.current=eU,eV.current=eR,eM&&("mouse"===ei.pointerType&&!eR||"keyboard"===ei.pointerType&&(!ej||eN()))&&eC(ei)},eW.onPress=ei=>{("touch"===ei.pointerType||"pen"===ei.pointerType||"virtual"===ei.pointerType||"keyboard"===ei.pointerType&&eF&&eD()||"mouse"===ei.pointerType&&eV.current)&&(eF?eH(ei):eM&&eC(ei))}),eO["data-key"]=ea,eW.preventFocusOnPress=ef;let{pressProps:eK,isPressed:eY}=(0,ew.r7)(eW),eZ=eL?ei=>{"mouse"===eB.current&&(ei.stopPropagation(),ei.preventDefault(),eH(ei))}:void 0,{longPressProps:e$}=(0,ew.TA)({isDisabled:!eU,onLongPress(ei){"touch"===ei.pointerType&&(eC(ei),eo.setSelectionBehavior("toggle"))}}),eJ=ei=>{"touch"===eB.current&&eG.current&&ei.preventDefault()},eQ=eo.isLink(ea)?ei=>{em.nG.isOpening||ei.preventDefault()}:void 0;return{itemProps:(0,em.dG)(eO,eM||eR?eK:{},eU?e$:{},{onDoubleClick:eZ,onDragStartCapture:eJ,onClick:eQ}),isPressed:eY,isSelected:eo.isSelected(ea),isFocused:eo.isFocused&&eo.focusedKey===ea,isDisabled:eg,allowsSelection:eM,hasAction:eF}}function eD(){let ei=window.event;return(null==ei?void 0:ei.key)==="Enter"}function eN(){let ei=window.event;return(null==ei?void 0:ei.key)===" "||(null==ei?void 0:ei.code)==="Space"}class eM{getNextKey(ei){for(ei=this.collection.getKeyAfter(ei);null!=ei;){if("item"===this.collection.getItem(ei).type&&!this.disabledKeys.has(ei))return ei;ei=this.collection.getKeyAfter(ei)}return null}getPreviousKey(ei){for(ei=this.collection.getKeyBefore(ei);null!=ei;){if("item"===this.collection.getItem(ei).type&&!this.disabledKeys.has(ei))return ei;ei=this.collection.getKeyBefore(ei)}return null}findKey(ei,eo,ea){let eu=this.getItem(ei);if(!eu)return null;let ec=eu.getBoundingClientRect();do ei=eo(ei),eu=this.getItem(ei);while(eu&&ea(ec,eu.getBoundingClientRect()));return ei}isSameRow(ei,eo){return ei.top===eo.top||ei.left!==eo.left}isSameColumn(ei,eo){return ei.left===eo.left||ei.top!==eo.top}getKeyBelow(ei){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(ei,ei=>this.getNextKey(ei),this.isSameRow):this.getNextKey(ei)}getKeyAbove(ei){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(ei,ei=>this.getPreviousKey(ei),this.isSameRow):this.getPreviousKey(ei)}getNextColumn(ei,eo){return eo?this.getPreviousKey(ei):this.getNextKey(ei)}getKeyRightOf(ei){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(ei,"rtl"===this.direction):this.findKey(ei,ei=>this.getNextColumn(ei,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(ei,"rtl"===this.direction):null}getKeyLeftOf(ei){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(ei,"ltr"===this.direction):this.findKey(ei,ei=>this.getNextColumn(ei,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(ei,"ltr"===this.direction):null}getFirstKey(){let ei=this.collection.getFirstKey();for(;null!=ei;){if("item"===this.collection.getItem(ei).type&&!this.disabledKeys.has(ei))return ei;ei=this.collection.getKeyAfter(ei)}return null}getLastKey(){let ei=this.collection.getLastKey();for(;null!=ei;){if("item"===this.collection.getItem(ei).type&&!this.disabledKeys.has(ei))return ei;ei=this.collection.getKeyBefore(ei)}return null}getItem(ei){return this.ref.current.querySelector(`[data-key="${ei}"]`)}getKeyPageAbove(ei){let eo=this.ref.current,ea=this.getItem(ei);if(!ea)return null;if(!(0,em.a9)(eo))return this.getFirstKey();let eu=eo.getBoundingClientRect(),ec=ea.getBoundingClientRect();if("horizontal"===this.orientation){let ed=eu.x-eo.scrollLeft,ef=Math.max(0,ec.x-ed+ec.width-eu.width);for(;ea&&ec.x-ed>ef;)ec=null==(ea=null==(ei=this.getKeyAbove(ei))?null:this.getItem(ei))?void 0:ea.getBoundingClientRect()}else{let ed=eu.y-eo.scrollTop,ef=Math.max(0,ec.y-ed+ec.height-eu.height);for(;ea&&ec.y-ed>ef;)ec=null==(ea=null==(ei=this.getKeyAbove(ei))?null:this.getItem(ei))?void 0:ea.getBoundingClientRect()}return null!=ei?ei:this.getFirstKey()}getKeyPageBelow(ei){let eo=this.ref.current,ea=this.getItem(ei);if(!ea)return null;if(!(0,em.a9)(eo))return this.getLastKey();let eu=eo.getBoundingClientRect(),ec=ea.getBoundingClientRect();if("horizontal"===this.orientation){let ed=eu.x-eo.scrollLeft,ef=Math.min(eo.scrollWidth,ec.x-ed-ec.width+eu.width);for(;ea&&ec.x-edef||new eM(ea,"selection"===eg?new Set:eu,ed,eh),[ef,ea,eu,ed,eh,eg]),{collectionProps:ew}=eI({...ei,ref:ed,selectionManager:eo,keyboardDelegate:em});return{listProps:ew}}function eR(ei){return null}function eL(ei){return null!=ei.hasChildItems?ei.hasChildItems:!!(ei.childItems||ei.title&&ec.Children.count(ei.children)>0)}eR.getCollectionNode=function*(ei,eo){let{childItems:ea,title:eu,children:ed}=ei,ef=ei.title||ei.children,eh=ei.textValue||("string"==typeof ef?ef:"")||ei["aria-label"]||"";eh||(null==eo?void 0:eo.suppressTextValueWarning)||console.warn(" with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:ei,rendered:ef,textValue:eh,"aria-label":ei["aria-label"],hasChildNodes:eL(ei),*childNodes(){if(ea)for(let ei of ea)yield{type:"item",value:ei};else if(eu){let ei=[];ec.Children.forEach(ed,eo=>{ei.push({type:"item",element:eo})}),yield*ei}}}};let eF=eR;function eB(ei){return null}eB.getCollectionNode=function*(ei){let{children:eo,title:ea,items:eu}=ei;yield{type:"section",props:ei,hasChildNodes:!0,rendered:ea,"aria-label":ei["aria-label"],*childNodes(){if("function"==typeof eo){if(!eu)throw Error("props.children was a function but props.items is missing");for(let ei of eu)yield{type:"item",value:ei,renderer:eo}}else{let ei=[];ec.Children.forEach(eo,eo=>{ei.push({type:"item",element:eo})}),yield*ei}}}};let eU=eB;class eG{build(ei,eo){return this.context=eo,eV(()=>this.iterateCollection(ei))}*iterateCollection(ei){let{children:eo,items:ea}=ei;if("function"==typeof eo){if(!ea)throw Error("props.children was a function but props.items is missing");for(let ea of ei.items)yield*this.getFullNode({value:ea},{renderer:eo})}else{let ei=[];ec.Children.forEach(eo,eo=>{ei.push(eo)});let ea=0;for(let eo of ei)for(let ei of this.getFullNode({element:eo,index:ea},{}))ea++,yield ei}}getKey(ei,eo,ea,eu){if(null!=ei.key)return ei.key;if("cell"===eo.type&&null!=eo.key)return`${eu}${eo.key}`;let ec=eo.value;if(null!=ec){var ed;let ei=null!==(ed=ec.key)&&void 0!==ed?ed:ec.id;if(null==ei)throw Error("No key found for item");return ei}return eu?`${eu}.${eo.index}`:`$.${eo.index}`}getChildState(ei,eo){return{renderer:eo.renderer||ei.renderer}}*getFullNode(ei,eo,ea,eu){let ed=ei.element;if(!ed&&ei.value&&eo&&eo.renderer){let ea=this.cache.get(ei.value);if(ea&&(!ea.shouldInvalidate||!ea.shouldInvalidate(this.context))){ea.index=ei.index,ea.parentKey=eu?eu.key:null,yield ea;return}ed=eo.renderer(ei.value)}if(ec.isValidElement(ed)){let ec=ed.type;if("function"!=typeof ec&&"function"!=typeof ec.getCollectionNode)throw Error(`Unknown element <${"function"==typeof ed.type?ed.type.name:ed.type}> in collection.`);let ef=ec.getCollectionNode(ed.props,this.context),eh=ei.index,eg=ef.next();for(;!eg.done&&eg.value;){let ec=eg.value;ei.index=eh;let em=ec.key;em||(em=ec.element?null:this.getKey(ed,ei,eo,ea));let eb=[...this.getFullNode({...ec,key:em,index:eh,wrapper:eH(ei.wrapper,ec.wrapper)},this.getChildState(eo,ec),ea?`${ea}${ed.key}`:ed.key,eu)];for(let eo of eb){if(eo.value=ec.value||ei.value,eo.value&&this.cache.set(eo.value,eo),ei.type&&eo.type!==ei.type)throw Error(`Unsupported type <${eW(eo.type)}> in <${eW(eu.type)}>. Only <${eW(ei.type)}> is supported.`);eh++,yield eo}eg=ef.next(eb)}return}if(null==ei.key)return;let ef=this,eh={type:ei.type,props:ei.props,key:ei.key,parentKey:eu?eu.key:null,value:ei.value,level:eu?eu.level+1:0,index:ei.index,rendered:ei.rendered,textValue:ei.textValue,"aria-label":ei["aria-label"],wrapper:ei.wrapper,shouldInvalidate:ei.shouldInvalidate,hasChildNodes:ei.hasChildNodes,childNodes:eV(function*(){if(!ei.hasChildNodes)return;let ea=0;for(let eu of ei.childNodes())for(let ei of(null!=eu.key&&(eu.key=`${eh.key}${eu.key}`),eu.index=ea,ef.getFullNode(eu,ef.getChildState(eo,eu),eh.key,eh)))ea++,yield ei})};yield eh}constructor(){this.cache=new WeakMap}}function eV(ei){let eo=[],ea=null;return{*[Symbol.iterator](){for(let ei of eo)yield ei;for(let eu of(ea||(ea=ei()),ea))eo.push(eu),yield eu}}}function eH(ei,eo){return ei&&eo?ea=>ei(eo(ea)):ei||eo||void 0}function eW(ei){return ei[0].toUpperCase()+ei.slice(1)}function eK(ei,eo,ea){let eu=(0,ec.useMemo)(()=>new eG,[]),{children:ed,items:ef,collection:eh}=ei;return(0,ec.useMemo)(()=>eh||eo(eu.build({children:ed,items:ef},ea)),[eu,ed,ef,eh,ea,eo])}function eY(ei,eo){return"function"==typeof eo.getChildren?eo.getChildren(ei.key):ei.childNodes}function eZ(ei){return e$(ei,0)}function e$(ei,eo){if(eo<0)return;let ea=0;for(let eu of ei){if(ea===eo)return eu;ea++}}function eJ(ei,eo,ea){if(eo.parentKey===ea.parentKey)return eo.index-ea.index;let eu=[...eQ(ei,eo),eo],ec=[...eQ(ei,ea),ea],ed=eu.slice(0,ec.length).findIndex((ei,eo)=>ei!==ec[eo]);return-1!==ed?(eo=eu[ed],ea=ec[ed],eo.index-ea.index):eu.findIndex(ei=>ei===ea)>=0?1:(ec.findIndex(ei=>ei===eo),-1)}function eQ(ei,eo){let ea=[];for(;(null==eo?void 0:eo.parentKey)!=null;)ea.unshift(eo=ei.getItem(eo.parentKey));return ea}let eX=new WeakMap;function e0(ei){let eo=eX.get(ei);if(null!=eo)return eo;eo=0;let ea=eu=>{for(let ec of eu)"section"===ec.type?ea(eY(ec,ei)):eo++};return ea(ei),eX.set(ei,eo),eo}function e3(ei){return ei&&ei.__esModule?ei.default:ei}var e5={},e4={},e6={},e8={},e9={},e7={},ta={},tu={},tc={},td={},tf={},tp={},tg={},tm={},tv={},tb={},tw={},t_={},tS={},tE={},tA={},tT={},tk={},tC={},tO={},tI={},tP={},tD={},tN={},tM={},tj={},tR={},tL={},tF={},tB={};function tU(ei,eo,ea){let{type:eu="menu",isDisabled:ec,trigger:ed="press"}=ei,ef=(0,em.Me)(),{triggerProps:eh,overlayProps:eg}=(0,e_.IB)({type:eu},eo,ea),eS=ei=>{if(!ec&&("longPress"!==ed||ei.altKey)&&ea&&ea.current)switch(ei.key){case"Enter":case" ":if("longPress"===ed)return;case"ArrowDown":"continuePropagation"in ei||ei.stopPropagation(),ei.preventDefault(),eo.toggle("first");break;case"ArrowUp":"continuePropagation"in ei||ei.stopPropagation(),ei.preventDefault(),eo.toggle("last");break;default:"continuePropagation"in ei&&ei.continuePropagation()}},eE=(0,eb.qb)(e3(e5)),{longPressProps:eA}=(0,ew.TA)({isDisabled:ec||"longPress"!==ed,accessibilityDescription:eE.format("longPressMessage"),onLongPressStart(){eo.close()},onLongPress(){eo.open("first")}}),eT={onPressStart(ei){"touch"===ei.pointerType||"keyboard"===ei.pointerType||ec||eo.toggle("virtual"===ei.pointerType?"first":null)},onPress(ei){"touch"!==ei.pointerType||ec||eo.toggle()}};return delete eh.onPress,{menuTriggerProps:{...eh,..."press"===ed?eT:eA,id:ef,onKeyDown:eS},menuProps:{...eg,"aria-labelledby":ef,autoFocus:eo.focusStrategy||!0,onClose:eo.close}}}e5={"ar-AE":e4={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`},"bg-BG":e6={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`},"cs-CZ":e8={longPressMessage:`Dlouh\xfdm stiskem nebo stisknut\xedm kl\xe1ves Alt + šipka dolů otevřete nab\xeddku`},"da-DK":e9={longPressMessage:`Langt tryk eller tryk p\xe5 Alt + pil ned for at \xe5bne menuen`},"de-DE":e7={longPressMessage:`Dr\xfccken Sie lange oder dr\xfccken Sie Alt + Nach-unten, um das Men\xfc zu \xf6ffnen`},"el-GR":ta={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`},"en-US":tu={longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":tc={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xfa`},"et-EE":td={longPressMessage:`Men\xfc\xfc avamiseks vajutage pikalt v\xf5i vajutage klahve Alt + allanool`},"fi-FI":tf={longPressMessage:`Avaa valikko painamalla pohjassa tai n\xe4pp\xe4inyhdistelm\xe4ll\xe4 Alt + Alanuoli`},"fr-FR":tp={longPressMessage:`Appuyez de mani\xe8re prolong\xe9e ou appuyez sur Alt\xa0+\xa0Fl\xe8che vers le bas pour ouvrir le menu.`},"he-IL":tg={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`},"hr-HR":tm={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":tv={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xedl gombot a men\xfc megnyit\xe1s\xe1hoz`},"it-IT":tb={longPressMessage:`Premere a lungo o premere Alt + Freccia gi\xf9 per aprire il menu`},"ja-JP":tw={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`},"ko-KR":t_={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`},"lt-LT":tS={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`},"lv-LV":tE={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`},"nb-NO":tA={longPressMessage:`Langt trykk eller trykk Alt + PilNed for \xe5 \xe5pne menyen`},"nl-NL":tT={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":tk={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w d\xf3ł, aby otworzyć menu`},"pt-BR":tC={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":tO={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":tI={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată \xeen jos pentru a deschide meniul`},"ru-RU":tP={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`},"sk-SK":tD={longPressMessage:`Ponuku otvor\xedte dlh\xfdm stlačen\xedm alebo stlačen\xedm kl\xe1vesu Alt + kl\xe1vesu so š\xedpkou nadol`},"sl-SI":tN={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`},"sr-SP":tM={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":tj={longPressMessage:`H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn`},"tr-TR":tR={longPressMessage:`Men\xfcy\xfc a\xe7mak i\xe7in uzun basın veya Alt + Aşağı Ok tuşuna basın`},"uk-UA":tL={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`},"zh-CN":tF={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`},"zh-TW":tB={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`}};let tG=new WeakMap;function tV(ei,eo,ea){let{shouldFocusWrap:eu=!0,...ec}=ei;ei["aria-label"]||ei["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let ed=(0,em.zL)(ei,{labelable:!0}),{listProps:ef}=ej({...ec,ref:ea,selectionManager:eo.selectionManager,collection:eo.collection,disabledKeys:eo.disabledKeys,shouldFocusWrap:eu,linkBehavior:"override"});return tG.set(eo,{onClose:ei.onClose,onAction:ei.onAction}),{menuProps:(0,em.dG)(ed,{role:"menu","aria-hidden":eo.expandedKeys.size>0||void 0,...ef,onKeyDown:ei=>{"Escape"!==ei.key&&ef.onKeyDown(ei)}})}}function tq(ei,eo,ea){var eu,ed,ef;let{key:eh,closeOnSelect:eg,isVirtualized:e_,"aria-haspopup":eS}=ei,{direction:eA}=(0,eb.bU)(),eT=!!eS,ek=eo.expandedKeys.has(eh),eC=null!==(ed=ei.isDisabled)&&void 0!==ed?ed:eo.disabledKeys.has(eh),eO=null!==(ef=ei.isSelected)&&void 0!==ef?ef:eo.selectionManager.isSelected(eh),eI=(0,ec.useRef)(),eD=(0,ec.useCallback)(()=>{eI.current&&(clearTimeout(eI.current),eI.current=void 0)},[eI]),eN=(0,em.iW)(()=>{eD(),eo.setExpandedKeys(new Set([eh]))});(0,em.bt)(()=>()=>eD(),[eD]);let eM=tG.get(eo),ej=ei.onClose||eM.onClose,eR=(0,ec.useCallback)(()=>{eN()},[]),eL=eT?eR:ei.onAction||eM.onAction,eF=(0,em.tv)(),eB=ei=>{eL&&eL(eh),ei.target instanceof HTMLAnchorElement&&eF.open(ei.target,ei)},eU="menuitem";"single"===eo.selectionManager.selectionMode?eU="menuitemradio":"multiple"===eo.selectionManager.selectionMode&&(eU="menuitemcheckbox");let eG=(0,em.mp)(),eV=(0,em.mp)(),eH=(0,em.mp)(),eW={"aria-disabled":eC||void 0,role:eU,"aria-label":ei["aria-label"],"aria-labelledby":eG,"aria-describedby":[eV,eH].filter(Boolean).join(" ")||void 0};"none"!==eo.selectionManager.selectionMode&&(eW["aria-checked"]=eO);let eK=eo.collection.getItem(eh);e_&&(eW["aria-posinset"]=null==eK?void 0:eK.index,eW["aria-setsize"]=e0(eo.collection)),null!=eS&&(eW["aria-haspopup"]=eS,eW["aria-expanded"]=ek?"true":"false");let eY=ei=>{"keyboard"===ei.pointerType&&eB(ei)},eZ=ei=>{"keyboard"!==ei.pointerType&&(eB(ei),!eT&&ej&&(null!=eg?eg:"multiple"!==eo.selectionManager.selectionMode||eo.selectionManager.isLink(eh))&&ej())},{itemProps:e$,isFocused:eJ}=eP({selectionManager:eo.selectionManager,key:eh,ref:ea,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:eQ,isPressed:eX}=(0,ew.r7)({onPressStart:eY,onPressUp:eZ,isDisabled:eC||eT&&eo.expandedKeys.has(eh)}),{hoverProps:e3}=(0,ew.XI)({isDisabled:eC,onHoverStart(){(0,ew.E)()||eT&&eo.expandedKeys.has(eh)||(eo.selectionManager.setFocused(!0),eo.selectionManager.setFocusedKey(eh),eh===eo.selectionManager.focusedKey&&eo.selectionManager.isFocused&&document.activeElement!==ea.current&&(0,eE.ex)(ea.current))},onHoverChange:ei=>{ei&&eT&&!eo.expandedKeys.has(eh)?eI.current||(eI.current=setTimeout(()=>{eN()},200)):ei||eD()}}),{keyboardProps:e5}=(0,ew.v5)({onKeyDown:ei=>{if(ei.repeat){ei.continuePropagation();return}switch(ei.key){case" ":eC||"none"!==eo.selectionManager.selectionMode||eT||!1===eg||!ej||ej();break;case"Enter":eC||!1===eg||eT||!ej||ej();break;case"ArrowRight":eT&&"ltr"===eA?eN():ei.continuePropagation();break;case"ArrowLeft":eT&&"rtl"===eA?eN():ei.continuePropagation();break;default:ei.continuePropagation()}}}),e4=(0,em.zL)(eK.props,{isLink:!!(null==eK?void 0:null===(eu=eK.props)||void 0===eu?void 0:eu.href)});return delete e4.id,{menuItemProps:{...eW,...(0,em.dG)(e4,e$,eQ,e3,e5)},labelProps:{id:eG},descriptionProps:{id:eV},keyboardShortcutProps:{id:eH},isFocused:eJ,isSelected:eO,isPressed:eX,isDisabled:eC}}function tH(ei){let{heading:eo,"aria-label":ea}=ei,eu=(0,em.Me)();return{itemProps:{role:"presentation"},headingProps:eo?{id:eu,role:"presentation"}:{},groupProps:{role:"group","aria-label":ea,"aria-labelledby":eo?eu:void 0}}}class tW extends Set{constructor(ei,eo,ea){super(ei),ei instanceof tW?(this.anchorKey=eo||ei.anchorKey,this.currentKey=ea||ei.currentKey):(this.anchorKey=eo,this.currentKey=ea)}}function tK(ei,eo){if(ei.size!==eo.size)return!1;for(let ea of ei)if(!eo.has(ea))return!1;return!0}function tY(ei){let{selectionMode:eo="none",disallowEmptySelection:ea,allowDuplicateSelectionEvents:eu,selectionBehavior:ef="toggle",disabledBehavior:eh="all"}=ei,eg=(0,ec.useRef)(!1),[,em]=(0,ec.useState)(!1),eb=(0,ec.useRef)(null),ew=(0,ec.useRef)(null),[,e_]=(0,ec.useState)(null),eS=(0,ec.useMemo)(()=>tZ(ei.selectedKeys),[ei.selectedKeys]),eE=(0,ec.useMemo)(()=>tZ(ei.defaultSelectedKeys,new tW),[ei.defaultSelectedKeys]),[eA,eT]=(0,ed.zk)(eS,eE,ei.onSelectionChange),ek=(0,ec.useMemo)(()=>ei.disabledKeys?new Set(ei.disabledKeys):new Set,[ei.disabledKeys]),[eC,eO]=(0,ec.useState)(ef);"replace"===ef&&"toggle"===eC&&"object"==typeof eA&&0===eA.size&&eO("replace");let eI=(0,ec.useRef)(ef);return(0,ec.useEffect)(()=>{ef!==eI.current&&(eO(ef),eI.current=ef)},[ef]),{selectionMode:eo,disallowEmptySelection:ea,selectionBehavior:eC,setSelectionBehavior:eO,get isFocused(){return eg.current},setFocused(ei){eg.current=ei,em(ei)},get focusedKey(){return eb.current},get childFocusStrategy(){return ew.current},setFocusedKey(ei,eo="first"){eb.current=ei,ew.current=eo,e_(ei)},selectedKeys:eA,setSelectedKeys(ei){(eu||!tK(ei,eA))&&eT(ei)},disabledKeys:ek,disabledBehavior:eh}}function tZ(ei,eo){return ei?"all"===ei?"all":new tW(ei):eo}class t${get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(ei){this.state.setSelectionBehavior(ei)}get isFocused(){return this.state.isFocused}setFocused(ei){this.state.setFocused(ei)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(ei,eo){(null==ei||this.collection.getItem(ei))&&this.state.setFocusedKey(ei,eo)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(ei){return"none"!==this.state.selectionMode&&(ei=this.getKey(ei),"all"===this.state.selectedKeys?this.canSelectItem(ei):this.state.selectedKeys.has(ei))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let ei=this.getSelectAllKeys(),eo=this.state.selectedKeys;return this._isSelectAll=ei.every(ei=>eo.has(ei)),this._isSelectAll}get firstSelectedKey(){let ei=null;for(let eo of this.state.selectedKeys){let ea=this.collection.getItem(eo);(!ei||ea&&0>eJ(this.collection,ea,ei))&&(ei=ea)}return null==ei?void 0:ei.key}get lastSelectedKey(){let ei=null;for(let eo of this.state.selectedKeys){let ea=this.collection.getItem(eo);(!ei||ea&&eJ(this.collection,ea,ei)>0)&&(ei=ea)}return null==ei?void 0:ei.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(ei){let eo;if("none"!==this.selectionMode){if("single"===this.selectionMode){this.replaceSelection(ei);return}if(ei=this.getKey(ei),"all"===this.state.selectedKeys)eo=new tW([ei],ei,ei);else{let ea=this.state.selectedKeys,eu=ea.anchorKey||ei;for(let ec of(eo=new tW(ea,eu,ei),this.getKeyRange(eu,ea.currentKey||ei)))eo.delete(ec);for(let ea of this.getKeyRange(ei,eu))this.canSelectItem(ea)&&eo.add(ea)}this.state.setSelectedKeys(eo)}}getKeyRange(ei,eo){let ea=this.collection.getItem(ei),eu=this.collection.getItem(eo);return ea&&eu?0>=eJ(this.collection,ea,eu)?this.getKeyRangeInternal(ei,eo):this.getKeyRangeInternal(eo,ei):[]}getKeyRangeInternal(ei,eo){let ea=[],eu=ei;for(;eu;){let ei=this.collection.getItem(eu);if((ei&&"item"===ei.type||"cell"===ei.type&&this.allowsCellSelection)&&ea.push(eu),eu===eo)return ea;eu=this.collection.getKeyAfter(eu)}return[]}getKey(ei){let eo=this.collection.getItem(ei);if(!eo||"cell"===eo.type&&this.allowsCellSelection)return ei;for(;"item"!==eo.type&&null!=eo.parentKey;)eo=this.collection.getItem(eo.parentKey);return eo&&"item"===eo.type?eo.key:null}toggleSelection(ei){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(ei)){this.replaceSelection(ei);return}if(null==(ei=this.getKey(ei)))return;let eo=new tW("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);eo.has(ei)?eo.delete(ei):this.canSelectItem(ei)&&(eo.add(ei),eo.anchorKey=ei,eo.currentKey=ei),this.disallowEmptySelection&&0===eo.size||this.state.setSelectedKeys(eo)}replaceSelection(ei){if("none"===this.selectionMode||null==(ei=this.getKey(ei)))return;let eo=this.canSelectItem(ei)?new tW([ei],ei,ei):new tW;this.state.setSelectedKeys(eo)}setSelectedKeys(ei){if("none"===this.selectionMode)return;let eo=new tW;for(let ea of ei)if(null!=(ea=this.getKey(ea))&&(eo.add(ea),"single"===this.selectionMode))break;this.state.setSelectedKeys(eo)}getSelectAllKeys(){let ei=[],eo=ea=>{for(;ea;){if(this.canSelectItem(ea)){let eu=this.collection.getItem(ea);"item"===eu.type&&ei.push(ea),eu.hasChildNodes&&(this.allowsCellSelection||"item"!==eu.type)&&eo(eZ(eY(eu,this.collection)).key)}ea=this.collection.getKeyAfter(ea)}};return eo(this.collection.getFirstKey()),ei}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new tW)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(ei,eo){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(ei)&&!this.disallowEmptySelection?this.toggleSelection(ei):this.replaceSelection(ei):"toggle"===this.selectionBehavior||eo&&("touch"===eo.pointerType||"virtual"===eo.pointerType)?this.toggleSelection(ei):this.replaceSelection(ei))}isSelectionEqual(ei){if(ei===this.state.selectedKeys)return!0;let eo=this.selectedKeys;if(ei.size!==eo.size)return!1;for(let ea of ei)if(!eo.has(ea))return!1;for(let ea of eo)if(!ei.has(ea))return!1;return!0}canSelectItem(ei){if("none"===this.state.selectionMode||this.state.disabledKeys.has(ei))return!1;let eo=this.collection.getItem(ei);return!!eo&&("cell"!==eo.type||!!this.allowsCellSelection)}isDisabled(ei){return this.state.disabledKeys.has(ei)&&"all"===this.state.disabledBehavior}isLink(ei){var eo,ea;return!!(null===(eo=this.collection.getItem(ei))||void 0===eo?void 0:null===(ea=eo.props)||void 0===ea?void 0:ea.href)}constructor(ei,eo,ea){var eu;this.collection=ei,this.state=eo,this.allowsCellSelection=null!==(eu=null==ea?void 0:ea.allowsCellSelection)&&void 0!==eu&&eu,this._isSelectAll=null}}class tJ{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(ei){let eo=this.keyMap.get(ei);return eo?eo.prevKey:null}getKeyAfter(ei){let eo=this.keyMap.get(ei);return eo?eo.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(ei){return this.keyMap.get(ei)}at(ei){let eo=[...this.getKeys()];return this.getItem(eo[ei])}constructor(ei,{expandedKeys:eo}={}){let ea;this.keyMap=new Map,this.iterable=ei,eo=eo||new Set;let eu=ei=>{if(this.keyMap.set(ei.key,ei),ei.childNodes&&("section"===ei.type||eo.has(ei.key)))for(let eo of ei.childNodes)eu(eo)};for(let eo of ei)eu(eo);let ec=0;for(let[ei,eo]of this.keyMap)ea?(ea.nextKey=ei,eo.prevKey=ea.key):(this.firstKey=ei,eo.prevKey=void 0),"item"===eo.type&&(eo.index=ec++),(ea=eo).nextKey=void 0;this.lastKey=null==ea?void 0:ea.key}}function tQ(ei){let[eo,ea]=(0,ed.zk)(ei.expandedKeys?new Set(ei.expandedKeys):void 0,ei.defaultExpandedKeys?new Set(ei.defaultExpandedKeys):new Set,ei.onExpandedChange),eu=tY(ei),ef=(0,ec.useMemo)(()=>ei.disabledKeys?new Set(ei.disabledKeys):new Set,[ei.disabledKeys]),eh=eK(ei,(0,ec.useCallback)(ei=>new tJ(ei,{expandedKeys:eo}),[eo]),null);(0,ec.useEffect)(()=>{null==eu.focusedKey||eh.getItem(eu.focusedKey)||eu.setFocusedKey(null)},[eh,eu.focusedKey]);let eg=ei=>{ea(tX(eo,ei))};return{collection:eh,expandedKeys:eo,disabledKeys:ef,toggleKey:eg,setExpandedKeys:ea,selectionManager:new t$(eh,eu)}}function tX(ei,eo){let ea=new Set(ei);return ea.has(eo)?ea.delete(eo):ea.add(eo),ea}function ra(ei){let eo,ea=(0,em.zL)(ei,{labelable:!0});return("vertical"===ei.orientation&&(eo="vertical"),"hr"!==ei.elementType)?{separatorProps:{...ea,role:"separator","aria-orientation":eo}}:{separatorProps:ea}}var ru=ea(94184),rc=ea.n(ru),rf=ea(69926);class rh extends Error{constructor(ei){super(ei),this.name="InvariantError"}}function rp(ei,eo){if(ei)return;let ea="function"==typeof eo?eo():eo;throw new rh(ea)}var ry=ea(88406),rw=ea.n(ry);let r_={opacity:1,transform:"scale(1) translateY(0rem)"},rS={opacity:0,transform:"scale(0.9) translateY(1rem)"},rE={mass:.5,tension:230,friction:15},rA=ei=>{let{children:eo,onAction:ea,className:ed,menuPopupClassName:ef,ComponentButton:em,dataTestId:eb,overlayOptions:ew,closeOnSelect:eS=!0}=ei,eE=eh({}),eA=ec.useRef(null),eT=ec.useRef(null),{menuTriggerProps:ek,menuProps:eC}=tU({type:"menu"},eE,eA),{buttonProps:eO}=(0,eg.U)(ek,eA),{overlayProps:eI}=(0,e_.tN)({targetRef:eA,overlayRef:eT,...ew,isOpen:eE.isOpen});return rp(!!eo,"Menu requires children to be a JSX.element"),(0,eu.jsxs)("div",{className:rc()(ed,rw().container),"data-testid":eb,children:[(0,eu.jsx)(em,{ref:eA,menuIsOpen:eE.isOpen,...eO}),(0,eu.jsx)(e_.Xj,{children:eE.isOpen?(0,eu.jsx)(rT,{...eC,positionProps:eI,overlayRef:eT,onClose:eE.close,autoFocus:eE.focusStrategy,onAction:ea,menuPopupClassName:ef,closeOnSelect:eS,children:eo}):null})]})},rT=ei=>{let{onAction:eo,onClose:ea,menuPopupClassName:ed,closeOnSelect:ef,positionProps:eh,overlayRef:eg,...eb}=ei;eb.children;let ew=tQ({...eb,selectionMode:"none"}),eS=ec.useRef(null),{menuProps:eA}=tV(eb,ew,eS),{overlayProps:eT}=(0,e_.Ir)({onClose:ea,shouldCloseOnBlur:!0,isOpen:!0,isDismissable:!0},eg);return(0,eu.jsx)(eE.MT,{restoreFocus:!0,children:(0,eu.jsx)("div",{...(0,em.dG)(eT,eh),ref:eg,children:(0,eu.jsx)(rf.uT,{items:!0,from:rS,enter:r_,leave:rS,reverse:!0,config:rE,children:(ei,ec)=>ec&&(0,eu.jsxs)(rf.q.div,{style:ei,children:[(0,eu.jsx)(e_.U4,{onDismiss:ea}),(0,eu.jsx)("menu",{...eA,ref:eS,className:rc()(rw().menuPopup,ed),children:[...ew.collection].map(ei=>ei.hasChildNodes?(0,eu.jsx)(rk,{section:ei,state:ew,onAction:eo,onClose:ea,closeOnSelect:ef},ei.key):(0,eu.jsx)(rC,{item:ei,state:ew,onAction:eo,onClose:ea,closeOnSelect:ef},ei.key))}),(0,eu.jsx)(e_.U4,{onDismiss:ea})]})})})})},rk=ei=>{let{section:eo,state:ea,onAction:ec,onClose:ed,closeOnSelect:ef}=ei,{itemProps:eh,groupProps:eg}=tH({heading:eo.rendered,"aria-label":eo["aria-label"]}),{separatorProps:em}=ra({elementType:"li"});return(0,eu.jsxs)(eu.Fragment,{children:[eo.key!==ea.collection.getFirstKey()&&(0,eu.jsx)("li",{...em,className:rw().menuSeparator}),(0,eu.jsx)("li",{...eh,children:(0,eu.jsx)("ul",{...eg,className:rw().menuSection,children:[...eo.childNodes].map(ei=>(0,eu.jsx)(rC,{item:ei,state:ea,onAction:ec,onClose:ed,closeOnSelect:ef},ei.key))})})]})},rC=ei=>{let{item:eo,state:ea,onAction:ed,onClose:ef,closeOnSelect:eh}=ei,eg=ec.useRef(null),{menuItemProps:eb}=tq({key:eo.key,onAction:ed,onClose:ef,closeOnSelect:eh},ea,eg),[e_,eS]=ec.useState(!1),{focusProps:eE}=(0,ew.KK)({onFocusChange:eS}),{isFocusVisible:eA}=(0,ew._Y)();return(0,eu.jsx)("li",{...(0,em.dG)(eb,eE),ref:eg,className:rc()(rw().menuItem,{[rw().menuItem_focused]:e_&&eA}),children:eo.rendered})};rA.Item=eF,rA.Section=eU},99628:function(ei,eo,ea){"use strict";ea.d(eo,{u:function(){return eB}});var eu=ea(85893),ec=ea(93791),ed=ea(768),ef=ea(28628),eh=ea(67294);function eg(ei,eo){let{role:ea="dialog"}=ei,eu=(0,ed.mp)();eu=ei["aria-label"]?void 0:eu;let eg=(0,eh.useRef)(!1);return(0,eh.useEffect)(()=>{if(eo.current&&!eo.current.contains(document.activeElement)){(0,ef.ex)(eo.current);let ei=setTimeout(()=>{document.activeElement===eo.current&&(eg.current=!0,eo.current.blur(),(0,ef.ex)(eo.current),eg.current=!1)},500);return()=>{clearTimeout(ei)}}},[eo]),(0,ec.Bq)(),{dialogProps:{...(0,ed.zL)(ei,{labelable:!0}),role:ea,tabIndex:-1,"aria-labelledby":ei["aria-labelledby"]||eu,onBlur:ei=>{eg.current&&ei.stopPropagation()}},titleProps:{id:eu}}}var em=ea(94184),eb=ea.n(em),ew=ea(69926),e_=ea(1922),eS=ea(8793),eE=ea(19037),eA=ea(14721);function eT(){let ei=navigator.userAgent||navigator.vendor||(null==window?void 0:window.opera);return/iPad|iPhone|iPod/.test(ei)&&!window.MSStream?"iPhone":/android/i.test(ei)?"Android":"unknown"}var ek=ea(16472),eC=ea.n(ek);let eO=eh.createContext({ref:null,type:"simple",color:"white"}),eI=()=>{let ei=(0,eh.useContext)(eO);return ei};function eP(ei){var eo,ea;let{className:ec,variant:ed="initial",headerHeight:ef=80,children:eh,...eg}=ei,em=(0,eA.Z)(),ew=eT(),e_=(null==window?void 0:null===(eo=window.visualViewport)||void 0===eo?void 0:eo.height)?(null==window?void 0:null===(ea=window.visualViewport)||void 0===ea?void 0:ea.height)-ef:0,eS=em&&"iPhone"===ew,eE=eS?{height:e_,maxHeight:e_}:{};return(0,eu.jsx)("div",{...eg,style:eE,className:eb()(ec,eC().body,eC()[ed]),children:(0,eu.jsx)("div",{className:eC().scroll,children:eh})})}function eD(ei){let{className:eo,...ea}=ei;return(0,eu.jsx)("div",{...ea,className:eb()(eo,eC().header)})}function eN(ei){let{className:eo,children:ea}=ei;return(0,eu.jsx)("h2",{className:eb()(eC().headerTitle,eo),children:ea})}let eM=ei=>{let{onClick:eo,className:ea}=ei,{t:ec}=(0,e_.$G)();return(0,eu.jsx)("button",{className:eb()(eC().backButton,ea),onClick:eo,"aria-label":ec("general:Back"),type:"button",children:(0,eu.jsx)(eS.X,{className:eC().buttonIcon})})},ej=ei=>{let{onClick:eo,className:ea,iconClassName:ec,disabled:ed=!1}=ei;return(0,eu.jsx)("button",{disabled:ed,className:eb()(eC().closeButton,ea),"aria-label":"close",onClick:eo,type:"button",children:(0,eu.jsx)(eE.$,{className:eb()(eC().buttonIcon,ec)})})};function eR(ei){let{className:eo,...ea}=ei;return(0,eu.jsx)("div",{...ea,className:eb()(eo,eC().footer)})}let eL=ei=>{let{children:eo,animatedStyles:ea,disableAnimation:ec,onRest:ed}=ei,{type:ef,fullScreenMobile:eh}=eI(),eg=(0,ew.q_)({from:{opacity:0,transform:"scale(80%)"},to:{opacity:1,transform:"scale(100%)"},onRest:ed});return ec?(0,eu.jsx)(eu.Fragment,{children:eo}):(0,eu.jsx)(ew.q.div,{style:ea||eg,className:eb()(eC().animated,[eC()[ef]],{[eC().fullScreen]:eh}),children:eo})};function eF(ei){let{className:eo,...ea}=ei,{type:ec,color:ed,fullScreenMobile:ef}=eI();return(0,eu.jsx)("div",{...ea,className:eb()(eo,eC().view,[eC()[ec]],eC()[ed],{[eC().fullScreen]:ef})})}function eB(ei){let{children:eo,className:ea,underlayClassName:ed,type:em="nft",color:ew="white",disableAnimation:e_=!1,fullScreenMobile:eS=!0,onOpened:eE}=ei,eA=eh.useRef(null),{overlayProps:eT,underlayProps:ek}=(0,ec.Ir)(ei,eA);(0,ec.tk)({isDisabled:!ei.isOpen});let{modalProps:eI}=(0,ec.dd)({isDisabled:!ei.isOpen}),{dialogProps:eP}=eg(ei,eA),eD=(0,eh.useCallback)(()=>{"youtube"===em&&ei.onClose()},[ei,em]);return ei.isOpen?(0,eu.jsx)(ec.Xj,{children:(0,eu.jsx)("div",{className:eb()(eC().underlay,ed),"data-testid":ei.dataTestId,id:"modal-underlay",onClick:eD,...ek,children:(0,eu.jsx)(ef.MT,{children:(0,eu.jsx)("div",{...eT,...eP,...eI,className:eb()(eC().modalRoot,ea,{[eC().fullScreen]:!!eS,[eC().wizardRoot]:"wizard"===em,[eC().youtubeRoot]:"youtube"===em}),ref:eA,children:(0,eu.jsx)(eO.Provider,{value:{ref:eA,type:em,color:ew,fullScreenMobile:eS},children:(0,eu.jsx)(eL,{disableAnimation:e_,onRest:eE,children:eo})})})})})}):null}eD.Back=eM,eD.Close=ej,eD.Title=eN,eB.Header=eD,eB.Body=eP,eB.View=eF,eB.Footer=eR,eB.Provider=ec.N3},18399:function(ei,eo,ea){"use strict";ea.d(eo,{O:function(){return eE}});var eu=ea(85893),ec=ea(67294),ed=ea(11163),ef=ea(41664),eh=ea.n(ef),eg=ea(39557),em=ea(94184),eb=ea.n(em),ew=ea(11987);let e_=/^https?:\/\//g,eS=ei=>{var eo;if(!ei||ec.Children.count(ei)>1)return!1;let ea=(0,eg.Z)(ei)?ei[0]:ei;return"string"==typeof ea||"number"==typeof ea||!!(null==ea?void 0:null===(eo=ea.props)||void 0===eo?void 0:eo.langKey)},eE=ec.forwardRef((ei,eo)=>{let{as:ea,children:ec,scroll:ef,shallow:eg,passHref:em,prefetch:eE,replace:eA,isActive:eT,className:ek,activeClassName:eC="",href:eO,...eI}=ei,{pathname:eP,query:eD}=(0,ed.useRouter)(),eN=(0,ew.format)(eO),eM=e_.test(eN),ej=eC&&eT&&eT({pathname:eP,query:eD}),eR=eb()(eS(ec)&&"text-tab-highlight",ek,{[eC]:ej});return eM?(0,eu.jsx)("a",{"data-testid":ei["data-testid"],className:eR,...eI,href:eN,ref:eo,children:ec}):(0,eu.jsx)(eh(),{scroll:ef,shallow:eg,passHref:em,prefetch:eE,replace:eA,as:ea,href:eN,"data-testid":ei["data-testid"],className:eR,...eI,ref:eo,children:ec})});eE.displayName="NavLink"},38262:function(ei,eo,ea){"use strict";ea.d(eo,{oG:function(){return ec},$e:function(){return eu},GY:function(){return eE}});var eu,ec,ed=ea(85893);ea(67294);var ef=ea(94184),eh=ea.n(ef),eg=ea(1922),em=ea(7516),eb="data:image/png;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/9sAQwABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB/9sAQwEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB/8AAEQgA4QDhAwERAAIRAQMRAf/EABwAAQACAwEBAQAAAAAAAAAAAAAGBwQFCAMCCv/EADcQAAIDAAIDAAIAAwMJCQAAAAIDAAEEBRIGERMHFCEiIxUkMTQ1NlJydYS0tTIzQlFTYnOBk//EABsBAQACAwEBAAAAAAAAAAAAAAACAwEFBgQI/8QAPxEAAgIBAgMGBAMFBgUFAAAAAAECEQMSIQQFMRMiQVFhsXGBkfBCodEjMnKywQYzNKKzwjV0g+HxFENSYpL/2gAMAwEAAhEDEQA/AP1AT6IPOIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIBKuD8N5vn1VpyrTnx39KDXsYSkuNZAJAgVg17P4kVU2kfr9lNVbqcFrmv4rmfC8HLRkc55drx4kpSipRk05OWmC6LuueupQlpjFxcpqDfhv6rb83H636bfisvjfxhxGYqPkdenkiFh38hH9HMayXVCLAU1umzA7NtMXsUJX8wJdiB0ejz8+4nIqw44YE0lqb7XKmnbac8axpONRUZY5Nd5pqTi4yUF4+1fmpv2+SJPk8P8ZxfT48NjZ9enb9sD3+unb18/wB5mr5e+996V07+h79ugUHhycy47K1q4nKtN12clh66bvsccNXTbVajvTVszpivBfPf3PvV4n43sXSm8Lx4CJ0dFlRWFnahIaq24rzNIPRX2WR2uy6lYWQLKRx8x43G3KPFZm3GqyTeZVqulHLCcU6S7yWpLZOnJSzpi/Be36ef3RHOS/GnB6xsuPZp4tvQBERMtmbvTLI2NVpaWgzNd2uqDYpY2Kz+d3R033YOe8Xj2zRhxEbbbaWPJTVKKljxrGkmtXexyk91qVx0xcF8P83+6Pz28NqTqVbc14JznDjo0UoN+DOBOLXmIewJppV2dlM60AYLoXP+QaM6FkRXpIFMMN3wvNuE4l44OUsOabUFiyKVOTV93JGDg023GGqUJzpJQTnFEHCS9V5fqrl5r8X1ruwybMiIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAXN4j4AkUhyXkGf6OZa2ZeNb2Ec4iQspu9dEP1czrQ/pNokrSRBrUxxknLzPM+cScng4OemEbWTPFpubaaccT0NqKt/tY6ZSlFPHNQipTsjDxf0/Xd/Sl6rxdtTnSwQBAEAQBAK68t8Fzcqt/I8SoM/L2ZvYuisM/IkQj3AhJlJz6Sse63hSltebP3Pdu/aVuuXc2ycPKGHiJOfDpKEXWqeBJvS01j1TgrpwvJKMUuy06VCcJQvdbPy8/zXt5vwKK0Z3ZND8ugPm/M5ud4dhLo5J2todgIgLqY3XYCIb9exK6KrvrITjkhDJB3CcYzi6auMlcXuk1ad00n5pNNFR4yQEAQBAEAQBAEAQBAEAQBAEAQBAEAQBALj/H3iS/mvn+TQdts6Pis7gGliugAg5KxsrIzMrusdMABXQfuLpttyvVzXOOYu5cHgmqquInFu3K2ngvTSSVPJpk23+zk46ckJWQj4v5bfHfr/AE9bLdnOFggCAIAgCAIAgFdedeJL5XM3lsCDvlswBZqQAkXIoCxEhMOwWWnOqrNDF0bmrX+p83leWkbvlPMXw+SPD5pp8PNvTKbaWGbtpp6ZJQnLaak1CLl2lx7+qEo3uut09uvztV9HfS1TKEnWlQgCAIAgCAIAgCAIAgCAIAgCAIAgCAbjgOL/ALa5nBxln8w0uv7HRdDrOlZv0/Mvm2qdaFMpHYCC3WFH1CyKvNxnEf8ApeGzZ61PHHuqrTnJqENStPTrktSTvTdW6RlK2l9/k17/AF6HUq1rStalLBS1AK1KUIgtawGhBawGhEAARoREaoRGqqqqqnAyk5Nyk3KUm5SnJtuTb1Nty3tvdt7t7vcvPuYAgCAIAgCAIAgCAc2ebcOrhuf0Kz0A5tgDyGZQdapCtBtE09AUpawXoU8ULXRCGb4VZkdHQ9xyriXxXCQlO3PFKWGcnb1uCi4zbbcpOUJRc5Sq562o1pKZJJv13+93/T4WyJTYERAEAQBAEAQBAEAQBAEAQBAEAQBALX/FWVZ7OX23Z/XPmy5QGrH52vY1rW2VdbKzEsKaXdEI0JMogO7Gw57+0GRrHw2LbTOeTK3vd44xjFLwqSyyu1aaVU0yzH4v/t1/8b7fNF0zmCwQBAEAQBAEAQBAEAq78p5VnxfGbbI/rn3nlAasfna9mdjWkVdbKzEsKaXdEI0JNohK7Gx33IMklnzYqWmeFZW97TxTUYpeGlrLO7V2lVUyE+ifr89//Hl/3pCdUVCAIAgCAIAgCAIAgCAIAgCAIAgCAXx+L/8AMGz/AHxo/wCS4+clz7/GYv8Alof6uYth0fx/oiyJpCYgCAIAgCAIAgCAIBD/AD7/AET5b/gP+pY5suUf8R4f/rf6GUjP91/L3RzfO2KRAEAQBAEAQBAEAQBAEAQBAEAQBALy/FuhJ8PyGUT9vTyV6GB1L+VOnLnWg+1j877nk0V1EiIfn7MRogs+U5/CS4nDka7ksGiLtbyx5JuSq9SpZIO2knq2dqSVsOj+P37FnTRExAEAQBAEAQBAEAQCE/kLQlPi21bD6nrdiz569Ff0cOtWqw9iJUPpGZ7Ox2A/ydaKzIAPacmhKXH4pRTaxxyzm7SqLxyx3u0338kFS1OnailFsjP91/L3OdZ2hSIAgCAIAgCAIAgCAIAgCAIAgCAIBZf4x5Ic3L6+OOwEeTzUSvYMJhacP0aCwMfYLC8zdjGW2qoiUsQYJX0bo+e4HPhsedW3gnUt4pLHlqLk06bfaRxRSgm6lJtUtUZwe9efut/18fk72vWcmWiAIAgCAIAgCAIAgFRflPkhpfGcQFhZEZ8k8bBn0AQpmXJYs/gqwbZ7qYFUbKJK7v5jdfXo/wCz+B3n4l3SSwQdxpttZMlr9+41ip0o1JrvNdyub6L5v739fH6lOTpSsQBAEAQBAEAQBAEAQBAEAQBAEAQDM4/do4zbl35S6vyOBwe7MRPrf8ymfM1maXB2U8KMfokzXd1RX2rzYoZ8WTDkX7PJFxdJNq+ko6lJKUXUotruyinu0jKdO/L0vzvz9n8+h1LxfJZuYwZuRx2d59K7IPoFgwCAyU1bB/wo1NA1lYd1kQkS2MXYGXA8RgycNmngyVrxum4u000pRkn5Si1JXUkpVNKScY3J2r+/6e30M+UmRAEAQBAEAQBAPHRoTkzv1aD+aMyW6Hn1IuiUhbGn1ASMuoDd9QEiv16Ebsqq5QhLJOGOCuc5RhFWlcpOordpK26ttLzaSbBzB5FzDOd5fXyBWdKM/nkUfarTjV/LnX0trhWZD/WeKjtV6WvYFVRzvOC4VcJw2PCq1KOrJJVcskt5typOVPuwclqcIwT6FEnbtV6eO135K/p9TST1GBAEAQBAEAQBAEAQBAEAQBAEAQBAEAnPhPlY+PaWZtlGXF7TXbbG2EWJw1Y1qWmrISAwsQ1iC7ea1JNdmSBzv1PNOXvjMccmJJZ8SelNRSywdPs3K07T3xtvRFykpaVkeSEoyr4Pf7VP3XQ6EWxblrapgNW0BYpqiE1sWY0QMWY2QmBiVEJDdiQ3V1d1c46UXFuMk4yi3GUJJpxaelpqW9p7NPdPZ7lx9zAEAQBAEAQBAKN898vTynvheMPviS4T17FsLpscn3QJSI3QNxqO6ZbDox0aQU1FCpC36ur5Ry2WC+KzqssotY8TirxRk1c5W245ZrbSqcITlGfek4wqnK7S6eLv+lL8m/P+GsZvSAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgE58U820+PDePSs9vFkdEKvpQuxEbKtzMtkNiYGNmZZDJazf1YDs5HoN+q5hyrHxjWWElizpU5abjlSVRWSpJxaaSWRJyUNnGSUFCUZNbeH8Vf7Jbe3rq7t68ZzHGcwm38bsTrAfX0ELsXq7E0B+2dgg/P8AS1Mtf3Uv6CNGvsF0V8nn4bPw0tGfFLG30tXGVJN6ZxlKE6U1q0yelunTbStTT6GylBkQBAEAw93IYuMzlq36k5ED7ru46HuYgbPmof4m5xAs7BChNzOt0tZXV1LcWHLnmseHHLJN+EVdW0tUndRinJKU5NRV7tU2YbS3ZS3lvnzeUW/iuJFmfAZmt2yyIX70dRr5iu1gWXMwu/0Eit2lPzBtZwLRmb0/LuTrh3DiOIanmSjKOKk4YZtt23rayTimqaWiEk3FTaxzjXKV7Kq+/wD6rx9X5epWk3hAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAPta2OYtSlm1jTFalKEjYxhlQgtYDREZmRUIiNWRFdVVXdzEpKKcpNRjFOUpyaSiktTbctqS3beyW72BKuN8U8vsq28fx2/G1JmsGk4OL0gVrqjtdadGXR0JbLC2AFrOrYuju6YI6/PzDltLFmzYckZJNxUXnxtJqrePFlhacb0y7y2dLVBykoy8E1+RevAZ/IM+d4eQ78e95Oos5ZE/P5p6DRCxgoyAfs6uwCsokv0VlodTQXn5PjJ8HOcXweLLigopTWWV3K+qWvI1S6tzp7JQgk5StSa6u/tddo+3n0rvb6eQyIBquaVy78DF8JrzY99mu1u1K+q/nR1bRq+jqWwh/wAGHm0jY9l0sDMdCPRwsuGjmT4rHPLhUZXHHLS9VNJveDaT8FODum20nCeHbWzp/fmn7FG814t5q92jdyObTyRLMg+6dCdhGsnl1/UyKbeoM1m0mLQvGoULMiJKRExHq+E4/lcIwxYcmPAmk9EoPGlJQ37TJLH2bm1FRc5ZZuTSSyTbTKnGXV7+fj80tvZeHSiGaM+jI40akOzPX17o0KNLg7gJj3WwRMewEJj7GvYkJV7q6ubOE4ZIqeOUZwd6ZQkpxdNp1KOzppp10aa8CJ4yQEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAJJwvifN891PHm+WW/f9+12SMl+vtX9M+pM0f1Ekk/1VPtTbEXUobsj8XFcx4XhLWWerIv/Zx1LJ+Hqq0w7slJPJKOqKbhbVSyot+Hnv8AbV9dt/rRanF/jPh8ncuTc7ljLsID/Uw5wG/nYl88+knk4bEx+l6vjYM9XnIxEx5/Pz3iclLBCPDJNNvbLOT3tXPFoUZWrWjUnG1OnKJYoLq1f+X/AHS/JbX1kl3Z/lx48K/liyZsaiO2ErKhWdZMIRGzsFAA2diAjZXXaxAau7oRodRky5MrUss55ZJaVLJOc2rd0nLek29rq3ZOkuntRkysCAIAgCAIB46M+fWk0akJ0oZ17o0KByT6GJj3WwSAupiJj7G/RCJV6uquShOeOSnjlKE1emUJOElaadSjurTaddU2vEEG5f8AHXB8gJMw0fE6SM2WaKJ2YiYwDKjxtbQgADRiheRmRarZ/EGAsFjtuG51xeFpZa4nHSVTajkSimlpyRx223TnLKskpKOzWtyIOCfp19U/80a+v0S71Xc54RzfCfR3x/fwB3L9zGJH81D9i76s/wDF2bolVNcz0zImzEP2zO/U33Cc14XilGGrscrpdlkaVyelVjm46Z3KWmMbjllpb7NKnGDjJb9V4V+ly9N0/m9tMPmyIiAIAgCAIAgCAIAgCAIAgCAIBmYeP28noHLgyu1vL1fRIWXQCMF/RpfwBKRNgUb2kCV9qtjBq6uQy5sOCDyZskccEt3J1bVuo7Nyk0nUIpydbJ2kZSb6Iu3xv8eYuN66uY+PJba+w1n603jFCfoAv5OUJ6XUujvu8RSNt9BntqF6ZyvG86y528fDa8GLuvXenPJrdrVC1CLbXdg9T01rUZTgWKCXXvP4VH+Z+3rv+Gx5pCYgCAIAgCAIAgCAIAgCAQfyXwbjubE9WWg4/lKBli5QAvNqcbPrRb1gFkZmVsG9SvT6t30d+0KlIHa8DzbNwrjjyXmwXFOMpN5McUnGsLeypU+zk3Du1HQ5SnKMoJ+ad9NPquvfj18/j0/FRnL8LyPCaSy8hnNV0Zip9Cd5dQhQXbMrrERcHViyKq/qKtgretTqJY9Xw3FYeKxLJimpbJyjce0xt6u7kgt4u4tLrGVXBuPelU011+/lv77et2tVPQYEAQBAEAQBAEAQBAEAQDfePePbfIttZctfNK+p7NhjZJypu/VXdex7uZ6Ks+cSEnEJWVglbno8nGcZi4LF2mR6pStY8SdSySXgtnUVac5vaMelzcITylb+/wBV7+u9HRXDcDxnA5yz8aj5/T53oewrZo1GsOgm5hXf/uOlKpWdZsaSUq+p0XF8Txefi5qeaeqteiCVQx6n0jFJb9Fqk5TkoxUpPTHTcopdPv3fys3E8xkQBAEAQBAEAQBAEAQBAEAQDA5Li8HL5rx8jmHVnswZ0KzAgYF31YpqjW1R0NmFkpgkSzYsrtbDArsGfNw2TtMM3jnTi2qaafVOMoyjLwdSi0mlJLUosw0ns/v1Oe/K/FNPjemiGz0cXoO6ya7quwl6sv1dVD6ENIDV2JVQr0rEmpoSB6M/Y8v5hj47HTqGeC/aYr2kujy47Tbg20mm3KD7srThOVUo6fh8b+u8v5tvX8MSmxIiAIAgCAIAgCAIAgG+8e8e2+Rbay5a+aV9T2bDGyTlTd+qu69j3cz0VZ84kJOISsrBK3PR5OM4zFwWLtMj1Slax4k6lkkvBbOoq05ze0Y9Lm4QnlK39/qvf13o6T43jcXE404sSQUpILEiFagZoYC1qvTptS1i3S0VBbnWNEZV7v1VDQ8Rnz5OJySy5ZOUpNyScpOONOTl2cNVtQi29MU6S8y5JLZfXp4fP3+rZnykyIAgCAIAgCAIAgCAIAgCAIAgCAeOjPn1pNGpCdKGde6NCgck+hiY91sEgLqYiY+xv0QiVerqrkoTnjkp45ShNXplCThJWmnUo7q02nXVNrxBzl5X4pp8b00Q2eji9B3WTXdV2EvVl+rqofQhpAauxKqFelYk1NCQPRn7Xl/MMfHY6dQzwX7TFe0l0eXHabcG2k025QfdlacJyplHT8Pjf13l/Nt6/hiU2JEQBAEAQBAEAQDM4/Do5PblwZR7P1uBIe6MhDtf8zWfMGGCUh2a86AvmkDZdXQ31rzZYYMWTNkf7PHFydNJuukY6nFOUnUYpvvSkls2jKVuvP1rzvy918up05wPDZ+B4xHHZy+nz7G/QSwWzTobfZjjEP8A6UqjJhrzrSkms+dGXCcXxU+MzzzzWnVSjDU5KEI7Rim66/vSpJOcpSUY6mi5KlX38t3X19dmbieYyIAgCAIAgCAIAgCAIAgCAIAgCAIAgGHyGHPyeLVg1D2RrSaT9UBEHav5Wr+gMAHJPq1B2BfNwAyquxrrbhyzwZcebG0p45KStySddYy003GSuMkn3oyadWw0mq8/tX09/oczeQcFp8e5E+P1GDasK0Znr9UOjMZmC22vsRJPsswYo7u1sA/mTVWtze54PjIcbgWaCcd9E4S6wyJJuN6UpqpJqS6qSupascKGqdPb78rfv9DST1GBAEAQBAEAQCf/AI+53juG5HQrkABVciCUK5A+tDkIDMrU0rHsrNqMl21tHS1sQgnjSqLRn0/OOEzcTghLC3J4XKUsKu8ikkrik0pTxpNxTuTU5qHefZ5JwaT32vx+159enne1S6BnHlogCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgFLfkvneO2Ejh8wBo14NJN07B6WOYvma2YFn6sjMzsGa6A6UpmdKj7vE15en5HwmbEp8TNuGPLBRhid3kVqSzSV0kknHG2tUlOUlUHFyrm09vFfdfbfStqRVE6ErEAQBAEAQBAEAs7xDz3+y0hxnM252JfzDHrCvq7GHYRtLh/7bcaguzXa/poziHwUp6iSvLouZco7eTz8Npjl3eTG+7HK0m9UW3UcsntLVphkb1zcJ65TnCVWn08N6rz20u/qvL1LvWxblrapgNW0BYpqiE1sWY0QMWY2QmBiVEJDdiQ3V1d1c5WUXFuMk4yi3GUJJpxaelpqW9p7NPdPZ7lp9zAEAQBAEAQBAEAQBAEAQBAEAQBAEAp/y38h/wCU8VwN/wDklnMLZ/tU8MFAH+yAb/r/AOqWUP8AJ9s6Tl/Jv7vPxf8AEuHlD4aXmufxbwpf/FZH/eQK5S6pfW/jslp/PV8PIp+dIViAIAgCAIAgCAIAgEw8b805Px7rn9Vu4wftf6DTpfRjvRd8+n5NYj0yu5K9HnKmPKki937A63jeV4OMuf8AdZ3pXapXajtU4a4xns6Uu7NKMFqcIaCUZNfBfH9JLz2r13/DffEc1x3N5h1cfoBtWAE1FkFaspHZ1S9SaIiSfZbBG7/pt+ZMQxqbFhclxPC5uFyvHlg47tRlUuzyJae9jm9pKpJvpKN1NKXdjamn0+/nt7b+lU9rPMZEAQBAEAQBAEAQBAEAQBAEAw93IYuMzlq36k5ED7ru46HuYgbPmof4m5xAs7BChNzOt0tZXV1LcWHLnmseHHLJN+EVdW0tUndRinJKU5NRV7tU2YbS3ZRXkvn2/mRZiwCfHcawGJaHYC07Vky/VvdS6vOslCIHmzsIbo3rdo1JYAB1fAcow8K45M0lnzpxlF01jxNLfTHWtdSbayTi33ccoQhODcq5Tb2Wy8fvTH5+fp1lAJuCAgCAIAgCAIAgCAIAgCAZOPbp4/SnZjcefVnP6Kau67CXr1dXV0QmBh7BizEgYsiWxZARAUcmLHmxyxZoxnjmqlFrZrwT3TTT3Uk1KLScWmkwnTvyLX4P8nf93n5/N/qB/aOMf/hX9NWT/wDbQ9uS/wDVSjB/4pzvGcg/fnwk/N9hkf8AG9EMmr+GEVk/iyZfAsU/P638K20fHa/n0ZamHkMXJ5x1YNSdaC9V3SdF0MgBnzaP8DS4QYFmhog5faqYsbuqmgy4cuCbx5scsc14SVXTa1Rd1KLcWozi3F1s3aZNNPdGZKjIgCAIAgCAIAgCAIB46NGfIk36npzIX17v0NBKQ7mID3YwhAexkID7KvZEI17u6qShCeSShjjKc3emMIucnSbdRju6SbddEm/AFY81+TciOyeDz/us/l/vmsWpyV/FRf0s/pWp/sbco/oWP5NATD9hd/zb7hOQznUuLyPEn1xY3GWTpJbz1Sxw3UZLT2mqLaeiSIOa8Pevy7N/zL5FRclym/l9N7OR0lq0WAL7lQAILCr6rUpQLUoKKzOxUsRJhsYVWxhmXRYMGHhsfZ4YLHC3JpW22+rcpSlKXgrlJtJKKelRRW23u/v0MCXGBAEAQBAEAQBAEAQBAEAQBAEAycuzZhZ9cWvTjaQWsm5XtzsJZEJWFmowKwsgErG762QDd1diNjXkxY8qUcsIZYp6lHJCE0rVWlLa0m96unQtrp70WFxv5P5fMNByOTNyQis6+ol+jpNhMqxJhqU3NYAFmqlrxqIq+ZkyyA7PT5+Q8Nkd4ck8DbT0tdriSSppKeRZE3KpKUskku8klFxUZqb8fevyUH7/ADROcn5H8Z00z7N2YOnTr+3kM/r27dvn+je318+td6b8rvuHTv6PpqsnJOOx1pjjz3d9nkScapK+2li63aUdXR6mttc9cPVfn4/wxbdfL+H8Uty8rxe5lpxclg2NELYSsuzPoYK6IRtlgpplQUZgNl160RjV3VkNFrsnD58SUsuDNji3pUsmKcE3V0m9raTenrSvoZtPo19b+P34epnykyIAgCAYevkePwfP97djxfXv8v29Sc31+fXv8/swO/TuHfr769x9+u1e7ceHNmvssWXLprV2eOeTTd1em6unV9adPZ2tLr7pffgRXd+QfGcXYQ1O3sB1pNeFBn6oe9E0XaKz5WpogoaNOhvfuBqpi7Iw9+Hk3HZa1Y44YuOpSyzSbuqi4wlkyRlUrqcI1palplSIucVt19V+tSv6bbLf8MJ5P8o7W918TgTkC/uA6NZXp0WJfy53rUFLRncFezNbb3ps7EfZABfXa4OQYo1LiM0sjTg3DGtGO1vODk5Oc4vZKUOxlVva46YvI/BL67/yK79Zf/krvfynI8oz68ht07Co2sCntM1pJxUTaQr3Ss4FYj/TQC10KxGgEQAZucPD4eHWnDihjTUU9EUnJRVR1ybcptJvvTcpW2225SZBtvqzXy4wIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIBMPAf9LOJ/wCP/wCm7Jreb/8ADuI/6P8Ar4iUP3l8/ZnSE4kuEAQBAKH/ACh/n/H/ALnz/wDO8hOt5D/g8v8AzM/9LCVT6r4f1ZW83ZAQBAEAQBAEAQBAEAQBAP/Z",ew=ea(14421),e_=ea(7166),eS=ea.n(e_);!function(ei){ei.SMALL="small",ei.MEDIUM="medium",ei.XMEDIUM="x-medium",ei.LARGE="large"}(eu||(eu={})),function(ei){ei.SQUARE="square",ei.CIRCLE="circle"}(ec||(ec={}));let eE=ei=>{let{loading:eo,type:ea,className:ef,src:e_,testId:eE,shape:eA,onClick:eT,alt:ek}=ei,{t:eC}=(0,eg.$G)();return(0,ed.jsx)(ew.q,{"data-testid":eE,onClick:eT,show:eo,className:eh()(eS().nftAvatar,{[eS().small]:ea===eu.SMALL,[eS().medium]:ea===eu.MEDIUM,[eS().large]:ea===eu.LARGE,[eS().xmedium]:ea===eu.XMEDIUM,[eS().square]:eA===ec.SQUARE},"flex items-center justify-center",ef),children:!eo&&(0,ed.jsx)(em.D,{src:e_||eb,alt:e_?ek:eC("nft:ImageNotFound")})})}},62036:function(ei,eo,ea){"use strict";ea.d(eo,{L:function(){return em}});var eu=ea(85893);ea(67294);var ec=ea(94184),ed=ea.n(ec),ef=ea(99628),eh=ea(90690),eg=ea.n(eh);let em=ei=>{let{hasCloseButton:eo=!0,hideHeader:ea=!1,children:ec,isOpen:eh,className:em,bodyClassName:eb,headerClassName:ew,underlayClassName:e_,viewClassName:eS,ariaLabel:eE,onDismiss:eA,dataTestId:eT,title:ek,onBack:eC,alternative:eO=!1,type:eI="nft"}=ei,eP=eI||(eO?"small":"wizard");return(0,eu.jsx)(ef.u,{fullScreenMobile:!eO,"aria-label":eE,onClose:eA,isOpen:eh,dataTestId:eT,className:ed()(em,eg().nftDialog,{[eg().small]:eO}),underlayClassName:e_,type:eP,children:(0,eu.jsxs)(ef.u.View,{className:eS,children:[ea?null:(0,eu.jsxs)(ef.u.Header,{className:ed()(ew,eg().nftDialogHeader),children:[eC?(0,eu.jsx)(ef.u.Header.Back,{className:eg().back,onClick:eC}):null,(0,eu.jsx)(ef.u.Header.Title,{className:ed()("headline-3",{[eg().backHeader]:!!eC}),children:ek}),eo?(0,eu.jsx)(ef.u.Header.Close,{className:eg().close,onClick:()=>null==eA?void 0:eA(),iconClassName:eg().icon}):null]}),(0,eu.jsx)(ef.u.Body,{className:ed()(eb,eg().nftDialogBody),children:ec})]})})}},9689:function(ei,eo,ea){"use strict";ea.d(eo,{J:function(){return ef}});var eu=ea(85893),ec=ea(67294),ed=ea(81927);function ef(ei){let{children:eo,boundaryName:ea,fallback:ef,beforeCapture:eh,...eg}=ei,em=(0,ec.useCallback)(function(){for(var ei=arguments.length,eo=Array(ei),eu=0;eu{eo({isMdSm:window.matchMedia("(max-width: 900px)").matches,isSm:window.matchMedia("(max-width: 575px)").matches})};return(0,eu.useEffect)(()=>{let ei=eh(ea,100);return window.addEventListener("resize",ei),ea(),()=>window.removeEventListener("resize",ei)},[]),ei}},7516:function(ei,eo,ea){"use strict";ea.d(eo,{D:function(){return eA}});var eu=ea(85893),ec=ea(67294),ed=ea(9008),ef=ea.n(ed),eh=ea(94184),eg=ea.n(eh),em=ea(67707),eb=ea(94907),ew="/nft/_next/static/chunks/images/5255076f470f7b8cea5b18b6faf1e307.png",e_=ea(14421),eS=ea(43671),eE=ea.n(eS);function eA(ei){let{alt:eo="fullImage",className:ea,containerClassName:ed,loadingClassName:eh,hasGradient:eS=!1,onClick:eA,prefetch:eT=!1,preload:ek=!1,enableLoadingShimmer:eC=!0,imageRendering:eO,src:eI,srcSet:eP,enableEnhancedLoadingEffect:eD,loadingIndex:eN,namespace:eM,forceLoad:ej=!1,loading:eR,decoding:eL,...eF}=ei,{isSmall:eB}=(0,eb.kC)(),[eU,eG]=ec.useState(!eD),[eV,eH]=ec.useState(!1),[eW,eK]=ec.useState(),eY=()=>{eK(null!=eI?eI:ew)},eZ=(0,ec.useRef)(null);(0,eb.sx)(eZ,eY,[eI]);let{initLoadInOrder:e$,loadItem:eJ,removeItem:eQ}=(0,em.Z)(eM),eX=null!=eN&&eM;ec.useEffect(()=>{ej&&eK(null!=eI?eI:ew)},[ej,eI,eK]),ec.useEffect(()=>(eX&&e$(()=>{eG(!0)},eN),()=>{eX&&eQ(eN)}),[eN,e$,eQ,eX]);let e0=(0,ec.useCallback)(ei=>{let eo=ei.currentTarget;eo&&eo.naturalWidth>eo.naturalHeight&&eH(!0),eD&&!eX?eG(!0):eX&&eJ(eN)},[eD,eJ,eN,eX]),e3=(0,ec.useMemo)(()=>{if(null==eP||!eP.includes("undefined"))return eP},[eP]);return(0,eu.jsxs)(eu.Fragment,{children:[eT&&(0,eu.jsx)(ef(),{children:(0,eu.jsx)("link",{rel:"prefetch",href:eI,as:"image"})}),ek&&(0,eu.jsx)(ef(),{children:(0,eu.jsx)("link",{rel:"preload",href:eI,as:"image"})}),(0,eu.jsxs)("div",{className:eg()("relative h-100 w-100",ed,{pointer:!!eA}),children:[eD&&!eU&&(0,eu.jsx)(e_.q,{show:eC,className:eg()(eE().loader)}),(0,eu.jsx)("img",{ref:eZ,onLoad:e0,onError:e0,src:eW,onClick:eA,decoding:null!=eL?eL:"async",loading:null!=eR?eR:"lazy",srcSet:e3,className:eg()(eE().previewImage,ea,{[eE().mobile]:eB,[eE().landscape]:eV,[eE().loading]:eD&&!eU,[eE().smooth]:"Smooth"===eO,[eE().crispEdges]:"CrispEdges"===eO,[null!=eh?eh:""]:eD&&!eU}),alt:eo,...eF}),eS&&(0,eu.jsx)("div",{"data-testid":"gradient-overlay",className:eg()(eE().gradientOverlay)})]})]})}},51489:function(ei,eo,ea){"use strict";ea.d(eo,{P:function(){return ew}});var eu=ea(85893),ec=ea(67294),ed=ea(34326),ef=ea(94184),eh=ea.n(ef),eg=ea(63808),em=ea(47605),eb=ea.n(em);let ew=ei=>{let{items:eo,id:ea,onChange:ef,selectedItem:em}=ei;return(0,eu.jsx)(ed.ZP,{id:ea,itemToString:ei=>(null==ei?void 0:ei.value)||"",selectedItem:em,onChange:ei=>{ei&&ef(ei)},children:ei=>{let{isOpen:ea,getToggleButtonProps:ed,getMenuProps:ef,highlightedIndex:ew,getItemProps:e_}=ei;return(0,eu.jsxs)("div",{children:[(0,eu.jsxs)("button",{className:eh()("bg-pure-white pa1 flex w-100 tl text-N600 caption-2 ba border-radius",eb().button),...ed(),children:[(0,eu.jsx)("span",{className:eb().value,children:(null==em?void 0:em.label)||"Elements"}),(0,eu.jsx)(eg.N,{size:"small"})]}),ea&&(0,eu.jsx)("ul",{...ef(),className:eh()("bg-pure-white pa1 mt1/2 ba border-radius",eb().menu),children:eo.map((ei,eo)=>(0,ec.createElement)("li",{...e_({item:ei,index:eo,key:eo}),className:eh()("flex pointer pa1 caption-2 text-N600 border-radius",eb().item,{"bg-NT200":ew===eo}),"data-selected":ei.value===(null==em?void 0:em.value),value:ei.value,onMouseEnter:ei.onMouseEnter,key:eo},ei.label))})]})}})}},80610:function(ei,eo,ea){"use strict";ea.d(eo,{AJ:function(){return eC},Sy:function(){return eI},V8:function(){return eO}});var eu=ea(85893);ea(67294);var ec=ea(94184),ed=ea.n(ec),ef="Expected a function",eh=function(ei,eo,ea){if("function"!=typeof ei)throw TypeError(ef);return setTimeout(function(){ei.apply(void 0,ea)},eo)},eg=ea(44338),em=ea(77209),eb=(0,eg.Z)(function(ei,eo,ea){return eh(ei,(0,em.Z)(eo)||0,ea)}),ew=ea(1922),e_=ea(66711),eS=ea(19037),eE=ea(71394),eA=ea(59112),eT=ea(86904),ek=ea.n(eT);let eC=200;function eO(ei){let{onSubmitHandler:eo,inputRef:ea,onChangeHandler:ec,placeholder:ef,inputVal:eh,setFocus:eg,actionDelay:em=eC,showActionIcon:eE=!1,onClear:eT}=ei,{t:eO}=(0,ew.$G)();return(0,eu.jsxs)("form",{onSubmit:eo,className:"w-100 h-100 relative mr1",children:[(0,eu.jsx)("input",{className:ed()(ek().searchInput,"body-2 text-N600 w-100 h-100"),ref:ea,onChange:ec,placeholder:ef||eO("nft:wallet:Search"),value:null!=eh?eh:"",onFocus:()=>null==eg?void 0:eg(!0),onBlur:()=>eb(()=>null==eg?void 0:eg(!1),em),"data-testid":"search-box","aria-label":"nft-search"}),eh&&(0,eu.jsxs)("div",{"data-testid":"placeholder-container",className:ed()(ek().searchAction,"flex justify-center items-center"),children:[eE&&(0,eu.jsxs)("div",{"data-testid":"placeholder-action-icon",className:"flex items-center caption-2 text-N200",children:[(0,eu.jsx)(e_.o,{}),(0,eu.jsx)(eA.x,{className:"mh1",langKey:"nft:search:Action:text"})]}),(0,eu.jsx)("div",{"data-testid":"placeholder-clear-icon",className:"flex items-center pointer ph1 pv1",onClick:eT,children:(0,eu.jsx)(eS.$,{className:"text-N600",color:"#242424"})})]})]})}function eI(ei){let{className:eo,tabIndex:ea=0,children:ec}=ei;return(0,eu.jsxs)("div",{className:ed()("flex flex-row items-center relative",ek().searchBar,eo),tabIndex:ea,children:[(0,eu.jsx)(eE.o,{width:"24px",height:"24px",className:ed()("mr1 ml1 text-N600"),size:"small"}),ec]})}},93171:function(ei,eo,ea){"use strict";ea.d(eo,{Y:function(){return eL}});var eu=ea(85893),ec=ea(67294),ed=ea(11163),ef=ea.n(ed),eh=ea(94184),eg=ea.n(eh),em=ea(13677),eb=ea(59112),ew=ea(21779),e_=ea(94907),eS=ea(72512),eE=ea(18399),eA=ea(38262);let eT=()=>{let[ei,eo]=(0,ec.useState)(),ea=ei=>{("ArrowUp"==ei.key||"ArrowDown"==ei.key)&&(eo(ei.key),ei.stopPropagation(),ei.preventDefault())},eu=()=>{eo(void 0)};return(0,ec.useEffect)(()=>(document.addEventListener("keydown",ea),document.addEventListener("keyup",eu),()=>{document.removeEventListener("keydown",ea),document.removeEventListener("keyup",eu)})),{keyPressed:ei}};var ek=ea(10575),eC=ea(16164),eO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNTkwNSA2LjAwNTJMMC4wMzkwNjI1IDEwLjU1NjZMMS40NTMyOCAxMS45NzA5TDYuMDA0NzEgNy40MTk0MkwxMC41NTYyIDExLjk3MDlMMTEuOTcwNCAxMC41NTY2TDcuNDE4OTMgNi4wMDUyTDExLjk3MDQgMS40NTM3NkwxMC41NTYyIDAuMDM5NTUwOEw2LjAwNDcxIDQuNTkwOTlMMS40NTMyOCAwLjAzOTU1MDhMMC4wMzkwNjI1IDEuNDUzNzZMNC41OTA1IDYuMDA1MloiIGZpbGw9IiMyNDI0MjQiLz4KPC9zdmc+Cg==",eI=ea(86904),eP=ea.n(eI);function eD(ei){let{tags:eo,removeTag:ea,removeAllTags:ec}=ei;return(0,eu.jsxs)("div",{className:eg()("flex justify-between items-center",eP().searchTags),children:[(0,eu.jsx)("div",{className:"flex",children:eo&&eo.length>0&&eo.map(ei=>(0,eu.jsxs)("div",{className:eg()(eP().tagStyle,"flex items-center mr1"),children:[(0,eu.jsx)("span",{className:eP().label,children:ei}),(0,eu.jsx)("img",{onClick:()=>ea(ei),className:eg()(eP().labelIcon,"ml1"),alt:"tag close icon",src:eO})]},ei))}),(0,eu.jsx)("div",{onClick:ec,className:eg()("flex justify-center items-center",eP().closeWrap),children:(0,eu.jsx)("img",{alt:"close icon",src:eO})})]})}var eN=ea(80610);function eM(ei){var eo;let ea=7,[ed,ef]=(0,ec.useState)(void 0),{searchTerm:eh,inputFocused:em,inputRef:e_,onFocus:ek,onBlur:eO}=ei,{keyPressed:eI}=eT(),eD=(0,ec.useRef)([]),{data:eN}=(0,ew.DX)({page:1,page_size:ea,search:eh}),eM=(0,ec.useMemo)(()=>({pathname:eC.k2.NftExploreListings,query:{search:eh,tab:"collections"}}),[eh]);return(0,ec.useEffect)(()=>{eD.current=[]},[eN,eD]),(0,ec.useEffect)(()=>{if(em||void 0!==ed){var ei,eo,ea,eu,ec;if("ArrowDown"==eI){let ea=void 0==ed?0:(ed+1)%(null===(ei=eD.current)||void 0===ei?void 0:ei.length);null===(eo=eD.current[ea])||void 0===eo||eo.focus(),ef(ea)}else if("ArrowUp"==eI){if(!ed){null==e_||null===(ec=e_.current)||void 0===ec||ec.focus(),ef(void 0);return}let ei=ed?ed-1:(null===(ea=eD.current)||void 0===ea?void 0:ea.length)-1;null===(eu=eD.current[ei])||void 0===eu||eu.focus(),ef(ei)}}},[eI]),(null==eN?void 0:null===(eo=eN.items)||void 0===eo?void 0:eo.length)?(0,eu.jsxs)("div",{className:eg()(eP().searchDropdown,"absolute bg-pure-white w-100"),"data-testid":"search-dropdown",children:[(0,eu.jsx)("div",{className:"caption-3 text-N200 mv2 mh2",children:(0,eu.jsx)(eb.x,{langKey:"nft:search:tab:Collections"})}),eN.items.map((ei,eo)=>{var ea,ec;return ei&&(0,eu.jsx)(eE.O,{className:eP().searchItem,ref:ei=>eD.current[eo]=ei,href:(0,eS.PV)(ei.id),onFocus:ek,onBlur:eO,children:(0,eu.jsxs)("div",{className:"flex pv1/2 ph2 pointer",children:[(0,eu.jsx)(eA.GY,{shape:eA.oG.SQUARE,type:eA.$e.SMALL,src:null===(ea=ei.image)||void 0===ea?void 0:null===(ec=ea.derived)||void 0===ec?void 0:ec.Small.url}),(0,eu.jsx)("div",{className:eg()(eP().searchItemName,"ml1 caption-2 text-N600"),children:ei.name})]})},"".concat(ei.id,"-").concat(eo))}),(0,eu.jsx)("div",{className:"mv2 mh2",children:(0,eu.jsx)(eE.O,{href:eM,children:(0,eu.jsx)("button",{className:"text-P500 body-3",children:(0,eu.jsx)(eb.x,{langKey:"nft:carousel:ViewAll"})})})})]}):null}let ej=600,eR=3;function eL(ei){var eo;let{getQuerySet:ea}=(0,e_.Kx)(),{query:ed,push:eh}=ef(),eg=null!==(eo=ei.queryKey)&&void 0!==eo?eo:e_.Sd,eb=(null==ed?void 0:ed[eg])||"",{onChange:ew,onSearch:eS,searchOnSubmit:eE=!1,tabIndex:eA=0,pathname:eT,actionTextDisabled:eC=!1,showDropdown:eO=!1,useHistoryPush:eI=!1,placeholder:eP,queryKey:eL,className:eF}=ei,{setSearch:eB}=(0,e_.Rx)({pathname:eT,queryKey:eL},eI?e_.uT.PUSH:e_.uT.REPLACE),[eU,eG]=(0,ec.useState)(eb),[eV,eH]=(0,ec.useState)(eb),[eW,eK]=(0,ec.useState)(!1),[eY,eZ]=(0,ec.useState)(!1),{isMobile:e$}=(0,e_.Fy)(),{isMdSm:eJ}=(0,ek.g)(),eQ=(0,ec.useRef)(null),eX=!e$||(null==eV?void 0:eV.length)<=eR,e0=Array.from(ea("tags")),e3=ei=>{eh({query:{...ed,tags:e0.filter(eo=>eo!==ei)}})},e5=()=>{let{tags:ei,...eo}=ed;eh({query:eo})},e4=(0,ec.useMemo)(()=>(0,em.Z)(eG,ej),[eG]),e6=(0,ec.useMemo)(()=>(0,em.Z)(eB,ej),[eB]),e8=(0,ec.useCallback)(ei=>{let{value:eo}=ei.target;if(ew){let ei=(0,em.Z)(ei=>ew(ei),eN.AJ);ei(eo)}eE?(eH(eo),e4(eo)):(eH(eo),e6(eo))},[eE,ew,eH,e6,e4]),e9=ei=>{if(ei&&ei.preventDefault(),eE){var eo;eB(eV),eS&&eS(eV),null==eQ||null===(eo=eQ.current)||void 0===eo||eo.blur()}},e7=(0,ec.useCallback)(()=>{eH(""),eG(""),eE&&ef().pathname!==eT||eB("")},[eE,eB,eT]);return(0,eu.jsxs)(eN.Sy,{className:eF,tabIndex:eA,children:[e0.length>0?(0,eu.jsx)(eD,{removeTag:e3,removeAllTags:e5,tags:e0}):(0,eu.jsx)(eN.V8,{showActionIcon:!eC&&eE&&eX&&!eY&&!eJ,onSubmitHandler:e9,inputRef:eQ,onChangeHandler:e8,placeholder:eP,inputVal:eV,setFocus:eK,onClear:e7}),eO&&(eW||eY)&&eU&&(0,eu.jsx)(eM,{searchTerm:eU,inputFocused:eW,inputRef:eQ,onFocus:()=>eZ(!0),onBlur:()=>eZ(!1)})]})}},14421:function(ei,eo,ea){"use strict";ea.d(eo,{q:function(){return eg}});var eu=ea(85893),ec=ea(94184),ed=ea.n(ec);ea(67294);var ef=ea(96110),eh=ea.n(ef);function eg(ei){let{className:eo,show:ea=!1,...ec}=ei;return(0,eu.jsx)("div",{...ec,className:ed()(eo,{[eh().shimmer]:ea})})}},24325:function(ei,eo,ea){"use strict";ea.d(eo,{ti:function(){return eh}});var eu=ea(94184),ec=ea.n(eu);function ed(ei){switch(ei){case"x-small":return 16;case"small":return 20;case"large":return 32;case"x-large":return 40;case"xx-large":return 56;default:return 24}}let ef=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"medium",eo=ed(ei);return{width:eo,height:eo}},eh=ei=>{let{size:eo,className:ea,...eu}=ei;return{...ef(eo),className:ec()("svg-icon",ea),...eu}}},46958:function(ei,eo,ea){"use strict";ea.d(eo,{S:function(){return ew}});var eu=ea(85893);ea(67294);var ec=ea(94184),ed=ea.n(ec),ef=ea(158),eh=ea(83633),eg=ea(15269),em=ea.n(eg),eb="/nft/_next/static/chunks/images/340c07469259c9c40607626bf1cdaf92.png";function ew(ei){let{title:eo,onDismiss:ea,children:ec,hideHeader:eg=!1,keyboardOpen:ew=!1}=ei;return(0,eu.jsxs)(eu.Fragment,{children:[eg?null:(0,eu.jsx)("div",{className:ed()(em().header,{[em().hide]:ew}),style:{backgroundImage:"url(".concat(eb,")"),boxShadow:"rgb(12 0 74 / 47%) 0px 0px 0px 1000px inset",backgroundSize:"cover"},children:(0,eu.jsxs)("div",{className:ed()(em().headerContent,em().container),children:[(0,eu.jsx)("svg",{width:"59",height:"18",viewBox:"0 0 59 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,eu.jsx)("path",{d:"M10.5107 0.734985C4.70557 0.734985 0 5.4452 0 11.2555V15.7639C0 16.5932 0.671521 17.265 1.50047 17.265C2.32942 17.265 3.00586 16.5932 3.00586 15.7639V11.2555C3.00586 10.4237 3.67492 9.75183 4.50632 9.75183C5.33527 9.75183 6.00679 10.4237 6.00679 11.2555V15.7639C6.00679 16.5932 6.67831 17.265 7.50726 17.265C8.33867 17.265 9.01019 16.5932 9.01019 15.7639V11.2555C9.01019 10.4237 9.68171 9.75183 10.5107 9.75183C11.3421 9.75183 12.016 10.4237 12.016 11.2555V15.7639C12.016 16.5932 12.6876 17.265 13.5165 17.265C14.3455 17.265 15.017 16.5932 15.017 15.7639V11.2555C15.017 10.4237 15.6885 9.75183 16.5224 9.75183C17.3513 9.75183 18.0228 10.4237 18.0228 11.2555V15.7639C18.0228 16.5932 18.6944 17.265 19.5258 17.265C20.3547 17.265 21.0262 16.5932 21.0262 15.7639V11.2555C21.0262 5.4452 16.3182 0.734985 10.5107 0.734985Z",fill:"white"})}),(0,eu.jsx)(ef.xv,{type:"heading3",children:(0,eu.jsx)("span",{className:em().signInBanner,children:eo})}),ea?(0,eu.jsx)("button",{className:em().closeButton,onClick:ea,children:(0,eu.jsx)(eh.x,{tone:"dimmed"})}):null]})}),(0,eu.jsx)("div",{className:ed()(em().body,{[em().isKeyboardOpen]:ew}),children:ec})]})}},16790:function(ei,eo,ea){"use strict";let eu;ea.d(eo,{M:function(){return nN}});var ec,ed,ef,eh,eg,em=ea(85893),eb=ea(67294),ew=ea(87536),e_=ea(94184),eS=ea.n(e_),eE=ea(1922),eA=function(ei,eo,ea){if(ei&&"reportValidity"in ei){var eu=(0,ew.U2)(ea,eo);ei.setCustomValidity(eu&&eu.message||""),ei.reportValidity()}},eT=function(ei,eo){var ea=function(ea){var eu=eo.fields[ea];eu&&eu.ref&&"reportValidity"in eu.ref?eA(eu.ref,ea,ei):eu.refs&&eu.refs.forEach(function(eo){return eA(eo,ea,ei)})};for(var eu in eo.fields)ea(eu)},ek=function(ei,eo){eo.shouldUseNativeValidation&&eT(ei,eo);var ea={};for(var eu in ei){var ec=(0,ew.U2)(eo.fields,eu),ed=Object.assign(ei[eu]||{},{ref:ec&&ec.ref});if(eO(eo.names||Object.keys(ei),eu)){var ef=Object.assign({},eC((0,ew.U2)(ea,eu)));(0,ew.t8)(ef,"root",ed),(0,ew.t8)(ea,eu,ef)}else(0,ew.t8)(ea,eu,ed)}return ea},eC=function(ei){return Array.isArray(ei)?ei.filter(Boolean):[]},eO=function(ei,eo){return ei.some(function(ei){return ei.startsWith(eo+".")})};function eI(ei,eo,ea){return void 0===eo&&(eo={}),void 0===ea&&(ea={}),function(eu,ec,ed){try{return Promise.resolve(function(ef,eh){try{var eg=(eo.context,Promise.resolve(ei["sync"===ea.mode?"validateSync":"validate"](eu,Object.assign({abortEarly:!1},eo,{context:ec}))).then(function(ei){return ed.shouldUseNativeValidation&&eT({},ed),{values:ea.raw?eu:ei,errors:{}}}))}catch(ei){return eh(ei)}return eg&&eg.then?eg.then(void 0,eh):eg}(0,function(ei){var eo,ea;if(!ei.inner)throw ei;return{values:{},errors:ek((eo=ei,ea=!ed.shouldUseNativeValidation&&"all"===ed.criteriaMode,(eo.inner||[]).reduce(function(ei,eo){if(ei[eo.path]||(ei[eo.path]={message:eo.message,type:eo.type}),ea){var eu=ei[eo.path].types,ec=eu&&eu[eo.type];ei[eo.path]=(0,ew.KN)(eo.path,ea,ei,eo.type,ec?[].concat(ec,eo.message):eo.message)}return ei},{})),ed)}}))}catch(ei){return Promise.reject(ei)}}}var eP=ea(55760),eD=ea(59885),eN=ea(94633),eM=ea.n(eN);let ej=Object.prototype.toString,eR=Error.prototype.toString,eL=RegExp.prototype.toString,eF="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",eB=/^Symbol\((.*)\)(.*)$/;function eU(ei){if(ei!=+ei)return"NaN";let eo=0===ei&&1/ei<0;return eo?"-0":""+ei}function eG(ei,eo=!1){if(null==ei||!0===ei||!1===ei)return""+ei;let ea=typeof ei;if("number"===ea)return eU(ei);if("string"===ea)return eo?`"${ei}"`:ei;if("function"===ea)return"[Function "+(ei.name||"anonymous")+"]";if("symbol"===ea)return eF.call(ei).replace(eB,"Symbol($1)");let eu=ej.call(ei).slice(8,-1);return"Date"===eu?isNaN(ei.getTime())?""+ei:ei.toISOString(ei):"Error"===eu||ei instanceof Error?"["+eR.call(ei)+"]":"RegExp"===eu?eL.call(ei):null}function eV(ei,eo){let ea=eG(ei,eo);return null!==ea?ea:JSON.stringify(ei,function(ei,ea){let eu=eG(this[ei],eo);return null!==eu?eu:ea},2)}function eH(ei){return null==ei?[]:[].concat(ei)}let eW=/\$\{\s*(\w+)\s*\}/g;eu=Symbol.toStringTag;class eK extends Error{static formatError(ei,eo){let ea=eo.label||eo.path||"this";return(ea!==eo.path&&(eo=Object.assign({},eo,{path:ea})),"string"==typeof ei)?ei.replace(eW,(ei,ea)=>eV(eo[ea])):"function"==typeof ei?ei(eo):ei}static isError(ei){return ei&&"ValidationError"===ei.name}constructor(ei,eo,ea,ec,ed){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[eu]="Error",this.name="ValidationError",this.value=eo,this.path=ea,this.type=ec,this.errors=[],this.inner=[],eH(ei).forEach(ei=>{if(eK.isError(ei)){this.errors.push(...ei.errors);let eo=ei.inner.length?ei.inner:[ei];this.inner.push(...eo)}else this.errors.push(ei)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!ed&&Error.captureStackTrace&&Error.captureStackTrace(this,eK)}}let eY={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:ei,type:eo,value:ea,originalValue:eu})=>{let ec=null!=eu&&eu!==ea?` (cast from the value \`${eV(eu,!0)}\`).`:".";return"mixed"!==eo?`${ei} must be a \`${eo}\` type, but the final value was: \`${eV(ea,!0)}\``+ec:`${ei} must match the configured type. The validated value was: \`${eV(ea,!0)}\``+ec}},eZ={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},e$={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},eJ={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},eQ={isValue:"${path} field must be ${value}"},eX={noUnknown:"${path} field has unspecified keys: ${unknown}"},e0={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},e3={notType:ei=>{let{path:eo,value:ea,spec:eu}=ei,ec=eu.types.length;if(Array.isArray(ea)){if(ea.lengthec)return`${eo} tuple value has too many items, expected a length of ${ec} but got ${ea.length} for value: \`${eV(ea,!0)}\``}return eK.formatError(eY.notType,ei)}};Object.assign(Object.create(null),{mixed:eY,string:eZ,number:e$,date:eJ,object:eX,array:e0,boolean:eQ,tuple:e3});let e5=ei=>ei&&ei.__isYupSchema__;class e4{static fromOptions(ei,eo){if(!eo.then&&!eo.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:ea,then:eu,otherwise:ec}=eo,ed="function"==typeof ea?ea:(...ei)=>ei.every(ei=>ei===ea);return new e4(ei,(ei,eo)=>{var ea;let ef=ed(...ei)?eu:ec;return null!=(ea=null==ef?void 0:ef(eo))?ea:eo})}constructor(ei,eo){this.fn=void 0,this.refs=ei,this.refs=ei,this.fn=eo}resolve(ei,eo){let ea=this.refs.map(ei=>ei.getValue(null==eo?void 0:eo.value,null==eo?void 0:eo.parent,null==eo?void 0:eo.context)),eu=this.fn(ea,ei,eo);if(void 0===eu||eu===ei)return ei;if(!e5(eu))throw TypeError("conditions must return a schema object");return eu.resolve(eo)}}let e6={context:"$",value:"."};class e8{constructor(ei,eo={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof ei)throw TypeError("ref must be a string, got: "+ei);if(this.key=ei.trim(),""===ei)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===e6.context,this.isValue=this.key[0]===e6.value,this.isSibling=!this.isContext&&!this.isValue;let ea=this.isContext?e6.context:this.isValue?e6.value:"";this.path=this.key.slice(ea.length),this.getter=this.path&&(0,eP.getter)(this.path,!0),this.map=eo.map}getValue(ei,eo,ea){let eu=this.isContext?ea:this.isValue?ei:eo;return this.getter&&(eu=this.getter(eu||{})),this.map&&(eu=this.map(eu)),eu}cast(ei,eo){return this.getValue(ei,null==eo?void 0:eo.parent,null==eo?void 0:eo.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(ei){return ei&&ei.__isYupRef}}e8.prototype.__isYupRef=!0;let e9=ei=>null==ei;function e7(ei){function eo({value:eo,path:ea="",options:eu,originalValue:ec,schema:ed},ef,eh){let eg;let{name:em,test:eb,params:ew,message:e_,skipAbsent:eS}=ei,{parent:eE,context:eA,abortEarly:eT=ed.spec.abortEarly,disableStackTrace:ek=ed.spec.disableStackTrace}=eu;function eC(ei){return e8.isRef(ei)?ei.getValue(eo,eE,eA):ei}function eO(ei={}){var eu;let ef=Object.assign({value:eo,originalValue:ec,label:ed.spec.label,path:ei.path||ea,spec:ed.spec},ew,ei.params);for(let ei of Object.keys(ef))ef[ei]=eC(ef[ei]);let eh=new eK(eK.formatError(ei.message||e_,ef),eo,ef.path,ei.type||em,null!=(eu=ei.disableStackTrace)?eu:ek);return eh.params=ef,eh}let eI=eT?ef:eh,eP={path:ea,parent:eE,type:em,from:eu.from,createError:eO,resolve:eC,options:eu,originalValue:ec,schema:ed},eD=ei=>{eK.isError(ei)?eI(ei):ei?eh(null):eI(eO())},eN=ei=>{eK.isError(ei)?eI(ei):ef(ei)},eM=eS&&e9(eo);if(eM)return eD(!0);try{var ej;if(eg=eb.call(eP,eo,eP),"function"==typeof(null==(ej=eg)?void 0:ej.then)){if(eu.sync)throw Error(`Validation test of type: "${eP.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(eg).then(eD,eN)}}catch(ei){eN(ei);return}eD(eg)}return eo.OPTIONS=ei,eo}function ta(ei,eo,ea,eu=ea){let ec,ed,ef;return eo?((0,eP.forEach)(eo,(eh,eg,em)=>{let eb=eg?eh.slice(1,eh.length-1):eh,ew="tuple"===(ei=ei.resolve({context:eu,parent:ec,value:ea})).type,e_=em?parseInt(eb,10):0;if(ei.innerType||ew){if(ew&&!em)throw Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${ef}" must contain an index to the tuple element, e.g. "${ef}[0]"`);if(ea&&e_>=ea.length)throw Error(`Yup.reach cannot resolve an array item at index: ${eh}, in the path: ${eo}. because there is no value at that index. `);ec=ea,ea=ea&&ea[e_],ei=ew?ei.spec.types[e_]:ei.innerType}if(!em){if(!ei.fields||!ei.fields[eb])throw Error(`The schema does not contain the path: ${eo}. (failed at: ${ef} which is a type: "${ei.type}")`);ec=ea,ea=ea&&ea[eb],ei=ei.fields[eb]}ed=eb,ef=eg?"["+eh+"]":"."+eh}),{schema:ei,parent:ec,parentPath:ed}):{parent:ec,parentPath:eo,schema:ei}}class tu extends Set{describe(){let ei=[];for(let eo of this.values())ei.push(e8.isRef(eo)?eo.describe():eo);return ei}resolveAll(ei){let eo=[];for(let ea of this.values())eo.push(ei(ea));return eo}clone(){return new tu(this.values())}merge(ei,eo){let ea=this.clone();return ei.forEach(ei=>ea.add(ei)),eo.forEach(ei=>ea.delete(ei)),ea}}function tc(ei,eo=new Map){let ea;if(e5(ei)||!ei||"object"!=typeof ei)return ei;if(eo.has(ei))return eo.get(ei);if(ei instanceof Date)ea=new Date(ei.getTime()),eo.set(ei,ea);else if(ei instanceof RegExp)ea=new RegExp(ei),eo.set(ei,ea);else if(Array.isArray(ei)){ea=Array(ei.length),eo.set(ei,ea);for(let eu=0;eu{this.typeError(eY.notType)}),this.type=ei.type,this._typeCheck=ei.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==ei?void 0:ei.spec),this.withMutation(ei=>{ei.nonNullable()})}get _type(){return this.type}clone(ei){if(this._mutate)return ei&&Object.assign(this.spec,ei),this;let eo=Object.create(Object.getPrototypeOf(this));return eo.type=this.type,eo._typeCheck=this._typeCheck,eo._whitelist=this._whitelist.clone(),eo._blacklist=this._blacklist.clone(),eo.internalTests=Object.assign({},this.internalTests),eo.exclusiveTests=Object.assign({},this.exclusiveTests),eo.deps=[...this.deps],eo.conditions=[...this.conditions],eo.tests=[...this.tests],eo.transforms=[...this.transforms],eo.spec=tc(Object.assign({},this.spec,ei)),eo}label(ei){let eo=this.clone();return eo.spec.label=ei,eo}meta(...ei){if(0===ei.length)return this.spec.meta;let eo=this.clone();return eo.spec.meta=Object.assign(eo.spec.meta||{},ei[0]),eo}withMutation(ei){let eo=this._mutate;this._mutate=!0;let ea=ei(this);return this._mutate=eo,ea}concat(ei){if(!ei||ei===this)return this;if(ei.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${ei.type}`);let eo=this,ea=ei.clone(),eu=Object.assign({},eo.spec,ea.spec);return ea.spec=eu,ea.internalTests=Object.assign({},eo.internalTests,ea.internalTests),ea._whitelist=eo._whitelist.merge(ei._whitelist,ei._blacklist),ea._blacklist=eo._blacklist.merge(ei._blacklist,ei._whitelist),ea.tests=eo.tests,ea.exclusiveTests=eo.exclusiveTests,ea.withMutation(eo=>{ei.tests.forEach(ei=>{eo.test(ei.OPTIONS)})}),ea.transforms=[...eo.transforms,...ea.transforms],ea}isType(ei){return null==ei?!!this.spec.nullable&&null===ei||!!this.spec.optional&&void 0===ei:this._typeCheck(ei)}resolve(ei){let eo=this;if(eo.conditions.length){let ea=eo.conditions;(eo=eo.clone()).conditions=[],eo=(eo=ea.reduce((eo,ea)=>ea.resolve(eo,ei),eo)).resolve(ei)}return eo}resolveOptions(ei){var eo,ea,eu,ec;return Object.assign({},ei,{from:ei.from||[],strict:null!=(eo=ei.strict)?eo:this.spec.strict,abortEarly:null!=(ea=ei.abortEarly)?ea:this.spec.abortEarly,recursive:null!=(eu=ei.recursive)?eu:this.spec.recursive,disableStackTrace:null!=(ec=ei.disableStackTrace)?ec:this.spec.disableStackTrace})}cast(ei,eo={}){let ea=this.resolve(Object.assign({value:ei},eo)),eu="ignore-optionality"===eo.assert,ec=ea._cast(ei,eo);if(!1!==eo.assert&&!ea.isType(ec)){if(eu&&e9(ec))return ec;let ed=eV(ei),ef=eV(ec);throw TypeError(`The value of ${eo.path||"field"} could not be cast to a value that satisfies the schema type: "${ea.type}". + +attempted value: ${ed} +`+(ef!==ed?`result of cast: ${ef}`:""))}return ec}_cast(ei,eo){let ea=void 0===ei?ei:this.transforms.reduce((eo,ea)=>ea.call(this,eo,ei,this),ei);return void 0===ea&&(ea=this.getDefault(eo)),ea}_validate(ei,eo={},ea,eu){let{path:ec,originalValue:ed=ei,strict:ef=this.spec.strict}=eo,eh=ei;ef||(eh=this._cast(eh,Object.assign({assert:!1},eo)));let eg=[];for(let ei of Object.values(this.internalTests))ei&&eg.push(ei);this.runTests({path:ec,value:eh,originalValue:ed,options:eo,tests:eg},ea,ei=>{if(ei.length)return eu(ei,eh);this.runTests({path:ec,value:eh,originalValue:ed,options:eo,tests:this.tests},ea,eu)})}runTests(ei,eo,ea){let eu=!1,{tests:ec,value:ed,originalValue:ef,path:eh,options:eg}=ei,em=ei=>{eu||(eu=!0,eo(ei,ed))},eb=ei=>{eu||(eu=!0,ea(ei,ed))},ew=ec.length,e_=[];if(!ew)return eb([]);let eS={value:ed,originalValue:ef,path:eh,options:eg,schema:this};for(let ei=0;eithis.resolve(em)._validate(eg,em,eo,ea)}validate(ei,eo){var ea;let eu=this.resolve(Object.assign({},eo,{value:ei})),ec=null!=(ea=null==eo?void 0:eo.disableStackTrace)?ea:eu.spec.disableStackTrace;return new Promise((ea,ed)=>eu._validate(ei,eo,(ei,eo)=>{eK.isError(ei)&&(ei.value=eo),ed(ei)},(ei,eo)=>{ei.length?ed(new eK(ei,eo,void 0,void 0,ec)):ea(eo)}))}validateSync(ei,eo){var ea;let eu;let ec=this.resolve(Object.assign({},eo,{value:ei})),ed=null!=(ea=null==eo?void 0:eo.disableStackTrace)?ea:ec.spec.disableStackTrace;return ec._validate(ei,Object.assign({},eo,{sync:!0}),(ei,eo)=>{throw eK.isError(ei)&&(ei.value=eo),ei},(eo,ea)=>{if(eo.length)throw new eK(eo,ei,void 0,void 0,ed);eu=ea}),eu}isValid(ei,eo){return this.validate(ei,eo).then(()=>!0,ei=>{if(eK.isError(ei))return!1;throw ei})}isValidSync(ei,eo){try{return this.validateSync(ei,eo),!0}catch(ei){if(eK.isError(ei))return!1;throw ei}}_getDefault(ei){let eo=this.spec.default;return null==eo?eo:"function"==typeof eo?eo.call(this,ei):tc(eo)}getDefault(ei){return this.resolve(ei||{})._getDefault(ei)}default(ei){return 0==arguments.length?this._getDefault():this.clone({default:ei})}strict(ei=!0){return this.clone({strict:ei})}nullability(ei,eo){let ea=this.clone({nullable:ei});return ea.internalTests.nullable=e7({message:eo,name:"nullable",test(ei){return null!==ei||this.schema.spec.nullable}}),ea}optionality(ei,eo){let ea=this.clone({optional:ei});return ea.internalTests.optionality=e7({message:eo,name:"optionality",test(ei){return void 0!==ei||this.schema.spec.optional}}),ea}optional(){return this.optionality(!0)}defined(ei=eY.defined){return this.optionality(!1,ei)}nullable(){return this.nullability(!0)}nonNullable(ei=eY.notNull){return this.nullability(!1,ei)}required(ei=eY.required){return this.clone().withMutation(eo=>eo.nonNullable(ei).defined(ei))}notRequired(){return this.clone().withMutation(ei=>ei.nullable().optional())}transform(ei){let eo=this.clone();return eo.transforms.push(ei),eo}test(...ei){let eo;if(void 0===(eo=1===ei.length?"function"==typeof ei[0]?{test:ei[0]}:ei[0]:2===ei.length?{name:ei[0],test:ei[1]}:{name:ei[0],message:ei[1],test:ei[2]}).message&&(eo.message=eY.default),"function"!=typeof eo.test)throw TypeError("`test` is a required parameters");let ea=this.clone(),eu=e7(eo),ec=eo.exclusive||eo.name&&!0===ea.exclusiveTests[eo.name];if(eo.exclusive&&!eo.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return eo.name&&(ea.exclusiveTests[eo.name]=!!eo.exclusive),ea.tests=ea.tests.filter(ei=>ei.OPTIONS.name!==eo.name||!ec&&ei.OPTIONS.test!==eu.OPTIONS.test),ea.tests.push(eu),ea}when(ei,eo){Array.isArray(ei)||"string"==typeof ei||(eo=ei,ei=".");let ea=this.clone(),eu=eH(ei).map(ei=>new e8(ei));return eu.forEach(ei=>{ei.isSibling&&ea.deps.push(ei.key)}),ea.conditions.push("function"==typeof eo?new e4(eu,eo):e4.fromOptions(eu,eo)),ea}typeError(ei){let eo=this.clone();return eo.internalTests.typeError=e7({message:ei,name:"typeError",skipAbsent:!0,test(ei){return!!this.schema._typeCheck(ei)||this.createError({params:{type:this.schema.type}})}}),eo}oneOf(ei,eo=eY.oneOf){let ea=this.clone();return ei.forEach(ei=>{ea._whitelist.add(ei),ea._blacklist.delete(ei)}),ea.internalTests.whiteList=e7({message:eo,name:"oneOf",skipAbsent:!0,test(ei){let eo=this.schema._whitelist,ea=eo.resolveAll(this.resolve);return!!ea.includes(ei)||this.createError({params:{values:Array.from(eo).join(", "),resolved:ea}})}}),ea}notOneOf(ei,eo=eY.notOneOf){let ea=this.clone();return ei.forEach(ei=>{ea._blacklist.add(ei),ea._whitelist.delete(ei)}),ea.internalTests.blacklist=e7({message:eo,name:"notOneOf",test(ei){let eo=this.schema._blacklist,ea=eo.resolveAll(this.resolve);return!ea.includes(ei)||this.createError({params:{values:Array.from(eo).join(", "),resolved:ea}})}}),ea}strip(ei=!0){let eo=this.clone();return eo.spec.strip=ei,eo}describe(ei){let eo=(ei?this.resolve(ei):this).clone(),{label:ea,meta:eu,optional:ec,nullable:ed}=eo.spec,ef={meta:eu,label:ea,optional:ec,nullable:ed,default:eo.getDefault(ei),type:eo.type,oneOf:eo._whitelist.describe(),notOneOf:eo._blacklist.describe(),tests:eo.tests.map(ei=>({name:ei.OPTIONS.name,params:ei.OPTIONS.params})).filter((ei,eo,ea)=>ea.findIndex(eo=>eo.name===ei.name)===eo)};return ef}}for(let ei of(td.prototype.__isYupSchema__=!0,["validate","validateSync"]))td.prototype[`${ei}At`]=function(eo,ea,eu={}){let{parent:ec,parentPath:ed,schema:ef}=ta(this,eo,ea,eu.context);return ef[ei](ec&&ec[ed],Object.assign({},eu,{parent:ec,path:eo}))};for(let ei of["equals","is"])td.prototype[ei]=td.prototype.oneOf;for(let ei of["not","nope"])td.prototype[ei]=td.prototype.notOneOf;let tf=()=>!0;function tp(ei){return new tg(ei)}class tg extends td{constructor(ei){super("function"==typeof ei?{type:"mixed",check:ei}:Object.assign({type:"mixed",check:tf},ei))}}function tm(){return new tv}tp.prototype=tg.prototype;class tv extends td{constructor(){super({type:"boolean",check:ei=>(ei instanceof Boolean&&(ei=ei.valueOf()),"boolean"==typeof ei)}),this.withMutation(()=>{this.transform((ei,eo,ea)=>{if(ea.spec.coerce&&!ea.isType(ei)){if(/^(true|1)$/i.test(String(ei)))return!0;if(/^(false|0)$/i.test(String(ei)))return!1}return ei})})}isTrue(ei=eQ.isValue){return this.test({message:ei,name:"is-value",exclusive:!0,params:{value:"true"},test:ei=>e9(ei)||!0===ei})}isFalse(ei=eQ.isValue){return this.test({message:ei,name:"is-value",exclusive:!0,params:{value:"false"},test:ei=>e9(ei)||!1===ei})}default(ei){return super.default(ei)}defined(ei){return super.defined(ei)}optional(){return super.optional()}required(ei){return super.required(ei)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(ei){return super.nonNullable(ei)}strip(ei){return super.strip(ei)}}tm.prototype=tv.prototype;let tb=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,tw=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,t_=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,tS=ei=>e9(ei)||ei===ei.trim(),tE=({}).toString();function tA(){return new tT}class tT extends td{constructor(){super({type:"string",check:ei=>(ei instanceof String&&(ei=ei.valueOf()),"string"==typeof ei)}),this.withMutation(()=>{this.transform((ei,eo,ea)=>{if(!ea.spec.coerce||ea.isType(ei)||Array.isArray(ei))return ei;let eu=null!=ei&&ei.toString?ei.toString():ei;return eu===tE?ei:eu})})}required(ei){return super.required(ei).withMutation(eo=>eo.test({message:ei||eY.required,name:"required",skipAbsent:!0,test:ei=>!!ei.length}))}notRequired(){return super.notRequired().withMutation(ei=>(ei.tests=ei.tests.filter(ei=>"required"!==ei.OPTIONS.name),ei))}length(ei,eo=eZ.length){return this.test({message:eo,name:"length",exclusive:!0,params:{length:ei},skipAbsent:!0,test(eo){return eo.length===this.resolve(ei)}})}min(ei,eo=eZ.min){return this.test({message:eo,name:"min",exclusive:!0,params:{min:ei},skipAbsent:!0,test(eo){return eo.length>=this.resolve(ei)}})}max(ei,eo=eZ.max){return this.test({name:"max",exclusive:!0,message:eo,params:{max:ei},skipAbsent:!0,test(eo){return eo.length<=this.resolve(ei)}})}matches(ei,eo){let ea,eu,ec=!1;return eo&&("object"==typeof eo?{excludeEmptyString:ec=!1,message:ea,name:eu}=eo:ea=eo),this.test({name:eu||"matches",message:ea||eZ.matches,params:{regex:ei},skipAbsent:!0,test:eo=>""===eo&&ec||-1!==eo.search(ei)})}email(ei=eZ.email){return this.matches(tb,{name:"email",message:ei,excludeEmptyString:!0})}url(ei=eZ.url){return this.matches(tw,{name:"url",message:ei,excludeEmptyString:!0})}uuid(ei=eZ.uuid){return this.matches(t_,{name:"uuid",message:ei,excludeEmptyString:!1})}ensure(){return this.default("").transform(ei=>null===ei?"":ei)}trim(ei=eZ.trim){return this.transform(ei=>null!=ei?ei.trim():ei).test({message:ei,name:"trim",test:tS})}lowercase(ei=eZ.lowercase){return this.transform(ei=>e9(ei)?ei:ei.toLowerCase()).test({message:ei,name:"string_case",exclusive:!0,skipAbsent:!0,test:ei=>e9(ei)||ei===ei.toLowerCase()})}uppercase(ei=eZ.uppercase){return this.transform(ei=>e9(ei)?ei:ei.toUpperCase()).test({message:ei,name:"string_case",exclusive:!0,skipAbsent:!0,test:ei=>e9(ei)||ei===ei.toUpperCase()})}}tA.prototype=tT.prototype;let tk=ei=>ei!=+ei;function tC(){return new tO}class tO extends td{constructor(){super({type:"number",check:ei=>(ei instanceof Number&&(ei=ei.valueOf()),"number"==typeof ei&&!tk(ei))}),this.withMutation(()=>{this.transform((ei,eo,ea)=>{if(!ea.spec.coerce)return ei;let eu=ei;if("string"==typeof eu){if(""===(eu=eu.replace(/\s/g,"")))return NaN;eu=+eu}return ea.isType(eu)||null===eu?eu:parseFloat(eu)})})}min(ei,eo=e$.min){return this.test({message:eo,name:"min",exclusive:!0,params:{min:ei},skipAbsent:!0,test(eo){return eo>=this.resolve(ei)}})}max(ei,eo=e$.max){return this.test({message:eo,name:"max",exclusive:!0,params:{max:ei},skipAbsent:!0,test(eo){return eo<=this.resolve(ei)}})}lessThan(ei,eo=e$.lessThan){return this.test({message:eo,name:"max",exclusive:!0,params:{less:ei},skipAbsent:!0,test(eo){return eothis.resolve(ei)}})}positive(ei=e$.positive){return this.moreThan(0,ei)}negative(ei=e$.negative){return this.lessThan(0,ei)}integer(ei=e$.integer){return this.test({name:"integer",message:ei,skipAbsent:!0,test:ei=>Number.isInteger(ei)})}truncate(){return this.transform(ei=>e9(ei)?ei:0|ei)}round(ei){var eo;let ea=["ceil","floor","round","trunc"];if("trunc"===(ei=(null==(eo=ei)?void 0:eo.toLowerCase())||"round"))return this.truncate();if(-1===ea.indexOf(ei.toLowerCase()))throw TypeError("Only valid options for round() are: "+ea.join(", "));return this.transform(eo=>e9(eo)?eo:Math[ei](eo))}}tC.prototype=tO.prototype;let tI=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function tP(ei,eo=0){return Number(ei)||eo}function tD(ei){let eo=tI.exec(ei);if(!eo)return Date.parse?Date.parse(ei):Number.NaN;let ea={year:tP(eo[1]),month:tP(eo[2],1)-1,day:tP(eo[3],1),hour:tP(eo[4]),minute:tP(eo[5]),second:tP(eo[6]),millisecond:eo[7]?tP(eo[7].substring(0,3)):0,z:eo[8]||void 0,plusMinus:eo[9]||void 0,hourOffset:tP(eo[10]),minuteOffset:tP(eo[11])};if(void 0===ea.z&&void 0===ea.plusMinus)return new Date(ea.year,ea.month,ea.day,ea.hour,ea.minute,ea.second,ea.millisecond).valueOf();let eu=0;return"Z"!==ea.z&&void 0!==ea.plusMinus&&(eu=60*ea.hourOffset+ea.minuteOffset,"+"===ea.plusMinus&&(eu=0-eu)),Date.UTC(ea.year,ea.month,ea.day,ea.hour,ea.minute+eu,ea.second,ea.millisecond)}let tN=new Date(""),tM=ei=>"[object Date]"===Object.prototype.toString.call(ei);function tj(){return new tR}class tR extends td{constructor(){super({type:"date",check:ei=>tM(ei)&&!isNaN(ei.getTime())}),this.withMutation(()=>{this.transform((ei,eo,ea)=>!ea.spec.coerce||ea.isType(ei)||null===ei?ei:isNaN(ei=tD(ei))?tR.INVALID_DATE:new Date(ei))})}prepareParam(ei,eo){let ea;if(e8.isRef(ei))ea=ei;else{let eu=this.cast(ei);if(!this._typeCheck(eu))throw TypeError(`\`${eo}\` must be a Date or a value that can be \`cast()\` to a Date`);ea=eu}return ea}min(ei,eo=eJ.min){let ea=this.prepareParam(ei,"min");return this.test({message:eo,name:"min",exclusive:!0,params:{min:ei},skipAbsent:!0,test(ei){return ei>=this.resolve(ea)}})}max(ei,eo=eJ.max){let ea=this.prepareParam(ei,"max");return this.test({message:eo,name:"max",exclusive:!0,params:{max:ei},skipAbsent:!0,test(ei){return ei<=this.resolve(ea)}})}}function tL(ei,eo=[]){let ea=[],eu=new Set,ec=new Set(eo.map(([ei,eo])=>`${ei}-${eo}`));function ed(ei,eo){let ed=(0,eP.split)(ei)[0];eu.add(ed),ec.has(`${eo}-${ed}`)||ea.push([eo,ed])}for(let eo of Object.keys(ei)){let ea=ei[eo];eu.add(eo),e8.isRef(ea)&&ea.isSibling?ed(ea.path,eo):e5(ea)&&"deps"in ea&&ea.deps.forEach(ei=>ed(ei,eo))}return eM().array(Array.from(eu),ea).reverse()}function tF(ei,eo){let ea=1/0;return ei.some((ei,eu)=>{var ec;if(null!=(ec=eo.path)&&ec.includes(ei))return ea=eu,!0}),ea}function tB(ei){return(eo,ea)=>tF(ei,eo)-tF(ei,ea)}tR.INVALID_DATE=tN,tj.prototype=tR.prototype,tj.INVALID_DATE=tN;let tU=(ei,eo,ea)=>{if("string"!=typeof ei)return ei;let eu=ei;try{eu=JSON.parse(ei)}catch(ei){}return ea.isType(eu)?eu:ei};function tG(ei){if("fields"in ei){let eo={};for(let[ea,eu]of Object.entries(ei.fields))eo[ea]=tG(eu);return ei.setFields(eo)}if("array"===ei.type){let eo=ei.optional();return eo.innerType&&(eo.innerType=tG(eo.innerType)),eo}return"tuple"===ei.type?ei.optional().clone({types:ei.spec.types.map(tG)}):"optional"in ei?ei.optional():ei}let tV=(ei,eo)=>{let ea=[...(0,eP.normalizePath)(eo)];if(1===ea.length)return ea[0]in ei;let eu=ea.pop(),ec=(0,eP.getter)((0,eP.join)(ea),!0)(ei);return!!(ec&&eu in ec)},tq=ei=>"[object Object]"===Object.prototype.toString.call(ei);function tH(ei,eo){let ea=Object.keys(ei.fields);return Object.keys(eo).filter(ei=>-1===ea.indexOf(ei))}let tW=tB([]);function tK(ei){return new tY(ei)}class tY extends td{constructor(ei){super({type:"object",check:ei=>tq(ei)||"function"==typeof ei}),this.fields=Object.create(null),this._sortErrors=tW,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{ei&&this.shape(ei)})}_cast(ei,eo={}){var ea;let eu=super._cast(ei,eo);if(void 0===eu)return this.getDefault(eo);if(!this._typeCheck(eu))return eu;let ec=this.fields,ed=null!=(ea=eo.stripUnknown)?ea:this.spec.noUnknown,ef=[].concat(this._nodes,Object.keys(eu).filter(ei=>!this._nodes.includes(ei))),eh={},eg=Object.assign({},eo,{parent:eh,__validating:eo.__validating||!1}),em=!1;for(let ei of ef){let ea=ec[ei],ef=ei in eu;if(ea){let ec;let ed=eu[ei];eg.path=(eo.path?`${eo.path}.`:"")+ei;let ef=(ea=ea.resolve({value:ed,context:eo.context,parent:eh}))instanceof td?ea.spec:void 0,eb=null==ef?void 0:ef.strict;if(null!=ef&&ef.strip){em=em||ei in eu;continue}void 0!==(ec=eo.__validating&&eb?eu[ei]:ea.cast(eu[ei],eg))&&(eh[ei]=ec)}else ef&&!ed&&(eh[ei]=eu[ei]);(ef!==ei in eh||eh[ei]!==eu[ei])&&(em=!0)}return em?eh:eu}_validate(ei,eo={},ea,eu){let{from:ec=[],originalValue:ed=ei,recursive:ef=this.spec.recursive}=eo;eo.from=[{schema:this,value:ed},...ec],eo.__validating=!0,eo.originalValue=ed,super._validate(ei,eo,ea,(ei,ec)=>{if(!ef||!tq(ec)){eu(ei,ec);return}ed=ed||ec;let eh=[];for(let ei of this._nodes){let ea=this.fields[ei];!ea||e8.isRef(ea)||eh.push(ea.asNestedTest({options:eo,key:ei,parent:ec,parentPath:eo.path,originalParent:ed}))}this.runTests({tests:eh,value:ec,originalValue:ed,options:eo},ea,eo=>{eu(eo.sort(this._sortErrors).concat(ei),ec)})})}clone(ei){let eo=super.clone(ei);return eo.fields=Object.assign({},this.fields),eo._nodes=this._nodes,eo._excludedEdges=this._excludedEdges,eo._sortErrors=this._sortErrors,eo}concat(ei){let eo=super.concat(ei),ea=eo.fields;for(let[ei,eo]of Object.entries(this.fields)){let eu=ea[ei];ea[ei]=void 0===eu?eo:eu}return eo.withMutation(eo=>eo.setFields(ea,[...this._excludedEdges,...ei._excludedEdges]))}_getDefault(ei){if("default"in this.spec)return super._getDefault(ei);if(!this._nodes.length)return;let eo={};return this._nodes.forEach(ea=>{var eu;let ec=this.fields[ea],ed=ei;null!=(eu=ed)&&eu.value&&(ed=Object.assign({},ed,{parent:ed.value,value:ed.value[ea]})),eo[ea]=ec&&"getDefault"in ec?ec.getDefault(ed):void 0}),eo}setFields(ei,eo){let ea=this.clone();return ea.fields=ei,ea._nodes=tL(ei,eo),ea._sortErrors=tB(Object.keys(ei)),eo&&(ea._excludedEdges=eo),ea}shape(ei,eo=[]){return this.clone().withMutation(ea=>{let eu=ea._excludedEdges;return eo.length&&(Array.isArray(eo[0])||(eo=[eo]),eu=[...ea._excludedEdges,...eo]),ea.setFields(Object.assign(ea.fields,ei),eu)})}partial(){let ei={};for(let[eo,ea]of Object.entries(this.fields))ei[eo]="optional"in ea&&ea.optional instanceof Function?ea.optional():ea;return this.setFields(ei)}deepPartial(){let ei=tG(this);return ei}pick(ei){let eo={};for(let ea of ei)this.fields[ea]&&(eo[ea]=this.fields[ea]);return this.setFields(eo,this._excludedEdges.filter(([eo,ea])=>ei.includes(eo)&&ei.includes(ea)))}omit(ei){let eo=[];for(let ea of Object.keys(this.fields))ei.includes(ea)||eo.push(ea);return this.pick(eo)}from(ei,eo,ea){let eu=(0,eP.getter)(ei,!0);return this.transform(ec=>{if(!ec)return ec;let ed=ec;return tV(ec,ei)&&(ed=Object.assign({},ec),ea||delete ed[ei],ed[eo]=eu(ec)),ed})}json(){return this.transform(tU)}noUnknown(ei=!0,eo=eX.noUnknown){"boolean"!=typeof ei&&(eo=ei,ei=!0);let ea=this.test({name:"noUnknown",exclusive:!0,message:eo,test(eo){if(null==eo)return!0;let ea=tH(this.schema,eo);return!ei||0===ea.length||this.createError({params:{unknown:ea.join(", ")}})}});return ea.spec.noUnknown=ei,ea}unknown(ei=!0,eo=eX.noUnknown){return this.noUnknown(!ei,eo)}transformKeys(ei){return this.transform(eo=>{if(!eo)return eo;let ea={};for(let eu of Object.keys(eo))ea[ei(eu)]=eo[eu];return ea})}camelCase(){return this.transformKeys(eD.camelCase)}snakeCase(){return this.transformKeys(eD.snakeCase)}constantCase(){return this.transformKeys(ei=>(0,eD.snakeCase)(ei).toUpperCase())}describe(ei){let eo=(ei?this.resolve(ei):this).clone(),ea=super.describe(ei);for(let[ec,ed]of(ea.fields={},Object.entries(eo.fields))){var eu;let eo=ei;null!=(eu=eo)&&eu.value&&(eo=Object.assign({},eo,{parent:eo.value,value:eo.value[ec]})),ea.fields[ec]=ed.describe(eo)}return ea}}function tZ(ei){return new t$(ei)}tK.prototype=tY.prototype;class t$ extends td{constructor(ei){super({type:"array",spec:{types:ei},check:ei=>Array.isArray(ei)}),this.innerType=void 0,this.innerType=ei}_cast(ei,eo){let ea=super._cast(ei,eo);if(!this._typeCheck(ea)||!this.innerType)return ea;let eu=!1,ec=ea.map((ei,ea)=>{let ec=this.innerType.cast(ei,Object.assign({},eo,{path:`${eo.path||""}[${ea}]`}));return ec!==ei&&(eu=!0),ec});return eu?ec:ea}_validate(ei,eo={},ea,eu){var ec;let ed=this.innerType,ef=null!=(ec=eo.recursive)?ec:this.spec.recursive;null!=eo.originalValue&&eo.originalValue,super._validate(ei,eo,ea,(ec,eh)=>{var eg,em;if(!ef||!ed||!this._typeCheck(eh)){eu(ec,eh);return}let eb=Array(eh.length);for(let ea=0;eaeu(ei.concat(ec),eh))})}clone(ei){let eo=super.clone(ei);return eo.innerType=this.innerType,eo}json(){return this.transform(tU)}concat(ei){let eo=super.concat(ei);return eo.innerType=this.innerType,ei.innerType&&(eo.innerType=eo.innerType?eo.innerType.concat(ei.innerType):ei.innerType),eo}of(ei){let eo=this.clone();if(!e5(ei))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+eV(ei));return eo.innerType=ei,eo.spec=Object.assign({},eo.spec,{types:ei}),eo}length(ei,eo=e0.length){return this.test({message:eo,name:"length",exclusive:!0,params:{length:ei},skipAbsent:!0,test(eo){return eo.length===this.resolve(ei)}})}min(ei,eo){return eo=eo||e0.min,this.test({message:eo,name:"min",exclusive:!0,params:{min:ei},skipAbsent:!0,test(eo){return eo.length>=this.resolve(ei)}})}max(ei,eo){return eo=eo||e0.max,this.test({message:eo,name:"max",exclusive:!0,params:{max:ei},skipAbsent:!0,test(eo){return eo.length<=this.resolve(ei)}})}ensure(){return this.default(()=>[]).transform((ei,eo)=>this._typeCheck(ei)?ei:null==eo?[]:[].concat(eo))}compact(ei){let eo=ei?(eo,ea,eu)=>!ei(eo,ea,eu):ei=>!!ei;return this.transform(ei=>null!=ei?ei.filter(eo):ei)}describe(ei){let eo=(ei?this.resolve(ei):this).clone(),ea=super.describe(ei);if(eo.innerType){var eu;let ec=ei;null!=(eu=ec)&&eu.value&&(ec=Object.assign({},ec,{parent:ec.value,value:ec.value[0]})),ea.innerType=eo.innerType.describe(ec)}return ea}}function tJ(ei){return new tQ(ei)}tZ.prototype=t$.prototype;class tQ extends td{constructor(ei){super({type:"tuple",spec:{types:ei},check(ei){let eo=this.spec.types;return Array.isArray(ei)&&ei.length===eo.length}}),this.withMutation(()=>{this.typeError(e3.notType)})}_cast(ei,eo){let{types:ea}=this.spec,eu=super._cast(ei,eo);if(!this._typeCheck(eu))return eu;let ec=!1,ed=ea.map((ei,ea)=>{let ed=ei.cast(eu[ea],Object.assign({},eo,{path:`${eo.path||""}[${ea}]`}));return ed!==eu[ea]&&(ec=!0),ed});return ec?ed:eu}_validate(ei,eo={},ea,eu){let ec=this.spec.types;super._validate(ei,eo,ea,(ed,ef)=>{var eh,eg;if(!this._typeCheck(ef)){eu(ed,ef);return}let em=[];for(let[ea,eu]of ec.entries())em[ea]=eu.asNestedTest({options:eo,index:ea,parent:ef,parentPath:eo.path,originalParent:null!=(eg=eo.originalValue)?eg:ei});this.runTests({value:ef,tests:em,originalValue:null!=(eh=eo.originalValue)?eh:ei,options:eo},ea,ei=>eu(ei.concat(ed),ef))})}describe(ei){let eo=(ei?this.resolve(ei):this).clone(),ea=super.describe(ei);return ea.innerType=eo.spec.types.map((eo,ea)=>{var eu;let ec=ei;return null!=(eu=ec)&&eu.value&&(ec=Object.assign({},ec,{parent:ec.value,value:ec.value[ea]})),eo.describe(ec)}),ea}}tJ.prototype=tQ.prototype,tK({username:tA().required(),password:tA().required(),tfa:tA().when("tfa_id",{is:ei=>void 0!==ei,then:ei=>ei.required()}),tfa_id:tA()});let tX=({config:ei,translations:eo})=>{let ea=tK({username:(null==ei?void 0:ei.allowOnlyEmailSignIn)?tA().email(eo.emailRequired).required(eo.emailRequired):tA().required(eo.usernameRequired),password:tA().required(eo.passwordRequired),tfa:tA().when("tfa_id",{is:ei=>void 0!==ei,then:ei=>ei.required(eo.tfaRequired)}),tfa_id:tA()});return(0,ew.cI)(Object.assign({resolver:eI(ea)},ei))};var ra=ea(54276),ru=ea(89866),rc=ea(88643),rf=ea(99976),rh=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let rp=Error("needs two-factor authentication"),ry=(ei={})=>{let eo=(0,ru.W)(),{login:ea}=(0,rc.k)(),[eu,ec]=(0,eb.useState)(),[ed,ef]=(0,eb.useState)([]),[eh,eg]=(0,eb.useState)(),[em,ew]=(0,eb.useState)(),e_=({username:ei,password:ea,slid:eu})=>rh(void 0,void 0,void 0,function*(){let{data:{result:{challenge2:ed}}}=yield eo.session.initSession(),eh=(yield(0,rf.p)(ed)).solution,em=yield eo.account.getTfaUsernamePassword({username:ei,password:ea},{headers:Object.assign({"x-pow":eh},eu?{"x-slid":eu}:{})});if("none"===em.data.result.type)return;let eb=em.data.result;return(null==eb?void 0:eb.secret)!==void 0&&(ef(eb.secret.options),ew(eb.secret.challenge)),(null==eb?void 0:eb.main)!==void 0&&(ec(eb.main.options),eg(eb.main.challenge)),eb}),[eS,{loading:eE,error:eA}]=(0,ra.i)(({username:ei,password:eu,tfa:ec,tfaId:ed,slid:ef})=>rh(void 0,void 0,void 0,function*(){if(!ec){let eo=yield e_({username:ei,password:eu,slid:ef});if((null==eo?void 0:eo.main)!==void 0)throw rp}let{data:{result:{challenge2:eh}}}=yield eo.session.initSession();yield ea({username:ei,password:eu,tfa:ec,tfa_id:ed},{headers:Object.assign({"x-pow":(yield(0,rf.p)(eh)).solution},ef?{"x-slid":ef}:{})})}),ei);return{signIn:eS,getSignInTfa:e_,loading:eE,error:eA,tfaOptions:eu,tfaMasterOptions:ed,tfaChallenge:eh,tfaMasterChallenge:em}};var rw=ea(92799),r_=ea(15269),rS=ea.n(r_),rE=ea(62213),rA=ea(91572),rT=ea(67181),rk=ea(69938),rC=ea(59112),rO=ea(24160),rI=ea(94907);let rP=()=>{let{track:ei}=(0,rI.Sl)();return eo=>{ei({eventType:"System",eventName:"Sign In Error",params:eo})}},rD=ei=>/@/.test(ei);var rN=ea(16164);!function(ei){ei.AccountClosed="AccountClosed",ei.AccountTemporarilySuspended="AccountTemporarilySuspended",ei.FailedBypassSignIn="FailedBypassSignIn",ei.InvalidCredentialsWithUsernameSignIn="InvalidCredentialsWithUsernameSignIn",ei.InvalidCredentialsWithEmailSignIn="InvalidCredentialsWithEmailSignIn",ei.InvalidTFA="InvalidTFA",ei.InvalidWebAuthn="InvalidWebAuthn",ei.RateLimitExceeded="RateLimitExceeded",ei.Unknown="Unknown"}(ec||(ec={}));let rM=ei=>ei.type===rA.lF.MandatoryDeviceApproval||void 0!==(null!==(ef=(null!==(ed=ei.data)&&void 0!==ed?ed:{}).errors)&&void 0!==ef?ef:[]).find(ei=>(null==ei?void 0:ei.type)===rA.lF.MandatoryDeviceApproval),rj=(ei,eo,ea,eu)=>{let{close:ed}=(0,rE.z)(),ef=rP(),eh=(0,rI.p1)(),eg=eo=>{ef({error:String(ei),displayedErrorKey:eo})};if(!ei)return null;let em=ei;if(null==em?void 0:em.type){if(rM(em))return eg(null),window.localStorage.setItem("username",ea().username),window.location.href=eh(rN.Jt.ConfirmSignIn),null;if(em.type===rA.lF.LoginFailed)return rD(ea().username)?(eg(ec.InvalidCredentialsWithEmailSignIn),ec.InvalidCredentialsWithEmailSignIn):(eg(eo),eo);if("Account closed"===em.type)return eg(eo),eo;if(em.type===rA.lF.AccountLocked||"Account temporary disabled"===em.type)return eg(ec.AccountTemporarilySuspended),ec.AccountTemporarilySuspended;if(em.type===rA.lF.AccountUnconfirmed)return eg(null),window.location.href=eh(rN.Jt.ActivateAccount),null;if(em.type===rA.lF.UnapprovedDevice)return eg(null),window.localStorage.setItem("username",ea().username),eu(),null;if(em.type===rA.lF.RateLimitExceeded||em.type===rA.lF.TooManyRequests)return eg(ec.RateLimitExceeded),ec.RateLimitExceeded;if(em.type===rA.lF.MustLogout)return eg(null),ed(),null;if(em.type===rA.lF.NoSession||em.type===rA.lF.SessionExpired)return eg(ec.Unknown),ec.Unknown}return eg(ec.Unknown),null};var rR="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTM1IiBoZWlnaHQ9IjE1NSIgdmlld0JveD0iMCAwIDEzNSAxNTUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxlbGxpcHNlIGN4PSI2Ny4yMTk5IiBjeT0iNzkiIHJ4PSI2Ny4yMTk5IiByeT0iNjcuNSIgZmlsbD0iI0VFRUNGQiIvPgo8cGF0aCBkPSJNNDYuNzEzMSAxNTIuNzAzQzQ2LjcxMzEgMTUzLjk2NiA0Ny43NzE2IDE1NSA0OS4wNjUyIDE1NUw4NC45MzQ3IDE1NUM4Ni4yMjg0IDE1NSA4Ny4yODY4IDE1My45NjYgODcuMjg2OCAxNTIuNzAzTDg3LjI4NjggMTIwLjU1NUw0Ni43MTMxIDEyMC41NTVMNDYuNzEzMSAxNTIuNzAzWk04My43NTg3IDEyNS43MjJMODMuNzU4NyAxNDkuODMzTDc2LjcwMjQgMTQ5LjgzM0w3Ni43MDI0IDEyNS43MjJMODMuNzU4NyAxMjUuNzIyWk03NC45MzgzIDEyNS43MjJMNzQuOTM4MyAxNDIuOTQ0TDY3Ljg4MiAxNDIuOTQ0TDY3Ljg4MiAxMjUuNzIyTDc0LjkzODMgMTI1LjcyMlpNNjYuMTE3OSAxMjUuNzIyTDY2LjExNzkgMTQyLjk0NEw1OS4wNjE3IDE0Mi45NDRMNTkuMDYxNyAxMjUuNzIyTDY2LjExNzkgMTI1LjcyMlpNNTcuMjk3NiAxMjUuNzIyTDU3LjI5NzYgMTQ5LjgzM0w1MC4yNDEzIDE0OS44MzNMNTAuMjQxMyAxMjUuNzIyTDU3LjI5NzYgMTI1LjcyMloiIGZpbGw9IiMwQzA3NTQiLz4KPHBhdGggZD0iTTY3Ljg4MTggMTI1LjcyMkw2Ny44ODE4IDE0Mi45NDRMNzQuOTM4MSAxNDIuOTQ0TDc0LjkzODEgMTI1LjcyMkw2Ny44ODE4IDEyNS43MjJaIiBmaWxsPSIjRkJFQkExIi8+CjxwYXRoIGQ9Ik03Ni43MDI0IDEyNS43MjJMNzYuNzAyNCAxNDkuODMzTDgzLjc1ODcgMTQ5LjgzM0w4My43NTg3IDEyNS43MjJMNzYuNzAyNCAxMjUuNzIyWiIgZmlsbD0iI0ZCRUJBMSIvPgo8cGF0aCBkPSJNNTkuMDYxOCAxMjUuNzIyTDU5LjA2MTggMTQyLjk0NEw2Ni4xMTgxIDE0Mi45NDRMNjYuMTE4MSAxMjUuNzIyTDU5LjA2MTggMTI1LjcyMloiIGZpbGw9IiNGQkVCQTEiLz4KPHBhdGggZD0iTTUwLjI0MTIgMTI1LjcyMkw1MC4yNDEyIDE0OS44MzNMNTcuMjk3NSAxNDkuODMzTDU3LjI5NzUgMTI1LjcyMkw1MC4yNDEyIDEyNS43MjJaIiBmaWxsPSIjRkJFQkExIi8+CjxwYXRoIGQ9Ik0zNi4xMjg3IDYuODg4OThMMzYuMTI4NyAxMTMuNjY3QzM2LjEyODcgMTE3LjQ1NSAzOS4zMDQgMTIwLjU1NSA0My4xODUgMTIwLjU1NUw0Ni43MTMxIDEyMC41NTVMODcuMjg2OCAxMjAuNTU1TDkwLjgxNSAxMjAuNTU1Qzk0LjY5NTkgMTIwLjU1NSA5Ny44NzEzIDExNy40NTUgOTcuODcxMyAxMTMuNjY3TDk3Ljg3MTMgNi44ODg5OEM5Ny44NzEzIDMuMTAwMSA5NC42OTU5IDAuMDAwMTExODgxIDkwLjgxNSAwLjAwMDExMjA1MUw0My4xODUgMC4wMDAxMTQxMzJDMzkuMzA0IDAuMDAwMTE0MzAyIDM2LjEyODcgMy4xMDAxMSAzNi4xMjg3IDYuODg4OThaTTc2LjcwMjQgMjguNDE2N0M3Ni43MDI0IDMzLjY0MDggNzIuMzUxIDM3Ljg4ODkgNjcgMzcuODg4OUM2MS42NDg5IDM3Ljg4ODkgNTcuMjk3NiAzMy42NDA4IDU3LjI5NzYgMjguNDE2N0M1Ny4yOTc2IDIzLjE5MjcgNjEuNjQ4OSAxOC45NDQ1IDY3IDE4Ljk0NDVDNzIuMzUxIDE4Ljk0NDUgNzYuNzAyNCAyMy4xOTI3IDc2LjcwMjQgMjguNDE2N1oiIGZpbGw9IiM1ODQ4RDUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01Mi41IDc0LjcwNDhWODAuODUyOEM1Mi41IDgxLjk4NSA1My4zOTggODIuOTAxMSA1NC41MDIyIDgyLjkwMTFDNTUuNjA3NyA4Mi45MDExIDU2LjUwOTkgODEuOTg1IDU2LjUwOTkgODAuODUyOFY3NC43MDQ4QzU2LjUwOTkgNzMuNTcxMSA1Ny40MDMzIDcyLjY1MzQgNTguNTEzMyA3Mi42NTM0QzU5LjYxOTUgNzIuNjUzNCA2MC41MTY3IDczLjU3MTEgNjAuNTE2NyA3NC43MDQ4VjgwLjg1MjhDNjAuNTE2NyA4MS45ODUgNjEuNDE0NyA4Mi45MDExIDYyLjUyMDIgODIuOTAxMUM2My42Mjk1IDgyLjkwMTEgNjQuNTI3MSA4MS45ODUgNjQuNTI3MSA4MC44NTI4Vjc0LjcwNDhDNjQuNTI3MSA3My41NzExIDY1LjQyNDMgNzIuNjUzNCA2Ni41MzAxIDcyLjY1MzRDNjcuNjQwNSA3Mi42NTM0IDY4LjUzODUgNzMuNTcxMSA2OC41Mzg1IDc0LjcwNDhWODAuODUyOEM2OC41Mzg1IDgxLjk4NSA2OS40MzYxIDgyLjkwMTEgNzAuNTQwNCA4Mi45MDExQzcxLjY0NTggODIuOTAxMSA3Mi41NDM4IDgxLjk4NSA3Mi41NDM4IDgwLjg1MjhWNzQuNzA0OEM3Mi41NDM4IDczLjU3MTEgNzMuNDQxNCA3Mi42NTM0IDc0LjU1MTUgNzIuNjUzNEM3NS42NTczIDcyLjY1MzQgNzYuNTU0OSA3My41NzExIDc2LjU1NDkgNzQuNzA0OFY4MC44NTI4Qzc2LjU1NDkgODEuOTg1IDc3LjQ1MjkgODIuOTAxMSA3OC41NjE0IDgyLjkwMTFDNzkuNjY3MiA4Mi45MDExIDgwLjU2NDggODEuOTg1IDgwLjU2NDggODAuODUyOFY3NC43MDQ4QzgwLjU2NDggNjYuNzgwOCA3NC4yODA4IDYwLjM1NTcgNjYuNTMwMSA2MC4zNTU3QzU4Ljc3OTcgNjAuMzU1NyA1Mi41IDY2Ljc4MDggNTIuNSA3NC43MDQ4WiIgZmlsbD0iI0NDQzZGMyIvPgo8L3N2Zz4K",rL=ea(18399);let rF=ei=>{let{children:eo,className:ea}=ei,eu=(0,rI.p1)(),ec=eu(rN.Jt.SelfHelp);return(0,em.jsx)(rL.O,{href:ec,className:ea,shallow:!0,children:eo})};function rB(ei){let{element:eo}=ei,ea=null!=eo?eo:rF,{t:eu}=(0,eE.$G)();return(0,em.jsx)(ea,{className:"mt1/2",children:(0,em.jsx)("div",{className:"inline-flex items-center",children:(0,em.jsx)("p",{className:"label-2",children:eu("general:NeedHelp")})})})}var rU=ea(14168),rz=ea.n(rU);let rG=ei=>{let{globalError:eo}=ei;return eo?(0,em.jsx)(rk.q,{kind:"error",className:"mt2",children:(0,em.jsxs)(eE.cC,{i18nKey:"login:Errors:".concat(eo),children:[(0,em.jsx)("strong",{}),(0,em.jsx)("p",{className:rz().errorParagraph},0)]})}):null},rV=ei=>{let{tfaChallenge:eo,onSubmit:ea,triggerDeviceApproval:eu,isKds:ed=!1}=ei,[ef,eh]=(0,eb.useState)(!1),{errors:eg,isSubmitting:e_}=(0,ew.cl)(),{handleSubmit:eS,setValue:eA,getValues:eT}=(0,ew.Gc)(),ek=(0,eb.useCallback)(ei=>{let eo=JSON.stringify(ei);eA("tfa",eo),eS(ei=>ea({...ei,tfa:eo}),ei=>{console.error(ei)})()},[eS,ea,eA]),eC=(0,eb.useCallback)(ei=>{console.error(ei),eh(!0)},[]),[eO,{loading:eI}]=(0,rT.Q)({onCompleted:ek,onError:eC}),eP=rj(eg.root,ec.InvalidWebAuthn,eT,eu);return(0,eb.useEffect)(()=>{eO(eo)},[eo,eO]),(0,em.jsx)("div",{className:rS().tfaContainer,children:(0,em.jsxs)("div",{className:rS().tfaFields,children:[(0,em.jsx)("img",{className:rS().tfaImage,src:rR,alt:"OTP sign-in"}),(0,em.jsxs)("div",{className:rS().inputField,children:[ef?(0,em.jsx)(em.Fragment,{children:eP?(0,em.jsx)(rG,{globalError:eP}):(0,em.jsx)(rk.q,{kind:"error",className:"mt2",children:(0,em.jsx)(rC.x,{langKey:"login:Errors:WebAuthnDialog"})})}):(0,em.jsx)("p",{className:"caption-1 text-N400",children:(0,em.jsx)(eE.cC,{i18nKey:"login:TwoFactorWebAuthnPrompt"})}),eI&&(0,em.jsxs)("p",{className:"caption-2 mt2 text-N900",children:[(0,em.jsx)(rC.x,{langKey:"login:WebAuthnWaiting"}),(0,em.jsx)(rO.x,{})]}),!eI&&e_&&(0,em.jsxs)("p",{className:"caption-2 mt2 text-G300",children:[(0,em.jsx)(rC.x,{langKey:"login:LoggingIn"}),(0,em.jsx)(rO.x,{})]}),(0,em.jsx)(rB,{})]})]})})};var rq=ea(72261),rH=ea(62410),rW="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTM1IiBoZWlnaHQ9IjE1MCIgdmlld0JveD0iMCAwIDEzNSAxNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxlbGxpcHNlIGN4PSI2Ny4yMTk5IiBjeT0iNzYuNSIgcng9IjY3LjIxOTkiIHJ5PSI2Ny41IiBmaWxsPSIjRUVFQ0ZCIi8+CjxwYXRoIGQ9Ik05Ny4zMjY5IDE1MEgzNi4yODg1QzMxLjE1ODYgMTUwIDI3IDE0NS44MjEgMjcgMTQwLjY2N1Y5LjMzMzMzQzI3IDQuMTc4NjcgMzEuMTU4NiAwIDM2LjI4ODUgMEg5Ny4zMjY5QzEwMi40NTcgMCAxMDYuNjE1IDQuMTc4NjcgMTA2LjYxNSA5LjMzMzMzVjE0MC42NjdDMTA2LjYxNSAxNDUuODIxIDEwMi40NTcgMTUwIDk3LjMyNjkgMTUwWiIgZmlsbD0iIzY0NTlEMyIvPgo8cGF0aCBkPSJNOTYuMDAwMSAzLjMzMzM3SDg1LjcxNjRWNi42NjY3MUM4NS43MTY0IDcuNzcxMDQgODQuODI1NCA4LjY2NjcxIDgzLjcyNiA4LjY2NjcxSDQ5Ljg4OTVDNDguNzkwMSA4LjY2NjcxIDQ3Ljg5OTEgNy43NzEwNCA0Ny44OTkxIDYuNjY2NzFWMy4zMzMzN0gzNy42MTU1QzMzLjU4NDkgMy4zMzMzNyAzMC4zMTc0IDYuNjE2NzEgMzAuMzE3NCAxMC42NjY3VjEzOS4zMzNDMzAuMzE3NCAxNDMuMzgzIDMzLjU4NDkgMTQ2LjY2NyAzNy42MTU1IDE0Ni42NjdIOTYuMDAwMUMxMDAuMDMxIDE0Ni42NjcgMTAzLjI5OCAxNDMuMzgzIDEwMy4yOTggMTM5LjMzM1YxMC42NjY3QzEwMy4yOTggNi42MTY3MSAxMDAuMDMxIDMuMzMzMzcgOTYuMDAwMSAzLjMzMzM3WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTY2LjgwNzcgMTAxLjY2N0M4MS40NjQ1IDEwMS42NjcgOTMuMzQ2MiA4OS43Mjc2IDkzLjM0NjIgNzVDOTMuMzQ2MiA2MC4yNzI0IDgxLjQ2NDUgNDguMzMzNCA2Ni44MDc3IDQ4LjMzMzRDNTIuMTUxIDQ4LjMzMzQgNDAuMjY5MyA2MC4yNzI0IDQwLjI2OTMgNzVDNDAuMjY5MyA4OS43Mjc2IDUyLjE1MSAxMDEuNjY3IDY2LjgwNzcgMTAxLjY2N1oiIGZpbGw9IiM1ODQ4RDUiLz4KPHBhdGggZD0iTTY2LjgwNzggOTEuOTY5QzU3LjQ3OTggOTEuOTY5IDQ5LjkyMDMgODQuMzczIDQ5LjkyMDMgNzVDNDkuOTIwMyA2NS42MjcgNTcuNDc5OCA1OC4wMzEgNjYuODA3OCA1OC4wMzFDNzEuNDY5NiA1OC4wMzEgNzUuNjkwOCA1OS45MzA3IDc4Ljc0OTEgNjMuMDAxNEw4NS41NzMxIDU2LjE0NDRDODAuNzcgNTEuMzE4IDc0LjEzNCA0OC4zMzM0IDY2LjgwNzggNDguMzMzNEM1Mi4xNTA2IDQ4LjMzMzQgNDAuMjY5MyA2MC4yNzIgNDAuMjY5MyA3NUM0MC4yNjkzIDg5LjcyOCA1Mi4xNTA2IDEwMS42NjcgNjYuODA3OCAxMDEuNjY3Qzc0LjEzNjMgMTAxLjY2NyA4MC43NyA5OC42ODIgODUuNTc1MSA5My44NThMNzguNzUxNCA4Ny4wMDE0Qzc1LjY5MDggOTAuMDY5NyA3MS40Njk2IDkxLjk2OSA2Ni44MDc4IDkxLjk2OVoiIGZpbGw9IiNBOUEyRTYiLz4KPHBhdGggZD0iTTgzLjY5NTEgNzUuMDAwMUg3NS4yNTAyQzc1LjI1MDIgNzAuMzE1NyA3MS40Njk1IDY2LjUxNDQgNjYuODA1MyA2Ni41MTQ0QzYyLjE0MTIgNjYuNTE0NCA1OC4zNjI4IDcwLjMxMzQgNTguMzYyOCA3NS4wMDAxQzU4LjM2MjggNzcuMjgyMSA1OS4yNjA4IDc5LjM1MTQgNjAuNzIxNCA4MC44NzkxTDYwLjcxNTEgODAuODg1NEw3MS4xNzAzIDkxLjM5MTFMNzEuMTcyMiA5MS4zOTMxQzc4LjM4MzEgODkuNDU5NCA4My42OTUxIDgyLjg1NDEgODMuNjk1MSA3NS4wMDAxWiIgZmlsbD0iIzIzMjE2MSIvPgo8cGF0aCBkPSJNOTMuMzQ0MiA3NUg4My42OTMyQzgzLjY5MzIgODIuODU0IDc4LjM3OTIgODkuNDU5MyA3MS4xNzI0IDkxLjM5MzNMNzguNjI1IDk4Ljg4MkM4Ny4zNDk5IDk0LjUxMzMgOTMuMzQ0MiA4NS40NjAzIDkzLjM0NDIgNzVaIiBmaWxsPSIjNTg0OEQ1Ii8+CjxwYXRoIGQ9Ik04OC41MjEgNzIuNTc1NEg2Ni44MDY5QzY1LjQ3NDYgNzIuNTc1NCA2NC4zOTQ1IDczLjY2MDQgNjQuMzk0NSA3NC45OTk0QzY0LjM5NDUgNzYuMzM4MSA2NS40NzQzIDc3LjQyMzQgNjYuODA2OSA3Ny40MjM0SDg4LjUxODdDODkuODUwOSA3Ny40MjM0IDkwLjkzMSA3Ni4zMzg0IDkwLjkzMSA3NC45OTk0QzkwLjkzMzMgNzMuNjYwNCA4OS44NTMyIDcyLjU3NTQgODguNTIxIDcyLjU3NTRaIiBmaWxsPSIjQTlBMkU2Ii8+CjxwYXRoIG9wYWNpdHk9IjAuNSIgZD0iTTg4LjUyMSA3Mi41NzU0SDY2LjgwNjlDNjUuNDc0NiA3Mi41NzU0IDY0LjM5NDUgNzMuNjYwNCA2NC4zOTQ1IDc0Ljk5OTRDNjQuMzk0NSA3Ni4zMzgxIDY1LjQ3NDMgNzcuNDIzNCA2Ni44MDY5IDc3LjQyMzRIODguNTE4N0M4OS44NTA5IDc3LjQyMzQgOTAuOTMxIDc2LjMzODQgOTAuOTMxIDc0Ljk5OTRDOTAuOTMzMyA3My42NjA0IDg5Ljg1MzIgNzIuNTc1NCA4OC41MjEgNzIuNTc1NFoiIGZpbGw9IiNBOUEyRTYiLz4KPHBhdGggZD0iTTQ1LjA5MzcgNzYuODE4MUM0Ni4wOTI5IDc2LjgxODEgNDYuOTAzIDc2LjAwNDIgNDYuOTAzIDc1LjAwMDFDNDYuOTAzIDczLjk5NjEgNDYuMDkyOSA3My4xODIxIDQ1LjA5MzcgNzMuMTgyMUM0NC4wOTQ1IDczLjE4MjEgNDMuMjg0NCA3My45OTYxIDQzLjI4NDQgNzUuMDAwMUM0My4yODQ0IDc2LjAwNDIgNDQuMDk0NSA3Ni44MTgxIDQ1LjA5MzcgNzYuODE4MVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik02Ni44MDc4IDU0Ljk5OUM2Ny44MDcgNTQuOTk5IDY4LjYxNzEgNTQuMTg1MSA2OC42MTcxIDUzLjE4MUM2OC42MTcxIDUyLjE3NyA2Ny44MDcgNTEuMzYzIDY2LjgwNzggNTEuMzYzQzY1LjgwODYgNTEuMzYzIDY0Ljk5ODUgNTIuMTc3IDY0Ljk5ODUgNTMuMTgxQzY0Ljk5ODUgNTQuMTg1MSA2NS44MDg2IDU0Ljk5OSA2Ni44MDc4IDU0Ljk5OVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik02Ni44MDc4IDk4LjYzNDhDNjcuODA3IDk4LjYzNDggNjguNjE3MSA5Ny44MjA4IDY4LjYxNzEgOTYuODE2OEM2OC42MTcxIDk1LjgxMjcgNjcuODA3IDk0Ljk5ODggNjYuODA3OCA5NC45OTg4QzY1LjgwODYgOTQuOTk4OCA2NC45OTg1IDk1LjgxMjcgNjQuOTk4NSA5Ni44MTY4QzY0Ljk5ODUgOTcuODIwOCA2NS44MDg2IDk4LjYzNDggNjYuODA3OCA5OC42MzQ4WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTUxLjQyNzcgNjEuMzg5OEM1Mi40MjY5IDYxLjM4OTggNTMuMjM2OSA2MC41NzU4IDUzLjIzNjkgNTkuNTcxOEM1My4yMzY5IDU4LjU2NzcgNTIuNDI2OSA1Ny43NTM4IDUxLjQyNzcgNTcuNzUzOEM1MC40Mjg0IDU3Ljc1MzggNDkuNjE4NCA1OC41Njc3IDQ5LjYxODQgNTkuNTcxOEM0OS42MTg0IDYwLjU3NTggNTAuNDI4NCA2MS4zODk4IDUxLjQyNzcgNjEuMzg5OFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik01MS40Mjc3IDkyLjI3MjRDNTIuNDI2OSA5Mi4yNzI0IDUzLjIzNjkgOTEuNDU4NCA1My4yMzY5IDkwLjQ1NDRDNTMuMjM2OSA4OS40NTAzIDUyLjQyNjkgODguNjM2NCA1MS40Mjc3IDg4LjYzNjRDNTAuNDI4NCA4OC42MzY0IDQ5LjYxODQgODkuNDUwMyA0OS42MTg0IDkwLjQ1NDRDNDkuNjE4NCA5MS40NTg0IDUwLjQyODQgOTIuMjcyNCA1MS40Mjc3IDkyLjI3MjRaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNODIuMTg3OSA5Mi4yNzI0QzgzLjE4NzIgOTIuMjcyNCA4My45OTcyIDkxLjQ1ODQgODMuOTk3MiA5MC40NTQ0QzgzLjk5NzIgODkuNDUwMyA4My4xODcyIDg4LjYzNjQgODIuMTg3OSA4OC42MzY0QzgxLjE4ODcgODguNjM2NCA4MC4zNzg3IDg5LjQ1MDMgODAuMzc4NyA5MC40NTQ0QzgwLjM3ODcgOTEuNDU4NCA4MS4xODg3IDkyLjI3MjQgODIuMTg3OSA5Mi4yNzI0WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";function rK(ei){let{triggerDeviceApproval:eo,isKds:ea=!1}=ei,{register:eu,getValues:ed}=(0,ew.Gc)(),{errors:ef,isValid:eh,isSubmitting:eg}=(0,ew.cl)(),{t:eb}=(0,eE.$G)(),e_=!eh||eg,eA=rj(ef.root,ec.InvalidTFA,ed,eo);return(0,em.jsxs)("div",{className:rS().tfaContainer,children:[(0,em.jsx)("div",{className:"caption-1 text-N400",children:eb("signin:OTPPrompt")}),(0,em.jsxs)("div",{className:rS().tfaFields,children:[(0,em.jsx)("img",{className:rS().tfaImage,src:rW,alt:eb("signin:OTPLabel")}),(0,em.jsxs)("div",{className:rS().inputField,children:[(0,em.jsx)("input",{placeholder:eb("signin:OTPLabel"),autoFocus:!0,className:eS()("label-1",rS().field),...eu("tfa")}),(0,em.jsx)(rB,{})]})]}),eA&&(0,em.jsx)(rG,{globalError:eA}),(0,em.jsx)(rq.zx,{disabled:e_,innerClassName:eS()({[rS().kds]:ea}),className:rS().gap,"data-testid":"otp-button",type:"submit",children:eg?(0,em.jsx)(rH.T,{skinny:!0,size:25}):(0,em.jsx)(rC.x,{langKey:"general:Signin"})})]})}var rY=ea(90119),rZ=ea.n(rY);let r$=44,rJ=500,rQ=ei=>{let{onInputFail:eo,submitYubiKeyCode:ea,nextKeyTimeout:eu}=ei,ec=(0,eb.useRef)(null),ed=(0,eb.useRef)([]);return(0,eb.useEffect)(()=>{var ei;let ef;let eh=ei=>{if("Enter"===ei.key?ei.preventDefault():ed.current.push(ei.key),ed.current.length===r$){ea(ed.current.join("")),ed.current=[];return}ef&&clearTimeout(ef),ef=window.setTimeout(()=>{ed.current.length===r$?ea(ed.current.join("")):null==eo||eo(),ed.current=[]},eu)};return null===(ei=ec.current)||void 0===ei||ei.focus(),window.addEventListener("keydown",eh),()=>{window.removeEventListener("keydown",eh),ef&&clearTimeout(ef)}},[eu,eo,ea]),(0,em.jsx)("input",{className:"hidden-position",ref:ec})};rQ.defaultProps={nextKeyTimeout:rJ},function(ei){ei[ei.Tap=0]="Tap",ei[ei.Manual=1]="Manual"}(eh||(eh={}));let rX=ei=>{let{onSubmit:eo,triggerDeviceApproval:ea,isKds:eu=!1}=ei,{t:ed}=(0,eE.$G)(),[ef,eg]=(0,eb.useState)(eh.Tap),{register:e_,setValue:eA,handleSubmit:eT,getValues:ek}=(0,ew.Gc)(),{errors:eC,isValid:eO,isSubmitting:eI}=(0,ew.cl)(),eP=!eO||eI,eD=async ei=>{eA("tfa",ei),eT(ei=>eo({...ei}),ei=>{console.error(ei)})},eN=(0,eb.useRef)(null);(0,eb.useEffect)(()=>{if(ef===eh.Manual){var ei;null==eN||null===(ei=eN.current)||void 0===ei||ei.focus()}},[ef]);let eM=()=>{eg(eh.Manual)},ej=rj(eC.root,ec.InvalidTFA,ek,ea);return(0,em.jsxs)("div",{className:"flex items-start mt2",children:[(0,em.jsx)("img",{className:"md mr4",src:rR,alt:"OTP sign-in"}),(0,em.jsxs)("div",{children:[(0,em.jsxs)("ul",{className:eS()("list-reset",rZ().yubikeyInstructions,"caption-1","text-N400"),children:[(0,em.jsx)("li",{children:(0,em.jsx)(rC.x,{langKey:"login:TwoFactorYubikeyPromptP1"})}),(0,em.jsx)("li",{children:(0,em.jsx)(rC.x,{langKey:"login:TwoFactorYubikeyPromptP2"})})]}),ef==eh.Tap?(0,em.jsxs)("div",{children:[(0,em.jsx)(rQ,{submitYubiKeyCode:eD}),eI?(0,em.jsxs)("p",{className:"caption-2 mt2 text-G300",children:[(0,em.jsx)(rC.x,{langKey:"login:LoggingIn"}),(0,em.jsx)(rO.x,{})]}):(0,em.jsxs)("p",{className:"caption-2 mt2 text-N900",children:[(0,em.jsx)(rC.x,{langKey:"login:YubiKeyWaiting"}),(0,em.jsx)(rO.x,{})]}),(0,em.jsx)("p",{className:"mt3",children:(0,em.jsx)("button",{className:"caption-link-2 pointer",onClick:eM,children:(0,em.jsx)(rC.x,{langKey:"signin:EnterTheYubikeyCodeManually"})})}),eC.tfa&&(0,em.jsx)(rk.q,{kind:"error",className:"mt2",children:(0,em.jsx)(em.Fragment,{children:eC.tfa})}),(0,em.jsx)(rB,{})]}):(0,em.jsxs)("div",{children:[(0,em.jsx)("input",{placeholder:ed("signin:TwoFACode"),className:eS()(rS().field,rS().gap),...e_("tfa")}),ej&&(0,em.jsx)(rG,{globalError:ej}),(0,em.jsx)(rq.zx,{disabled:eP,innerClassName:eS()({[rZ().kds]:eu}),className:rS().gap,type:"submit",children:eI?(0,em.jsx)(rH.T,{skinny:!0,size:25}):(0,em.jsx)(rC.x,{langKey:"general:Signin"})})]})]})]})};var ni="/nft/_next/static/chunks/images/e5b4f24ab884abd5ab8b97a1b48632f9.svg";function no(ei){let{triggerDeviceApproval:eo,isKds:ea=!1}=ei,{register:eu,getValues:ed}=(0,ew.Gc)(),{errors:ef,isValid:eh,isSubmitting:eg}=(0,ew.cl)(),{t:eb}=(0,eE.$G)(),e_=!eh||eg,eA=rj(ef.root,ec.InvalidTFA,ed,eo);return(0,em.jsxs)("div",{className:rS().tfaContainer,children:[(0,em.jsx)("div",{className:"caption-1 text-N400",children:eb("signin:StaticPasswordPrompt")}),(0,em.jsxs)("div",{className:rS().tfaFields,children:[(0,em.jsx)("img",{className:rS().tfaImage,src:ni,alt:eb("signin:TwoFAPassword")}),(0,em.jsxs)("div",{className:eS()("ml2",rS().inputField),children:[(0,em.jsx)("input",{placeholder:eb("signin:TwoFAPassword"),autoFocus:!0,className:eS()("label-1",rS().field),...eu("tfa")}),(0,em.jsx)(rB,{})]})]}),eA&&(0,em.jsx)(rG,{globalError:eA}),(0,em.jsx)(rq.zx,{disabled:e_,innerClassName:eS()({[rS().kds]:ea}),className:rS().gap,type:"submit",children:eg?(0,em.jsx)(rH.T,{skinny:!0,size:25}):(0,em.jsx)(rC.x,{langKey:"general:Signin"})})]})}function nu(ei){let{tfaOption:eo,tfaChallenge:ea,onSubmit:eu,triggerDeviceApproval:ec,isKds:ed}=ei;if(!eo)throw Error("invariant, we need to always have a primary tfa");let ef=eo.type||eo.data;switch(ef){case rA.sV.GoogleAuthHotp:case rA.sV.GoogleAuthTotp:return(0,em.jsx)(rK,{triggerDeviceApproval:ec,isKds:ed});case rA.sV.Yubikey:return(0,em.jsx)(rX,{onSubmit:eu,isKds:ed,triggerDeviceApproval:ec});case rA.sV.Password:return(0,em.jsx)(no,{triggerDeviceApproval:ec,isKds:ed});case rA.sV.Webauthn:return(0,em.jsx)(rV,{tfaChallenge:ea,onSubmit:eu,isKds:ed,triggerDeviceApproval:ec});default:return(0,em.jsx)(em.Fragment,{})}}let nd=ei=>{let{tfaOptions:eo,tfaChallenge:ea,onSubmit:eu,triggerDeviceApproval:ec,isKds:ed=!1}=ei,ef=(0,ew.qo)({name:"tfa_id"}),eh=(0,eb.useMemo)(()=>eo.find(ei=>ef?ei.id===ef:ei.primary),[ef,eo]);return eh&&0!==eo.length?(0,em.jsx)("div",{children:(0,em.jsx)(nu,{triggerDeviceApproval:ec,tfaOption:eh,tfaChallenge:ea,onSubmit:eu,isKds:ed})}):null};function nf(ei){let{register:eo,getValues:ea}=(0,ew.Gc)(),{errors:eu,isValid:ed,isSubmitting:ef}=(0,ew.cl)(),eh=!ed||ef,{t:eg}=(0,eE.$G)(),eb=rj(eu.root,ec.InvalidCredentialsWithUsernameSignIn,ea,ei.triggerDeviceApproval);return(0,em.jsxs)(em.Fragment,{children:[(0,em.jsx)("input",{placeholder:eg("login:UsernameOrEmail"),type:"text",className:eS()("label-1",rS().field),...eo("username")}),eu.username&&(0,em.jsx)("p",{className:rS().inlineError}),(0,em.jsx)("input",{placeholder:eg("login:Password"),type:"password",className:eS()("label-1",rS().field,rS().gap),...eo("password")}),eu.password&&(0,em.jsx)("p",{className:rS().inlineError}),(0,em.jsx)(rB,{element:ei.helpElement}),eh&&eb&&(0,em.jsx)(rG,{globalError:eb}),(0,em.jsx)(rq.zx,{disabled:eh,className:eS()(rS().signInButton),innerClassName:eS()({[rS().kds]:ei.isKds}),"data-testid":"sign-in-button",type:"submit",children:ef?(0,em.jsx)(rH.T,{skinny:!0,size:25}):(0,em.jsx)(rC.x,{langKey:"general:Signin"})})]})}let nh=(ei,eo,ea)=>{let eu=(0,ru.W)();(0,eb.useEffect)(()=>{let ec=window.setInterval(async()=>{try{let{data:{result:{challenge2:eo}}}=await eu.session.initSession(),ed=(await(0,rf.p)(eo)).solution,ef=(await eu.devices.checkDeviceApproval({username:ei},{headers:{"x-pow":ed}})).data.result;ef&&(clearInterval(ec),null==ea||ea())}catch(ei){}},eo);return()=>clearInterval(ec)},[eu.devices,eu.session,eo,ea,ei])};var np=ea(93552),ng=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let ny=eb.forwardRef((ei,eo)=>{var{color:ea}=ei,eu=ng(ei,["color"]);return eb.createElement("svg",Object.assign({},(0,np.ti)(eu),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eb.createElement("path",{d:"M11.0001 17.4142L18.7072 9.70712L17.293 8.29291L11.0001 14.5858L7.20718 10.7929L5.79297 12.2071L11.0001 17.4142Z",fill:ea}),eb.createElement("path",{d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12Z",fill:ea}))});ny.displayName="Check";var nw=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let n_=eb.forwardRef((ei,eo)=>{var{color:ea}=ei,eu=nw(ei,["color"]);return eb.createElement("svg",Object.assign({},(0,np.ti)(eu),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eb.createElement("path",{d:"M7.29297 15.2929L10.5859 12L7.29297 8.70712L8.70718 7.29291L12.0001 10.5858L15.293 7.29291L16.7072 8.70712L13.4143 12L16.7072 15.2929L15.293 16.7071L12.0001 13.4142L8.70718 16.7071L7.29297 15.2929Z",fill:ea}),eb.createElement("path",{d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12Z",fill:ea}))});n_.displayName="Close";var nS=ea(74507),nE=ea.n(nS);!function(ei){ei[ei.Initial=0]="Initial",ei[ei.Sending=1]="Sending",ei[ei.Sent=2]="Sent",ei[ei.Error=3]="Error"}(eg||(eg={}));let nx=5e3,nA=ei=>{let{username:eo}=ei,ea=(0,ru.W)(),[eu,ec]=(0,eb.useState)(eg.Initial),ed=async()=>{try{ec(eg.Sending),await ea.devices.resendApproveDeviceEmail({username:eo}),ec(eg.Sent)}catch(ei){ec(eg.Error)}setTimeout(()=>{ec(eg.Initial)},nx)};return eu===eg.Sending?(0,em.jsxs)("div",{className:"flex items-center",children:[(0,em.jsx)("div",{className:eS()("relative","mr1",nE().spinnerContainer),children:(0,em.jsx)(rH.T,{className:nE().spinner})}),(0,em.jsx)(rC.x,{className:"caption-2 text-N400",langKey:"login:SendingEmail"})]}):eu===eg.Sent?(0,em.jsxs)("div",{className:"flex items-center",children:[(0,em.jsx)(ny,{className:"fill-G300 mr1"}),(0,em.jsx)(rC.x,{className:"caption-2 text-G300",langKey:"signin:DeviceApprovalCodeReSent"})]}):eu===eg.Error?(0,em.jsxs)("div",{className:"flex items-center",children:[(0,em.jsx)(n_,{className:"fill-R300 mr1"}),(0,em.jsx)(rC.x,{className:"caption-2 text-R300",langKey:"login:ErrorSendingEmail"})]}):(0,em.jsx)("button",{className:"caption-link-2 pointer",onClick:ed,children:(0,em.jsx)(rC.x,{langKey:"login:DeviceResendEmail"})})};var nT=JSON.parse('{"v":"5.7.5","fr":25,"ip":0,"op":109,"w":188,"h":188,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"lid top 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[94,60,0],"ix":2,"l":2},"a":{"a":0,"k":[0,-34.5,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[1,0.167,0.167],"y":[0,0,0]},"t":64,"s":[100,-110,100]},{"t":76,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[3.24,1.988]],"o":[[0,0],[0,0],[0,0],[-3.24,1.988],[0,0]],"v":[[-90,-34.544],[90,-34.544],[18.809,8.722],[5.219,16.975],[-5.175,16.975]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.345098048449,0.254901975393,0.847058832645,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":64,"op":109,"st":64,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"lid top 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[94,59.5,0],"ix":2,"l":2},"a":{"a":0,"k":[0,-34.5,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[1,1,0.333],"y":[0,0,0]},"t":-0.138,"s":[100,100,100]},{"t":12,"s":[100,-110,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[3.24,1.988]],"o":[[0,0],[0,0],[0,0],[-3.24,1.988],[0,0]],"v":[[-90,-34.544],[90,-34.544],[18.809,8.722],[5.219,16.975],[-5.175,16.975]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.345098048449,0.254901975393,0.847058832645,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":7,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"front","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[94,94,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[72,-24.255],[14.445,8.55],[90,50.085],[90,-34.515]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.474509805441,0.403921574354,0.878431379795,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-14.445,8.55],[-72,-24.255],[-90,-34.515],[-90,50.085]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.474509805441,0.403921574354,0.878431379795,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.195,-1.755],[0,0],[0,0],[0,0],[-3.15,-1.44],[3.06,-1.665],[0,0],[0,0],[0,0],[0,0],[-5.535,-2.025],[-0.45,-0.09],[-0.99,-0.045],[-0.225,0],[0,0],[0,0],[0,0],[-1.53,0.54],[0,6.21],[0,0],[0,0]],"o":[[-3.195,-1.755],[0,0],[0,0],[0,0],[3.06,-1.665],[-3.105,-1.44],[0,0],[0,0],[0,0],[0,0],[0,6.21],[0.45,0.18],[0.9,0.225],[0.225,0],[0,0],[0,0],[0,0],[1.755,0],[5.535,-2.025],[0,0],[0,0],[0,0]],"v":[[5.085,3.645],[-5.13,3.645],[-89.91,50.265],[-90,50.085],[-5.22,3.465],[4.59,3.15],[-5.22,3.465],[-7.065,4.5],[-14.49,8.595],[-90,50.085],[-90,68.085],[-80.55,81.63],[-79.2,82.035],[-76.32,82.485],[-75.6,82.485],[-72,82.485],[72,82.485],[75.6,82.485],[80.55,81.63],[90,68.085],[90,50.085],[89.91,50.265]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.541176497936,0.478431373835,0.890196084976,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-72,-24.255],[-14.445,8.55],[-7.065,4.455],[-72,-26.055]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.760784327984,0.760784327984,0.843137264252,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[7.064,4.455],[14.444,8.55],[71.999,-24.255],[71.999,-26.055]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.760784327984,0.760784327984,0.843137264252,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0.225,0.09],[3.06,-1.665],[0,0],[0,0],[0,0],[-3.195,-1.755],[0,0],[0,0]],"o":[[0,0],[0,0],[-0.225,-0.09],[-3.105,-1.44],[0,0],[0,0],[0,0],[3.195,-1.755],[0,0],[0,0],[0,0]],"v":[[14.445,8.55],[7.02,4.455],[5.175,3.42],[4.545,3.105],[-5.265,3.42],[-90,50.085],[-89.91,50.265],[-5.13,3.645],[5.085,3.645],[89.91,50.265],[90,50.085]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,1,1,0.5,1,1,1,1,1,1,1,0,0,0.5,0.5,1,1],"ix":9}},"s":{"a":0,"k":[0,100.358],"ix":5},"e":{"a":0,"k":[0,148.53],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":80,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 6","np":2,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0.225,0.09],[3.06,-1.665],[0,0],[0,0],[0,0],[-3.195,-1.755],[0,0],[0,0]],"o":[[0,0],[0,0],[-0.225,-0.09],[-3.105,-1.44],[0,0],[0,0],[0,0],[3.195,-1.755],[0,0],[0,0],[0,0]],"v":[[14.445,8.55],[7.02,4.455],[5.175,3.42],[4.545,3.105],[-5.265,3.42],[-90,50.085],[-89.91,50.265],[-5.13,3.645],[5.085,3.645],[89.91,50.265],[90,50.085]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.541176497936,0.478431373835,0.890196084976,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 7","np":2,"cix":2,"bm":0,"ix":7,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-72,-24.255],[-14.445,8.55],[-7.065,4.455],[-72,-26.055]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.929411768913,0.929411768913,0.988235294819,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 8","np":2,"cix":2,"bm":0,"ix":8,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[7.064,4.455],[14.444,8.55],[71.999,-24.255],[71.999,-26.055]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.929411768913,0.929411768913,0.988235294819,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 9","np":2,"cix":2,"bm":0,"ix":9,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":512,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"klogo","parent":5,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,-1.746,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.637,0],[0,1.637],[0,0],[-1.637,0],[0,-1.637],[0,0],[-1.637,0],[0,1.637],[0,0],[-1.637,0],[0,-1.637],[0,0],[-1.637,0],[0,1.637],[0,0],[-1.637,0],[0,-1.637],[0,0],[-1.637,0],[0,1.637],[0,0],[11.378,0],[0,-11.379]],"o":[[0,1.637],[1.637,0],[0,0],[0,-1.637],[1.637,0],[0,0],[0,1.637],[1.637,0],[0,0],[0,-1.637],[1.637,0],[0,0],[0,1.637],[1.637,0],[0,0],[0,-1.637],[1.637,0],[0,0],[0,1.637],[1.637,0],[0,0],[0,-11.379],[-11.379,0],[0,0]],"v":[[-21.545,-24.439],[-18.598,-21.492],[-15.651,-24.439],[-15.651,-33.28],[-12.704,-36.227],[-9.757,-33.28],[-9.757,-24.439],[-6.81,-21.492],[-3.863,-24.439],[-3.863,-33.28],[-0.916,-36.227],[2.031,-33.28],[2.031,-24.439],[4.978,-21.492],[7.925,-24.439],[7.925,-33.28],[10.871,-36.227],[13.818,-33.28],[13.818,-24.439],[16.765,-21.492],[19.712,-24.439],[19.712,-33.28],[-0.916,-53.908],[-21.545,-33.28]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.364705890417,0.270588248968,0.86274510622,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":512,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"paper","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":1,"y":0},"t":6,"s":[94,139,0],"to":[0,-7.5,0],"ti":[0,7,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0},"t":17,"s":[94,94,0],"to":[0,-7,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0},"t":21,"s":[94,97,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0},"t":25,"s":[94,94,0],"to":[0,0,0],"ti":[0,-0.5,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.167,"y":0.167},"t":29,"s":[94,97,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":55,"s":[94,97,0],"to":[0,7,0],"ti":[0,-7,0]},{"t":65,"s":[94,139,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,1.34],[0,0],[2.252,0],[0,0],[0,-2.252],[0,0],[-1.186,-0.747],[-66,45.513]],"o":[[0,0],[0,-2.252],[0,0],[-2.252,0],[0,0],[0,1.401],[67.257,42.355],[1.103,-0.761]],"v":[[72,-2.141],[72,-68.587],[67.922,-72.665],[-67.922,-72.665],[-72,-68.587],[-72,-1.751],[-70.09,1.703],[70.232,1.221]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.929411768913,0.929411768913,0.988235294819,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":512,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"lid top","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[93.469,59.938,0],"ix":2,"l":2},"a":{"a":0,"k":[0,-34.5,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100]},{"t":12,"s":[100,-110,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[3.24,1.988]],"o":[[0,0],[0,0],[0,0],[-3.24,1.988],[0,0]],"v":[[-90,-34.544],[90,-34.544],[18.809,8.722],[5.219,16.975],[-5.175,16.975]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.345098048449,0.254901975393,0.847058832645,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":65,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"back","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[94,94,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[90,-34.515],[-90,-34.515],[0.5,17]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.345098048449,0.254901975393,0.847058832645,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":512,"st":0,"bm":0}],"markers":[]}'),nk=ea(53151),nC=ea.n(nk);let nO={animationData:nT,loop:!0},nI=4e3,nP=1e4,nD=ei=>{let{onCompleted:eo}=ei,{getValues:ea}=(0,ew.Gc)(),eu=(0,ru.W)(),ec=(0,rI.d9)(),{ref:ed,animation:ef}=(0,rI._7)(nO),eh=ea().username;(0,rI.EY)(ef,nI);let eg=(0,eb.useCallback)(async()=>{let{data:{result:{challenge2:ei}}}=await eu.session.initSession(),ea=(await(0,rf.p)(ei)).solution,ec=(await eu.devices.checkDeviceApproval({username:eh},{headers:{"x-pow":ea}})).data.result;ec&&eo()},[eu.devices,eu.session,eo,eh]);return nh(eh,nP,eo),(0,eb.useEffect)(()=>{ec&&eg()},[ec,eg]),(0,em.jsxs)(em.Fragment,{children:[(0,em.jsxs)("div",{className:"flex items-start justify-between",children:[(0,em.jsx)("div",{ref:ed,className:eS()(nC().emailAnimation,"mr4")}),(0,em.jsxs)("div",{children:[(0,em.jsx)("p",{className:"text-N300 caption-1",children:(0,em.jsx)(eE.cC,{i18nKey:"login:DeviceApprovalWithLinkDescriptionP1",components:[(0,em.jsx)("br",{},0),(0,em.jsx)("strong",{},1)]})}),(0,em.jsx)("p",{className:"text-N300 caption-1 mt2",children:(0,em.jsx)(rC.x,{langKey:"login:DeviceApprovalWithLinkDescriptionP2"})})]})]}),(0,em.jsxs)("div",{className:"mt2",children:[(0,em.jsx)("p",{className:"text-N400 caption-2",children:(0,em.jsx)(rC.x,{langKey:"signin:DevicePleaseCheckSpamJunkOneLine"})}),(0,em.jsx)("div",{className:"mt1",children:(0,em.jsx)(nA,{username:eh})})]})]})};function nN(ei){let{t:eo}=(0,eE.$G)(),{onSignIn:ea,helpElement:eu,className:ec,isKds:ed=!1}=ei,{slid:ef}=(0,rw.t)(),eh=tX({translations:{emailRequired:eo("login:Validation:EmailRequired"),usernameRequired:eo("login:Validation:UsernameRequired"),passwordRequired:eo("login:Validation:PasswordRequired"),tfaRequired:eo("login:Validation:2FACodeIsRequired")}}),eg=(0,rc.k)(),{setError:e_,handleSubmit:eA}=eh,[eT,ek]=eb.useState(!1),eC=ei=>{ei!==rp&&e_("root",ei)},{onSuccess:eO,close:eI}=(0,rE.z)(),eP=async()=>{eg.revalidateSessionData(),null==eO||eO(),null==ea||ea(),eI()},eD=(0,eb.useCallback)(()=>{ek(!0)},[]),{signIn:eN,tfaOptions:eM,tfaChallenge:ej}=ry({onCompleted:eP,onError:eC}),eR=(0,eb.useCallback)(async ei=>{let{username:eo,password:ea,tfa:eu,tfa_id:ec}=ei;await eN({username:eo,password:ea,tfa:eu,tfaId:ec,slid:ef})},[ef,eN]);return(0,em.jsx)(ew.RV,{...eh,children:(0,em.jsx)("div",{className:eS()(rS().container,ec),children:(0,em.jsx)("form",{onSubmit:eA(eR),className:rS().signIn,children:eT?(0,em.jsx)(nD,{onCompleted:eP}):eM?(0,em.jsx)(nd,{onSubmit:eR,tfaOptions:eM,tfaChallenge:ej,triggerDeviceApproval:eD,isKds:ed}):(0,em.jsx)(nf,{isKds:ed,helpElement:eu,triggerDeviceApproval:eD})})})})}},30265:function(ei,eo,ea){"use strict";ea.d(eo,{fA:function(){return eN},zq:function(){return eC.z}});var eu=ea(85893),ec=ea(67294),ed=ea(1922),ef=ea(94184),eh=ea.n(ef),eg=ea(52422),em=ea(21645),eb=ea(92799);let ew=ei=>`FraudSDK Vendor method: ${ei} -- threw unexpected error. See extra field`,e_=()=>{let{updateSardineConfig:ei,getSardineSessionKey:eo}=(0,ec.useContext)(eg.K),{observers:ea}=(0,ec.useContext)(em.w),{withCaptureMessage:eu}=null!=ea?ea:{},{isReady:ed,slid:ef,vendorId:eh}=(0,eb.t)(),e_=(0,ec.useCallback)(eo=>eu(()=>ed&&ei({customerId:eh,sessionKey:ef,flow:eo}),ew("updateSardineConfig")),[ed,ef,eh]),eS=(0,ec.useCallback)(()=>eu(()=>ed&&eo(),ew("getSardineSessionKey")),[ed]);return{updateTelemetricsConfig:e_,getTelemetricsSessionKey:eS}};var eS=ea(76592),eE=ea(99628),eA=ea(18399),eT=ea(94907),ek=ea(14721),eC=ea(62213),eO=ea(15269),eI=ea.n(eO),eP=ea(46958),eD=ea(16790);function eN(){let ei=(0,eC.z)(),{signUp:eo}=(0,eT.E6)(),{t:ea}=(0,ed.$G)(),{updateTelemetricsConfig:ef}=e_();(0,ec.useEffect)(()=>{ef(eS.pQ.SIGN_UP)},[ef]);let eg=(0,ec.useCallback)(()=>{var eo;null===(eo=ei.onDismiss)||void 0===eo||eo.call(ei),ei.close()},[ei]),em=(0,ek.Z)();return(0,eu.jsx)(eE.u,{fullScreenMobile:!0,type:"wizard",isOpen:ei.isOpen,onClose:eg,className:eI().modal,children:(0,eu.jsxs)(eE.u.View,{className:eI().modalView,children:[(0,eu.jsx)(eE.u.Header,{children:(0,eu.jsx)(eE.u.Header.Close,{onClick:eg,iconClassName:eI().icon})}),(0,eu.jsxs)(eP.S,{title:ea("nft:SignInBanner"),hideHeader:em,keyboardOpen:em,children:[(0,eu.jsxs)("div",{className:eI().signInContext,children:[(0,eu.jsx)(eD.M,{}),(0,eu.jsx)("div",{className:eh()(eI().bumper,{[eI().keyboardOpen]:em})})]}),(0,eu.jsx)("div",{className:eh()(eI().footer,"caption-2"),children:(0,eu.jsx)(eA.O,{href:eo,children:ea("nft:CreateAccount")})})]})]})})}},62213:function(ei,eo,ea){"use strict";ea.d(eo,{f:function(){return ec},z:function(){return ed}});var eu=ea(67294);let ec=eu.createContext({isOpen:!1,open:()=>null,close:()=>null,setIsOpen:()=>null,onSuccess:void 0,onDismiss:void 0});function ed(){return(0,eu.useContext)(ec)}},16164:function(ei,eo,ea){"use strict";ea.d(eo,{HI:function(){return eh},bN:function(){return em},Jt:function(){return eu},k2:function(){return ec},K0:function(){return ef}}),function(ei){ei.ActivateAccount="/activate-account",ei.ConfirmSignIn="/confirm-sign-in",ei.Facebook="https://www.facebook.com/krakenfx",ei.Twitter="https://www.twitter.com/krakenfx",ei.LinkedIn="https://linkedin.com/company/kraken-exchange",ei.Github="https://www.github.com/payward",ei.EtherscanAddress="https://etherscan.io/address",ei.EtherscanTransaction="https://etherscan.io/tx",ei.SolscanAddress="https://solscan.io/account",ei.SolscanTransaction="https://solscan.io/tx",ei.PolygonscanAddress="https://polygonscan.com/address",ei.PolygonscanTransaction="https://polygonscan.com/tx",ei.Press="/press",ei.About="/about",ei.Careers="https://www.kraken.com/careers",ei.GetVerified="/u/verify",ei.TermsOfService="/legal",ei.WhyKraken="/why-kraken",ei.SignIn="/sign-in",ei.SignUp="/sign-up",ei.MarketingSecurity="/features/security",ei.Privacy="/legal/privacy",ei.RecruitmentPrivacyEU="/legal/recruitment/eu-uk",ei.RecruitmentPrivacySG="/legal/recruitment/sg",ei.Disclosures="/legal/disclosures",ei.SelfHelp="/self-help",ei.FAQ="/help/faq",ei.Orderbook="/prices/orderbook",ei.Blog="https://blog.kraken.com",ei.FeeSchedule="/features/fee-schedule",ei.Support="/u/launch-support",ei.API="/features/api",ei.PGPKey="/features/security/pgp",ei.SecurityAudit="/security/audit",ei.BugBounty="/security/bug-bounty",ei.InstantBuySell="/u/instant",ei.SupportLogout="/support-logout",ei.Funding="/u/funding",ei.ConsumerWebHome="/c/",ei.ConsumerInstant="/c?instant-action=buy",ei.ConsumerInstantConvert="/c?instant-action=convert",ei.ConsumerFundingDeposit="/c/funding/deposit",ei.ProSecurity="/app/settings/security"}(eu||(eu={})),function(ei){ei.NftExplore="/",ei.NftInventory="/inventory",ei.NftOffers="/inventory/offers",ei.NftOffersSent="/inventory/offers?tab=sent",ei.NftDeposit="/inventory/deposit",ei.NftWithdraw="/inventory/withdraw",ei.NftTransactions="/inventory/transactions",ei.NftExploreListings="/explore/listings",ei.NftExploreCollections="/explore/collections",ei.NftExploreCreators="/explore/creators",ei.NftActivity="/explore/activity?tab=timeline",ei.NftCollections="/collections",ei.NftAccountSettings="/settings/account",ei.NftSecurity="/security",ei.NftSecurityTFA="/security/tfa",ei.WilliamsGridPass="/williams-grid-pass",ei.ClaimGridPass="/williams-grid-pass?claim",ei.GridPassLink="/gridpass-link"}(ec||(ec={})),function(ei){ei[ei.Consumer=0]="Consumer",ei[ei.Classic=1]="Classic"}(ed||(ed={}));var eu,ec,ed,ef,eh,eg=ea(91572);!function(ei){ei[ei.Zero=0]="Zero",ei[ei.One=1]="One",ei[ei.Two=2]="Two",ei[ei.Three=3]="Three",ei[ei.Four=4]="Four"}(ef||(ef={}));let em=[eg.ZL.US];!function(ei){ei[ei.RouterBased=0]="RouterBased",ei[ei.EventBased=1]="EventBased"}(eh||(eh={}))},94907:function(ei,eo,ea){"use strict";let eu;ea.d(eo,{WN:function(){return rM},tn:function(){return rc},Sd:function(){return rA},uT:function(){return tX},yD:function(){return rU.yD},f4:function(){return eJ},Wb:function(){return tu},J3:function(){return rU.J3},vs:function(){return ew},qW:function(){return e_},_7:function(){return eT},EY:function(){return ek},Vp:function(){return eI},JL:function(){return eP.J},Ay:function(){return eH},kC:function(){return tN.kC},ok:function(){return eQ},Nr:function(){return eX},Fy:function(){return e4},qX:function(){return rq},AV:function(){return tc},$0:function(){return rK},h8:function(){return rW},EL:function(){return tE},sx:function(){return tC},kq:function(){return rX},p1:function(){return tO.p},Ql:function(){return tI},Le:function(){return tP},aU:function(){return tD},N6:function(){return tF},CQ:function(){return r$},Db:function(){return eY},yo:function(){return tG},Jp:function(){return tS},I:function(){return tH},Gv:function(){return tW},_1:function(){return tK},h3:function(){return tZ},dK:function(){return rG},d9:function(){return t$},h0:function(){return rh},XW:function(){return ry},f1:function(){return rw},Kx:function(){return ra},un:function(){return rS},E6:function(){return tY},CA:function(){return eV.C},Z0:function(){return rE},Rx:function(){return rT},$o:function(){return rC},sI:function(){return rL},Jh:function(){return rF},Sl:function(){return rB.S},xt:function(){return rU.xt},CS:function(){return rz}});var ec=ea(67294);let ed={year:"2-digit",month:"2-digit",day:"2-digit"},ef=(ei,eo)=>(0,ec.useMemo)(()=>new Intl.DateTimeFormat(ei,null!=eo?eo:ed),[ei,eo]),eh="UTC",eg={hourCycle:"h23",hour:"2-digit",minute:"2-digit",second:"2-digit"},em=(ei,eo)=>(0,ec.useMemo)(()=>new Intl.DateTimeFormat(ei,null!=eo?eo:eg),[ei,eo]);var eb=ea(21779);let ew=function(ei,eo){var ea;let eu=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{data:eg}=(0,eb.ie)(void 0,eu),em=(0,ec.useMemo)(()=>({...ed,...eo,timeZone:null!==(ea=null==eg?void 0:eg.timezone)&&void 0!==ea?ea:eh}),[null==eg?void 0:eg.timezone,eo]);return ef(ei,em)},e_=function(ei,eo){var ea;let eu=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{data:ed}=(0,eb.ie)(void 0,eu),ef=(0,ec.useMemo)(()=>({...eg,...eo,timeZone:null!==(ea=null==ed?void 0:ed.timezone)&&void 0!==ea?ea:eh}),[null==ed?void 0:ed.timezone,eo]);return em(ei,ef)};var eS=ea(11248),eE=ea.n(eS);let eA={renderer:"svg",autoplay:!0},eT=(ei,eo)=>{let[ea,eu]=(0,ec.useState)(),[ed,ef]=(0,ec.useState)(),eh=(0,ec.useCallback)(ei=>{ef(ei)},[]);return(0,ec.useEffect)(()=>{if(!ed)return;let ea=eE().loadAnimation({...eA,...ei,container:ed});if(eo)for(let[ei,eu]of Object.entries(eo))ea.addEventListener(ei,eu);return eu(ea),()=>ea.destroy()},[ei,ed]),{ref:eh,animation:ea}},ek=(ei,eo)=>{(0,ec.useEffect)(()=>{let ea=0,eu=()=>{null==ei||ei.pause(),ea=window.setTimeout(()=>null==ei?void 0:ei.play(),eo)};return null==ei||ei.addEventListener("loopComplete",eu),()=>{try{null==ei||ei.removeEventListener("loopComplete",eu)}catch(ei){}clearTimeout(ea)}},[ei,eo])};var eC=ea(1922);let eO=ei=>"Z"===ei.charAt(0),eI=()=>{let{t:ei}=(0,eC.$G)(),{assetDefinitions:eo}=(0,eb.$F)();return(0,ec.useCallback)(ea=>{if(!ea)return;let eu=ea.replace(".HOLD",""),ec=null==eo?void 0:eo[eu];if(eO(eu)){let ei=eu.slice(1);eo&&!ec&&(ec=eo[ei])}if(ec)return ec.name;let ed=ei("currency:Name:".concat(eu));if(ed&&"string"==typeof ed)return ed},[eo,ei])};var eP=ea(68713),eD=ea(11163),eN=ea.n(eD),eM=ea(91572),ej=ea(72512),eR=ea(16164);let eL=eR.Jt.GetVerified,eF=(ei,eo)=>(ea,eu,ec)=>{let ed=(0,ej.PN)({country:null==eo?void 0:eo.country}),ef=(0,ej.hm)(ea||0,ed);return ei.push({pathname:ec||eL,query:{tier:ef,return_path:eu}})},eB=[/^https:\/\/local\.kraken\.com(\/?)$/,/^https:\/\/(.*)\.kraken\.com(\/?)$/,/^https:\/\/kraken\.com(\/?)$/],eU=(ei,eo,ea)=>eu=>{let ec=(0,ej.PN)({country:null==eo?void 0:eo.country}),ed=(0,ej.hm)(eo.tier||0,ec),ef=ea||eR.k2.NftExplore,eh=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,eo=arguments.length>1?arguments[1]:void 0,ea=eu&&eB.some(ei=>ei.test(eu)),ed=(0,ej.hm)(ei,ec);ea&&(window.location.href="".concat(eu).concat(eL,"?tier=").concat(ed,"&return_path=").concat(eo))};switch(ed){case eM.h2.Express:return(eu?eh:ei)(eR.K0.Two,ef);case eM.h2.Starter:case eM.h2.Intermediate:return(eu?eh:ei)(eR.K0.Three,ef);default:return(eu?eh:ei)(ec?eR.K0.Two:eR.K0.Three,ef)}};function eG(ei,eo){let ea=(0,eD.useRouter)();if(!ei)return{};let eu=eF(ea,ei);return{autoflow:eu,nftAutoflow:eU(eu,ei,eo)}}var eV=ea(97599);let eH=()=>{var ei,eo;let{spot:ea}=(0,eV.C)(),eu=(0,eP.J)(),{data:ed}=(0,eb.Ff)(void 0,eu),ef=(0,ec.useMemo)(()=>({province:{id:null!==(ei=null==ed?void 0:ed.province.id)&&void 0!==ei?ei:void 0},country:null==ed?void 0:ed.country,tier:null==ed?void 0:ed.tier}),[null==ed?void 0:ed.country,null==ed?void 0:ed.province.id,null==ed?void 0:ed.tier]),{nftAutoflow:eh}=eG({country:ef.country,tier:null!==(eo=ef.tier)&&void 0!==eo?eo:0},encodeURIComponent(window.location.href)),eg=(0,ec.useCallback)(()=>{null==eh||eh(ea)},[ea,eh]);return{nftAutoflow:eg}};var eW=ea(89866);let eK={ignoreWhileMutating:!1},eY=function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eK,[ea,eu]=(0,ec.useState)({data:void 0,loading:!1,error:void 0}),ed=(0,ec.useRef)({mutationId:0,state:ea,callback:ei,options:eo});ed.current={...ed.current,state:ea,callback:ei,options:{...eK,...eo}};let ef=(0,ec.useCallback)(ei=>{eu(eo=>{let ea={...eo,...ei};return ed.current.state=ea,ea})},[]),eh=(0,ec.useCallback)(async function(){for(var ei,eo,ea,eu,ec=arguments.length,eh=Array(ec),eg=0;egnull!=ei&&!!ei.expires&&Date.now()>new Date((null==ei?void 0:ei.expires)*1e3).getTime(),e$=ei=>"step-up-token-".concat(ei),eJ=ei=>{let eo=e$(ei),ea=sessionStorage.getItem(eo);ei!==eM.WS.TwoFactor||ea||(eo=e$(eM.WS.Bypass),ea=sessionStorage.getItem(eo));try{if(ea){let ei=JSON.parse(ea);if(!eZ(ei))return ei.token}}catch(ei){console.warn("Invalid step up token found in sessionStorage:",ea),sessionStorage.removeItem(eo)}},eQ=(ei,eo)=>{let ea=(0,eW.W)(),eu=(0,ec.useCallback)(async(ei,eo)=>{let eu=await ea.account.createStepUpToken(ei,{otp:eo});return sessionStorage.setItem(e$(ei),JSON.stringify(eu.data.result)),eu.data.result.token},[ea.account]),[ed,{loading:ef,error:eh}]=eY(eu,eo),eg=(0,ec.useCallback)(eo=>ed(ei,eo),[ed,ei]),em=(0,ec.useCallback)(ei=>ed(eM.WS.Bypass,ei),[ed]);return{createToken:eg,createTfaBypassToken:em,loading:ef,error:eh}};ea(32285);let eX=function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:600,[ea,eu]=(0,ec.useState)(ei);return(0,ec.useEffect)(()=>{let ea=setTimeout(()=>{eu(ei)},eo);return()=>{clearTimeout(ea)}},[ei,eo]),ea};var e0=ea(42238),e3=ea.n(e0);let e5=()=>{let ei=new(e3()),eo=ei.getResult(),ea=eo.device.type===e0.DEVICE.MOBILE,eu=eo.device.type===e0.DEVICE.TABLET;return ea||eu?{device:eo.device.type,isMobile:ea,isTablet:eu,isDesktop:!1,ua:ei.getUA()}:{device:"desktop",isMobile:!1,isTablet:!1,isDesktop:!0,ua:ei.getUA()}},e4=()=>e5(),e6={deposit:"tfa_funds_add",withdrawal:"tfa_funds_withdraw"};var e8=ea(75438),e9=ea(2264),e7=ea(18546);function ta(ei){return void 0!==ei.tfa_funds_add}function tu(ei){return!!ei&&!!ta(ei)&&ei.tfa_funds_add}let tc=ei=>{let{checkOutThisCoolNewFeature:eo}=(0,e9.V)(),{tfaSettings:ea}=(0,e7.V5)(e8.gQ.Funds),{tfaSettings:eu}=(0,e7.V5)(e8.gQ.Main);if(!ea||!eu)return{loading:!0};if(ea.type!==e8.T2.None){let eo=e6[ei];return ea&&ea.options&&ta(ea.options)&&!ea.options[eo]?{tfaType:e8.gQ.None,tfaMethod:e8.T2.None,loading:!1}:{tfaType:e8.gQ.Funds,tfaMethod:ea.type,loading:!1}}return eo&&eu.type!==e8.T2.None?{tfaType:e8.gQ.Main,tfaMethod:eu.type,loading:!1}:{tfaType:e8.gQ.None,tfaMethod:e8.T2.None,loading:!1}};var td=ea(81927),tf=ea(96143);let tp=["USD","EUR","BTC","USDT","GBP","USDC","ETH","CAD","CHF","AUD","JPY","DAI","DOT"],tg=ei=>{if(ei)return(0,tf.I)(tp,ei=>ei)(Array.from(new Set(ei.map(ei=>ei.quote_asset))))};var tm=ea(80220),tv=ea(78440);let tb=["AED"],tw=ei=>tb.find(eo=>eo===ei);function t_(){let ei=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{allowedMarkets:eo}=(0,eb.iC)(void 0,{},ei),{assetDefinitions:ea}=(0,eb.$F)(void 0,void 0,ei),eu=(0,ec.useMemo)(()=>tg(eo),[eo]),{defaultCurrency:ed}=(0,tv.ZO)(ei),{preferences:{"global.display_currency":ef},isValidating:eh,updatePreferences:eg}=(0,tm.Gn)({dedupingInterval:3e4,errorRetryCount:0},ei),em=ec.useMemo(()=>null==eu?void 0:eu.map(ei=>ea?ea[ei]:void 0).filter(ei=>!!ei).filter(ei=>!tw(null==ei?void 0:ei.asset)),[eu,ea]);if(ec.useEffect(()=>{tw(null==ef?void 0:ef.value)&&eg({"global.display_currency":ed})},[null==ef?void 0:ef.value,ed]),!eo||!eu||!ea)return{displayCurrency:void 0,displayAsset:void 0,updateDisplayCurrency:void 0,allowedAssets:void 0,isValidating:eh};let ew=ei=>{let eo=null==ei?void 0:ei.replace(/[^a-zA-Z\d]+/g,"");return eo&&eu.includes(eo)?eo:void 0},e_=async ei=>{let eo=ew(ei);try{await eg({"global.display_currency":eo})}catch(ei){td.Tb(ei,{tags:{source:"api | useCurrencyFromSettings"}})}},eS=ei=>!eh&&void 0===ei||(null==ef?void 0:ef.value)===void 0,eE=ew(null==ef?void 0:ef.value),eA=eS(eE)?ed:eE;return{displayCurrency:eA,displayAsset:eA&&ea?ea[eA]:void 0,updateDisplayCurrency:e_,allowedAssets:em,isValidating:eh}}function tS(){let ei=(0,eP.J)(),{displayCurrency:eo}=t_(ei);return eo||"USD"}let tE=()=>{let{track:ei}=(0,rB.S)(),eo=(0,ec.useCallback)(eo=>()=>{ei({eventType:"UserAction",eventName:"NFT Explore Page Carousel Pagination Clicked",params:eo})},[ei]),ea=(0,ec.useCallback)(eo=>ea=>{ei({eventType:"UserAction",eventName:"NFT Explore Page Carousel Item Clicked",params:{...eo,assetType:eo.carouselType,assetName:"name"in ea?ea.name:ea.collection_name,assetId:"id"in ea?ea.id:ea.collection_id}})},[ei]),eu=(0,ec.useCallback)(eo=>()=>{ei({eventType:"UserAction",eventName:"NFT Explore Page Carousel View All Clicked",params:eo})},[ei]),ed=(0,ec.useCallback)(eo=>ea=>{ei({eventType:"UserAction",eventName:"NFT Explore Page Carousel Item Buy Now Clicked",params:{...eo,assetType:"nft",assetName:ea.name,assetId:ea.id}})},[ei]),ef=(0,ec.useCallback)(eo=>ea=>{ei({eventType:"UserAction",eventName:"NFT Explore Page Carousel Item Make Offer Clicked",params:{...eo,assetType:"nft",assetName:ea.name,assetId:ea.id}})},[ei]);return{onControlButtonClick:eo,onItemClick:ea,onViewAllButtonClick:eu,onBuyNowButtonClick:ed,onMakeOfferButtonClick:ef}},tA=new WeakMap,tT=ei=>{ei.forEach(ei=>{if(tA.has(ei.target)){let eo=tA.get(ei.target);(ei.isIntersecting||ei.intersectionRatio>0)&&(eu.unobserve(ei.target),tA.delete(ei.target),eo())}})};function tk(){return void 0===eu&&(eu=new IntersectionObserver(tT,{rootMargin:"300px"})),eu}function tC(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,ec.useEffect)(()=>{let ea=ei.current;if(!ea)return;let eu=tk();return tA.set(ea,eo),eu.observe(ea),()=>{tA.delete(ea),eu.unobserve(ea)}},ea)}var tO=ea(58990);function tI(ei){let[eo,ea]=(0,ec.useState)(0),[eu,ed]=(0,ec.useState)(0),[ef,eh]=(0,ec.useState)(ei.pageSize);(0,ec.useEffect)(()=>{ed(0)},[ef]);let eg=(0,ec.useCallback)(()=>{ed(0),ea(0)},[ed]),em=(0,ec.useCallback)(ei=>{ei&&ei!==eo&&ea(ei)},[ea,eo]);return(0,ec.useMemo)(()=>({page:eu,pageSize:ef,resetData:eg,setPage:ed,setPageSize:eh,setTotal:em,total:eo}),[eu,ef,eg,em,eo])}function tP(ei){let eo=!(arguments.length>1)||void 0===arguments[1]||arguments[1],[ea,eu]=(0,ec.useState)({renderer:"svg",loop:!0,autoplay:!0}),{ref:ed}=eT(ea);return(0,ec.useLayoutEffect)(()=>{let ea=async()=>{let{default:eo}=await ei();eu(ei=>({...ei,animationData:eo}))};eo&&ea()},[ei,eo]),{ref:ed,loaded:!!ea.animationData}}function tD(){let{nft:ei}=(0,eV.C)(),eo=(0,tO.p)(),ea=(0,ec.useMemo)(()=>eo(eR.Jt.SupportLogout,"?return_to=".concat(encodeURIComponent(ei))),[eo,ei]),eu=(0,ec.useCallback)(()=>{window.location.href=ea},[ea]);return{href:ea,logout:eu}}ea(67707);var tN=ea(78909),tM=ea(30381),tj=ea.n(tM),tR=ea(22997);let tL=ei=>{try{if("en"!==ei)return ea(4414)("./".concat(ei))}catch(ei){td.Tb(ei)}return Promise.resolve()},tF=ei=>{let eo=(0,tR.bY)(ei),ea=(0,ec.useRef)(null),[eu,ed]=(0,ec.useState)(!1);return(0,ec.useEffect)(()=>{ed(!0);let ei=async()=>{let ei=tL(eo);ea.current=ei,await ei,ea.current===ei&&(ed(!1),tj().locale(eo))};ei()},[eo]),{isLoading:eu}};var tB=ea(13012),tU=ea(85410);function tG(){let ei=tS(),eo=(0,eP.J)(),{assetDefinitions:ea}=(0,eb.$F)(),eu=(0,ec.useMemo)(()=>ea?Object.values(ea).filter(eo=>!eo.virtual&&eo.asset!==ei&&1===eo.asset.split(".").length):void 0,[ea,ei]),ed=(0,ec.useMemo)(()=>eu?eu.map(ei=>({class:"currency",name:ei.asset})):void 0,[eu]),ef=(0,ec.useMemo)(()=>ei?[{name:ei,class:"currency"}]:void 0,[ei]),{data:eh}=(0,eb.CW)({base:ef,quote:ed},void 0,void 0,!!ed&&!!ef&&ed.length>0&&eo),{assetsMap:eg}=(0,tU.X)(),em=(0,ec.useMemo)(()=>{if(!eg)return;let ei={};if(Object.keys(eg).forEach(eo=>ei[eo]={price:eg[eo].price},{}),!eh)return ei;let eo={};return eh.forEach(ei=>{let ea={price:ei.rate};return eo[ei.quote]=ea}),{...ei,...eo}},[eg,eh]);return ec.useCallback((eo,ea)=>{if(em&&eo&&ea)try{if(eo===ei)return null==ea?void 0:ea.toString();let eu=em[eo].price;return new tB.Z(ea).mul(eu||0).toString()}catch(ei){}return""},[em,ei])}var tV=ea(85893),tq=ea(59112);function tH(ei){return(0,ec.useMemo)(()=>{var eo,ea,eu,ec,ed,ef;if(!ei)return{title:void 0,price:void 0};let eh=null==ei?void 0:null===(eo=ei.last_auction_sale)||void 0===eo?void 0:null===(ea=eo.native)||void 0===ea?void 0:ea.amount,eg=null===(eu=ei.best_offer)||void 0===eu?void 0:null===(ec=eu.native)||void 0===ec?void 0:ec.amount;return"Listed"===ei.on_sale_status&&(null===(ed=ei.buy_now)||void 0===ed?void 0:null===(ef=ed.native)||void 0===ef?void 0:ef.amount)?{title:(0,tV.jsx)(tq.x,{langKey:"nft:listings:BuyNowPrice"}),price:ei.buy_now}:eh?{title:(0,tV.jsx)(tq.x,{langKey:"nft:listings:LastSold"}),price:ei.last_auction_sale}:eg?{title:(0,tV.jsx)(tq.x,{langKey:"nft:listings:BestOffer"}),price:ei.best_offer}:{title:void 0,price:void 0}},[ei])}function tW(ei){let{assetDefinitions:eo}=(0,eb.$F)(),ea=tS(),eu=(0,ej.iv)(ei||ea,eo||{});return{quote:eu}}function tK(ei){let eo=(0,ec.useCallback)(()=>{setTimeout(()=>{ei()},500)},[ei]);return{refreshAssets:eo}}function tY(){let ei=(0,eV.C)(),eo={signIn:"".concat(ei.spot).concat(eR.Jt.SignIn,"?redirect=").concat(encodeURIComponent(window.location.href),"&nft=true"),signUp:"".concat(ei.spot).concat(eR.Jt.SignUp,"?rfr=nft-web&nft=true&redirect=nft")};return eo}function tZ(ei){let{error:eo,onError:ea}=ei;(0,ec.useEffect)(()=>{eo&&(null==ea||ea(null==eo?void 0:eo.message))},[eo,ea])}let t$=()=>{let[ei,eo]=(0,ec.useState)(!document.hidden);return(0,ec.useEffect)(()=>{let ei=()=>{eo(!document.hidden)};return document.addEventListener("visibilitychange",ei),()=>{document.removeEventListener("visibilitychange",ei)}},[]),ei};var tJ=ea(21289),tQ=ea(62009);let tX={REPLACE:"REPLACE",PUSH:"PUSH"};function ra(){let{query:ei,push:eo,replace:ea,pathname:eu}=(0,eD.useRouter)(),ed=(0,ec.useCallback)((eo,ea)=>{let eu=ei[eo];return eu?+eu:ea},[ei]),ef=(0,ec.useCallback)((ec,ed,ef)=>{let eh=!(null==ed?void 0:ed.pathname)||(null==ed?void 0:ed.pathname)===eu,eg=(0,tJ.Z)({...ei,...ec},tQ.Z),em=[{...ed,query:eg},{...ed,query:eg},{shallow:eh}];ef===tX.PUSH?eo(...em):ea(...em)},[eu,eo,ea,ei]),eh=(0,ec.useCallback)((eo,ec)=>{let ed=!(null==ec?void 0:ec.pathname)||(null==ec?void 0:ec.pathname)===eu,ef=eo?eo.reduce((eo,ea)=>ei[ea]?{...eo,[ea]:ei[ea]}:eo,{}):{};ea({...ec,query:ef},{...ec,query:ef},{shallow:ed})},[eu,ea,ei]),eg=(0,ec.useCallback)(eo=>{let ea=ei[eo];return new Set(Array.isArray(ea)?ea:ea?[ea]:void 0)},[ei]);return(0,ec.useMemo)(()=>({getNumberQueryParam:ed,setQueryParams:ef,clearQueryParams:eh,getQuerySet:eg}),[ed,ef,eh,eg])}let ru=[{value:3},{value:5},{value:10},{value:25},{value:50}],rc="page",rf="row";function rh(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{itemsPerRow:eo=3,onPageChange:ea}=ei,{getNumberQueryParam:eu,setQueryParams:ed}=ra(),ef=eu(rc,1),eh=eu(rf,3),eg=eh*eo,em=(0,ec.useCallback)(ei=>{null==ea||ea(ef,ei),ed({[rc]:ei>1?ei:void 0})},[ea,ef,ed]),eb=(0,ec.useCallback)(()=>em(ef+1),[em,ef]),ew=(0,ec.useCallback)(()=>{ef>1&&em(ef-1)},[em,ef]),e_=(0,ec.useCallback)(()=>em(1),[em]),eS=(0,ec.useCallback)(ei=>{"number"==typeof ei.value&&(null==ea||ea(ef,1),ed({[rc]:1,[rf]:ei.value}))},[ea,ef,ed]),eE=(0,ec.useMemo)(()=>({perPage:eg,onNextPage:eb,onPreviousPage:ew,rows:eh,page:ef,onRowOptionSelect:eS,rowOptions:ru,setPage:em,resetPage:e_}),[eb,ew,eS,ef,eg,e_,eh,em]);return eE}let rp=(ei,eo)=>{var ea;return Array.isArray(eo)?null===(ea=eo.find(eo=>ei1&&void 0!==arguments[1]?arguments[1]:1e3,ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,[eu,ed]=(0,ec.useState)([]),ef=(0,ec.useRef)([]),eh=(0,ec.useRef)(),eg=(0,ec.useRef)(1),em=()=>{clearTimeout(eh.current),eg.current=0},eb=async function(){for(var eu=arguments.length,ec=Array(eu),ed=0;ed{ef.current=eu},[eu]),{clearPoll:em,setPoll:ew}}function rw(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ea=(0,eD.useRouter)(),{setQueryParams:eu}=ra(),{defaultSelected:ed=0,onTabChange:ef}=eo,eh=(0,ec.useCallback)(()=>{var eo;let eu=ea.query.tab,ec=ei.find(ei=>ei.param===eu);return null!==(eo=null==ec?void 0:ec.index)&&void 0!==eo?eo:ed},[ed,ea,ei]),eg=(0,ec.useMemo)(()=>eh(),[eh]),em=(0,ec.useCallback)(eo=>{null==ef||ef(eo),eu({page:void 0,tab:ei[eo].param})},[ef,eu,ei]);return[eg,em]}let r_=ei=>{if(!ei)return;let eo=new Set;return ei.map(ei=>{ei.base_asset&&eo.add(ei.base_asset),ei.quote_asset&&eo.add(ei.quote_asset)}),(0,ej.Ih)(ej.rU,ei=>ei)(Array.from(eo))};function rS(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{asMap:eo=!1}=ei,{assetDefinitions:ea}=(0,eb.$F)({filterStaking:!0}),{allowedMarkets:eu}=(0,eb.iC)(),ed=(0,ec.useMemo)(()=>{let ei=r_(eu);if(ea&&ei){let eu=["ETH","SOL","BTC","USD"],ec=ei.filter(ei=>0>eu.indexOf(ei)).sort((ei,eo)=>ei.localeCompare(eo)),ed=[...eu,...ec],ef=ed.map(ei=>ea[ei]).filter(ei=>ei);return eo?ef.reduce((ei,eo)=>(ei[eo.asset]=eo,ei),{}):ef}return eo?{}:[]},[eu,ea,eo]);return{quoteAssetDefinitions:ed}}function rE(){let ei=(0,eD.useRouter)();return(0,ec.useCallback)(eo=>{ei.push("".concat(eR.k2.NftExploreListings,"?id=").concat("string"==typeof eo||"number"==typeof eo?eo:eo.id))},[ei])}let rA="q";function rT(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1?arguments[1]:void 0,{pathname:ea,queryKey:eu}=ei,{setQueryParams:ed}=ra(),{query:ef}=eN(),eh=null!=eu?eu:rA,eg=null==ef?void 0:ef[eh],em=(0,ec.useCallback)(ei=>{ed({[eh]:ei,page:void 0,id:void 0,sort:void 0!==ei&&ei.length>0?"MostRelevant":void 0},{pathname:ea},eo)},[ea,ed]);return(0,ec.useMemo)(()=>({search:eg,setSearch:em}),[em,eg])}let rk=function(ei){let eo=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,ec.useEffect)(()=>((0,td.e)(eo=>{for(let[ea,eu]of ei)eo.setTag(ea,eu)}),()=>{eo&&(0,td.e)(eo=>{for(let[ea]of ei)eo.setTag(ea,void 0)})}),[])},rC=()=>{rk([["feature","nft"]])},rO={MostRelevant:{value:"MostRelevant",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:MostRelevant"})},MostRare:{value:"RarityRankLowToHigh",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:MostRare"})},RecentlyVerified:{value:"RecentlyVerified",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:RecentlyAdded"})},RecentlySold:{value:"RecentlySold",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:RecentlySold"})},RecentlyBought:{value:"RecentlyBought",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:RecentlyBought"})},PriceLowToHigh:{value:"PriceLowToHigh",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:PriceLowToHigh"})},PriceHighToLow:{value:"PriceHighToLow",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:PriceHighToLow"})},HighestLastSell:{value:"HighestLastSell",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:HighestLastSell"})},NameAsc:{value:"NameAsc",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:NameAsc"})},NameDesc:{value:"NameDesc",label:(0,tV.jsx)(tq.x,{langKey:"nft:search:sortBy:NameDesc"})}},rI=[rO.RecentlyVerified,rO.RecentlySold,rO.PriceLowToHigh,rO.PriceHighToLow,rO.MostRelevant,rO.NameAsc,rO.NameDesc],rP=[rO.RecentlyVerified,rO.MostRelevant],rD=[rO.MostRare,rO.RecentlyBought],rN=[rO.RecentlyVerified,rO.RecentlySold,rO.PriceLowToHigh,rO.PriceHighToLow,rO.MostRelevant,rO.MostRare],rM={NftWallet:rO.RecentlyBought.value,NftAsset:rO.PriceLowToHigh.value,NftCreator:rO.MostRelevant.value,NftCollection:rO.MostRelevant.value},rj={NftWallet:rO.RecentlyBought.value,NftAsset:rO.PriceLowToHigh.value,NftCreator:rO.RecentlyVerified.value,NftCollection:rO.PriceLowToHigh.value};function rR(ei,eo){return eo?rM[ei]:rj[ei]}function rL(ei){var eo;let{setQueryParams:ea}=ra(),{push:eu,pathname:ed,query:ef}=(0,eD.useRouter)(),{type:eh,searchTerm:eg}=ei,{sufficientTea15:em}=(0,e9.V)(),eb=ef.sort,ew=rR(eh,eo=void 0!==eg&&eg.length>0),e_=(0,ec.useCallback)(ei=>"NftCollection"===ei?[...rI,...em?[rO.HighestLastSell]:[]]:"NftCreator"===ei?rP:"NftWallet"===ei?rD:[...rN,...em?[rO.HighestLastSell]:[]],[em]),eS=(0,ec.useMemo)(()=>e_(eh),[e_,eh]),eE=(0,ec.useCallback)((ei,eo)=>eo.some(eo=>eo.value===ei),[]),eA=(0,ec.useCallback)((ei,eo)=>{let ea=e_(ei);return eE(eo,ea)},[e_,eE]),eT=(0,ec.useMemo)(()=>eE(eb,eS)?eb:ew,[ew,eS,eb,eE]);(0,ec.useEffect)(()=>{eE(eb,eS)||ea({sort:ew})},[ew,ed,eu,ef,ea,eS,eb,eE]);let ek=(0,ec.useCallback)(function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ea({sort:ei.target.value,...eo})},[ea]);return{onSortOptionChange:ek,selectedSortOption:eT,sortByOptions:eS,typeHasSortOption:eA}}let rF=ei=>{let{pageName:eo}=ei,{track:ea}=(0,rB.S)(),{isSmall:eu}=(0,tN.kC)(),ed=(0,ec.useCallback)(ei=>{ea({eventType:"System",eventName:"NFT Page Error",params:{pageName:eo,isSmall:eu,...ei}})},[eo,eu,ea]),ef=(0,ec.useCallback)((ei,eu)=>{ea({eventType:"UserAction",eventName:ei,params:{pageName:eo,...eu}})},[eo,ea]),eh=(0,ec.useCallback)((ei,eu)=>{ea({eventType:"System",eventName:ei,params:{pageName:eo,...eu}})},[eo,ea]);return{trackPageError:ed,trackSystemAction:eh,trackUserAction:ef}};var rB=ea(18018),rU=ea(11738);let rz=ei=>{let{eventName:eo,params:ea,ref:eu,intersectionParams:ed={threshold:.8}}=ei,[ef,eh]=(0,ec.useState)(!1),{track:eg}=(0,rB.S)();(0,ec.useEffect)(()=>{let ei=new IntersectionObserver((ei,eu)=>{let ec=ei[0];ec&&ec.isIntersecting&&!ef&&(eg({eventType:"UserAction",eventName:eo,params:ea}),eh(!0),eu.disconnect())},ed);return eu.current&&ei.observe(eu.current),()=>{ei.disconnect()}},[eo,ed,ea,eu,eg,ef])},rG=function(ei){for(var eo=arguments.length,ea=Array(eo>1?eo-1:0),eu=1;eu{let ei=ei=>{var eo;let eu=ei.target;if("click"==ei.type&&"BODY"==eu.tagName&&(null===(eo=document.activeElement)||void 0===eo?void 0:eo.tagName)!=="BODY")return;let ec=document.body.contains(eu)&&!ea.some(ei=>{var eo;return null===(eo=ei.current)||void 0===eo?void 0:eo.contains(eu)});ec&&ed.current()};return document.addEventListener("click",ei),document.addEventListener("focusin",ei),()=>{document.removeEventListener("click",ei),document.removeEventListener("focusin",ei)}},[])},rV="Escape",rq=ei=>{let eo=(0,ec.useRef)(ei);eo.current=ei,(0,ec.useEffect)(()=>{let ei=ei=>{ei.key===rV&&eo.current()};return document.addEventListener("keyup",ei),()=>document.removeEventListener("keyup",ei)},[])},rH=(ei,eo)=>(0,ec.useMemo)(()=>new Intl.NumberFormat(ei,{style:"currency",currency:eo}),[ei,eo]),rW=ei=>{let{i18n:{language:eo}}=(0,eC.$G)();return rH(eo,ei)},rK=()=>{let ei=(0,ec.useRef)(null);return ei.current||(ei.current=(0,ej.Zf)()),ei.current};var rY=ea(8100);let rZ=new Set,r$=(ei,eo,ea)=>{let eu="function"==typeof ei?ei():ei;return"string"==typeof eu&&rZ.add(eu),(0,rY.ZP)(ei,eo,ea)};var rJ=ea(88643),rQ=ea(77599);function rX(){let{sessionDataState:ei}=(0,rJ.k)(),eo=ei===rQ.T.INITIALIZING;return{isLoading:eo,isAuthenticated:ei===rQ.T.AVAILABLE}}},68713:function(ei,eo,ea){"use strict";ea.d(eo,{J:function(){return ed}});var eu=ea(88643),ec=ea(77599);function ed(){let{sessionDataState:ei}=(0,eu.k)();return ei===ec.T.AVAILABLE}},37139:function(ei,eo,ea){"use strict";ea.d(eo,{p:function(){return ec}});var eu=ea(21779);let ec=function(){var ei,eo,ea;let ec=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{data:ed,error:ef}=(0,eu.jq)(),{data:eh,error:eg}=(0,eu.ie)(void 0,ec),{data:em,error:eb}=(0,eu.Ff)(void 0,ec),ew=!ed&&!ef,e_=!eh&&!eg,eS=!em&&!eb,eE=ew||e_||eS;if(!eE)return null!==(ea=null!==(eo=null!==(ei=null==em?void 0:em.country)&&void 0!==ei?ei:null==eh?void 0:eh.country)&&void 0!==eo?eo:null==ed?void 0:ed.cc)&&void 0!==ea?ea:"US"}},32285:function(ei,eo,ea){"use strict";ea(8100),ea(67294),ea(11163),ea(97334);var eu=ea(72512);ea(78440),ea(37139),(0,eu.ej)("ticker_pair")},78440:function(ei,eo,ea){"use strict";ea.d(eo,{ZO:function(){return eg},z3:function(){return ef}});var eu=ea(37139);let ec=["AD","AL","AT","AX","BA","BE","BG","BL","BV","BY","CY","CZ","DE","DK","EE","ES","FI","FR","GF","GL","GP","GR","HR","HU","IE","IS","IT","LT","LU","LV","MC","MD","ME","MF","MK","MQ","MT","NL","NO","PL","PM","PT","RE","RO","RS","SE","SI","SJ","SK","SM","TF","TR","UA","VA","YT"],ed=["FK","GB","GG","GI","IM","JE","SH"],ef=ei=>!!ei&&!!(ec.includes(ei)||ed.includes(ei)),eh=ei=>{if(ei){if(ec.includes(ei))return"EUR";if(ed.includes(ei))return"GBP";switch(ei){case"AU":case"CC":case"CX":case"NF":case"NZ":case"TV":return"AUD";case"CH":case"LI":return"CHF";case"JP":return"JPY";case"CA":return"CAD"}}return"USD"},eg=function(){let ei=!(arguments.length>0)||void 0===arguments[0]||arguments[0],eo=(0,eu.p)(ei),ea=eh(eo);return{defaultCurrency:ea,country:eo}}},14721:function(ei,eo,ea){"use strict";var eu=ea(67294);let ec=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,eo=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[ea,ec]=(0,eu.useState)(eo);return(0,eu.useEffect)(()=>{let eo=()=>{let eo=window.screen.height-ei>window.visualViewport.height;ea!=eo&&ec(eo)};return"undefined"!=typeof visualViewport&&window.visualViewport.addEventListener("resize",eo),()=>{"undefined"!=typeof visualViewport&&window.visualViewport.removeEventListener("resize",eo)}},[ea,ei]),ea};eo.Z=ec},96789:function(ei,eo,ea){"use strict";ea.d(eo,{N:function(){return em}});var eu=ea(67294),ec=ea(71565),ed=ea(93009);let ef=ei=>{let{multiEnvService:eo}=(0,ed.n)();return eo.getLDClientError(ei)};var eh=ea(2264);class eg extends Error{constructor(ei,eo){super("".concat(ei,":").concat(null!=eo?eo:"unknown")),this.name="FeatureFlagError"}}let em=(ei,eo)=>{let ea=(0,ec.m)(),ed=ef();return(0,eu.useMemo)(()=>{var eu,ec;if(ed)return{error:ed};if(!ea)return{};let ef=ea.variationDetail(ei,eo);return(null===(eu=ef.reason)||void 0===eu?void 0:eu.kind)==="ERROR"?{error:new eg(ei,null===(ec=ef.reason)||void 0===ec?void 0:ec.errorKind)}:{data:ef}},[ea,ed,eo,ei,(0,eh.V)()])}},58990:function(ei,eo,ea){"use strict";ea.d(eo,{p:function(){return ed}});var eu=ea(67294),ec=ea(97599);function ed(){let{spot:ei}=(0,ec.C)();return(0,eu.useCallback)((eo,ea)=>ei+eo+(null!=ea?ea:""),[ei])}},67707:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return ef}});var eu=ea(67294);class ec{findInsertionPoint(ei){let eo=0,ea=this.items.length-1;for(;eo<=ea;){var eu,ec;let ed=Math.floor((eo+ea)/2);if((null===(eu=this.items[ed])||void 0===eu?void 0:eu.idx)==ei.idx)return ed;(null===(ec=this.items[ed])||void 0===ec?void 0:ec.idx)0&&void 0!==arguments[0]?arguments[0]:"",eo=(0,eu.useCallback)((eo,ea)=>{ed[ei]||(ed[ei]=new ec),ed[ei].add({loaded:!1,idx:ea,callback:eo})},[ei]),ea=(0,eu.useCallback)(eo=>{var ea;let eu=null===(ea=ed[ei])||void 0===ea?void 0:ea.findByIndex(eo);if(eu){let{item:ei}=eu,eo=()=>{ei.callback(),ei.loaded=!0},ea=0,ec=()=>{var eu;ea++,(null===(eu=ei.previous)||void 0===eu?void 0:eu.loaded)?eo():ea>4?eo():setTimeout(()=>{ec()},100)};ei.previous?ec():eo()}},[ei]),ef=(0,eu.useCallback)(ei=>{ed[ei]&&delete ed[ei]},[]),eh=(0,eu.useCallback)(eo=>{var ea,eu;null===(ea=ed[ei])||void 0===ea||ea.remove(eo),(null===(eu=ed[ei])||void 0===eu?void 0:eu.items.length)===0&&ef(ei)},[ei,ef]);return{loadItem:ea,initLoadInOrder:eo,clearNamespace:ef,removeItem:eh}}},78909:function(ei,eo,ea){"use strict";ea.d(eo,{C8:function(){return eS},kC:function(){return eb}});var eu=ea(67294);let ec=480,ed=767,ef=992,eh=1199,eg=1399,em=ei=>{let eo="function"==typeof window.matchMedia,ea=eo&&!!window.matchMedia(ei).matches,[ec,ed]=(0,eu.useState)(ea);return(0,eu.useEffect)(()=>{var ea,eu;if(!eo)return;let ec=window.matchMedia(ei),ef=()=>ed(!!ec.matches);return(null==ec?void 0:ec.addEventListener)?null==ec||null===(ea=ec.addEventListener)||void 0===ea||ea.call(ec,"change",ef):null==ec||null===(eu=ec.addListener)||void 0===eu||eu.call(ec,ef),ef(),()=>{var ei,eo;(null==ec?void 0:ec.removeEventListener)?null==ec||null===(ei=ec.removeEventListener)||void 0===ei||ei.call(ec,"change",ef):null==ec||null===(eo=ec.removeListener)||void 0===eo||eo.call(ec,ef)}},[eo,ei]),ec},eb=()=>{let ei=ew(),eo=e_(),ea=eS(),eu=eA(),ec=eT(),ed=eE();return{isExtraSmall:ei,isSmall:eo,isMedium:ea,isLarge:eu,isXLarge:ec,isUpToLarge:ed}},ew=()=>em("screen and (max-width: ".concat(ec,"px)")),e_=()=>em("screen and (max-width: ".concat(ed,"px)")),eS=()=>em("screen and (max-width: ".concat(ef,"px)")),eE=()=>em("screen and (max-width: ".concat(eh,"px)")),eA=()=>em("screen and (min-width: ".concat(eh,"px)")),eT=()=>em("screen and (min-width: ".concat(eg,"px)"))},97599:function(ei,eo,ea){"use strict";ea.d(eo,{C:function(){return eu.C}});var eu=ea(29899)},18018:function(ei,eo,ea){"use strict";ea.d(eo,{S:function(){return ed}});var eu=ea(67294),ec=ea(34716);let ed=()=>{let{track:ei,reset:eo}=(0,ec.Sl)(),ea=(0,eu.useCallback)(eo=>{let{params:ea={},...eu}=eo;return ei({...eu,params:{...ea,source:"nft"}})},[ei]);return{track:ea,reset:eo}}},11738:function(ei,eo,ea){"use strict";ea.d(eo,{J3:function(){return eg},xt:function(){return eb},yD:function(){return em}});var eu=ea(8100),ec=ea(22839),ed=ea(48293);async function ef(ei){let eo=await ea(49862)("./".concat(ei,".translations"));return eo.default}let eh=ei=>"translations-".concat(ei),eg=Array.from(ed.dU).map(ei=>{let[eo,ea]=ei;return{value:eo,label:ea}}),em=async ei=>{let eo=ef(ei),ea=eh(ei);if((0,eu.JG)(ea,eo,!1),ec.ZP.isInitialized){let ea=await eo;for(let eo in ea)ec.ZP.hasResourceBundle(ei,eo)||ec.ZP.addResourceBundle(ei,eo,ea[eo])}return eo},eb=(ei,eo)=>{let ea=ei?eh(ei):null,{data:ec,error:ed,...eg}=(0,eu.ZP)(ea,async()=>{let eo=await ef(ei);return eo},{revalidateOnFocus:!1,...eo}),em=!ec&&!ed;return{...eg,error:ed,isLoading:em,translationResources:ec}}},69283:function(ei,eo,ea){"use strict";ea.r(eo),ea.d(eo,{default:function(){return FK},swrConfig:function(){return FU}});var eu,ec,ed,ef,eh,eg={};ea.r(eg),ea.d(eg,{Convert:function(){return Tq},default:function(){return kF},defaultValidationErrorHandler:function(){return TH},nftAcceptOffer:function(){return kE},nftApiAttempt:function(){return TJ},nftApiError:function(){return TQ},nftApiSuccess:function(){return TX},nftApiTiming:function(){return T0},nftBuyNow:function(){return kx},nftCancelOffer:function(){return kA},nftCollectionSearched:function(){return T5},nftCounterOffer:function(){return kT},nftExplorePageCarouselItemBuyNowClicked:function(){return T4},nftExplorePageCarouselItemClicked:function(){return T6},nftExplorePageCarouselItemMakeOfferClicked:function(){return T8},nftExplorePageCarouselPaginationClicked:function(){return T9},nftExplorePageCarouselViewAllClicked:function(){return T7},nftExplorePageHeroCarouselItemCtaClicked:function(){return kr},nftExplorePageHeroCarouselPaginationClicked:function(){return ko},nftExplorePageHeroSearch:function(){return kl},nftExplorePageSectionError:function(){return ku},nftExplorePageSectionViewed:function(){return kc},nftListingCollectionClick:function(){return kk},nftListingCreatorClick:function(){return kC},nftListingHistoryTabClick:function(){return kO},nftListingImageClick:function(){return kI},nftListingList:function(){return kP},nftListingOffersTabClick:function(){return kD},nftListingWithdraw:function(){return kN},nftMakeOffer:function(){return kM},nftPageError:function(){return kd},nftPageImpression:function(){return kh},nftSeachPageCollectionClick:function(){return kp},nftSearchPageCollectionTabClick:function(){return kg},nftSearchPageCreatorClick:function(){return km},nftSearchPageCreatorTabClick:function(){return ky},nftSearchPageListingClick:function(){return kv},nftSearchPageListingTabClick:function(){return kw},nftTermsOfServicesAccepted:function(){return k_},nftTermsOfServicesDialogOpen:function(){return kS},nftWeb3AddWallet:function(){return kj},nftWeb3RemoveWallet:function(){return kR},setTypewriterOptions:function(){return TY}});var em=ea(85893);ea(90298),ea(35686);var eb=ea(67294),ew=ea(9008),e_=ea.n(ew),eS=ea(94184),eE=ea.n(eS),eA=ea(11163),eT=ea.n(eA),ek=ea(81927),eC=ea(47964),eO=ea(97582),eI=ea(82649),eP={now:function(){return(eP.delegate||Date).now()},delegate:void 0},eD=function(ei){function eo(eo,ea,eu){void 0===eo&&(eo=1/0),void 0===ea&&(ea=1/0),void 0===eu&&(eu=eP);var ec=ei.call(this)||this;return ec._bufferSize=eo,ec._windowTime=ea,ec._timestampProvider=eu,ec._buffer=[],ec._infiniteTimeWindow=!0,ec._infiniteTimeWindow=ea===1/0,ec._bufferSize=Math.max(1,eo),ec._windowTime=Math.max(1,ea),ec}return(0,eO.ZT)(eo,ei),eo.prototype.next=function(eo){var ea=this,eu=ea.isStopped,ec=ea._buffer,ed=ea._infiniteTimeWindow,ef=ea._timestampProvider,eh=ea._windowTime;!eu&&(ec.push(eo),ed||ec.push(ef.now()+eh)),this._trimBuffer(),ei.prototype.next.call(this,eo)},eo.prototype._subscribe=function(ei){this._throwIfClosed(),this._trimBuffer();for(var eo=this._innerSubscribe(ei),ea=this,eu=ea._infiniteTimeWindow,ec=ea._buffer.slice(),ed=0;ed!1!==ei.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(ei=>ei.getCurrentResult().isStale)}isStaleByTime(ei=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,tm.Kp)(this.state.dataUpdatedAt,ei)}onFocus(){var ei;let eo=this.observers.find(ei=>ei.shouldFetchOnWindowFocus());eo&&eo.refetch({cancelRefetch:!1}),null==(ei=this.retryer)||ei.continue()}onOnline(){var ei;let eo=this.observers.find(ei=>ei.shouldFetchOnReconnect());eo&&eo.refetch({cancelRefetch:!1}),null==(ei=this.retryer)||ei.continue()}addObserver(ei){this.observers.includes(ei)||(this.observers.push(ei),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:ei}))}removeObserver(ei){this.observers.includes(ei)&&(this.observers=this.observers.filter(eo=>eo!==ei),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:ei}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(ei,eo){var ea,eu,ec,ed;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=eo&&eo.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(ec=this.retryer)||ec.continueRetry(),this.promise}if(ei&&this.setOptions(ei),!this.options.queryFn){let ei=this.observers.find(ei=>ei.options.queryFn);ei&&this.setOptions(ei.options)}let ef=(0,tm.G9)(),eh={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},eg=ei=>{Object.defineProperty(ei,"signal",{enumerable:!0,get:()=>{if(ef)return this.abortSignalConsumed=!0,ef.signal}})};eg(eh);let em=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(eh)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),eb={fetchOptions:eo,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:em};eg(eb),null==(ea=this.options.behavior)||ea.onFetch(eb),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(eu=eb.fetchOptions)?void 0:eu.meta))&&this.dispatch({type:"fetch",meta:null==(ed=eb.fetchOptions)?void 0:ed.meta});let ew=ei=>{if((0,tw.DV)(ei)&&ei.silent||this.dispatch({type:"error",error:ei}),!(0,tw.DV)(ei)){var eo,ea,eu,ec;null==(eo=(ea=this.cache.config).onError)||eo.call(ea,ei,this),null==(eu=(ec=this.cache.config).onSettled)||eu.call(ec,this.state.data,ei,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,tw.Mz)({fn:eb.fetchFn,abort:null==ef?void 0:ef.abort.bind(ef),onSuccess:ei=>{var eo,ea,eu,ec;if(void 0===ei){ew(Error(this.queryHash+" data is undefined"));return}this.setData(ei),null==(eo=(ea=this.cache.config).onSuccess)||eo.call(ea,ei,this),null==(eu=(ec=this.cache.config).onSettled)||eu.call(ec,ei,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:ew,onFail:(ei,eo)=>{this.dispatch({type:"failed",failureCount:ei,error:eo})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:eb.options.retry,retryDelay:eb.options.retryDelay,networkMode:eb.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(ei){let eo=eo=>{var ea,eu;switch(ei.type){case"failed":return{...eo,fetchFailureCount:ei.failureCount,fetchFailureReason:ei.error};case"pause":return{...eo,fetchStatus:"paused"};case"continue":return{...eo,fetchStatus:"fetching"};case"fetch":return{...eo,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(ea=ei.meta)?ea:null,fetchStatus:(0,tw.Kw)(this.options.networkMode)?"fetching":"paused",...!eo.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...eo,data:ei.data,dataUpdateCount:eo.dataUpdateCount+1,dataUpdatedAt:null!=(eu=ei.dataUpdatedAt)?eu:Date.now(),error:null,isInvalidated:!1,status:"success",...!ei.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let ec=ei.error;if((0,tw.DV)(ec)&&ec.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...eo,error:ec,errorUpdateCount:eo.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:eo.fetchFailureCount+1,fetchFailureReason:ec,fetchStatus:"idle",status:"error"};case"invalidate":return{...eo,isInvalidated:!0};case"setState":return{...eo,...ei.state}}};this.state=eo(this.state),tb.V.batch(()=>{this.observers.forEach(eo=>{eo.onQueryUpdate(ei)}),this.cache.notify({query:this,type:"updated",action:ei})})}}function tE(ei){let eo="function"==typeof ei.initialData?ei.initialData():ei.initialData,ea=void 0!==eo,eu=ea?"function"==typeof ei.initialDataUpdatedAt?ei.initialDataUpdatedAt():ei.initialDataUpdatedAt:0;return{data:eo,dataUpdateCount:0,dataUpdatedAt:ea?null!=eu?eu:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:ea?"success":"loading",fetchStatus:"idle"}}var tA=ea(33989);class tT extends tA.l{constructor(ei){super(),this.config=ei||{},this.queries=[],this.queriesMap={}}build(ei,eo,ea){var eu;let ec=eo.queryKey,ed=null!=(eu=eo.queryHash)?eu:(0,tm.Rm)(ec,eo),ef=this.get(ed);return ef||(ef=new tS({cache:this,logger:ei.getLogger(),queryKey:ec,queryHash:ed,options:ei.defaultQueryOptions(eo),state:ea,defaultOptions:ei.getQueryDefaults(ec)}),this.add(ef)),ef}add(ei){this.queriesMap[ei.queryHash]||(this.queriesMap[ei.queryHash]=ei,this.queries.push(ei),this.notify({type:"added",query:ei}))}remove(ei){let eo=this.queriesMap[ei.queryHash];eo&&(ei.destroy(),this.queries=this.queries.filter(eo=>eo!==ei),eo===ei&&delete this.queriesMap[ei.queryHash],this.notify({type:"removed",query:ei}))}clear(){tb.V.batch(()=>{this.queries.forEach(ei=>{this.remove(ei)})})}get(ei){return this.queriesMap[ei]}getAll(){return this.queries}find(ei,eo){let[ea]=(0,tm.I6)(ei,eo);return void 0===ea.exact&&(ea.exact=!0),this.queries.find(ei=>(0,tm._x)(ea,ei))}findAll(ei,eo){let[ea]=(0,tm.I6)(ei,eo);return Object.keys(ea).length>0?this.queries.filter(ei=>(0,tm._x)(ea,ei)):this.queries}notify(ei){tb.V.batch(()=>{this.listeners.forEach(({listener:eo})=>{eo(ei)})})}onFocus(){tb.V.batch(()=>{this.queries.forEach(ei=>{ei.onFocus()})})}onOnline(){tb.V.batch(()=>{this.queries.forEach(ei=>{ei.onOnline()})})}}var tk=ea(89886);class tC extends tA.l{constructor(ei){super(),this.config=ei||{},this.mutations=[],this.mutationId=0}build(ei,eo,ea){let eu=new tk.m({mutationCache:this,logger:ei.getLogger(),mutationId:++this.mutationId,options:ei.defaultMutationOptions(eo),state:ea,defaultOptions:eo.mutationKey?ei.getMutationDefaults(eo.mutationKey):void 0});return this.add(eu),eu}add(ei){this.mutations.push(ei),this.notify({type:"added",mutation:ei})}remove(ei){this.mutations=this.mutations.filter(eo=>eo!==ei),this.notify({type:"removed",mutation:ei})}clear(){tb.V.batch(()=>{this.mutations.forEach(ei=>{this.remove(ei)})})}getAll(){return this.mutations}find(ei){return void 0===ei.exact&&(ei.exact=!0),this.mutations.find(eo=>(0,tm.X7)(ei,eo))}findAll(ei){return this.mutations.filter(eo=>(0,tm.X7)(ei,eo))}notify(ei){tb.V.batch(()=>{this.listeners.forEach(({listener:eo})=>{eo(ei)})})}resumePausedMutations(){var ei;return this.resuming=(null!=(ei=this.resuming)?ei:Promise.resolve()).then(()=>{let ei=this.mutations.filter(ei=>ei.state.isPaused);return tb.V.batch(()=>ei.reduce((ei,eo)=>ei.then(()=>eo.continue().catch(tm.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var tO=ea(15761),tI=ea(96474);function tP(){return{onFetch:ei=>{ei.fetchFn=()=>{var eo,ea,eu,ec,ed,ef;let eh;let eg=null==(eo=ei.fetchOptions)?void 0:null==(ea=eo.meta)?void 0:ea.refetchPage,em=null==(eu=ei.fetchOptions)?void 0:null==(ec=eu.meta)?void 0:ec.fetchMore,eb=null==em?void 0:em.pageParam,ew=(null==em?void 0:em.direction)==="forward",e_=(null==em?void 0:em.direction)==="backward",eS=(null==(ed=ei.state.data)?void 0:ed.pages)||[],eE=(null==(ef=ei.state.data)?void 0:ef.pageParams)||[],eA=eE,eT=!1,ek=eo=>{Object.defineProperty(eo,"signal",{enumerable:!0,get:()=>{var eo,ea;return null!=(eo=ei.signal)&&eo.aborted?eT=!0:null==(ea=ei.signal)||ea.addEventListener("abort",()=>{eT=!0}),ei.signal}})},eC=ei.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+ei.options.queryHash+"'")),eO=(ei,eo,ea,eu)=>(eA=eu?[eo,...eA]:[...eA,eo],eu?[ea,...ei]:[...ei,ea]),eI=(eo,ea,eu,ec)=>{if(eT)return Promise.reject("Cancelled");if(void 0===eu&&!ea&&eo.length)return Promise.resolve(eo);let ed={queryKey:ei.queryKey,pageParam:eu,meta:ei.options.meta};ek(ed);let ef=eC(ed),eh=Promise.resolve(ef).then(ei=>eO(eo,eu,ei,ec));return eh};if(eS.length){if(ew){let eo=void 0!==eb,ea=eo?eb:tD(ei.options,eS);eh=eI(eS,eo,ea)}else if(e_){let eo=void 0!==eb,ea=eo?eb:tN(ei.options,eS);eh=eI(eS,eo,ea,!0)}else{eA=[];let eo=void 0===ei.options.getNextPageParam,ea=!eg||!eS[0]||eg(eS[0],0,eS);eh=ea?eI([],eo,eE[0]):Promise.resolve(eO([],eE[0],eS[0]));for(let ea=1;ea{let ec=!eg||!eS[ea]||eg(eS[ea],ea,eS);if(ec){let ec=eo?eE[ea]:tD(ei.options,eu);return eI(eu,eo,ec)}return Promise.resolve(eO(eu,eE[ea],eS[ea]))})}}else eh=eI([]);let eP=eh.then(ei=>({pages:ei,pageParams:eA}));return eP}}}}function tD(ei,eo){return null==ei.getNextPageParam?void 0:ei.getNextPageParam(eo[eo.length-1],eo)}function tN(ei,eo){return null==ei.getPreviousPageParam?void 0:ei.getPreviousPageParam(eo[0],eo)}class tM{constructor(ei={}){this.queryCache=ei.queryCache||new tT,this.mutationCache=ei.mutationCache||new tC,this.logger=ei.logger||tv._,this.defaultOptions=ei.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=tO.j.subscribe(()=>{tO.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=tI.N.subscribe(()=>{tI.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var ei,eo;this.mountCount--,0===this.mountCount&&(null==(ei=this.unsubscribeFocus)||ei.call(this),this.unsubscribeFocus=void 0,null==(eo=this.unsubscribeOnline)||eo.call(this),this.unsubscribeOnline=void 0)}isFetching(ei,eo){let[ea]=(0,tm.I6)(ei,eo);return ea.fetchStatus="fetching",this.queryCache.findAll(ea).length}isMutating(ei){return this.mutationCache.findAll({...ei,fetching:!0}).length}getQueryData(ei,eo){var ea;return null==(ea=this.queryCache.find(ei,eo))?void 0:ea.state.data}ensureQueryData(ei,eo,ea){let eu=(0,tm._v)(ei,eo,ea),ec=this.getQueryData(eu.queryKey);return ec?Promise.resolve(ec):this.fetchQuery(eu)}getQueriesData(ei){return this.getQueryCache().findAll(ei).map(({queryKey:ei,state:eo})=>{let ea=eo.data;return[ei,ea]})}setQueryData(ei,eo,ea){let eu=this.queryCache.find(ei),ec=null==eu?void 0:eu.state.data,ed=(0,tm.SE)(eo,ec);if(void 0===ed)return;let ef=(0,tm._v)(ei),eh=this.defaultQueryOptions(ef);return this.queryCache.build(this,eh).setData(ed,{...ea,manual:!0})}setQueriesData(ei,eo,ea){return tb.V.batch(()=>this.getQueryCache().findAll(ei).map(({queryKey:ei})=>[ei,this.setQueryData(ei,eo,ea)]))}getQueryState(ei,eo){var ea;return null==(ea=this.queryCache.find(ei,eo))?void 0:ea.state}removeQueries(ei,eo){let[ea]=(0,tm.I6)(ei,eo),eu=this.queryCache;tb.V.batch(()=>{eu.findAll(ea).forEach(ei=>{eu.remove(ei)})})}resetQueries(ei,eo,ea){let[eu,ec]=(0,tm.I6)(ei,eo,ea),ed=this.queryCache,ef={type:"active",...eu};return tb.V.batch(()=>(ed.findAll(eu).forEach(ei=>{ei.reset()}),this.refetchQueries(ef,ec)))}cancelQueries(ei,eo,ea){let[eu,ec={}]=(0,tm.I6)(ei,eo,ea);void 0===ec.revert&&(ec.revert=!0);let ed=tb.V.batch(()=>this.queryCache.findAll(eu).map(ei=>ei.cancel(ec)));return Promise.all(ed).then(tm.ZT).catch(tm.ZT)}invalidateQueries(ei,eo,ea){let[eu,ec]=(0,tm.I6)(ei,eo,ea);return tb.V.batch(()=>{var ei,eo;if(this.queryCache.findAll(eu).forEach(ei=>{ei.invalidate()}),"none"===eu.refetchType)return Promise.resolve();let ea={...eu,type:null!=(ei=null!=(eo=eu.refetchType)?eo:eu.type)?ei:"active"};return this.refetchQueries(ea,ec)})}refetchQueries(ei,eo,ea){let[eu,ec]=(0,tm.I6)(ei,eo,ea),ed=tb.V.batch(()=>this.queryCache.findAll(eu).filter(ei=>!ei.isDisabled()).map(ei=>{var eo;return ei.fetch(void 0,{...ec,cancelRefetch:null==(eo=null==ec?void 0:ec.cancelRefetch)||eo,meta:{refetchPage:eu.refetchPage}})})),ef=Promise.all(ed).then(tm.ZT);return null!=ec&&ec.throwOnError||(ef=ef.catch(tm.ZT)),ef}fetchQuery(ei,eo,ea){let eu=(0,tm._v)(ei,eo,ea),ec=this.defaultQueryOptions(eu);void 0===ec.retry&&(ec.retry=!1);let ed=this.queryCache.build(this,ec);return ed.isStaleByTime(ec.staleTime)?ed.fetch(ec):Promise.resolve(ed.state.data)}prefetchQuery(ei,eo,ea){return this.fetchQuery(ei,eo,ea).then(tm.ZT).catch(tm.ZT)}fetchInfiniteQuery(ei,eo,ea){let eu=(0,tm._v)(ei,eo,ea);return eu.behavior=tP(),this.fetchQuery(eu)}prefetchInfiniteQuery(ei,eo,ea){return this.fetchInfiniteQuery(ei,eo,ea).then(tm.ZT).catch(tm.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(ei){this.defaultOptions=ei}setQueryDefaults(ei,eo){let ea=this.queryDefaults.find(eo=>(0,tm.yF)(ei)===(0,tm.yF)(eo.queryKey));ea?ea.defaultOptions=eo:this.queryDefaults.push({queryKey:ei,defaultOptions:eo})}getQueryDefaults(ei){if(!ei)return;let eo=this.queryDefaults.find(eo=>(0,tm.to)(ei,eo.queryKey));return null==eo?void 0:eo.defaultOptions}setMutationDefaults(ei,eo){let ea=this.mutationDefaults.find(eo=>(0,tm.yF)(ei)===(0,tm.yF)(eo.mutationKey));ea?ea.defaultOptions=eo:this.mutationDefaults.push({mutationKey:ei,defaultOptions:eo})}getMutationDefaults(ei){if(!ei)return;let eo=this.mutationDefaults.find(eo=>(0,tm.to)(ei,eo.mutationKey));return null==eo?void 0:eo.defaultOptions}defaultQueryOptions(ei){if(null!=ei&&ei._defaulted)return ei;let eo={...this.defaultOptions.queries,...this.getQueryDefaults(null==ei?void 0:ei.queryKey),...ei,_defaulted:!0};return!eo.queryHash&&eo.queryKey&&(eo.queryHash=(0,tm.Rm)(eo.queryKey,eo)),void 0===eo.refetchOnReconnect&&(eo.refetchOnReconnect="always"!==eo.networkMode),void 0===eo.useErrorBoundary&&(eo.useErrorBoundary=!!eo.suspense),eo}defaultMutationOptions(ei){return null!=ei&&ei._defaulted?ei:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==ei?void 0:ei.mutationKey),...ei,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var tj=ea(85945),tR=ea(2264),tL=ea(93009);let tF=()=>{let{multiEnvService:ei}=(0,tL.n)();return ei},tB=5e3;var tU=ea(88808);let tG=ei=>{let{children:eo,alertTimeout:ea}=ei,[eu,ec]=(0,eb.useState)(null),[ed,ef]=(0,eb.useState)(0);(0,eb.useEffect)(()=>()=>clearTimeout(ed),[ed]);let eh={currentAlert:eu,triggerAlert:(0,eb.useCallback)(function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",eu=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ea,ed=arguments.length>3&&void 0!==arguments[3]&&arguments[3];ec({node:ei,type:eo,manual:ed}),ed||ef(window.setTimeout(()=>ec(null),eu))},[ea]),dismissAlert:()=>{ed&&clearTimeout(ed),ec(null)}};return eb.createElement(tU.Z.Provider,{value:eh},eo)};tG.defaultProps={alertTimeout:tB};var tV=ea(86010);function tq(){return(tq=Object.assign||function(ei){for(var eo=1;eo=0||(ec[ea]=ei[ea]);return ec}function tW(ei,eo){ei.prototype=Object.create(eo.prototype),ei.prototype.constructor=ei,ei.__proto__=eo}function tK(ei,eo){return ei.classList?!!eo&&ei.classList.contains(eo):-1!==(" "+(ei.className.baseVal||ei.className)+" ").indexOf(" "+eo+" ")}function tY(ei,eo){ei.classList?ei.classList.add(eo):tK(ei,eo)||("string"==typeof ei.className?ei.className=ei.className+" "+eo:ei.setAttribute("class",(ei.className&&ei.className.baseVal||"")+" "+eo))}function tZ(ei,eo){return ei.replace(RegExp("(^|\\s)"+eo+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function t$(ei,eo){ei.classList?ei.classList.remove(eo):"string"==typeof ei.className?ei.className=tZ(ei.className,eo):ei.setAttribute("class",tZ(ei.className&&ei.className.baseVal||"",eo))}var tJ=ea(73935),tQ={disabled:!1},tX=eb.createContext(null),ra="unmounted",ru="exited",rc="entering",rf="entered",rh="exiting",rp=function(ei){function eo(eo,ea){eu=ei.call(this,eo,ea)||this;var eu,ec,ed=ea,ef=ed&&!ed.isMounting?eo.enter:eo.appear;return eu.appearStatus=null,eo.in?ef?(ec=ru,eu.appearStatus=rc):ec=rf:ec=eo.unmountOnExit||eo.mountOnEnter?ra:ru,eu.state={status:ec},eu.nextCallback=null,eu}tW(eo,ei),eo.getDerivedStateFromProps=function(ei,eo){return ei.in&&eo.status===ra?{status:ru}:null};var ea=eo.prototype;return ea.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},ea.componentDidUpdate=function(ei){var eo=null;if(ei!==this.props){var ea=this.state.status;this.props.in?ea!==rc&&ea!==rf&&(eo=rc):(ea===rc||ea===rf)&&(eo=rh)}this.updateStatus(!1,eo)},ea.componentWillUnmount=function(){this.cancelNextCallback()},ea.getTimeouts=function(){var ei,eo,ea,eu=this.props.timeout;return ei=eo=ea=eu,null!=eu&&"number"!=typeof eu&&(ei=eu.exit,eo=eu.enter,ea=void 0!==eu.appear?eu.appear:eo),{exit:ei,enter:eo,appear:ea}},ea.updateStatus=function(ei,eo){if(void 0===ei&&(ei=!1),null!==eo){this.cancelNextCallback();var ea=tJ.findDOMNode(this);eo===rc?this.performEnter(ea,ei):this.performExit(ea)}else this.props.unmountOnExit&&this.state.status===ru&&this.setState({status:ra})},ea.performEnter=function(ei,eo){var ea=this,eu=this.props.enter,ec=this.context?this.context.isMounting:eo,ed=this.getTimeouts(),ef=ec?ed.appear:ed.enter;if(!eo&&!eu||tQ.disabled){this.safeSetState({status:rf},function(){ea.props.onEntered(ei)});return}this.props.onEnter(ei,ec),this.safeSetState({status:rc},function(){ea.props.onEntering(ei,ec),ea.onTransitionEnd(ei,ef,function(){ea.safeSetState({status:rf},function(){ea.props.onEntered(ei,ec)})})})},ea.performExit=function(ei){var eo=this,ea=this.props.exit,eu=this.getTimeouts();if(!ea||tQ.disabled){this.safeSetState({status:ru},function(){eo.props.onExited(ei)});return}this.props.onExit(ei),this.safeSetState({status:rh},function(){eo.props.onExiting(ei),eo.onTransitionEnd(ei,eu.exit,function(){eo.safeSetState({status:ru},function(){eo.props.onExited(ei)})})})},ea.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},ea.safeSetState=function(ei,eo){eo=this.setNextCallback(eo),this.setState(ei,eo)},ea.setNextCallback=function(ei){var eo=this,ea=!0;return this.nextCallback=function(eu){ea&&(ea=!1,eo.nextCallback=null,ei(eu))},this.nextCallback.cancel=function(){ea=!1},this.nextCallback},ea.onTransitionEnd=function(ei,eo,ea){this.setNextCallback(ea);var eu=null==eo&&!this.props.addEndListener;if(!ei||eu){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(ei,this.nextCallback),null!=eo&&setTimeout(this.nextCallback,eo)},ea.render=function(){var ei=this.state.status;if(ei===ra)return null;var eo=this.props,ea=eo.children,eu=tH(eo,["children"]);if(delete eu.in,delete eu.mountOnEnter,delete eu.unmountOnExit,delete eu.appear,delete eu.enter,delete eu.exit,delete eu.timeout,delete eu.addEndListener,delete eu.onEnter,delete eu.onEntering,delete eu.onEntered,delete eu.onExit,delete eu.onExiting,delete eu.onExited,"function"==typeof ea)return eb.createElement(tX.Provider,{value:null},ea(ei,eu));var ec=eb.Children.only(ea);return eb.createElement(tX.Provider,{value:null},eb.cloneElement(ec,eu))},eo}(eb.Component);function ry(){}rp.contextType=tX,rp.propTypes={},rp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ry,onEntering:ry,onEntered:ry,onExit:ry,onExiting:ry,onExited:ry},rp.UNMOUNTED=0,rp.EXITED=1,rp.ENTERING=2,rp.ENTERED=3,rp.EXITING=4;var rw=rp,r_=function(ei,eo){return ei&&eo&&eo.split(" ").forEach(function(eo){return tY(ei,eo)})},rS=function(ei,eo){return ei&&eo&&eo.split(" ").forEach(function(eo){return t$(ei,eo)})},rE=function(ei){function eo(){for(var eo,ea=arguments.length,eu=Array(ea),ec=0;eceo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let rD=eb.forwardRef((ei,eo)=>{var{color:ea}=ei,eu=rP(ei,["color"]);return eb.createElement("svg",Object.assign({},(0,rI.ti)(eu),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eb.createElement("path",{d:"M7.29297 15.2929L10.5859 12L7.29297 8.70712L8.70718 7.29291L12.0001 10.5858L15.293 7.29291L16.7072 8.70712L13.4143 12L16.7072 15.2929L15.293 16.7071L12.0001 13.4142L8.70718 16.7071L7.29297 15.2929Z",fill:ea}),eb.createElement("path",{d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12Z",fill:ea}))});rD.displayName="CircleClose";var rN=ea(33762),rM=ea(45651),rj=ea(65810),rR=ea.n(rj),rL=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let rF=864e5,rB=new Map([["success",eb.createElement(rk.y,{key:"success"})],["info",eb.createElement(rC.k,{key:"info"})],["warning",eb.createElement(rO.v,{key:"warning"})],["error",eb.createElement(rD,{key:"error"})]]),rU=new Map([["success","polite"],["info","polite"],["warning","assertive"],["error","assertive"]]),rz=ei=>{var eo,{alertTimeout:ea,onAlertGone:eu}=ei,ec=rL(ei,["alertTimeout","onAlertGone"]);let{currentAlert:ed,dismissAlert:ef}=(0,tU.B)(),[eh,eg]=(0,eb.useState)(null),{t:em}=(0,rT.$G)();(0,eb.useEffect)(()=>{null!==ed&&eg(ed)},[ed]);let ew=(0,eb.useCallback)(ei=>{"Escape"===ei.key&&ef()},[ef]);(0,eb.useEffect)(()=>(window.addEventListener("keydown",ew,!1),()=>window.removeEventListener("keydown",ew,!1)),[ew]);let e_=(null==eh?void 0:eh.type)?rB.get(eh.type):null;return eb.createElement("div",Object.assign({},ec),eb.createElement(rA,{classNames:{appear:rR().appear,appearActive:rR().appearActive,enter:rR().enter,enterActive:rR().enterActive,exit:rR().exit,exitActive:rR().exitActive},appear:!0,mountOnEnter:!1,unmountOnExit:!1,in:!!ed,timeout:(null==ed?void 0:ed.manual)?rF:ea||tB,onExited:()=>{eg(null),eu&&eu()}},eb.createElement("div",{"data-testid":"alertBar","aria-hidden":null===ed,role:"alert","aria-live":(null==eh?void 0:eh.type)?rU.get(eh.type):"off",className:(0,tV.Z)("w-100 pa1 z-5 fixed flex items-center",rR().alertBar,!!eh&&rR().enterActive,!!eh&&rR().enter,(null==eh?void 0:eh.type)&&rR()[eh.type],(null==eh?void 0:eh.manual)&&rR()["".concat(eh.type,"-manual")])},eb.createElement("div",{className:(0,tV.Z)("flex items-end justify-end",rR().icon)},e_),eb.createElement("div",{className:"caption-2 pl1"},(null==eh?void 0:eh.node)||""),eb.createElement("div",{className:(0,tV.Z)("flex items-end justify-end",rR().icon)},(null==eh?void 0:eh.node)&&eb.createElement(rM.h,{icon:rN.E,"aria-label":null!==(eo=em("general:DismissAlert"))&&void 0!==eo?eo:"",role:"button","data-testid":"close alert bar",onClick:ef})))))};rz.defaultProps={alertTimeout:tB};var rG=ea(93055),rV=ea(86515),rq=ea(29127);function rH(ei,eo,ea,eu,ec,ed,ef,eh){var eg=[],em=0,eb=0,ew=!1,e_=function(){!ew||eg.length||em||eo.complete()},eS=function(ei){return em0&&(eo=new nO.Hp({next:function(ei){return eA.next(ei)},error:function(ei){eb=!0,ew(),eu=nP(e_,ec,ei),eA.error(ei)},complete:function(){em=!0,ew(),eu=nP(e_,ef),eA.complete()}}),eY(ei).subscribe(eo))})(ei)}}function nP(ei,eo){for(var ea=[],eu=2;euvoid 0,info:()=>void 0,warn:()=>void 0,error:ei=>{throw Error(ei)}},nY={data:void 0,meta:{assetInfo:void 0,assetRateInUSD:void 0,limits:void 0},isLoading:{ANY:!1},isFetching:{ANY:!1},isError:{ANY:!1},error:{ANY:void 0}};Object.assign(Object.assign({},nY),{isLoading:{ANY:!0}});let nZ=(ei,eo)=>{let ea=Object.fromEntries(Object.entries(ei).map(([ei,ea])=>[ei,null==ea?void 0:ea[eo]]));return Object.assign(Object.assign({},ea),{ANY:Object.values(ea).some(ei=>ei)})};var n$=ea(13012),nJ=ea(19952);let nQ=({amount:ei,decimals:eo,roundingMode:ea=n$.Z.roundHalfEven})=>{var eu,ec;let ed=n0(ei);if(void 0===eo)return null!==(eu=null==ed?void 0:ed.toString())&&void 0!==eu?eu:"";let ef="number"==typeof eo?eo:null===(ec=n0(eo))||void 0===ec?void 0:ec.toNumber();return(null==ed?void 0:ed.toFixed(ef,ea))||""},nX=ei=>{let eo=n0(ei);if(eo)return"function"==typeof eo.toNumber?eo.toNumber():Number(eo)},n0=ei=>{if(null!=ei)try{return ei instanceof n$.Z?ei:(0,n$.Z)(ei||0)}catch(ea){let eo=Number(ei||0);if(isNaN(eo)||eo===1/0||eo===-1/0)return;return(0,n$.Z)(eo)}},n3=(ei,eo)=>{let ea=ei.filter(nJ.$K);return 0===ea.length?eo:Math.min(...ea)},n5=(ei,eo)=>{let ea=ei.filter(nJ.$K);return 0===ea.length?eo:Math.max(...ea)},n4=ei=>{let eo=nX(ei.fee||0)||0,ea=nX(ei.fee_percentage||0)||0,eu=ei.fee_max?nX(ei.fee_max):void 0,ec=!!(eo||ea);return{hasAnyFees:ec,feeFixed:eo,feePercentage:ea,feeMax:eu}};!function(ei){ei.Deposit="deposit",ei.Withdraw="withdraw"}(IQ||(IQ={})),function(ei){ei.Net="net",ei.Total="total"}(IX||(IX={})),function(ei){ei.DEPOSIT_MAIN_WARNING="DEPOSIT_MAIN_WARNING",ei.DEPOSIT_WARNING_NETWORK_WITH_MEMO="DEPOSIT_WARNING_NETWORK_WITH_MEMO",ei.DEPOSIT_WARNING_NETWORK_WITH_TAG="DEPOSIT_WARNING_NETWORK_WITH_TAG",ei.DEPOSIT_WARNING_NETWORK_IS_ETH_ON_POLYGON="DEPOSIT_WARNING_NETWORK_IS_ETH_ON_POLYGON",ei.DEPOSIT_WARNING_NETWORK_IS_USDC_ON_ARBITRUM="DEPOSIT_WARNING_NETWORK_IS_USDC_ON_ARBITRUM",ei.WITHDRAW_MAIN_WARNING="WITHDRAW_MAIN_WARNING",ei.WITHDRAW_WARNING_NETWORK_IS_ETH_ON_POLYGON="WITHDRAW_WARNING_NETWORK_IS_ETH_ON_POLYGON"}(I0||(I0={})),function(ei){ei.ETH_ON_ZK_SYNC="ETH_ON_ZK_SYNC"}(I1||(I1={})),function(ei){ei.FEE_NO_FEE="FEE_NO_FEE",ei.FEE_X_ASSET="FEE_X_ASSET",ei.FEE_X_PERCENTAGE="FEE_X_PERCENTAGE",ei.FEE_X_ASSET_PLUS_Y_PERCENTAGE="FEE_X_ASSET_PLUS_Y_PERCENTAGE",ei.PROCESSING_TIME_INSTANT="PROCESSING_TIME_INSTANT",ei.PROCESSING_TIME_NEAR_INSTANT="PROCESSING_TIME_NEAR_INSTANT",ei.PROCESSING_TIME_SAME_DAY="PROCESSING_TIME_SAME_DAY",ei.PROCESSING_TIME_X_SECONDS="PROCESSING_TIME_X_SECONDS",ei.PROCESSING_TIME_X_MINUTES="PROCESSING_TIME_X_MINUTES",ei.PROCESSING_TIME_X_HOURS="PROCESSING_TIME_X_HOURS",ei.PROCESSING_TIME_X_DAYS="PROCESSING_TIME_X_DAYS",ei.PROCESSING_TIME_X_BUSINESS_DAYS="PROCESSING_TIME_X_BUSINESS_DAYS",ei.PROCESSING_TIME_X_MONTHS="PROCESSING_TIME_X_MONTHS",ei.PROCESSING_TIME_X_YEARS="PROCESSING_TIME_X_YEARS",ei.LIMIT_UP_TO_X_ASSET="LIMIT_UP_TO_X_ASSET",ei.LIMIT_UP_TO_X_ASSET_DAILY="LIMIT_UP_TO_X_ASSET_DAILY",ei.LIMIT_UP_TO_X_ASSET_WEEKLY="LIMIT_UP_TO_X_ASSET_WEEKLY",ei.LIMIT_UP_TO_X_ASSET_MONTHLY="LIMIT_UP_TO_X_ASSET_MONTHLY",ei.LIMIT_X_ASSET_MINIMUM="LIMIT_X_ASSET_MINIMUM"}(I2||(I2={})),function(ei){ei.direct="direct",ei.domestic="domestic",ei.international="international",ei.other="other"}(I3||(I3={}));let n6=({mode:ei,isFiat:eo,feeIncluded:ea})=>ea||ei===IQ.Deposit||eo?IX.Total:IX.Net,n8=({mode:ei,isFiat:eo})=>eo?IX.Total:ei===IQ.Withdraw?IX.Net:IX.Total,n9=({inputAmount:ei,inputAmountType:eo,percentageFeeFrom:ea,methodModel:eu,fundingDecimals:ec})=>{let ed=nX(ei)||0,{feeFixed:ef,feePercentage:eh,feeMax:eg}=n4(eu),em=n7({inputAmount:ed,feeFixed:ef,feePercentage:eh,percentageFeeFrom:ea,fundingDecimals:ec}),eb=eg?Math.min(eg,em):em,ew=eo===IX.Total?nX(ed):nX(n0(ed).add(eb)),e_=nX(n0(ew).sub(eb));return{inputAmount:ed,feeAmount:eb,totalAmount:ew,netAmount:e_,feeDetails:{fee:ef,feePercentage:nX(n0(eb).sub(ef))}}},n7=({inputAmount:ei,percentageFeeFrom:eo,feeFixed:ea,feePercentage:eu,fundingDecimals:ec})=>{if(eo===IX.Total){let eo=n0(eu).div(100).mul(ei).add(ea).round(ec,n$.Z.roundUp);return nX(eo)}let ed=n0(ei).sub(ea),ef=n0(eu).div(100).plus(1),eh=ed.div(ef),eg=n0(ei).sub(eh).round(ec,n$.Z.roundUp);return nX(eg)},ia=({mode:ei,isFiat:eo,inputAmount:ea,inputAmountType:eu,methodModel:ec,maxAmount:ed,minAmount:ef,staticOnly:eh,fundingDecimals:eg,fetchWithdrawalFees:em,logger:eb})=>{if(ei&&ec&&(0,nJ.$K)(eg)&&(0,nJ.$K)(eu)&&(0,nJ.$K)(ea))try{let ew=nX(ea),e_=eu===IX.Total,eS=n9({inputAmount:ew,inputAmountType:eu,percentageFeeFrom:n8({mode:ei,isFiat:eo}),methodModel:ec,fundingDecimals:eg});if((0,nJ.$K)(ew)&&((0,nJ.$K)(ed)&&ew>ed||(0,nJ.$K)(ef)&&ew({feeAmount:nX(ei.fee_amount),netAmount:nX(ei.net_amount),totalAmount:nX(ei.total_amount),feeDetails:{fee:nX(ei.fee_details.fee),feePercentage:nX(ei.fee_details.fee_percentage)},inputAmount:ea})).catch(ei=>(null==eb||eb.error(ei),eS))}return eS}catch(ei){null==eb||eb.error(ei);return}};var iu=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let ic={[IQ.Withdraw]:{MAX:Number.MAX_SAFE_INTEGER,MIN:"0.0000000001"},[IQ.Deposit]:{MAX:void 0,MIN:void 0}},ih="99999999.99999999",ip={minAmount:void 0,maxAmount:void 0,maxAmountPresets:void 0,maxPerTransaction:void 0},ig=({mode:ei,isFiat:eo,methodModel:ea,limits:eu,staticOnly:ec,fundingDecimals:ed,type:ef,fetchWithdrawalFees:eh,logger:eg})=>{var em,eb,ew,e_,eS,eE,eA,eT,ek;try{if(!ei||!ea)return ip;let eC=ea&&"limits"in ea?ea.limits:void 0,eO=ea&&"information"in ea?null===(eb=null===(em=ea.information)||void 0===em?void 0:em[0])||void 0===eb?void 0:eb.miscellaneous:void 0,eI=(0,nJ.sO)(eO,"depositLimits","deposit_limit"),eP=(0,nJ.sO)(eI,"maxPerDeposit","max_per_deposit"),eD=n3([ea&&"max_amount"in ea?nX(ea.max_amount):void 0,(null==eC?void 0:eC.maximum)?nX(null==eC?void 0:eC.maximum):void 0,eP]),eN=n5([ea&&"min_amount"in ea?nX(ea.min_amount):void 0,(null==eC?void 0:eC.minimum)?nX(null==eC?void 0:eC.minimum):void 0]),eM=n3([(0,nJ.HD)(null===(ew=null==eu?void 0:eu.limit)||void 0===ew?void 0:ew.limit)||(0,nJ.hj)(null===(e_=null==eu?void 0:eu.limit)||void 0===e_?void 0:e_.limit)?nX(null===(eS=null==eu?void 0:eu.limit)||void 0===eS?void 0:eS.limit):void 0,((0,nJ.HD)(null===(eE=null==eu?void 0:eu.limit)||void 0===eE?void 0:eE.maximum)||(0,nJ.hj)(null===(eA=null==eu?void 0:eu.limit)||void 0===eA?void 0:eA.maximum))&&((null===(eT=null==eu?void 0:eu.limit)||void 0===eT?void 0:eT.maximum)!==ih||ei===IQ.Withdraw)?nX(null===(ek=null==eu?void 0:eu.limit)||void 0===ek?void 0:ek.maximum):void 0]);(0===eP||0===eD||0===eM)&&(null==eg||eg.error(`Unexpected zero value in a max limits: ${JSON.stringify({maxPerTransaction:eP,maxAmountFromMethod:eD,maxAmountFromLimits:eM,methodModel:ea,limits:eu})}`));let ej=nX(n3([eM,eD,ic[ei].MAX])),eR=nX(n5([eN,nX(ic[ei].MIN)])),eL=iv(ej),eF={minAmount:eR,maxAmount:ej,maxAmountPresets:eL,maxPerTransaction:eP};if(ef===IX.Total)return{minAmount:eR,maxAmount:ej,maxAmountPresets:eL,maxPerTransaction:eP};return iy(eF,{mode:ei,isFiat:eo,methodModel:ea,staticOnly:ec,fundingDecimals:ed,fetchWithdrawalFees:eh,logger:eg})}catch(ei){return null==eg||eg.error(ei),ip}},iy=(ei,{mode:eo,isFiat:ea,methodModel:eu,staticOnly:ec,fundingDecimals:ed,fetchWithdrawalFees:ef,logger:eh})=>{var eg,em,eb;let ew=ei=>{let eg=ia({mode:eo,isFiat:ea,methodModel:eu,inputAmount:ei,inputAmountType:IX.Total,maxAmount:void 0,minAmount:void 0,staticOnly:ec,fundingDecimals:ed,fetchWithdrawalFees:ef,logger:eh});return(0,nJ.tI)(eg)?eg.then(ei=>null==ei?void 0:ei.netAmount):null==eg?void 0:eg.netAmount},e_={minAmount:ew(ei.minAmount),maxAmount:ew(ei.maxAmount),maxAmountPresets:{preset25:ew(null===(eg=ei.maxAmountPresets)||void 0===eg?void 0:eg.preset25),preset50:ew(null===(em=ei.maxAmountPresets)||void 0===em?void 0:em.preset50),preset75:ew(null===(eb=ei.maxAmountPresets)||void 0===eb?void 0:eb.preset75)},maxPerTransaction:ei.maxPerTransaction};return(0,nJ.tI)(e_.maxAmount)||(0,nJ.tI)(e_.minAmount)||(0,nJ.tI)(e_.maxAmountPresets.preset75)||(0,nJ.tI)(e_.maxAmountPresets.preset50)||(0,nJ.tI)(e_.maxAmountPresets.preset25)?iu(void 0,void 0,void 0,function*(){try{return{minAmount:yield e_.minAmount,maxAmount:yield e_.maxAmount,maxAmountPresets:{preset25:yield e_.maxAmountPresets.preset25,preset50:yield e_.maxAmountPresets.preset50,preset75:yield e_.maxAmountPresets.preset75},maxPerTransaction:e_.maxPerTransaction}}catch(ei){return null==eh||eh.error(ei),ip}}):{minAmount:e_.minAmount,maxAmount:e_.maxAmount,maxAmountPresets:{preset25:e_.maxAmountPresets.preset25,preset50:e_.maxAmountPresets.preset50,preset75:e_.maxAmountPresets.preset75},maxPerTransaction:e_.maxPerTransaction}},iv=ei=>{var eo,ea,eu;let ec=nX(null===(eo=n0(ei))||void 0===eo?void 0:eo.mul(.25)),ed=nX(null===(ea=n0(ei))||void 0===ea?void 0:ea.mul(.5)),ef=nX(null===(eu=n0(ei))||void 0===eu?void 0:eu.mul(.75));return{preset25:ec,preset50:ed,preset75:ef}},ib=({methodModel:ei,limits:eo,rateInUSD:ea})=>{var eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT,ek,eC,eO,eI,eP,eD,eN,eM,ej,eR;let eL=ei&&"information"in ei?null===(ec=null===(eu=ei.information)||void 0===eu?void 0:eu[0])||void 0===ec?void 0:ec.miscellaneous:void 0,eF=(0,nJ.sO)(eL,"depositLimits","deposit_limit"),eB=(0,nJ.sO)(null==eF?void 0:eF.rolling,"periodHours","period_hours")||void 0,eU=null!==(ef=null===(ed=null==eF?void 0:eF.rolling)||void 0===ed?void 0:ed.max)&&void 0!==ef?ef:void 0,eG=null!==(eg=null===(eh=null==eF?void 0:eF.rolling)||void 0===eh?void 0:eh.used)&&void 0!==eg?eg:void 0,eV=eU&&eB?{daily:24===eB?eU:void 0,weekly:168===eB?eU:void 0,monthly:720===eB?eU:void 0}:void 0,eH=eU&&eB&&(0,nJ.$K)(eG)?{daily:24===eB?eU-eG:void 0,weekly:168===eB?eU-eG:void 0,monthly:720===eB?eU-eG:void 0}:void 0,eW=eo?{daily:(0,nJ.hj)(null===(em=eo.limit)||void 0===em?void 0:em.daily)||(0,nJ.HD)(null===(eb=eo.limit)||void 0===eb?void 0:eb.daily)?nX(null===(ew=eo.limit)||void 0===ew?void 0:ew.daily):void 0,weekly:(0,nJ.hj)(null===(e_=eo.limit)||void 0===e_?void 0:e_.weekly)||(0,nJ.HD)(null===(eS=eo.limit)||void 0===eS?void 0:eS.weekly)?nX(null===(eE=eo.limit)||void 0===eE?void 0:eE.weekly):void 0,monthly:(0,nJ.hj)(null===(eA=eo.limit)||void 0===eA?void 0:eA.monthly)||(0,nJ.HD)(null===(eT=eo.limit)||void 0===eT?void 0:eT.monthly)?nX(null===(ek=eo.limit)||void 0===ek?void 0:ek.monthly):void 0}:void 0,eK=eo?{daily:(0,nJ.hj)(null===(eC=eo.used)||void 0===eC?void 0:eC.daily)||(0,nJ.HD)(null===(eO=eo.used)||void 0===eO?void 0:eO.daily)?nX(null===(eI=eo.used)||void 0===eI?void 0:eI.daily):void 0,weekly:(0,nJ.hj)(null===(eP=eo.used)||void 0===eP?void 0:eP.weekly)||(0,nJ.HD)(null===(eD=eo.used)||void 0===eD?void 0:eD.weekly)?nX(null===(eN=eo.used)||void 0===eN?void 0:eN.weekly):void 0,monthly:(0,nJ.hj)(null===(eM=eo.used)||void 0===eM?void 0:eM.monthly)||(0,nJ.HD)(null===(ej=eo.used)||void 0===ej?void 0:ej.monthly)?nX(null===(eR=eo.used)||void 0===eR?void 0:eR.monthly):void 0}:void 0,eY=eW&&eK?{daily:(0,nJ.hj)(eW.daily)&&(0,nJ.hj)(eK.daily)?nX(n0(eW.daily).minus(eK.daily)):void 0,weekly:(0,nJ.hj)(eW.weekly)&&(0,nJ.hj)(eK.weekly)?nX(n0(eW.weekly).minus(eK.weekly)):void 0,monthly:(0,nJ.hj)(eW.monthly)&&(0,nJ.hj)(eK.monthly)?nX(n0(eW.monthly).minus(eK.monthly)):void 0}:void 0,eZ=eW&&(0,nJ.hj)(ea)?{daily:(0,nJ.hj)(eW.daily)?nX(n0(eW.daily).div(ea)):void 0,weekly:(0,nJ.hj)(eW.weekly)?nX(n0(eW.weekly).div(ea)):void 0,monthly:(0,nJ.hj)(eW.monthly)?nX(n0(eW.monthly).div(ea)):void 0}:void 0,e$=eY&&(0,nJ.hj)(ea)?{daily:(0,nJ.hj)(eY.daily)?nX(n0(eY.daily).div(ea)):void 0,weekly:(0,nJ.hj)(eY.weekly)?nX(n0(eY.weekly).div(ea)):void 0,monthly:(0,nJ.hj)(eY.monthly)?nX(n0(eY.monthly).div(ea)):void 0}:void 0,eJ=eV||eZ?{daily:n3([null==eV?void 0:eV.daily,null==eZ?void 0:eZ.daily]),weekly:n3([null==eV?void 0:eV.weekly,null==eZ?void 0:eZ.weekly]),monthly:n3([null==eV?void 0:eV.monthly,null==eZ?void 0:eZ.monthly])}:void 0,eQ=eJ||eH||e$?{daily:n3([null==eJ?void 0:eJ.daily,null==eH?void 0:eH.daily,null==e$?void 0:e$.daily]),weekly:n3([null==eJ?void 0:eJ.weekly,null==eH?void 0:eH.weekly,null==e$?void 0:e$.weekly]),monthly:n3([null==eJ?void 0:eJ.monthly,null==eH?void 0:eH.monthly,null==e$?void 0:e$.monthly])}:void 0;return{maxRolling:eJ,remainingRolling:eQ}},iw=({mode:ei,isFiat:eo,type:ea,methodModel:eu,limits:ec,staticOnly:ed,rateInUSD:ef,fundingDecimals:eh,fetchWithdrawalFees:eg,logger:em})=>{try{if(!ei||!eu||!(0,nJ.$K)(eo)||!(0,nJ.$K)(ef)||!(0,nJ.$K)(ea)||!(0,nJ.$K)(eh))return;let eb=ig({mode:ei,isFiat:eo,type:ea,methodModel:eu,limits:ec,staticOnly:ed,fundingDecimals:eh,fetchWithdrawalFees:eg,logger:em}),ew=ib({methodModel:eu,limits:ec,rateInUSD:ef});if(!(0,nJ.tI)(eb)){let ei=Object.assign(Object.assign(Object.assign({},ew),eb),{type:ea});return ei}return Promise.resolve(eb).then(ei=>{let eo=Object.assign(Object.assign(Object.assign({},ew),ei),{type:ea});return eo}).catch(ei=>{null==em||em.error(ei)})}catch(ei){null==em||em.error(ei);return}},i_="https://support.kraken.com/hc/articles/",iS=ei=>ei?`${i_}${ei}`:void 0,iE=/\bEtana Custody\b/,iA=/\bSWIFT\b/,iT=/\(SEN\)/,iC=/^Fidor Bank AG \(Wire Transfer\)$/,iO=/^Plaid/i,iI=/^PayPal/i,iP=/^Interac E-Transfer/i,iD=/\(domestic\)/i,iN=/\(international\)/i,iM=[iE],ij=[iD],iR=[iA,iC,iN],iL=[...iR,iT,iO],iF=[iO,iI,iP],iB=({method:ei,isFiat:eo})=>eo&&ei?iU(ei)?iG(ei)?I3.direct:iV(ei)?I3.domestic:iq(ei)?I3.international:I3.other:I3.other:void 0,iU=ei=>!iM.some(eo=>eo.test(ei)),iG=ei=>iF.some(eo=>eo.test(ei)),iV=ei=>!iL.some(eo=>eo.test(ei))||ij.some(eo=>eo.test(ei)),iq=ei=>iR.some(eo=>eo.test(ei)),iH={deposit:{ETH:{"Ethereum (Polygon)":{warnings:[I0.DEPOSIT_MAIN_WARNING,I0.DEPOSIT_WARNING_NETWORK_IS_ETH_ON_POLYGON]},"zkSync Era":{acknowledgment:I1.ETH_ON_ZK_SYNC}},USDC:{"Arbitrum One Network - Native":{warnings:[I0.DEPOSIT_WARNING_NETWORK_IS_USDC_ON_ARBITRUM]}},XLM:{"Stellar XLM":{addressHasMemo:!0,warnings:[I0.DEPOSIT_MAIN_WARNING,I0.DEPOSIT_WARNING_NETWORK_WITH_MEMO]}},EOS:{EOS:{addressHasMemo:!0,warnings:[I0.DEPOSIT_MAIN_WARNING,I0.DEPOSIT_WARNING_NETWORK_WITH_MEMO]}},STX:{Stacks:{addressHasMemo:!0,warnings:[I0.DEPOSIT_MAIN_WARNING,I0.DEPOSIT_WARNING_NETWORK_WITH_MEMO]}},XRP:{"Ripple XRP":{addressHasTag:!0,warnings:[I0.DEPOSIT_MAIN_WARNING,I0.DEPOSIT_WARNING_NETWORK_WITH_TAG]}},"*":{"*":{warnings:[I0.DEPOSIT_MAIN_WARNING]}}},withdraw:{USD:{"ACH (Plaid Transfer, via Plaid)":{displayName:"Plaid US"}},ETH:{"Ethereum (Polygon)":{warnings:[I0.WITHDRAW_MAIN_WARNING,I0.WITHDRAW_WARNING_NETWORK_IS_ETH_ON_POLYGON]}},XLM:{"Stellar XLM":{addressHasMemo:!0}},EOS:{EOS:{addressHasMemo:!0}},STX:{Stacks:{addressHasMemo:!0}},XRP:{"Ripple XRP":{addressHasTag:!0}},"*":{"*":{warnings:[I0.WITHDRAW_MAIN_WARNING]}}}},iW=(ei,{mode:eo,asset:ea,method:eu})=>{var ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT,ek,eC,eO,eI,eP,eD,eN,eM,ej,eR,eL,eF,eB;let eU=nB,eG=null===(ed=null===(ec=null==ei?void 0:ei[nF])||void 0===ec?void 0:ec[ea])||void 0===ed?void 0:ed[eu],eV=null===(eh=null===(ef=null==ei?void 0:ei[eU])||void 0===ef?void 0:ef[ea])||void 0===eh?void 0:eh[eu],eH=null===(em=null===(eg=null==ei?void 0:ei[nF])||void 0===eg?void 0:eg[nF])||void 0===em?void 0:em[eu],eW=null===(ew=null===(eb=null==ei?void 0:ei[eU])||void 0===eb?void 0:eb[eU])||void 0===ew?void 0:ew[eu],eK=null===(eS=null===(e_=null==ei?void 0:ei[nF])||void 0===e_?void 0:e_[ea])||void 0===eS?void 0:eS[nF],eY=null===(eA=null===(eE=null==ei?void 0:ei[eU])||void 0===eE?void 0:eE[ea])||void 0===eA?void 0:eA[eU],eZ=null===(ek=null===(eT=null==ei?void 0:ei[eo])||void 0===eT?void 0:eT[nF])||void 0===ek?void 0:ek[eu],e$=null===(eO=null===(eC=null==ei?void 0:ei[eo])||void 0===eC?void 0:eC[eU])||void 0===eO?void 0:eO[eu],eJ=null===(eP=null===(eI=null==ei?void 0:ei[eo])||void 0===eI?void 0:eI[nF])||void 0===eP?void 0:eP[nF],eQ=null===(eN=null===(eD=null==ei?void 0:ei[eo])||void 0===eD?void 0:eD[eU])||void 0===eN?void 0:eN[eU],eX=null===(ej=null===(eM=null==ei?void 0:ei[eo])||void 0===eM?void 0:eM[ea])||void 0===ej?void 0:ej[nF],e0=null===(eL=null===(eR=null==ei?void 0:ei[eo])||void 0===eR?void 0:eR[ea])||void 0===eL?void 0:eL[eU],e3=null===(eB=null===(eF=null==ei?void 0:ei[eo])||void 0===eF?void 0:eF[ea])||void 0===eB?void 0:eB[eu],e5={},e4=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},null!=eG?eG:e5),null!=eV?eV:e5),null!=eH?eH:e5),null!=eW?eW:e5),null!=eK?eK:e5),null!=eY?eY:e5),null!=eZ?eZ:e5),null!=e$?e$:e5),null!=eJ?eJ:e5),null!=eQ?eQ:e5),null!=eX?eX:e5),null!=e0?e0:e5),null!=e3?e3:e5);return e4},iK=ei=>{var eo;return null!==(eo=nW[ei])&&void 0!==eo?eo:ei},iZ=(ei,{mode:eo,asset:ea,method:eu})=>{let ec=ea&&iK(ea),ed=eo&&ec&&eu&&ei?iW(ei,{mode:eo,asset:ec,method:eu}):void 0,ef=eo&&ec&&eu?iW(iH,{mode:eo,asset:ec,method:eu}):void 0;return Object.assign(Object.assign({},ef),null!=ed?ed:nH)},i$=({methodModel:ei,t:eo})=>{let ea=ei.asset,eu=n4(ei),ec=eu.hasAnyFees?eu.feeFixed&&eu.feePercentage?eo(I2.FEE_X_ASSET_PLUS_Y_PERCENTAGE,{asset:ea,feeFixed:eu.feeFixed,feePercentage:eu.feePercentage}):eu.feePercentage?eo(I2.FEE_X_PERCENTAGE,{feePercentage:eu.feePercentage}):eo(I2.FEE_X_ASSET,{asset:ea,feeFixed:eu.feeFixed}):eo(I2.FEE_NO_FEE);return ec},iJ=ei=>!!ei&&("deposit_network_info"in ei||"type_id"in ei&&!("type_name"in ei)),iQ=ei=>{var eo;return null!==(eo=iJ(ei)?ei.deposit_network_info:ei.withdrawal_network_info)&&void 0!==eo?eo:void 0},i0=RegExp("^([~<]*)(.*)$"),i6=RegExp("^([0-9]+)BDay$","i"),i8="\\d+",i9=`${i8}(?:[\\.,]${i8})?`,i7=`(${i8}Y)?(${i8}M)?(${i8}W)?(${i8}D)?`,oi=`T(${i9}H)?(${i9}M)?(${i9}S)?`,oo=`^P(?:${i7}(?:${oi})?)$`,oa=new RegExp(oo),ol=ei=>"instant"===ei.toLowerCase(),ou=ei=>parseInt(`${ei}`)===ei,oc=ei=>{var eo;if(!ei)return;let ea=RegExp(`^${i9}$`),[eu]=null!==(eo=ea.exec(ei))&&void 0!==eo?eo:[];return void 0!==eu?Number(eu):eu},od=ei=>{let eo=oc(ei);if(void 0===eo)return;let ea=eo/60,eu=ea/24;return eo<60||!ou(ea)?{amount:eo,unit:"minutes"}:ea<24||!ou(eu)?{amount:ea,unit:"hours"}:{amount:eu,unit:"days"}},oh=ei=>{var eo;let[,ea,eu]=null!==(eo=i0.exec(ei))&&void 0!==eo?eo:[];if(ol(eu))return{prefix:ea,instant:!0};let ec=od(eu);if(ec)return Object.assign({prefix:ea},ec);let ed=i6.exec(eu);if(ed){let[,ei]=ed;return{prefix:ea,amount:Number(ei),unit:"business days"}}let ef=og(eu),eh=Object.entries(ef).find(([,ei])=>void 0!==ei);if(eh){let[ei,eo]=eh;return{prefix:ea,amount:eo,unit:ei}}},og=ei=>{var eo,ea,eu,ec,ed,ef,eh;let eg=null!==(eo=oa.exec(ei))&&void 0!==eo?eo:[],em={years:oc(null===(ea=eg[1])||void 0===ea?void 0:ea.slice(0,-1)),months:oc(null===(eu=eg[2])||void 0===eu?void 0:eu.slice(0,-1)),days:oc(null===(ec=eg[4])||void 0===ec?void 0:ec.slice(0,-1)),hours:oc(null===(ed=eg[5])||void 0===ed?void 0:ed.slice(0,-1)),minutes:oc(null===(ef=eg[6])||void 0===ef?void 0:ef.slice(0,-1)),seconds:oc(null===(eh=eg[7])||void 0===eh?void 0:eh.slice(0,-1))};return em},om={years:I2.PROCESSING_TIME_X_YEARS,months:I2.PROCESSING_TIME_X_MONTHS,days:I2.PROCESSING_TIME_X_DAYS,"business days":I2.PROCESSING_TIME_X_BUSINESS_DAYS,hours:I2.PROCESSING_TIME_X_HOURS,minutes:I2.PROCESSING_TIME_X_MINUTES,seconds:I2.PROCESSING_TIME_X_SECONDS},ov=(ei,eo)=>{let ea=ei.prefix?`${ei.prefix} `:"";if(ei.instant)return`${ea}${eo(I2.PROCESSING_TIME_INSTANT)}`;let eu=eo(om[ei.unit],{amount:ei.amount});return`${ea}${eu}`},ow=(ei,eo)=>{if(!ei)return;let[ea,eu]=ei.split("-"),ec=oh(ea);if(!ec)return ei;let ed=oh(eu);return ed?ec.instant||ed.instant||ec.unit!==ed.unit?`${ov(ec,eo)} - ${ov(ed,eo)}`:ov(Object.assign(Object.assign({},ec),{amount:`${ec.amount}-${ed.amount}`}),eo):ov(ec,eo)},o_=({mode:ei,asset:eo,isFiat:ea,methodModel:eu,methodConfig:ec,calculatedLimits:ed,translateFn:ef})=>{var eh,eg,em,eb,ew;if(!eu)return{displayName:"",warningsText:void 0,acknowledgmentText:void 0,tags:void 0,tagsArr:[]};let e_=null!==(em=null!==(eg=null!==(eh=ec.displayName)&&void 0!==eh?eh:eu.name_display)&&void 0!==eg?eg:eu.name)&&void 0!==em?em:"",{warnings:eS,acknowledgment:eE}=ec,eA=i$({methodModel:eu,t:ef}),eT=null===(eb=iQ(eu))||void 0===eb?void 0:eb.confirmation_time,ek=null!==(ew=null==ec?void 0:ec.processingTime)&&void 0!==ew?ew:eT,eC=ow(ek,ef),{minAmount:eO,maxAmount:eI,maxRolling:eP}=null!=ed?ed:{},eD=void 0!==eO?ef(I2.LIMIT_X_ASSET_MINIMUM,{amount:eO}):void 0,eN=void 0!==eI?ef(I2.LIMIT_UP_TO_X_ASSET,{amount:eI}):void 0,eM=(null==eP?void 0:eP.daily)!==void 0?ef(I2.LIMIT_UP_TO_X_ASSET_DAILY,{asset:eo,amount:eP.daily}):(null==eP?void 0:eP.weekly)!==void 0?ef(I2.LIMIT_UP_TO_X_ASSET_WEEKLY,{asset:eo,amount:eP.weekly}):(null==eP?void 0:eP.monthly)!==void 0?ef(I2.LIMIT_UP_TO_X_ASSET_MONTHLY,{asset:eo,amount:eP.monthly}):void 0,ej=null==eS?void 0:eS.map(ei=>ef(ei,{asset:eo})).filter(nJ.$K),eR=eE?ef(eE):void 0,eL={feeText:eA,processingTimeText:eC,minAmountText:eD,maxAmountText:eN,maxRollingText:eM},eF=[ei===IQ.Deposit&&ea?eC:void 0,eA,eD].filter(nJ.$K);return{displayName:e_,warningsText:ej,acknowledgmentText:eR,tags:eL,tagsArr:eF}},oS=({mode:ei,methodModel:eo,assetInfo:ea,assetRateInUSD:eu,limits:ec,featureFlags:ed,translateFn:ef,staticLimitsOnly:eh,logger:eg})=>{let em=eo.name,eb=eo.asset,ew=eo.name,e_=null==ea?void 0:ea.isFiat,eS=null==ea?void 0:ea.fundingDecimals,eE=null==eu?void 0:eu.rate,eA=n6({mode:ei,isFiat:e_,feeIncluded:void 0}),eT=n4(eo),ek=iw({mode:ei,isFiat:e_,type:eA,methodModel:eo,limits:ec,rateInUSD:eE,fundingDecimals:eS,staticOnly:eh,fetchWithdrawalFees:void 0,logger:eg}),eC=iZ(ed.fundingMethodsConfig,{mode:ei,asset:eb,method:em}),eO=o_({mode:ei,asset:eb,methodModel:eo,methodConfig:eC,isFiat:e_,calculatedLimits:ek,translateFn:ef}),eI=iB({method:em,isFiat:e_}),eP=iS(eC.supportArticleID);return{mode:ei,asset:eb,name:ew,config:eC,calculatedLimits:ek,fees:eT,category:eI,supportArticleURL:eP,inputAmountType:eA,texts:eO,models:{method:eo,assetInfo:ea,limits:ec,assetRateInUSD:eu},displayName:eO.displayName,maxAmount:null==ek?void 0:ek.maxAmount,minAmount:null==ek?void 0:ek.minAmount}};var oE=ea(89866);class oA extends tA.l{constructor(ei,eo){super(),this.client=ei,this.options=eo,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(eo)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),oC(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return oI(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return oI(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(ei,eo){let ea=this.options,eu=this.currentQuery;if(this.options=this.client.defaultQueryOptions(ei),(0,tm.VS)(ea,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=ea.queryKey),this.updateQuery();let ec=this.hasListeners();ec&&oP(this.currentQuery,eu,this.options,ea)&&this.executeFetch(),this.updateResult(eo),ec&&(this.currentQuery!==eu||this.options.enabled!==ea.enabled||this.options.staleTime!==ea.staleTime)&&this.updateStaleTimeout();let ed=this.computeRefetchInterval();ec&&(this.currentQuery!==eu||this.options.enabled!==ea.enabled||ed!==this.currentRefetchInterval)&&this.updateRefetchInterval(ed)}getOptimisticResult(ei){let eo=this.client.getQueryCache().build(this.client,ei),ea=this.createResult(eo,ei);return oN(this,ea,ei)&&(this.currentResult=ea,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),ea}getCurrentResult(){return this.currentResult}trackResult(ei){let eo={};return Object.keys(ei).forEach(ea=>{Object.defineProperty(eo,ea,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(ea),ei[ea])})}),eo}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:ei,...eo}={}){return this.fetch({...eo,meta:{refetchPage:ei}})}fetchOptimistic(ei){let eo=this.client.defaultQueryOptions(ei),ea=this.client.getQueryCache().build(this.client,eo);return ea.isFetchingOptimistic=!0,ea.fetch().then(()=>this.createResult(ea,eo))}fetch(ei){var eo;return this.executeFetch({...ei,cancelRefetch:null==(eo=ei.cancelRefetch)||eo}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(ei){this.updateQuery();let eo=this.currentQuery.fetch(this.options,ei);return null!=ei&&ei.throwOnError||(eo=eo.catch(tm.ZT)),eo}updateStaleTimeout(){if(this.clearStaleTimeout(),tm.sk||this.currentResult.isStale||!(0,tm.PN)(this.options.staleTime))return;let ei=(0,tm.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime),eo=ei+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},eo)}computeRefetchInterval(){var ei;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(ei=this.options.refetchInterval)&&ei}updateRefetchInterval(ei){this.clearRefetchInterval(),this.currentRefetchInterval=ei,!tm.sk&&!1!==this.options.enabled&&(0,tm.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||tO.j.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(ei,eo){let ea;let eu=this.currentQuery,ec=this.options,ed=this.currentResult,ef=this.currentResultState,eh=this.currentResultOptions,eg=ei!==eu,em=eg?ei.state:this.currentQueryInitialState,eb=eg?this.currentResult:this.previousQueryResult,{state:ew}=ei,{dataUpdatedAt:e_,error:eS,errorUpdatedAt:eE,fetchStatus:eA,status:eT}=ew,ek=!1,eC=!1;if(eo._optimisticResults){let ea=this.hasListeners(),ed=!ea&&oC(ei,eo),ef=ea&&oP(ei,eu,eo,ec);(ed||ef)&&(eA=(0,tw.Kw)(ei.options.networkMode)?"fetching":"paused",e_||(eT="loading")),"isRestoring"===eo._optimisticResults&&(eA="idle")}if(eo.keepPreviousData&&!ew.dataUpdatedAt&&null!=eb&&eb.isSuccess&&"error"!==eT)ea=eb.data,e_=eb.dataUpdatedAt,eT=eb.status,ek=!0;else if(eo.select&&void 0!==ew.data){if(ed&&ew.data===(null==ef?void 0:ef.data)&&eo.select===this.selectFn)ea=this.selectResult;else try{this.selectFn=eo.select,ea=eo.select(ew.data),ea=(0,tm.oE)(null==ed?void 0:ed.data,ea,eo),this.selectResult=ea,this.selectError=null}catch(ei){this.selectError=ei}}else ea=ew.data;if(void 0!==eo.placeholderData&&void 0===ea&&"loading"===eT){let ei;if(null!=ed&&ed.isPlaceholderData&&eo.placeholderData===(null==eh?void 0:eh.placeholderData))ei=ed.data;else if(ei="function"==typeof eo.placeholderData?eo.placeholderData():eo.placeholderData,eo.select&&void 0!==ei)try{ei=eo.select(ei),this.selectError=null}catch(ei){this.selectError=ei}void 0!==ei&&(eT="success",ea=(0,tm.oE)(null==ed?void 0:ed.data,ei,eo),eC=!0)}this.selectError&&(eS=this.selectError,ea=this.selectResult,eE=Date.now(),eT="error");let eO="fetching"===eA,eI="loading"===eT,eP="error"===eT,eD={status:eT,fetchStatus:eA,isLoading:eI,isSuccess:"success"===eT,isError:eP,isInitialLoading:eI&&eO,data:ea,dataUpdatedAt:e_,error:eS,errorUpdatedAt:eE,failureCount:ew.fetchFailureCount,failureReason:ew.fetchFailureReason,errorUpdateCount:ew.errorUpdateCount,isFetched:ew.dataUpdateCount>0||ew.errorUpdateCount>0,isFetchedAfterMount:ew.dataUpdateCount>em.dataUpdateCount||ew.errorUpdateCount>em.errorUpdateCount,isFetching:eO,isRefetching:eO&&!eI,isLoadingError:eP&&0===ew.dataUpdatedAt,isPaused:"paused"===eA,isPlaceholderData:eC,isPreviousData:ek,isRefetchError:eP&&0!==ew.dataUpdatedAt,isStale:oD(ei,eo),refetch:this.refetch,remove:this.remove};return eD}updateResult(ei){let eo=this.currentResult,ea=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,tm.VS)(ea,eo))return;this.currentResult=ea;let eu={cache:!0},ec=()=>{if(!eo)return!0;let{notifyOnChangeProps:ei}=this.options,ea="function"==typeof ei?ei():ei;if("all"===ea||!ea&&!this.trackedProps.size)return!0;let eu=new Set(null!=ea?ea:this.trackedProps);return this.options.useErrorBoundary&&eu.add("error"),Object.keys(this.currentResult).some(ei=>{let ea=ei,ec=this.currentResult[ea]!==eo[ea];return ec&&eu.has(ea)})};(null==ei?void 0:ei.listeners)!==!1&&ec()&&(eu.listeners=!0),this.notify({...eu,...ei})}updateQuery(){let ei=this.client.getQueryCache().build(this.client,this.options);if(ei===this.currentQuery)return;let eo=this.currentQuery;this.currentQuery=ei,this.currentQueryInitialState=ei.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==eo||eo.removeObserver(this),ei.addObserver(this))}onQueryUpdate(ei){let eo={};"success"===ei.type?eo.onSuccess=!ei.manual:"error"!==ei.type||(0,tw.DV)(ei.error)||(eo.onError=!0),this.updateResult(eo),this.hasListeners()&&this.updateTimers()}notify(ei){tb.V.batch(()=>{var eo,ea,eu,ec,ed,ef,eh,eg;ei.onSuccess?(null==(eo=(ea=this.options).onSuccess)||eo.call(ea,this.currentResult.data),null==(eu=(ec=this.options).onSettled)||eu.call(ec,this.currentResult.data,null)):ei.onError&&(null==(ed=(ef=this.options).onError)||ed.call(ef,this.currentResult.error),null==(eh=(eg=this.options).onSettled)||eh.call(eg,void 0,this.currentResult.error)),ei.listeners&&this.listeners.forEach(({listener:ei})=>{ei(this.currentResult)}),ei.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function oT(ei,eo){return!1!==eo.enabled&&!ei.state.dataUpdatedAt&&!("error"===ei.state.status&&!1===eo.retryOnMount)}function oC(ei,eo){return oT(ei,eo)||ei.state.dataUpdatedAt>0&&oI(ei,eo,eo.refetchOnMount)}function oI(ei,eo,ea){if(!1!==eo.enabled){let eu="function"==typeof ea?ea(ei):ea;return"always"===eu||!1!==eu&&oD(ei,eo)}return!1}function oP(ei,eo,ea,eu){return!1!==ea.enabled&&(ei!==eo||!1===eu.enabled)&&(!ea.suspense||"error"!==ei.state.status)&&oD(ei,ea)}function oD(ei,eo){return ei.isStaleByTime(eo.staleTime)}function oN(ei,eo,ea){return!ea.keepPreviousData&&(void 0!==ea.placeholderData?eo.isPlaceholderData:!(0,tm.VS)(ei.getCurrentResult(),eo))}let oM=ei=>{let eo=(0,eb.useRef)(ei);eo.current=ei,(0,eb.useEffect)(()=>()=>eo.current(),[])},oj=(ei,eo)=>ei&&eo?Object.assign(Object.assign({},ei),{data:eo(ei.data)}):ei,oR=(ei,eo,ea)=>{let eu=new rV.X(oj(eo,ea));return ei.subscribe(ei=>{eu.next(oj(ei,ea))}),eu},oL={meta:{metaHealth:({query:ei}={})=>["GET","meta","health",ei],initialData:({query:ei}={})=>["GET","meta",ei],getOnboardingMetadata:({query:ei}={})=>["GET","meta","onboarding",ei]},events:{eventsWebSockets:({query:ei}={})=>["GET","events","ws",ei]},csrf:{getCsrfToken:({contextId:ei,query:eo})=>["GET","csrf",`${ei}`,eo]},pow:{getPowChallenge:({query:ei}={})=>["GET","pow",ei]},session:{initSession:({query:ei}={})=>["GET","session",ei],login:({payload:ei}={})=>["POST","session",ei],logout:()=>["DELETE","session"],getTradeApiSession:({query:ei}={})=>["GET","session","trade",ei],getTradeWebSocketsToken:({query:ei}={})=>["GET","session","trade-websocket",ei],sessionActivity:()=>["POST","session","activity"],sessionExpiration:({query:ei}={})=>["GET","session","expiration",ei],getFuturesApiSession:({query:ei}={})=>["GET","session","futures",ei]},account:{activateAccount:({payload:ei}={})=>["PUT","account",ei],createAccount:({payload:ei}={})=>["POST","account",ei],createAccountCancel:()=>["DELETE","account"],resetPassword:({payload:ei}={})=>["PUT","account","password","reset",ei],beginResetPassword:({payload:ei}={})=>["POST","account","password","reset",ei],changePassword:({payload:ei}={})=>["PUT","account","password",ei],getUserDeclaration:({query:ei}={})=>["GET","account","declaration",ei],createUserDeclaration:({payload:ei}={})=>["POST","account","declaration",ei],getAccountSecretKeyInfo:({payload:ei}={})=>["POST","account","tfa","master",ei],getAccountStatus:({query:ei}={})=>["GET","account","status",ei],getUsernameByEmail:({payload:ei}={})=>["POST","account","username-by-email",ei],getVendorId:({query:ei}={})=>["GET","account","vendor","id",ei],readSettings:({query:ei}={})=>["GET","account","settings",ei],updateSettings:({payload:ei}={})=>["PUT","account","settings",ei],removeSettingsLock:({payload:ei}={})=>["POST","account","settings","unlock",ei],updateSettingsLock:({payload:ei}={})=>["POST","account","settings","lock",ei],bypassTwoFactor:({payload:ei}={})=>["POST","account","tfa","bypass",ei],getTfaUsernamePassword:({payload:ei}={})=>["POST","account","settings","tfa",ei],cancelTfa:()=>["DELETE","account","settings","tfa"],getAccountTfa:({id:ei,query:eo})=>["GET","account","settings","tfa","account",`${ei}`,eo],confirmAccountTfa:({id:ei,payload:eo})=>["PUT","account","settings","tfa","account",`${ei}`,eo],createAccountTfa:({id:ei,payload:eo})=>["POST","account","settings","tfa","account",`${ei}`,eo],deleteAccountTfa:({id:ei,payload:eo})=>["DELETE","account","settings","tfa","account",`${ei}`,eo],getApiTfa:({id:ei,query:eo})=>["GET","account","settings","tfa","api",`${ei}`,eo],confirmApiTfa:({id:ei,payload:eo})=>["PUT","account","settings","tfa","api",`${ei}`,eo],createApiTfa:({id:ei,payload:eo})=>["POST","account","settings","tfa","api",`${ei}`,eo],deleteApiTfa:({id:ei})=>["DELETE","account","settings","tfa","api",`${ei}`],getTwoFactorConfigurations:({variant:ei,query:eo})=>["GET","account","settings","mfa",`${ei}`,eo],createTwoFactorConfiguration:({variant:ei,payload:eo})=>["POST","account","settings","mfa",`${ei}`,eo],resetPasswordCheck:({payload:ei}={})=>["POST","account","password","reset","check",ei],listTwoFactorConfigurations:({query:ei}={})=>["GET","account","settings","mfa",ei],removeTwoFactorConfiguration:({id:ei,variant:eo,payload:ea})=>["DELETE","account","settings","mfa",`${eo}`,`${ei}`,ea],updateTwoFactorConfiguration:({id:ei,variant:eo,payload:ea})=>["PATCH","account","settings","mfa",`${eo}`,`${ei}`,ea],updateEmail:({payload:ei}={})=>["PUT","account","settings","email",ei],updateEmailConfirm:({payload:ei}={})=>["PUT","account","settings","email","confirm",ei],updateEmailResend:()=>["POST","account","settings","email","confirm"],updateEmailCancel:()=>["DELETE","account","settings","email","confirm"],createStepUpToken:({scope:ei,payload:eo})=>["POST","account","step-up",`${ei}`,eo],autofillProfilePlaid:({payload:ei}={})=>["POST","account","profile","autofill","plaid",ei],getAu10TixToken:({query:ei}={})=>["GET","account","au10tix-token",ei],getTermsOfService:({query:ei}={})=>["GET","account","settings","tos",ei],updateTermsOfService:({payload:ei}={})=>["PUT","account","settings","tos",ei],readProfile:({query:ei}={})=>["GET","account","profile",ei],updateProfile:({payload:ei}={})=>["PUT","account","profile",ei],convertToCorporate:()=>["POST","account","profile","convert-to-corporate"],readTier4Individual:({query:ei}={})=>["GET","account","profile","tier4-individual",ei],completeTier4Individual:({payload:ei}={})=>["POST","account","profile","tier4-individual",ei],readTier4Corporate:({query:ei}={})=>["GET","account","profile","tier4-corporate",ei],completeTier4Corporate:({payload:ei}={})=>["POST","account","profile","tier4-corporate",ei],wipTier4Corporate:({payload:ei}={})=>["PATCH","account","profile","tier4-corporate",ei],getVendorAccountStatus:({query:ei}={})=>["GET","account","vendor","status",ei],registerVendorAccount:({payload:ei}={})=>["POST","account","vendor","register",ei],getAccountBalance:({query:ei}={})=>["GET","account","balance",ei],getAccountBalanceV2:({query:ei}={})=>["GET","account","v2","balance",ei],getHistoricalAccountBalances:({query:ei}={})=>["GET","account","balance","history",ei]},challenge:{createTfaChallenge:({id:ei})=>["POST","challenge","tfa","account",`${ei}`]},contactLists:{listContactsInAddressBook:({list:ei,query:eo})=>["GET","contact-lists",`${ei}`,"contacts",eo],addContactToAddressBook:({list:ei,payload:eo})=>["POST","contact-lists",`${ei}`,"contacts",eo],getContactFromAddressBook:({identifier:ei,list:eo,query:ea})=>["GET","contact-lists",`${eo}`,"contacts",`${ei}`,ea],removeContactFromAddressBook:({identifier:ei,list:eo})=>["DELETE","contact-lists",`${eo}`,"contacts",`${ei}`]},credentials:{listCredentials:({query:ei}={})=>["GET","credentials",ei],createCredentials:({payload:ei}={})=>["POST","credentials",ei],readCredentials:({apiKeyName:ei,query:eo})=>["GET","credentials",`${ei}`,eo],updateCredentials:({apiKeyName:ei,payload:eo})=>["PUT","credentials",`${ei}`,eo],deleteCredentials:({apiKeyName:ei})=>["DELETE","credentials",`${ei}`]},devices:{listApprovedDevices:({query:ei}={})=>["GET","devices","approved",ei],approveDevice:({payload:ei}={})=>["POST","devices","approved",ei],checkDeviceApproval:({payload:ei}={})=>["POST","devices","check",ei],resendApproveDeviceEmail:({payload:ei}={})=>["POST","devices","approved","resend",ei],revokeAllDevices:()=>["DELETE","devices"],revokeDevice:({id:ei})=>["DELETE","devices",`${ei}`]},preferences:{getPreferences:({query:ei}={})=>["GET","preferences",ei],updatePreferences:({payload:ei}={})=>["PUT","preferences",ei],deletePreferences:()=>["DELETE","preferences"]},sessions:{listSessions:({query:ei}={})=>["GET","sessions",ei],deleteAllSessions:()=>["DELETE","sessions"],deleteSession:({id:ei})=>["DELETE","sessions",`${ei}`]},slid:{getSlid:({query:ei}={})=>["GET","slid",ei]},domains:{accountTransfer:({payload:ei}={})=>["POST","domains","transfer",ei],listSubaccounts:({query:ei}={})=>["GET","domains","accounts",ei],createSubaccount:({payload:ei}={})=>["POST","domains","accounts",ei]},users:{getUserToken:({payload:ei}={})=>["POST","users","token",ei]},zendesk:{getZendeskJwt:({query:ei}={})=>["GET","zendesk","jwt",ei],openZendeskRequest:({payload:ei}={})=>["POST","zendesk","request",ei]},basel:{getBaselRisk:({region:ei,query:eo})=>["GET","basel",`${ei}`,eo]},documents:{deleteDocument:({id:ei})=>["DELETE","documents",`${ei}`],getDocuments:({query:ei}={})=>["GET","documents",ei],uploadDocument:({payload:ei}={})=>["POST","documents",ei]},kyc:{startDocumentVerification:({payload:ei}={})=>["POST","kyc","start_document_verification",ei],submitKycFlowData:({id:ei,payload:eo})=>["PATCH","kyc","flows",`${ei}`,eo],getKycFlows:({query:ei}={})=>["GET","kyc","flows",ei]},locale:{getCountryInfo:({countryCode:ei,query:eo})=>["GET","locale",`${ei}`,eo],getCountryInfoV2:({countryCode:ei,query:eo})=>["GET","locale","v2",`${ei}`,eo]},thirdParty:{getAddressAutocomplete:({query:ei}={})=>["GET","third-party","address-autocomplete",ei],getAddressDetail:({query:ei}={})=>["GET","third-party","address-detail",ei],getAddressPredictions:({query:ei}={})=>["GET","third-party","address-predictions",ei],getPlaidToken:({query:ei}={})=>["GET","third-party","plaid-token",ei]},staking:{getStakingAssetInfo:({query:ei}={})=>["GET","staking","assets",ei],getStakingAssetInfoPub:({query:ei}={})=>["GET","staking","assets-pub",ei],getStakingBalances:({query:ei}={})=>["GET","staking","balances",ei],getStakingPendingDeposits:({query:ei}={})=>["GET","staking","pending",ei],getStakingLedger:({query:ei}={})=>["GET","staking","transactions",ei]},audits:{listBalanceAudits:({query:ei}={})=>["GET","audits",ei],auditProof:({auditId:ei,leaf:eo,query:ea})=>["GET","audits",`${ei}`,"proof",`${eo}`,ea]},bridge:{approveBridge:({payload:ei}={})=>["POST","bridge","approve",ei]},deposits:{getDepositAddresses:({query:ei}={})=>["GET","deposits","addresses",ei],createDepositAddress:({payload:ei}={})=>["POST","deposits","addresses",ei],encodeDepositRequest:({payload:ei}={})=>["POST","deposits","encode",ei],getDepositsLimits:({query:ei}={})=>["GET","deposits","limits",ei],getDepositMethods:({query:ei}={})=>["GET","deposits","methods",ei],createInteracDepositRequest:({payload:ei}={})=>["POST","deposits","interac","request",ei],listDepositStatus:({query:ei}={})=>["GET","deposits","statuses",ei],activateDepositRequest:({payload:ei}={})=>["POST","deposits","activate",ei],createPlaidTokenLink:({payload:ei}={})=>["POST","deposits","plaid","create",ei],activatePlaidTokenLink:({payload:ei}={})=>["POST","deposits","plaid","activate",ei],deletePlaidAccount:({itemId:ei})=>["DELETE","deposits","plaid",`${ei}`],createPlaidDepositRequest:({payload:ei}={})=>["POST","deposits","plaid","request",ei],directFundingInitializeAccount:({payload:ei}={})=>["POST","deposits","direct","funding","initialize","account",ei],directFundingConfirmAccount:({payload:ei}={})=>["PUT","deposits","direct","funding","confirm","account",ei],directFundingDeleteAccount:({accountId:ei,payload:eo})=>["DELETE","deposits","direct","funding",`${ei}`,eo],directFundingCreateDepositRequest:({payload:ei}={})=>["POST","deposits","direct","funding","create","deposit",ei],getPlaidInstitutionLogos:({query:ei}={})=>["GET","deposits","plaid","institution","logos",ei],acceptSynapseTos:({payload:ei}={})=>["POST","deposits","synapse","accepttos",ei],redeemKfeeVoucher:({payload:ei}={})=>["POST","deposits","kfee","redeem",ei],addCreditCard:({payload:ei}={})=>["POST","deposits","credit-card","add",ei],confirmCreditCard:({payload:ei}={})=>["POST","deposits","credit-card","3d-secure","confirm",ei],listStoredPwmb:({query:ei}={})=>["GET","deposits","pwmb",ei],confirmPwmbAccount:({payload:ei}={})=>["PUT","deposits","pwmb",ei],initiatesAddingNewAccountPwmb:({payload:ei}={})=>["POST","deposits","pwmb",ei],deleteCreditCard:({cardId:ei})=>["DELETE","deposits","credit-card",`${ei}`],deletePwmbAccount:({accountId:ei})=>["DELETE","deposits","pwmb",`${ei}`],listStoredCards:({query:ei}={})=>["GET","deposits","credit-card",ei],chargeCreditCard:({payload:ei}={})=>["POST","deposits","credit-card","ptl",ei],creditCardTransactionStatus:({quoteId:ei,refId:eo,query:ea})=>["GET","deposits","credit-card","ptl",`${eo}`,`${ei}`,ea],fundRequestPwmb:({payload:ei}={})=>["POST","deposits","pwmb","ptl",ei],transactionStatusPwmb:({quoteId:ei,refId:eo,query:ea})=>["GET","deposits","pwmb","ptl",`${eo}`,`${ei}`,ea]},parachain:{getParachainAssets:({query:ei}={})=>["GET","parachain","assets",ei],getParachainTransactions:({query:ei}={})=>["GET","parachain","transactions",ei]},tiers:{getTierTableInfo:({query:ei}={})=>["GET","tiers",ei]},wallets:{walletTransfer:({payload:ei}={})=>["POST","wallets","transfer",ei],getWalletTransferInfo:({walletType:ei,query:eo})=>["GET","wallets","transfer",`${ei}`,"info",eo],getWalletTransferStatuses:({walletType:ei,query:eo})=>["GET","wallets","transfer",`${ei}`,"statuses",eo],getBalancesByWallet:({query:ei}={})=>["GET","wallets","balances",ei]},withdrawals:{createWithdrawal:({payload:ei}={})=>["POST","withdrawals",ei],listFundingWithdrawalHolds:({query:ei}={})=>["GET","withdrawals","holds",ei],listWithdrawalAddresses:({query:ei}={})=>["GET","withdrawals","addresses",ei],createWithdrawalAddress:({payload:ei}={})=>["POST","withdrawals","addresses",ei],decodeWithdrawalRequest:({assetClass:ei,asset:eo,method:ea,encodedRequest:eu,query:ec})=>["GET","withdrawals","decode",`${eo}`,`${ea}`,`${eu}`,ec],updateWithdrawalAddress:({key:ei,payload:eo})=>["PUT","withdrawals","addresses",`${ei}`,eo],deleteWithdrawalAddress:({key:ei})=>["DELETE","withdrawals","addresses",`${ei}`],validateWithdrawalAddress:({payload:ei}={})=>["POST","withdrawals","addresses","validate",ei],getWithdrawalFee:({query:ei}={})=>["GET","withdrawals","fee",ei],getWithdrawalsLimits:({query:ei}={})=>["GET","withdrawals","limits",ei],approveWithdrawalAddress:({payload:ei}={})=>["POST","withdrawals","addresses","approve",ei],getWithdrawalMethods:({query:ei}={})=>["GET","withdrawals","methods",ei],getPublicWithdrawalMethods:({query:ei}={})=>["GET","withdrawals","public","methods",ei],withdrawalMethodsInfo:({asset:ei,query:eo})=>["GET","withdrawals","methods",`${ei}`,eo],getWithdrawalStatus:({query:ei}={})=>["GET","withdrawals","statuses",ei],cancelWithdrawal:({refId:ei})=>["DELETE","withdrawals",`${ei}`],createInteracWithdrawalRequest:({payload:ei}={})=>["POST","withdrawals","interac","request",ei]},transfers:{listCustodyTransfers:({query:ei}={})=>["GET","transfers","custody",ei]},p2P:{createPeerToPeerTransfer:({payload:ei}={})=>["POST","p2p","transfers",ei],getPeerToPeerLimit:({query:ei}={})=>["GET","p2p","limits",ei],approvePeerToPeerTransfer:({payload:ei}={})=>["POST","p2p","transfers","approve",ei],getPeerToPeerRecipient:({payload:ei}={})=>["POST","p2p","recipients","check",ei]},instant:{instantMethods:({query:ei}={})=>["GET","instant","pay",ei],instantPay:({payload:ei}={})=>["POST","instant","pay",ei]},nft:{listBlockchains:({query:ei}={})=>["GET","nft","blockchain",ei],getCollection:({collectionId:ei,query:eo})=>["GET","nft","collection",`${ei}`,eo],listCollections:({query:ei}={})=>["GET","nft","collection",ei],getCreator:({creatorId:ei,query:eo})=>["GET","nft","creator",`${ei}`,eo],listCreators:({query:ei}={})=>["GET","nft","creator",ei],addWeb3Asset:({nftId:ei})=>["POST","nft","token",`${ei}`,"add-web3-asset"],getNft:({nftId:ei,query:eo})=>["GET","nft","token",`${ei}`,eo],getNftProvenance:({nftId:ei,query:eo})=>["GET","nft","token",`${ei}`,"provenance",eo],listNfts:({query:ei}={})=>["GET","nft","token",ei],getNftWallet:({query:ei}={})=>["GET","nft","wallet",ei],listWeb3Wallets:({query:ei}={})=>["GET","nft","web3wallet",ei],updateWeb3Wallet:({payload:ei}={})=>["PUT","nft","web3wallet",ei],addWeb3Wallet:({payload:ei}={})=>["POST","nft","web3wallet",ei],deleteWeb3Wallet:({id:ei})=>["DELETE","nft","web3wallet",`${ei}`],vendorToken:({query:ei}={})=>["GET","nft","vendor_token",ei],listNftTransactions:({query:ei}={})=>["GET","nft","transaction",ei],verifyLinkingCode:({payload:ei}={})=>["POST","nft","verify-link-code",ei],listLinkedAccounts:({query:ei}={})=>["GET","nft","linked-account",ei],linkAccount:({payload:ei}={})=>["POST","nft","linked-account",ei],unlinkAccount:({payload:ei}={})=>["DELETE","nft","linked-account",ei],getAuctions:({query:ei}={})=>["GET","nft","auction",ei],modifyAuction:({payload:ei}={})=>["PUT","nft","auction",ei],createAuction:({payload:ei}={})=>["POST","nft","auction",ei],cancelAuction:({payload:ei}={})=>["DELETE","nft","auction",ei],getAuctionTrades:({query:ei}={})=>["GET","nft","auction","trades",ei],getOffers:({query:ei}={})=>["GET","nft","auction","offers",ei],getPrivateOffers:({query:ei}={})=>["GET","nft","private","offers",ei],getBids:({query:ei}={})=>["GET","nft","auction","bids",ei],getCollectionTrades:({query:ei}={})=>["GET","nft","auction","collection","trades",ei],getUserAuctionTrades:({query:ei}={})=>["GET","nft","auction","trades","user",ei],getUserAuctions:({query:ei}={})=>["GET","nft","auction","user",ei],getUserOffers:({query:ei}={})=>["GET","nft","auction","offers","user",ei],getUserBids:({query:ei}={})=>["GET","nft","auction","bids","user",ei],getUserBidsOffersTotal:({query:ei}={})=>["GET","nft","getUserBidsOffersTotal",ei],placeOffer:({payload:ei}={})=>["POST","nft","auction","offer",ei],cancelOffer:({payload:ei}={})=>["DELETE","nft","auction","offer",ei],placeNftQuote:({payload:ei}={})=>["POST","nft","quote",ei],cancelNftQuote:({payload:ei}={})=>["DELETE","nft","quote",ei],placeBid:({payload:ei}={})=>["POST","nft","auction","bid",ei],cancelBid:({payload:ei}={})=>["DELETE","nft","auction","bid",ei],getNftQuotes:({query:ei}={})=>["GET","nft","quotes",ei],acceptNftOffer:({payload:ei}={})=>["POST","nft","auction","offer","accept",ei],counterNftOffer:({payload:ei}={})=>["POST","nft","auction","offer","counter",ei],getNftSocialId:({query:ei}={})=>["GET","nft","user","socialid",ei],placeClaim:({payload:ei}={})=>["POST","nft","auction","claim",ei],getUserClaims:({query:ei}={})=>["GET","nft","auction","claims","user",ei]},web3:{getWeb3SignatureRequest:({query:ei}={})=>["GET","web3","signature-request",ei]},earn:{listAllocations:({query:ei}={})=>["GET","earn","allocations",ei],getAutoAllocateStatus:({query:ei}={})=>["GET","earn","auto","set",ei],setAutoAllocate:({payload:ei}={})=>["POST","earn","auto","set",ei],listLedgers:({query:ei}={})=>["GET","earn","ledgers",ei],listLedgersAgg:({query:ei}={})=>["GET","earn","ledgers-agg",ei],listStrategies:({query:ei}={})=>["GET","earn","strategies",ei],listStrategiesNs:({query:ei}={})=>["GET","earn","strategies-ns",ei],getStrategy:({strategyId:ei,query:eo})=>["GET","earn","strategies",`${ei}`,eo],getAllocateStrategyStatus:({strategyId:ei,query:eo})=>["GET","earn","strategies",`${ei}`,"allocate",eo],allocateStrategy:({strategyId:ei,payload:eo})=>["POST","earn","strategies",`${ei}`,"allocate",eo],getDeallocateStrategyStatus:({strategyId:ei,query:eo})=>["GET","earn","strategies",`${ei}`,"deallocate",eo],deallocateStrategy:({strategyId:ei,payload:eo})=>["POST","earn","strategies",`${ei}`,"deallocate",eo]},exports:{listHistoryExports:({query:ei}={})=>["GET","exports",ei],createHistoryExports:({payload:ei}={})=>["POST","exports",ei],downloadHistoryExports:({exportId:ei,query:eo})=>["GET","exports",`${ei}`,eo],deleteHistoryExports:({exportId:ei})=>["DELETE","exports",`${ei}`],cancelHistoryExports:({exportId:ei})=>["PUT","exports",`${ei}`,"cancel"]},reports:{downloadReport:({id:ei,query:eo})=>["GET","reports",`${ei}`,eo],listReports:({query:ei}={})=>["GET","reports",ei]},rewards:{listEligibleReferralPlans:({query:ei}={})=>["GET","rewards","referrals",ei],getReferralEligibility:({query:ei}={})=>["GET","rewards","referrals","eligibility",ei],getReferralPlan:({code:ei,query:eo})=>["GET","rewards","referrals","code",`${ei}`,eo],getEnrolledReferralPlan:({query:ei}={})=>["GET","rewards","referrals","enrolled",ei]},custody:{listCustodyAssets:({query:ei}={})=>["GET","custody","vaults","assets",ei],listCustodyAssetsBalances:({id:ei,query:eo})=>["GET","custody","vaults",`${ei}`,"assets","balances",eo],listCustodyDepositAddresses:({id:ei,payload:eo})=>["PUT","custody","vaults",`${ei}`,"deposits","addresses",eo],createCustodyDepositAddress:({id:ei,payload:eo})=>["POST","custody","vaults",`${ei}`,"deposits","addresses",eo],getCustodyDepositInfo:({id:ei,payload:eo})=>["PUT","custody","vaults",`${ei}`,"deposits","info",eo],createCustodyGroup:({payload:ei}={})=>["POST","custody","groups",ei],updateCustodyGroupUsers:({payload:ei}={})=>["POST","custody","users","groups",ei],listCustodyDomainPolicies:({payload:ei}={})=>["PUT","custody","policies",ei],updateCustodyDomainPolicies:({payload:ei}={})=>["POST","custody","policies",ei],listCustodyVaultPolicies:({id:ei,payload:eo})=>["PUT","custody","vaults",`${ei}`,"policies",eo],updateCustodyVaultPolicies:({id:ei,payload:eo})=>["POST","custody","vaults",`${ei}`,"policies",eo],getCustodyTasksActivity:({id:ei,query:eo})=>["GET","custody","tasks","activities",`${ei}`,eo],getCustodyTask:({id:ei,query:eo})=>["GET","custody","tasks",`${ei}`,eo],reviewCustodyTask:({id:ei,payload:eo})=>["POST","custody","tasks",`${ei}`,eo],listCustodyTasksActivities:({payload:ei}={})=>["PUT","custody","tasks","activities",ei],listCustodyTasks:({payload:ei}={})=>["PUT","custody","tasks",ei],getCustodyTransaction:({id:ei,query:eo})=>["GET","custody","transactions",`${ei}`,eo],listCustodyTransactions:({payload:ei}={})=>["PUT","custody","transactions",ei],listCustodyTransferAddresses:({payload:ei}={})=>["PUT","custody","transfers","addresses",ei],requestCustodyTransferToSpot:({id:ei,payload:eo})=>["POST","custody","vaults",`${ei}`,"transfers",eo],requestCustodyTransferToVault:({payload:ei}={})=>["POST","custody","transfers",ei],listCustodyUsers:({payload:ei}={})=>["PUT","custody","users",ei],createCustodyUsers:({payload:ei}={})=>["POST","custody","users",ei],getCustodyUserInfo:({query:ei}={})=>["GET","custody","user",ei],listCustodyVaultUsers:({id:ei,payload:eo})=>["PUT","custody","vaults",`${ei}`,"users",eo],updateCustodyVaultUsers:({id:ei,payload:eo})=>["POST","custody","vaults",`${ei}`,"users",eo],updateCustodyRoleUsers:({payload:ei}={})=>["POST","custody","users","roles",ei],updateCustodyStatusUsers:({payload:ei}={})=>["POST","custody","users","status",ei],listCustodyVaults:({payload:ei}={})=>["PUT","custody","vaults",ei],createCustodyVault:({payload:ei}={})=>["POST","custody","vaults",ei],getCustodyBalance:({query:ei}={})=>["GET","custody","vaults","balance",ei],getCustodyVaultInfo:({id:ei,query:eo})=>["GET","custody","vaults",`${ei}`,eo],updateCustodyVault:({id:ei,payload:eo})=>["POST","custody","vaults",`${ei}`,eo],getCustodyWithdrawalFees:({id:ei,payload:eo})=>["POST","custody","vaults",`${ei}`,"withdrawals","fees",eo],getCustodyWithdrawalInfo:({payload:ei}={})=>["PUT","custody","vaults","withdrawals","info",ei],listCustodyWithdrawalAddresses:({id:ei,payload:eo})=>["PUT","custody","vaults",`${ei}`,"withdrawals","addresses",eo],updateCustodyWithdrawalAddresses:({id:ei,payload:eo})=>["POST","custody","vaults",`${ei}`,"withdrawals","addresses",eo],requestCustodyWithdrawal:({id:ei,payload:eo})=>["POST","custody","vaults",`${ei}`,"withdrawals",eo]},equities:{createEquitiesOrder:({payload:ei}={})=>["POST","equities","orders",ei]},markets:{getMarketAlertTriggers:({query:ei}={})=>["GET","markets","triggers","alerts",ei],updateMarketAlertTrigger:({payload:ei}={})=>["PUT","markets","triggers","alerts",ei],createMarketAlertTrigger:({payload:ei}={})=>["POST","markets","triggers","alerts",ei],getAllAssets:({query:ei}={})=>["GET","markets","all","assets",ei],getAllMarketCharts:({query:ei}={})=>["GET","markets","all","market-charts",ei],getAllMarketPrices:({query:ei}={})=>["GET","markets","all","market-prices",ei],getAllQuoteAssets:({query:ei}={})=>["GET","markets","all","quote-assets",ei],getAssetVolumesWindow:({query:ei}={})=>["GET","markets","assets","volumes","window",ei],getAssetsRatesHistory:({query:ei}={})=>["GET","markets","assets","rates","history",ei],getAssetsRates:({query:ei}={})=>["GET","markets","assets","rates",ei],getExchangePairsRatesHistory:({query:ei}={})=>["GET","markets","exchange-rates","history",ei],getExchangePairsRates:({query:ei}={})=>["GET","markets","exchange-rates",ei],getMarketAlertTriggerLogs:({query:ei}={})=>["GET","markets","triggers","alerts","logs",ei],getMarketAlertTriggersMarkets:({query:ei}={})=>["GET","markets","triggers","alerts","markets",ei],getMarketDataToken:({query:ei}={})=>["GET","markets","equities","token",ei],getMarketStatus:({query:ei}={})=>["GET","markets","status",ei],getPairOrderBook:({pair:ei,query:eo})=>["GET","markets",`${ei}`,"orderbook",eo],getPairSpreads:({pair:ei,query:eo})=>["GET","markets",`${ei}`,"spreads",eo],getPairTickHistory:({pair:ei,query:eo})=>["GET","markets",`${ei}`,"ticker","history",eo],getPairTicker:({pair:ei,query:eo})=>["GET","markets",`${ei}`,"ticker",eo],getPairTickers:({query:ei}={})=>["GET","markets","tickers",ei],getPairTradeCount:({pair:ei,query:eo})=>["GET","markets",`${ei}`,"trade-count",eo],getPairVolatility:({pair:ei,query:eo})=>["GET","markets",`${ei}`,"volatility",eo],getPairVolumesWindow:({query:ei}={})=>["GET","markets","pairs","volumes","window",ei],getPairVolumes:({pair:ei,query:eo})=>["GET","markets",`${ei}`,"volumes",eo],getMarketCap:({query:ei}={})=>["GET","markets","market-cap",ei],getPairsVolatility:({query:ei}={})=>["GET","markets","volatility",ei],getTakerVolume:({pair:ei,query:eo})=>["GET","markets",`${ei}`,"takervolume",eo],setMarketAlertTriggerState:({payload:ei}={})=>["PUT","markets","triggers","alerts","state",ei],getAssetInfo:({query:ei}={})=>["GET","markets","assets",ei],getPairs:({query:ei}={})=>["GET","markets",ei],getUserAssetInfo:({query:ei}={})=>["GET","markets","assets","user",ei],getUserPairs:({query:ei}={})=>["GET","markets","user",ei]},margin:{getSpotMarginPnL:({query:ei}={})=>["GET","margin","pnl",ei],getSpotMarginRefCurrencies:({query:ei}={})=>["GET","margin","currencies",ei],getSpotMarginStats:({query:ei}={})=>["GET","margin","stats",ei],getSpotMarginFlags:({query:ei}={})=>["GET","margin","flags",ei],updateSpotMarginFlags:({payload:ei}={})=>["PUT","margin","flags",ei],getSpotMarginTradingStats:({query:ei}={})=>["GET","margin","stats","trading",ei],getSpotMarginWithdrawStats:({query:ei}={})=>["GET","margin","stats","withdraw",ei],setSpotMarginLotAllocationMethod:({payload:ei}={})=>["PUT","margin","lot-allocation-method",ei],updateSpotMarginFlagsAdmin:({payload:ei}={})=>["PUT","margin","flags-admin",ei]},orders:{editOrder:({payload:ei}={})=>["PUT","orders",ei],createOrder:({payload:ei}={})=>["POST","orders",ei],cancelOrders:({payload:ei}={})=>["DELETE","orders",ei],createOrderBatch:({payload:ei}={})=>["POST","orders","batch",ei],cancelOrder:({orderId:ei,payload:eo})=>["DELETE","orders",`${ei}`,eo],readOrder:({orderId:ei,query:eo})=>["GET","orders",`${ei}`,eo],getClosedOrders:({query:ei}={})=>["GET","orders","closed",ei],getOrderHistory:({query:ei}={})=>["GET","orders","history",ei],getOpenOrders:({query:ei}={})=>["GET","orders","open",ei]},otc:{checkOtcClient:({query:ei}={})=>["GET","otc","client",ei],getOtcActiveQuotes:({query:ei}={})=>["GET","otc","quotes",ei],createOtcQuoteRequest:({payload:ei}={})=>["POST","otc","quotes",ei],getOtcDashboardOverview:({query:ei}={})=>["GET","otc","overview",ei],getOtcExportHistory:({query:ei}={})=>["GET","otc","quotes","history","exports",ei],requestOtcEmailExport:({payload:ei}={})=>["POST","otc","quotes","history","exports",ei],getOtcExposures:({query:ei}={})=>["GET","otc","exposures",ei],getOtcHistoricalQuotes:({query:ei}={})=>["GET","otc","quotes","history",ei],getOtcPairs:({query:ei}={})=>["GET","otc","pairs",ei],getOtcOptionsTradeHistory:({query:ei}={})=>["GET","otc","trade-history","options",ei],getOtcSpotTradeHistory:({query:ei}={})=>["GET","otc","trade-history","spot",ei],updateOtcQuote:({quoteId:ei,payload:eo})=>["PUT","otc","quotes",`${ei}`,eo]},consumerScheduler:{cancelScheduledAction:({id:ei,payload:eo})=>["PUT","consumer-scheduler","scheduled-actions",`${ei}`,"cancel",eo],getScheduledActions:({query:ei}={})=>["GET","consumer-scheduler","scheduled-actions",ei],createScheduledAction:({payload:ei}={})=>["POST","consumer-scheduler","scheduled-actions",ei],getScheduledAction:({id:ei,query:eo})=>["GET","consumer-scheduler","scheduled-actions",`${ei}`,eo],updateScheduledAction:({id:ei,payload:eo})=>["PUT","consumer-scheduler","scheduled-actions",`${ei}`,eo],getScheduledActionHistory:({id:ei,query:eo})=>["GET","consumer-scheduler","scheduled-actions",`${ei}`,"history",eo],getScheduledActionsHistory:({query:ei}={})=>["GET","consumer-scheduler","scheduled-actions","history",ei],pauseScheduledAction:({id:ei,payload:eo})=>["PUT","consumer-scheduler","scheduled-actions",`${ei}`,"pause",eo],resumeScheduledAction:({id:ei,payload:eo})=>["PUT","consumer-scheduler","scheduled-actions",`${ei}`,"resume",eo]},trades:{statusPtlQuote:({quoteId:ei,query:eo})=>["GET","trades","ptl",`${ei}`,eo],executePtlQuote:({quoteId:ei,payload:eo})=>["PUT","trades","ptl",`${ei}`,eo],getBulkPtlQuoteLimits:({query:ei}={})=>["GET","trades","ptl","bulk","quotes","limits",ei],getProspectivePtlQuote:({payload:ei}={})=>["POST","trades","ptl","quotes","prospective",ei],getPtlAssets:({query:ei}={})=>["GET","trades","ptl","assets","list",ei],getPtlQuoteLimits:({query:ei}={})=>["GET","trades","ptl","quotes","limits",ei],newBulkPtlQuote:({payload:ei}={})=>["POST","trades","ptl","bulk",ei],newPtlQuote:({payload:ei}={})=>["POST","trades","ptl",ei],statusBulkPtlQuote:({quoteId:ei,query:eo})=>["GET","trades","ptl","bulk",`${ei}`,eo],getTradesBalance:({query:ei}={})=>["GET","trades","balance",ei],getTradesHistory:({query:ei}={})=>["GET","trades","history",ei],getTradesStats:({query:ei}={})=>["GET","trades","stats",ei],getTradesVolume:({query:ei}={})=>["GET","trades","volume",ei],getTrades:({query:ei}={})=>["GET","trades",ei]},futures:{getFuturesAccountInfo:({query:ei}={})=>["GET","futures","account",ei]},ledgers:{getLedgersInfo:({query:ei}={})=>["GET","ledgers",ei],queryLedgerInfo:({ledgerId:ei,query:eo})=>["GET","ledgers",`${ei}`,eo]},portfolio:{getPortfolioDetail:({query:ei}={})=>["GET","portfolio","detail",ei],getPortfolioSummary:({query:ei}={})=>["GET","portfolio","summary",ei],getPortfolioTransactionId:({transactionId:ei,query:eo})=>["GET","portfolio","transactions",`${ei}`,eo],getPortfolioTransactions:({query:ei}={})=>["GET","portfolio","transactions",ei]},positions:{getOpenPositions:({query:ei}={})=>["GET","positions",ei]},vip:{getCreditLines:({query:ei}={})=>["GET","vip","creditlines",ei],getVipAccountManagers:({query:ei}={})=>["GET","vip","managers",ei],getVipUsage:({query:ei}={})=>["GET","vip","usage",ei]},token:{registerDeviceToken:({payload:ei}={})=>["POST","token","register",ei]},notifications:{getUserNotificationPreferences:({query:ei}={})=>["GET","notifications","preferences",ei],updateUserNotificationPreference:({payload:ei}={})=>["PATCH","notifications","preferences",ei],updateVolatilityAlertsSubscription:({payload:ei}={})=>["PUT","notifications","alerts","volatility",ei]},email:{emailUnsubscribe:({payload:ei}={})=>["DELETE","email","subscription",ei],emailTracking:({payload:ei}={})=>["POST","email","tracking",ei]}},oF=(ei,eo,ea)=>{var eu,ec;let ed=Array.isArray(ea)?ea:[ea],ef=[ei,eo,...ed],eh=null===(eu=oL[ei])||void 0===eu?void 0:eu[eo],eg=null===(ec=oB[ei])||void 0===ec?void 0:ec[eo],em="function"==typeof eh&&eg&&eh({query:ea})||ef;return em},oB={deposits:{getDepositMethods:!0,getDepositsLimits:!0,getDepositAddresses:!0},withdrawals:{getWithdrawalMethods:!0,getWithdrawalsLimits:!0,listWithdrawalAddresses:!0,getWithdrawalFee:!0},markets:{getAssetInfo:!0,getAssetsRates:!0},account:{readProfile:!0,readSettings:!0},preferences:{getPreferences:!0}},oU=(ei,eo,ea)=>{var eu;let ec=null===(eu=ei[eo])||void 0===eu?void 0:eu[ea];return(...ei)=>null==ec?void 0:ec(...ei).then(ei=>{var eo;return null===(eo=null==ei?void 0:ei.data)||void 0===eo?void 0:eo.result})},oz=(ei,eo,ea,eu)=>{let ec=()=>{let ec=[...Array.isArray(eu)?eu:[eu]],ed=oU(ei,eo,ea);return ed(...ec)};return ec},oG=()=>{let ei=(0,tj.NL)(),eo=(0,oE.W)(),ea=(0,eb.useRef)(),eu=(0,eb.useCallback)((eu,ec,ed,{observerOptions:ef,mapFn:eh}={})=>{let eg=oF(eu,ec,ed),em=oz(eo,eu,ec,ed),eb=Object.assign(Object.assign(Object.assign({},nz),ef||{}),{queryKey:eg,queryFn:em}),ew=new oA(ei,eb),e_=ew.getOptimisticResult(ew.options),eS=oR(ew,e_,eh),eE=ea.current;null==eE||eE.queryObserver.destroy(),null==eE||eE.subject.complete();let eA={queryObserver:ew,subject:eS};return ea.current=eA,eS},[eo,ei]);return oM(()=>{var ei;null===(ei=ea.current)||void 0===ei||ei.subject.complete()}),eu},oV=()=>{let ei=oG();return(0,eb.useCallback)(({asset:eo,optimized:ea=!0}={})=>ei("markets","getAssetInfo",{},{observerOptions:{staleTime:nq,cacheTime:nq},mapFn:ei=>{let eu=new Map(null==ei?void 0:ei.map(ei=>{let eo=iK(ei.asset);return[eo,ea?{asset:eo,fundingDecimals:ei.funding_decimals,isFiat:!1===ei.virtual}:Object.assign(Object.assign({},ei),{asset:eo})]}));return(0,nJ.HD)(eo)?eu.get(eo):eu}}),[ei])},oq=()=>{let ei=oG();return(0,eb.useCallback)(({base:eo,quote:ea})=>{let eu=eo===ea&&!1,ec=!eu&&!!eo&&!!ea;return ei("markets","getAssetsRates",{pairs:[{base:{name:eo,class:"currency"},quote:{name:ea,class:"currency"}}]},{observerOptions:{enabled:ec,refetchInterval:nV},mapFn:ei=>{let eo=null==ei?void 0:ei.map(ei=>Object.assign(Object.assign({},ei),{asset:iK(ei.asset),base:iK(ei.base),quote:iK(ei.quote)})),ea=null==eo?void 0:eo[0],ec=eu?1:ea?nX(ea.rate):void 0,ed=(0,nJ.hj)(ec)&&(null==ea?void 0:ea.base)&&ea.quote?{base:ea.base,quote:ea.quote,rate:ec}:void 0;return ed}})},[ei])},oH=()=>{let ei=oG();return(0,eb.useCallback)(({mode:eo,asset:ea})=>{let eu=eo===IQ.Deposit?ei("deposits","getDepositsLimits",{asset:ea,full_precision:!0},{observerOptions:{enabled:!!ea&&eo===IQ.Deposit}}):ei("withdrawals","getWithdrawalsLimits",{asset:ea,full_precision:!0},{observerOptions:{enabled:!!ea&&eo===IQ.Withdraw}});return eu},[ei])},oW=(ei,eo)=>{var ea,eu;let ec=nX(null!==(ea=null==eo?void 0:eo.sort_weight)&&void 0!==ea?ea:0)-nX(null!==(eu=null==ei?void 0:ei.sort_weight)&&void 0!==eu?eu:0);return 0!==ec?ec:0},oK=ei=>{let eo=oG();return(0,eb.useCallback)(({mode:ea,asset:eu},{mapFn:ec}={})=>ei.pipe((0,rq.U)(({fundingMethodsConfig:ei,enableWithdrawalOrchestration:eo})=>({fundingMethodsConfig:ei,enableWithdrawalOrchestration:eo})),(0,nu.x)(nJ.Fh),rW(ei=>{let ed=eo=>{let eu=null==eo?void 0:eo.map(ei=>Object.assign(Object.assign({},ei),{asset:ei.asset&&iK(ei.asset)})).filter(eo=>{let eu=iZ(ei.fundingMethodsConfig,{mode:ea,asset:eo.asset,method:eo.name});return!eu.disabled}).sort(oW);return ec?ec(eu):eu},ef=ea===IQ.Deposit?eo("deposits","getDepositMethods",{asset:eu,withdrawal_orchestration:ei.enableWithdrawalOrchestration},{observerOptions:{enabled:ea===IQ.Deposit},mapFn:ed}):eo("withdrawals","getWithdrawalMethods",{asset:eu,withdrawal_orchestration:ei.enableWithdrawalOrchestration},{observerOptions:{enabled:ea===IQ.Withdraw},mapFn:ed});return ef}),nD(1)),[ei,eo])},oZ=({featureFlags$:ei,translateFn:eo,logger:ea})=>{let eu=oK(ei),ec=oH(),ed=oV(),ef=oq(),eh=(0,eb.useRef)();return(0,eb.useCallback)(eg=>{eh.current=eg;let em=eu(eg),eb=ec(eg),ew=ed(),e_=ef({base:eg.asset,quote:nU});return nA([ei,em,eb,ew,e_]).pipe((0,rq.U)(([ei,eu,ec,ed,ef])=>{var eg,em,eb;let{mode:ew,asset:e_}=eh.current,eS=(null==ef?void 0:ef.data)&&(null===(eg=null==ef?void 0:ef.data)||void 0===eg?void 0:eg.base)!==e_?void 0:ef,eE={methods:eu,limits:ec,assetInfoMap:ed,assetRateInUSD:eS},eA=e_?null===(em=null==ed?void 0:ed.data)||void 0===em?void 0:em.get(e_):void 0,eT=null===(eb=null==eu?void 0:eu.data)||void 0===eb?void 0:eb.map(eu=>oS({mode:ew,methodModel:eu,assetInfo:eA,assetRateInUSD:null==eS?void 0:eS.data,limits:null==ec?void 0:ec.data,featureFlags:ei,translateFn:eo,staticLimitsOnly:!0,logger:ea})),ek={assetInfo:eA,assetRateInUSD:null==eS?void 0:eS.data,limits:null==ec?void 0:ec.data};return{data:eT,meta:ek,isLoading:nZ(eE,"isLoading"),isFetching:nZ(eE,"isFetching"),isError:nZ(eE,"isError"),error:nZ(eE,"error")}}),(0,nu.x)(nJ.Fh),nD(1))},[ei,ed,ef,ec,eu,ea,eo])};var o$=ea(19999);let oJ=(ei,eo,ea,eu,ec={},...ed)=>{let ef=(eo,ec)=>{let ef=[...ed,...eo?[eo]:[],...ec?[ec]:[]],eh=oU(ei,ea,eu);return eh(...ef)},eh=new o$.X(eo,Object.assign(Object.assign(Object.assign({},nG),null!=ec?ec:{}),{mutationFn:ef}));return eh},oQ=()=>{let ei=(0,tj.NL)(),eo=(0,oE.W)(),ea=(0,eb.useCallback)((ea,eu,{observerOptions:ec}={},...ed)=>{let ef=oJ(eo,ei,ea,eu,ec,...ed);return ef},[eo,ei]);return ea};var o0=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let o3=({mode:ei,sdkMethod:eo,inputAmount:ea,assetInfo:eu,assetRateInUSD:ec,limits:ed,fetchWithdrawalFees:ef,logger:eh,recalculateLimits:eg,recalculateFees:em})=>o0(void 0,void 0,void 0,function*(){if(!ei||!eo)return;let eb=null==eo?void 0:eo.models.method,ew=null==eu?void 0:eu.isFiat,e_=null==eu?void 0:eu.fundingDecimals,eS=null==ec?void 0:ec.rate,eE=eo.inputAmountType,eA=yield Promise.resolve(eg?iw({mode:ei,isFiat:ew,type:eE,methodModel:eb,limits:ed,rateInUSD:eS,fundingDecimals:e_,staticOnly:!1,fetchWithdrawalFees:ef,logger:eh}):eo.calculatedLimits).catch(ei=>{eh.error(ei)}),eT=yield Promise.resolve(em?ia({inputAmount:ea,inputAmountType:eE,mode:ei,methodModel:eb,isFiat:ew,fundingDecimals:e_,staticOnly:!1,maxAmount:null==eA?void 0:eA.maxAmount,minAmount:null==eA?void 0:eA.minAmount,fetchWithdrawalFees:ef,logger:eh}):"calculatedFees"in eo?eo.calculatedFees:void 0).catch(ei=>{eh.error(ei)});return Object.assign(Object.assign({},eo),{calculatedLimits:eA,calculatedFees:eT,netAmount:null==eT?void 0:eT.netAmount,feeAmount:null==eT?void 0:eT.feeAmount,totalAmount:null==eT?void 0:eT.totalAmount})});var o5=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let o4=({featureFlags$:ei,translateFn:eo,logger:ea})=>{let eu=(0,eb.useMemo)(()=>new rV.X({mode:void 0,asset:void 0,method:void 0,inputAmount:void 0}),[]),ec=oZ({featureFlags$:ei,translateFn:eo,logger:ea}),ed=oQ(),ef=(0,eb.useMemo)(()=>o6({sdkPublicStore$:eu,getFundingSDKMethods$:ec,getMutation$:ed,logger:ea}),[ec,ed,ea,eu]);return{sdkPublicStore$:eu,sdkPrivateStore$:ef}},o6=({sdkPublicStore$:ei,getFundingSDKMethods$:eo,getMutation$:ea,logger:eu})=>{let{mutate:ec}=ea("withdrawals","getWithdrawalFee",{observerOptions:{retry:0}}),ed=ei.pipe((0,rq.U)(({mode:ei,asset:eo})=>({mode:ei,asset:eo})),no({mode:void 0,asset:void 0}),(0,nu.x)(nJ.Fh),rW(({mode:ei,asset:ea})=>{let eu=ei&&ea?eo({mode:ei,asset:ea}):nd;return nA([eu,nC({mode:ei,asset:ea})])}),(0,rq.U)(([ei,eo])=>({value:ei,params:eo})),(0,nu.x)(nJ.Fh),nD(1)),ef=nA([ed,ei]).pipe((0,rq.U)(([ei,eo])=>{var ea;let eu=o8(ei,eo),{mode:ec,asset:ed,method:ef}=eo,eh=null==eu?void 0:eu.meta,eg=ef&&(null==eu?void 0:eu.data)&&!(null==eu?void 0:eu.isLoading.ANY)?null===(ea=null==eu?void 0:eu.data)||void 0===ea?void 0:ea.find(({models:ei})=>ei.method.name===ef):void 0;return{value:{meta:eh,filteredSDKMethod:eg},params:{mode:ec,asset:ed,method:ef}}}),(0,nu.x)(nJ.Fh)).pipe(rW(({value:{meta:ei,filteredSDKMethod:eo},params:{mode:ea,asset:ed,method:ef}})=>o5(void 0,void 0,void 0,function*(){let eh=yield o3({mode:ea,sdkMethod:eo,inputAmount:void 0,assetInfo:null==ei?void 0:ei.assetInfo,assetRateInUSD:null==ei?void 0:ei.assetRateInUSD,limits:null==ei?void 0:ei.limits,fetchWithdrawalFees:ec,logger:eu,recalculateLimits:!0,recalculateFees:!1});return{value:{meta:ei,selectedSDKMethodWithoutFees:eh},params:{mode:ea,asset:ed,method:ef}}})),nL(ei),(0,rq.U)(([ei,eo])=>{var ea;let{mode:eu,asset:ec,method:ed,inputAmount:ef}=eo,{meta:eh,selectedSDKMethodWithoutFees:eg}=null!==(ea=o8(ei,eo))&&void 0!==ea?ea:{};return{value:{meta:eh,selectedSDKMethodWithoutFees:eg},params:{mode:eu,asset:ec,method:ed,inputAmount:ef}}}),(0,nu.x)(nJ.Fh),rW(({value:{meta:ei,selectedSDKMethodWithoutFees:eo},params:{mode:ea,asset:ed,method:ef,inputAmount:eh}})=>o5(void 0,void 0,void 0,function*(){let eg=yield o3({mode:ea,sdkMethod:eo,inputAmount:eh,assetInfo:null==ei?void 0:ei.assetInfo,assetRateInUSD:null==ei?void 0:ei.assetRateInUSD,limits:null==ei?void 0:ei.limits,fetchWithdrawalFees:ec,logger:eu,recalculateLimits:!1,recalculateFees:!0});return{value:eg,params:{mode:ea,asset:ed,method:ef,inputAmount:eh,meta:ei}}})),(0,nu.x)(nJ.Fh),nD(1)),eh=nA([ei,ed,ef]).pipe((0,rq.U)(([ei,eo,ea])=>{var eu;let ec=null!==(eu=o8(eo,ei))&&void 0!==eu?eu:nY,ed=o8(ea,ei),ef={sdkMethods:ec,selectedSDKMethod:ed};return ef}),(0,nu.x)(nJ.Fh),nD(1)),eg=new rV.X({});return eh.subscribe(eg),eg},o8=({params:ei,value:eo},ea)=>(0,nJ.Fh)(Object.assign(Object.assign({},null!=ei?ei:{}),ea),Object.assign(Object.assign({},ea),null!=ei?ei:{}))?eo:void 0;var o9=ea(60720);let o7=({objectA:ei,objectB:eo,canOverride:ea,currentPath:eu=[]})=>{if(!(0,nJ.Kn)(ei)||!(0,nJ.Kn)(eo))return ea([...eu],ei,eo)?eo:ei;let ec=Object.assign({},ei);for(let ei in eo)Object.assign(ec,{[ei]:o7({objectA:ec[ei],objectB:eo[ei],canOverride:ea,currentPath:[...eu,ei]})});return ec},si=["PW","PM","CW","CM"],so=nF,sa=nB,su=ei=>null===ei||"string"==typeof ei||"number"==typeof ei||"boolean"==typeof ei,sf=(ei,eo)=>eo?ei.startsWith(`${eo}ExtendedFor`):ei.indexOf("ExtendedFor")>0,sh=ei=>(0,nJ.Kn)(ei)&&!!ei&&Object.entries(ei).every(([ei,eo])=>su(eo)&&(ei===so||ei===sa||si.includes(ei))),sp=ei=>{if((0,nJ.Kn)(ei)){let eo=Object.fromEntries(Object.entries(ei).map(([ei,eo])=>[ei,sp(eo)]).filter(([,ei])=>void 0!==ei));if(0===Object.keys(eo).length)return;return eo}return ei},sm=(ei,eo)=>{var ea;return su(ei)?ei:sh(ei)?eo in ei?ei[eo]:null!==(ea=ei[so])&&void 0!==ea?ea:ei[sa]:ei&&(0,nJ.Kn)(ei)?Object.fromEntries(Object.entries(ei).map(([ei,ea])=>[ei,sm(ea,eo)])):ei},sv=(ei,eo)=>typeof ei!=typeof eo&&null!==ei&&null!==eo,sb=(ei,eo)=>{let ea=Object.fromEntries(ei.map(eo=>[eo,ei.filter(ei=>ei!==eo&&!sf(ei)&&ei.toLowerCase().includes(eo.toLowerCase()))]).filter(([,ei])=>ei.length>0));if(Object.keys(ea).length>0){let ei="[ViolationOfUnifiedLD]: Detected flags that are possibly meant to be extension flags, but with wrong name.";eo.warn(ei,ea)}},sS=(ei,eo)=>{var ea;let eu=null!==(ea=sp(ei))&&void 0!==ea?ea:{},ec=Object.keys(eu);sb(ec,eo);let ed=ec.filter(ei=>!sf(ei)),ef=Object.fromEntries(ec.filter(ei=>sf(ei)).map(ei=>[ei,eu[ei]])),eh=ed.map(ei=>[ei,Object.keys(ef).filter(eo=>sf(eo,ei))]),eg=eh.map(([ei,ea])=>{let ec=new Set,ed=new Set,eh=new Set,eg=()=>{if(eh.size>0){let eu="[ViolationOfUnifiedLD]: Make sure value of each extension feature flag is matching its base feature flag. Found mismatching JSON values.";eo.warn(eu,{flagKey:ei,extensionKeys:ea,pathsWithMismatchingStructure:Array.from(eh)})}if(ed.size>0){let eu="[ViolationOfUnifiedLD]: Make sure JSON-leaf values are overridden by only one extension feature flag at a time, for a given user, for a given platform.";eo.warn(eu,{flagKey:ei,extensionKeys:ea,pathsOverriddenMultipleTimes:Array.from(ed)})}},em=(ei,eo,ea)=>{if(!su(eo)&&!su(ea))return!0;let eu=ei.join(".");return(0,nJ.$K)(eo)&&sv(eo,ea)?(eh.add(eu),!1):(ec.has(eu)?ed.add(eu):ec.add(eu),!0)},eb=eu[ei];if(0===ea.length)return eg(),[ei,eb];let ew=ea.reduce((ei,eo)=>o7({objectA:ei,objectB:ef[eo],canOverride:em}),eb);return eg(),[ei,ew]}),em=Object.fromEntries(eg);return em},sE=(ei,eo,ea)=>{let eu=sm(ei,eo),ec=sS(eu,ea);return ea.debug("[FundingSDK][UnifiedLD]",{origValue:ei,afterStage1:eu,finalValue:ec}),ec},sA=({featureFlagsProp$:ei,platform:eo,logger:ea})=>{let eu=(0,eb.useMemo)(()=>ei.pipe((0,rq.U)(ei=>sE(ei,eo,ea)),(0,nu.x)(nJ.Fh)),[ei,ea,eo]),ec=(0,eb.useRef)();return(0,eb.useEffect)(()=>{eu.subscribe(ei=>{ec.current=ei})},[eu]),{featureFlags$:eu,featureFlagsRef:ec}},sT=(ei=nK)=>{let eo=(0,eb.useRef)(ei);eo.current=ei;let ea=(0,eb.useRef)({debug:(...ei)=>eo.current.debug(...ei),info:(...ei)=>eo.current.info(...ei),warn:(...ei)=>eo.current.warn(...ei),error:(...ei)=>eo.current.error(...ei)});return ea.current},sk=({children:ei,platform:eo,featureFlags$:ea,logger:eu,translateFn:ec})=>{let ed=sT(eu),ef=(0,rG.V)(ec),{featureFlags$:eh,featureFlagsRef:eg}=sA({featureFlagsProp$:ea,platform:eo,logger:ed}),{sdkPublicStore$:ew,sdkPrivateStore$:e_}=o4({featureFlags$:eh,translateFn:ef,logger:ed}),eS=(0,eb.useMemo)(()=>({platform:eo,sdkPublicStore$:ew,sdkPrivateStore$:e_,featureFlags$:eh,featureFlagsRef:eg,translateFn:ef,logger:ed}),[eo,ew,e_,eh,eg,ef,ed]),eE=(0,o9.Q)();return(0,em.jsx)(eE.Provider,{value:eS,children:ei})},sC="build-hash",sO={},sI=(ei,eo)=>{sO[ei]=eo},sP=(ei="development")=>{sI(sC,ei)},sD=()=>{"undefined"!=typeof window&&(window.GET_CURRENT_BUILD=()=>{let ei=JSON.stringify(sO),eo=window.btoa(ei).split("").reverse().join("");return eo})};function sN(ei,eo){return eo||(eo=ei.slice(0)),Object.freeze(Object.defineProperties(ei,{raw:{value:Object.freeze(eo)}}))}var sM=ea(52798),sj=function(){return(sj=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;eaeo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function sL(ei){var eo="function"==typeof Symbol&&Symbol.iterator,ea=eo&&ei[eo],eu=0;if(ea)return ea.call(ei);if(ei&&"number"==typeof ei.length)return{next:function(){return ei&&eu>=ei.length&&(ei=void 0),{value:ei&&ei[eu++],done:!ei}}};throw TypeError(eo?"Object is not iterable.":"Symbol.iterator is not defined.")}function sF(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef}function sB(ei,eo,ea){if(ea||2==arguments.length)for(var eu,ec=0,ed=eo.length;ec0;){var eo=ec.shift();ea=ei.transition(ea,eo,eg),eu.forEach(function(ei){return ei.next(ea)})}ed=!1}},eh=ui({id:eo.id,send:function(ei){ec.push(ei),ef()},getSnapshot:function(){return ea},subscribe:function(ei,eo,ec){var ed=aU(ei,eo,ec);return eu.add(ed),ed.next(ea),{unsubscribe:function(){eu.delete(ed)}}}}),eg={parent:eo.parent,self:eh,id:eo.id||"anonymous",observers:eu};return ea=ei.start?ei.start(eg):ea,eh}var ug={sync:!1,autoForward:!1};!function(ei){ei[ei.NotStarted=0]="NotStarted",ei[ei.Running=1]="Running",ei[ei.Stopped=2]="Stopped"}(I8||(I8={}));var um=function(){function ei(eo,ea){var eu=this;void 0===ea&&(ea=ei.defaultOptions),this.machine=eo,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=I8.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(ei,eo){if(a_(ei))return eu.batch(ei),eu.state;var ea=aN(aD(ei,eo));if(eu.status===I8.Stopped)return sH||ab(!1,'Event "'.concat(ea.name,'" was sent to stopped service "').concat(eu.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(ea.data))),eu.state;if(eu.status!==I8.Running&&!eu.options.deferEvents)throw Error('Event "'.concat(ea.name,'" was sent to uninitialized service "').concat(eu.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(ea.data)));return eu.scheduler.schedule(function(){eu.forward(ea);var ei=eu.nextState(ea);eu.update(ei,ea)}),eu._state},this.sendTo=function(ei,eo){var ea=eu.parent&&(eo===I4.Parent||eu.parent.id===eo),ec=ea?eu.parent:aE(eo)?eu.children.get(eo)||uu.get(eo):aP(eo)?eo:void 0;if(!ec){if(!ea)throw Error("Unable to send event to child '".concat(eo,"' from service '").concat(eu.id,"'."));sH||ab(!1,"Service '".concat(eu.id,"' has no parent: unable to send event ").concat(ei.type));return}"machine"in ec?(eu.status!==I8.Stopped||eu.parent!==ec||eu.state.done)&&ec.send(sj(sj({},ei),{name:ei.name===lS?"".concat(lH(eu.id)):ei.name,origin:eu.sessionId})):ec.send(ei.data)},this._exec=function(ei,eo,ea,ec){void 0===ec&&(ec=eu.machine.options.actions);var ed=ei.exec||lk(ei.type,ec),ef=aS(ed)?ed:ed?ed.exec:ei.exec;if(ef)try{return ef(eo,ea.data,eu.machine.config.predictableActionArguments?{action:ei,_event:ea}:{action:ei,state:eu.state,_event:ea})}catch(ei){throw eu.parent&&eu.parent.send({type:"xstate.error",data:ei}),ei}switch(ei.type){case lp:var eh=ei;if("number"==typeof eh.delay){eu.defer(eh);return}eh.to?eu.sendTo(eh._event,eh.to):eu.send(eh._event);break;case lg:eu.cancel(ei.sendId);break;case ld:if(eu.status!==I8.Running)return;var eg=ei.activity;if(!eu.machine.config.predictableActionArguments&&!eu.state.activities[eg.id||eg.type])break;if(eg.type===I5.Invoke){var em=aF(eg.src),eb=eu.machine.options.services?eu.machine.options.services[em.type]:void 0,ew=eg.id,e_=eg.data;sH||ab(!("forward"in eg),"`forward` property is deprecated (found in invocation of '".concat(eg.src,"' in in machine '").concat(eu.machine.id,"'). ")+"Please use `autoForward` instead.");var eS="autoForward"in eg?eg.autoForward:!!eg.forward;if(!eb){sH||ab(!1,"No service found for invocation '".concat(eg.src,"' in machine '").concat(eu.machine.id,"'."));return}var eE=e_?ao(e_,eo,ea):void 0;if("string"==typeof eb)return;var eA=aS(eb)?eb(eo,ea.data,{data:eE,src:em,meta:eg.meta}):eb;if(!eA)return;var eT=void 0;aI(eA)&&(eA=eE?eA.withContext(eE):eA,eT={autoForward:eS}),eu.spawn(eA,ew,eT)}else eu.spawnActivity(eg);break;case lf:eu.stopChild(ei.activity.id);break;case lv:var ek=ei.label,eC=ei.value;ek?eu.logger(ek,eC):eu.logger(eC);break;default:sH||ab(!1,"No implementation found for action type '".concat(ei.type,"'"))}};var ec=sj(sj({},ei.defaultOptions),ea),ed=ec.clock,ef=ec.logger,eh=ec.parent,eg=ec.id,em=void 0!==eg?eg:eo.id;this.id=em,this.logger=ef,this.clock=ed,this.parent=eh,this.options=ec,this.scheduler=new lQ({deferEvents:this.options.deferEvents}),this.sessionId=uu.bookId()}return Object.defineProperty(ei.prototype,"initialState",{get:function(){var ei=this;return this._initialState?this._initialState:l0(this,function(){return ei._initialState=ei.machine.initialState,ei._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(ei.prototype,"state",{get:function(){return sH||ab(this.status!==I8.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),ei.prototype.execute=function(ei,eo){var ea,eu;try{for(var ec=sL(ei.actions),ed=ec.next();!ed.done;ed=ec.next()){var ef=ed.value;this.exec(ef,ei,eo)}}catch(ei){ea={error:ei}}finally{try{ed&&!ed.done&&(eu=ec.return)&&eu.call(ec)}finally{if(ea)throw ea.error}}},ei.prototype.update=function(ei,eo){var ea,eu,ec,ed,ef,eh,eg,em,eb=this;if(ei._sessionid=this.sessionId,this._state=ei,(!this.machine.config.predictableActionArguments||eo===lT)&&this.options.execute&&this.execute(this.state),this.children.forEach(function(ei){eb.state.children[ei.id]=ei}),this.devTools&&this.devTools.send(eo.data,ei),ei.event)try{for(var ew=sL(this.eventListeners),e_=ew.next();!e_.done;e_=ew.next()){var eS=e_.value;eS(ei.event)}}catch(ei){ea={error:ei}}finally{try{e_&&!e_.done&&(eu=ew.return)&&eu.call(ew)}finally{if(ea)throw ea.error}}try{for(var eE=sL(this.listeners),eA=eE.next();!eA.done;eA=eE.next()){var eS=eA.value;eS(ei,ei.event)}}catch(ei){ec={error:ei}}finally{try{eA&&!eA.done&&(ed=eE.return)&&ed.call(eE)}finally{if(ec)throw ec.error}}try{for(var eT=sL(this.contextListeners),ek=eT.next();!ek.done;ek=eT.next())(0,ek.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(ei){ef={error:ei}}finally{try{ek&&!ek.done&&(eh=eT.return)&&eh.call(eT)}finally{if(ef)throw ef.error}}if(this.state.done){var eC=ei.configuration.find(function(ei){return"final"===ei.type&&ei.parent===eb.machine}),eO=eC&&eC.doneData?ao(eC.doneData,ei.context,eo):void 0;try{for(var eI=sL(this.doneListeners),eP=eI.next();!eP.done;eP=eI.next()){var eS=eP.value;eS(lq(this.id,eO))}}catch(ei){eg={error:ei}}finally{try{eP&&!eP.done&&(em=eI.return)&&em.call(eI)}finally{if(eg)throw eg.error}}this._stop()}},ei.prototype.onTransition=function(ei){return this.listeners.add(ei),this.status===I8.Running&&ei(this.state,this.state.event),this},ei.prototype.subscribe=function(ei,eo,ea){var eu=this,ec=aU(ei,eo,ea);this.listeners.add(ec.next),this.status!==I8.NotStarted&&ec.next(this.state);var ed=function(){eu.doneListeners.delete(ed),eu.stopListeners.delete(ed),ec.complete()};return this.status===I8.Stopped?ec.complete():(this.onDone(ed),this.onStop(ed)),{unsubscribe:function(){eu.listeners.delete(ec.next),eu.doneListeners.delete(ed),eu.stopListeners.delete(ed)}}},ei.prototype.onEvent=function(ei){return this.eventListeners.add(ei),this},ei.prototype.onSend=function(ei){return this.sendListeners.add(ei),this},ei.prototype.onChange=function(ei){return this.contextListeners.add(ei),this},ei.prototype.onStop=function(ei){return this.stopListeners.add(ei),this},ei.prototype.onDone=function(ei){return this.doneListeners.add(ei),this},ei.prototype.off=function(ei){return this.listeners.delete(ei),this.eventListeners.delete(ei),this.sendListeners.delete(ei),this.stopListeners.delete(ei),this.doneListeners.delete(ei),this.contextListeners.delete(ei),this},ei.prototype.start=function(ei){var eo=this;if(this.status===I8.Running)return this;this.machine._init(),uu.register(this.sessionId,this),this.initialized=!0,this.status=I8.Running;var ea=void 0===ei?this.initialState:l0(this,function(){return lY(ei)?eo.machine.resolveState(ei):eo.machine.resolveState(l$.from(ei,eo.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){eo.update(ea,lT)}),this},ei.prototype._stop=function(){var ei,eo,ea,eu,ec,ed,ef,eh,eg,em;try{for(var eb=sL(this.listeners),ew=eb.next();!ew.done;ew=eb.next()){var e_=ew.value;this.listeners.delete(e_)}}catch(eo){ei={error:eo}}finally{try{ew&&!ew.done&&(eo=eb.return)&&eo.call(eb)}finally{if(ei)throw ei.error}}try{for(var eS=sL(this.stopListeners),eE=eS.next();!eE.done;eE=eS.next()){var e_=eE.value;e_(),this.stopListeners.delete(e_)}}catch(ei){ea={error:ei}}finally{try{eE&&!eE.done&&(eu=eS.return)&&eu.call(eS)}finally{if(ea)throw ea.error}}try{for(var eA=sL(this.contextListeners),eT=eA.next();!eT.done;eT=eA.next()){var e_=eT.value;this.contextListeners.delete(e_)}}catch(ei){ec={error:ei}}finally{try{eT&&!eT.done&&(ed=eA.return)&&ed.call(eA)}finally{if(ec)throw ec.error}}try{for(var ek=sL(this.doneListeners),eC=ek.next();!eC.done;eC=ek.next()){var e_=eC.value;this.doneListeners.delete(e_)}}catch(ei){ef={error:ei}}finally{try{eC&&!eC.done&&(eh=ek.return)&&eh.call(ek)}finally{if(ef)throw ef.error}}if(!this.initialized)return this;this.initialized=!1,this.status=I8.Stopped,this._initialState=void 0;try{for(var eO=sL(Object.keys(this.delayedEventsMap)),eI=eO.next();!eI.done;eI=eO.next()){var eP=eI.value;this.clock.clearTimeout(this.delayedEventsMap[eP])}}catch(ei){eg={error:ei}}finally{try{eI&&!eI.done&&(em=eO.return)&&em.call(eO)}finally{if(eg)throw eg.error}}this.scheduler.clear(),this.scheduler=new lQ({deferEvents:this.options.deferEvents})},ei.prototype.stop=function(){var ei=this,eo=this.scheduler;return this._stop(),eo.schedule(function(){var eo=aN({type:"xstate.stop"}),ea=l0(ei,function(){var ea=s8(sB([],sF(ei.state.configuration),!1).sort(function(ei,eo){return eo.order-ei.order}).map(function(eo){return lO(eo.onExit,ei.machine.options.actions)})),eu=sF(lW(ei.machine,ei.state,ei.state.context,eo,ea,ei.machine.config.predictableActionArguments?ei._exec:void 0,ei.machine.config.predictableActionArguments||ei.machine.config.preserveActionOrder),2),ec=eu[0],ed=eu[1],ef=new l$({value:ei.state.value,context:ed,_event:eo,_sessionid:ei.sessionId,historyValue:void 0,history:ei.state,actions:ec.filter(function(ei){return ei.type!==lh&&(ei.type!==lp||!!ei.to&&ei.to!==I4.Internal)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:ei.state.done,tags:ei.state.tags,machine:ei.machine});return ef.changed=!0,ef});ei.update(ea,eo),ei.children.forEach(function(ei){aS(ei.stop)&&ei.stop()}),ei.children.clear(),uu.free(ei.sessionId)}),this},ei.prototype.batch=function(ei){var eo=this;if(this.status===I8.NotStarted&&this.options.deferEvents)sH||ab(!1,"".concat(ei.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==I8.Running)throw Error("".concat(ei.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));this.scheduler.schedule(function(){var ea,eu,ec=eo.state,ed=!1,ef=[],eh=function(ei){var ea=aN(ei);eo.forward(ea),ec=l0(eo,function(){return eo.machine.transition(ec,ea)}),ef.push.apply(ef,sB([],sF(ec.actions.map(function(ei){return lZ(ei,ec)})),!1)),ed=ed||!!ec.changed};try{for(var eg=sL(ei),em=eg.next();!em.done;em=eg.next()){var eb=em.value;eh(eb)}}catch(ei){ea={error:ei}}finally{try{em&&!em.done&&(eu=eg.return)&&eu.call(eg)}finally{if(ea)throw ea.error}}ec.changed=ed,ec.actions=ef,eo.update(ec,aN(ei[ei.length-1]))})},ei.prototype.sender=function(ei){return this.send.bind(this,ei)},ei.prototype._nextState=function(ei){var eo=this,ea=aN(ei);if(0===ea.name.indexOf(l_)&&!this.state.nextEvents.some(function(ei){return 0===ei.indexOf(l_)}))throw ea.data.data;return l0(this,function(){return eo.machine.transition(eo.state,ea,void 0,eo.machine.config.predictableActionArguments?eo._exec:void 0)})},ei.prototype.nextState=function(ei){return this._nextState(ei)},ei.prototype.forward=function(ei){var eo,ea;try{for(var eu=sL(this.forwardTo),ec=eu.next();!ec.done;ec=eu.next()){var ed=ec.value,ef=this.children.get(ed);if(!ef)throw Error("Unable to forward event '".concat(ei,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(ed,"'."));ef.send(ei)}}catch(ei){eo={error:ei}}finally{try{ec&&!ec.done&&(ea=eu.return)&&ea.call(eu)}finally{if(eo)throw eo.error}}},ei.prototype.defer=function(ei){var eo=this;this.delayedEventsMap[ei.id]=this.clock.setTimeout(function(){ei.to?eo.sendTo(ei._event,ei.to):eo.send(ei._event)},ei.delay)},ei.prototype.cancel=function(ei){this.clock.clearTimeout(this.delayedEventsMap[ei]),delete this.delayedEventsMap[ei]},ei.prototype.exec=function(ei,eo,ea){void 0===ea&&(ea=this.machine.options.actions),this._exec(ei,eo.context,eo._event,ea)},ei.prototype.removeChild=function(ei){var eo;this.children.delete(ei),this.forwardTo.delete(ei),null===(eo=this.state)||void 0===eo||delete eo.children[ei]},ei.prototype.stopChild=function(ei){var eo=this.children.get(ei);eo&&(this.removeChild(ei),aS(eo.stop)&&eo.stop())},ei.prototype.spawn=function(ei,eo,ea){if(this.status!==I8.Running)return l9(ei,eo);if(au(ei))return this.spawnPromise(Promise.resolve(ei),eo);if(aS(ei))return this.spawnCallback(ei,eo);if(ur(ei))return this.spawnActor(ei,eo);if(aC(ei))return this.spawnObservable(ei,eo);if(aI(ei))return this.spawnMachine(ei,sj(sj({},ea),{id:eo}));if(ac(ei))return this.spawnBehavior(ei,eo);throw Error('Unable to spawn entity "'.concat(eo,'" of type "').concat(typeof ei,'".'))},ei.prototype.spawnMachine=function(eo,ea){var eu=this;void 0===ea&&(ea={});var ec=new ei(eo,sj(sj({},this.options),{parent:this,id:ea.id||eo.id})),ed=sj(sj({},ug),ea);ed.sync&&ec.onTransition(function(ei){eu.send(lE,{state:ei,id:ec.id})});var ef=ec;return this.children.set(ec.id,ef),ed.autoForward&&this.forwardTo.add(ec.id),ec.onDone(function(ei){eu.removeChild(ec.id),eu.send(aN(ei,{origin:ec.id}))}).start(),ef},ei.prototype.spawnBehavior=function(ei,eo){var ea=uh(ei,{id:eo,parent:this});return this.children.set(eo,ea),ea},ei.prototype.spawnPromise=function(ei,eo){var ea,eu,ec=this,ed=!1;ei.then(function(ei){ed||(eu=ei,ec.removeChild(eo),ec.send(aN(lq(eo,ei),{origin:eo})))},function(ei){if(!ed){ec.removeChild(eo);var ea=lH(eo,ei);try{ec.send(aN(ea,{origin:eo}))}catch(eu){aR(ei,eu,eo),ec.devTools&&ec.devTools.send(ea,ec.state),ec.machine.strict&&ec.stop()}}});var ef=((ea={id:eo,send:function(){},subscribe:function(eo,ea,eu){var ec=aU(eo,ea,eu),ed=!1;return ei.then(function(ei){!ed&&(ec.next(ei),ed||ec.complete())},function(ei){ed||ec.error(ei)}),{unsubscribe:function(){return ed=!0}}},stop:function(){ed=!0},toJSON:function(){return{id:eo}},getSnapshot:function(){return eu}})[aO]=function(){return this},ea);return this.children.set(eo,ef),ef},ei.prototype.spawnCallback=function(ei,eo){var ea,eu,ec,ed=this,ef=!1,eh=new Set,eg=new Set,em=function(ei){eu=ei,eg.forEach(function(eo){return eo(ei)}),ef||ed.send(aN(ei,{origin:eo}))};try{ec=ei(em,function(ei){eh.add(ei)})}catch(ei){this.send(lH(eo,ei))}if(au(ec))return this.spawnPromise(ec,eo);var eb=((ea={id:eo,send:function(ei){return eh.forEach(function(eo){return eo(ei)})},subscribe:function(ei){var eo=aU(ei);return eg.add(eo.next),{unsubscribe:function(){eg.delete(eo.next)}}},stop:function(){ef=!0,aS(ec)&&ec()},toJSON:function(){return{id:eo}},getSnapshot:function(){return eu}})[aO]=function(){return this},ea);return this.children.set(eo,eb),eb},ei.prototype.spawnObservable=function(ei,eo){var ea,eu,ec=this,ed=ei.subscribe(function(ei){eu=ei,ec.send(aN(ei,{origin:eo}))},function(ei){ec.removeChild(eo),ec.send(aN(lH(eo,ei),{origin:eo}))},function(){ec.removeChild(eo),ec.send(aN(lq(eo),{origin:eo}))}),ef=((ea={id:eo,send:function(){},subscribe:function(eo,ea,eu){return ei.subscribe(eo,ea,eu)},stop:function(){return ed.unsubscribe()},getSnapshot:function(){return eu},toJSON:function(){return{id:eo}}})[aO]=function(){return this},ea);return this.children.set(eo,ef),ef},ei.prototype.spawnActor=function(ei,eo){return this.children.set(eo,ei),ei},ei.prototype.spawnActivity=function(ei){var eo=this.machine.options&&this.machine.options.activities?this.machine.options.activities[ei.type]:void 0;if(!eo){sH||ab(!1,"No implementation found for activity '".concat(ei.type,"'"));return}var ea=eo(this.state.context,ei);this.spawnEffect(ei.id,ea)},ei.prototype.spawnEffect=function(ei,eo){var ea;this.children.set(ei,((ea={id:ei,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:eo||void 0,getSnapshot:function(){},toJSON:function(){return{id:ei}}})[aO]=function(){return this},ea))},ei.prototype.attachDev=function(){var ei=uc();if(this.options.devTools&&ei){if(ei.__REDUX_DEVTOOLS_EXTENSION__){var eo="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=ei.__REDUX_DEVTOOLS_EXTENSION__.connect(sj(sj({name:this.id,autoPause:!0,stateSanitizer:function(ei){return{value:ei.value,context:ei.context,actions:ei.actions}}},eo),{features:sj({jump:!1,skip:!1},eo?eo.features:void 0)}),this.machine),this.devTools.init(this.state)}uf(this)}},ei.prototype.toJSON=function(){return{id:this.id}},ei.prototype[aO]=function(){return this},ei.prototype.getSnapshot=function(){return this.status===I8.NotStarted?this.initialState:this._state},ei.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(ei,eo){return setTimeout(ei,eo)},clearTimeout:function(ei){return clearTimeout(ei)}},logger:console.log.bind(console),devTools:!1},ei.interpret=uy,ei}();function uy(ei,eo){return new um(ei,eo)}var uv=eb.useLayoutEffect;function ub(ei){var eo=eb.useRef();return eo.current||(eo.current={v:ei()}),eo.current.v}var uw=function(){return(uw=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;eaeo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea},uS=function(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef};function uE(ei,eo){var ea=ub(function(){return"function"==typeof ei?ei():ei}),eu=eo.context,ec=eo.guards,ed=eo.actions,ef=eo.activities,eh=eo.services,eg=eo.delays,em=(eo.state,u_(eo,["context","guards","actions","activities","services","delays","state"])),eb=ub(function(){var ei={context:eu,guards:ec,actions:ed,activities:ef,services:eh,delays:eg};return uy(ea.withConfig(ei,function(){return uw(uw({},ea.context),eu)}),em)});return uv(function(){Object.assign(eb.machine.options.actions,ed),Object.assign(eb.machine.options.guards,ec),Object.assign(eb.machine.options.activities,ef),Object.assign(eb.machine.options.services,eh),Object.assign(eb.machine.options.delays,eg)},[ed,ec,ef,eh,eg]),eb}function ux(ei){for(var eo=[],ea=1;ea0||"boolean"==typeof eo.changed);return!(ea.changed||eu)}var uC=function(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef};function uO(ei){return ei}function uI(ei){for(var eo=[],ea=1;ea0;){var eo=eu.current.shift();ei.send(eo)}},[ei]),[eh,eg]}var uR=function(ei,eo){return ei===eo},uL=function(ei,eo){if(uT(ei)){if(0===ei.status&&eo.current)return eo.current;var ea=uA(ei);return eo.current=0===ei.status?ea:null,ea}return uD(ei)?ei.state:void 0};function uF(ei,eo,ea,eu){void 0===ea&&(ea=uR);var ec=(0,eb.useRef)(null),ed=(0,eb.useCallback)(function(eo){return ei.subscribe(eo).unsubscribe},[ei]),ef=(0,eb.useCallback)(function(){return eu?eu(ei):uL(ei,ec)},[ei,eu]);return(0,sM.useSyncExternalStoreWithSelector)(ed,ef,ef,eo,ea)}var uB=ea(8100),uU=ea(54084),uz=ea(91572);!function(ei){ei.AC="AC",ei.AD="AD",ei.AE="AE",ei.AF="AF",ei.AG="AG",ei.AI="AI",ei.AL="AL",ei.AM="AM",ei.AO="AO",ei.AQ="AQ",ei.AR="AR",ei.AS="AS",ei.AT="AT",ei.AU="AU",ei.AW="AW",ei.AX="AX",ei.AZ="AZ",ei.BA="BA",ei.BB="BB",ei.BD="BD",ei.BE="BE",ei.BF="BF",ei.BG="BG",ei.BH="BH",ei.BI="BI",ei.BJ="BJ",ei.BL="BL",ei.BM="BM",ei.BN="BN",ei.BO="BO",ei.BQ="BQ",ei.BR="BR",ei.BS="BS",ei.BT="BT",ei.BV="BV",ei.BW="BW",ei.BY="BY",ei.BZ="BZ",ei.CA="CA",ei.CC="CC",ei.CD="CD",ei.CF="CF",ei.CG="CG",ei.CH="CH",ei.CI="CI",ei.CK="CK",ei.CL="CL",ei.CM="CM",ei.CN="CN",ei.CO="CO",ei.CR="CR",ei.CU="CU",ei.CV="CV",ei.CW="CW",ei.CX="CX",ei.CY="CY",ei.CZ="CZ",ei.DE="DE",ei.DG="DG",ei.DJ="DJ",ei.DK="DK",ei.DM="DM",ei.DO="DO",ei.DZ="DZ",ei.EC="EC",ei.EE="EE",ei.EG="EG",ei.EH="EH",ei.ER="ER",ei.ES="ES",ei.ET="ET",ei.FI="FI",ei.FJ="FJ",ei.FK="FK",ei.FM="FM",ei.FO="FO",ei.FR="FR",ei.GA="GA",ei.GB="GB",ei.GD="GD",ei.GE="GE",ei.GF="GF",ei.GG="GG",ei.GH="GH",ei.GI="GI",ei.GL="GL",ei.GM="GM",ei.GN="GN",ei.GP="GP",ei.GQ="GQ",ei.GR="GR",ei.GS="GS",ei.GT="GT",ei.GU="GU",ei.GW="GW",ei.GY="GY",ei.HK="HK",ei.HM="HM",ei.HN="HN",ei.HR="HR",ei.HT="HT",ei.HU="HU",ei.ID="ID",ei.IE="IE",ei.IL="IL",ei.IM="IM",ei.IN="IN",ei.IO="IO",ei.IQ="IQ",ei.IR="IR",ei.IS="IS",ei.IT="IT",ei.JE="JE",ei.JM="JM",ei.JO="JO",ei.JP="JP",ei.KE="KE",ei.KG="KG",ei.KH="KH",ei.KI="KI",ei.KM="KM",ei.KN="KN",ei.KP="KP",ei.KR="KR",ei.KW="KW",ei.KY="KY",ei.KZ="KZ",ei.LA="LA",ei.LB="LB",ei.LC="LC",ei.LI="LI",ei.LK="LK",ei.LR="LR",ei.LS="LS",ei.LT="LT",ei.LU="LU",ei.LV="LV",ei.LY="LY",ei.MA="MA",ei.MC="MC",ei.MD="MD",ei.ME="ME",ei.MF="MF",ei.MG="MG",ei.MH="MH",ei.MK="MK",ei.ML="ML",ei.MM="MM",ei.MN="MN",ei.MO="MO",ei.MP="MP",ei.MQ="MQ",ei.MR="MR",ei.MS="MS",ei.MT="MT",ei.MU="MU",ei.MV="MV",ei.MW="MW",ei.MX="MX",ei.MY="MY",ei.MZ="MZ",ei.NA="NA",ei.NC="NC",ei.NE="NE",ei.NF="NF",ei.NG="NG",ei.NI="NI",ei.NL="NL",ei.NO="NO",ei.NP="NP",ei.NR="NR",ei.NU="NU",ei.NZ="NZ",ei.OM="OM",ei.PA="PA",ei.PE="PE",ei.PF="PF",ei.PG="PG",ei.PH="PH",ei.PK="PK",ei.PL="PL",ei.PM="PM",ei.PN="PN",ei.PR="PR",ei.PS="PS",ei.PT="PT",ei.PW="PW",ei.PY="PY",ei.QA="QA",ei.RE="RE",ei.RO="RO",ei.RS="RS",ei.RU="RU",ei.RW="RW",ei.SA="SA",ei.SB="SB",ei.SC="SC",ei.SD="SD",ei.SE="SE",ei.SG="SG",ei.SH="SH",ei.SI="SI",ei.SJ="SJ",ei.SK="SK",ei.SL="SL",ei.SM="SM",ei.SN="SN",ei.SO="SO",ei.SR="SR",ei.SS="SS",ei.ST="ST",ei.SV="SV",ei.SX="SX",ei.SY="SY",ei.SZ="SZ",ei.TA="TA",ei.TC="TC",ei.TD="TD",ei.TF="TF",ei.TG="TG",ei.TH="TH",ei.TJ="TJ",ei.TK="TK",ei.TL="TL",ei.TM="TM",ei.TN="TN",ei.TO="TO",ei.TR="TR",ei.TT="TT",ei.TV="TV",ei.TW="TW",ei.TZ="TZ",ei.UA="UA",ei.UG="UG",ei.UM="UM",ei.US="US",ei.UY="UY",ei.UZ="UZ",ei.VA="VA",ei.VC="VC",ei.VE="VE",ei.VG="VG",ei.VI="VI",ei.VN="VN",ei.VU="VU",ei.WF="WF",ei.WS="WS",ei.XK="XK",ei.YE="YE",ei.YT="YT",ei.ZA="ZA",ei.ZM="ZM",ei.ZW="ZW"}(I9||(I9={})),function(ei){ei.AFG="AFG",ei.ALA="ALA",ei.ALB="ALB",ei.DZA="DZA",ei.ASM="ASM",ei.AND="AND",ei.AGO="AGO",ei.AIA="AIA",ei.ATA="ATA",ei.ATG="ATG",ei.ARG="ARG",ei.ARM="ARM",ei.ABW="ABW",ei.AUS="AUS",ei.AUT="AUT",ei.AZE="AZE",ei.BHR="BHR",ei.BHS="BHS",ei.BGD="BGD",ei.BRB="BRB",ei.BLR="BLR",ei.BEL="BEL",ei.BLZ="BLZ",ei.BEN="BEN",ei.BMU="BMU",ei.BTN="BTN",ei.BOL="BOL",ei.BES="BES",ei.BIH="BIH",ei.BWA="BWA",ei.BVT="BVT",ei.BRA="BRA",ei.IOT="IOT",ei.BRN="BRN",ei.BGR="BGR",ei.BFA="BFA",ei.BDI="BDI",ei.KHM="KHM",ei.CMR="CMR",ei.CAN="CAN",ei.CPV="CPV",ei.CYM="CYM",ei.CAF="CAF",ei.TCD="TCD",ei.CHL="CHL",ei.CHN="CHN",ei.CXR="CXR",ei.CCK="CCK",ei.COL="COL",ei.COM="COM",ei.COG="COG",ei.COD="COD",ei.COK="COK",ei.CRI="CRI",ei.CIV="CIV",ei.HRV="HRV",ei.CUB="CUB",ei.CUW="CUW",ei.CYP="CYP",ei.CZE="CZE",ei.DNK="DNK",ei.DJI="DJI",ei.DMA="DMA",ei.DOM="DOM",ei.ECU="ECU",ei.EGY="EGY",ei.SLV="SLV",ei.GNQ="GNQ",ei.ERI="ERI",ei.EST="EST",ei.ETH="ETH",ei.FLK="FLK",ei.FRO="FRO",ei.FJI="FJI",ei.FIN="FIN",ei.FRA="FRA",ei.GUF="GUF",ei.PYF="PYF",ei.ATF="ATF",ei.GAB="GAB",ei.GMB="GMB",ei.GEO="GEO",ei.DEU="DEU",ei.GHA="GHA",ei.GIB="GIB",ei.GRC="GRC",ei.GRL="GRL",ei.GRD="GRD",ei.GLP="GLP",ei.GUM="GUM",ei.GTM="GTM",ei.GGY="GGY",ei.GIN="GIN",ei.GNB="GNB",ei.GUY="GUY",ei.HTI="HTI",ei.HMD="HMD",ei.VAT="VAT",ei.HND="HND",ei.HKG="HKG",ei.HUN="HUN",ei.ISL="ISL",ei.IND="IND",ei.IDN="IDN",ei.IRN="IRN",ei.IRQ="IRQ",ei.IRL="IRL",ei.IMN="IMN",ei.ISR="ISR",ei.ITA="ITA",ei.JAM="JAM",ei.JPN="JPN",ei.JEY="JEY",ei.JOR="JOR",ei.KAZ="KAZ",ei.KEN="KEN",ei.KIR="KIR",ei.PRK="PRK",ei.KOR="KOR",ei.KWT="KWT",ei.KGZ="KGZ",ei.LAO="LAO",ei.LVA="LVA",ei.LBN="LBN",ei.LSO="LSO",ei.LBR="LBR",ei.LBY="LBY",ei.LIE="LIE",ei.LTU="LTU",ei.LUX="LUX",ei.MAC="MAC",ei.MKD="MKD",ei.MDG="MDG",ei.MWI="MWI",ei.MYS="MYS",ei.MDV="MDV",ei.MLI="MLI",ei.MLT="MLT",ei.MHL="MHL",ei.MTQ="MTQ",ei.MRT="MRT",ei.MUS="MUS",ei.MYT="MYT",ei.MEX="MEX",ei.FSM="FSM",ei.MDA="MDA",ei.MCO="MCO",ei.MNG="MNG",ei.MNE="MNE",ei.MSR="MSR",ei.MAR="MAR",ei.MOZ="MOZ",ei.MMR="MMR",ei.NAM="NAM",ei.NRU="NRU",ei.NPL="NPL",ei.NLD="NLD",ei.NCL="NCL",ei.NZL="NZL",ei.NIC="NIC",ei.NER="NER",ei.NGA="NGA",ei.NIU="NIU",ei.NFK="NFK",ei.MNP="MNP",ei.NOR="NOR",ei.OMN="OMN",ei.PAK="PAK",ei.PLW="PLW",ei.PSE="PSE",ei.PAN="PAN",ei.PNG="PNG",ei.PRY="PRY",ei.PER="PER",ei.PHL="PHL",ei.PCN="PCN",ei.POL="POL",ei.PRT="PRT",ei.PRI="PRI",ei.QAT="QAT",ei.REU="REU",ei.ROU="ROU",ei.RUS="RUS",ei.RWA="RWA",ei.BLM="BLM",ei.SHN="SHN",ei.KNA="KNA",ei.LCA="LCA",ei.MAF="MAF",ei.SPM="SPM",ei.VCT="VCT",ei.WSM="WSM",ei.SMR="SMR",ei.STP="STP",ei.SAU="SAU",ei.SEN="SEN",ei.SRB="SRB",ei.SYC="SYC",ei.SLE="SLE",ei.SGP="SGP",ei.SXM="SXM",ei.SVK="SVK",ei.SVN="SVN",ei.SLB="SLB",ei.SOM="SOM",ei.ZAF="ZAF",ei.SGS="SGS",ei.SSD="SSD",ei.ESP="ESP",ei.LKA="LKA",ei.SDN="SDN",ei.SUR="SUR",ei.SJM="SJM",ei.SWZ="SWZ",ei.SWE="SWE",ei.CHE="CHE",ei.SYR="SYR",ei.TWN="TWN",ei.TJK="TJK",ei.TZA="TZA",ei.THA="THA",ei.TLS="TLS",ei.TGO="TGO",ei.TKL="TKL",ei.TON="TON",ei.TTO="TTO",ei.TUN="TUN",ei.TUR="TUR",ei.TKM="TKM",ei.TCA="TCA",ei.TUV="TUV",ei.UGA="UGA",ei.UKR="UKR",ei.ARE="ARE",ei.GBR="GBR",ei.USA="USA",ei.UMI="UMI",ei.URY="URY",ei.UZB="UZB",ei.VUT="VUT",ei.VEN="VEN",ei.VNM="VNM",ei.VGB="VGB",ei.VIR="VIR",ei.WLF="WLF",ei.ESH="ESH",ei.YEM="YEM",ei.ZMB="ZMB",ei.ZWE="ZWE",ei.XKX="XKX"}(I7||(I7={}));let uG={[I9.AC]:{name:"AscensionIsland",code:I9.AC,callingCodes:[247]},[I9.AD]:{name:"Andorra",code:I9.AD,callingCodes:[376],codeLong:I7.AND},[I9.AE]:{name:"UnitedArabEmirates",code:I9.AE,callingCodes:[971],codeLong:I7.ARE},[I9.AF]:{name:"Afghanistan",code:I9.AF,callingCodes:[93],codeLong:I7.AFG},[I9.AG]:{name:"AntiguaandBarbuda",code:I9.AG,callingCodes:[1],codeLong:I7.ATG},[I9.AI]:{name:"Anguilla",code:I9.AI,callingCodes:[1],codeLong:I7.AIA},[I9.AL]:{name:"Albania",code:I9.AL,callingCodes:[355],codeLong:I7.ALB},[I9.AM]:{name:"Armenia",code:I9.AM,callingCodes:[374],codeLong:I7.ARM},[I9.AO]:{name:"Angola",code:I9.AO,callingCodes:[244],codeLong:I7.AGO},[I9.AQ]:{name:"Antarctica",code:I9.AQ,callingCodes:[672],codeLong:I7.ATA},[I9.AR]:{name:"Argentina",code:I9.AR,callingCodes:[54],codeLong:I7.ARG},[I9.AS]:{name:"AmericanSamoa",code:I9.AS,callingCodes:[1],codeLong:I7.ASM},[I9.AT]:{name:"Austria",code:I9.AT,callingCodes:[43],codeLong:I7.AUT},[I9.AU]:{name:"Australia",code:I9.AU,callingCodes:[61],codeLong:I7.AUS},[I9.AW]:{name:"Aruba",code:I9.AW,callingCodes:[297],codeLong:I7.ABW},[I9.AX]:{name:"\xc5landIslands",code:I9.AX,callingCodes:[358],codeLong:I7.ALA},[I9.AZ]:{name:"Azerbaijan",code:I9.AZ,callingCodes:[994],codeLong:I7.AZE},[I9.BA]:{name:"BosniaandHerzegovina",code:I9.BA,callingCodes:[387],codeLong:I7.BIH},[I9.BB]:{name:"Barbados",code:I9.BB,callingCodes:[1],codeLong:I7.BRB},[I9.BD]:{name:"Bangladesh",code:I9.BD,callingCodes:[880],codeLong:I7.BGD},[I9.BE]:{name:"Belgium",code:I9.BE,callingCodes:[32],codeLong:I7.BEL},[I9.BF]:{name:"BurkinaFaso",code:I9.BF,callingCodes:[226],codeLong:I7.BFA},[I9.BG]:{name:"Bulgaria",code:I9.BG,callingCodes:[359],codeLong:I7.BGR},[I9.BH]:{name:"Bahrain",code:I9.BH,callingCodes:[973],codeLong:I7.BHR},[I9.BI]:{name:"Burundi",code:I9.BI,callingCodes:[257],codeLong:I7.BDI},[I9.BJ]:{name:"Benin",code:I9.BJ,callingCodes:[229],codeLong:I7.BEN},[I9.BL]:{name:"SaintBarth\xe9lemy",code:I9.BL,callingCodes:[590],codeLong:I7.BLM},[I9.BM]:{name:"Bermuda",code:I9.BM,callingCodes:[1],codeLong:I7.BMU},[I9.BN]:{name:"Brunei",code:I9.BN,callingCodes:[673],codeLong:I7.BRN},[I9.BO]:{name:"Bolivia",code:I9.BO,callingCodes:[591],codeLong:I7.BOL},[I9.BQ]:{name:"CaribbeanNetherlands",code:I9.BQ,callingCodes:[599],codeLong:I7.BES},[I9.BR]:{name:"Brazil",code:I9.BR,callingCodes:[55],codeLong:I7.BRA},[I9.BS]:{name:"Bahamas",code:I9.BS,callingCodes:[1],codeLong:I7.BHS},[I9.BT]:{name:"Bhutan",code:I9.BT,callingCodes:[975],codeLong:I7.BTN},[I9.BV]:{name:"BouvetIsland",code:I9.BV,callingCodes:[47],codeLong:I7.BVT},[I9.BW]:{name:"Botswana",code:I9.BW,callingCodes:[267],codeLong:I7.BWA},[I9.BY]:{name:"Belarus",code:I9.BY,callingCodes:[375],codeLong:I7.BLR},[I9.BZ]:{name:"Belize",code:I9.BZ,callingCodes:[501],codeLong:I7.BLZ},[I9.CA]:{name:"Canada",code:I9.CA,callingCodes:[1],codeLong:I7.CAN},[I9.CC]:{name:"CocosKeelingIslands",code:I9.CC,callingCodes:[61],codeLong:I7.CCK},[I9.CD]:{name:"CongoKinshasa",code:I9.CD,callingCodes:[243],codeLong:I7.COD,alternateTerms:["DRC"]},[I9.CF]:{name:"CentralAfricanRepublic",code:I9.CF,callingCodes:[236],codeLong:I7.CAF},[I9.CG]:{name:"CongoBrazzaville",code:I9.CG,callingCodes:[242],codeLong:I7.COG},[I9.CH]:{name:"Switzerland",code:I9.CH,callingCodes:[41],codeLong:I7.CHE},[I9.CI]:{name:"C\xf4tedIvoire",code:I9.CI,callingCodes:[225],codeLong:I7.CIV},[I9.CK]:{name:"CookIslands",code:I9.CK,callingCodes:[682],codeLong:I7.COK},[I9.CL]:{name:"Chile",code:I9.CL,callingCodes:[56],codeLong:I7.CHL},[I9.CM]:{name:"Cameroon",code:I9.CM,callingCodes:[237],codeLong:I7.CMR},[I9.CN]:{name:"China",code:I9.CN,callingCodes:[86],codeLong:I7.CHN},[I9.CO]:{name:"Colombia",code:I9.CO,callingCodes:[57],codeLong:I7.COL},[I9.CR]:{name:"CostaRica",code:I9.CR,callingCodes:[506],codeLong:I7.CRI},[I9.CU]:{name:"Cuba",code:I9.CU,callingCodes:[53],codeLong:I7.CUB},[I9.CV]:{name:"CapeVerde",code:I9.CV,callingCodes:[238],codeLong:I7.CPV},[I9.CW]:{name:"Cura\xe7ao",code:I9.CW,callingCodes:[599],codeLong:I7.CUW},[I9.CX]:{name:"ChristmasIsland",code:I9.CX,callingCodes:[61],codeLong:I7.CXR},[I9.CY]:{name:"Cyprus",code:I9.CY,callingCodes:[357],codeLong:I7.CYP},[I9.CZ]:{name:"CzechRepublic",code:I9.CZ,callingCodes:[420],codeLong:I7.CZE},[I9.DE]:{name:"Germany",code:I9.DE,callingCodes:[49],codeLong:I7.DEU},[I9.DG]:{name:"DiegoGarcia",code:I9.DG,callingCodes:[246]},[I9.DJ]:{name:"Djibouti",code:I9.DJ,callingCodes:[253],codeLong:I7.DJI},[I9.DK]:{name:"Denmark",code:I9.DK,callingCodes:[45],codeLong:I7.DNK},[I9.DM]:{name:"Dominica",code:I9.DM,callingCodes:[1],codeLong:I7.DMA},[I9.DO]:{name:"DominicanRepublic",code:I9.DO,callingCodes:[1],codeLong:I7.DOM},[I9.DZ]:{name:"Algeria",code:I9.DZ,callingCodes:[213],codeLong:I7.DZA},[I9.EC]:{name:"Ecuador",code:I9.EC,callingCodes:[593],codeLong:I7.ECU},[I9.EE]:{name:"Estonia",code:I9.EE,callingCodes:[372],codeLong:I7.EST},[I9.EG]:{name:"Egypt",code:I9.EG,callingCodes:[20],codeLong:I7.EGY},[I9.EH]:{name:"WesternSahara",code:I9.EH,callingCodes:[212],codeLong:I7.ESH},[I9.ER]:{name:"Eritrea",code:I9.ER,callingCodes:[291],codeLong:I7.ERI},[I9.ES]:{name:"Spain",code:I9.ES,callingCodes:[34],codeLong:I7.ESP},[I9.ET]:{name:"Ethiopia",code:I9.ET,callingCodes:[251],codeLong:I7.ETH},[I9.FI]:{name:"Finland",code:I9.FI,callingCodes:[358],codeLong:I7.FIN},[I9.FJ]:{name:"Fiji",code:I9.FJ,callingCodes:[679],codeLong:I7.FJI},[I9.FK]:{name:"FalklandIslands",code:I9.FK,callingCodes:[500],codeLong:I7.FLK},[I9.FM]:{name:"Micronesia",code:I9.FM,callingCodes:[691],codeLong:I7.FSM},[I9.FO]:{name:"FaroeIslands",code:I9.FO,callingCodes:[298],codeLong:I7.FRO},[I9.FR]:{name:"France",code:I9.FR,callingCodes:[33],codeLong:I7.FRA},[I9.GA]:{name:"Gabon",code:I9.GA,callingCodes:[241],codeLong:I7.GAB},[I9.GB]:{name:"UnitedKingdom",code:I9.GB,callingCodes:[44],codeLong:I7.GBR,alternateTerms:["UK","Great Britain","Britain","England"]},[I9.GD]:{name:"Grenada",code:I9.GD,callingCodes:[1],codeLong:I7.GRD},[I9.GE]:{name:"Georgia",code:I9.GE,callingCodes:[995],codeLong:I7.GEO},[I9.GF]:{name:"FrenchGuiana",code:I9.GF,callingCodes:[594],codeLong:I7.GUF},[I9.GG]:{name:"Guernsey",code:I9.GG,callingCodes:[44],codeLong:I7.GGY},[I9.GH]:{name:"Ghana",code:I9.GH,callingCodes:[233],codeLong:I7.GHA},[I9.GI]:{name:"Gibraltar",code:I9.GI,callingCodes:[350],codeLong:I7.GIB},[I9.GL]:{name:"Greenland",code:I9.GL,callingCodes:[299],codeLong:I7.GRL},[I9.GM]:{name:"Gambia",code:I9.GM,callingCodes:[220],codeLong:I7.GMB},[I9.GN]:{name:"Guinea",code:I9.GN,callingCodes:[224],codeLong:I7.GIN},[I9.GP]:{name:"Guadeloupe",code:I9.GP,callingCodes:[590],codeLong:I7.GLP},[I9.GQ]:{name:"EquatorialGuinea",code:I9.GQ,callingCodes:[240],codeLong:I7.GNQ},[I9.GR]:{name:"Greece",code:I9.GR,callingCodes:[30],codeLong:I7.GRC},[I9.GS]:{name:"SouthGeorgiaandtheSouthSandwichIslands",code:I9.GS,callingCodes:[500],codeLong:I7.SGS},[I9.GT]:{name:"Guatemala",code:I9.GT,callingCodes:[502],codeLong:I7.GTM},[I9.GU]:{name:"Guam",code:I9.GU,callingCodes:[1],codeLong:I7.GUM},[I9.GW]:{name:"GuineaBissau",code:I9.GW,callingCodes:[245],codeLong:I7.GNB},[I9.GY]:{name:"Guyana",code:I9.GY,callingCodes:[592],codeLong:I7.GUY},[I9.HK]:{name:"HongKongSARChina",code:I9.HK,callingCodes:[852],codeLong:I7.HKG},[I9.HM]:{name:"HeardIslandandMcDonaldIslands",code:I9.HM,callingCodes:[672],codeLong:I7.HMD},[I9.HN]:{name:"Honduras",code:I9.HN,callingCodes:[504],codeLong:I7.HND},[I9.HR]:{name:"Croatia",code:I9.HR,callingCodes:[385],codeLong:I7.HRV},[I9.HT]:{name:"Haiti",code:I9.HT,callingCodes:[509],codeLong:I7.HTI},[I9.HU]:{name:"Hungary",code:I9.HU,callingCodes:[36],codeLong:I7.HUN},[I9.ID]:{name:"Indonesia",code:I9.ID,callingCodes:[62],codeLong:I7.IDN},[I9.IE]:{name:"Ireland",code:I9.IE,callingCodes:[353],codeLong:I7.IRL},[I9.IL]:{name:"Israel",code:I9.IL,callingCodes:[972],codeLong:I7.ISR},[I9.IM]:{name:"IsleofMan",code:I9.IM,callingCodes:[44],codeLong:I7.IMN},[I9.IN]:{name:"India",code:I9.IN,callingCodes:[91],codeLong:I7.IND},[I9.IO]:{name:"BritishIndianOceanTerritory",code:I9.IO,callingCodes:[246],codeLong:I7.IOT},[I9.IQ]:{name:"Iraq",code:I9.IQ,callingCodes:[964],codeLong:I7.IRQ},[I9.IR]:{name:"Iran",code:I9.IR,callingCodes:[98],codeLong:I7.IRN},[I9.IS]:{name:"Iceland",code:I9.IS,callingCodes:[354],codeLong:I7.ISL},[I9.IT]:{name:"Italy",code:I9.IT,callingCodes:[39],codeLong:I7.ITA},[I9.JE]:{name:"Jersey",code:I9.JE,callingCodes:[44],codeLong:I7.JEY},[I9.JM]:{name:"Jamaica",code:I9.JM,callingCodes:[1],codeLong:I7.JAM},[I9.JO]:{name:"Jordan",code:I9.JO,callingCodes:[962],codeLong:I7.JOR},[I9.JP]:{name:"Japan",code:I9.JP,callingCodes:[81],codeLong:I7.JPN,alternateTerms:["日本","にほん"]},[I9.KE]:{name:"Kenya",code:I9.KE,callingCodes:[254],codeLong:I7.KEN},[I9.KG]:{name:"Kyrgyzstan",code:I9.KG,callingCodes:[996],codeLong:I7.KGZ},[I9.KH]:{name:"Cambodia",code:I9.KH,callingCodes:[855],codeLong:I7.KHM},[I9.KI]:{name:"Kiribati",code:I9.KI,callingCodes:[686],codeLong:I7.KIR},[I9.KM]:{name:"Comoros",code:I9.KM,callingCodes:[269],codeLong:I7.COM},[I9.KN]:{name:"SaintKittsandNevis",code:I9.KN,callingCodes:[1],codeLong:I7.KNA},[I9.KP]:{name:"NorthKorea",code:I9.KP,callingCodes:[850],codeLong:I7.PRK},[I9.KR]:{name:"SouthKorea",code:I9.KR,callingCodes:[82],codeLong:I7.KOR},[I9.KW]:{name:"Kuwait",code:I9.KW,callingCodes:[965],codeLong:I7.KWT},[I9.KY]:{name:"CaymanIslands",code:I9.KY,callingCodes:[1],codeLong:I7.CYM},[I9.KZ]:{name:"Kazakhstan",code:I9.KZ,callingCodes:[7],codeLong:I7.KAZ},[I9.LA]:{name:"Laos",code:I9.LA,callingCodes:[856],codeLong:I7.LAO},[I9.LB]:{name:"Lebanon",code:I9.LB,callingCodes:[961],codeLong:I7.LBN},[I9.LC]:{name:"SaintLucia",code:I9.LC,callingCodes:[1],codeLong:I7.LCA},[I9.LI]:{name:"Liechtenstein",code:I9.LI,callingCodes:[423],codeLong:I7.LIE},[I9.LK]:{name:"SriLanka",code:I9.LK,callingCodes:[94],codeLong:I7.LKA},[I9.LR]:{name:"Liberia",code:I9.LR,callingCodes:[231],codeLong:I7.LBR},[I9.LS]:{name:"Lesotho",code:I9.LS,callingCodes:[266],codeLong:I7.LSO},[I9.LT]:{name:"Lithuania",code:I9.LT,callingCodes:[370],codeLong:I7.LTU},[I9.LU]:{name:"Luxembourg",code:I9.LU,callingCodes:[352],codeLong:I7.LUX},[I9.LV]:{name:"Latvia",code:I9.LV,callingCodes:[371],codeLong:I7.LVA},[I9.LY]:{name:"Libya",code:I9.LY,callingCodes:[218],codeLong:I7.LBY},[I9.MA]:{name:"Morocco",code:I9.MA,callingCodes:[212],codeLong:I7.MAR},[I9.MC]:{name:"Monaco",code:I9.MC,callingCodes:[377],codeLong:I7.MCO},[I9.MD]:{name:"Moldova",code:I9.MD,callingCodes:[373],codeLong:I7.MDA},[I9.ME]:{name:"Montenegro",code:I9.ME,callingCodes:[382],codeLong:I7.MNE},[I9.MF]:{name:"SaintMartin",code:I9.MF,callingCodes:[590],codeLong:I7.MAF},[I9.MG]:{name:"Madagascar",code:I9.MG,callingCodes:[261],codeLong:I7.MDG},[I9.MH]:{name:"MarshallIslands",code:I9.MH,callingCodes:[692],codeLong:I7.MHL},[I9.MK]:{name:"Macedonia",code:I9.MK,callingCodes:[389],codeLong:I7.MKD},[I9.ML]:{name:"Mali",code:I9.ML,callingCodes:[223],codeLong:I7.MLI},[I9.MM]:{name:"MyanmarBurma",code:I9.MM,callingCodes:[95],codeLong:I7.MMR},[I9.MN]:{name:"Mongolia",code:I9.MN,callingCodes:[976],codeLong:I7.MNG},[I9.MO]:{name:"MacauSARChina",code:I9.MO,callingCodes:[853],codeLong:I7.MAC},[I9.MP]:{name:"NorthernMarianaIslands",code:I9.MP,callingCodes:[1],codeLong:I7.MNP},[I9.MQ]:{name:"Martinique",code:I9.MQ,callingCodes:[596],codeLong:I7.MTQ},[I9.MR]:{name:"Mauritania",code:I9.MR,callingCodes:[222],codeLong:I7.MRT},[I9.MS]:{name:"Montserrat",code:I9.MS,callingCodes:[1],codeLong:I7.MSR},[I9.MT]:{name:"Malta",code:I9.MT,callingCodes:[356],codeLong:I7.MLT},[I9.MU]:{name:"Mauritius",code:I9.MU,callingCodes:[230],codeLong:I7.MUS},[I9.MV]:{name:"Maldives",code:I9.MV,callingCodes:[960],codeLong:I7.MDV},[I9.MW]:{name:"Malawi",code:I9.MW,callingCodes:[265],codeLong:I7.MWI},[I9.MX]:{name:"Mexico",code:I9.MX,callingCodes:[52],codeLong:I7.MEX},[I9.MY]:{name:"Malaysia",code:I9.MY,callingCodes:[60],codeLong:I7.MYS},[I9.MZ]:{name:"Mozambique",code:I9.MZ,callingCodes:[258],codeLong:I7.MOZ},[I9.NA]:{name:"Namibia",code:I9.NA,callingCodes:[264],codeLong:I7.NAM},[I9.NC]:{name:"NewCaledonia",code:I9.NC,callingCodes:[687],codeLong:I7.NCL},[I9.NE]:{name:"Niger",code:I9.NE,callingCodes:[227],codeLong:I7.NER},[I9.NF]:{name:"NorfolkIsland",code:I9.NF,callingCodes:[672],codeLong:I7.NFK},[I9.NG]:{name:"Nigeria",code:I9.NG,callingCodes:[234],codeLong:I7.NGA},[I9.NI]:{name:"Nicaragua",code:I9.NI,callingCodes:[505],codeLong:I7.NIC},[I9.NL]:{name:"Netherlands",code:I9.NL,callingCodes:[31],codeLong:I7.NLD},[I9.NO]:{name:"Norway",code:I9.NO,callingCodes:[47],codeLong:I7.NOR},[I9.NP]:{name:"Nepal",code:I9.NP,callingCodes:[977],codeLong:I7.NPL},[I9.NR]:{name:"Nauru",code:I9.NR,callingCodes:[674],codeLong:I7.NRU},[I9.NU]:{name:"Niue",code:I9.NU,callingCodes:[683],codeLong:I7.NIU},[I9.NZ]:{name:"NewZealand",code:I9.NZ,callingCodes:[64],codeLong:I7.NZL},[I9.OM]:{name:"Oman",code:I9.OM,callingCodes:[968],codeLong:I7.OMN},[I9.PA]:{name:"Panama",code:I9.PA,callingCodes:[507],codeLong:I7.PAN},[I9.PE]:{name:"Peru",code:I9.PE,callingCodes:[51],codeLong:I7.PER},[I9.PF]:{name:"FrenchPolynesia",code:I9.PF,callingCodes:[689],codeLong:I7.PYF},[I9.PG]:{name:"PapuaNewGuinea",code:I9.PG,callingCodes:[675],codeLong:I7.PNG},[I9.PH]:{name:"Philippines",code:I9.PH,callingCodes:[63],codeLong:I7.PHL},[I9.PK]:{name:"Pakistan",code:I9.PK,callingCodes:[92],codeLong:I7.PAK},[I9.PL]:{name:"Poland",code:I9.PL,callingCodes:[48],codeLong:I7.POL},[I9.PM]:{name:"SaintPierreandMiquelon",code:I9.PM,callingCodes:[508],codeLong:I7.SPM},[I9.PN]:{name:"PitcairnIslands",code:I9.PN,callingCodes:[64],codeLong:I7.PCN},[I9.PR]:{name:"PuertoRico",code:I9.PR,callingCodes:[1],codeLong:I7.PRI},[I9.PS]:{name:"PalestinianTerritories",code:I9.PS,callingCodes:[970,972],codeLong:I7.PSE},[I9.PT]:{name:"Portugal",code:I9.PT,callingCodes:[351],codeLong:I7.PRT},[I9.PW]:{name:"Palau",code:I9.PW,callingCodes:[680],codeLong:I7.PLW},[I9.PY]:{name:"Paraguay",code:I9.PY,callingCodes:[595],codeLong:I7.PRY},[I9.QA]:{name:"Qatar",code:I9.QA,callingCodes:[974],codeLong:I7.QAT},[I9.RE]:{name:"R\xe9union",code:I9.RE,callingCodes:[262],codeLong:I7.REU},[I9.RO]:{name:"Romania",code:I9.RO,callingCodes:[40],codeLong:I7.ROU},[I9.RS]:{name:"Serbia",code:I9.RS,callingCodes:[381],codeLong:I7.SRB},[I9.RU]:{name:"Russia",code:I9.RU,callingCodes:[7],codeLong:I7.RUS},[I9.RW]:{name:"Rwanda",code:I9.RW,callingCodes:[250],codeLong:I7.RWA},[I9.SA]:{name:"SaudiArabia",code:I9.SA,callingCodes:[966],codeLong:I7.SAU},[I9.SB]:{name:"SolomonIslands",code:I9.SB,callingCodes:[677],codeLong:I7.SLB},[I9.SC]:{name:"Seychelles",code:I9.SC,callingCodes:[248],codeLong:I7.SYC},[I9.SD]:{name:"Sudan",code:I9.SD,callingCodes:[249],codeLong:I7.SDN},[I9.SE]:{name:"Sweden",code:I9.SE,callingCodes:[46],codeLong:I7.SWE},[I9.SG]:{name:"Singapore",code:I9.SG,callingCodes:[65],codeLong:I7.SGP},[I9.SH]:{name:"SaintHelena",code:I9.SH,callingCodes:[290],codeLong:I7.SHN},[I9.SI]:{name:"Slovenia",code:I9.SI,callingCodes:[386],codeLong:I7.SVN},[I9.SJ]:{name:"SvalbardandJanMayen",code:I9.SJ,callingCodes:[47],codeLong:I7.SJM},[I9.SK]:{name:"Slovakia",code:I9.SK,callingCodes:[421],codeLong:I7.SVK},[I9.SL]:{name:"SierraLeone",code:I9.SL,callingCodes:[232],codeLong:I7.SLE},[I9.SM]:{name:"SanMarino",code:I9.SM,callingCodes:[378],codeLong:I7.SMR},[I9.SN]:{name:"Senegal",code:I9.SN,callingCodes:[221],codeLong:I7.SEN},[I9.SO]:{name:"Somalia",code:I9.SO,callingCodes:[252],codeLong:I7.SOM},[I9.SR]:{name:"Suriname",code:I9.SR,callingCodes:[597],codeLong:I7.SUR},[I9.SS]:{name:"SouthSudan",code:I9.SS,callingCodes:[211],codeLong:I7.SSD},[I9.ST]:{name:"S\xe3oTom\xe9andPr\xedncipe",code:I9.ST,callingCodes:[239],codeLong:I7.STP},[I9.SV]:{name:"ElSalvador",code:I9.SV,callingCodes:[503],codeLong:I7.SLV},[I9.SX]:{name:"SintMaarten",code:I9.SX,callingCodes:[1],codeLong:I7.SXM},[I9.SY]:{name:"Syria",code:I9.SY,callingCodes:[963],codeLong:I7.SYR},[I9.SZ]:{name:"Swaziland",code:I9.SZ,callingCodes:[268],codeLong:I7.SWZ},[I9.TA]:{name:"TristandaCunha",code:I9.TA,callingCodes:[290]},[I9.TC]:{name:"TurksandCaicosIslands",code:I9.TC,callingCodes:[1],codeLong:I7.TCA},[I9.TD]:{name:"Chad",code:I9.TD,callingCodes:[235],codeLong:I7.TCD},[I9.TF]:{name:"FrenchSouthernTerritories",code:I9.TF,callingCodes:[262],codeLong:I7.ATF},[I9.TG]:{name:"Togo",code:I9.TG,callingCodes:[228],codeLong:I7.TGO},[I9.TH]:{name:"Thailand",code:I9.TH,callingCodes:[66],codeLong:I7.THA},[I9.TJ]:{name:"Tajikistan",code:I9.TJ,callingCodes:[992],codeLong:I7.TJK},[I9.TK]:{name:"Tokelau",code:I9.TK,callingCodes:[690],codeLong:I7.TKL},[I9.TL]:{name:"TimorLeste",code:I9.TL,callingCodes:[670],codeLong:I7.TLS},[I9.TM]:{name:"Turkmenistan",code:I9.TM,callingCodes:[993],codeLong:I7.TKM},[I9.TN]:{name:"Tunisia",code:I9.TN,callingCodes:[216],codeLong:I7.TUN},[I9.TO]:{name:"Tonga",code:I9.TO,callingCodes:[676],codeLong:I7.TON},[I9.TR]:{name:"Turkey",code:I9.TR,callingCodes:[90],codeLong:I7.TUR},[I9.TT]:{name:"TrinidadandTobago",code:I9.TT,callingCodes:[1],codeLong:I7.TTO},[I9.TV]:{name:"Tuvalu",code:I9.TV,callingCodes:[688],codeLong:I7.TUV},[I9.TW]:{name:"Taiwan",code:I9.TW,callingCodes:[886],codeLong:I7.TWN},[I9.TZ]:{name:"Tanzania",code:I9.TZ,callingCodes:[255],codeLong:I7.TZA},[I9.UA]:{name:"Ukraine",code:I9.UA,callingCodes:[380],codeLong:I7.UKR},[I9.UG]:{name:"Uganda",code:I9.UG,callingCodes:[256],codeLong:I7.UGA},[I9.UM]:{name:"USOutlyingIslands",code:I9.UM,callingCodes:[1],codeLong:I7.UMI},[I9.US]:{name:"UnitedStates",code:I9.US,callingCodes:[1],codeLong:I7.USA,alternateTerms:["America"]},[I9.UY]:{name:"Uruguay",code:I9.UY,callingCodes:[598],codeLong:I7.URY},[I9.UZ]:{name:"Uzbekistan",code:I9.UZ,callingCodes:[998],codeLong:I7.UZB},[I9.VA]:{name:"VaticanCity",code:I9.VA,callingCodes:[39],codeLong:I7.VAT},[I9.VC]:{name:"SaintVincentandtheGrenadines",code:I9.VC,callingCodes:[1],codeLong:I7.VCT},[I9.VE]:{name:"Venezuela",code:I9.VE,callingCodes:[58],codeLong:I7.VEN},[I9.VG]:{name:"BritishVirginIslands",code:I9.VG,callingCodes:[1],codeLong:I7.VGB},[I9.VI]:{name:"USVirginIslands",code:I9.VI,callingCodes:[1],codeLong:I7.VIR},[I9.VN]:{name:"Vietnam",code:I9.VN,callingCodes:[84],codeLong:I7.VNM},[I9.VU]:{name:"Vanuatu",code:I9.VU,callingCodes:[678],codeLong:I7.VUT},[I9.WF]:{name:"WallisandFutuna",code:I9.WF,callingCodes:[681],codeLong:I7.WLF},[I9.WS]:{name:"Samoa",code:I9.WS,callingCodes:[685],codeLong:I7.WSM},[I9.XK]:{name:"Kosovo",code:I9.XK,callingCodes:[377,381,386,383],codeLong:I7.XKX},[I9.YE]:{name:"Yemen",code:I9.YE,callingCodes:[967],codeLong:I7.YEM},[I9.YT]:{name:"Mayotte",code:I9.YT,callingCodes:[262],codeLong:I7.MYT},[I9.ZA]:{name:"SouthAfrica",code:I9.ZA,callingCodes:[27],codeLong:I7.ZAF},[I9.ZM]:{name:"Zambia",code:I9.ZM,callingCodes:[260],codeLong:I7.ZMB},[I9.ZW]:{name:"Zimbabwe",code:I9.ZW,callingCodes:[263],codeLong:I7.ZWE}};var uV=ea(68458),uq=ea(35837),uH=ea(35128),uW=ea(57870),uK=Math.max,uY=Math.min,uZ=function(ei,eo,ea){var eu=null==ei?0:ei.length;if(!eu)return-1;var ec=eu-1;return void 0!==ea&&(ec=(0,uW.Z)(ea),ec=ea<0?uK(eu+ec,0):uY(ec,eu-1)),(0,uq.Z)(ei,(0,uH.Z)(eo,3),ec,!0)},u$=ea(69340),uJ=ea(13677),uQ=ea(70249),uX=ea(83311),u3=ea(65906),u5=ea(34266),u4=ea(25614),u6=function(ei,eo){var ea=-1,eu=(0,u4.Z)(ei)?Array(ei.length):[];return(0,u5.Z)(ei,function(ei,ec,ed){eu[++ea]=eo(ei,ec,ed)}),eu},u9=function(ei,eo){var ea=ei.length;for(ei.sort(eo);ea--;)ei[ea]=ei[ea].value;return ei},u7=ea(33079),cr=ea(52661),ci=function(ei,eo){if(ei!==eo){var ea=void 0!==ei,eu=null===ei,ec=ei==ei,ed=(0,cr.Z)(ei),ef=void 0!==eo,eh=null===eo,eg=eo==eo,em=(0,cr.Z)(eo);if(!eh&&!em&&!ed&&ei>eo||ed&&ef&&eg&&!eh&&!em||eu&&ef&&eg||!ea&&eg||!ec)return 1;if(!eu&&!ed&&!em&&ei=eh)return eg;return eg*("desc"==ea[eu]?-1:1)}}return ei.index-eo.index},ca=ea(62009),cl=ea(39557),cu=function(ei,eo,ea){eo=eo.length?(0,uX.Z)(eo,function(ei){return(0,cl.Z)(ei)?function(eo){return(0,u3.Z)(eo,1===ei.length?ei[0]:ei)}:ei}):[ca.Z];var eu=-1;return eo=(0,uX.Z)(eo,(0,u7.Z)(uH.Z)),u9(u6(ei,function(ei,ea,ec){return{criteria:(0,uX.Z)(eo,function(eo){return eo(ei)}),index:++eu,value:ei}}),function(ei,eo){return co(ei,eo,ea)})},cc=ea(44338),cd=ea(40984),cf=(0,cc.Z)(function(ei,eo){if(null==ei)return[];var ea=eo.length;return ea>1&&(0,cd.Z)(ei,eo[0],eo[1])?eo=[]:ea>2&&(0,cd.Z)(eo[0],eo[1],eo[2])&&(eo=[eo[0]]),cu(ei,(0,uQ.Z)(eo,1),[])}),ch=ea(12192),cg=ea(67134),cm=function(ei,eo){return!!(null==ei?0:ei.length)&&(0,cg.Z)(ei,eo,0)>-1},cy=function(ei,eo,ea){for(var eu=-1,ec=null==ei?0:ei.length;++eu=ck){var em=eo?null:cT(ei);if(em)return(0,cE.Z)(em);ef=!1,ec=cw.Z,eg=new ch.Z}else eg=eo?[]:eh;e:for(;++eu0}))return this.next(eo,ea);var eS=s8(ew.map(function(ei){return ei.entrySet})),eE=s8(Object.keys(ed).map(function(ei){return ed[ei].configuration}));return{transitions:e_,entrySet:eS,exitSet:s8(ew.map(function(ei){return ei.exitSet})),configuration:eE,source:eo,actions:s8(Object.keys(ed).map(function(ei){return ed[ei].actions}))}},ei.prototype._transition=function(ei,eo,ea){return aE(ei)?this.transitionLeafNode(ei,eo,ea):1===Object.keys(ei).length?this.transitionCompoundNode(ei,eo,ea):this.transitionParallelNode(ei,eo,ea)},ei.prototype.getTransitionData=function(ei,eo){return this._transition(ei.value,ei,aN(eo))},ei.prototype.next=function(ei,eo){var ea,eu,ec,ed=this,ef=eo.name,eh=[],eg=[];try{for(var em=sL(this.getCandidates(ef)),eb=em.next();!eb.done;eb=em.next()){var ew=eb.value,e_=ew.cond,eS=ew.in,eE=ei.context,eA=!eS||(aE(eS)&&cW(eS)?ei.matches(s$(this.getStateNodeById(eS).path,this.delimiter)):sW(s$(eS,this.delimiter),s5(this.path.slice(0,-2))(ei.value))),eT=!1;try{eT=!e_||aL(this.machine,e_,eE,eo,ei)}catch(ei){throw Error("Unable to evaluate guard '".concat(e_.name||e_.type,"' in transition for event '").concat(ef,"' in state node '").concat(this.id,"':\n").concat(ei.message))}if(eT&&eA){void 0!==ew.target&&(eg=ew.target),eh.push.apply(eh,sB([],sF(ew.actions),!1)),ec=ew;break}}}catch(ei){ea={error:ei}}finally{try{eb&&!eb.done&&(eu=em.return)&&eu.call(em)}finally{if(ea)throw ea.error}}if(ec){if(!eg.length)return{transitions:[ec],entrySet:[],exitSet:[],configuration:ei.value?[this]:[],source:ei,actions:eh};var ek=s8(eg.map(function(eo){return ed.getRelativeStateNodes(eo,ei.historyValue)})),eC=!!ec.internal,eO=[];return eC||eg.forEach(function(ei){eO.push.apply(eO,sB([],sF(ed.getExternalReentryNodes(ei)),!1))}),{transitions:[ec],entrySet:eO,exitSet:eC?[]:[this],configuration:ek,source:ei,actions:eh}}},ei.prototype.getExternalReentryNodes=function(ei){for(var eo=[],ea=sF(ei.order>this.order?[ei,this]:[this,ei],2),eu=ea[0],ec=ea[1];eu&&eu!==ec;)eo.push(eu),eu=eu.parent;return eu!==ec?[]:(eo.push(ec),eo)},ei.prototype.getActions=function(ei,eo,ea,eu,ec,ed){var ef,eh,eg,em,eb=aK([],ed?this.getStateNodes(ed.value):[this]);try{for(var ew=sL(ei),e_=ew.next();!e_.done;e_=ew.next()){var eS=e_.value;(!aJ(eb,eS)||aJ(ea.entrySet,eS.parent))&&ea.entrySet.push(eS)}}catch(ei){ef={error:ei}}finally{try{e_&&!e_.done&&(eh=ew.return)&&eh.call(ew)}finally{if(ef)throw ef.error}}try{for(var eE=sL(eb),eA=eE.next();!eA.done;eA=eE.next()){var eS=eA.value;(!aJ(ei,eS)||aJ(ea.exitSet,eS.parent))&&ea.exitSet.push(eS)}}catch(ei){eg={error:ei}}finally{try{eA&&!eA.done&&(em=eE.return)&&em.call(eE)}finally{if(eg)throw eg.error}}var eT=s8(ea.entrySet.map(function(ei){var eo=[];if("final"!==ei.type)return eo;var ed=ei.parent;if(!ed.parent)return eo;eo.push(lV(ei.id,ei.doneData),lV(ed.id,ei.doneData?ao(ei.doneData,eu,ec):void 0));var ef=ed.parent;return"parallel"===ef.type&&aH(ef).every(function(ei){return la(ea.configuration,ei)})&&eo.push(lV(ef.id)),eo}));ea.exitSet.sort(function(ei,eo){return eo.order-ei.order}),ea.entrySet.sort(function(ei,eo){return ei.order-eo.order});var ek=new Set(ea.entrySet),eC=new Set(ea.exitSet),eO=sF([s8(Array.from(ek).map(function(ei){return sB(sB([],sF(ei.activities.map(function(ei){return lF(ei)})),!1),sF(ei.onEntry),!1)})).concat(eT.map(lP)),s8(Array.from(eC).map(function(ei){return sB(sB([],sF(ei.onExit),!1),sF(ei.activities.map(function(ei){return lB(ei)})),!1)}))],2),eI=eO[0],eP=lO(eO[1].concat(ea.actions).concat(eI),this.machine.options.actions);if(eo){var eD=lO(s8(sB([],sF(ei),!1).sort(function(ei,eo){return eo.order-ei.order}).map(function(ei){return ei.onExit})),this.machine.options.actions).filter(function(ei){return ei.type!==lh&&(ei.type!==lp||!!ei.to&&ei.to!==I4.Internal)});return eP.concat(eD)}return eP},ei.prototype.transition=function(ei,eo,ea,eu){void 0===ei&&(ei=this.initialState);var ec,ed=aN(eo);if(ei instanceof l$)ec=void 0===ea?ei:this.resolveState(l$.from(ei,ea));else{var ef=aE(ei)?this.resolve(sJ(this.getResolvedPath(ei))):this.resolve(ei),eh=null!=ea?ea:this.machine.context;ec=this.resolveState(l$.from(ef,eh))}if(!sH&&ed.name===cq)throw Error("An event cannot have the wildcard type ('".concat(cq,"')"));if(this.strict&&!this.events.includes(ed.name)&&!aa(ed.name))throw Error("Machine '".concat(this.id,"' does not accept event '").concat(ed.name,"'"));var eg=this._transition(ec.value,ec,ed)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:ec,actions:[]},em=aK([],this.getStateNodes(ec.value)),eb=eg.configuration.length?aK(em,eg.configuration):em;return eg.configuration=sB([],sF(eb),!1),this.resolveTransition(eg,ec,ec.context,eu,ed)},ei.prototype.resolveRaisedTransition=function(ei,eo,ea,eu){var ec,ed=ei.actions;return(ei=this.transition(ei,eo,void 0,eu))._event=ea,ei.event=ea.data,(ec=ei.actions).unshift.apply(ec,sB([],sF(ed),!1)),ei},ei.prototype.resolveTransition=function(ei,eo,ea,eu,ec){var ed,ef,eh=this;void 0===ec&&(ec=lT);var eg=ei.configuration,em=!eo||ei.transitions.length>0,eb=em?ei.configuration:eo?eo.configuration:[],ew=la(eb,this),e_=em?a$(this.machine,eg):void 0,eS=eo?eo.historyValue?eo.historyValue:ei.source?this.machine.historyValue(eo.value):void 0:void 0,eE=this.getActions(new Set(eb),ew,ei,ea,ec,eo),eA=eo?sj({},eo.activities):{};try{for(var eT=sL(eE),ek=eT.next();!ek.done;ek=eT.next()){var eC=ek.value;eC.type===ld?eA[eC.activity.id||eC.activity.type]=eC:eC.type===lf&&(eA[eC.activity.id||eC.activity.type]=!1)}}catch(ei){ed={error:ei}}finally{try{ek&&!ek.done&&(ef=eT.return)&&ef.call(eT)}finally{if(ed)throw ed.error}}var eO=sF(lW(this,eo,ea,ec,eE,eu,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),eI=eO[0],eP=eO[1],eD=sF(af(eI,function(ei){return ei.type===lh||ei.type===lp&&ei.to===I4.Internal}),2),eN=eD[0],eM=eD[1],ej=eI.filter(function(ei){var eo;return ei.type===ld&&(null===(eo=ei.activity)||void 0===eo?void 0:eo.type)===lw}).reduce(function(ei,eo){return ei[eo.activity.id]=l8(eo.activity,eh.machine,eP,ec),ei},eo?sj({},eo.children):{}),eR=new l$({value:e_||eo.value,context:eP,_event:ec,_sessionid:eo?eo._sessionid:null,historyValue:e_?eS?am(eS,e_):void 0:eo?eo.historyValue:void 0,history:!e_||ei.source?eo:void 0,actions:e_?eM:[],activities:e_?eA:eo?eo.activities:{},events:[],configuration:eb,transitions:ei.transitions,children:ej,done:ew,tags:lc(eb),machine:this}),eL=ea!==eP;eR.changed=ec.name===lE||eL;var eF=eR.history;eF&&delete eF.history;var eB=!ew&&(this._transient||eg.some(function(ei){return ei._transient}));if(!em&&(!eB||ec.name===cG))return eR;var eU=eR;if(!ew)for(eB&&(eU=this.resolveRaisedTransition(eU,{type:lm},ec,eu));eN.length;){var eG=eN.shift();eU=this.resolveRaisedTransition(eU,eG._event,ec,eu)}var eV=eU.changed||(eF?!!eU.actions.length||eL||typeof eF.value!=typeof eU.value||!lK(eU.value,eF.value):void 0);return eU.changed=eV,eU.history=eF,eU},ei.prototype.getStateNode=function(ei){if(cW(ei))return this.machine.getStateNodeById(ei);if(!this.states)throw Error("Unable to retrieve child state '".concat(ei,"' from '").concat(this.id,"'; no child states exist."));var eo=this.states[ei];if(!eo)throw Error("Child state '".concat(ei,"' does not exist on '").concat(this.id,"'"));return eo},ei.prototype.getStateNodeById=function(ei){var eo=cW(ei)?ei.slice(cV.length):ei;if(eo===this.id)return this;var ea=this.machine.idMap[eo];if(!ea)throw Error("Child state node '#".concat(eo,"' does not exist on machine '").concat(this.id,"'"));return ea},ei.prototype.getStateNodeByPath=function(ei){if("string"==typeof ei&&cW(ei))try{return this.getStateNodeById(ei.slice(1))}catch(ei){}for(var eo=sY(ei,this.delimiter).slice(),ea=this;eo.length;){var eu=eo.shift();if(!eu.length)break;ea=ea.getStateNode(eu)}return ea},ei.prototype.resolve=function(ei){var eo,ea=this;if(!ei)return this.initialStateValue||cH;switch(this.type){case"parallel":return sQ(this.initialStateValue,function(eo,eu){return eo?ea.getStateNode(eu).resolve(ei[eu]||eo):cH});case"compound":if(aE(ei)){var eu=this.getStateNode(ei);if("parallel"===eu.type||"compound"===eu.type)return(eo={})[ei]=eu.initialStateValue,eo;return ei}if(!Object.keys(ei).length)return this.initialStateValue||{};return sQ(ei,function(ei,eo){return ei?ea.getStateNode(eo).resolve(ei):cH});default:return ei||cH}},ei.prototype.getResolvedPath=function(ei){if(cW(ei)){var eo=this.machine.idMap[ei.slice(cV.length)];if(!eo)throw Error("Unable to find state node '".concat(ei,"'"));return eo.path}return sY(ei,this.delimiter)},Object.defineProperty(ei.prototype,"initialStateValue",{get:function(){var ei,eo;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)eo=sX(this.states,function(ei){return ei.initialStateValue||cH},function(ei){return"history"!==ei.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));eo=aV(this.states[this.initial])?this.initial:((ei={})[this.initial]=this.states[this.initial].initialStateValue,ei)}else eo={};return this.__cache.initialStateValue=eo,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),ei.prototype.getInitialState=function(ei,eo){this._init();var ea=this.getStateNodes(ei);return this.resolveTransition({configuration:ea,entrySet:sB([],sF(ea),!1),exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=eo?eo:this.machine.context,void 0)},Object.defineProperty(ei.prototype,"initialState",{get:function(){var ei=this.initialStateValue;if(!ei)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(ei)},enumerable:!1,configurable:!0}),Object.defineProperty(ei.prototype,"target",{get:function(){var ei;if("history"===this.type){var eo=this.config;ei=aE(eo.target)&&cW(eo.target)?sJ(this.machine.getStateNodeById(eo.target).path.slice(this.path.length-1)):eo.target}return ei},enumerable:!1,configurable:!0}),ei.prototype.getRelativeStateNodes=function(ei,eo,ea){return void 0===ea&&(ea=!0),ea?"history"===ei.type?ei.resolveHistory(eo):ei.initialStateNodes:[ei]},Object.defineProperty(ei.prototype,"initialStateNodes",{get:function(){var ei=this;return aV(this)?[this]:"compound"!==this.type||this.initial?s8(s6(this.initialStateValue).map(function(eo){return ei.getFromRelativePath(eo)})):(sH||ab(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),ei.prototype.getFromRelativePath=function(ei){if(!ei.length)return[this];var eo=sF(ei),ea=eo[0],eu=eo.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(ea,"' from node with no states"));var ec=this.getStateNode(ea);if("history"===ec.type)return ec.resolveHistory();if(!this.states[ea])throw Error("Child state '".concat(ea,"' does not exist on '").concat(this.id,"'"));return this.states[ea].getFromRelativePath(eu)},ei.prototype.historyValue=function(ei){if(Object.keys(this.states).length)return{current:ei||this.initialStateValue,states:sX(this.states,function(eo,ea){if(!ei)return eo.historyValue();var eu=aE(ei)?void 0:ei[ea];return eo.historyValue(eu||eo.initialStateValue)},function(ei){return!ei.history})}},ei.prototype.resolveHistory=function(ei){var eo=this;if("history"!==this.type)return[this];var ea=this.parent;if(!ei){var eu=this.target;return eu?s8(s6(eu).map(function(ei){return ea.getFromRelativePath(ei)})):ea.initialStateNodes}var ec=s4(ea.path,"states")(ei).current;return aE(ec)?[ea.getStateNode(ec)]:s8(s6(ec).map(function(ei){return"deep"===eo.history?ea.getFromRelativePath(ei):[ea.states[ei[0]]]}))},Object.defineProperty(ei.prototype,"stateIds",{get:function(){var ei=this,eo=s8(Object.keys(this.states).map(function(eo){return ei.states[eo].stateIds}));return[this.id].concat(eo)},enumerable:!1,configurable:!0}),Object.defineProperty(ei.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var ei,eo,ea,eu,ec=this.states,ed=new Set(this.ownEvents);if(ec)try{for(var ef=sL(Object.keys(ec)),eh=ef.next();!eh.done;eh=ef.next()){var eg=ec[eh.value];if(eg.states)try{for(var em=(ea=void 0,sL(eg.events)),eb=em.next();!eb.done;eb=em.next()){var ew=eb.value;ed.add("".concat(ew))}}catch(ei){ea={error:ei}}finally{try{eb&&!eb.done&&(eu=em.return)&&eu.call(em)}finally{if(ea)throw ea.error}}}}catch(eo){ei={error:eo}}finally{try{eh&&!eh.done&&(eo=ef.return)&&eo.call(ef)}finally{if(ei)throw ei.error}}return this.__cache.events=Array.from(ed)},enumerable:!1,configurable:!0}),Object.defineProperty(ei.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(ei){return!(!ei.target&&!ei.actions.length&&ei.internal)}).map(function(ei){return ei.eventType})))},enumerable:!1,configurable:!0}),ei.prototype.resolveTarget=function(ei){var eo=this;if(void 0!==ei)return ei.map(function(ei){if(!aE(ei))return ei;var ea=ei[0]===eo.delimiter;if(ea&&!eo.parent)return eo.getStateNodeByPath(ei.slice(1));var eu=ea?eo.key+ei:ei;if(!eo.parent)return eo.getStateNodeByPath(eu);try{return eo.parent.getStateNodeByPath(eu)}catch(ei){throw Error("Invalid transition definition for state node '".concat(eo.id,"':\n").concat(ei.message))}})},ei.prototype.formatTransition=function(ei){var eo=this,ea=aj(ei.target),eu="internal"in ei?ei.internal:!ea||ea.some(function(ei){return aE(ei)&&ei[0]===eo.delimiter}),ec=this.machine.options.guards,ed=this.resolveTarget(ea),ef=sj(sj({},ei),{actions:lO(s7(ei.actions)),cond:ak(ei.cond,ec),target:ed,source:this,internal:eu,eventType:ei.event,toJSON:function(){return sj(sj({},ef),{target:ef.target?ef.target.map(function(ei){return"#".concat(ei.id)}):void 0,source:"#".concat(eo.id)})}});return ef},ei.prototype.formatTransitions=function(){var ei,eo,ea,eu=this;if(this.config.on){if(Array.isArray(this.config.on))ea=this.config.on;else{var ec=this.config.on,ed=cq,ef=ec[ed],eh=void 0===ef?[]:ef,eg=sR(ec,["symbol"==typeof ed?ed:ed+""]);ea=s8(Object.keys(eg).map(function(ei){sH||ei!==cG||ab(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(eu.id,'".'));var eo=aM(ei,eg[ei]);return sH||cY(eu,ei,eo),eo}).concat(aM(cq,eh)))}}else ea=[];var em=this.config.always?aM("",this.config.always):[],eb=this.config.onDone?aM(String(lV(this.id)),this.config.onDone):[];sH||ab(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var ew=s8(this.invoke.map(function(ei){var eo=[];return ei.onDone&&eo.push.apply(eo,sB([],sF(aM(String(lq(ei.id)),ei.onDone)),!1)),ei.onError&&eo.push.apply(eo,sB([],sF(aM(String(lH(ei.id)),ei.onError)),!1)),eo})),e_=this.after,eS=s8(sB(sB(sB(sB([],sF(eb),!1),sF(ew),!1),sF(ea),!1),sF(em),!1).map(function(ei){return s7(ei).map(function(ei){return eu.formatTransition(ei)})}));try{for(var eE=sL(e_),eA=eE.next();!eA.done;eA=eE.next()){var eT=eA.value;eS.push(eT)}}catch(eo){ei={error:eo}}finally{try{eA&&!eA.done&&(eo=eE.return)&&eo.call(eE)}finally{if(ei)throw ei.error}}return eS},ei}(),c$=!1;function cJ(ei,eo,ea){return void 0===ea&&(ea=ei.context),new cZ(ei,eo,ea)}function cQ(ei,eo){return sH||ei.predictableActionArguments||c$||(c$=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new cZ(ei,eo)}var cX=ea(50550),dn=ea(99976);function di(ei){var eo=Error(ei);return eo.source="ulid",eo}var da="0123456789ABCDEFGHJKMNPQRSTVWXYZ",dl=da.length,du=0xffffffffffff,dc=10,dd=16;function df(ei){var eo=Math.floor(ei()*dl);return eo===dl&&(eo=dl-1),da.charAt(eo)}function dh(ei,eo){if(isNaN(ei))throw Error(ei+" must be a number");if(ei>du)throw di("cannot encode time greater than "+du);if(ei<0)throw di("time must be positive");if(!1===Number.isInteger(ei))throw di("time must be an integer");for(var ea=void 0,eu="";eo>0;eo--)ea=ei%dl,eu=da.charAt(ea)+eu,ei=(ei-ea)/dl;return eu}function dg(ei,eo){for(var ea="";ei>0;ei--)ea=df(eo)+ea;return ea}function dy(){var ei=arguments.length>0&&void 0!==arguments[0]&&arguments[0],eo=arguments[1];eo||(eo="undefined"!=typeof window?window:null);var eu=eo&&(eo.crypto||eo.msCrypto);if(eu)return function(){var ei=new Uint8Array(1);return eu.getRandomValues(ei),ei[0]/255};try{var ec=ea(94788);return function(){return ec.randomBytes(1).readUInt8()/255}}catch(ei){}if(ei){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(ei){}return function(){return Math.random()}}throw di("secure crypto unusable, insecure Math.random not allowed")}var dv=function(ei){return ei||(ei=dy()),function(eo){return isNaN(eo)&&(eo=Date.now()),dh(eo,dc)+dg(dd,ei)}}(),dw=ea(34716),d_=function(){return(d_=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;eaeo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function dE(ei){var eo="function"==typeof Symbol&&Symbol.iterator,ea=eo&&ei[eo],eu=0;if(ea)return ea.call(ei);if(ei&&"number"==typeof ei.length)return{next:function(){return ei&&eu>=ei.length&&(ei=void 0),{value:ei&&ei[eu++],done:!ei}}};throw TypeError(eo?"Object is not iterable.":"Symbol.iterator is not defined.")}var dx=ea(4445),dA=ea.n(dx);function dT(ei){return"function"==typeof ei?ei():ei}function dk(ei,eo){try{return JSON.stringify(ei,eo)}catch(ea){return dA()(ei,eo)}}function dC(ei,eo,ea){var eu,ec,ed={};try{for(var ef=dE(eo),eh=ef.next();!eh.done;eh=ef.next()){var eg=eh.value;ed[eg]=ei[eg]}}catch(ei){eu={error:ei}}finally{try{eh&&!eh.done&&(ec=ef.return)&&ec.call(ef)}finally{if(eu)throw eu.error}}var em=JSON.parse(dk(ed,ea));return dk(d_(d_({},ei),em))}function dO(ei,eo){return ei.machine,ei.configuration,ei.history,dC(dS(ei,["machine","configuration","history"]),["context","event","_event"],eo)}function dI(ei,eo){return dC(ei.definition,["context"],eo)}function dP(ei,eo){void 0===ei&&(ei=globalThis.__xstate__);var ea=new Map,eu=ei.onRegister(function(ei){ea.set(ei.sessionId,ei)});return cQ({predictableActionArguments:!0,initial:"pendingConnection",context:{client:void 0},states:{pendingConnection:{},connected:{on:{"service.state":{actions:function(ei,eo){return ei.client.send(eo)}},"service.event":{actions:function(ei,eo){return ei.client.send(eo)}},"service.register":{actions:function(ei,eo){return ei.client.send(eo)}},"service.stop":{actions:function(ei,eo){return ei.client.send(eo)}},"xstate.event":{actions:function(ei,eo){var eu=JSON.parse(eo.event),ec=ea.get(eu.origin);null==ec||ec.send(eu)}},unload:{actions:function(ei){ei.client.send({type:"xstate.disconnect"})}},disconnect:"disconnected"}},disconnected:{entry:function(){eu.unsubscribe()},type:"final"}},on:{"xstate.inspecting":{target:".connected",actions:[cL({client:function(ei,eo){return eo.client}}),function(ea){ei.services.forEach(function(ei){var eu;null===(eu=ea.client)||void 0===eu||eu.send({type:"service.register",machine:dI(ei.machine,null==eo?void 0:eo.serialize),state:dO(ei.state||ei.initialState,null==eo?void 0:eo.serialize),sessionId:ei.sessionId})})}]}}})}var dD=new Map;function dN(){var ei=new Set,eo=new Set;return{services:ei,register:function(ea){ei.add(ea),dD.set(ea.sessionId,ea),eo.forEach(function(ei){return ei(ea)}),ea.onStop(function(){ei.delete(ea),dD.delete(ea.sessionId)})},unregister:function(eo){ei.delete(eo),dD.delete(eo.sessionId)},onRegister:function(ea){return eo.add(ea),ei.forEach(function(ei){return ea(ei)}),{unsubscribe:function(){eo.delete(ea)}}}}}var dM={url:"https://stately.ai/viz?inspect",iframe:function(){return document.querySelector("iframe[data-xstate]")},devTools:function(){var ei=dN();return globalThis.__xstate__=ei,ei},serialize:void 0,targetWindow:void 0},dj=function(ei){var eo=d_(d_({},dM),ei);return d_(d_({},eo),{url:new URL(eo.url),iframe:dT(eo.iframe),devTools:dT(eo.devTools)})},dR=new Set;function dL(ei){var eo,ea=dj(ei),eu=ea.iframe,ec=ea.url,ed=ea.devTools;if((null==ei?void 0:ei.targetWindow)===null)throw Error("Received a nullable `targetWindow`.");var ef=ea.targetWindow;if(null===eu&&!ef){console.warn("No suitable element.");return}var eh=uy(dP(ed,ei)).start(),eg=new Set,em=eh.subscribe(function(ei){eg.forEach(function(eo){return eo.next(ei)})}),eb=function(ei){if("object"==typeof ei.data&&null!==ei.data&&"type"in ei.data){eu&&!ef&&(ef=eu.contentWindow),eo||(eo={send:function(ei){ef.postMessage(ei,ec.origin)}});var ea=d_(d_({},ei.data),{client:eo});eh.send(ea)}};window.addEventListener("message",eb),window.addEventListener("unload",function(){eh.send({type:"unload"})});var ew=function(eo){return dk(eo,null==ei?void 0:ei.serialize)};return ed.onRegister(function(eo){var ea,eu=eo.state||eo.initialState;if(eh.send({type:"service.register",machine:dI(eo.machine,null==ei?void 0:ei.serialize),state:dO(eu,null==ei?void 0:ei.serialize),sessionId:eo.sessionId,id:eo.id,parent:null===(ea=eo.parent)||void 0===ea?void 0:ea.sessionId}),eh.send({type:"service.event",event:ew(eu._event),sessionId:eo.sessionId}),!dR.has(eo)){dR.add(eo);var ec=eo.send.bind(eo);eo.send=function(ei,ea){return eh.send({type:"service.event",event:ew(aN(aD(ei,ea))),sessionId:eo.sessionId}),ec(ei,ea)}}eo.subscribe(function(ea){void 0!==ea&&eh.send({type:"service.state",state:dO(ea,null==ei?void 0:ei.serialize),sessionId:eo.sessionId})}),eo.onStop(function(){eh.send({type:"service.stop",sessionId:eo.sessionId})})}),eu?(eu.addEventListener("load",function(){ef=eu.contentWindow}),eu.setAttribute("src",String(ec))):ef||(ef=window.open(String(ec),"xstateinspector")),{send:function(ei){eh.send(ei)},subscribe:function(ei,eo,ea){var eu=aU(ei,eo,ea);return eg.add(eu),eu.next(eh.state),{unsubscribe:function(){eg.delete(eu)}}},disconnect:function(){eh.send("disconnect"),window.removeEventListener("message",eb),em.unsubscribe()}}}var dF=ea(41428),dB=ea(52404),dU=ea.n(dB),dz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ei){return typeof ei}:function(ei){return ei&&"function"==typeof Symbol&&ei.constructor===Symbol&&ei!==Symbol.prototype?"symbol":typeof ei};function dG(ei,eo){if(!ei)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return eo&&("object"==typeof eo||"function"==typeof eo)?eo:ei}function dV(ei,eo){if("function"!=typeof eo&&null!==eo)throw TypeError("Super expression must either be null or a function, not "+typeof eo);ei.prototype=Object.create(eo&&eo.prototype,{constructor:{value:ei,enumerable:!1,writable:!0,configurable:!0}}),eo&&(Object.setPrototypeOf?Object.setPrototypeOf(ei,eo):ei.__proto__=eo)}function dq(ei,eo){if(!(ei instanceof eo))throw TypeError("Cannot call a class as a function")}var dH=dU()(null),dW=function(){function ei(){var eo=this;dq(this,ei),this._listeners=[],dY.forEach(function(ei){return ei(eo)})}return ei.prototype.setState=function(ei,eo){var ea=this;return Promise.resolve().then(function(){var eu=void 0;if(null==(eu="function"==typeof ei?ei(ea.state):ei)){eo&&eo();return}return ea.state=Object.assign({},ea.state,eu),Promise.all(ea._listeners.map(function(ei){return ei()})).then(function(){if(eo)return eo()})})},ei.prototype.subscribe=function(ei){this._listeners.push(ei)},ei.prototype.unsubscribe=function(ei){this._listeners=this._listeners.filter(function(eo){return eo!==ei})},ei}(),dK={};!function(ei){function eo(){var ea,eu,ec;dq(this,eo);for(var ed=arguments.length,ef=Array(ed),eh=0;eh components with a ");var eu=ei,ec=eo.map(function(ei){var eo=void 0;return(void 0===ei?"undefined":dz(ei))==="object"&&ei instanceof dW?eo=ei:(eo=eu.get(ei))||(eo=new ei,eu.set(ei,eo)),eo.unsubscribe(ea.onUpdate),eo.subscribe(ea.onUpdate),eo});return this.instances=ec,ec},eo.prototype.render=function(){var ei=this;return eb.createElement(dH.Consumer,null,function(eo){return ei.props.children.apply(null,ei._createInstances(eo,ei.props.to))})}}(eb.Component);var dY=[],dZ=ea(83454);function d$(){let ei=sN(["\n display: flex;\n height: 814px;\n .persona-widget__iframe {\n max-width: 424px;\n max-height: 100%;\n width: 100%;\n }\n"]);return d$=function(){return ei},ei}function dJ(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function dQ(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})}!function(ei){ei.AUDIT="AUDIT",ei.BALANCES="BALANCES",ei.TRADE="TRADE",ei.SETTINGSACCOUNT="SETTINGSACCOUNT",ei.SETTINGSAPI="SETTINGSAPI",ei.SETTINGSNOTIFY="SETTINGSNOTIFY",ei.SETTINGSVERIFY="SETTINGSVERIFY",ei.SECURITYPASS="SECURITYPASS",ei.SECURITYTFA="SECURITYTFA",ei.DOCUMENT_MANAGER="DOCUMENT_MANAGER",ei.WITHDRAW="WITHDRAW",ei.DEPOSIT="DEPOSIT",ei.TRANSFERS="TRANSFERS",ei.SESSIONEXTEND="SESSIONEXTEND",ei.VERIFICATION="VERIFICATION",ei.PTL="PTL",ei.OTC="OTC",ei.HISTORY_EXPORT="HISTORY_EXPORT",ei.SESSION_EXTEND="sessionextend",ei.NFT="NFT"}(Pr||(Pr={})),function(ei){ei.GET="GET",ei.POST="POST",ei.PUT="PUT",ei.PATCH="PATCH",ei.DELETE="DELETE"}(Pn||(Pn={}));let dX={};function fi(ei,eo){ei.handlers.forEach(ei=>{eo.use(ei.fulfilled,ei.rejected)})}let fo=()=>{let ei=cM.create(dX);return ei.defaults.headers.common=Object.assign(Object.assign({},ei.defaults.headers.common),{"x-requested-with":"XMLHTTPRequest","Content-Type":"application/json",Accept:"application/json"}),fi(cM.interceptors.request,ei.interceptors.request),fi(cM.interceptors.response,ei.interceptors.response),ei};function fa(ei,eo){let ea=Object.assign({data:{},headers:{}},ei);return ea.headers["x-csrf-token"]=eo,fl(ei.data)&&ea.data.append("csrftoken",eo),ea}let fl=ei=>ei instanceof URLSearchParams;function fu(ei){var eo,ea,eu;return dQ(this,void 0,void 0,function*(){let ec={headers:{"Csrf-Auth":null!==(eo=window.__internalAuth)&&void 0!==eo?eo:""}},ed=yield fo().get("/api/internal/csrf/".concat(ei),ec);return null!==(eu=null===(ea=ed.data.result)||void 0===ea?void 0:ea.csrf_token)&&void 0!==eu?eu:""})}let fh=[Pn.POST,Pn.PUT,Pn.DELETE,Pn.PATCH];function fp(ei,eo){return dQ(this,void 0,void 0,function*(){return(window.__basePath&&(dX.baseURL=window.__basePath,dX.withCredentials=!0),ei.method&&fh.includes(ei.method)&&void 0!==eo)?yield fo().request(fa(ei,(yield fu(eo)))):yield fo().request(ei)})}!function(ei){!function(ei){ei[ei.Undefined=0]="Undefined",ei[ei.Web=1]="Web",ei[ei.Mobile=2]="Mobile",ei[ei.RestApi=3]="RestApi",ei[ei.WebSocket=4]="WebSocket"}(ei.ChannelID||(ei.ChannelID={})),function(ei){ei[ei.Undefined=0]="Undefined",ei[ei.PC=1]="PC",ei[ei.Smartphone=2]="Smartphone",ei[ei.Tablet=3]="Tablet"}(ei.DeviceType||(ei.DeviceType={})),function(ei){ei[ei.Undefined=0]="Undefined",ei[ei.Instant=1]="Instant",ei[ei.SpotTrading=2]="SpotTrading",ei[ei.FuturesTrading=3]="FuturesTrading",ei[ei.Deposit=4]="Deposit",ei[ei.Withdrawal=5]="Withdrawal",ei[ei.Staking=6]="Staking",ei[ei.Nft=7]="Nft",ei[ei.Earnings=8]="Earnings",ei[ei.RecurringSimpleOrder=9]="RecurringSimpleOrder",ei[ei.ScheduledSimpleOrder=10]="ScheduledSimpleOrder",ei[ei.Bridge=11]="Bridge"}(ei.Feature||(ei.Feature={})),function(ei){ei[ei.Undefined=0]="Undefined",ei[ei.Retail=1]="Retail",ei[ei.ProLegacy=2]="ProLegacy",ei[ei.Pro=3]="Pro"}(ei.Product||(ei.Product={}))}(Pi||(Pi={}));let fg=(ei,eo,ea,eu)=>{let ec=ei;return Number(ec+=(eo<<8)+(ea<<16)+16777216*eu).toString(32)};function fm(){let ei=navigator.userAgent,eo=(0,cR.Z)(ei);return eo.phone?Pi.DeviceType.Smartphone:eo.tablet?Pi.DeviceType.Tablet:Pi.DeviceType.PC}let fy=["/c"];function fb(){var ei;return(null===(ei=window.location)||void 0===ei?void 0:ei.pathname)?fy.some(ei=>window.location.pathname.startsWith(ei))?Pi.Product.Retail:Pi.Product.ProLegacy:Pi.Product.Undefined}let fw=["/u/instant"];function f_(){return fw.some(ei=>{var eo,ea;return null===(ea=null===(eo=window.location)||void 0===eo?void 0:eo.pathname)||void 0===ea?void 0:ea.startsWith(ei)})?Pi.Feature.Instant:(null==window?void 0:window.__feature)==="nft"?Pi.Feature.Nft:Pi.Feature.Undefined}!function(ei){ei.Selfie="Selfie",ei.IDHeadshot="IDHeadshot",ei.DriversLicense="DriversLicense",ei.Passport="Passport",ei.IDCard="IDCard",ei.ResidenceCard="ResidenceCard",ei.SpecialPermanentResidenceCard="SpecialPermanentResidenceCard",ei.UtilityBill="UtilityBill",ei.BankStatement="BankStatement",ei.CCStatement="CCStatement",ei.ResidenceCert="ResidenceCert",ei.TaxReturn="TaxReturn",ei.AssetLetter="AssetLetter",ei.PayStub="PayStub",ei.AccountantLetter="AccountantLetter",ei.KrakenStatement="KrakenStatement",ei.VoidedCheck="VoidedCheck",ei.CorporateFormation="CorporateFormation",ei.CIPDocument="CIPDocument",ei.BylawDocument="BylawDocument",ei.AOI="AOI",ei.EINLetter="EINLetter",ei.AMLPolicy="AMLPolicy",ei.CompanyShareRegistry="CompanyShareRegistry",ei.OrganizationalChart="OrganizationalChart",ei.SocialInsurancePaymentReceipt="SocialInsurancePaymentReceipt",ei.TaxReceipt="TaxReceipt",ei.PassportAddressPage="PassportAddressPage"}(Po||(Po={})),function(ei){ei[ei.Selfie=89]="Selfie",ei[ei.IDHeadshot=61]="IDHeadshot",ei[ei.DriversLicense=12]="DriversLicense",ei[ei.Passport=11]="Passport",ei[ei.IDCard=13]="IDCard",ei[ei.ResidenceCard=81]="ResidenceCard",ei[ei.SpecialPermanentResidenceCard=83]="SpecialPermanentResidenceCard",ei[ei.UtilityBill=31]="UtilityBill",ei[ei.BankStatement=32]="BankStatement",ei[ei.CCStatement=33]="CCStatement",ei[ei.ResidenceCert=34]="ResidenceCert",ei[ei.TaxReturn=69]="TaxReturn",ei[ei.AssetLetter=70]="AssetLetter",ei[ei.PayStub=71]="PayStub",ei[ei.AccountantLetter=72]="AccountantLetter",ei[ei.KrakenStatement=73]="KrakenStatement",ei[ei.VoidedCheck=67]="VoidedCheck",ei[ei.CorporateFormation=74]="CorporateFormation",ei[ei.CIPDocument=65]="CIPDocument",ei[ei.BylawDocument=63]="BylawDocument",ei[ei.AOI=62]="AOI",ei[ei.EINLetter=66]="EINLetter",ei[ei.AMLPolicy=75]="AMLPolicy",ei[ei.CompanyShareRegistry=90]="CompanyShareRegistry",ei[ei.OrganizationalChart=91]="OrganizationalChart",ei[ei.SocialInsurancePaymentReceipt=88]="SocialInsurancePaymentReceipt",ei[ei.TaxReceipt=87]="TaxReceipt",ei[ei.PassportAddressPage=92]="PassportAddressPage"}(Pa||(Pa={})),function(ei){ei.Identity="Identity",ei.Residence="Residence",ei.IDVerification="IDVerification",ei.ProofOfSourceOfFunds="ProofOfSourceOfFunds",ei.Business="Business",ei.SecondaryID="SecondaryID",ei.BusinessAddress="BusinessAddress"}(Pl||(Pl={})),function(ei){ei[ei.Identity=1]="Identity",ei[ei.Residence=2]="Residence",ei[ei.Verification=3]="Verification",ei[ei.Posof=4]="Posof",ei[ei.Business=5]="Business",ei[ei.SecondaryID=8]="SecondaryID",ei[ei.BusinessAddress=9]="BusinessAddress"}(Pu||(Pu={})),function(ei){ei.UNPROCESSED="UNPROCESSED",ei.FAILED="FAILED",ei.INVALID="INVALID",ei.VERIFIED="VERIFIED",ei.CHECK="CHECK",ei.REVIEW="REVIEW",ei.DUPLICATE="DUPLICATE"}(Pc||(Pc={})),function(ei){ei.BarCodeBadQuality="EKYC:IdentityRemark:BarCodeBadQuality",ei.ImageLowQuality="EKYC:IdentityRemark:ImageLowQuality",ei.QualityIssues="EKYC:IdentityRemark:QualityIssues",ei.NonIdDocument="EKYC:IdentityRemark:NonIdDocument",ei.PagesDoNotMatch="EKYC:IdentityRemark:PagesDoNotMatch",ei.UnrecognizableDocument="EKYC:IdentityRemark:UnrecognizableDocument",ei.AtLeastOneAuthenticationTestFailed="EKYC:IdentityRemark:AtLeastOneAuthenticationTestFailed",ei.DocumentExpired="EKYC:IdentityRemark:DocumentExpired",ei.SecondSideExpected="EKYC:IdentityRemark:SecondSideExpected",ei.SecondSideUnexpected="EKYC:IdentityRemark:SecondSideUnexpected",ei.SelfieImageQualityError="DocumentUploader:ErrorInstruction:SelfieImageQualityError",ei.ImageError="EKYC:SelfieError:ImageError",ei.Indecisive="EKYC:SelfieError:Indecisive",ei.Mismatch="EKYC:SelfieError:Mismatch",ei.NoFaceOnDocument="EKYC:SelfieError:NoFaceOnDocument",ei.NoFaceOnSelfie="EKYC:SelfieError:NoFaceOnSelfie",ei.NoPhotoOnDocument="EKYC:SelfieError:NoPhotoOnDocument",ei.OverMatch="EKYC:SelfieError:OverMatch",ei.FileTooLarge="EKYC:SelfieError:FileTooLarge",ei.FileTooSmall="EKYC:SelfieError:FileTooSmall",ei.SelfieMismatch="EKYC:SelfieError:Mismatch",ei.NotOk="EKYC:IdentityDataError:NotOk",ei.Unreadable="EKYC:IdentityDataError:Unreadable"}(Pd||(Pd={})),function(ei){ei[ei.Manual=0]="Manual",ei[ei.Automatic=1]="Automatic",ei[ei.DoubleCheck=3]="DoubleCheck"}(Pf||(Pf={})),function(ei){ei.UboDoc="ubo-doc",ei.EmiratesRequirement="emirates-requirement",ei.UserKyc="user-kyc"}(Ph||(Ph={})),function(ei){ei.Aed="AED",ei.NonAed="NonAED"}(Pp||(Pp={})),function(ei){ei[ei.Zero=0]="Zero",ei[ei.One=1]="One",ei[ei.Two=2]="Two",ei[ei.Three=3]="Three",ei[ei.Four=4]="Four"}(Pg||(Pg={})),function(ei){ei.Unknown="unknown",ei.None="none",ei.One="one",ei.Starter="starter",ei.Express="express",ei.ExpressFailed="express_failed",ei.Intermediate="intermediate",ei.Pro="pro",ei.Locked="locked",ei.Incomplete="incomplete",ei.ProBusiness="pro_business",ei.ProPersonal="pro_personal"}(Pm||(Pm={})),function(ei){ei.Unknown="unknown",ei.None="none",ei.One="one",ei.Starter="starter",ei.Express="express",ei.ExpressFailed="express_failed",ei.Intermediate="intermediate",ei.Pro="pro"}(Py||(Py={})),function(ei){ei.Au10tix="1",ei.Persona="2"}(Pv||(Pv={})),function(ei){ei.ActivateAccount="/activate-account",ei.BypassOTP="/bypass-otp",ei.BypassSignInPage="/bypass-sign-in",ei.DeviceApproval="/device-approval",ei.ForgotPassword="/forgot-password",ei.ForgotUsername="/forgot-username",ei.Logout="/logout",ei.SupportLogout="/support-logout",ei.SelfHelp="/self-help",ei.SignIn="/sign-in",ei.SignUp="/sign-up",ei.Home="/",ei.HomeRedirector="/home",ei.Disclosures="/legal/disclosures",ei.CanadianDisclosures="/legal/ca-disclaimers",ei.BelgiumDisclaimer="/legal/be-disclaimer",ei.UkDisclaimer="/legal/uk/disclaimer",ei.UkPastPerformance="/legal/uk/asset-statements",ei.Overview="/u/trade",ei.Trade="/u/trade",ei.TradeNext="/u/trade-next",ei.LaunchTrade="/u/launch-trade",ei.NewOrder="/u/trade/new-order",ei.OrdersSummary="/u/trade/orders",ei.PositionsSummary="/u/trade/positions",ei.TradesSummary="/u/trade/trades",ei.LedgerSummary="/u/trade/ledger",ei.OrdersNextSummary="/u/trade-next/orders",ei.PositionsNextSummary="/u/trade-next/positions",ei.TradesNextSummary="/u/trade-next/trades",ei.LedgerNextSummary="/u/trade-next/ledger",ei.InstantBuySell="/u/instant",ei.Funding="/u/funding",ei.Deposit="/u/funding/deposit",ei.Withdraw="/u/funding/withdraw",ei.Transfer="/u/funding/transfer",ei.Audit="/u/funding/audit",ei.NftExplore="/",ei.NftInventory="/inventory",ei.NftOffers="/inventory/offers",ei.NftOffersSent="/inventory/offers?tab=sent",ei.NftDeposit="/inventory/deposit",ei.NftWithdraw="/inventory/withdraw",ei.NftTransactions="/inventory/transactions",ei.NftExploreListings="/explore/listings",ei.NftExploreCollections="/explore/collections",ei.NftExploreCreators="/explore/creators",ei.NftActivity="/explore/activity?tab=timeline",ei.NftCollections="/collections",ei.NftAccountSettings="/settings/account",ei.NftSecurity="/security",ei.NftSecurityTFA="/security/tfa",ei.Staking="/u/earn/staking",ei.Earn="/u/earn",ei.Parachains="/u/earn/parachains",ei.Defi="/u/earn/defi",ei.Security="/u/security",ei.MarketingSecurity="/features/security",ei.SecurityAudit="/security/audit",ei.SecurityTFA="/u/security/tfa",ei.SecurityCheckup="/u/security/checkup",ei.SecurityGSL="/u/security/gsl",ei.APISettings="/u/security/api",ei.NewAPIKey="/u/security/api/new",ei.EditAPIKey="/u/security/api/edit",ei.LegacySecurityGSL="/u/settings/account#settings-lock",ei.Settings="/u/settings",ei.AccountSettings="/u/settings/account",ei.NotificationSettings="/u/settings/notify",ei.Documents="/u/settings/documents",ei.Audits="/u/settings/audits",ei.TaxReports="/u/settings/tax-reports",ei.BankStatements="/u/settings/bank/statements",ei.BankDisclosures="/u/settings/bank/disclosures",ei.History="/u/history",ei.Ledger="/u/history/ledger",ei.OrderHistory="/u/history/orders",ei.TradeHistory="/u/history/trades",ei.PositionHistory="/u/history/positions",ei.HistoryExport="/u/history/export",ei.FUTURES="/features/futures",ei.GetVerified="/u/verify",ei.KycFlow="/u/verify/flow",ei.VerifyUAEExtraInfo="/u/verify/uae",ei.OnboardingWebApp="/verify/flow",ei.Prices="/prices",ei.Asset="/prices/asset",ei.Orderbook="/prices/orderbook",ei.Markets="https://trade.kraken.com/markets",ei.Support="/u/launch-support",ei.WhyKraken="/why-kraken",ei.Contact="/about/contact",ei.FeeSchedule="/features/fee-schedule",ei.Blog="https://blog.kraken.com",ei.API="/features/api",ei.PGPKey="/features/security/pgp",ei.About="/about",ei.Careers="https://www.kraken.com/careers",ei.Press="/press",ei.TermsOfService="/legal",ei.CanadianTermsOfService="/legal/ca-terms",ei.Privacy="/legal/privacy",ei.FAQ="/help/faq",ei.BugBounty="/security/bug-bounty",ei.RecruitmentPrivacyEU="/legal/recruitment/eu-uk",ei.RecruitmentPrivacySG="/legal/recruitment/sg",ei.LearnBuyBitcoin="/learn/buy-bitcoin-btc",ei.Facebook="https://www.facebook.com/krakenfx",ei.Twitter="https://www.twitter.com/krakenfx",ei.LinkedIn="https://linkedin.com/company/kraken-exchange",ei.Github="https://www.github.com/payward",ei.EtherscanAddress="https://etherscan.io/address",ei.EtherscanTransaction="https://etherscan.io/tx",ei.SolscanAddress="https://solscan.io/account",ei.SolscanTransaction="https://solscan.io/tx",ei.PolygonscanAddress="https://polygonscan.com/address",ei.PolygonscanTransaction="https://polygonscan.com/tx",ei.NotFound="/404",ei.SessionExpired="/session-expired",ei.NewDeviceNotAuthorized="/new-device-not-authorized",ei.Fusion="https://pro.kraken.com",ei.FusionTradeBtc="/app/trade/btc-usd",ei.FusionStaking="https://pro.kraken.com/staking",ei.FusionApp="https://pro.kraken.com/app",ei.FusionAppStaking="https://pro.kraken.com/app/staking",ei.FusionOtcQuote="https://pro.kraken.com/app/otc/quote",ei.FusionTaxReports="https://pro.kraken.com/app/settings/taxes",ei.FusionProofOfReserves="https://pro.kraken.com/app/proof-of-reserves",ei.FusionAppStakingRelative="app/staking",ei.FusionAppAccountSettings="app/settings/account",ei.FusionAppSecuritySettings="app/settings/security",ei.FusionAppApiKeysSettings="app/settings/api",ei.FusionAppOtc="/app/otc",ei.Consumer="/c",ei.MarketRulebook="/legal/market-rulebook",ei.Status="https://status.kraken.com",ei.CryptowatchMagicKey="/u/launch-trade?cryptowatch=true",ei.ConsumerWebHome="/c/",ei.ConsumerFundingDeposit="/c/funding/deposit",ei.ConfirmSignIn="/confirm-sign-in",ei.OtcExchangeLanding="/features/otc-exchange",ei.StandaloneNft="https://nft.kraken.com",ei.StandaloneNftDev="https://nft.lobster.kraken.com",ei.StandaloneNftBeta="https://beta-nft.kraken.com"}(Pb||(Pb={})),function(ei){ei.Classic="https://kraken.com",ei.NFT="https://nft.kraken.com",ei.ProFusion="https://pro.kraken.com/app"}(Pw||(Pw={}));let fS=(ei,eo)=>{let ea={assetClass:ei.asset_class,asset:ei.asset,assetClassId:ei.asset_class_id,assetId:ei.asset_id,assetType:ei.asset_type,available:ei.available,balance:ei.balance,credit:ei.credit,creditUsed:ei.credit_used,hold:ei.hold,quoteBalance:ei.quote_balance,quoteAvailable:ei.quote_available};return eo&&(ea.converted={[eo]:{available:ei.quote_available||"0",balance:ei.quote_balance||"0"}}),ea},fE=ei=>void 0!==ei&&Object.keys(ei).length>0,fx=ei=>{if(ei){let eo=ei.reduce((ei,eo)=>eo.asset?Object.assign(Object.assign({},ei),{[eo.asset]:fS(eo)}):ei,{});return eo}return ei},fA=ei=>ei.replace(/_([a-z])/gi,(ei,eo)=>eo.toUpperCase()),fT=ei=>eo=>ei&&eo in ei?ei[eo]:fA(eo),fC=fT(),fO=function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fC;return ei?Object.keys(ei).reduce((ea,eu)=>"object"==typeof ei[eu]?Object.assign(Object.assign({},ea),{[eo(eu)]:fO(ei[eu])}):Object.assign(Object.assign({},ea),{[eo(eu)]:ei[eu]}),ei):ei},fI={[Pg.One]:[],[Pg.Two]:[],[Pg.Three]:[],[Pg.Four]:[]},fP=[I9.AT,I9.BE,I9.BG,I9.CY,I9.CZ,I9.DE,I9.DK,I9.EE,I9.ES,I9.FI,I9.FR,I9.GR,I9.HR,I9.HU,I9.IE,I9.IT,I9.LT,I9.LU,I9.LV,I9.MT,I9.NL,I9.PL,I9.PT,I9.RO,I9.SE,I9.SI,I9.SK],fD=[I9.AO,I9.AR,I9.AU,I9.BF,I9.BO,I9.CV,I9.DO,I9.DZ,I9.GM,I9.HT,I9.JP,I9.KE,I9.KH,I9.LA,I9.LB,I9.LR,I9.LS,I9.MH,I9.ML,I9.MR,I9.MZ,I9.NA,I9.NE,I9.NG,I9.NP,I9.PA,I9.PK,I9.PY,I9.SC,I9.SL,I9.SZ,I9.TG,I9.TH,I9.TZ,I9.UA,I9.UG,I9.VE,I9.VN,I9.YE,I9.ZM,I9.ZW],fN=[I9.AT,I9.BE,I9.BQ,I9.BG,I9.HR,I9.CY,I9.CZ,I9.DK,I9.EE,I9.FI,I9.FR,I9.DE,I9.GR,I9.HU,I9.IS,I9.LV,I9.LI,I9.LT,I9.LU,I9.MT,I9.NL,I9.NO,I9.PL,I9.PT,I9.RO,I9.SK,I9.SI,I9.ES,I9.SE],fM=[I9.AF,I9.AX,I9.AL,I9.DZ,I9.AD,I9.AO,I9.AI,I9.AG,I9.AR,I9.AM,I9.AW,I9.AZ,I9.BS,I9.BH,I9.BD,I9.BB,I9.BY,I9.BZ,I9.BJ,I9.BM,I9.BT,I9.BO,I9.BA,I9.BW,I9.BV,I9.BR,I9.IO,I9.VG,I9.BN,I9.BF,I9.BI,I9.KH,I9.CM,I9.CV,I9.KY,I9.CF,I9.TD,I9.CL,I9.CN,I9.CO,I9.KM,I9.CD,I9.CG,I9.CK,I9.CR,I9.CI,I9.CU,I9.CW,I9.DJ,I9.DM,I9.DO,I9.EC,I9.EG,I9.SV,I9.GQ,I9.ER,I9.SZ,I9.ET,I9.FK,I9.FO,I9.FJ,I9.GF,I9.PF,I9.TF,I9.GA,I9.GM,I9.GE,I9.GH,I9.GI,I9.GL,I9.GD,I9.GP,I9.GT,I9.GG,I9.GN,I9.GW,I9.GY,I9.HT,I9.VA,I9.HN,I9.HK,I9.IN,I9.ID,I9.IR,I9.IQ,I9.IM,I9.IL,I9.JM,I9.JP,I9.JE,I9.JO,I9.KZ,I9.KE,I9.KI,I9.KP,I9.KR,I9.XK,I9.KW,I9.KG,I9.LA,I9.LB,I9.LS,I9.LR,I9.LY,I9.MO,I9.MG,I9.MW,I9.MY,I9.MV,I9.ML,I9.MH,I9.MQ,I9.MR,I9.MU,I9.YT,I9.MX,I9.FM,I9.MD,I9.MC,I9.MN,I9.ME,I9.MS,I9.MA,I9.MZ,I9.MM,I9.NA,I9.NR,I9.NP,"AN",I9.NC,I9.NZ,I9.NI,I9.NE,I9.NG,I9.NU,I9.MK,I9.MP,I9.OM,I9.PK,I9.PW,I9.PS,I9.PA,I9.PG,I9.PY,I9.PE,I9.PH,I9.PN,I9.QA,I9.RE,I9.RU,I9.RW,I9.BL,I9.SH,I9.KN,I9.LC,I9.MF,I9.PM,I9.VC,I9.WS,I9.SM,I9.ST,I9.SA,I9.SN,I9.RS,I9.SC,I9.SL,I9.SG,I9.SX,I9.SB,I9.SO,I9.ZA,I9.GS,I9.SS,I9.LK,I9.SD,I9.SR,I9.SJ,I9.CH,I9.SY,I9.TW,I9.TJ,I9.TZ,I9.TH,I9.TL,I9.TG,I9.TK,I9.TO,I9.TT,I9.TN,I9.TR,I9.TM,I9.TC,I9.TV,I9.UG,I9.UA,I9.AE,I9.UM,I9.UY,I9.UZ,I9.VU,I9.VE,I9.VN,I9.WF,I9.EH,I9.YE,I9.ZM,I9.ZW],fj=[I9.AS,I9.GU,I9.PR,I9.VI,I9.MP,I9.MH],fR=Object.values(uG).map(ei=>{let{name:eo,code:ea,callingCodes:eu}=ei;return{value:ea,langKey:"country:Name:".concat(eo),callingCodes:eu}}),fL=(ei,eo)=>{let ea=ei.label.toLowerCase(),eu=eo.label.toLowerCase();return ea.localeCompare(eu)},fF=ei=>{let eo=[I9.CA,I9.US];return eo.includes(ei)};function fB(ei,eo,ea){let[eu,ec]=(0,eb.useState)(()=>{try{let eu=window.localStorage.getItem(ei),ec=window.localStorage.getItem("".concat(ei,"SetTime"));if(ec&&Date.now()-JSON.parse(ec)>ea)return window.localStorage.removeItem(ei),eo;if(eu)return JSON.parse(eu);return eo}catch(ei){return console.log(ei),eo}});return(0,eb.useEffect)(()=>{window.localStorage.getItem(ei)||window.localStorage.setItem("".concat(ei,"SetTime"),JSON.stringify(Date.now())),window.localStorage.setItem(ei,JSON.stringify(eu))},[ei,eu]),[eu,ec]}let fU=ei=>{switch(ei){case Pm.Locked:return Py.None;case Pm.Incomplete:return Py.Intermediate;case Pm.ProBusiness:case Pm.ProPersonal:return Py.Pro;default:return ei}};!function(ei){ei.NFT="nft",ei.Personal="personal",ei.Corporate="corporate"}(P_||(P_={})),function(ei){ei.Error="E",ei.Warning="W"}(PS||(PS={})),function(ei){ei.Account="Account",ei.Auth="Auth",ei.API="API",ei.FSG="FSG",ei.Funding="Funding",ei.Database="Database",ei.Document="Document",ei.Export="Export",ei.Order="Order",ei.Query="Query",ei.Payment="Payment",ei.Service="Service",ei.Session="Session",ei.Trade="Trade",ei.Mail="Mail",ei.General="General"}(Px||(Px={}));let fz=Object.values(PS).join("|"),fG=Object.values(Px).join("|"),fV=RegExp("(\\w*)\\|(".concat(fz,")?(").concat(fG,")?\\:?([\\w| ]*)\\:?([\\w|\\s]*)?"),"g"),fq=(ei,eo,ea)=>{fV.lastIndex=0;let eu=fV.exec(ei);if(null!==eu){let ei=eu[1],ec=eu[4],ed=eu[5];if(eu[2]&&eu[3]){let ef=eu[2],eh=eu[3];return{value:eo,context:ea,category:ei,severity:ef,errClass:eh,type:ec,info:ed}}return{value:eo,context:ea,category:ei,type:ec,info:ed}}throw Error("Bad error string")},fH=ei=>void 0!==ei.children,fW=(ei,eo)=>eo.map(eo=>eo(ei)).filter(ei=>null!=ei),fK=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return eo=>fW(eo,ei)},fY=ei=>null==ei||0===ei.length||"string"==typeof ei&&""===ei.trim(),fZ=(ei,eo)=>({validator:ei,error:eo}),f$=function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"required";if(fY(ei.value)){let ea="This is a required field.";ei.context&&ei.context.name&&(ea="Please enter a ".concat(ei.context.name,"."));let eu=fZ(eo,ea),ec=fq("error|FieldRequired");return Object.assign(Object.assign({},ec),eu)}return null};function fJ(ei){switch(ei){case PT.Zero:case PT.One:return PA.None;case PT.Two:return PA.Starter;case PT.Three:return PA.Intermediate;case PT.Four:return PA.Pro;default:throw Error("Unexpected tier: ".concat(ei))}}function fQ(ei){switch(ei){case PT.Zero:case PT.One:return Pg.Zero;case PT.Two:return Pg.Two;case PT.Three:return Pg.Three;case PT.Four:return Pg.Four;default:throw Error("Unexpected tier: ".concat(ei))}}function fX(ei){switch(ei){case PA.None:return PT.Zero;case PA.Starter:return PT.Two;case PA.Intermediate:return PT.Three;case PA.Pro:return PT.Four;default:throw Error("Unexpected tier: ".concat(ei))}}!function(ei){ei[ei.None=0]="None",ei[ei.Starter=1]="Starter",ei[ei.Intermediate=2]="Intermediate",ei[ei.Pro=3]="Pro"}(PA||(PA={})),function(ei){ei[ei.Zero=0]="Zero",ei[ei.One=1]="One",ei[ei.Two=2]="Two",ei[ei.Three=3]="Three",ei[ei.Four=4]="Four"}(PT||(PT={}));let f0={[I9.US]:[5128638,5815135]},f3=ei=>{let{country:eo,provinceId:ea}=ei;if(void 0===eo)return!1;let eu=f0[eo];return"string"==typeof ea&&(ea=Number.parseInt(ea,10)),void 0!==eu&&void 0!==ea&&eu.includes(ea)},f5=(ei,eo)=>{null!=ei&&eo.onClickGetVerified(fJ(ei))};function f4(ei){switch(ei){case"first_name":return"firstName";case"last_name":return"lastName";case"postal_code":return"postalCode";case"localized_first_name":return"localizedFirstName";case"localized_last_name":return"localizedLastName";case"purpose_of_trading":return"purposeOfTrading";case"investment_experience":return"investmentExperience";case"household_income":return"householdIncome";case"estimated_maximum_monthly_deposits":return"estimatedMaximumMonthlyDeposits";case"liquid_net_worth":return"liquidNetWorth";case"source_of_income":return"sourceOfIncome";case"reason_for_creating_account":return"reasonForCreatingAccount";case"reason_for_creating_account_other":return"reasonForCreatingAccountOther";case"tax_obligations":return"taxObligations";case"tax_obligations_description":return"taxObligationsDescription";case"insider_information":return"insiderInformation";case"partial_govtid":return"partialGovtId";default:return ei}}function f6(ei){switch(ei){case"reason_for_tier4_account":return"reasonForTier4Account";case"trading_experience":return"tradingExperience";case"plan_to_arbitrage_trade":return"planToArbitrageTrade";case"plan_to_margin_trade":return"planToMarginTrade";case"estimated_trades_per_month":return"estimatedTradesPerMonth";case"employer":return"employer";case"liquid_net_worth":return"liquidNetWorth";case"net_worth":return"netWorth";case"sources_of_wealth":return"sourcesOfWealth";case"estimated_maximum_monthly_deposits":return"estimatedMaximumMonthlyDeposits";case"estimated_maximum_monthly_withdrawals":return"estimatedMaximumMonthlyWithdrawals";case"bank_country":return"bankCountry";default:return ei}}let f8=(ei,eo)=>{let ea=eo[0].requirements.fields,eu=ea.filter(ei=>"phone_type"!==ei).map(f4),ec=eo[1].requirements.fields,ed=ec.filter(ei=>"employer"!==ei&&"reason_for_creating_account_other"!==ei).map(f4),ef=eo[2].requirements.fields.map(f6);return fF(ei)||(eu=eu.filter(ei=>"province"!==ei)),{[Pg.Two]:{fields:eu,documents:eo[0].requirements.documents,limits:eo[0].limits},[Pg.Three]:{fields:ed,documents:eo[1].requirements.documents,limits:eo[1].limits},[Pg.Four]:{fields:ef,documents:eo[2].requirements.documents,limits:eo[2].limits}}},f9=(ei,eo,ea)=>dQ(void 0,void 0,void 0,function*(){let eu=(yield ei.tiers.getTierTableInfo({country:eo,express:ea})).data.result;return f8(eo,eu)}),f7=ei=>({[Py.One]:ei[1],[Py.Starter]:ei[2],[Py.Express]:ei[2],[Py.ExpressFailed]:ei[2],[Py.Intermediate]:ei[3],[Py.Pro]:ei[4]}),hr={VERIFIED:4,UNPROCESSED:3,REVIEW:2,CHECK:1,FAILED:-1,INVALID:-1,DUPLICATE:-1};!function(ei){ei.UNPROCESSED="krakicon-pending inactive-icon",ei.INVALID="fa-times-circle error",ei.VERIFIED="fa-check-circle success"}(Pk||(Pk={})),function(ei){ei[ei.RetrySameDocument=0]="RetrySameDocument",ei[ei.RetrySelfie=1]="RetrySelfie",ei[ei.UseDifferentDocument=2]="UseDifferentDocument",ei[ei.Expired=3]="Expired",ei[ei.ImageRequirements=4]="ImageRequirements",ei[ei.GenericFallback=5]="GenericFallback",ei[ei.Forged=6]="Forged",ei[ei.RetrySelfieHigherQuality=7]="RetrySelfieHigherQuality"}(PC||(PC={}));let hn=[Pc.FAILED,Pc.INVALID,Pc.DUPLICATE,Pc.CHECK],ho=[Pc.REVIEW];function ha(ei){return[Pu.Business,Pu.BusinessAddress].includes(ei.key)&&ei.code!==Po.EINLetter}function hu(ei){return hn.includes(ei.status)||ei.status===Pc.REVIEW&&(ei.errorReasons||[]).length>0}!function(ei){ei.TOO_SMALL="Too Small",ei.WITHIN_RESTRICTIONS="Within Restrictions",ei.TOO_LARGE="Too Large"}(PO||(PO={}));let hc=ei=>void 0!==ei&&ei.length>0,hd=ei=>{let{fileStatus:eo,documentFlags:ea}=ei;return eo===Pc.UNPROCESSED&&ea!==Pf.Automatic},hf=ei=>{let{fileStatus:eo,hasReachedMaxDocInReview:ea,errorReasons:eu}=ei;return void 0!==eo&&eo!==Pc.UNPROCESSED&&(eo!==Pc.REVIEW||!hc(eu)||ea)&&!hn.includes(eo)},hp=ei=>{let{fileStatus:eo,documentFlags:ea,hasReachedMaxDocInReview:eu,errorReasons:ec}=ei;return hd({fileStatus:eo,documentFlags:ea})||hf({fileStatus:eo,hasReachedMaxDocInReview:eu,errorReasons:ec})},hg=ei=>ei===Pf.Automatic?Pf.Automatic:Pf.Manual,hy=ei=>ei.key===Pu.Business&&1===ei.items.length,hv=ei=>Pc[ei],hb=ei=>{let{categoryDocument:eo,hasReachedMaxDocInReview:ea}=ei;if(!eo)return!1;let eu=hv(eo.status),ec=eo.flags?hg(eo.flags):void 0;return hp({fileStatus:eu,documentFlags:ec,hasReachedMaxDocInReview:ea,errorReasons:eo.errorReasons})},hw=ei=>!!(ei.selectedSubType&&ei.subTypesRequireBack[ei.selectedSubType]),h_=ei=>{let{categoryDocument:eo,categoryDocumentBack:ea,hasReachedMaxDocInReview:eu}=ei,ec=hb({categoryDocument:eo,hasReachedMaxDocInReview:eu}),ed=hb({categoryDocument:ea,hasReachedMaxDocInReview:eu});return hw(ei)?ec&&ed:ec},hS=(ei,eo)=>!!(ei.complete&&eo.documentsUploaded&&0===eo.documentsUploaded.filter(eo=>ei.key===eo.typeKey&&eo.status===Pc.UNPROCESSED).length),hE=ei=>eo=>{let{context:ea}=ei;return hS(eo,ea)},hx=ei=>hy(ei)?"".concat(ei.key,"-").concat(ei.items[0].key):"".concat(ei.key,"-").concat(ei.type),hA=(ei,eo)=>{let ea=uZ(ei,(null==eo?void 0:eo.config)?hE(eo):h_)+1;return ei.filter((ei,eo)=>eo<=ea)},hT=ei=>({fileSize:ei.file_size,id:ei.id,backOf:ei.backof,name:ei.name,status:ei.status,subTypeCode:ei.sub_type_code,subTypeKey:ei.sub_type_key,subTypeText:ei.sub_type_text,typeCode:ei.type_code,typeKey:ei.type_key,typeText:ei.type_text,flags:ei.flags,errorReasons:ei.error_reasons||[],tags:ei.tags,uploadTimestamp:ei.upload_timestamp}),hk=ei=>ei.map(ei=>({key:ei.key,code:ei.code,text:ei.text,subTypes:ei.sub_types.map(ei=>({key:ei.key,code:ei.code,text:ei.text,requiresBack:ei.requires_back}))})),hC=ei=>{let eo=Object.keys(ei);return eo.reduce((eo,ea)=>(eo[ea]=hk(ei[ea]),eo),{})},hO=ei=>{let eo=Object.keys(ei);return eo.reduce((eo,ea)=>(eo[ea]=hk(ei[ea]),eo),{})},hI=ei=>{let eo=Object.keys(ei);return eo.reduce((eo,ea)=>(eo[ea]=hO(ei[ea]),eo),{})},hP=ei=>{let eo=Object.keys(ei);return eo.reduce((eo,ea)=>(eo[ea]=hI(ei[ea]),eo),{})},hD=ei=>({mimeTypes:ei.mime_types,extensions:ei.extensions,fileSizeMax:ei.file_size_max,fileSizeMin:ei.file_size_min,widthMax:ei.width_max,widthMin:ei.width_min,heightMax:ei.height_max,heightMin:ei.height_min}),hN=ei=>Object.assign(Object.assign({documentsUploaded:ei.documents_uploaded.map(hT),documentsRequired:hC(ei.documents_required),documentsOptional:hC(ei.documents_optional)},ei.documents_conditional?{documentsConditional:hP(ei.documents_conditional)}:{}),{fileUploadRestrictions:hD(ei.file_upload_restrictions)}),hM=ei=>"W"!==ei.severity;function hj(ei){let{result:eo,errors:ea}=ei.data,eu=ea&&ea.filter(hM);if(eu&&eu.length>0)throw ea;return eo}!function(ei){ei.Error="E",ei.Warning="W"}(PP||(PP={})),function(ei){ei.Account="Account",ei.Auth="Auth",ei.API="API",ei.FSG="FSG",ei.Funding="Funding",ei.Database="Database",ei.Document="Document",ei.Export="Export",ei.Order="Order",ei.Query="Query",ei.Payment="Payment",ei.Service="Service",ei.Session="Session",ei.Trade="Trade",ei.Mail="Mail",ei.General="General"}(PD||(PD={}));let hR="rpcerror",hL=ei=>{let eo=ei.category||hR,ea="".concat(eo,":");return ei.hasOwnProperty("severity")&&ei.hasOwnProperty("errClass")&&(ea+="".concat(ei.severity).concat(ei.errClass,":")),ea+="".concat(ei.type),void 0!==ei.info&&(ea+=":".concat(ei.info)),ea};!function(ei){ei.Unknown="500:AppErrorDescription",ei.BadGateway="503:AppErrorDescription"}(PN||(PN={})),function(ei){ei.Timeout="ECONNABORTED"}(PM||(PM={}));class hF extends Error{toJSON(){return{originalErrorMessage:this.originalErrorMessage,message:this.message,request:this.request,response:this.response,code:this.code,config:this.config,value:this.value,msg:this.msg,type:this.type}}constructor(ei,eo,ea,eu,ec,ed){super(),this.isAxiosError=!1,this.message=ei,this.field=ea;let{config:ef,code:eh,request:eg,response:em,message:eb}=eo;this.originalErrorMessage=eb,this.config=ef,this.request=eg,this.response=em,this.code=eh,this.value=eu,this.msg=ec,this.type=ed}}let hB=ei=>{if(!ei)return;if(!ei.response)return{type:"Internal error"};let eo=ei.response.data;if(eo.errors){let ei=eo.errors.find(ei=>"E"===ei.severity||!!ei.error);if(void 0!==ei)return ei;let ea=eo.errors.find(ei=>"W"===ei.severity||!!ei.error);if(void 0!==ea)return ea}if(eo.error)return eo.error;let{status:ea}=ei.response;return ea>=400&&ea<500?{type:"Bad request"}:ea>500?{type:"Internal error"}:{type:"Unknown error"}},hU=ei=>{if(!ei)return;let eo=hB(ei);return new hF(hq(eo),ei,null==eo?void 0:eo.field,null==eo?void 0:eo.value,null==eo?void 0:eo.msg,null==eo?void 0:eo.type)},hz=ei=>{throw hU(ei)},hG=ei=>{if(ei.code===PM.Timeout)throw new hF(PN.BadGateway,ei)},hV=ei=>{if(cM.isCancel(ei))throw ei;throw ei.response&&ei.response.data?hz(ei):ei.code&&hG(ei),new hF(PN.Unknown,ei)},hq=ei=>{if(void 0!==ei){if(ei&&ei.error)return ei.error;if(ei.errorClass&&(ei.errClass=ei.errorClass),ei.severity&&ei.errClass&&ei.type)return hL(ei)}return"rpcerror:EGeneral:Other"};function hH(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return dQ(this,void 0,void 0,function*(){try{let{channelID:eu=Pi.ChannelID.Web,deviceType:ec=fm(),product:ed=fb(),feature:ef=f_()}=ea;return ei.headers=ei.headers||{},ei.headers["X-KOrigin"]=fg(eu,ec,ed,ef),ei.headers["X-Kraken-Asset-Name"]="new",yield fp(ei,eo)}catch(ei){return hV(ei)}})}!function(ei){ei.JSON="application/json",ei.MULTIPART="multipart/form-data"}(Pj||(Pj={})),function(ei){ei.GET="GET",ei.POST="POST",ei.PUT="PUT",ei.PATCH="PATCH",ei.DELETE="DELETE"}(PR||(PR={})),function(ei){ei.PENDING="PENDING",ei.SUCCESS="SUCCESS",ei.FAILED="FAILED",ei.IDLE="IDLE"}(PL||(PL={}));let hW="/api/internal/documents",hK="/api/internal/account/profile",hY="/api/internal/locale";function hZ(ei){return dQ(this,void 0,void 0,function*(){let eo=yield hH({method:PR.GET,url:"".concat(hY,"/").concat(ei)});return eo.data})}function h$(){return dQ(this,void 0,void 0,function*(){let ei=yield hH({url:hW,method:PR.GET},Pr.DOCUMENT_MANAGER);return hN(hj(ei))})}function hJ(ei){let{formData:eo,cancelToken:ea,onUploadProgress:eu}=ei;return dQ(this,void 0,void 0,function*(){let ei=yield hH({url:hW,method:PR.POST,headers:{"Content-Type":Pj.MULTIPART},data:eo,cancelToken:ea,onUploadProgress:eu},Pr.DOCUMENT_MANAGER);return hN(hj(ei))})}let hQ=ei=>dQ(void 0,void 0,void 0,function*(){let eo=yield hH({url:"".concat(hW,"/").concat(ei),method:PR.DELETE});return hj(eo)}),hX=ei=>{let{files:eo,docType:ea,docSubType:eu,docFlowId:ec,vendor:ed,tags:ef=[]}=ei,eh=new FormData;return eo&&eh.append("front",eo[0]),eo&&eo.length>1&&(eh.append("back",eo[1]),eh.append("back_sub_type",String(eu))),eh.append("type",String(ea)),eu&&eh.append("sub_type",String(eu)),Object.keys(ef).length>0&&eh.append("tags",String(JSON.stringify(ef))),ec&&ed&&(eh.append("flow_id",String(ec)),eh.append("method",String(ed))),eh},pn=ei=>hX(dJ(ei,[])),pi=ei=>hX(dJ(ei,[])),pa=()=>dQ(void 0,void 0,void 0,function*(){let ei=yield h$();return ei}),pu=()=>dQ(void 0,void 0,void 0,function*(){return yield pa()}),pc=ei=>dQ(void 0,void 0,void 0,function*(){for(let eo of ei)yield hQ(eo);return pa()}),pd=ei=>{let{ids:eo}=ei;return pc(eo)},pf=ei=>{let{files:eo,docType:ea,docSubType:eu,tags:ec,onUploadProgress:ed}=ei;return dQ(void 0,void 0,void 0,function*(){let ei=pn({files:eo,docType:ea,docSubType:eu,tags:ec}),ef=cM.CancelToken,eh=ef.source();return yield hJ({formData:ei,cancelToken:eh.token,onUploadProgress:ed})})},pp=ei=>{let{files:eo,docType:ea,docSubType:eu,tags:ec,onUploadProgress:ed}=ei;return dQ(void 0,void 0,void 0,function*(){return pf({files:eo,docType:ea,docSubType:eu,tags:ec,onUploadProgress:ed})})},pg=ei=>{let{docType:eo,vendor:ea,docFlowId:eu,tags:ec,onUploadProgress:ed}=ei;return dQ(void 0,void 0,void 0,function*(){let ei=pi({docType:eo,vendor:ea,docFlowId:eu,tags:ec}),ef=cM.CancelToken,eh=ef.source();return yield hJ({formData:ei,cancelToken:eh.token,onUploadProgress:ed})})},pm=ei=>{let{docType:eo,vendor:ea,docFlowId:eu,tags:ec,onUploadProgress:ed}=ei;return dQ(void 0,void 0,void 0,function*(){return pg({docType:eo,vendor:ea,docFlowId:eu,tags:ec,onUploadProgress:ed})})};function pv(ei){return"[ubo=".concat(ei,"]")}function pb(ei){var eo,ea,eu;let ec=null!==(eu=null===(ea=null===(eo=ei.tags)||void 0===eo?void 0:eo.find(ei=>ei["ubo-doc"]))||void 0===ea?void 0:ea["ubo-doc"])&&void 0!==eu?eu:"",ed=ec.split(" "),ef=ed.find(ei=>ei.startsWith("id-"));if(ef)return ef.replace("id-","")}let pw={[Po.OrganizationalChart]:ei=>{let eo=ei.uboOwners.filter(fH);return eo.length>0}};function p_(ei){let eo=ei.subTypes[0].code;return!!pw[eo]}let pS=ei=>ei.flags===Pf.Automatic,pE=ei=>!!(null==ei?void 0:ei.some(ei=>pS(ei)&&ei.status===Pc.UNPROCESSED)),pA=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0===ei?"480":ei.toString()};function pT(ei){var eo,ea;let{province:eu,tier_bucket:ec}=ei,ed=ec&&fU(ec);return Object.assign(Object.assign({originalModel:ei,firstName:ei.first_name,middleName:ei.middle_name,lastName:ei.last_name,address1:ei.address1,address2:ei.address2,address3:ei.address3,createdTime:ei.created_time||"",city:ei.city,province:eu&&eu.id&&eu.id>0?{id:eu.id,name:eu.name}:void 0,country:ei.country,phone:ei.phone,phoneType:ei.phone_type,postalCode:ei.postal_code,occupation:ei.occupation,occupationOther:ei.occupation_other,employerIndustry:ei.employer_industry,tier:ei.tier,tierVerifiable:ei.tier_verifiable,tierVerified:ei.tier_verified,tierBucket:ed,rawTierBucket:ei.raw_tier_bucket,access:(null===(eo=ei.access)||void 0===eo?void 0:eo.user_kyc)?{userKyc:ei.access.user_kyc}:void 0,ssn:null===(ea=ei.government_id)||void 0===ea?void 0:ea.ssn,localizedFirstName:ei.localized_first_name,localizedLastName:ei.localized_last_name,purposeOfTrading:ei.purpose_of_trading,investmentExperience:ei.investment_experience,householdIncome:ei.household_income,estimatedMaximumMonthlyDeposits:ei.estimated_maximum_monthly_deposits,liquidNetWorth:ei.liquid_net_worth,sourceOfIncome:ei.source_of_income,reasonForCreatingAccount:ei.reason_for_creating_account,reasonForCreatingAccountOther:ei.reason_for_creating_account_other,taxObligations:ei.tax_obligations,taxObligationsDescription:ei.tax_obligations_description,insiderInformation:ei.insider_information},ei.funding&&{funding:ei.funding}),ei.partial_govtid&&{partialGovtId:ei.partial_govtid})}let pk=ei=>{if(!ei)return null;let eo=ei.indexOf(":");return-1!==eo?ei.substring(0,eo):ei};function pC(ei){var eo,ea,eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT,ek,eC,eO,eI,eP,eD,eN,eM,ej,eR,eL,eF,eB,eU,eG,eV,eH;return{originalModel:ei,accountId:ei.account_id,prevAccountId:ei.prev_account_id,username:ei.username,country:pk(ei.country),domainName:ei.domain_name,domainMaster:ei.domain_master,notificationFlags:{emailAdmin:null===(eo=ei.notification_flags)||void 0===eo?void 0:eo.email_admin,emailNewsletter:null===(ea=ei.notification_flags)||void 0===ea?void 0:ea.email_newsletter,emailSubmitReminder:null===(eu=ei.notification_flags)||void 0===eu?void 0:eu.email_submit_reminder},accessFlags:{tfaFundsAdd:null===(ec=ei.access_flags)||void 0===ec?void 0:ec.tfa_funds_add,tfaFundsWithdraw:null===(ed=ei.access_flags)||void 0===ed?void 0:ed.tfa_funds_withdraw,tfaTradesNew:null===(ef=ei.access_flags)||void 0===ef?void 0:ef.tfa_trades_new,tfaTradesClose:null===(eh=ei.access_flags)||void 0===eh?void 0:eh.tfa_trades_close,tfaTradesCancel:null===(eg=ei.access_flags)||void 0===eg?void 0:eg.tfa_trades_cancel},accountFlags:{disabled:null===(em=ei.account_flags)||void 0===em?void 0:em.disabled,closed:null===(eb=ei.account_flags)||void 0===eb?void 0:eb.closed,tempDisabled:null===(ew=ei.account_flags)||void 0===ew?void 0:ew.temp_disabled,withdrawHold:null===(e_=ei.account_flags)||void 0===e_?void 0:e_.withdraw_hold,badEmail:null===(eS=ei.account_flags)||void 0===eS?void 0:eS.bad_email},kycFlags:{hasUbo:null===(eE=ei.kyc_flags)||void 0===eE?void 0:eE.has_ubo,isCorporate:null===(eA=ei.kyc_flags)||void 0===eA?void 0:eA.is_corporate,hasTier4Corporate:null===(eT=ei.kyc_flags)||void 0===eT?void 0:eT.has_tier4_corporate,hasTier4Individual:null===(ek=ei.kyc_flags)||void 0===ek?void 0:ek.has_tier4_individual,fiatApplicant:null===(eC=ei.kyc_flags)||void 0===eC?void 0:eC.user_kyc_tier2_fiat_applicant,fiatApproved:null===(eO=ei.kyc_flags)||void 0===eO?void 0:eO.user_kyc_tier2_fiat_approved,tier4Open:null===(eI=ei.kyc_flags)||void 0===eI?void 0:eI.tier4_open,aedEnabled:null===(eP=ei.kyc_flags)||void 0===eP?void 0:eP.aed_enabled,aedRejected:null===(eD=ei.kyc_flags)||void 0===eD?void 0:eD.aed_rejected,incompleteVerify:null===(eN=ei.kyc_flags)||void 0===eN?void 0:eN.incomplete_verify},verificationFlags:{hasPhoneVerify:null===(eM=ei.verification_flags)||void 0===eM?void 0:eM.has_phone_verify,needPhoneVerify:null===(ej=ei.verification_flags)||void 0===ej?void 0:ej.need_phone_verify,hasIdVerify:null===(eR=ei.verification_flags)||void 0===eR?void 0:eR.has_id_verify,needIdVerify:null===(eL=ei.verification_flags)||void 0===eL?void 0:eL.need_id_verify,showIdVerify:null===(eF=ei.verification_flags)||void 0===eF?void 0:eF.show_id_verify},autologout:pA(ei.autologout),email:ei.email,emailUpdatePending:ei.email_update_pending,emailUpdate:{csrfToken:null===(eB=ei.email_update)||void 0===eB?void 0:eB.csrf_token,address:null===(eU=ei.email_update)||void 0===eU?void 0:eU.address,expiration:null===(eG=ei.email_update)||void 0===eG?void 0:eG.expiration,resend:null===(eV=ei.email_update)||void 0===eV?void 0:eV.resend},analyticsCookie:ei.analytics_cookie,pgpKey:ei.pgp_key||"",settingsLock:ei.settings_lock,settingsLockExpiration:ei.settings_lock_expiration,tier:ei.tier,langCode:ei.lang_code,timezone:ei.timezone,tradeDirect:ei.trade_direct,tradeFiat:ei.trade_fiat,tradeFutures:ei.trade_futures,tradeMargin:ei.trade_margin,tradeMarket:ei.trade_market,tradeVc:ei.trade_vc,hasMasterKey:ei.has_master_key,hasTfa:ei.has_tfa,hasTfaMasterKey:ei.has_tfa_master_key,hasTfaTrading:ei.has_tfa_trading,hasTfaFunding:ei.has_tfa_funding,tfa:ei.tfa,showToS:ei.show_tos,userType:null!==(eH=ei.usertype)&&void 0!==eH?eH:"exchange"}}let pO=ei=>{switch(ei){case Py.None:case Py.Unknown:return Pg.Zero;case Py.One:return Pg.One;case Py.Starter:case Py.Express:case Py.ExpressFailed:return Pg.Two;case Py.Intermediate:return Pg.Three;case Py.Pro:return Pg.Four}},pI=(ei,eo)=>{switch(ei){case Pg.Zero:return Py.None;case Pg.One:return Py.One;case Pg.Two:return eo?Py.Express:Py.Starter;case Pg.Three:return Py.Intermediate;case Pg.Four:return Py.Pro}},pP={tierBucketInitForms:{[Py.Unknown]:Py.Starter,[Py.None]:Py.Starter,[Py.One]:Py.Starter,[Py.Express]:Py.Intermediate,[Py.ExpressFailed]:Py.Intermediate,[Py.Starter]:Py.Intermediate,[Py.Intermediate]:Py.Pro,[Py.Pro]:Py.Pro},countriesWithStarterRestricted:[I9.JP,I9.AU,I9.CA,I9.GB,...fP,...fD,...fj],remediationCountryTimeStamps:{[I9.CA]:{start:new Date(2022,5,29,0,0,0).getTime(),end:new Date(2022,6,15,0,0,0).getTime()},[I9.IT]:{end:new Date(2022,6,15,0,0,0).getTime()}}};!function(ei){ei.CanadaRemediation2023="ca_account_appropriateness",ei.CanadaTOS="terms_of_service",ei.EuropeTOS="europe_terms_of_service",ei.GlobalTOS="global_terms_of_service",ei.Pil="pil_remediation",ei.KKICProCorpRemediation="ca_pro_corporate_remediation",ei.PviRemediation="pvi_remediation",ei.PviRemediation2="pvi_remediation_2",ei.UKFinPromRemediation="uk_finprom_remediation",ei.TulipT34Remediation="tulip_t34_reupload_docs",ei.TulipT12Remediation="tulip_t12_verification",ei.DLTRemediation="dlt_remediation"}(PF||(PF={})),function(ei){ei.PostT2UKFinPromAssessment="post_t2_uk_knowledge_assessment",ei.PostT2UKFinPromQuestionnaire="post_t2_uk_questionnaire",ei.ProIndividual="pro_individual",ei.ProCorporate="pro_corporate",ei.PreT4="pre_t4",ei.PostT2="post_t2"}(PB||(PB={}));let pD=[PF.EuropeTOS,PF.GlobalTOS],pN=ei=>!![...Object.values(PF),...Object.values(PB)].includes(ei),pM="incomplete-verify",pj="tier2-fiat-applicant",pR=[I9.US],pL=[4736286],pF={au10tixDocumentUploader:!0,bankDocuments:!1,expressTier:!0,isOnboardingServiceActive:!0,jfsa:!0,proQuiz:!1,proRequiresIntermediate:!0,starboardVerify:!0,kycFlows:{bvi:!0,pci:{proCorpEnabled:!0}},bviStarterTierDisabled:!0},pB=(ei,eo)=>{let ea=[...pP.countriesWithStarterRestricted],{bviStarterTierDisabled:eu}=pF;return eu&&ea.push(...fN,...fM),void 0!==ea.find(eo=>ei===eo)},pU=(ei,eo)=>{switch(ei){case Py.None:case Py.Unknown:case Py.One:return eo?Py.Express:Py.Starter;case Py.Starter:case Py.Express:case Py.ExpressFailed:return Py.Intermediate;case Py.Intermediate:return Py.Pro;case Py.Pro:return}},pG=ei=>{switch(ei){case Py.One:return[Py.One];case Py.Starter:case Py.Express:case Py.ExpressFailed:return[Py.Starter];case Py.Intermediate:return[Py.Starter,Py.Intermediate];case Py.Pro:return[Py.Starter,Py.Intermediate,Py.Pro]}return[]},pV=ei=>void 0!==ei&&ei.split(" ").includes(pj),pq=ei=>{let{country:eo}=ei;return void 0!==eo&&pR.includes(eo)},pH=ei=>{let{country:eo,province:ea}=ei;return ea&&pL.includes(ea)?Py.Intermediate:Py.Express},pW=ei=>{let eo=ei.match(/^\+\d*/);return eo&&eo[0]?eo[0]:""},pK=ei=>ei?parseInt(ei.replace("+",""),10):1,pY=ei=>{let eo=pW(ei),ea=ei.slice(eo.length).trim();return{phoneCountry:pK(eo),phoneNumber:ea}};function pZ(ei){return""===ei?{phoneCountry:1,phoneNumber:""}:pY(ei)}function p$(ei){return"+".concat(ei.phoneCountry," ").concat(ei.phoneNumber)}function pJ(ei){let eo=ei.split("-");for(;eo.length<3;)eo.push("");return{year:eo[0],month:""!==eo[1]?parseInt(eo[1],10).toString():"",day:""!==eo[2]?parseInt(eo[2],10).toString():""}}function pQ(ei){let eo=ei=>ei.length<2?"0".concat(ei):ei;return"".concat(ei.year,"-").concat(eo(ei.month),"-").concat(eo(ei.day))}let pX=ei=>ei&&ei.year&&ei.month&&ei.day&&parseInt(ei.year,10)>0&&parseInt(ei.month,10)>0&&parseInt(ei.day,10)>0,p6=ei=>ei.value&&pX(ei.value)?null:{category:"error",type:"DateIncomplete",validator:"isCompleteDate",error:"The date is not complete"},p8=ei=>{let{dob:eo,phone:ea}=ei,eu=dJ(ei,["dob","phone"]),{phoneCountry:ec,phoneNumber:ed}=p7(ea,eu.country),ef=Object.assign(Object.assign({},eu),{phone_type:"M",phoneCountry:ec,phone:ed,dob:pJ(eo||""),province:"",occupation:"",ssn:""}),eh=Object.keys(ef);for(let ei of eh){let eo=ef[ei];if(!eo){delete ef[ei];continue}"object"==typeof eo&&Object.keys(eo).every(ei=>!ei)&&delete ef[ei]}return ef},p9=ei=>{let eo={},ea=Object.keys(ei.values);for(let eu of ea)switch(eu){case"tier_verifiable":case"tier":case"tier_verified":case"access":case"employer_industry":case"phoneCountry":case"tier_bucket":case"created_time":break;case"occupation":ei.values[eu]&&(eo[eu]=parseInt(ei.values[eu],10));break;case"dob":ei.values.dob&&(eo.dob=pQ(ei.values.dob));break;case"phone":eo.phone=p$({phoneCountry:ei.values.phoneCountry,phoneNumber:ei.values.phone});break;case"ssn":"ssn"in ei.validators&&(eo.government_id="ssn",eo.ssn=ei.values.ssn);break;default:eo[eu]=ei.values[eu]}return eo},p7=(ei,eo)=>{let ea=pZ(ei||""),eu=ea.phoneCountry;if(eu&&eo){let ei=fR.find(ei=>ei.value===eo);ei&&ei.callingCodes.length&&(eu=ei.callingCodes[0])}return{phoneCountry:eu,phoneNumber:ea.phoneNumber}};!function(ei){ei.AUDIT="AUDIT",ei.BALANCES="BALANCES",ei.TRADE="TRADE",ei.SETTINGSACCOUNT="SETTINGSACCOUNT",ei.SETTINGSAPI="SETTINGSAPI",ei.SETTINGSNOTIFY="SETTINGSNOTIFY",ei.SETTINGSVERIFY="SETTINGSVERIFY",ei.SECURITYPASS="SECURITYPASS",ei.SECURITYTFA="SECURITYTFA",ei.DOCUMENT_MANAGER="DOCUMENT_MANAGER",ei.WITHDRAW="WITHDRAW",ei.DEPOSIT="DEPOSIT",ei.TRANSFERS="TRANSFERS",ei.SESSIONEXTEND="SESSIONEXTEND",ei.VERIFICATION="VERIFICATION",ei.PTL="PTL",ei.HISTORY_EXPORT="HISTORY_EXPORT",ei.BANKONBOARDING="BANKONBOARDING"}(PU||(PU={}));let gn=(ei,eo)=>dQ(void 0,void 0,void 0,function*(){let ea=yield ei.request({headers:{"Csrf-Auth":window.__internalAuth||""},method:"get",url:"/api/internal/csrf/".concat(eo)});return ea.data.result.csrf_token}),gi=gn,go=ei=>ei instanceof FormData,ga=(ei,eo)=>{let ea=Object.assign({data:{}},ei);return go(ei.data)?ea.data.append("csrf_token",eo):ea.data.csrf_token=eo,ea},gl=(ei,eo)=>dQ(void 0,void 0,void 0,function*(){return ga(ei,(yield gi(cM,eo)))}),gu=gl;function gc(ei,eo){return fK(ei.validators[eo])({value:ei.values[eo],context:{name:eo}})}function gd(ei,eo){return eo.reduce((eo,ea)=>Object.assign(Object.assign({},eo),{[ea]:gc(ei,ea)}),{})}function gh(ei){return gd(ei,Object.keys(ei.validators))}function gp(ei){return 0===Object.values(gh(ei)).filter(ei=>ei&&ei).length}let gm=ei=>cF({type:"TRACK_SLOW_LOAD"},{delay:ei,id:"SLOW_LOAD"}),gy=()=>{lL("SLOW_LOAD")},gv=()=>({target:"Error",actions:["assignErrorToContext"]}),gb=ei=>()=>window.location.replace("".concat(Pw.Classic).concat(Pb.KycFlow,"?return_path=").concat(ei)),gw=gb(Pw.NFT);Pw.ProFusion;let g_=ei=>Object.entries(ei).map(ei=>{let[eo,ea]=ei;return{value:eo,label:ea.translated_name}}).sort(fL),gS=(ei,eo)=>({country:ei,zipFormat:eo.zip_format,provinces:eo.provinces?g_(eo.provinces):[]}),gE=ei=>{var eo,ea;return{fileSize:ei.file_size,id:ei.id,backOf:null!==(eo=ei.backof)&&void 0!==eo?eo:void 0,name:ei.name,status:ei.status,subTypeCode:ei.sub_type_code,subTypeKey:ei.sub_type_key,subTypeText:ei.sub_type_text,typeCode:ei.type_code,typeKey:ei.type_key,typeText:ei.type_text,flags:ei.flags,errorReasons:ei.error_reasons||[],tags:ei.tags,uploadTimestamp:null!==(ea=ei.upload_timestamp)&&void 0!==ea?ea:void 0}},gx=ei=>ei.map(ei=>({key:ei.key,code:ei.code,text:ei.text,subTypes:ei.sub_types.map(ei=>({key:ei.key,code:ei.code,text:ei.text,requiresBack:ei.requires_back}))})),gA=ei=>{let eo=Object.keys(ei);return eo.reduce((eo,ea)=>(eo[ea]=gx(ei[ea]),eo),{})},gT=ei=>{let eo=Object.keys(ei);return eo.reduce((eo,ea)=>(eo[ea]=gx(ei[ea]),eo),{})},gk=ei=>{let eo=Object.keys(ei);return eo.reduce((eo,ea)=>(eo[ea]=gT(ei[ea]),eo),{})},gC=ei=>{let eo=Object.keys(ei);return eo.reduce((eo,ea)=>(eo[ea]=gk(ei[ea]),eo),{})},gO=ei=>({mimeTypes:ei.mime_types,extensions:ei.extensions,fileSizeMax:ei.file_size_max,fileSizeMin:ei.file_size_min,widthMax:ei.width_max,widthMin:ei.width_min,heightMax:ei.height_max,heightMin:ei.height_min}),gI=ei=>Object.assign(Object.assign({documentsUploaded:ei.documents_uploaded.map(gE),documentsRequired:gA(ei.documents_required),documentsOptional:gA(ei.documents_optional)},ei.documents_conditional?{documentsConditional:gC(ei.documents_conditional)}:{}),{fileUploadRestrictions:gO(ei.file_upload_restrictions)}),gP=423,gD=ei=>dQ(void 0,void 0,void 0,function*(){var eo;try{let eo=(yield ei.documents.getDocuments()).data.result;return eo?gI(eo):void 0}catch(ea){let ei=null===(eo=null==ea?void 0:ea.response)||void 0===eo?void 0:eo.status;if(ei===gP)return;return Promise.reject(ea)}}),gN=["kraken.com","kraken.zone"],gM=ei=>"/"===ei?ei:ei.replace(/\/$/,""),gj=ei=>{let{path:eo,domains:ea}=ei;return ea.map(ei=>new URL(eo,"https://".concat(ei)))},gR=ei=>{let{path:eo,domains:ea=gN,staticPaths:eu=[]}=ei;if(!eo||Array.isArray(eo))return null;let ec=gM(eo),ed=gj({path:ec,domains:ea}),ef=ed.map(ei=>ei.hostname);if(!ef.find(ei=>ea.some(eo=>ei.endsWith(eo))))return null;let eh=Object.values(Pb).concat(eu),eg=eh.filter(ei=>"/"!==ei).map(gM).reduce((ei,eo)=>ei.concat(gj({path:eo,domains:ea}).map(ei=>ei.toString())),[]),em=eg.some(ei=>ed.toString().startsWith(ei));return em?ec:null},gL=ei=>!ei||Array.isArray(ei)?null:[Py.Starter,Py.Express,Py.Intermediate,Py.Pro].includes(ei)?ei:null,gF=(ei,eo)=>{var ea,eu;let ec=gL(null!==(ea=ei.tier)&&void 0!==ea?ea:""),ed=gR({path:null!==(eu=ei.return_path)&&void 0!==eu?eu:"",staticPaths:eo});return{initialApplyingTier:ec,returnPath:ed}},gB=(ei,eo)=>({query:Object.assign({},null==eo?void 0:eo.query),helpers:{parseVerificationTierAndReturnPath:eo=>gF(eo,ei||[]),sanitizePath:eo=>gR(Object.assign(Object.assign({},eo),{staticPaths:(eo.staticPaths||[]).concat(ei||[])})),sanitizeAppVerificationTier:gL}}),gU=function(ei){for(var eo=arguments.length,ea=Array(eo>1?eo-1:0),eu=1;eu[...ei,...Object.values(eo)],[]);return ei.some(ei=>ei>0)}isProcessing(){if(this.state.automatedCheck===Pz.IgnorePendingCheck)return!1;let{allDocsUploaded:ei,categories:eo,complete:ea}=this.state.documentsRequired;return 0!==eo.length&&!ea&&(ei||this.waitingOnAutomatedCheck())}waitingOnAutomatedCheck(){let{documentsUploaded:ei}=this.state;return ei.some(ei=>this.usingAutomatedVerification(ei)&&ei.status===Pc.UNPROCESSED)}isCheckingManually(){if(this.hasErrors())return!1;let{allDocsUploaded:ei,categories:eo}=this.state.documentsRequired;return this.waitingOnAutomatedCheck()?ei&&this.state.automatedCheck===Pz.IgnorePendingCheck:ei&&eo.some(ei=>ei.categoryDocument&&this.isCheckingDocManually(ei.categoryDocument)||ei.categoryDocumentBack&&this.isCheckingDocManually(ei.categoryDocumentBack))}isCheckingDocManually(ei){return ho.includes(ei.status)||!this.usingAutomatedVerification(ei)&&ei.status!==Pc.VERIFIED&&!hu(ei)}usingAutomatedVerification(ei){return ei.flags===Pf.Automatic}get isAddressVerified(){return fX(PA.None)!==this.state.tier}get mayRequirePrDoc(){return[PA.Intermediate,PA.Pro].map(fX).includes(this.state.applyingTier)}hasErrors(){return this.state.documentsRequired.categories.some(ei=>gW(ei)&&!ei.hasReachedMaxDocInReview)}isPrRequired(){return-1!==this.state.documentsRequired.categories.findIndex(ei=>ei.type===Pl.Residence)}copyOverSelectedSubtypes(ei,eo){let ea=Object.assign({},eo),eu=ei.categories;for(let ei of eu)ea=this.updateDocumentsRequiredSelectedSubType(ea,ei.type,ei.selectedSubType);return ea}updateDocumentsRequiredSelectedSubType(ei,eo,ea){let eu=ei.categories,ec=eu.map(ei=>ei.type!==eo?ei:Object.assign(Object.assign({},ei),{selectedSubType:ea})),ed=Object.assign(Object.assign({},ei),{categories:ec});return ed}getDocumentsRequired(ei,eo,ea){let eu=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.state.documentsConditional,ec=this.documentUploadWithTimeout(ea),ed=this.applyConditionalRequirements(ei,eu,this.state.documentsRequired,ec),ef=gY(ed,eo,ec,this.state.progressStates,this.state.applyingTier,this.state.isCorp);return this.copyOverSelectedSubtypes(this.state.documentsRequired,ef)}setDocuments(ei,eo,ea){let eu=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.state.documentsConditional,ec=this.documentUploadWithTimeout(ea),ed=this.getDocumentsRequired(ei,eo,ea,eu);this.setState({documentsOptional:eo,documentRequirements:ei,documentsUploaded:ec,documentsRequired:ed})}documentUploadWithTimeout(ei){this.setState(eo=>{let ea=ei.reduce((ei,eo)=>Object.assign(Object.assign({},ei),{[eo.id]:new Date}),{});return Object.assign(Object.assign({},eo),{docsCreatedAt:Object.assign(Object.assign({},ea),eo.docsCreatedAt)})});let eo=new Date,ea=ei.map(ei=>{if(ei.status!==Pc.UNPROCESSED)return ei;let ea=this.state.docsCreatedAt[ei.id],eu=ea?+eo-+ea:0;return!ea||eu<=this.documentProcessingTimeout?ei:Object.assign(Object.assign({},ei),{flags:Pf.Manual})});return ea}applyConditionalRequirements(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.documentRequirements,eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.documentsConditional,ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.state.documentsRequired,eu=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.state.documentsUploaded,ec=(0,u$.Z)(ei);{let ei={};for(let ea=0;ea<=this.state.applyingTier;ea++){let eu=ea;eo&&eo[eu]&&Object.keys(eo[eu])&&(ei=Object.assign(Object.assign({},ei),eo[eu]))}if(ei&&Object.keys(ei).length){let eo={};for(let ei of ea.categories){let ea=ei.key;eo[ea]=ei.selectedSubType}for(let ei of eu)switch(ei.status){case Pc.VERIFIED:case Pc.UNPROCESSED:case Pc.REVIEW:eo[ei.typeKey]=ei.subTypeKey}let ed=Object.keys(eo);for(let ea of ed){let eu=ea,ed=ei[eu];if(ed&&Object.keys(ed).length){let ei=eo[ea],eu=ed[ei];if(eu&&Object.keys(eu).length)for(let ei of eu){let eo=fQ(this.state.applyingTier);ec[eo].push(ei)}}}}}return ec}resetDocuments(){this.setDocuments(this.state.documentRequirements,this.state.documentsOptional,this.state.documentsUploaded)}constructor(ei){var eo;super(),eo=this,this.state={tier:0,applyingTier:0,isCorp:!1,documentRequirements:fI,documentsOptional:fI,documentsUploaded:[],documentsRequired:{complete:!1,categories:[],uploadAllowed:!1,allDocsUploaded:!1},documentsConditional:fI,cancelSources:{},progressStates:{},fileUploadRestrictions:{mimeTypes:[],extensions:[],fileSizeMax:0,fileSizeMin:0,widthMax:0,widthMin:0,heightMax:0,heightMin:0},automatedCheck:Pz.None,loading:!0,error:void 0,docsCreatedAt:{}},this.documentProcessingTimeout=3e4,this.apiClient=void 0,this.setApiClient=ei=>{this.apiClient||(this.apiClient=ei)},this.getApiClient=()=>this.apiClient,this.clearErrors=()=>{this.setState({error:void 0})},this.flagForManualReview=()=>{this.setState({automatedCheck:Pz.IgnorePendingCheck})},this.fetchDocuments=function(ei,ea){let eu=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return dQ(eo,void 0,void 0,function*(){return this.fetchDocumentsAdvanced({tier:ei,applyingTier:ea,reInitState:eu})})},this.fetchDocumentsAdvanced=ei=>{let{tier:eo,applyingTier:ea,reInitState:eu=!0,isCorp:ec=this.state.isCorp}=ei;return dQ(this,void 0,void 0,function*(){this.setState({tier:eo,applyingTier:ea,isCorp:ec}),eu&&this.setState({automatedCheck:Pz.None,loading:!0,error:void 0,progressStates:{},documentRequirements:fI,documentsUploaded:[],documentsRequired:{complete:!1,categories:[],uploadAllowed:!1,allDocsUploaded:!1}}),yield this.refreshDocuments()})},this.updateTier=ei=>{this.setState({tier:ei})},this.adjustDocumentsConditionalForJP=ei=>{var eo,ea,eu,ec,ed,ef,eh,eg,em,eb;if(!ei.documentsConditional)return;let ew=null===(eo=null==ei?void 0:ei.documentsConditional)||void 0===eo?void 0:eo[3][Pu.Identity];if(!ew)return null==ei?void 0:ei.documentsConditional;ei.documentsConditional[3][Pu.Identity][Pa.Passport][1]=null===(ea=ew[Pa.DriversLicense])||void 0===ea?void 0:ea[0];let e_=this.getDocumentsRequired(ei.documentsRequired,ei.documentsOptional,ei.documentsUploaded,ei.documentsConditional),eS=e_.categories.find(ei=>ei.key===Pu.Residence),eE=e_.categories.find(ei=>ei.key===Pu.Identity);if(eS&&h_(eS))ei.documentsConditional[3][Pu.Identity][Pa.Passport][1].subTypes=null===(ef=null===(ed=null===(ec=null===(eu=ei.documentsConditional)||void 0===eu?void 0:eu[3])||void 0===ec?void 0:ec[Pu.Identity])||void 0===ed?void 0:ed[Pa.Passport])||void 0===ef?void 0:ef[1].subTypes.filter(ei=>{var eo;return ei.key!==(null===(eo=null==eS?void 0:eS.categoryDocument)||void 0===eo?void 0:eo.subTypeKey)});else if(eE&&h_(eE)){let eo=eE.categoryDocument;eo&&eo.subTypeKey!==Pa.Passport&&(ei.documentsConditional[3][Pu.Identity][eo.subTypeKey][0].subTypes=null===(eb=null===(em=null===(eg=null===(eh=ei.documentsConditional)||void 0===eh?void 0:eh[3])||void 0===eg?void 0:eg[Pu.Identity])||void 0===em?void 0:em[eo.subTypeKey])||void 0===eb?void 0:eb[0].subTypes.filter(ei=>ei.key!==eo.subTypeKey))}return ei.documentsConditional},this.refreshDocuments=()=>dQ(this,void 0,void 0,function*(){let ei=1,eo=0,ea=()=>dQ(this,void 0,void 0,function*(){try{let ei=yield h$();ei.documentsConditional=this.adjustDocumentsConditionalForJP(ei),this.setDocuments(ei.documentsRequired,ei.documentsOptional,ei.documentsUploaded,ei.documentsConditional),this.setState({loading:!1,fileUploadRestrictions:ei.fileUploadRestrictions,documentsConditional:ei.documentsConditional||fI})}catch(eu){eo0&&void 0!==arguments[0]?arguments[0]:[];return dQ(eo,void 0,void 0,function*(){let eo=this.state.documentsUploaded.filter(eo=>-1!==ei.indexOf(eo.id));if(eo.length<1)throw Error("No Documents Found");let ea=Object.assign({},this.state.progressStates);for(let ei of eo)ei.typeKey in ea&&ei.subTypeKey in ea[ei.typeKey]&&delete ea[ei.typeKey][ei.subTypeKey];this.setState({progressStates:ea});let eu=Object.assign({},this.state);try{this.setDocuments(eu.documentRequirements,eu.documentsOptional,eu.documentsUploaded.filter(eo=>-1===ei.indexOf(eo.id)));let ea=eo.map(ei=>ei.id);for(let eo of ea){let ea=yield hQ(eo);!0===ea.result&&this.setDocuments(eu.documentRequirements,eu.documentsOptional,eu.documentsUploaded.filter(eo=>-1===ei.indexOf(eo.id)))}}catch(ei){this.setDocuments(eu.documentRequirements,eu.documentsOptional,eu.documentsUploaded)}})},this.removeUploadInProgress=(ei,eo)=>{let ea=Object.assign({},this.state.progressStates);ei in ea&&eo in ea[ei]&&delete ea[ei][eo],this.setState({progressStates:ea})},this.setUploadProgress=(ei,eo,ea)=>{let{loaded:eu,total:ec}=ei,ed=eu/ec,ef=Object.assign({},this.state.progressStates);ea in ef==!1&&(ef[ea]={}),ef[ea][eo]=ed,this.setState({progressStates:ef})},this.cancelUpload=(ei,eo)=>{let ea=this.state.cancelSources[ei];ea.cancel(),setTimeout(()=>{this.setUploadProgress({loaded:0,total:1},ei,eo)},50)},this.uploadFile=function(ei,ea){let eu=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return ec=>dQ(eo,void 0,void 0,function*(){if(!ec.length)return;if(!ei||!ea)throw Error("Required information missing for documents POST");this.removeDocForCategory(ei),this.setUploadProgress({loaded:gz,total:1},ea,ei);let eo={files:ec,docType:ei,docSubType:ea,tags:eu},ed=pn(Object.assign({},eo)),ef=cM.CancelToken,eh=ef.source();this.setState({cancelSources:Object.assign(Object.assign({},this.state.cancelSources),{[ea]:eh})});let eg=eo=>{eo.loadedeo=>{let ea=this.state.documentsRequired.categories.every(ea=>ea.type!==ei||ea.selectedSubType===eo);ea||this.setState(ea=>{let eu=this.updateDocumentsRequiredSelectedSubType(ea.documentsRequired,ei,eo),ec=this.applyConditionalRequirements(this.state.documentRequirements,this.state.documentsConditional,eu),ed=gY(ec,this.state.documentsOptional,this.state.documentsUploaded,this.state.progressStates,this.state.applyingTier,this.state.isCorp),ef=this.copyOverSelectedSubtypes(ea.documentsRequired,ed),eh=this.updateDocumentsRequiredSelectedSubType(ef,ei,eo);return{documentsRequired:eh}})},this.documentDeleteAllowed=ei=>{let{id:eo,status:ea,flags:eu}=ei;return!eo.startsWith("DPS")&&eu!==Pf.Automatic&&this.state.tier{let eo=this.state.documentsUploaded.find(eo=>eo.id===ei);if(eo&&eo.backOf){let ei=this.state.documentsUploaded.find(ei=>ei.id===eo.backOf);if(ei)return ei.id}else{let eo=this.state.documentsUploaded.find(eo=>eo.backOf===ei);if(eo)return eo.id}},this.removeDocForCategory=ei=>{let eo=this.state.documentsRequired.categories.map(eo=>ei!==eo.key?eo:Object.assign(Object.assign({},eo),{categoryDocument:void 0,categoryDocumentBack:void 0,complete:!1})),ea=Object.assign(Object.assign({},this.state.documentsRequired),{categories:eo});this.setState({documentsRequired:ea})},this.apiClient=ei,this.setUploadProgress=(0,uJ.Z)(this.setUploadProgress,50)}}let gY=function(ei,eo,ea,eu,ec){let ed=arguments.length>5&&void 0!==arguments[5]&&arguments[5],ef=fQ(ec);if(!ei[ef]&&!eo[ef])return{complete:!0,categories:[],uploadAllowed:!1,allDocsUploaded:!1};ed||(ei[4]=ei[4].filter(ei=>!ha(ei)));let eh=[];for(let ea=1;ea<=4;ea++)if(ea<=ec){let eu=ea;eh=eh.concat(ei[eu],eo[eu])}ea.forEach(ei=>{ei.hasBeenUsed&&delete ei.hasBeenUsed,Pc[ei.status]||(ei.status=Pc.UNPROCESSED)});let eg=cf(ea,ei=>hr[ei.status]).reverse(),em=eh.map(ei=>{let eo=ei.subTypes.map(ei=>ei.key),ea=Object.values(eg).find(ea=>!ea.backOf&&!ea.hasBeenUsed&&ea.typeKey===ei.key&&eo.some(ei=>gq(ei,ea.subTypeKey)));ea&&(ea.hasBeenUsed=!0);let ec=Object.values(eg).find(ei=>ea&&ei.backOf&&ei.backOf===ea.id),ed=cO(Object.values(eg).filter(eo=>eo.typeKey===ei.key&&eo.status===Pc.REVIEW),ei=>ei.backOf||ei.id),ef=!!ea&&ea.status===Pc.VERIFIED;ea&&ec&&(ef=ea.status===Pc.VERIFIED&&ec.status===Pc.VERIFIED);let eh=ea&&ea.subTypeKey||(1===ei.subTypes.length?ei.subTypes[0].key:void 0),em={},eb=ei.subTypes.map(ei=>(em[ei.key]=ei.requiresBack,ei.key in eu&&(eh=ei.key),{key:ei.key,type:ei.code,name:ei.text,complete:ef&&!!Object.values(eg).find(eo=>gq(eo.subTypeKey,ei.key)&&eo.status===Pc.VERIFIED)})),ew=ei.key===Pu.Residence?1:gG;return{key:ei.key,type:ei.code,name:ei.text,disabled:!1,complete:ef,hasReachedMaxDocInReview:ed.length>=ew,categoryDocument:ea,categoryDocumentBack:ec,selectedSubType:eh,subTypesRequireBack:em,items:eb}}),eb=em.findIndex(ei=>ei.type===Pl.Identity),ew=em.findIndex(ei=>ei.type===Pl.IDVerification);if(-1!==eb&&-1!==ew){let ei=em[ew];em.splice(ew,1),ei.disabled=!ed&&!gH(em[eb]),em.splice(eb+1,0,ei)}return{complete:em.every(ei=>!0===ei.complete),categories:em,uploadAllowed:!ed&&0!==em.length,allDocsUploaded:em.every(ei=>gH(ei)&&(ei.hasReachedMaxDocInReview||!gW(ei)))}},gZ=new gK,g$=ei=>(!gZ.getApiClient()&&ei&&gZ.setApiClient(ei),gZ),gJ=4,gQ=ei=>"string"==typeof ei&&ei.length>gJ,gX=ei=>{let eo={first_name:ei.firstName,last_name:ei.lastName,address1:ei.address1,address2:ei.address2,city:ei.city,province:ei.province,country:ei.country,phone:ei.phone,phone_type:ei.phone?"M":void 0,postal_code:ei.postalCode,occupation:ei.occupation,dob:ei.dob,ssn:gQ(ei.ssn)?ei.ssn:void 0,government_id:gQ(ei.ssn)?"ssn":void 0,localized_first_name:ei.localizedFirstName,localized_last_name:ei.localizedLastName,purpose_of_trading:ei.purposeOfTrading,investment_experience:ei.investmentExperience,household_income:ei.householdIncome,estimated_maximum_monthly_deposits:ei.estimatedMaximumMonthlyDeposits,liquid_net_worth:ei.liquidNetWorth,source_of_income:ei.sourceOfIncome,reason_for_creating_account:ei.reasonForCreatingAccount,reason_for_creating_account_other:ei.reasonForCreatingAccountOther,tax_obligations:ei.taxObligations,tax_obligations_description:ei.taxObligationsDescription,insider_information:ei.insiderInformation,partial_govtid:ei.partialGovtId,funding:ei.funding};return(0,cI.Z)(eo,cP.Z)},g0=(ei,eo,ea)=>dQ(void 0,void 0,void 0,function*(){let eu=yield ea.kyc.startDocumentVerification({documents:ei},{headers:{"x-pow":eo}});return eu.data.result}),g3="inq_q9irSG4HrvQjSdZ8aZEcWoy4",g5={vendor:Pv.Persona,config:{inquiry_ids:[g3]}},g4={errors:[],result:g5},g6=!1,g8=4,g9=(ei,eo,ea)=>{let[eu,ec]=(0,eb.useState)(void 0),[ed,ef]=(0,eb.useState)([]),[eh,eg]=(0,eb.useState)(!0),em=ei=>"string"==typeof ei,ew=ei.length>0,e_=(0,eb.useCallback)(()=>dQ(void 0,void 0,void 0,function*(){if(!em(eo)||!ew)return;eg(!0);let eu=null;for(let ed=0;ed{e_()},[e_]);let eS=Object.assign(Object.assign({},g4),{result:fO(g4.result),isLoading:eh,errors:ed}),eE={result:fO(eu),isLoading:eh,errors:ed};return g6?eS:eE},g7=(ei,eo,ea)=>{let eu=()=>dQ(void 0,void 0,void 0,function*(){let eu=yield ei.pow.getPowChallenge(),ec=eu.data.result;if(ec){let ei=eo?yield null==eo?void 0:eo(ec):(yield(0,dn.p)(ec)).solution;return ei}let ed=Error("POW challenge retrieval failed.");throw null==ea||ea(ed),ed}),ec=ei=>{throw null==ea||ea(ei),ei},{data:ed}=(0,cX.r)(eu,[],{onError:ec});return ed},mn={revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshWhenOffline:!1,refreshWhenHidden:!1},mi=hK,mo="account.readProfile",ma=(ei,eo)=>dQ(void 0,void 0,void 0,function*(){let ea=(yield ei.account.readProfile()).data.result;return eo?eo(ea):ea}),ml=ei=>{let{readTransform:eo,updateTransform:ea,swrConfig:eu}=ei,ec=(0,oE.W)(),{mutate:ed}=(0,uB.kY)(),{data:ef,error:eh,mutate:eg}=(0,uB.ZP)(mo,()=>dQ(void 0,void 0,void 0,function*(){return ma(ec,eo)}),eu),em=(0,eb.useCallback)(ei=>dQ(void 0,void 0,void 0,function*(){var eu,eh;if(!ef)throw Error("Account profile not loaded before update.");let em=Object.assign({firstName:null!==(eu=ef.firstName)&&void 0!==eu?eu:"",lastName:null!==(eh=ef.lastName)&&void 0!==eh?eh:""},ei),eb=ea?ea(em):em,ew=(yield ec.account.updateProfile(eb)).data.result,e_=eo(ew);return eg(e_,{revalidate:!0}),ed(mi),e_}),[ec.account,ef,eg,ed,eo,ea]);return{accountProfile:ef,isLoading:!eh&&!ef,error:eh,updateAccountProfile:em,mutate:eg}},mu=ei=>dQ(void 0,void 0,void 0,function*(){return ma(ei,pT)}),mc=()=>ml({readTransform:pT,updateTransform:gX,swrConfig:mn});function md(ei){let{documentStore:eo,verificationStore:ea}=ei;return ea.state.canSubmit||eo.isCheckingManually()||eo.state.documentsRequired.allDocsUploaded&&!eo.isProcessing()}let mf=["JP"],mh=["purpose_of_trading","investment_experience","household_income","estimated_maximum_monthly_deposits","liquid_net_worth","source_of_income","reason_for_creating_account","reason_for_creating_account_other","tax_obligations","tax_obligations_description","insider_information"];!function(ei){ei[ei.PersonalInfoForm=0]="PersonalInfoForm",ei[ei.PrivateInfoForm=1]="PrivateInfoForm",ei[ei.PersonalAndPrivateInfoForm=2]="PersonalAndPrivateInfoForm",ei[ei.DocumentUploadForm=3]="DocumentUploadForm",ei[ei.Hidden=4]="Hidden",ei[ei.PrivateInfoFormWithJapanExtraInfo=5]="PrivateInfoFormWithJapanExtraInfo",ei[ei.PersonalAndPrivateInfoFormWithJapanExtraInfo=6]="PersonalAndPrivateInfoFormWithJapanExtraInfo",ei[ei.ProCorporateInfoForm=7]="ProCorporateInfoForm"}(PG||(PG={}));let mp=ei=>"JP"===ei?{tax_obligations:!1,insider_information:!1}:{};class mg extends dW{get documentsPollTimeout(){return 2*this.documentStore.documentProcessingTimeout}get profileCountry(){var ei;return null===(ei=this.state.profileInformation)||void 0===ei?void 0:ei.country}get shouldShowProForm(){return this.state.applyingPro&&(this.state.pendingTier===PA.Intermediate||this.documentStore.isCheckingManually())}showProForm(){this.state.form&&this.setState({applyingTier:PA.Pro})}constructor(ei){super(),this.state={tierConfigs:[],loading:!0,isPolling:!1,isSavingPartialInfo:!1,error:void 0,verificationStatus:PA.None,applyingTier:null,pendingTier:null,verificationFormPending:!1,loadingPersonalInfo:!1,verificationContent:PG.Hidden,profileInformation:null,form:null,canSubmit:!1,documentsRequired:!1,fetchingLocaleConfig:!1,fetchingTierConfig:!1,localeConfig:null,settingsLocked:!1,applyingPro:!1,isCorp:!1,proCorpValues:null},this.addressVerificationPollInterval=2e3,this.onClickGetVerified=ei=>dQ(this,void 0,void 0,function*(){if(this.setState({applyingTier:ei}),this.unsetVerificationFormPending(),!this.state.form)return;this.setState({form:Object.assign(Object.assign({},this.state.form),{errors:{}})});let eo=null!==this.state.pendingTier?this.state.pendingTier:this.state.verificationStatus;if(this.isMissingInfoForApiValidation(this.state.form.values)&&(eo=PA.None),ei!==PA.Pro||!this.state.isCorp||eo!==PA.None)switch(eo){case PA.None:{let eo=this.state.form.values.country?yield this.getLocaleConfigForForm(this.state.form):{country:"US",zipFormat:"",provinces:[]};if(eo.provinces&&0===eo.provinces.length&&!isNaN(parseInt(this.state.form.values.province,10))){let ei=Object.assign({},this.state.form);ei.values.province="",this.setState({form:ei})}ei=PA.Pro&&this.setState({applyingTier:PA.Intermediate,applyingPro:!0});break;case PA.Intermediate:break;default:this.hideContent()}}),this.uploadFile=(ei,eo,ea,eu)=>{var ec=this;return function(ed){return arguments.length>1&&void 0!==arguments[1]&&arguments[1],dQ(ec,void 0,void 0,function*(){yield this.documentStore.uploadFile(ei,eo,ea)(ed),eu&&eu(),this.documentStore.isProcessing()&&this.startPollingForAddressVerification(),this.shouldShowProForm&&this.showProForm()})}},this.pollForAddressVerification=()=>dQ(this,void 0,void 0,function*(){if(this.state.isPolling){if(this.documentStore.isCheckingManually()||!this.documentStore.isProcessing())this.stopPollingDocumentStatus();else{this.pollingTimeout||(this.pollingTimeout=window.setTimeout(()=>{this.documentStore.isProcessing()&&this.documentStore.flagForManualReview(),this.stopPollingDocumentStatus()},this.documentsPollTimeout));try{yield this.refreshProfileInfoAndDocs()}catch(ei){this.setError(ei)}setTimeout(()=>dQ(this,void 0,void 0,function*(){this.pollForAddressVerification()}),this.addressVerificationPollInterval)}}}),this.startPollingForAddressVerification=()=>dQ(this,void 0,void 0,function*(){yield this.setState({isPolling:!0}),yield this.pollForAddressVerification()}),this.stopPollingDocumentStatus=()=>{this.setState({isPolling:!1}),this.documentStore.state.documentsUploaded.length>0&&this.documentStore.resetDocuments(),this.pollingTimeout&&(window.clearTimeout(this.pollingTimeout),this.pollingTimeout=void 0),this.shouldShowProForm&&this.showProForm()},this.onSubmit=()=>dQ(this,void 0,void 0,function*(){let{form:ei,applyingTier:eo}=this.state;if(ei&&eo)try{this.setVerificationFormPending(),this.isDocumentUploadFormShown()?yield this.onSubmitDocumentUpload():yield this.onSubmitProfileInformation(ei,eo)}catch(ei){throw this.setError(ei),ei}finally{this.shouldShowProForm?this.showProForm():this.unsetVerificationFormPending()}}),this.isVerified=()=>{let ei=this.documentStore.state.documentsRequired.complete,eo=this.state.verificationStatus===this.state.applyingTier,ea=md({documentStore:this.documentStore,verificationStore:this}),eu=this.documentStore.isProcessing();return ei||eo&&ea&&!eu},this.refreshProfileInfoAndDocs=()=>dQ(this,void 0,void 0,function*(){this.setLoadingPersonalInfo();let ei=yield this.fetchAndSetProfileInfo({verificationStatus:this.state.verificationStatus,settingsLocked:this.state.settingsLocked});return this.unsetLoadingPersonalInfo(),ei}),this.computePendingTier=(ei,eo,ea,eu)=>dQ(this,void 0,void 0,function*(){if(!eo||eodQ(this,void 0,void 0,function*(){return!ea&&(yield this.documentStore.fetchDocumentsAdvanced({tier:fX(ei),applyingTier:fX(eo),reInitState:!1,isCorp:this.state.isCorp}),this.documentStore.isProcessing()&&!this.pollingTimeout&&this.pollForAddressVerification(),this.documentStore.state.documentsRequired.allDocsUploaded)}),this.onSubmitDocumentUpload=()=>dQ(this,void 0,void 0,function*(){let ei=yield this.refreshProfileInfoAndDocs();ei&&(this.unsetVerificationFormPending(),this.state.applyingPro||this.hideContent())}),this.onSubmitProfileInformation=(ei,eo)=>dQ(this,void 0,void 0,function*(){let ea=yield this.updateProfile(ei);this.isErrorResponse(ea)||(this.documentsForApplyingTierRequired(eo)?yield this.openDocumentUploadForm(eo):this.hideContent())}),this.openDocumentUploadForm=ei=>dQ(this,void 0,void 0,function*(){if(this.documentsForApplyingTierRequired(ei)){let eo=fX(this.state.verificationStatus),ea=fX(ei);yield this.documentStore.fetchDocuments(eo,ea),this.setVerificationContentToDocumentUploadForm(),this.documentStore.isProcessing()&&this.pollForAddressVerification()}}),this.convertAccountProfileToRawResponse=ei=>{var eo,ea,eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT,ek,eC,eO,eI,eP,eD,eN,eM,ej;return{government_id:{ssn:ei.ssn},dob:"",phone:null!==(eo=ei.phone)&&void 0!==eo?eo:"",occupation:{id:null===(ea=ei.occupation)||void 0===ea?void 0:ea.id,name:null===(eu=ei.occupation)||void 0===eu?void 0:eu.name},tier:ei.tier?ei.tier:PT.Zero,first_name:null!==(ec=ei.firstName)&&void 0!==ec?ec:"",last_name:null!==(ed=ei.lastName)&&void 0!==ed?ed:"",phone_type:null!==(ef=ei.phoneType)&&void 0!==ef?ef:"M",phoneCountry:1,localized_first_name:null!==(eh=ei.localizedFirstName)&&void 0!==eh?eh:"",localized_last_name:null!==(eg=ei.localizedLastName)&&void 0!==eg?eg:"",address1:null!==(em=ei.address1)&&void 0!==em?em:"",address2:null!==(eb=ei.address2)&&void 0!==eb?eb:"",country:null!==(ew=ei.country)&&void 0!==ew?ew:"",city:null!==(e_=ei.city)&&void 0!==e_?e_:"",postal_code:null!==(eS=ei.postalCode)&&void 0!==eS?eS:"",ssn:null!==(eE=ei.ssn)&&void 0!==eE?eE:"",purpose_of_trading:null!==(eA=ei.purposeOfTrading)&&void 0!==eA?eA:[],investment_experience:null!==(eT=ei.investmentExperience)&&void 0!==eT?eT:[],household_income:null!==(ek=ei.householdIncome)&&void 0!==ek?ek:"",net_worth:"",estimated_maximum_monthly_deposits:null!==(eC=ei.estimatedMaximumMonthlyDeposits)&&void 0!==eC?eC:"",liquid_net_worth:null!==(eO=ei.liquidNetWorth)&&void 0!==eO?eO:"",source_of_income:null!==(eI=ei.sourceOfIncome)&&void 0!==eI?eI:"",reason_for_creating_account:null!==(eP=ei.reasonForCreatingAccount)&&void 0!==eP?eP:"",reason_for_creating_account_other:null!==(eD=ei.reasonForCreatingAccountOther)&&void 0!==eD?eD:"",tax_obligations:null!==(eN=ei.taxObligations)&&void 0!==eN&&eN,tax_obligations_description:null!==(eM=ei.taxObligationsDescription)&&void 0!==eM?eM:"",insider_information:null!==(ej=ei.insiderInformation)&&void 0!==ej&&ej}},this.getProfileData=()=>dQ(this,void 0,void 0,function*(){if(!this.apiClient)return console.error("No client in verification store"),null;let ei=yield mu(this.apiClient);return this.convertAccountProfileToRawResponse(ei)}),this.fetchAndSetProfileInfo=ei=>{let{verificationStatus:eo,settingsLocked:ea,kycFlags:eu}=ei;return dQ(this,void 0,void 0,function*(){let ei=yield this.getProfileData();return ei&&(yield this.setProfileInformation({prevTier:eo,profileInformation:ei,settingsLocked:ea,kycFlags:eu})),ei})},this.setLoadingPersonalInfo=()=>this.setState({loadingPersonalInfo:!0}),this.unsetLoadingPersonalInfo=()=>this.setState({loadingPersonalInfo:!1}),this.setProfileInformation=ei=>{let{prevTier:eo,profileInformation:ea,settingsLocked:eu,kycFlags:ec}=ei;return dQ(this,void 0,void 0,function*(){let ei=void 0!==ea.tier?fJ(ea.tier):eo;this.documentStore.updateTier(fX(ei));let ed={values:Object.assign(Object.assign({},mp(ea.country)),p8(ea)),errors:{},validators:{}};null!==this.state.form&&"ssn"in this.state.form.validators&&(ed.validators.ssn=this.state.form.validators.ssn);let ef=ea.tier!==PT.Four&&ec&&(!0===ec.has_tier4_individual||(null==ec?void 0:ec.has_tier4_corporate)===!0),eh=this.state.isCorp||(null==ec?void 0:ec.has_tier4_corporate)===!0||(null==ec?void 0:ec.is_corporate)===!0,eg=ef?PA.Pro:ea.tier_verifiable?fJ(ea.tier_verifiable):null;ea.tier_verified&&(null===eg||null!==eg&&fJ(ea.tier_verified)>eg)&&(eg=fJ(ea.tier_verified));let em=ea.country,eb=yield this.computePendingTier(ei,eg,eu,em);this.setState({verificationStatus:ei,loadingPersonalInfo:!1,pendingTier:eb,form:ed,profileInformation:Object.assign({},ed.values),isCorp:eh})})},this.getLocaleConfigForForm=ei=>dQ(this,void 0,void 0,function*(){this.setState({fetchingLocaleConfig:!0});try{let eo=yield hZ(ei.values.country),ea=gS(ei.values.country,eo);return this.setState({fetchingLocaleConfig:!1}),ea}catch(ei){return this.setState({fetchingLocaleConfig:!1}),{country:"US",zipFormat:"",provinces:[]}}}),this.setError=ei=>this.setState({error:ei}),this.isDocumentUploadFormShown=()=>this.state.verificationContent===PG.DocumentUploadForm,this.setVerificationFormPending=()=>this.setState({verificationFormPending:!0}),this.unsetVerificationFormPending=()=>this.setState({verificationFormPending:!1}),this.hideContent=()=>{this.setState({verificationContent:PG.Hidden,applyingTier:null})},this.setVerificationContentToDocumentUploadForm=()=>this.setState({verificationContent:PG.DocumentUploadForm}),this.documentsForApplyingTierRequired=ei=>{var eo,ea;let eu=this.state.tierConfigs[ei-1];return!!eu&&!!(null===(ea=null===(eo=null==eu?void 0:eu.requirements)||void 0===eo?void 0:eo.documents)||void 0===ea?void 0:ea.length)},this.updateProfile=ei=>dQ(this,void 0,void 0,function*(){let eo=yield gu({method:"put",url:hK,data:p9(ei)},PU.SETTINGSACCOUNT),ea=yield cM.request(eo);return ea.data.errors.length||(yield this.setProfileInformation({prevTier:this.state.verificationStatus,profileInformation:ea.data.result,settingsLocked:this.state.settingsLocked})),ea}),this.isErrorResponse=ei=>!!ei.data.errors.length,this.isMissingInfoForApiValidation=ei=>!gp({values:ei,errors:{},validators:{first_name:[f$],last_name:[f$],dob:[p6]}}),this.shouldShowJPExtraInfoForm=ei=>mh.some(eo=>eo in ei.validators),this.apiClient=ei.apiClient,this.documentStore=ei.documentStore}}function my(ei){return!!ei&&(mv(ei)||m_(ei)||mb(ei))}function mv(ei){var eo,ea;let eu=(null===(ea=null===(eo=null==ei?void 0:ei.next)||void 0===eo?void 0:eo.data_schema)||void 0===ea?void 0:ea.properties)||{};return Object.keys(eu).length>0}function mb(ei){var eo;let ea=null===(eo=null==ei?void 0:ei.next)||void 0===eo?void 0:eo.user_action;return!!ea}function mw(ei,eo){if(!ei||!ei.name||!eo)return null;let ea=eo.find(eo=>eo.name===ei.name);return ea||null}function m_(ei){return"pvi_remediation_docs"===ei.title||ei.title.endsWith("_docs")}let mS=5e3,mE=6e4,mx=4e3;!function(ei){ei.Business="Business",ei.Personal="Personal",ei.Unknown="Unknown"}(PV||(PV={})),function(ei){ei.Unverified="Unverified",ei.Pending="Pending",ei.PersonalOnly="PersonalOnly",ei.UnderReview="UnderReview",ei.Incomplete="Incomplete",ei.Verified="Verified",ei.DisabledForCountry="DisabledForCountry",ei.DisabledForGlobalSettingsLock="DisabledForGlobalSettingsLock",ei.DisabledForRegion="DisabledForRegion",ei.DisabledRequiresIntermediate="DisabledRequiresIntermediate",ei.DisabledRequiresFunding="DisabledRequiresFunding",ei.ExpressFailed="ExpressFailed"}(Pq||(Pq={}));let mA=ei=>{let{profile:eo,settings:ea}=ei;if(void 0===eo||void 0===ea)return!1;let{tierBucket:eu,country:ec,province:ed,tier:ef,tierVerifiable:eh,tierVerified:eg,access:em}=eo,{kycFlags:eb,tier:ew}=ea;if(eu===Py.Express||eu===Py.ExpressFailed)return!0;let e_=!0===eb.fiatApplicant||!0===eb.fiatApproved||pV(null==em?void 0:em.userKyc),eS=void 0!==ef&&ef>0||void 0!==eh&&eh>0||void 0!==eg&&eg>0||void 0!==ew&&ew>0;return(!!e_||!eS)&&!!(e_||pq({country:ec,province:null==ed?void 0:ed.id}))},mT=()=>(window.location.replace(Pb.InstantBuySell),!1);function mk(ei){return ei.accountType===PV.Business}function mC(ei){return ei.accountType===PV.Personal}function mO(ei){return!!ei.initialApplyingTier}function mI(ei){return(null==ei?void 0:ei.settingsLock)||!1}function mP(ei){return ei.accountType===PV.Unknown}function mD(ei,eo,ea){var eu;let ec=[Pq.Unverified,Pq.Incomplete,...!0===ea?[Pq.DisabledForCountry]:[]],ed=!0===ea&&ei.tierStatuses[eo]===Pq.DisabledForCountry&&(null===(eu=ei.accountProfile)||void 0===eu?void 0:eu.tierBucket)===eo;return ec.includes(ei.tierStatuses[eo])&&!ed}function mN(ei){let{accountProfile:eo,accountSettings:ea}=ei,eu=mA({profile:eo,settings:ea});return mD(ei,Py.Starter)&&!eu}function mM(ei){let{accountProfile:eo,accountSettings:ea}=ei,eu=mA({profile:eo,settings:ea});return mD(ei,Py.Starter,!0)&&!eu&&(null==eo?void 0:eo.country)!==I9.JP}function mj(ei){let{accountProfile:eo,accountSettings:ea}=ei,eu=mA({profile:eo,settings:ea});return mD(ei,Py.Express)&&eu}function mR(ei){var eo;return mD(ei,Py.Intermediate)&&(null===(eo=ei.accountProfile)||void 0===eo?void 0:eo.country)!==I9.JP}function mL(ei){var eo;return mD(ei,Py.Intermediate)&&(null===(eo=ei.accountProfile)||void 0===eo?void 0:eo.country)===I9.JP}function mF(ei){return ei.accountType!==PV.Business&&mD(ei,Py.Pro)}function mB(ei){return ei.accountType===PV.Business&&mD(ei,Py.Pro)}function mU(ei){return mj(ei)&&ei.initialApplyingTier===Py.Express}function mz(ei){var eo;return!!(mB(ei)&&ei.initialApplyingTier&&(null===(eo=ei.accountSettings)||void 0===eo?void 0:eo.hasTfa))}function mG(ei,eo,ea){var eu;let ec=null===(eu=ei.flows)||void 0===eu?void 0:eu.find(ei=>"onboarding"===ei.type&&ei.name===eo);if(!ec)return!1;let ed=ei=>ec.next.user_action===ei;return Array.isArray(ea)?ea.some(ed):ed(ea)}function mV(ei){var eo,ea;let{fangorn:eu}=ei.featureFlags,ec=null===(eo=ei.accountSettings)||void 0===eo?void 0:eo.settingsLock,ed=!(null===(ea=ei.accountSettings)||void 0===ea?void 0:ea.hasTfa),ef=ec||ed,eh=mG(ei,"pro_corporate",["enable-2fa","disable-settings-lock","wait-for-settings-unlock"]);return!!(mB(ei)&&ei.initialApplyingTier&&ef&&eh&&eu)}function mq(ei){var eo;let{treeBeard:ea}=ei.featureFlags;return!!(mF(ei)&&ei.initialApplyingTier===Py.Pro&&(null===(eo=ei.accountSettings)||void 0===eo?void 0:eo.hasTfa)&&!0!==ea)}function mH(ei){var eo;let{treeBeard:ea}=ei.featureFlags;return!!(mF(ei)&&ei.initialApplyingTier===Py.Pro&&(null===(eo=ei.accountSettings)||void 0===eo?void 0:eo.hasTfa)&&!0===ea)}function mW(ei){var eo,ea;let eu=null===(eo=ei.accountSettings)||void 0===eo?void 0:eo.settingsLock,ec=!(null===(ea=ei.accountSettings)||void 0===ea?void 0:ea.hasTfa);return eu||ec}function mK(ei){let{fangorn:eo}=ei.featureFlags;return!!(!0===eo&&mF(ei)&&!mW(ei))}function mY(ei){let{treeBeard:eo}=ei.featureFlags;if(eo&&ei.initialApplyingTier===Py.Pro&&mF(ei))return!0;let{fangorn:ea}=ei.featureFlags,eu=mG(ei,"pro_individual",["enable-2fa","disable-settings-lock","wait-for-settings-unlock"]);return!!(mF(ei)&&ei.initialApplyingTier===Py.Pro&&mW(ei)&&eu&&ea)}function mZ(ei){return mN(ei)&&ei.initialApplyingTier===Py.Starter}let m$=ei=>{var eo;return m3(ei)&&!!ei.flows&&(null===(eo=ei.flows)||void 0===eo?void 0:eo.some(ei=>"onboarding"===ei.type&&"post_t2"===ei.name))},mJ=ei=>{var eo;return m3(ei)&&!!ei.flows&&(null===(eo=ei.flows)||void 0===eo?void 0:eo.some(ei=>"onboarding"===ei.type&&"pre_t4"===ei.name))},mQ=ei=>{var eo;return!!(mJ(ei)&&ei.initialApplyingTier&&(null===(eo=ei.accountSettings)||void 0===eo?void 0:eo.hasTfa)&&!mI(ei.accountSettings))},mX=ei=>{var eo;let{shippingNews:ea}=ei.featureFlags;return m3(ei)&&!!ei.flows&&(null===(eo=ei.flows)||void 0===eo?void 0:eo.some(ei=>"onboarding"===ei.type&&"pro_individual"===ei.name))&&ea},m0=ei=>{var eo;return!!(mX(ei)&&ei.initialApplyingTier&&(null===(eo=ei.accountSettings)||void 0===eo?void 0:eo.hasTfa)&&!mI(ei.accountSettings))},m3=ei=>!!ei.flows&&ei.flows.length>0,m5=ei=>!!ei.flows&&ei.flows.length>0&&!!ei.flows.find(ei=>"remediation"===ei.type),m4=(ei,eo)=>!!ei.flows&&ei.flows.length>0&&!!ei.flows.find(ei=>"onboarding"===ei.type&&(!eo||ei.name===eo));function m6(ei){return mR(ei)&&ei.initialApplyingTier===Py.Intermediate}function m8(ei){var eo;if(null===(eo=ei.flows)||void 0===eo?void 0:eo.some(ei=>"remediation"===ei.type&&"blocking"===ei.modality&&mv(ei)))return!0;let ea=m4(ei,"post_t2")&&m9(ei);if(ea)return!0;let eu="KYC Flow"===ei.initialApplyingTier&&(mR(ei)&&m4(ei,"post_t2")||m5(ei));return eu}function m9(ei){let eo=ei.initialApplyingTier===Py.Intermediate||ei.initialApplyingTier===Py.Pro,ea=!mM(ei);return eo&&mR(ei)&&ea}function m7(ei){return mL(ei)&&ei.initialApplyingTier===Py.Intermediate}function yn(ei){return mR(ei)&&mM(ei)&&ei.initialApplyingTier===Py.Intermediate}function yi(ei){return mR(ei)&&mj(ei)&&ei.initialApplyingTier===Py.Intermediate}function yo(ei){return!!ei.documents&&ei.documents.documentsUploaded.length>0}function ya(){for(var ei=arguments.length,eo=Array(ei),ea=0;eaeo.pendingTier?ya(eo.pendingTier,ei):ei})}let yu=(ei,eo)=>{if(!ei||!eo)return Py.None;if(void 0!==ei.tierBucket)return ei.tierBucket;let ea=mA({profile:ei,settings:eo});return ei.tier?pI(ei.tier,ea):Py.None};function yd(ei){return cL({applyingTier:()=>ei,previousApplication:ei=>ei.application,application:eo=>{var ea;return void 0===ei?void 0:{tier:yu(eo.accountProfile),country:null===(ea=eo.accountProfile)||void 0===ea?void 0:ea.country,applyingTier:ei}}})}function yf(){return cL({submissionStartTime:()=>Date.now()})}let yh={target:"Tier Table.Loading",actions:["trackExitModal","clearApplyingTier","clearInitialApplyingTier"]},yg={target:"Tier Table.Loading",actions:["trackExitModal","clearApplyingTier","clearInitialApplyingTier"]},ym={actions:["trackExitModal","clearApplyingTier","clearInitialApplyingTier","parentCloseForm"]};function yy(ei){return"Verify Tier: ".concat(ei)}function yv(){return"Verify KYC Flow"}function yb(ei){return"Submit Tier: ".concat(ei)}function yw(ei){return"Submit KYC Flow ".concat(ei)}let y_=cL({tierStatuses:ei=>{let eo=yo(ei);return{[Py.Starter]:yN(Object.assign({forTier:Py.Starter,hasUploadedDoc:eo},ei)),[Py.Express]:yN(Object.assign({forTier:Py.Express,hasUploadedDoc:eo},ei)),[Py.Intermediate]:yN(Object.assign({forTier:Py.Intermediate,hasUploadedDoc:eo},ei)),[Py.Pro]:yN(Object.assign({forTier:Py.Pro,hasUploadedDoc:eo},ei))}}}),yS=[cL({accountProfile:(ei,eo)=>eo.data.accountProfile}),y_],yE=[cL({accountProfile:(ei,eo)=>eo.data.accountProfile,flows:(ei,eo)=>ei.flows,tierRequirements:(ei,eo)=>eo.data.tierRequirements,accountSettings:(ei,eo)=>eo.data.accountSettings,documents:(ei,eo)=>eo.data.documents,docsComplete:(ei,eo)=>eo.data.docsComplete,accountType:(ei,eo)=>{var ea,eu,ec;let ed=null===(ec=null===(eu=null===(ea=eo.data.accountProfile)||void 0===ea?void 0:ea.access)||void 0===eu?void 0:eu.userKyc)||void 0===ec?void 0:ec.includes("corporate");return ed?PV.Business:ei.accountType},submissionStartTime:(ei,eo)=>0,initialApplyingTier:(ei,eo)=>ei.flowTier||eo.data.initialApplyingTier,returnPath:(ei,eo)=>ei.overrideReturnPath||eo.data.returnPath}),cL((ei,eo)=>({isStarterTierDisabled:eo.data.isStarterTierDisabled})),y_],yx=ei=>{var eo,ea,eu,ec;return(null===(eo=ei.accountProfile)||void 0===eo?void 0:eo.tierBucket)===Py.Express&&pH({country:null===(ea=ei.accountProfile)||void 0===ea?void 0:ea.country,province:null===(ec=null===(eu=ei.accountProfile)||void 0===eu?void 0:eu.province)||void 0===ec?void 0:ec.id})===Py.Express},yA=ei=>{var eo;return ei.tierBucket===Py.ExpressFailed||ei.tierBucket===Py.Express&&pH({country:ei.country,province:null===(eo=ei.province)||void 0===eo?void 0:eo.id})===Py.Intermediate},yT=ei=>!!ei.accountProfile&&yA(ei.accountProfile),yk=ei=>!!ei.application&&void 0!==ei.applyingTier&&ei.applyingTier!==Py.Express,yC=ei=>!!ei.returnPath,yO=ei=>{let eo=ei.initialApplyingTier===Py.Intermediate;return!eo&&!!ei.returnPath},yI=ei=>{var eo;let ea=(null===(eo=ei.accountProfile)||void 0===eo?void 0:eo.tierBucket)===Py.Express,eu=ei.initialApplyingTier===Py.Intermediate;return!eu&&!!ei.returnPath&&ea},yP=(ei,eo)=>{let ea=new URLSearchParams({name:ei});eo&&ea.set("return_path",eo),window.location.assign("/verify/flow?".concat(ea.toString()))},yD=cJ({id:"flowActor",initial:"Tier Table",predictableActionArguments:!1,context:{accountType:PV.Personal,tierStatuses:{[Py.Starter]:Pq.Unverified,[Py.Express]:Pq.Unverified,[Py.Intermediate]:Pq.Unverified,[Py.Pro]:Pq.Unverified},submissionStartTime:0,expressTimeout:mE,expressFrequency:mS,redirectBuyCrypto:mx,pendingTier:void 0,isStarterTierDisabled:ei=>!1,featureFlags:{}},on:{OVERRIDE_TIER:{actions:[cL({flowTier:(ei,eo)=>{if("OVERRIDE_TIER"===eo.type&&eo.flowTier)return eo&&eo.flowTier},overrideReturnPath:(ei,eo)=>{if("OVERRIDE_TIER"===eo.type&&eo.overrideReturnPath)return eo&&eo.overrideReturnPath},flows:(ei,eo)=>{if("OVERRIDE_TIER"===eo.type&&eo.flows)return eo&&eo.flows}})]}},states:{OnboardingApp:{id:"OnboardingApp",states:{ProIndividual:{entry:"goToOnboardingAppProIndividual"},ProCorporate:{entry:"goToOnboardingAppProCorporate"}}},"Tier Table":{id:"Tier Table",initial:"Loading",meta:{description:"Tier Table page"},states:{Loading:{invoke:{id:"init",src:"init",onDone:{target:"AskAccountType",actions:yE},onError:{target:"Error",actions:cL({error:(ei,eo)=>eo.data})}}},Error:{on:{Retry:{target:"Loading"}}},AskAccountType:{meta:{description:"Modal asking the pre-qualifying question of whether the customer is Personal or Business."},always:[{target:"Business",cond:"isBusiness"},{target:"Personal",cond:"isPersonal"},{target:"Personal",cond:"isInitialApplyingTierSet"}],on:{Personal:{target:"Personal",actions:[cL({accountType:()=>PV.Personal}),y_]},Business:{target:"Business",actions:[cL({accountType:()=>PV.Business}),y_]},Exit:{target:"Personal"}}},ProQuiz:{meta:{description:"Modal pre-qualifying questions to determine if need for pro account"},on:{Submit:[{target:"#KYC Flow",cond:"shouldTransitionToT4KYCFlow",actions:["trackApplyingTier",yd(Py.Pro)]},{target:"#Tier 4 Form",actions:["trackApplyingTier",yd(Py.Pro)]}],Exit:{target:"Personal"},[yb(Py.Pro)]:{target:"#Tier 4 Form",actions:["trackApplyingTier",yd(Py.Pro)]}}},Personal:{meta:{description:"Personal version of the Tier Table"},always:[{target:"#Tier 2 Starter Form",cond:"shouldInitiallyApplyToStarter",actions:["trackApplyingTier","onApplyToTier",yd(Py.Starter)]},{target:"#Tier 2 Express Form",cond:"shouldInitiallyApplyToExpress",actions:["trackApplyingTier","onApplyToTier",yd(Py.Express)]},{target:"#Tier 2 Starter Form",cond:"shouldInitiallyApplyToIntermediateAndStarter",actions:["trackApplyingTier","onApplyToTier",yd(Py.Intermediate)]},{target:"#Tier 2 Express Form",cond:"shouldInitiallyApplyToIntermediateAndExpress",actions:["trackApplyingTier","onApplyToTier",yd(Py.Intermediate)]},{target:"#KYC Flow",cond:"shouldInitiallyApplyToKYCFlow"},{target:"#Tier 3 Form",cond:"shouldInitiallyApplyToIntermediate",actions:["trackApplyingTier","onApplyToTier",yd(Py.Intermediate)]},{target:"#Tier 3 Form JP",cond:"shouldInitiallyApplyToIntermediateJP",actions:["trackApplyingTier","onApplyToTier",yd(Py.Intermediate)]},{target:"#KYC Flow",cond:"shouldInitiallyApplyToT4KYCFlow",actions:["trackApplyingTier",yd(Py.Pro)]},{target:"#Tier 4 Form",cond:"shouldInitiallyApplyToProIndividual",actions:["trackApplyingTier","onApplyToTier",yd(Py.Pro)]},{target:"#OnboardingApp.ProIndividual",cond:"shouldInitiallyApplyToProIndividualNewWebApp",actions:["trackApplyingTier","onApplyToTier",yd(Py.Pro)]},{target:"#OnboardingApp.ProIndividual",cond:"shouldInitiallyRedirectProIndividualToOnboardingApp",actions:["trackApplyingTier"]}],on:{[yy(Py.Starter)]:{meta:{description:"Starter tier"},target:"#Tier 2 Starter Form",cond:"canApplyToStarter",actions:["trackApplyingTier",yd(Py.Starter)]},[yv()]:[{meta:{description:"KYC Flow"},target:"#KYC Flow",cond:"shouldTransitionToPostT2KYCFlow"}],[yy(Py.Express)]:{meta:{description:"Express tier"},target:"#Tier 2 Express Form",cond:"canApplyToExpress",actions:["trackApplyingTier",yd(Py.Express)]},[yy(Py.Intermediate)]:[{target:"#Tier 2 Starter Form",cond:"canApplyToIntermediateAndStarter",actions:["trackApplyingTier",yd(Py.Intermediate)]},{target:"#Tier 2 Express Form",cond:"canApplyToIntermediateAndExpress",actions:["trackApplyingTier",yd(Py.Intermediate)]},{target:"#KYC Flow",cond:"shouldTransitionToPostT2KYCFlow",actions:["trackApplyingTier",yd("KYC Flow")]},{target:"#Tier 3 Form",cond:"canApplyToIntermediate",actions:["trackApplyingTier",yd(Py.Intermediate)]},{target:"#Tier 3 Form JP",cond:"canApplyToIntermediateJP",actions:["trackApplyingTier",yd(Py.Intermediate)]}],[yy(Py.Pro)]:[{target:"#Tier 2 Starter Form",cond:"canApplyToProAndStarter",actions:["trackApplyingTier",yd(Py.Pro)]},{target:"#Tier 2 Express Form",cond:"canApplyToProAndExpress",actions:["trackApplyingTier",yd(Py.Pro)]},{target:"#KYC Flow",cond:"shouldTransitionToPostT2KYCFlow",actions:["trackApplyingTier",yd("KYC Flow")]},{target:"#Tier 3 Form",cond:"canApplyToProAndIntermediate",actions:["trackApplyingTier",yd(Py.Pro)]},{target:"#OnboardingApp.ProIndividual",cond:"shouldInitiallyRedirectToNewWebApp",actions:["trackApplyingTier"]},{target:"#KYC Flow",cond:"shouldTransitionToT4KYCFlow",actions:["trackApplyingTier",yd(Py.Pro)]},{target:"#Tier 4 Form",cond:"canApplyToPro",actions:["trackApplyingTier",yd(Py.Pro)]}]}},Business:{meta:{description:"Business version of the Tier Table"},always:[{target:"#KYC Flow",cond:"shouldInitiallyApplyToKYCFlow"},{target:"#OnboardingApp.ProCorporate",cond:"shouldInitiallyRedirectBusinessToOnboardingApp",actions:["trackApplyingTier"]},{target:"#KYC Flow",cond:"shouldInitiallyApplyToPreT4KYCFlow",actions:["trackApplyingTier",yd(Py.Pro)]},{target:"#Business Form",cond:"shouldInitiallyApplyBusiness",actions:["trackApplyingTier",yd(Py.Pro)]}],on:{[yy(Py.Pro)]:[{target:"#OnboardingApp.ProCorporate",cond:"shouldInitiallyRedirectBusinessToOnboardingApp",actions:["trackApplyingTier"]},{target:"#KYC Flow",cond:"shouldTransitionToPreT4KYCFlow",actions:["trackApplyingTier",yd(Py.Pro)]},{target:"#Business Form",cond:"canApplyToBusiness",actions:["trackApplyingTier",yd(Py.Pro)]}]}}}},"Tier 2 Starter Form":{id:"Tier 2 Starter Form",on:{Exit:yh,ExitPage:ym,[yb(Py.Starter)]:[{target:"KYC Flow",cond:"shouldTransitionToPostT2KYCFlow",actions:["trackVerificationFormSubmission",yl(Py.Starter)]},{target:"Tier 3 Form",cond:"shouldTransitionToIntermediate",actions:["trackVerificationFormSubmission",yl(Py.Starter)]},{target:"Tier 3 Form JP",cond:"shouldTransitionToIntermediateJP",actions:["trackVerificationFormSubmission",yl(Py.Starter)]},{target:"#ReturnToPath",cond:"shouldStarterOrExpressReturnToPath",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","onApplicationSubmit",yl(Py.Starter)]},{target:"Tier Table.Loading",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","onApplicationSubmit",yl(Py.Starter)]}]}},"KYC Flow":{id:"KYC Flow",on:{Exit:yh,ExitPage:ym,[yw("remediation")]:[{target:"#ReturnToPath"}],[yw("onboarding")]:[{target:"#Business Form",cond:"canApplyToBusiness",actions:["trackApplyingTier",yd(Py.Pro)]},{target:"Tier 3 Form",cond:"shouldTransitionToIntermediate",actions:["trackVerificationFormSubmission",yl(Py.Starter)]},{target:"Tier 3 Form JP",cond:"shouldTransitionToIntermediateJP",actions:["trackVerificationFormSubmission",yl(Py.Starter)]},{target:"#ReturnToPath",cond:ei=>ei.applyingTier===Py.Pro,actions:[yl(Py.Pro)]},{target:"#ReturnToPath",cond:"shouldStarterOrExpressReturnToPath",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","onApplicationSubmit",yl(Py.Starter)]},{target:"Tier Table.Loading",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","onApplicationSubmit",yl(Py.Starter)]}]}},"Tier 2 Express Form":{id:"Tier 2 Express Form",initial:"Form",on:{Exit:yh,ExitPage:ym},states:{Form:{on:{[yb(Py.Express)]:[{target:"Submitted",actions:["trackVerificationFormSubmission",yf()]}]}},Submitted:{id:"Submitted",initial:"idle",after:{EXPRESS_TIMEOUT:{target:"#Tier 3 Form",actions:["trackVerificationFormSubmissionTimeout",yl(Py.Express),yd(Py.Intermediate),"onApplyToTier"]}},states:{idle:{id:"idle",after:{EXPRESS_FREQUENCY:"polling"},always:[{target:"#Success",cond:yx,actions:["trackSuccessfulApplication","onApplicationSubmit"]},{target:"#Tier 3 Form",cond:yT,actions:["trackUnsuccessfulApplication","onFailedExpressApplicationSubmit",yd(Py.Intermediate),"onApplyToTier"]},{target:"#ReturnToPath",cond:"shouldExpressReturnToPath",actions:["trackSuccessfulApplication","onApplicationSubmit"]},{target:"#Tier 3 Form",cond:yk,actions:["trackImmediateExpressApplication","onFailedExpressApplicationSubmit",yd(Py.Intermediate),"onApplyToTier"]}]},polling:{id:"polling",invoke:{id:"fetchAccountProfile",src:"fetchAccountProfile",onDone:{target:"idle",actions:yS},onError:{target:"idle"}}}}},Success:{id:"Success",after:[{delay:"REDIRECT_BUY_CRYPTO",target:"InstantBuy"}]},InstantBuy:{id:"InstantBuy",always:[{target:"#ReturnToPath",cond:"shouldStarterOrExpressReturnToPath"},{actions:mT}]}}},"Tier 3 Form":{id:"Tier 3 Form",on:{Exit:yh,ExitPage:ym,[yb(Py.Intermediate)]:[{target:"Tier 4 Form",cond:ei=>ei.applyingTier===Py.Pro,actions:["trackVerificationFormSubmission",yl(Py.Intermediate)]},{target:"#ReturnToPath",cond:"shouldReturnToPath",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","onApplicationSubmit",yl(Py.Intermediate)]},{target:"Dashboard",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","onApplicationSubmit",yl(Py.Intermediate)]}]}},"Tier 3 Form JP":{id:"Tier 3 Form JP",on:{Exit:yh,ExitPage:ym},initial:"JPProfile",states:{JPProfile:{id:"JPProfile",always:[{target:"#Tier 3 Form JP.JPDocs",cond:ei=>{var eo,ea;return(null===(eo=ei.accountProfile)||void 0===eo?void 0:eo.tierBucket)===Py.Starter||!!(null===(ea=ei.accountProfile)||void 0===ea?void 0:ea.firstName)}}],on:{submitProfile:{target:"#Tier 3 Form JP.JPDocs"}}},JPDocs:{id:"JPDocs",on:{[yb(Py.Intermediate)]:[{target:"#Tier 4 Form",cond:ei=>ei.applyingTier!==Py.Intermediate,actions:["trackVerificationFormSubmission",yl(Py.Intermediate)]},{target:"#ReturnToPath",cond:"shouldReturnToPath",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","onApplicationSubmit",yl(Py.Intermediate)]},{target:"#Dashboard",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","onApplicationSubmit",yl(Py.Intermediate)]}]}}}},"Tier 4 Form":{id:"Tier 4 Form",on:{Exit:yh,ExitPage:ym,[yb(Py.Pro)]:{target:"Tier Table.Loading",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","clearInitialApplyingTier","onApplicationSubmit",yl(Py.Pro)]}}},"Business Form":{id:"Business Form",on:{Exit:yg,[yb(Py.Pro)]:{target:"Tier Table.Loading",actions:["trackVerificationFormSubmission","trackSuccessfulApplication","clearInitialApplyingTier","onApplicationSubmit",yl(Py.Pro)]}}},Dashboard:{id:"Dashboard",on:{"Get Verified":"Tier Table.Loading"}},ReturnToPath:{id:"ReturnToPath",always:[{target:"#Returned",actions:["returnToUserOriginalPath"]}]},Returned:{id:"Returned"}}},{guards:{isBusiness:mk,isPersonal:mC,isInitialApplyingTierSet:mO,shouldAskAccountType:mP,shouldSubmitExpressSuccess:yx,shouldSubmitExpressFailed:yT,shouldSubmitExpressImmediate:yk,canApplyToStarter:mN,canApplyToStarterFromIntermediate:mM,canApplyToExpress:mj,canApplyToIntermediate:mR,canApplyToIntermediateJP:mL,canApplyToPro:mF,canApplyToBusiness:mB,shouldInitiallyApplyBusiness:mz,shouldInitiallyRedirectBusinessToOnboardingApp:mV,canApplyToIntermediateAndStarter:ei=>mR(ei)&&mM(ei),canApplyToIntermediateAndExpress:ei=>mR(ei)&&mj(ei),canApplyToProAndStarter:ei=>mF(ei)&&mN(ei),canApplyToProAndExpress:ei=>mF(ei)&&mj(ei),canApplyToProAndIntermediate:ei=>mF(ei)&&mR(ei),shouldInitiallyApplyToExpress:mU,shouldInitiallyApplyToStarter:mZ,shouldTransitionToPostT2KYCFlow:m$,shouldTransitionToPreT4KYCFlow:mJ,shouldTransitionToT4KYCFlow:mX,shouldInitiallyApplyToPreT4KYCFlow:mQ,hasKycFlow:m3,shouldInitiallyApplyToIntermediateAndExpress:yi,shouldInitiallyApplyToIntermediateAndStarter:yn,shouldInitiallyApplyToIntermediate:m6,shouldInitiallyApplyToIntermediateJP:m7,shouldInitiallyApplyToKYCFlow:m8,shouldInitiallyApplyToT4KYCFlow:m0,shouldInitiallyApplyToProIndividual:mq,shouldInitiallyApplyToProIndividualNewWebApp:mH,shouldInitiallyRedirectToNewWebApp:mK,shouldInitiallyRedirectProIndividualToOnboardingApp:mY,shouldTransitionToIntermediate:ei=>{var eo;return ei.applyingTier!==Py.Starter&&ei.applyingTier!==Py.Pro&&(null===(eo=ei.accountProfile)||void 0===eo?void 0:eo.country)!==I9.JP},shouldTransitionToIntermediateJP:ei=>{var eo;return ei.applyingTier!==Py.Starter&&(null===(eo=ei.accountProfile)||void 0===eo?void 0:eo.country)===I9.JP},shouldReturnToPath:yC,shouldStarterOrExpressReturnToPath:yO,shouldExpressReturnToPath:yI},actions:{goToOnboardingAppProIndividual:ei=>{yP("pro_individual",ei.returnPath)},goToOnboardingAppProCorporate:ei=>{yP("pro_corporate",ei.returnPath)},trackApplyingTier:cS.Z,trackVerificationFormSubmission:cS.Z,trackSuccessfulApplication:cS.Z,trackUnsuccessfulApplication:cS.Z,trackImmediateExpressApplication:cS.Z,trackExitModal:cS.Z,trackVerificationFormSubmissionTimeout:cS.Z,clearApplyingTier:yd(void 0),clearInitialApplyingTier:cL({initialApplyingTier:void 0,flowTier:void 0}),onApplicationSubmit:cS.Z,onFailedExpressApplicationSubmit:cS.Z,onApplyToTier:cS.Z,returnToUserOriginalPath:cS.Z,parentCloseForm:cB("CLOSE_FORM")},services:{},delays:{EXPRESS_TIMEOUT:ei=>ei.expressTimeout,EXPRESS_FREQUENCY:ei=>ei.expressFrequency,REDIRECT_BUY_CRYPTO:ei=>ei.redirectBuyCrypto}}),yN=ei=>{var eo;let{forTier:ea,accountType:eu,accountProfile:ec,accountSettings:ed,hasUploadedDoc:ef,docsComplete:eh,isStarterTierDisabled:eg}=ei;if(!ec||!ed)return Pq.Unverified;let em=eu===PV.Business,{country:eb=I9.US,province:ew}=ec,e_=mA({profile:ec,settings:ed}),eS=yM({accountProfile:ec,accountSettings:ed,forTier:ea,isExpress:e_});if(ea===Py.Express&&yA({tierBucket:eS,country:eb,province:ew}))return Pq.ExpressFailed;let eE=yR(ei),eA=null==ew?void 0:ew.id;if(ea===Py.Starter&&eg(eb,ei.featureFlags)&&ec.tier===Pg.Zero)return eE&&pO(eE)>=pO(ea)?Pq.Pending:Pq.DisabledForCountry;if(em&&ea!==Py.Pro)return f3({country:eb,provinceId:eA})?Pq.DisabledForRegion:Pq.PersonalOnly;if(null===(eo=ec.access)||void 0===eo?void 0:eo.userKyc.includes(pM))switch(ea){case Py.Intermediate:return Pq.UnderReview;case Py.Pro:return Pq.DisabledRequiresIntermediate}if(eS===ea||eS&&pO(eS)>pO(ea))return Pq.Verified;if(ea===Py.Intermediate&&ec.country===I9.JP&&!eE&&ec.tierBucket===Py.Starter)return Pq.Incomplete;if(eE&&pO(eE)>=pO(ea))return ec.country===I9.JP&&eE===Py.Intermediate&&!0!==eh?Pq.Incomplete:Pq.Pending;if(ea===Py.Pro&&(eE&&eE===Py.Pro||eS===Py.Intermediate)&&ed.kycFlags.hasTier4Individual)return Pq.Pending;let{fangorn:eT}=ei.featureFlags,ek=["disable-settings-lock","wait-for-settings-unlock"],eC=em&&mG(ei,"pro_corporate",ek),eO=!em&&mG(ei,"pro_individual",ek),eI=ea===Py.Pro&&eT&&(eC||eO);return mI(ed)&&!eI?Pq.DisabledForGlobalSettingsLock:f3({country:eb,provinceId:eA})?Pq.DisabledForRegion:ea===Py.Starter&&(eg(eb,ei.featureFlags)||e_)?Pq.DisabledForCountry:ea===Py.Intermediate&&ef&&(eS===Py.Starter||eE===Py.Starter||eS===Py.Express||eE===Py.Express)?ec.country===I9.JP&&eS===Py.Starter&&!0===eh?Pq.Pending:Pq.Incomplete:em||ea!==Py.Pro||eS===Py.Intermediate?Pq.Unverified:Pq.DisabledRequiresIntermediate},yM=ei=>{let{accountSettings:eo,accountProfile:ea,isExpress:eu,forTier:ec}=ei;if(ea&&ea.tierVerified&&ec!==Py.Express)return pI(ea.tierVerified,eu);if(eo&&eo.tier&&ec!==Py.Express)return pI(eo.tier,eu);let ed=null==ea?void 0:ea.tierBucket;return eu&&ed&&yj(ed)?ed:Py.None},yj=ei=>ei===Py.Express||ei===Py.ExpressFailed||ei===Py.Intermediate||ei===Py.Pro,yR=ei=>{let{accountProfile:eo,accountType:ea,documents:eu,forTier:ec,pendingTier:ed,docsComplete:ef}=ei;if(!eo)return;let{tierVerifiable:eh}=eo,eg=yu(eo),em=eg===Py.Express||eg===Py.ExpressFailed;if(!eh)return eu&&ec===Py.Intermediate&&yL({documents:eu,forTier:ec,isExpress:em})?ec:ec===Py.Pro&&ea===PV.Business?ed:void 0;let eb=pI(eh,em);return eb===Py.Intermediate&&eu?yL({documents:eu,forTier:eb,isExpress:em})||ef?eb:Py.Starter:eb===Py.None?void 0:eb},yL=ei=>{let{documents:eo,forTier:ea,isExpress:eu}=ei,ec=f7(eo.documentsRequired),ed=(0,cD.Z)(pG(pU(ea,eu)||Py.None).map(ei=>ec[ei])),ef=cf(eo.documentsUploaded,ei=>hr[ei.status]).reverse();return ed.every(yG(ef))};function yF(ei,eo){return hp({fileStatus:ei.status,documentFlags:ei.flags,hasReachedMaxDocInReview:eo,errorReasons:ei.errorReasons})}function yB(ei){let{categoryDocument:eo,categoryDocumentBack:ea,isDoubleSideDoc:eu,hasReachedMaxDocInReview:ec}=ei;return!!(eo&&yF(eo,ec)&&(!eu||ea&&yF(ea,ec)))}let yU=[Pa.IDHeadshot,Pa.Selfie];function yz(ei,eo){return ei===eo||yU.includes(ei)&&yU.includes(eo)}let yG=ei=>eo=>{let ea=eo.subTypes.map(ei=>ei.key),eu=Object.values(ei).find(ei=>!ei.backOf&&ei.typeKey===eo.key&&ea.some(eo=>yz(eo,ei.subTypeKey))),ec=Object.values(ei).find(ei=>eu&&ei.backOf&&ei.backOf===eu.id),ed=cO(Object.values(ei).filter(ei=>ei.typeKey===eo.key&&ei.status===Pc.REVIEW),ei=>ei.backOf||ei.id),ef=null==eu?void 0:eu.subTypeKey,eh=eo.subTypes.find(ei=>ei.key===ef),eg=(null==eh?void 0:eh.requiresBack)||!1,em=!!(eg?eu&&ec:eu),eb=eo.key===Pu.Residence?1:gG,ew=ed.length>=eb,e_=em&&yB({categoryDocument:eu,categoryDocumentBack:ec,isDoubleSideDoc:eg,hasReachedMaxDocInReview:ew});return e_};!function(ei){ei.AppError="App Error",ei.PageTTFB="Page TTFB",ei.PageFCP="Page FCP",ei.PageLCP="Page LCP",ei.PageFID="Page FID",ei.PageCLS="Page CLS",ei.PageResourcePerformance="Page Resource Performance",ei.Identify="Identify",ei.SignUpSubmitted="Sign Up Submitted",ei.SignUpFailed="Sign Up Failed",ei.EmailConfirmed="Email Confirmed",ei.EmailConfirmationFailed="Email Confirmation Failed",ei.SignInPowError="Sign In Pow Error",ei.SignInSubmitClick="Sign In Submit Click",ei.YubikeyTap="Yubikey Tap",ei.EnterYubikeyManuallyClick="Enter Yubikey Manually Click",ei.ManualYubikeySubmitClick="Manual Yubikey Submit Click",ei.OtpSubmitClick="OTP Submit Click",ei.StaticPasswordSubmitClick="Static Password Submit Click",ei.SignInTfaRetrieved="Sign In 2FA Retrieved",ei.SignInComplete="Sign In Complete",ei.SignInWithEmail="Sign In With Email",ei.SignInError="Sign In Error",ei.ForgotPasswordSubmitClick="Forgot Password Submit Click",ei.ForgotPasswordComplete="Forgot Password Complete",ei.ForgotPasswordError="Forgot Password Error",ei.ForgotUsernameSubmitClick="Forgot Username Submit Click",ei.ForgotUsernameComplete="Forgot Username Complete",ei.ForgotUsernameError="Forgot Username Error",ei.BypassTfaOtpSubmitClick="Bypass 2FA OTP Submit Click",ei.BypassTfaOtpComplete="Bypass 2FA OTP Complete",ei.BypassTfaOtpError="Bypass 2FA OTP Error",ei.BypassTfaSignInPowError="Bypass Tfa Sign In Pow Error",ei.BypassTfaSignInSubmitClick="Bypass 2FA Sign In Submit Click",ei.BypassTfaSignInComplete="Bypass 2FA Sign In Complete",ei.BypassTfaSignInError="Bypass 2FA Sign In Error",ei.ContactSupportLinkClick="Contact Support Link Click",ei.DeviceIdReset="Device ID Reset",ei.SupportLogout="Support Logout",ei.TradeAddOrder="Trade Add Order",ei.PositionsByMarketAbort="PositionsByMarket Close Abort",ei.PositionsByMarketConfirm="PositionsByMarket Close Confirm",ei.PositionsByMarketClick="PositionsByMarket Close Click",ei.OrderbookLevelClicked="Orderbook Level Clicked",ei.OpenPositionsTabChange="Open Positions Tab Change",ei.ClosedPositionsTabChange="Closed Positions Tab Change",ei.FundingWithdrawalSuccess="Funding Withdrawal Success",ei.FundingWithdrawalError="Funding Withdrawal Error",ei.NavigationOnboardingBanner="Navigation Onboarding Banner",ei.NavigationLaunchpad="Navigation Launchpad",ei.NavigationCryptowatch="Navigation Cryptowatch",ei.DepositRecommendationClick="DepositRecommendation Click",ei.DepositRecommendationOptOut="DepositRecommendation Opt-out",ei.WithdrawAddAddressError="Funding Withdraw Add Address Error",ei.WithdrawLightningMethodClick="Funding Withdraw Lightning Method Click",ei.WithdrawLightningDecodeError="Funding WithdrawLightning Decode Error",ei.WithdrawLightningDecodeInvalid="Funding WithdrawLightning Decode Invalid",ei.WithdrawLightningDecodeValid="Funding WithdrawLightning Decode Valid",ei.PlaidEUContinueClick="PlaidEU Continue Click",ei.PlaidEUBankSelect="PlaidEU Bank Select",ei.PlaidEUDepositCancelled="PlaidEU Deposit Cancelled",ei.PlaidEULinkFlowCancelled="PlaidEU Link Flow Cancelled",ei.PlaidEUDepositError="PlaidEU Deposit Error",ei.PlaidEUDepositSuccess="PlaidEU Deposit Success",ei.PlaidUSContinueClick="PlaidUS Continue Click",ei.PlaidUSBankSelect="PlaidUS Bank Select",ei.PlaidUSLinkFlowCancelled="PlaidUS Link Flow Cancelled",ei.PlaidUSLinkFlowSuccess="PlaidUS Link Flow Success",ei.PlaidUSDepositInit="PlaidUS Deposit Init",ei.PlaidUSDepositConfirm="PlaidUS Deposit Init",ei.PlaidUSDepositCancelled="PlaidUS Deposit Cancelled",ei.PlaidUSDepositSuccess="PlaidUS Deposit Success",ei.PlaidUSDepositError="PlaidUS Deposit Error",ei.SynapseMethodActivated="Synapse Method Activated",ei.InteracMethodActivated="Interac Method Activated",ei.InteracMethodActivationFailed="Interac Method Activation Failed",ei.InteracDepositStarted="Interac Deposit Started",ei.InteracDepositCancelled="Interac Deposit Cancelled",ei.InteracDepositConfirmed="Interac Deposit Confirmed",ei.InteracDepositSuccess="Interac Deposit Success",ei.InteracDepositError="Interac Deposit Error",ei.BlackNavCharIconClick="BlackNav ChartIcon Click",ei.BlackNavCTAProductClick="BlackNav CTA Product Click",ei.PayPalAccountLinkInitiated="PayPal Account Link Initiated",ei.PayPalAccountLinkSuccess="PayPal Account Link Success",ei.PayPalAccountLinkError="PayPal Account Link Error",ei.PayPalAccountUnlinked="PayPal Account Unlinked",ei.PayPalDepositInitiated="PayPal Deposit Initiated",ei.PayPalDepositConfirmed="PayPal Deposit Confirmed",ei.PayPalDepositCancelled="PayPal Deposit Cancelled",ei.PayPalDepositFailed="PayPal Deposit Failed",ei.PayPalDepositSuccess="PayPal Deposit Success",ei.PilPreRolloutAlertDisplayed="Pil Pre-Rollout Alert Displayed",ei.PilPreRolloutAlertLearnMorePressed="Pil Pre-Rollout Alert Learn More Pressed",ei.PilPostRolloutAlertDisplayed="Pil Post-Rollout Alert Displayed",ei.PilPostRolloutAlertLearnMorePressed="Pil Post-Rollout Alert Learn More Pressed",ei.PilDepositDetailsAlertDisplayed="Pil Deposit Details Alert Displayed",ei.PilDepositDetailsModalDisplayed="Pil Deposit Details Modal Displayed",ei.FundingDepositLightningMethodClick="Funding Deposit Lightning Method Click",ei.FundingDepositGenerateAddressLink="Funding Deposit Generate Address Link",ei.FundingDepositManageAddressesLink="Funding Deposit Manage Addresses Link",ei.FundingDepositCopyIcon="Funding Deposit Copy Icon",ei.FundingDepositCopyButton="Funding Deposit Copy Button",ei.FundingDepositLightningSats="Funding Deposit Lightning Sats",ei.FundingDepositBitcoinMethodClick="Funding Deposit Bitcoin Method Click",ei.FundingDepositWithdrawSelector="Funding Deposit Withdraw Selector",ei.FundingDepositAddressManagerGenerate="Funding Deposit Address Manager Generate",ei.FundingDepositAddressManagerPagination="Funding Deposit Address Manager Pagination",ei.FundingDepositAddressManagerCopyIcon="Funding Deposit Address Manager Copy Icon",ei.FundingDepositAddressManagerSelect="Funding Deposit Address Manager Select",ei.FundingWithdrawalAddAddressLink="Funding Withdrawal Add Address Link",ei.FundingWithdrawalAddAddressButton="Funding Withdrawal Add Address Button",ei.FundingWithdrawalAddAddressConfirmed="Funding Withdrawal Add Address Confirmed",ei.FundingWithdrawalManageAddressesLink="Funding Withdrawal Manage Addresses Link",ei.FundingWithdrawalPercentage="Funding Withdrawal Percentage",ei.FundingWithdrawalWithdrawButton="Funding Withdrawal Withdraw Button",ei.FundingConfirmWithdrawalContinueButton="Funding Confirm Withdrawal Continue Button",ei.FundingWithdrawLightningMethodClick="Funding WithdrawLightningMethod Click",ei.FundingWithdrawBitcoinMethod="Funding Withdraw Bitcoin Method",ei.FundingWithdrawDepositSelector="Funding Withdraw Deposit Selector",ei.FundingWithdrawLightningSats=" Funding Withdraw Lightning Sats",ei.FundingWithdrawalAddressDropdown="Funding Withdrawal Address Dropdown",ei.FundingWithdrawalAddressManagerEditIcon="Funding Withdrawal Address Manager Edit Icon",ei.FundingWithdrawalAddressEditorButton="Funding Withdrawal Address Editor Button",ei.FundingWithdrawalAddressManagerDeleteIcon=" Funding Withdrawal Address Manager Delete Icon",ei.FundingDeleteWithdrawalAddressButton="Funding Delete Withdrawal Address Button",ei.FundingWithdrawalAddressManagerSelect="Funding Withdrawal Address Manager Select",ei.FundingWithdrawalAddressEditorAddButton="Funding Withdrawal Address Editor Add Button",ei.FundingWithdrawalAddressEditorEditButton="Funding Withdrawal Address Editor Edit Button",ei.FundingWithdrawalRecentTransactionSelect="Funding Withdrawal Recent Transaction Select",ei.FundingTransactionDetailsCopyIcon="Funding Transaction Details Copy Icon",ei.FundingTransactionDetailsExternalLink="Funding Transaction Details External Link",ei.FundingWithdrawalStarted="Funding Withdrawal Started",ei.FundingWithdrawalCancelled="Funding Withdrawal Cancelled",ei.FundingWithdrawalConfirmed="Funding Withdrawal Confirmed",ei.ViewCryptoWithdrawalWarning="View Crypto Withdrawal Warning",ei.DismissCryptoWithdrawalWarning="Dismiss Crypto Withdrawal Warning",ei.QQSMarketPickerClicked="QQS MarketPicker Clicked",ei.TopNavClicked="TopNav Clicked",ei.ProductCardClicked="ProductCard Clicked",ei.OrderCancelled="Order Cancelled",ei.OrdersCancelled="Orders Cancelled",ei.FatFingerConfirmed="Fatfinger Confirmed",ei.NewOrderValidated="NewOrder Validated",ei.NewOrderFailed="NewOrder Failed",ei.NewOrderViewToggled="NewOrder View Toggled",ei.NewOrderQuoteCurrencyChanged="NewOrder Quote Currency Changed",ei.PositionsVolumeRatioApplied="Positions Volume Ration Applied",ei.PositionsSettled="Positions Settled",ei.PositionsClosed="Positions Closed",ei.TickerBarRefreshClicked="TickerBar Refresh Clicked",ei.LangKeyMissing="LangKey Missing",ei.FusionBetaImpression="Fusion Beta Impression",ei.FusionBetaConversion="Fusion Beta Conversion",ei.FusionStakingImpression="Fusion Staking Impression",ei.FusionStakingConversion="Fusion Staking Conversion",ei.FusionTradingImpression="Fusion Trading Impression",ei.FusionTradingConversion="Fusion Trading Conversion",ei.FusionHistoryImpression="Fusion History Impression",ei.FusionHistoryConversion="Fusion History Conversion",ei.FusionFundingImpression="Fusion Funding Impression",ei.FusionFundingConversion="Fusion Funding Conversion",ei.FusionEarnImpression="Fusion Earn Impression",ei.FusionEarnConversion="Fusion Earn Conversion",ei.OnboardingLoaded="Onboarding Loaded",ei.AccountActivated="Account Activated",ei.TierSelection="Tier Selection",ei.AddressAutocompleted="Address Autocompleted",ei.DocumentCapture="Document Capture",ei.DocumentUpload="Document Upload",ei.DocumentProcessingTimeout="Document Processing Timeout",ei.DocumentRoleCapture="Document Role Capture",ei.VerificationCTA="Verification CTA Clicked",ei.VerificationFormSubmission="Verification Form Submission",ei.VerificationApplicationCompleted="Verification Application Completed",ei.VerificationApplicationFailed="Verification Application Failed",ei.VerificationApplicationImmediate="Verification Application Immediate",ei.VerificationApplicationTimeout="Verification Application Timeout",ei.VerificationModalExit="Verification Modal Exit",ei.OpenCurrencySelector="Open Currency Selector",ei.SelectDisplayCurrency="Select Display Currency",ei.OnboardingUKFinPromScreen="Onboarding - UKFinProm - Screen",ei.OnboardingUKFinPromScreenContinue="Onboarding - UKFinProm - Screen - Continue",ei.OnboardingUKFinPromPRWLearnMore="Onboarding - UKFinProm - PRW - Learn More",ei.AEDComplianceDialogVerifyClicked="AED Compliance Dialog Verify Clicked",ei.AEDComplianceDialogDismissClicked="AED Compliance Dialog Dismiss Clicked",ei.AEDComplianceDialogDisplayed="AED Compliance Dialog Displayed",ei.AEDComplianceDialogToSClicked="AED Compliance Dialog ToS Clicked",ei.AEDComplianceVerificationToSClicked="AED Compliance Verification ToS Clicked",ei.StarterRemediationComplianceDialogVerifyClicked="Starter Remediation Compliance Dialog Verify Clicked",ei.StarterRemediationComplianceDialogDismissClicked="Starter Remediation Compliance Dialog Dismiss Clicked",ei.StarterRemediationComplianceDialogDisplayed="Starter Remediation Compliance Dialog Displayed",ei.SpdiDetailsLoaded="SPDI Details Loaded",ei.SpdiCipInfoConfirmed="SPDI CipInfo Confirmed",ei.SpdiCipInfoRejected="SPDI CipInfo Rejected",ei.SpdiDisclosuresSubmitted="SPDI Disclosures Submitted",ei.SpdiDisclosuresRejected="SPDI Disclosures Rejected",ei.SpdiSubmissionValidated="SPDI Submission Validated",ei.SpdiSubmissionRejected="SPDI Submission Rejected",ei.SpdiSubmissionTimedout="SPDI Submission Timedout",ei.SpdiVerificationFinalized="SPDI Verification Finalized",ei.SpdiStatementDownload="SPDI Statement Download",ei.SpdiDisclosureDownload="SPDI Disclosure Download",ei.OpenStakingTOSDialogViaLogin="Staking Terms of Services Dialog Open by Login",ei.OpenStakingTOSDialogViaStakeBtn="Staking Terms of Services Dialog Open by Clicking Stake Button",ei.AcceptStakingTOSDialog="Staking Terms of Services Accepted",ei.DeclineStakingTOSDialog="Staking Terms of Services Declined",ei.StakeCTA="Stake CTA Clicked",ei.UnstakeCTA="Unstake CTA Clicked",ei.StakeIconButton="Stake Icon Button Clicked",ei.UnstakeIconButton="Unstake Icon Button Clicked",ei.StakingAssetSelectorDismissed="Staking Asset Selector Dismissed",ei.UnstakingAssetSelectorDismissed="Unstaking Asset Selector Dismissed",ei.StakeAssetSelected="Stake Asset Selected",ei.UnstakeAssetSelected="Unstake Asset Selected",ei.EarnSubnavClick="Earn Subnav Link Clicked",ei.StakeBalancePercent="Staking Balance Percent Button Click",ei.UnstakeBalancePercent="Unstaking Balance Percent Button Click",ei.StakingModalDismiss="Exit Or Clickoff Staking Modal",ei.UnstakingModalDismiss="Exit Or Clickoff Unstaking Modal",ei.StakingModalCancel="Exit Staking Modal By Cancel Button",ei.StakingModalGoToPro="Exit Staking Modal By Going to Kraken Pro",ei.UnstakingModalCancel="Exit Unstaking Modal By Cancel Button",ei.StakingSuccessful="Staking Successful",ei.UnstakingSuccessful="Unstaking Successful",ei.StakingTransactionIDButton="Staking Transaction ID Click",ei.CrowdloanMaxButton="Crowdloan Modal Max Button Click",ei.ToggleHideZeroActiveLoans="Toggle Hide Zero Balances On Active Parachains Table",ei.ToggleHideZeroCrowdloans="Toggle Hide Zero Balances On Active Crowdloans Table",ei.CrowdloanCancelButton="Exit Crowdloan Modal By Cancel Button",ei.CrowdloanDismiss="Exit Crowdloan Modal By Exit Button or Clickoff",ei.ParachainTransactionIDButton="Parachain Transaction ID Click",ei.NftPageImpression="NFT Page Impression",ei.NftPageError="NFT Page Error",ei.NftApiAttempt="NFT API Attempt",ei.NftApiError="NFT API Error",ei.NftApiSuccess="NFT API Success",ei.NftApiTiming="NFT API Timing",ei.NftExplorePageSectionError="NFT Explore Page Section Error",ei.NftExplorePageSectionViewed="NFT Explore Page Section Viewed",ei.NftExplorePageHeroCarouselPaginationClicked="NFT Explore Page Hero Carousel Pagination Clicked",ei.NftExplorePageHeroCarouselItemCtaClicked="NFT Explore Page Hero Carousel Item CTA Clicked",ei.NftExplorePageHeroSearch="NFT Explore Page Hero Search",ei.NftExplorePageCarouselFilterClicked="NFT Explore Page Carousel Filter Clicked",ei.NftExplorePageCarouselPaginationClicked="NFT Explore Page Carousel Pagination Clicked",ei.NftExplorePageCarouselViewAllClicked="NFT Explore Page Carousel View All Clicked",ei.NftExplorePageCarouselItemClicked="NFT Explore Page Carousel Item Clicked",ei.NftExplorePageNftItemMakeOfferClicked="NFT Explore Page Carousel Item Make Offer Clicked",ei.NftExplorePageNftItemBuyNowClicked="NFT Explore Page Carousel Item Buy Now Clicked",ei.NftExplorePageFeaturedCreatorsItemClicked="NFT Explore Page Featured Creators Item Clicked",ei.NftSearchPageListingClick="NFT Search Page Listing Click",ei.NftSearchPageCollectionClick="NFT Seach Page Collection Click",ei.NftSearchPageCreatorClick="NFT Search Page Creator Click",ei.NftSearchPageListingTabClick="NFT Search Page Listing Tab Click",ei.NftSearchPageCollectionTabClick="NFT Search Page Collection Tab Click",ei.NftSearchPageCreatorTabClick="NFT Search Page Creator Tab Click",ei.NftListingOffersTabClick="Nft Listing Offers Tab Click",ei.NftListingHistoryTabClick="Nft Listing History Tab Click",ei.NftListingImageClick="Nft Listing Image Click",ei.NftListingCreatorClick="Nft Listing Creator Click",ei.NftListingCollectionClick="Nft Listing Collection Click",ei.NftListingList="Nft Listing List",ei.NftListingWithdraw="Nft Listing Withdraw",ei.NftMakeOffer="Nft Make Offer",ei.NftBuyNow="Nft Buy Now",ei.NftAcceptOffer="Nft Accept Offer",ei.NftCounterOffer="Nft Counter Offer",ei.NftCancelOffer="Nft Cancel Offer",ei.NftWeb3AddWallet="Nft Web3 Add Wallet",ei.NftWeb3RemoveWallet="Nft Web3 Remove Wallet",ei.NftWeb3Deposit="Nft Web3 Deposit",ei.NftSubnavClick="NFT Subnav Link Clicked",ei.NftContributeButtonClick="NFT Contribute Button Clicked",ei.NftWithdrawButtonClick="NFT Withdraw Button Clicked",ei.NftWalletSearch="NFT Wallet Searched",ei.NftCollectionSearch="NFT Collection Searched",ei.NftCreatorSearch="NFT Creator Searched",ei.NftDetailsClick="NFT thumbnail clicked",ei.OpenNftTOSDialog="NFT Terms of Services Dialog Open",ei.AcceptNftTOSDialog="NFT Terms of Services Accepted",ei.DeclineNftTOSDialog="NFT Terms of Services Declined",ei.ExportFilterApplied="Export Filter Applied",ei.LedgerFilterApplied="Ledger Filter Applied",ei.LedgerTablePaginateClicked="LedgerTable Paginate Clicked",ei.OrderFilterApplied="Order Filter Applied",ei.TradeFilterApplied="Trade Filter Applied",ei.OpenUserMenu="Open User Menu",ei.DownloadTaxReport="Download Tax Report",ei.ClickTaxReportInfoLink="Click Tax Report Info Link",ei.AllSessionsRemoved="Security - All Sessions Removed",ei.AllSessionsRemovedError="Security - All Sessions Removed Error",ei.SessionRemoved="Security - Session Removed",ei.SessionRemovedError="Security - Session Removed Error",ei.SignInMethodChange="Security - Sign-in Method Change",ei.AllDevicesRemoved="Security - All Devices Removed",ei.AllDevicesRemovedError="Security - All Devices Removed Error",ei.DeviceRemoved="Security - Device Removed",ei.DeviceRemovedError="Security - Device Removed Error",ei.TFASetupSuccess="Security - TFA Setup Success",ei.TFASetupError="Security - TFA Setup Error",ei.TFARequiredDialogDisplay="2FA Required Dialog Display",ei.TFARequiredDialogCTAClick="2FA Required Dialog CTA Click",ei.TFARequiredDialogDismiss="2FA Required Dialog Dismiss",ei.TFARequiredDialog2ndCTAClick="2FA Required Dialog 2nd CTA Click",ei.TFARequiredDialog2ndDismiss="2FA Required Dialog 2nd Dismiss",ei.MakeAnAppealLinkClick="Security - Device blocked, make an appeal link click",ei.MarketingDialogCtaClick="Marketing Dialog CTA Click",ei.MarketingDialogDismissed="Marketing Dialog Dismissed",ei.MarketingCTAClick="CTA Click",ei.MarketingCTAExit="CTA Exit",ei.BalancesTableMenuClick="Balances Table Menu Click",ei.ConsumerFooterLinkClicked="Consumer Footer Link Clicked",ei.NavigateToClassic="Navigate To Classic",ei.NavigateToPro="Navigate To Pro",ei.NavigateToNft="Navigate to NFT",ei.ContactSupport="Contact Support",ei.InstantPaymentMethodAdded="Instant Payment Method added",ei.InstantAddPaymentMethodClicked="Instant Add Payment Method clicked",ei.InstantAchReauthPrompted="Instant ACH reauthorize prompted",ei.InstantPaymentMethodSelected="Instant Payment Method selected",ei.InstantBuyFlowLaunched="Buy Flow Launched",ei.InstantSellFlowLaunched="Sell Flow Launched",ei.InstantConvertFlowLaunched="Convert Flow Launched",ei.InstantBuyAssetSelected="Buy Asset Selected",ei.InstantSellAssetSelected="Sell Asset Selected",ei.InstantBuyReviewed="Buy Reviewed",ei.InstantSellReviewed="Sell Reviewed",ei.InstantConvertReviewed="Conversion Reviewed",ei.InstantBuyInitiated="Buy Initiated",ei.InstantSellInitiated="Sell Initiated",ei.InstantConvertInitiated="Convert Initiated",ei.InstantBuyCompleted="Buy Completed",ei.InstantSellCompleted="Sell Completed",ei.InstantConvertCompleted="Convert Completed",ei.InstantTFAEntered="Instant 2FA Entered",ei.OrderCreateSuccessful="Order Create Successful",ei.ScheduledActionUpdated="Scheduled Action Updated",ei.ScheduledActionPaused="Scheduled Action Paused",ei.ScheduledActionResumed="Scheduled Action Resumed",ei.ScheduledActionCancelled="Scheduled Action Cancelled",ei.OrderTypeOpened="Order Type Opened",ei.OrderTypeChosen="Order Type Chosen",ei.ExploreAssetSearched="Asset Searched",ei.OtcRequestQuote="OTC request quote",ei.OtcAcceptQuote="OTC accept quote",ei.OtcRejectQuote="OTC reject quote",ei.OtcQuoteExpired="OTC quote expired",ei.OtcRequestIndicativeQuote="OTC request indicative quote",ei.OtcGenerateTradeReport="OTC generate trade report",ei.ConsumerFeedbackDisplayed="Consumer feedback displayed",ei.ConsumerFeedbackDismissed="Consumer feedback dismissed",ei.ConsumerFeedbackProvided="Consumer feedback provided",ei.PreferClassic="Prefer Classic",ei.PreferConsumer="Prefer Consumer",ei.BuyFromAssetDetails="Buy from asset details",ei.SellFromAssetDetails="Sell from asset details",ei.ConvertFromAssetDetails="Convert from asset details",ei.PriceChartIntervalChanged="Price chart interval changed",ei.ConsumerPasswordOpened="Password Change Opened",ei.ConsumerPasswordDismissed="Password Change Dismissed",ei.ConsumerPasswordChanged="Password Change Completed",ei.ConsumerDeviceViewMore="Device View More",ei.SignIn2FACTAClicked="Sign-in 2FA CTA Clicked",ei.SignIn2FAModalConfirmed="Sign-in 2FA Modal Confirmed",ei.SignIn2FAModalDismissed="Sign-in 2FA Modal Dismissed",ei.LanguageCTAClicked="Language CTA Clicked",ei.LanguageModalSaved="Language Modal Saved",ei.LanguageModalDismissed="Language Modal Dismissed",ei.CurrencyCTAClicked="Currency CTA Clicked",ei.CurrencyModalSaved="Currency Modal Saved",ei.CurrencyModalDismissed="Currency Modal Dismissed",ei.TimezoneCTAClicked="Timezone CTA Clicked",ei.TimezoneModalSaved="Timezone Modal Saved",ei.TimezoneModalDismissed="Timezone Modal Dismissed",ei.AutoLogoutCTAClicked="Autologout CTA Clicked",ei.AutoLogoutSaved="Autologout Modal Saved",ei.AutoLogoutDismissed="Autologout Modal Dismissed",ei.PreferredAppSave="Preferred App Modal Saved",ei.PreferredAppCTAClicked="Preferred App CTA Clicked",ei.PreferredAppDismissed="Preferred App CTA Dismissed",ei.MandatoryS2FAModalDisplayed="Mandatory S2FA Modal Displayed",ei.NavigateToS2FASettingsClicked="Navigate To S2FA Settings Clicked",ei.MandatoryS2FAModalClosed="Mandatory S2FA Modal Closed",ei.BuyBitcoinFTUEClicked="Buy Bitcoin FTUE Clicked",ei.BuyWithCashFTUEClicked="Buy With Cash FTUE Clicked",ei.DepositCryptoFTUEClicked="Deposit Crypto FTUE Clicked",ei.ExploreFTUEClicked="Explore FTUE Clicked",ei.AppSwitcherAccessed="App Switcher Accessed",ei.AppSwitched="App Switched",ei.MobileDrawerAccessed="Mobile Drawer Accessed",ei.ExperimentViewed="Experiment Viewed",ei.BuyCrypto_BuyClicked="Left Nav Buy Clicked",ei.BuyCrypto_SellClicked="Left Nav Sell Clicked",ei.BuyCrypto_ConvertClicked="Left Nav Convert Clicked",ei.PCIAccountStatementDownload="PCI Account Statement Download",ei.PILFundingNotificationDisplayed="PIL Funding Notification Displayed",ei.PILFundingNotificationDismissed="PIL Funding Notification Dismissed",ei.PortfolioChartIntervalChanged="Portfolio Chart Interval Changed",ei.CryptoExperienceSelected="Crypto Experience Selected",ei.KrakenProductSelected="Kraken Product Selected",ei.ChecklistFundingMenuViewed="Checklist Funding Menu Viewed",ei.ChecklistFundingMenuClicked="Checklist Funding Menu Clicked",ei.VerificationBannerViewed="Verification Banner Viewed",ei.VerificationBannerButtonClicked="Verification Banner Button Clicked",ei.Challenge3DSAbandoned="3DS Challenge abandoned",ei.Challenge3DSViewed="3DS Challenge viewed",ei.Challenge3DSResponded="3DS Challenge responded",ei.Challenge3DSSuccess="3DS Challenge succeeded",ei.Challenge3DSError="3DS Challenge errored"}(PH||(PH={}));let yV=ei=>{let{tier:eo,isCorp:ea}=ei;return eo===Py.Pro&&!0===ea?"Business":eo===Py.Express?"Express":eo===Py.ExpressFailed?"Express Failed":"KYC Flow"===eo?"KYC Flow":"Tier ".concat(pO(eo))},yq=ei=>ei===Py.Express||ei===Py.ExpressFailed?"Express":ei===Py.Unknown?"None":"KYC Flow"===ei?"Starter":pO(ei).toString(),yH=ei=>ei===yw("onboarding")||ei===yw("remediation")?"KYC Flow":[Py.Starter,Py.Express,Py.Intermediate,Py.Pro].find(eo=>ei===yb(eo)),yW=ei=>{let{tier:eo,isCorp:ea}=ei;if(eo===Py.Express)return"".concat(yW({tier:Py.Starter})," Express");if(eo===Py.ExpressFailed)return"".concat(yW({tier:Py.Express})," Failed");if("KYC Flow"===eo)return"KYC Flow";let eu="T".concat(pO(eo));return eo===Py.Pro?!0===ea?"".concat(eu," Business"):"".concat(eu," Individual"):eu},yK=ei=>{let{applyingTier:eo,currentTier:ea,isCorp:eu}=ei,ec=yW({tier:ea,isCorp:eu}),ed=yW({tier:eo,isCorp:eu});return"".concat(ec," to ").concat(ed)},yY=ei=>(eo,ea)=>{let eu;let{accountSettings:ec,accountProfile:ed,accountType:ef,application:eh=eo.previousApplication}=eo;if(!ec||!ef||!ed||!eh){console.error("Missing requirements for trackVerificationFormSubmission",ec,eh,ef,ed);return}let eg=yH(ea.type);if(!eg){console.error("Missing form tier for event",ea);return}let em=ed.tierBucket?ed.tierBucket:pI(ec.tier,!1);switch(eg){case Py.Starter:case Py.Express:eu=yK({currentTier:Py.None,applyingTier:eg});break;case Py.Intermediate:eu=yK({currentTier:em,applyingTier:eg});break;case Py.Pro:eu=yW({tier:eg,isCorp:mk(eo)});break;case"KYC Flow":eu=yW({tier:"KYC Flow",isCorp:mk(eo)})}if(!eu){console.error("Missing form type for tier",eg);return}let eb={formType:eu,originalCurrentTier:yq(eh.tier),originalApplyingTier:yq(eh.applyingTier),initialCountry:eh.country||"",submittedCountry:ed.country||eh.country||""};ei({eventType:"UserAction",eventName:PH.VerificationFormSubmission,params:eb})},yZ=ei=>eo=>{let{accountSettings:ea,accountProfile:eu,accountType:ec,application:ed}=eo;if(!ea||!ec||!eu||!ed){console.error("Missing requirements for trackApplyingTier",ea,ed,ec,eu);return}let ef=eu.tierBucket?eu.tierBucket:pI(ea.tier,!1),eh={selectedTier:yV({tier:ed.applyingTier,isCorp:mk(eo)}),currentTier:yV({tier:ef})};ei({eventType:"UserAction",eventName:PH.TierSelection,params:eh})},y$=ei=>eo=>{let{accountSettings:ea,accountProfile:eu,accountType:ec,application:ed=eo.previousApplication}=eo;if(!ea||!ec||!eu||!ed){console.error("Missing requirements for trackSuccessfulApplication",ea,ed,ec,eu);return}let ef=eu.tierBucket?eu.tierBucket:pI(ea.tier,!1),eh={currentTier:yV({tier:ef}),applyingTier:yV({tier:ed.applyingTier,isCorp:mk(eo)}),originalCurrentTier:yq(ed.tier),originalApplyingTier:yq(ed.applyingTier),timeToState:Date.now()-eo.submissionStartTime};ei({eventType:"UserAction",eventName:PH.VerificationApplicationCompleted,params:eh})},yJ=ei=>eo=>{let{accountSettings:ea,accountProfile:eu,accountType:ec,application:ed=eo.previousApplication}=eo;if(!ea||!ec||!eu||!ed){console.error("Missing requirements for trackUnsuccessfulApplication",ea,ed,ec,eu);return}let ef=eu.tierBucket?eu.tierBucket:pI(ea.tier,!1),eh={currentTier:yV({tier:ef}),applyingTier:yV({tier:ed.applyingTier,isCorp:mk(eo)}),originalCurrentTier:yq(ed.tier),originalApplyingTier:yq(ed.applyingTier),timeToState:Date.now()-eo.submissionStartTime};ei({eventType:"UserAction",eventName:PH.VerificationApplicationFailed,params:eh})},yQ=ei=>eo=>{let{accountSettings:ea,accountProfile:eu,accountType:ec,application:ed=eo.previousApplication}=eo;if(!ea||!ec||!eu||!ed){console.error("Missing requirements for trackImmediateExpressApplication",ea,ed,ec,eu);return}let ef=eu.tierBucket?eu.tierBucket:pI(ea.tier,!1),eh={currentTier:yV({tier:ef}),applyingTier:yV({tier:ed.applyingTier,isCorp:mk(eo)}),originalCurrentTier:yq(ed.tier),originalApplyingTier:yq(ed.applyingTier),timeToState:Date.now()-eo.submissionStartTime};ei({eventType:"UserAction",eventName:PH.VerificationApplicationImmediate,params:eh})},yX=ei=>eo=>{let{accountSettings:ea,accountProfile:eu,accountType:ec,application:ed=eo.previousApplication}=eo;if(!ea||!ec||!eu||!ed){console.error("Missing requirements for trackExitModal",eo,ea,ec,eu);return}let ef=eu.tierBucket?eu.tierBucket:pI(ea.tier,!1),{applyingTier:eh}=ed,eg={selectedTier:yV({tier:eh,isCorp:mk(eo)}),currentTier:yV({tier:ef,isCorp:mk(eo)}),originalCurrentTier:yq(ed.tier),originalApplyingTier:yq(ed.applyingTier)};ei({eventType:"UserAction",eventName:PH.VerificationModalExit,params:eg})},y0=ei=>eo=>{let{accountSettings:ea,accountProfile:eu,accountType:ec,application:ed=eo.previousApplication}=eo;if(!ea||!ec||!eu||!ed){console.error("Missing requirements for trackVerificationFormSubmissionTimeout",ea,ed,ec,eu);return}let ef=eu.tierBucket?eu.tierBucket:pI(ea.tier,!1),eh={currentTier:yV({tier:ef}),applyingTier:yV({tier:ed.applyingTier,isCorp:mk(eo)}),originalCurrentTier:yq(ed.tier),originalApplyingTier:yq(ed.applyingTier),timeToState:Date.now()-eo.submissionStartTime};ei({eventType:"UserAction",eventName:PH.VerificationApplicationTimeout,params:eh})},y5=ei=>({trackVerificationFormSubmission:yY(ei),trackApplyingTier:yZ(ei),trackSuccessfulApplication:y$(ei),trackUnsuccessfulApplication:yJ(ei),trackImmediateExpressApplication:yQ(ei),trackExitModal:yX(ei),trackVerificationFormSubmissionTimeout:y0(ei)}),y4=ei=>dQ(void 0,void 0,void 0,function*(){let eo=yield mu(ei),{country:ea=I9.US,province:eu}=eo,ec=yield f9(ei,ea,pq({country:ea,province:null==eu?void 0:eu.id})&&eo.tierBucket!==Py.Starter);return{accountProfile:eo,tierRequirements:ec}}),y6=ei=>({asset_class:ei.asset_class,asset:ei.asset,asset_class_id:ei.asset_class_id,asset_id:ei.asset_id,asset_type:ei.asset_type,available:ei.available?ei.available.toString():"",balance:ei.balance.toString(),credit:ei.credit?ei.credit.toString():"",credit_used:ei.credit_used?ei.credit_used.toString():"",hold:ei.hold?ei.hold.toString():"",quote_balance:ei.quote_balance?ei.quote_balance.toString():"",quote_available:ei.quote_available?ei.quote_available.toString():""}),y8=ei=>ei.map(y6),y9=(ei,eo)=>dQ(void 0,void 0,void 0,function*(){let ea=(yield ei.account.getAccountBalance({})).data.result;return eo?eo(ea):ea}),y7=ei=>y9(ei,y8),vn=ei=>dQ(void 0,void 0,void 0,function*(){let eo=window.sessionStorage.getItem("ONBOARDING_OVERRIDE_FUNDED");if(eo)return{funded:!0};let ea=yield y7(ei);return{funded:fE(fx(ea))}}),vi="account.readSettings",vo=(ei,eo)=>dQ(void 0,void 0,void 0,function*(){let ea=(yield ei.account.readSettings()).data.result;return eo?eo(ea):ea}),va=ei=>{let eo=(0,oE.W)(),{data:ea,error:eu,mutate:ec}=(0,uB.ZP)(vi,()=>dQ(void 0,void 0,void 0,function*(){return vo(eo,ei)}),mn);return{accountSettings:ea,isLoading:!eu&&!ea,error:eu,mutate:ec}},vl=ei=>dQ(void 0,void 0,void 0,function*(){return vo(ei,pC)}),vu=()=>va(pC),vc=ei=>dQ(void 0,void 0,void 0,function*(){let eo=yield vl(ei);return{accountSettings:eo,accountType:(null==eo?void 0:eo.kycFlags.isCorporate)?PV.Business:PV.Personal}}),vd=(ei,eo,ea)=>dQ(void 0,void 0,void 0,function*(){let eu=yield gD(ei);return eo&&ea?(yield eo.refreshProfileInfoAndDocs(),eu&&(yield ea.fetchDocumentsAdvanced({tier:PT.Two,applyingTier:PT.Three})),{documents:eu,docsComplete:ea.isCheckingManually()}):{documents:eu,docsComplete:!1}}),vf=ei=>()=>dQ(void 0,void 0,void 0,function*(){let{verificationStore:eo,apiClient:ea,featureFlags:eu}=ei,ec=g$(ea);return Promise.all([vn(ea),y4(ea),vc(ea),vd(ea,eo,ec)]).then(ei=>{let[{funded:eo},{accountProfile:ea,tierRequirements:ec},{accountSettings:ed},{documents:ef,docsComplete:eh}]=ei;return{accountProfile:ea,tierRequirements:ec,accountSettings:ed,documents:ef,funded:eo,docsComplete:eh,isStarterTierDisabled:pB,featureFlags:eu}}).catch(ei=>(console.error(ei),Promise.reject(ei)))}),vh=ei=>{let{initConfig:eo,onApplicationSubmit:ea,verificationStore:eu,router:ec,track:ed}=ei;return{devTools:!0,services:{init:vf(eo),fetchAccountProfile:()=>dQ(void 0,void 0,void 0,function*(){let ei=yield mu(eo.apiClient);return{accountProfile:ei}})},actions:Object.assign({onApplicationSubmit:ei=>{let{application:eo=ei.previousApplication}=ei;eo&&ea({pendingTier:"KYC Flow"===eo.applyingTier?ei.pendingTier===Py.Intermediate?pO(ei.pendingTier):eo.applyingTier:pO(eo.applyingTier),accountType:ei.accountType})},onFailedExpressApplicationSubmit:ei=>{ea({pendingTier:pO(Py.ExpressFailed),accountType:ei.accountType})},onApplyToTier:ei=>{f5&&f5(pO(ei.applyingTier),eu)},returnToUserOriginalPath:ei=>{ei.returnPath&&ec&&window.location.assign(ei.returnPath)}},y5(ed))}},vp=ei=>{let{useFeatureFlags:eo,useShowAccountUpgradePending:ea,staticPaths:eu,useInternalApiClient:ec,router:ed}=ei,{track:ef}=(0,dw.Sl)(),eh=eo(),eg=ec(),em=g$(eg),[ew]=eb.useState(new mg({uid:"0",documentStore:em,apiClient:eg})),e_=(ea||(()=>null))(),eS=ei=>{let{pendingTier:eo,accountType:ea}=ei;return dQ(void 0,void 0,void 0,function*(){"Business"===ea||eo===PT.Two&&pF.expressTier||null==e_||e_(fJ(eo)),yield ew.refreshProfileInfoAndDocs()})},{query:eE,helpers:eA}=gB(eu,ed),{initialApplyingTier:eT,returnPath:ek}=eA.parseVerificationTierAndReturnPath(eE),eC={apiClient:eg,featureFlags:eh,verificationStore:ew},eO={initialApplyingTier:eT,returnPath:null!==ek?ek:Pb.Consumer};return{initConfig:eC,initContext:eO,verificationStore:ew,documentStore:em,onApplicationSubmit:eS,track:ef}},vg=(0,eb.createContext)({}),vm=()=>{let ei=(0,eb.useContext)(vg).onboardingService;if(void 0===ei)throw Error("useOnboardingService must be used within OnboardingServiceProvider.\n\nYou might have mismatching versions of Onboarding-Web package.\nPlease repeat instructions to install or build then link the SDK.\n");return ei};!function(ei){ei.BEFORE="Before",ei.DURING="During",ei.AFTER="After",ei.NOT_APPLICABLE="N/A"}(PW||(PW={}));let vy="starter-remediation",vv="".concat(vy,"-dismiss"),vw=ei=>{let{timestamp:eo,timestamps:ea,country:eu}=ei,ec=ea[eu];return ec?ec.start?eo=ec.end?PW.AFTER:PW.NOT_APPLICABLE:PW.NOT_APPLICABLE},v_=(ei,eo)=>{let{country:ea,tierBucket:eu,tierVerifiable:ec}=ei,ed=window.sessionStorage&&window.sessionStorage.getItem(vv)||!1,ef=vw({timestamp:new Date().getTime(),timestamps:pP.remediationCountryTimeStamps,country:ea})||PW.NOT_APPLICABLE;return!ed&&ef!==PW.NOT_APPLICABLE&&eu===Py.Starter&&ec!==Pg.Three&&!1===eo};!function(ei){ei.Intermediate="intermediate",ei.ProCorpRegistration="proCorpBusinessRegistration",ei.ProCorpConditional="proCorpConditional",ei.ProCorpUbo="proCorpUbo",ei.Emirates="emirates"}(PK||(PK={}));let vS=3,vE=3,vx=1,vA=1e3,vT=2*vA,vk=120*vA,vC="DPS",vO=(ei,eo)=>{let{id:ea,status:eu,flags:ec}=ei,ed=[PT.One,PT.Two];return!ea.startsWith(vC)&&ec!==Pf.Automatic&&ed.includes(eo)&&eu===Pc.UNPROCESSED},vI=(ei,eo)=>{if(!eo)return!1;let ea=eo.map(ei=>Object.keys(ei)).flat();return ei.some(ei=>ea.includes(ei))},vP=(ei,eo)=>ei.typeKey===eo.key&&eo.subTypes.some(eo=>eo.key===ei.subTypeKey),vD=(ei,eo)=>{var ea,eu;if((null===(ea=ei.options)||void 0===ea?void 0:ea.maxDocsInReview)!==void 0){if((null===(eu=ei.options)||void 0===eu?void 0:eu.maxDocsInReview)>=1)return ei.options.maxDocsInReview;let eo="Invalid configuration for document processor - 'maxDocsInReview' cannot be less than 1";console.error(eo),ei.captureException(Error(eo))}return eo===Pu.Residence?vx:vS},vN=[Pf.Manual,Pf.DoubleCheck],vM=[Pc.VERIFIED],vj=ei=>ei===Pf.Automatic,vR=ei=>ei&&ei.length,vL=(ei,eo,ea)=>(ea||0)>=vD(eo,ei.typeKey)&&!ei.id.startsWith(vC),vF=ei=>void 0!=ei.flags&&vN.includes(ei.flags)&&!ei.id.startsWith(vC)&&ei.status!==Pc.FAILED,vB=ei=>vM.includes(ei),vU=(ei,eo,ea)=>ei===Pc.REVIEW&&vj(eo)&&!vR(ea),vz=(ei,eo)=>(!v6(ei)||!!ei.id.startsWith(vC))&&ei.typeKey===eo.key&&ei.status===Pc.REVIEW&&!ei.backOf,vG=(ei,eo,ea)=>{var eu;return vz(eo,ea)?Object.assign(Object.assign({},ei),{reviewAttempts:Object.assign(Object.assign({},ei.reviewAttempts),{[eo.typeKey]:((null===(eu=ei.reviewAttempts)||void 0===eu?void 0:eu[eo.typeKey])||0)+1})}):ei},vV=(ei,eo,ea)=>vL(ei,ea,eo[ei.typeKey])||vF(ei)||vB(ei.status)||vU(ei.status,ei.flags,ei.errorReasons),vq=(ei,eo)=>ei?[...ei,eo]:[eo],vH=(ei,eo,ea,eu)=>{let ec=eu||vV(ei,eo.reviewAttempts,ea)?"final":"pending";return Object.assign(Object.assign({},eo),{[ec]:Object.assign(Object.assign({},eo[ec]),{[ei.typeKey]:vq(eo[ec][ei.typeKey],ei)})})},vW=ei=>{var eo;return ei.key===Pu.Business&&(null===(eo=ei.subTypes)||void 0===eo?void 0:eo.length)===1},vK=(ei,eo)=>ei.code===Pl.IDVerification?"FaceMatch":ei.code===Pl.Identity?"IdentityDocument":ei.code===Pl.Residence&&eo?"Corp:".concat(ei.code):vW(ei)?ei.subTypes[0].code:ei.code,vZ=(ei,eo,ea)=>Object.entries(ea).reduce((ea,eu)=>{let[ec,ed]=eu;return eo===parseInt(ec)?Object.assign(Object.assign({},ea),{categories:[...ea.categories,...ed.map(ea=>{let{requiresBack:eu,items:ec}=ea.subTypes.reduce((eo,ea)=>({requiresBack:Object.assign(Object.assign({},eo.requiresBack),{[ea.key]:ea.requiresBack}),items:[...eo.items,Object.assign(Object.assign({},ea),{key:ea.key,name:ei("documents:DocSubtype:".concat(ea.code)),type:ea.code,complete:!1})]}),{requiresBack:{},items:[]}),ed=vW(ea)?"DocSubtype":"DocType",ef=vK(ea,eo===Pg.Four);return{key:ea.key,name:ei("documents:".concat(ed,":").concat(ef)),type:ea.code,disabled:!1,complete:!1,hasReachedMaxDocInReview:!1,selectedSubType:void 0,numRetries:0,subTypesRequireBack:eu,items:ec}})]}):ea},{categories:[],complete:!1,uploadAllowed:!0,allDocsUploaded:!1}),v$=ei=>()=>ei.documentsRequired.complete,vJ=ei=>()=>!1,vQ=ei=>()=>{let{allDocsUploaded:eo,categories:ea,complete:eu}=ei.documentsRequired;return 0!==ea.length&&!eu&&(eo||v5(ei))},v5=ei=>{let{documentsUploaded:eo}=ei;return pE(eo)},v6=ei=>ei.status===Pc.UNPROCESSED&&ei.flags===Pf.Automatic,v8=(ei,eo)=>ei.find(ei=>ei.key===eo.typeKey&&ei.subTypes.find(ei=>ei.key===eo.subTypeKey)),v9=(ei,eo)=>({final:ei.final[eo]||[],pending:ei.pending[eo]||[]}),bi=ei=>cf(ei,ei=>hr[ei.status]).reverse(),bo=(ei,eo)=>ei.items.map(ea=>Object.assign(Object.assign({},ea),{complete:eo.some(eo=>eo.typeCode===ei.type&&eo.subTypeCode===ea.type)})),ba=[Pa.IDHeadshot,Pa.Selfie],bu=(ei,eo)=>ei===eo||ba.includes(ei)&&ba.includes(eo),bc=(ei,eo,ea)=>{let eu=ea.map(ei=>ei.key),ec=ei.find(ei=>!ei.backOf&&!ei.hasBeenUsed&&!ei.id.startsWith(vC)&&ei.typeKey===eo.key&&eu.some(eo=>bu(eo,ei.subTypeKey))),ed=ei.find(ei=>ec&&!ec.id.startsWith(vC)&&!ei.id.startsWith(vC)&&ei.backOf&&ei.backOf===ec.id);return{front:ec?Object.assign(Object.assign({},ec),{hasBeenUsed:!0}):eo.categoryDocument,back:ed||eo.categoryDocumentBack}},bd=ei=>ei.documentsRequired,bp=(ei,eo,ea,eu)=>!ei.id.startsWith(vC)&&vP(ei,eo)?vH(ei,ea,eu):ea,bg=()=>bv,bm=ei=>{var eo,ea,eu,ec,ed;let ef=(null===(eo=null==ei?void 0:ei[0])||void 0===eo?void 0:eo.type)===Pl.Identity?ei[0]:void 0,eh=(null===(ea=null==ef?void 0:ef.categoryDocument)||void 0===ea?void 0:ea.subTypeCode)===Po.Passport,eg=!!(null==ef?void 0:ef.categoryDocument),em=(null===(eu=null==ei?void 0:ei[1])||void 0===eu?void 0:eu.type)===Pl.Residence?ei[1]:void 0,eb=!!(null==em?void 0:em.categoryDocument),ew=(null===(ec=null==ei?void 0:ei[1])||void 0===ec?void 0:ec.type)===Pl.SecondaryID?ei[1]:(null===(ed=null==ei?void 0:ei[2])||void 0===ed?void 0:ed.type)===Pl.SecondaryID?ei[2]:void 0,e_=!!(null==ew?void 0:ew.categoryDocument);if(ef&&eg&&!eh&&em&&ew){let ei=e_?ew.items:ew.items.filter(ei=>{var eo;return ei.type!==(null===(eo=ef.categoryDocument)||void 0===eo?void 0:eo.subTypeCode)});return[ef,Object.assign(Object.assign({},ew),{items:ei})]}if(ef&&eg&&eh&&em&&ew){let ei=eb?em.items:em.items.filter(ei=>{var eo;return ei.type!==(null===(eo=ef.categoryDocument)||void 0===eo?void 0:eo.subTypeCode)}),eo=e_?ew.items:ew.items.filter(ei=>{var eo;return ei.type!==(null===(eo=ef.categoryDocument)||void 0===eo?void 0:eo.subTypeCode)}),ea=!e_&&eb?eo.filter(ei=>{var eo;return ei.type!==(null===(eo=em.categoryDocument)||void 0===eo?void 0:eo.subTypeCode)}):eo;return[ef,Object.assign(Object.assign({},em),{items:ei}),Object.assign(Object.assign({},ew),{items:ea})]}return ei},bv=Object.assign(Object.assign({},fI),{[Pg.Three]:[{key:Pu.Identity,code:Pl.Identity,text:Pl.Identity,subTypes:[{key:Pa.Passport,code:Po.Passport,text:Po.Passport,requiresBack:!1},{key:Pa.DriversLicense,code:Po.DriversLicense,text:Po.DriversLicense,requiresBack:!0},{key:Pa.IDCard,code:Po.IDCard,text:Po.IDCard,requiresBack:!1},{key:Pa.ResidenceCard,code:Po.ResidenceCard,text:Po.ResidenceCard,requiresBack:!0},{key:Pa.SpecialPermanentResidenceCard,code:Po.SpecialPermanentResidenceCard,text:Po.SpecialPermanentResidenceCard,requiresBack:!0}]},{key:Pu.Residence,code:Pl.Residence,text:Pl.Residence,subTypes:[{key:Pa.PassportAddressPage,code:Po.PassportAddressPage,text:Po.PassportAddressPage,requiresBack:!1},{key:Pa.UtilityBill,code:Po.UtilityBill,text:Po.UtilityBill,requiresBack:!1},{key:Pa.ResidenceCert,code:Po.ResidenceCert,text:Po.ResidenceCert,requiresBack:!1},{key:Pa.TaxReceipt,code:Po.TaxReceipt,text:Po.TaxReceipt,requiresBack:!1},{key:Pa.SocialInsurancePaymentReceipt,code:Po.SocialInsurancePaymentReceipt,text:Po.SocialInsurancePaymentReceipt,requiresBack:!1}]},{key:Pu.SecondaryID,code:Pl.SecondaryID,text:Pl.SecondaryID,subTypes:[{key:Pa.DriversLicense,code:Po.DriversLicense,text:Po.DriversLicense,requiresBack:!0},{key:Pa.IDCard,code:Po.IDCard,text:Po.IDCard,requiresBack:!1},{key:Pa.ResidenceCard,code:Po.ResidenceCard,text:Po.ResidenceCard,requiresBack:!0},{key:Pa.SpecialPermanentResidenceCard,code:Po.SpecialPermanentResidenceCard,text:Po.SpecialPermanentResidenceCard,requiresBack:!0},{key:Pa.UtilityBill,code:Po.UtilityBill,text:Po.UtilityBill,requiresBack:!1},{key:Pa.ResidenceCert,code:Po.ResidenceCert,text:Po.ResidenceCert,requiresBack:!1},{key:Pa.TaxReceipt,code:Po.TaxReceipt,text:Po.TaxReceipt,requiresBack:!1},{key:Pa.SocialInsurancePaymentReceipt,code:Po.SocialInsurancePaymentReceipt,text:Po.SocialInsurancePaymentReceipt,requiresBack:!1}]}]}),bb=ei=>Object.assign(Object.assign({},ei.documentsRequired),{[Pg.Four]:ei.documentsRequired[Pg.Four].filter(ha).filter(ei=>!p_(ei))}),b_=(ei,eo)=>Object.assign(Object.assign({},ei.documentsRequired),{[Pg.Four]:ei.documentsRequired[Pg.Four].filter(ha).filter(ei=>{var ea;let eu=ei.subTypes[0].code,ec=pw[eu];return!!ec&&null!==(ea=eo.dataDeps)&&void 0!==ea&&!!ea.formValues&&ec(eo.dataDeps.formValues)})}),bS=ei=>ei.documentsRequired,bE=(ei,eo,ea,eu)=>ei.typeKey===eo.key&&eo.subTypes.some(eo=>eo.key===ei.subTypeKey)&&ei.status!==Pc.FAILED&&!ei.name.includes(vC)?vH(ei,ea,eu,"final"):ea,bA=(ei,eo,ea)=>{let eu=ea&&void 0!==ea.uboId?ei.documentsUploaded.filter(ei=>void 0!==ea.uboId&&ei.name.startsWith(pv(ea.uboId))||pb(ei)==="".concat(ea.uboId)):ei.documentsUploaded;return Object.assign(Object.assign({},ei),{documentsUploaded:eu})},bT=ei=>ei===Pu.Identity,bk=ei=>ei===Po.IDCard,bC=ei=>ei===Po.Passport,bO=ei=>void 0===ei,bI=[Ph.EmiratesRequirement],bP=ei=>ei===I9.AE,bD=ei=>bO(ei)?{[Pg.One]:[],[Pg.Two]:[],[Pg.Three]:[],[Pg.Four]:[]}:bP(ei)?bB:bU,bN=(ei,eo)=>Object.assign(Object.assign({},ei),{documentsRequired:bD(eo),documentsUploaded:ei.documentsUploaded.filter(ei=>ei.typeKey===Pu.Identity&&ei.subTypeKey===Pa.Passport||vI(bI,null==ei?void 0:ei.tags))}),bM=(ei,eo,ea,eu)=>bT(eo)?{files:ei,tags:[{[Ph.EmiratesRequirement]:"id-1"}]}:{files:ei,tags:eu},bj=(ei,eo,ea)=>{if(!ei)return!1;let eu=ei.length-1,ec=null==ei?void 0:ei[eu-1],ed=null==ei?void 0:ei[eu];return eo&&ea&&ec&&ed&&(null==eo?void 0:eo.subTypeCode)===Po.IDCard&&(null==ea?void 0:ea.subTypeCode)===Po.IDCard&&(null==eo?void 0:eo.id)!==ec.id&&(null==ea?void 0:ea.id)!==ed.id},bR=(ei,eo,ea)=>{var eu,ec,ed,ef;let eh=(null===(eu=null==ei?void 0:ei.documentsUploaded)||void 0===eu?void 0:eu.length)-2,eg=(null===(ec=null==ei?void 0:ei.documentsUploaded)||void 0===ec?void 0:ec.length)-1,em=null===(ed=null==ei?void 0:ei.documentsUploaded)||void 0===ed?void 0:ed[eh],eb=null===(ef=null==ei?void 0:ei.documentsUploaded)||void 0===ef?void 0:ef[eg];return(eo||bj(ea,em,eb))&&em&&eb&&(!(null==em?void 0:em.tags)||(null==em?void 0:em.tags)&&!Object.keys(em.tags).length)&&(!(null==eb?void 0:eb.tags)||(null==eb?void 0:eb.tags)&&!Object.keys(eb.tags).length)?ei.documentsUploaded.map((ei,eo)=>eo===eh||eo===eg?Object.assign(Object.assign({},ei),{flags:Pf.Automatic,tags:[{[Ph.EmiratesRequirement]:"id-1"}]}):ei):ei.documentsUploaded},bL=(ei,eo)=>bD(eo.country),bF=(ei,eo,ea,eu)=>{let ec=[Pl.Identity],ed=[Po.IDCard,Po.Passport];return ec.includes(ei.typeCode)&&ed.includes(ei.subTypeCode)&&(bk(ei.subTypeCode)&&vI(bI,null==ei?void 0:ei.tags)||bC(ei.subTypeCode))?vH(ei,ea,eu):ea},bB=Object.assign(Object.assign({},fI),{[Pg.Four]:[{key:Pu.Identity,code:Pl.Identity,text:"account:DocType:".concat(Pl.Identity),subTypes:[{key:Pa.IDCard,code:Po.IDCard,text:Po.IDCard,requiresBack:!0},{key:Pa.Passport,code:Po.Passport,text:Po.Passport,requiresBack:!1}]}]}),bU=Object.assign(Object.assign({},fI),{[Pg.Four]:[{key:Pu.Identity,code:Pl.Identity,text:"account:DocType:".concat(Pl.Identity),subTypes:[{key:Pa.Passport,code:Po.Passport,text:Po.Passport,requiresBack:!1}]}]}),bG=ei=>{let eo={[PK.Intermediate]:{isCorp:!1,country:ei.country,applyingTier:Pg.Three,options:ei.options},[PK.Emirates]:{isCorp:!1,country:ei.country,applyingTier:Pg.Four,options:Object.assign(Object.assign({},ei.options),{documentsOverride:bN,preUploadFile:bM})},[PK.ProCorpRegistration]:{isCorp:!0,country:ei.country,applyingTier:Pg.Four,options:ei.options},[PK.ProCorpConditional]:{isCorp:!0,country:ei.country,applyingTier:Pg.Four,options:ei.options},[PK.ProCorpUbo]:{isCorp:!0,country:ei.country,applyingTier:Pg.Three,options:Object.assign(Object.assign({},ei.options),{documentsOverride:bA})}};return eo[ei.verificationFlow]},bV=ei=>{let eo={[PK.Intermediate]:void 0,[PK.Emirates]:void 0,[PK.ProCorpRegistration]:void 0,[PK.ProCorpConditional]:void 0,[PK.ProCorpUbo]:void 0};return Object.assign(Object.assign({},eo),ei)},bq=ei=>{let eo={[PK.Intermediate]:Pg.Three,[PK.Emirates]:Pg.Four,[PK.ProCorpRegistration]:Pg.Four,[PK.ProCorpConditional]:Pg.Four,[PK.ProCorpUbo]:Pg.Three};return eo[ei]},bH=(ei,eo)=>{let ea={[PK.Intermediate]:ei===I9.JP?bm:void 0};return bV(ea)[eo]},bW=ei=>{let eo={[PK.Emirates]:bN,[PK.ProCorpUbo]:bA};return bV(eo)[ei]},bK=ei=>{let eo={[PK.Emirates]:bM};return bV(eo)[ei]},bY=ei=>{let eo=bV({[PK.Emirates]:bR});return bV(eo)[ei]},bZ=(ei,eo)=>{let ea=ei===I9.JP,eu={[PK.Intermediate]:ea?bg:bd,[PK.Emirates]:bL,[PK.ProCorpRegistration]:bb,[PK.ProCorpConditional]:b_,[PK.ProCorpUbo]:bS};return eu[eo]},b$=(ei,eo)=>{let ea={[PK.Intermediate]:bp,[PK.Emirates]:bF,[PK.ProCorpRegistration]:bE,[PK.ProCorpConditional]:bE,[PK.ProCorpUbo]:bE};return ea[eo]},bJ=(ei,eo)=>({getDocumentsRequirements:bZ(ei,eo),applyingTier:bq(eo),categorizeDocuments:b$(ei,eo),updateCategoriesPostSelection:bH(ei,eo),documentsOverride:bW(eo),preUploadFile:bK(eo),operateAfterUpload:bY(eo)}),bQ=(ei,eo)=>dQ(void 0,void 0,void 0,function*(){var eo,ea;let eu=yield pu(),ec=(null===(ea=null===(eo=null==ei?void 0:ei.options)||void 0===eo?void 0:eo.documentsOverride)||void 0===ea?void 0:ea.call(eo,eu,ei.country,ei.dataDeps,ei.options))||eu;return ec}),bX=(ei,eo)=>ea=>{var eu;if("UPLOAD"!==eo.type||!eo.files.length)return;if(void 0===eo.docTypeKey||void 0===eo.docSubTypeKey){console.warn("doc keys weren't set",{docTypeKey:eo.docTypeKey,docSubTypeKey:eo.docSubTypeKey});let ea=Error("Required information missing for documents POST");throw ei.captureException(ea),ea}let ec=null===(eu=null==eo?void 0:eo.preUploadCB)||void 0===eu?void 0:eu.call(eo,eo.files,eo.docTypeKey,eo.docSubTypeKey,eo.tags);pp({files:(null==ec?void 0:ec.files)||eo.files,docType:eo.docTypeKey,docSubType:eo.docSubTypeKey,tags:(null==ec?void 0:ec.tags)||eo.tags,onUploadProgress:ei=>{eo.docTypeKey&&eo.docSubTypeKey&&(ei.loaded{var ec,ed,ef;null===(ec=eo.postUploadCB)||void 0===ec||ec.call(eo,eu),null===(ef=null===(ed=ei.options)||void 0===ed?void 0:ed.postUploadFile)||void 0===ef||ef.call(ed,eu),ea({type:"UPLOAD_SUCCESS",data:eu})}).catch(ei=>{ea({type:"UPLOAD_FAILURE",data:ei})})},wi=(ei,eo)=>ea=>{if("UPLOAD_VENDOR"===eo.type){if(void 0===eo.docTypeKey||void 0===eo.docFlowId){console.warn("doc key or docFlowId wasn't set",{docTypeKey:eo.docTypeKey,docFlowId:eo.docFlowId});let ea=Error("Required information missing for documents POST");throw ei.captureException(ea),ea}pm({docType:eo.docTypeKey,vendor:eo.vendor,docFlowId:eo.docFlowId,tags:eo.tags,onUploadProgress:()=>{console.log("onUploadProgress")}}).then(eu=>{var ec,ed,ef;null===(ec=eo.postUploadCB)||void 0===ec||ec.call(eo,eu),null===(ef=null===(ed=ei.options)||void 0===ed?void 0:ed.postUploadFile)||void 0===ef||ef.call(ed,eu),ea({type:"UPLOAD_SUCCESS",data:eu})}).catch(ei=>{ea({type:"UPLOAD_FAILURE",data:ei})})}},wo=ei=>{var eo;let{docs:ea,ctx:eu,isFromUpload:ec}=ei,{applyingTier:ed,operateAfterUpload:ef,getDocumentsRequirements:eh,categorizeDocuments:eg}=bJ(eu.country,eu.verificationFlow),em=Object.assign(Object.assign({},ea),{documentsUploaded:(null==ef?void 0:ef(ea,ec,null==eu?void 0:eu.initialUploadedDocuments))||ea.documentsUploaded});return null===(eo=null==em?void 0:em.documentsUploaded)||void 0===eo?void 0:eo.reduce((ei,eo)=>{var ea=dJ(eo,["hasBeenUsed"]);let ec=eh(em,eu),ef=v8(ec[ed],ea);if(ef){let eo=vG(ei,ea,ef);return eg(ea,ef,eo,eu)}return ei},{final:{},pending:{},reviewAttempts:{}})},wu=(ei,eo,ea)=>ei.map(ei=>{var eu,ec;let{final:ed,pending:ef}=v9(eo,ei.key),eh=bo(ei,ed),eg=bi(ed.concat(ef)),{front:em,back:eb}=bc(eg,ei,eh),ew=vD(ea,ei.key);return Object.assign(Object.assign({},ei),{hasReachedMaxDocInReview:((null===(eu=eo.reviewAttempts)||void 0===eu?void 0:eu[ei.key])||0)>=ew,numRetries:null===(ec=eo.reviewAttempts)||void 0===ec?void 0:ec[ei.key],items:eh,categoryDocument:em,categoryDocumentBack:eb,selectedSubType:null==em?void 0:em.subTypeKey,complete:eh.some(ei=>!0===ei.complete&&em)})}),wc=(ei,eo,ea)=>{var eu,ec,ed,ef,eh,eg,em,eb,ew,e_;if(!ei.selectedSubType)return!1;let eS=vD(ea,ei.key),eE=(null===(eu=null==ei?void 0:ei.categoryDocument)||void 0===eu?void 0:eu.typeCode)&&eo.reviewAttempts[ei.categoryDocument.typeKey]===eS;if(eE)return!0;let eA=ei.subTypesRequireBack[ei.selectedSubType];if(eA){let ea=(null===(ec=ei.categoryDocument)||void 0===ec?void 0:ec.typeKey)&&(null===(ef=eo.final[null===(ed=ei.categoryDocument)||void 0===ed?void 0:ed.typeKey])||void 0===ef?void 0:ef.find(eo=>{var ea;return eo.id===(null===(ea=ei.categoryDocument)||void 0===ea?void 0:ea.id)})),eu=(null===(eh=ei.categoryDocumentBack)||void 0===eh?void 0:eh.typeKey)&&(null===(em=eo.final[null===(eg=ei.categoryDocumentBack)||void 0===eg?void 0:eg.typeKey])||void 0===em?void 0:em.find(eo=>{var ea;return eo.id===(null===(ea=ei.categoryDocumentBack)||void 0===ea?void 0:ea.id)}));return!!(ei.categoryDocument&&ei.categoryDocumentBack&&ea&&eu)}let eT=(null===(eb=ei.categoryDocument)||void 0===eb?void 0:eb.typeKey)&&(null===(e_=eo.final[null===(ew=ei.categoryDocument)||void 0===ew?void 0:ew.typeKey])||void 0===e_?void 0:e_.find(eo=>{var ea;return eo.id===(null===(ea=ei.categoryDocument)||void 0===ea?void 0:ea.id)}));return!!(ei.categoryDocument&&eT)},wd=ei=>{let{categoryDocument:eo,categoryDocumentBack:ea}=ei;return!!(eo&&hu(eo)||ea&&hu(ea))},wf=(ei,eo)=>{let{country:ea,verificationFlow:eu,documentsRequired:ec}=ei,{updateCategoriesPostSelection:ed}=bJ(ea,eu),ef=wu([...ec.categories],eo,ei);return Object.assign(Object.assign({},ei.documentsRequired),{complete:ef.every(ei=>!0===ei.complete),categories:(null==ed?void 0:ed(ef))||ef,uploadAllowed:0!==ef.length,allDocsUploaded:ef.every(ea=>wc(ea,eo,ei)&&(ea.hasReachedMaxDocInReview||!wd(ea)))})},wp=ei=>cL((eo,ea)=>{if("done.invoke.getInitialDocuments"!==ea.type)return eo;let{getDocumentsRequirements:eu}=bJ(eo.country,eo.verificationFlow),ec=eu(ea.data,eo),ed=vZ(ei,eo.applyingTier,ec);return{documentRequirements:ec,documentsOptional:ea.data.documentsOptional,documentsUploaded:ea.data.documentsUploaded,documentsConditional:ea.data.documentsConditional,documentsRequired:ed,fileUploadRestrictions:ea.data.fileUploadRestrictions,initialUploadedDocuments:ea.data.documentsUploaded}}),wg=cL((ei,eo)=>"UPLOAD"!==eo.type?{}:{uploadingDocTypeKey:eo.docTypeKey,uploadingDocSubTypeKey:eo.docSubTypeKey}),wm=cL((ei,eo)=>"UPLOAD_VENDOR"!==eo.type?{}:{uploadingDocTypeKey:eo.docTypeKey}),wy=cL((ei,eo)=>"UPLOAD_VENDOR"!==eo.type?{}:{vendor:eo.vendor}),wv=cL((ei,eo)=>{if("SELECT_SUBTYPE"!==eo.type)return{};let{categoryType:ea,categorySubType:eu}=eo,{documentsRequired:ec}=ei,ed=ec.categories.map(ei=>{if(ei.type!==ea)return ei;let eo=dJ(ei,["categoryDocument"]);return Object.assign(Object.assign({},eo),{selectedSubType:eu})});return{documentsRequired:Object.assign(Object.assign({},ei.documentsRequired),{categories:ed})}}),wb=cL((ei,eo)=>"done.invoke.uploadDocument"!==eo.type?{}:{retries:[...ei.retries,[ei.uploadingDocTypeKey,ei.uploadingDocSubTypeKey]]}),ww=cL((ei,eo)=>{if("SET_UPLOAD_PROGRESS"!==eo.type)return{};let{loaded:ea,total:eu}=eo.progressEvent,ec=ea/eu,{uploadingDocTypeKey:ed,uploadingDocSubTypeKey:ef,progressStates:eh}=ei,eg=void 0!==ed&&void 0!==ef,em=void 0!==ed&&void 0!==ei.progressStates[ed];return{progressStates:Object.assign(Object.assign({},eh),{[eo.docTypeKey]:eg?em?Object.assign(Object.assign({},eh[eo.docTypeKey]),{[eo.docSubTypeKey]:ec}):{[eo.docSubTypeKey]:ec}:eh[eo.docTypeKey]})}}),w_=cL((ei,eo)=>{if("REMOVE_UPLOAD_PROGRESS"!==eo.type)return{};let ea=ei.progressStates,eu=eo.docTypeKey,ec=ea[eu],ed=dJ(ea,["symbol"==typeof eu?eu:eu+""]),ef=ec,eh=eo.docSubTypeKey,eg=dJ(ef,["symbol"==typeof eh?eh:eh+""]);return{progressStates:Object.assign(Object.assign({},ed),{[eo.docTypeKey]:eg})}}),wS=cL((ei,eo)=>{if(!("done.invoke.getInitialDocuments"===eo.type||"done.invoke.pollDocuments"===eo.type))return{};let ea=wo({docs:eo.data,country:ei.country,applyingTier:ei.applyingTier,isFromUpload:!1,initialUploadedDocuments:ei.initialUploadedDocuments,ctx:ei}),eu=wf(ei,ea);return{documentsUploaded:eo.data.documentsUploaded,documentsRequired:eu}}),wE=cL((ei,eo)=>"done.invoke.getInitialDocuments"===eo.type||"done.invoke.pollDocuments"===eo.type?{initialUploadedDocuments:eo.data.documentsUploaded,uploadingDocTypeKey:void 0,uploadingDocSubTypeKey:void 0}:{}),wx=cL((ei,eo)=>{var ea,eu;return"CONDITIONAL_REFRESH"===eo.type?{dataDeps:Object.assign(Object.assign({},ei.dataDeps),{formValues:void 0!==eo.formValues?eo.formValues:null===(ea=ei.dataDeps)||void 0===ea?void 0:ea.formValues})}:"UBO_REFRESH"===eo.type?{dataDeps:Object.assign(Object.assign({},ei.dataDeps),{uboId:void 0!==eo.uboId?eo.uboId:null===(eu=ei.dataDeps)||void 0===eu?void 0:eu.uboId})}:{}}),wA=cL((ei,eo)=>"done.invoke.getInitialDocuments"===eo.type||"done.invoke.pollDocuments"===eo.type||"error.platform.getInitialDocuments"===eo.type||"error.platform.pollDocuments"===eo.type?{pollingAttempts:ei.pollingAttempts+1}:{}),wT=cL((ei,eo)=>"UPLOAD"===eo.type||"RETRY"===eo.type?{pollingAttempts:0}:{}),wk=cL((ei,eo)=>{var ea;if(!("done.invoke.getInitialDocuments"===eo.type||"done.invoke.pollDocuments"===eo.type))return{};let eu=null===(ea=ei.documentsUploaded||[])||void 0===ea?void 0:ea.map((eo,ea)=>{var eu;return ea===((null===(eu=ei.documentsUploaded)||void 0===eu?void 0:eu.length)||0)-1?Object.assign(Object.assign({},eo),{flags:Pf.Manual}):eo}),ec=ei.documentsRequired.categories.map(eo=>eo.key===ei.uploadingDocTypeKey&&(null==eu?void 0:eu[eu.length-1])?Object.assign(Object.assign({},eo),{categoryDocument:eu[eu.length-1]}):eo);return{documentsUploaded:eu,documentsRequired:Object.assign(Object.assign({},ei.documentsRequired),{categories:ec})}}),wC=cL((ei,eo)=>"error.platform.getInitialDocuments"===eo.type||"error.platform.pollDocuments"===eo.type||"error.platform.uploadDocument"===eo.type?{apiError:eo.data}:{}),wO=cL((ei,eo)=>"RETRY"!==eo.type?{}:{apiError:void 0}),wI=(ei,eo)=>{if("done.invoke.pollDocuments"===eo.type){let ea=()=>0===eo.data.documentsUploaded.filter(eo=>eo.typeKey===ei.uploadingDocTypeKey&&eo.status===Pc.UNPROCESSED).length,eu=()=>{var ea,eu;let ec=wo({docs:eo.data,country:ei.country,applyingTier:ei.applyingTier,isFromUpload:!1,initialUploadedDocuments:ei.initialUploadedDocuments,ctx:ei}),ed=eo.data.documentsUploaded.filter(eo=>{var ea;return!eo.id.startsWith(vC)&&eo.typeKey===ei.uploadingDocTypeKey&&eo.subTypeKey===ei.uploadingDocSubTypeKey&&!(null===(ea=ei.initialUploadedDocuments)||void 0===ea?void 0:ea.some(ei=>ei.id===eo.id))}),ef=ed[ed.length-1]?ed[ed.length-1]:void 0,eh=void 0!==ef&&!v6(ef);if(eh)return!0;let eg=vD(ei,ei.uploadingDocTypeKey),em=null!=ei&&!!ei.uploadingDocTypeKey&&(null===(ea=ec.reviewAttempts)||void 0===ea?void 0:ea[ei.uploadingDocTypeKey])!==void 0&&void 0!==ef&&!v6(ef)&&(ec.reviewAttempts[ei.uploadingDocTypeKey]||0)>=eg;if(em)return!0;let eb=void 0!==ei.uploadingDocTypeKey&&void 0!==ec.final[ei.uploadingDocTypeKey]?null===(eu=ec.final[ei.uploadingDocTypeKey])||void 0===eu?void 0:eu.filter(eo=>eo.typeKey===ei.uploadingDocTypeKey):[],ew=(null==eb?void 0:eb.length)!==0&&void 0!==ef&&!v6(ef);return!!ew};return ei.vendor===Pv.Persona?ea():eu()}return!1},wP=ei=>{var eo,ea;return ei.pollingAttempts*((null===(eo=null==ei?void 0:ei.options)||void 0===eo?void 0:eo.pollInterval)||vT)>=((null===(ea=ei.options)||void 0===ea?void 0:ea.pollTimeout)||vk)},wD=ei=>ei.pollingAttempts>=vE,wN=ei=>0===ei.pollingAttempts,wM=(ei,eo,ea,eu,ec,ed)=>cQ({id:"documentProcessorMachine",initial:"init",predictableActionArguments:!0,preserveActionOrder:!0,schema:{context:{},events:{}},context:{applyingTier:ei,country:eo,verificationFlow:ea,options:ed,dataDeps:ec,initialUploadedDocuments:void 0,documentRequirements:fI,documentsOptional:fI,documentsUploaded:[],documentsConditional:fI,documentsRequired:{complete:!1,categories:[],uploadAllowed:!0,allDocsUploaded:!1},fileUploadRestrictions:void 0,uploadingDocTypeKey:void 0,uploadingDocSubTypeKey:void 0,progressStates:{},retries:[],pollingAttempts:0,apiError:void 0,captureException:eu},states:{init:{after:{0:{target:"getInitialDocuments",cond:"hasNoAttempts"},INTERVAL:{target:"getInitialDocuments"}}},getInitialDocuments:{invoke:{src:"getDocuments",id:"getInitialDocuments",onDone:[{target:"idle",actions:["setDocuments","computeNextDocumentRequired"]}],onError:[{cond:"hasReachedInitialGetDocumentsMaxAttempts",target:"manualRetry",actions:["setApiError"]},{target:"init",actions:["incrementPollAttempts"]}]}},manualRetry:{on:{RETRY:{target:"init",actions:["clearApiError","resetPollAttempts"]}}},idle:{on:{SELECT_SUBTYPE:{actions:["updateSelectedSubType"]},UPLOAD:{target:"upload",actions:["setDocAndSubTypeKey","resetPollAttempts"]},UPLOAD_VENDOR:{target:"uploadVendor",actions:["setDocTypeKey","setVendor","resetPollAttempts"]},CONDITIONAL_REFRESH:{target:"init",actions:["setDataDeps"]},UBO_REFRESH:{target:"init",actions:["setDataDeps"]}}},upload:{invoke:{src:"uploadDocument",id:"uploadDocument"},on:{UPLOAD_SUCCESS:{target:"pollDocumentStatus",actions:["setRetries"]},UPLOAD_FAILURE:{target:"idle",actions:"setApiError"},SET_UPLOAD_PROGRESS:{actions:["setUploadProgress"]},REMOVE_UPLOAD_PROGRESS:{actions:["removeUploadProgress"]}}},uploadVendor:{invoke:{src:"uploadVendorDocument",id:"uploadVendorDocument"},on:{UPLOAD_SUCCESS:{target:"polling",actions:["setRetries"]},UPLOAD_FAILURE:{target:"idle",actions:"setApiError"},SET_UPLOAD_PROGRESS:{actions:["setUploadProgress"]},REMOVE_UPLOAD_PROGRESS:{actions:["removeUploadProgress"]}}},pollDocumentStatus:{after:{INTERVAL:{target:"polling"}}},polling:{invoke:{src:"getDocuments",id:"pollDocuments",onDone:[{target:"idle",cond:"shouldStopPolling",actions:["computeNextDocumentRequired","setInitialDocumentsUploaded"]},{cond:"hasReachedPollAtemptsTimeout",target:"idle",actions:["computeNextDocumentRequired","setDocumentErrorOnTimeout","setInitialDocumentsUploaded"]},{target:"pollDocumentStatus",actions:["computeNextDocumentRequired","incrementPollAttempts"]}],onError:[{cond:"hasReachedPollAtemptsTimeout",target:"manualRetry",actions:["setApiError","incrementPollAttempts"]},{target:"pollDocumentStatus",actions:["incrementPollAttempts"]}]}}}},{services:{getDocuments:bQ,uploadDocument:bX,uploadVendorDocument:wi},actions:{setDocAndSubTypeKey:wg,setDocTypeKey:wm,updateSelectedSubType:wv,setRetries:wb,setUploadProgress:ww,removeUploadProgress:w_,computeNextDocumentRequired:wS,setInitialDocumentsUploaded:wE,setDataDeps:wx,incrementPollAttempts:wA,resetPollAttempts:wT,setDocumentErrorOnTimeout:wk,setApiError:wC,clearApiError:wO,setVendor:wy},guards:{shouldStopPolling:wI,hasReachedPollAtemptsTimeout:wP,hasReachedInitialGetDocumentsMaxAttempts:wD,hasNoAttempts:wN}}),wj=ei=>{var eo;let{country:ea,verificationFlow:eu,dataDeps:ec,options:ed,captureException:ef}=ei,{t:eh}=(0,rT.$G)(),eg=bG({country:ea,verificationFlow:eu,dataDeps:ec,options:ed}),[em,ew,e_]=uI(()=>wM(eg.applyingTier,ea,eu,ef,ec,eg.options),{actions:{setDocuments:wp(eh)},delays:{INTERVAL:(null==ed?void 0:ed.pollInterval)||vT,TIMEOUT:(null==ed?void 0:ed.pollTimeout)||vk}});(0,eb.useEffect)(()=>{(null==ec?void 0:ec.formValues)&&ea&&ew({type:"CONDITIONAL_REFRESH",formValues:ec.formValues})},[null===(eo=null==ec?void 0:ec.formValues)||void 0===eo?void 0:eo.uboOwners.length,ea]),(0,eb.useEffect)(()=>{ew({type:"UBO_REFRESH",uboId:null==ec?void 0:ec.uboId})},[null==ec?void 0:ec.uboId]);let eS=(0,eb.useCallback)((ei,eo)=>ew({type:"SELECT_SUBTYPE",categoryType:ei,categorySubType:eo}),[ew]),eE=(0,eb.useCallback)(()=>{let ei=Object.values(em.context.progressStates).reduce((ei,eo)=>[...ei,...Object.values(eo)],[]);return ei.some(ei=>ei>0)},[em.context.progressStates]),eA=(0,eb.useCallback)((ei,eo,ea,eu)=>{var ec,ed;return(null===(ed=null===(ec=eg.options)||void 0===ec?void 0:ec.preUploadFile)||void 0===ed?void 0:ed.call(ec,ei,eo,ea,eu))||{files:ei,tags:eu}},[eg.options]),eT=(0,eb.useCallback)(ei=>{var eo,eu,ed,ef;let eh=(null===(eu=null===(eo=eg.options)||void 0===eo?void 0:eo.documentsOverride)||void 0===eu?void 0:eu.call(eo,ei,ea,ec,eg.options))||ei;null===(ef=null===(ed=eg.options)||void 0===ed?void 0:ed.postUploadFile)||void 0===ef||ef.call(ed,eh)},[ea,ec,eg.options]),ek=(0,eb.useCallback)(function(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return eu=>{ew({type:"UPLOAD",preUploadCB:eA,postUploadCB:eT,files:eu,docTypeKey:ei,docSubTypeKey:eo,tags:ea})}},[ew,eA,eT,em.value]),eC=(0,eb.useCallback)(function(ei,eo,ea,eu){let ec=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],ed=()=>(eu(),eT);ew({type:"UPLOAD_VENDOR",vendor:eo,docFlowId:ea,preUploadCB:eA,postUploadCB:ed,docTypeKey:ei,tags:ec})},[ew,eA,eT,em.value]),eO=(0,eb.useCallback)(()=>ew({type:"RETRY"}),[ew]),eI=uF(e_,ei=>ei.matches("manualRetry"));return{data:em.context,retries:em.context.retries,progressStates:em.context.progressStates,hasUploadInProgress:eE,uploadDocument:ek,uploadVendorInquiry:eC,deleteDocuments:pd,documentDeleteAllowed:vO,updateSelectedSubType:eS,manualRetry:eO,isSuccess:eg.isCorp?vJ:v$,isProcessing:vQ,isManualRetry:eI}},wR=ei=>eo=>eo&&eo.matches(ei),wL=ei=>eo=>uF(ei,wR(eo)),wF=ei=>{let eo=ei=>{var eo;return null===(eo=null==ei?void 0:ei.context)||void 0===eo?void 0:eo.verificationStore},ea=uF(ei,eo),eu=ei=>null==ei?void 0:ei.context.autoFlowMeta.shouldAutoFlow,ec=uF(ei,eu),ed=ei=>{var eo;return null===(eo=null==ei?void 0:ei.context)||void 0===eo?void 0:eo.documentStore},ef=uF(ei,ed),eh=ei=>{var eo;return null===(eo=null==ei?void 0:ei.context)||void 0===eo?void 0:eo.stateContext.Flow},eg=uF(ei,eh).flow,em=ei=>{var eo;return null===(eo=null==ei?void 0:ei.context)||void 0===eo?void 0:eo.kycFlows},eb=uF(ei,em),ew=ei=>{var eo;return null===(eo=null==ei?void 0:ei.context)||void 0===eo?void 0:eo.accountSettings},e_=uF(ei,ew),eS=ei=>{var eo;return null===(eo=null==ei?void 0:ei.context)||void 0===eo?void 0:eo.accountProfile},eE=uF(ei,eS),eA=!!(eg&&eg.name&&"remediation"===eg.type),eT=ei=>{var eo;return null===(eo=null==ei?void 0:ei.context)||void 0===eo?void 0:eo.error},ek=uF(ei,eT);return{verificationStore:ea,documentStore:ef,isAutoFlow:ec,flow:eg,kycFlows:eb,isRemediationSelected:eA,accountSettings:e_,accountProfile:eE,error:ek}},wB=ei=>{let eo=wL(ei),ea=eo("Load"),eu=eo("Check.Sync");return{isFlowState:eo("Flow"),isErrorState:eo("Error"),isLoadingState:ea||eu,isPromptState:eo("Prompt"),isNotifyState:eo("Notify"),isIdleState:eo("Idle")}},wU={},wz=()=>wU,wG=()=>dQ(void 0,void 0,void 0,function*(){return wU}),wV=ei=>{let{useFlags:eo,allFlags:ea,captureException:eu}=ei,[ec,ed]=(0,eb.useState)({}),ef=(0,eb.useCallback)(()=>(ea||wG)(),[ea]),eh=(eo||wz)();return(0,eb.useEffect)(()=>{let ei=!0,eo=()=>dQ(void 0,void 0,void 0,function*(){if(!(0,cN.Z)(eh)&&ei)ed(eh);else{let eo=yield ef();ei&&ed(eo)}});return eo().catch(ei=>{eu(ei)}),()=>{ei=!1}},[ef,eu,eh]),ec},wq=ei=>{let[eo,ea]=eb.useState();return eb.useEffect(()=>{if(!eo){let ei=dv();ea(ei)}},[eo,ei]),{[ei]:eo||""}},wH=eb.createContext({}),wW=ei=>{let eo=eb.useContext(wH),ea=wq("sessionID");return Object.assign(Object.assign(Object.assign({},eo),ea),ei)},wK=(ei,eo,ea,eu)=>{let{track:ec}=(0,dw.Sl)(),ed=wW(ea);eb.useEffect(()=>{let ea=ei.subscribe(ei=>{if(![ed.contextID,ed.sessionID].includes("")){let ea=eu||[];if(!ea.includes(ei.event.type)){let ea=ei.event.type.split("."),eu=ea[ea.length-1],{tracking:ef}=ei.context,eh=Object.assign(Object.assign(Object.assign({},ed),ef),{subEvent:eu});ec({eventType:"UserAction",eventName:eo,params:eh})}}});return ea.unsubscribe},[ei,ed.sessionID,ec])},wY="kyc.kycFlows",wZ=ei=>dQ(void 0,void 0,void 0,function*(){return(yield ei.kyc.getKycFlows()).data.result}),w$=()=>!0,wJ=ei=>pN(null==ei?void 0:ei.name),wQ=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w$,eo=(0,oE.W)(),{mutate:ea}=(0,uB.kY)(),{data:eu,error:ec,mutate:ed}=(0,uB.ZP)(wY,()=>dQ(void 0,void 0,void 0,function*(){return wZ(eo)}),{revalidateOnFocus:!1}),ef=(0,eb.useCallback)((ei,ea)=>dQ(void 0,void 0,void 0,function*(){try{let eu=(yield eo.kyc.submitKycFlowData(ei,ea)).data;return ed(),eu}catch(ei){return{result:!1,errors:[ei]}}}),[eu,ed,ea]),eh=(0,eb.useMemo)(()=>{let eo=eu||[],ea=eo.filter(ei);return ea},[eu,ei]);return{kycFlows:eh,isLoading:!ec&&!eu,error:ec,updateKycFlows:ef,mutate:ed}},wX=864e5,_S=ei=>{let{onboardingService:eo,returnPath:ea,sendToFlowOverride:eu,useFeatureFlags:ec,transKeyExists:ed}=ei,{flow:ef,isRemediationSelected:eh,accountSettings:eg}=wF(eo),{isNotifyState:em,isPromptState:ew}=wB(eo),[,e_]=uj(eo),{endlessWaves:eS,languidSofa:eE,mindlessPuppy:eA,starcraftOatmeal:eT,shippingNews:ek}=ec(),eC=null==ef?void 0:ef.name,eO=null==ef?void 0:ef.type,eI=null==ef?void 0:ef.title,eP=null==ef?void 0:ef.context,eD=null==ef?void 0:ef.next.user_action,eN=null==ef?void 0:ef.status,eM="kycFlows:".concat(eC),ej="".concat(eM,":").concat(eI),eR="".concat(eM,":").concat(eI,":").concat(eN),eL=ed&&ed(ej),eF=ed&&ed(eR),eB=eF?eR:eL?ej:eM,eU=(0,eb.useMemo)(()=>{if(eO&&eC&&(null==eg?void 0:eg.analyticsCookie)){let ei=eF?[eC,eI,eN]:eL?[eC,eI]:[eC];return"onboarding-".concat(eO,"-").concat(ei.join("-"),"-").concat(eg.analyticsCookie)}return"onboarding-failed-load"},[]),eG=wX,[eV,eH]=fB(eU,!1,eG),eW=()=>{let ei=ef&&!my(ef),eo=ei?Py.Intermediate:"KYC Flow";e_({type:"FLOW",target:eo,returnPath:ea})},eK=!!em&&eV,eY=(0,eb.useCallback)(()=>!!(eC&&pN(eC))&&(eC===PF.Pil?!0===ek:eC===PF.KKICProCorpRemediation?pF.kycFlows.pci.proCorpEnabled:eC===PF.PviRemediation?!0===eS:eC===PF.PviRemediation2?!0===eT:pD.includes(eC)?!0===eE:eC!==PF.UKFinPromRemediation||!0===eA),[eC,eS,eT,eA,ek]),eZ=(0,eb.useMemo)(()=>eh&&eY()&&!!em,[eh,eY,em]),e$=(0,eb.useMemo)(()=>eh&&eY()&&!!(em||ew)&&!eK,[eh,eY,em,ew,eK]);return{dialogSeenToday:eV,setDialogSeenToday:eH,selectedFlowName:eC,selectedFlowType:eO,isBannerVisible:eZ,isModalOpen:e$,context:eP,nextUserAction:eD,status:eN,langKey:eB,sendToFlow:null!=eu?eu:eW}};!function(ei){ei.IDVendorOnErrorCallback="ID Vendor component onError triggered.",ei.SyncSlowLoadTime="Slow load time in a process manager blocking sync state",ei.ServiceProviderErrorState="ServiceProvider error state reached",ei.FailedServiceRefresh="Service machine failed to refresh after exiting Flow."}(PY||(PY={})),function(ei){ei.OnboardingServiceMachine="onboardingServiceMachine",ei.SmartDocumentCapture="smartDocumentCapture",ei.SmartDocumentRoleCapture="smartDocumentRoleCapture",ei.ManualDocumentCapture="manualDocumentCapture",ei.KycFlowForm="kycFlowForm",ei.KycFlowsMachine="KycFlowsMachine",ei.ContactSupportPage="contactSupportPage"}(PZ||(PZ={})),function(ei){ei.Example="example",ei.TestComponent="testComponent"}(P$||(P$={})),function(ei){ei.ExampleParent="exampleParent"}(PJ||(PJ={}));let _E={hasProcessed:!1,error:void 0,tracking:void 0};!function(ei){ei.Timeout="Timeout",ei.Network="Network",ei.API="API"}(PQ||(PQ={}));let _A=1e4,_T=cQ({id:"smartDocumentCaptureMachine",predictableActionArguments:!0,tsTypes:{},schema:{context:{},events:{}},context:_E,initial:"Loading",states:{Loading:{entry:["slowLoadEntryAction"],exit:["slowLoadExitAction"],on:{DATA_LOAD:{target:"DocumentRoleFlow"},CALLBACK_ERROR:{target:"Fallback"}}},DocumentRoleFlow:{initial:"VendorFlow",states:{VendorFlow:{id:"VendorFlow",initial:"InProgress",states:{InProgress:{},Error:{}},on:{COMPLETE_VENDOR_FLOW:{target:"UploadingVendorDocuments"},ERROR:gv(),CALLBACK_ERROR:gv()}},UploadingVendorDocuments:{initial:"InProgress",states:{InProgress:{entry:["slowLoadEntryAction"],exit:["slowLoadExitAction"]},Error:{}},on:{COMPLETE_UPLOADING:{target:"ProcessingVendorDocuments"},ERROR:gv()}},ProcessingVendorDocuments:{initial:"InProgress",states:{InProgress:{entry:["slowLoadEntryAction"],exit:["slowLoadExitAction"]},Error:{}},on:{COMPLETE_PROCESSING:[{target:"#Complete",cond:"isDocumentRoleComplete"},{target:"#VendorFlow"}],ERROR:gv()}},Complete:{id:"Complete",type:"final"},Error:{}},on:{COMPLETE_DOCUMENT_ROLE_FLOW:{target:"DocumentRoleFlow.Complete",actions:["unAssignTrackingParams"]}}},Error:{},Fallback:{}},on:{ERROR:gv(),CANCEL_FLOW:{actions:["assignErrorToContext"]},SET_TRACKING_PARAMS:{actions:["assignTrackingParams"]},TRACK_SLOW_LOAD:{actions:["trackSlowLoad"]},FALLBACK:{target:"Fallback"}}},{actions:{assignErrorToContext:cL({error:(ei,eo)=>eo.error}),assignTrackingParams:cL({tracking:(ei,eo)=>eo.tracking}),unAssignTrackingParams:cL({tracking:ei=>{let{tracking:eo}=ei,ea=eo||{},eu=dJ(ea,["documentCategoryType"]);return Object.assign({},eu)}}),slowLoadEntryAction:gm(_A),slowLoadExitAction:gy},delays:{},guards:{},services:{}}),_C=ei=>eo=>ea=>{try{eo(ea)}catch(ea){let eo=ei(ea);console.error({error:ea,eventId:eo})}},_O="Vendor flow config incorrect, check that vendor is supported",_I=(ei,eo)=>{let ea={shouldDefault:!0},{vendor:eu,config:ec}=null!=ei?ei:{};if(!eu||!ec)return ea;let ed=eo[eu];if(!ed)return ea;if("function"!=typeof ed)throw Error(_O);return{config:ec,vendor:eu,shouldDefault:!1,DocumentCapture:ed}},_P={CA:"northwestPassage",AU:"auroraAustralis"},_D=(ei,eo)=>{let ea=eo&&_P[eo],eu=ea&&ei[ea];return{active:eu||!1}},_N=ei=>{let{send:eo,isSuccess:ea,docProcessorContext:eu}=ei,ec=(0,eb.useMemo)(()=>ea(eu)(),[eu,ea]);(0,eb.useEffect)(()=>{ec&&eo({type:"COMPLETE_DOCUMENT_ROLE_FLOW"})},[ec,eo]);let ed=(0,eb.useMemo)(()=>eu.apiError,[eu.apiError]);(0,eb.useEffect)(()=>{ed&&eo({type:"ERROR",error:eu.apiError})},[ed,eu.apiError,eo])},_M=ei=>{let{callback:eo,condition:ea,children:eu}=ei;return(0,eb.useEffect)(()=>{ea&&eo()},[eo,ea]),eb.createElement(eb.Fragment,null,eu)},_R=ei=>{let{index:eo,config:ea,onLoad:eu,send:ec,matchesUploading:ed,matchesProcessing:ef,matchesDocumentRoleFlowComplete:eh,vendor:eg,uploadVendorInquiry:em,category:ew,onComplete:e_,onCancel:eS,onError:eE,captureException:eA,indexOffset:eT,DocumentCapture:ek,WrapperComponent:eC,docProcessorContext:eO}=ei;(0,eb.useEffect)(()=>{ec({type:"SET_TRACKING_PARAMS",tracking:{vendor:eg,documentCategoryType:ew.type}})},[eg,ew,ec]);let eI={key:eo,inquiryId:ea.inquiryIds[eo]},eP=_C(eA),eD=(0,eb.useCallback)(()=>{ec({type:"DATA_LOAD"}),eu&&eu()},[ec,eu]),eN=(0,eb.useCallback)(()=>{ec({type:"COMPLETE_VENDOR_FLOW"}),em(ew.key,eg,eI.inquiryId,()=>ec({type:"COMPLETE_UPLOADING"})),e_&&eP(e_)()},[ec,em,e_,eP,ew.key,eI.inquiryId,eg]),eM=(0,eb.useCallback)(()=>{ec({type:"CANCEL_FLOW"}),console.log('User canceled "DocFlow"',{docTypeKey:ew.key,vendor:eg}),eS&&eP(eS)()},[ec,eS,eP,ew.key,eg]),ej=(0,eb.useCallback)(ei=>{ec({type:"CALLBACK_ERROR",error:ei}),eA(PY.IDVendorOnErrorCallback,{component:PZ.SmartDocumentCapture,docTypeKey:ew.key,vendor:eg}),eE&&eE(ei)},[ec,eA,eE,ew.key,eg]),eR=ei=>()=>"".concat(ei),eL=(ei,eo)=>()=>ei||eo,eF=(ei,eo,ea)=>()=>!ei()&&!(eo||ea),eB=(0,eb.useCallback)(()=>!0,[]),eU=ei=>()=>eT?ei+eT():ei+1,eG=hS(ew,eO),eV=()=>eb.createElement(ek,Object.assign({},eI,{key:eo,onLoad:eD,onComplete:eN,onCancelHandler:eM,onError:ej})),eH=(0,eb.useCallback)(()=>ec({type:"COMPLETE_PROCESSING"}),[ec]);return eb.createElement(_M,{key:hx(ew),condition:!!eG,callback:eH},eC?eb.createElement(eC,{open:eF(eL(null!=eG&&eG,eh),ed,ef),header:eR(ew.name),complete:eL(null!=eG&&eG,eh),index:eU(eo),expandDisabled:eB,"data-testid":"section-wrapper-".concat(ew.name.replace(" ","-").toLowerCase())},eV()):eb.createElement(eb.Fragment,null,eV()))},_L=ei=>{let{country:eo,FallbackCapture:ea,documentRole:eu,vendorFlowConfig:ec,onLoad:ed,onComplete:ef,onCancel:eh,onError:eg,WrapperComponent:em,indexOffset:ew,observers:e_,views:eS,submitButton:eE,reloadButton:eA,makeRetryButton:eT,powSolver:ek}=ei,eC=(0,oE.W)(),{captureException:eO}=e_,eI=wj({country:eo,verificationFlow:eu,captureException:eO}),eP=eI.data.documentsRequired.categories.map(ei=>ei.type),{data:eD,uploadVendorInquiry:eN,isSuccess:eM,manualRetry:ej,isManualRetry:eR}=eI,eL=g7(eC,ek,ei=>{eO(ei)}),{result:eF,isLoading:eB,errors:eU}=g9(eP,eL,eC),eG=(0,eb.useCallback)((ei,eo)=>eM(eD)(),[eM,eD]),[eV,eH,eW]=uI(_T,{context:{},actions:{trackSlowLoad:()=>{eO(PY.SyncSlowLoadTime,{tags:{component:PZ.SmartDocumentRoleCapture}})}},delays:{},guards:{isDocumentRoleComplete:eG},services:{}}),eK=ei=>!!ei&&(ei.matches({DocumentRoleFlow:"UploadingVendorDocuments"})||ei.matches({DocumentRoleFlow:"ProcessingVendorDocuments"})),eY=uF(eW,eK),eZ=uF(eW,eK),e$=ei=>!!ei&&ei.matches({DocumentRoleFlow:"Complete"}),eJ=uF(eW,e$),eQ=ei=>!!ei&&ei.matches("Fallback"),eX=uF(eW,eQ),e0=ei=>!!ei&&ei.matches("Error"),e3=uF(eW,e0),e5=ei=>!!ei&&ei.matches({DocumentRoleFlow:{VendorFlow:"Error"}}),e4=uF(eW,e5),e6=ei=>!!ei&&(ei.matches({DocumentRoleFlow:{UploadingVendorDocuments:"Error"}})||ei.matches({DocumentRoleFlow:{ProcessingVendorDocuments:"Error"}})),e8=uF(eW,e6);wK(eW,PH.DocumentRoleCapture,{component:PZ.SmartDocumentRoleCapture},["xstate.init","SET_TRACKING_PARAMS"]);let{config:e9,vendor:e7,shouldDefault:ta,DocumentCapture:tu}=_I(eF,ec);if(_N({send:eH,isSuccess:eM,docProcessorContext:eD}),!eD.documentsRequired||eB)return eb.createElement(eb.Fragment,null);if(ta||!tu||!e9||!e7)return ea();let{UploadingOrProcessingView:tc,SuccessView:td,ErrorView:tf,WrapperView:tp}=eS,tg=()=>hA(eD.documentsRequired.categories,{config:e9,context:eD}).map((ei,eo)=>eb.createElement(_R,{key:"".concat(ei.name,"-").concat(ei.key),index:eo,config:e9,onLoad:ed,send:eH,matchesUploading:eY,matchesProcessing:eZ,matchesDocumentRoleFlowComplete:eJ,vendor:e7,uploadVendorInquiry:eN,category:ei,onComplete:ef,onCancel:eh,onError:eg,captureException:eO,indexOffset:ew,DocumentCapture:tu,WrapperComponent:em,docProcessorContext:eD})),tm=eT?eT(ej):eb.createElement(eb.Fragment,null);return eb.createElement("div",{"data-testid":"document-role-capture"},e3||eU&&eU.length>0?eb.createElement(tp,null,eb.createElement(tf,{bodyCopyLangKey:"account:Verification:Persona:Views:Error:Subtitle:Reload"}),eA||eb.createElement(eb.Fragment,null)):tg(),e4?eb.createElement(tp,null,eb.createElement(tf,{bodyCopyLangKey:"account:Verification:Persona:Views:Error:Subtitle:Reload"}),eA||eb.createElement(eb.Fragment,null)):eb.createElement(eb.Fragment,null),e8||eD.apiError||eR?eb.createElement(tp,null,eb.createElement(tf,{bodyCopyLangKey:"account:Verification:Persona:Views:Error:Subtitle:Retry"}),tm):eb.createElement(eb.Fragment,null),eY||eZ?eb.createElement(tp,null,eb.createElement(tc,null)):eb.createElement(eb.Fragment,null),eJ?eb.createElement(tp,null,eb.createElement(td,null),eE?eb.createElement("div",{className:"verified"},eE):eb.createElement(eb.Fragment,null)):eb.createElement(eb.Fragment,null),eX?ea():eb.createElement(eb.Fragment,null))},_F=ei=>{let{FallbackCapture:eo,views:ea,documentType:eu,vendorFlowConfig:ec,onLoad:ed,onComplete:ef,onCancel:eh,onError:eg,onInitError:em,powSolver:ew,observers:e_,Loading:eS,Background:eE}=ei,{captureException:eA}=e_,eT=(0,oE.W)(),{LoadingDefaultView:ek,BackgroundView:eC}=ea,eO=g7(eT,ew,ei=>{eA(ei)}),eI=ei=>eo=>{eA(eo),null==ei||ei(eo)},{result:eP,isLoading:eD,errors:eN}=g9([eu],eO,eT),eM=eI(eg),ej=eI(em),{config:eR,vendor:eL,shouldDefault:eF,DocumentCapture:eB}=_I(eP,ec),eU=eC?eb.createElement(eC,{Background:eE}):eb.createElement(eb.Fragment,null);return eD?eb.createElement(ek,{Loading:eS}):!eF&&eB&&eR?eb.createElement(eB,{inquiryId:eR.inquiryIds[0],background:eU,onLoad:ed,onComplete:ef,onCancel:eh,onError:eM,onInitError:ej}):eL!=Pv.Persona?eo():eU},_B=ei=>[ei.accountProfile,ei.isCorporate,ei.country].some(ei=>void 0===ei),_U=ei=>{let{accountProfile:eo,error:ea}=mc(),{accountSettings:eu,error:ec}=vu(),ed=ei||(null==eo?void 0:eo.country),ef=null==eu?void 0:eu.kycFlags.isCorporate,eh={accountProfile:eo,country:ed,isCorporate:ef},eg=_B(eh);return Object.assign(Object.assign({},eh),{isLoading:eg})},_G=ei=>{let{vendorFlowConfig:eo,observers:ea}=ei,{captureException:eu}=ea;return{SmartDocumentRoleCapture:ei=>{var{useFlags:ec,allFlags:ed,FallbackCapture:ef,views:eh}=ei,eg=dJ(ei,["useFlags","allFlags","FallbackCapture","views"]);let{LoadingDefaultView:em}=eh,ew=wV({useFlags:ec,allFlags:ed,captureException:eu}),{isLoading:e_,accountProfile:eS,country:eE,isCorporate:eA}=_U(eg.country);if(e_)return eb.createElement(em,{Loading:eg.Loading});let{active:eT}=_D(ew,eE);return eT?ef():eb.createElement(_L,Object.assign({},eg,{views:eh,vendorFlowConfig:eo,accountProfile:eS,isCorporate:eA,country:eE,observers:ea,flagsResult:ew,FallbackCapture:ef}))},SmartDocumentCapture:ei=>{var{useFlags:ec,allFlags:ed,views:ef,FallbackCapture:eh}=ei,eg=dJ(ei,["useFlags","allFlags","views","FallbackCapture"]);let{LoadingDefaultView:em}=ef,ew=wV({useFlags:ec,allFlags:ed,captureException:eu}),{isLoading:e_,accountProfile:eS,country:eE,isCorporate:eA}=_U(eg.country);if(e_)return eb.createElement(em,{Loading:eg.Loading});let{active:eT}=_D({},eE);return eT?eh():eb.createElement(_F,Object.assign({},eg,{views:ef,vendorFlowConfig:eo,accountProfile:eS,isCorporate:eA,country:eE,observers:ea,flagsResult:ew,FallbackCapture:eh}))}}},_V=ei=>eo=>eo.type===ei,_H=ei=>{var eo;return!!(null===(eo=ei.items)||void 0===eo?void 0:eo.anyOf)&&"array"===ei.type},_W=ei=>!!ei.anyOf&&"string"===ei.type||!!ei.anyOf&&"integer"===ei.type,_K=ei=>"oneOf"in ei,_Y=ei=>!!ei.const&&"object"===ei.type,_Z=ei=>"string"===ei.type&&!ei.anyOf,_$=ei=>"integer"===ei.type&&!ei.anyOf,_J=ei=>"object"===ei.type,_Q=ei=>"string"===ei.type,_X=ei=>"boolean"===ei.type,Sn=ei=>_J(ei)&&"properties"in ei,Si=ei=>"boolean"===ei.type,So=ei=>"integer"===ei.type;!function(ei){ei.multi="multi",ei.single="single",ei.singleOneOf="singleOneOf",ei.accept="accept",ei.text="text",ei.number="number",ei.checkbox="checkbox",ei.radio="radio",ei.unknown="unknown"}(PX||(PX={}));let Sa=ei=>_H(ei)?PX.multi:_W(ei)?PX.single:_K(ei)?PX.singleOneOf:_Y(ei)?PX.accept:_Z(ei)?PX.text:_$(ei)?PX.number:Si(ei)?PX.checkbox:PX.unknown,Sl=ei=>_H(ei)&&!!ei.items.anyOf&&"array"===ei.type,Su=ei=>_W(ei)&&!!ei.anyOf&&("string"===ei.type||"integer"===ei.type),Sc=ei=>_K(ei)&&!!ei.oneOf,Sd=ei=>_Z(ei),Sf=ei=>_$(ei),Sh=ei=>_Y(ei)&&"object"===ei.type&&!!ei.const,Sp=ei=>_Q(ei)&&!!ei.const,Sg=ei=>_X(ei)&&!!ei.const,Sm=ei=>Si(ei)&&"boolean"===ei.type,Sy=(ei,eo)=>"".concat(ei,"-input-json-generated-").concat(Sa(eo)),Sv=(ei,eo)=>ei.length===eo.length&&ei.every((ei,ea)=>ei===eo[ea]),Sb=(ei,eo)=>{let ea=Object.keys(ei),eu=ea.sort(),ec=eo.sort();return Sv(ec,eu)},Sw=(ei,eo)=>{if(eo){if("integer"===ei.type)return Number(eo);if("string"===ei.type)return null==eo?void 0:eo.toString()}return""},S_=ei=>{var eo,ea,eu;let ec=null===(eu=null===(ea=null===(eo=null==ei?void 0:ei.next.data_schema)||void 0===eo?void 0:eo.properties)||void 0===ea?void 0:ea.terms_of_service)||void 0===eu?void 0:eu.const;return!!ec&&!!(null==ei?void 0:ei.id)&&pD.includes(null==ei?void 0:ei.id)&&"object"==typeof ec&&"accepted"in ec&&"product"in ec&&"version"in ec},SS=(ei,eo)=>ei?"".concat(ei,".").concat(eo):eo,SE=(ei,eo)=>ei.map((ei,ea)=>{var eu;let ec;let ed=(null===(eu=ei.title)||void 0===eu?void 0:eu.startsWith("country:"))?"":"kycFlows:Form:";if(ei.const)ec=ei.const;else if(Sn(ei)){let eo=Object.keys(ei.properties),ea=eo.reduce((ei,eo)=>Object.assign(Object.assign({},ei),{[eo]:void 0}),{});ec=Object.assign({},ea)}else ec=ea;return{label:eo("".concat(ed).concat(ei.title)),value:ec}}),Sx="custom",SA="other",ST=ei=>{var eo;let{key:ea,field:eu,value:ec,errors:ed,touched:ef,setFieldValue:eh,handleBlur:eg,t:em,Components:eb,captureException:ew,renderSchemaForm:e_,parentPath:eS,context:eE}=ei,eA=ed[ea],eT=ef[ea];if(!((null==eu?void 0:eu.title)!=="assert_country_section_valid")&&Sc(eu)&&_K(eu)){let ei=ei=>eh(ea,ei);return React.createElement("div",{className:"mb2","data-testid":Sy(ea,eu)},React.createElement("div",{className:"mb2"},React.createElement("label",{htmlFor:ea,className:"body-2"},eE&&eE.section_local?em("kycFlows:Form:assert_country_section_valid:label",{section_local:eE.section_local}):em("kycFlows:Form:assert_country_section_valid:missing_context_label"))),React.createElement(eb.Radio,{className:"mr10 mb1",size:"medium",value:!0,checked:!0===ec,onChange:()=>!!ei&&ei(!0),title:em("kycFlows:Form:assert_country_section_valid:options:yes")}),React.createElement(eb.Radio,{className:"mr10",size:"medium",value:!1,checked:!1===ec,onChange:()=>!!ei&&ei(!1),title:em("kycFlows:Form:assert_country_section_valid:options:no")}))}let ek=React.createElement(Trans,{i18nKey:"kycFlows:Form:terms_of_service:label"},React.createElement(eb.ExternalLink,{href:em("locale:ToSURLCA")}),React.createElement(eb.ExternalLink,{href:em("locale:PrivacyPolicyURL")}),React.createElement(eb.ExternalLink,{href:em("locale:DisclaimersCA")})),eC=React.createElement(Trans,{i18nKey:"kycFlows:Form:platform_risk_statement:label"},React.createElement(eb.ExternalLink,{href:em("locale:PrsCA")}));if(Sd(eu)&&_Z(eu)&&"ssn"===eu.title){let ei=ei=>{},eo=ei=>eh(ea,ei.target.value);return React.createElement("div",{className:"mb2","data-testid":Sy(ea,eu)},React.createElement("div",{className:"mb2"},React.createElement("label",{htmlFor:ea,className:"body-2"},React.createElement(eb.FieldLabelText,{field:eu,Components:eb,onBlur:eg}))),React.createElement(eb.Ssn,{id:"ssn",name:"ssn","data-testid":"ssn",setHtmlRef:ei,value:ec,showToggleButton:!1,error:!!eA&&!!ef,onChange:ei=>!!eo&&eo(ei),onBlur:eg,mask:{numericOnly:!0,blocks:[3,2,4],delimiter:"-"}},React.createElement(Trans,{i18nKey:"account:SSN"})),React.createElement("div",{className:cx("flex-grow-1 flex-basis-0")},React.createElement("div",{style:{fontFamily:"IBM Plex Sans,Helvetica,Arial,sans-serif",fontSize:" 14px",lineHeight:"1.4",color:"#656565",fontStyle:" italic",paddingTop:"0.5rem"}},React.createElement("p",null,React.createElement(Trans,{i18nKey:"account:PrivateInfoForm:IDNumberNotice"})))))}if(Sd(eu)&&_Z(eu)&&"address1"===eu.title){let ei=(ei,eo)=>eh(ea,eo);return React.createElement("div",{className:"mb2",key:ea},React.createElement("div",{className:"mb2"},React.createElement("label",{htmlFor:ea,className:"body-2"},React.createElement(eb.FieldLabelText,{field:eu,Components:eb}))),React.createElement("div",null,React.createElement(eb.Field,{floating:!0,id:ea,name:ea,"data-testid":Sy(ea,eu),value:ec,onChange:eo=>ei(eo,eo.target.value),onBlur:eg,error:!!eA&&!!eT},React.createElement(eb.Field.Floating,null,React.createElement(eb.Field.FloatingLabel,null,"Your answer"),React.createElement(eb.Field.TextInput,{"data-testid":"field-".concat(Sy(ea,eu)),maxLength:eu.maxLength}))),ef[ea]&&ed[ea]&&React.createElement(eb.Notice,{kind:"error",className:"mt1"},ed[ea])),React.createElement("div",{className:cx("flex-grow-1 flex-basis-0")},React.createElement("div",{style:{fontFamily:"IBM Plex Sans,Helvetica,Arial,sans-serif",fontSize:" 14px",lineHeight:"1.4",color:"#656565",fontStyle:" italic",paddingTop:"0.5rem"}},React.createElement("p",null,React.createElement(Trans,{i18nKey:"account:PrivateInfoForm:POBoxNotice"})))))}if(Sd(eu)&&_Z(eu)&&"partial_govt_id"===eu.title){let ei=ei=>{},eo=ei=>eh(ea,ei.target.value);return React.createElement("div",{className:"mb2","data-testid":Sy(ea,eu)},React.createElement("div",{className:"mb2"},React.createElement("label",{htmlFor:ea,className:"body-2"},React.createElement(eb.FieldLabelText,{field:eu,Components:eb,onBlur:eg}))),React.createElement(eb.Ssn,{id:"partialGovtId",name:"partialGovtId","data-testid":"partial_govt_id",setHtmlRef:ei,value:ec,showToggleButton:!1,error:!!eA&&!!ef,onChange:ei=>!!eo&&eo(ei),onBlur:eg,mask:{numericOnly:!0,blocks:[4],delimiter:"-"}},React.createElement(Trans,{i18nKey:"account:SSNLast4"})),React.createElement("div",{className:cx("flex-grow-1 flex-basis-0")},React.createElement("div",{style:{fontFamily:"IBM Plex Sans,Helvetica,Arial,sans-serif",fontSize:" 14px",lineHeight:"1.4",color:"#656565",fontStyle:" italic",paddingTop:"0.5rem"}},React.createElement("p",null,React.createElement(Trans,{i18nKey:"account:PrivateInfoForm:IDNumberNotice"})))))}if(Sc(eu)&&_K(eu))return React.createElement(eb.SingleSelect,{oneOf:eu.oneOf,fieldKey:ea,key:ea,Components:eb,t:em,field:eu,value:ec,setFieldValue:eh,handleBlur:eg,captureException:ew,errors:ed,touched:ef,parentPath:eS});if(Sn(eu))return e_({properties:eu.properties,values:ec||{[ea]:{}},errors:ed,touched:ef,setFieldValue:(ei,eo)=>eh(ea,Object.assign(Object.assign({},ec),{[ei]:eo})),handleBlur:eg,t:em,Components:eb,captureException:ew,parentPath:eS});if(Su(eu)&&_W(eu)){let ei=SE(eu.anyOf,em),eo=ei=>eh(ea,ei.target.value),ed=Sw(eu,ec);return React.createElement("div",{className:"mb2"},React.createElement("label",{htmlFor:ea,className:"body-2"},React.createElement(eb.FieldLabelText,{field:eu,Components:eb})),React.createElement(eb.Dropdown,{key:ea,requiresUtilClassPrefix:!0,id:ea,name:ea,"data-testid":"".concat(ea,"-input-json-generated-").concat(Sa(eu)),className:"mb3",menuClassName:"h-dropdown",isSearchable:!1,label:em("kycFlows:Form:select:label"),options:ei,value:ed,hasError:!!eA&&!!eT,onChange:ei=>null==eo?void 0:eo(ei),onBlur:eg}))}if(Sl(eu)&&_H(eu)){let ei=ec||[];if(!Array.isArray(ei))return React.createElement(React.Fragment,null,"MultiSelect with no array value");let ed=(eo,eu)=>{let ec=eu.startsWith(Sx),ed=[];ec?(ed=ei.filter(ei=>!ei.startsWith(Sx)),""!==eu&&eu!=="".concat(Sx,"-")&&ed.push(eu)):ed=ei.includes(eu)?ei.filter(ei=>ei!==eu):[...ei,eu],eh(ea,ed)},ef=null===(eo=ei.find(ei=>ei.startsWith("".concat(Sx,"-"))))||void 0===eo?void 0:eo.slice(7);return React.createElement("div",{className:"mb2","data-testid":Sy(ea,eu)},React.createElement("div",{className:"mb2"},React.createElement("label",{htmlFor:ea,className:"body-2"},React.createElement(eb.FieldLabelText,{field:eu,Components:eb,onBlur:eg}))),React.createElement(React.Fragment,null,eu.items.anyOf.map((eo,ec)=>React.createElement("div",{key:"".concat(ea,"-").concat(ec),className:"flex items-center"},React.createElement(eb.Checkbox,{id:"".concat(ea,"-").concat(ec),name:"".concat(ea,"-").concat(ec),className:"mr1",checked:ei.includes(eo.const||SA),onChange:ei=>!!ed&&ed(ei,eo.const||SA),"data-testid":"option-".concat(Sy(ea,eu)),onBlur:eg}),React.createElement("label",{htmlFor:"".concat(ea,"-").concat(ec),className:"body-1","data-testid":"label-".concat(Sy(ea,eu))},React.createElement(eb.Text,{langKey:"kycFlows:Form:".concat(eo.title),onBlur:eg})))),ei.includes(SA)&&React.createElement(eb.Field,{floating:!0,id:"".concat(ea,"-").concat(SA),name:"".concat(ea,"-").concat(SA),value:ef,onChange:ei=>!!ed&&ed(ei,"".concat(Sx,"-").concat(ei.target.value)),onBlur:eg,error:!!eA&&!!eT},React.createElement(eb.Field.Floating,null,React.createElement(eb.Field.FloatingLabel,null,"Other"),React.createElement(eb.Field.TextInput,null)))))}if(Sh(eu)&&_Y(eu)){let ei=ei=>eh(ea,ec?void 0:eu.const);return React.createElement("div",{className:"mb2"},React.createElement("div",{key:ea,className:"flex items-center"},React.createElement(eb.Checkbox,{id:ea,name:ea,className:"mr1",checked:!!ec,"data-testid":Sy(ea,eu),onChange:eo=>null==ei?void 0:ei(),onBlur:eg}),React.createElement("label",{htmlFor:ea,className:"checkboxLabel"},"terms_of_service"===ea?ek:"platform_risk_statement"===ea?eC:React.createElement(Trans,{i18nKey:"kycFlows:Form:".concat(eu.title,":label")}))))}if(Sp(eu)||Sg(eu))return React.createElement("input",{key:ea,id:ea,"data-testid":Sy(ea,eu),name:ea,type:"hidden",value:ec});if(Sm(eu)&&Si(eu)){let ei=ei=>eh(ea,!1==!!ec);return React.createElement("div",{className:"mb2"},React.createElement("div",{key:ea,className:"flex items-center"},React.createElement(eb.Checkbox,{id:ea,name:ea,className:"mr1",checked:!!ec,"data-testid":Sy(ea,eu),onChange:eo=>null==ei?void 0:ei(),onBlur:eg}),React.createElement("label",{htmlFor:ea,className:"checkboxLabel"},"terms_of_service"===ea?ek:"platform_risk_statement"===ea?eC:React.createElement(Trans,{i18nKey:"kycFlows:Form:".concat(eu.title,":label")}))))}if(Sd(eu)&&_Z(eu)){let ei=(ei,eo)=>eh(ea,eo);return React.createElement("div",{className:"mb2",key:ea},React.createElement("div",{className:"mb2"},React.createElement("label",{htmlFor:ea,className:"body-2"},React.createElement(eb.FieldLabelText,{field:eu,Components:eb}))),React.createElement("div",null,React.createElement(eb.Field,{floating:!0,id:ea,name:ea,"data-testid":Sy(ea,eu),value:ec,onChange:eo=>ei(eo,eo.target.value),onBlur:eg,error:!!eA&&!!eT},React.createElement(eb.Field.Floating,null,React.createElement(eb.Field.FloatingLabel,null,"Your answer"),React.createElement(eb.Field.TextInput,{"data-testid":"field-".concat(Sy(ea,eu)),maxLength:eu.maxLength}))),ef[ea]&&ed[ea]&&React.createElement(eb.Notice,{kind:"error",className:"mt1"},ed[ea])))}if(Sf(eu)&&_$(eu)){let ei=ei=>eh(ea,ei.target.value),eo=SS(eS,ea),em=get(ed,eo);return React.createElement("div",{className:"mb2",key:ea},React.createElement("div",{className:"mb2"},React.createElement("label",{htmlFor:ea,className:"body-2"},React.createElement(Trans,{i18nKey:"kycFlows:Form:".concat(eu.title,":label"),components:[React.createElement("p",{key:0,className:"body-1 mt1"})]}))),React.createElement("div",null,React.createElement(eb.Field,{floating:!0,id:ea,name:ea,"data-testid":Sy(ea,eu),value:ec,onChange:ei,onBlur:eg,error:!!em&&!!eT},React.createElement(eb.Field.Floating,null,React.createElement(eb.Field.FloatingLabel,null,"Your answer"),React.createElement(eb.Field.NumberInput,{"data-testid":"field-".concat(Sy(ea,eu)),decimalScale:0}),"percentage"===eu.format&&React.createElement(eb.Field.Subtext,{className:"pl1 pr1"},"%"),"gbp"===eu.format&&React.createElement(eb.Field.Subtext,{className:"pl1 pr1"},"GBP"))),ef[ea]&&em&&React.createElement(eb.Notice,{kind:"error",className:"mt1"},em)))}return ew(Error("Unknown field in kyc flow ".concat(eu))),React.createElement(React.Fragment,null)},Sk=ei=>_Z(ei)&&0===ei.minLength,SC=ei=>{let{properties:eo,values:ea,errors:eu,touched:ec,setFieldValue:ed,handleBlur:ef,t:eh,Components:eg,captureException:em,parentPath:eb,context:ew}=ei,e_=Object.keys(eo).reduce((ei,e_)=>{let eS=ea[e_];return Object.assign(Object.assign({},ei),{[e_]:ST({key:e_,field:eo[e_],value:eS,errors:eu,touched:ec,setFieldValue:ed,handleBlur:ef,t:eh,Components:eg,captureException:em,renderSchemaForm:SO,parentPath:eb,context:ew})})},{});return e_},SO=ei=>{let{properties:eo,values:ea,errors:eu,touched:ec,setFieldValue:ed,handleBlur:ef,t:eh,Components:eg,captureException:em,parentPath:eb,context:ew}=ei;return Object.values(SC({properties:eo,values:ea,errors:eu,touched:ec,setFieldValue:ed,handleBlur:ef,t:eh,Components:eg,captureException:em,parentPath:eb,context:ew}))},SI=(ei,eo)=>{let ea=Object.keys(eo||{});return ea.reduce((ea,eu)=>{let ec=ei[eu];if(eo){let ei=eo[eu];if(_K(ei)){let eo=ei.oneOf.find(ei=>Sn(ei)&&Sb(ei.properties,Object.keys(ec))),ed=(null==eo?void 0:eo.properties)?SI(ec,null==eo?void 0:eo.properties):ec;return Object.assign(Object.assign({},ea),{[eu]:ed})}if(Sh(ei)&&_Y(ei))return Object.assign(Object.assign({},ea),{[eu]:ec?ei.const:void 0});if(Sm(ei)&&Si(ei))return Object.assign(Object.assign({},ea),{[eu]:ec});if(_H(ei)&&_H(ei)&&Array.isArray(ec)){let ei=ec.filter(ei=>ei!==SA).map(ei=>ei.startsWith(Sx)?ei.slice(Sx.length+1):ei);return Object.assign(Object.assign({},ea),{[eu]:ei})}if(_Z(ei)&&void 0===ec&&Sk(ei))return Object.assign(Object.assign({},ea),{[eu]:""});if(So(ei))return Object.assign(Object.assign({},ea),{[eu]:Number(ec)})}return Object.assign(Object.assign({},ea),{[eu]:ec})},{})};!function(ei){ei.REQUIRED="Required",ei.MAXIMUM="Maximum",ei.MINIMUM="Minimum",ei.MAX_LENGTH="MaxLength",ei.MIN_LENGTH="MinLength",ei.WRONG_SELECTION="WrongSelection",ei.WRONG_VALUE="WrongValue"}(P0||(P0={}));let SP={[P0.MINIMUM]:"Number should be above",[P0.MAXIMUM]:"Number should be below maximum",[P0.REQUIRED]:"Missing required field",[P0.MAX_LENGTH]:"Value exceeds maximum length",[P0.MIN_LENGTH]:"Value does not meet minimum length",[P0.WRONG_SELECTION]:"Wrong selection",[P0.WRONG_VALUE]:"Wrong value"},SD=function(ei,eo,ea){let eu=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},ec="kycFlows:Form:".concat(ei,":").concat(eo),ed="general:Form:".concat(eo);return ea?ea.t(ea.exists(ec)?ec:ed,eu):SP[eo]},SN=ei=>{let{property:eo,key:ea,value:eu,i18n:ec}=ei;if(Sn(eo)){let ei=SM({properties:eo.properties,values:eu,i18n:ec});return ei}if(null==eo?void 0:eo.pattern){let ei=String(eo.pattern),ed=String(eu),ef=new RegExp(ei),eh=ef.test(ed);if(!eh){let ei=SD(ea,P0.WRONG_VALUE,ec);return[ei]}}if("ssn"===eo.title&&(null==eu?void 0:eu.toString().length)<11){let ei=SD(ea,P0.MIN_LENGTH,ec);return[ei]}if("partial_govt_id"===eo.title&&(null==eu?void 0:eu.toString().length)<4){let ei=SD(ea,P0.MIN_LENGTH,ec);return[ei]}if(!(Si(eo)&&Sm(eo))){if(null==eu){if(eo&&Sk(eo))return;let ei=SD(ea,P0.REQUIRED,ec);return[ei]}if(Sc(eo)&&_K(eo)&&eu){let ei=eo.oneOf.find(ei=>{if(Sn(ei)){let eo=Object.keys(eu||{});return Sb(ei.properties,eo)}return!!Sp(ei)&&ei.const===eu});if(ei){if(Sn(ei)){let eo=Sj(ei,ec)(eu);return eo}if(Sp(eo)&&ei.const!==eo.const){let ei=SD(ea,P0.WRONG_SELECTION,ec);return[ei]}}}if(_H(eo)&&Sl(eo)&&Array.isArray(eu)){if(0===eu.length){let ei=SD(ea,P0.REQUIRED,ec);return[ei]}if(eu.includes(SA)){let ei=eu.find(ei=>ei.startsWith(Sx));if(!ei){let ei=SD(ea,P0.REQUIRED,ec);return[ei]}let ed=eo.items.anyOf.find(ei=>!ei.const);if(ed){let eo=ei.slice(Sx.length+1);if(ed.maxLength&&ed.maxLength>0&&eo.length>ed.maxLength){let ei=SD(ea,P0.MAX_LENGTH,ec,{maxLength:ed.maxLength});return[ei]}if(ed.minLength&&ed.minLength>0&&eo.lengthei.length>eo.maxLength)){let ei=SD(ea,P0.MAX_LENGTH,ec,{maxLength:eo.maxLength});return[ei]}if(eo.minLength&&eu.some(ei=>ei.lengtheo.maxLength){let ei=SD(ea,P0.MAX_LENGTH,ec,{maxLength:eo.maxLength});return[ei]}if(eo.minLength&&ei.lengthef){let eo=SD(ea,P0.MINIMUM,ec,{minimum:ei});return[eo]}if(ed&&edeo.maxLength){let ei=SD(ea,P0.MAX_LENGTH,ec,{maxLength:eo.maxLength});return[ei]}if(eo.minLength&&eu.length{let{properties:eo,values:ea,i18n:eu}=ei,ec=Object.keys(eo).reduce((ei,ec)=>{let ed=ea?ea[ec]:"",ef=eo[ec],eh=SN({property:ef,key:ec,value:ed,i18n:eu}),eg=eh&&Object.keys(eh).length>0;return Object.assign(Object.assign({},ei),eg?{[ec]:eh}:{})},{});return ec},Sj=(ei,eo)=>ea=>{let eu=ei.properties;if(!eu)return{};let{required:ec=Object.keys(eu)}=ei,ed=ec.reduce((ei,eo)=>Object.assign(Object.assign({},ei),{[eo]:eu[eo]}),{}),ef=Object.entries(eu).reduce((ei,eo)=>{let[ea,eu]=eo;return eu.pattern?Object.assign(Object.assign({},ei),{[ea]:eu}):Object.assign({},ei)},{});return SM({properties:Object.assign(Object.assign({},ed),ef),values:ea,i18n:eo})},SR=ei=>{let{KycModal:eo,KycSingleScreenModal:ea,returnPath:eu,sendToFlowOverride:ec,onboardingService:ed,useFeatureFlags:ef}=ei,[,eh]=uj(ed),{isPromptState:eg,isNotifyState:em}=wB(ed),{flow:ew}=wF(ed),{updateKycFlows:e_}=wQ(),{setDialogSeenToday:eS,langKey:eE,sendToFlow:eA,isModalOpen:eT,context:ek,status:eC,nextUserAction:eO}=_S({onboardingService:ed,returnPath:eu,sendToFlowOverride:ec,useFeatureFlags:ef}),eI=S_(ew),eP=eI?ea:eo,[eD,eN]=eb.useState(!1),eM=()=>{em&&eS(!0),eN(!0)};(0,eb.useEffect)(()=>{eD&&eh({type:"DISMISS"})},[eD]);let ej=()=>{eI?(e_(ew.id,{data:{terms_of_service:Object.assign({},ew.next.data_schema.properties.terms_of_service.const)}}),eN(!0)):(em&&eS(!0),eA())};return(eg||em)&&eT?eb.createElement(eP,{canDismiss:!eg,onDismissCB:eM,onCtaCB:ej,isOpen:eT,langKey:eE,status:eC,nextUserAction:eO,context:ek}):eb.createElement(eb.Fragment,null)},SL=ei=>{let{KycModal:eo,KycSingleScreenModal:ea,returnPath:eu,sendToFlowOverride:ec,useFeatureFlags:ed}=ei,ef=vm(),{isRemediationSelected:eh}=wF(ef);return eh?eb.createElement(SR,{KycModal:eo,KycSingleScreenModal:ea,returnPath:eu,sendToFlowOverride:ec,onboardingService:ef,useFeatureFlags:ed}):null},SF=ei=>!!((null==ei?void 0:ei.access)&&ei.access.userKyc.includes("corporate")),SU=ei=>{var eo,ea;let{settings:eu,profile:ec,kycFlows:ed,overrideTier:ef,featureFlags:eh}=ei,{tierBucket:eg=Py.Unknown,country:em,tierVerifiable:eb,access:ew}=ec,e_=null===(eo=null==ew?void 0:ew.userKyc)||void 0===eo?void 0:eo.includes("incomplete-verify"),eS=eg===Py.None&&2===eb,eE=SF(ec),{tierBucketInitForms:eA}=pP,eT=eA[eg],ek=Py.Intermediate;if(ek=eT,0===ec.tier&&0===ec.tierVerified&&2===ec.tierVerifiable&&ec.tierBucket===Py.None&&ec.country===I9.US&&eh.peekyBlinders&&(ek=Py.Intermediate),ed){let ei=ed.find(_V("onboarding")),eo=ed.filter(ei=>my(ei)).find(_V("remediation"));if(eo||ei&&ei&&"post_t2"===ei.name&&(eT!==Py.Starter||eS))return{initialFlowTarget:ek="KYC Flow",shouldAbortAutoFlow:eE}}let{fangorn:eC}=eh,eO=eg===Py.Intermediate||eE,eI=(null==eu?void 0:eu.hasTfa)&&!eu.settingsLock||eC;if(!em||!eg||eg===Py.Pro||eO&&!eI||eb&&!eS||e_)return{initialFlowTarget:null,shouldAbortAutoFlow:eE&&!eI};let eP=pB(em),eD=pq({country:null==ec?void 0:ec.country,province:null===(ea=null==ec?void 0:ec.province)||void 0===ea?void 0:ea.id});ek===Py.Starter&&eD&&(ek=Py.Express),ek&&[Py.Starter,Py.Express].includes(ek)&&eP&&(ek=Py.Intermediate);let eN={"KYC Flow":[Py.Starter],[Py.Intermediate]:[Py.Express,Py.Starter],[Py.Pro]:[Py.Express,Py.Starter,Py.Intermediate]};return ef&&eN[ef]&&eN[ef].includes(ek)&&(ek=ef),{initialFlowTarget:ek,shouldAbortAutoFlow:eE&&!eI}},Sz=(ei,eo)=>{let{accountProfile:ea,autoFlowMeta:{isFlowRoute:eu,isTableRoute:ec}}=ei,ed=eo.data,ef=ed&&ed.documentsUploaded&&ed.documentsUploaded.length>0;if(ea&&!eu&&!ec){let ei=v_(ea,ef);if(ei)return!0}return!1},SG=(0,dF.Le)((ei,eo)=>{let{accountProfile:ea,accountSettings:eu,kycFlows:ec,featureFlags:ed,autoFlowMeta:{shouldAutoFlow:ef,initialApplyingTier:eh,returnPath:eg,isTableRoute:em,isFlowRoute:eb}}=ei;if(!ea)return(0,dF.lW)({type:"ERROR",error:"Account profile fetch failed"});if(!ec)return(0,dF.lW)({type:"ERROR",error:"KYCFlows fetch failed"});let{initialFlowTarget:ew,shouldAbortAutoFlow:e_}=SU({profile:ea,settings:eu,kycFlows:ec,overrideTier:eh,featureFlags:ed});return e_&&(em||eb)?(0,dF.lW)({type:"FLOW_TABLE"}):ef&&ew?(0,dF.lW)({type:"FLOW",target:ew,returnPath:eg}):ef&&!ew||em?(0,dF.lW)("FLOW"):(0,dF.lW)("ASYNC_CHECK")}),SV=(0,dF.Le)((ei,eo)=>{let{kycFlows:ea}=ei;if(ea){let ei=ea.filter(_V("remediation")),eo=ei.find(ei=>"blocking"===ei.modality);if(eo)return(0,dF.lW)({type:"PROMPT",flow:eo});let eu=ei.find(ei=>"non-blocking"===ei.modality);if(eu)return(0,dF.lW)({type:"NOTIFY",flow:eu})}return(0,dF.lW)("IDLE")});!function(ei){ei[ei.RouterBased=0]="RouterBased",ei[ei.EventBased=1]="EventBased"}(P1||(P1={}));let Sq={autoflowKind:void 0,verificationStore:void 0,documentStore:void 0,error:void 0,accountSettings:void 0,autoFlowMeta:{initialApplyingTier:void 0,returnPath:void 0,shouldAutoFlow:!1,isTableRoute:!1},featureFlags:{},stateContext:{Flow:{}}},SH=ei=>({loadedTracking:(eo,ea)=>ei({eventType:"System",eventName:PH.OnboardingLoaded})}),SW=1e4,SK=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return{entry:cF({type:"TRACK_SLOW_LOAD"},{delay:ei,id:"SLOW_LOAD"}),exit:lL("SLOW_LOAD")}},SY={verificationActor:()=>new Promise(ei=>setTimeout(ei,2e3)),flowActor:()=>new Promise(ei=>setTimeout(ei,2e3)),waitingActor:()=>new Promise(ei=>setTimeout(ei,2e3)),getDocumentsActor:()=>new Promise(ei=>setTimeout(ei,2e3))},SZ={expectUpdate:()=>!1,shouldNotify:()=>!0},S$=cQ({id:"onboardingService",initial:"Load",predictableActionArguments:!0,tsTypes:{},schema:{context:{},events:{}},context:Sq,states:{Load:Object.assign(Object.assign({},SK(SW)),{on:{DATA_LOAD:{target:"#Check",actions:["assignAccountProfile","assignKYCFlows","assignAccountSettings","assignFeatureFlags","updateAutoFlowMetaData","refreshFlow"]},ERROR:{target:"Error",actions:["assignErrorToContext"]}}}),Refresh:{id:"Refresh",invoke:{id:"refreshActor",src:"refresher",onDone:[{target:"Check.Async",actions:["assignRefreshValues","refreshFlow"]}],onError:[{target:"Error",actions:["assignErrorToContext"]}]}},Check:Object.assign(Object.assign({id:"Check",initial:"Sync"},SK(SW)),{states:{Sync:{entry:SG,on:{ASYNC_CHECK:{target:"Async",actions:[]},FLOW_TABLE:{target:"#flow",actions:["assignAutoFlowFalse","routeToTable"]},FLOW:{target:"#flow",actions:["assignAutoFlowData","routeToFlow"]}}},Async:{entry:SV,invoke:{id:"asyncActor",src:"getDocumentsActor",onDone:[{target:"#prompt",actions:[],cond:Sz},{target:"#idle"}],onError:{target:"#Error",actions:["assignErrorToContext"]}},on:{FLOW:{target:"#flow"},PROMPT:{target:"#prompt"},NOTIFY:{target:"#notify"}}}},on:{PROMPT:"Prompt",NOTIFY:"Notify",WAIT:"Wait",ERROR:{target:"Error",actions:["assignErrorToContext"]},IDLE:"Idle"}}),Flow:{id:"flow",invoke:{id:"flowActor",src:"flowActor",data:ei=>Object.assign(Object.assign({},yD.context),{featureFlags:ei.featureFlags}),onDone:[{cond:"expectUpdate",target:"#onboardingService.Wait"},{target:"#onboardingService.Refresh"}],onError:{target:"Error",actions:["assignErrorToContext"]}},entry:["selectFlow",cF((ei,eo)=>({type:"OVERRIDE_TIER",flowTier:ei.flowTier,overrideReturnPath:ei.returnPath,flows:ei.kycFlows,featureFlags:ei.featureFlags}),{to:"flowActor"})],exit:["clearFlow"],on:{CHECK:{target:"Check"},LOAD:{target:"#Refresh"},CLOSE_FORM:{after:[{delay:1,target:"#Refresh"}]}}},Prompt:{id:"prompt",entry:["selectFlow"],on:{FLOW:{target:"Flow",actions:["assignAutoFlowData","routeToFlow"]},DISMISS:"Idle"}},Wait:{invoke:{id:"waitingActor",src:"waitingActor",onDone:[{cond:"shouldNotify",target:"Notify"},{target:"Idle"}],onError:{target:"Error",actions:["assignErrorToContext"]}}},Notify:{id:"notify",entry:["selectFlow"],on:{FLOW:{target:"Flow",actions:["assignAutoFlowData","routeToFlow"]},CHECK:"Check"}},Idle:{id:"idle",entry:["clearFlow"],on:{FLOW:"Flow",LOAD:"Load",CHECK:"Check",UPDATE_FLOWS:{target:"Check",actions:["updateAutoFlowMetaData","assignKYCFlows","refreshFlow"]}}},Error:{id:"Error"}},on:{TRACK_SLOW_LOAD:{actions:["trackSlowLoad"]},UPDATE_FLOWS:{actions:["updateAutoFlowMetaData","assignKYCFlows","refreshFlow"]},UPDATE_AUTOFLOW_META:{actions:"updateAutoFlowMetaData"}}},{guards:SZ,services:SY,actions:{assignAccountProfile:cL({accountProfile:(ei,eo)=>"DATA_LOAD"===eo.type?eo.accountProfile:ei.accountProfile}),assignKYCFlows:cL({kycFlows:(ei,eo)=>"DATA_LOAD"===eo.type||"UPDATE_FLOWS"===eo.type?eo.kycFlows:ei.kycFlows}),assignRefreshValues:cL({accountProfile:(ei,eo)=>"done.invoke.refreshActor"===eo.type?eo.data[0]:ei.accountProfile,accountSettings:(ei,eo)=>"done.invoke.refreshActor"===eo.type?eo.data[1]:ei.accountSettings,kycFlows:(ei,eo)=>"done.invoke.refreshActor"===eo.type?eo.data[2]||[]:ei.kycFlows}),assignAccountSettings:cL({accountSettings:(ei,eo)=>"DATA_LOAD"===eo.type?eo.accountSettings:ei.accountSettings}),assignErrorToContext:cL({error:(ei,eo)=>"ERROR"===eo.type&&eo.error||"An unknown error occurred"}),assignAutoFlowFalse:cL({autoFlowMeta:(ei,eo)=>Object.assign(Object.assign({},ei.autoFlowMeta),{shouldAutoFlow:!1})}),assignAutoFlowData:cL({flowTier:(ei,eo)=>"FLOW"===eo.type?eo.target:ei.flowTier,returnPath:(ei,eo)=>"FLOW"===eo.type?eo.returnPath:ei.returnPath}),updateAutoFlowMetaData:cL((ei,eo)=>({autoFlowMeta:"UPDATE_FLOWS"===eo.type||"UPDATE_AUTOFLOW_META"===eo.type||"DATA_LOAD"===eo.type?Object.assign(Object.assign({},ei.autoFlowMeta||{}),eo.autoFlowMetaUpdates||{}):ei.autoFlowMeta})),refreshFlow:cL({stateContext:ei=>{let{kycFlows:eo}=ei,{flow:ea}=ei.stateContext.Flow,eu=mw(ea,eo)||ea;return Object.assign(Object.assign({},ei.stateContext),{Flow:Object.assign(Object.assign({},ei.stateContext.Flow),{flow:eu})})}}),selectFlow:cL({stateContext:(ei,eo)=>{var ea,eu;let ec=mv(ei.stateContext.Flow.flow);if(("PROMPT"===eo.type||"NOTIFY"===eo.type)&&eo.flow)return Object.assign(Object.assign({},ei.stateContext),{Flow:Object.assign(Object.assign({},ei.stateContext.Flow),{flow:eo.flow})});if(("FLOW"===eo.type||"FLOW_TABLE"===eo.type)&&(!ei.stateContext.Flow.flow||!ec)){let eo=null===(ea=ei.kycFlows)||void 0===ea?void 0:ea.find(ei=>"remediation"===ei.type&&my(ei));if(eo)return Object.assign(Object.assign({},ei.stateContext),{Flow:Object.assign(Object.assign({},ei.stateContext.Flow),{flow:eo})});let ec=null===(eu=ei.kycFlows)||void 0===eu?void 0:eu.find(ei=>"onboarding"===ei.type);if(ec)return Object.assign(Object.assign({},ei.stateContext),{Flow:Object.assign(Object.assign({},ei.stateContext.Flow),{flow:ec})})}return ei.stateContext}}),clearFlow:cL({stateContext:ei=>Object.assign(Object.assign({},ei.stateContext),{Flow:{}})}),assignFeatureFlags:cL({featureFlags:(ei,eo)=>eo.featureFlags})}});function SJ(ei){return null!=ei}!function(ei){ei.EVERYDAY="everyday",ei.HIGH_NET_WORTH="high_net_worth",ei.SOPHISTICATED="sophisticated"}(P2||(P2={}));let SQ=ei=>null!=ei,SX=ei=>eo=>SQ(ei)&&ei.pathname===eo,S0=ei=>"pro_corporate"!==ei.name,S1=(ei,eo)=>{let{pilEnabled:ea,userActionInOnboardingWebApp:eu}=eo;if("pro_individual"!==ei.name)return!0;let ec=["enable-2fa","disable-settings-lock","wait-for-settings-unlock"].some(eo=>eo===ei.next.user_action);return!!(ea||eu&&ec)},S2=ei=>("post_t2"!==ei.name||"post_t2_pil"!==ei.title)&&ei.name!==PF.Pil,S3=ei=>"pre_t4"!==ei.name&&ei.name!==PF.KKICProCorpRemediation,S5=ei=>{let eo="post_t2"===ei.name&&"post_t2_bvi"===ei.title;return!eo},S4=ei=>{let eo=ei.name===PF.PviRemediation;return!eo},S6=ei=>{let eo=ei.name===PF.PviRemediation2;return!eo},S8=ei=>{let eo=ei.title===PB.PostT2UKFinPromAssessment;return!eo},S9=ei=>{let eo=ei.title===PB.PostT2UKFinPromQuestionnaire;return!eo},S7=ei=>{let eo=ei.name===PF.UKFinPromRemediation;return!eo},En=ei=>{let eo=ei.name===PF.TulipT12Remediation||ei.name===PF.TulipT34Remediation;return!eo},Ei=ei=>{let{track:eo}=(0,dw.Sl)(),{useFeatureFlags:ea,LoadingView:eu,ErrorView:ec,useShowAccountUpgradePending:ed,captureMessage:ef,staticPaths:eh,autoflowKind:eg=P1.EventBased,useRouter:em}=ei,ew=(em||(()=>void 0))(),{endlessWaves:e_,mindlessPuppy:eS,snarkyPuppy:eE,starcraftOatmeal:eA,shippingNews:eT,fangorn:ek}=ea(),{bvi:eC,pci:eO}=pF.kycFlows,{accountProfile:eI,isLoading:eP,error:eD,mutate:eN}=mc(),{accountSettings:eM,mutate:ej,error:eR}=vu(),eL=(0,eb.useCallback)(ei=>{let eo=[!0===eT?null:S2,!0===eC?null:S5,!0===e_?null:S4,!0===eA?null:S6,eO.proCorpEnabled?null:S3,!0===eS?null:S8,!0===eS?null:S9,!0===eS?null:S7,!0===eE?null:En,!0===ek?null:S0,!0===ek&&!0===eT?null:ei=>S1(ei,{userActionInOnboardingWebApp:ek,pilEnabled:eT}),wJ,w$].filter(SJ);return eo.every(eo=>eo(ei))},[eC,eT,e_,eO.proCorpEnabled,eS,eE,eA,ek]),{kycFlows:eF,isLoading:eB,mutate:eU,error:eG}=wQ(eL),{initConfig:eV,initContext:eH,verificationStore:eW,documentStore:eK,onApplicationSubmit:eY}=vp({useFeatureFlags:ea,useShowAccountUpgradePending:ed,staticPaths:eh,useInternalApiClient:oE.W,router:ew}),eZ=SX(ew),e$=!!((null==eM?void 0:eM.hasTfa)&&!(null==eM?void 0:eM.settingsLock)||ek),eJ=SF(eI)&&!e$,eQ=(null==eM?void 0:eM.userType)==="custody",eX=eZ("/u/verify/flow")||eQ&&eZ("/verify/flow"),e0=eZ("/u/verify")||eQ&&eZ("/verify"),e3=eX||e0,e5=e0&&!!eH.initialApplyingTier,e4=(e5||eX)&&!eJ,e6=Object.assign({shouldAutoFlow:e4,isTableRoute:e0,isFlowRoute:eX},eH),e8=()=>gD(eV.apiClient),e9=eV.featureFlags,[e7]=(0,eb.useState)(()=>S$.withConfig({actions:Object.assign(Object.assign({},SH(eo)),{trackSlowLoad:()=>{ef(PY.SyncSlowLoadTime,{tags:{component:PZ.OnboardingServiceMachine}})},routeToFlow:(ei,eo)=>{let{autoFlowMeta:{shouldAutoFlow:ea,isFlowRoute:eu}}=ei,ec=ei.autoflowKind===P1.RouterBased&&ew&&!eu&&ea,ed=ei.autoflowKind===P1.RouterBased&&ew&&"FLOW"===eo.type&&!!eo.target,ef=ec||ed;ef&&ew.replace(Pb.KycFlow)},routeToTable:ei=>{let{autoFlowMeta:{isTableRoute:eo}}=ei;ei.autoflowKind===P1.RouterBased&&ew&&eo&&ew.replace(Pb.GetVerified)}}),services:{getDocumentsActor:e8,flowActor:yD.withConfig(vh({initConfig:eV,onApplicationSubmit:eY,verificationStore:eW,documentStore:eK,router:ew,track:eo})),refresher:()=>dQ(void 0,void 0,void 0,function*(){return Promise.all([eN(),ej(),eU()]).catch(ei=>(ef(PY.FailedServiceRefresh,{parsedError:{error:ei},tags:{component:PZ.OnboardingServiceMachine}}),ei))})}}).withContext({stateContext:{Flow:{}},verificationStore:eW,documentStore:eK,autoFlowMeta:e6,autoflowKind:eg,featureFlags:e9})),ta="true"!==dZ.env.NEXT_PUBLIC_CYPRESS_ISOLATED_TESTS,tu=ux(e7,{devTools:ta}),{isFlowState:tc,isErrorState:td,isLoadingState:tf,isPromptState:tp}=wB(tu),tg=tc&&(e0||eX)||tp,{isAutoFlow:tm,error:tv}=wF(tu),tb=!tg&&(e4||e3)||tf||eP||eB||e4&&!eX&&e0&&tm,[tw,t_]=(0,eb.useState)(!1);if((0,eb.useEffect)(()=>{(eD||eR||eG)&&tu.send({type:"ERROR",error:{accountProfileError:eD,accountSettingsError:eR,kycFlowsError:eG}}),!tw&&!eB&&[eI,eM,eF].every(ei=>void 0!==ei)&&(tu.send({type:"DATA_LOAD",accountProfile:eI,accountSettings:eM,kycFlows:eF,featureFlags:e9,autoFlowMetaUpdates:{shouldAutoFlow:e4,isTableRoute:e0,isFlowRoute:eX}}),t_(!0))},[eI,eD,eM,eR,tw,eF,eB,eG,tu,e9,e4,e0,eX]),(0,eb.useEffect)(()=>{tu.send({type:"UPDATE_AUTOFLOW_META",autoFlowMetaUpdates:{shouldAutoFlow:e4,isTableRoute:e0,isFlowRoute:eX}})},[tu,e4,e0,eX]),(0,eb.useEffect)(()=>{eF&&tu.send({type:"UPDATE_FLOWS",kycFlows:eF,autoFlowMetaUpdates:{shouldAutoFlow:e4,isTableRoute:e0,isFlowRoute:eX}})},[tu,eF,e4,e0,eX]),(0,eb.useEffect)(()=>{ew&&(e3&&!tc?tu.send({type:"CHECK"}):!e3&&tc&&tu.send({type:"LOAD"}))},[null==ew?void 0:ew.asPath]),td)return ef(PY.ServiceProviderErrorState,{tags:{component:PZ.OnboardingServiceMachine},extra:{event:tv}}),eb.createElement(ec,null);if(tb)return eb.createElement(eu,null);let tS={useRouter:em};return eb.createElement(vg.Provider,{value:{onboardingService:tu,ancillary:tS}},ei.children)},Eo=ei=>{let{useRouter:eo}=ei,ea=ei=>{let{isAuthenticated:ea}=ei;return!0===ea||void 0===ea?eb.createElement(Ei,Object.assign({},ei,{useRouter:eo})):eb.createElement(vg.Provider,{value:{}},ei.children)};return ea},Ea=(0,eb.lazy)(()=>ea.e(2010).then(ea.t.bind(ea,2010,19)).then(ei=>{let{Inquiry:eo}=ei;return{default:eo}})),Eu=uV.styled.div(d$()),Ec=ei=>{let{inquiryId:eo,onLoad:ea,onComplete:eu,onCancel:ec,onError:ed}=ei;return eb.createElement(Eu,{"data-testid":"persona-document-capture"},eb.createElement(eb.Suspense,null,eb.createElement(Ea,{inquiryId:eo,environment:"sandbox",onLoad:()=>{ea&&ea()},onError:ei=>{ed&&ed(ei)},onCancel:()=>{ec&&ec()},onComplete:ei=>{let{inquiryId:eo,status:ea,fields:ec}=ei;console.log("Sending finished inquiry ".concat(eo," to backend, status: ").concat(ea,", fields: ").concat(ec)),eu&&eu()}})))},Ed={[Pv.Persona]:Ec},{SmartDocumentRoleCapture:Ef}=_G({vendorFlowConfig:Ed,observers:{captureException:ek.Tb,captureMessage:ek.uT}}),Ep={bar:{position:"absolute",background:"white",textAlign:"center",whiteSpace:"nowrap",margin:10,padding:5,left:0,bottom:0},button:{height:20,display:"flex",alignItems:"center"}},Eg="onboarding.devbar.xstate-inspect",Em=(0,eb.memo)(ei=>{let{portal:eo=document.body}=ei,ea=ei=>{ec(ei.target.checked),null==localStorage||localStorage.setItem(Eg,ei.target.checked.toString()),location.reload()},[eu,ec]=(0,eb.useState)((null==localStorage?void 0:localStorage.getItem(Eg))==="true");(0,eb.useEffect)(()=>{eu&&dL({iframe:!1})},[]);let ed=eb.createElement("div",{title:"Onboarding DEV Bar",style:Ep.bar},eb.createElement("div",{title:"Open XState Visualizer",style:Ep.button},"✗: ",eb.createElement("input",{type:"checkbox",onChange:ea,checked:eu})));return eo?(0,tJ.createPortal)(ed,eo):ed});Em.displayName="Onboarding Dev Bar";let Ey=Eo({useRouter:eA.useRouter});var Ev=ea(59112),Eb=ea(72261);function Ew(ei){let{id:eo,className:ea}=ei,eu=()=>{window.location.reload()};return(0,em.jsxs)("div",{id:eo,className:eE()(ea,"w-100 pv4 bg-PT100 border-radius flex align-center flex-column justify-center"),children:[(0,em.jsxs)("div",{className:"tc",children:[(0,em.jsx)(rO.v,{size:"large",className:"text-I200"}),(0,em.jsx)("p",{className:"body-3 pt1",children:(0,em.jsx)(Ev.x,{langKey:"general:Error"})}),(0,em.jsx)("p",{className:"body-2",children:(0,em.jsx)(Ev.x,{langKey:"error:UnexpectedError"})})]}),(0,em.jsx)("div",{className:"tc",children:(0,em.jsx)(Eb.zx,{kind:"secondary",onClick:eu,className:"mt2",children:(0,em.jsx)(Ev.x,{langKey:"general:Reload"})})})]})}var E_=ea(15252),ES=ea.n(E_);let Ex=()=>(0,em.jsx)(Ew,{className:ES().fullscreenView});var EA=ea(72439),ET=JSON.parse('{"assets":[],"layers":[{"ddd":0,"ind":0,"ty":4,"nm":"形状图层 5","ks":{"o":{"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":8,"s":[100],"e":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":24,"s":[30],"e":[100]},{"t":40}]},"r":{"k":0},"p":{"k":[187.875,77.125,0]},"a":{"k":[-76.375,-2.875,0]},"s":{"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":8,"s":[100,100,100],"e":[200,200,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":24,"s":[200,200,100],"e":[100,100,100]},{"t":40}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"k":[18,18]},"p":{"k":[0,0]},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"k":[1,1,1,1]},"o":{"k":100},"w":{"k":0},"lc":1,"lj":1,"ml":4,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"k":[0.9098039215686274,0.7333333333333333,1,1]},"o":{"k":100},"nm":"填充 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"k":[-76.482,-3.482],"ix":2},"a":{"k":[0,0],"ix":1},"s":{"k":[100,100],"ix":3},"r":{"k":0,"ix":6},"o":{"k":100,"ix":7},"sk":{"k":0,"ix":4},"sa":{"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":3,"mn":"ADBE Vector Group"}],"ip":0,"op":40,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 4","ks":{"o":{"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":6,"s":[100],"e":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":22,"s":[30],"e":[100]},{"t":36}]},"r":{"k":0},"p":{"k":[162.125,76.625,0]},"a":{"k":[-76.375,-2.875,0]},"s":{"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":6,"s":[100,100,100],"e":[200,200,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":22,"s":[200,200,100],"e":[100,100,100]},{"t":36}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"k":[18,18]},"p":{"k":[0,0]},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"k":[1,1,1,1]},"o":{"k":100},"w":{"k":0},"lc":1,"lj":1,"ml":4,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"k":[0.7254901960784313,0.5725490196078431,1,1]},"o":{"k":100},"nm":"填充 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"k":[-76.482,-3.482],"ix":2},"a":{"k":[0,0],"ix":1},"s":{"k":[100,100],"ix":3},"r":{"k":0,"ix":6},"o":{"k":100,"ix":7},"sk":{"k":0,"ix":4},"sa":{"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":3,"mn":"ADBE Vector Group"}],"ip":0,"op":40,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":2,"ty":4,"nm":"形状图层 3","ks":{"o":{"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":4,"s":[100],"e":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":20,"s":[30],"e":[100]},{"t":32}]},"r":{"k":0},"p":{"k":[135.625,76.625,0]},"a":{"k":[-76.375,-2.875,0]},"s":{"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":4,"s":[100,100,100],"e":[200,200,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":20,"s":[200,200,100],"e":[100,100,100]},{"t":32}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"k":[18,18]},"p":{"k":[0,0]},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"k":[1,1,1,1]},"o":{"k":100},"w":{"k":0},"lc":1,"lj":1,"ml":4,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"k":[0.5372549019607843,0.40784313725490196,1,1]},"o":{"k":100},"nm":"填充 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"k":[-76.482,-3.482],"ix":2},"a":{"k":[0,0],"ix":1},"s":{"k":[100,100],"ix":3},"r":{"k":0,"ix":6},"o":{"k":100,"ix":7},"sk":{"k":0,"ix":4},"sa":{"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":3,"mn":"ADBE Vector Group"}],"ip":0,"op":40,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":3,"ty":4,"nm":"形状图层 2","ks":{"o":{"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":2,"s":[100],"e":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":16,"s":[30],"e":[100]},{"t":28}]},"r":{"k":0},"p":{"k":[109.375,76.625,0]},"a":{"k":[-76.625,-3.125,0]},"s":{"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":2,"s":[100,100,100],"e":[200,200,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":16,"s":[200,200,100],"e":[100,100,100]},{"t":28}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"k":[18,18]},"p":{"k":[0,0]},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"k":[1,1,1,1]},"o":{"k":100},"w":{"k":0},"lc":1,"lj":1,"ml":4,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"k":[0.34509803921568627,0.2549019607843137,0.8470588235294118,1]},"o":{"k":100},"nm":"填充 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"k":[-76.482,-3.482],"ix":2},"a":{"k":[0,0],"ix":1},"s":{"k":[100,100],"ix":3},"r":{"k":0,"ix":6},"o":{"k":100,"ix":7},"sk":{"k":0,"ix":4},"sa":{"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":3,"mn":"ADBE Vector Group"}],"ip":0,"op":40,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":4,"ty":4,"nm":"形状图层 1","ks":{"o":{"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":0,"s":[100],"e":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"n":["0p833_0p833_0p333_0"],"t":12,"s":[30],"e":[100]},{"t":24}]},"r":{"k":0},"p":{"k":[82.625,76.625,0]},"a":{"k":[-76.625,-3.375,0]},"s":{"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":0,"s":[100,100,100],"e":[200,200,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":12,"s":[200,200,100],"e":[100,100,100]},{"t":24}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"k":[18,18]},"p":{"k":[0,0]},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"k":[1,1,1,1]},"o":{"k":100},"w":{"k":0},"lc":1,"lj":1,"ml":4,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"k":[0.1568627450980392,0.1411764705882353,0.7137254901960784,1]},"o":{"k":100},"nm":"填充 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"k":[-76.482,-3.482],"ix":2},"a":{"k":[0,0],"ix":1},"s":{"k":[100,100],"ix":3},"r":{"k":0,"ix":6},"o":{"k":100,"ix":7},"sk":{"k":0,"ix":4},"sa":{"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":3,"mn":"ADBE Vector Group"}],"ip":0,"op":40,"st":0,"bm":0,"sr":1}],"v":"4.5.4","ddd":0,"ip":0,"op":40,"fr":24,"w":280,"h":160}'),Ek=ea(52293),EC=ea.n(Ek);let EO=()=>(0,em.jsx)("div",{className:EC().fullscreenView,children:(0,em.jsx)(EA.Y,{options:{animationData:ET,rendererSettings:{viewBoxSize:"65 55 145 160"}},width:"100%",height:"100%",maxWidth:"150px",direction:1,speed:.75})});var EI=ea(88643),EP=ea(54276),ED=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let EN=(ei={})=>{let eo=(0,oE.W)(),{logout:ea}=(0,EI.k)(),[eu,{loading:ec,error:ed}]=(0,EP.i)(()=>ED(void 0,void 0,void 0,function*(){let{data:ei}=yield eo.pow.getPowChallenge(),eu=yield(0,dn.p)(ei.result);yield ea({headers:{"x-pow":eu.solution}})}),ei);return{signOut:eu,loading:ec,error:ed}};var EM=ea(158),Ej=ea(99628),ER=ea(14627),EL=ea.n(ER);function EF(ei){let{bodyClassName:eo,image:ea,onClose:eu,children:ec,header:ed,description:ef,isOpen:eh,alt:eg,headerTitle:eb,description2:ew,canDismiss:e_=!0}=ei;return(0,em.jsx)(Ej.u,{type:"simple",isOpen:eh,onClose:eu,children:(0,em.jsxs)(Ej.u.View,{children:[(0,em.jsxs)(Ej.u.Header,{className:EL().header,children:[eb?(0,em.jsx)(Ej.u.Header.Title,{className:"headline-3",children:eb}):null,e_?(0,em.jsx)(Ej.u.Header.Close,{onClick:eu}):null]}),(0,em.jsx)(Ej.u.Body,{children:(0,em.jsxs)("div",{className:eE()(EL().body,eo),children:[ea&&(0,em.jsx)("img",{src:ea.src,width:ea.width,height:ea.height,className:EL().image,alt:null!=eg?eg:""}),ed&&(0,em.jsx)(EM.xv,{type:"heading2",children:ed}),(0,em.jsx)(EM.xv,{type:"body1",tone:"neutral",children:ef}),ew?(0,em.jsx)(EM.xv,{type:"label2",tone:"primary",children:ew}):null]})}),(0,em.jsx)(Ej.u.Footer,{children:ec})]})})}var EB="/nft/_next/static/chunks/images/8e73653c364b45b0a9898359aa5b1928.png";function EU(ei){let{onCtaCB:eo,onDismissCB:ea,isOpen:eu,langKey:ec,canDismiss:ed=!0}=ei,{t:ef,i18n:eh}=(0,rT.$G)(),{signOut:eg}=EN(),eb="".concat(ec,":Modal:Title"),ew="".concat(ec,":Modal:Header"),e_="".concat(ec,":Modal:Paragraph"),eS="".concat(ec,":Modal:Paragraph2"),eE="".concat(ec,":Modal:CTA"),eA="general:Logout";return(0,em.jsxs)(EF,{"data-testid":"kyc-remediation-modal",onClose:ea,canDismiss:ed,isOpen:eu,image:{src:EB,width:186,height:200},header:eh.exists(eb)?ef(eb):void 0,headerTitle:eh.exists(ew)?ef(ew):void 0,description:eh.exists(e_)?ef(e_):void 0,description2:eh.exists(eS)?ef(eS):void 0,children:[(0,em.jsx)(Eb.zx,{"data-testid":"remediation-modal-cta",kind:"primary",size:"large",onClick:eo,children:eh.exists(eE)?(0,em.jsx)(Ev.x,{langKey:eE}):void 0}),ed?null:(0,em.jsx)(Eb.zx,{"data-testid":"remediation-modal-sign-out-button",kind:"tertiary",size:"large",onClick:eg,children:(0,em.jsx)(Ev.x,{langKey:eA})})]})}var Ez=ea(72512),EG=ea(94907),EV=ea(83454);function Eq(){return void 0!==EV&&EV.env?EV.env:{}}var EH=ea(99382),EW=ea(55609),EK=ea(55469);function EY(ei,eo,ea,eu){var ec,ed=[ei,eo,ea,eu],ef=(0,EK.PO)(ei)?ei.event:ei;if(!ef||!(0,EK.HD)(ef))throw Error("Event missing");var eh=(0,EK.PO)(ei)?null!==(ec=ei.properties)&&void 0!==ec?ec:{}:(0,EK.PO)(eo)?eo:{},eg={};return(0,EK.mf)(ea)||(eg=null!=ea?ea:{}),(0,EK.PO)(ei)&&!(0,EK.mf)(eo)&&(eg=null!=eo?eo:{}),[ef,eh,eg,ed.find(EK.mf)]}function EZ(ei,eo,ea,eu,ec){var ed,ef,eh=null,eg=null,em=[ei,eo,ea,eu,ec],eb=em.filter(EK.HD);void 0!==eb[0]&&void 0!==eb[1]&&(eh=eb[0],eg=eb[1]),1===eb.length&&(eh=null,eg=eb[0]);var ew=em.find(EK.mf),e_=em.filter(function(ei){return null===eg?(0,EK.PO)(ei):(0,EK.PO)(ei)||null===ei});return[eh,eg,null!==(ed=e_[0])&&void 0!==ed?ed:{},null!==(ef=e_[1])&&void 0!==ef?ef:{},ew]}var E$=function(ei){return function(){for(var eo,ea,eu,ec=[],ed=0;ed-1?ei:ei+eo},xa=function(ei){var eo=ei.indexOf("#");return-1===eo?ei:ei.slice(0,eo)},xu=function(ei){try{return new URL(ei).pathname}catch(eo){return"/"===ei[0]?ei:"/"+ei}},xd=function(ei){var eo=ei.c,ea=ei.p,eu=ei.s,ec=ei.u,ed=ei.r,ef=ei.t,eh=eo?xu(eo):ea,eg=eo?xo(eo,eu):xa(ec);return{path:eh,referrer:ed,search:eu,title:ef,url:eg}},xf=function(){var ei=document.querySelector("link[rel='canonical']");return xr(location.href,ei&&ei.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},xh=function(){return xd(xf())},xg=function(ei,eo){void 0===eo&&(eo=xh());var ea,eu=ei.context;"page"===ei.type&&(ea=ei.properties&&E9(ei.properties,Object.keys(eo)),ei.properties=(0,eO.pi)((0,eO.pi)((0,eO.pi)({},eo),ei.properties),ei.name?{name:ei.name}:{})),eu.page=(0,eO.pi)((0,eO.pi)((0,eO.pi)({},eo),ea),eu.page)},xm=function(){function ei(ei){this.user=ei}return ei.prototype.track=function(ei,eo,ea,eu,ec){return this.normalize((0,eO.pi)((0,eO.pi)({},this.baseEvent()),{event:ei,type:"track",properties:eo,options:(0,eO.pi)({},ea),integrations:(0,eO.pi)({},eu)}),ec)},ei.prototype.page=function(ei,eo,ea,eu,ec,ed){var ef,eh={type:"page",properties:(0,eO.pi)({},ea),options:(0,eO.pi)({},eu),integrations:(0,eO.pi)({},ec)};return null!==ei&&(eh.category=ei,eh.properties=null!==(ef=eh.properties)&&void 0!==ef?ef:{},eh.properties.category=ei),null!==eo&&(eh.name=eo),this.normalize((0,eO.pi)((0,eO.pi)({},this.baseEvent()),eh),ed)},ei.prototype.screen=function(ei,eo,ea,eu,ec,ed){var ef={type:"screen",properties:(0,eO.pi)({},ea),options:(0,eO.pi)({},eu),integrations:(0,eO.pi)({},ec)};return null!==ei&&(ef.category=ei),null!==eo&&(ef.name=eo),this.normalize((0,eO.pi)((0,eO.pi)({},this.baseEvent()),ef),ed)},ei.prototype.identify=function(ei,eo,ea,eu,ec){return this.normalize((0,eO.pi)((0,eO.pi)({},this.baseEvent()),{type:"identify",userId:ei,traits:eo,options:(0,eO.pi)({},ea),integrations:(0,eO.pi)({},eu)}),ec)},ei.prototype.group=function(ei,eo,ea,eu,ec){return this.normalize((0,eO.pi)((0,eO.pi)({},this.baseEvent()),{type:"group",traits:eo,options:(0,eO.pi)({},ea),integrations:(0,eO.pi)({},eu),groupId:ei}),ec)},ei.prototype.alias=function(ei,eo,ea,eu,ec){var ed={userId:ei,type:"alias",options:(0,eO.pi)({},ea),integrations:(0,eO.pi)({},eu)};return(null!==eo&&(ed.previousId=eo),void 0===ei)?this.normalize((0,eO.pi)((0,eO.pi)({},ed),this.baseEvent())):this.normalize((0,eO.pi)((0,eO.pi)({},this.baseEvent()),ed),ec)},ei.prototype.baseEvent=function(){var ei={integrations:{},options:{}},eo=this.user;return eo.id()&&(ei.userId=eo.id()),eo.anonymousId()&&(ei.anonymousId=eo.anonymousId()),ei},ei.prototype.context=function(ei){var eo,ea,eu,ec=["integrations","anonymousId","timestamp","userId"],ed=null!==(eo=ei.options)&&void 0!==eo?eo:{};delete ed.integrations;var ef=Object.keys(ed),eh=null!==(eu=null===(ea=ei.options)||void 0===ea?void 0:ea.context)&&void 0!==eu?eu:{},eg={};return ef.forEach(function(ei){"context"!==ei&&(ec.includes(ei)?(0,E4.N)(eg,ei,ed[ei]):(0,E4.N)(eh,ei,ed[ei]))}),[eh,eg]},ei.prototype.normalize=function(ei,eo){(null===(ea=ei.options)||void 0===ea?void 0:ea.anonymousId)&&this.user.anonymousId(ei.options.anonymousId);var ea,eu,ec,ed=Object.keys(null!==(eu=ei.integrations)&&void 0!==eu?eu:{}).reduce(function(eo,ea){var eu,ec;return(0,eO.pi)((0,eO.pi)({},eo),((eu={})[ea]=!!(null===(ec=ei.integrations)||void 0===ec?void 0:ec[ea]),eu))},{}),ef=(0,eO.pi)((0,eO.pi)({},ed),null===(ec=ei.options)||void 0===ec?void 0:ec.integrations),eh=this.context(ei),eg=eh[0],em=eh[1];ei.options;var eb=(0,eO._T)(ei,["options"]),ew=(0,eO.pi)((0,eO.pi)((0,eO.pi)((0,eO.pi)({timestamp:new Date},eb),{context:eg,integrations:ef}),em),{messageId:"ajs-next-"+E8().hash(JSON.stringify(ei)+(0,E5.v4)())});return xg(ew,eo),ew},ei}(),xy=ea(65976);function xv(ei,eo){var ea={};return ei.forEach(function(ei){var eu,ec=void 0;if("string"==typeof eo){var ed=ei[eo];ec="string"!=typeof ed?JSON.stringify(ed):ed}else eo instanceof Function&&(ec=eo(ei));void 0!==ec&&(ea[ec]=(0,eO.ev)((0,eO.ev)([],null!==(eu=ea[ec])&&void 0!==eu?eu:[],!0),[ei],!1))}),ea}var xb=ea(51181),xw=ea(98191),x_=function(ei){return"object"==typeof ei&&null!==ei&&"then"in ei&&"function"==typeof ei.then},xS=function(){var ei,eo,ea=0;return{done:function(){return ei},run:function(eu){var ec=eu();return x_(ec)&&(1==++ea&&(ei=new Promise(function(ei){return eo=ei})),ec.finally(function(){return 0==--ea&&eo()})),ec}}},xE=ea(69147),xx=function(ei){function eo(eo){return ei.call(this,"string"==typeof eo?new xy.$(4,eo):eo)||this}return(0,eO.ZT)(eo,ei),eo.prototype.flush=function(){return(0,eO.mG)(this,void 0,void 0,function(){return(0,eO.Jh)(this,function(eo){return(0,EQ.s)()?[2,[]]:[2,ei.prototype.flush.call(this)]})})},eo}(function(ei){function eo(eo){var ea=ei.call(this)||this;return ea.criticalTasks=xS(),ea.plugins=[],ea.failedInitializations=[],ea.flushing=!1,ea.queue=eo,ea.queue.on(xb.M,function(){ea.scheduleFlush(0)}),ea}return(0,eO.ZT)(eo,ei),eo.prototype.register=function(ei,eo,ea){return(0,eO.mG)(this,void 0,void 0,function(){var eu=this;return(0,eO.Jh)(this,function(ec){switch(ec.label){case 0:return[4,Promise.resolve(eo.load(ei,ea)).then(function(){eu.plugins.push(eo)}).catch(function(ea){if("destination"===eo.type){eu.failedInitializations.push(eo.name),console.warn(eo.name,ea),ei.log("warn","Failed to load destination",{plugin:eo.name,error:ea});return}throw ea})];case 1:return ec.sent(),[2]}})})},eo.prototype.deregister=function(ei,eo,ea){return(0,eO.mG)(this,void 0,void 0,function(){var eu;return(0,eO.Jh)(this,function(ec){switch(ec.label){case 0:if(ec.trys.push([0,3,,4]),!eo.unload)return[3,2];return[4,Promise.resolve(eo.unload(ei,ea))];case 1:ec.sent(),ec.label=2;case 2:return this.plugins=this.plugins.filter(function(ei){return ei.name!==eo.name}),[3,4];case 3:return eu=ec.sent(),ei.log("warn","Failed to unload destination",{plugin:eo.name,error:eu}),[3,4];case 4:return[2]}})})},eo.prototype.dispatch=function(ei){return(0,eO.mG)(this,void 0,void 0,function(){var eo;return(0,eO.Jh)(this,function(ea){return ei.log("debug","Dispatching"),ei.stats.increment("message_dispatched"),this.queue.push(ei),eo=this.subscribeToDelivery(ei),this.scheduleFlush(0),[2,eo]})})},eo.prototype.subscribeToDelivery=function(ei){return(0,eO.mG)(this,void 0,void 0,function(){var eo=this;return(0,eO.Jh)(this,function(ea){return[2,new Promise(function(ea){var eu=function(ec,ed){ec.isSame(ei)&&(eo.off("flush",eu),ea(ec))};eo.on("flush",eu)})]})})},eo.prototype.dispatchSingle=function(ei){return(0,eO.mG)(this,void 0,void 0,function(){var eo=this;return(0,eO.Jh)(this,function(ea){return ei.log("debug","Dispatching"),ei.stats.increment("message_dispatched"),this.queue.updateAttempts(ei),ei.attempts=1,[2,this.deliver(ei).catch(function(ea){return eo.enqueuRetry(ea,ei)?eo.subscribeToDelivery(ei):(ei.setFailedDelivery({reason:ea}),ei)})]})})},eo.prototype.isEmpty=function(){return 0===this.queue.length},eo.prototype.scheduleFlush=function(ei){var eo=this;void 0===ei&&(ei=500),this.flushing||(this.flushing=!0,setTimeout(function(){eo.flush().then(function(){setTimeout(function(){eo.flushing=!1,eo.queue.length&&eo.scheduleFlush(0)},0)})},ei))},eo.prototype.deliver=function(ei){return(0,eO.mG)(this,void 0,void 0,function(){var eo,ea,eu,ec;return(0,eO.Jh)(this,function(ed){switch(ed.label){case 0:return[4,this.criticalTasks.done()];case 1:ed.sent(),eo=Date.now(),ed.label=2;case 2:return ed.trys.push([2,4,,5]),[4,this.flushOne(ei)];case 3:return ei=ed.sent(),ea=Date.now()-eo,this.emit("delivery_success",ei),ei.stats.gauge("delivered",ea),ei.log("debug","Delivered",ei.event),[2,ei];case 4:throw ec=eu=ed.sent(),ei.log("error","Failed to deliver",ec),this.emit("delivery_failure",ei,ec),ei.stats.increment("delivery_failed"),eu;case 5:return[2]}})})},eo.prototype.enqueuRetry=function(ei,eo){return(!(ei instanceof xw.Y)||!!ei.retry)&&this.queue.pushWithBackoff(eo)},eo.prototype.flush=function(){return(0,eO.mG)(this,void 0,void 0,function(){var ei,eo;return(0,eO.Jh)(this,function(ea){switch(ea.label){case 0:if(0===this.queue.length||!(ei=this.queue.pop()))return[2,[]];ei.attempts=this.queue.getAttempts(ei),ea.label=1;case 1:return ea.trys.push([1,3,,4]),[4,this.deliver(ei)];case 2:return ei=ea.sent(),this.emit("flush",ei,!0),[3,4];case 3:return eo=ea.sent(),this.enqueuRetry(eo,ei)||(ei.setFailedDelivery({reason:eo}),this.emit("flush",ei,!1)),[2,[]];case 4:return[2,[ei]]}})})},eo.prototype.isReady=function(){return!0},eo.prototype.availableExtensions=function(ei){var eo=xv(this.plugins.filter(function(eo){if("destination"!==eo.type&&"Segment.io"!==eo.name)return!0;var ea,eu,ec,ed=void 0;return null===(ea=eo.alternativeNames)||void 0===ea||ea.forEach(function(eo){void 0!==ei[eo]&&(ed=ei[eo])}),null!==(ec=null!==(eu=ei[eo.name])&&void 0!==eu?eu:ed)&&void 0!==ec?ec:!1!==("Segment.io"===eo.name||ei.All)}),"type"),ea=eo.before,eu=void 0===ea?[]:ea,ec=eo.enrichment,ed=void 0===ec?[]:ec,ef=eo.destination,eh=void 0===ef?[]:ef,eg=eo.after;return{before:eu,enrichment:ed,destinations:eh,after:void 0===eg?[]:eg}},eo.prototype.flushOne=function(ei){var eo,ea;return(0,eO.mG)(this,void 0,void 0,function(){var eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA;return(0,eO.Jh)(this,function(eT){switch(eT.label){case 0:if(!this.isReady())throw Error("Not ready");ei.attempts>1&&this.emit("delivery_retry",ei),ec=(eu=this.availableExtensions(null!==(eo=ei.event.integrations)&&void 0!==eo?eo:{})).before,ed=eu.enrichment,ef=0,eh=ec,eT.label=1;case 1:if(!(ef0||eo.length<=1)return eu;for(var ec=eo.length-2;ec>=0;--ec)eu.push(eo.slice(ec).join("."));return eu}function xR(ei){try{return new URL(ei)}catch(ei){return}}function xL(ei){var eo=xR(ei);if(eo)for(var ea=xj(eo),eu=0;eu4){var ef=eu.slice(4);"campaign"===ef&&(ef="name"),ei[ef]=(0,AE.a)(ed)}return ei},{})}function AC(){var ei=xM.get("_ga");if(ei&&ei.startsWith("amp"))return ei}function AO(ei,eo,ea){var eu,ec=new xC(ea?[]:[new xB(AA())]),ed=ec.get("s:context.referrer"),ef=null!==(eu=AT(ei))&&void 0!==eu?eu:ed;ef&&(eo&&(eo.referrer=(0,eO.pi)((0,eO.pi)({},eo.referrer),ef)),ec.set("s:context.referrer",ef))}var AI=function(ei){try{var eo=new URLSearchParams;return Object.entries(ei).forEach(function(ei){var ea=ei[0],eu=ei[1];Array.isArray(eu)?eu.forEach(function(ei){return eo.append(ea,ei)}):eo.append(ea,eu)}),eo.toString()}catch(ei){return""}},AP=new(function(){return function(){var ei=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(eo,ea){return(0,eO.mG)(ei,void 0,void 0,function(){var ei,eo;return(0,eO.Jh)(this,function(eu){switch(eu.label){case 0:this.instance=ea,eu.label=1;case 1:return eu.trys.push([1,3,,4]),ei=this,[4,Ax(this.instance.options.highEntropyValuesClientHints)];case 2:return ei.userAgentData=eu.sent(),[3,4];case 3:return eo=eu.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(eo){var ea,eu,ec=eo.event.context,ed=ec.page.search||"",ef="object"==typeof ed?AI(ed):ed;ec.userAgent=navigator.userAgent,ec.userAgentData=ei.userAgentData;var eh=navigator.userLanguage||navigator.language;void 0===ec.locale&&void 0!==eh&&(ec.locale=eh),null!==(ea=ec.library)&&void 0!==ea||(ec.library={name:"analytics.js",version:"".concat("web"===(0,AS.B)()?"next":"npm:next","-").concat(xK.i)}),ef&&!ec.campaign&&(ec.campaign=Ak(ef));var eg=AC();eg&&(ec.amp={id:eg}),AO(ef,ec,null!==(eu=ei.instance.options.disableClientPersistence)&&void 0!==eu&&eu);try{ec.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(ei){}return eo},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich}}()),AD=ea(66548),AN=ea(66170),AM=ea(92311),Aj=function(){function ei(ei,eo){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=eo,this.name=ei,this.type=eo.type,this.alternativeNames.push(eo.name)}return ei.prototype.addMiddleware=function(){for(var ei,eo=[],ea=0;ea=AG-50}function AH(ei){var eo=[],ea=0;return ei.forEach(function(ei){AV(eo[ea])>=64&&ea++,eo[ea]?eo[ea].push(ei):eo[ea]=[ei]}),eo}function AW(ei,eo){var ea,eu,ec,ed=[],ef=!1,eh=null!==(ea=null==eo?void 0:eo.size)&&void 0!==ea?ea:10,eg=null!==(eu=null==eo?void 0:eo.timeout)&&void 0!==eu?eu:5e3;function em(eo){if(0!==eo.length){var ea,eu=null===(ea=eo[0])||void 0===ea?void 0:ea.writeKey,ec=eo.map(function(ei){var eo=ei;return eo.sentAt,(0,eO._T)(eo,["sentAt"])});return(0,EW.h)("https://".concat(ei,"/b"),{keepalive:ef,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({writeKey:eu,batch:ec,sentAt:new Date().toISOString()})})}}function eb(){return(0,eO.mG)(this,void 0,void 0,function(){var ei;return(0,eO.Jh)(this,function(eo){return ed.length?(ei=ed,ed=[],[2,em(ei)]):[2]})})}function ew(){ec||(ec=setTimeout(function(){ec=void 0,eb().catch(console.error)},eg))}return Az(function(ei){(ef=ei)&&ed.length&&Promise.all(AH(ed).map(em)).catch(console.error)}),{dispatch:function(ei,eo){return(0,eO.mG)(this,void 0,void 0,function(){return(0,eO.Jh)(this,function(ei){return ed.push(eo),[2,ed.length>=eh||Aq(ed)||ef?eb():ew()]})})}}}function AK(ei){return{dispatch:function(eo,ea){return(0,EW.h)(eo,{keepalive:null==ei?void 0:ei.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(ea)})}}}function AY(ei,eo,ea,eu){var ec,ed=ei.user();delete eo.options,eo.writeKey=null==ea?void 0:ea.apiKey,eo.userId=eo.userId||ed.id(),eo.anonymousId=eo.anonymousId||ed.anonymousId(),eo.sentAt=new Date;var ef=ei.queue.failedInitializations||[];ef.length>0&&(eo._metadata={failedInitializations:ef});var eh=[],eg=[];for(var em in eu){var eb=eu[em];"Segment.io"===em&&eh.push(em),"bundled"===eb.bundlingStatus&&eh.push(em),"unbundled"===eb.bundlingStatus&&eg.push(em)}for(var ew=0,e_=(null==ea?void 0:ea.unbundledIntegrations)||[];ew0&&!(0,EQ.s)()},function(){return(0,eO.mG)(eu,void 0,void 0,function(){var eu;return(0,eO.Jh)(this,function(ec){switch(ec.label){case 0:if(!(eu=eo.pop()))return[2];return[4,(0,xE.a)(eu,ei)];case 1:return ec.sent()instanceof EX._||ea.push(eu),[2]}})})})];case 1:return ec.sent(),ea.map(function(ei){return eo.pushWithBackoff(ei)}),[2,eo]}})})}function AJ(ei,eo,ea,eu){var ec=this;ei||setTimeout(function(){return(0,eO.mG)(ec,void 0,void 0,function(){var ei,ec;return(0,eO.Jh)(this,function(ed){switch(ed.label){case 0:return ei=!0,[4,A$(ea,eo)];case 1:return ec=ed.sent(),ei=!1,eo.todo>0&&eu(ei,ec,ea,eu),[2]}})})},5e3*Math.random())}var AQ=ea(36514);function AX(ei,eo){var ea,eu,ec,ed,ef=ei.user();return eo.previousId=null!==(ec=null!==(eu=null!==(ea=eo.previousId)&&void 0!==ea?ea:eo.from)&&void 0!==eu?eu:ef.id())&&void 0!==ec?ec:ef.anonymousId(),eo.userId=null!==(ed=eo.userId)&&void 0!==ed?ed:eo.to,delete eo.from,delete eo.to,eo}function A0(ei,eo,ea){window.addEventListener("pagehide",function(){eh.push.apply(eh,Array.from(eg)),eg.clear()});var eu,ec,ed,ef=null!==(eu=null==eo?void 0:eo.apiKey)&&void 0!==eu?eu:"",eh=ei.options.disableClientPersistence?new xb.Z(ei.queue.queue.maxAttempts,[]):new xy.$(ei.queue.queue.maxAttempts,"".concat(ef,":dest-Segment.io")),eg=new Set,em=!1,eb=null!==(ec=null==eo?void 0:eo.apiHost)&&void 0!==ec?ec:AQ.U,ew=null!==(ed=null==eo?void 0:eo.protocol)&&void 0!==ed?ed:"https",e_="".concat(ew,"://").concat(eb),eS=null==eo?void 0:eo.deliveryStrategy,eE=(null==eS?void 0:eS.strategy)==="batching"?AW(eb,eS.config):AK(null==eS?void 0:eS.config);function eA(eu){return(0,eO.mG)(this,void 0,void 0,function(){var ec,ed;return(0,eO.Jh)(this,function(ef){return(0,EQ.s)()?(eh.push(eu),AJ(em,eh,eT,AJ),[2,eu]):(eg.add(eu),ec=eu.event.type.charAt(0),ed=(0,AU.D)(eu.event).json(),"track"===eu.event.type&&delete ed.traits,"alias"===eu.event.type&&(ed=AX(ei,ed)),[2,eE.dispatch("".concat(e_,"/").concat(ec),AY(ei,ed,eo,ea)).then(function(){return eu}).catch(function(){return eh.pushWithBackoff(eu),AJ(em,eh,eT,AJ),eu}).finally(function(){eg.delete(eu)})])})})}var eT={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:eA,identify:eA,page:eA,alias:eA,group:eA,screen:eA};return eh.todo&&AJ(em,eh,eT,AJ),eT}var A1=function(ei){function eo(eo,ea){var eu=ei.call(this,"".concat(eo," ").concat(ea))||this;return eu.field=eo,eu}return(0,eO.ZT)(eo,ei),eo}(Error),A2="is not a string",A3="is not an object",A5="is nil";function A4(ei){var eo=".userId/anonymousId/previousId/groupId",ea=function(ei){var eo,ea,eu;return null!==(eu=null!==(ea=null!==(eo=ei.userId)&&void 0!==eo?eo:ei.anonymousId)&&void 0!==ea?ea:ei.groupId)&&void 0!==eu?eu:ei.previousId}(ei);if((0,EK.Gg)(ea)){if(!(0,EK.HD)(ea))throw new A1(eo,A2)}else throw new A1(eo,A5)}function A6(ei){if(!(0,EK.Gg)(ei))throw new A1("Event",A5);if("object"!=typeof ei)throw new A1("Event",A3)}function A8(ei){if(!(0,EK.HD)(ei.type))throw new A1(".type",A2)}function A9(ei){if(!(0,EK.HD)(ei.event))throw new A1(".event",A2)}function A7(ei){var eo,ea=ei.event;A6(ea),A8(ea),"track"===ea.type&&A9(ea);var eu=null!==(eo=ea.properties)&&void 0!==eo?eo:ea.traits;if("alias"!==ea.type&&!(0,EK.PO)(eu))throw new A1(".properties","is not an object");return A4(ea),ei}var Tn={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:A7,identify:A7,page:A7,alias:A7,group:A7,screen:A7},Ti=null!==(P5=(P4=(0,xY.R)()).__SEGMENT_INSPECTOR__)&&void 0!==P5?P5:P4.__SEGMENT_INSPECTOR__={},To=function(ei){var eo;return null===(eo=Ti.attach)||void 0===eo?void 0:eo.call(Ti,ei)},Ta=ea(42718);function Tu(ei,eo){var ea=null!=eo?eo:(0,EH.Vl)();return(0,EW.h)("".concat(ea,"/v1/projects/").concat(ei,"/settings")).then(function(ei){return ei.ok?ei.json():ei.text().then(function(ei){throw Error(ei)})}).catch(function(ei){throw console.error(ei.message),ei})}function Tc(ei){return"test"!==Eq().NODE_ENV&&Object.keys(ei.integrations).length>1}function Td(ei){var eo,ea,eu;return"test"!==Eq().NODE_ENV&&(null!==(eu=null===(ea=null===(eo=ei.middlewareSettings)||void 0===eo?void 0:eo.routingRules)||void 0===ea?void 0:ea.length)&&void 0!==eu?eu:0)>0}function Tf(ei,eo){Ar(ei,eo),xX(ei,eo)}function Tp(ei,eo){return(0,eO.mG)(this,void 0,void 0,function(){return(0,eO.Jh)(this,function(ea){switch(ea.label){case 0:return[4,xQ(ei,eo)];case 1:return ea.sent(),Ai(ei,eo),eo.clear(),[2]}})})}function Tg(ei,eo,eu,ec,ed,ef,eh){var eg,em,eb;return void 0===ef&&(ef=[]),(0,eO.mG)(this,void 0,void 0,function(){var ew,e_,eS,eE,eA,eT,ek,eC,eI,eP,eD,eN,eM,ej,eR=this;return(0,eO.Jh)(this,function(eL){switch(eL.label){case 0:if(ew=null==ef?void 0:ef.filter(function(ei){return"object"==typeof ei}),e_=null==ef?void 0:ef.filter(function(ei){return"function"==typeof ei&&"string"==typeof ei.pluginName}),!Td(eo))return[3,2];return[4,ea.e(4604).then(ea.bind(ea,37122)).then(function(ei){return ei.tsubMiddleware(eo.middlewareSettings.routingRules)})];case 1:return eE=eL.sent(),[3,3];case 2:eE=void 0,eL.label=3;case 3:if(eS=eE,!(Tc(eo)||eh.length>0))return[3,5];return[4,ea.e(9464).then(ea.bind(ea,92631)).then(function(ea){return ea.ajsDestinations(ei,eo,eu.integrations,ec,eS,eh)})];case 4:return eT=eL.sent(),[3,6];case 5:eT=[],eL.label=6;case 6:if(eA=eT,!eo.legacyVideoPluginsEnabled)return[3,8];return[4,ea.e(8150).then(ea.bind(ea,66352)).then(function(ei){return ei.loadLegacyVideoPlugins(eu)})];case 7:eL.sent(),eL.label=8;case 8:if(!(null===(eg=ec.plan)||void 0===eg?void 0:eg.track))return[3,10];return[4,ea.e(7493).then(ea.bind(ea,70527)).then(function(ei){var ea;return ei.schemaFilter(null===(ea=ec.plan)||void 0===ea?void 0:ea.track,eo)})];case 9:return eC=eL.sent(),[3,11];case 10:eC=void 0,eL.label=11;case 11:return ek=eC,eI=(0,Aw.o)(eo,ed),[4,AB(eo,eu.integrations,eI,ed.obfuscate,eS,e_).catch(function(){return[]})];case 12:if(eP=eL.sent(),eD=(0,eO.ev)((0,eO.ev)((0,eO.ev)([Tn,AP],ew,!0),eA,!0),eP,!0),ek&&eD.push(ek),(null===(em=ec.integrations)||void 0===em?void 0:em.All)===!1&&!ec.integrations["Segment.io"]||ec.integrations&&!1===ec.integrations["Segment.io"])return[3,14];return eM=(eN=eD).push,[4,A0(eu,eI["Segment.io"],eo.integrations)];case 13:eM.apply(eN,[eL.sent()]),eL.label=14;case 14:return[4,eu.register.apply(eu,eD)];case 15:if(ej=eL.sent(),!Object.entries(null!==(eb=eo.enabledMiddleware)&&void 0!==eb?eb:{}).some(function(ei){return ei[1]}))return[3,17];return[4,ea.e(9214).then(ea.bind(ea,14783)).then(function(ei){var ea=ei.remoteMiddlewares;return(0,eO.mG)(eR,void 0,void 0,function(){return(0,eO.Jh)(this,function(ei){switch(ei.label){case 0:return[4,ea(ej,eo,ed.obfuscate)];case 1:return[2,Promise.all(ei.sent().map(function(ei){return eu.addSourceMiddleware(ei)}))]}})})})];case 16:eL.sent(),eL.label=17;case 17:return[2,ej]}})})}function Tm(ei,eo,ea){var eu,ec,ed,ef,eh,eg,em;return void 0===eo&&(eo={}),(0,eO.mG)(this,void 0,void 0,function(){var eb,ew,e_,eS,eE,eA,eT,ek,eC,eI,eP;return(0,eO.Jh)(this,function(eD){switch(eD.label){case 0:if(!0===eo.disable)return[2,[new Ab,EX._.system()]];if(eo.globalAnalyticsKey&&(0,xZ.jV)(eo.globalAnalyticsKey),ei.cdnURL&&(0,EH.UH)(ei.cdnURL),!(null!==(eu=ei.cdnSettings)&&void 0!==eu))return[3,1];return ew=eu,[3,3];case 1:return[4,Tu(ei.writeKey,ei.cdnURL)];case 2:ew=eD.sent(),eD.label=3;case 3:if(eb=ew,eo.updateCDNSettings&&(eb=eo.updateCDNSettings(eb)),"function"!=typeof eo.disable)return[3,5];return[4,eo.disable(eb)];case 4:if(eD.sent())return[2,[new Ab,EX._.system()]];eD.label=5;case 5:return e_=null===(ed=null===(ec=eb.integrations["Segment.io"])||void 0===ec?void 0:ec.retryQueue)||void 0===ed||ed,eS=(0,eO.pi)({retryQueue:e_},eo),To(eE=new Av(ei,eS)),eA=null!==(ef=ei.plugins)&&void 0!==ef?ef:[],eT=null!==(eh=ei.classicIntegrations)&&void 0!==eh?eh:[],Ta.j.initRemoteMetrics(eb.metrics),Tf(eE,ea),[4,Tg(ei.writeKey,eb,eE,eS,eo,eA,eT)];case 6:if(ek=eD.sent(),eC=null!==(eg=window.location.search)&&void 0!==eg?eg:"",eI=null!==(em=window.location.hash)&&void 0!==em?em:"",!(eP=eC.length?eC:eI.replace(/(?=#).*(?=\?)/,"")).includes("ajs_"))return[3,8];return[4,eE.queryString(eP).catch(console.error)];case 7:eD.sent(),eD.label=8;case 8:return eE.initialized=!0,eE.emit("initialize",ei,eo),eo.initialPageview&&eE.page().catch(console.error),[4,Tp(eE,ea)];case 9:return eD.sent(),[2,[eE,ek]]}})})}var Ty=function(ei){function eo(){var eo=this,ea=A_(),eu=ea.promise,ec=ea.resolve;return(eo=ei.call(this,function(ei){return eu.then(function(eo){return Tm(eo[0],eo[1],ei)})})||this)._resolveLoadStart=function(ei,eo){return ec([ei,eo])},eo}return(0,eO.ZT)(eo,ei),eo.prototype.load=function(ei,eo){return void 0===eo&&(eo={}),this._resolveLoadStart(ei,eo),this},eo.load=function(ei,ea){return void 0===ea&&(ea={}),new eo().load(ei,ea)},eo.standalone=function(ei,ea){return eo.load({writeKey:ei},ea).then(function(ei){return ei[0]})},eo}(Ad),Tv=function(ei){(0,eb.useEffect)(ei,[])},Tb=function(ei){var eo=(0,eb.useRef)(ei);eo.current=ei,Tv(function(){return function(){return eo.current()}})};let Tw=ei=>{if(void 0===ei)return;let{userAgent:eo}=ei;if(/Windows/i.test(eo))return/Phone/.test(eo)||/WPDesktop/.test(eo)?"Windows Phone":"Windows";if(/iPad/.test(eo))return"iPadOS";if(/(iPhone|iPod)/.test(eo))return"iOS";if(/Android/.test(eo))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(eo))return"BlackBerry";if(/Mac/i.test(eo))return"macOS";if(/Linux/.test(eo))return"Linux";else if(/CrOS/.test(eo))return"Chrome OS"},T_=ei=>{let eo=(0,eb.useRef)(!0);eo.current&&ei(),eo.current=!1};var TS=ea(54367),TE=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let Tx=()=>Promise.resolve().then(ea.t.bind(ea,65096,23)).then(ei=>ei.default).then(ei=>new ei({allErrors:!0,verbose:!0}));function TA(ei,eo){return TE(this,void 0,void 0,function*(){let ea=yield Tx();return!ea.validate(eo,ei)&&ea.errors?ea.errors.map(ei=>{var eo,ea;return{propertyName:null!==(eo=ei.propertyName)&&void 0!==eo?eo:ei.instancePath,propertyValue:ei.data,message:null!==(ea=ei.message)&&void 0!==ea?ea:"Undefined violation for this property"}}):[]})}let TT=(ei,eo)=>{let ea=JSON.stringify({type:"Typewriter JSON Schema Validation Error",description:"You made an analytics call (".concat(ei,") using Typewriter that doesn't match the Tracking Plan spec."),errors:eo},void 0,2);if("test"===TI.environment)throw Error(ea);console.error(ea)},Tk=!1,TC=[],TO=()=>({environment:"development",language:void 0,deviceLanguage:void 0,segmentation:{channel:TS.z.Channel.Undefined,device:TS.z.Device.Undefined,product:TS.z.Product.Undefined,feature:TS.z.Feature.Undefined},onViolation:TT,options:{}}),TI=TO(),TP=()=>{let ei=(ei,eo)=>(console.info('Would send the event "'.concat(ei,'" with the properties: ').concat(JSON.stringify(eo),", but no analytics client was configured.")),"production"===TI.environment&&console.warn("No analytics client was configured. Did you call configure() on the generated Segment client?"),Promise.resolve());return{track:ei,page:(eo,ea,eu)=>ei("Page Viewed",eu),identify:(eo,ea)=>ei("Identify",ea)}},TD=TP(),TN=(ei,eo)=>{for(let ea of(!0===Tk&&console.warn("The trackingPlan was already configured. The latest config will override the previous config."),TD=ei,TI={...TI,...eo},Tk=!0,TC))ea();TC=[]},TM=()=>{Tk=!1,TC=[],TD=TP(),TI=TO()},Tj=async ei=>{var eo;let eu=await ea.e(7261).then(ea.t.bind(ea,37261,19)),ec=null===(eo=eu.rules.find(eo=>eo.jsonSchema.$id===ei.replace(/ /g,"_")))||void 0===eo?void 0:eo.jsonSchema;return{$id:null==ec?void 0:ec.$id,$schema:null==ec?void 0:ec.$schema,properties:null==ec?void 0:ec.properties,required:null==ec?void 0:ec.required,type:null==ec?void 0:ec.type}},TR=(ei,eo)=>{let ea=Object.entries(ei).find(ei=>{let[ea,eu]=ei;return eu===eo});if(!ea)throw Error('Cannot convert segmentation value to a string: "'.concat(eo,'" not found in "').concat(JSON.stringify(ei),'"'));return ea[0]},TL=ei=>{let{device:eo,product:ea,feature:eu,channel:ec,...ed}=ei,ef=ei=>"function"==typeof ei?ei():ei;return{...ed,device:TR(TS.z.Device,ef(eo)),product:TR(TS.z.Product,ef(ea)),feature:TR(TS.z.Feature,ef(eu)),channel:TR(TS.z.Channel,ef(ec))}},TF=ei=>({...ei,context:{...ei.context||{},analyticsClient:{name:"@frontend/analytics-segment",version:"1.4.2"}}}),TB=async(ei,eo,ea)=>{if(!Tk){TC.push(()=>TB(ei,eo,{...ea,timestamp:new Date}));return}let eu=TL({language:TI.language,deviceLanguage:TI.deviceLanguage,...TI.segmentation,...eo});if("test"===TI.environment||"development"===TI.environment){let eo=await Tj(ei),ea=await TA(eu,eo);if(ea.length>0){var ec;return null===(ec=TI.onViolation)||void 0===ec?void 0:ec.call(TI,ei,ea)}}return"Page Viewed"===ei?TD.page(void 0,void 0,eu,TF({...TI.options,...ea})):TD.track(ei,eu,TF({...TI.options,...ea}))};var TU={configure:TN,resetConfiguration:TM,identify:function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ea=arguments.length>2?arguments[2]:void 0;return TD.identify(ei,eo,ea)},aPIErrorResponse:(ei,eo)=>TB("API Error Response",ei,eo),nFTAPIAttempt:(ei,eo)=>TB("NFT API Attempt",ei,eo),nFTAPIError:(ei,eo)=>TB("NFT API Error",ei,eo),nFTAPISuccess:(ei,eo)=>TB("NFT API Success",ei,eo),nFTAPITiming:(ei,eo)=>TB("NFT API Timing",ei,eo),nFTCollectionSearched:(ei,eo)=>TB("NFT Collection Searched",ei,eo),nFTExplorePageCarouselItemBuyNowClicked:(ei,eo)=>TB("NFT Explore Page Carousel Item Buy Now Clicked",ei,eo),nFTExplorePageCarouselItemClicked:(ei,eo)=>TB("NFT Explore Page Carousel Item Clicked",ei,eo),nFTExplorePageCarouselItemMakeOfferClicked:(ei,eo)=>TB("NFT Explore Page Carousel Item Make Offer Clicked",ei,eo),nFTExplorePageCarouselPaginationClicked:(ei,eo)=>TB("NFT Explore Page Carousel Pagination Clicked",ei,eo),nFTExplorePageCarouselViewAllClicked:(ei,eo)=>TB("NFT Explore Page Carousel View All Clicked",ei,eo),nFTExplorePageHeroCarouselItemCTAClicked:(ei,eo)=>TB("NFT Explore Page Hero Carousel Item CTA Clicked",ei,eo),nFTExplorePageHeroCarouselPaginationClicked:(ei,eo)=>TB("NFT Explore Page Hero Carousel Pagination Clicked",ei,eo),nFTExplorePageHeroSearch:(ei,eo)=>TB("NFT Explore Page Hero Search",ei,eo),nFTExplorePageSectionError:(ei,eo)=>TB("NFT Explore Page Section Error",ei,eo),nFTExplorePageSectionViewed:(ei,eo)=>TB("NFT Explore Page Section Viewed",ei,eo),nFTPageError:(ei,eo)=>TB("NFT Page Error",ei,eo),nFTPageImpression:(ei,eo)=>TB("NFT Page Impression",ei,eo),nFTSeachPageCollectionClick:(ei,eo)=>TB("NFT Seach Page Collection Click",ei,eo),nFTSearchPageCollectionTabClick:(ei,eo)=>TB("NFT Search Page Collection Tab Click",ei,eo),nFTSearchPageCreatorClick:(ei,eo)=>TB("NFT Search Page Creator Click",ei,eo),nFTSearchPageCreatorTabClick:(ei,eo)=>TB("NFT Search Page Creator Tab Click",ei,eo),nFTSearchPageListingClick:(ei,eo)=>TB("NFT Search Page Listing Click",ei,eo),nFTSearchPageListingTabClick:(ei,eo)=>TB("NFT Search Page Listing Tab Click",ei,eo),nFTTermsofServicesAccepted:(ei,eo)=>TB("NFT Terms of Services Accepted",ei,eo),nFTTermsofServicesDialogOpen:(ei,eo)=>TB("NFT Terms of Services Dialog Open",ei,eo),nftAcceptOffer:(ei,eo)=>TB("Nft Accept Offer",ei,eo),nftBuyNow:(ei,eo)=>TB("Nft Buy Now",ei,eo),nftCancelOffer:(ei,eo)=>TB("Nft Cancel Offer",ei,eo),nftCounterOffer:(ei,eo)=>TB("Nft Counter Offer",ei,eo),nftListingCollectionClick:(ei,eo)=>TB("Nft Listing Collection Click",ei,eo),nftListingCreatorClick:(ei,eo)=>TB("Nft Listing Creator Click",ei,eo),nftListingHistoryTabClick:(ei,eo)=>TB("Nft Listing History Tab Click",ei,eo),nftListingImageClick:(ei,eo)=>TB("Nft Listing Image Click",ei,eo),nftListingList:(ei,eo)=>TB("Nft Listing List",ei,eo),nftListingOffersTabClick:(ei,eo)=>TB("Nft Listing Offers Tab Click",ei,eo),nftListingWithdraw:(ei,eo)=>TB("Nft Listing Withdraw",ei,eo),nftMakeOffer:(ei,eo)=>TB("Nft Make Offer",ei,eo),nftWeb3AddWallet:(ei,eo)=>TB("Nft Web3 Add Wallet",ei,eo),nftWeb3RemoveWallet:(ei,eo)=>TB("Nft Web3 Remove Wallet",ei,eo),pageViewed:(ei,eo)=>TB("Page Viewed",ei,eo)};let Tz={"NFT API Attempt":"nftApiAttempt","NFT API Error":"nftApiError","NFT API Success":"nftApiSuccess","NFT API Timing":"nftApiTiming","NFT Collection Searched":"nftCollectionSearched","NFT Explore Page Carousel Item Buy Now Clicked":"nftExplorePageCarouselItemBuyNowClicked","NFT Explore Page Carousel Item Clicked":"nftExplorePageCarouselItemClicked","NFT Explore Page Carousel Item Make Offer Clicked":"nftExplorePageCarouselItemMakeOfferClicked","NFT Explore Page Carousel Pagination Clicked":"nftExplorePageCarouselPaginationClicked","NFT Explore Page Carousel View All Clicked":"nftExplorePageCarouselViewAllClicked","NFT Explore Page Hero Carousel Item CTA Clicked":"nftExplorePageHeroCarouselItemCtaClicked","NFT Explore Page Hero Carousel Pagination Clicked":"nftExplorePageHeroCarouselPaginationClicked","NFT Explore Page Hero Search":"nftExplorePageHeroSearch","NFT Explore Page Section Error":"nftExplorePageSectionError","NFT Explore Page Section Viewed":"nftExplorePageSectionViewed","NFT Page Error":"nftPageError","NFT Page Impression":"nftPageImpression","NFT Seach Page Collection Click":"nftSeachPageCollectionClick","NFT Search Page Collection Tab Click":"nftSearchPageCollectionTabClick","NFT Search Page Creator Click":"nftSearchPageCreatorClick","NFT Search Page Creator Tab Click":"nftSearchPageCreatorTabClick","NFT Search Page Listing Click":"nftSearchPageListingClick","NFT Search Page Listing Tab Click":"nftSearchPageListingTabClick","NFT Terms of Services Accepted":"nftTermsOfServicesAccepted","NFT Terms of Services Dialog Open":"nftTermsOfServicesDialogOpen","Nft Accept Offer":"nftAcceptOffer","Nft Buy Now":"nftBuyNow","Nft Cancel Offer":"nftCancelOffer","Nft Counter Offer":"nftCounterOffer","Nft Listing Collection Click":"nftListingCollectionClick","Nft Listing Creator Click":"nftListingCreatorClick","Nft Listing History Tab Click":"nftListingHistoryTabClick","Nft Listing Image Click":"nftListingImageClick","Nft Listing List":"nftListingList","Nft Listing Offers Tab Click":"nftListingOffersTabClick","Nft Listing Withdraw":"nftListingWithdraw","Nft Make Offer":"nftMakeOffer","Nft Web3 Add Wallet":"nftWeb3AddWallet","Nft Web3 Remove Wallet":"nftWeb3RemoveWallet"};var TG=ea(65096),TV=ea.n(TG);class Tq{static toNftApiAttempt(ei){return JSON.parse(ei)}static nftApiAttemptToJson(ei){return JSON.stringify(ei)}static toNftApiError(ei){return JSON.parse(ei)}static nftApiErrorToJson(ei){return JSON.stringify(ei)}static toNftApiSuccess(ei){return JSON.parse(ei)}static nftApiSuccessToJson(ei){return JSON.stringify(ei)}static toNftApiTiming(ei){return JSON.parse(ei)}static nftApiTimingToJson(ei){return JSON.stringify(ei)}static toNftCollectionSearched(ei){return JSON.parse(ei)}static nftCollectionSearchedToJson(ei){return JSON.stringify(ei)}static toNftExplorePageCarouselItemBuyNowClicked(ei){return JSON.parse(ei)}static nftExplorePageCarouselItemBuyNowClickedToJson(ei){return JSON.stringify(ei)}static toNftExplorePageCarouselItemClicked(ei){return JSON.parse(ei)}static nftExplorePageCarouselItemClickedToJson(ei){return JSON.stringify(ei)}static toNftExplorePageCarouselItemMakeOfferClicked(ei){return JSON.parse(ei)}static nftExplorePageCarouselItemMakeOfferClickedToJson(ei){return JSON.stringify(ei)}static toNftExplorePageCarouselPaginationClicked(ei){return JSON.parse(ei)}static nftExplorePageCarouselPaginationClickedToJson(ei){return JSON.stringify(ei)}static toNftExplorePageCarouselViewAllClicked(ei){return JSON.parse(ei)}static nftExplorePageCarouselViewAllClickedToJson(ei){return JSON.stringify(ei)}static toNftExplorePageHeroCarouselItemCtaClicked(ei){return JSON.parse(ei)}static nftExplorePageHeroCarouselItemCtaClickedToJson(ei){return JSON.stringify(ei)}static toNftExplorePageHeroCarouselPaginationClicked(ei){return JSON.parse(ei)}static nftExplorePageHeroCarouselPaginationClickedToJson(ei){return JSON.stringify(ei)}static toNftExplorePageHeroSearch(ei){return JSON.parse(ei)}static nftExplorePageHeroSearchToJson(ei){return JSON.stringify(ei)}static toNftExplorePageSectionError(ei){return JSON.parse(ei)}static nftExplorePageSectionErrorToJson(ei){return JSON.stringify(ei)}static toNftExplorePageSectionViewed(ei){return JSON.parse(ei)}static nftExplorePageSectionViewedToJson(ei){return JSON.stringify(ei)}static toNftPageError(ei){return JSON.parse(ei)}static nftPageErrorToJson(ei){return JSON.stringify(ei)}static toCause(ei){return JSON.parse(ei)}static causeToJson(ei){return JSON.stringify(ei)}static toNftPageImpression(ei){return JSON.parse(ei)}static nftPageImpressionToJson(ei){return JSON.stringify(ei)}static toNftSeachPageCollectionClick(ei){return JSON.parse(ei)}static nftSeachPageCollectionClickToJson(ei){return JSON.stringify(ei)}static toNftSearchPageCollectionTabClick(ei){return JSON.parse(ei)}static nftSearchPageCollectionTabClickToJson(ei){return JSON.stringify(ei)}static toNftSearchPageCreatorClick(ei){return JSON.parse(ei)}static nftSearchPageCreatorClickToJson(ei){return JSON.stringify(ei)}static toNftSearchPageCreatorTabClick(ei){return JSON.parse(ei)}static nftSearchPageCreatorTabClickToJson(ei){return JSON.stringify(ei)}static toNftSearchPageListingClick(ei){return JSON.parse(ei)}static nftSearchPageListingClickToJson(ei){return JSON.stringify(ei)}static toNftSearchPageListingTabClick(ei){return JSON.parse(ei)}static nftSearchPageListingTabClickToJson(ei){return JSON.stringify(ei)}static toNftTermsOfServicesAccepted(ei){return JSON.parse(ei)}static nftTermsOfServicesAcceptedToJson(ei){return JSON.stringify(ei)}static toNftTermsOfServicesDialogOpen(ei){return JSON.parse(ei)}static nftTermsOfServicesDialogOpenToJson(ei){return JSON.stringify(ei)}static toNftAcceptOffer(ei){return JSON.parse(ei)}static nftAcceptOfferToJson(ei){return JSON.stringify(ei)}static toNftBuyNow(ei){return JSON.parse(ei)}static nftBuyNowToJson(ei){return JSON.stringify(ei)}static toNftCancelOffer(ei){return JSON.parse(ei)}static nftCancelOfferToJson(ei){return JSON.stringify(ei)}static toNftCounterOffer(ei){return JSON.parse(ei)}static nftCounterOfferToJson(ei){return JSON.stringify(ei)}static toNftListingCollectionClick(ei){return JSON.parse(ei)}static nftListingCollectionClickToJson(ei){return JSON.stringify(ei)}static toNftListingCreatorClick(ei){return JSON.parse(ei)}static nftListingCreatorClickToJson(ei){return JSON.stringify(ei)}static toNftListingHistoryTabClick(ei){return JSON.parse(ei)}static nftListingHistoryTabClickToJson(ei){return JSON.stringify(ei)}static toNftListingImageClick(ei){return JSON.parse(ei)}static nftListingImageClickToJson(ei){return JSON.stringify(ei)}static toNftListingList(ei){return JSON.parse(ei)}static nftListingListToJson(ei){return JSON.stringify(ei)}static toNftListingOffersTabClick(ei){return JSON.parse(ei)}static nftListingOffersTabClickToJson(ei){return JSON.stringify(ei)}static toNftListingWithdraw(ei){return JSON.parse(ei)}static nftListingWithdrawToJson(ei){return JSON.stringify(ei)}static toNftMakeOffer(ei){return JSON.parse(ei)}static nftMakeOfferToJson(ei){return JSON.stringify(ei)}static toNftWeb3AddWallet(ei){return JSON.parse(ei)}static nftWeb3AddWalletToJson(ei){return JSON.stringify(ei)}static toNftWeb3RemoveWallet(ei){return JSON.parse(ei)}static nftWeb3RemoveWalletToJson(ei){return JSON.stringify(ei)}}let TH=(ei,eo)=>{let ea=JSON.stringify({type:"Typewriter JSON Schema Validation Error",description:"You made an analytics call (".concat(ei.event,") using Typewriter that doesn't match the ")+"Tracking Plan spec.",errors:eo},void 0,2);console.warn(ea)},TW=TH,TK=()=>window.analytics;function TY(ei){TK=ei.analytics?()=>ei.analytics||window.analytics:TK,TW=ei.onViolation||TW}function TZ(ei,eo){let ea=new(TV())({allErrors:!0,verbose:!0});!ea.validate(eo,ei)&&ea.errors&&TW(ei,ea.errors)}function T$(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...ei,context:{...ei.context||{},typewriter:{language:"typescript",version:"8.1.0"}}}}function TJ(ei,eo,ea){let eu={$id:"NFT_API_Attempt",$schema:"http://json-schema.org/draft-07/schema#",properties:{operationName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT API Attempt",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function TQ(ei,eo,ea){let eu={$id:"NFT_API_Error",$schema:"http://json-schema.org/draft-07/schema#",properties:{operationName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT API Error",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function TX(ei,eo,ea){let eu={$id:"NFT_API_Success",$schema:"http://json-schema.org/draft-07/schema#",properties:{operationName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT API Success",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function T0(ei,eo,ea){let eu={$id:"NFT_API_Timing",$schema:"http://json-schema.org/draft-07/schema#",properties:{duration:{type:["integer"]},operationName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT API Timing",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function T5(ei,eo,ea){let eu={$id:"NFT_Collection_Searched",$schema:"http://json-schema.org/draft-07/schema#",properties:{source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Collection Searched",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function T4(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Carousel_Item_Buy_Now_Clicked",$schema:"http://json-schema.org/draft-07/schema#",properties:{assetId:{type:["string"]},assetName:{type:["string"]},assetType:{type:["string"]},carouselName:{type:["string"]},carouselType:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Carousel Item Buy Now Clicked",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function T6(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Carousel_Item_Clicked",$schema:"http://json-schema.org/draft-07/schema#",properties:{assetId:{type:["string"]},assetName:{type:["string"]},assetType:{type:["string"]},carouselName:{type:["string"]},carouselType:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Carousel Item Clicked",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function T8(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Carousel_Item_Make_Offer_Clicked",$schema:"http://json-schema.org/draft-07/schema#",properties:{assetId:{type:["string"]},assetName:{type:["string"]},assetType:{type:["string"]},carouselName:{type:["string"]},carouselType:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Carousel Item Make Offer Clicked",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function T9(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Carousel_Pagination_Clicked",$schema:"http://json-schema.org/draft-07/schema#",properties:{carouselName:{type:["string"]},carouselType:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Carousel Pagination Clicked",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function T7(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Carousel_View_All_Clicked",$schema:"http://json-schema.org/draft-07/schema#",properties:{carouselName:{type:["string"]},carouselType:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Carousel View All Clicked",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kr(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Hero_Carousel_Item_CTA_Clicked",$schema:"http://json-schema.org/draft-07/schema#",properties:{collectionId:{type:["string"]},pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Hero Carousel Item CTA Clicked",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function ko(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Hero_Carousel_Pagination_Clicked",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Hero Carousel Pagination Clicked",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kl(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Hero_Search",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Hero Search",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function ku(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Section_Error",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},sectionName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Section Error",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kc(ei,eo,ea){let eu={$id:"NFT_Explore_Page_Section_Viewed",$schema:"http://json-schema.org/draft-07/schema#",properties:{sectionName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Explore Page Section Viewed",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kd(ei,eo,ea){let eu={$id:"NFT_Page_Error",$schema:"http://json-schema.org/draft-07/schema#",properties:{cause:{properties:{name:{type:["string"]},stack:{type:["string"]}},type:"object"},column:{type:["integer"]},isMobile:{type:["boolean"]},line:{type:["integer"]},pageName:{type:["string"]},source:{type:["string"]},sourceURL:{type:["string"]},stack:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Page Error",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kh(ei,eo,ea){let eu={$id:"NFT_Page_Impression",$schema:"http://json-schema.org/draft-07/schema#",properties:{isMobile:{type:["boolean"]},pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Page Impression",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kp(ei,eo,ea){let eu={$id:"NFT_Seach_Page_Collection_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Seach Page Collection Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kg(ei,eo,ea){let eu={$id:"NFT_Search_Page_Collection_Tab_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Search Page Collection Tab Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function km(ei,eo,ea){let eu={$id:"NFT_Search_Page_Creator_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Search Page Creator Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function ky(ei,eo,ea){let eu={$id:"NFT_Search_Page_Creator_Tab_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Search Page Creator Tab Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kv(ei,eo,ea){let eu={$id:"NFT_Search_Page_Listing_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Search Page Listing Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kw(ei,eo,ea){let eu={$id:"NFT_Search_Page_Listing_Tab_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Search Page Listing Tab Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function k_(ei,eo,ea){let eu={$id:"NFT_Terms_of_Services_Accepted",$schema:"http://json-schema.org/draft-07/schema#",properties:{source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Terms of Services Accepted",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kS(ei,eo,ea){let eu={$id:"NFT_Terms_of_Services_Dialog_Open",$schema:"http://json-schema.org/draft-07/schema#",properties:{source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("NFT Terms of Services Dialog Open",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kE(ei,eo,ea){let eu={$id:"Nft_Accept_Offer",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Accept Offer",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kx(ei,eo,ea){let eu={$id:"Nft_Buy_Now",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Buy Now",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kA(ei,eo,ea){let eu={$id:"Nft_Cancel_Offer",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Cancel Offer",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kT(ei,eo,ea){let eu={$id:"Nft_Counter_Offer",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Counter Offer",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kk(ei,eo,ea){let eu={$id:"Nft_Listing_Collection_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Listing Collection Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kC(ei,eo,ea){let eu={$id:"Nft_Listing_Creator_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Listing Creator Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kO(ei,eo,ea){let eu={$id:"Nft_Listing_History_Tab_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Listing History Tab Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kI(ei,eo,ea){let eu={$id:"Nft_Listing_Image_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Listing Image Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kP(ei,eo,ea){let eu={$id:"Nft_Listing_List",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Listing List",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kD(ei,eo,ea){let eu={$id:"Nft_Listing_Offers_Tab_Click",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Listing Offers Tab Click",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kN(ei,eo,ea){let eu={$id:"Nft_Listing_Withdraw",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Listing Withdraw",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kM(ei,eo,ea){let eu={$id:"Nft_Make_Offer",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Make Offer",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kj(ei,eo,ea){let eu={$id:"Nft_Web3_Add_Wallet",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Web3 Add Wallet",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}function kR(ei,eo,ea){let eu={$id:"Nft_Web3_Remove_Wallet",$schema:"http://json-schema.org/draft-07/schema#",properties:{pageName:{type:["string"]},source:{type:["string"]}},type:"object"};TZ(ei,eu);let ec=TK();ec&&ec.track("Nft Web3 Remove Wallet",ei||{},{...eo,context:{...(null==eo?void 0:eo.context)||{},typewriter:{language:"typescript",version:""}}},ea)}let kL={setTypewriterOptions:TY,nftApiAttempt:TJ,nftApiError:TQ,nftApiSuccess:TX,nftApiTiming:T0,nftCollectionSearched:T5,nftExplorePageCarouselItemBuyNowClicked:T4,nftExplorePageCarouselItemClicked:T6,nftExplorePageCarouselItemMakeOfferClicked:T8,nftExplorePageCarouselPaginationClicked:T9,nftExplorePageCarouselViewAllClicked:T7,nftExplorePageHeroCarouselItemCtaClicked:kr,nftExplorePageHeroCarouselPaginationClicked:ko,nftExplorePageHeroSearch:kl,nftExplorePageSectionError:ku,nftExplorePageSectionViewed:kc,nftPageError:kd,nftPageImpression:kh,nftSeachPageCollectionClick:kp,nftSearchPageCollectionTabClick:kg,nftSearchPageCreatorClick:km,nftSearchPageCreatorTabClick:ky,nftSearchPageListingClick:kv,nftSearchPageListingTabClick:kw,nftTermsOfServicesAccepted:k_,nftTermsOfServicesDialogOpen:kS,nftAcceptOffer:kE,nftBuyNow:kx,nftCancelOffer:kA,nftCounterOffer:kT,nftListingCollectionClick:kk,nftListingCreatorClick:kC,nftListingHistoryTabClick:kO,nftListingImageClick:kI,nftListingList:kP,nftListingOffersTabClick:kD,nftListingWithdraw:kN,nftMakeOffer:kM,nftWeb3AddWallet:kj,nftWeb3RemoveWallet:kR};var kF=new Proxy(kL,{get:(ei,eo)=>"string"==typeof eo&&Object.prototype.hasOwnProperty.call(ei,eo)?ei[eo]:()=>{console.warn("⚠️ You made an analytics call (".concat(String(eo),") that can't be found. Either:\n a) Re-generate your typewriter client: `npx typewriter`\n b) Add it to your Tracking Plan: https://app.segment.com/segment-oscb/protocols/tracking-plans/rs_1zTHJU9fd5mt7cndWnd4PgJbMCE"));let ei=TK();ei&&ei.track("Unknown Analytics Call Fired",{method:eo},T$())}}),kB=ea(29899),kU=ea(77599),kz=ea(95423),kG=ea(21779);let kV=()=>{var ei,eo,ea;let{sessionDataState:eu}=(0,EI.k)(),ec=eu===kU.T.AVAILABLE,{data:ed}=(0,kG.jq)(),{data:ef}=(0,kG.ie)({},ec),{data:eh}=(0,kG.Ff)({},ec),eg=null!==(ei=(0,kG.m8)({},ec))&&void 0!==ei?ei:void 0,{hasFunded:em,accountBalances:ew}=(0,kG.fk)(void 0,void 0,{disabled:!ec}),e_=null!==(ea=null!==(eo=null==eh?void 0:eh.country)&&void 0!==eo?eo:null==ef?void 0:ef.country)&&void 0!==ea?ea:null==ed?void 0:ed.cc,eS=e_?(0,Ez.PN)({country:e_}):void 0,eE=null==ef?void 0:ef.tier,eA=eE&&eS?(0,Ez.hm)(eE,eS):void 0,eT=ew?em(ew):void 0,ek=[ed,...ec?[ef,eh]:[]].every(Boolean);return(0,eb.useMemo)(()=>{if(ek){var ei;return{tierId:eE,tier:eA,country:e_,language:eg,isFunded:eT,krakenId:null!==(ei=null==ef?void 0:ef.analytics_cookie)&&void 0!==ei?ei:void 0,verificationFlags:null==ef?void 0:ef.verification_flags,isTestUser:(null==ef?void 0:ef.email)&&(null==ef?void 0:ef.username)?(0,kz.K)(ef.email,ef.username):void 0,gslEnabled:null==ef?void 0:ef.settings_lock,twofaEnabled:(null==ef?void 0:ef.has_tfa)===1,userType:null==ef?void 0:ef.usertype}}},[ek,eE,eA,e_,eg,eT,null==ef?void 0:ef.analytics_cookie,null==ef?void 0:ef.verification_flags,null==ef?void 0:ef.email,null==ef?void 0:ef.username,null==ef?void 0:ef.settings_lock,null==ef?void 0:ef.has_tfa,null==ef?void 0:ef.usertype])},kq=(ei,eo)=>{let ea=new URLSearchParams(ei);return ea.forEach((ei,eu)=>{eo.includes(eu.toLowerCase())&&ea.set(eu,"****")}),ea},kH=(ei,eo)=>{let ea=new URL(ei);return ea.search=`?${kq(ea.search,eo).toString()}`,{name:ea.pathname,search:ea.search,url:ea.toString()}},kW=ei=>{let{canTrack:eo=!1}=ei,ea=(0,eA.useRouter)();return(0,eb.useEffect)(()=>{if(!eo)return;let ei=()=>{let ei=kH(window.location.href,["lid","email","key","e-mail"]);TU.pageViewed({...ei,referrer:document.referrer})};return ei(),ea.events.on("routeChangeComplete",ei),()=>{ea.events.off("routeChangeComplete",ei)}},[ea.events,eo]),null},kK=ei=>Ty.load({writeKey:ei},{integrations:{"Segment.io":{deliveryStrategy:{strategy:"batching",config:{size:10,timeout:5e3}}}}}),kY=ei=>{let eo={segment:{...ei.params}},ea=(0,Ez.MH)(window.location.hash,["order-modal-context"]),eu=(0,dw.uB)(window.location.href,["lid","email","key","e-mail"]),ec={...eu,search:ea};return"PageView"===ei.eventType?{properties:eo,context:ec}:{eventName:ei.eventName,properties:eo,context:ec}},kZ=(ei,eo,ea,eu)=>ec=>{switch(ec.eventType){case"RESET":ei.reset();return;case"PageView":{let{context:eo}=kY(ec);null==ei||ei.viewPage(eo.page,eo);return}case"System":{let{eventName:ea,context:eu}=kY(ec);if("Identify"===ea){var ed;null==ei||ei.identify(null!==(ed=null==eo?void 0:eo.krakenId)&&void 0!==ed?ed:null,ec.params,eu);return}}default:{let{eventName:eo,properties:ed,context:ef}=kY(ec);if(eo){let eh=ea?ea[eo]:null;if(eh&&eu){eu[eh]({...ec.params,mapped:!0});return}ei.track(eo,ed,ef)}return}}},k$=(0,eb.createContext)({canTrack:!1}),kJ=()=>{let ei=(0,eb.useContext)(k$);if(void 0===ei)throw Error("useAnalyticsContext must be used within an AnalyticsProvider");return{canTrack:ei.canTrack,traits:ei.traits}},kQ=ei=>{let{children:eo,language:ea}=ei,{analytics:eu}=(0,dw.Hs)(),[ec,ed]=(0,eb.useState)(),[ef,eh]=(0,eb.useState)(!1),ew=kV(),e_=(0,kB.C)(),eS=(0,eb.useMemo)(()=>ec?kZ(ec,ew,Tz,eg):void 0,[ec,ew]);TY({onViolation:(ei,eo)=>{}});let{addToQueue:eE}=(0,dw.KK)(eS),eA=(0,eb.useCallback)(ei=>eE(ei.payload),[eE]);return T_(()=>eu.subscribe(eA)),Tb(()=>eu.unsubscribe(eA)),(0,eb.useEffect)(()=>{e_.seg_nf_key&&(0,Ez.IH)({segment:e_.seg_nf_key,sift:"9d5e5752b1"}).then(ei=>{if(ew){var eo;let{verificationFlags:ea,tier:eu,...ec}=ew;ei.identify(null!==(eo=ew.krakenId)&&void 0!==eo?eo:null,{...ec,...ea,...eu?{tierHistory:[eu]}:{}}),ed(ei),eh(!0)}})},[e_.seg_nf_key,ew]),(0,eb.useEffect)(()=>{e_.seg_sp_key&&kK(e_.seg_sp_key).then(ei=>TU.configure(ei[0],{environment:"production",language:ea,deviceLanguage:navigator.language,segmentation:(0,Ez.yU)(),options:{context:{os:{name:Tw(window.navigator)},screen:{width:window.innerWidth,height:window.innerHeight}}}}))},[ea,e_.seg_sp_key]),(0,eb.useEffect)(()=>{e_&&ek.v("hosts",{websockets:e_.ws,externalApi:e_.api,internalApi:e_.internalApi,payWithMyBank:e_.pwmb})},[e_]),(0,eb.useEffect)(()=>{if(ew){let{krakenId:ei,...eo}=ew;ei&&ek.av({id:ei,...eo}),ek.YA("country",ew.country)}},[ew]),(0,em.jsxs)(k$.Provider,{value:{analytics:ec,canTrack:ef,traits:ew},children:[(0,em.jsx)(kW,{canTrack:ef}),eo]})};var kX=ea(36968),k0=ea.n(kX),k3=ea(9996),k5=ea.n(k3);let k4="kweb-request",k6="default",k8=globalThis,k9=Error(`globalThis is not defined when trying to get ${k4} global property`),k7=()=>{var ei,eo;let ea=k6;if(!k8)throw k9;return null===(eo=null===(ei=k8[k4])||void 0===ei?void 0:ei[ea].configs)||void 0===eo?void 0:eo.v1},Ci=ei=>{let{config:eo}=ei,ea=k6;if(!k8)throw k9;k0()(k8,[k4,ea,"configs","v1"],eo)},Co=ei=>{let{config:eo}=ei,ea=k6;if(!k8)throw k9;let eu=k7();if(!eu)throw Error("No Kweb request config exists to update");k0()(k8,[k4,ea,"configs","v1"],k5()(eu,eo))};class Ca{constructor(){this.listeners=new Set}add(ei){return this.listeners.add(ei),()=>this.delete(ei)}delete(ei){return this.listeners.delete(ei)}clear(){this.listeners.clear()}dispatch(...ei){this.listeners.forEach(eo=>eo(...ei))}}let Cu=ei=>{var eo,ea,eu;let{listener:ec}=ei,ed=k6;if(!k8)throw k9;let ef=null===(eu=null===(ea=null===(eo=k8[k4])||void 0===eo?void 0:eo[ed])||void 0===ea?void 0:ea.listeners)||void 0===eu?void 0:eu.request;if(ef)return ef.add(ec);let eh=new Ca,eg=eh.add(ec);return k0()(k8,[k4,ed,"listeners","request"],eh),eg},Cc="KwebRequestError";function Cd(ei){return"object"==typeof ei&&!!ei&&"identifier"in ei&&ei.identifier===Cc&&"message"in ei&&"string"==typeof ei.message&&"response"in ei&&"request"in ei&&"data"in ei&&"kwebData"in ei&&"kwebErrors"in ei}var Cf=ea(50361),Cp=ea.n(Cf),Cg=ea(80129),Cm=ea.n(Cg);let Cy=ei=>ei.replace(/\/+$/,""),Cv=ei=>ei.replace(/^\/+/,""),Cb=ei=>{let eo=Array.isArray(ei)?ei:[ei];return eo.reduce((ei,eo)=>`${ei}/${Cy(Cv(eo))}`,"")},Cw=ei=>{let eo="";if(ei.domain&&(eo=Cy(ei.domain)),ei.path&&(eo=`${eo}/${Cv(Cb(ei.path))}`),ei.query){let ea=Cm().stringify(ei.query,{arrayFormat:"indices",encode:!1});ea&&(eo=`${eo}?${ea}`)}return Cy(eo)},C_=(ei,eo={})=>{let{domain:ea,query:eu}=eo;return Cw({domain:ea,path:["/api/internal",ei],query:eu})},CS=(ei,...eo)=>{var ea;let[eu,ec]=eo;return C_(eu,Object.assign(Object.assign({},ec),{domain:null!==(ea=null==ec?void 0:ec.domain)&&void 0!==ea?ea:ei.domain}))};var CE=ea(14176),Cx=ea.n(CE);!function(ei){ei.GET="get",ei.POST="post",ei.PUT="put",ei.PATCH="patch",ei.DELETE="delete"}(P6||(P6={}));var CA=ea(68630),CT=ea.n(CA);function Ck(ei){return CT()(ei)}!function(ei){ei.FormData="multipart/form-data",ei.Json="application/json",ei.Plain="text/plain",ei.XWwwFormUrlencoded="application/x-www-form-urlencoded"}(P8||(P8={}));let CC=(ei,eo)=>{if(eo===P8.Json)return!0;try{return JSON.parse(ei),!0}catch(ei){return!1}},CO=(ei,eo)=>{if(null==ei)return{body:ei,contentType:void 0};if(eo===P8.FormData){let eo=new FormData;return Object.entries(ei).forEach(([ei,ea])=>eo.append(ei,ea)),{body:eo,contentType:void 0}}return Ck(ei)?{body:JSON.stringify(ei),contentType:P8.Json}:"string"==typeof ei?{body:ei,contentType:CC(ei,eo)?P8.Json:void 0}:{body:ei,contentType:void 0}},CI=ei=>{let{channel:eo,device:ea,feature:eu,product:ec}=ei;return{channel:"function"==typeof eo?eo():eo,device:"function"==typeof ea?ea():ea,feature:"function"==typeof eu?eu():eu,product:"function"==typeof ec?ec():ec}},CP=ei=>{let{channel:eo,device:ea,product:eu,feature:ec}=CI(ei),ed=eo;return Number(ed+=(ea<<8)+(eu<<16)+16777216*ec).toString(32)};class CD{constructor(ei){this.removeUndefinedHeaders=ei=>Object.entries(ei).reduce((ei,[eo,ea])=>(void 0!==ea&&(ei[eo]=ea),ei),{}),this.get=()=>this.headers,this.add=(ei,eo)=>{void 0!==eo&&(this.headers[ei]=eo)},this.headers=this.removeUndefinedHeaders(ei)}}var CN=ea(57557),CM=ea.n(CN);!function(ei){ei.BadRequest="Bad Request",ei.Unauthorized="Unauthorized",ei.PaymentRequired="Payment Required",ei.Forbidden="Forbidden",ei.NotFound="Not Found",ei.MethodNotAllowed="Method Not Allowed",ei.NotAcceptable="Not Acceptable",ei.ProxyAuthenticationRequired="Proxy Authentication Required",ei.RequestTimeout="Request Timeout",ei.Conflict="Conflict",ei.Gone="Gone",ei.LengthRequired="Length Required",ei.PreconditionFailed="Precondition Failed",ei.PayloadTooLarge="Payload Too Large",ei.URITooLong="URI Too Long",ei.UnsupportedMediaType="Unsupported Media Type",ei.RangeNotSatisfiable="Range Not Satisfiable",ei.ExpectationFailed="Expectation Failed",ei.ImATeapot="I'm a teapot",ei.MisdirectedRequest="Misdirected Request",ei.UnprocessableEntity="Unprocessable Entity",ei.Locked="Locked",ei.FailedDependency="Failed Dependency",ei.TooEarly="Too Early",ei.UpgradeRequired="Upgrade Required",ei.PreconditionRequired="Precondition Required",ei.TooManyRequests="Too Many Requests",ei.RequestHeaderFieldsTooLarge="Request Header Fields Too Large",ei.UnavailableForLegalReasons="Unavailable For Legal Reasons"}(P9||(P9={}));let Cj={400:P9.BadRequest,401:P9.Unauthorized,402:P9.PaymentRequired,403:P9.Forbidden,404:P9.NotFound,405:P9.MethodNotAllowed,406:P9.NotAcceptable,407:P9.ProxyAuthenticationRequired,408:P9.RequestTimeout,409:P9.Conflict,410:P9.Gone,411:P9.LengthRequired,412:P9.PreconditionFailed,413:P9.PayloadTooLarge,414:P9.URITooLong,415:P9.UnsupportedMediaType,416:P9.RangeNotSatisfiable,417:P9.ExpectationFailed,418:P9.ImATeapot,421:P9.MisdirectedRequest,422:P9.UnprocessableEntity,423:P9.Locked,424:P9.FailedDependency,425:P9.TooEarly,426:P9.UpgradeRequired,428:P9.PreconditionRequired,429:P9.TooManyRequests,431:P9.RequestHeaderFieldsTooLarge,451:P9.UnavailableForLegalReasons};function CR(ei){let eo=Cj[ei];return void 0!==eo}!function(ei){ei.InternalServerError="Internal Server Error",ei.NotImplemented="Not Implemented",ei.BadGateway="Bad Gateway",ei.ServiceUnavailable="Service Unavailable",ei.GatewayTimeout="Gateway Timeout",ei.HTTPVersionNotSupported="HTTP Version Not Supported",ei.VariantAlsoNegotiates="Variant Also Negotiates",ei.InsufficientStorage="Insufficient Storage",ei.LoopDetected="Loop Detected",ei.NotExtended="Not Extended",ei.NetworkAuthenticationRequired="Network Authentication Required"}(P7||(P7={}));let CL={500:P7.InternalServerError,501:P7.NotImplemented,502:P7.BadGateway,503:P7.ServiceUnavailable,504:P7.GatewayTimeout,505:P7.HTTPVersionNotSupported,506:P7.VariantAlsoNegotiates,507:P7.InsufficientStorage,508:P7.LoopDetected,510:P7.NotExtended,511:P7.NetworkAuthenticationRequired};function CF(ei){let eo=CL[ei];return void 0!==eo}var CB=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let CU={400:uz.lF.InvalidArguments,401:uz.lF.NoSession,403:uz.lF.Forbidden,404:uz.lF.NotFound,405:uz.lF.UnknownMethod,408:uz.lF.Timeout,422:uz.lF.UnprocessableEntity,429:uz.lF.TooManyRequests},Cz=ei=>CB(void 0,void 0,void 0,function*(){try{let eo=yield ei.json();return eo}catch(ei){return}}),CG=(ei,eo)=>{let ea=eo.errors;return Array.isArray(ea)&&0!==ea.length?ea.reduce((ea,eu)=>{var ec;let ed="severity"in eu?eu.severity:void 0,ef=null!==(ec="msg"in eu?eu.msg:void 0)&&void 0!==ec?ec:"type"in eu?eu.type:uz.lF.Failed,eh=new uU.B(ef,ei,eo,eu);return ea[null!=ed?ed:uz.Et.E].push(eh),ea},{[uz.Et.E]:[],[uz.Et.W]:[]}):{[uz.Et.E]:[],[uz.Et.W]:[]}},CV=({response:ei,data:eo})=>{var ea;let{status:eu}=ei,ec=String(eu),ed=CR(ec)?Cj[ec]:"Unknown";return new uU.B(ed,ei,eo,{severity:uz.Et.E,errorClass:uz.aS.General,type:null!==(ea=CU[ec])&&void 0!==ea?ea:uz.lF.Failed})},Cq=({response:ei,data:eo})=>{let{status:ea}=ei,eu=String(ea),ec=CF(eu)?CL[eu]:"Unknown";return new uU.B(ec,ei,eo,{severity:uz.Et.E,errorClass:uz.aS.General,type:uz.lF.Failed})},CH=({response:ei,data:eo})=>ei.status>=400&&ei.status<=499?CV({response:ei,data:eo}):Cq({response:ei,data:eo}),CW=(ei,eo)=>CB(void 0,void 0,void 0,function*(){let{parseResponseData:ea=Cz,errors:eu}=null!=eo?eo:{},ec=yield ea(ei);if(null==ec?void 0:ec.errors){let{throwWarnings:eo=!1,logWarnings:ea=!1}=null!=eu?eu:{},{[uz.Et.E]:ed,[uz.Et.W]:ef}=CG(ei,ec);if(ea&&ef.forEach(ei=>console.warn("Internal API Warning:",ei)),ed.length>0)throw ed[0];if(ef.length>0&&eo)throw ef[0]}if(!ei.ok)throw CH({response:ei,data:ec});if(!ec)throw new uU.B("Response data is not JSON parseable",ei,ec,{severity:uz.Et.E,errorClass:uz.aS.General,type:uz.lF.Failed});if(!ec.result||null==ec.result)throw new uU.B("Response data result is not defined",ei,ec,{severity:uz.Et.E,errorClass:uz.aS.General,type:uz.lF.Failed});return{response:ei,data:ec}}),CK=(ei,eo)=>CB(void 0,void 0,void 0,function*(){let{parseResponseData:ea=Cz}=null!=eo?eo:{},eu=yield ea(ei);if(!ei.ok)throw CH({response:ei,data:eu});return{response:ei,data:eu}});function CY(ei,eo,ea){return"function"==typeof ei?ei(eo,ea):ei}var CZ=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let C$=ei=>CZ(void 0,void 0,void 0,function*(){let{domain:eo,requestDefaults:ea}=ei,eu="/session/expiration",ec=C_(eu,{domain:eo}),ed=yield fetch(ec,Object.assign(Object.assign({},ea),{headers:Object.assign({},CY(null==ea?void 0:ea.headers,eu,Object.assign(Object.assign({},CM()(ea,"headers")),{domain:eo,method:P6.GET})))}));return ed.headers.get("x-internal-auth")}),CJ=ei=>CZ(void 0,void 0,void 0,function*(){let{domain:eo,csrfAuth:ea,csrfContextId:eu,requestDefaults:ec}=ei,ed=`/csrf/${eu}`,ef=C_(ed,{domain:eo}),eh=yield fetch(ef,Object.assign(Object.assign({},ec),{headers:Object.assign(Object.assign({},CY(null==ec?void 0:ec.headers,ed,Object.assign(Object.assign({},CM()(ec,"headers")),{domain:eo,method:P6.GET}))),{"Csrf-Auth":ea})})),{data:eg}=yield CW(eh);return eg.result.csrf_token}),CQ=ei=>CZ(void 0,void 0,void 0,function*(){let{domain:eo,method:ea,csrfAuth:eu,csrfContextId:ec,requestDefaults:ed}=ei;if(ea===P6.GET||!ec)return;let ef=null!=eu?eu:yield C$({domain:eo,requestDefaults:ed});return CJ({domain:eo,csrfAuth:ef,csrfContextId:ec,requestDefaults:ed})});var CX=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let C0=ei=>CX(void 0,void 0,void 0,function*(){var eo;let{headers:ea,segmentation:eu,contentType:ec,csrf:ed}=ei,ef=null!==(eo=null==ea?void 0:ea["x-csrf-token"])&&void 0!==eo?eo:yield CQ(ed);return new CD(Object.assign(Object.assign({},ea),{"x-csrf-token":ef,"X-KOrigin":CP(eu),"Content-Type":ec})).get()});var C1=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let C2=(ei,eo,ea={})=>C1(void 0,void 0,void 0,function*(){var eu,ec,ed,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT;let{body:ek,cache:eC=null===(eu=eo.requestDefaults)||void 0===eu?void 0:eu.cache,credentials:eO=null===(ec=eo.requestDefaults)||void 0===ec?void 0:ec.credentials,keepalive:eI=null===(ed=eo.requestDefaults)||void 0===ed?void 0:ed.keepalive,method:eP=P6.GET,mode:eD=null===(ef=eo.requestDefaults)||void 0===ef?void 0:ef.mode,redirect:eN=null===(eh=eo.requestDefaults)||void 0===eh?void 0:eh.redirect,referrer:eM=null===(eg=eo.requestDefaults)||void 0===eg?void 0:eg.referrer,referrerPolicy:ej=null===(em=eo.requestDefaults)||void 0===em?void 0:em.referrerPolicy,signal:eR}=ea,eL=null!==(eb=ea.domain)&&void 0!==eb?eb:eo.domain,eF=null!==(e_=null===(ew=ea.csrf)||void 0===ew?void 0:ew.auth)&&void 0!==e_?e_:null===(eE=null===(eS=eo.csrf)||void 0===eS?void 0:eS.auth)||void 0===eE?void 0:eE.call(eS),{body:eB,contentType:eU}=CO(ek,ea.type),eG=yield C0({headers:Object.assign(Object.assign({},CY(null===(eA=eo.requestDefaults)||void 0===eA?void 0:eA.headers,ei,Object.assign(Object.assign({},ea),{cache:eC,credentials:eO,keepalive:eI,method:eP,mode:eD,redirect:eN,referrer:eM,referrerPolicy:ej}))),ea.headers),segmentation:Object.assign(Object.assign({},eo.segmentation),ea.segmentation),contentType:eU,csrf:{domain:eL,method:eP,csrfAuth:eF,csrfContextId:null===(eT=ea.csrf)||void 0===eT?void 0:eT.contextId,requestDefaults:eo.requestDefaults}}),eV={body:eB,cache:eC,credentials:eO,headers:eG,keepalive:eI,method:eP.toUpperCase(),mode:eD,redirect:eN,referrer:eM,referrerPolicy:ej,signal:eR};return{url:C_(ei,{domain:eL,query:ea.query}),options:Cx()(eV,ei=>void 0===ei)}}),C3={Accept:"application/json","X-Requested-With":"XMLHTTPRequest"},C5={logWarnings:!0,throwWarnings:!1},C4=ei=>{var eo;let ea=null===(eo=ei.requestDefaults)||void 0===eo?void 0:eo.headers;return Object.assign(Object.assign({},ei),{errors:Object.assign(Object.assign({},C5),ei.errors),requestDefaults:Object.assign(Object.assign({},ei.requestDefaults),{headers:"function"==typeof ea?(ei,eo)=>Object.assign(Object.assign({},C3),ea(ei,eo)):Object.assign(Object.assign({},C3),ea)})})};class C6{constructor(){this.listeners=new Set}add(ei){return this.listeners.add(ei),()=>this.delete(ei)}delete(ei){return this.listeners.delete(ei)}clear(){this.listeners.clear()}dispatch(...ei){this.listeners.forEach(eo=>eo(...ei))}}var C8=ea(96486);let C9="Internal Api Client",C7="None",Or="API Error Response",On=({method:ei=P6.GET,status:eo,path:ea,classifier:eu})=>`API Error: ${ei} ${ea} | status: ${eo}${eu?` | ${eu}`:""}`,Oi=ei=>({error:JSON.stringify((0,C8.pickBy)(ei,(ei,eo)=>"response"!==eo))});var Oo=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};class Oa{constructor(ei){this.getConfig=()=>Cp()(this.config),this.setConfig=ei=>(this.config=ei(this.getConfig()),this.getConfig()),this.addRequestListener=ei=>this.requestListeners.add(ei),this.deleteRequestListener=ei=>this.requestListeners.delete(ei),this.buildInternalApiUrl=(...ei)=>CS(this.config,...ei),this.request=(ei,eo={})=>Oo(this,void 0,void 0,function*(){let{url:ea,options:eu}=yield C2(ei,this.config,eo),ec=yield fetch(ea,eu);try{let ea=yield CW(ec,{errors:Object.assign(Object.assign({},this.config.errors),eo.errors),parseResponseData:eo.parseResponseData});return this.requestListeners.dispatch(Object.assign(Object.assign({},ea),{path:ei,options:eo,error:void 0})),ea}catch(ea){throw ea instanceof uU.B&&(this.requestListeners.dispatch({response:ec,path:ei,options:eo,data:ea.data,error:ea}),this.logInternalApiError(ei,eo,ea)),ea}}),this.requestCustom=(ei,eo={})=>Oo(this,void 0,void 0,function*(){let{url:ea,options:eu}=yield C2(ei,this.config,eo),ec=yield fetch(ea,eu);try{let ea=yield CK(ec,{parseResponseData:eo.parseResponseData});return this.requestListeners.dispatch(Object.assign(Object.assign({},ea),{path:ei,options:eo,error:void 0})),ea}catch(eu){throw eu instanceof uU.B&&(this.requestListeners.dispatch({response:ec,path:ei,options:eo,data:void 0,error:eu}),this.logInternalApiError(ea,eo,eu)),eu}}),this.logInternalApiError=(ei,eo,ea)=>{if(!this.config.sentryLogger)return;let eu=!this.config.sentryLogger.ignoreErrors||!this.config.sentryLogger.ignoreErrors(ea);if(eu)try{let eu=C_(ei),ec=ea.type,ed=ea.errorClass,ef=ea.msg,eh=eo.query?new URLSearchParams(eo.query).toString():C7,eg={apiClient:C9,apiMethod:eo.method,apiPath:eu,apiQuery:eh,apiStatus:ea.response.status,apiErrorType:ec,apiErrorClass:ed,apiErrorMessage:ef,apiRequestID:ea.response.headers.get("x-request-id"),apiTraceID:ea.response.headers.get("x-trace-id")},em=On({method:eo.method,path:eu,status:ea.response.status,classifier:ec||ed});this.config.sentryLogger.captureMessage(em,{level:"error",tags:eg,extra:Oi(ea)})}catch(ei){}},this.config=C4(ei),this.requestListeners=new C6}}class Ol{constructor(ei){this.activateAccount=(ei,eo={})=>this.iApiHttpClient.request("/account",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.autofillProfilePlaid=(ei,eo={})=>this.iApiHttpClient.request("/account/profile/autofill/plaid",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.beginResetPassword=(ei,eo={})=>this.iApiHttpClient.request("/account/password/reset",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.bypassTwoFactor=(ei,eo={})=>this.iApiHttpClient.request("/account/tfa/bypass",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.cancelTfa=(ei={})=>this.iApiHttpClient.request("/account/settings/tfa",Object.assign({method:P6.DELETE},ei)),this.changePassword=(ei,eo={})=>this.iApiHttpClient.request("/account/password",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.completeTier4Corporate=(ei,eo={})=>this.iApiHttpClient.request("/account/profile/tier4-corporate",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.completeTier4Individual=(ei,eo={})=>this.iApiHttpClient.request("/account/profile/tier4-individual",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.confirmAccountTfa=(ei,eo,ea={})=>this.iApiHttpClient.request(`/account/settings/tfa/account/${ei}`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Securitytfa})},ea)),this.confirmApiTfa=(ei,eo,ea={})=>this.iApiHttpClient.request(`/account/settings/tfa/api/${ei}`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Securitytfa})},ea)),this.convertToCorporate=(ei={})=>this.iApiHttpClient.request("/account/profile/convert-to-corporate",Object.assign({method:P6.POST,csrf:Object.assign(Object.assign({},ei.csrf),{contextId:uz.G8.Settingsaccount})},ei)),this.createAccount=(ei,eo={})=>this.iApiHttpClient.request("/account",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.createAccountCancel=(ei,eo={})=>this.iApiHttpClient.request("/account",Object.assign({method:P6.DELETE,query:ei},eo)),this.createAccountTfa=(ei,eo,ea={})=>this.iApiHttpClient.request(`/account/settings/tfa/account/${ei}`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Securitytfa})},ea)),this.createApiTfa=(ei,eo,ea={})=>this.iApiHttpClient.request(`/account/settings/tfa/api/${ei}`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Securitytfa})},ea)),this.createStepUpToken=(ei,eo,ea={})=>this.iApiHttpClient.request(`/account/step-up/${ei}`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Securitytfa})},ea)),this.createTwoFactorConfiguration=(ei,eo,ea={})=>this.iApiHttpClient.request(`/account/settings/mfa/${ei}`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Securitytfa})},ea)),this.createUserDeclaration=(ei,eo={})=>this.iApiHttpClient.request("/account/declaration",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.deleteAccountTfa=(ei,eo,ea={})=>this.iApiHttpClient.request(`/account/settings/tfa/account/${ei}`,Object.assign({method:P6.DELETE,body:eo,type:P8.Json},ea)),this.deleteApiTfa=(ei,eo={})=>this.iApiHttpClient.request(`/account/settings/tfa/api/${ei}`,Object.assign({method:P6.DELETE},eo)),this.getAccountBalance=(ei,eo={})=>this.iApiHttpClient.request("/account/balance",Object.assign({method:P6.GET,query:ei},eo)),this.getAccountBalanceV2=(ei,eo={})=>this.iApiHttpClient.request("/account/v2/balance",Object.assign({method:P6.GET,query:ei},eo)),this.getAccountSecretKeyInfo=(ei,eo={})=>this.iApiHttpClient.request("/account/tfa/master",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.getAccountStatus=(ei={})=>this.iApiHttpClient.request("/account/status",Object.assign({method:P6.GET},ei)),this.getAccountTfa=(ei,eo={})=>this.iApiHttpClient.request(`/account/settings/tfa/account/${ei}`,Object.assign({method:P6.GET},eo)),this.getApiTfa=(ei,eo={})=>this.iApiHttpClient.request(`/account/settings/tfa/api/${ei}`,Object.assign({method:P6.GET},eo)),this.getAu10TixToken=(ei={})=>this.iApiHttpClient.request("/account/au10tix-token",Object.assign({method:P6.GET},ei)),this.getHistoricalAccountBalances=(ei,eo={})=>this.iApiHttpClient.request("/account/balance/history",Object.assign({method:P6.GET,query:ei},eo)),this.getTermsOfService=(ei={})=>this.iApiHttpClient.request("/account/settings/tos",Object.assign({method:P6.GET},ei)),this.getTfaUsernamePassword=(ei,eo={})=>this.iApiHttpClient.request("/account/settings/tfa",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.getTwoFactorConfigurations=(ei,eo={})=>this.iApiHttpClient.request(`/account/settings/mfa/${ei}`,Object.assign({method:P6.GET},eo)),this.getUserDeclaration=(ei={})=>this.iApiHttpClient.request("/account/declaration",Object.assign({method:P6.GET},ei)),this.getUsernameByEmail=(ei,eo={})=>this.iApiHttpClient.request("/account/username-by-email",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.getVendorAccountStatus=(ei,eo={})=>this.iApiHttpClient.request("/account/vendor/status",Object.assign({method:P6.GET,query:ei},eo)),this.getVendorId=(ei,eo={})=>this.iApiHttpClient.request("/account/vendor/id",Object.assign({method:P6.GET,query:ei},eo)),this.listTwoFactorConfigurations=(ei={})=>this.iApiHttpClient.request("/account/settings/mfa",Object.assign({method:P6.GET},ei)),this.readProfile=(ei={})=>this.iApiHttpClient.request("/account/profile",Object.assign({method:P6.GET},ei)),this.readSettings=(ei={})=>this.iApiHttpClient.request("/account/settings",Object.assign({method:P6.GET},ei)),this.readTier4Corporate=(ei={})=>this.iApiHttpClient.request("/account/profile/tier4-corporate",Object.assign({method:P6.GET},ei)),this.readTier4Individual=(ei={})=>this.iApiHttpClient.request("/account/profile/tier4-individual",Object.assign({method:P6.GET},ei)),this.registerVendorAccount=(ei,eo={})=>this.iApiHttpClient.request("/account/vendor/register",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.removeSettingsLock=(ei,eo={})=>this.iApiHttpClient.request("/account/settings/unlock",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.removeTwoFactorConfiguration=(ei,eo,ea,eu={})=>this.iApiHttpClient.request(`/account/settings/mfa/${ei}/${eo}`,Object.assign({method:P6.DELETE,body:ea,type:P8.Json,csrf:Object.assign(Object.assign({},eu.csrf),{contextId:uz.G8.Securitytfa})},eu)),this.resetPassword=(ei,eo={})=>this.iApiHttpClient.request("/account/password/reset",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.resetPasswordCheck=(ei,eo={})=>this.iApiHttpClient.request("/account/password/reset/check",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.updateEmail=(ei,eo={})=>this.iApiHttpClient.request("/account/settings/email",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.updateEmailCancel=(ei,eo={})=>this.iApiHttpClient.request("/account/settings/email/confirm",Object.assign({method:P6.DELETE,query:ei},eo)),this.updateEmailConfirm=(ei,eo={})=>this.iApiHttpClient.request("/account/settings/email/confirm",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.updateEmailResend=(ei={})=>this.iApiHttpClient.request("/account/settings/email/confirm",Object.assign({method:P6.POST,csrf:Object.assign(Object.assign({},ei.csrf),{contextId:uz.G8.Settingsaccount})},ei)),this.updateProfile=(ei,eo={})=>this.iApiHttpClient.request("/account/profile",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.updateSettings=(ei,eo={})=>this.iApiHttpClient.request("/account/settings",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.updateSettingsLock=(ei,eo={})=>this.iApiHttpClient.request("/account/settings/lock",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.updateTermsOfService=(ei,eo={})=>this.iApiHttpClient.request("/account/settings/tos",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.updateTwoFactorConfiguration=(ei,eo,ea,eu={})=>this.iApiHttpClient.request(`/account/settings/mfa/${ei}/${eo}`,Object.assign({method:P6.PATCH,body:ea,type:P8.Json,csrf:Object.assign(Object.assign({},eu.csrf),{contextId:uz.G8.Securitytfa})},eu)),this.wipTier4Corporate=(ei,eo={})=>this.iApiHttpClient.request("/account/profile/tier4-corporate",Object.assign({method:P6.PATCH,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsaccount})},eo)),this.iApiHttpClient=ei}}class Ou{constructor(ei){this.auditProof=(ei,eo,ea={})=>this.iApiHttpClient.request(`/audits/${ei}/proof/${eo}`,Object.assign({method:P6.GET},ea)),this.listBalanceAudits=(ei={})=>this.iApiHttpClient.request("/audits",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class Oc{constructor(ei){this.getBaselRisk=(ei,eo={})=>this.iApiHttpClient.request(`/basel/${ei}`,Object.assign({method:P6.GET},eo)),this.iApiHttpClient=ei}}class Od{constructor(ei){this.approveBridge=(ei,eo={})=>this.iApiHttpClient.request("/bridge/approve",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.iApiHttpClient=ei}}class Of{constructor(ei){this.createTfaChallenge=(ei,eo={})=>this.iApiHttpClient.request(`/challenge/tfa/account/${ei}`,Object.assign({method:P6.POST},eo)),this.iApiHttpClient=ei}}var Oh=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class Op{constructor(ei){this.cancelScheduledAction=(ei,eo,ea={})=>this.iApiHttpClient.request(`/consumer-scheduler/scheduled-actions/${ei}/cancel`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Ptl})},ea)),this.createScheduledAction=(ei,eo={})=>this.iApiHttpClient.request("/consumer-scheduler/scheduled-actions",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Ptl})},eo)),this.getScheduledAction=(ei,eo)=>{var{id:ea}=ei,eu=Oh(ei,["id"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/consumer-scheduler/scheduled-actions/${ea}`,Object.assign({method:P6.GET,query:eu},eo))},this.getScheduledActionHistory=(ei,eo)=>{var{id:ea}=ei,eu=Oh(ei,["id"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/consumer-scheduler/scheduled-actions/${ea}/history`,Object.assign({method:P6.GET,query:eu},eo))},this.getScheduledActions=(ei,eo={})=>this.iApiHttpClient.request("/consumer-scheduler/scheduled-actions",Object.assign({method:P6.GET,query:ei},eo)),this.getScheduledActionsHistory=(ei,eo={})=>this.iApiHttpClient.request("/consumer-scheduler/scheduled-actions/history",Object.assign({method:P6.GET,query:ei},eo)),this.pauseScheduledAction=(ei,eo,ea={})=>this.iApiHttpClient.request(`/consumer-scheduler/scheduled-actions/${ei}/pause`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Ptl})},ea)),this.resumeScheduledAction=(ei,eo,ea={})=>this.iApiHttpClient.request(`/consumer-scheduler/scheduled-actions/${ei}/resume`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Ptl})},ea)),this.updateScheduledAction=(ei,eo,ea={})=>this.iApiHttpClient.request(`/consumer-scheduler/scheduled-actions/${ei}`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Ptl})},ea)),this.iApiHttpClient=ei}}var Og=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class Om{constructor(ei){this.addContactToAddressBook=(ei,eo,ea={})=>this.iApiHttpClient.request(`/contact-lists/${ei}/contacts`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Addressbook})},ea)),this.getContactFromAddressBook=(ei,eo,ea={})=>this.iApiHttpClient.request(`/contact-lists/${ei}/contacts/${eo}`,Object.assign({method:P6.GET},ea)),this.listContactsInAddressBook=(ei,eo)=>{var{list:ea}=ei,eu=Og(ei,["list"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/contact-lists/${ea}/contacts`,Object.assign({method:P6.GET,query:eu},eo))},this.removeContactFromAddressBook=(ei,eo,ea={})=>this.iApiHttpClient.request(`/contact-lists/${ei}/contacts/${eo}`,Object.assign({method:P6.DELETE,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Addressbook})},ea)),this.iApiHttpClient=ei}}class Oy{constructor(ei){this.createCredentials=(ei,eo={})=>this.iApiHttpClient.request("/credentials",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Settingsapi})},eo)),this.deleteCredentials=(ei,eo={})=>this.iApiHttpClient.request(`/credentials/${ei}`,Object.assign({method:P6.DELETE},eo)),this.listCredentials=(ei={})=>this.iApiHttpClient.request("/credentials",Object.assign({method:P6.GET},ei)),this.readCredentials=(ei,eo={})=>this.iApiHttpClient.request(`/credentials/${ei}`,Object.assign({method:P6.GET},eo)),this.updateCredentials=(ei,eo,ea={})=>this.iApiHttpClient.request(`/credentials/${ei}`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Settingsapi})},ea)),this.iApiHttpClient=ei}}class Ov{constructor(ei){this.getCsrfToken=(ei,eo={})=>this.iApiHttpClient.request(`/csrf/${ei}`,Object.assign({method:P6.GET},eo)),this.iApiHttpClient=ei}}var Ob=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class Ow{constructor(ei){this.createCustodyDepositAddress=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/deposits/addresses`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Custody})},ea)),this.createCustodyGroup=(ei,eo={})=>this.iApiHttpClient.request("/custody/groups",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Custody})},eo)),this.createCustodyUsers=(ei,eo={})=>this.iApiHttpClient.request("/custody/users",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Custody})},eo)),this.createCustodyVault=(ei,eo={})=>this.iApiHttpClient.request("/custody/vaults",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Custody})},eo)),this.getCustodyBalance=(ei={})=>this.iApiHttpClient.request("/custody/vaults/balance",Object.assign({method:P6.GET},ei)),this.getCustodyDepositInfo=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/deposits/info`,Object.assign({method:P6.PUT,body:eo,type:P8.Json},ea)),this.getCustodyTask=(ei,eo={})=>this.iApiHttpClient.request(`/custody/tasks/${ei}`,Object.assign({method:P6.GET},eo)),this.getCustodyTasksActivity=(ei,eo={})=>this.iApiHttpClient.request(`/custody/tasks/activities/${ei}`,Object.assign({method:P6.GET},eo)),this.getCustodyTransaction=(ei,eo={})=>this.iApiHttpClient.request(`/custody/transactions/${ei}`,Object.assign({method:P6.GET},eo)),this.getCustodyUserInfo=(ei={})=>this.iApiHttpClient.request("/custody/user",Object.assign({method:P6.GET},ei)),this.getCustodyVaultInfo=(ei,eo={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}`,Object.assign({method:P6.GET},eo)),this.getCustodyWithdrawalFees=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/withdrawals/fees`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Custody})},ea)),this.getCustodyWithdrawalInfo=(ei,eo={})=>this.iApiHttpClient.request("/custody/vaults/withdrawals/info",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.listCustodyAssets=(ei={})=>this.iApiHttpClient.request("/custody/vaults/assets",Object.assign({method:P6.GET},ei)),this.listCustodyAssetsBalances=(ei,eo)=>{var{id:ea}=ei,eu=Ob(ei,["id"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/custody/vaults/${ea}/assets/balances`,Object.assign({method:P6.GET,query:eu},eo))},this.listCustodyDepositAddresses=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/deposits/addresses`,Object.assign({method:P6.PUT,body:eo,type:P8.Json},ea)),this.listCustodyDomainPolicies=(ei,eo={})=>this.iApiHttpClient.request("/custody/policies",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.listCustodyTasks=(ei,eo={})=>this.iApiHttpClient.request("/custody/tasks",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.listCustodyTasksActivities=(ei,eo={})=>this.iApiHttpClient.request("/custody/tasks/activities",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.listCustodyTransactions=(ei,eo={})=>this.iApiHttpClient.request("/custody/transactions",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.listCustodyTransferAddresses=(ei,eo={})=>this.iApiHttpClient.request("/custody/transfers/addresses",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.listCustodyUsers=(ei,eo={})=>this.iApiHttpClient.request("/custody/users",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.listCustodyVaultPolicies=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/policies`,Object.assign({method:P6.PUT,body:eo,type:P8.Json},ea)),this.listCustodyVaultUsers=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/users`,Object.assign({method:P6.PUT,body:eo,type:P8.Json},ea)),this.listCustodyVaults=(ei,eo={})=>this.iApiHttpClient.request("/custody/vaults",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.listCustodyWithdrawalAddresses=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/withdrawals/addresses`,Object.assign({method:P6.PUT,body:eo,type:P8.Json},ea)),this.requestCustodyTransferToSpot=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/transfers`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Custody})},ea)),this.requestCustodyTransferToVault=(ei,eo={})=>this.iApiHttpClient.request("/custody/transfers",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Custody})},eo)),this.requestCustodyWithdrawal=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/withdrawals`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Custody})},ea)),this.reviewCustodyTask=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/tasks/${ei}`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Custody})},ea)),this.updateCustodyDomainPolicies=(ei,eo={})=>this.iApiHttpClient.request("/custody/policies",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Custody})},eo)),this.updateCustodyGroupUsers=(ei,eo={})=>this.iApiHttpClient.request("/custody/users/groups",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Custody})},eo)),this.updateCustodyRoleUsers=(ei,eo={})=>this.iApiHttpClient.request("/custody/users/roles",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Custody})},eo)),this.updateCustodyStatusUsers=(ei,eo={})=>this.iApiHttpClient.request("/custody/users/status",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Custody})},eo)),this.updateCustodyVault=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Custody})},ea)),this.updateCustodyVaultPolicies=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/policies`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Custody})},ea)),this.updateCustodyVaultUsers=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/users`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Custody})},ea)),this.updateCustodyWithdrawalAddresses=(ei,eo,ea={})=>this.iApiHttpClient.request(`/custody/vaults/${ei}/withdrawals/addresses`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Custody})},ea)),this.iApiHttpClient=ei}}var O_=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class OS{constructor(ei){this.acceptSynapseTos=(ei,eo={})=>this.iApiHttpClient.request("/deposits/synapse/accepttos",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.activateDepositRequest=(ei,eo={})=>this.iApiHttpClient.request("/deposits/activate",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.activatePlaidTokenLink=(ei,eo={})=>this.iApiHttpClient.request("/deposits/plaid/activate",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.addCreditCard=(ei,eo={})=>this.iApiHttpClient.request("/deposits/credit-card/add",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.chargeCreditCard=(ei,eo={})=>this.iApiHttpClient.request("/deposits/credit-card/ptl",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.confirmCreditCard=(ei,eo={})=>this.iApiHttpClient.request("/deposits/credit-card/3d-secure/confirm",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.confirmPwmbAccount=(ei,eo={})=>this.iApiHttpClient.request("/deposits/pwmb",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.createDepositAddress=(ei,eo={})=>this.iApiHttpClient.request("/deposits/addresses",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.createInteracDepositRequest=(ei,eo={})=>this.iApiHttpClient.request("/deposits/interac/request",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.createPlaidDepositRequest=(ei,eo={})=>this.iApiHttpClient.request("/deposits/plaid/request",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.createPlaidTokenLink=(ei,eo={})=>this.iApiHttpClient.request("/deposits/plaid/create",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.creditCardTransactionStatus=(ei,eo,ea={})=>this.iApiHttpClient.request(`/deposits/credit-card/ptl/${ei}/${eo}`,Object.assign({method:P6.GET},ea)),this.deleteCreditCard=(ei,eo={})=>this.iApiHttpClient.request(`/deposits/credit-card/${ei}`,Object.assign({method:P6.DELETE},eo)),this.deletePlaidAccount=(ei,eo)=>{var{itemId:ea}=ei,eu=O_(ei,["itemId"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/deposits/plaid/${ea}`,Object.assign({method:P6.DELETE,query:eu,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo))},this.deletePwmbAccount=(ei,eo={})=>this.iApiHttpClient.request(`/deposits/pwmb/${ei}`,Object.assign({method:P6.DELETE},eo)),this.directFundingConfirmAccount=(ei,eo={})=>this.iApiHttpClient.request("/deposits/direct/funding/confirm/account",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.directFundingCreateDepositRequest=(ei,eo={})=>this.iApiHttpClient.request("/deposits/direct/funding/create/deposit",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.directFundingDeleteAccount=(ei,eo,ea={})=>this.iApiHttpClient.request(`/deposits/direct/funding/${ei}`,Object.assign({method:P6.DELETE,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Deposit})},ea)),this.directFundingInitializeAccount=(ei,eo={})=>this.iApiHttpClient.request("/deposits/direct/funding/initialize/account",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.encodeDepositRequest=(ei,eo={})=>this.iApiHttpClient.request("/deposits/encode",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.fundRequestPwmb=(ei,eo={})=>this.iApiHttpClient.request("/deposits/pwmb/ptl",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.getDepositAddresses=(ei,eo={})=>this.iApiHttpClient.request("/deposits/addresses",Object.assign({method:P6.GET,query:ei},eo)),this.getDepositMethods=(ei,eo={})=>this.iApiHttpClient.request("/deposits/methods",Object.assign({method:P6.GET,query:ei},eo)),this.getDepositsLimits=(ei,eo={})=>this.iApiHttpClient.request("/deposits/limits",Object.assign({method:P6.GET,query:ei},eo)),this.getPlaidInstitutionLogos=(ei,eo={})=>this.iApiHttpClient.request("/deposits/plaid/institution/logos",Object.assign({method:P6.GET,query:ei},eo)),this.initiatesAddingNewAccountPwmb=(ei,eo={})=>this.iApiHttpClient.request("/deposits/pwmb",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Deposit})},eo)),this.listDepositStatus=(ei,eo={})=>this.iApiHttpClient.request("/deposits/statuses",Object.assign({method:P6.GET,query:ei},eo)),this.listStoredCards=(ei={})=>this.iApiHttpClient.request("/deposits/credit-card",Object.assign({method:P6.GET},ei)),this.listStoredPwmb=(ei,eo={})=>this.iApiHttpClient.request("/deposits/pwmb",Object.assign({method:P6.GET,query:ei},eo)),this.redeemKfeeVoucher=(ei,eo={})=>this.iApiHttpClient.request("/deposits/kfee/redeem",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.transactionStatusPwmb=(ei,eo,ea={})=>this.iApiHttpClient.request(`/deposits/pwmb/ptl/${ei}/${eo}`,Object.assign({method:P6.GET},ea)),this.iApiHttpClient=ei}}class OE{constructor(ei){this.approveDevice=(ei,eo={})=>this.iApiHttpClient.request("/devices/approved",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.checkDeviceApproval=(ei,eo={})=>this.iApiHttpClient.request("/devices/check",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.listApprovedDevices=(ei={})=>this.iApiHttpClient.request("/devices/approved",Object.assign({method:P6.GET},ei)),this.resendApproveDeviceEmail=(ei,eo={})=>this.iApiHttpClient.request("/devices/approved/resend",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.revokeAllDevices=(ei,eo={})=>this.iApiHttpClient.request("/devices",Object.assign({method:P6.DELETE,query:ei},eo)),this.revokeDevice=(ei,eo={})=>this.iApiHttpClient.request(`/devices/${ei}`,Object.assign({method:P6.DELETE},eo)),this.iApiHttpClient=ei}}class Ox{constructor(ei){this.deleteDocument=(ei,eo={})=>this.iApiHttpClient.request(`/documents/${ei}`,Object.assign({method:P6.DELETE},eo)),this.getDocuments=(ei={})=>this.iApiHttpClient.request("/documents",Object.assign({method:P6.GET},ei)),this.uploadDocument=(ei,eo={})=>this.iApiHttpClient.request("/documents",Object.assign({method:P6.POST,body:ei,type:P8.FormData,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.DocumentManager})},eo)),this.iApiHttpClient=ei}}class OA{constructor(ei){this.accountTransfer=(ei,eo={})=>this.iApiHttpClient.request("/domains/transfer",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Transfers})},eo)),this.createSubaccount=(ei,eo={})=>this.iApiHttpClient.request("/domains/accounts",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Subaccounts})},eo)),this.listSubaccounts=(ei,eo={})=>this.iApiHttpClient.request("/domains/accounts",Object.assign({method:P6.GET,query:ei},eo)),this.iApiHttpClient=ei}}class OT{constructor(ei){this.allocateStrategy=(ei,eo,ea={})=>this.iApiHttpClient.request(`/earn/strategies/${ei}/allocate`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Earnings})},ea)),this.deallocateStrategy=(ei,eo,ea={})=>this.iApiHttpClient.request(`/earn/strategies/${ei}/deallocate`,Object.assign({method:P6.POST,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Earnings})},ea)),this.getAllocateStrategyStatus=(ei,eo={})=>this.iApiHttpClient.request(`/earn/strategies/${ei}/allocate`,Object.assign({method:P6.GET},eo)),this.getAutoAllocateStatus=(ei={})=>this.iApiHttpClient.request("/earn/auto/set",Object.assign({method:P6.GET},ei)),this.getDeallocateStrategyStatus=(ei,eo={})=>this.iApiHttpClient.request(`/earn/strategies/${ei}/deallocate`,Object.assign({method:P6.GET},eo)),this.getStrategy=(ei,eo={})=>this.iApiHttpClient.request(`/earn/strategies/${ei}`,Object.assign({method:P6.GET},eo)),this.listAllocations=(ei,eo={})=>this.iApiHttpClient.request("/earn/allocations",Object.assign({method:P6.GET,query:ei},eo)),this.listLedgers=(ei,eo={})=>this.iApiHttpClient.request("/earn/ledgers",Object.assign({method:P6.GET,query:ei},eo)),this.listLedgersAgg=(ei,eo={})=>this.iApiHttpClient.request("/earn/ledgers-agg",Object.assign({method:P6.GET,query:ei},eo)),this.listStrategies=(ei,eo={})=>this.iApiHttpClient.request("/earn/strategies",Object.assign({method:P6.GET,query:ei},eo)),this.listStrategiesNs=(ei,eo={})=>this.iApiHttpClient.request("/earn/strategies-ns",Object.assign({method:P6.GET,query:ei},eo)),this.setAutoAllocate=(ei,eo={})=>this.iApiHttpClient.request("/earn/auto/set",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Earnings})},eo)),this.iApiHttpClient=ei}}class Ok{constructor(ei){this.emailTracking=(ei,eo={})=>this.iApiHttpClient.request("/email/tracking",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.emailUnsubscribe=(ei,eo={})=>this.iApiHttpClient.request("/email/subscription",Object.assign({method:P6.DELETE,body:ei,type:P8.Json},eo)),this.iApiHttpClient=ei}}class OC{constructor(ei){this.createEquitiesOrder=(ei,eo={})=>this.iApiHttpClient.request("/equities/orders",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Equities})},eo)),this.iApiHttpClient=ei}}class OO{constructor(ei){this.eventsWebSockets=(ei,eo={})=>this.iApiHttpClient.request("/events/ws",Object.assign({method:P6.GET,query:ei},eo)),this.iApiHttpClient=ei}}class OI{constructor(ei){this.cancelHistoryExports=(ei,eo={})=>this.iApiHttpClient.request(`/exports/${ei}/cancel`,Object.assign({method:P6.PUT,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.HistoryExport})},eo)),this.createHistoryExports=(ei,eo={})=>this.iApiHttpClient.request("/exports",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.HistoryExport})},eo)),this.deleteHistoryExports=(ei,eo={})=>this.iApiHttpClient.request(`/exports/${ei}`,Object.assign({method:P6.DELETE,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.HistoryExport})},eo)),this.downloadHistoryExports=(ei,eo={})=>this.iApiHttpClient.request(`/exports/${ei}`,Object.assign({method:P6.GET},eo)),this.listHistoryExports=(ei={})=>this.iApiHttpClient.request("/exports",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class OP{constructor(ei){this.getFuturesAccountInfo=(ei={})=>this.iApiHttpClient.request("/futures/account",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class OD{constructor(ei){this.instantMethods=(ei,eo={})=>this.iApiHttpClient.request("/instant/pay",Object.assign({method:P6.GET,query:ei},eo)),this.instantPay=(ei,eo={})=>this.iApiHttpClient.request("/instant/pay",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Ptl})},eo)),this.iApiHttpClient=ei}}class ON{constructor(ei){this.getKycFlows=(ei={})=>this.iApiHttpClient.request("/kyc/flows",Object.assign({method:P6.GET},ei)),this.startDocumentVerification=(ei,eo={})=>this.iApiHttpClient.request("/kyc/start_document_verification",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.submitKycFlowData=(ei,eo,ea={})=>this.iApiHttpClient.request(`/kyc/flows/${ei}`,Object.assign({method:P6.PATCH,body:eo,type:P8.Json},ea)),this.iApiHttpClient=ei}}var OM=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class Oj{constructor(ei){this.getLedgersInfo=(ei,eo={})=>this.iApiHttpClient.request("/ledgers",Object.assign({method:P6.GET,query:ei},eo)),this.queryLedgerInfo=(ei,eo)=>{var{ledgerId:ea}=ei,eu=OM(ei,["ledgerId"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/ledgers/${ea}`,Object.assign({method:P6.GET,query:eu},eo))},this.iApiHttpClient=ei}}class OR{constructor(ei){this.getCountryInfo=(ei,eo={})=>this.iApiHttpClient.requestCustom(`/locale/${ei}`,Object.assign({method:P6.GET},eo)),this.getCountryInfoV2=(ei,eo={})=>this.iApiHttpClient.request(`/locale/v2/${ei}`,Object.assign({method:P6.GET},eo)),this.iApiHttpClient=ei}}class OL{constructor(ei){this.getSpotMarginFlags=(ei={})=>this.iApiHttpClient.request("/margin/flags",Object.assign({method:P6.GET},ei)),this.getSpotMarginPnL=(ei,eo={})=>this.iApiHttpClient.request("/margin/pnl",Object.assign({method:P6.GET,query:ei},eo)),this.getSpotMarginRefCurrencies=(ei={})=>this.iApiHttpClient.request("/margin/currencies",Object.assign({method:P6.GET},ei)),this.getSpotMarginStats=(ei={})=>this.iApiHttpClient.request("/margin/stats",Object.assign({method:P6.GET},ei)),this.getSpotMarginTradingStats=(ei,eo={})=>this.iApiHttpClient.request("/margin/stats/trading",Object.assign({method:P6.GET,query:ei},eo)),this.getSpotMarginWithdrawStats=(ei,eo={})=>this.iApiHttpClient.request("/margin/stats/withdraw",Object.assign({method:P6.GET,query:ei},eo)),this.setSpotMarginLotAllocationMethod=(ei,eo={})=>this.iApiHttpClient.request("/margin/lot-allocation-method",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.updateSpotMarginFlags=(ei,eo={})=>this.iApiHttpClient.request("/margin/flags",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.updateSpotMarginFlagsAdmin=(ei,eo={})=>this.iApiHttpClient.request("/margin/flags-admin",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.iApiHttpClient=ei}}var OF=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class OB{constructor(ei){this.createMarketAlertTrigger=(ei,eo={})=>this.iApiHttpClient.request("/markets/triggers/alerts",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Triggers})},eo)),this.getAllAssets=(ei,eo={})=>this.iApiHttpClient.request("/markets/all/assets",Object.assign({method:P6.GET,query:ei},eo)),this.getAllMarketCharts=(ei,eo={})=>this.iApiHttpClient.request("/markets/all/market-charts",Object.assign({method:P6.GET,query:ei},eo)),this.getAllMarketPrices=(ei,eo={})=>this.iApiHttpClient.request("/markets/all/market-prices",Object.assign({method:P6.GET,query:ei},eo)),this.getAllQuoteAssets=(ei={})=>this.iApiHttpClient.request("/markets/all/quote-assets",Object.assign({method:P6.GET},ei)),this.getAssetInfo=(ei,eo={})=>this.iApiHttpClient.request("/markets/assets",Object.assign({method:P6.GET,query:ei},eo)),this.getAssetVolumesWindow=(ei,eo={})=>this.iApiHttpClient.request("/markets/assets/volumes/window",Object.assign({method:P6.GET,query:ei},eo)),this.getAssetsRates=(ei,eo={})=>this.iApiHttpClient.request("/markets/assets/rates",Object.assign({method:P6.GET,query:ei},eo)),this.getAssetsRatesHistory=(ei,eo={})=>this.iApiHttpClient.request("/markets/assets/rates/history",Object.assign({method:P6.GET,query:ei},eo)),this.getExchangePairsRates=(ei,eo={})=>this.iApiHttpClient.request("/markets/exchange-rates",Object.assign({method:P6.GET,query:ei},eo)),this.getExchangePairsRatesHistory=(ei,eo={})=>this.iApiHttpClient.request("/markets/exchange-rates/history",Object.assign({method:P6.GET,query:ei},eo)),this.getMarketAlertTriggerLogs=(ei,eo={})=>this.iApiHttpClient.request("/markets/triggers/alerts/logs",Object.assign({method:P6.GET,query:ei},eo)),this.getMarketAlertTriggers=(ei,eo={})=>this.iApiHttpClient.request("/markets/triggers/alerts",Object.assign({method:P6.GET,query:ei},eo)),this.getMarketAlertTriggersMarkets=(ei={})=>this.iApiHttpClient.request("/markets/triggers/alerts/markets",Object.assign({method:P6.GET},ei)),this.getMarketCap=(ei,eo={})=>this.iApiHttpClient.request("/markets/market-cap",Object.assign({method:P6.GET,query:ei},eo)),this.getMarketDataToken=(ei={})=>this.iApiHttpClient.request("/markets/equities/token",Object.assign({method:P6.GET},ei)),this.getMarketStatus=(ei={})=>this.iApiHttpClient.request("/markets/status",Object.assign({method:P6.GET},ei)),this.getPairOrderBook=(ei,eo)=>{var{pair:ea}=ei,eu=OF(ei,["pair"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/markets/${ea}/orderbook`,Object.assign({method:P6.GET,query:eu},eo))},this.getPairSpreads=(ei,eo)=>{var{pair:ea}=ei,eu=OF(ei,["pair"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/markets/${ea}/spreads`,Object.assign({method:P6.GET,query:eu},eo))},this.getPairTickHistory=(ei,eo)=>{var{pair:ea}=ei,eu=OF(ei,["pair"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/markets/${ea}/ticker/history`,Object.assign({method:P6.GET,query:eu},eo))},this.getPairTicker=(ei,eo={})=>this.iApiHttpClient.request(`/markets/${ei}/ticker`,Object.assign({method:P6.GET},eo)),this.getPairTickers=(ei={})=>this.iApiHttpClient.request("/markets/tickers",Object.assign({method:P6.GET},ei)),this.getPairTradeCount=(ei,eo)=>{var{pair:ea}=ei,eu=OF(ei,["pair"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/markets/${ea}/trade-count`,Object.assign({method:P6.GET,query:eu},eo))},this.getPairVolatility=(ei,eo)=>{var{pair:ea}=ei,eu=OF(ei,["pair"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/markets/${ea}/volatility`,Object.assign({method:P6.GET,query:eu},eo))},this.getPairVolumes=(ei,eo)=>{var{pair:ea}=ei,eu=OF(ei,["pair"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/markets/${ea}/volumes`,Object.assign({method:P6.GET,query:eu},eo))},this.getPairVolumesWindow=(ei,eo={})=>this.iApiHttpClient.request("/markets/pairs/volumes/window",Object.assign({method:P6.GET,query:ei},eo)),this.getPairs=(ei,eo={})=>this.iApiHttpClient.request("/markets",Object.assign({method:P6.GET,query:ei},eo)),this.getPairsVolatility=(ei,eo={})=>this.iApiHttpClient.request("/markets/volatility",Object.assign({method:P6.GET,query:ei},eo)),this.getTakerVolume=(ei,eo)=>{var{pair:ea}=ei,eu=OF(ei,["pair"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/markets/${ea}/takervolume`,Object.assign({method:P6.GET,query:eu},eo))},this.getUserAssetInfo=(ei,eo={})=>this.iApiHttpClient.request("/markets/assets/user",Object.assign({method:P6.GET,query:ei},eo)),this.getUserPairs=(ei,eo={})=>this.iApiHttpClient.request("/markets/user",Object.assign({method:P6.GET,query:ei},eo)),this.setMarketAlertTriggerState=(ei,eo={})=>this.iApiHttpClient.request("/markets/triggers/alerts/state",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Triggers})},eo)),this.updateMarketAlertTrigger=(ei,eo={})=>this.iApiHttpClient.request("/markets/triggers/alerts",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Triggers})},eo)),this.iApiHttpClient=ei}}class OU{constructor(ei){this.getOnboardingMetadata=(ei={})=>this.iApiHttpClient.request("/meta/onboarding",Object.assign({method:P6.GET},ei)),this.initialData=(ei={})=>this.iApiHttpClient.request("/meta",Object.assign({method:P6.GET},ei)),this.metaHealth=(ei={})=>this.iApiHttpClient.request("/meta/health",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}var Oz=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class OG{constructor(ei){this.acceptNftOffer=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/offer/accept",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.addWeb3Asset=(ei,eo={})=>this.iApiHttpClient.request(`/nft/token/${ei}/add-web3-asset`,Object.assign({method:P6.POST,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Nft})},eo)),this.addWeb3Wallet=(ei,eo={})=>this.iApiHttpClient.request("/nft/web3wallet",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Nft})},eo)),this.cancelAuction=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction",Object.assign({method:P6.DELETE,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.cancelBid=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/bid",Object.assign({method:P6.DELETE,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.cancelNftQuote=(ei,eo={})=>this.iApiHttpClient.request("/nft/quote",Object.assign({method:P6.DELETE,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.cancelOffer=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/offer",Object.assign({method:P6.DELETE,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.counterNftOffer=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/offer/counter",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.createAuction=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.deleteWeb3Wallet=(ei,eo={})=>this.iApiHttpClient.request(`/nft/web3wallet/${ei}`,Object.assign({method:P6.DELETE,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Nft})},eo)),this.getAuctionTrades=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/trades",Object.assign({method:P6.GET,query:ei},eo)),this.getAuctions=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction",Object.assign({method:P6.GET,query:ei},eo)),this.getBids=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/bids",Object.assign({method:P6.GET,query:ei},eo)),this.getCollection=(ei,eo)=>{var{collectionId:ea}=ei,eu=Oz(ei,["collectionId"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/nft/collection/${ea}`,Object.assign({method:P6.GET,query:eu},eo))},this.getCollectionTrades=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/collection/trades",Object.assign({method:P6.GET,query:ei},eo)),this.getCreator=(ei,eo={})=>this.iApiHttpClient.request(`/nft/creator/${ei}`,Object.assign({method:P6.GET},eo)),this.getNft=(ei,eo)=>{var{nftId:ea}=ei,eu=Oz(ei,["nftId"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/nft/token/${ea}`,Object.assign({method:P6.GET,query:eu},eo))},this.getNftProvenance=(ei,eo)=>{var{nftId:ea}=ei,eu=Oz(ei,["nftId"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/nft/token/${ea}/provenance`,Object.assign({method:P6.GET,query:eu},eo))},this.getNftQuotes=(ei,eo={})=>this.iApiHttpClient.request("/nft/quotes",Object.assign({method:P6.GET,query:ei},eo)),this.getNftSocialId=(ei={})=>this.iApiHttpClient.request("/nft/user/socialid",Object.assign({method:P6.GET},ei)),this.getNftWallet=(ei,eo={})=>this.iApiHttpClient.request("/nft/wallet",Object.assign({method:P6.GET,query:ei},eo)),this.getOffers=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/offers",Object.assign({method:P6.GET,query:ei},eo)),this.getPrivateOffers=(ei,eo={})=>this.iApiHttpClient.request("/nft/private/offers",Object.assign({method:P6.GET,query:ei},eo)),this.getUserAuctionTrades=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/trades/user",Object.assign({method:P6.GET,query:ei},eo)),this.getUserAuctions=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/user",Object.assign({method:P6.GET,query:ei},eo)),this.getUserBids=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/bids/user",Object.assign({method:P6.GET,query:ei},eo)),this.getUserBidsOffersTotal=(ei={})=>this.iApiHttpClient.request("/nft/getUserBidsOffersTotal",Object.assign({method:P6.GET},ei)),this.getUserClaims=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/claims/user",Object.assign({method:P6.GET,query:ei},eo)),this.getUserOffers=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/offers/user",Object.assign({method:P6.GET,query:ei},eo)),this.linkAccount=(ei,eo={})=>this.iApiHttpClient.request("/nft/linked-account",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Nft})},eo)),this.listBlockchains=(ei={})=>this.iApiHttpClient.request("/nft/blockchain",Object.assign({method:P6.GET},ei)),this.listCollections=(ei,eo={})=>this.iApiHttpClient.request("/nft/collection",Object.assign({method:P6.GET,query:ei},eo)),this.listCreators=(ei,eo={})=>this.iApiHttpClient.request("/nft/creator",Object.assign({method:P6.GET,query:ei},eo)),this.listLinkedAccounts=(ei,eo={})=>this.iApiHttpClient.request("/nft/linked-account",Object.assign({method:P6.GET,query:ei},eo)),this.listNftTransactions=(ei,eo={})=>this.iApiHttpClient.request("/nft/transaction",Object.assign({method:P6.GET,query:ei},eo)),this.listNfts=(ei,eo={})=>this.iApiHttpClient.request("/nft/token",Object.assign({method:P6.GET,query:ei},eo)),this.listWeb3Wallets=(ei={})=>this.iApiHttpClient.request("/nft/web3wallet",Object.assign({method:P6.GET},ei)),this.modifyAuction=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.placeBid=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/bid",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.placeClaim=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/claim",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.placeNftQuote=(ei,eo={})=>this.iApiHttpClient.request("/nft/quote",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.placeOffer=(ei,eo={})=>this.iApiHttpClient.request("/nft/auction/offer",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.unlinkAccount=(ei,eo={})=>this.iApiHttpClient.request("/nft/linked-account",Object.assign({method:P6.DELETE,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Nft})},eo)),this.updateWeb3Wallet=(ei,eo={})=>this.iApiHttpClient.request("/nft/web3wallet",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Nft})},eo)),this.vendorToken=(ei,eo={})=>this.iApiHttpClient.request("/nft/vendor_token",Object.assign({method:P6.GET,query:ei},eo)),this.verifyLinkingCode=(ei,eo={})=>this.iApiHttpClient.request("/nft/verify-link-code",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.iApiHttpClient=ei}}class OV{constructor(ei){this.getUserNotificationPreferences=(ei,eo={})=>this.iApiHttpClient.request("/notifications/preferences",Object.assign({method:P6.GET,query:ei},eo)),this.updateUserNotificationPreference=(ei,eo={})=>this.iApiHttpClient.request("/notifications/preferences",Object.assign({method:P6.PATCH,body:ei,type:P8.Json},eo)),this.updateVolatilityAlertsSubscription=(ei,eo={})=>this.iApiHttpClient.request("/notifications/alerts/volatility",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.iApiHttpClient=ei}}var Oq=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class OH{constructor(ei){this.cancelOrder=(ei,eo,ea={})=>this.iApiHttpClient.request(`/orders/${ei}`,Object.assign({method:P6.DELETE,body:eo,type:P8.Json},ea)),this.cancelOrders=(ei,eo={})=>this.iApiHttpClient.request("/orders",Object.assign({method:P6.DELETE,body:ei,type:P8.Json},eo)),this.createOrder=(ei,eo={})=>this.iApiHttpClient.request("/orders",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.createOrderBatch=(ei,eo={})=>this.iApiHttpClient.request("/orders/batch",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.editOrder=(ei,eo={})=>this.iApiHttpClient.request("/orders",Object.assign({method:P6.PUT,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Trade})},eo)),this.getClosedOrders=(ei,eo={})=>this.iApiHttpClient.request("/orders/closed",Object.assign({method:P6.GET,query:ei},eo)),this.getOpenOrders=(ei,eo={})=>this.iApiHttpClient.request("/orders/open",Object.assign({method:P6.GET,query:ei},eo)),this.getOrderHistory=(ei,eo={})=>this.iApiHttpClient.request("/orders/history",Object.assign({method:P6.GET,query:ei},eo)),this.readOrder=(ei,eo)=>{var{orderId:ea}=ei,eu=Oq(ei,["orderId"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/orders/${ea}`,Object.assign({method:P6.GET,query:eu},eo))},this.iApiHttpClient=ei}}class OW{constructor(ei){this.checkOtcClient=(ei={})=>this.iApiHttpClient.request("/otc/client",Object.assign({method:P6.GET},ei)),this.createOtcQuoteRequest=(ei,eo={})=>this.iApiHttpClient.request("/otc/quotes",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Otc})},eo)),this.getOtcActiveQuotes=(ei={})=>this.iApiHttpClient.request("/otc/quotes",Object.assign({method:P6.GET},ei)),this.getOtcDashboardOverview=(ei={})=>this.iApiHttpClient.request("/otc/overview",Object.assign({method:P6.GET},ei)),this.getOtcExportHistory=(ei={})=>this.iApiHttpClient.request("/otc/quotes/history/exports",Object.assign({method:P6.GET},ei)),this.getOtcExposures=(ei={})=>this.iApiHttpClient.request("/otc/exposures",Object.assign({method:P6.GET},ei)),this.getOtcHistoricalQuotes=(ei={})=>this.iApiHttpClient.request("/otc/quotes/history",Object.assign({method:P6.GET},ei)),this.getOtcOptionsTradeHistory=(ei,eo={})=>this.iApiHttpClient.request("/otc/trade-history/options",Object.assign({method:P6.GET,query:ei},eo)),this.getOtcPairs=(ei={})=>this.iApiHttpClient.request("/otc/pairs",Object.assign({method:P6.GET},ei)),this.getOtcSpotTradeHistory=(ei,eo={})=>this.iApiHttpClient.request("/otc/trade-history/spot",Object.assign({method:P6.GET,query:ei},eo)),this.requestOtcEmailExport=(ei,eo={})=>this.iApiHttpClient.request("/otc/quotes/history/exports",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Otc})},eo)),this.updateOtcQuote=(ei,eo,ea={})=>this.iApiHttpClient.request(`/otc/quotes/${ei}`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Otc})},ea)),this.iApiHttpClient=ei}}class OY{constructor(ei){this.approvePeerToPeerTransfer=(ei,eo={})=>this.iApiHttpClient.request("/p2p/transfers/approve",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.createPeerToPeerTransfer=(ei,eo={})=>this.iApiHttpClient.request("/p2p/transfers",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Transfers})},eo)),this.getPeerToPeerLimit=(ei,eo={})=>this.iApiHttpClient.request("/p2p/limits",Object.assign({method:P6.GET,query:ei},eo)),this.getPeerToPeerRecipient=(ei,eo={})=>this.iApiHttpClient.request("/p2p/recipients/check",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.iApiHttpClient=ei}}class OZ{constructor(ei){this.getParachainAssets=(ei={})=>this.iApiHttpClient.request("/parachain/assets",Object.assign({method:P6.GET},ei)),this.getParachainTransactions=(ei={})=>this.iApiHttpClient.request("/parachain/transactions",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}var O$=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class OJ{constructor(ei){this.getPortfolioDetail=(ei={})=>this.iApiHttpClient.request("/portfolio/detail",Object.assign({method:P6.GET},ei)),this.getPortfolioSummary=(ei={})=>this.iApiHttpClient.request("/portfolio/summary",Object.assign({method:P6.GET},ei)),this.getPortfolioTransactionId=(ei,eo)=>{var{transactionId:ea}=ei,eu=O$(ei,["transactionId"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/portfolio/transactions/${ea}`,Object.assign({method:P6.GET,query:eu},eo))},this.getPortfolioTransactions=(ei,eo={})=>this.iApiHttpClient.request("/portfolio/transactions",Object.assign({method:P6.GET,query:ei},eo)),this.iApiHttpClient=ei}}class OQ{constructor(ei){this.getOpenPositions=(ei,eo={})=>this.iApiHttpClient.request("/positions",Object.assign({method:P6.GET,query:ei},eo)),this.iApiHttpClient=ei}}class OX{constructor(ei){this.getPowChallenge=(ei={})=>this.iApiHttpClient.request("/pow",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class O0{constructor(ei){this.deletePreferences=(ei,eo={})=>this.iApiHttpClient.request("/preferences",Object.assign({method:P6.DELETE,query:ei},eo)),this.getPreferences=(ei,eo={})=>this.iApiHttpClient.request("/preferences",Object.assign({method:P6.GET,query:ei},eo)),this.updatePreferences=(ei,eo={})=>this.iApiHttpClient.request("/preferences",Object.assign({method:P6.PUT,body:ei,type:P8.Json},eo)),this.iApiHttpClient=ei}}class O1{constructor(ei){this.downloadReport=(ei,eo={})=>this.iApiHttpClient.requestCustom(`/reports/${ei}`,Object.assign({method:P6.GET},eo)),this.listReports=(ei={})=>this.iApiHttpClient.request("/reports",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class O2{constructor(ei){this.getEnrolledReferralPlan=(ei={})=>this.iApiHttpClient.request("/rewards/referrals/enrolled",Object.assign({method:P6.GET},ei)),this.getReferralEligibility=(ei,eo={})=>this.iApiHttpClient.request("/rewards/referrals/eligibility",Object.assign({method:P6.GET,query:ei},eo)),this.getReferralPlan=(ei,eo={})=>this.iApiHttpClient.request(`/rewards/referrals/code/${ei}`,Object.assign({method:P6.GET},eo)),this.listEligibleReferralPlans=(ei,eo={})=>this.iApiHttpClient.request("/rewards/referrals",Object.assign({method:P6.GET,query:ei},eo)),this.iApiHttpClient=ei}}class O3{constructor(ei){this.getFuturesApiSession=(ei,eo={})=>this.iApiHttpClient.request("/session/futures",Object.assign({method:P6.GET,query:ei},eo)),this.getTradeApiSession=(ei,eo={})=>this.iApiHttpClient.request("/session/trade",Object.assign({method:P6.GET,query:ei},eo)),this.getTradeWebSocketsToken=(ei={})=>this.iApiHttpClient.request("/session/trade-websocket",Object.assign({method:P6.GET},ei)),this.initSession=(ei={})=>this.iApiHttpClient.request("/session",Object.assign({method:P6.GET},ei)),this.login=(ei,eo={})=>this.iApiHttpClient.request("/session",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.logout=(ei={})=>this.iApiHttpClient.request("/session",Object.assign({method:P6.DELETE},ei)),this.sessionActivity=(ei={})=>this.iApiHttpClient.request("/session/activity",Object.assign({method:P6.POST,csrf:Object.assign(Object.assign({},ei.csrf),{contextId:uz.G8.Sessionextend})},ei)),this.sessionExpiration=(ei={})=>this.iApiHttpClient.request("/session/expiration",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class O5{constructor(ei){this.deleteAllSessions=(ei,eo={})=>this.iApiHttpClient.request("/sessions",Object.assign({method:P6.DELETE,query:ei},eo)),this.deleteSession=(ei,eo={})=>this.iApiHttpClient.request(`/sessions/${ei}`,Object.assign({method:P6.DELETE},eo)),this.listSessions=(ei={})=>this.iApiHttpClient.request("/sessions",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class O4{constructor(ei){this.getSlid=(ei={})=>this.iApiHttpClient.request("/slid",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class O6{constructor(ei){this.getStakingAssetInfo=(ei={})=>this.iApiHttpClient.request("/staking/assets",Object.assign({method:P6.GET},ei)),this.getStakingAssetInfoPub=(ei,eo={})=>this.iApiHttpClient.request("/staking/assets-pub",Object.assign({method:P6.GET,query:ei},eo)),this.getStakingBalances=(ei,eo={})=>this.iApiHttpClient.request("/staking/balances",Object.assign({method:P6.GET,query:ei},eo)),this.getStakingLedger=(ei={})=>this.iApiHttpClient.request("/staking/transactions",Object.assign({method:P6.GET},ei)),this.getStakingPendingDeposits=(ei={})=>this.iApiHttpClient.request("/staking/pending",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class O8{constructor(ei){this.getAddressAutocomplete=(ei,eo={})=>this.iApiHttpClient.request("/third-party/address-autocomplete",Object.assign({method:P6.GET,query:ei},eo)),this.getAddressDetail=(ei,eo={})=>this.iApiHttpClient.request("/third-party/address-detail",Object.assign({method:P6.GET,query:ei},eo)),this.getAddressPredictions=(ei,eo={})=>this.iApiHttpClient.request("/third-party/address-predictions",Object.assign({method:P6.GET,query:ei},eo)),this.getPlaidToken=(ei={})=>this.iApiHttpClient.request("/third-party/plaid-token",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class O9{constructor(ei){this.getTierTableInfo=(ei,eo={})=>this.iApiHttpClient.request("/tiers",Object.assign({method:P6.GET,query:ei},eo)),this.iApiHttpClient=ei}}class O7{constructor(ei){this.registerDeviceToken=(ei,eo={})=>this.iApiHttpClient.request("/token/register",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.iApiHttpClient=ei}}class In{constructor(ei){this.executePtlQuote=(ei,eo,ea={})=>this.iApiHttpClient.request(`/trades/ptl/${ei}`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Ptl})},ea)),this.getBulkPtlQuoteLimits=(ei,eo={})=>this.iApiHttpClient.request("/trades/ptl/bulk/quotes/limits",Object.assign({method:P6.GET,query:ei},eo)),this.getProspectivePtlQuote=(ei,eo={})=>this.iApiHttpClient.request("/trades/ptl/quotes/prospective",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Ptl})},eo)),this.getPtlAssets=(ei={})=>this.iApiHttpClient.request("/trades/ptl/assets/list",Object.assign({method:P6.GET},ei)),this.getPtlQuoteLimits=(ei,eo={})=>this.iApiHttpClient.request("/trades/ptl/quotes/limits",Object.assign({method:P6.GET,query:ei},eo)),this.getTrades=(ei,eo={})=>this.iApiHttpClient.request("/trades",Object.assign({method:P6.GET,query:ei},eo)),this.getTradesBalance=(ei,eo={})=>this.iApiHttpClient.request("/trades/balance",Object.assign({method:P6.GET,query:ei},eo)),this.getTradesHistory=(ei,eo={})=>this.iApiHttpClient.request("/trades/history",Object.assign({method:P6.GET,query:ei},eo)),this.getTradesStats=(ei={})=>this.iApiHttpClient.request("/trades/stats",Object.assign({method:P6.GET},ei)),this.getTradesVolume=(ei,eo={})=>this.iApiHttpClient.request("/trades/volume",Object.assign({method:P6.GET,query:ei},eo)),this.newBulkPtlQuote=(ei,eo={})=>this.iApiHttpClient.request("/trades/ptl/bulk",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Ptl})},eo)),this.newPtlQuote=(ei,eo={})=>this.iApiHttpClient.request("/trades/ptl",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Ptl})},eo)),this.statusBulkPtlQuote=(ei,eo={})=>this.iApiHttpClient.request(`/trades/ptl/bulk/${ei}`,Object.assign({method:P6.GET},eo)),this.statusPtlQuote=(ei,eo={})=>this.iApiHttpClient.request(`/trades/ptl/${ei}`,Object.assign({method:P6.GET},eo)),this.iApiHttpClient=ei}}class Ii{constructor(ei){this.listCustodyTransfers=(ei,eo={})=>this.iApiHttpClient.request("/transfers/custody",Object.assign({method:P6.GET,query:ei},eo)),this.iApiHttpClient=ei}}class Io{constructor(ei){this.getUserToken=(ei,eo={})=>this.iApiHttpClient.request("/users/token",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Subaccounts})},eo)),this.iApiHttpClient=ei}}class Ia{constructor(ei){this.getCreditLines=(ei={})=>this.iApiHttpClient.request("/vip/creditlines",Object.assign({method:P6.GET},ei)),this.getVipAccountManagers=(ei={})=>this.iApiHttpClient.request("/vip/managers",Object.assign({method:P6.GET},ei)),this.getVipUsage=(ei={})=>this.iApiHttpClient.request("/vip/usage",Object.assign({method:P6.GET},ei)),this.iApiHttpClient=ei}}class Il{constructor(ei){this.getBalancesByWallet=(ei,eo={})=>this.iApiHttpClient.request("/wallets/balances",Object.assign({method:P6.GET,query:ei},eo)),this.getWalletTransferInfo=(ei,eo={})=>this.iApiHttpClient.request(`/wallets/transfer/${ei}/info`,Object.assign({method:P6.GET},eo)),this.getWalletTransferStatuses=(ei,eo={})=>this.iApiHttpClient.request(`/wallets/transfer/${ei}/statuses`,Object.assign({method:P6.GET},eo)),this.walletTransfer=(ei,eo={})=>this.iApiHttpClient.request("/wallets/transfer",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Transfers})},eo)),this.iApiHttpClient=ei}}class Iu{constructor(ei){this.getWeb3SignatureRequest=(ei,eo={})=>this.iApiHttpClient.request("/web3/signature-request",Object.assign({method:P6.GET,query:ei},eo)),this.iApiHttpClient=ei}}var Ic=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};class Id{constructor(ei){this.approveWithdrawalAddress=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/addresses/approve",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.cancelWithdrawal=(ei,eo)=>{var{refId:ea}=ei,eu=Ic(ei,["refId"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/withdrawals/${ea}`,Object.assign({method:P6.DELETE,query:eu},eo))},this.createInteracWithdrawalRequest=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/interac/request",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Withdraw})},eo)),this.createWithdrawal=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Withdraw})},eo)),this.createWithdrawalAddress=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/addresses",Object.assign({method:P6.POST,body:ei,type:P8.Json,csrf:Object.assign(Object.assign({},eo.csrf),{contextId:uz.G8.Withdraw})},eo)),this.decodeWithdrawalRequest=(ei,eo,ea,eu,ec={})=>this.iApiHttpClient.request(`/withdrawals/decode/${eo}/${ea}/${eu}`,Object.assign({method:P6.GET},ec)),this.deleteWithdrawalAddress=(ei,eo={})=>this.iApiHttpClient.request(`/withdrawals/addresses/${ei}`,Object.assign({method:P6.DELETE},eo)),this.getPublicWithdrawalMethods=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/public/methods",Object.assign({method:P6.GET,query:ei},eo)),this.getWithdrawalFee=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/fee",Object.assign({method:P6.GET,query:ei},eo)),this.getWithdrawalMethods=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/methods",Object.assign({method:P6.GET,query:ei},eo)),this.getWithdrawalStatus=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/statuses",Object.assign({method:P6.GET,query:ei},eo)),this.getWithdrawalsLimits=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/limits",Object.assign({method:P6.GET,query:ei},eo)),this.listFundingWithdrawalHolds=(ei={})=>this.iApiHttpClient.request("/withdrawals/holds",Object.assign({method:P6.GET},ei)),this.listWithdrawalAddresses=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/addresses",Object.assign({method:P6.GET,query:ei},eo)),this.updateWithdrawalAddress=(ei,eo,ea={})=>this.iApiHttpClient.request(`/withdrawals/addresses/${ei}`,Object.assign({method:P6.PUT,body:eo,type:P8.Json,csrf:Object.assign(Object.assign({},ea.csrf),{contextId:uz.G8.Withdraw})},ea)),this.validateWithdrawalAddress=(ei,eo={})=>this.iApiHttpClient.request("/withdrawals/addresses/validate",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.withdrawalMethodsInfo=(ei,eo)=>{var{asset:ea}=ei,eu=Ic(ei,["asset"]);return void 0===eo&&(eo={}),this.iApiHttpClient.request(`/withdrawals/methods/${ea}`,Object.assign({method:P6.GET,query:eu},eo))},this.iApiHttpClient=ei}}class If{constructor(ei){this.getZendeskJwt=(ei,eo={})=>this.iApiHttpClient.request("/zendesk/jwt",Object.assign({method:P6.GET,query:ei},eo)),this.openZendeskRequest=(ei,eo={})=>this.iApiHttpClient.request("/zendesk/request",Object.assign({method:P6.POST,body:ei,type:P8.Json},eo)),this.iApiHttpClient=ei}}class Ih{constructor(ei){this.KWEB_VERSIONS={gateway:"0.0.0-trunk-81eaa487",accounts:"1.6.0-ceeb1c10",kyc:"0.0.0-trunk",funds:"0.0.0-trunk-kweb-funds-6f4f005f",nft:"0.0.0-kweb-nft-internal+trunk-c98165c5",earnings:"1.26.0-61bd7b8f",reports:"1.1.1-bb053395",rewards:"0.0.0-trunk-6c6f123c",custody:"0.7.0",trading:"0.0.0-trunk-e4ec42a4",simpletrading:"0.0.0-trunk-9839a78b",portfolio:"0.0.0-trunk-362b58a5",notifications:"0.0.0-trunk-40128914"};let eo=this.iApiHttpClient=new Oa(ei);this.account=new Ol(eo),this.audits=new Ou(eo),this.basel=new Oc(eo),this.bridge=new Od(eo),this.challenge=new Of(eo),this.consumerScheduler=new Op(eo),this.contactLists=new Om(eo),this.credentials=new Oy(eo),this.csrf=new Ov(eo),this.custody=new Ow(eo),this.deposits=new OS(eo),this.devices=new OE(eo),this.documents=new Ox(eo),this.domains=new OA(eo),this.earn=new OT(eo),this.email=new Ok(eo),this.equities=new OC(eo),this.events=new OO(eo),this.exports=new OI(eo),this.futures=new OP(eo),this.instant=new OD(eo),this.kyc=new ON(eo),this.ledgers=new Oj(eo),this.locale=new OR(eo),this.margin=new OL(eo),this.markets=new OB(eo),this.meta=new OU(eo),this.nft=new OG(eo),this.notifications=new OV(eo),this.orders=new OH(eo),this.otc=new OW(eo),this.p2P=new OY(eo),this.parachain=new OZ(eo),this.portfolio=new OJ(eo),this.positions=new OQ(eo),this.pow=new OX(eo),this.preferences=new O0(eo),this.reports=new O1(eo),this.rewards=new O2(eo),this.session=new O3(eo),this.sessions=new O5(eo),this.slid=new O4(eo),this.staking=new O6(eo),this.thirdParty=new O8(eo),this.tiers=new O9(eo),this.token=new O7(eo),this.trades=new In(eo),this.transfers=new Ii(eo),this.users=new Io(eo),this.vip=new Ia(eo),this.wallets=new Il(eo),this.web3=new Iu(eo),this.withdrawals=new Id(eo),this.zendesk=new If(eo)}getConfig(){return this.iApiHttpClient.getConfig()}setConfig(...ei){return this.iApiHttpClient.setConfig(...ei)}addRequestListener(...ei){return this.iApiHttpClient.addRequestListener(...ei)}deleteRequestListener(...ei){return this.iApiHttpClient.deleteRequestListener(...ei)}}var Ip=ea(52458);let Ig=ei=>{let{client:eo,children:ea,onRequest:eu}=ei;return(0,eb.useEffect)(()=>(eu&&eo.addRequestListener(eu),()=>{eu&&eo.deleteRequestListener(eu)}),[eo,eu]),eb.createElement(Ip.o.Provider,{value:eo},ea)};var Im=ea(73834);let Iy=ei=>"string"==typeof ei&&"None"!==ei?(0,dw.$m)(ei,["lid","email","key","e-mail"]).toString():ei,Iv=async ei=>{if(!ei||!(ei instanceof Response))return{};try{return{response:{ok:ei.ok,redirected:ei.redirected,status:ei.status,statusText:ei.statusText,type:ei.type,url:ei.url,headers:JSON.stringify(Object.fromEntries(Array.from(ei.headers)))},responseText:await ei.text()}}catch(ei){return{}}},Ib=async ei=>{var eo,ea,eu,ec,ed,ef,eh,eg;let{error:em,track:eb}=ei,{request:ew,data:e_}=em,eS=ew.query&&Object.keys(ew.query).length>0?new URLSearchParams(ew.query).toString():"None",eE=em.kwebErrors&&em.kwebErrors[0],eA=null!==(eu=null==eE?void 0:eE.type)&&void 0!==eu?eu:"Missing Error Type",eT=null!==(ec=null==eE?void 0:eE.errorClass)&&void 0!==ec?ec:"Missing Error Class",eC=null!==(ed=null==eE?void 0:eE.msg)&&void 0!==ed?ed:"Missing Error Message",eO=null!==(ef=null===(eo=ew.operation)||void 0===eo?void 0:eo.route)&&void 0!==ef?ef:em.response.url,eI={apiClient:"kweb-request",apiMethod:null!==(eh=null===(ea=ew.fetch.options.method)||void 0===ea?void 0:ea.toLowerCase())&&void 0!==eh?eh:"",apiPath:ew.path,apiQuery:eS,apiStatus:em.response.status,apiErrorType:eA,apiErrorClass:eT,apiErrorMessage:eC,apiTraceID:null!==(eg=em.response.headers.get("x-trace-id"))&&void 0!==eg?eg:""},eP=eA||eT;eb({eventType:"UserAction",eventName:"API Error Response",params:{...eI,apiQuery:Iy(eS)}});let eD="API Error: ".concat(eI.apiMethod," ").concat(eO," | status: ").concat(em.response.status).concat(eP?" | ".concat(eP):""),{response:eN,responseText:eM}=await Iv(em.response);(0,ek.uT)(eD,{level:"error",tags:eI,extra:{request:ew,data:e_,kwebErrors:em.kwebErrors,response:eN,responseText:eM}})},Iw=ei=>{let{response:eo,type:ea}=ei;return!!(eo.url.includes("/api/internal/session/expiration")&&"No session"===ea||eo.url.includes("/api/internal/trades/ptl/assets/list")&&"InvalidParameter"===ea||eo.url.match("/api/internal/documents")&&"Settings locked"===ea||eo.url.includes("/api/internal/slid")&&"400"===eo.statusText)};Ci({config:{segmentation:(0,Im.y)(),requestDefaults:{credentials:"include"}}});let I_=new Ih({requestDefaults:{credentials:"include"},segmentation:(0,Im.y)(),sentryLogger:{captureMessage:ek.uT,ignoreErrors:ei=>Iw({response:ei.response,type:ei.type})}}),IS=ei=>{let{children:eo}=ei,ea=(0,kB.C)(),{track:eu}=(0,EG.Sl)(),[ec,ed]=(0,eb.useState)(!1);return(0,eb.useEffect)(()=>{var ei;let eo=null!==(ei=null==ea?void 0:ea.internalApi)&&void 0!==ei?ei:null==ea?void 0:ea.spot;window.__basePath=eo,Co({config:{domain:eo}});let ec=Cu({listener:ei=>{let{error:eo}=ei;if(Cd(eo)){var ea;if(Iw({response:eo.response,type:null===(ea=eo.kwebErrors)||void 0===ea?void 0:ea[0].type}))return;Ib({error:eo,track:eu})}}});return I_.setConfig(ei=>({...ei,domain:eo,sentryLogger:{...ei.sentryLogger,captureMessage:(ei,eo)=>{let{tags:ea={}}=eo;return eu({eventType:"UserAction",eventName:Or,params:{...ea,apiQuery:Iy(ea.apiQuery)}}),(0,ek.uT)(ei,eo)}}})),ed(!0),()=>{ec()}},[ea,eu]),ec?(0,em.jsx)(Ig,{client:I_,children:eo}):null},IE=ei=>{let eo=(0,eA.useRouter)(),[ea,eu]=(0,eb.useState)(!1);return(0,eb.useEffect)(()=>{eo.isReady&&eu(!0)},[eo,eu]),ea?(0,em.jsx)(IS,{...ei}):null};function Ix(ei){function eo(ei,eo){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=ei,this.code=eo}return eo.prototype=Error(),eo.prototype.name=ei,eo.prototype.constructor=eo,eo}let IA=Ix("LaunchDarklyUnexpectedResponseError"),IT=Ix("LaunchDarklyInvalidEnvironmentIdError"),Ik=Ix("LaunchDarklyInvalidUserError"),IC=Ix("LaunchDarklyInvalidEventKeyError"),IO=Ix("LaunchDarklyInvalidArgumentError"),II=Ix("LaunchDarklyFlagFetchError");for(var IP={LDUnexpectedResponseError:IA,LDInvalidEnvironmentIdError:IT,LDInvalidUserError:Ik,LDInvalidEventKeyError:IC,LDInvalidArgumentError:IO,LDInvalidDataError:Ix("LaunchDarklyInvalidDataError"),LDFlagFetchError:II,isHttpErrorRecoverable:function(ei){return!(ei>=400&&ei<500)||400===ei||408===ei||429===ei}},ID=function(ei){var eo=IU(ei),ea=eo[0],eu=eo[1];return 3*(ea+eu)/4-eu},IN=function(ei){var eo,ea,eu,ec,ed=IU(ei),ef=ed[0],eh=ed[1],eg=new IL((eo=0,3*(ef+(ea=eh))/4-ea)),em=0,eb=eh>0?ef-4:ef;for(ec=0;ec>16&255,eg[em++]=eu>>8&255,eg[em++]=255&eu;return 2===eh&&(eu=IR[ei.charCodeAt(ec)]<<2|IR[ei.charCodeAt(ec+1)]>>4,eg[em++]=255&eu),1===eh&&(eu=IR[ei.charCodeAt(ec)]<<10|IR[ei.charCodeAt(ec+1)]<<4|IR[ei.charCodeAt(ec+2)]>>2,eg[em++]=eu>>8&255,eg[em++]=255&eu),eg},IM=function(ei){for(var eo,ea=ei.length,eu=ea%3,ec=[],ed=16383,ef=0,eh=ea-eu;efeh?eh:ef+ed));return 1===eu?ec.push(Ij[(eo=ei[ea-1])>>2]+Ij[eo<<4&63]+"=="):2===eu&&ec.push(Ij[(eo=(ei[ea-2]<<8)+ei[ea-1])>>10]+Ij[eo>>4&63]+Ij[eo<<2&63]+"="),ec.join("")},Ij=[],IR=[],IL="undefined"!=typeof Uint8Array?Uint8Array:Array,IF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",IB=0;IB<64;++IB)Ij[IB]=IF[IB],IR[IF.charCodeAt(IB)]=IB;function IU(ei){var eo=ei.length;if(eo%4>0)throw Error("Invalid string. Length must be a multiple of 4");var ea=ei.indexOf("=");return-1===ea&&(ea=eo),[ea,ea===eo?0:4-ea%4]}function Iz(ei,eo,ea){for(var eu,ec=[],ed=eo;ed>18&63]+Ij[eu>>12&63]+Ij[eu>>6&63]+Ij[63&eu]);return ec.join("")}IR["-".charCodeAt(0)]=62,IR["_".charCodeAt(0)]=63;var IG={byteLength:ID,toByteArray:IN,fromByteArray:IM},Iq=Array.isArray,IH=Object.keys,IW=Object.prototype.hasOwnProperty,IK=function ei(eo,ea){if(eo===ea)return!0;if(eo&&ea&&"object"==typeof eo&&"object"==typeof ea){var eu,ec,ed,ef=Iq(eo),eh=Iq(ea);if(ef&&eh){if((ec=eo.length)!=ea.length)return!1;for(eu=ec;0!=eu--;)if(!ei(eo[eu],ea[eu]))return!1;return!0}if(ef!=eh)return!1;var eg=eo instanceof Date,em=ea instanceof Date;if(eg!=em)return!1;if(eg&&em)return eo.getTime()==ea.getTime();var eb=eo instanceof RegExp,ew=ea instanceof RegExp;if(eb!=ew)return!1;if(eb&&ew)return eo.toString()==ea.toString();var e_=IH(eo);if((ec=e_.length)!==IH(ea).length)return!1;for(eu=ec;0!=eu--;)if(!IW.call(ea,e_[eu]))return!1;for(eu=ec;0!=eu--;)if(!ei(eo[ed=e_[eu]],ea[ed]))return!1;return!0}return eo!=eo&&ea!=ea};let IY=["key","ip","country","email","firstName","lastName","avatar","name"];function IZ(ei){let eo=unescape(encodeURIComponent(ei));return IG.fromByteArray(function(ei){let eo=[];for(let ea=0;ea0;){for(ec=[];ed>0;){let ei=ea.shift();if(!ei)break;(ed-=I$(JSON.stringify(ei)).length)<0&&ec.length>0?ea.unshift(ei):ec.push(ei)}ed=ei,eu.push(ec)}return eu},clone:function(ei){return JSON.parse(JSON.stringify(ei))},deepEquals:function(ei,eo){return IK(ei,eo)},extend:function(...ei){return ei.reduce((ei,eo)=>({...ei,...eo}),{})},getLDUserAgentString:function(ei){let eo=ei.version||"?";return ei.userAgent+"/"+eo},objectHasOwnProperty:IJ,onNextTick:function(ei){setTimeout(ei,0)},sanitizeContext:function(ei){let eo;return ei?(null!==ei.kind&&void 0!==ei.kind||IY.forEach(ea=>{let eu=ei[ea];void 0!==eu&&"string"!=typeof eu&&((eo=eo||{...ei})[ea]=String(eu))}),eo||ei):ei},transformValuesToVersionedValues:function(ei){let eo={};for(let ea in ei)IJ(ei,ea)&&(eo[ea]={value:ei[ea],version:0});return eo},transformVersionedValuesToValues:function(ei){let eo={};for(let ea in ei)IJ(ei,ea)&&(eo[ea]=ei[ea].value);return eo},wrapPromiseCallback:function(ei,eo){let ea=ei.then(ei=>(eo&&setTimeout(()=>{eo(null,ei)},0),ei),ei=>{if(!eo)return Promise.reject(ei);setTimeout(()=>{eo(ei,null)},0)});return eo?void 0:ea}},Da=new Uint8Array(16);function Du(){if(!Di&&!(Di="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Di(Da)}var Dc=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dd(ei){return"string"==typeof ei&&Dc.test(ei)}for(var Df,Dp,Dg=[],Dm=0;Dm<256;++Dm)Dg.push((Dm+256).toString(16).substr(1));function Dv(ei){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ea=(Dg[ei[eo+0]]+Dg[ei[eo+1]]+Dg[ei[eo+2]]+Dg[ei[eo+3]]+"-"+Dg[ei[eo+4]]+Dg[ei[eo+5]]+"-"+Dg[ei[eo+6]]+Dg[ei[eo+7]]+"-"+Dg[ei[eo+8]]+Dg[ei[eo+9]]+"-"+Dg[ei[eo+10]]+Dg[ei[eo+11]]+Dg[ei[eo+12]]+Dg[ei[eo+13]]+Dg[ei[eo+14]]+Dg[ei[eo+15]]).toLowerCase();if(!Dd(ea))throw TypeError("Stringified UUID is invalid");return ea}var Db=0,Dw=0;function D_(ei){if(!Dd(ei))throw TypeError("Invalid UUID");var eo,ea=new Uint8Array(16);return ea[0]=(eo=parseInt(ei.slice(0,8),16))>>>24,ea[1]=eo>>>16&255,ea[2]=eo>>>8&255,ea[3]=255&eo,ea[4]=(eo=parseInt(ei.slice(9,13),16))>>>8,ea[5]=255&eo,ea[6]=(eo=parseInt(ei.slice(14,18),16))>>>8,ea[7]=255&eo,ea[8]=(eo=parseInt(ei.slice(19,23),16))>>>8,ea[9]=255&eo,ea[10]=(eo=parseInt(ei.slice(24,36),16))/1099511627776&255,ea[11]=eo/4294967296&255,ea[12]=eo>>>24&255,ea[13]=eo>>>16&255,ea[14]=eo>>>8&255,ea[15]=255&eo,ea}function DS(ei,eo,ea){function eu(ei,eu,ec,ed){if("string"==typeof ei&&(ei=function(ei){ei=unescape(encodeURIComponent(ei));for(var eo=[],ea=0;ea>>9<<4)+1}function DA(ei,eo){var ea=(65535&ei)+(65535&eo);return(ei>>16)+(eo>>16)+(ea>>16)<<16|65535&ea}function DT(ei,eo,ea,eu,ec,ed){var ef,eh;return DA((ef=DA(DA(eo,ei),DA(eu,ed)))<<(eh=ec)|ef>>>32-eh,ea)}function Dk(ei,eo,ea,eu,ec,ed,ef){return DT(eo&ea|~eo&eu,ei,eo,ec,ed,ef)}function DC(ei,eo,ea,eu,ec,ed,ef){return DT(eo&eu|ea&~eu,ei,eo,ec,ed,ef)}function DO(ei,eo,ea,eu,ec,ed,ef){return DT(eo^ea^eu,ei,eo,ec,ed,ef)}function DI(ei,eo,ea,eu,ec,ed,ef){return DT(ea^(eo|~eu),ei,eo,ec,ed,ef)}function DD(ei,eo,ea,eu){switch(ei){case 0:return eo&ea^~eo&eu;case 1:case 3:return eo^ea^eu;case 2:return eo&ea^eo&eu^ea&eu}}function DN(ei,eo){return ei<>>32-eo}var DM=Object.freeze({__proto__:null,v1:function(ei,eo,ea){var eu=eo&&ea||0,ec=eo||Array(16),ed=(ei=ei||{}).node||Df,ef=void 0!==ei.clockseq?ei.clockseq:Dp;if(null==ed||null==ef){var eh=ei.random||(ei.rng||Du)();null==ed&&(ed=Df=[1|eh[0],eh[1],eh[2],eh[3],eh[4],eh[5]]),null==ef&&(ef=Dp=16383&(eh[6]<<8|eh[7]))}var eg=void 0!==ei.msecs?ei.msecs:Date.now(),em=void 0!==ei.nsecs?ei.nsecs:Dw+1,eb=eg-Db+(em-Dw)/1e4;if(eb<0&&void 0===ei.clockseq&&(ef=ef+1&16383),(eb<0||eg>Db)&&void 0===ei.nsecs&&(em=0),em>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Db=eg,Dw=em,Dp=ef;var ew=(1e4*(268435455&(eg+=122192928e5))+em)%4294967296;ec[eu++]=ew>>>24&255,ec[eu++]=ew>>>16&255,ec[eu++]=ew>>>8&255,ec[eu++]=255&ew;var e_=eg/4294967296*1e4&268435455;ec[eu++]=e_>>>8&255,ec[eu++]=255&e_,ec[eu++]=e_>>>24&15|16,ec[eu++]=e_>>>16&255,ec[eu++]=ef>>>8|128,ec[eu++]=255&ef;for(var eS=0;eS<6;++eS)ec[eu+eS]=ed[eS];return eo||Dv(ec)},v3:DS("v3",48,function(ei){if("string"==typeof ei){var eo=unescape(encodeURIComponent(ei));ei=new Uint8Array(eo.length);for(var ea=0;ea>5]>>>ec%32&255,ef=parseInt(eu.charAt(ed>>>4&15)+eu.charAt(15&ed),16);eo.push(ef)}return eo}(function(ei,eo){ei[eo>>5]|=128<>5]|=(255&ei[eu/8])<>>0;eO=eC,eC=ek,ek=DN(eT,30)>>>0,eT=eA,eA=eD}ea[0]=ea[0]+eA>>>0,ea[1]=ea[1]+eT>>>0,ea[2]=ea[2]+ek>>>0,ea[3]=ea[3]+eC>>>0,ea[4]=ea[4]+eO>>>0}return[ea[0]>>24&255,ea[0]>>16&255,ea[0]>>8&255,255&ea[0],ea[1]>>24&255,ea[1]>>16&255,ea[1]>>8&255,255&ea[1],ea[2]>>24&255,ea[2]>>16&255,ea[2]>>8&255,255&ea[2],ea[3]>>24&255,ea[3]>>16&255,ea[3]>>8&255,255&ea[3],ea[4]>>24&255,ea[4]>>16&255,ea[4]>>8&255,255&ea[4]]}),NIL:"00000000-0000-0000-0000-000000000000",version:function(ei){if(!Dd(ei))throw TypeError("Invalid UUID");return parseInt(ei.substr(14,1),16)},validate:Dd,stringify:Dv,parse:D_});let Dj=["debug","info","warn","error","none"];var DR={commonBasicLogger:function(ei,eo){if(ei&&ei.destination&&"function"!=typeof ei.destination)throw Error("destination for basicLogger was set to a non-function");function ea(ei){return function(eo){console&&console[ei]&&console[ei].call(console,eo)}}let eu=ei&&ei.destination?[ei.destination,ei.destination,ei.destination,ei.destination]:[ea("log"),ea("info"),ea("warn"),ea("error")],ec=!(!ei||!ei.destination),ed=ei&&void 0!==ei.prefix&&null!==ei.prefix?ei.prefix:"[LaunchDarkly] ",ef=1;if(ei&&ei.level)for(let eo=0;eo{};else{let ea=ei;eg[eo]=function(){eh(ea,eo,arguments)}}}}return eg},validateLogger:function(ei){Dj.forEach(eo=>{if("none"!==eo&&(!ei[eo]||"function"!=typeof ei[eo]))throw Error("Provided logger instance must support logger."+eo+"(...) method")})}};function DL(ei){return ei&&ei.message?ei.message:"string"==typeof ei||ei instanceof String?ei:JSON.stringify(ei)}let DF=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client for instructions on SDK initialization.";var DB={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+DF},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(ei){return'enqueueing "'+ei+'" event'},debugPostingDiagnosticEvent:function(ei){return"sending diagnostic event ("+ei.kind+")"},debugPostingEvents:function(ei){return"sending "+ei+" events"},debugStreamDelete:function(ei){return'received streaming deletion for flag "'+ei+'"'},debugStreamDeleteIgnored:function(ei){return'received streaming deletion for flag "'+ei+'" but ignored due to version check'},debugStreamPatch:function(ei){return'received streaming update for flag "'+ei+'"'},debugStreamPatchIgnored:function(ei){return'received streaming update for flag "'+ei+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(ei){return"polling for feature flags at "+ei},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(ei,eo){return eo?'"'+ei+'" is deprecated, please use "'+eo+'"':'"'+ei+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+DF},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+DF},errorFetchingFlags:function(ei){return"Error fetching flag settings: "+DL(ei)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(ei,eo,ea){return"Received error "+ei+(401===ei?" (invalid SDK key)":"")+" for "+eo+" - "+(IP.isHttpErrorRecoverable(ei)?ea:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+DF},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(ei,eo)=>`an inspector: "${eo}" of type: "${ei}" generated an exception`,invalidContentType:function(ei){return'Expected application/json content type but got "'+ei+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(ei,eo)=>`an inspector: "${eo}" of an invalid type (${ei}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidContext:function(){return"Invalid context specified."+DF},invalidTagValue:ei=>`Config option "${ei}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(ei){return"local storage is unavailable: "+DL(ei)},networkError:ei=>"network error"+(ei?" ("+ei+")":""),optionBelowMinimum:(ei,eo,ea)=>'Config option "'+ei+'" was set to '+eo+", changing to minimum value of "+ea,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(ei){return"Opening stream connection to "+ei},streamError:function(ei,eo){return"Error on stream connection: "+DL(ei)+", will continue retrying after "+eo+" milliseconds."},tagValueTooLong:ei=>`Value of "${ei}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(ei){return'Custom event "'+ei+'" does not exist'},unknownOption:ei=>'Ignoring unknown config option "'+ei+'"',contextNotSpecified:function(){return"No context specified."+DF},unrecoverableStreamError:ei=>`Error on stream connection ${DL(ei)}, giving up permanently`,wrongOptionType:(ei,eo,ea)=>'Config option "'+ei+'" should be of type '+eo+", got "+ea+", using default value",wrongOptionTypeBoolean:(ei,eo)=>'Config option "'+ei+'" should be a boolean, got '+eo+", converting to boolean"};let{validateLogger:DU}=DR,Dz={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(ei,eo,ea){let eu={};return eo.id&&(eu.id=Dq(`${ei}.id`,eo.id,ea)),eo.version&&(eu.version=Dq(`${ei}.version`,eo.version,ea)),eu}},inspectors:{default:[]}},DG=/^(\w|\.|-)+$/;function DV(ei){return ei&&ei.replace(/\/+$/,"")}function Dq(ei,eo,ea){if("string"==typeof eo&&eo.match(DG)){if(!(eo.length>64))return eo;ea.warn(DB.tagValueTooLong(ei))}else ea.warn(DB.invalidTagValue(ei))}var DH={baseOptionDefs:Dz,validate:function(ei,eo,ea,eu){let ec=Do.extend({logger:{default:eu}},Dz,ea),ed={};function ef(ei){Do.onNextTick(()=>{eo&&eo.maybeReportError(new IP.LDInvalidArgumentError(ei))})}let eh=Do.extend({},ei||{});return function(ei){let eo=ei;Object.keys(ed).forEach(ei=>{if(void 0!==eo[ei]){let ea=ed[ei];eu&&eu.warn(DB.deprecated(ei,ea)),ea&&(void 0===eo[ea]&&(eo[ea]=eo[ei]),delete eo[ei])}})}(eh),DU((eh=function(ei){let eo=Do.extend({},ei),ea=ei=>{if(null===ei)return"any";if(void 0===ei)return;if(Array.isArray(ei))return"array";let eo=typeof ei;return"boolean"===eo||"string"===eo||"number"===eo||"function"===eo?eo:"object"};return Object.keys(ei).forEach(ed=>{let eh=ei[ed];if(null!=eh){let eg=ec[ed];if(void 0===eg)ef(DB.unknownOption(ed));else{let ec=eg.type||ea(eg.default),em=eg.validator;if(em){let ea=em(ed,ei[ed],eu);void 0!==ea?eo[ed]=ea:delete eo[ed]}else if("any"!==ec){let ei=ec.split("|"),eu=ea(eh);0>ei.indexOf(eu)?"boolean"===ec?(eo[ed]=!!eh,ef(DB.wrongOptionTypeBoolean(ed,eu))):(ef(DB.wrongOptionType(ed,ec,eu)),eo[ed]=eg.default):"number"===eu&&void 0!==eg.minimum&&eh{void 0!==eo[ei]&&null!==eo[ei]||(eo[ei]=ec[ei]&&ec[ei].default)}),eo}(eh))).logger),eh},getTags:function(ei){let eo={};return ei&&(ei.application&&void 0!==ei.application.id&&null!==ei.application.id&&(eo["application-id"]=[ei.application.id]),ei.application&&void 0!==ei.application.version&&null!==ei.application.id&&(eo["application-version"]=[ei.application.version])),eo}};let{getLDUserAgentString:DW}=Do;var DK={getLDHeaders:function(ei,eo){if(eo&&!eo.sendLDHeaders)return{};let ea={};ea[ei.userAgentHeaderName||"User-Agent"]=DW(ei),eo&&eo.wrapperName&&(ea["X-LaunchDarkly-Wrapper"]=eo.wrapperVersion?eo.wrapperName+"/"+eo.wrapperVersion:eo.wrapperName);let eu=DH.getTags(eo),ec=Object.keys(eu);return ec.length&&(ea["x-launchdarkly-tags"]=ec.sort().map(ei=>Array.isArray(eu[ei])?eu[ei].sort().map(eo=>`${ei}/${eo}`):[`${ei}/${eu[ei]}`]).reduce((ei,eo)=>ei.concat(eo),[]).join(" ")),ea},transformHeaders:function(ei,eo){return eo&&eo.requestHeaderTransform?eo.requestHeaderTransform({...ei}):ei}};let{v1:DY}=DM,{getLDHeaders:DZ,transformHeaders:D$}=DK;var DJ=function(ei,eo,ea){let eu="/a/"+eo+".gif",ec=Do.extend({"Content-Type":"application/json"},DZ(ei,ea)),ed=ei.httpFallbackPing,ef={};return ef.sendChunk=(eo,ef,eh,eg)=>{let em=JSON.stringify(eo),eb=eh?null:DY();return eg?(function eo(eu){let ed=eh?ec:Do.extend({},ec,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":eb});return ei.httpRequest("POST",ef,D$(ed,ea),em).promise.then(ei=>{if(ei)return ei.status>=400&&IP.isHttpErrorRecoverable(ei.status)&&eu?eo(!1):function(ei){let eo={status:ei.status},ea=ei.header("date");if(ea){let ei=Date.parse(ea);ei&&(eo.serverTime=ei)}return eo}(ei)}).catch(()=>eu?eo(!1):Promise.reject())})(!0).catch(()=>{}):(ed&&ed(ef+eu+"?d="+Do.base64URLEncode(em)),Promise.resolve())},ef.sendEvents=function(eo,ea,eu){let ec;if(!ei.httpRequest)return Promise.resolve();let ed=ei.httpAllowsPost();ec=ed?[eo]:Do.chunkEventsForUrl(2e3-ea.length,eo);let eh=[];for(let ei=0;ei"kind"!==ei);return ed&&eo.every(ei=>DX(ei))&&eo.every(eo=>{let ea=ei[eo].key;return null!=ea&&""!==ea})}return ed&&ec}return!1},getContextKeys:function(ei,eo=DQ()){if(!ei)return;let ea={},{kind:eu,key:ec}=ei;switch(eu){case void 0:ea.user=`${ec}`;break;case"multi":Object.entries(ei).filter(([ei])=>"kind"!==ei).forEach(([ei,eo])=>{eo&&eo.key&&(ea[ei]=eo.key)});break;case null:eo.warn(`null is not a valid context kind: ${ei}`);break;case"":eo.warn(`'' is not a valid context kind: ${ei}`);break;default:ea[eu]=`${ec}`}return ea},getContextKinds:function(ei){return ei?null===ei.kind||void 0===ei.kind?["user"]:"multi"!==ei.kind?[ei.kind]:Object.keys(ei).filter(ei=>"kind"!==ei):[]},getCanonicalKey:function(ei){if(ei){if((void 0===ei.kind||null===ei.kind||"user"===ei.kind)&&ei.key)return ei.key;if("multi"!==ei.kind&&ei.key)return`${ei.kind}:${D0(ei.key)}`;if("multi"===ei.kind)return Object.keys(ei).sort().filter(ei=>"kind"!==ei).map(eo=>`${eo}:${D0(ei[eo].key)}`).join(":")}}};let{getContextKinds:D5}=D3;var D4=function(){let ei={},eo=0,ea=0,eu={},ec={};return ei.summarizeEvent=ei=>{if("feature"===ei.kind){let ed=ei.key+":"+(null!==ei.variation&&void 0!==ei.variation?ei.variation:"")+":"+(null!==ei.version&&void 0!==ei.version?ei.version:""),ef=eu[ed],eh=ec[ei.key];eh||(eh=new Set,ec[ei.key]=eh),(function(ei){return ei.context?D5(ei.context):ei.contextKeys?Object.keys(ei.contextKeys):[]})(ei).forEach(ei=>eh.add(ei)),ef?ef.count=ef.count+1:eu[ed]={count:1,key:ei.key,version:ei.version,variation:ei.variation,value:ei.value,default:ei.default},(0===eo||ei.creationDateea&&(ea=ei.creationDate)}},ei.getSummary=()=>{let ei={},ed=!0;for(let eo of Object.values(eu)){let ea=ei[eo.key];ea||(ea={default:eo.default,counters:[],contextKinds:[...ec[eo.key]]},ei[eo.key]=ea);let eu={value:eo.value,count:eo.count};void 0!==eo.variation&&null!==eo.variation&&(eu.variation=eo.variation),void 0!==eo.version&&null!==eo.version?eu.version=eo.version:eu.unknown=!0,ea.counters.push(eu),ed=!1}return ed?null:{startDate:eo,endDate:ea,features:ei}},ei.clearSummary=()=>{eo=0,ea=0,eu={},ec={}},ei};function D6(ei){return ei.replace(/~/g,"~0").replace(/\//g,"~1")}function D8(ei){return(ei.startsWith("/")?ei.substring(1):ei).split("/").map(ei=>ei.indexOf("~")>=0?ei.replace(/~1/g,"/").replace(/~0/g,"~"):ei)}function D9(ei){return!ei.startsWith("/")}function D7(ei,eo){let ea=D9(ei),eu=D9(eo);if(ea&&eu)return ei===eo;if(ea){let ea=D8(eo);return 1===ea.length&&ei===ea[0]}if(eu){let ea=D8(ei);return 1===ea.length&&eo===ea[0]}return ei===eo}function Nr(ei){return`/${D6(ei)}`}var Nn={cloneExcluding:function(ei,eo){let ea=[],eu={},ec=[];for(ea.push(...Object.keys(ei).map(eo=>({key:eo,ptr:Nr(eo),source:ei,parent:eu,visited:[ei]})));ea.length;){let ei=ea.pop();if(eo.some(eo=>D7(eo,ei.ptr)))ec.push(ei.ptr);else{let eo=ei.source[ei.key];if(null===eo)ei.parent[ei.key]=eo;else if(Array.isArray(eo))ei.parent[ei.key]=[...eo];else if("object"==typeof eo){if(ei.visited.includes(eo))continue;ei.parent[ei.key]={},ea.push(...Object.keys(eo).map(ea=>({key:ea,ptr:`${ei.ptr}/${D6(ea)}`,source:eo,parent:ei.parent[ei.key],visited:[...ei.visited,eo]})))}else ei.parent[ei.key]=eo}}return{cloned:eu,excluded:ec.sort()}},compare:D7,literalToReference:Nr},Ni=function(ei){let eo={},ea=ei.allAttributesPrivate,eu=ei.privateAttributes||[],ec=["key","kind","_meta","anonymous"],ed=["name","ip","firstName","lastName","email","avatar","country"],ef=ei=>{var eo;if("object"!=typeof ei||null===ei||Array.isArray(ei))return;let{cloned:ed,excluded:ef}=Nn.cloneExcluding(ei,(eo=ei,(ea?Object.keys(eo):[...eu,...eo._meta&&eo._meta.privateAttributes||[]]).filter(ei=>!ec.some(eo=>Nn.compare(ei,eo)))));return ed.key=String(ed.key),ef.length&&(ed._meta||(ed._meta={}),ed._meta.redactedAttributes=ef),ed._meta&&(delete ed._meta.privateAttributes,0===Object.keys(ed._meta).length&&delete ed._meta),void 0!==ed.anonymous&&(ed.anonymous=!!ed.anonymous),ed};return eo.filter=ei=>void 0===ei.kind||null===ei.kind?ef((ei=>{let eo={...ei.custom||{},kind:"user",key:ei.key};for(let ea of(void 0!==ei.anonymous&&(eo.anonymous=!!ei.anonymous),ed))delete eo[ea],void 0!==ei[ea]&&null!==ei[ea]&&(eo[ea]=String(ei[ea]));return void 0!==ei.privateAttributeNames&&null!==ei.privateAttributeNames&&(eo._meta=eo._meta||{},eo._meta.privateAttributes=ei.privateAttributeNames.map(ei=>ei.startsWith("/")?Nn.literalToReference(ei):ei)),eo})(ei)):"multi"===ei.kind?(ei=>{let eo={kind:ei.kind},ea=Object.keys(ei);for(let eu of ea)if("kind"!==eu){let ea=ef(ei[eu]);ea&&(eo[eu]=ea)}return eo})(ei):ef(ei),eo};let{getContextKeys:No}=D3;var Na=function(ei,eo,ea,eu=null,ec=null,ed=null){let ef={},eh=ed||DJ(ei,ea,eo),eg=Do.appendUrlPath(eo.eventsUrl,"/events/bulk/"+ea),em=D4(),eb=Ni(eo),ew=eo.samplingInterval,e_=eo.eventCapacity,eS=eo.flushInterval,eE=eo.logger,eA,eT=[],ek=0,eC=!1,eO=!1;function eI(){return 0===ew||0===Math.floor(Math.random()*ew)}function eP(ei){let eo=Do.extend({},ei);return"identify"===ei.kind?eo.context=eb.filter(ei.context):(eo.contextKeys=No(ei.context,eE),delete eo.context),"feature"===ei.kind&&(delete eo.trackEvents,delete eo.debugEventsUntilDate),eo}function eD(ei){eT.lengthek&&eo.debugEventsUntilDate>(new Date).getTime()):ea=eI(),ea&&eD(eP(ei)),eu){let eo=Do.extend({},ei,{kind:"debug"});eo.context=eb.filter(eo.context),delete eo.trackEvents,delete eo.debugEventsUntilDate,eD(eo)}},ef.flush=function(){if(eC)return Promise.resolve();let ei=eT,eo=em.getSummary();return em.clearSummary(),eo&&(eo.kind="summary",ei.push(eo)),eu&&eu.setEventsInLastBatch(ei.length),0===ei.length?Promise.resolve():(eT=[],eE.debug(DB.debugPostingEvents(ei.length)),eh.sendEvents(ei,eg).then(ei=>{let eo=ei&&ei[0];eo&&(eo.serverTime&&(ek=eo.serverTime),IP.isHttpErrorRecoverable(eo.status)||(eC=!0),eo.status>=400&&Do.onNextTick(()=>{ec.maybeReportError(new IP.LDUnexpectedResponseError(DB.httpErrorMessage(eo.status,"event posting","some events were dropped")))}))}))},ef.start=function(){let ei=()=>{ef.flush(),eA=setTimeout(ei,eS)};eA=setTimeout(ei,eS)},ef.stop=function(){clearTimeout(eA)},ef},Nl=function(ei){let eo={},ea={};return eo.on=function(ei,eo,eu){ea[ei]=ea[ei]||[],ea[ei]=ea[ei].concat({handler:eo,context:eu})},eo.off=function(ei,eo,eu){if(ea[ei])for(let ec=0;ec{let ea=()=>{ei.off(Nu,ea),eo()};ei.on(Nu,ea)}).catch(()=>{});return{getInitializationPromise:()=>ec||(eo?Promise.resolve():ea?Promise.reject(eu):ec=new Promise((eo,ea)=>{let eu=()=>{ei.off(Nc,eu),eo()},ec=eo=>{ei.off(Nd,ec),ea(eo)};ei.on(Nc,eu),ei.on(Nd,ec)})),getReadyPromise:()=>ed,signalSuccess:()=>{eo||ea||(eo=!0,ei.emit(Nc),ei.emit(Nu))},signalFailure:ec=>{eo||ea||(ea=!0,eu=ec,ei.emit(Nd,ec),ei.emit(Nu)),ei.maybeReportError(ec)}}},Nh=function(ei,eo,ea,eu){let ec={};function ed(){let ei="",ec=eu.getContext();return ec&&(ei=ea||Do.btoa(JSON.stringify(ec))),"ld:"+eo+":"+ei}return ec.loadFlags=()=>ei.get(ed()).then(ei=>{if(null==ei)return null;try{let eo=JSON.parse(ei);if(eo){let ei=eo.$schema;void 0===ei||ei<1?eo=Do.transformValuesToVersionedValues(eo):delete eo.$schema}return eo}catch(ei){return ec.clearFlags().then(()=>null)}}),ec.saveFlags=eo=>{let ea=Do.extend({},eo,{$schema:1});return ei.set(ed(),JSON.stringify(ea))},ec.clearFlags=()=>ei.clear(ed()),ec},Np=function(ei,eo){let ea={},eu=!1,ec=ei=>{eu||(eu=!0,eo.warn(DB.localStorageUnavailable(ei)))};return ea.isEnabled=()=>!!ei,ea.get=eo=>new Promise(ea=>{ei?ei.get(eo).then(ea).catch(ei=>{ec(ei),ea(void 0)}):ea(void 0)}),ea.set=(eo,ea)=>new Promise(eu=>{ei?ei.set(eo,ea).then(()=>eu(!0)).catch(ei=>{ec(ei),eu(!1)}):eu(!1)}),ea.clear=eo=>new Promise(ea=>{ei?ei.clear(eo).then(()=>ea(!0)).catch(ei=>{ec(ei),ea(!1)}):ea(!1)}),ea};let{appendUrlPath:Ng,base64URLEncode:Nm,objectHasOwnProperty:Ny}=Do,{getLDHeaders:Nv,transformHeaders:Nb}=DK,{isHttpErrorRecoverable:Nw}=IP;var N_=function(ei,eo,ea,eu){let ec=eo.streamUrl,ed=eo.logger,ef={},eh=Ng(ec,"/eval/"+ea),eg=eo.useReport,em=eo.evaluationReasons,eb=eo.streamReconnectDelay,ew=Nv(ei,eo),e_,eS=!1,eE=null,eA=null,eT=null,ek=null,eC=null,eO=0;function eI(){var ei;let eo=(ei=function(){let ei=eb*Math.pow(2,eO);return ei>3e4?3e4:ei}())-Math.trunc(.5*Math.random()*ei);return eO+=1,eo}function eP(ei){if(ei.status&&"number"==typeof ei.status&&!Nw(ei.status))return eM(),ed.error(DB.unrecoverableStreamError(ei)),void(eA&&(clearTimeout(eA),eA=null));let eo=eI();eS||(ed.warn(DB.streamError(ei,eo)),eS=!0),ej(!1),eM(),eD(eo)}function eD(ei){eA||(ei?eA=setTimeout(eN,ei):eN())}function eN(){let eu;eA=null;let ef="",eb={headers:ew,readTimeoutMillis:3e5};if(ei.eventSourceFactory){for(let ew in null!=ek&&(ef="h="+ek),eg?ei.eventSourceAllowsReport?(eu=eh,eb.method="REPORT",eb.headers["Content-Type"]="application/json",eb.body=JSON.stringify(eT)):(eu=Ng(ec,"/ping/"+ea),ef=""):eu=eh+"/"+Nm(JSON.stringify(eT)),eb.headers=Nb(eb.headers,eo),em&&(ef=ef+(ef?"&":"")+"withReasons=true"),eu=eu+(ef?"?":"")+ef,eM(),ed.info(DB.streamConnecting(eu)),e_=(new Date).getTime(),eE=ei.eventSourceFactory(eu,eb),eC)Ny(eC,ew)&&eE.addEventListener(ew,eC[ew]);eE.onerror=eP,eE.onopen=()=>{eO=0}}}function eM(){eE&&(ed.info(DB.streamClosing()),eE.close(),eE=null)}function ej(ei){e_&&eu&&eu.recordStreamInit(e_,!ei,(new Date).getTime()-e_),e_=null}return ef.connect=function(ei,eo,ea){for(let eu in eT=ei,ek=eo,eC={},ea||{})eC[eu]=function(ei){eS=!1,ej(!0),ea[eu]&&ea[eu](ei)};eD()},ef.disconnect=function(){clearTimeout(eA),eA=null,eM()},ef.isConnected=function(){return!!(eE&&ei.eventSourceIsActive&&ei.eventSourceIsActive(eE))},ef},NS=function(ei){let eo,ea,eu,ec;let ed={addPromise:(ed,ef)=>{eo=ed,ea&&ea(),ea=ef,ed.then(ea=>{eo===ed&&(eu(ea),ei&&ei())},ea=>{eo===ed&&(ec(ea),ei&&ei())})}};return ed.resultPromise=new Promise((ei,eo)=>{eu=ei,ec=eo}),ed};let{transformHeaders:Nx,getLDHeaders:NA}=DK,NT="application/json";var Nk=function(ei,eo,ea){let eu=eo.baseUrl,ec=eo.useReport,ed=eo.evaluationReasons,ef=eo.logger,eh={},eg={};function em(ea,eu){if(!ei.httpRequest)return new Promise((ei,eo)=>{eo(new IP.LDFlagFetchError(DB.httpUnavailable()))});let ec=eu?"REPORT":"GET",ed=NA(ei,eo);eu&&(ed["Content-Type"]=NT);let ef=eg[ea];ef||(ef=NS(()=>{delete eg[ea]}),eg[ea]=ef);let eh=ei.httpRequest(ec,ea,Nx(ed,eo),eu),em=eh.promise.then(ei=>{if(200===ei.status){if(ei.header("content-type")&&ei.header("content-type").substring(0,16)===NT)return JSON.parse(ei.body);{let eo=DB.invalidContentType(ei.header("content-type")||"");return Promise.reject(new IP.LDFlagFetchError(eo))}}return Promise.reject(function(ei){return 404===ei.status?new IP.LDInvalidEnvironmentIdError(DB.environmentNotFound()):new IP.LDFlagFetchError(DB.errorFetchingFlags(ei.statusText||String(ei.status)))}(ei))},ei=>Promise.reject(new IP.LDFlagFetchError(DB.networkError(ei))));return ef.addPromise(em,()=>{eh.cancel&&eh.cancel()}),ef.resultPromise}return eh.fetchJSON=function(ei){return em(Do.appendUrlPath(eu,ei),null)},eh.fetchFlagSettings=function(ei,eo){let eh,eg,eb="";return ec?(eh=[eu,"/sdk/evalx/",ea,"/context"].join(""),eg=JSON.stringify(ei)):eh=[eu,"/sdk/evalx/",ea,"/contexts/",Do.base64URLEncode(JSON.stringify(ei))].join(""),eo&&(eb="h="+eo),ed&&(eb=eb+(eb?"&":"")+"withReasons=true"),eh=eh+(eb?"?":"")+eb,ef.debug(DB.debugPolling(eh)),em(eh,eg)},eh},NC=function(ei,eo){let ea;let eu={};return eu.setContext=function(ei){(ea=Do.sanitizeContext(ei))&&eo&&eo(Do.clone(ea))},eu.getContext=function(){return ea?Do.clone(ea):null},ei&&eu.setContext(ei),eu};let{v1:NO}=DM,{getContextKinds:NI}=D3;var NP=function(ei){function eo(ei){return null==ei||"user"===ei?"ld:$anonUserId":`ld:$contextKey:${ei}`}function ea(ea,eu){return null!==eu.key&&void 0!==eu.key?(eu.key=eu.key.toString(),Promise.resolve(eu)):eu.anonymous?(function(ea){return ei.get(eo(ea))})(ea).then(ec=>{if(ec)return eu.key=ec,eu;{let ec=NO();return eu.key=ec,(function(ea,eu){return ei.set(eo(eu),ea)})(ec,ea).then(()=>eu)}}):Promise.reject(new IP.LDInvalidUserError(DB.invalidContext()))}this.processContext=ei=>{if(!ei)return Promise.reject(new IP.LDInvalidUserError(DB.contextNotSpecified()));let eo=Do.clone(ei);if("multi"===ei.kind){let ei=NI(eo);return Promise.all(ei.map(ei=>ea(ei,eo[ei]))).then(()=>eo)}return ea(ei.kind,eo)}};let{v1:ND}=DM,{baseOptionDefs:NN}=DH,{appendUrlPath:NM}=Do;var Nj={DiagnosticId:function(ei){let eo={diagnosticId:ND()};return ei&&(eo.sdkKeySuffix=ei.length>6?ei.substring(ei.length-6):ei),eo},DiagnosticsAccumulator:function(ei){let eo,ea,eu,ec;function ed(ei){eo=ei,ea=0,eu=0,ec=[]}return ed(ei),{getProps:()=>({dataSinceDate:eo,droppedEvents:ea,eventsInLastBatch:eu,streamInits:ec}),setProps:ei=>{eo=ei.dataSinceDate,ea=ei.droppedEvents||0,eu=ei.eventsInLastBatch||0,ec=ei.streamInits||[]},incrementDroppedEvents:()=>{ea++},setEventsInLastBatch:ei=>{eu=ei},recordStreamInit:(ei,eo,ea)=>{let eu={timestamp:ei,failed:eo,durationMillis:ea};ec.push(eu)},reset:ed}},DiagnosticsManager:function(ei,eo,ea,eu,ec,ed,ef){let eh=!!ei.diagnosticUseCombinedEvent,eg="ld:"+ec+":$diagnostics",em=NM(ed.eventsUrl,"/events/diagnostic/"+ec),eb=ed.diagnosticRecordingInterval,ew=ea,e_,eS,eE=!!ed.streaming,eA={};function eT(){return{sdk:eO(),configuration:eI(),platform:ei.diagnosticPlatformData}}function ek(ei){ed.logger&&ed.logger.debug(DB.debugPostingDiagnosticEvent(ei)),eu.sendEvents(ei,em,!0).then(()=>{}).catch(()=>{})}function eC(){ek(function(){let ei=(new Date).getTime(),eo={kind:eh?"diagnostic-combined":"diagnostic",id:ef,creationDate:ei,...ew.getProps()};return eh&&(eo={...eo,...eT()}),ew.reset(ei),eo}()),eS=setTimeout(eC,eb),e_=(new Date).getTime(),eh&&function(){if(eo.isEnabled()){let ei={...ew.getProps()};eo.set(eg,JSON.stringify(ei))}}()}function eO(){let eo={...ei.diagnosticSdkData};return ed.wrapperName&&(eo.wrapperName=ed.wrapperName),ed.wrapperVersion&&(eo.wrapperVersion=ed.wrapperVersion),eo}function eI(){return{customBaseURI:ed.baseUrl!==NN.baseUrl.default,customStreamURI:ed.streamUrl!==NN.streamUrl.default,customEventsURI:ed.eventsUrl!==NN.eventsUrl.default,eventsCapacity:ed.eventCapacity,eventsFlushIntervalMillis:ed.flushInterval,reconnectTimeMillis:ed.streamReconnectDelay,streamingDisabled:!eE,allAttributesPrivate:!!ed.allAttributesPrivate,diagnosticRecordingIntervalMillis:ed.diagnosticRecordingInterval,usingSecureMode:!!ed.hash,bootstrapMode:!!ed.bootstrap,fetchGoalsDisabled:!ed.fetchGoals,sendEventsOnlyForVariation:!!ed.sendEventsOnlyForVariation}}return eA.start=()=>{eh?function(ei){if(!eo.isEnabled())return ei(!1);eo.get(eg).then(eo=>{if(eo)try{let ei=JSON.parse(eo);ew.setProps(ei),e_=ei.dataSinceDate}catch(ei){}ei(!0)}).catch(()=>{ei(!1)})}(ei=>{if(ei){let ei=(e_||0)+eb,eo=(new Date).getTime();eo>=ei?eC():eS=setTimeout(eC,ei-eo)}else 0===Math.floor(4*Math.random())?eC():eS=setTimeout(eC,eb)}):(ek({kind:"diagnostic-init",id:ef,creationDate:ew.getProps().dataSinceDate,...eT()}),eS=setTimeout(eC,eb))},eA.stop=()=>{eS&&clearTimeout(eS)},eA.setStreaming=ei=>{eE=ei},eA}},NR=function(ei,eo){let ea=!1,eu={type:ei.type,name:ei.name,method:(...ec)=>{try{ei.method(...ec)}catch{ea||(ea=!0,eo.warn(DB.inspectorMethodError(eu.type,eu.name)))}}};return eu};let{onNextTick:NL}=Do,NF={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(NF);var NB={InspectorTypes:NF,InspectorManager:function(ei,eo){let ea={},eu={[NF.flagUsed]:[],[NF.flagDetailsChanged]:[],[NF.flagDetailChanged]:[],[NF.clientIdentityChanged]:[]},ec=ei&&ei.map(ei=>NR(ei,eo));return ec&&ec.forEach(ei=>{Object.prototype.hasOwnProperty.call(eu,ei.type)?eu[ei.type].push(ei):eo.warn(DB.invalidInspector(ei.type,ei.name))}),ea.hasListeners=ei=>eu[ei]&&eu[ei].length,ea.onFlagUsed=(ei,eo,ea)=>{eu[NF.flagUsed].length&&NL(()=>{eu[NF.flagUsed].forEach(eu=>eu.method(ei,eo,ea))})},ea.onFlags=ei=>{eu[NF.flagDetailsChanged].length&&NL(()=>{eu[NF.flagDetailsChanged].forEach(eo=>eo.method(ei))})},ea.onFlagChanged=(ei,eo)=>{eu[NF.flagDetailChanged].length&&NL(()=>{eu[NF.flagDetailChanged].forEach(ea=>ea.method(ei,eo))})},ea.onIdentityChanged=ei=>{eu[NF.clientIdentityChanged].length&&NL(()=>{eu[NF.clientIdentityChanged].forEach(eo=>eo.method(ei))})},ea}};let{commonBasicLogger:NU}=DR,{checkContext:Nz,getContextKeys:NG}=D3,{InspectorTypes:NV,InspectorManager:Nq}=NB,NH="change",NW="internal-change";var NK={initialize:function(ei,eo,ea,eu,ec){let ed=function(){return ea&&ea.logger?ea.logger:ec&&ec.logger&&ec.logger.default||NU("warn")}(),ef=Nl(ed),eh=Nf(ef),eg=DH.validate(ea,ef,ec,ed),em=Nq(eg.inspectors,ed),eb=eg.sendEvents,ew=ei,e_=eg.hash,eS=Np(eu.localStorage,ed),eE=DJ(eu,ew,eg),eA=eg.sendEvents&&!eg.diagnosticOptOut,eT=eA?Nj.DiagnosticId(ew):null,ek=eA?Nj.DiagnosticsAccumulator((new Date).getTime()):null,eC=eA?Nj.DiagnosticsManager(eu,eS,ek,eE,ew,eg,eT):null,eO=N_(eu,eg,ew,ek),eI=eg.eventProcessor||Na(eu,eg,ew,ek,ef,eE),eP=Nk(eu,eg,ew),eD,eN,eM,ej={},eR=eg.streaming,eL=!1,eF=!1,eB=!0,eU=eg.stateProvider,eG=NC(null,function(ei){(function(ei){!eU&&ei&&eW({kind:"identify",context:ei,creationDate:(new Date).getTime()})})(ei),em.hasListeners(NV.clientIdentityChanged)&&em.onIdentityChanged(eG.getContext())}),eV=new NP(eS),eH=eS.isEnabled()?Nh(eS,ew,e_,eG):null;function eW(ei){ew&&(eU&&eU.enqueueEvent&&eU.enqueueEvent(ei)||(ei.context?(eB=!1,!eb||eF||eu.isDoNotTrack()||(ed.debug(DB.debugEnqueueingEvent(ei.kind)),eI.enqueue(ei))):eB&&(ed.warn(DB.eventWithoutContext()),eB=!1)))}function eK(ei,eo){em.hasListeners(NV.flagDetailChanged)&&em.onFlagChanged(ei.key,eQ(eo))}function eY(){em.hasListeners(NV.flagDetailsChanged)&&em.onFlags(Object.entries(ej).map(([ei,eo])=>({key:ei,detail:eQ(eo)})).reduce((ei,eo)=>(ei[eo.key]=eo.detail,ei),{}))}function eZ(ei,eo,ea,eu){let ec=eG.getContext(),ed=new Date,ef={kind:"feature",key:ei,context:ec,value:eo?eo.value:null,variation:eo?eo.variationIndex:null,default:ea,creationDate:ed.getTime()},eh=ej[ei];eh&&(ef.version=eh.flagVersion?eh.flagVersion:eh.version,ef.trackEvents=eh.trackEvents,ef.debugEventsUntilDate=eh.debugEventsUntilDate),(eu||eh&&eh.trackReason)&&eo&&(ef.reason=eo.reason),eW(ef)}function e$(ei){return Nz(ei,!1)?Promise.resolve(ei):Promise.reject(new IP.LDInvalidUserError(DB.invalidContext()))}function eJ(ei,eo,ea,eu,ec){let ed;if(ej&&Do.objectHasOwnProperty(ej,ei)&&ej[ei]&&!ej[ei].deleted){let ea=ej[ei];ed=eQ(ea),null!==ea.value&&void 0!==ea.value||(ed.value=eo)}else ed={value:eo,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}};return ea&&eZ(ei,ed,eo,eu),ec||function(ei,eo){em.hasListeners(NV.flagUsed)&&em.onFlagUsed(ei,eo,eG.getContext())}(ei,ed),ed}function eQ(ei){return{value:ei.value,variationIndex:void 0===ei.variation?null:ei.variation,reason:ei.reason||null}}function eX(){if(eN=!0,!eG.getContext())return;let ei=ei=>{try{return JSON.parse(ei)}catch(ei){return void ef.maybeReportError(new IP.LDInvalidDataError(DB.invalidData()))}};eO.connect(eG.getContext(),e_,{ping:function(){ed.debug(DB.debugStreamPing());let ei=eG.getContext();eP.fetchFlagSettings(ei,e_).then(eo=>{Do.deepEquals(ei,eG.getContext())&&e3(eo||{})}).catch(ei=>{ef.maybeReportError(new IP.LDFlagFetchError(DB.errorFetchingFlags(ei)))})},put:function(eo){let ea=ei(eo.data);ea&&(ed.debug(DB.debugStreamPut()),e3(ea))},patch:function(eo){let ea=ei(eo.data);if(!ea)return;let eu=ej[ea.key];if(eu&&eu.version&&ea.version&&!(eu.version{})}function e5(ei){let eo=Object.keys(ei);if(eo.length>0){let ea={};eo.forEach(eo=>{let eu=ei[eo].current,ec=eu?eu.value:void 0,ed=ei[eo].previous;ef.emit(NH+":"+eo,ec,ed),ea[eo]=eu?{current:ec,previous:ed}:{previous:ed}}),ef.emit(NH,ea),ef.emit(NW,ej),eg.sendEventsOnlyForVariation||eU||eo.forEach(eo=>{eZ(eo,ei[eo].current)})}return eD&&eH?eH.saveFlags(ej):Promise.resolve()}function e4(){let ei=eR||eM&&void 0===eR;ei&&!eN?eX():!ei&&eN&&e0(),eC&&eC.setStreaming(ei)}function e6(ei){return ei===NH||ei.substr(0,7)===NH+":"}if("string"==typeof eg.bootstrap&&"LOCALSTORAGE"===eg.bootstrap.toUpperCase()&&(eH?eD=!0:ed.warn(DB.localStorageUnavailable())),"object"==typeof eg.bootstrap&&(ej=function(ei){let eo=Object.keys(ei),ea="$flagsState",eu="$valid",ec=ei[ea];!ec&&eo.length&&ed.warn(DB.bootstrapOldFormat()),!1===ei[eu]&&ed.warn(DB.bootstrapInvalid());let ef={};return eo.forEach(eo=>{if(eo!==ea&&eo!==eu){let ea={value:ei[eo]};ec&&ec[eo]?ea=Do.extend(ea,ec[eo]):ea.version=0,ef[eo]=ea}}),ef}(eg.bootstrap)),eU){let ei=eU.getInitialState();ei?e8(ei):eU.on("init",e8),eU.on("update",function(ei){ei.context&&eG.setContext(ei.context),ei.flags&&e3(ei.flags)})}else(function(){return ei?eV.processContext(eo).then(e$).then(ei=>(eG.setContext(ei),"object"==typeof eg.bootstrap?e9():eD?eH.loadFlags().then(ei=>null==ei?(ej={},eP.fetchFlagSettings(eG.getContext(),e_).then(ei=>e3(ei||{})).then(e9).catch(ei=>{e7(new IP.LDFlagFetchError(DB.errorFetchingFlags(ei)))})):(ej=ei,Do.onNextTick(e9),eP.fetchFlagSettings(eG.getContext(),e_).then(ei=>e3(ei)).catch(ei=>ef.maybeReportError(ei)))):eP.fetchFlagSettings(eG.getContext(),e_).then(ei=>{ej=ei||{},eY(),e9()}).catch(ei=>{ej={},e7(ei)}))):Promise.reject(new IP.LDInvalidEnvironmentIdError(DB.environmentNotSpecified()))})().catch(e7);function e8(ei){ew=ei.environment,eG.setContext(ei.context),ej={...ei.flags},Do.onNextTick(e9)}function e9(){ed.info(DB.clientInitialized()),eL=!0,e4(),eh.signalSuccess()}function e7(ei){eh.signalFailure(ei)}let ta={waitForInitialization:()=>eh.getInitializationPromise(),waitUntilReady:()=>eh.getReadyPromise(),identify:function(ei,eo,ea){if(eF)return Do.wrapPromiseCallback(Promise.resolve({}),ea);if(eU)return ed.warn(DB.identifyDisabled()),Do.wrapPromiseCallback(Promise.resolve(Do.transformVersionedValuesToValues(ej)),ea);let eu=eD&&eH?eH.clearFlags():Promise.resolve();return Do.wrapPromiseCallback(eu.then(()=>eV.processContext(ei)).then(e$).then(ei=>eP.fetchFlagSettings(ei,eo).then(ea=>{let eu=Do.transformVersionedValuesToValues(ea);return eG.setContext(ei),e_=eo,ea?e3(ea).then(()=>eu):eu})).then(ei=>(eN&&eX(),ei)).catch(ei=>(ef.maybeReportError(ei),Promise.reject(ei))),ea)},getContext:function(){return eG.getContext()},variation:function(ei,eo){return eJ(ei,eo,!0,!1,!1).value},variationDetail:function(ei,eo){return eJ(ei,eo,!0,!0,!1)},track:function(ei,eo,ea){if("string"!=typeof ei)return void ef.maybeReportError(new IP.LDInvalidEventKeyError(DB.unknownCustomEventKey(ei)));eu.customEventFilter&&!eu.customEventFilter(ei)&&ed.warn(DB.unknownCustomEventKey(ei));let ec=eG.getContext(),eh={kind:"custom",key:ei,context:ec,url:eu.getCurrentUrl(),creationDate:(new Date).getTime()};ec&&ec.anonymous&&(eh.contextKind=ec.anonymous?"anonymousUser":"user"),null!=eo&&(eh.data=eo),null!=ea&&(eh.metricValue=ea),eW(eh)},on:function(ei,eo,ea){e6(ei)?(eM=!0,eL&&e4(),ef.on(ei,eo,ea)):ef.on(...arguments)},off:function(ei){if(ef.off(...arguments),e6(ei)){let ei=!1;ef.getEvents().forEach(eo=>{e6(eo)&&ef.getEventListenerCount(eo)>0&&(ei=!0)}),ei||(eM=!1,eN&&void 0===eR&&e0())}},setStreaming:function(ei){let eo=null===ei?void 0:ei;eo!==eR&&(eR=eo,e4())},flush:function(ei){return Do.wrapPromiseCallback(eb?eI.flush():Promise.resolve(),ei)},allFlags:function(){let ei={};if(!ej)return ei;for(let eo in ej)Do.objectHasOwnProperty(ej,eo)&&!ej[eo].deleted&&(ei[eo]=eJ(eo,null,!eg.sendEventsOnlyForVariation,!1,!0).value);return ei},close:function(ei){if(eF)return Do.wrapPromiseCallback(Promise.resolve(),ei);let eo=()=>{eF=!0,ej={}},ea=Promise.resolve().then(()=>{if(e0(),eC&&eC.stop(),eb)return eI.stop(),eI.flush()}).then(eo).catch(eo);return Do.wrapPromiseCallback(ea,ei)}};return{client:ta,options:eg,emitter:ef,ident:eG,logger:ed,requestor:eP,start:function(){eb&&(eC&&eC.start(),eI.start())},enqueueEvent:eW,getFlagsInternal:function(){return ej},getEnvironmentId:()=>ew,internalChangeEventName:NW}},commonBasicLogger:NU,errors:IP,messages:DB,utils:Do,getContextKeys:NG},NY=NK.initialize,NZ=NK.errors;function N$(ei,eo){var ea=Object.keys(ei);if(Object.getOwnPropertySymbols){var eu=Object.getOwnPropertySymbols(ei);eo&&(eu=eu.filter(function(eo){return Object.getOwnPropertyDescriptor(ei,eo).enumerable})),ea.push.apply(ea,eu)}return ea}function NJ(ei){for(var eo=1;eoparseInt(eo[2],10)}return!0}())return NX;var ed,ef=new window.XMLHttpRequest;for(var eh in ef.open(ei,eo,!ec),ea||{})Object.prototype.hasOwnProperty.call(ea,eh)&&ef.setRequestHeader(eh,ea[eh]);if(ec){try{ef.send(eu)}catch(ei){}return NX}return{promise:new Promise(function(ei,eo){ef.addEventListener("load",function(){ed||ei({status:ef.status,header:function(ei){return ef.getResponseHeader(ei)},body:ef.responseText})}),ef.addEventListener("error",function(){ed||eo(Error())}),ef.send(eu)}),cancel:function(){ed=!0,ef.abort()}}}var Mr=ei=>{if("string"!=typeof ei)throw TypeError("Expected a string");return ei.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function Mo(ei,eo,ea,eu){var ec,ed,ef=(("substring"===ei.kind||"regex"===ei.kind)&&eu.includes("/")?eo:eo.replace(eu,"")).replace(ea,"");switch(ei.kind){case"exact":ed=eo,ec=RegExp("^"+Mr(ei.url)+"/?$");break;case"canonical":ed=ef,ec=RegExp("^"+Mr(ei.url)+"/?$");break;case"substring":ed=ef,ec=RegExp(".*"+Mr(ei.substring)+".*$");break;case"regex":ed=ef,ec=new RegExp(ei.pattern);break;default:return!1}return ec.test(ed)}function Ma(ei,eo){for(var ea={},eu=null,ec=[],ed=0;ed0&&(eu=function(ei){for(var ea=function(ei,eo){for(var ea=[],eu=0;eu0;){for(var eg=0;eg0&&(eu=Ma(ea=ei,ed),function(ei,eo){var ea,eu=window.location.href;function ec(){(ea=window.location.href)!==eu&&(eu=ea,eo())}(function ei(eo,ea){eo(),setTimeout(function(){ei(eo,ea)},ea)})(ec,ei),window.history&&window.history.pushState?window.addEventListener("popstate",ec):window.addEventListener("hashchange",ec)}(Ml,ec)),eo()}).catch(function(ea){ei.emitter.maybeReportError(new NZ.LDUnexpectedResponseError((ea&&ea.message,ea.message))),eo()}),{}}var Mc="goalsReady",Md={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function Mf(ei,eo){var ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},eu=function(ei){var eo,ea={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};if(window.XMLHttpRequest){var eu=ei&&ei.disableSyncEventPost;ea.httpRequest=function(ei,eo,ec,ed){var ef=!eu&ea.synchronousFlush;return ea.synchronousFlush=!1,N0(ei,eo,ec,ed,ef)}}ea.httpAllowsPost=function(){return void 0===eo&&(eo=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),eo},ea.httpFallbackPing=function(ei){(new window.Image).src=ei};var ec,ed=ei&&ei.eventUrlTransformer;ea.getCurrentUrl=function(){return ed?ed(window.location.href):window.location.href},ea.isDoNotTrack=function(){var ei;return 1===(ei=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===ei||"1"===ei||"yes"===ei};try{window.localStorage&&(ea.localStorage={get:function(ei){return new Promise(function(eo){eo(window.localStorage.getItem(ei))})},set:function(ei,eo){return new Promise(function(ea){window.localStorage.setItem(ei,eo),ea()})},clear:function(ei){return new Promise(function(eo){window.localStorage.removeItem(ei),eo()})}})}catch(ei){ea.localStorage=null}if(ei&&ei.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(ea.eventSourceAllowsReport=!0,ec=window.EventSourcePolyfill):(ea.eventSourceAllowsReport=!1,ec=window.EventSource),window.EventSource){var ef=3e5;ea.eventSourceFactory=function(ei,eo){var ea=NJ(NJ({},{heartbeatTimeout:ef,silentTimeout:ef,skipDefaultHeaders:!0}),eo);return new ec(ei,ea)},ea.eventSourceIsActive=function(ei){return ei.readyState===window.EventSource.OPEN||ei.readyState===window.EventSource.CONNECTING}}return ea.userAgent="JSClient",ea.version="3.1.4",ea.diagnosticSdkData={name:"js-client-sdk",version:"3.1.4"},ea.diagnosticPlatformData={name:"JS"},ea.diagnosticUseCombinedEvent=!0,ea}(ea),ec=NY(ei,eo,ea,eu,Md),ed=ec.client,ef=ec.options,eh=ec.emitter,eg=new Promise(function(ei){var eo=eh.on(Mc,function(){eh.off(Mc,eo),ei()})});ed.waitUntilGoalsReady=function(){return eg},ef.fetchGoals?Mu(ec,function(){return eh.emit(Mc)}):eh.emit(Mc),"complete"!==document.readyState?window.addEventListener("load",ec.start):ec.start();var em=function(){eu.synchronousFlush=!0,ed.flush().catch(function(){}),eu.synchronousFlush=!1};return document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&em()}),window.addEventListener("pagehide",em),ed}var Mh=ea(68929),Mp=ea.n(Mh);let Mg={kind:"user",anonymous:!0},Mm=ei=>{let eo={};return eo.promise=new Promise((ea,eu)=>{eo.timeout=void 0!==ei?setTimeout(()=>{eu(void 0)},ei):void 0,eo.resolve=ei=>(clearTimeout(eo.timeout),ea(ei)),eo.reject=ei=>(clearTimeout(eo.timeout),eu(ei))}),eo};var My=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let Mv="undefined"==typeof window,Mb=!1;class Mw{constructor(ei){var eo,ea,eu,ec;this.isInitialized=!1,this.allFlagsListeners=[];let ed=ei.disableContextFallback?ei.context:null!==(eo=ei.context)&&void 0!==eo?eo:Mg;this.errorHandler=null!==(ec=null===(eu=null===(ea=ei.options)||void 0===ea?void 0:ea.logger)||void 0===eu?void 0:eu.error)&&void 0!==ec?ec:ei=>{throw Error(ei)},this.config=Object.assign(Object.assign({},ei),{context:ed}),this.ldEnvs=this.initializeLDEnvs(ei),Mv&&!Mb?console.error("[LaunchDarklyMultiEnvService] LaunchDarkly React SDK can be used only on client side (browser only). For server-side SDKs, see: https://docs.launchdarkly.com/guides/infrastructure/nextjs#which-sdk-do-i-use"):(this.waitForInitialization(!1).then(()=>{this.isInitialized=!0}),this.config.context&&this.identifyInternal(this.config.context))}getConfig(){return this.config}getIsInitialized(){return this.isInitialized}identify(ei,eo=!0){let ea=this.identifyInternal(ei);return eo?Promise.allSettled(ea):Promise.all(ea)}identifyInternal(ei){return this.config.context=ei,this.runForEachEnv(eo=>My(this,void 0,void 0,function*(){if(eo.ldClient)return yield eo.ldClient.identify(ei);{let{ldClient:ea,ldClientErrorRef:eu}=this.initializeSingleLDClient({envName:eo.name,envClientSideID:eo.clientSideID,ldContext:ei,ldOptions:this.config.options,onInitialize:eo.ldClientIsInitialized.resolve});return eo.ldClient=ea,eo.ldClientErrorRef=eu,eo.ldClientIsInitialized.promise}}))}getLDClient(ei){let eo=this.getLDEnv(ei);return null==eo?void 0:eo.ldClient}getLDClientError(ei){var eo;let ea=this.getLDEnv(ei);return null===(eo=null==ea?void 0:ea.ldClientErrorRef)||void 0===eo?void 0:eo.current}waitForInitialization(ei=!0){let eo=this.runForEachEnv(ei=>ei.ldClientIsInitialized.promise);return ei?Promise.allSettled(eo):Promise.all(eo)}getFlags(ei){let eo=this.getLDEnv(ei);return null==eo?void 0:eo.featureFlags}getAllFlags(){var ei;return this.ldEnvs?{primary:null!==(ei=this.ldEnvs.primary.featureFlags)&&void 0!==ei?ei:{},secondary:Object.fromEntries(Object.entries(this.ldEnvs.secondary).map(([ei,{featureFlags:eo}])=>[ei,null!=eo?eo:{}]))}:(this.errorHandler("[LaunchDarklyMultiEnvService] `init` must be called before `getAllFlags`"),{primary:{},secondary:{}})}subscribe(ei,eo){let ea=this.getLDEnv(ei);if(ea)return eo(ea.featureFlags),Mw.addListener(eo,ea.listeners)}subscribeAll(ei){return ei(this.getAllFlags()),Mw.addListener(ei,this.allFlagsListeners)}static addListener(ei,eo){return eo.push(ei),()=>{let ea=eo.findIndex(ei);eo.splice(ea,1)}}static runListeners(ei,eo){for(let ea of ei)ea(eo)}getLDEnv(ei){if(!this.config||!this.ldEnvs){this.errorHandler("[LaunchDarklyMultiEnvService] `init` must be called before `getLDEnv`");return}let eo=ei?this.ldEnvs.secondary[ei]:this.ldEnvs.primary;if(!eo){this.errorHandler(`[LaunchDarklyMultiEnvService] LD environment "${String(ei)}" cannot be found. Make sure it is in config:secondaryClientSideIDs`);return}return eo}initializeLDEnvs(ei){var eo;let ea=ei.clientSideID;if(!ea)throw Error("[LaunchDarklyMultiEnvService] `clientSideID` and (`context` or `disableContextFallback`) must be defined");return{primary:{name:void 0,clientSideID:ea,ldClient:void 0,ldClientErrorRef:void 0,ldClientIsInitialized:Mm(),featureFlags:void 0,listeners:[]},secondary:Object.fromEntries(Object.entries(null!==(eo=ei.secondaryClientSideIDs)&&void 0!==eo?eo:{}).map(([ei,eo])=>[ei,{name:ei,clientSideID:eo,ldClient:void 0,ldClientErrorRef:void 0,ldClientIsInitialized:Mm(),featureFlags:void 0,listeners:[]}]))}}initializeSingleLDClient({envName:ei,envClientSideID:eo,ldContext:ea,ldOptions:eu,onInitialize:ec}){let ed=Mf(eo,ea,eu),ef=()=>{var eo;let ea=ed.allFlags(),eu=(null===(eo=this.config)||void 0===eo?void 0:eo.useCamelCaseFlagKeys)?Mw.camelCaseKeys(ea):ea;this.setFlags(ei,eu)},eh={current:void 0};return ed.on("initialized",()=>{ec(ed.allFlags()),ef()}),ed.on("error",ei=>{eh.current=ei}),ed.on("change",ef),{ldClient:ed,ldClientErrorRef:eh}}static camelCaseKeys(ei){return Object.fromEntries(Object.entries(ei).map(([ei,eo])=>[Mp()(ei),eo]))}setFlags(ei,eo){let ea=this.getLDEnv(ei);ea&&(ea.featureFlags=eo,Mw.runListeners(ea.listeners,eo),Mw.runListeners(this.allFlagsListeners,this.getAllFlags()))}runForEachEnv(ei){return this.ldEnvs?[ei(this.ldEnvs.primary),...Object.values(this.ldEnvs.secondary).map(eo=>ei(eo))]:[]}}var M_=ea(95924),ME=ea(23279),Mx=ea.n(ME);let MA=({allFlagsRef:ei,registeredFlagsChecks:eo,onReadingNewFlag:ea})=>{let eu={};return{primary:MT(void 0,{allFlagsRef:ei,registeredFlagsChecks:eo,onReadingNewFlag:ea}),secondary:new Proxy({},{get:(ec,ed)=>(eu[ed]||(eu[ed]=MT(ed,{allFlagsRef:ei,registeredFlagsChecks:eo,onReadingNewFlag:ea})),eu[ed])})}},MT=(ei,{allFlagsRef:eo,registeredFlagsChecks:ea,onReadingNewFlag:eu})=>{var ec;return new Proxy(null!==(ec=ei?eo.current.secondary[ei]:eo.current.primary)&&void 0!==ec?ec:{},{get:(ec,ed)=>{var ef;let eh=ei?eo.current.secondary[ei]:eo.current.primary,eg=ei?null===(ef=ea.secondary[ei])||void 0===ef?void 0:ef[ed]:ea.primary[ed];return eg||eu(ei,ed),null==eh?void 0:eh[ed]}})},Mk=(ei,eo)=>({primary:Object.fromEntries(Object.entries(ei.primary).map(([ei])=>{var ea;return[ei,null===(ea=eo.primary)||void 0===ea?void 0:ea[ei]]})),secondary:Object.fromEntries(Object.entries(ei.secondary).map(([ei,ea])=>[ei,Object.fromEntries(Object.entries(ea).map(([ea])=>{var eu,ec;return[ea,null===(ec=null===(eu=eo.secondary)||void 0===eu?void 0:eu[ei])||void 0===ec?void 0:ec[ea]]}))]))}),MC=(ei,eo,ea)=>{let eu=Mk(ei,eo),ec=Mk(ei,ea);return JSON.stringify(eu)!==JSON.stringify(ec)},MO=Object.freeze({primary:Object.freeze({}),secondary:Object.freeze({})}),MI=ei=>{let eo=(0,eb.useRef)(MO),ea=(0,eb.useRef)(MO),[eu,ec]=(0,eb.useState)(MO),ed=(0,eb.useMemo)(()=>Mx()((ei=!1)=>{ec(eo=>{let eu=ea.current;return ei?eu:JSON.stringify(eo)===JSON.stringify(eu)?eo:eu})},0),[]),ef=(0,eb.useCallback)((ei,eo)=>{var eu;let ec=ea.current,ef=ei?{primary:ec.primary,secondary:Object.assign(Object.assign({},ec.secondary),{[ei]:Object.assign(Object.assign({},null!==(eu=ec.secondary[ei])&&void 0!==eu?eu:{}),{[eo]:!0})})}:{primary:Object.assign(Object.assign({},ec.primary),{[eo]:!0}),secondary:ec.secondary};ea.current=ef,ed()},[ed]),eh=(0,eb.useMemo)(()=>MA({allFlagsRef:eo,registeredFlagsChecks:eu,onReadingNewFlag:ef}),[ef,eu]);return(0,eb.useEffect)(()=>ei.subscribeAll(ei=>{MC(ea.current,eo.current,ei)&&ed(!0),eo.current=ei}),[ed,ei]),eh};var MP=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let MD=ei=>{var{children:eo,waitForInitialization:ea}=ei,eu=MP(ei,["children","waitForInitialization"]);let ec=(0,eb.useRef)(eu),ed=(0,eb.useMemo)(()=>{let ei=ec.current,{serviceInstance:eo}=ei,ea=MP(ei,["serviceInstance"]);if(eo)return eo;if(!ea.clientSideID)throw Error("[LaunchDarklyMultiEnvProvider] Missing prop (`clientSideID`) or (`serviceInstance`)");return new Mw(ea)},[]),[ef,eh]=(0,eb.useState)(!1),eg=ed.getConfig().context,ew=null!=eg?eg:eu.context;(0,eb.useEffect)(()=>{ew&&eg!==ew&&ed.identify(ew)},[eg,ew,ed]),(0,eb.useEffect)(()=>{ed.waitForInitialization().then(()=>{eh(!0)})},[ed]);let e_=MI(ed),eS=(0,eb.useMemo)(()=>({isInitialized:ef,featureFlagsOfAllEnv:e_,multiEnvService:ed}),[e_,ef,ed]);return(0,em.jsx)(M_.e.Provider,{value:eS,children:ef||!ea?eo:null})};var MN=ea(97599);let MM=!1,Mj={debug:()=>void 0,info:()=>void 0,warn:()=>void 0,error:ek.Tb},MR={diagnosticOptOut:!0,bootstrap:"localStorage",evaluationReasons:!0,logger:MM?void 0:Mj},ML=ei=>{let{children:eo,context:ea}=ei,{spot_ld_cli_id:eu,spot_ld_sec_cli_ids:ec}=(0,MN.C)();return(0,em.jsx)(MD,{clientSideID:eu,secondaryClientSideIDs:"object"==typeof ec?ec:void 0,context:ea,options:MR,useCamelCaseFlagKeys:!0,disableContextFallback:!0,children:eo})};!function(ei){ei.ImpactRatioMpid="mpid",ei.ImpactRatioClickid="clickid"}(eu||(eu={})),function(ei){ei.ImpactRatioClickid="clickid",ei.ImpactRatioMpid="mpid",ei.activated="activated",ei.accountType="type",ei.email="email"}(ec||(ec={}));let MF=()=>({mpid:(0,Ez.ej)(eu.ImpactRatioMpid),clickid:(0,Ez.ej)(eu.ImpactRatioClickid)}),MB=()=>{let{track:ei}=(0,dw.Sl)(),eo=(0,eA.useRouter)(),{traits:ea}=kJ();return(0,eb.useEffect)(()=>{let eu=ec.activated in eo.query;if(!ea||!eu)return;let{mpid:ed,clickid:ef}=MF();ei({eventType:"UserAction",eventName:"Account Activated",params:{krakenId:ea.krakenId,category:"NFT Confirmed Sign Up",action:"Step 2",label:"Successful Activation",...ed&&{mpid:ed},...ef&&{clickid:ef}}}),eo.push(eo.pathname,void 0,{shallow:!0})},[ea,eo,ei]),null};var MU=ea(17123);let Mz=ei=>{let eo=(0,eb.useRef)(ei);return eo.current=ei,(0,eb.useCallback)((...ei)=>eo.current(...ei),[])},MG=ei=>new Date(1e3*ei),MV=(ei,eo)=>new uU.B(ei,eo,void 0,{severity:uz.Et.E,errorClass:uz.aS.General,type:uz.lF.Failed}),Mq=ei=>MV("No Date header provided",ei),MH=ei=>MV("No x-internal-auth header provided",ei),MW=Error("Invariant: Can not post session activity without a session."),MK=ei=>ei instanceof uU.B&&(ei.type===uz.lF.NoSession||401===ei.response.status),MY=ei=>{let eo=ei.headers.get("x-internal-auth"),ea=ei.headers.get("Date");return{xInternalAuth:eo,date:ea}},MZ=(ei,eo)=>{if(!eo)throw MH(ei);return{auth:eo}},M$=ei=>{let{response:eo,expires:ea,serverDateHeader:eu}=ei;if(!eu)throw Mq(eo);let ec=MG(ea),ed=new Date(eu),ef=performance.now(),eh=ec.getTime()-ed.getTime(),eg=()=>{let ei=performance.now()-ef;return eh-ei};return{date:ec,getRemainingTime:eg}},MJ=ei=>{let{response:eo,data:ea}=ei,{xInternalAuth:eu,date:ec}=MY(eo),ed=M$({response:eo,expires:ea.result.expires,serverDateHeader:ec}),ef=MZ(eo,eu);return{expiration:ed,csrf:ef}},MQ=ei=>{let{response:eo,data:ea}=ei,{date:eu}=MY(eo);return M$({response:eo,expires:ea.result.expires,serverDateHeader:eu})};var MX=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let M0="SESSION_PROVIDER_SESSION_EXPIRATION",M1=ei=>{let{onGetSessionExpirationSuccess:eo,onGetSessionExpirationError:ea,onPostSessionActivitySuccess:eu,onPostSessionActivityError:ec}=null!=ei?ei:{},ed=Mz(()=>({onGetSessionExpirationSuccess:eo,onGetSessionExpirationError:ea,onPostSessionActivitySuccess:eu,onPostSessionActivityError:ec})),ef=(0,oE.W)(),[eh,eg]=(0,eb.useState)(kU.T.INITIALIZING),em=Mz(()=>{(0,uB.JG)(M0,()=>void 0,{revalidate:!1})}),ew=Mz(()=>{em(),eg(kU.T.INITIALIZING)}),e_=Mz(()=>{eg(kU.T.AVAILABLE)}),eS=Mz(()=>{em(),eg(kU.T.EXPIRED)}),{data:eE,mutate:eA}=(0,uB.ZP)(eh!==kU.T.EXPIRED?M0:null,()=>MX(void 0,void 0,void 0,function*(){var ei,eo;let ea=yield ef.session.sessionExpiration(),eu=MJ(ea);return e_(),null===(eo=(ei=ed()).onGetSessionExpirationSuccess)||void 0===eo||eo.call(ei,ea),eu}),{revalidateOnMount:!0,revalidateIfStale:!1,revalidateOnFocus:!1,refreshInterval:3e4,refreshWhenHidden:!0,onError:ei=>{var eo,ea;MK(ei)&&eS(),null===(ea=(eo=ed()).onGetSessionExpirationError)||void 0===ea||ea.call(eo,ei)}}),eT=Mz(()=>{if(eh!==kU.T.INITIALIZING){if(eh===kU.T.AVAILABLE){eA();return}if(eh===kU.T.EXPIRED){ew();return}}}),ek=Mz(()=>MX(void 0,void 0,void 0,function*(){var ei,eo;try{if(!eE)throw MW;let ea=yield ef.session.sessionActivity(),eu=MQ(ea);return e_(),eA(Object.assign(Object.assign({},eE),{expiration:eu}),{revalidate:!1}),null===(eo=(ei=ed()).onPostSessionActivitySuccess)||void 0===eo||eo.call(ei,ea),ea}catch(ei){throw MK(ei)&&eS(),ei}})),eC=Mz((...ei)=>MX(void 0,void 0,void 0,function*(){let eo=yield ef.session.login(...ei);return ew(),eo})),eO=Mz((...ei)=>MX(void 0,void 0,void 0,function*(){let eo=yield ef.session.logout(...ei);return eS(),eo}));return(0,eb.useEffect)(()=>()=>em(),[em]),{sessionData:eE,sessionDataState:eh,revalidateSessionData:eT,operations:{postSessionActivity:ek,login:eC,logout:eO}}},M2=(ei,eo)=>{if(!ei&&!eo)return!0;if(!ei||!eo||ei.length!==eo.length)return!1;for(let ea=0;eanull===eo||!M2(ei,eo),M5=(ei,eo)=>{var ea;let eu=(0,eb.useRef)(null),ec=(0,eb.useRef)(void 0);if(!ec.current||M3(eo,eu.current)){let{totalCalculations:ed=0}=null!==(ea=ec.current)&&void 0!==ea?ea:{},ef=ei(ec.current);eu.current=eo,ec.current={prevCalculatedValue:ef,totalCalculations:ed+1}}return ec.current.prevCalculatedValue},M4=ei=>{let{sessionData:eo,onSessionDataChange:ea}=ei,eu=M5(ei=>{let{prevCalculatedValue:eu,totalCalculations:ec=0}=null!=ei?ei:{},ed={sessionData:eo,previousSessionData:null==eu?void 0:eu.sessionData,totalChanges:ec};return null==ea||ea(ed),ed},[eo]);return eu},M6=ei=>{let{sessionDataState:eo,onSessionDataStateChange:ea}=ei,eu=M5(ei=>{let{prevCalculatedValue:eu,totalCalculations:ec=0}=null!=ei?ei:{},ed={sessionDataState:eo,previousSessionDataState:null==eu?void 0:eu.sessionDataState,totalChanges:ec};return null==ea||ea(ed),ed},[eo]);return eu},M8=2147483647,M9=ei=>{let eo=(0,eb.useRef)(ei),eu=(0,eb.useRef)(void 0);eo.current=ei;let ec=(0,eb.useCallback)((...ei)=>{eo.current(...ei)},[]),ed=(0,eb.useCallback)(()=>{ea.g.clearTimeout(eu.current)},[]),ef=(0,eb.useCallback)((...ei)=>{ed(),ec(...ei)},[ed,ec]),eh=(0,eb.useCallback)((ei,...eo)=>{if(ei<=0)return ef(...eo);ed();let eh=Math.min(ei,M8);eu.current=ea.g.setTimeout(ec,eh,...eo)},[ed,ec,ef]);return(0,eb.useEffect)(()=>()=>{ed()},[ed]),{startTimeout:eh,timeoutImmediately:ef,clearTimeout:ed}},M7=ei=>{let{getSessionRemainingTime:eo,onSessionExpired:ea}=ei,[eu,ec]=(0,eb.useState)(null),{startTimeout:ed,clearTimeout:ef}=M9(()=>{eu||(null==ea||ea(),ec(!0))});return(0,eb.useEffect)(()=>{if(eo){let ei=eo();ei>0&&ec(!1),ed(ei)}else ec(null);return ef},[eo,ed,ef]),eu},jr=ei=>{let{expiringThreshold:eo,getSessionRemainingTime:ea,onSessionExpiring:eu}=ei,[ec,ed]=(0,eb.useState)(null),{startTimeout:ef,clearTimeout:eh}=M9(()=>{if(!ea){ed(null);return}ec||(null==eu||eu({getSessionRemainingTime:ea}),ed(!0))});return(0,eb.useEffect)(()=>{if(ea){let ei=ea()-eo;ei>0&&ed(!1),ef(ei)}else ed(null);return eh},[eo,ea,ef,eh]),ec};var jo=ea(23493),ja=ea.n(jo);let ju=["mousemove","mousedown","resize","keydown","touchstart","wheel","scroll"],jc=()=>{let[ei,eo]=(0,eb.useState)(!1),ea=(0,eb.useCallback)(()=>{eo(!1)},[]);return(0,eb.useEffect)(()=>{let ea=ja()(()=>{eo(!0)},3e3,{trailing:!1});if(!ei)for(let ei of ju)window.addEventListener(ei,ea);return()=>{for(let ei of(ea.cancel(),ju))window.removeEventListener(ei,ea)}},[ei]),{isUserActive:ei,resetUserActive:ea}};!function(ei){ei.WaitingSession="waitingSession",ei.Ready="ready",ei.Retry="retry",ei.WaitingTimeout="waitingTimeout",ei.WaitingRetryTimeout="waitingRetryTimeout",ei.WaitingUserActivity="waitingUserActivity",ei.Extending="extending"}(ed||(ed={}));var jd=function(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})};let jf=ei=>{let{sessionDataState:eo,extensionInterval:ea,extensionRetryDelay:eu,postSessionActivity:ec}=ei,[ef,eh]=(0,eb.useState)(ed.WaitingSession),{isUserActive:eg,resetUserActive:em}=jc(),{startTimeout:ew,timeoutImmediately:e_,clearTimeout:eS}=M9(ei=>jd(void 0,void 0,void 0,function*(){let{force:eo=!1}=null!=ei?ei:{};if(!eo&&!eg){eh(ed.WaitingUserActivity);return}eh(ed.Extending);try{yield ec(),eh(ed.Ready),em()}catch(ei){eh(ed.Retry)}})),eE=(0,eb.useRef)({state:ef,isUserActive:eg,sessionDataState:eo,extensionInterval:ea,extensionRetryDelay:eu});return(0,eb.useEffect)(()=>{let{extensionInterval:ei,extensionRetryDelay:ec}=eE.current,em=()=>{if(ef!==ed.Extending){if(eo!==kU.T.AVAILABLE){eh(ed.WaitingSession),eS();return}if(eo===kU.T.AVAILABLE&&ef===ed.WaitingSession){e_({force:!0});return}if(ef===ed.Ready){eh(ed.WaitingTimeout),ew(ea);return}if(ef===ed.Retry){eh(ed.WaitingRetryTimeout),ew(eu);return}if(ef===ed.WaitingUserActivity&&eg){eh(ed.WaitingTimeout),e_();return}if(ef===ed.WaitingTimeout&&ea!==ei){ew(ea);return}if(ef===ed.WaitingRetryTimeout&&eu!==ec){ew(eu);return}}};em(),eE.current={state:ef,isUserActive:eg,sessionDataState:eo,extensionInterval:ea,extensionRetryDelay:eu}},[ef,eg,eo,ea,eu,ew,e_,eS]),{sessionExtensionState:ef,isSessionExtending:ef===ed.Extending}},jh=ei=>{let{sessionExtensionState:eo,onSessionExtensionStateChange:ea}=ei,eu=M5(ei=>{let{prevCalculatedValue:eu,totalCalculations:ec=0}=null!=ei?ei:{},ed={sessionExtensionState:eo,previousSessionExtensionState:null==eu?void 0:eu.sessionExtensionState,totalChanges:ec};return null==ea||ea(ed),ed},[eo]);return eu},jp={extensionInterval:6e4,extensionRetryDelay:3e3,expiringThreshold:6e4},jg=ei=>{let{children:eo,extensionInterval:ea,extensionRetryDelay:eu,expiringThreshold:ec,onSessionExpiring:ed,onSessionDataChange:ef,onSessionDataStateChange:eh,onSessionExtensionStateChange:eg,onGetSessionExpirationSuccess:em,onGetSessionExpirationError:ew}=Object.assign(Object.assign({},jp),ei),{sessionData:e_,sessionDataState:eS,revalidateSessionData:eE,operations:{postSessionActivity:eA,login:eT,logout:ek}}=M1({onGetSessionExpirationSuccess:em,onGetSessionExpirationError:ew}),eC=M4({sessionData:e_,onSessionDataChange:ef}),eO=M6({sessionDataState:eS,onSessionDataStateChange:eh});M7({getSessionRemainingTime:null==e_?void 0:e_.expiration.getRemainingTime,onSessionExpired:eE});let eI=jr({expiringThreshold:ec,getSessionRemainingTime:null==e_?void 0:e_.expiration.getRemainingTime,onSessionExpiring:ed}),{sessionExtensionState:eP,isSessionExtending:eD}=jf({sessionDataState:eS,extensionInterval:ea,extensionRetryDelay:eu,postSessionActivity:eA});jh({sessionExtensionState:eP,onSessionExtensionStateChange:eg});let eN=(0,eb.useMemo)(()=>({sessionData:e_,sessionDataState:eS,sessionDataChange:eC,sessionDataStateChange:eO,isSessionExpiring:eI,isSessionExtending:eD,revalidateSessionData:eE,login:eT,logout:ek}),[e_,eS,eC,eO,eI,eD,eE,eT,ek]);return eb.createElement(MU.B.Provider,{value:eN},eo)},jy=ei=>{let{children:eo}=ei,ea=(0,oE.W)(),eu=ei=>{var eo;let{sessionData:eu}=ei,ec=null==eu?void 0:null===(eo=eu.csrf)||void 0===eo?void 0:eo.auth;ea.setConfig(ei=>({...ei,csrf:{auth:ec?()=>ec:void 0}})),ec&&(window.__internalAuth=ec)},ec=ei=>{ei.sessionDataState,kU.T.EXPIRED};return(0,em.jsx)(jg,{onSessionDataChange:eu,onSessionDataStateChange:ec,children:eo})};var jv=ea(22839),jb=ea(75438);let jw=!1;function j_(ei,eo){return eo.find(eo=>eo.value===ei)?ei:jb.k$}let jS=(0,Ez.VP)(jb.k$),jE=(0,Ez.d3)(jb.k$,jw,"__TRANSLATION_NOT_FOUND__"),jx={},jA=ei=>{let{language:eo,translations:ea,defaultTranslations:eu,supportedLanguages:ec,children:ed}=ei,ef=j_(eo,ec);return!jv.ZP.isInitialized&&ef&&jv.ZP.init({lng:ef,fallbackLng:jb.k$,fallbackNS:"general",resources:{[jb.k$]:eu},appendNamespaceToMissingKey:!0,returnObjects:!1,returnedObjectHandler:jS,lowerCaseLng:!0,keySeparator:".",react:{transKeepBasicHtmlNodesFor:["br","strong","i","p","ul","li"]},debug:jw,parseMissingKeyHandler(ei){if(jE(ei),null==ei?void 0:ei.startsWith("currency:Name")){let eo=ei.replace("currency:Name.","currency|Name:");return jv.ZP.t(eo,{nsSeparator:"|",keySeparator:":"})}return jw?ei:(ek.uT("Missing LangKey: key: ".concat(ei,", lang: ").concat(ef)),"")}}),(0,eb.useEffect)(()=>{if(jx[ef]=ea,jv.ZP.isInitialized)for(let ei in jx[ef])jv.ZP.hasResourceBundle(ef,ei)||jv.ZP.addResourceBundle(ef,ei,jx[ef][ei]);jv.ZP.changeLanguage(ef)},[ef,ea]),(0,em.jsx)(rT.a3,{i18n:jv.ZP,children:ed})};var jT=ea(52422),jk=ea(76592),jC=ea(464);function jO(){let ei=!1;return{clearReset:()=>{ei=!1},reset:()=>{ei=!0},isReset:()=>ei}}let jI=eb.createContext(jO()),jP=()=>eb.useContext(jI),jD=eb.createContext(!1),jN=()=>eb.useContext(jD);jD.Provider;var jM=ea(24798);let jj=(ei,eo)=>{(ei.suspense||ei.useErrorBoundary)&&!eo.isReset()&&(ei.retryOnMount=!1)},jR=ei=>{eb.useEffect(()=>{ei.clearReset()},[ei])},jL=({result:ei,errorResetBoundary:eo,useErrorBoundary:ea,query:eu})=>ei.isError&&!eo.isReset()&&!ei.isFetching&&(0,jM.L)(ea,[ei.error,eu]),jF=ei=>{ei.suspense&&"number"!=typeof ei.staleTime&&(ei.staleTime=1e3)},jB=(ei,eo)=>ei.isLoading&&ei.isFetching&&!eo,jU=(ei,eo,ea)=>(null==ei?void 0:ei.suspense)&&jB(eo,ea),jz=(ei,eo,ea)=>eo.fetchOptimistic(ei).then(({data:eo})=>{null==ei.onSuccess||ei.onSuccess(eo),null==ei.onSettled||ei.onSettled(eo,null)}).catch(eo=>{ea.clearReset(),null==ei.onError||ei.onError(eo),null==ei.onSettled||ei.onSettled(void 0,eo)});function jG(ei,eo){let ea=(0,tj.NL)({context:ei.context}),eu=jN(),ec=jP(),ed=ea.defaultQueryOptions(ei);ed._optimisticResults=eu?"isRestoring":"optimistic",ed.onError&&(ed.onError=tb.V.batchCalls(ed.onError)),ed.onSuccess&&(ed.onSuccess=tb.V.batchCalls(ed.onSuccess)),ed.onSettled&&(ed.onSettled=tb.V.batchCalls(ed.onSettled)),jF(ed),jj(ed,ec),jR(ec);let[ef]=eb.useState(()=>new eo(ea,ed)),eh=ef.getOptimisticResult(ed);if((0,jC.$)(eb.useCallback(ei=>{let eo=eu?()=>void 0:ef.subscribe(tb.V.batchCalls(ei));return ef.updateResult(),eo},[ef,eu]),()=>ef.getCurrentResult(),()=>ef.getCurrentResult()),eb.useEffect(()=>{ef.setOptions(ed,{listeners:!1})},[ed,ef]),jU(ed,eh,eu))throw jz(ed,ef,ec);if(jL({result:eh,errorResetBoundary:ec,useErrorBoundary:ed.useErrorBoundary,query:ef.getCurrentQuery()}))throw eh.error;return ed.notifyOnChangeProps?eh:ef.trackResult(eh)}function jV(ei,eo,ea){let eu=(0,tm._v)(ei,eo,ea);return jG(eu,oA)}let jq=({enabled:ei,refetchInterval:eo})=>{let ea=(0,oE.W)();return jV({queryKey:oL.slid.getSlid(),queryFn:()=>ea.slid.getSlid(),select:ei=>ei.data.result,enabled:ei,refetchOnWindowFocus:!1,refetchInterval:eo})},jH=ei=>{let eo=(0,oE.W)();return jV({queryKey:oL.account.getVendorId(),queryFn:()=>eo.account.getVendorId({type:jk.LE.Sardine}),select:ei=>ei.data.result,enabled:ei,refetchOnWindowFocus:!1})},jW=ei=>{let eo=(0,oE.W)();return jV({queryKey:oL.session.initSession(),queryFn:()=>eo.session.initSession(),select:ei=>ei.data.result,enabled:ei,refetchOnWindowFocus:!1})};var jK=ea(80910);let jY=1e3,jZ=1560,j$=({expiryUnixTs:ei,preempt:eo=0})=>{let ea=Math.round(Date.now()/jY);return ei?Math.round((ei-ea-eo)*jY):jZ*jY},jJ=ei=>{var eo,ea,eu,ec;let ed=ei&&"expires"in ei?null==ei?void 0:ei.expires:null===(ec=null===(eu=null===(ea=null===(eo=null==ei?void 0:ei.state)||void 0===eo?void 0:eo.data)||void 0===ea?void 0:ea.data)||void 0===eu?void 0:eu.result)||void 0===ec?void 0:ec.expires;return j$({expiryUnixTs:ed,preempt:120})};var jQ=ea(21645);let jX=!1,Ri=ei=>"success"===ei,Ro=({sdkOptions:ei,isAuthenticated:eo,children:ea})=>{let[eu,ec]=(0,eb.useState)(()=>eo),[ed,ef]=(0,eb.useState)(!1),[eh,eg]=(0,eb.useState)(0),[em,ew]=(0,eb.useState)(jQ.K),{isEnabled:e_,observers:eS}=ei,{status:eE}=jW(e_&&!eu),{status:eA,data:eT,isRefetching:ek}=jq({enabled:e_&&eu,refetchInterval:jJ}),{status:eC,data:eO}=jH(jX&&!eo&&e_),eI=eo?e_&&Ri(eA)&&Ri(eC):e_&&Ri(eA);(0,eb.useEffect)(()=>{eu||!eo&&(eo||"success"!==eE)||ec(!0)},[eu,eo,eE]),(0,eb.useEffect)(()=>{ek&&eg(ei=>ei+1)},[ek]),(0,eb.useEffect)(()=>{!ed&&eI&&"success"===eA&&(ew({isReady:eI,slid:eT.slid,vendorId:null==eO?void 0:eO.vendor_id}),ef(!0))},[ed,eI,eA,eT,eO]);let eP=(0,eb.useMemo)(()=>({withCaptureException:(0,jK.E)(null==eS?void 0:eS.captureException),withCaptureMessage:(0,jK.V)(null==eS?void 0:eS.captureMessage)}),[null==eS?void 0:eS.captureException,null==eS?void 0:eS.captureMessage]),eD=(0,eb.useMemo)(()=>Object.assign(Object.assign({},em),{refetchCount:eh,observers:eP}),[em,eh,eP]);return eb.createElement(jQ.w.Provider,{value:eD},ea)},Ra=({isAuthenticated:ei,vendorOptions:eo,sdkOptions:ea,children:eu})=>{let{clientId:ec,environment:ed}=eo,{observers:ef,isEnabled:eh}=null!=ea?ea:{};try{if(!Object.values(jk.qA).includes(ed))throw Error("fraud-sdk-web: provider instantiated with incorrect environment")}catch(ei){return null==ef||ef.captureException(ei),eb.createElement(eb.Fragment,null,eu)}let eg=()=>eb.createElement(Ro,{isAuthenticated:ei,sdkOptions:ea},eb.createElement(jT.j,{clientId:ec,environment:ed},eu)),em=()=>eb.createElement(Ro,{isAuthenticated:ei,sdkOptions:ea},eu);return eh?eg():em()},Rl=ei=>{let{children:eo}=ei,{isAuthenticated:ea}=(0,EG.kq)(),{lunchIsPacked:eu}=(0,tR.V)(),{sar_client_env:ec,sar_client_key:ed}=(0,kB.C)();return(0,em.jsx)(Ra,{isAuthenticated:ea,sdkOptions:{isEnabled:!!eu,observers:{captureMessage:ek.uT,captureException:ek.Tb}},vendorOptions:{environment:ec,clientId:ed},children:eo})};var Ru=ea(63245),Rc=ea(51068),Rd=ea(71394),Rf=ea(23130),Rh=ea(24325);let Rp=eb.forwardRef((ei,eo)=>{let{color:ea,...eu}=ei;return(0,em.jsxs)("svg",{...(0,Rh.ti)(eu),ref:eo,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,em.jsx)("rect",{width:"3.42857",height:"3.42857",rx:"0.5",fill:ea}),(0,em.jsx)("rect",{y:"6.28571",width:"3.42857",height:"3.42857",rx:"0.5",fill:ea}),(0,em.jsx)("rect",{y:"12.5714",width:"3.42857",height:"3.42857",rx:"0.5",fill:ea}),(0,em.jsx)("rect",{x:"6.28571",width:"3.42857",height:"3.42857",rx:"0.5",fill:ea}),(0,em.jsx)("rect",{x:"6.28571",y:"6.28571",width:"3.42857",height:"3.42857",rx:"0.5",fill:ea}),(0,em.jsx)("rect",{x:"6.28571",y:"12.5714",width:"3.42857",height:"3.42857",rx:"0.5",fill:ea}),(0,em.jsx)("rect",{x:"12.5714",width:"3.42857",height:"3.42857",rx:"0.5",fill:ea}),(0,em.jsx)("rect",{x:"12.5714",y:"6.28571",width:"3.42857",height:"3.42857",rx:"0.5",fill:ea}),(0,em.jsx)("rect",{x:"12.5714",y:"12.5714",width:"3.42857",height:"3.42857",rx:"0.5",fill:ea})]})});Rp.displayName="BentoBox";var Rg=ea(41664),Rm=ea.n(Rg);let Ry=()=>({type:"reset"}),Rv=()=>({type:"executing"}),Rb=ei=>({value:ei,type:"success"}),Rw=ei=>({error:ei,type:"error"});!function(ei){ei[ei.idle=0]="idle",ei[ei.executing=1]="executing",ei[ei.done=2]="done"}(ef||(ef={}));let R_={value:null,error:null,stage:ef.idle},RS=(ei,eo)=>"reset"===eo.type?R_:"executing"===eo.type?{...R_,stage:ef.executing}:"success"===eo.type?{...R_,stage:ef.done,value:eo.value}:{...R_,stage:ef.done,error:eo.error},RE=ei=>{ei.nativeEvent.stopImmediatePropagation(),ei.preventDefault()},Rx=ei=>{let{onClick:eo}=ei,[{stage:ea,value:eu,error:ec},ed]=(0,eb.useReducer)(RS,R_);return{stage:ea,value:eu,error:ec,reset:(0,eb.useCallback)(()=>ed(Ry()),[]),onClick:(0,eb.useCallback)(async ei=>{if(0===ei.button){if(ea===ef.idle){RE(ei),ed(Rv());try{let ea=await eo(ei);ed(Rb(ea)),setTimeout(()=>{var eo;null===(eo=ei.target)||void 0===eo||eo.click()},0)}catch(ei){ed(Rw(ei))}}ea===ef.done?ed(Ry()):RE(ei)}},[ea,eo])}};var RA=ea(13137),RT=ea.n(RA),Rk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABhsSURBVHgBzVsLtF1Fef5m731e95EnedyEPEnQEAIEEykgCFoEzFqAloq0EbUgVKsIwrIuWVbaulrFB4S2i4pRqxaUarUVigblIUWRlyZgSIAkJCHk5nmTm3tzz2vvmf7/PzP77H3OCa2rPpi77j1375k9e/739/8zR6FLe/3Sb51Yb/ziUoPgfAU1z0D1A4p6AvCnok9jlPxvYD99H0z+Ou03rj8z3mSv2/pNl/kKoUKxCCQ6lGdlDcaOTdfD1ya9HqP+Z4w2T8BEq57dfN6mdlpV9uLU4342SRUan4918u66WWP7TGuh/APlJpcFo43QX58Jab/JPN/GIP7pKfO7FTSvR/tnghYjHBNajMgzxc2zOlb1Tz733EU7Oxjw2tf+YG5/VL7fAPMLQYiqfogmH0kXppSdROcWSp8G6WKVl5yxi80S1Z3IV9YEvl+MFColhVg7Ar20TYYJpjV/Tht0O4OE1K2mWT9749a3bfXiwzmn3zdjYqXwoFJ6fhQESIymySZDqFM0ZaCJHkPEG3sPuvUpLNSyXJPe8/1+rE7nyveZ9Nn8eCPv669olMuk8rJw26/cb2686nzevs++W6nsfcxFVHxg5szvTk4Z0DT6r8tFzC0UmViDkKRXDAbkgSiwk2ljJ1LowoQjEZJZmHL9KrOwrkygZwqRxvh+6g+RYbplijyr7NzKM9UTqfw4FmDmGeT/Z7/W31P+rJjABef+cIFuRi80mwaNJi0zCVFvGCQJDYvuJ9UbI6cT5FQ0p7Idtt+l3wT4v/kEhb6KQhSFJHWV2nRXVe/i/PI+oeUHstet+8S2IDgpCAP94ShKEIQJKkWFQoHUjj77KwlNeDQR36lW6ghqm5Vm936d789oQhQZTBpH2hexyntzMhkt0um7vTSz61BZ82lfi2ozL6cxSutLo2LRLAd5VfZZcaxRIK4Wgyb2D7PjW4BAbSE1bLqHnednhrJJiLR9M+4+3FiVH+9H8gcRMn58BT2VEpi/ptlAM06I2bRcR5hIUzn6vas21tPIzfS+HevHKFqXj0h2Oa11il9m/6as8w6UOj8i21/SaMYk+QCxiRE0E+w5WKaBoePWQnpwvXufyRAMx2E3OdyLVZDSqhwjyvSSZcvn4owzF2DpybMwa/ZE9PQUcjNVx5rYtGkvNjy7B488shVPPb4z9eopXx03lNMQ5RnshGPQYlZ+rW6dJsMEeVbPU5dferdh249jheZYgG07C9Bk81EYEofIQSYkGfUwTXEQHTaPLqEuDY8Kkyb3YeW7/gDveOcy9PeX8eu0wcER3Hv3Rtz9/Y3YvWssD3TabB4mez/I+YgWOOqOFdT7332PaZKGH9hnsOmlIiIViecNg0DYFQhhhxEHDxFjmujq+FTeOfb0lPHeP3sDLnvP6ST9Av4/bWhoDHd8fS3u+Nenu8T8IzGiDStkCG8fr6698h6z4yWNF7ZWREWYcE0/Af0wJmgkMYGRAtG4G3Xzs8ykXTSB1P+YY6bhlltXkppPxm+ybdk8hOuuuZc0YyxFglkiWx7eM6IzImS1wV8Hu3dpbNxcgoWKlgH8w58q4M9QNMKYaSiqpch7+TzIOfe84/GNO//8N048t/nHTMIXV1+EhQsnphhAZaKEykYA5aNVNvaTjzIZMOUAWbD++TKFwDB1GTW2B2ox2X4zbsogSibYY5IJzCETWYaWu2+FlwsvOhmfvulSUv8Sfltt6rQ+YsKFOG7xZEdkO8DRGYaYPOpUluh2wBR4r8r6z348DJTg/kC1wAn/q7V2CHEuKuE51F9JpbDkhFn4xCf/2OULv93W01vEzaveiqOP7s1LWGVjv84R6aWd1Vo/PvCQg1U9VDZUxESsgBFjcrJmU+CoANOLcvCHpA3zMX3GBNz0ucsIyAT4XbUJEyu4+dYVxIwQebVvA0E5GJyB5pn7dtXKEqdzag25ZmawNlhmuB8xhxCl8CRce/VVGBiYiN91mz1nAt5z+dKUMNXGiG5I0JuAStEg0caShzMB8euKvb/1CZwWM7EcCXiKgMwjMYnA44D6XnfKeLxlxTT8vtqfrjwJc+aMTx1gNjHqhL/GJUj22kPtoBnHQrRI1bRSXmYCE8k+IXLojh1jFESSGTaTJq76i7n4fTY2uyuuWoZWnmCgHOzORwndMhHnDKOQfBql+QEjPk+8SJ+uWcIJqX4jbojNW5ZYniXaXi84tgfHLRmH33c7+03z0T+OwVY+2eqMErYv5PoGMaAZkz+LYZ0gMyAKA7Fz9vbcmBGsDGwGxchKnZnLmsEveOefHI1XQysUQlxw0aJceGsxomXzXNdgiFdvkmCbcJiANIChbpZo+QwsM5gpzBzGBt5MwrCJGVPHsPyUCXi1tFNPn42c7XtHp5jwRDLXGtU4GjFS2/e/EXv4IHAFAkkVlZTELPAxLrwlcn3U+CalscD4yeMwQHH41dKOP36AqkiUuDVtlsdpDAPhJiV5Y80glXaaIiuXrhMcDrz9+3xeJC+RASLxJkWAEpWojp5WQ4XKVHV6dsasniMuZtuWEfz8p7uxe3f1FRfN79n8wiG8sHEY/1s7PBLjmbV7sW/faNf+SqWAgRl9Us6LVIKYUvqRMUOaa1zq2yUiOKQY8QShU3kSeeoEOeSxNk3sb2LKUQqHGzb5YX2YNr3SdSF3fu15fPuOrZJsFAoKH7p+Mc5800DHuP37G7jpE89g+5aaaNuJyyfgo3+1GIViJ5i67+5BfGv1y6jWmhiO1+Haj56Bc85d3DFuDuGCLZuHpazHLa0H+GKML6CYTGGH/4vChgM6WrI+/j/i0BdYqY+fRE5DW23gHzaTvv6ok6i9NXznzm30fETMo34d4cu3PYdu7T//bSu2bBojEFIQLPb0E4fw4x8Mdoyr1RJ86ys7UK2zkMoYFy3BzZ/7MdUuko6xhVKRbDyfnyi0QI+tHHX2BdXkcZLCXtp1icTmaVMEE/oTzJvVRKmHtmEMh8lArEcFlgndYO/ePTVxlMYV32Oaa3i4iUZDd4wd3FkFB9M6hVljbG1n18u1jnH7dtdRq8L6I/FLlLg1B6RG0N7CUCFbWc6qfD4U5vsiQ8iuFm8h26mjHE3F7KlUFO2lgKELwrEwDGwiRJ+MDaRM5KBytrEfYaDE4MnIeDKlTkG1FszOVltnxGsw3Qa5pIzhOCNWRSW7/mg2J+tdBnvAk6lF2pWl11K38TVE1xdx8Z3rf5XKMGZOi6HCKdQRyYTsG/zLOTkqOCZ0y/qYIOUySZ6fAdORskPjkiqbgIVo6tgKrQtRMTlhRqO1akxevURaE7v1dY5tCaatKJutGQonHFMMh3xawOwB2n7qLZANRVCkluVCRTjFFVsmTPyHsap4BFkJo+RV9BBXdtlkEq1xpMahl5mkpVAB+exGU72e4HCNfVNBGGGA1MyyTTlCfaHUZJ2f60O2wOqug0XzCij2loiASG5EYcHl/oEDRLYWoJR1hDYt7rJYJ2xBlNqk8Llbs5ph022pPKXbbvmW0GuGDyupU7LkG1ygMTiCZnULdTpXFFGZCpYvmNC+wAKExm45ByjRgko5E2fb5/DILNWcB/CiVacNcsLEy2Inaom04bUrA4A096hLMqZwBAsQATTIRIrkpHnuoLutIHV+0t0mbZW1e1+ut9dRKZosjitJtIAesXetU7VPpB7AewYOLnPRtIsG2L1Dla6BiWpqg26y8sUW7qRdMBFA3CVa2MqUdcKs0oFzil01EC0w94pMaOuP4GI7v4xxAEvEHoFge9epdAqBdSK8GEGK7QwAhIHFsEjOUAvjoiA4ghG4jIztuxpRnKfqc7PTsfEcLPUCr4vyEQ7VUnzGkUzAOT/lpG3ad6jyIIg1IQoDW/fjQgdcKZyvm5L7B65KpNyCbNWIHVMHAxJjS2owLY0hKddrxBQ+1pFpYwRtDwwRTm8UrZRp/mo97pizVtUyXywRw85thdDJ1pHRWgv9oZ1Qk7LI+oXW7lUQuA0Q64OMI0ChVCjYOJyVorJO7rFHd3UAnIfv3ylh0LhtK2YeP/vQj3fmxu18uUpbX6MYrduQCWPx+gM/2oORQ83c2B+t2U3E6zRs1skJJvR5z/d25cbt3jWM9b/agWyWl9+e11367L3w9Usuv5HDEecA1jEp6xO0fbHdLFEiXc8oXuizTw9h8tQSDuyv4+7vbsMDP9wlz9l6oRb0yO3ZtftQqxvZY/jV08O48ePrCcnF6YkT/mVtqVYT/OSB3Zh5dIW0o4G77thBecUumYdLct7++fqXTx1Ag7SwXAmwYcMgbvj4XXj55WEvo/Sv/Vell67GnWOeunrloyLgpsPXor6J9Ql8Twlic0HNZRcN9hO8m5wwVkgE/yfaFk0ZATbIXomdtOEZYe9BfigU/+CXIXVI5zClFK+C1A+xl/eO125fcUoeyTWHwTL5g9gLjHGEOYDR+AlYYBOgRWr2nEL+7JLJ7GhFrKpNZ2OsATbeW7AhRdDEegEGRFpZ7eEKEXvySCaKRC0LkkXSwmj/8HBVYfBgSaIAh0frEAvWQl3dISGfUQrtPqSkFhbhwLERWbvTzhnymlkbpDbJz/JINZnWW6JH687Dewln/YBGaxO3FQb5FZExtswl6q8t+uOWNQltrAMUZmlWRybWaoHASa4cEeG1sQK2DyENN86/OuY6k6JbzNQCMTFmx2uMnAsQ1OgYbJ+zDpmJF+3iahRDcyKeBWC0dbKG7lfCuRiLN6Ll4OzC7JZ99oxCPg9g9xsxEU0GGAhEqvwiXpxAWnY+9KICESwOzsIwkkaM8VSIPOOcabQx0kP9GsNEPBMWpBUl67U96LHCN64A63yEycRtTsNl7kSelSNxRKySfIFDbAuNqoykn1k3jPvuTVA9vJWmq6F1cCtIy+CqPQ/IJkNMZMGVupmzFtNbVMVqJpjdeWJmCtvr+AkRbvjMUkyZ+uvt+f822ooLp+OCtw3gistGqfz1JK28Afi8wvmZ9rCYZULg4arnrA9NTGjg0JdoBZlEpRCwKHDsokmvCuJ94/L8iSdPQwHLab1cqs+EvrRI2hYKXRiM0gKo00YmPHZ4WztVLkWsYgZ79hcwUi3jjRNbBdHqWIKPfPi/SO33pZNHkcKpp5yGt5w/j8pnllH//dAeCW2BU3MPhRcs6Mel75qNGTPzdUbuvuc/XsYP7h2k2uEIpesRFizsxx+9YyZOfcOUDiYMDFRISH1kjqfSWnaglmymu+QYXfGTm1LeFH3T7KStowmcijDRskPMZ3PJs1YPR9i1v0KhLZS5CmGSS0cPj9Xw05+tw7hxJaoYF4WzQ/tH8Ogj38R37joeq79xAaZMKVOcruGJnw/TxmYBvX2RhLCR0RhPPXYI//7tHbj9q8tw/Am21H74cIxrPvAUfvHkIRob4jXHjQP7y/vv34v7f7Qbl181Dx+85tgOJrBvgiRlM1DEUfT/HjTNNnIX7BuCDDR2EYGBHYcyHSjHdVsBCqnyMnqIylT7e8n+fSJk0lQ0yGV5fD/CsmXzccs/XJzevfWW+/Dl1Q/jG1+fjI9c92YnAYWPfGwBzn3r9HTcXXfuwKc/tQFfum0LVt12sty7+aaNBHZG8LaLZ+Ka649Na5CDO2t433uewO3/vAXTB8q4+JLZLVkaW1eIE5s5asPZ7QwK0jOo9yAxYh/ROwI+7uNTZQNb6rN2zpeGYvgBg23b+zBIUtc6kmG8O8Shkp0l+4J8hsNPFnLpJreVl50OxgjPb9zhiGd1rHXk8pfQDhNXkAd31uWaofL3vjNIZe4ybrhxUa4Ay/du+aelEg6/9pWtuXlEOIxYGbtwNQqQaBQKuJpAKzyGzGMpyuGZhDJOQTFYTuFzGSS4RUT46AGF7S9NwNBwH3HRFj8ZCBWpQMISt5kdVYgFNLVlY6QBpq1O94unXiKJFDBxUr9cs4+o6kdpcfty4+79PuUKpGXz5vfJ9TPrDoo/OnfF1K6FjwUL+8gJ92L7tirtPdQyGmAkWnnM0JStPFtPNO5TMlvqL1KFGYbAky4hOjQUEFztl8HetJU7D2AZa1IAwxCWkVOcy8etBrxAmxw3f/4ReWJo6DDWrNlIYbSI9115pmMSa0iI27/4IL5550/FM48MN/Dii8D0KTNx9fWnybDREcL4hSL6+498umzypDK9hcLeKDmGaRkGiHMlM0gPdlhHy0g1cNv8XMwRc3FZbrR/uEfwt3EwWACQA6RpYcuYtBYgEDmTUIQEcXsK07F9+z6y+XU8CkVS6ZOWzsSHrjkN8485yo0MRCOqVObuI8c2PDyG7Vv34eRls7Dq1vNph9dGi4GZDVSTR7F+Pe8szevKgOeJ2eyGOHHyTWA7J2GBQ6FQrgoMt/VncwzOXfxhMIHCnnuB8qFC50pWAilDpHVCProehhl1p+upfXNx7MkD+NtPL5NbpXLUsXdgz+5FuPqaN+GtK47D6Ggd77j4dsoQd2Fw8BAxwBLDDJk4sYEHHngQGzcswWsXzczNs/r2F7B3V4MA0ACKpdY7ZIPX1Ra0S7GVsqcc5fi/r1gbkx4H4DEyQ+BAfeISDlGN0KsKxG4sc1zekOgcaTzZhJ4pFLKK8tv1vJCxiZNHZH19JXzmprdTxhngumu/TaHPOkE+WPmxGy6iEniIK69Yja/9y0/w9LptePLJF/HZv9uIVV/YRFpSxgevXtj2AiXAzdckBeDJgQ/rHLMnYKSw4zLOqPW4SstfyuX9HgUmqqX2adKC7JP+VNkrNasB2Qiy5ISZeP8HzsI/3vowbvnCg7jhE+fJ/XPPO0H2F1fdsoa2wtaI87XfAZiB1y07FZ/6+yUEnPL7k8al64HyGzjWFNikWWDsv+KkBZG5SVrtkK+7b7mmVIsw60dsySxSoXA2yVSvyj0BPrVqISZMil6R/DeePY88/SQctziP4t531WnEiBmijtptynI77/wlOOcti/HYzzeTo9yLUinCokUDWHz8rK7zc0FFp1J2u0kOzkvJj4j1JTvHKUmo1CVnbTDeI/rsTKG1Ze5NQDlt4HT42MVFfOa21+DV0sYIjl+44ieEIRrpJi5SwRpXcwhdpmm1NQqNPSNEI0e8A/T278vasM/byVw0YDC0aX0Dt9/8Eob2NvG7aO4QW9ffXbuq+MvrfknE153TQ1p4Me6nQMSWizHGVTTG9Wj093CazSdGVFVdcvZza0nEJ6YvQytF9wURv4rEZEpjEjoJdvYYtyts7azWbLjdHoVD1VEMje2z9ptmY/5bH74w6Xdq/D2TG+tPf/EplVy/nkRD5mDoQMMSruymbCTE8veObMZXiLiIwnVF69c4ICSJYyCCx9grraEZT/SEe1dmbcmVxqTIkfENqbXQltWozR/sN80o/2raXEEcqO5FPFalPP2wm9VtVqRfA3FhNvWfCq1d0rZjbmjf7tpD0H0SJvRWqILNX7VpytduuEJEkpXvPFHqhnqiM2V05Up9tu5JCdkTrAEnElvWwqmONwftdMyW6lx90PkCk0GCUiiBczzkHX1BM5FSViLoa3B4H1rf98n/ptqRnudNWv2qpR1BkKC3bNBDalwsWilD9VCWOkf2EPkIPdPJAcBeu9OvUm6zCsWSl/KefA+PhFRTC4X3l5y18Sv0lveqDFFw0veFZI8EpTTmOerGyG4R79oYCzoSd6SO8wbu23PoIKrNeptatzEjc4+/p9hXSdBH9loqa/QQ4VQMlkMXiTYuYmj5TJJZFJXK7jsAlrjElgvlf+2+P+CJjhPjNnzNl9auX3GlRYKl3uvDxuE3Utd8ocvX9ZzSeUKVw5beJLji2yA/YNxhhzRvoDFcwuYSG9Wc0FMqEQMaLbUXgGWJZU/cW6EaY7+hoodCL4XVcpn3CkJZtCc2Nv7Aky9nWTEH6gC9f0DyE/ttEaQQ2Nuq/18EaHXqRRUXbkTG5PHOszbMpecfpN65qcjRSoxaENJCTO03UC1Mkc/Yv8DhbnmeNKZOxG8f2ie231symDg+Rl8vo0EivkcLA2Nta46CPrUNXUawu3YFWp3p1ymU5XVoPQAdF510lZN0Yr+RppXc53v22mxpovHmtWvtV2dz8G3lGc8ONEP1N0ToFakfcKrvHRtvcPjdn8htWSsHNMT2jf2UhCOqY1wf/Y6jzC/eRwQnjFEl3fb2arRyam3SSrT2BDqCfRLW8ZkyoERo7yhRdWGk8/KeIfIuOdmhvqqj2kcff/zt+5G6xS5t5Vm/WtAMwg+TwJaTdJbQLD0trGQcMmwdo+euYsSHq2pUMSap9jXR01tHoVQghhlZyIHRMTKDphAtvxkGaCtse21ampBlSOvTa0LrWn71FCKyIHPIfiLE7keIAVtIJmuQhN985JfnrWun9X8AIy3nWz1jwpAAAAAASUVORK5CYII=",RO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABSeSURBVHgBzVtpjCXHXf9VdXW/a95cOzt7zS47e4Dxsb5XOHEAx3YQCiEQJcJGCPLBAvHJQkLIzofgfAXiEEDwAdsgPhBLSAZhEjDBBzJETozjg43jXa93N971nnPszLy7j8q/jq7ufq/frHPZ/ku9b7q6uup/X9XLUAJ/8evPX8+95F6w5Jdr1XCx1w+aany93ceFyx1AYixI9085+CKB50n0+h5+XNCciNDtC0i7bxD4qNdqYIx1INn/MyQv8pB/+XNP3XF8+F2Wv3n4M9+YDTD4IgP7HUlvqrFadYDeINDPNzoDXFhpj9L3AzCkXo3Q6QlcCeYqCXbUY1SITzGhcqzbREIUJklCF2GnqKXL92MInyNOPGKsh8D3wTl3m8scqUzikagf/vFDX//Y2WzUwpfueXavH/On6ZV9eUSq1RCDgdBTl9e7WFnvoZTI0puhefSsUYvQ7m7OgGumI+xuRIWxb3fnEUk+MneioQTkF/YYRs4MMfOQsVOxhzse+pc7TqlRveJf3vOfO0XMnh0m3rwmDZuIfRvdgf27eBVu8zdAQceCIEEYjRKRh4OTo8RrQvlgZKxWCRHFVzAlZnBydEDu9WL5zIN3PrEFKQNYEnyBnu0dfpfzBCkFra7aLLGLjW6SJzrPjDxTArL/QTieAdtrMfY3o9JnU16RAYwEInyJKOFD4xgLOdwX6/XpP9VjD3/m2QMB2JtlL1SCkOzPI81hOHV+naSXFCfITW/NQA6hmk/qP8b+a+QYf25+gAovtyHlB17ubSU/YAhuNvrohUFx72F8ypaS2Q89v4H7YPdjDDBtNgyXyfuXSn/YFMrMwUI1iNEfo/6K+MNbxxOvwCOJz3vG//giJskXGcncP0X8R9Q1r6WM3cvpj1sxBtQCMXncyxu9wgIsf6FkgxJz8L0EUQkDmn6iiVdMuBLs8FvEiASVSmxUf4jAUiYgw3UYR0ZhXpBzuE6i3HA4SaTdCzUT0gVStfIFx1yD40ZxFK3Iw6neNE73p0hFhzEyEMbFPQStvdiIsUg2zzex2zz4RPzBict4O5lyS8v8PtbPycLDHDps2CzYoiDS6tgEuv0wtxrTi1R8D/vnBD7Cv4kJmLzgcPMMuomPo73t+E53AWshQ8dKvFqh2N8xf0+QxLfXEvwUEe/zK0u9CGQG9Q667QDnWMMRbJ7kyErHSh4OMaG5aUCWNNsXHr0UQmsJvShI8tu3NPBh73818dmGjNQ4wtWNi+C1bXquclwdcuqCkpWw7umk5gcnOoMqMS0KBXYGLU3I2bDhiHOSTx2vdD8jXMpr86YMULFzuhlQohHpy6eMa/tsA/vFWUxivfQdyiThIUbMPO246HV4RHTo//CEK6DUnLDhFi/jDwQSnCEmJGp8WP0dDTkFKNwYGMsA4cV6Q+Fx7No6oVNPZlm3yE6ZSbkwp/+091XWQ1s2zDok/UHnR8/7/arU6W6elnm/Q/lBH8f6M+hLz42X+QVgNEwrcsZmJYKSlijm2UTrqRroYkauOWLzCKWrVVg3FxJ/NMlrXMhvOL0dknCFx7imtoRtxIzhzLRs/vA9nyZiSsHmAIUhup1hl92E/FPJMg77MFkbp9CWRO/SxW8CPjnNOOYF3PKbqye7gw1tFvnnw0xwr+Xe578Qv0B2MJp+ciZ1ujkc12ewapjDU3uzLlBmi/sI9a+y23CQqa3JvqS7Envlx+SQxlSpLogigdJIPTS2y2+jmU+Z2RDRJWOiQtKakutYZrPFtRVb46IKK4InsQEkLPM4w7YAyziba6YETR2YxZZrt6G5dxqTi7OoNCsQjUC/GvcpS1zuoLPcxtrxZax85xJWjlA0YbGyPYvHmPg+NLZddLAR+yiIfRMHOdYJskIcyV5oqtDHMonLIov0OFXoWvrUTMDBT1yF3XftR2W6Nm4riKqA2DWJBl1bD+0APgUMWgMsv3Iap/79KNpn1rTBFeL7iEczYw0eGnchN/H+OUaIHipYYTMo4cDIZF+GqMmeQ2A06WN6LGxM4cAnb8TuO38a3P/hIkAwEWDH7fv1dfGl0zj6lW+jf6njGDGOCYIlyIjOaWeqrEOvibf5TpSlwtyZQPbSlIr9KXs5RpIQpe7V22/BoXs/CW+iih8XzN+8W18n/vUITvzzESgax5qEA4mRxykvcowQx/iBkVcFVVuqDM4XEOqlLToCKDU3+aTM5QD0EiZ/8xNo3HkbflKw71evxfwtu/HKnz1HPqNbNAmLSAMKx3mLtBlUOiOHTcCaMO9gVFK6chtqNKjZO3DB7KMe5UpBVq9h9oHf/YkSn8LEzinc/Lm7UNlay6NGhG9gLz+GSbaUDTowjnmkIsS4RCitNHPhT6n/NF1K+qnj15oQBJj5o/sQHNyL9wpqcw3c8uBdaM4xzLHz2M/fwKL3JhqshT4VZE42I5ZtI5SFKjV8ShnAWb6XCl2D3ypfcQNWs7TNN3/71xAs7sZ7DVUqyG564G5sm7xMqXcHaaWa1+hyJhjB1ioDdLteOQOYlyVAnEqNm/EacdekmvmQV/v4L6L+kVvwfoHYOoupz34a2u9bQvsICnMKmmzn1Ct9tNuUrkXjGGCNpYYebmffxA5SszQrdIvNzaD5qY/h/YbaTdeidttN5pyAQDdkhgguzCe139gIXHeqNBHyKAPby9/GQfaWTmtVTSBlFlpV+jp5z8fBxJUPON4LmPyNX0HvlddBx02UB8TFvCcX+ip+iPUNnw5WMrkXKBAswgFxCldXTyKI+pBpTqHz9GxZb88u1G49hA8KeJMTaNz9YbSffIbOD3qlSY9PzZr19WCkwNMMmOZr2OOfxgGPCKfWNWNChzplClry6SqaERSKfunn8UGDxl23o/W157BNrlBDhqrHtHlCyHtU7LVao8QrEB+d+G/Mi0v6RkmcBSp1lcoOlK4bDUp0KmGYMTVJ0r8BHzTwJhoIfvYA+JFjWKSO1fFoQUczOjUkm6+MfY/PVy7Svyaroy4WVYGKePurmKguIfUc9bfaZNPjl/cRaodv0KH5xuA46tQpEpr4YNN3ODxDmA59ikifZUxQPWN12Xv1vHr9NfigQvXQz+iQWBN93BYcwdoViFfAFeGMWk6aAepSpbRniGbcdIaZvYc621/YhQ8qeM0Jyg2myWSp9d49j8OV16/4jpBcZpWV8gHkFmVs3WiSFj6pafgQc1tKF5JxjPY3XkR4+hwCihKN2w9vunHSocbpt16GDEPUb7yO1p3ZdH7/5Gn0jp2AIB9Uv+ka8lXl0hU7dmBwclnTdCh4i2qDDl4YXINWUt6PEErFtZOzgV5JW6YdHcWcRDlHwwQ+NzcWwaWH/wYROSBODOvR3O5Lr2Hu/vtK50bLq1j64l8Dq2ua8xtPfA0zv/dbqN9wben89a8/j43HnyQhEJ4klDVi1vbP3w/eGD3TYfUJF/oUGYviHLZ5qzga7sbRaDc2kkZhPtd2n6o/MUPSYRkjVc98g2EKp2e8Ue5Ne68dQfz6MVUR6/keRZCQGNB7o/TQGRv/9hT42jodjzE9l9wO1v/pydK5MqIQ9tWndXveI3NUX3+wlcvY+K//KZ3PJwxTnJsmMmqUG9wYvIl76s/g0/Xn8KHKG9hDTdQFOmARWuJprFddEGacoXb0ian71eGdDpGi3PtHl5Y0g5Q0tS9RvORkFReWGK46ODI/pvmMZwiqcBWvrEIOqJ0V+MW1SVtYp+vSc40mkRedu1iKC3HUnVek/SBNm81kZ/gGAqIvksbkBKwP0BNUWqQcXpzW/JY5ygw886wMmDUdVyXGhhdgY+arDy90R0m6BhMbc0LhKrqss2VUPEkwDhw9hRfgviGYQIuau2vo+E1Ses82QJWEbQRIU0nJLJ6JuW/LJvUEynY0WmM+wYHrCrNxDIAxOZ1q23mbHaAY5li/ZDWBjSlD9OEnMxFdDqXE+RbZgYk3sRQsKBNIMkrVorbfrxBKHWCXDpBX+lvRD3diVzlFxLx0vkUiYqXVmAadYJlWlU6vkxympfNtNEotUjGvG42droXOjeaOAAlcTBpC55LzygRgVFE/ZCYBkoZ93aSOd9p70Y4nNdeamyDoLiozNSm+HM8AZVow/kKFXO10k000IDUBaQ5bkrVIm9n4Fyxz8z1NhWZATnRC6D3T3QSzx9XSTpAwGrHUnse51l73TY5aoOZ1xyAojfNLDDGSjrG0nY+Tqo0sWv3zfqWMYSwlyPxq4pNNsvG0Z2H9S6r6XH0JQC16GRuPz2xhJIxjs8mOMEitdbfgbGtfhpNdqCo65ZumKs2tCRDxchPH5vKNxDIgYmP9hZ6utZIqvPU4a/WP/c4g62ZpHChyeZPqQy/bx0/b+dZPCdc61uqvwp3ESndrAdkUhDcYh6KpFRRnY7uzBCQbRxAR76URgJliK8T4/j7puyJezVXhVvmMcRrALHO0X65Ta58uPR/pSUHxvECk+KssS1umkmIJ5mqkWik3AcmSQojUDlAhMe5QSCOZaYE+gPFkuckoy+pQ99Zj6XGjmTdGY/Rj2ttTjk54JrpZhmgKEwbXNaPFRHYExp3BxCY2FladbVyEH7fKCYr72vY1f5VTU2LwaT0+LlaH1gekBRdM7jGgdfxijp90O4DrRxpz0ZFq0CtdmXJQqityzQ+r8i4M8kwDmMydC6T22gsb6AwmswVJulua57Fr5iSSyxcQrZ4r7khE9F593qmeNgWKAN6UQP+Nl0cQjFcvIl4+Y9Q+rTQ9U3Z3X3phZH73/75lsswUU9/kEOHJkzp7LKASRhi8ccSYnjVJnq5vU3utedxohbbcB+6+4SFNqC90GnmptROd/qQmaK55Dvvmv4vp+opmhFq3f/xlCiVzpGIziJbOo/Uf/4Dk7HHjqKxqezWhj8qS1ioGyxRrZ3foBmp4+gTWn3gUXjjI0mYvFQCjiu8t6rjQsfn0LBLShtZTX0Xvmae1+jObnjPrO1gSo/Pyq/B2L+gyODz7DtYefxy4cM48t0654Cx4TrGto2Srf/JZbUy60CEGXFxbwPm1PZifOoPtk29nuiLNG0m7iyiMTTghxHSBwmAdjc3UJ2q6flC2rTJW/Xm7PtCk+dxGnDQW2yTIJE60fneAsBXpcU+XJrlP3xMbLZQd2/cStV4j0GtzhYtTB2bMQMI2dS3xejyLfFlCaW1AET5ZX6aQ13XJh/v+haiQUaKrOJnjrEbGcpjXfb2qJpjUlcdMFy+6VZNmfNL6YjWmkyBmQjARz4i5vrBeSruQxO2vpKoYZaRLa9eFPpqTaZKfZqH2G291qKOf2SgQkW/rUDlcpeowkH09yTGAaS9rKK74XbtpLptTv73I8Cn1KNI8MEkQTIIuhOa886mebalzmTFB7WQJN7kAZXctOn+IE2MSaYKkU2uuzU8zWRESGNVm9QqtwbV2mYatxSO29q89vqluFbPOUxp/Cduc4PbRQWoDrTQM2vTJRhbG4CSVB+VkHMOcW80m8abvMjdY4TnvnfJNES5NtICX6IiRtFR+EZlQTCrP/CQLlYnNGLnVBDJTrj+tscyza7P0/Jtlqk7qp5l2njrEF4l4J0iCNmvqw1ThpO/oYJYJMu0RmeEo1kkS8tPy/qXim35CqjQKM55GXGuD3Hh+vbJNhWW3R0OxbsRIxV+WWDVOEyojQXXPG0J9w284qfsT0v2tNSxmNgO0dkDvbBChl5JtDmUjtwQz/pL+NRrARzMWKYu5lpN+tkomfDW1HgAZvWYBbceWjcY/ug8udWrbVqdPtjcA6bpP2s6NWE17TgUotb7nGSHYJg2sfRuVtwmONQP9PjHo3MYeh6IhBNgRvIOK6EGSSRsN4EMElYAMY7dAcS5JpmYSD2c69rm0G0tLfJr6KuVQ0UTba7qWwiHNDNPwqOis0vxaBWlxz1KzS6yklRlJ2P2lC8VJ7OFsZw/6Sf4DEEnttwhz8gySjUivoRiwQarbzMRUAor4vENEDnFVQ5D6s5Q7uS5EIclMPbOSfKuny1lmS28d6WLmzCptgLCgSsQL22iR1m9YV23TW3Naa30B/caxwOXBLC52FjBIbFapjsdo37BLyRZ1bOV0aLURXVqdnSB1ut7ZKUOJ9EuaD5ZXHuUP0g2xrMCx8Rr5Y/VYqX3PmEE+miRZ1ND3xFRerxKRnvO2WsK+wVFNbHWn0OpNYRAFptJjyk0F6Ib13DfF5IbIp0QdqT+GUGuok2/YJhAFrdcEFTJPkW1dr8OZ04DM0JWEkkEJA5Q0KXuUwnMMcVrAsrwg/Z5NhThJxLvmS7oNbHy3t8wnbVJMZbZVL1EwK9WfeGdlH1bbWwuCKKCm/S9JPEd49iyxTR+tki/yIPH+UYUfs7sVFYOLL6XSt8izRrVwX1D89H0Y/yFbPRQ+1WJF/LVjVP/bU31ex20Usp9zp1qliD958eqM+HQdd5nD0LgTo7XM0euIkcp2IlhzR31RJ/kyn3jgsVfprb9DGYmKKJJ+qnZ54LXK6KenbPR9Rq1uRbz7BrgQPewkSmi8qTpYVcB5z0QfzruwppA+s7qPCrXmcAQ2+CjC20T4EhHeFqUlvYI9M8dN9ink385/6dHjxt3I7h/Sz4mR2SqHp/jPhndU8b7ioxST/FgvpFq+74admrBMGXiF2pKTdbL3oU/TnNob07ywvoDLqeTTKY5wOjy5tDnhChZm3kKt2lbrnYxj+ZBhHMHUfY+uJJG4k56cKlCS2r5F1iGtCqc8V0b2ZIb4br8wJHPtKmV2XKl7vZZR44hLuWQ2V47twlrxSzSuukSdd0e4gunGJeyaO0GOL6YDRvnRrV947KxjgIKZ3//zUyLuf4js7pHUa6uDyzyB2j2Q49Olc54y99D+9voZ8WVaQgmNmGroU6C0Ls8vZTys+StMKvje0lXZsDQS3yDCu60rE57CwsxJ8vfssXYsD888+PenMLxlHtYe+YMDiMP75Vr7VpLadTTkTiG9mQln7CMOWJqKLkn/j3EJqKRJFTJuAWMOspBgWQ3o9Bs4s3SQziOqui8Ytqn50vbeNdG0ygbx8QTFn6cO7XnhKwuf/6tXh+d8H9RyELxOwDzpAAAAAElFTkSuQmCC",RI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABEmSURBVHgBzVtdrF3HVf7WnH3O/fG9vravrx2HpL123KS0adJQ8tOooSpRSwN9QKqEKAIFREHiqSACgifCCwihFlXqG6VCPBRe4IUiKFLTqBVRSAihDQincR3/JCHGdu17r31/z5nV+Vsza/Y+59qVmrhjn7tn7z17Ztbft9as2ZswpvzVZ8/fC/CnGoPHesYcbQzNux+ankGPCO7gfhR+htLRn1M8d9Vw7pqBTDyndI/8NX+OeK2q+8Fb50RlXqROSFUoV32N9dk6E15ii+fdZD5/+8fpZJtW0ief+9zKgZntq59tjHm856jxBDW9SGBj5GjGM0AdAwM8AQb5XAgyimipo0OwZoyeLFUzbt+vCaJy4MyoL64Z/NG7P0ZvdNr/xZ/+33KfR19zEj/mCQzSrgjXDBAtMIG4SgOS5IUBvUBkl2gSJqHNgDjjrgaU6zWhpY30xr6dZoAUDm1PG8ZHjjxGp/0lP1f82ZNnbiU7/Lq7f4xFhZiLNlWFM0tZj8CojqGf3MXYjsIQ3d651c/uRWsAp7lVpsDt/rE8JDz1v//Ai/48MMBJ9Y/dZJZbXe9KfhwontWExGkQGXWVupRch0CHHZ2pE6g7n6qV0gBqPc/QVnF0bhZ/Hup/8uS54wPDrwT19nbc69p72xx6Sd176txQMYOo3qgAkcSuMxZoECwmkkEwVcbiQNLlYj71/WgCmi+ksTFyLT70ftOD/YyIlaGOQFZxHic9qqXAqcJ6JEp6wkq1x+hkvMt5/DxR1T/aBGH8/WL/5ce6Yy7PO4z6lNNTvn/MfPRZrjKrwbg7eBtxuDICqgYI/7hNOBdIqR/OFZ5sNOqXOwSyNrTMx9Ni8VjjbryvNC2iZdYToWpYhsYCpTkU/mSTJzUR6/oZzBLmDhKm5w2aGWcuTRTGaAcYbjK2rgA7a4zhRjQfebpj+Vz8Wk0RKmaN5RGXCTPTUTcFnvV3rLtgmJJUqBqH0WVCHpNq5jGUiblKbxo4dLzBvnf0MD1ncCNla4Wx+toI628y7EZSY5LeSQ9f5M3FMgpItzSClXeId+cbTpKL3lsTF1CUOrjAgXPxnNRNKmL3zOgNGLfdM8CS47GPBn+QMrVAWFpowO8B1s6OcOWkhd00ZTwl/fFMCKDqpspyhlbkkGtNZo4nzFAhkqwj3mSAy4QTVYwQdZefdYZ15F0N3vH+KTT9H4zwdvFD7X1nD7OHGZe/Y3H1XDSNIhnU5kbChIA/JDpfBUYtjEgagKy6rAlKLM14kJULoWFhSrrYYxx/cAqH7+jjh1maaacR9/QwmB/h8gnriDcYGxW0gJmo8n2JUTLZ+LRRmJCRvnaFXJjDXDRCj+n51Gfc89GZHzrxuiwc7eGWh3x8bcvMsnDqQi2A5KQqmZ70z5QmY1A9M4Qr6QsTbB7c4u4PT2PvUg9vdZneb3DoAyaMGYqOF1S7ymXL3To6Cn9NlKpwM9WZK7tm1SFzxRlYa3H0vgEO3PrWSb5dZg4a7PtxKhrJtSbszoh8J/w1+rwmmCuV1/ctigYcWm5w7N4ZvN1lnzOH6UMyozFrhPY518KURiYLVN9kzcnICItaC/yPnC3e9cDbT7yUgw4Y0RuhwgNFeUfw6r7QbLRNC2csGFrTNdGxCQXp337XALPzb73dTyrNFGF+2dTeCShh9DjAbhUjCxUh0Ca1t9oEFOiFNpaDvz92z82TvpR9R32AlAAxYzxVTFCHDrYZRk2kaAK5SDDae3IYlgsT3L8jR/vYcxOlL8UM3NpiqR2mx3yAuLuK4vbzXfCLxxEiB6JW1MDoNeDH7pjCj0qZu5WigLT9s4R0qPy+eDok2mLaRrs/cYFa/ZVpRPOwWHob3d71ineLlkeVu9ZFL62LKSQ3KKu/ygwEB9DGgMiI2b0GM3tuvvpL6TkzaGZjvQChAvZdliSNEJyWT4ngGN8LE4wwKCnVJORfXxvhv/9tFZtuObtwqMFd989NXAJfOreNCyd34ASHpeN9HFwejG033GZcOLGN9YsjTM0TDr93Gv3ZLkV9d29zIy7kWa2L9YIVejWMGC7nxZCXrM/R2RQcZMmHaxxWX+HnAHd6z3iWPvOPl10yownp8ounXYLj2hoe+MRCp93Kmzs4+c1NNE0/5AbP/Ps2BjMGew83nbbnntvC5gWfb+xjZ9UlSza3sPzIdKddr6+knVSeqGQQoqknwtMzzNkLcL4g7WwE/uT66nigaboM2Nm2TgOS9oRlsuHVCxZbG7bT9tLZIYyfcVqnG9Ng9c1Rp91oh3H1vBeMie3ccWsV40vTAnrvBarYpVCtQb/RPj7kNBLqexIK6CXpc9rJGaMADhchMUVqH+yIu/TDDmu3m+bVbRd4onw6je8vdpD+SLLGSUFyNF6SkihpD1byARn4CKTsXYKimC5ziGBp7GSRmBiZx/k4aa4imTAeTUaqOkXHu+HZ+NC3qnafbwTdiRTQcUx02DQgSd367a6yNO5OFiFG8CkwYkxolaJMmZSY33WYlS15QqdZAdDODSbCmXKUWDMge4C4yqOw8KFwpKROERjdkdI13oWwpDHE9RQ6ExYPE+0OzDSRsswoBXATmqLNJFLZ5XE62eQJB5ONE8l2DGT0twkDJDaYxACbjJtKIDZ2osGsJM/fck9Vn0jR2i5tpE/WTl9DfW4hhTLeNWLnhXjkGCAAmxHio/QnCSEQ5RdJJrYLpoDx5iLAmhQWu213IAErWCY9qV2dpCXNV9KkS3/xvBGQyeBFUXo5NsiaVzCBJ8zCJg9S/C2PlZoFZ63zZmeA8dLNABwFFAUwGSvEhIVwlv3DDhgio0Ej842pcMq2GUGMsnukBAYe4OyYOYxGDPffJYY5tTMTtdZHf5JkMWniIzueAxmkRXYT3KCsavX+BHgX20nvIRgJbgQLCpCVnIBtLYYuXtju9Pf/b2yFeyPL+Vl/vHpl2Gl7dWWYXab0vXqx22591VZBmG8/cpv7q+e7bbdWS37QogbkLGT9S/MzVaqbi99PtMdI0KaJJtV97ewWnn/mch581RH07FMrSWPicpnT3sQLT6/h2mqJ8l75z2tYuWAVY+MYqxcYr35roxC0bnHyWX9uYhvLec1y2oXHW9eKKpz/zraLJG0VrUZj4ExopqX1o9/+nZdZv9djTKnHV14w5kUof81i/6JLTE4ZrF72mxW9sAYo7wuhtDUWi7c02LzG2Fn37xs09ctU8q6Qs42pPcDAbYRsrnrp9NI7BPV7BEHhXds9bqPVb6QON/x4Pci2R1HzbnilDSJigIrIxIdGlyhYEF2foAwZud/DilOCNQcOgXCNNiFLRSXn7Aj5ntvoNKmdZTUFibvDr4ftdQSiQmCWX2zgztSJGmxcipc92libtsQg22SyESLeX8UDVHrLawHo0DfALyLgpWBF2okn8CeevumZ+BZJlCYnjUG+lo9Bmzhpj7whwuotMuQjJd4RMcqbJVH9KREUju58uOXB20Qt4SJZQIW9AogkQi5RYQyFU7ARiDTxUQmGIGuD5CJlI/C9d8/gpz++GBhwM4vHgnP/tYOV1yxkPzQySekLUxVFknKGpqB7SXpa1vsACqxsrM/vJTz28wdvOvG+TO0xOPbQFGiKU5Qqc61BPcw9rfGt8myd3eEgawo25TQrsk40IKC862D5jhnotzZfP7uB189tYN/+Ae58z1w1wcsXt3H2uxu4bXkai4djIvXcd9edexxV7wKKn188MsDMXIM33DMF9Ipdi3rvu6WPhaWYl/T4t3DE4NKrUQuChJ3NWOb8VqGshqtwGYIBKYzkJNDkRcjKvneIWKIa+cCh10rcnD61gWe/uebsnXFgcYCDh0t668L5HfzHN9YwGJjMgDMvb+KNU8P8smR+s9Qd7/wAcPh2wsvPbQRk16/ZBuNMcz96HzIDIhei1GMiIjUVDI3LOxUGsmIA0tI3rV/zAgUSNCg8CANg/FogxP8GT/3LJfzC40fqexm2VFv3e/hn5rFwoEkyimXKmVXf7fh86JP787WXnr6GdZdn/Mmfm8svXQxmqDW+j0QTaEq4w+X1O66cHxQDWCU+U0PPLwPxfEllsjvSnQmB0c5uvW2Ac2c28cqJq3jXu+cys0cW1frBtx25dM/cvh4WFrt5QF/2HiiJV6eLGDrxzu3vTXzrRDCqft+QE/iTmmnNBlOHiAn8VAwuYWO1W9zSgEikxX0uCzxwgdHX/vkStrdsHnLE9RI6hLSy23IDxTPQXqe9aICVo0U6j2OFEN2W0HuUfk1OiIaJRV8dwE75f9taWHQZEAfwEdxPPDSPZ55ewXPPXMGHPnIgPGdtrTNxAoTnv7Hi9hcKEPb7Bg8+ur9DXNQY7FpYkF8wQBZwKOdCqNahRojJwVDLJGJdIsXYsi0IrS33f3AB337xqlsrrODu++aLBkCbQGz/+pmdMIoA4bTb3HjwUYxhQOxjtyKSlVlKmpHQIryyoBQIgTWhaBFf1uzZRFqTKQsQBLT/6M8u4u+/fB5P/+sl3OmwYGTbJuDy+06kn3x8CYuHrr/FZpMKX48BQ8vJWSXxK2mTigIj6bG/nBOECoklVhcglJyNlXrbBMA58PDl+J2zuP2dUzjxPxvYu7efV3y5vY35gzKx3cuIr88ATiDIKXlBLYkTl+hPM8RkkEuE5Py+WqpKZGhTtDROA2zr2sc+cTBw8IXn1mB5jBdgvlEMzCC2W3vRgFH+WVUvPzEnXx+OJCEixEvEFwgmlvOg9rZOMFQMyMwp1w4uDfDAB/diZ9R9xopEb5ADvunweiaQmWAD8Q7QeTiGAZ5or33D0KZaC5QsStIKCgkQFT9LQLS2Vm9jRRsddbTg4Z/aj+lpP+io8p1+ez20v0EOjNzzw9FwV4ZdXRlF4jKhlkJdXRsp9xfa+LjhV37jJa4+Xkjra8ohqL4Wz6fcwuP3njiKpaUfjZck1hzxX/mbC25uKaqUFaHCF3G1qK7Ed4XXHGPnNXdDLiO5B4kKY34jnm9tEb7whbN45JF9OOzie9LuJtfrj54qQKJyX98siK0mrXwZtabvlerKpSFOvHjNSbQXN26gI0G0vibRlUDgho8DTrnKvWUvK2G+ysZEJqQjx7zA5RWLr/zTpRTl11+CVd8JEtQ5oL8O66XsUvv+uM/s6mfTc/55MmHXOCZPODOMqLg6gGpGZM9gvu0YMPqqS/3cG/1djIRsYoLJm2w6hR0nKO2MUJ5ZB7WWiNerIweqkgTjZLm9fcVl0vJsyOBmbSjX4kZuaw3ALULTfNuvVzMNn2+Imy+7Xd/fT1GuDhk97FHugWUxGGNjSVvljQ0q+XuvLSP/jpXh+O2Y5BE5pcRsNKkwHJdh/XI8f3TCYSM6fDwWJR9XrFEblNYlikUOZKU9MsVF9RnqMkZb5vOh9kuffulLbna/Vn/JVeoSXdUfQOr76giMbWfabRXQViqu+8GEr8t0Pcmn/vRWNLKFQVmDQvu//PQTt/xmgM0dpif6zB92nD+WQ0IVOtp0arjolmylxVA5cZWF+zES84SI1iRFCOptCPJpUQBbknMSZeNMdOiZlYQZNeEtVY/nXdvPRha59OoQ20+W66784q++uEw983U36eW2FEUq0Fqh2whwoa0xRTLhI+pMGFXPdwBO1U1b+hMkPo4RmgGqnGqo9+hv/eGR04B6W/zv/vq+071e/2E3xS/m8DjnA9KuSr6uVoBV2KySklDJxxRQjbgkKGXtLlHhKF8rydfqXorwdCBT3WOuAyEbcxRDm0Nktpa+tIa1B4T4SgN0+eVff+G4Rf8zzk3d75q8z3FxtqsVLYllm68lVmtDrRmm9MVVv1QQX18PEmv1VySuNSJVGGumR6cc6V+lQe9vf/cPbvtWm9bvA1ilHJaIy4aYAAAAAElFTkSuQmCC",RP=ea(16164),RD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYBSURBVHgB7Zt7bFNVHMe/57ZbV0bZE3Ark8GGc2PLfAQQRI0CGvCBYKJMQWICGo3KPwYkJjoTxRjiHwNBE8lg+OAPiMgjAiIIvpIxEGEEtrFHgbUbARzbunYtvfd4bhmwrWesp+vdyu4+S7fec387vb/vPfec3++cHgIO94zblU8MtABUmQ2CcazIgjsTFwUpZ36UyZCKamrmVnc3IJ0PcnL2Jiqe9i8oIYsBSjD42ACP+6PKCwWOGwU3nbw3fXu6YiQHWMF4DGYobESmj1fY5tnUQ0n9lZW1JZUayG+D3nkVgnRqJAet1h+T1EO/AJDNH6snoB/GWWKk1eobkpGxI9NI6FnoECop90lRRFkGnUIVqYA9AmQSdIpEMZu9kAe9wmIctRMcBv1ikaBzhgSAzhkSADrHiH6Hco67J579l4j2gwDXHc7PT8DkKcnIzolDdnYcEhJNsFiiILE26HbLuNjohsPhxqnyJhwpvYzS0ivw+RRoLQbJyvyJQhMokpKi8crC8XjxpXQkj4wR+u/mZi8OHmxE8YazOFvVCq2E0EAAivj4KLz5VhYWvDweJlPfu5kD+x34bNUp1Ne7EG4hwiwAxfwX0rBiZR7i4qIRbr5eX4E1RZVQFISNsAlgMhGs/CAXCwq0nVOpqW7F0iV/w2FvRzgIyzA4YoQRG0se1tx5lYxMC779/hGkpZkRDvosgNlMULxpGh54MAn9hdU6DCXfTYd1jFjHyqOPAlB8WJiP3LwE9DepqcOwafN0xCf0bSTvgwAUS1+fgHnzx2KgSEuLxSef3o/A4Cp4QhbAajXjnWXZGGhmzkrF3OfHIFRCFIBi+YpcREdHRiqx/P08FlUaEAoheZCbG4enZlsRKSQlmbDo1dBGoBAEoHhtyQREGosWZyIqCsIICzB6tAlz5oT+zGlFQkI0Hpo6EqIICkAxddpIkAhdNn36GfWxFBsRhFvAEzNSEKk8+thd0FgAyvL5eEQqiWyOISVVLEQWCqNiYiR/8MHD56PYtdOGqsoWv0jPzb19gNTaeg27d52HxyNj1pNWFlfE3ta+/OR/KCu7hFGjzP6xPyaGf+kTJ8ajwXERwSIkwNixw3s898bSP/DXn5dxPV+n+GWfA1+un8q1tdvbsLDgMBoaPP7j1Z+fwpq1UzBjFn9oLdlUxeYDytXVTH/dY1gOsG37TDbvEJhyJyebIILQIzDcwtfr90ONzPkr7J2ho0oDft3fiLIjl7j2a4tOM+e9HbYSZNmAVatOcm29XgVfratkfhtv1l1f78Xmkmqu/fV5iOD7ASEBDBK/+z933gnexKbtnJNrb7O1BdjXX3CjvV0OsHWw1nL1qi+g7tqaFl7VMEYRiMwaaRvL9nAjFJl3ggh14LKPbyw6QkfQugBF8ArQXs5o9AhoChFpuuGLxCJHABqeudkBeQREL51rTwjEagpPKxiQFsC9dNrjGU2JsMVRkRZABUp7JoI6QVHn+a1F0z6gqdnLLfe4fdzydo/MLVeju+4Q9tPWFlhPC8sZwLFuc/HK2UJrO/8ze0JIgNpqp39lpjNq57116znwIsG9e+wBddhsTlRUNHNqJ9i21RZQunvnefDu67/Hm1g47epSpq4y7/nZDpF2YEhOXFAYrDGlBIcP2XE3S4pSUsyoq3WisPAfHD/WxP3QBocLdXUtyJwQx5bODDh29DLefbsUzlbe4h7BUZbtxQ43sGQnFi6XD+vXncHG4hrw7tO1a5QtmtpZ5jnCnwafOX0VK1ccRWWFEyIChLg2qHS8SMfFkV5sb0R5EnpvdAqzpB01kiDsZdzqE3q7lkBCXFYJxpHOtmJ1i7kQ2nT4rU/TOUMCQOcMCQCdo3a5rdAt1C2xSK4WOoVFGyclQug+6BZaJlFCf4BOkalUJFVVzT/B2sJG6I9v1K20/lHAYPK+x/7opy+gqGM5fKH6tsvWWXX3qA42UNYSH53RZeusilogRcvToG4wHpRQNcUsJm5l8g3nVbiJV07GjkwflGVsiJjUsa1O651lGn1j3R/j1DLf91HFuKWq7tkT3Q3+ByiQ5jP9hQw1AAAAAElFTkSuQmCC",RN=ea(71013),Rj=ea(96789);function RR(ei){switch(ei){case void 0:return{includeFutures:void 0,includeStaking:void 0};case RN.C.US:return{includeFutures:!0,includeStaking:!1};case RN.C.IT:case RN.C.ES:case RN.C.AU:return{includeFutures:!1,includeStaking:!1};default:return{includeFutures:!0,includeStaking:!0}}}function RL(){var ei;let eo=(0,Rj.N)("invisibleInk"),ea=!!(null===(ei=eo.data)||void 0===ei?void 0:ei.value),{data:eu}=(0,kG.Ff)(),ec=null==eu?void 0:eu.country,{includeFutures:ed,includeStaking:ef}=RR(ec);return eb.useMemo(()=>({updateEnabled:ea,includeFutures:ed,includeStaking:ef}),[ea,ed,ef])}!function(ei){ei.Classic="classic",ei.Consumer="consumer",ei.Cryptowatch="cryptowatch",ei.Pro="pro",ei.Nft="nft"}(eh||(eh={}));let RF=(ei,eo)=>{let ea="consumer:AppSwitcher:Fusion:SubTitle";return eo.updateEnabled&&(ea=eo.includeStaking&&eo.includeFutures?"consumer:AppSwitcher:Fusion:SubTitleNew:StakingAndFutures":eo.includeStaking?"consumer:AppSwitcher:Fusion:SubTitleNew:Staking":eo.includeFutures?"consumer:AppSwitcher:Fusion:SubTitleNew:Futures":"consumer:AppSwitcher:Fusion:SubTitleNew:Base"),ei(ea)},RB=["classic","consumer","nft","pro"];function RU(ei){let{nftApp:eo,proApp:ea,spotApp:eu}=ei,{t:ec}=(0,rT.$G)(),{appSwitcherAvailableApps:ed}=(0,tR.V)(),ef=void 0!==ed&&Array.isArray(ed.availableApps)?ed.availableApps:RB,eg=RL(),ew=eb.useMemo(()=>{let ei=[{app:eh.Consumer,href:"".concat(eu).concat(RP.Jt.ConsumerWebHome),name:(0,em.jsxs)("div",{className:"flex",children:[ec("consumer:AppSwitcher:Consumer:TitleNew"),(0,em.jsx)(EM.Ct,{size:"sm",tone:"primary",emphasis:"low",spacingStart:3,text:ec("consumer:AppSwitcher:Consumer:TitleNewBadge")})]}),description:ec("consumer:AppSwitcher:Consumer:SubTitleNew"),icon:{alt:"kraken-beta",src:RO,width:32,height:32},isEnabledForUser:ef.includes(eh.Consumer)},{app:eh.Pro,href:"".concat(ea,"/app"),name:ec("consumer:AppSwitcher:Fusion:Title"),description:RF(ec,eg),icon:{alt:"kraken-pro",src:Rk,width:32,height:32},isEnabledForUser:ef.includes(eh.Pro)},{app:eh.Nft,href:eo,name:ec("consumer:AppSwitcher:Nft:Title"),description:ec("consumer:AppSwitcher:Nft:SubTitle"),icon:{alt:"kraken-nft",src:RI,width:32,height:32},isEnabledForUser:ef.includes(eh.Nft)},{app:eh.Classic,href:"".concat(eu).concat(RP.Jt.InstantBuySell),name:ec("consumer:AppSwitcher:Classic:Title"),description:ec("consumer:AppSwitcher:Classic:SubTitleNew"),icon:{alt:"kraken-classic",src:RD,width:32,height:32},isEnabledForUser:ef.includes(eh.Classic)}];return ei},[ef,eo,ea,eu,ec,eg]);return ew}let Rz=ei=>{switch(ei){case eh.Classic:return"Classic";case eh.Consumer:return"Consumer Web";case eh.Cryptowatch:return"CryptoWatch";case eh.Pro:return"Pro";case eh.Nft:return"NFT Marketplace";default:return"unknown"}},RG=eb.createContext(null);function RV(ei){let{children:eo}=ei;return(0,em.jsx)("div",{className:RT().itemTexts,children:eo})}function Rq(ei){let{children:eo}=ei;return(0,em.jsx)(EM.xv,{type:"label2",children:eo})}function RH(ei){let{children:eo}=ei;return(0,em.jsx)(EM.xv,{type:"caption1",children:(0,em.jsx)("span",{className:RT().appLinkSubtitle,children:eo})})}function RW(ei){let{children:eo,app:ea,className:eu,isCurrentApp:ec,href:ed,openInNewTab:eh,uiOnly:eg,onClick:ew,onBeforeOpen:e_}=ei,{track:eS}=(0,dw.Sl)(),eA=eb.useContext(RG);null===eA&&console.warn("using AppLink outside of AppSwitcherContext can cause undesired behaviour, including a loss of analytics");let eT=eb.useCallback(async()=>{null==ew||ew(),await(null==e_?void 0:e_()),eS({eventType:"UserAction",eventName:"App Switched",params:{fromPlatform:Rz(null==eA?void 0:eA.currentApp),toPlatform:Rz(ea)}})},[ea,null==eA?void 0:eA.currentApp,ew,eS,e_]),{onClick:ek,stage:eC,error:eO,reset:eI}=Rx({onClick:eT});eb.useEffect(()=>{eO&&eI()},[eO,eI]);let eP=eb.useMemo(()=>({onClick:ek,disabled:eC===ef.executing}),[eC,ek]);return ec?(0,em.jsx)("div",{"data-testid":"appswitcher-current-app",className:eE()(RT().appLink,{[RT().currentApp]:ec},eu),children:eo}):(0,em.jsx)(Rm(),{href:ed,passHref:!0,className:eE()(RT().appLink,{[RT().currentApp]:ec},eu),target:eh?"_blank":"_self",...eg?{}:eP,children:eo})}function RK(ei){let{className:eo,isCurrentApp:ea,appInfo:eu,uiOnly:ec,onClick:ed,onBeforeOpen:ef}=ei;return(0,em.jsxs)(RW,{className:eo,app:eu.app,href:eu.href,isCurrentApp:ea,openInNewTab:eu.openInNewTab,uiOnly:ec,onClick:ed,onBeforeOpen:ef,children:[(0,em.jsx)("img",{alt:eu.icon.alt,src:eu.icon.src,width:eu.icon.width,height:eu.icon.height}),(0,em.jsxs)(RW.Texts,{children:[(0,em.jsx)(RW.Title,{children:eu.name}),(0,em.jsx)(RW.Subtitle,{children:eu.description})]})]})}RW.Title=Rq,RW.Subtitle=RH,RW.Texts=RV;let RY=eb.forwardRef((ei,eo)=>{let{menuIsOpen:ea,onClick:eu,...ec}=ei,ed=eb.useContext(RG),{track:ef}=(0,dw.Sl)(),eh=eb.useCallback(ei=>{ea&&ef({eventType:"UserAction",eventName:"App Switcher Accessed",params:{platform:Rz(null==ed?void 0:ed.currentApp)}}),null==eu||eu(ei)},[null==ed?void 0:ed.currentApp,ea,eu,ef]);return(0,em.jsx)("button",{ref:eo,onClick:eh,className:eE()(RT().button,{[RT().active]:ea}),...ec,children:(0,em.jsx)(Rp,{size:"x-small",className:eE()({[RT().active]:ea})})})});function RZ(ei){let{currentApp:eo,CustomButton:ea=RY,spotApp:eu,nftApp:ec,proApp:ed,onBeforeOpen:ef}=ei,eh=RU({spotApp:eu,nftApp:ec,proApp:ed}),eg=eb.useMemo(()=>{let ei=eh.filter(ei=>ei.isEnabledForUser).map((ei,ea,eu)=>(0,em.jsx)(Rf.v.Item,{textValue:ei.app,children:(0,em.jsx)(RK,{isCurrentApp:eo===ei.app,appInfo:ei,className:eE()({[RT().lastApp]:ea===eu.length-1}),uiOnly:!0,onBeforeOpen:ef})},"appSwitcher/".concat(ei.app)));return ei},[eh,eo]),{track:ew}=(0,dw.Sl)(),e_=eb.useCallback(async ei=>{let ea=ei.toString().split("/");if(ea.length<2)return;let eu=ea[1];if(!eu)return;let ec=eh.find(ei=>ei.app===eu);ec&&eo!==ec.app&&(await(null==ef?void 0:ef()),ew({eventType:"UserAction",eventName:"App Switched",params:{fromPlatform:Rz(eo),toPlatform:Rz(ec.app)}}),ec.openInNewTab?window.open(ec.href,"_blank"):eT().push(ec.href))},[eh,eo,ef,ew]);return(0,em.jsx)(RG.Provider,{value:{currentApp:eo},children:(0,em.jsx)(Rf.v,{className:RT().menu,menuPopupClassName:RT().menuPopup,ComponentButton:ea,closeOnSelect:!!ef,onAction:e_,overlayOptions:{placement:"bottom right",offset:-12},children:(0,em.jsx)(Rf.v.Section,{children:eg.map(ei=>ei)},"appSwitcher")},eo)})}RY.displayName="AppSwitcherMenuButton";var R$=ea(18399),RJ=ea(93171),RQ=ea(30265);function RX(ei){let eo=(0,eA.useRouter)(),ea=(0,EG.JL)(),{open:eu}=(0,RQ.zq)(),ec=(0,eb.useCallback)(ea=>{var ec;eu({onSuccess:()=>{eo.push(ei.href)}}),null==ei||null===(ec=ei.onClick)||void 0===ec||ec.call(ei,ea)},[eu,ei,eo]);return ea?(0,em.jsx)(R$.O,{...ei,"data-testid":"navlink-li"}):(0,em.jsx)(R$.O,{...ei,"data-testid":"navlink-lo",href:"#",onClick:ec})}var R0=ea(7963),R3=ea.n(R0);let R5=ei=>{let{onClick:eo,className:ea}=ei,{t:eu}=(0,rT.$G)();return(0,em.jsx)(R$.O,{className:eE()(R3().link,ea),href:"/",onClick:eo,"aria-label":eu("nft:Title:ExplorePage"),children:(0,em.jsxs)("svg",{width:"59",height:"18",viewBox:"0 0 59 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,em.jsx)("path",{d:"M10.5107 0.734985C4.70557 0.734985 0 5.4452 0 11.2555V15.7639C0 16.5932 0.671521 17.265 1.50047 17.265C2.32942 17.265 3.00586 16.5932 3.00586 15.7639V11.2555C3.00586 10.4237 3.67492 9.75183 4.50632 9.75183C5.33527 9.75183 6.00679 10.4237 6.00679 11.2555V15.7639C6.00679 16.5932 6.67831 17.265 7.50726 17.265C8.33867 17.265 9.01019 16.5932 9.01019 15.7639V11.2555C9.01019 10.4237 9.68171 9.75183 10.5107 9.75183C11.3421 9.75183 12.016 10.4237 12.016 11.2555V15.7639C12.016 16.5932 12.6876 17.265 13.5165 17.265C14.3455 17.265 15.017 16.5932 15.017 15.7639V11.2555C15.017 10.4237 15.6885 9.75183 16.5224 9.75183C17.3513 9.75183 18.0228 10.4237 18.0228 11.2555V15.7639C18.0228 16.5932 18.6944 17.265 19.5258 17.265C20.3547 17.265 21.0262 16.5932 21.0262 15.7639V11.2555C21.0262 5.4452 16.3182 0.734985 10.5107 0.734985Z",fill:"white"}),(0,em.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.7789 0.734985C25.1487 0.734985 23.8271 2.05655 23.8271 3.68678V14.3132C23.8271 15.9435 25.1487 17.265 26.7789 17.265H55.4114C57.0416 17.265 58.3632 15.9435 58.3632 14.3132V3.68678C58.3632 2.05655 57.0416 0.734985 55.4114 0.734985H26.7789ZM34.7077 11.359V3.83781H36.4144V14.136H34.592L29.8768 6.64379V14.136H28.17V3.83781H29.9636L34.7077 11.359ZM45.8649 3.83781V5.38544H40.4554V8.10463H45.0549V9.65226H40.4554V14.136H38.7053V3.83781H45.8649ZM46.5971 3.83781H54.8704V5.38544H51.616V14.136H49.8659V5.38544H46.5971V3.83781Z",fill:"white"})]})})};var R4=ea(24600),R6=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let R8=eb.forwardRef((ei,eo)=>{var{color:ea}=ei,eu=R6(ei,["color"]);return eb.createElement("svg",Object.assign({},(0,rI.ti)(eu),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eb.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 7H2V5H22V7ZM22 13H2V11H22V13ZM2 17H22V19H2V17Z",fill:ea}))});R8.displayName="MenuBurgerBig";var R9=ea(3325);let R7=eb.forwardRef((ei,eo)=>eb.createElement("svg",Object.assign({},(0,rI.ti)(ei),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eb.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 18C8.77614 18 9 18.2239 9 18.5V19.5C9 19.7761 8.77614 20 8.5 20H4.5C4.22385 20 4 19.7762 4 19.5V4.5C4 4.22385 4.22385 4 4.5 4H8.5C8.77614 4 9 4.22386 9 4.5V5.5C9 5.77614 8.77614 6 8.5 6H6V18H8.5ZM14.6464 16.6464C14.8417 16.8417 15.1583 16.8417 15.3536 16.6464L19.6464 12.3536C19.8417 12.1583 19.8417 11.8417 19.6464 11.6464L15.3536 7.35355C15.1583 7.15829 14.8417 7.15829 14.6464 7.35355L13.8536 8.14645C13.6583 8.34171 13.6583 8.65829 13.8536 8.85355L16 11H9.5C9.22386 11 9 11.2239 9 11.5V12.5C9 12.7761 9.22386 13 9.5 13H16L13.8536 15.1464C13.6583 15.3417 13.6583 15.6583 13.8536 15.8536L14.6464 16.6464Z"})));var Lr=ea(59470),Ln=ea(79154),Li=ea(89087),Lo=ea.n(Li);let Ls=ei=>{let{activeMatcher:eo,href:ea,items:eu,langKey:ec,onItemSelect:ed,target:ef,requiresAuthentication:eh,testId:eg}=ei,[ew,e_]=(0,eb.useState)(!1),eS=(0,eb.useMemo)(()=>null==eu?void 0:eu.filter(ei=>!ei.hidden),[eu]),eA=eS&&ew,eT=(0,eb.useCallback)(ei=>{if(eS){ei.preventDefault(),e_(!ew);return}ed&&ed(ea)},[ea,eS,ew,ed]),ek=(0,eb.useCallback)(ei=>()=>{ed&&ed(ei.href)},[ed]),eC=(0,eb.useMemo)(()=>eS?(0,Ez.nz)([eo,...eS.filter(Boolean).map(ei=>ei.activeMatcher)]):eo&&(0,Ez.QN)(eo),[eo,eS]);return(0,em.jsxs)(em.Fragment,{children:[eh?(0,em.jsx)(RX,{activeClassName:eE()(Lo().active,"body-3"),className:eE()(Lo().mobileMenuItem,"flex justify-between items-center text-N100 body-2",{expanded:ew}),"data-testid":eg,href:ea,isActive:eC,target:ef,onClick:eT,children:(0,em.jsx)(Ev.x,{langKey:ec})}):(0,em.jsxs)(R$.O,{activeClassName:eE()(Lo().active,"body-3"),className:eE()(Lo().mobileMenuItem,"flex justify-between items-center text-N100 body-2",{expanded:ew}),"data-testid":eg,href:ea,isActive:eC,target:ef,onClick:eT,children:[(0,em.jsx)(Ev.x,{langKey:ec}),eS&&(ew?(0,em.jsx)(Lr.U,{}):(0,em.jsx)(Ln.p,{}))]}),eA?eS.map(ei=>(0,em.jsx)(R$.O,{"data-testid":ei.testId,className:eE()(Lo().mobileMenuItem,"flex flex-column items-start justify-center text-N100 body-2",{[Lo().expanded]:ew}),href:ei.href,activeClassName:"body-3 text-pure-white",isActive:ei.activeMatcher&&(0,Ez.QN)(ei.activeMatcher),onClick:ek(ei),children:(0,em.jsx)("div",{className:"flex",children:(0,em.jsx)(Ev.x,{langKey:ei.langKey})})},ei.href)):null]})};var La=ea(30047),Ll=ea.n(La);let Lu=ei=>{let{items:eo=[]}=ei,ea=(0,EG.JL)(),{signUp:eu}=(0,EG.E6)(),[ec,ed]=(0,eb.useState)(!1),{open:ef}=(0,RQ.zq)(),{signOut:eh}=EN(),eg=(0,eb.useCallback)(()=>{eh(),ed(!1)},[eh]),ew=(0,eb.useCallback)(()=>{ed(!0)},[ed]),e_=(0,eb.useCallback)(()=>{ed(!1)},[ed]),eS=(0,eb.useCallback)(()=>{ef(),ed(!1)},[ef]);return(0,em.jsxs)(em.Fragment,{children:[(0,em.jsx)(rM.h,{"aria-label":"Mobile App Menu",onClick:ew,icon:R8}),(0,em.jsx)(R4.t9,{isOpen:ec,onDismiss:e_,className:Ll().overlay,children:(0,em.jsxs)(R4.cZ,{"aria-label":"Top Navigation Mobile Menu",className:eE()(Ll().dialog,"fixed top-0 bottom-0 left-0 right-0 flex flex-column relative bg-N600"),children:[(0,em.jsxs)("div",{className:eE()(Ll().header,"mt2 mb1 ml2 mr2 flex justify-between items-center"),children:[(0,em.jsx)(R5,{onClick:e_,className:Ll().logo}),(0,em.jsx)(rM.h,{className:"text-pure-white",onClick:e_,icon:R9.e})]}),(0,em.jsxs)("div",{className:Ll().main,children:[(0,em.jsx)("div",{className:"mb2",children:eo.map(ei=>(0,em.jsx)(Ls,{onItemSelect:e_,...ei},ei.langKey))}),(0,em.jsx)("div",{className:Ll().spacer}),ea?(0,em.jsx)("div",{className:"mt2 mb2 ml2 mr2",children:(0,em.jsxs)("button",{className:"flex items-center caption-2 text-N100",onClick:eg,children:[(0,em.jsx)(R7,{}),(0,em.jsx)(Ev.x,{langKey:"general:Signout"})]})}):(0,em.jsxs)(em.Fragment,{children:[(0,em.jsx)("div",{className:"mt2 mb2 ml2 mr2",children:(0,em.jsx)("button",{className:"flex items-center caption-2 text-N100",onClick:eS,children:(0,em.jsx)(Ev.x,{langKey:"nft:SignIn"})})}),(0,em.jsx)("div",{className:"mt2 mb2 ml2 mr2",children:(0,em.jsx)(R$.O,{href:eu,children:(0,em.jsx)("span",{className:"flex items-center caption-2 text-N100",children:(0,em.jsx)(Ev.x,{langKey:"nft:CreateAccount"})})})})]})]})]})})]})};var Lc=ea(56740);function Ld(ei,eo){let ea=new URL(eo).pathname;for(let eo=0;eo{ea.sessionDataState!==kU.T.EXPIRED||ed||(window.location.href=eu)},[ed,ea.sessionDataState,eu]),ed||ec)?(0,em.jsx)(em.Fragment,{children:eo}):null}var Lp=ea(59492),Lg=ea.n(Lp);let Lm=ei=>{let{activeMatcher:eo,className:ea,href:eu,langKey:ec,children:ed,onClick:ef,target:eh,hidden:eg,onItemSelect:eb,...ew}=ei,{pathname:e_,query:eS}=(0,eA.useRouter)(),eT=ei=>{eb&&eb(eu),ef&&ef(ei)};return eg?(0,em.jsx)(em.Fragment,{}):(0,em.jsxs)(R$.O,{className:eE()(Lg().menuItem,"flex items-center caption-2",{active:eo&&(0,Ez.QN)(eo)({query:eS,pathname:e_})},ea),href:eu,target:eh,onClick:eT,"data-testid":"".concat(eu,":").concat(ec),...ew,children:[(0,em.jsx)(Ev.x,{langKey:ec}),ed]},eu)};var Ly=ea(63808),Lv=ea(29685),Lb=ea.n(Lv);let Lw=ei=>{let{items:eo,hidden:ea,...eu}=ei,[ec,ed]=(0,eb.useState)(!1),ef=(0,EG.$0)(),eh=(0,eb.useCallback)(ei=>{ei.preventDefault(),ed(ei=>!ei)},[ed]),eg=ei=>eo=>{ei.onItemSelect&&ei.onItemSelect(ei.href)};return eo?ea?(0,em.jsx)(em.Fragment,{}):(0,em.jsxs)(em.Fragment,{children:[(0,em.jsx)(Lm,{...eu,"aria-controls":ef,"aria-expanded":ec,className:"justify-between",href:"#",role:"button",onClick:eh,children:(0,em.jsx)(Ly.N,{size:"small"})}),(0,em.jsx)("div",{id:ef,children:ec&&eo.map(ei=>(0,em.jsx)(Lm,{className:Lb().expandableItem,...ei,onClick:eg(ei)},ei.href))})]}):null},L_=ei=>{let{buttonRef:eo,items:ea,onClose:eu}=ei,ec=(0,eb.useRef)(null),ed=(0,eA.useRouter)(),ef=!Ld(Lf,window.location.href),{track:eh,reset:eg}=(0,dw.Sl)(),{signOut:ew}=EN({onCompleted:()=>{eh({eventType:"UserAction",eventName:"Device ID Reset"}),eg(),ef&&ed.push(RP.k2.NftExplore)}});return(0,EG.dK)(eu,eo,ec),(0,EG.qX)(eu),(0,eb.useEffect)(()=>(ed.events.on("routeChangeComplete",eu),()=>ed.events.off("routeChangeComplete",eu)),[eu,ed]),(0,em.jsxs)("div",{ref:ec,className:eE()(Lg().popoverContent,"flex flex-column"),"data-testid":"popover-content",children:[ea.map(ei=>{let eo="".concat(ei.href,":").concat(ei.langKey);return ei.items?(0,em.jsx)(Lw,{...ei},eo):(0,em.jsx)(Lm,{...ei},eo)}),(0,em.jsx)("div",{className:Lg().separator}),(0,em.jsxs)("button",{className:eE()(Lg().menuItem,"flex items-center caption-2"),onClick:ew,"data-testid":"logout",children:[(0,em.jsx)(R7,{}),(0,em.jsx)(Ev.x,{langKey:"general:Signout"})]})]})};var LS=ea(18553),LE=ea.n(LS);let Lx=ei=>{var eo;let{items:ea=[]}=ei,[eu,ec]=(0,eb.useState)(!1),{i18n:ed}=(0,rT.$G)(),{track:ef}=(0,EG.Sl)(),{data:eh}=(0,kG.ie)(),{data:eg}=(0,kG.Ff)(),ew=(0,eb.useRef)(null),e_=(0,eb.useCallback)(()=>{eu||ef({eventType:"UserAction",eventName:"Open User Menu"}),ec(!eu)},[eu,ef]);return(0,em.jsxs)(em.Fragment,{children:[(0,em.jsx)("button",{ref:ew,className:eE()("no-tab-highlight",LE().focusRing),onClick:e_,"data-testid":"user-menu","aria-label":"user-menu",children:(0,em.jsxs)("div",{className:eE()("pointer caption-2 flex items-center",LE().userMenu,{active:eu}),children:[(0,em.jsx)("span",{className:eE()(LE().username,{[LE().frFR]:"fr-FR"===ed.language,[LE().itIT]:"it-IT"===ed.language}),children:null!==(eo=null==eg?void 0:eg.first_name)&&void 0!==eo?eo:(null==eh?void 0:eh.username)||""}),eu?(0,em.jsx)(Lr.U,{}):(0,em.jsx)(Ln.p,{})]})}),eu?(0,em.jsx)(Lc.ZP,{className:"starboard-root enable-tab-highlights",targetRef:ew,position:Lc.Kp,"data-testid":"popover",children:(0,em.jsx)(L_,{buttonRef:ew,items:ea,onClose:e_})}):null]})};var LA=ea(10776),LT=ea.n(LA);let Lk=eb.forwardRef((ei,eo)=>{let{color:ea,...eu}=ei;return(0,em.jsx)("svg",{...(0,Rh.ti)(eu),ref:eo,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,em.jsx)("path",{d:"M2.80273 4C3.90273 4 4.80273 3.1 4.80273 2C4.80273 0.9 3.90273 0 2.80273 0C1.70273 0 0.802734 0.9 0.802734 2C0.802734 3.1 1.70273 4 2.80273 4ZM8.80273 16C9.90273 16 10.8027 15.1 10.8027 14C10.8027 12.9 9.90273 12 8.80273 12C7.70273 12 6.80273 12.9 6.80273 14C6.80273 15.1 7.70273 16 8.80273 16ZM2.80273 16C3.90273 16 4.80273 15.1 4.80273 14C4.80273 12.9 3.90273 12 2.80273 12C1.70273 12 0.802734 12.9 0.802734 14C0.802734 15.1 1.70273 16 2.80273 16ZM2.80273 10C3.90273 10 4.80273 9.1 4.80273 8C4.80273 6.9 3.90273 6 2.80273 6C1.70273 6 0.802734 6.9 0.802734 8C0.802734 9.1 1.70273 10 2.80273 10ZM8.80273 10C9.90273 10 10.8027 9.1 10.8027 8C10.8027 6.9 9.90273 6 8.80273 6C7.70273 6 6.80273 6.9 6.80273 8C6.80273 9.1 7.70273 10 8.80273 10ZM12.8027 2C12.8027 3.1 13.7027 4 14.8027 4C15.9027 4 16.8027 3.1 16.8027 2C16.8027 0.9 15.9027 0 14.8027 0C13.7027 0 12.8027 0.9 12.8027 2ZM8.80273 4C9.90273 4 10.8027 3.1 10.8027 2C10.8027 0.9 9.90273 0 8.80273 0C7.70273 0 6.80273 0.9 6.80273 2C6.80273 3.1 7.70273 4 8.80273 4ZM14.8027 10C15.9027 10 16.8027 9.1 16.8027 8C16.8027 6.9 15.9027 6 14.8027 6C13.7027 6 12.8027 6.9 12.8027 8C12.8027 9.1 13.7027 10 14.8027 10ZM14.8027 16C15.9027 16 16.8027 15.1 16.8027 14C16.8027 12.9 15.9027 12 14.8027 12C13.7027 12 12.8027 12.9 12.8027 14C12.8027 15.1 13.7027 16 14.8027 16Z",fill:ea})})});Lk.displayName="BentoBoxRound";let LC="?key=volume&order=desc",LO=[{activeMatcher:(0,Rc.Bo)([RP.k2.NftExplore,"/explore/(collections|creators|listings)"]),href:RP.k2.NftExplore,langKey:"nft:explore:Explore",testId:"top-navigation__items__explore"},{activeMatcher:(0,Rc.Bo)(RP.k2.NftCollections),href:RP.k2.NftCollections+LC,langKey:"nft:activity:Collections",testId:"top-navigation_items__collections"},{activeMatcher:(0,Rc.Bo)(RP.k2.NftTransactions),href:RP.k2.NftTransactions,langKey:"nft:transactions:tab",testId:"top-navigation_items__transactions",requiresAuthentication:!0},{activeMatcher:(0,Rc.Bo)("/inventory/(deposit|withdraw)?"),href:RP.k2.NftInventory,langKey:"nft:MyNfts",testId:"top-navigation_items__my-nfts",requiresAuthentication:!0},{activeMatcher:(0,Rc.Bo)(RP.k2.NftOffers),href:RP.k2.NftOffers,langKey:"nft:listings:Offers",testId:"top-navigation_items__offers",requiresAuthentication:!0}],LI=[{langKey:"general:Settings",href:RP.k2.NftAccountSettings,items:[{langKey:"general:Account",href:RP.k2.NftAccountSettings,activeMatcher:/\/settings\/account/}]},{langKey:"general:Security",href:RP.k2.NftSecurity,items:[{langKey:"general:Overview",href:RP.k2.NftSecurity,activeMatcher:/\/security$/},{langKey:"general:TwoFASettingsAbbreviation",href:RP.k2.NftSecurityTFA,activeMatcher:/\/security\/tfa/}]}],LP=eb.forwardRef((ei,eo)=>{let{menuIsOpen:ea,...eu}=ei;return(0,em.jsx)("button",{"aria-label":"app-switcher",ref:eo,className:eE()(LT().appSwitcherButton,{[LT().active]:ea}),...eu,children:(0,em.jsx)(Lk,{size:"small",className:eE()({[LT().active]:ea})})})});LP.displayName="AppSwitcherMenuButton";let LD=ei=>{let{isTransparent:eo=!1}=ei,ea=(0,eA.useRouter)(),eu=ea.pathname,{t:ec}=(0,rT.$G)(),{isLarge:ed}=(0,EG.kC)(),ef=(0,EG.JL)(),{signUp:eg}=(0,EG.E6)(),{nft:ew,pro:e_,spot:eS}=(0,EG.CA)(),{open:eT}=(0,RQ.zq)(),{trackUserAction:ek}=(0,EG.Jh)({pageName:"explore"}),eC=(0,EG.p1)(),eO=(0,eb.useCallback)(()=>{ek("NFT Explore Page Hero Search")},[ek]),eI=(0,eb.useCallback)(ei=>()=>ek("TopNav Clicked",{to:ei}),[ek]),eP=(0,eb.useCallback)(ei=>()=>ei.activeMatcher&&eu?ei.activeMatcher.test(eu):ei.href==eu,[eu]),eD=(0,eb.useCallback)(()=>{eT()},[eT]);return(0,em.jsx)("div",{className:eE()(LT().topNavigation,"w-100",{[LT().isTransparent]:eo}),"data-testid":"top-navigation",children:(0,em.jsxs)("div",{className:eE()(LT().innerWrapper,"flex items-center h-100"),children:[ed?null:(0,em.jsx)("div",{className:"ml1 mr1","data-testid":"top-navigation__mobile-menu",children:(0,em.jsx)(Lu,{items:ef?[...LO,...LI]:[...LO]})}),(0,em.jsx)("div",{className:eE()(LT().logo,"ml1 mr1"),"data-testid":"top-navigation__logo",children:(0,em.jsx)(R5,{})}),ed?null:(0,em.jsxs)("div",{className:"flex",children:[(0,em.jsx)("div",{"data-testid":"top-navigation__app-switcher",children:ef?(0,em.jsx)(RZ,{currentApp:eh.Nft,CustomButton:LP,nftApp:ew,proApp:e_,spotApp:eS}):null}),(0,em.jsx)("div",{className:"ml1 mr1","data-testid":"top-navigation__mobile-search",children:(0,em.jsx)(R$.O,{className:LT().iconLink,href:RP.k2.NftExploreListings,children:(0,em.jsx)(rM.h,{icon:Rd.o,"aria-label":"Search Button"})})})]}),ed?(0,em.jsxs)(em.Fragment,{children:[(0,em.jsx)("div",{className:eE()(LT().search,"ml1 mr1"),"data-testid":"top-navigation__search",children:(0,em.jsx)(RJ.Y,{onSearch:eO,pathname:RP.k2.NftExploreListings,actionTextDisabled:!0,searchOnSubmit:!0,showDropdown:!0,useHistoryPush:!0})}),(0,em.jsx)("div",{className:eE()("flex items-center h-100 ml1 mr-auto pr1"),"data-testid":"top-navigation__primaryNavItems",children:LO.map(ei=>(null==ei?void 0:ei.requiresAuthentication)?(0,em.jsx)(RX,{activeClassName:eE()(LT().active,"caption-4"),className:eE()(LT().menuItem,"caption-2 no-tab-highlight"),"data-testid":ei.testId,href:ei.href,isActive:eP(ei),onClick:eI(ei.href),children:(0,em.jsx)(Ev.x,{langKey:ei.langKey})},ei.testId):(0,em.jsx)(R$.O,{activeClassName:eE()(LT().active,"caption-4"),className:eE()(LT().menuItem,"caption-2 no-tab-highlight"),"data-testid":ei.testId,href:ei.href,isActive:eP(ei),onClick:eI(ei.href),children:(0,em.jsx)(Ev.x,{langKey:ei.langKey})},ei.testId))}),ef?(0,em.jsx)(em.Fragment,{children:(0,em.jsx)("div",{className:eE()(LT().buyCrypto,"ml1"),"data-testid":"top-navigation__buyCrypto",children:(0,em.jsx)(R$.O,{activeClassName:LT().active,className:LT().instantBuySellCtaContainer,href:eC(RP.Jt.ConsumerInstant),target:"_blank",rel:"noopener",children:(0,em.jsx)("div",{className:LT().instantBuySellCta,children:(0,em.jsx)(Ev.x,{className:"caption-2 text-P500",langKey:"navigation:BuyCrypto"})})})})}):null,ef?(0,em.jsx)("div",{"data-testid":"top-navigation__app-switcher",children:(0,em.jsx)(RZ,{currentApp:eh.Nft,CustomButton:LP,nftApp:ew,proApp:e_,spotApp:eS})}):null,ef?(0,em.jsx)("div",{className:"ml1 mr1","data-testid":"top-navigation__userMenu",children:(0,em.jsx)(Lx,{items:LI})}):(0,em.jsxs)("div",{className:eE()(LT().unauthenticated,"caption-2"),children:[(0,em.jsx)(R$.O,{activeClassName:LT().active,className:LT().createAccount,href:eg,children:(0,em.jsx)("div",{className:LT().instantBuySellCta,children:ec("nft:CreateAccount")})}),(0,em.jsx)("button",{className:LT().signIn,onClick:eD,children:(0,em.jsx)("div",{className:LT().instantBuySellCta,children:ec("nft:SignIn")})})]})]}):null]})})};var LN=ea(62213);function LM(ei){let[eo,ea]=(0,eb.useState)(!1),eu=(0,eb.useRef)(),ec=(0,eb.useRef)(),ed=(0,eb.useCallback)(()=>{ea(!1),eu.current=void 0,ec.current=void 0},[]),ef=(0,eb.useCallback)(function(){let{onSuccess:ei,onDismiss:eo}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ea(!0),eu.current=ei,ec.current=eo},[]);return(0,em.jsx)(LN.f.Provider,{value:{isOpen:eo,setIsOpen:ea,open:ef,close:ed,onSuccess:eu.current,onDismiss:ec.current},children:ei.children})}var Lj="/nft/_next/static/chunks/images/225c59b209c6085b31df867ba9eebf9f.png",LR=ea(64279);let LL=ei=>On({method:ei.apiMethod,path:ei.apiPath,status:ei.apiStatus,classifier:ei.apiErrorType||ei.apiErrorClass}),LF=()=>Or,LB=(ei,eo)=>{let ea=new URLSearchParams(ei);return ea.forEach((ei,eu)=>{eo.includes(eu.toLowerCase())&&ea.set(eu,"****")}),ea},LU=(ei,eo=!1)=>{if(0===Array.from(ei).length)return C7;let ea=eo?LB(ei,["lid","email","key","e-mail"]):ei;return ea.toString()||C7},Lz=ei=>`/api/internal${ei}`,LV=ei=>ei.replace(/\/\/+/g,"/"),Lq=ei=>ei.replace(/\/+$/,""),LH=ei=>Lq(LV(ei)),LW=ei=>ei.substring(0,ei.lastIndexOf("/")),LK=(ei,eo,ea)=>{let eu=ei.split("/");if(eo>eu.length-1)return{path:ei};let ec=eu[eu.length-1-eo];return eu[eu.length-1-eo]=`:${ea}`,{path:eu.join("/"),pathParameters:{[ea]:ec}}},LY=(ei,eo)=>LK(ei,0,eo),LZ=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/deposits/pwmb"),L$=(ei,eo)=>{if(ei===P6.GET&&eo.startsWith(Lz("/deposits/pwmb/ptl"))){let ei=eo.split("/"),ea=ei[ei.length-1],eu=ei[ei.length-2];return!!(8===ei.length&&eu&&ea)}return!1},LJ=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/deposits/direct/funding"),LQ=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/deposits/plaid"),LX=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/deposits/credit-card"),L0=(ei,eo)=>{if(ei==P6.GET&&eo.startsWith(Lz("/deposits/credit-card/ptl"))){let ei=eo.split("/"),ea=ei[ei.length-1],eu=ei[ei.length-2];return!!(8===ei.length&&eu&&ea)}return!1},L1=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/withdrawals"),L2=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/withdrawals/addresses"),L3=(ei,eo)=>ei===P6.PUT&&LW(eo)===Lz("/withdrawals/addresses"),L5=(ei,eo)=>ei===P6.GET&&LW(eo).startsWith(Lz("/withdrawals/decode")),L4=(ei,eo)=>ei===P6.GET&&LW(eo)===Lz("/trades/ptl"),L6=(ei,eo)=>ei===P6.PUT&&LW(eo)===Lz("/trades/ptl"),L8=(ei,eo)=>ei===P6.GET&&LW(eo)===Lz("/trades/ptl/bulk"),L9=(ei,eo)=>ei===P6.GET&&LW(eo)===Lz("/credentials"),L7=(ei,eo)=>ei===P6.PUT&&LW(eo)===Lz("/credentials"),Fr=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/credentials"),Fi=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/sessions"),Fo=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/devices"),Fa=(ei,eo)=>{let ea=[P6.GET,P6.POST,P6.PUT,P6.DELETE];return ea.includes(ei)&&LW(eo)===Lz("/account/settings/tfa/api")},Fu=(ei,eo)=>{let ea=[P6.GET,P6.POST,P6.PUT,P6.DELETE];return ea.includes(ei)&&LW(eo)===Lz("/account/settings/tfa/account")},Fc=(ei,eo)=>ei===P6.GET&&LW(eo)===Lz("/orders"),Fd=(ei,eo)=>ei===P6.DELETE&&LW(eo)===Lz("/orders"),Ff=(ei,eo)=>ei===P6.GET&&LW(eo)===Lz("/portfolio/transactions"),Fg=(ei=P6.GET,eo)=>{let ea=LH(eo);if(LZ(ei,ea)||LJ(ei,ea))return LY(ea,"accountId");if(LQ(ei,ea))return LY(ea,"itemId");if(LX(ei,ea))return LY(ea,"cardId");if(L$(ei,ea)||L0(ei,ea)){let{path:ei,pathParameters:{quoteId:eo}={}}=LY(ea,"quoteId"),{path:eu,pathParameters:{refId:ec}={}}=LK(ei,1,"refId");return{path:eu,pathParameters:{refId:ec,quoteId:eo}}}return L1(ei,ea)?LY(ea,"refId"):L2(ei,ea)||L3(ei,ea)?LY(ea,"key"):L5(ei,ea)?LY(ea,"encodedRequest"):L4(ei,ea)||L6(ei,ea)||L8(ei,ea)?LY(ea,"quoteId"):L9(ei,ea)||L7(ei,ea)||Fr(ei,ea)?LY(ea,"apiKeyName"):Fi(ei,ea)||Fo(ei,ea)||Fa(ei,ea)||Fu(ei,ea)?LY(ea,"id"):Fc(ei,ea)||Fd(ei,ea)?LY(ea,"orderId"):Ff(ei,ea)?LY(ea,"transactionId"):{path:ea}},Fm=ei=>ei?Object.keys(ei).reduce((eo,ea)=>{let eu=ei[ea];return Object.assign(Object.assign({},eo),{[`pathParams.${ea}`]:eu})},{}):{},Fy=({children:ei,track:eo,onException:ea})=>((0,eb.useEffect)(()=>{let ei=cj().interceptors.response.use(void 0,ei=>{var eu;try{let{request:ea,config:ec,response:ed}=ei,ef=new URL(ea.responseURL),eh=(null===(eu=ec.method)||void 0===eu?void 0:eu.toLowerCase())||P6.GET,{path:eg,pathParameters:em}=Fg(eh,ef.pathname),eb=ed.data.errors[0],ew="type"in eb?eb.type:void 0,e_="errorClass"in eb?eb.errorClass:void 0,eS="msg"in eb?eb.msg:void 0,eE=Object.assign(Object.assign({apiClient:"Axios",apiMethod:eh,apiPath:eg},Fm(em)),{apiQuery:LU(ef.searchParams),apiStatus:ed.status,apiErrorType:ew,apiErrorClass:e_,apiErrorMessage:eS,apiRequestID:ed.headers["x-request-id"],apiTraceID:ed.headers["x-trace-id"]});eo(eE,ei)}catch(ei){null==ea||ea(ei)}return Promise.reject(ei)});return()=>{cj().interceptors.request.eject(ei)}},[eo,ea]),eb.createElement(eb.Fragment,null,ei)),Fv=ei=>{let{children:eo}=ei,{lothlorien:ea,mirkwood:eu}=(0,tR.V)(),{track:ec}=(0,dw.Sl)(),ed=(0,eb.useCallback)((ei,eo)=>{ea&&(0,ek.uT)(LL(ei),{level:"error",tags:ei,extra:Oi(eo)}),eu&&ec({eventType:"UserAction",eventName:LF(),params:{...ei,apiQuery:LU(new URL(eo.request.responseURL).searchParams,!0)}})},[ec,ea,eu]);return ea||eu?(0,em.jsx)(Fy,{track:ed,onException:ek.Tb,children:eo}):(0,em.jsx)(em.Fragment,{children:eo})};var Fb=ea(87973),Fw=ea(30514),F_=ea(62036),FS=ea(67582),FE=ea(7516);let Fx=eb.forwardRef((ei,eo)=>{let{color:ea,...eu}=ei;return(0,em.jsx)("svg",{...(0,Rh.ti)(eu),ref:eo,viewBox:"0 0 296.179 296.179",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,em.jsx)("path",{d:"M283.568,135.915c0.008-0.1,0.013-0.201,0.015-0.303c0-0.023,0.003-0.047,0.004-0.07c0-0.014,0.002-0.028,0.002-0.042 c0-74.715-60.785-135.5-135.5-135.5s-135.5,60.785-135.5,135.5c0,0.14,0.011,0.277,0.021,0.415 c-0.169,1.506,0.261,3.072,1.354,4.288l128.545,143.011v7.465c0,3.038,2.462,5.5,5.5,5.5c3.038,0,5.5-2.462,5.5-5.5v-7.177 l128.706-143.3C283.308,138.986,283.737,137.42,283.568,135.915z M25.294,136.352c7.115-5.849,15.943-9.032,25.295-9.032 c10.379,0,20.114,3.922,27.576,11.059l50.597,113.085L25.294,136.352z M142.589,255.434l-53.01-118.478 c7.234-6.233,16.342-9.636,26.01-9.636c10.113,0,19.617,3.718,27,10.509V255.434z M167.414,251.56l50.602-113.182 c7.462-7.136,17.195-11.058,27.574-11.058c9.353,0,18.182,3.184,25.298,9.034L167.414,251.56z M153.589,255.53v-117.7 c7.383-6.792,16.887-10.51,27-10.51c9.669,0,18.777,3.404,26.012,9.637L153.589,255.53z M245.59,116.32 C245.589,116.32,245.59,116.32,245.59,116.32c-12.029,0-23.387,4.122-32.5,11.704c-9.114-7.583-20.47-11.704-32.5-11.704 c-0.001,0,0,0,0,0c-12.029,0-23.386,4.122-32.5,11.704c-9.114-7.583-20.47-11.704-32.5-11.704c-0.001,0,0,0,0,0 c-12.029,0-23.386,4.122-32.5,11.704c-9.114-7.583-20.47-11.704-32.5-11.704c-9.488,0-18.556,2.565-26.436,7.368 C30.123,60.559,83.424,11,148.089,11c64.665,0,117.967,49.559,123.936,112.688C264.145,118.885,255.077,116.32,245.59,116.32z"})})});Fx.displayName="Parachute";var FA=ea(9459),FT=ea.n(FA);function Fk(){return(0,em.jsx)("svg",{width:"3",height:"4",viewBox:"0 0 3 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,em.jsx)("circle",{id:"Ellipse 1",cx:"1.5",cy:"2",r:"1.5",fill:"#C6C7D2"})})}function FC(ei,eo,ea){for(let eu of ei)if(!eo.includes(eu.airdroppedCollectionId)){let ei=ea.find(ei=>{var eo;return(null===(eo=ei.collection)||void 0===eo?void 0:eo.id)===eu.airdroppedCollectionId}),eo=ea.find(ei=>{var eo;return(null===(eo=ei.collection)||void 0===eo?void 0:eo.id)===eu.baseCollectionId});if(ei&&eo)return{unconfirmedAirdrop:ei,baseNft:eo}}return{unconfirmedAirdrop:void 0,baseNft:void 0}}function FO(){var ei,eo,ea,eu,ec,ed,ef,eh,eg,ew,e_,eS,eA,eT,ek,eC,eO,eI,eP,eD,eN,eM,ej,eR,eL,eF,eB,eU,eG,eV,eH,eW,eK,eY,eZ,e$,eJ,eQ,eX;let{t:e0}=(0,rT.$G)(),[e3,e5]=(0,eb.useState)(!1),{nftAirdropList:e4=[]}=(0,tR.V)(),{data:e6}=(0,kG.ix)({per_page:1e3}),{nftTransactions:e8}=(0,kG.zU)({per_page:1e3,type:"Claim"}),[e9=[],e7]=(0,Fw._)("confirmedAirdrops",[]),{unconfirmedAirdrop:ta,baseNft:tu}=(0,eb.useMemo)(()=>e4&&e9&&(null==e6?void 0:e6.items)?FC(e4,e9,null==e6?void 0:e6.items):{unconfirmedAirdrop:void 0,baseNft:void 0},[e4,e9,null==e6?void 0:e6.items]),tc=(0,eb.useCallback)(()=>{var ei,eo;e5(!1),(null==ta?void 0:null===(ei=ta.collection)||void 0===ei?void 0:ei.id)&&e7([...e9,null==ta?void 0:null===(eo=ta.collection)||void 0===eo?void 0:eo.id])},[e9,e7,ta]);(0,eb.useEffect)(()=>{ta&&(null==e8?void 0:e8.some(ei=>{var eo;return ei.collection_id===(null===(eo=ta.collection)||void 0===eo?void 0:eo.id)}))&&e5(!0)},[e8,ta]);let td=null==ta?void 0:null===(ei=ta.media)||void 0===ei?void 0:ei.find(ei=>"Video"===ei.kind),tf=!!td,tp=tf&&(null==td?void 0:null===(eo=td.derived)||void 0===eo?void 0:eo.webp_640xauto_fps10)?null==td?void 0:null===(ea=td.derived)||void 0===ea?void 0:null===(eu=ea.webp_640xauto_fps10)||void 0===eu?void 0:eu.url:null==ta?void 0:null===(ec=ta.image)||void 0===ec?void 0:null===(ed=ec.derived)||void 0===ed?void 0:null===(ef=ed.CardSmall_2x)||void 0===ef?void 0:ef.url,tg=tf&&(null==td?void 0:null===(eh=td.derived)||void 0===eh?void 0:eh.webp_640xauto_fps10)?null==td?void 0:null===(eg=td.derived)||void 0===eg?void 0:null===(ew=eg.webp_640xauto_fps10)||void 0===ew?void 0:ew.url:null==ta?void 0:null===(e_=ta.image)||void 0===e_?void 0:null===(eS=e_.derived)||void 0===eS?void 0:null===(eA=eS.CardSmall)||void 0===eA?void 0:eA.url,tm=null==tu?void 0:null===(eT=tu.media)||void 0===eT?void 0:eT.find(ei=>"Video"===ei.kind),tv=!!tm,tb=tv&&(null==tm?void 0:null===(ek=tm.derived)||void 0===ek?void 0:ek.webp_640xauto_fps10)?null==tm?void 0:null===(eC=tm.derived)||void 0===eC?void 0:null===(eO=eC.webp_640xauto_fps10)||void 0===eO?void 0:eO.url:null==tu?void 0:null===(eI=tu.image)||void 0===eI?void 0:null===(eP=eI.derived)||void 0===eP?void 0:null===(eD=eP.CardSmall_2x)||void 0===eD?void 0:eD.url,tw=tv&&(null==tm?void 0:null===(eN=tm.derived)||void 0===eN?void 0:eN.webp_640xauto_fps10)?null==tm?void 0:null===(eM=tm.derived)||void 0===eM?void 0:null===(ej=eM.webp_640xauto_fps10)||void 0===ej?void 0:ej.url:null==tu?void 0:null===(eR=tu.image)||void 0===eR?void 0:null===(eL=eR.derived)||void 0===eL?void 0:null===(eF=eL.CardSmall)||void 0===eF?void 0:eF.url;return(0,em.jsxs)(F_.L,{isOpen:e3,onDismiss:tc,title:e0("nft:AirdropModal:Title"),children:[(0,em.jsx)("div",{className:FT().title,children:(0,em.jsx)("span",{className:eE()(FT().headerTitle,"callout-3"),children:e0("nft:AirdropModal:Subtitle")})}),(0,em.jsxs)("div",{className:FT().body,children:[(0,em.jsx)(EM.xv,{type:"body1",children:(0,em.jsx)(rT.cC,{i18nKey:"nft:AirdropModal:Description",values:{collectionName:null!==(eQ=null==tu?void 0:null===(eB=tu.collection)||void 0===eB?void 0:eB.name)&&void 0!==eQ?eQ:""},children:(0,em.jsx)("b",{})})}),(0,em.jsxs)("div",{className:FT().details,children:[(0,em.jsxs)("div",{className:FT().videoContainer,children:[(0,em.jsx)("div",{className:FT().video,children:(0,em.jsx)(FE.D,{src:tw,srcSet:"".concat(tb," 2x, ").concat(tw," 1x"),alt:null==ta?void 0:ta.name})}),(0,em.jsxs)("div",{children:[(0,em.jsx)("div",{className:FT().nftTitle,children:(0,em.jsx)(EM.xv,{type:"label2",children:null==tu?void 0:null===(eU=tu.collection)||void 0===eU?void 0:eU.name})}),(null==tu?void 0:null===(eG=tu.creators)||void 0===eG?void 0:null===(eV=eG[0])||void 0===eV?void 0:eV.name)?(0,em.jsx)("div",{className:FT().videoName,children:(0,em.jsx)("div",{className:FT().creator,children:(0,em.jsx)(EM.xv,{type:"label4",tone:"brand",children:(0,em.jsxs)("span",{className:FT().claimWilliams,children:[null==tu?void 0:null===(eH=tu.creators)||void 0===eH?void 0:null===(eW=eH[0])||void 0===eW?void 0:eW.name,(0,em.jsx)(FS.w,{className:FT().badge,size:"x-small",fill:"#5841D8",stroke:"#ffffff"})]})})})}):null]})]}),(0,em.jsxs)("div",{className:FT().gift,children:[(0,em.jsx)(Fk,{}),(0,em.jsx)(Fk,{}),(0,em.jsx)("div",{className:FT().circleIcon,children:(0,em.jsx)(Fx,{})}),(0,em.jsx)(Fk,{}),(0,em.jsx)(Fk,{})]}),(0,em.jsxs)("div",{className:FT().videoContainer,children:[(0,em.jsx)("div",{className:FT().video,children:(0,em.jsx)(FE.D,{src:tg,srcSet:"".concat(tp," 2x, ").concat(tg," 1x"),alt:null==ta?void 0:ta.name})}),(0,em.jsxs)("div",{children:[(0,em.jsx)("div",{className:FT().nftTitle,children:(0,em.jsx)(EM.xv,{type:"label2",children:null==ta?void 0:null===(eK=ta.collection)||void 0===eK?void 0:eK.name})}),(null==ta?void 0:null===(eY=ta.creators)||void 0===eY?void 0:null===(eZ=eY[0])||void 0===eZ?void 0:eZ.name)?(0,em.jsx)("div",{className:FT().videoName,children:(0,em.jsx)("div",{className:FT().creator,children:(0,em.jsx)(EM.xv,{type:"label4",tone:"brand",children:(0,em.jsxs)("span",{className:FT().claimWilliams,children:[null==ta?void 0:null===(e$=ta.creators)||void 0===e$?void 0:null===(eJ=e$[0])||void 0===eJ?void 0:eJ.name,(0,em.jsx)(FS.w,{className:FT().badge,size:"x-small",fill:"#5841D8",stroke:"#ffffff"})]})})})}):null]})]})]})]}),(0,em.jsxs)("div",{className:FT().buttons,children:[(0,em.jsx)(Eb.zx,{onClick:tc,className:FT().modalButton,innerClassName:FT().modalButton,children:e0("nft:AirdropModal:Done")}),(0,em.jsx)(Eb.Qj,{kind:"secondary",fullWidth:!0,innerClassName:FT().modalButton,onClick:tc,href:(0,Ez.tw)(null!==(eX=null==ta?void 0:ta.id)&&void 0!==eX?eX:""),className:FT().modalButton,children:e0("nft:AirdropModal:ViewDetails")})]})]})}var FI=ea(98319),FP=ea(903),FD=ea.n(FP);function FN(ei){let{onCtaCB:eo,onDismissCB:ea,isOpen:eu,langKey:ec,canDismiss:ed=!0}=ei,{t:ef,i18n:eh}=(0,rT.$G)(),eg="".concat(ec,":Modal:Title"),eb="".concat(ec,":Modal:Header"),ew="".concat(ec,":Modal:Paragraph"),e_="".concat(ec,":Modal:Paragraph2"),eS="".concat(ec,":Modal:CTA"),eE=eh.exists(ew)?(0,em.jsx)("div",{className:"text-left",children:(0,em.jsxs)(rT.cC,{i18nKey:ew,children:[(0,em.jsx)(FI.d,{href:ef("locale:ToSURL")}),(0,em.jsx)(FI.d,{href:ef("locale:ContactSupportFormsUrl")})]})}):void 0;return(0,em.jsx)(EF,{bodyClassName:FD().body,"data-testid":"kyc-remediation-modal",onClose:ea,canDismiss:ed,isOpen:eu,header:eh.exists(eg)?ef(eg):void 0,headerTitle:eh.exists(eb)?ef(eb):void 0,description:eE,description2:eh.exists(e_)?ef(e_):void 0,children:(0,em.jsx)(Eb.zx,{"data-testid":"remediation-modal-cta",kind:"primary",size:"large",onClick:eo,children:eh.exists(eS)?(0,em.jsx)(Ev.x,{langKey:eS}):void 0})})}let FM=new tM;ea(35202);let Fj="iapi/getAccountSettings";sP("19647-nft-app"),sI("features",{});let FR=()=>{sD()};FR();let FL=!1,FF=()=>(0,em.jsx)(em.Fragment,{}),FB=ei=>ei,FU={onErrorRetry:(ei,eo,ea,eu,ec)=>{var ed,ef;let{retryCount:eh}=ec,eg=eh<=1,em=null!==(ef=null==ei?void 0:null===(ed=ei.message)||void 0===ed?void 0:ed.toLowerCase())&&void 0!==ef?ef:"";if(em.includes("forbidden")){eg&&eu({retryCount:eh});return}if(!em.includes("no session")){if(eh>3){eo===Fj&&(window.location.href="/500");return}setTimeout(()=>eu({retryCount:eh}),3e3)}}},Fz=ei=>{var eo,ea,eu,ec,ed,ef,eh,eg,ew,eS,eT;let{Component:eO,pageProps:eI}=ei,{isAuthenticated:eP,isLoading:eD}=(0,EG.kq)(),[eN,eM]=(0,eb.useState)(!0),{nft:ej}=(0,EG.CA)(),eR=(0,eA.useRouter)(),{isMobile:eL,isTablet:eF}=(0,EG.Fy)(),{data:eB,error:eU}=(0,kG.jq)(),eG=!eB&&!eU,{data:eV}=(0,kG.ie)(FU,eP),{data:eH}=(0,kG.Ff)(FU,eP),eW=(0,kG.m8)(FU,eP),[eK,eY]=(0,eb.useState)(()=>null!==(ed=localStorage.getItem("nft_language"))&&void 0!==ed?ed:eW),eZ=eP?eW:eK;(0,EG.N6)(null!=eZ?eZ:jb.k$);let{translationResources:e$,error:eJ,isLoading:eQ}=(0,EG.xt)(eZ),{translationResources:eX,isLoading:e0}=(0,EG.xt)(jb.k$),e3=eJ?jb.k$:eZ,e5=e$||eX;(0,eb.useEffect)(()=>{if(e3){var ei;null===(ei=document.querySelector("html"))||void 0===ei||ei.setAttribute("lang",e3)}},[e3]);let e4=null!==(eg=null!==(eh=null!==(ef=null==eH?void 0:eH.country)&&void 0!==ef?ef:null==eV?void 0:eV.country)&&void 0!==eh?eh:null==eB?void 0:eB.cc)&&void 0!==eg?eg:"US",e6=null==eV?void 0:eV.tier,e8=(0,Fb.P)({country:e4}),e9=(0,Ez.hm)(e6,e8),e7=window.location.href.match(/(^|\/)gridpass-link/),ta=null!==(ew=null==eB?void 0:eB.cc)&&void 0!==ew?ew:"US",tu=parseInt(null!==(eS=null==eH?void 0:eH.created_time)&&void 0!==eS?eS:""),tc=(0,eb.useMemo)(()=>eP&&eV&&eH?{kind:"user",key:null!==(eT=eV.analytics_cookie)&&void 0!==eT?eT:void 0,country:e4,...tu?{createdTime:tu}:{},isCorporate:eV.kyc_flags.is_corporate,geoIPCountry:ta,tier:e9,tierId:e6,language:e3}:{kind:"user",anonymous:!0,country:e4,language:e3},[eP,tu,ta,eV,e4,e9,e6,e3]);(0,eb.useEffect)(()=>{!eD&&eN&&!eG&&!e0&&!eQ&&eX&&e$&&e3&&e5&&eM(!1)},[eD,eX,e0,eN,eG,eQ,e3,e$,e5]);let td="/williams-grid-pass"===eR.pathname,[tf,tp]=(0,eb.useState)(!0),tg=window.localStorage.getItem("gridpassRedirect");if((0,eb.useEffect)(()=>{tg&&(window.localStorage.removeItem("gridpassRedirect"),eR.replace("".concat(RP.k2.GridPassLink,"?code=").concat(tg)))},[tg,eR]),(0,eb.useEffect)(()=>{window.addEventListener("scroll",ei=>{0!==window.scrollY||tf||tp(!0),window.scrollY>0&&tf&&tp(!1)})},[tf]),eN){let ei=eO.getLoading||FF;return ei()}if("blank"===eO.getLayout)return(0,em.jsx)(eO,{...eI});let tm=eO.getLayout||FB;return e7?(0,em.jsxs)(LR.II,{boundaryName:"NFT",type:"primary",onError:()=>{FL||(window.location.href="/500")},children:[(0,em.jsx)(e_(),{children:eL||eF?(0,em.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, minimum-scale=1, user-scalable=0"},"viewport"):(0,em.jsx)("meta",{name:"viewport",content:"width=1024"},"viewport")}),(0,em.jsx)(ML,{context:tc,children:(0,em.jsx)(tj.aH,{client:FM,children:(0,em.jsx)(Rl,{children:(0,em.jsx)(jA,{translations:null!=e5?e5:{},defaultTranslations:null!=eX?eX:{},language:null!=e3?e3:jb.k$,supportedLanguages:EG.J3,children:(0,em.jsx)(Ej.u.Provider,{children:(0,em.jsx)(LM,{children:(0,em.jsx)("div",{className:eE()("starboard-root","responsive-container","app",{"touch-capable":(0,Ez.b1)(),gridpassLink:e7}),children:(0,em.jsx)(Lh,{children:(0,em.jsx)(eO,{...eI,language:eK,setLocalLanguage:eY})})})})})})})})})]}):(0,em.jsxs)(LR.II,{boundaryName:"NFT",type:"primary",onError:()=>{FL||(window.location.href="/500")},children:[(0,em.jsxs)(e_(),{children:[(0,em.jsx)("title",{children:null==e5?void 0:null===(eo=e5.nft)||void 0===eo?void 0:eo.SiteTitle}),(0,em.jsx)("meta",{name:"description",content:null==e5?void 0:null===(ea=e5.nft)||void 0===ea?void 0:ea.SiteDescription},"description"),(0,em.jsx)("meta",{property:"og:description",content:null==e5?void 0:null===(eu=e5.nft)||void 0===eu?void 0:eu.SiteDescription},"og:description"),(0,em.jsx)("meta",{property:"og:title",content:null==e5?void 0:null===(ec=e5.nft)||void 0===ec?void 0:ec.OGTitle},"og:title"),(0,em.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,em.jsx)("meta",{property:"og:url",content:ej},"og:url"),eL||eF?(0,em.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, minimum-scale=1, user-scalable=0"},"viewport"):(0,em.jsx)("meta",{name:"viewport",content:"width=1024"},"viewport")]}),(0,em.jsx)(tj.aH,{client:FM,children:(0,em.jsx)(ML,{context:tc,children:(0,em.jsx)(Rl,{children:(0,em.jsx)(Fv,{children:(0,em.jsx)(FH,{children:(0,em.jsx)(jA,{translations:null!=e5?e5:{},defaultTranslations:null!=eX?eX:{},language:null!=e3?e3:jb.k$,supportedLanguages:EG.J3,children:(0,em.jsx)(kQ,{language:null!=e3?e3:jb.k$,children:(0,em.jsxs)(Ey,{useFeatureFlags:tR.V,LoadingView:EO,ErrorView:Ex,captureMessage:ek.uT,autoflowKind:RP.HI.RouterBased,router:eR,isAuthenticated:eP,children:[(0,em.jsx)(MB,{}),(0,em.jsx)(Ej.u.Provider,{children:(0,em.jsx)(LM,{children:(0,em.jsxs)(tG,{children:[(0,em.jsx)(Ej.u.Provider,{children:eP?(0,em.jsx)(SL,{KycModal:EU,KycSingleScreenModal:FN,returnPath:eR.asPath,useFeatureFlags:tR.V,sendToFlowOverride:gw}):null}),(0,em.jsx)(rz,{}),(0,em.jsx)("div",{className:eE()("starboard-root","responsive-container","app",{"touch-capable":(0,Ez.b1)(),gridpassLink:e7}),children:(0,em.jsx)(Lh,{children:e7?(0,em.jsx)(em.Fragment,{children:(0,em.jsx)(eO,{...eI})}):(0,em.jsxs)(em.Fragment,{children:[(0,em.jsx)(LD,{isTransparent:td&&tf}),(0,em.jsx)("main",{className:eE()("content bg-IT100",{transparentHeader:td}),children:tm((0,em.jsx)(eO,{...eI}),{enableSubMenu:!1})}),(0,em.jsx)(RQ.fA,{}),eP?(0,em.jsx)(FO,{}):null,(0,em.jsx)(eC.gQ,{projectId:"c7012d5520fd8f61c57f64cfdcc648fc",metadata:{name:"Kraken",description:"",url:"https://kraken.com",icons:["https://s3-alpha.figma.com/profile/6b8d125a-10cf-42ab-81d5-fe928de21504"]}}),(0,em.jsx)(Ru.b,{setLocalLanguage:eY})]})})})]})})})]})})})})})})})})]})},FG=ei=>{let eo=(0,eb.useMemo)(()=>new eD(1),[]),ea=(0,eb.useMemo)(()=>tg(eo),[eo]),eu=tF();return(0,eb.useEffect)(()=>eu.subscribe(ei,ei=>{eo.next(ei)}),[ei,eu,eo]),ea},FV=!1,Fq=FV?void 0:{debug:()=>void 0,info:()=>void 0,warn:()=>void 0,error:(ei,eo)=>ek.Tb(ei,{extra:eo})},FH=ei=>{let{children:eo}=ei,ea=FG("funding");return(0,em.jsx)(sk,{platform:"CW",featureFlags$:ea,logger:Fq,translateFn:()=>void 0,children:eo})},FW=ei=>(0,em.jsxs)(em.Fragment,{children:[(0,em.jsxs)(e_(),{children:[(0,em.jsx)("meta",{name:"description",content:"Enter the NFT universe with Kraken's NFT marketplace. Get started today."}),(0,em.jsx)("meta",{property:"og:description",content:"Enter the NFT universe with Kraken's NFT marketplace. Get started today."},"og:description"),(0,em.jsx)("meta",{name:"title",property:"title",content:"Kraken NFT"},"title"),(0,em.jsx)("meta",{property:"og:title",content:"Kraken NFT, the best place to get started with NFTs"},"og:title"),(0,em.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,em.jsx)("meta",{property:"og:image",content:"https://nft.kraken.com".concat(Lj)},"og:image"),(0,em.jsx)("meta",{property:"og:image:secure_url",content:"https://nft.kraken.com".concat(Lj)},"og:image:secure_url"),(0,em.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,em.jsx)("meta",{property:"og:url",content:"https://nft.kraken.com"},"og:url")]}),(0,em.jsx)(kB.t,{children:(0,em.jsx)(IE,{children:(0,em.jsx)(jy,{children:(0,em.jsx)(Fz,{...ei})})})})]});var FK=FW},29899:function(ei,eo,ea){"use strict";ea.d(eo,{t:function(){return eS},C:function(){return e_}});var eu,ec=ea(67294),ed=ea(50550);function ef({fallbackValues:ei,fetcher:eo}){let ea=(0,ec.createContext)(null),eu=()=>{let{data:ea,loading:eu,error:ec}=(0,ed.r)(eo);return{values:ea,fallbackValues:ei,error:ec,isLoading:eu}},ef=({children:ei})=>{let{values:eo,isLoading:ed,fallbackValues:ef}=eu();return ed?null:ec.createElement(ea.Provider,{value:{values:null!=eo?eo:ef}},ei)},eh=()=>{let ei=(0,ec.useContext)(ea);if(!ei)throw Error("useRequiredValues must be used within a `RequiredValuesProvider`");if(!ei.values)throw Error("RequiredValues not available, this should not happen, and is probably a bug in this library");return ei.values};return{useRequiredValues:eh,RequiredValuesProvider:ef}}let eh={spot:"https://www.kraken.com",nft:"https://nft.kraken.com",pro:"https://pro.kraken.com",custody:"https://custody.kraken.com",cmsApi:"https://www.kraken.com/api/cms/data",api:"https://api.kraken.com",internalApi:"https://iapi.kraken.com",ws:"wss://ws-frontend.kraken.com/v2",kraken_terminal_redirect_url:"https://trade.kraken.com/webhooks/trading-session/",cryptowatch_magic_redirect_url:"https://accounts-http.service.cryptowat.ch/v1/import-exchange-api-key/webhook",accounts_ld_cli_id:"61a7e24fc00cf2111bf31a24",spot_ld_cli_id:"61017a71fe946c274850b73d",spot_ld_sec_cli_ids:{funding:"6422970661d12513f8401138"},instant_ld_cli_id:"613fb9da694e8d262b59e4a9",instant_seg_key:"D0BTWAfOeLEWkVTjJoOcN1V6jmzF9ucf",pwmb:"https://paywithmybank.com",sol_main:"https://soft-proportionate-putty.solana-mainnet.quiknode.pro/2e2f2290bc849fb0c55ebf058e07e19488c2238e",r_key:"6Lei2rIUAAAAADOz4JC6-zbnL6hzeI-gYsnhEEV4",s_key:"0f318a5903",c_key:"096234562be7c98209a648e19400bace129181e5",a_id:"plEQFANX7SLL",a_key:"917b275b51781772ae1698d4cb0897da",seg_ac_key:"tgdXAZriXxX9A2nDSRPdOxNjYBw7B4tC",seg_fa_key:"VVrIoCX9iPlu1jQ2J0BZYImmTa2jVIPT",seg_nf_key:"jJ4kTqXPT0fVjIIx5w4Zzo2Rh62GgiBs",seg_on_key:"xtEjjPq5V5m1X8eLpLxhuM9N1OWDN3nn",seg_sp_key:"Y7H5okE1M57WjS15dfFarKF8iackeHsD",agr_key:"AW-763159290",ab_key:26040223,ar_key:"t2_37mznje6",aaa_key:"ZLFL2LNRWZEFBEWWT7MTPY",aap_key:"ORSVROSOXFCR3KHWGE4VHO",al_key:2734914,pci_iframe_url:"https://pci.kraken.com/vault/v1/iframes",sun_co:"62a8a6b5a0145900f1e87aa2",sar_client_env:"production",sar_client_key:"7ab6a2d1-29ce-42ab-a53a-3fdf99088d99",sl:["en-gb","en-us","es-es","fil-ph","fr-fr","it-it","ja-jp","pt-br","ru-ru","tr-tr","uk-ua","vi-vn","zh-cn"]},eg=(eu="19647-nft-app","19647-nft-app"),em="/config.json",eb=eg?"".concat(em,"?v=").concat(eg):em,ew=async()=>{let ei=await(await fetch(eb)).json();return{...eh,...ei}},{useRequiredValues:e_,RequiredValuesProvider:eS}=ef({fallbackValues:eh,fetcher:ew})},8402:function(ei,eo,ea){"use strict";ea.d(eo,{H:function(){return eu}});let eu={errorRetryCount:1,revalidateOnFocus:!1}},21779:function(ei,eo,ea){"use strict";ea.d(eo,{ZI:function(){return ni},fk:function(){return eN},Oi:function(){return eT},Ff:function(){return eh},ie:function(){return ek.ie},$F:function(){return eV.$},CW:function(){return eU},yi:function(){return tf},Q7:function(){return tD},aR:function(){return tw},m8:function(){return ej.m},iC:function(){return eF},jq:function(){return eB},Rd:function(){return eG},dv:function(){return rX},gP:function(){return td},Rm:function(){return tp},dH:function(){return tJ},_N:function(){return tI},DX:function(){return tP},_P:function(){return tm},w3:function(){return tb},Cu:function(){return rY},vB:function(){return tq},Z_:function(){return tH},yY:function(){return tW},YN:function(){return tK},C1:function(){return tN},ho:function(){return tQ},jL:function(){return tY},xT:function(){return tM},zU:function(){return tk},oF:function(){return tg},Tr:function(){return tj},ix:function(){return tC},Gn:function(){return eM.Gn},hY:function(){return nu},KZ:function(){return nd}});var eu,ec,ed=ea(8100),ef=ea(89866);let eh=function(ei){let eo=!(arguments.length>1)||void 0===arguments[1]||arguments[1],ea="account_profile",eu=(0,ef.W)();return(0,ed.ZP)(eo?ea:null,async()=>{let ei=await eu.account.readProfile();return ei.data.result},{revalidateOnFocus:!1,...ei})};var eg=ea(67294),em=ea(50043),eb=ea(8399),ew=ea(8402);let e_="/api/internal/devices",eS="".concat(e_,"/approved"),eE=eS,eA="ACCOUNTS_".concat(eS),eT=ei=>{let eo=(0,ef.W)(),{data:ea}=(0,em.ie)(),{mutate:eu}=(0,ed.kY)(),{data:ec,error:eh,mutate:e_}=(0,ed.ZP)(eA,async()=>{let ei=await eo.devices.listApprovedDevices();return ei.data.result},{...ew.H,...ei}),eS=(0,eg.useCallback)(async ei=>{(0,eb.Cn)(null==ea?void 0:ea.settings_lock);let ec=await eo.devices.revokeDevice(ei);return e_(eo=>{var ea;if(eo)return{...eo,devices:null===(ea=eo.devices)||void 0===ea?void 0:ea.filter(eo=>eo.id!==ei)}},{revalidate:!0}),eu(eE),ec},[null==ea?void 0:ea.settings_lock,eo.devices,e_,eu]),eT=(0,eg.useCallback)(async ei=>{(0,eb.Cn)(null==ea?void 0:ea.settings_lock);let ec=await eo.devices.revokeAllDevices({include_current:ei});return e_(eo=>{if(!eo)return;let{current_id:ea,devices:eu}=eo;return ei?{current_id:ea,devices:[]}:{...eo,devices:null==eu?void 0:eu.filter(ei=>ei.id===ea)}},{revalidate:!0}),eu(eE),ec},[null==ea?void 0:ea.settings_lock,eo.devices,e_,eu]);return{accountDevices:null==ec?void 0:ec.devices,currentDeviceId:null==ec?void 0:ec.current_id,isLoading:!eh&&!ec,error:eh,revokeAccountDevice:eS,revokeAllAccountDevices:eT}};var ek=ea(25542),eC=ea(2264),eO=ea(91572),eI=ea(94907);!function(ei){ei.FetchBalancesForTier0="forgottenHeros",ei.AedTradingPairs="camelOne",ei.KBankFeatureEnabled="sheldonBigBang"}(eu||(eu={}));let eP={fetchBalancesForTier0:eu.FetchBalancesForTier0,aedTradingPairs:eu.AedTradingPairs,kBankFeatureEnabled:eu.KBankFeatureEnabled},eD=ei=>{if(ei){let eo=ei.reduce((ei,eo)=>eo.asset?{...ei,[eo.asset]:eo}:ei,{});return eo}return ei};function eN(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{refreshInterval:6e4},ea=arguments.length>2?arguments[2]:void 0,{data:eu}=(0,ek.ie)(void 0,!(null==ea?void 0:ea.disabled)),ec=(0,ef.W)(),ed=(0,eC.V)(),eh=(null==ea?void 0:ea.disabled)?null:"/api/internal/account/balance/".concat(JSON.stringify(ei)),{data:em,...eb}=(0,eI.CQ)(()=>{let ei=ed&&ed[eP.fetchBalancesForTier0];return eu?"".concat(eh,"/").concat(ei):null},async()=>{var eo;let ea=ed&&ed[eP.fetchBalancesForTier0],ef=eu&&(null!==(eo=null==eu?void 0:eu.tier)&&void 0!==eo?eo:0)>0;if(!ef&&!ea)return;let eh=await ec.account.getAccountBalance(ei,{query:{preferred_asset_name:"new"}});return eh.data.result},eo),{accountBalances:ew,equityBalances:e_}=(0,eg.useMemo)(()=>{if(em){let ei=em.filter(ei=>{let{asset_class:eo}=ei;return eo===eO.ez.Currency}),eo=em.filter(ei=>{let{asset_class:eo}=ei;return eo===eO.ez.Equity});return{accountBalances:eD(ei),equityBalances:eD(eo)}}return{accountBalances:void 0,equityBalances:void 0}},[em]),eS=ei=>void 0!==ei&&Object.keys(ei).length>0;return{...eb,accountBalances:ew,equityBalances:e_,hasFunded:eS}}var eM=ea(80220),ej=ea(75907);let eR=ei=>ei.enabled_for_user&&"delisted"!==ei.status,eL="/api/internal/markets/user",eF=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1?arguments[1]:void 0,ea=!(arguments.length>2)||void 0===arguments[2]||arguments[2],eu=(0,ef.W)(),{data:ec,error:eh,mutate:em}=(0,ed.ZP)(ea?eL:null,async()=>{let eo=await eu.markets.getUserPairs(ei);return eo.data.result},{revalidateOnFocus:!1,...eo}),eb=(0,eg.useMemo)(()=>{var ei;return null!==(ei=null==ec?void 0:ec.filter(eR))&&void 0!==ei?ei:void 0},[ec]);return{error:eh,markets:ec,allowedMarkets:eb,mutate:em}};function eB(){let ei=(0,ef.W)(),eo="getMeta";return(0,ed.ZP)(eo,async()=>{let eo=await ei.meta.initialData();return eo.data.result},{revalidateOnFocus:!1})}function eU(ei,eo,ea){let eu=!(arguments.length>3)||void 0===arguments[3]||arguments[3],ec=(0,ef.W)(),eh=eu?"getAssetRates-".concat(JSON.stringify(ei)):null;return(0,ed.ZP)(eh,async()=>{let eo=await ec.markets.getAssetsRates(ei,ea);return eo.data.result},{...ew.H,...eo})}function eG(ei,eo,ea,eu){let ec=(0,ef.W)(),eh=(0,eI.Jp)(),eg=void 0!==ea?ea:"getNft/".concat(ei.nftId);return(0,ed.ZP)(()=>eg,async()=>{let eo=await ec.nft.getNft({currency:eh,...ei},eu);return eo.data.result.nft},{...ew.H,...eo})}ea(39611),ea(85410);var eV=ea(90442),eH=function(){return(eH=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;ea0&&ec[ec.length-1])&&(6===ed[0]||2===ed[0])){ef=0;continue}if(3===ed[0]&&(!ec||ed[1]>ec[0]&&ed[1]{ec&&em.current.add(e_)},[e_,ec]),(0,ed.ZP)(()=>e_,async()=>{let eo=await eh.nft.listNfts({currency:eb,...ei},eu);return eo.data.result},{...ew.H,...eo})}function tf(ei,eo,ea,eu){let ec=(0,ef.W)(),ed=(0,eg.useCallback)((eo,eu)=>null===ea||eu&&!eu.items.length?null:0===eo?"".concat(tc).concat(JSON.stringify({...ei})):"".concat(tc).concat(JSON.stringify({...ei,cursor:null==eu?void 0:eu.cursor})),[ei,ea]);return tu(ed,async eo=>{var ea,ed;let ef=null!==(ed=null===(ea=JSON.parse(eo.split(tc)[1]))||void 0===ea?void 0:ea.cursor)&&void 0!==ed?ed:void 0,eh=await ec.nft.listNfts({...ei,cursor:ef},eu);return eh.data.result},{revalidateFirstPage:!1})}function tp(ei,eo,ea){let eu=(0,ef.W)(),ec=void 0!==ea?ea:"getAuctions/".concat(JSON.stringify(ei)),{data:eh,...eg}=(0,ed.ZP)(()=>ec,async()=>{let eo=await eu.nft.getAuctions(ei);return eo.data.result},{...ew.H,...eo});return{...eg,data:eh}}function tg(ei,eo){let ea=!(arguments.length>2)||void 0===arguments[2]||arguments[2],eu=(0,ef.W)(),ec=ea?"getUserClaims/".concat(JSON.stringify(ei)):null;return(0,ed.ZP)(()=>ec,async()=>{let eo=await eu.nft.getUserClaims(ei);return eo.data.result},{...ew.H,...eo})}function tm(ei,eo,ea,eu){let ec=(0,ef.W)(),eh=void 0!==ea?ea:"getNftCreator/".concat(ei,")}");return(0,ed.ZP)(()=>eh,async()=>{let eo=await ec.nft.getCreator(ei,eu);return eo.data.result.creator},{...ew.H,...eo})}let tv="getNftCreators/";function tb(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1?arguments[1]:void 0,ea=arguments.length>2?arguments[2]:void 0,eu=(0,ef.W)(),ec=(0,eI.Jp)(),eh=void 0!==ea?ea:"".concat(tv,"/").concat(JSON.stringify(ei));return(0,ed.ZP)(()=>eh,async()=>{let eo=await eu.nft.listCreators({currency:ec,...ei});return eo.data.result},{...ew.H,...eo})}function tw(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=(arguments.length>1&&arguments[1],arguments.length>2?arguments[2]:void 0),ea=arguments.length>3?arguments[3]:void 0,eu=(0,ef.W)(),ec=(0,eg.useCallback)((ea,eu)=>null===eo||eu&&!eu.items.length?null:0===ea?"".concat(tv).concat(JSON.stringify({...ei})):"".concat(tv).concat(JSON.stringify({...ei,cursor:null==eu?void 0:eu.cursor})),[ei,eo]);return tu(ec,async eo=>{var ec,ed;let ef=null!==(ed=null===(ec=JSON.parse(eo.split(tv)[1]))||void 0===ec?void 0:ec.cursor)&&void 0!==ed?ed:void 0,eh=await eu.nft.listCreators({...ei,cursor:ef},ea);return eh.data.result},{revalidateFirstPage:!1})}var t_=ea(85893),tS=ea(1922),tE=ea(88808),tA=ea(98319);function tT(){let{triggerAlert:ei}=(0,tE.B)(),{t:eo}=(0,tS.$G)(),ea={"no permission":eo("nft:errors:offer:cancel:NoPermission"),"not found":eo("nft:errors:offer:cancel:NotFound"),"not in cancellable state":eo("nft:errors:offer:cancel:Uncancellable"),"nft id unknown":eo("nft:errors:offer:place:UnknownId"),"quote_id not valid":eo("nft:errors:offer:place:InvalidId"),"expire_time above max":eo("nft:errors:offer:place:ExpireTimeGTMax"),"expire_time below min":eo("nft:errors:offer:place:ExpireTimeLTMin"),"rpcerror:EGeneral:Invalid symbol":eo("nft:errors:auction:create:NotAECurrency"),"Open Offer limit exceeded":eo("nft:errors:offer:place:OfferLimitExceeded"),"user is blocked from buying":(0,t_.jsx)(tS.cC,{i18nKey:"nft:errors:offer:place:BlockedBuyer",children:(0,t_.jsx)(tA.d,{className:"bold",href:eo("nft:errors:offer:place:LearnMore")})}),"rpcerror:EGeneral:Buying is blocked":(0,t_.jsx)(tS.cC,{i18nKey:"nft:errors:offer:place:BlockedBuyer",children:(0,t_.jsx)(tA.d,{className:"bold",href:eo("nft:errors:offer:place:LearnMore")})}),"sale failed due to balances":eo("nft:errors:offer:accept:SaleFailed"),"start_time in the past":eo("nft:errors:auction:create:StartTimePast"),"expire time in the past":eo("nft:errors:auction:create:ExpireTimePast"),"auction type not supported":eo("nft:errors:auction:create:InvalidType"),"ask_price must be set":eo("nft:errors:auction:create:NoAskPrice"),"offer not found":eo("nft:errors:auction:create:OfferNotFound"),"currency blacklisted":eo("nft:errors:auction:create:CurrencyUnavailable"),"invalid currency":eo("nft:errors:auction:create:InvalidCurrency"),"only currencies allowed":eo("nft:errors:auction:create:NotAECurrency"),"price below min":eo("nft:errors:auction:create:PriceBelowMin"),"price above max":eo("nft:errors:auction:create:PriceAboveMax"),"invalid price format":eo("nft:errors:auction:create:InvalidPriceFormat"),"Error: NFT deposit failed.":eo("nft:errors:wallet:Web3DepositError"),general:eo("general:Error")},eu={offer:{accept:{"offer not found":eo("nft:errors:offer:accept:NotFound"),"nfts not available":eo("nft:errors:offer:accept:NoBalance")}},auction:{create:{"offer not found":eo("nft:errors:auction:create:OfferNotFound"),"nfts not available":eo("nft:errors:auction:create:NftUnavailable")}}},ec=(ec,ed,ef)=>{var eh,eg;let em=(null==ec?void 0:ec.msg)||(null==ec?void 0:ec.value)||(null==ec?void 0:ec.message)||"general",eb=ea;ed&&ef&&(eb={...eb,...null==eu?void 0:null===(eh=eu[ed])||void 0===eh?void 0:eh[ef]}),ei(null!==(eg=eb[em])&&void 0!==eg?eg:eo("general:Error"),"error")};return{unpackError:ec}}function tk(ei,eo,ea){let eu=(0,ef.W)(),{data:ec,...eh}=(0,ed.ZP)(null!=ea?ea:()=>"getNeftTransactions/".concat(JSON.stringify(ei)),async()=>{let eo=await eu.nft.listNftTransactions(ei);return eo.data.result},{...ew.H,...eo});return{...eh,nftTransactions:null==ec?void 0:ec.items,total:null==ec?void 0:ec.total}}function tC(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1?arguments[1]:void 0,ea=!(arguments.length>2)||void 0===arguments[2]||arguments[2],eu=(0,ef.W)(),ec=ea?"getWallet/".concat(JSON.stringify(ei)):null;return(0,ed.ZP)(()=>ec,async()=>{let eo=await eu.nft.getNftWallet(ei);return eo.data.result},{...ew.H,...eo})}var tO=ea(52265);function tI(ei,eo,ea,eu){let ec=(0,ef.W)(),eh=(0,eI.Jp)(),eg=void 0!==ea?ea:"getCollection/".concat(ei.collectionId,")}");return(0,ed.ZP)(()=>eg,async()=>{let eo=await ec.nft.getCollection({currency:eh,...ei},eu);return eo.data.result.collection},{...ew.H,...eo})}function tP(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1?arguments[1]:void 0,ea=arguments.length>2?arguments[2]:void 0,eu=arguments.length>3?arguments[3]:void 0,ec=(0,ef.W)(),eh=(0,eI.Jp)(),eg=void 0!==ea?ea:"listCollections/".concat(JSON.stringify(ei));return(0,ed.ZP)(()=>eg,async()=>{let eo=await ec.nft.listCollections({currency:eh,...ei},eu);return eo.data.result},{...ew.H,...eo})}function tD(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=(arguments.length>1&&arguments[1],arguments.length>2?arguments[2]:void 0),ea=arguments.length>3?arguments[3]:void 0,eu=(0,ef.W)(),ec="listCollections/",ed=(0,eg.useCallback)((ea,eu)=>null===eo||eu&&!eu.items.length?null:0===ea?"".concat(ec).concat(JSON.stringify({...ei})):(ei.page=ea+1,"".concat(ec).concat(JSON.stringify({...ei,cursor:null==eu?void 0:eu.cursor}))),[ei,eo]);return tu(ed,async eo=>{var ed,ef;let eh=null!==(ef=null===(ed=JSON.parse(eo.split(ec)[1]))||void 0===ed?void 0:ed.cursor)&&void 0!==ef?ef:void 0,eg=await eu.nft.listCollections({...ei,cursor:eh},ea);return eg.data.result},{revalidateFirstPage:!1})}function tN(ei,eo,ea){let eu=(0,ef.W)(),ec=void 0!==ea?ea:"getOffers/".concat(JSON.stringify(ei));return(0,ed.ZP)(()=>ec,async()=>{let eo=await eu.nft.getOffers(ei);return eo.data.result},{...ew.H,...eo})}function tM(ei){let eo=!(arguments.length>1)||void 0===arguments[1]||arguments[1],ea=(0,ef.W)(),eu=eo?"getNftSocialId":null;return(0,ed.ZP)(()=>eu,async()=>{let ei=await ea.nft.getNftSocialId();return ei.data.result},{...ew.H,...ei})}function tj(ei,eo,ea){let eu=(0,ef.W)(),ec=void 0!==ea?ea:"getUserOffers/".concat(JSON.stringify(ei));return(0,ed.ZP)(()=>ec,async()=>{let eo=await eu.nft.getUserOffers(ei);return eo.data.result},{...ew.H,...eo})}var tR=ea(19013),tL=ea(83946),tF=ea(13882);function tB(ei){(0,tF.Z)(1,arguments);var eo=(0,tL.Z)(ei);return(0,tR.Z)(1e3*eo)}function tU(ei){return(0,tF.Z)(1,arguments),(0,tR.Z)(ei).getTime()ei(null!=ea?ea:eo("general:Error"),"error"),success:ea=>ei(null!=ea?ea:eo("general:Success"))}}function tV(ei){let eo=tB(ei);if(!tU(eo))return ei}function tq(ei,eo){let ea=(0,ef.W)(),{mutate:eu}=(0,ed.kY)(),{success:ec}=tG(),{unpackError:eh}=tT(),em=eo||"nftAuction",eb=(0,eg.useCallback)(eo=>{let ed=eo.start_time?tV(eo.start_time):void 0;return eu(em,async()=>{try{let ei=await ea.nft.createAuction({...eo,start_time:ed});return ec(),{data:ei,error:void 0}}catch(ei){return eh(ei,"auction","create"),{data:void 0,error:ei}}},ei)},[ea.nft,eu,em,ei,ec,eh]),ew=(0,eg.useCallback)(eo=>eu(em,async()=>{try{let ei=await ea.nft.modifyAuction(eo);return ec(),{data:ei,error:void 0}}catch(ei){return eh(ei,"auction","update"),{data:void 0,error:ei}}},ei),[ea.nft,eu,em,ei,ec,eh]),e_=(0,eg.useCallback)(eo=>eu(em,async()=>{try{let ei=await ea.nft.cancelAuction(eo);return ec(),{data:ei,error:void 0}}catch(ei){return eh(ei,"auction","delete"),{data:void 0,error:ei}}},ei),[ea.nft,eu,em,ei,ec,eh]);return(0,eg.useMemo)(()=>({createAuction:eb,updateAuction:ew,deleteAuction:e_}),[eb,e_,ew])}function tH(ei,eo){let ea=(0,ef.W)(),{mutate:eu}=(0,ed.kY)(),{error:ec,success:eh}=tG(),em=eo||"nftBid",eb=(0,eg.useCallback)(eo=>eu(em,async()=>{try{let ei=await ea.nft.placeBid(eo);return eh(),{data:ei,error:void 0}}catch(ei){return ec(),{data:void 0,error:ei}}},ei),[ea.nft,eu,em,ei,eh,ec]);return(0,eg.useMemo)(()=>({createBid:eb}),[eb])}function tW(ei,eo){let ea=(0,ef.W)(),{mutate:eu}=(0,ed.kY)(),{success:ec}=tG(),{unpackError:eh}=tT(),em=eo||"nftOffer",eb=(0,eg.useCallback)(eo=>eu(em,async()=>{try{let ei=await ea.nft.placeOffer(eo);return ec(),{data:ei,error:void 0}}catch(ei){return eh(ei,"offer","create"),{data:void 0,error:ei}}},ei),[ea.nft,eu,em,ei,ec,eh]),ew=(0,eg.useCallback)(ec=>{let ed=void 0!==eo?eo:"getOffers/".concat(JSON.stringify(ec));return eu(ed,async()=>{let ei=await ea.nft.getOffers(ec);return ei.data.result},ei)},[ea.nft,eo,eu,ei]),e_=(0,eg.useCallback)(eo=>eu(em,async()=>{try{let ei=await ea.nft.cancelOffer(eo);return ec(),{data:ei.data.result,error:void 0}}catch(ei){return eh(ei,"offer","delete"),{data:void 0,error:ei}}},ei),[ea.nft,eu,em,ei,ec,eh]),eS=(0,eg.useCallback)(eo=>eu(em,async()=>{try{let ei=await ea.nft.acceptNftOffer(eo);return ec(),{data:ei.data.result,error:void 0}}catch(ei){return eh(ei,"offer","accept"),{data:void 0,error:ei}}},ei),[ea.nft,eu,em,ei,ec,eh]),eE=(0,eg.useCallback)(eo=>eu(em,async()=>{try{let ei=await ea.nft.counterNftOffer(eo);return ec(),{data:ei.data.result,error:void 0}}catch(ei){return eh(ei,"offer","counter"),{data:void 0,error:ei}}},ei),[ea.nft,eu,em,ei,ec,eh]);return(0,eg.useMemo)(()=>({createOffer:eb,getOffers:ew,deleteOffer:e_,acceptOffer:eS,counterOffer:eE}),[eb,e_,eE,eS,ew])}function tK(ei,eo){let ea=(0,ef.W)(),{mutate:eu}=(0,ed.kY)(),ec=(0,eg.useCallback)(ec=>{let ed=void 0!==eo?eo:"getUserOffers/".concat(JSON.stringify(ec));return eu(ed,async()=>{let ei=await ea.nft.getUserOffers(ec);return ei},ei)},[ea.nft,eu,eo,ei]);return(0,eg.useMemo)(()=>({getUserOffers:ec}),[ec])}function tY(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{refreshInterval:6e4},ea=arguments.length>2?arguments[2]:void 0,eu=arguments.length>3?arguments[3]:void 0,ec=(0,ef.W)(),eh=void 0!==ea?ea:"getQuotes/".concat(JSON.stringify(ei));return(0,ed.ZP)(()=>eh,async()=>{let eo=await ec.nft.getNftQuotes(ei,eu);return eo.data.result},{...ew.H,...eo})}var tZ=ea(71013);let t$=new Set(["SOL"]);function tJ(ei){let eo=(0,eI.JL)(),{data:ea}=eh(void 0,eo);return(0,eg.useMemo)(()=>{var eo,eu,ec,ed;if(!(null==ei?void 0:null===(eo=ei.token)||void 0===eo?void 0:null===(eu=eo.blockchain)||void 0===eu?void 0:eu.asset))return!0;let ef=null===(ec=ei.token)||void 0===ec?void 0:null===(ed=ec.blockchain)||void 0===ed?void 0:ed.asset;return!((null==ea?void 0:ea.country)===tZ.C.JP&&t$.has(ef))},[ea,ei])}function tQ(ei,eo,ea,eu){var ec;let eh=(0,ef.W)(),eg=void 0!==ea?ea:"getNftProvenance/".concat((null===(ec=ei.nftId)||void 0===ec?void 0:ec.toString())||""),{data:em,...eb}=(0,ed.ZP)(()=>eg,async()=>{let eo=await eh.nft.getNftProvenance(ei,eu);return eo.data.result},{...ew.H,...eo});return{...eb,...em}}var tX=ea(77191),ra=ea.n(tX),ru=ea(81927),rc=ea(59112),rf=ea(75438),rh=ea(54558),rp=ea(94184),ry=ea.n(rp),rw=ea(62410),r_=ea(77172),rS=ea(59720),rE=ea(62036),rA=ea(25391),rT=ea.n(rA);let rk=ei=>{let{isOpen:eo,isPending:ea,wallet:eu,onSubmit:ec,onDismiss:ed}=ei,{isSmall:ef}=(0,eI.kC)();return(0,t_.jsx)(rE.L,{ariaLabel:"nft-wallet-remove-dialog",hasCloseButton:!0,onDismiss:ed,isOpen:eo||!1,title:(0,t_.jsx)(rc.x,{langKey:"nft:wallet:ConfirmRemoveTitle"}),children:ea?(0,t_.jsx)("div",{style:{width:40,height:40},className:"relative mv10 mh-auto",children:(0,t_.jsx)(rw.T,{size:"small",skinny:!0})}):(0,t_.jsxs)(t_.Fragment,{children:[(0,t_.jsx)("div",{className:"caption-3 text-N200 mb1",children:(0,t_.jsx)(rc.x,{langKey:"nft:wallet:ConfirmRemoveHeader"})}),(0,t_.jsxs)("div",{children:[(0,t_.jsx)(r_.c,{className:"pv1/2",label:(0,t_.jsx)(rc.x,{langKey:"nft:details:Chain"}),value:eu.address.blockchain?(0,t_.jsx)(rc.x,{langKey:"nft:wallet:WalletChain:".concat(eu.address.blockchain)}):"—"}),(0,t_.jsx)(r_.c,{className:"pv1/2",label:(0,t_.jsx)(rc.x,{langKey:"nft:wallet:WalletAddress"}),value:(0,rh.Tg)(eu.address.address,eu.address.blockchain),valueClassName:ry()({[rT().walletAddressValue]:ef,pl2:ef})})]}),(0,t_.jsx)(rS.T,{buttonSize:"large",cancelButtonText:(0,t_.jsx)(rc.x,{langKey:"general:Cancel"}),className:"mt6",confirmButtonText:(0,t_.jsx)(rc.x,{langKey:"nft:wallet:RemoveWallet"}),onCancel:ed,onConfirm:ec})]})})};var rC=ea(11770),rO=ea(72261),rI=ea(38503),rP=ea.n(rI);let rD=ei=>{let{onDismiss:eo,isOpen:ea,onSubmit:eu,title:ec,wallet:ed,isPending:ef}=ei,[eh,em]=(0,eg.useState)(void 0),{isSmall:eb}=(0,eI.kC)();return((0,eg.useEffect)(()=>{em((null==ed?void 0:ed.label)||void 0)},[null==ed?void 0:ed.label]),ed)?(0,t_.jsx)(rE.L,{hasCloseButton:!0,onDismiss:eo,isOpen:ea,title:ec,ariaLabel:"wallet-label-dialog",children:ef?(0,t_.jsx)("div",{style:{width:40,height:40},className:"relative mv10 mh-auto",children:(0,t_.jsx)(rw.T,{size:"small",skinny:!0})}):(0,t_.jsxs)(t_.Fragment,{children:[(0,t_.jsxs)("div",{className:"mb1",children:[(0,t_.jsxs)("div",{className:"label-2 text-N400",children:[(0,t_.jsx)(rc.x,{langKey:"nft:wallet:WalletAddress"}),":"]}),(0,t_.jsx)("div",{className:ry()("label text-N500",rP().walletAddress),children:eb?(0,rh.FP)(ed.address.address,ed.address.blockchain):(0,rh.Tg)(ed.address.address,ed.address.blockchain)})]}),(0,t_.jsx)(rC.gN,{floating:!0,value:eh,onChange:ei=>{em(ei.target.value)},children:(0,t_.jsxs)(rC.gN.Floating,{children:[(0,t_.jsx)(rC.gN.FloatingLabel,{children:(0,t_.jsx)(rc.x,{langKey:"nft:wallet:WalletName"})}),(0,t_.jsx)(rC.gN.TextInput,{})]})}),(0,t_.jsx)("div",{className:"mt2 tr",children:(0,t_.jsx)(rO.zx,{onClick:()=>eu(eh),size:"extra-large","data-testid":"save-wallet",children:(0,t_.jsx)(rc.x,{langKey:"nft:wallet:walletLabelDialog:Save"})})})]})}):null};var rN=ea(93552),rM=function(ei,eo){var ea={};for(var eu in ei)Object.prototype.hasOwnProperty.call(ei,eu)&&0>eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea};let rj=eg.forwardRef((ei,eo)=>{var{color:ea}=ei,eu=rM(ei,["color"]);return eg.createElement("svg",Object.assign({},(0,rN.ti)(eu),{ref:eo,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),eg.createElement("path",{d:"M16 12L10 17L10 7L16 12Z",fill:ea}))});rj.displayName="CaretRight";var rR=ea(92299),rL=ea(72512),rF=ea(88517),rB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAMYmlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU1cbPndkkrACEZAR9hJFZgAZIawIAjIFUQlJIGHEmBBU3EipgnWLKE6ciEWrFZA6ELHOoritozhQqdRiFRcq/8kArf3H83/Pc+55851v55x7zweAXidfJstH9QEokBbKEyJDWRPS0lmkxwABBGAATACVL1DIOPHxMQDS4Px3en0dSkO64qay9c/1/0qGQpFCAACSAXGWUCEogLgFALxEIJMXAkAMg3zb6YUyFRZDbCSHAUI8W4VzNHi5Cmdp8Ha1TFICF+ImAMg0Pl+eA4BuG+SzigQ50I7uI4jdpUKJFAA9I4iDBGK+EOIkiEcUFExV4fkQO0F5GcS7IWZnfWEz52/2s4bs8/k5Q1iTl5rIYRKFLJ8/8/8szf+mgnzloA8HOGhieVSCKn9Yw5t5U6NVmAZxjzQrNk5Va4jfSoSaugOAUsXKqGSNPGouUHBh/QATYnchPywaYnOII6T5sTFafla2JIIHMdwt6AxJIS9Jq7tIpAhP1NrcIJ+aEDeIs+Vcjla3ni9X+1XJtynzkjla+zfFIt6g/VfF4qRUiKkAYNQiSUosxLoQGynyEqM1MphNsZgbOygjVyao4reDmC2SRoZq7GMZ2fKIBK28rEAxmC9WJpbwYrW4qlCcFKWpD7ZHwFfHbwJxg0jKSR60I1JMiBnMRSgKC9fkjrWLpMnafLF7ssLQBK1uryw/XiuPk0X5kSq+DcRmiqJErS4+phBuTo19PEZWGJ+kiRPPzOWPjdfEgxeBGMAFYYAFlHBkgakgF0jaexp74C/NSgTgAznIASLgpuUMaqSqV6TwmQiKwR8QiYBiSC9UvSoCRZD/cYirebqBbPVqkVojDzyGuABEg3z4W6nWkg55SwGPIEfyD+8CGGs+HKq1f/I4kBOj5SgH7bL0BiWJ4cQwYhQxguiMm+FBeAAeA58hcHjgbNxvMNrP8oTHhA7CA8I1Qifh1hRJifyrWMaBTmg/Qptx1pcZ4w7QpjceigdC69AyzsTNgBvuBf1w8GDo2Rtyudq4Vbmz/k2eQxl8UXOtHMWdglKGUUIoTl9r6rroeg9ZUVX0y/poYs0aqip3aOVr/9wv6iyEc/TXktgi7CB2GjuBncWOYI2AhR3HmrAL2FEVHtpDj9R7aNBbgjqePGhH8g9/fK1PVSUV7nXu3e4ftGugUDSjUHXAuFNlM+WSHHEhiwO/AiIWTyoYOYLl4e7hAYDqm6J5Tb1kqr8VCPPcZ95CXwACSwcGBo585kXvAOBgGjzmVz/zHN/Bd7EtAGc2CZTyIg0PVz0I8G2gB0+UKbAEtsAJZuQBfEAACAHhYCyIA0kgDUyGdRbD/SwH08FssACUgQqwHKwB68FmsA3sBt+DA6ARHAEnwM/gPLgEroHbcP90gWegF7wG/QiCkBA6wkBMESvEHnFFPBA2EoSEIzFIApKGZCI5iBRRIrORhUgFshJZj2xFapEfkMPICeQs0oHcQu4j3chfyHsUQ2moEWqBOqCjUDbKQaPRJHQSmoNOQ4vRUnQpWoXWoHvRBvQEeh69hnaiz9A+DGA6GBOzxtwwNsbF4rB0LBuTY3OxcqwSq8HqsWb4T1/BOrEe7B1OxBk4C3eDezgKT8YF+DR8Lr4EX4/vxhvwNvwKfh/vxT8R6ARzgivBn8AjTCDkEKYTygiVhJ2EQ4RT8DR1EV4TiUQm0ZHoC09jGjGXOIu4hLiRuI/YQuwgPiT2kUgkU5IrKZAUR+KTCkllpHWkvaTjpMukLtJbsg7ZiuxBjiCnk6XkEnIleQ/5GPky+Qm5n6JPsaf4U+IoQspMyjLKdkoz5SKli9JPNaA6UgOpSdRc6gJqFbWeeop6h/pSR0fHRsdPZ7yORGe+TpXOfp0zOvd13tEMaS40Li2DpqQtpe2itdBu0V7S6XQHegg9nV5IX0qvpZ+k36O/1WXojtTl6Qp15+lW6zboXtZ9rkfRs9fj6E3WK9ar1Duod1GvR5+i76DP1efrz9Wv1j+sf0O/z4BhMNogzqDAYInBHoOzBk8NSYYOhuGGQsNSw22GJw0fMjCGLYPLEDAWMrYzTjG6jIhGjkY8o1yjCqPvjdqNeo0Njb2MU4xnGFcbHzXuZGJMByaPmc9cxjzAvM58P8xiGGeYaNjiYfXDLg97YzLcJMREZFJuss/kmsl7U5ZpuGme6QrTRtO7ZriZi9l4s+lmm8xOmfUMNxoeMFwwvHz4geG/mqPmLuYJ5rPMt5lfMO+zsLSItJBZrLM4adFjybQMscy1XG15zLLbimEVZCWxWm113Op3ljGLw8pnVbHaWL3W5tZR1krrrdbt1v02jjbJNiU2+2zu2lJt2bbZtqttW2177azsxtnNtquz+9WeYs+2F9uvtT9t/8bB0SHV4VuHRoenjiaOPMdixzrHO050p2CnaU41Tledic5s5zznjc6XXFAXbxexS7XLRVfU1cdV4rrRtWMEYYTfCOmImhE33GhuHLcitzq3+yOZI2NGloxsHPl8lN2o9FErRp0e9cnd2z3ffbv77dGGo8eOLhndPPovDxcPgUe1x1VPumeE5zzPJs8XXq5eIq9NXje9Gd7jvL/1bvX+6OPrI/ep9+n2tfPN9N3ge4NtxI5nL2Gf8SP4hfrN8zvi987fx7/Q/4D/nwFuAXkBewKejnEcIxqzfczDQJtAfuDWwM4gVlBm0JagzmDrYH5wTfCDENsQYcjOkCccZ04uZy/neah7qDz0UOgbrj93DrclDAuLDCsPaw83DE8OXx9+L8ImIieiLqI30jtyVmRLFCEqOmpF1A2eBU/Aq+X1jvUdO2dsWzQtOjF6ffSDGJcYeUzzOHTc2HGrxt2JtY+VxjbGgThe3Kq4u/GO8dPifxpPHB8/vnr844TRCbMTTicyEqck7kl8nRSatCzpdrJTsjK5NUUvJSOlNuVNaljqytTOCaMmzJlwPs0sTZLWlE5KT0nfmd43MXzimoldGd4ZZRnXJzlOmjHp7GSzyfmTj07Rm8KfcjCTkJmauSfzAz+OX8Pvy+JlbcjqFXAFawXPhCHC1cJuUaBopehJdmD2yuynOYE5q3K6xcHiSnGPhCtZL3mRG5W7OfdNXlzerryB/NT8fQXkgsyCw1JDaZ60barl1BlTO2SusjJZ5zT/aWum9cqj5TsViGKSoqnQCF7eLyidlN8o7xcFFVUXvZ2eMv3gDIMZ0hkXZrrMXDzzSXFE8Y5Z+CzBrNbZ1rMXzL4/hzNn61xkbtbc1nm280rndc2PnL97AXVB3oJfStxLVpa8Wpi6sLnUonR+6cNvIr+pK9Mtk5fd+Dbg282L8EWSRe2LPRevW/ypXFh+rsK9orLiwxLBknPfjf6u6ruBpdlL25f5LNu0nLhcuvz6iuAVu1carCxe+XDVuFUNq1mry1e/WjNlzdlKr8rNa6lrlWs7q2KqmtbZrVu+7sN68fpr1aHV+zaYb1i84c1G4cbLm0I21W+22Fyx+f0WyZabWyO3NtQ41FRuI24r2vZ4e8r20zvYO2p3mu2s2Plxl3RX5+6E3W21vrW1e8z3LKtD65R13Xsz9l76Puz7pnq3+q37mPsq9oP9yv2//5D5w/UD0QdaD7IP1v9o/+OGQ4xD5Q1Iw8yG3kZxY2dTWlPH4bGHW5sDmg/9NPKnXUesj1QfNT667Bj1WOmxgePFx/taZC09J3JOPGyd0nr75ISTV9vGt7Wfij515ueIn0+e5pw+fibwzJGz/mcPn2Ofazzvc77hgveFQ794/3Ko3ae94aLvxaZLfpeaO8Z0HLscfPnElbArP1/lXT1/LfZax/Xk6zdvZNzovCm8+fRW/q0Xvxb92n97/h3CnfK7+ncr75nfq/nN+bd9nT6dR++H3b/wIPHB7YeCh88eKR596Cp9TH9c+cTqSe1Tj6dHuiO6L/0+8feuZ7Jn/T1lfxj8seG50/Mf/wz580LvhN6uF/IXA38teWn6ctcrr1etffF9914XvO5/U/7W9O3ud+x3p9+nvn/SP/0D6UPVR+ePzZ+iP90ZKBgYkPHlfPVVAIMDzc4G4K9dANDh3YFxCd4fJmp6PjUhmj5VjcB/wpq+UE0+ANTDSXVd57YAsB8Oh/nqlgSorupJIQD19BwaWlJke3pobNFgx0N4OzDw0gIAUjMAH+UDA/0bBwY+wh4VuwVAyzRNr6kiIuwNtqh6XXBr1aT54CvS9KFf5Pj1DFQReIGv538BVo2I651KtOAAAABcZVhJZk1NACoAAAAIAAQBBgADAAAAAQACAAABEgADAAAAAQABAAABKAADAAAAAQACAACHaQAEAAAAAQAAAD4AAAAAAAKgAgAEAAAAAQAAADCgAwAEAAAAAQAAADAAAAAACVnDpQAAArRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6Q29tcHJlc3Npb24+MTwvdGlmZjpDb21wcmVzc2lvbj4KICAgICAgICAgPHRpZmY6UGhvdG9tZXRyaWNJbnRlcnByZXRhdGlvbj4yPC90aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj40ODwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj40ODwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgp75YOXAAAKXklEQVRoBcVZa2wU1xX+Zmf82rXxA2Nj3JjFGAMOD0OgSYAEJyUJSaOGBBVQRAtto1Zqf9Coqqq2UW0nv/qn6itSmz+QVA1to1KUpKiReDkiD0KKTQPBr/gBBINxjN9e2zs7/c7szu7s7KwfvHKks3Puueeee173zr2zCm4BGIaRQzVbiJXE+ZGn8AQt6CAheIZYT6xTFEXaXw6I0cRq4jHijUI9B+4i+u+YF5zMMvw66VsJe6ns9jrCCaqJt9pwqoyD6lueDar3EyXddwraOdGtyYYx0L2Lym531DlFAlw3hodlY7hxeGmdVn18u8cY/eNjRvCTQwkz3BZGcMIInj1kznnk2Uyjdl3qpCWlJHOvlsaHDKVG+hflhvB4qY50Xz601Tugrt4GteyBZENnzjdC0D97D6HW45io+z2GBr7Af9o9aOvzmLoMRal58f3xWjfFrg68UIktakbKv+wDZqUBW8snkJ8R5qrz10NbRWfu2QElK98uOm3aCAwieOJP0M/9G3pbHUBrrgwDb7Vq6BuLN83rLdr9syMXXnUqj5diL8vC/8p3NtRfbvrI/hIyxxkGsLFEx71FoZgeJYXZ2ARt00+hzS2L8Seh9KttmDj8a4RajnK+sajuDy6r+LBLgR5KMAvzFn+17/t7T6xyvvwSJLs7mttf3rHcD8VmpMOY0uwQNi/U4dPiO7xZDGI46/EdtharBaNDEqgYU6J9pDNWMrGeGKWmZOBHf61vmH3XwlUxLhA3HaNfbeg6t0zdLpNAt/V78JdzKbg0GO+/HkwQTWCIjN34z6njjUY1Wu8JAyKM4NgIAkODlbSxxi4TdUBKhx01swqLkTFrjl3GlR5k5l//VMPJLg8mIskKjruKxjHHwxVj8o5f9OAfTWpCvccNiDTSM/Mwu8Qs0T20NVreUQcoVyOy6b4sFJatEHJKUJiAuosqDrao6GcZ6EyclEgykD5BKZl/Nqs41aUi6FLvbuMLF1UizeuTLjH+x5aM6UAk+rss5hz/Youc8ilF1MGS2n9eRWufgsmyIH3t/QrLT5uyZJwTz1saV/rRLFgZqLIPKFiwzN6cFj04ruBAs4YPWBZ6kizUdXjwRpOGwDTWinPSuWUr7axoFiwH9th7yzc8zoVm2ybsnZPQko3mL8Kl5BQbZfRbej2y1c8YxJZ5S9c4x20UhidSPpX23vb/HgP3WztrWvSy/BCeWRRCihUW26h0FdhZEcSKgiTpsck6SbGl49S7TnYVbc+RqaqcPXctv39aO5E1TpJVxRfcYwt0pGmG60IWGQ9jspky64p1aC5OWvqcT19uEcrWP+RkS3uLqImLvnD7uy9hpL9byCkhRTXwZFkQa+eGTANlgFuMQxGmOLK+OISvlQTpBBvTgMGey+hpb3WTrBQH4laHSJWu2YglD2x1GxDlieH5XgPfrtBRMdthiKMZHWQjVhQY2LZEx1eyDHimcGTpg1tRvuFR2+go6ZfDgD/ajBBSc6M8ETpBymN5YQgluUBJtoF0htPt7StRng4UZxr41vIgxrg+Wrn427jIW3o85i5lX4GBoV5zU3FZlysVLgTX6cZGhvHnXfdB6W1E+ZwQVhYZKOCEnkjtBvlGHQu4m5maDqTw9GqHCcqPJ5FP8wJaSky6a0DB2SsKzl/jrpW/DD/YewKpGeZLLCYUpvqSOmD2H32Jr9pfOQeZi9R5ILMLifHihB3EeHHCDWTDy8h0Pwgaj/wGyobn3YaZPMd5Ml7OaDzoum+P8szePxCWlckFVWZGUmm2WRKp8arMUhulE5JvO5pi5MmJIpOnWScoTW8DUzjQx0HyZouHgStQrpymRfFsaaUzmwP9wMhoYp9wpMy8jKgdRik7EHHazhfay0uSz7VC2Nl5FBi8CmQVOoeZbalocSARzvFC5mK8CIqBOVzIGZHbmfDGDRUNo3lCmlkwCduPdU/4XyDPzIB0SSZERy6HWf22IWFSbDh3IIEdYfBwAjS49p7Z58q2mGms8WymXAw4MliE5y6sx88vr8ZoSEOKS2GmsKwChoafXFqLnZ0bsb93AdLSFWQx8s71Ys0RfZ55LUo6iA6ZqtPBBIaYsq5TCWw7Q6FBKgs9j9F7du41zOZ77+2uIrw5XII9nja7qEnLGnln+C58o/gK7svrQdWcHuTohpnkpNG3tHx+ktc4FkpGQqWfEQcSMmB8+iYVy5KcHFK528ju4tOCeGZel4lSFuNc5E6Qsnu+sj2uLMe5LpzbrXOc2VaotOF14P4fOrvrpYQOOrlK8yEny7UtkUtxbDeyC3mYHSeYPMeaUrn3Txl9S1HLWxZlf9ZpfLv18V12nNwqs0efwFjnJ0yZ2Ur4GeKFXM41cjAz6IAcyrKZWbshUl5OcPLkZia7ktziJMAhomQp07F7WXqUziakyo1Ii0asgbaba0Bk6ohVQkDCUroJwZOfmU3njxjcc52TRqKZSn2pHJLOt6kVeal3J6g2p0K80MhbfHiQ5Ra5R4u+XAYi2Y1OW/iI3XhR/1v5saaSRp8wBNTyTWHC5VfjqsmyRUkMk2gGWPdyvBBwRtvkyUyMshgYGGHEGXm7Uz4GIIWBSAZq2UZnlwQdsogZTbOMfkeyWtrqyqeg7PfCCHImF/BysgCNDTKSlhGyeCWqupGKlxuzcKEvEtrI+PLsCXy3gtdNsT4CEgwBeYrO5KBCvfsJe/c+KR9hRFSYfZIFuVrmKDxZKcVrYHS+a3Y4fyTds/gO6GUpaZHSCGk+jCx4Ar0lj+IP+1/EiBwxbZDlzcVDz72AvK7j8DUd4HezQHgd0XGpe6skbUOipKdkHRRfTrRNotZqWCVkZoFMyYIJ8hF3MpB0S9SMtFkYXvQ0ur/+GgaX7URPwINhSY8Dhngp7qFTg0u2o3vzKxgq/yYMb75ZjmnRdekYFGlqq7fbO2qt6AvTngFxooY70lPkV6oVmwF5gzPaCcCaV0sfRN6yJ3EpbTHGJ+R2FVbVPziELB5ufN7442iI28zQcLh8QmnZ6F28A757vofCax/CaD0MveN9TkPFTmCGtBVikgkdYmOENh8J5tEBP3vqiTkjvyyGMXzZXHye3FJ4Fj3ML9Lb4CldCyU9ltLOsx+jp6ORh7IMnm8MXO/nSc8F0nn+8FFmeHQE+QuWYP7dsS8NxkQAenMd9NN/5/MwjIGLZvCUggp4f3FOtMkmM/XHXZGkEbv52Bv8+G8w+q/yEzqNzimSrqTQd/USWk+/h2BglN+FuMW4gIcbvZaWgcX3PoxZswtcJGKsUFcjQuff4WKbC22NWUJPM/oHYxJhKiEDlgCdqCFt7koWb6rnOCPbefYjXO1scRUt5Bc/iXpqxqRbjtvYWmfpuAkl8MQJ4oxBn5gw3HDGisIDahIMmwmDOrYQv5w/+cKlPBNz3WXpgJ/YTrxTUM+J/O7W3ASXSm+opGbgtWS65iZMnHqoRIa4bwZGTUfUNJyCsb15alNuToKTiSO7iZLuG4VjHFhDvGHDk26jM3GPBvgpX0WsJK4k+iPIhwl9/BVsIHZGnge5NQrvpuD/A5EkPlnAjPcAAAAASUVORK5CYII=",rU="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNTAwcHgiIGhlaWdodD0iNTAwcHgiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1NC4xICg3NjQ5MCkgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+d2FsbGV0Y29ubmVjdC1jaXJjbGUtd2hpdGU8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0id2FsbGV0Y29ubmVjdC1jaXJjbGUtd2hpdGUiPgogICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiBmaWxsPSIjRkZGRkZGIiB4PSIwIiB5PSIwIiB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCI+PC9yZWN0PgogICAgICAgICAgICA8cGF0aCBkPSJNMTYzLjE3MjczNSwxOTUuMTk3ODAyIEMyMTEuMTA1NzM1LDE0OC4yNjczOTkgMjg4LjgyMDQ4MiwxNDguMjY3Mzk5IDMzNi43NTM0OCwxOTUuMTk3ODAyIEwzNDIuNTIyMjk0LDIwMC44NDU5NTEgQzM0NC45MTg5NDQsMjAzLjE5MjQ3MSAzNDQuOTE4OTQ0LDIwNi45OTY5MzIgMzQyLjUyMjI5NCwyMDkuMzQzNDUzIEwzMjIuNzg4MzMzLDIyOC42NjQ2NDYgQzMyMS41OTAwMDgsMjI5LjgzNzkwNyAzMTkuNjQ3MTM5LDIyOS44Mzc5MDcgMzE4LjQ0ODgxNCwyMjguNjY0NjQ2IEwzMTAuNTEwMjQxLDIyMC44OTIxMjEgQzI3Ny4wNzA5ODMsMTg4LjE1MjI5OSAyMjIuODU1MjMzLDE4OC4xNTIyOTkgMTg5LjQxNTk3NCwyMjAuODkyMTIxIEwxODAuOTE0NDE5LDIyOS4yMTU4NTQgQzE3OS43MTYwOTMsMjMwLjM4OTExNCAxNzcuNzczMjI0LDIzMC4zODkxMTQgMTc2LjU3NDksMjI5LjIxNTg1NCBMMTU2Ljg0MDkzOSwyMDkuODk0NjYxIEMxNTQuNDQ0Mjg5LDIwNy41NDgxNCAxNTQuNDQ0Mjg5LDIwMy43NDM2NzkgMTU2Ljg0MDkzOSwyMDEuMzk3MTU5IEwxNjMuMTcyNzM1LDE5NS4xOTc4MDIgWiBNMzc3LjU2NTE3NSwyMzUuMTU2MDcyIEwzOTUuMTI4NDM4LDI1Mi4zNTIwMzEgQzM5Ny41MjUwNzYsMjU0LjY5ODU0IDM5Ny41MjUwOSwyNTguNTAyOTc4IDM5NS4xMjg0NjksMjYwLjg0OTUwMyBMMzE1LjkzNDUwMSwzMzguMzg4MjE0IEMzMTMuNTM3ODY4LDM0MC43MzQ3NTIgMzA5LjY1MjEzMSwzNDAuNzM0Nzc4IDMwNy4yNTU0NjQsMzM4LjM4ODI3NSBDMzA3LjI1NTQ1NCwzMzguMzg4MjY1IDMwNy4yNTU0NDMsMzM4LjM4ODI1NCAzMDcuMjU1NDMzLDMzOC4zODgyNDQgTDI1MS4wNDgzNzMsMjgzLjM1Njc2MyBDMjUwLjQ0OTIxMSwyODIuNzcwMTMzIDI0OS40Nzc3NzYsMjgyLjc3MDEzMyAyNDguODc4NjE0LDI4My4zNTY3NjMgQzI0OC44Nzg2MSwyODMuMzU2NzY3IDI0OC44Nzg2MDcsMjgzLjM1Njc3MSAyNDguODc4NjAzLDI4My4zNTY3NzQgTDE5Mi42NzI3NCwzMzguMzg4MjE0IEMxOTAuMjc2MTE0LDM0MC43MzQ3NTggMTg2LjM5MDM3NiwzNDAuNzM0Nzk3IDE4My45OTM3MDIsMzM4LjM4ODMgQzE4My45OTM2ODgsMzM4LjM4ODI4NiAxODMuOTkzNjczLDMzOC4zODgyNzIgMTgzLjk5MzY1OCwzMzguMzg4MjU3IEwxMDQuNzk3NDg3LDI2MC44NDg1MTUgQzEwMi40MDA4MzgsMjU4LjUwMTk5NSAxMDIuNDAwODM4LDI1NC42OTc1MzQgMTA0Ljc5NzQ4NywyNTIuMzUxMDE0IEwxMjIuMzYwNzgyLDIzNS4xNTUwODQgQzEyNC43NTc0MzEsMjMyLjgwODU2NCAxMjguNjQzMTY5LDIzMi44MDg1NjQgMTMxLjAzOTgxOSwyMzUuMTU1MDg0IEwxODcuMjQ3Njk3LDI5MC4xODczMzQgQzE4Ny44NDY4NiwyOTAuNzczOTY0IDE4OC44MTgyOTMsMjkwLjc3Mzk2NCAxODkuNDE3NDU2LDI5MC4xODczMzQgQzE4OS40MTc0NjUsMjkwLjE4NzMyNSAxODkuNDE3NDczLDI5MC4xODczMTcgMTg5LjQxNzQ4MiwyOTAuMTg3MzEgTDI0NS42MjI1NDMsMjM1LjE1NTA4NCBDMjQ4LjAxOTEzOCwyMzIuODA4NTEgMjUxLjkwNDg3NiwyMzIuODA4NDIyIDI1NC4zMDE1ODEsMjM1LjE1NDg4OCBDMjU0LjMwMTYxNCwyMzUuMTU0OTIxIDI1NC4zMDE2NDcsMjM1LjE1NDk1NCAyNTQuMzAxNjgsMjM1LjE1NDk4NyBMMzEwLjUwOTQ4NCwyOTAuMTg3MzEgQzMxMS4xMDg2NDYsMjkwLjc3MzkzOSAzMTIuMDgwMDgxLDI5MC43NzM5MzkgMzEyLjY3OTI0MywyOTAuMTg3MzEgTDM2OC44ODYxMzgsMjM1LjE1NjA3MiBDMzcxLjI4Mjc4OCwyMzIuODA5NTUxIDM3NS4xNjg1MjUsMjMyLjgwOTU1MSAzNzcuNTY1MTc1LDIzNS4xNTYwNzIgWiIgaWQ9IldhbGxldENvbm5lY3QiIGZpbGw9IiMzQjk5RkMiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",rz=ea(14107),rG=ea.n(rz);!function(ei){ei[ei.selectWallet=0]="selectWallet",ei[ei.selectChain=1]="selectChain",ei[ei.signWallet=2]="signWallet"}(ec||(ec={}));let rV=ei=>{switch(ei){case ec.selectChain:return(0,t_.jsx)(rc.x,{langKey:"nft:wallet:SelectChain"});case ec.selectWallet:case ec.signWallet:return(0,t_.jsx)(rc.x,{langKey:"nft:wallet:ConnectWallet"})}},rq=ei=>{let{className:eo,label:ea,onClick:eu}=ei;return(0,t_.jsxs)("button",{className:ry()("flex items-center ba tl border-radius w-100 pv2 ph2 caption-2",eo),onClick:eu,children:[(0,t_.jsx)("div",{className:"flex-auto",children:ea}),(0,t_.jsx)(rj,{className:"flex-none"})]})},rH=ei=>{let{isOpen:eo,onCancel:ea,onSubmit:eu}=ei,{t:ed}=(0,tS.$G)(),[ef,eh]=(0,eg.useState)(ec.selectChain),{isSmall:em}=(0,eI.kC)(),[eb,ew]=(0,eg.useState)(),[e_,eS]=(0,eg.useState)(),{chain:eE}=(0,rL.Fz)(),eA=(0,eI.Vp)(),eT=(0,eg.useCallback)(ei=>{let eo=[];return ei===rf.fX.Ethereum||ei===rf.fX.Polygon?(eo.push({label:(0,t_.jsxs)("div",{className:"flex items-center",children:[(0,t_.jsx)("img",{src:rB,alt:"metamask logo",className:rG().icon}),(0,t_.jsx)(rc.x,{langKey:"nft:wallet:WalletType:metamask",className:"ml1"})]}),value:rf.nS.metamask}),eo.push({label:(0,t_.jsxs)("div",{className:"flex items-center",children:[(0,t_.jsx)("img",{src:rU,alt:"walletconnect logo",className:ry()(rG().icon,rG().walletconnectIcon)}),"WalletConnect"]}),value:rf.nS.walletConnect})):ei===rf.fX.Solana&&eo.push({label:(0,t_.jsxs)("div",{className:"flex items-center",children:[(0,t_.jsx)("img",{src:rF.Z,alt:"phantom logo",className:rG().icon}),(0,t_.jsx)(rc.x,{langKey:"nft:wallet:phantom",className:"ml1"})]}),value:rf.nS.phantom}),eo},[]),ek=(0,eg.useCallback)(async ei=>{eS(ei),eh(ec.signWallet),eu&&eu({wallet:ei,chain:eb})},[eu,eb]),eC=(0,eg.useCallback)(()=>{null==ea||ea(e_)},[ea,e_]),eO=(0,eg.useCallback)(ei=>{ew(ei),eh(ec.selectWallet)},[]);return(0,t_.jsxs)(rE.L,{isOpen:eo||!1,title:rV(ef),onDismiss:eC,className:ry()("body-2",{[rG().mobile]:em}),underlayClassName:rG().underlayClassName,children:[ef===ec.selectChain&&(0,t_.jsxs)(t_.Fragment,{children:[eE[rf.fX.Ethereum]&&(0,t_.jsx)(rq,{label:(0,t_.jsxs)("div",{className:"flex items-center",children:[(0,t_.jsx)(rR.m,{asset:"eth",circle:!0,color:!0,className:"mr1"}),(0,t_.jsx)("span",{children:eA("ETH")})]}),onClick:()=>eO(rf.fX.Ethereum)},rf.fX.Ethereum),eE[rf.fX.Solana]&&(0,t_.jsx)(rq,{label:(0,t_.jsxs)("div",{className:"flex items-center",children:[(0,t_.jsx)(rR.m,{asset:"sol",circle:!0,color:!0,className:"mr1"}),(0,t_.jsx)("span",{children:eA("SOL")})]}),onClick:()=>eO(rf.fX.Solana),className:"mt3"},rf.fX.Solana),eE[rf.fX.Polygon]&&(0,t_.jsx)(rq,{label:(0,t_.jsxs)("div",{className:"flex items-center",children:[(0,t_.jsx)(rR.m,{asset:"matic",circle:!0,color:!0,className:"mr1"}),(0,t_.jsx)("span",{children:eA("MATIC")})]}),onClick:()=>eO(rf.fX.Polygon),className:"mt3"},rf.fX.Polygon)]}),ef===ec.selectWallet&&eb&&(0,t_.jsxs)(t_.Fragment,{children:[(0,t_.jsx)("div",{children:(0,t_.jsxs)(tS.cC,{i18nKey:"nft:wallet:ConnectWalletTOS",children:[(0,t_.jsx)(tA.d,{href:ed("locale:ToSURL")}),(0,t_.jsx)(tA.d,{href:ed("locale:PrivacyPolicyURL")})]})}),eT(eb).map(ei=>(0,t_.jsx)(rq,{className:"mt3",label:ei.label,onClick:()=>ek(ei.value)},ei.value)),(0,t_.jsx)(tA.d,{href:ed("nft:wallet:Connect:LearnMoreLink"),className:"mt3 db",children:(0,t_.jsx)(rc.x,{langKey:"nft:wallet:LearnMoreEth"})})]}),ef===ec.signWallet&&(0,t_.jsxs)("div",{className:"flex flex-column items-center",children:[(0,t_.jsx)("div",{style:{width:40,height:40},className:"relative mb2 mh-auto",children:(0,t_.jsx)(rw.T,{size:"small",skinny:!0})}),e_===rf.nS.walletConnect&&(0,t_.jsx)(rc.x,{langKey:"nft:wallet:checkWalletConnect"})]})]})};var rW=ea(74106),rK=ea(53560);function rY(ei){let{triggerAlert:eo}=(0,tE.B)(),{krakenDapp:ea}=(0,rW.N)(),eu=(0,ef.W)(),{data:ec=[],mutate:ed}=(0,tO.C)(),[eh,em]=(0,eg.useState)(!1),[eb,ew]=(0,eg.useState)(!1),[e_,eS]=(0,eg.useState)(!1),[eE,eA]=(0,eg.useState)(!1),[eT,ek]=(0,eg.useState)(!1),[eC,eO]=(0,eg.useState)(),[eP,eD]=(0,eg.useState)(),{trackUserAction:eN}=(0,eI.Jh)({pageName:"web3"});(0,eI.$o)();let eM=(0,eg.useCallback)(async(eu,ec,ed)=>{try{var ef;let eh=await(null==ea?void 0:ea.addWallet(eu,ec,ed));if(!eh)throw Error("Wallet Failed to add");let eg={...eh,label:eh.label||"Wallet ".concat(((null==eh?void 0:null===(ef=eh.address)||void 0===ef?void 0:ef.address)||"").substring(0,6)),date_added:new Date().getTime()};eN("Nft Web3 Add Wallet"),eo((0,t_.jsx)(rc.x,{langKey:"nft:wallet:WalletAddSuccess"}),"success"),ei&&ei(),eD(eg),ew(!0)}catch(ei){(0,ru.Tb)(ei),eo((0,t_.jsx)(rc.x,{langKey:"nft:errors:wallet:WalletAddError"}),"error")}finally{em(!1)}},[ea,ei,eN,eo]),ej=(0,eg.useCallback)(async ei=>{if(ei.wallet===rf.nS.metamask){if(ei.chain===rf.fX.Ethereum)try{await eM(rK.Rj.BrowserEvm,rK.V9.Ethereum,rh.Gk)}catch(ei){(0,ru.Tb)(ei),eo((0,t_.jsx)(rc.x,{langKey:"nft:errors:wallet:WalletNotFound:ETH"}),"error"),em(!1)}else if(ei.chain===rf.fX.Polygon)try{await eM(rK.Rj.BrowserEvm,rK.V9.Polygon,rh.Gk)}catch(ei){(0,ru.Tb)(ei),eo((0,t_.jsx)(rc.x,{langKey:"nft:errors:wallet:WalletNotFound:MATIC"}),"error"),em(!1)}}else if(ei.wallet===rf.nS.phantom){if(ei.chain===rf.fX.Solana)try{await eM(rK.Rj.Solana,rK.V9.Solana,ra().encode)}catch(ei){(0,ru.Tb)(ei),eo((0,t_.jsx)(rc.x,{langKey:"nft:errors:wallet:WalletNotFound:SOL"}),"error"),em(!1)}}else if(ei.wallet===rf.nS.walletConnect){if(ei.chain===rf.fX.Ethereum)try{await eM(rK.Rj.WalletConnect,rK.V9.Ethereum,rh.Gk)}catch(ei){(0,ru.Tb)(ei),eo((0,t_.jsx)(rc.x,{langKey:"nft:errors:wallet:WalletNotFound:ETH"}),"error"),em(!1)}else if(ei.chain===rf.fX.Polygon)try{await eM(rK.Rj.WalletConnect,rK.V9.Polygon,rh.Gk)}catch(ei){(0,ru.Tb)(ei),eo((0,t_.jsx)(rc.x,{langKey:"nft:errors:wallet:WalletNotFound:MATIC"}),"error"),em(!1)}}},[eo,eM]),eR=(0,eg.useCallback)(async ei=>{if(eP&&ei)try{eA(!0),await eu.nft.updateWeb3Wallet({wallet_id:eP.id,label:ei}),await ed(),eo((0,t_.jsx)(rc.x,{langKey:"nft:wallet:WalletLabelEditSuccess"}),"success")}catch(ei){"Response data result is not defined"===ei.message?(eo((0,t_.jsx)(rc.x,{langKey:"nft:wallet:WalletLabelEditSuccess"}),"success"),setTimeout(()=>{ed()},1e3)):((0,ru.Tb)(ei),eo((0,t_.jsx)(rc.x,{langKey:"nft:errors:wallet:WalletLabelEditError"}),"error"))}finally{ew(!1),eS(!1),eA(!1)}},[eP,eu.nft,ed,eo]),eL=(0,eg.useCallback)(async()=>{if(eC)try{ek(!0),await eu.nft.deleteWeb3Wallet(eC.id)}catch(ea){"Response data result is not defined"===ea.message?(eo((0,t_.jsx)(rc.x,{langKey:"nft:wallet:WalletRemoveSuccess"}),"success"),ei&&ei(),setTimeout(()=>{ed()},1e3)):((0,ru.Tb)(ea),eo((0,t_.jsx)(rc.x,{langKey:"nft:errors:wallet:WalletRemoveError"}),"error"))}finally{eO(void 0),ek(!1)}},[eC,eu.nft,eo,ei,ed]),eF=(0,t_.jsxs)(t_.Fragment,{children:[eh&&(0,t_.jsx)(rH,{isOpen:!0,onSubmit:ej,onCancel:()=>em(!1)}),eb&&eP&&(0,t_.jsx)(rD,{isOpen:!0,title:(0,t_.jsx)(rc.x,{langKey:"nft:wallet:NameWallet"}),onDismiss:()=>ew(!1),onSubmit:eR,wallet:eP,isPending:eE}),e_&&eP&&(0,t_.jsx)(rD,{isOpen:!0,title:(0,t_.jsx)(rc.x,{langKey:"nft:wallet:EditWallet"}),onDismiss:()=>eS(!1),onSubmit:eR,wallet:eP,isPending:eE}),eC&&(0,t_.jsx)(rk,{isOpen:!0,isPending:eT,onDismiss:()=>eO(void 0),onSubmit:eL,wallet:eC})]}),eB=(0,eg.useCallback)(()=>{em(!0)},[]),eU=(0,eg.useCallback)(ei=>{eO(ei)},[]),eG=(0,eg.useCallback)(ei=>{eD(ei),eS(!0)},[]);return{NFTAccountDialog:eF,addNftAccount:eB,removeNftAccount:eU,editLabel:eG}}var rZ=ea(27186);let r$=["Ethereum","Polygon Native","Solana"],rJ=[{name:"Ethereum",asset:"NFT"},{name:"Polygon Native",asset:"NFT"},{name:"Solana",asset:"NFT"}];function rQ(ei){if(!ei)return[];let eo=[];for(let ea=0;eaei.name===r$[ea]);-1!==eu&&eo.push(ei[eu])}if(ei.length>r$.length)for(let ea=0;eaeo.name===ei[ea].name)||eo.push(ei[ea]);return eo}function rX(){let ei=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{data:eo}=(0,rZ.x)(ei),{assetDefinitions:ea}=(0,eV.$)(),eu=null!=eo?eo:rJ,ec=(0,eg.useMemo)(()=>ea?Object.values(ea).filter(ei=>null==eu?void 0:eu.some(eo=>eo.name===("Polygon"===ei.name?"Polygon Native":ei.name))).reduce((ei,eo)=>((null==eo?void 0:eo.name)&&(ei[null==eo?void 0:eo.name]=eo),ei),{}):{},[ea,eu]),ed=(0,eg.useMemo)(()=>{var ei;return null===(ei=rQ(eo))||void 0===ei?void 0:ei.map(ei=>({method:ei,asset:Object.values(ec||[]).find(eo=>("Polygon"===eo.name?"Polygon Native":eo.name)==ei.name)}))},[eo,ec]);return{nftAssetDefinitions:ec,methodMap:ed}}ea(18546);let ni=ei=>!Object.values(rf.gQ).includes(ei);ea(32285);var no=ea(43941);let nu=function(ei,eo){let ea=!(arguments.length>2)||void 0===arguments[2]||arguments[2],eu=(0,ef.W)(),ec=ea?"/api/internal/markets/assets/user/".concat(null==ei?void 0:ei.asset_class," + ").concat(null==ei?void 0:ei.filterStaking," + ").concat(null==ei?void 0:ei.filterFiat," "):null,{data:eh,...em}=(0,ed.ZP)(ec,async()=>{let eo=await eu.markets.getUserAssetInfo({asset_class:null==ei?void 0:ei.asset_class},{query:{preferred_asset_name:"new"}});return eo.data.result},{revalidateOnFocus:!1,revalidateOnReconnect:!1,...eo,onError:(ei,ea,eu)=>{var ec;(0,ru.Tb)(ei,{tags:{store:"asset definitions"}}),null==eo||null===(ec=eo.onError)||void 0===ec||ec.call(eo,ei,ea,eu)}}),eb=(0,eg.useMemo)(()=>{if(!eh)return;let eo=(0,no.y5)(eh),ea=(null==ei?void 0:ei.filterStaking)?(0,no.Ni)(eo):eo;return(null==ei?void 0:ei.filterFiat)?(0,no._O)(ea):ea},[eh,null==ei?void 0:ei.filterFiat,null==ei?void 0:ei.filterStaking]),ew=em;return ew.assetDefinitions=eb,ew.isLoading=!eh&&!em.error,ew};function nd(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1?arguments[1]:void 0,ea=arguments.length>2?arguments[2]:void 0,eu=arguments.length>3?arguments[3]:void 0,ec=(0,ef.W)(),eh=void 0!==ea?ea:"withdrawalAddresses/".concat(JSON.stringify(ei));return(0,ed.ZP)(()=>eh,async()=>{let eo=await ec.withdrawals.listWithdrawalAddresses(ei,eu);return eo.data.result},{...ew.H,...eo})}},8399:function(ei,eo,ea){"use strict";ea.d(eo,{Cn:function(){return ed}});let eu="Global Settings Lock is enabled",ec=Error(eu),ed=ei=>{if(ei)throw ec}},50043:function(ei,eo,ea){"use strict";ea.d(eo,{RB:function(){return eu.RB},T7:function(){return eu.T7},ie:function(){return eu.ie},mM:function(){return eu.mM},wU:function(){return eu.wU}});var eu=ea(25542)},25542:function(ei,eo,ea){"use strict";ea.d(eo,{mM:function(){return eI},RB:function(){return eO},T7:function(){return eC},ie:function(){return eD},wU:function(){return eM}});var eu=ea(8100),ec=ea(67294),ed=ea(7334),ef=ea(91572),eh=ea(89866),eg=ea(62142),em=ea(63470),eb=ea(11888),ew=ea(69340);let e_=(ei,eo)=>(0,em.Z)(ei,eo)?void 0:void 0===ei||void 0===eo?ei:Object.keys(ei).reduce((ea,eu)=>(0,em.Z)(ei[eu],eo[eu])?ea:{...ea,[eu]:ei[eu]},{}),eS=(ei,eo)=>{if(ei!==eo)return ei},eE=(ei,eo)=>{let ea=(0,eg.Z)({autologout:eS(eo.autologout,ei.autologout),notification_flags:e_(eo.notification_flags,{...ei.notification_flags}),access_flags:e_(eo.access_flags,{...ei.access_flags}),pgp_key:eS(eo.pgp_key,ei.pgp_key),timezone:eS(eo.timezone,ei.timezone),step_up:eo.step_up},eb.Z);return Object.keys(ea).length>0?ea:null},eA=(ei,eo)=>{var ea,eu,ec,ed,ef,eh,eg,em,eb,e_,eS,eE,eA;let{notification_flags:eT,access_flags:ek}=ei,{notification_flags:eC,access_flags:eO}=eo,eI={autologout:null!==(ea=eo.autologout)&&void 0!==ea?ea:ei.autologout,timezone:null!==(eu=eo.timezone)&&void 0!==eu?eu:ei.timezone,pgp_key:null!==(ec=eo.pgp_key)&&void 0!==ec?ec:ei.pgp_key,notification_flags:{email_admin:null!==(ed=null==eC?void 0:eC.email_admin)&&void 0!==ed?ed:eT.email_admin,email_newsletter:null!==(ef=null==eC?void 0:eC.email_newsletter)&&void 0!==ef?ef:eT.email_newsletter,email_submit_reminder:null!==(eh=null==eC?void 0:eC.email_submit_reminder)&&void 0!==eh?eh:eT.email_submit_reminder},access_flags:{tfa_funds_add:null!==(eg=null==eO?void 0:eO.tfa_funds_add)&&void 0!==eg?eg:null==ek?void 0:ek.tfa_funds_add,tfa_funds_withdraw:null!==(em=null==eO?void 0:eO.tfa_funds_withdraw)&&void 0!==em?em:null==ek?void 0:ek.tfa_funds_withdraw,tfa_trades_new:null!==(eb=null==eO?void 0:eO.tfa_trades_new)&&void 0!==eb?eb:null==ek?void 0:ek.tfa_trades_new,tfa_trades_close:null!==(e_=null==eO?void 0:eO.tfa_trades_close)&&void 0!==e_?e_:null==ek?void 0:ek.tfa_trades_close,tfa_trades_cancel:null!==(eS=null==eO?void 0:eO.tfa_trades_cancel)&&void 0!==eS?eS:null==ek?void 0:ek.tfa_trades_cancel,login_email_disabled:null!==(eE=null==eO?void 0:eO.login_email_disabled)&&void 0!==eE?eE:null==ek?void 0:ek.login_email_disabled},lang_code:null!==(eA=null==eo?void 0:eo.lang_code)&&void 0!==eA?eA:null==ei?void 0:ei.lang_code};return{...(0,ew.Z)(ei),...eI}};var eT=ea(8399);let ek={revalidateOnFocus:!1},eC="/api/internal/account/settings",eO="iapi/getAccountSettings",eI="ACCOUNTS_".concat(eC),eP=480,eD=function(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ek,eo=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return eN(ei,eo)},eN=function(ei){let eo=!(arguments.length>1)||void 0===arguments[1]||arguments[1],ea=(0,eh.W)(),ed=(0,eu.ZP)(eo?eI:null,async()=>{let ei=await ea.account.readSettings({headers:{"x-foo":"bar"}}),eo=ei.data.result;return{...ei.data.result,autologout:0===eo.autologout?eP:eo.autologout,pgp_key:eo.pgp_key||""}},ei),eg=(0,ec.useCallback)(async ei=>{if(!ed.data)throw Error("Account settings not loaded before update.");(0,eT.Cn)(ed.data.settings_lock);let eo=eE(ed.data,ei);if(null===eo)return;let eu=await ea.account.updateSettings(eo,{csrf:{contextId:ef.G8.Settingsaccount}});return ed.mutate(eA(ed.data,ei),{revalidate:!0}),eu},[ea.account,ed]);return{...ed,updateAccountSettings:eg}},eM=ei=>{let{data:eo,...ea}=eD({...ei,suspense:!0});return{accountSettings:eo,...(0,ed.Z)(ea,["isLoading","error"])}}},18546:function(ei,eo,ea){"use strict";ea.d(eo,{V5:function(){return ef}});var eu=ea(8100),ec=ea(89866);ea(75438);let ed=ei=>"/api/internal/account/settings/tfa/account/".concat(ei),ef=function(ei,eo){let ea=!(arguments.length>2)||void 0===arguments[2]||arguments[2],ef=(0,ec.W)(),eh=ea?ed(ei):null,{data:eg,...em}=(0,eu.ZP)(eh,async()=>{let eo=await ef.account.getAccountTfa(ei);return eo.data.result},eo);return{...em,tfaSettings:eg}}},90442:function(ei,eo,ea){"use strict";ea.d(eo,{$:function(){return eg}});var eu=ea(8100),ec=ea(81927),ed=ea(67294),ef=ea(89866),eh=ea(43941);let eg=function(ei,eo){let ea=!(arguments.length>2)||void 0===arguments[2]||arguments[2],eg=(0,ef.W)(),em=ea?"/api/internal/markets/assets/".concat(null==ei?void 0:ei.assetClass," + ").concat(null==ei?void 0:ei.filterStaking," + ").concat(null==ei?void 0:ei.filterFiat," "):null,{data:eb,...ew}=(0,eu.ZP)(em,async()=>{let ei=await eg.markets.getAssetInfo({},{query:{preferred_asset_name:"new"}});return ei.data.result},{revalidateOnFocus:!1,revalidateOnReconnect:!1,...eo,onError:(ei,ea,eu)=>{var ed;(0,ec.Tb)(ei,{tags:{store:"asset definitions"}}),null==eo||null===(ed=eo.onError)||void 0===ed||ed.call(eo,ei,ea,eu)}}),e_=(0,ed.useMemo)(()=>{if(!eb)return;let eo=(0,eh.y5)(eb),ea=(null==ei?void 0:ei.filterStaking)?(0,eh.Ni)(eo):eo;return(null==ei?void 0:ei.filterFiat)?(0,eh._O)(ea):ea},[eb,null==ei?void 0:ei.filterFiat,null==ei?void 0:ei.filterStaking]),eS=ew;return eS.assetDefinitions=e_,eS.isLoading=!eb&&!ew.error,eS}},39611:function(ei,eo,ea){"use strict";ea.d(eo,{L:function(){return eh}});var eu=ea(8100),ec=ea(89866),ed=ea(94907),ef=ea(8402);function eh(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1?arguments[1]:void 0,ea=arguments.length>2?arguments[2]:void 0,eh=arguments.length>3?arguments[3]:void 0,eg=(0,ec.W)(),em=(0,ed.Jp)(),eb="getAllAssets";return(0,eu.ZP)(()=>(null==eo?void 0:eo.disabled)?null:eb,async()=>{let eo=await eg.markets.getAllAssets({quote_symbol:em,tradable:!0,...ei},eh);return eo.data.result},{...ef.H,...ea})}},85410:function(ei,eo,ea){"use strict";ea.d(eo,{X:function(){return eh}});var eu=ea(67294),ec=ea(94907),ed=ea(39611),ef=ea(90442);function eh(){for(var ei=arguments.length,eo=Array(ei),ea=0;ea{var ei;return null==eh?void 0:null===(ei=eh.data)||void 0===ei?void 0:ei.reduce((ei,eo)=>(ei[eo.symbol]=eo,ei),{})},[eh]),e_=!eh&&!eg;return{...em,isLoading:e_,error:eg,assets:eh,assetsMap:eh?ew:void 0}}},75907:function(ei,eo,ea){"use strict";ea.d(eo,{C:function(){return em},m:function(){return eg}});var eu=ea(72512),ec=ea(75438),ed=ea(25542),ef=ea(80220);function eh(ei){return eu.J3.find(eo=>eo.value===ei)?ei:ec.k$}let eg=function(ei){var eo;let ea=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{preferences:eu,error:eg}=(0,ef.Gn)(ei,ea),{data:em,error:eb}=(0,ed.ie)(ei,ea);return ea?eu||eg?(null==eu?void 0:null===(eo=eu["global.language"])||void 0===eo?void 0:eo.value)?eh(eu["global.language"].value):em||eb?(null==em?void 0:em.lang_code)?eh(em.lang_code):ec.k$:null:null:ec.k$},em=ei=>eg({...ei,suspense:!0})},27186:function(ei,eo,ea){"use strict";ea.d(eo,{x:function(){return em}});var eu=ea(67294),ec=ea(8100),ed=ea(91572),ef=ea(89866),eh=ea(50043);let eg=ei=>!ei.domain_name||!ei.domain_master||ei.domain_master.trim()===ei.account_id.trim();function em(){let ei=!(arguments.length>0)||void 0===arguments[0]||arguments[0],eo=(0,ef.W)(),{data:ea}=(0,eh.ie)(void 0,ei),{data:em,error:eb,...ew}=(0,ec.ZP)(()=>ea?"getDepositMethods?asset=NFT&asset_class=nft":null,async()=>{if(eg(ea)){let ei=await eo.deposits.getDepositMethods({asset:"NFT",asset_class:ed.ez.Nft}),eu=new Set(["Solana"]);return ei.data.result.filter(ei=>{let eo=(null==ea?void 0:ea.country)===ed.ZL.JP;return!(eo&&eu.has((null==ei?void 0:ei.name)||""))})}return[]}),e_=!em&&!eb,eS=(0,eu.useCallback)(ei=>null==em?void 0:em.find(eo=>eo.name===("Polygon"===ei?"Polygon Native":ei)),[em]);return{...ew,isLoading:e_,error:eb,data:em,findDepositMethod:eS}}},52265:function(ei,eo,ea){"use strict";ea.d(eo,{C:function(){return ef}});var eu=ea(8100),ec=ea(89866),ed=ea(8402);function ef(ei){let eo=(0,ec.W)();return(0,eu.ZP)("web3wallets",async()=>{let ei=await eo.nft.listWeb3Wallets();return ei.data.result.items},{...ed.H,...ei})}},80220:function(ei,eo,ea){"use strict";ea.d(eo,{Gn:function(){return eS}});var eu=ea(8100),ec=function(){return(ec=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;ea1)||void 0===arguments[1]||arguments[1],{mutate:ea}=(0,eu.kY)(),ec=(0,em.W)(),{data:ed,mutate:ef,error:eh,isValidating:e_}=eg(eo?"/api/internal/preferences":null,async()=>{let ei=await ec.preferences.getPreferences({keys:[...ew]});return ei.data.result},{...ei}),eS=async ei=>{let eo={...ed};for(let[ea,ec]of Object.entries(ei))if(eo[ea]){var eu,eh;eo[ea]={is_valid:null!==(eh=null===(eu=eo[ea])||void 0===eu?void 0:eu.is_valid)&&void 0!==eh&&eh,value:ec,last_modified_at:Date.now()}}else eo[ea]={value:ec,is_valid:!0,last_modified_at:Date.now()};ef(eo,!1),await ec.preferences.updatePreferences({...ei,...!!ei["global.display_currency"]&&{"global.display_currency":(0,eb.v)(ei["global.display_currency"])}}),ea("ACCOUNTS_/api/internal/preferences")};return{preferences:{...ed},loading:!eh&&!ed,mutate:ef,error:eh,isValidating:e_,updatePreferences:eS}}let eS=(ei,eo)=>e_(ei,eo)},53560:function(ei,eo,ea){"use strict";ea.d(eo,{Rj:function(){return ed},V9:function(){return ef},MA:function(){return eJ}});var eu,ec,ed,ef,eh=ea(92003),eg=ea.n(eh),em=ea(67294),eb=ea(89866),ew=ea(91572),e_=ea(75808),eS=ea(11963);async function eE(ei,eo){return(await e_.nh.findProgramAddress([ei.toBuffer(),eS.H_.toBuffer(),eo.toBuffer()],eS._u))[0]}function eA(){let[ei,eo]=(0,em.useState)(),[ea,eu]=(0,em.useState)(),[ec,ed]=(0,em.useState)(),[ef,eh]=(0,em.useState)();(0,em.useEffect)(()=>{let ei=async()=>{if((null==navigator||!navigator.brave)&&"solana"in window){let ei=window.solana;if(null==ei?void 0:ei.isPhantom){eo(ei);let{publicKey:ea}=await ei.connect({onlyIfTrusted:!0});ea?(eh(!0),eu([ea.toString()]),ed("")):eh(!1)}}};ei()},[]);let eg=(0,em.useCallback)(async()=>{var eo;if(!ei)throw Error("Phantom not found");if(!ef){let{publicKey:eo}=await ei.connect();if(eo){eh(!0);let ei=eo.toString(),ea="";return eu([ei]),ed(""),[ei,ea]}throw eh(!1),Error("Solana Provider could not be found")}return[null!==(eo=null==ea?void 0:ea[0])&&void 0!==eo?eo:"",null!=ec?ec:""]},[ea,ec,ef,ei]),eb=(0,em.useCallback)(async eo=>{let[ea]=await eg();if(!ei||!ea)throw Error("Phantom not found");let eu=new TextEncoder().encode(eo),{signature:ec}=await ei.signMessage(eu,"utf8");return[ec,ea]},[eg,ei]),ew=(0,em.useCallback)(async eo=>{if(await eg(),!ei||!ea)throw Error("Phantom not connected");let{cluster:eu,toAssociatedAddress:ec,tokenAddress:ed,toWalletAddress:ef,fromWalletAddress:eh,auth:em}=eo,eb=em?{Authorization:em}:void 0,ew=new e_.ew(eu,{httpHeaders:eb}),eA=new e_.YW,[eT,ek]=await Promise.all([ew.getAccountInfo(ec),eE(eh,ed)]);eT&&(null==eT?void 0:eT.lamports)!==0||eA.add(eS.WU.createAssociatedTokenAccountInstruction(eS._u,eS.H_,ed,ec,ef,eh)),eA.add(eS.WU.createTransferCheckedInstruction(eS.H_,ek,ed,ec,eh,[],1,0)),eA.feePayer=eh,eA.recentBlockhash=(await ew.getRecentBlockhash()).blockhash;let eC=await ei.signTransaction(eA);await ew.sendRawTransaction(eC.serialize())},[ea,eg,ei]);return(0,em.useMemo)(()=>({addresses:ea,signMessage:eb,depositNft:ew,chainId:ec}),[ea,ec,ew,eb])}var eT=ea(47964),ek=ea(1581);let eC="bytes/5.6.1",eO=new ek.Yd(eC);function eI(ei){return!!ei.toHexString}function eP(ei){return ei.slice||(ei.slice=function(){let eo=Array.prototype.slice.call(arguments);return eP(new Uint8Array(Array.prototype.slice.apply(ei,eo)))}),ei}function eD(ei){return"number"==typeof ei&&ei==ei&&ei%1==0}function eN(ei){if(null==ei)return!1;if(ei.constructor===Uint8Array)return!0;if("string"==typeof ei||!eD(ei.length)||ei.length<0)return!1;for(let eo=0;eo=256)return!1}return!0}function eM(ei,eo){if(eo||(eo={}),"number"==typeof ei){eO.checkSafeUint53(ei,"invalid arrayify value");let eo=[];for(;ei;)eo.unshift(255&ei),ei=parseInt(String(ei/256));return 0===eo.length&&eo.push(0),eP(new Uint8Array(eo))}if(eo.allowMissingPrefix&&"string"==typeof ei&&"0x"!==ei.substring(0,2)&&(ei="0x"+ei),eI(ei)&&(ei=ei.toHexString()),ej(ei)){let ea=ei.substring(2);ea.length%2&&("left"===eo.hexPad?ea="0"+ea:"right"===eo.hexPad?ea+="0":eO.throwArgumentError("hex data is odd-length","value",ei));let eu=[];for(let ei=0;ei>4]+eR[15&eu]}return eo}return eO.throwArgumentError("invalid hexlify value","value",ei)}let eF="strings/5.6.1",eB=new ek.Yd(eF);function eU(ei,eo,ea,eu,ed){if(ei===ec.BAD_PREFIX||ei===ec.UNEXPECTED_CONTINUE){let ei=0;for(let eu=eo+1;eu>6==2;eu++)ei++;return ei}return ei===ec.OVERRUN?ea.length-eo-1:0}function eG(ei,eo,ea,eu,ed){return ei===ec.OVERLONG?(eu.push(ed),0):(eu.push(65533),eU(ei,eo,ea,eu,ed))}function eV(ei,eo=eu.current){eo!=eu.current&&(eB.checkNormalize(),ei=ei.normalize(eo));let ea=[];for(let eo=0;eo>6|192),ea.push(63&eu|128);else if((64512&eu)==55296){eo++;let ec=ei.charCodeAt(eo);if(eo>=ei.length||(64512&ec)!=56320)throw Error("invalid utf-8 string");let ed=65536+((1023&eu)<<10)+(1023&ec);ea.push(ed>>18|240),ea.push(ed>>12&63|128),ea.push(ed>>6&63|128),ea.push(63&ed|128)}else ea.push(eu>>12|224),ea.push(eu>>6&63|128),ea.push(63&eu|128)}return eM(ea)}function eH(ei){return ei===ef.Polygon?"eip155:137":"eip155:1"}function eW(ei,eo){let ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",eu=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return{topic:eo,chainId:eH(ei),request:{method:"personal_sign",params:[eu,ea]}}}function eK(ei,eo,ea,eu,ec){return{topic:eo,chainId:eH(ei),request:{method:"eth_sendTransaction",params:[{from:ea,to:eu,data:ec}]}}}function eY(ei){return{requiredNamespaces:{eip155:{methods:["eth_sendTransaction","personal_sign"],chains:ei?[eH(ei)]:["eip155:1","eip155:137"],events:["chainChanged","accountsChanged"]}}}}function eZ(ei){return ei.map(ei=>ei.substring(ei.lastIndexOf(":")+1))}function e$(){var ei;let[eo,ea]=(0,em.useState)(),eu=(0,eT.kP)(),{connect:ec}=(0,eT.$4)(eY());(0,em.useEffect)(()=>{(null==eu?void 0:eu.namespaces.eip155.accounts)&&ea(eZ(null==eu?void 0:eu.namespaces.eip155.accounts))},[null==eu?void 0:eu.namespaces.eip155.accounts]);let{request:ed}=(0,eT.QT)(eW(null==eu?void 0:eu.topic,null!==(ei=null==eu?void 0:eu.namespaces.eip155.accounts[0])&&void 0!==ei?ei:"")),ef=(0,em.useCallback)(async(ei,eo)=>{let ea=await ec(eY(eo)),eu=eL(eV(ei)),ef=ea.namespaces.eip155.accounts[0].substring(ea.namespaces.eip155.accounts[0].lastIndexOf(":")+1),eh=await ed(eW(eo,null==ea?void 0:ea.topic,ef,eu));return[eh,ef]},[ec,ed]),eh=(0,em.useCallback)(async(ei,eo)=>{let{from:ea,to:ec,data:ef}=ei;if(!ef)throw Error("No token standard specified on NftAsset");await ed(eK(eo,null==eu?void 0:eu.topic,ea,ec,ef))},[ed,null==eu?void 0:eu.topic]);return(0,em.useMemo)(()=>({addresses:eo,signMessage:ef,depositNft:eh,chainId:""}),[eo,eh,ef])}function eJ(){let ei=eX(),eo=eA(),ea=e$(),eu=(0,eb.W)(),ec=(0,em.useMemo)(()=>({[ed.BrowserEvm]:ei,[ed.WalletConnect]:ea,[ed.Solana]:eo}),[ei,eo,ea]),ef=(0,em.useCallback)(async(ei,eo,ea)=>{var ed;let ef=null!==(ed=null==window?void 0:window.__internalAuth)&&void 0!==ed?ed:"",[eh,eg]=await Promise.all([eu.web3.getWeb3SignatureRequest({action:"ConnectWallet"}),eu.csrf.getCsrfToken(ew.G8.Nft,{headers:{"Csrf-Auth":ef}})]),em="".concat(eh.data.result.prefix).concat(eg.data.result.csrf_token),[eb,e_]=await ec[ei].signMessage(em,eo),eS=await eu.nft.addWeb3Wallet({address:{address:e_,blockchain:eo},signature:ea?ea(eb):eb,message:em},{headers:{"X-Kraken-Asset-Name":"new","x-csrf-token":eg.data.result.csrf_token}});return eS.data.result},[eu.csrf,eu.nft,eu.web3,ec]),eh=(0,em.useCallback)(async(ei,eo)=>{var ea,eu;switch(ei.type){case ed.BrowserEvm:case ed.WalletConnect:return null===(ea=ec[ei.type])||void 0===ea?void 0:ea.depositNft(ei.params,eo);case ed.Solana:return await(null===(eu=ec[ei.type])||void 0===eu?void 0:eu.depositNft(ei.params));default:throw Error("Invalid depositNft configuration")}},[ec]),eg=(0,em.useMemo)(()=>Object.entries(ec).map(ei=>{var eo;let[ea,eu]=ei;return{type:ea,address:null===(eo=eu.addresses)||void 0===eo?void 0:eo[0]}}),[ec]),e_=(0,em.useCallback)(ei=>{var eo;return null===(eo=eg.find(eo=>eo.type===ei))||void 0===eo?void 0:eo.address},[eg]),eS=(0,em.useCallback)(ei=>eg.find(eo=>{if(null==eo?void 0:eo.address){var ea;return(null===(ea=eo.address)||void 0===ea?void 0:ea.toLowerCase())===(null==ei?void 0:ei.toLowerCase())}}),[eg]),eE=(0,em.useCallback)(ei=>ec[ei].chainId,[ec]);return(0,em.useMemo)(()=>({addWallet:ef,depositNft:eh,findWalletAddress:eS,getChainId:eE,addresses:eg,getConnectedAccount:e_}),[ef,eh,eS,eE,eg,e_])}function eQ(ei){return ei===ef.Polygon?"0x89":"0x1"}function eX(){let[ei,eo]=(0,em.useState)(),[ea,eu]=(0,em.useState)(),[ec,ed]=(0,em.useState)();(0,em.useEffect)(()=>{let ei=async()=>{if(null==navigator?void 0:navigator.brave)return;let ei=await eg()();if(ei){let ea=await ei.request({method:"eth_accounts"}),ec=await ei.request({method:"eth_chainId"});ed(ec[0]),eo(ei),eu(ea)}};ei()},[]);let ef=(0,em.useCallback)(async(eo,eu)=>{if(!ei||!ea)throw Error("Metamask account not found");await ei.request({method:"wallet_switchEthereumChain",params:[{chainId:eQ(eu)}]});let ec=ea;0===ea.length&&(ec=await ei.request({method:"eth_requestAccounts"}));let ed=await ei.request({method:"personal_sign",params:[eo,ec[0]]});return[ed,ec[0]]},[ea,ei]),eh=(0,em.useCallback)(async(eo,eu)=>{let{from:ec,to:ed,data:ef}=eo;if(!ei||!ea)throw Error("Metamask not connected");if(!ef)throw Error("No token standard specified on NftAsset");await ei.request({method:"wallet_switchEthereumChain",params:[{chainId:eQ(eu)}]}),await ei.request({method:"eth_sendTransaction",params:[{from:ec,to:ed,data:ef}]})},[ea,ei]);return(0,em.useMemo)(()=>({addresses:ea,signMessage:ef,depositNft:eh,chainId:ec}),[ea,ec,eh,ef])}!function(ei){ei.current="",ei.NFC="NFC",ei.NFD="NFD",ei.NFKC="NFKC",ei.NFKD="NFKD"}(eu||(eu={})),function(ei){ei.UNEXPECTED_CONTINUE="unexpected continuation byte",ei.BAD_PREFIX="bad codepoint prefix",ei.OVERRUN="string overrun",ei.MISSING_CONTINUE="missing continuation byte",ei.OUT_OF_RANGE="out of UTF-8 range",ei.UTF16_SURROGATE="UTF-16 surrogate",ei.OVERLONG="overlong representation"}(ec||(ec={})),Object.freeze({error:function(ei,eo,ea,eu,ec){return eB.throwArgumentError(`invalid codepoint at offset ${eo}; ${ei}`,"bytes",ea)},ignore:eU,replace:eG}),function(ei){ei.BrowserEvm="browserEvm",ei.WalletConnect="walletConnect",ei.Solana="solana"}(ed||(ed={})),function(ei){ei.Ethereum="Ethereum",ei.Solana="Solana",ei.Polygon="Polygon"}(ef||(ef={}))},75438:function(ei,eo,ea){"use strict";ea.d(eo,{mr:function(){return ew},k$:function(){return eS},Yi:function(){return eh},fX:function(){return eu},h8:function(){return ed},T2:function(){return e_.sV},gQ:function(){return em},nS:function(){return eb}});var eu,ec,ed,ef,eh,eg,em,eb,ew,e_=ea(91572);let eS="en-us";!function(ei){ei.Ethereum="Ethereum",ei.Polygon="Polygon",ei.Solana="Solana"}(eu||(eu={})),function(ei){ei.DEGRADED="DEGRADED",ei.TRADE="TRADE",ei.WALLET="WALLET",ei.WEB3="WEB3"}(ec||(ec={})),function(ei){ei.asc="ascending",ei.desc="descending",ei.none="none"}(ed||(ed={})),function(ei){ei.sha1="sha1",ei.sha256="sha256",ei.sha512="sha512"}(ef||(ef={})),function(ei){ei.Other="other",ei.Desktop="desktop",ei.MobileWeb="mobile-web",ei.MobileRetailApp="mobile-retail-app",ei.MobileProApp="mobile-pro-app",ei.TabletWeb="tablet-web",ei.TabletRetailApp="tablet-retail-app",ei.TabletProApp="tablet-pro-app"}(eh||(eh={})),function(ei){ei.account="account",ei.api="api"}(eg||(eg={})),function(ei){ei.None="none",ei.Main="main",ei.Funds="funds",ei.Trade="trade",ei.Secret="secret"}(em||(em={})),function(ei){ei.metamask="metamask",ei.walletConnect="walletConnect",ei.phantom="phantom.app"}(eb||(eb={})),function(ei){ei.Offer="Offer",ei.Buy="Buy",ei.Sell="Sell"}(ew||(ew={}))},95423:function(ei,eo,ea){"use strict";let eu;ea.d(eo,{I:function(){return ef},K:function(){return eh}});var ec=ea(34716);async function ed(ei){let eo=new ec.oM,ea=new ec.Qf(ei.sift);return ea.setTrackingDomain(ec.FM),eo.register(ea),ei.segment&&eo.register((0,ec.xD)([(0,ec.cM)(ec.Jq,!1)],new ec.aQ({writeKey:null==ei?void 0:ei.segment}))),await(0,ec.gX)(),await eo.init(),eo}async function ef(ei){return ei&&!eu&&(eu=ed(ei)),eu}let eh=(ei,eo)=>{let ea=/^fe-qa[^@]*@kraken\.com$/i,eu=/^(qaDevUat|qauser|testuser|autotest|qaprodtest|qaProdUat).*/i;return ea.test(ei)||eu.test(eo)}},43941:function(ei,eo,ea){"use strict";ea.d(eo,{_O:function(){return eS},Ni:function(){return e_},y5:function(){return eE}});var eu=ea(22772),ec=function(ei,eo,ea,eu){for(var ec=-1,ed=null==ei?0:ei.length;++ec(ew(eo)&&(ei[eo.asset]=eo),ei),{})}function eS(ei){return Object.values(ei).reduce((ei,eo)=>(eo.virtual&&(ei[eo.asset]=eo),ei),{})}function eE(ei){return em(ei.filter(ei=>{let{asset:eo}=ei;return!eb.includes(eo)}),ei=>ei.asset)}},90925:function(ei,eo,ea){"use strict";function eu(ei){if(!ei)return"";let eo=ei.toUpperCase();switch(eo){case"XBT":return"BTC";case"XDG":return"DOGE";default:return ei}}ea.d(eo,{v:function(){return eu}})},73834:function(ei,eo,ea){"use strict";ea.d(eo,{y:function(){return ef}});var eu=ea(53630),ec=ea(54367);let ed=()=>{if("undefined"==typeof navigator)return ec.z.Device.PC;let ei=navigator.userAgent,eo=(0,eu.Z)(ei);return eo.phone?ec.z.Device.Smartphone:eo.tablet?ec.z.Device.Tablet:ec.z.Device.PC},ef=()=>({channel:ec.z.Channel.Web,device:ed(),product:ec.z.Product.Nft,feature:ec.z.Feature.Undefined})},72512:function(ei,eo,ea){"use strict";ea.d(eo,{rU:function(){return eP.r},KY:function(){return e0},cS:function(){return eX},iv:function(){return eM},Zf:function(){return eN},IH:function(){return eg.I},PV:function(){return e9},ej:function(){return ej},Hu:function(){return e6},I4:function(){return e7},bp:function(){return td},tw:function(){return e8},yU:function(){return e$.y},xm:function(){return ta},PN:function(){return eU.P},fb:function(){return eF},$l:function(){return eR},V0:function(){return tu},iN:function(){return tp},b1:function(){return em},nz:function(){return eI},QN:function(){return eO},Iz:function(){return tf},VP:function(){return eY},MH:function(){return eZ},Ih:function(){return eP.I},J3:function(){return eW},hm:function(){return eB},Pz:function(){return eJ},xw:function(){return e4},Fz:function(){return e5},Rh:function(){return e3},bL:function(){return eQ},d3:function(){return eK}});var eu=ea(64124),ec=ea(12274),ed=ea(2264),ef=ea(71565),eh=ea(16164),eg=ea(95423);function em(){return"ontouchstart"in window||navigator.maxTouchPoints>0}var eb=ea(28148),ew=ea(76553),e_=ea(83311),eS=ea(35128),eE=ea(44338),eA=ea(33079),eT=ea(19408),ek=function(ei){return(0,eT.Z)(function(eo){return eo=(0,e_.Z)(eo,(0,eA.Z)(eS.Z)),(0,eE.Z)(function(ea){var eu=this;return ei(eo,function(ei){return(0,ew.Z)(ei,eu,ea)})})})}(eb.Z);let eC=()=>!1,eO=ei=>eo=>{let ea=eC()?"":window.location.hash,eu="".concat(eo.pathname).concat(ea);return ei.test(eu)},eI=ei=>{let eo=ei.filter(Boolean).map(eO);return ek(eo)};var eP=ea(96143);let eD=0,eN=()=>"k".concat(eD++);function eM(ei,eo){var ea;let eu=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"USD";return ei&&null!==(ea=eo[ei])&&void 0!==ea?ea:eo[eu]}let ej=ei=>{if("undefined"!=typeof document){let eo;let ea=document.cookie.split("; ")||[];for(let eu=0;eu!ei.domain_name||!ei.domain_master||ei.domain_master.trim()===ei.account_id.trim(),eB=(ei,eo)=>{switch(ei){case eh.K0.Zero:case eh.K0.One:return eL.h2.None;case eh.K0.Two:return eo?eL.h2.Express:eL.h2.Starter;case eh.K0.Three:return eL.h2.Intermediate;case eh.K0.Four:return eL.h2.Pro}};var eU=ea(87973),eG=ea(22839),eV=ea(81927),eH=ea(48293);let eW=Array.from(eH.dU).map(ei=>{let[eo,ea]=ei;return{value:eo,label:ea}}),eK=(ei,eo,ea)=>eu=>{if(!eo||eu===ea)return;let ec=null==eu?void 0:eu.split(":")[0];ec&&!eG.ZP.hasResourceBundle(ei,ec)&&console.error("The language key ".concat(eu,"'s namespace ").concat(ec," has not been whitelisted.\n \n Please add ").concat(ec," to the 'namespaces' array in next.config.js to make it show up in the UI.\n \n Then restart your nextjs server.\n "))},eY=ei=>(eo,ea,eu)=>{let ec=eu.ns.join(":"),ed=eG.ZP.getResource(ei,ec,eo),ef=eo.split("."),eh=ef[ef.length-1];return ed||(eV.uT("Cannot parse object lang key: ".concat(eo,", namespace: ").concat(ec)),eh)},eZ=function(ei){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ea=new URLSearchParams(ei.split("#").pop()),eu=eo.reduce((ei,eo)=>(null!==ea.get(eo)&&ei.set(eo,ea.get(eo)),ei),new URLSearchParams);return eu.toString().length>0?"#".concat(eu.toString()):""};var e$=ea(73834);let eJ=()=>{let{sufficientTea6:ei}=(0,ed.V)();return{status:ei}},eQ=()=>{let{nftStepUpTfa:ei=!1}=(0,ed.V)();return ei},eX=ei=>{let{status_detail:eo}=ei;return(null==eo?void 0:eo.toLowerCase())!=="locked"},e0=.02,e3=()=>{let ei=(0,ef.m)(),eo=null==ei?void 0:ei.variation("blebTree2"),ea={network:{Ethereum:"Goerli",Polygon:"Mumbai",Solana:"testnet"}};return{...ea,...eo}},e5=()=>{let ei=(0,ef.m)(),eo=null==ei?void 0:ei.variation("blebTree3"),ea={chain:{Ethereum:!1,Polygon:!1,Solana:!1}};return{...ea,...eo}},e4=()=>{let ei=(0,ef.m)(),eo=null==ei?void 0:ei.variation("sufficientTea2");return!eo||(0,eu.Z)(eo)?void 0:eo},e6=ei=>"".concat(eh.k2.NftExploreCreators,"?creatorId=").concat(ei),e8=ei=>"".concat(eh.k2.NftExploreListings,"?id=").concat(ei),e9=ei=>"".concat(eh.k2.NftExploreCollections,"?collectionId=").concat(ei),e7=ei=>"".concat(eh.k2.NftExploreListings,"?tags=").concat(ei),ta=ei=>{var eo;let{accountSettings:ea}=ei;return(null!==(eo=null==ea?void 0:ea.tier)&&void 0!==eo?eo:0)tc(ei),tc=ei=>{var eo,ea;if(!ei)return!1;let eu=null==ei?void 0:ei.token;return!!eu&&"standard"in eu&&(null==eu?void 0:eu.standard)==="CryptoPunks"||(null===(eo=ei.collection)||void 0===eo?void 0:null===(ea=eo.name)||void 0===ea?void 0:ea.toLowerCase())==="cryptopunks"||!!eu&&"address"in eu&&(null==eu?void 0:eu.address)==="0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb"},td=ei=>tc(ei)?{backgroundColor:"#638596"}:void 0,tf=(ei,eo)=>{let[ea,eu]=eo;if(eu){if("chain"==ea){for(let eo in ei[ea]=[],eu)if(eu[eo].value){var ed;ei[ea].push(null!==(ed=eu[eo].asset)&&void 0!==ed?ed:eo)}}else ei[ea]=(0,ec.Z)(eu)&&eu.getTime?eu.getTime():eu}return ei};function tp(ei){return ei&&ei.message.includes("Permission denied")}},85397:function(ei,eo,ea){"use strict";ea.d(eo,{H:function(){return ef},y:function(){return eh}});var eu=ea(85893),ec=ea(67294),ed=ea(53560);let ef=(0,ec.createContext)({});function eh(ei){let{children:eo}=ei,ea=(0,ed.MA)();return(0,eu.jsx)(ef.Provider,{value:{walletProvider:ea},children:eo})}},74106:function(ei,eo,ea){"use strict";ea.d(eo,{N:function(){return ed}});var eu=ea(67294),ec=ea(85397);function ed(){let{walletProvider:ei}=(0,eu.useContext)(ec.H);return{krakenDapp:ei}}},96143:function(ei,eo,ea){"use strict";ea.d(eo,{I:function(){return eu},r:function(){return ec}});let eu=(ei,eo)=>ea=>ea.sort((ea,eu)=>{let ec=ei.indexOf(eo(ea)),ed=ei.indexOf(eo(eu));return-1===ec?-1===ed?0:1:-1===ed?-1:ed>ec?-1:1}),ec=["BTC","ETH","LTC","USDT","XRP","BCH","EOS","XTZ","ADA","LINK","XLM","XMR","TRX","ETC","USDC","DASH","ATOM","ZEC","DOGE","BAT","OMG","ICX","ALGO","QTUM","LSK","REP","DAI","NANO","WAVES","SC","PAXG","GNO","MLN"]},87973:function(ei,eo,ea){"use strict";ea.d(eo,{P:function(){return ec}});var eu=ea(16164);let ec=ei=>{let{country:eo}=ei;return void 0!==eo&&eu.bN.includes(eo)}},54558:function(ei,eo,ea){"use strict";ea.d(eo,{FP:function(){return eh},Gk:function(){return ed},Tg:function(){return ef},U3:function(){return eg},hZ:function(){return eb},js:function(){return ew},tf:function(){return em}});var eu=ea(91094),ec=ea(75438);function ed(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ei?ei.replace(/^0x/,""):""}function ef(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",eo=arguments.length>1?arguments[1]:void 0;if(!ei)return"";if(eo===ec.fX.Ethereum||eo===ec.fX.Polygon){let eo="0x",ea=ei.toLowerCase().replace("0x",""),ec=(0,eu.keccak_256)(ea);for(let ei=0;ei7?eo+=ea[ei].toUpperCase():eo+=ea[ei];return eo}return ei}function eh(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",eo=arguments.length>1?arguments[1]:void 0;if(!ei)return"";let ea=ef(ei,eo);return"".concat(ea.slice(0,5),"...").concat(ea.slice(-4))}function eg(){let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",ea=arguments.length>2?arguments[2]:void 0,eu=ef(ei,ea),ec=ef(eo,ea);return eu==ec}let em=function(ei){let eo={Goerli:5,mainnet:1,Mumbai:80001,testnet:42};return eo[ei]},eb=function(ei){let eo={1:"Ethereum Mainnet",42:"Kovan Test Network",5:"Goerli Test Network",80001:"Mumbai Test Network"};return eo[ei]},ew={[ec.fX.Ethereum]:"ETH",[ec.fX.Polygon]:"MATIC",[ec.fX.Solana]:"SOL"}},90298:function(){},93669:function(){},95778:function(){},35686:function(){},903:function(ei){ei.exports={body:"styles_body__ZZYj0"}},65810:function(ei){ei.exports={alertBar:"AlertBar_alertBar__fNsHc",icon:"AlertBar_icon__Du2s1",enter:"AlertBar_enter__xRtse",appear:"AlertBar_appear__G1Hfg",enterActive:"AlertBar_enterActive__8nlM9",appearActive:"AlertBar_appearActive__jNItW",exit:"AlertBar_exit__DjxOl",exitActive:"AlertBar_exitActive__amjpT",success:"AlertBar_success___07Cx","success-manual":"AlertBar_success-manual__cf38U",info:"AlertBar_info__3kh2l","info-manual":"AlertBar_info-manual__JVfGq",warning:"AlertBar_warning__5rLjs","warning-manual":"AlertBar_warning-manual___S_6W",error:"AlertBar_error__kY14b","error-manual":"AlertBar_error-manual__ZKaa_"}},20317:function(ei){ei.exports={button:"Button_button__TFMJO",focusRing:"Button_focusRing__PwUep",spacer:"Button_spacer__e1adq",buttonInner:"Button_buttonInner__jR_OY",fullWidth:"Button_fullWidth__4qilG","full-width":"Button_full-width__MQ_8z","extra-large":"Button_extra-large__LbzBw",large:"Button_large__ezPdd",small:"Button_small__QqbET",micro:"Button_micro__83Yy2",primary:"Button_primary__pilh4",disabled:"Button_disabled__SbmCo",secondary:"Button_secondary__pJmkn",tertiary:"Button_tertiary__Fjf_O",cancel:"Button_cancel__H8KEF",positive:"Button_positive___2M29",negative:"Button_negative___H9at",transparentDark:"Button_transparentDark__iqv2O",transparentLight:"Button_transparentLight__LOeeh"}},39311:function(ei){ei.exports={confirmation:"Confirmation_confirmation__lhapu",loadingIndicator:"Confirmation_loadingIndicator__vvAhg",buttons:"Confirmation_buttons__frldb",cancelButton:"Confirmation_cancelButton__T_F0Z",confirmButton:"Confirmation_confirmButton__y7nzf",loadingSpinner:"Confirmation_loadingSpinner__XPq_7"}},78320:function(ei){ei.exports={circle:"Crypton_circle__u0p9B",notTransparent:"Crypton_notTransparent__fWpHx",loading:"Crypton_loading__G2IVn",btc:"Crypton_btc__WsNOm",error:"Crypton_error__EA0xe",gradient:"Crypton_gradient__52MMF"}},31204:function(ei){ei.exports={dropdown:"Field_dropdown__ouDSP",toggleButton:"Field_toggleButton__uzqEC",inputCtn:"Field_inputCtn__UTn4o",popover:"Field_popover__I2ltp",menu:"Field_menu___bbb8",item:"Field_item__ohyP6",showTopBorder:"Field_showTopBorder__EMYoy",withIconRight:"Field_withIconRight__RNGxu",iconRight:"Field_iconRight__no4ud",container:"Field_container__pu8Jm",FieldItem:"Field_FieldItem__7X_wn",label:"Field_label__7VyWb",positive:"Field_positive__z2XMM",negative:"Field_negative__j56x_",floatingLabel:"Field_floatingLabel__60KIb",dirty:"Field_dirty__1jb3q",compact:"Field_compact__HtpLO",input:"Field_input__k7167",floating:"Field_floating__TyD0B",inModal:"Field_inModal__039qU",staticInputFloatingLabel:"Field_staticInputFloatingLabel__3Q390",staticInputInfoIcon:"Field_staticInputInfoIcon__4CPEV",warningBox:"Field_warningBox__6_VSx",requiredTag:"Field_requiredTag__Txqp5",multiline:"Field_multiline__A5tpC"}},94433:function(ei){ei.exports={button:"IconButton_button__K0dlU",innerDiv:"IconButton_innerDiv__GoN__",right:"IconButton_right__lrBv5"}},37638:function(ei){ei.exports={loadingSpinner:"LoadingSpinner_loadingSpinner__I3e_9",spin:"LoadingSpinner_spin__Khjnh",skinny:"LoadingSpinner_skinny__1myo9",light:"LoadingSpinner_light__G6bfI",dark:"LoadingSpinner_dark__G2pDB"}},63282:function(ei){ei.exports={lockup:"LockupNutritionFact_lockup__BFeGc",lockupNutritionFact:"LockupNutritionFact_lockupNutritionFact__UctU8",lockupIndicator:"LockupNutritionFact_lockupIndicator__LWMAv"}},16794:function(ei){ei.exports={notice:"Notice_notice__ngdLX",info:"Notice_info__JQlwt",info2:"Notice_info2__17HaR",warning:"Notice_warning__tayCa",error:"Notice_error__OGlTJ",success:"Notice_success__7S39L"}},9459:function(ei){ei.exports={modal:"AirdropModal_modal__jWQ1I",modalView:"AirdropModal_modalView__Nzlxo",icon:"AirdropModal_icon__mrn5p",modalButton:"AirdropModal_modalButton__eygOY",closeButton:"AirdropModal_closeButton__ouwQx",container:"AirdropModal_container__M7Ygo",buttons:"AirdropModal_buttons__BPQac",title:"AirdropModal_title__BG6vh",body:"AirdropModal_body__70fKm",video:"AirdropModal_video__uFRFN",circleIcon:"AirdropModal_circleIcon__Rx7Wx",gulfImage:"AirdropModal_gulfImage__CNEWK",details:"AirdropModal_details__KcMNz",nftTitle:"AirdropModal_nftTitle__H1_f4",gift:"AirdropModal_gift__7r21S",claimWilliams:"AirdropModal_claimWilliams__qhzZE",badge:"AirdropModal_badge__Th40O"}},13137:function(ei){ei.exports={menu:"AppSwitcherMenu_menu__e85hJ",menuPopup:"AppSwitcherMenu_menuPopup__L4_zL",appLink:"AppSwitcherMenu_appLink__Uivj9",appLinkTitle:"AppSwitcherMenu_appLinkTitle__3oO5K",currentApp:"AppSwitcherMenu_currentApp__T351L",lastApp:"AppSwitcherMenu_lastApp__B5r9u",itemTexts:"AppSwitcherMenu_itemTexts__tEj_j",appLinkSubtitle:"AppSwitcherMenu_appLinkSubtitle__u5JOs",button:"AppSwitcherMenu_button__kIzVc",active:"AppSwitcherMenu_active__z49nc"}},26683:function(ei){ei.exports={cta:"Cta_cta__569Z9",standard:"Cta_standard__b25Bd",content:"Cta_content__q5sXy",large:"Cta_large__TlnIi",small:"Cta_small__OhKvL",image:"Cta_image__k6lxC",title:"Cta_title__v2bTo",center:"Cta_center__3I4eI",actions:"Cta_actions__kXUR_",body:"Cta_body___YPXF",message:"Cta_message__hhUyB"}},14627:function(ei){ei.exports={body:"CtaModal_body__5ispX",image:"CtaModal_image__Atah4",header:"CtaModal_header__LEFqg"}},16894:function(ei){ei.exports={list:"Footer_list__sseNF",horizontalList:"Footer_horizontalList__f3F4x",verticalList:"Footer_verticalList__OtFC8",trade:"Footer_trade__ugWEZ",footer:"Footer_footer___s0Of",container:"Footer_container__IO3Ky",logo:"Footer_logo___Bn63",column:"Footer_column__fjgPt",responsive:"Footer_responsive__AMpZk",languageSelect:"Footer_languageSelect__YRfrZ"}},88406:function(ei){ei.exports={container:"Menu_container__p_fDc",menuPopup:"Menu_menuPopup__2ebTG",menuItem:"Menu_menuItem__WUOft",menuItem_focused:"Menu_menuItem_focused__Qx02i",menuItemIcon:"Menu_menuItemIcon__O1bjl",strokedIcon:"Menu_strokedIcon__aXALE",paymentMethods:"Menu_paymentMethods__mULKI",documentIcon:"Menu_documentIcon__BMSs6",menuSeparator:"Menu_menuSeparator__GrlV4",menuSection:"Menu_menuSection__gUdgC"}},16472:function(ei){ei.exports={body:"Modal_body__LGRd6",scroll:"Modal_scroll__MrNgA",underlay:"Modal_underlay__n6Txb",modalRoot:"Modal_modalRoot__ea1z7",animated:"Modal_animated__m_G2_",fullScreen:"Modal_fullScreen__yc6Un",wizardRoot:"Modal_wizardRoot__ykhRf",recurring:"Modal_recurring__Uf6L5",wizard:"Modal_wizard__zURZl",header:"Modal_header__9Nc2I",footer:"Modal_footer__KnjQg",view:"Modal_view__ujwQa",unset:"Modal_unset__3Ne_6",simple:"Modal_simple__pUa5m",nft:"Modal_nft__YQRgh",closeButton:"Modal_closeButton__066hL",youtube:"Modal_youtube__U2Oad",youtubeRoot:"Modal_youtubeRoot__OyeNA",small:"Modal_small__3Rj87",none:"Modal_none__T8XIQ",gradient:"Modal_gradient__eZObk",white:"Modal_white__XnCDD",headerTitle:"Modal_headerTitle__nIda_",backButton:"Modal_backButton__CD_Ba",buttonIcon:"Modal_buttonIcon__uuWTd"}},7166:function(ei){ei.exports={nftAvatar:"NftAvatar_nftAvatar__PnBhe",small:"NftAvatar_small__eLI0W",medium:"NftAvatar_medium__3UbTb",xmedium:"NftAvatar_xmedium__vq4UZ",large:"NftAvatar_large__SiN8O",square:"NftAvatar_square__dCKfL",uploadIcon:"NftAvatar_uploadIcon__kTvdg"}},14107:function(ei){ei.exports={icon:"NftConnectWalletDialog_icon__HAFqS",walletconnectIcon:"NftConnectWalletDialog_walletconnectIcon__NJ8fN",mobile:"NftConnectWalletDialog_mobile__lp3Ms",underlayClassName:"NftConnectWalletDialog_underlayClassName__3uceV"}},90690:function(ei){ei.exports={nftDialog:"NftDialog_nftDialog__9SbMs",nftDialogBody:"NftDialog_nftDialogBody__QAWGW",nftDialogHeader:"NftDialog_nftDialogHeader__WUaQD",small:"NftDialog_small__cSVbt",close:"NftDialog_close__T1XrB",back:"NftDialog_back__Jc_uf",backHeader:"NftDialog_backHeader__Ru2kM"}},43671:function(ei){ei.exports={previewImage:"NftImage_previewImage__ZhHAR",mobile:"NftImage_mobile__o2KdT",loading:"NftImage_loading__u2Nt6",landscape:"NftImage_landscape__VDx2q",loader:"NftImage_loader__H2WrH",gradientOverlay:"NftImage_gradientOverlay__5vUM0",smooth:"NftImage_smooth__F2RqX",crispEdges:"NftImage_crispEdges__1S7xm"}},47605:function(ei){ei.exports={value:"Select_value__qKM0q",button:"Select_button__s7ypm",menu:"Select_menu__dN7F7",item:"Select_item___oJhF"}},25391:function(ei){ei.exports={walletAddressValue:"NftRemoveWalletDialog_walletAddressValue__FXqYg"}},86904:function(ei){ei.exports={searchBar:"NftSearch_searchBar__po4s0",searchInput:"NftSearch_searchInput__JSaqf",searchDropdown:"NftSearch_searchDropdown__ibloK",searchItem:"NftSearch_searchItem__inBNd",searchTags:"NftSearch_searchTags__1W49Y",tagStyle:"NftSearch_tagStyle__344H5",label:"NftSearch_label__eQSZD",labelIcon:"NftSearch_labelIcon__yoPPU",closeWrap:"NftSearch_closeWrap__R3znq",searchAction:"NftSearch_searchAction__urkVl"}},96110:function(ei){ei.exports={shimmer:"NftShimmer_shimmer__IEUUc",placeHolderShimmer:"NftShimmer_placeHolderShimmer__t7EZ9"}},38503:function(ei){ei.exports={title:"NftWalletLabelDialog_title__WgqGo",content:"NftWalletLabelDialog_content__HDHbx",avatarHolder:"NftWalletLabelDialog_avatarHolder__W8dFM",avatar:"NftWalletLabelDialog_avatar__i___i",crypton:"NftWalletLabelDialog_crypton__VWqZq",phantomIcon:"NftWalletLabelDialog_phantomIcon__5nXbM",walletAddress:"NftWalletLabelDialog_walletAddress__RcVnh"}},15252:function(ei){ei.exports={fullscreenView:"OnboardingServiceErrorView_fullscreenView__cTIVx"}},52293:function(ei){ei.exports={fullscreenView:"OnboardingServiceLoadingView_fullscreenView__Ic1CU"}},53151:function(ei){ei.exports={emailAnimation:"ApproveNewDevice_emailAnimation__9mm4_"}},74507:function(ei){ei.exports={spinnerContainer:"ResendEmail_spinnerContainer__BRoh2",spinner:"ResendEmail_spinner__7gw3l"}},15269:function(ei){ei.exports={modal:"SignInModal_modal__npgd3",modalView:"SignInModal_modalView__OtMex",icon:"SignInModal_icon__m7Xko",closeButton:"SignInModal_closeButton__tIrNs",container:"SignInModal_container__Xv3Oe",signInBanner:"SignInModal_signInBanner__9Pn9m",header:"SignInModal_header__EoXBP",hide:"SignInModal_hide__uthpB",headerContent:"SignInModal_headerContent___8VVe",body:"SignInModal_body__Nc_XB",isKeyboardOpen:"SignInModal_isKeyboardOpen__an_g3",signInContext:"SignInModal_signInContext__ZwW8m",signIn:"SignInModal_signIn__jONcd",field:"SignInModal_field___i9XK",gap:"SignInModal_gap__4mdc4",kds:"SignInModal_kds__oJHaJ",signInButton:"SignInModal_signInButton__anYI0",form:"SignInModal_form__ZRN7u",submit:"SignInModal_submit__LM1O4",footer:"SignInModal_footer__xZ50u",tfaContainer:"SignInModal_tfaContainer__gmPVV",tfaFields:"SignInModal_tfaFields__2gNzn",tfaImage:"SignInModal_tfaImage__4pDGb",inputField:"SignInModal_inputField__ymXq2"}},14168:function(ei){ei.exports={errorParagraph:"GlobalError_errorParagraph__S_QQ5"}},90119:function(ei){ei.exports={yubikeyInstructions:"yubikey_yubikeyInstructions__BwcjL"}},7963:function(ei){ei.exports={link:"Logo_link__T4bQ0",svg:"Logo_svg__oeErz"}},30047:function(ei){ei.exports={dialog:"MobileMenu_dialog___uER1",logo:"MobileMenu_logo__fMalo",main:"MobileMenu_main__JJ4p9",spacer:"MobileMenu_spacer__pxYqA",overlay:"MobileMenu_overlay__sFt4Y"}},89087:function(ei){ei.exports={mobileMenuItem:"MobileMenuItem_mobileMenuItem__UH0qd",expanded:"MobileMenuItem_expanded__Y5sMx",active:"MobileMenuItem_active__wiZpt"}},10776:function(ei){ei.exports={topNavigation:"TopNavigation_topNavigation__IlNi1",isTransparent:"TopNavigation_isTransparent__UhWyr",innerWrapper:"TopNavigation_innerWrapper__KIVpW",iconLink:"TopNavigation_iconLink__TAcyD",search:"TopNavigation_search__Ibc49",menuItem:"TopNavigation_menuItem__UOl39",active:"TopNavigation_active__9GrOQ",logoItem:"TopNavigation_logoItem__LXNlh",unauthenticated:"TopNavigation_unauthenticated__Qeaem",signIn:"TopNavigation_signIn__Xa7u8",createAccount:"TopNavigation_createAccount__M17Eg",instantBuySellCtaContainer:"TopNavigation_instantBuySellCtaContainer__EjHEz",instantBuySellCta:"TopNavigation_instantBuySellCta__OTMa7",appSwitcherButton:"TopNavigation_appSwitcherButton__6sIFX"}},29685:function(ei){ei.exports={expandableItem:"ExpandableItem_expandableItem__BkhP3"}},59492:function(ei){ei.exports={popoverContent:"PopoverContent_popoverContent__EXPcI","responsive-container":"PopoverContent_responsive-container__GBKsk",hideBoxShadow:"PopoverContent_hideBoxShadow__TR6Tn",menuItem:"PopoverContent_menuItem__zbzkz",separator:"PopoverContent_separator__G1LX9",separatorTop:"PopoverContent_separatorTop__Ci0GT"}},18553:function(ei){ei.exports={focusRing:"UserMenu_focusRing___zEV4",spacer:"UserMenu_spacer__PaHS7",userMenu:"UserMenu_userMenu__vsNKH",active:"UserMenu_active__BV_Xy",username:"UserMenu_username__vqGve",frFR:"UserMenu_frFR__yEgE4",itIT:"UserMenu_itIT__oKRSv"}},11987:function(ei,eo,ea){var eu="/";!function(){var eo={452:function(ei){"use strict";ei.exports=ea(97334)}},ec={};function ed(ei){var ea=ec[ei];if(void 0!==ea)return ea.exports;var eu=ec[ei]={exports:{}},ef=!0;try{eo[ei](eu,eu.exports,ed),ef=!1}finally{ef&&delete ec[ei]}return eu.exports}ed.ab=eu+"/";var ef={};!function(){var ei,eo=ef,ea=(ei=ed(452))&&"object"==typeof ei&&"default"in ei?ei.default:ei,eu=/https?|ftp|gopher|file/;function ec(ei){"string"==typeof ei&&(ei=eO(ei));var eo=function(ei,eo,ea){var eu=ei.auth,ec=ei.hostname,ed=ei.protocol||"",ef=ei.pathname||"",eh=ei.hash||"",eg=ei.query||"",em=!1;eu=eu?encodeURIComponent(eu).replace(/%3A/i,":")+"@":"",ei.host?em=eu+ei.host:ec&&(em=eu+(~ec.indexOf(":")?"["+ec+"]":ec),ei.port&&(em+=":"+ei.port)),eg&&"object"==typeof eg&&(eg=eo.encode(eg));var eb=ei.search||eg&&"?"+eg||"";return ed&&":"!==ed.substr(-1)&&(ed+=":"),ei.slashes||(!ed||ea.test(ed))&&!1!==em?(em="//"+(em||""),ef&&"/"!==ef[0]&&(ef="/"+ef)):em||(em=""),eh&&"#"!==eh[0]&&(eh="#"+eh),eb&&"?"!==eb[0]&&(eb="?"+eb),{protocol:ed,host:em,pathname:ef=ef.replace(/[?#]/g,encodeURIComponent),search:eb=eb.replace("#","%23"),hash:eh}}(ei,ea,eu);return""+eo.protocol+eo.host+eo.pathname+eo.search+eo.hash}var eh="http://",eg="w.w",em=eh+eg,eb=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,ew=/https?|ftp|gopher|file/;function e_(ei,eo){var ea="string"==typeof ei?eO(ei):ei;ei="object"==typeof ei?ec(ei):ei;var eu=eO(eo),ed="";ea.protocol&&!ea.slashes&&(ed=ea.protocol,ei=ei.replace(ea.protocol,""),ed+="/"===eo[0]||"/"===ei[0]?"/":""),ed&&eu.protocol&&(ed="",eu.slashes||(ed=eu.protocol,eo=eo.replace(eu.protocol,"")));var ef=ei.match(eb);ef&&!eu.protocol&&(ei=ei.substr((ed=ef[1]+(ef[2]||"")).length),/^\/\/[^/]/.test(eo)&&(ed=ed.slice(0,-1)));var eg=new URL(ei,em+"/"),e_=new URL(eo,eg).toString().replace(em,""),eS=eu.protocol||ea.protocol;return eS+=ea.slashes||eu.slashes?"//":"",!ed&&eS?e_=e_.replace(eh,eS):ed&&(e_=e_.replace(eh,"")),ew.test(e_)||~eo.indexOf(".")||"/"===ei.slice(-1)||"/"===eo.slice(-1)||"/"!==e_.slice(-1)||(e_=e_.slice(0,-1)),ed&&(e_=ed+("/"===e_[0]?e_.substr(1):e_)),e_}function eS(){}eS.prototype.parse=eO,eS.prototype.format=ec,eS.prototype.resolve=e_,eS.prototype.resolveObject=e_;var eE=/^https?|ftp|gopher|file/,eA=/^(.*?)([#?].*)/,eT=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,ek=/^([a-z0-9.+-]*:)?\/\/\/*/i,eC=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function eO(ei,eo,eu){if(void 0===eo&&(eo=!1),void 0===eu&&(eu=!1),ei&&"object"==typeof ei&&ei instanceof eS)return ei;var ed=(ei=ei.trim()).match(eA);ei=ed?ed[1].replace(/\\/g,"/")+ed[2]:ei.replace(/\\/g,"/"),eC.test(ei)&&"/"!==ei.slice(-1)&&(ei+="/");var ef=!/(^javascript)/.test(ei)&&ei.match(eT),eh=ek.test(ei),eb="";ef&&(eE.test(ef[1])||(eb=ef[1].toLowerCase(),ei=""+ef[2]+ef[3]),ef[2]||(eh=!1,eE.test(ef[1])?(eb=ef[1],ei=""+ef[3]):ei="//"+ef[3]),3!==ef[2].length&&1!==ef[2].length||(eb=ef[1],ei="/"+ef[3]));var ew,e_=(ed?ed[1]:ei).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),eO=e_&&e_[1],eI=new eS,eP="",eD="";try{ew=new URL(ei)}catch(eo){eP=eo,eb||eu||!/^\/\//.test(ei)||/^\/\/.+[@.]/.test(ei)||(eD="/",ei=ei.substr(1));try{ew=new URL(ei,em)}catch(ei){return eI.protocol=eb,eI.href=eb,eI}}eI.slashes=eh&&!eD,eI.host=ew.host===eg?"":ew.host,eI.hostname=ew.hostname===eg?"":ew.hostname.replace(/(\[|\])/g,""),eI.protocol=eP?eb||null:ew.protocol,eI.search=ew.search.replace(/\\/g,"%5C"),eI.hash=ew.hash.replace(/\\/g,"%5C");var eN=ei.split("#");!eI.search&&~eN[0].indexOf("?")&&(eI.search="?"),eI.hash||""!==eN[1]||(eI.hash="#"),eI.query=eo?ea.decode(ew.search.substr(1)):eI.search.substr(1),eI.pathname=eD+(ef?function(ei){return ei.replace(/['^|`]/g,function(ei){return"%"+ei.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(ei,eo){try{return decodeURIComponent(eo).split("").map(function(ei){var eo=ei.charCodeAt();return eo>256||/^[a-z0-9]$/i.test(ei)?ei:"%"+eo.toString(16).toUpperCase()}).join("")}catch(ei){return eo}})}(ew.pathname):ew.pathname),"about:"===eI.protocol&&"blank"===eI.pathname&&(eI.protocol="",eI.pathname=""),eP&&"/"!==ei[0]&&(eI.pathname=eI.pathname.substr(1)),eb&&!eE.test(eb)&&"/"!==ei.slice(-1)&&"/"===eI.pathname&&(eI.pathname=""),eI.path=eI.pathname+eI.search,eI.auth=[ew.username,ew.password].map(decodeURIComponent).filter(Boolean).join(":"),eI.port=ew.port,eO&&!eI.host.endsWith(eO)&&(eI.host+=eO,eI.port=eO.slice(1)),eI.href=eD?""+eI.pathname+eI.search+eI.hash:ec(eI);var eM=/^(file)/.test(eI.href)?["host","hostname"]:[];return Object.keys(eI).forEach(function(ei){~eM.indexOf(ei)||(eI[ei]=eI[ei]||null)}),eI}eo.parse=eO,eo.format=ec,eo.resolve=e_,eo.resolveObject=function(ei,eo){return eO(e_(ei,eo))},eo.Url=eS}(),ei.exports=ef}()},77663:function(ei){var eo="/";!function(){var ea={229:function(ei){var eo,ea,eu,ec=ei.exports={};function ed(){throw Error("setTimeout has not been defined")}function ef(){throw Error("clearTimeout has not been defined")}function eh(ei){if(eo===setTimeout)return setTimeout(ei,0);if((eo===ed||!eo)&&setTimeout)return eo=setTimeout,setTimeout(ei,0);try{return eo(ei,0)}catch(ea){try{return eo.call(null,ei,0)}catch(ea){return eo.call(this,ei,0)}}}function eg(ei){if(ea===clearTimeout)return clearTimeout(ei);if((ea===ef||!ea)&&clearTimeout)return ea=clearTimeout,clearTimeout(ei);try{return ea(ei)}catch(eo){try{return ea.call(null,ei)}catch(eo){return ea.call(this,ei)}}}!function(){try{eo="function"==typeof setTimeout?setTimeout:ed}catch(ei){eo=ed}try{ea="function"==typeof clearTimeout?clearTimeout:ef}catch(ei){ea=ef}}();var em=[],eb=!1,ew=-1;function e_(){eb&&eu&&(eb=!1,eu.length?em=eu.concat(em):ew=-1,em.length&&eS())}function eS(){if(!eb){var ei=eh(e_);eb=!0;for(var eo=em.length;eo;){for(eu=em,em=[];++ew1)for(var ea=1;ea0&&em>eg&&(em=eg);for(var eb=0;eb=0?(ew=eA.substr(0,eT),e_=eA.substr(eT+1)):(ew=eA,e_=""),eS=decodeURIComponent(ew),eE=decodeURIComponent(e_),eo(ef,eS)?ea(ef[eS])?ef[eS].push(eE):ef[eS]=[ef[eS],eE]:ef[eS]=eE}return ef};var ea=Array.isArray||function(ei){return"[object Array]"===Object.prototype.toString.call(ei)}},577:function(ei){var eo=function(ei){switch(typeof ei){case"string":return ei;case"boolean":return ei?"true":"false";case"number":return isFinite(ei)?ei:"";default:return""}};ei.exports=function(ei,ed,ef,eh){return(ed=ed||"&",ef=ef||"=",null===ei&&(ei=void 0),"object"==typeof ei)?eu(ec(ei),function(ec){var eh=encodeURIComponent(eo(ec))+ef;return ea(ei[ec])?eu(ei[ec],function(ei){return eh+encodeURIComponent(eo(ei))}).join(ed):eh+encodeURIComponent(eo(ei[ec]))}).join(ed):eh?encodeURIComponent(eo(eh))+ef+encodeURIComponent(eo(ei)):""};var ea=Array.isArray||function(ei){return"[object Array]"===Object.prototype.toString.call(ei)};function eu(ei,eo){if(ei.map)return ei.map(eo);for(var ea=[],eu=0;eu-1e3&&ei<1e3||eD.call(/e/,eo))return eo;var ea=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof ei){var eu=ei<0?-eR(-ei):eR(ei);if(eu!==ei){var ec=String(eu),ed=eC.call(eo,ec.length+1);return eO.call(ec,ea,"$&_")+"."+eO.call(eO.call(ed,/([0-9]{3})/g,"$&_"),/_$/,"")}}return eO.call(eo,ea,"$&_")}var eK=ea(24654),eY=eK.custom,eZ=e8(eY)?eY:null;function e$(ei,eo,ea){var eu="double"===(ea.quoteStyle||eo)?'"':"'";return eu+ei+eu}function eJ(ei){return eO.call(String(ei),/"/g,""")}function eQ(ei){return"[object Array]"===tu(ei)&&(!eG||!("object"==typeof ei&&eG in ei))}function eX(ei){return"[object Date]"===tu(ei)&&(!eG||!("object"==typeof ei&&eG in ei))}function e0(ei){return"[object RegExp]"===tu(ei)&&(!eG||!("object"==typeof ei&&eG in ei))}function e3(ei){return"[object Error]"===tu(ei)&&(!eG||!("object"==typeof ei&&eG in ei))}function e5(ei){return"[object String]"===tu(ei)&&(!eG||!("object"==typeof ei&&eG in ei))}function e4(ei){return"[object Number]"===tu(ei)&&(!eG||!("object"==typeof ei&&eG in ei))}function e6(ei){return"[object Boolean]"===tu(ei)&&(!eG||!("object"==typeof ei&&eG in ei))}function e8(ei){if(eU)return ei&&"object"==typeof ei&&ei instanceof Symbol;if("symbol"==typeof ei)return!0;if(!ei||"object"!=typeof ei||!eB)return!1;try{return eB.call(ei),!0}catch(ei){}return!1}function e9(ei){if(!ei||"object"!=typeof ei||!eL)return!1;try{return eL.call(ei),!0}catch(ei){}return!1}ei.exports=function ei(eo,eu,ec,eh){var eg=eu||{};if(ta(eg,"quoteStyle")&&"single"!==eg.quoteStyle&&"double"!==eg.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(ta(eg,"maxStringLength")&&("number"==typeof eg.maxStringLength?eg.maxStringLength<0&&eg.maxStringLength!==1/0:null!==eg.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ew=!ta(eg,"customInspect")||eg.customInspect;if("boolean"!=typeof ew&&"symbol"!==ew)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ta(eg,"indent")&&null!==eg.indent&&" "!==eg.indent&&!(parseInt(eg.indent,10)===eg.indent&&eg.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ta(eg,"numericSeparator")&&"boolean"!=typeof eg.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var e_=eg.numericSeparator;if(void 0===eo)return"undefined";if(null===eo)return"null";if("boolean"==typeof eo)return eo?"true":"false";if("string"==typeof eo)return tw(eo,eg);if("number"==typeof eo){if(0===eo)return 1/0/eo>0?"0":"-0";var eS=String(eo);return e_?eW(eo,eS):eS}if("bigint"==typeof eo){var eA=String(eo)+"n";return e_?eW(eo,eA):eA}var eT=void 0===eg.depth?5:eg.depth;if(void 0===ec&&(ec=0),ec>=eT&&eT>0&&"object"==typeof eo)return eQ(eo)?"[Array]":"[Object]";var ek=tk(eg,ec);if(void 0===eh)eh=[];else if(td(eh,eo)>=0)return"[Circular]";function eI(eo,ea,eu){if(ea&&(eh=ej.call(eh)).push(ea),eu){var ed={depth:eg.depth};return ta(eg,"quoteStyle")&&(ed.quoteStyle=eg.quoteStyle),ei(eo,ed,ec+1,eh)}return ei(eo,eg,ec+1,eh)}if("function"==typeof eo&&!e0(eo)){var eD=tc(eo),eR=tO(eo,eI);return"[Function"+(eD?": "+eD:" (anonymous)")+"]"+(eR.length>0?" { "+eM.call(eR,", ")+" }":"")}if(e8(eo)){var eF=eU?eO.call(String(eo),/^(Symbol\(.*\))_[^)]*$/,"$1"):eB.call(eo);return"object"!=typeof eo||eU?eF:tS(eF)}if(tb(eo)){for(var eY="<"+eP.call(String(eo.nodeName)),e7=eo.attributes||[],t_=0;t_"}if(eQ(eo)){if(0===eo.length)return"[]";var tI=tO(eo,eI);return ek&&!tT(tI)?"["+tC(tI,ek)+"]":"[ "+eM.call(tI,", ")+" ]"}if(e3(eo)){var tP=tO(eo,eI);return"cause"in Error.prototype||!("cause"in eo)||eV.call(eo,"cause")?0===tP.length?"["+String(eo)+"]":"{ ["+String(eo)+"] "+eM.call(tP,", ")+" }":"{ ["+String(eo)+"] "+eM.call(eN.call("[cause]: "+eI(eo.cause),tP),", ")+" }"}if("object"==typeof eo&&ew){if(eZ&&"function"==typeof eo[eZ]&&eK)return eK(eo,{depth:eT-ec});if("symbol"!==ew&&"function"==typeof eo.inspect)return eo.inspect()}if(tf(eo)){var tD=[];return ef&&ef.call(eo,function(ei,ea){tD.push(eI(ea,eo,!0)+" => "+eI(ei,eo))}),tA("Map",ed.call(eo),tD,ek)}if(tm(eo)){var tN=[];return eb&&eb.call(eo,function(ei){tN.push(eI(ei,eo))}),tA("Set",em.call(eo),tN,ek)}if(tp(eo))return tE("WeakMap");if(tv(eo))return tE("WeakSet");if(tg(eo))return tE("WeakRef");if(e4(eo))return tS(eI(Number(eo)));if(e9(eo))return tS(eI(eL.call(eo)));if(e6(eo))return tS(eE.call(eo));if(e5(eo))return tS(eI(String(eo)));if(eo===ea.g)return"undefined"!=typeof window?"{ [object Window] }":"{ [object global] }";if(!eX(eo)&&!e0(eo)){var tM=tO(eo,eI),tj=eH?eH(eo)===Object.prototype:eo instanceof Object||eo.constructor===Object,tR=eo instanceof Object?"":"null prototype",tL=!tj&&eG&&Object(eo)===eo&&eG in eo?eC.call(tu(eo),8,-1):tR?"Object":"",tF=(tj||"function"!=typeof eo.constructor?"":eo.constructor.name?eo.constructor.name+" ":"")+(tL||tR?"["+eM.call(eN.call([],tL||[],tR||[]),": ")+"] ":"");return 0===tM.length?tF+"{}":ek?tF+"{"+tC(tM,ek)+"}":tF+"{ "+eM.call(tM,", ")+" }"}return String(eo)};var e7=Object.prototype.hasOwnProperty||function(ei){return ei in this};function ta(ei,eo){return e7.call(ei,eo)}function tu(ei){return eA.call(ei)}function tc(ei){if(ei.name)return ei.name;var eo=ek.call(eT.call(ei),/^function\s*([\w$]+)/);return eo?eo[1]:null}function td(ei,eo){if(ei.indexOf)return ei.indexOf(eo);for(var ea=0,eu=ei.length;eaeo.maxStringLength){var ea=ei.length-eo.maxStringLength,eu="... "+ea+" more character"+(ea>1?"s":"");return tw(eC.call(ei,0,eo.maxStringLength),eo)+eu}return e$(eO.call(eO.call(ei,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,t_),"single",eo)}function t_(ei){var eo=ei.charCodeAt(0),ea={8:"b",9:"t",10:"n",12:"f",13:"r"}[eo];return ea?"\\"+ea:"\\x"+(eo<16?"0":"")+eI.call(eo.toString(16))}function tS(ei){return"Object("+ei+")"}function tE(ei){return ei+" { ? }"}function tA(ei,eo,ea,eu){return ei+" ("+eo+") {"+(eu?tC(ea,eu):eM.call(ea,", "))+"}"}function tT(ei){for(var eo=0;eo=0)return!1;return!0}function tk(ei,eo){var ea;if(" "===ei.indent)ea=" ";else{if("number"!=typeof ei.indent||!(ei.indent>0))return null;ea=eM.call(Array(ei.indent+1)," ")}return{base:ea,prev:eM.call(Array(eo+1),ea)}}function tC(ei,eo){if(0===ei.length)return"";var ea="\n"+eo.prev+eo.base;return ea+eM.call(ei,","+ea)+"\n"+eo.prev}function tO(ei,eo){var ea,eu=eQ(ei),ec=[];if(eu){ec.length=ei.length;for(var ed=0;ed=48&&ef<=57||ef>=65&&ef<=90||ef>=97&&ef<=122||95===ef){ec+=ei[ed++];continue}break}if(!ec)throw TypeError("Missing parameter name at ".concat(ea));eo.push({type:"NAME",index:ea,value:ec}),ea=ed;continue}if("("===eu){var eh=1,eg="",ed=ea+1;if("?"===ei[ed])throw TypeError('Pattern cannot start with "?" at '.concat(ed));for(;ed)?(?!\?)/g,eu=0,ec=ea.exec(ei.source);ec;)eo.push({name:ec[1]||eu++,prefix:"",suffix:"",modifier:"",pattern:""}),ec=ea.exec(ei.source);return ei}function eg(ei,eo,ea){var eu=ei.map(function(ei){return ew(ei,eo,ea).source});return new RegExp("(?:".concat(eu.join("|"),")"),ef(ea))}function em(ei,eo,ea){return eb(ec(ei,ea),eo,ea)}function eb(ei,eo,ea){void 0===ea&&(ea={});for(var eu=ea.strict,ec=void 0!==eu&&eu,eh=ea.start,eg=void 0===eh||eh,em=ea.end,eb=void 0===em||em,ew=ea.encode,e_=void 0===ew?function(ei){return ei}:ew,eS=ea.delimiter,eE=void 0===eS?"/#?":eS,eA=ea.endsWith,eT=void 0===eA?"":eA,ek="[".concat(ed(eT),"]|$"),eC="[".concat(ed(eE),"]"),eO=eg?"^":"",eI=0,eP=ei;eI-1:void 0===eR;ec||(eO+="(?:".concat(eC,"(?=").concat(ek,"))?")),eL||(eO+="(?=".concat(eC,"|").concat(ek,")"))}return new RegExp(eO,ef(ea))}function ew(ei,eo,ea){return ei instanceof RegExp?eh(ei,eo):Array.isArray(ei)?eg(ei,eo,ea):em(ei,eo,ea)}ea.d(eo,{Bo:function(){return ew}})},92703:function(ei,eo,ea){"use strict";var eu=ea(50414);function ec(){}function ed(){}ed.resetWarningCache=ec,ei.exports=function(){function ei(ei,eo,ea,ec,ed,ef){if(ef!==eu){var eh=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw eh.name="Invariant Violation",eh}}function eo(){return ei}ei.isRequired=ei;var ea={array:ei,bigint:ei,bool:ei,func:ei,number:ei,object:ei,string:ei,symbol:ei,any:ei,arrayOf:eo,element:ei,elementType:ei,instanceOf:eo,node:ei,objectOf:eo,oneOf:eo,oneOfType:eo,shape:eo,exact:eo,checkPropTypes:ed,resetWarningCache:ec};return ea.PropTypes=ea,ea}},45697:function(ei,eo,ea){ei.exports=ea(92703)()},50414:function(ei){"use strict";var eo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ei.exports=eo},55760:function(ei){"use strict";function eo(ei){this._maxSize=ei,this.clear()}eo.prototype.clear=function(){this._size=0,this._values=Object.create(null)},eo.prototype.get=function(ei){return this._values[ei]},eo.prototype.set=function(ei,eo){return this._size>=this._maxSize&&this.clear(),!(ei in this._values)&&this._size++,this._values[ei]=eo};var ea=/[^.^\]^[]+|(?=\[\]|\.\.)/g,eu=/^\d+$/,ec=/^\d/,ed=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,ef=/^\s*(['"]?)(.*?)(\1)\s*$/,eh=512,eg=new eo(eh),em=new eo(eh),eb=new eo(eh);function ew(ei){return eg.get(ei)||eg.set(ei,e_(ei).map(function(ei){return ei.replace(ef,"$2")}))}function e_(ei){return ei.match(ea)||[""]}function eS(ei,eo,ea){var eu,ec,ed,ef,eh=ei.length;for(ec=0;ec-1?ei.split(","):ei},em="utf8=%26%2310003%3B",eb="utf8=%E2%9C%93",ew=function(ei,eo){var ea={__proto__:null},ew=eo.ignoreQueryPrefix?ei.replace(/^\?/,""):ei,e_=eo.parameterLimit===1/0?void 0:eo.parameterLimit,eS=ew.split(eo.delimiter,e_),eE=-1,eA=eo.charset;if(eo.charsetSentinel)for(eT=0;eT-1&&(eC=ed(eC)?[eC]:eC),ec.call(ea,ek)?ea[ek]=eu.combine(ea[ek],eC):ea[ek]=eC}return ea},e_=function(ei,eo,ea,eu){for(var ec=eu?eo:eg(eo,ea),ed=ei.length-1;ed>=0;--ed){var ef,eh=ei[ed];if("[]"===eh&&ea.parseArrays)ef=[].concat(ec);else{ef=ea.plainObjects?Object.create(null):{};var em="["===eh.charAt(0)&&"]"===eh.charAt(eh.length-1)?eh.slice(1,-1):eh,eb=parseInt(em,10);ea.parseArrays||""!==em?!isNaN(eb)&&eh!==em&&String(eb)===em&&eb>=0&&ea.parseArrays&&eb<=ea.arrayLimit?(ef=[])[eb]=ec:"__proto__"!==em&&(ef[em]=ec):ef={0:ec}}ec=ef}return ec},eS=function(ei,eo,ea,eu){if(ei){var ed=ea.allowDots?ei.replace(/\.([^.[]+)/g,"[$1]"):ei,ef=/(\[[^[\]]*])/,eh=/(\[[^[\]]*])/g,eg=ea.depth>0&&ef.exec(ed),em=eg?ed.slice(0,eg.index):ed,eb=[];if(em){if(!ea.plainObjects&&ec.call(Object.prototype,em)&&!ea.allowPrototypes)return;eb.push(em)}for(var ew=0;ea.depth>0&&null!==(eg=eh.exec(ed))&&ew0?ej.join(",")||null:void 0}];else if(eg(e_))eM=e_;else{var eG=Object.keys(ej);eM=eT?eG.sort(eT):eG}for(var eV=ef&&eg(ej)&&1===ej.length?ea+"[]":ea,eH=0;eH0?eI+eO:""}},12769:function(ei,eo,ea){"use strict";var eu=ea(55798),ec=Object.prototype.hasOwnProperty,ed=Array.isArray,ef=function(){for(var ei=[],eo=0;eo<256;++eo)ei.push("%"+((eo<16?"0":"")+eo.toString(16)).toUpperCase());return ei}(),eh=function(ei){for(;ei.length>1;){var eo=ei.pop(),ea=eo.obj[eo.prop];if(ed(ea)){for(var eu=[],ec=0;ec=48&&eb<=57||eb>=65&&eb<=90||eb>=97&&eb<=122||ed===eu.RFC1738&&(40===eb||41===eb)){eg+=eh.charAt(em);continue}if(eb<128){eg+=ef[eb];continue}if(eb<2048){eg+=ef[192|eb>>6]+ef[128|63&eb];continue}if(eb<55296||eb>=57344){eg+=ef[224|eb>>12]+ef[128|eb>>6&63]+ef[128|63&eb];continue}em+=1,eg+=ef[240|(eb=65536+((1023&eb)<<10|1023&eh.charCodeAt(em)))>>18]+ef[128|eb>>12&63]+ef[128|eb>>6&63]+ef[128|63&eb]}return eg},eS=function(ei){for(var eo=[{obj:{o:ei},prop:"o"}],ea=[],eu=0;eunull==ei,eg=Symbol("encodeFragmentIdentifier");function em(ei){switch(ei.arrayFormat){case"index":return eo=>(ea,eu)=>{let ec=ea.length;return void 0===eu||ei.skipNull&&null===eu||ei.skipEmptyString&&""===eu?ea:null===eu?[...ea,[e_(eo,ei),"[",ec,"]"].join("")]:[...ea,[e_(eo,ei),"[",e_(ec,ei),"]=",e_(eu,ei)].join("")]};case"bracket":return eo=>(ea,eu)=>void 0===eu||ei.skipNull&&null===eu||ei.skipEmptyString&&""===eu?ea:null===eu?[...ea,[e_(eo,ei),"[]"].join("")]:[...ea,[e_(eo,ei),"[]=",e_(eu,ei)].join("")];case"colon-list-separator":return eo=>(ea,eu)=>void 0===eu||ei.skipNull&&null===eu||ei.skipEmptyString&&""===eu?ea:null===eu?[...ea,[e_(eo,ei),":list="].join("")]:[...ea,[e_(eo,ei),":list=",e_(eu,ei)].join("")];case"comma":case"separator":case"bracket-separator":{let eo="bracket-separator"===ei.arrayFormat?"[]=":"=";return ea=>(eu,ec)=>void 0===ec||ei.skipNull&&null===ec||ei.skipEmptyString&&""===ec?eu:(ec=null===ec?"":ec,0===eu.length)?[[e_(ea,ei),eo,e_(ec,ei)].join("")]:[[eu,e_(ec,ei)].join(ei.arrayFormatSeparator)]}default:return eo=>(ea,eu)=>void 0===eu||ei.skipNull&&null===eu||ei.skipEmptyString&&""===eu?ea:null===eu?[...ea,e_(eo,ei)]:[...ea,[e_(eo,ei),"=",e_(eu,ei)].join("")]}}function eb(ei){let eo;switch(ei.arrayFormat){case"index":return(ei,ea,eu)=>{if(eo=/\[(\d*)\]$/.exec(ei),ei=ei.replace(/\[\d*\]$/,""),!eo){eu[ei]=ea;return}void 0===eu[ei]&&(eu[ei]={}),eu[ei][eo[1]]=ea};case"bracket":return(ei,ea,eu)=>{if(eo=/(\[\])$/.exec(ei),ei=ei.replace(/\[\]$/,""),!eo){eu[ei]=ea;return}if(void 0===eu[ei]){eu[ei]=[ea];return}eu[ei]=[].concat(eu[ei],ea)};case"colon-list-separator":return(ei,ea,eu)=>{if(eo=/(:list)$/.exec(ei),ei=ei.replace(/:list$/,""),!eo){eu[ei]=ea;return}if(void 0===eu[ei]){eu[ei]=[ea];return}eu[ei]=[].concat(eu[ei],ea)};case"comma":case"separator":return(eo,ea,eu)=>{let ec="string"==typeof ea&&ea.includes(ei.arrayFormatSeparator),ed="string"==typeof ea&&!ec&&eS(ea,ei).includes(ei.arrayFormatSeparator);ea=ed?eS(ea,ei):ea;let ef=ec||ed?ea.split(ei.arrayFormatSeparator).map(eo=>eS(eo,ei)):null===ea?ea:eS(ea,ei);eu[eo]=ef};case"bracket-separator":return(eo,ea,eu)=>{let ec=/(\[\])$/.test(eo);if(eo=eo.replace(/\[\]$/,""),!ec){eu[eo]=ea?eS(ea,ei):ea;return}let ed=null===ea?[]:ea.split(ei.arrayFormatSeparator).map(eo=>eS(eo,ei));if(void 0===eu[eo]){eu[eo]=ed;return}eu[eo]=[].concat(eu[eo],ed)};default:return(ei,eo,ea)=>{if(void 0===ea[ei]){ea[ei]=eo;return}ea[ei]=[].concat(ea[ei],eo)}}}function ew(ei){if("string"!=typeof ei||1!==ei.length)throw TypeError("arrayFormatSeparator must be single character string")}function e_(ei,eo){return eo.encode?eo.strict?eu(ei):encodeURIComponent(ei):ei}function eS(ei,eo){return eo.decode?ec(ei):ei}function eE(ei){return Array.isArray(ei)?ei.sort():"object"==typeof ei?eE(Object.keys(ei)).sort((ei,eo)=>Number(ei)-Number(eo)).map(eo=>ei[eo]):ei}function eA(ei){let eo=ei.indexOf("#");return-1!==eo&&(ei=ei.slice(0,eo)),ei}function eT(ei){let eo="",ea=ei.indexOf("#");return-1!==ea&&(eo=ei.slice(ea)),eo}function ek(ei){ei=eA(ei);let eo=ei.indexOf("?");return-1===eo?"":ei.slice(eo+1)}function eC(ei,eo){return eo.parseNumbers&&!Number.isNaN(Number(ei))&&"string"==typeof ei&&""!==ei.trim()?ei=Number(ei):eo.parseBooleans&&null!==ei&&("true"===ei.toLowerCase()||"false"===ei.toLowerCase())&&(ei="true"===ei.toLowerCase()),ei}function eO(ei,eo){ew((eo=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},eo)).arrayFormatSeparator);let ea=eb(eo),eu=Object.create(null);if("string"!=typeof ei||!(ei=ei.trim().replace(/^[?#&]/,"")))return eu;for(let ec of ei.split("&")){if(""===ec)continue;let[ei,ef]=ed(eo.decode?ec.replace(/\+/g," "):ec,"=");ef=void 0===ef?null:["comma","separator","bracket-separator"].includes(eo.arrayFormat)?ef:eS(ef,eo),ea(eS(ei,eo),ef,eu)}for(let ei of Object.keys(eu)){let ea=eu[ei];if("object"==typeof ea&&null!==ea)for(let ei of Object.keys(ea))ea[ei]=eC(ea[ei],eo);else eu[ei]=eC(ea,eo)}return!1===eo.sort?eu:(!0===eo.sort?Object.keys(eu).sort():Object.keys(eu).sort(eo.sort)).reduce((ei,eo)=>{let ea=eu[eo];return ea&&"object"==typeof ea&&!Array.isArray(ea)?ei[eo]=eE(ea):ei[eo]=ea,ei},Object.create(null))}eo.extract=ek,eo.parse=eO,eo.stringify=(ei,eo)=>{if(!ei)return"";ew((eo=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},eo)).arrayFormatSeparator);let ea=ea=>eo.skipNull&&eh(ei[ea])||eo.skipEmptyString&&""===ei[ea],eu=em(eo),ec={};for(let eo of Object.keys(ei))ea(eo)||(ec[eo]=ei[eo]);let ed=Object.keys(ec);return!1!==eo.sort&&ed.sort(eo.sort),ed.map(ea=>{let ec=ei[ea];return void 0===ec?"":null===ec?e_(ea,eo):Array.isArray(ec)?0===ec.length&&"bracket-separator"===eo.arrayFormat?e_(ea,eo)+"[]":ec.reduce(eu(ea),[]).join("&"):e_(ea,eo)+"="+e_(ec,eo)}).filter(ei=>ei.length>0).join("&")},eo.parseUrl=(ei,eo)=>{eo=Object.assign({decode:!0},eo);let[ea,eu]=ed(ei,"#");return Object.assign({url:ea.split("?")[0]||"",query:eO(ek(ei),eo)},eo&&eo.parseFragmentIdentifier&&eu?{fragmentIdentifier:eS(eu,eo)}:{})},eo.stringifyUrl=(ei,ea)=>{ea=Object.assign({encode:!0,strict:!0,[eg]:!0},ea);let eu=eA(ei.url).split("?")[0]||"",ec=eo.extract(ei.url),ed=eo.parse(ec,{sort:!1}),ef=Object.assign(ed,ei.query),eh=eo.stringify(ef,ea);eh&&(eh=`?${eh}`);let em=eT(ei.url);return ei.fragmentIdentifier&&(em=`#${ea[eg]?e_(ei.fragmentIdentifier,ea):ei.fragmentIdentifier}`),`${eu}${eh}${em}`},eo.pick=(ei,ea,eu)=>{eu=Object.assign({parseFragmentIdentifier:!0,[eg]:!1},eu);let{url:ec,query:ed,fragmentIdentifier:eh}=eo.parseUrl(ei,eu);return eo.stringifyUrl({url:ec,query:ef(ed,ea),fragmentIdentifier:eh},eu)},eo.exclude=(ei,ea,eu)=>{let ec=Array.isArray(ea)?ei=>!ea.includes(ei):(ei,eo)=>!ea(ei,eo);return eo.pick(ei,ec,eu)}},85346:function(ei){"use strict";function eo(ei){try{return JSON.stringify(ei)}catch(ei){return'"[Circular]"'}}function ea(ei,ea,eu){var ec=eu&&eu.stringify||eo,ed=1;if("object"==typeof ei&&null!==ei){var ef=ea.length+ed;if(1===ef)return ei;var eh=Array(ef);eh[0]=ec(ei);for(var eg=1;eg-1?e_:0,ei.charCodeAt(eE+1)){case 100:case 102:if(ew>=em||null==ea[ew])break;e_=em||null==ea[ew])break;e_=em||void 0===ea[ew])break;e_",e_=eE+2,eE++;break}eb+=ec(ea[ew]),e_=eE+2,eE++;break;case 115:if(ew>=em)break;e_eo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea},eC=function(ei){(0,ew.default)(ea,ei);var eo=eA(ea);function ea(ei){var eu,ec=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",ed=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ef=arguments.length>3?arguments[3]:void 0;(0,em.default)(this,ea);var eh=ed.autoconnect,eg=void 0===eh||eh,eb=ed.reconnect,ew=void 0===eb||eb,e_=ed.reconnect_interval,eS=void 0===e_?1e3:e_,eE=ed.max_reconnects,eA=void 0===eE?5:eE,eT=ek(ed,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(eu=eo.call(this)).webSocketFactory=ei,eu.queue={},eu.rpc_id=0,eu.address=ec,eu.autoconnect=eg,eu.ready=!1,eu.reconnect=ew,eu.reconnect_timer_id=void 0,eu.reconnect_interval=eS,eu.max_reconnects=eA,eu.rest_options=eT,eu.current_reconnects=0,eu.generate_request_id=ef||function(){return++eu.rpc_id},eu.autoconnect&&eu._connect(eu.address,Object.assign({autoconnect:eu.autoconnect,reconnect:eu.reconnect,reconnect_interval:eu.reconnect_interval,max_reconnects:eu.max_reconnects},eu.rest_options)),eu}return(0,eb.default)(ea,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(ei,eo,ea,eu){var ec=this;return eu||"object"!==(0,eg.default)(ea)||(eu=ea,ea=null),new Promise(function(ed,ef){if(!ec.ready)return ef(Error("socket not ready"));var eh=ec.generate_request_id(ei,eo),eg={jsonrpc:"2.0",method:ei,params:eo||null,id:eh};ec.socket.send(JSON.stringify(eg),eu,function(ei){if(ei)return ef(ei);ec.queue[eh]={promise:[ed,ef]},ea&&(ec.queue[eh].timeout=setTimeout(function(){delete ec.queue[eh],ef(Error("reply timeout"))},ea))})})}},{key:"login",value:function(){var ei=(0,eh.default)(ef.default.mark(function ei(eo){var ea;return ef.default.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return ei.next=2,this.call("rpc.login",eo);case 2:if(ea=ei.sent){ei.next=5;break}throw Error("authentication failed");case 5:return ei.abrupt("return",ea);case 6:case"end":return ei.stop()}},ei,this)}));return function(eo){return ei.apply(this,arguments)}}()},{key:"listMethods",value:function(){var ei=(0,eh.default)(ef.default.mark(function ei(){return ef.default.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return ei.next=2,this.call("__listMethods");case 2:return ei.abrupt("return",ei.sent);case 3:case"end":return ei.stop()}},ei,this)}));return function(){return ei.apply(this,arguments)}}()},{key:"notify",value:function(ei,eo){var ea=this;return new Promise(function(eu,ec){if(!ea.ready)return ec(Error("socket not ready"));var ed={jsonrpc:"2.0",method:ei,params:eo||null};ea.socket.send(JSON.stringify(ed),function(ei){if(ei)return ec(ei);eu()})})}},{key:"subscribe",value:function(){var ei=(0,eh.default)(ef.default.mark(function ei(eo){var ea;return ef.default.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return"string"==typeof eo&&(eo=[eo]),ei.next=3,this.call("rpc.on",eo);case 3:if(ea=ei.sent,!("string"==typeof eo&&"ok"!==ea[eo])){ei.next=6;break}throw Error("Failed subscribing to an event '"+eo+"' with: "+ea[eo]);case 6:return ei.abrupt("return",ea);case 7:case"end":return ei.stop()}},ei,this)}));return function(eo){return ei.apply(this,arguments)}}()},{key:"unsubscribe",value:function(){var ei=(0,eh.default)(ef.default.mark(function ei(eo){var ea;return ef.default.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return"string"==typeof eo&&(eo=[eo]),ei.next=3,this.call("rpc.off",eo);case 3:if(ea=ei.sent,!("string"==typeof eo&&"ok"!==ea[eo])){ei.next=6;break}throw Error("Failed unsubscribing from an event with: "+ea);case 6:return ei.abrupt("return",ea);case 7:case"end":return ei.stop()}},ei,this)}));return function(eo){return ei.apply(this,arguments)}}()},{key:"close",value:function(ei,eo){this.socket.close(ei||1e3,eo)}},{key:"_connect",value:function(ei,eo){var ea=this;clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(ei,eo),this.socket.addEventListener("open",function(){ea.ready=!0,ea.emit("open"),ea.current_reconnects=0}),this.socket.addEventListener("message",function(ei){var eo=ei.data;eo instanceof ArrayBuffer&&(eo=ec.from(eo).toString());try{eo=JSON.parse(eo)}catch(ei){return}if(eo.notification&&ea.listeners(eo.notification).length){if(!Object.keys(eo.params).length)return ea.emit(eo.notification);var eu=[eo.notification];if(eo.params.constructor===Object)eu.push(eo.params);else for(var ed=0;edea.current_reconnects||0===ea.max_reconnects)&&(ea.reconnect_timer_id=setTimeout(function(){return ea._connect(ei,eo)},ea.reconnect_interval)))})}}]),ea}(eE.EventEmitter);eo.Z=eC},89062:function(ei,eo,ea){"use strict";var eu,ec=ea(64836);eu={value:!0},eo.Z=eS;var ed=ec(ea(56690)),ef=ec(ea(89728)),eh=ec(ea(61655)),eg=ec(ea(94993)),em=ec(ea(73808));function eb(ei){var eo=ew();return function(){var ea,eu=(0,em.default)(ei);if(eo){var ec=(0,em.default)(this).constructor;ea=Reflect.construct(eu,arguments,ec)}else ea=eu.apply(this,arguments);return(0,eg.default)(this,ea)}}function ew(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(ei){return!1}}var e_=function(ei){(0,eh.default)(ea,ei);var eo=eb(ea);function ea(ei,eu,ec){var ef;return(0,ed.default)(this,ea),(ef=eo.call(this)).socket=new window.WebSocket(ei,ec),ef.socket.onopen=function(){return ef.emit("open")},ef.socket.onmessage=function(ei){return ef.emit("message",ei.data)},ef.socket.onerror=function(ei){return ef.emit("error",ei)},ef.socket.onclose=function(ei){ef.emit("close",ei.code,ei.reason)},ef}return(0,ef.default)(ea,[{key:"send",value:function(ei,eo,ea){var eu=ea||eo;try{this.socket.send(ei),eu()}catch(ei){eu(ei)}}},{key:"close",value:function(ei,eo){this.socket.close(ei,eo)}},{key:"addEventListener",value:function(ei,eo,ea){this.socket.addEventListener(ei,eo,ea)}}]),ea}(ea(26729).EventEmitter);function eS(ei,eo){return new e_(ei,eo)}},86515:function(ei,eo,ea){"use strict";ea.d(eo,{X:function(){return ec}});var eu=ea(97582),ec=function(ei){function eo(eo){var ea=ei.call(this)||this;return ea._value=eo,ea}return(0,eu.ZT)(eo,ei),Object.defineProperty(eo.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),eo.prototype._subscribe=function(eo){var ea=ei.prototype._subscribe.call(this,eo);return ea.closed||eo.next(this._value),ea},eo.prototype.getValue=function(){var ei=this,eo=ei.hasError,ea=ei.thrownError,eu=ei._value;if(eo)throw ea;return this._throwIfClosed(),eu},eo.prototype.next=function(eo){ei.prototype.next.call(this,this._value=eo)},eo}(ea(82649).x)},80230:function(ei,eo,ea){"use strict";ea.d(eo,{y:function(){return eb}});var eu=ea(82813),ec=ea(4222),ed=ea(46766),ef=ea(92749),eh=ea(53912),eg=ea(58474),em=ea(68846),eb=function(){function ei(ei){ei&&(this._subscribe=ei)}return ei.prototype.lift=function(eo){var ea=new ei;return ea.source=this,ea.operator=eo,ea},ei.prototype.subscribe=function(ei,eo,ea){var ec=this,ed=eS(ei)?ei:new eu.Hp(ei,eo,ea);return(0,em.x)(function(){var ei=ec,eo=ei.operator,ea=ei.source;ed.add(eo?eo.call(ed,ea):ea?ec._subscribe(ed):ec._trySubscribe(ed))}),ed},ei.prototype._trySubscribe=function(ei){try{return this._subscribe(ei)}catch(eo){ei.error(eo)}},ei.prototype.forEach=function(ei,eo){var ea=this;return new(eo=ew(eo))(function(eo,ec){var ed=new eu.Hp({next:function(eo){try{ei(eo)}catch(ei){ec(ei),ed.unsubscribe()}},error:ec,complete:eo});ea.subscribe(ed)})},ei.prototype._subscribe=function(ei){var eo;return null===(eo=this.source)||void 0===eo?void 0:eo.subscribe(ei)},ei.prototype[ed.L]=function(){return this},ei.prototype.pipe=function(){for(var ei=[],eo=0;eo0},enumerable:!1,configurable:!0}),eo.prototype._trySubscribe=function(eo){return this._throwIfClosed(),ei.prototype._trySubscribe.call(this,eo)},eo.prototype._subscribe=function(ei){return this._throwIfClosed(),this._checkFinalizedStatuses(ei),this._innerSubscribe(ei)},eo.prototype._innerSubscribe=function(ei){var eo=this,ea=this,eu=ea.hasError,ec=ea.isStopped,ef=ea.observers;return eu||ec?ed.Lc:(this.currentObservers=null,ef.push(ei),new ed.w0(function(){eo.currentObservers=null,(0,eh.P)(ef,ei)}))},eo.prototype._checkFinalizedStatuses=function(ei){var eo=this,ea=eo.hasError,eu=eo.thrownError,ec=eo.isStopped;ea?ei.error(eu):ec&&ei.complete()},eo.prototype.asObservable=function(){var ei=new ec.y;return ei.source=this,ei},eo.create=function(ei,eo){return new eb(ei,eo)},eo}(ec.y),eb=function(ei){function eo(eo,ea){var eu=ei.call(this)||this;return eu.destination=eo,eu.source=ea,eu}return(0,eu.ZT)(eo,ei),eo.prototype.next=function(ei){var eo,ea;null===(ea=null===(eo=this.destination)||void 0===eo?void 0:eo.next)||void 0===ea||ea.call(eo,ei)},eo.prototype.error=function(ei){var eo,ea;null===(ea=null===(eo=this.destination)||void 0===eo?void 0:eo.error)||void 0===ea||ea.call(eo,ei)},eo.prototype.complete=function(){var ei,eo;null===(eo=null===(ei=this.destination)||void 0===ei?void 0:ei.complete)||void 0===eo||eo.call(ei)},eo.prototype._subscribe=function(ei){var eo,ea;return null!==(ea=null===(eo=this.source)||void 0===eo?void 0:eo.subscribe(ei))&&void 0!==ea?ea:ed.Lc},eo}(em)},82813:function(ei,eo,ea){"use strict";ea.d(eo,{Hp:function(){return eO},Lv:function(){return eA}});var eu=ea(97582),ec=ea(58474),ed=ea(4222),ef=ea(53912),eh=ea(40005);function eg(){}var em=function(){return e_("C",void 0,void 0)}();function eb(ei){return e_("E",void 0,ei)}function ew(ei){return e_("N",ei,void 0)}function e_(ei,eo,ea){return{kind:ei,value:eo,error:ea}}var eS=ea(68380),eE=ea(68846),eA=function(ei){function eo(eo){var ea=ei.call(this)||this;return ea.isStopped=!1,eo?(ea.destination=eo,(0,ed.Nn)(eo)&&eo.add(ea)):ea.destination=eD,ea}return(0,eu.ZT)(eo,ei),eo.create=function(ei,eo,ea){return new eO(ei,eo,ea)},eo.prototype.next=function(ei){this.isStopped?eP(ew(ei),this):this._next(ei)},eo.prototype.error=function(ei){this.isStopped?eP(eb(ei),this):(this.isStopped=!0,this._error(ei))},eo.prototype.complete=function(){this.isStopped?eP(em,this):(this.isStopped=!0,this._complete())},eo.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ei.prototype.unsubscribe.call(this),this.destination=null)},eo.prototype._next=function(ei){this.destination.next(ei)},eo.prototype._error=function(ei){try{this.destination.error(ei)}finally{this.unsubscribe()}},eo.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},eo}(ed.w0),eT=Function.prototype.bind;function ek(ei,eo){return eT.call(ei,eo)}var eC=function(){function ei(ei){this.partialObserver=ei}return ei.prototype.next=function(ei){var eo=this.partialObserver;if(eo.next)try{eo.next(ei)}catch(ei){eI(ei)}},ei.prototype.error=function(ei){var eo=this.partialObserver;if(eo.error)try{eo.error(ei)}catch(ei){eI(ei)}else eI(ei)},ei.prototype.complete=function(){var ei=this.partialObserver;if(ei.complete)try{ei.complete()}catch(ei){eI(ei)}},ei}(),eO=function(ei){function eo(eo,ea,eu){var ed,eh,eg=ei.call(this)||this;return(0,ec.m)(eo)||!eo?ed={next:null!=eo?eo:void 0,error:null!=ea?ea:void 0,complete:null!=eu?eu:void 0}:eg&&ef.v.useDeprecatedNextContext?((eh=Object.create(eo)).unsubscribe=function(){return eg.unsubscribe()},ed={next:eo.next&&ek(eo.next,eh),error:eo.error&&ek(eo.error,eh),complete:eo.complete&&ek(eo.complete,eh)}):ed=eo,eg.destination=new eC(ed),eg}return(0,eu.ZT)(eo,ei),eo}(eA);function eI(ei){ef.v.useDeprecatedSynchronousErrorHandling?(0,eE.O)(ei):(0,eh.h)(ei)}function eP(ei,eo){var ea=ef.v.onStoppedNotification;ea&&eS.z.setTimeout(function(){return ea(ei,eo)})}var eD={closed:!0,next:eg,error:function(ei){throw ei},complete:eg}},4222:function(ei,eo,ea){"use strict";ea.d(eo,{Lc:function(){return eg},w0:function(){return eh},Nn:function(){return em}});var eu=ea(97582),ec=ea(58474),ed=(0,ea(1819).d)(function(ei){return function(eo){ei(this),this.message=eo?eo.length+" errors occurred during unsubscription:\n"+eo.map(function(ei,eo){return eo+1+") "+ei.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=eo}}),ef=ea(3699),eh=function(){function ei(ei){this.initialTeardown=ei,this.closed=!1,this._parentage=null,this._finalizers=null}return ei.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var ei,eo,ea,ef,eh,eg=this._parentage;if(eg){if(this._parentage=null,Array.isArray(eg))try{for(var em=(0,eu.XA)(eg),ew=em.next();!ew.done;ew=em.next())ew.value.remove(this)}catch(eo){ei={error:eo}}finally{try{ew&&!ew.done&&(eo=em.return)&&eo.call(em)}finally{if(ei)throw ei.error}}else eg.remove(this)}var e_=this.initialTeardown;if((0,ec.m)(e_))try{e_()}catch(ei){eh=ei instanceof ed?ei.errors:[ei]}var eS=this._finalizers;if(eS){this._finalizers=null;try{for(var eE=(0,eu.XA)(eS),eA=eE.next();!eA.done;eA=eE.next()){var eT=eA.value;try{eb(eT)}catch(ei){eh=null!=eh?eh:[],ei instanceof ed?eh=(0,eu.ev)((0,eu.ev)([],(0,eu.CR)(eh)),(0,eu.CR)(ei.errors)):eh.push(ei)}}}catch(ei){ea={error:ei}}finally{try{eA&&!eA.done&&(ef=eE.return)&&ef.call(eE)}finally{if(ea)throw ea.error}}}if(eh)throw new ed(eh)}},ei.prototype.add=function(eo){var ea;if(eo&&eo!==this){if(this.closed)eb(eo);else{if(eo instanceof ei){if(eo.closed||eo._hasParent(this))return;eo._addParent(this)}(this._finalizers=null!==(ea=this._finalizers)&&void 0!==ea?ea:[]).push(eo)}}},ei.prototype._hasParent=function(ei){var eo=this._parentage;return eo===ei||Array.isArray(eo)&&eo.includes(ei)},ei.prototype._addParent=function(ei){var eo=this._parentage;this._parentage=Array.isArray(eo)?(eo.push(ei),eo):eo?[eo,ei]:ei},ei.prototype._removeParent=function(ei){var eo=this._parentage;eo===ei?this._parentage=null:Array.isArray(eo)&&(0,ef.P)(eo,ei)},ei.prototype.remove=function(eo){var ea=this._finalizers;ea&&(0,ef.P)(ea,eo),eo instanceof ei&&eo._removeParent(this)},ei.EMPTY=function(){var eo=new ei;return eo.closed=!0,eo}(),ei}(),eg=eh.EMPTY;function em(ei){return ei instanceof eh||ei&&"closed"in ei&&(0,ec.m)(ei.remove)&&(0,ec.m)(ei.add)&&(0,ec.m)(ei.unsubscribe)}function eb(ei){(0,ec.m)(ei)?ei():ei.unsubscribe()}},53912:function(ei,eo,ea){"use strict";ea.d(eo,{v:function(){return eu}});var eu={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2566:function(ei,eo,ea){"use strict";ea.d(eo,{x:function(){return ec}});var eu=ea(97582);function ec(ei,eo,ea,eu,ec){return new ed(ei,eo,ea,eu,ec)}var ed=function(ei){function eo(eo,ea,eu,ec,ed,ef){var eh=ei.call(this,eo)||this;return eh.onFinalize=ed,eh.shouldUnsubscribe=ef,eh._next=ea?function(ei){try{ea(ei)}catch(ei){eo.error(ei)}}:ei.prototype._next,eh._error=ec?function(ei){try{ec(ei)}catch(ei){eo.error(ei)}finally{this.unsubscribe()}}:ei.prototype._error,eh._complete=eu?function(){try{eu()}catch(ei){eo.error(ei)}finally{this.unsubscribe()}}:ei.prototype._complete,eh}return(0,eu.ZT)(eo,ei),eo.prototype.unsubscribe=function(){var eo;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var ea=this.closed;ei.prototype.unsubscribe.call(this),ea||null===(eo=this.onFinalize)||void 0===eo||eo.call(this)}},eo}(ea(82813).Lv)},53741:function(ei,eo,ea){"use strict";ea.d(eo,{x:function(){return ef}});var eu=ea(90278),ec=ea(96798),ed=ea(2566);function ef(ei,eo){return void 0===eo&&(eo=eu.y),ei=null!=ei?ei:eh,(0,ec.e)(function(ea,eu){var ec,ef=!0;ea.subscribe((0,ed.x)(eu,function(ea){var ed=eo(ea);(ef||!ei(ec,ed))&&(ef=!1,ec=ed,eu.next(ea))}))})}function eh(ei,eo){return ei===eo}},29127:function(ei,eo,ea){"use strict";ea.d(eo,{U:function(){return ed}});var eu=ea(96798),ec=ea(2566);function ed(ei,eo){return(0,eu.e)(function(ea,eu){var ed=0;ea.subscribe((0,ec.x)(eu,function(ea){eu.next(ei.call(eo,ea,ed++))}))})}},68380:function(ei,eo,ea){"use strict";ea.d(eo,{z:function(){return ec}});var eu=ea(97582),ec={setTimeout:function(ei,eo){for(var ea=[],ed=2;ed*/var eu=ea(48764),ec=eu.Buffer;function ed(ei,eo){for(var ea in ei)eo[ea]=ei[ea]}function ef(ei,eo,ea){return ec(ei,eo,ea)}ec.from&&ec.alloc&&ec.allocUnsafe&&ec.allocUnsafeSlow?ei.exports=eu:(ed(eu,eo),eo.Buffer=ef),ef.prototype=Object.create(ec.prototype),ed(ec,ef),ef.from=function(ei,eo,ea){if("number"==typeof ei)throw TypeError("Argument must not be a number");return ec(ei,eo,ea)},ef.alloc=function(ei,eo,ea){if("number"!=typeof ei)throw TypeError("Argument must be a number");var eu=ec(ei);return void 0!==eo?"string"==typeof ea?eu.fill(eo,ea):eu.fill(eo):eu.fill(0),eu},ef.allocUnsafe=function(ei){if("number"!=typeof ei)throw TypeError("Argument must be a number");return ec(ei)},ef.allocUnsafeSlow=function(ei){if("number"!=typeof ei)throw TypeError("Argument must be a number");return eu.SlowBuffer(ei)}},63954:function(ei,eo){"use strict";function ea(ei){if("string"!=typeof ei)throw Error(`Cannot safe json parse value of type ${typeof ei}`);try{return JSON.parse(ei)}catch(eo){return ei}}function eu(ei){return"string"==typeof ei?ei:JSON.stringify(ei,(ei,eo)=>void 0===eo?null:eo)}Object.defineProperty(eo,"__esModule",{value:!0}),eo.safeJsonParse=ea,eo.safeJsonStringify=eu},96774:function(ei){ei.exports=function(ei,eo,ea,eu){var ec=ea?ea.call(eu,ei,eo):void 0;if(void 0!==ec)return!!ec;if(ei===eo)return!0;if("object"!=typeof ei||!ei||"object"!=typeof eo||!eo)return!1;var ed=Object.keys(ei),ef=Object.keys(eo);if(ed.length!==ef.length)return!1;for(var eh=Object.prototype.hasOwnProperty.bind(eo),eg=0;eg>>25)+eu|0)&eu|~ea&ec)+eo[1]-389564586|0,ec+=((ed=(ed<<12|ed>>>20)+ea|0)&ea|~ed&eu)+eo[2]+606105819|0,eu+=((ec=(ec<<17|ec>>>15)+ed|0)&ed|~ec&ea)+eo[3]-1044525330|0,ea+=((eu=(eu<<22|eu>>>10)+ec|0)&ec|~eu&ed)+eo[4]-176418897|0,ed+=((ea=(ea<<7|ea>>>25)+eu|0)&eu|~ea&ec)+eo[5]+1200080426|0,ec+=((ed=(ed<<12|ed>>>20)+ea|0)&ea|~ed&eu)+eo[6]-1473231341|0,eu+=((ec=(ec<<17|ec>>>15)+ed|0)&ed|~ec&ea)+eo[7]-45705983|0,ea+=((eu=(eu<<22|eu>>>10)+ec|0)&ec|~eu&ed)+eo[8]+1770035416|0,ed+=((ea=(ea<<7|ea>>>25)+eu|0)&eu|~ea&ec)+eo[9]-1958414417|0,ec+=((ed=(ed<<12|ed>>>20)+ea|0)&ea|~ed&eu)+eo[10]-42063|0,eu+=((ec=(ec<<17|ec>>>15)+ed|0)&ed|~ec&ea)+eo[11]-1990404162|0,ea+=((eu=(eu<<22|eu>>>10)+ec|0)&ec|~eu&ed)+eo[12]+1804603682|0,ed+=((ea=(ea<<7|ea>>>25)+eu|0)&eu|~ea&ec)+eo[13]-40341101|0,ec+=((ed=(ed<<12|ed>>>20)+ea|0)&ea|~ed&eu)+eo[14]-1502002290|0,eu+=((ec=(ec<<17|ec>>>15)+ed|0)&ed|~ec&ea)+eo[15]+1236535329|0,ea+=((eu=(eu<<22|eu>>>10)+ec|0)&ed|ec&~ed)+eo[1]-165796510|0,ed+=((ea=(ea<<5|ea>>>27)+eu|0)&ec|eu&~ec)+eo[6]-1069501632|0,ec+=((ed=(ed<<9|ed>>>23)+ea|0)&eu|ea&~eu)+eo[11]+643717713|0,eu+=((ec=(ec<<14|ec>>>18)+ed|0)&ea|ed&~ea)+eo[0]-373897302|0,ea+=((eu=(eu<<20|eu>>>12)+ec|0)&ed|ec&~ed)+eo[5]-701558691|0,ed+=((ea=(ea<<5|ea>>>27)+eu|0)&ec|eu&~ec)+eo[10]+38016083|0,ec+=((ed=(ed<<9|ed>>>23)+ea|0)&eu|ea&~eu)+eo[15]-660478335|0,eu+=((ec=(ec<<14|ec>>>18)+ed|0)&ea|ed&~ea)+eo[4]-405537848|0,ea+=((eu=(eu<<20|eu>>>12)+ec|0)&ed|ec&~ed)+eo[9]+568446438|0,ed+=((ea=(ea<<5|ea>>>27)+eu|0)&ec|eu&~ec)+eo[14]-1019803690|0,ec+=((ed=(ed<<9|ed>>>23)+ea|0)&eu|ea&~eu)+eo[3]-187363961|0,eu+=((ec=(ec<<14|ec>>>18)+ed|0)&ea|ed&~ea)+eo[8]+1163531501|0,ea+=((eu=(eu<<20|eu>>>12)+ec|0)&ed|ec&~ed)+eo[13]-1444681467|0,ed+=((ea=(ea<<5|ea>>>27)+eu|0)&ec|eu&~ec)+eo[2]-51403784|0,ec+=((ed=(ed<<9|ed>>>23)+ea|0)&eu|ea&~eu)+eo[7]+1735328473|0,eu+=((ec=(ec<<14|ec>>>18)+ed|0)&ea|ed&~ea)+eo[12]-1926607734|0,ea+=((eu=(eu<<20|eu>>>12)+ec|0)^ec^ed)+eo[5]-378558|0,ed+=((ea=(ea<<4|ea>>>28)+eu|0)^eu^ec)+eo[8]-2022574463|0,ec+=((ed=(ed<<11|ed>>>21)+ea|0)^ea^eu)+eo[11]+1839030562|0,eu+=((ec=(ec<<16|ec>>>16)+ed|0)^ed^ea)+eo[14]-35309556|0,ea+=((eu=(eu<<23|eu>>>9)+ec|0)^ec^ed)+eo[1]-1530992060|0,ed+=((ea=(ea<<4|ea>>>28)+eu|0)^eu^ec)+eo[4]+1272893353|0,ec+=((ed=(ed<<11|ed>>>21)+ea|0)^ea^eu)+eo[7]-155497632|0,eu+=((ec=(ec<<16|ec>>>16)+ed|0)^ed^ea)+eo[10]-1094730640|0,ea+=((eu=(eu<<23|eu>>>9)+ec|0)^ec^ed)+eo[13]+681279174|0,ed+=((ea=(ea<<4|ea>>>28)+eu|0)^eu^ec)+eo[0]-358537222|0,ec+=((ed=(ed<<11|ed>>>21)+ea|0)^ea^eu)+eo[3]-722521979|0,eu+=((ec=(ec<<16|ec>>>16)+ed|0)^ed^ea)+eo[6]+76029189|0,ea+=((eu=(eu<<23|eu>>>9)+ec|0)^ec^ed)+eo[9]-640364487|0,ed+=((ea=(ea<<4|ea>>>28)+eu|0)^eu^ec)+eo[12]-421815835|0,ec+=((ed=(ed<<11|ed>>>21)+ea|0)^ea^eu)+eo[15]+530742520|0,eu+=((ec=(ec<<16|ec>>>16)+ed|0)^ed^ea)+eo[2]-995338651|0,eu=(eu<<23|eu>>>9)+ec|0,ea+=(ec^(eu|~ed))+eo[0]-198630844|0,ea=(ea<<6|ea>>>26)+eu|0,ed+=(eu^(ea|~ec))+eo[7]+1126891415|0,ed=(ed<<10|ed>>>22)+ea|0,ec+=(ea^(ed|~eu))+eo[14]-1416354905|0,ec=(ec<<15|ec>>>17)+ed|0,eu+=(ed^(ec|~ea))+eo[5]-57434055|0,eu=(eu<<21|eu>>>11)+ec|0,ea+=(ec^(eu|~ed))+eo[12]+1700485571|0,ea=(ea<<6|ea>>>26)+eu|0,ed+=(eu^(ea|~ec))+eo[3]-1894986606|0,ed=(ed<<10|ed>>>22)+ea|0,ec+=(ea^(ed|~eu))+eo[10]-1051523|0,ec=(ec<<15|ec>>>17)+ed|0,eu+=(ed^(ec|~ea))+eo[1]-2054922799|0,eu=(eu<<21|eu>>>11)+ec|0,ea+=(ec^(eu|~ed))+eo[8]+1873313359|0,ea=(ea<<6|ea>>>26)+eu|0,ed+=(eu^(ea|~ec))+eo[15]-30611744|0,ed=(ed<<10|ed>>>22)+ea|0,ec+=(ea^(ed|~eu))+eo[6]-1560198380|0,ec=(ec<<15|ec>>>17)+ed|0,eu+=(ed^(ec|~ea))+eo[13]+1309151649|0,eu=(eu<<21|eu>>>11)+ec|0,ea+=(ec^(eu|~ed))+eo[4]-145523070|0,ea=(ea<<6|ea>>>26)+eu|0,ed+=(eu^(ea|~ec))+eo[11]-1120210379|0,ed=(ed<<10|ed>>>22)+ea|0,ec+=(ea^(ed|~eu))+eo[2]+718787259|0,ec=(ec<<15|ec>>>17)+ed|0,eu+=(ed^(ec|~ea))+eo[9]-343485551|0,eu=(eu<<21|eu>>>11)+ec|0,ei[0]=ea+ei[0]|0,ei[1]=eu+ei[1]|0,ei[2]=ec+ei[2]|0,ei[3]=ed+ei[3]|0}function ec(ei){var eo,ea=[];for(eo=0;eo<64;eo+=4)ea[eo>>2]=ei.charCodeAt(eo)+(ei.charCodeAt(eo+1)<<8)+(ei.charCodeAt(eo+2)<<16)+(ei.charCodeAt(eo+3)<<24);return ea}function ed(ei){var eo,ea=[];for(eo=0;eo<64;eo+=4)ea[eo>>2]=ei[eo]+(ei[eo+1]<<8)+(ei[eo+2]<<16)+(ei[eo+3]<<24);return ea}function ef(ei){var eo,ea,ed,ef,eh,eg,em=ei.length,eb=[1732584193,-271733879,-1732584194,271733878];for(eo=64;eo<=em;eo+=64)eu(eb,ec(ei.substring(eo-64,eo)));for(ea=(ei=ei.substring(eo-64)).length,ed=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],eo=0;eo>2]|=ei.charCodeAt(eo)<<(eo%4<<3);if(ed[eo>>2]|=128<<(eo%4<<3),eo>55)for(eu(eb,ed),eo=0;eo<16;eo+=1)ed[eo]=0;return eh=parseInt((ef=(ef=8*em).toString(16).match(/(.*?)(.{0,8})$/))[2],16),eg=parseInt(ef[1],16)||0,ed[14]=eh,ed[15]=eg,eu(eb,ed),eb}function eh(ei){var eo,ea,ec,ef,eh,eg,em=ei.length,eb=[1732584193,-271733879,-1732584194,271733878];for(eo=64;eo<=em;eo+=64)eu(eb,ed(ei.subarray(eo-64,eo)));for(ea=(ei=eo-64>2]|=ei[eo]<<(eo%4<<3);if(ec[eo>>2]|=128<<(eo%4<<3),eo>55)for(eu(eb,ec),eo=0;eo<16;eo+=1)ec[eo]=0;return eh=parseInt((ef=(ef=8*em).toString(16).match(/(.*?)(.{0,8})$/))[2],16),eg=parseInt(ef[1],16)||0,ec[14]=eh,ec[15]=eg,eu(eb,ec),eb}function eg(ei){var eo,eu="";for(eo=0;eo<4;eo+=1)eu+=ea[ei>>8*eo+4&15]+ea[ei>>8*eo&15];return eu}function em(ei){var eo;for(eo=0;eo>16)+(eo>>16)+(ea>>16)<<16|65535&ea}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function eo(ei,eo){return(ei=0|ei||0)<0?Math.max(ei+eo,0):Math.min(ei,eo)}ArrayBuffer.prototype.slice=function(ea,eu){var ec,ed,ef,eh,eg=this.byteLength,em=eo(ea,eg),eb=eg;return(ei!==eu&&(eb=eo(eu,eg)),em>eb)?new ArrayBuffer(0):(ec=eb-em,ed=new ArrayBuffer(ec),ef=new Uint8Array(ed),eh=new Uint8Array(this,em,ec),ef.set(eh),ed)}}(),eA.prototype.append=function(ei){return this.appendBinary(eb(ei)),this},eA.prototype.appendBinary=function(ei){this._buff+=ei,this._length+=ei.length;var eo,ea=this._buff.length;for(eo=64;eo<=ea;eo+=64)eu(this._hash,ec(this._buff.substring(eo-64,eo)));return this._buff=this._buff.substring(eo-64),this},eA.prototype.end=function(ei){var eo,ea,eu=this._buff,ec=eu.length,ed=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(eo=0;eo>2]|=eu.charCodeAt(eo)<<(eo%4<<3);return this._finish(ed,ec),ea=em(this._hash),ei&&(ea=eE(ea)),this.reset(),ea},eA.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},eA.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},eA.prototype.setState=function(ei){return this._buff=ei.buff,this._length=ei.length,this._hash=ei.hash,this},eA.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},eA.prototype._finish=function(ei,eo){var ea,ec,ed,ef=eo;if(ei[ef>>2]|=128<<(ef%4<<3),ef>55)for(eu(this._hash,ei),ef=0;ef<16;ef+=1)ei[ef]=0;ec=parseInt((ea=(ea=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),ed=parseInt(ea[1],16)||0,ei[14]=ec,ei[15]=ed,eu(this._hash,ei)},eA.hash=function(ei,eo){return eA.hashBinary(eb(ei),eo)},eA.hashBinary=function(ei,eo){var ea=em(ef(ei));return eo?eE(ea):ea},eA.ArrayBuffer=function(){this.reset()},eA.ArrayBuffer.prototype.append=function(ei){var eo,ea=eS(this._buff.buffer,ei,!0),ec=ea.length;for(this._length+=ei.byteLength,eo=64;eo<=ec;eo+=64)eu(this._hash,ed(ea.subarray(eo-64,eo)));return this._buff=new Uint8Array(eo-64>2]|=eu[eo]<<(eo%4<<3);return this._finish(ed,ec),ea=em(this._hash),ei&&(ea=eE(ea)),this.reset(),ea},eA.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},eA.ArrayBuffer.prototype.getState=function(){var ei=eA.prototype.getState.call(this);return ei.buff=e_(ei.buff),ei},eA.ArrayBuffer.prototype.setState=function(ei){return ei.buff=ew(ei.buff,!0),eA.prototype.setState.call(this,ei)},eA.ArrayBuffer.prototype.destroy=eA.prototype.destroy,eA.ArrayBuffer.prototype._finish=eA.prototype._finish,eA.ArrayBuffer.hash=function(ei,eo){var ea=em(eh(new Uint8Array(ei)));return eo?eE(ea):ea},eA})},80500:function(ei){"use strict";ei.exports=(ei,eo)=>{if(!("string"==typeof ei&&"string"==typeof eo))throw TypeError("Expected the arguments to be of type `string`");if(""===eo)return[ei];let ea=ei.indexOf(eo);return-1===ea?[ei]:[ei.slice(0,ea),ei.slice(ea+eo.length)]}},70610:function(ei){"use strict";ei.exports=ei=>encodeURIComponent(ei).replace(/[!'()*]/g,ei=>`%${ei.charCodeAt(0).toString(16).toUpperCase()}`)},68458:function(ei,eo,ea){"use strict";ea.r(eo),ea.d(eo,{ServerStyleSheet:function(){return nH},StyleSheetConsumer:function(){return nh},StyleSheetContext:function(){return nf},StyleSheetManager:function(){return ny},ThemeConsumer:function(){return nI},ThemeContext:function(){return nO},ThemeProvider:function(){return nD},__PRIVATE__:function(){return nW},createGlobalStyle:function(){return nG},css:function(){return nL},default:function(){return nU},isStyledComponent:function(){return rk},keyframes:function(){return nV},styled:function(){return nU},useTheme:function(){return nP},version:function(){return tI},withTheme:function(){return nq}});var eu=ea(97582),ec=ea(67294),ed=ea(96774),ef=ea.n(ed),eh="-ms-",eg="-moz-",em="-webkit-",eb="comm",ew="rule",e_="decl",eS="@import",eE="@keyframes",eA="@layer",eT=Math.abs,ek=String.fromCharCode,eC=Object.assign;function eO(ei,eo){return 45^eM(ei,0)?(((eo<<2^eM(ei,0))<<2^eM(ei,1))<<2^eM(ei,2))<<2^eM(ei,3):0}function eI(ei){return ei.trim()}function eP(ei,eo){return(ei=eo.exec(ei))?ei[0]:ei}function eD(ei,eo,ea){return ei.replace(eo,ea)}function eN(ei,eo){return ei.indexOf(eo)}function eM(ei,eo){return 0|ei.charCodeAt(eo)}function ej(ei,eo,ea){return ei.slice(eo,ea)}function eR(ei){return ei.length}function eL(ei){return ei.length}function eF(ei,eo){return eo.push(ei),ei}function eB(ei,eo){return ei.map(eo).join("")}function eU(ei,eo){return ei.filter(function(ei){return!eP(ei,eo)})}var eG=1,eV=1,eH=0,eW=0,eK=0,eY="";function eZ(ei,eo,ea,eu,ec,ed,ef,eh){return{value:ei,root:eo,parent:ea,type:eu,props:ec,children:ed,line:eG,column:eV,length:ef,return:"",siblings:eh}}function e$(ei,eo){return eC(eZ("",null,null,"",null,null,0,ei.siblings),ei,{length:-ei.length},eo)}function eJ(ei){for(;ei.root;)ei=e$(ei.root,{children:[ei]});eF(ei,ei.siblings)}function eQ(){return eK}function eX(){return eK=eW>0?eM(eY,--eW):0,eV--,10===eK&&(eV=1,eG--),eK}function e0(){return eK=eW2||e6(eK)>3?"":" "}function tu(ei,eo){for(;--eo&&e0()&&!(eK<48)&&!(eK>102)&&(!(eK>57)||!(eK<65))&&(!(eK>70)||!(eK<97)););return e4(ei,e5()+(eo<6&&32==e3()&&32==e0()))}function tc(ei){for(;e0();)switch(eK){case ei:return eW;case 34:case 39:34!==ei&&39!==ei&&tc(eK);break;case 40:41===ei&&tc(ei);break;case 92:e0()}return eW}function td(ei,eo){for(;e0();)if(ei+eK===57)break;else if(ei+eK===84&&47===e3())break;return"/*"+e4(eo,eW-1)+"*"+ek(47===ei?ei:e0())}function tf(ei){for(;!e6(e3());)e0();return e4(ei,eW)}function tp(ei,eo){for(var ea="",eu=0;eu6)switch(eM(ei,eo+1)){case 109:if(45!==eM(ei,eo+4))break;case 102:return eD(ei,/(.+:)(.+)-([^]+)/,"$1"+em+"$2-$3$1"+eg+(108==eM(ei,eo+3)?"$3":"$2-$3"))+ei;case 115:return~eN(ei,"stretch")?tm(eD(ei,"stretch","fill-available"),eo,ea)+ei:ei}break;case 5152:case 5920:return eD(ei,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(eo,ea,eu,ec,ed,ef,eg){return eh+ea+":"+eu+eg+(ec?eh+ea+"-span:"+(ed?ef:+ef-+eu)+eg:"")+ei});case 4949:if(121===eM(ei,eo+6))return eD(ei,":",":"+em)+ei;break;case 6444:switch(eM(ei,45===eM(ei,14)?18:11)){case 120:return eD(ei,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+em+(45===eM(ei,14)?"inline-":"")+"box$3$1"+em+"$2$3$1"+eh+"$2box$3")+ei;case 100:return eD(ei,":",":"+eh)+ei}break;case 5719:case 2647:case 2135:case 3927:case 2391:return eD(ei,"scroll-","scroll-snap-")+ei}return ei}function tv(ei){var eo=eL(ei);return function(ea,eu,ec,ed){for(var ef="",eh=0;eh-1&&!ei.return)switch(ei.type){case e_:ei.return=tm(ei.value,ei.length,ea);return;case eE:return tp([e$(ei,{value:eD(ei.value,"@","@"+em)})],eu);case ew:if(ei.length)return eB(ea=ei.props,function(eo){switch(eP(eo,eu=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":eJ(e$(ei,{props:[eD(eo,/:(read-\w+)/,":"+eg+"$1")]})),eJ(e$(ei,{props:[eo]})),eC(ei,{props:eU(ea,eu)});break;case"::placeholder":eJ(e$(ei,{props:[eD(eo,/:(plac\w+)/,":"+em+"input-$1")]})),eJ(e$(ei,{props:[eD(eo,/:(plac\w+)/,":"+eg+"$1")]})),eJ(e$(ei,{props:[eD(eo,/:(plac\w+)/,eh+"input-$1")]})),eJ(e$(ei,{props:[eo]})),eC(ei,{props:eU(ea,eu)})}return""})}}function t_(ei){return e9(tS("",null,null,null,[""],ei=e8(ei),0,[0],ei))}function tS(ei,eo,ea,eu,ec,ed,ef,eh,eg){for(var em=0,eb=0,ew=ef,e_=0,eS=0,eE=0,eA=1,eT=1,eC=1,eO=0,eI="",eP=ec,ej=ed,eL=eu,eB=eI;eT;)switch(eE=eO,eO=e0()){case 40:if(108!=eE&&58==eM(eB,ew-1)){-1!=eN(eB+=eD(e7(eO),"&","&\f"),"&\f")&&(eC=-1);break}case 34:case 39:case 91:eB+=e7(eO);break;case 9:case 10:case 13:case 32:eB+=ta(eE);break;case 92:eB+=tu(e5()-1,7);continue;case 47:switch(e3()){case 42:case 47:eF(tA(td(e0(),e5()),eo,ea,eg),eg);break;default:eB+="/"}break;case 123*eA:eh[em++]=eR(eB)*eC;case 125*eA:case 59:case 0:switch(eO){case 0:case 125:eT=0;case 59+eb:-1==eC&&(eB=eD(eB,/\f/g,"")),eS>0&&eR(eB)-ew&&eF(eS>32?tT(eB+";",eu,ea,ew-1,eg):tT(eD(eB," ","")+";",eu,ea,ew-2,eg),eg);break;case 59:eB+=";";default:if(eF(eL=tE(eB,eo,ea,em,eb,ec,eh,eI,eP=[],ej=[],ew,ed),ed),123===eO){if(0===eb)tS(eB,eo,eL,eL,eP,ed,ew,eh,ej);else switch(99===e_&&110===eM(eB,3)?100:e_){case 100:case 108:case 109:case 115:tS(ei,eL,eL,eu&&eF(tE(ei,eL,eL,0,0,ec,eh,eI,ec,eP=[],ew,ej),ej),ec,ej,ew,eh,eu?eP:ej);break;default:tS(eB,eL,eL,eL,[""],ej,0,eh,ej)}}}em=eb=eS=0,eA=eC=1,eI=eB="",ew=ef;break;case 58:ew=1+eR(eB),eS=eE;default:if(eA<1){if(123==eO)--eA;else if(125==eO&&0==eA++&&125==eX())continue}switch(eB+=ek(eO),eO*eA){case 38:eC=eb>0?1:(eB+="\f",-1);break;case 44:eh[em++]=(eR(eB)-1)*eC,eC=1;break;case 64:45===e3()&&(eB+=e7(e0())),e_=e3(),eb=ew=eR(eI=eB+=tf(e5())),eO++;break;case 45:45===eE&&2==eR(eB)&&(eA=0)}}return ed}function tE(ei,eo,ea,eu,ec,ed,ef,eh,eg,em,eb,e_){for(var eS=ec-1,eE=0===ec?ed:[""],eA=eL(eE),ek=0,eC=0,eO=0;ek0?eE[eP]+" "+eN:eD(eN,/&\f/g,eE[eP])))&&(eg[eO++]=eM);return eZ(ei,eo,ea,0===ec?ew:eh,eg,em,eb,e_)}function tA(ei,eo,ea,eu){return eZ(ei,eo,ea,eb,ek(eQ()),ej(ei,2,-2),0,eu)}function tT(ei,eo,ea,eu,ec){return eZ(ei,eo,ea,e_,ej(ei,0,eu),ej(ei,eu+1,-1),eu,ec)}var tk={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},tC=ea(83454),tO=void 0!==tC&&void 0!==tC.env&&(tC.env.REACT_APP_SC_ATTR||tC.env.SC_ATTR)||"data-styled",tI="6.1.0",tP="undefined"!=typeof window&&"HTMLElement"in window,tD=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==tC&&void 0!==tC.env&&void 0!==tC.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==tC.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==tC.env.REACT_APP_SC_DISABLE_SPEEDY&&tC.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==tC&&void 0!==tC.env&&void 0!==tC.env.SC_DISABLE_SPEEDY&&""!==tC.env.SC_DISABLE_SPEEDY&&"false"!==tC.env.SC_DISABLE_SPEEDY&&tC.env.SC_DISABLE_SPEEDY),tN={},tM=Object.freeze([]),tj=Object.freeze({});function tR(ei,eo,ea){return void 0===ea&&(ea=tj),ei.theme!==ea.theme&&ei.theme||eo||ea.theme}var tL=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),tF=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tB=/(^-|-$)/g;function tU(ei){return ei.replace(tF,"-").replace(tB,"")}var tG=/(a)(d)/gi,tV=function(ei){return String.fromCharCode(ei+(ei>25?39:97))};function tq(ei){var eo,ea="";for(eo=Math.abs(ei);eo>52;eo=eo/52|0)ea=tV(eo%52)+ea;return(tV(eo%52)+ea).replace(tG,"$1-$2")}var tH,tW=function(ei,eo){for(var ea=eo.length;ea;)ei=33*ei^eo.charCodeAt(--ea);return ei},tK=function(ei){return tW(5381,ei)};function tY(ei){return tq(tK(ei)>>>0)}function tZ(ei){return ei.displayName||ei.name||"Component"}function t$(ei){return"string"==typeof ei}var tJ="function"==typeof Symbol&&Symbol.for,tQ=tJ?Symbol.for("react.memo"):60115,tX=tJ?Symbol.for("react.forward_ref"):60112,ra={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ru={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},rc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rf=((tH={})[tX]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tH[tQ]=rc,tH);function rh(ei){var eo;return("type"in(eo=ei)&&eo.type.$$typeof)===tQ?rc:"$$typeof"in ei?rf[ei.$$typeof]:ra}var rp=Object.defineProperty,ry=Object.getOwnPropertyNames,rw=Object.getOwnPropertySymbols,r_=Object.getOwnPropertyDescriptor,rS=Object.getPrototypeOf,rE=Object.prototype;function rA(ei,eo,ea){if("string"!=typeof eo){if(rE){var eu=rS(eo);eu&&eu!==rE&&rA(ei,eu,ea)}var ec=ry(eo);rw&&(ec=ec.concat(rw(eo)));for(var ed=rh(ei),ef=rh(eo),eh=0;eh0?" Args: ".concat(eo.join(", ")):""))}var rM=function(){function ei(ei){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=ei}return ei.prototype.indexOfGroup=function(ei){for(var eo=0,ea=0;ea=this.groupSizes.length){for(var ea=this.groupSizes,eu=ea.length,ec=eu;ei>=ec;)if((ec<<=1)<0)throw rN(16,"".concat(ei));this.groupSizes=new Uint32Array(ec),this.groupSizes.set(ea),this.length=ec;for(var ed=eu;ed=this.length||0===this.groupSizes[ei])return eo;for(var ea=this.groupSizes[ei],eu=this.indexOfGroup(ei),ec=eu+ea,ed=eu;ed=0){var ea=document.createTextNode(eo);return this.element.insertBefore(ea,this.nodes[ei]||null),this.length++,!0}return!1},ei.prototype.deleteRule=function(ei){this.element.removeChild(this.nodes[ei]),this.length--},ei.prototype.getRule=function(ei){return ei0&&(eg+="".concat(ei,","))}),eu+="".concat(ef).concat(eh,'{content:"').concat(eg,'"}').concat("/*!sc*/\n")},ed=0;ed0?".".concat(eo):ei},eb=eg.slice();eb.push(function(ei){ei.type===ew&&ei.value.includes("&")&&(ei.props[0]=ei.props[0].replace(rQ,ea).replace(eu,em))}),ef.prefix&&eb.push(tw),eb.push(tg);var e_=function(ei,ec,ed,eh){void 0===ec&&(ec=""),void 0===ed&&(ed=""),void 0===eh&&(eh="&"),eo=eh,ea=ec,eu=RegExp("\\".concat(ea,"\\b"),"g");var eg=ei.replace(rX,""),em=t_(ed||ec?"".concat(ed," ").concat(ec," { ").concat(eg," }"):eg);ef.namespace&&(em=ni(em,ef.namespace));var ew=[];return tp(em,tv(eb.concat(tb(function(ei){return ew.push(ei)})))),ew};return e_.hash=eg.length?eg.reduce(function(ei,eo){return eo.name||rN(15),tW(ei,eo.name)},5381).toString():"",e_}var nu=new rJ,nd=no(),nf=ec.createContext({shouldForwardProp:void 0,styleSheet:nu,stylis:nd}),nh=nf.Consumer,np=ec.createContext(void 0);function ng(){return(0,ec.useContext)(nf)}function ny(ei){var eo=(0,ec.useState)(ei.stylisPlugins),ea=eo[0],eu=eo[1],ed=ng().styleSheet,eh=(0,ec.useMemo)(function(){var eo=ed;return ei.sheet?eo=ei.sheet:ei.target&&(eo=eo.reconstructWithOptions({target:ei.target},!1)),ei.disableCSSOMInjection&&(eo=eo.reconstructWithOptions({useCSSOMInjection:!1})),eo},[ei.disableCSSOMInjection,ei.sheet,ei.target,ed]),eg=(0,ec.useMemo)(function(){return no({options:{namespace:ei.namespace,prefix:ei.enableVendorPrefixes},plugins:ea})},[ei.enableVendorPrefixes,ei.namespace,ea]);(0,ec.useEffect)(function(){ef()(ea,ei.stylisPlugins)||eu(ei.stylisPlugins)},[ei.stylisPlugins]);var em=(0,ec.useMemo)(function(){return{shouldForwardProp:ei.shouldForwardProp,styleSheet:eh,stylis:eg}},[ei.shouldForwardProp,eh,eg]);return ec.createElement(nf.Provider,{value:em},ec.createElement(np.Provider,{value:eg},ei.children))}var nw=function(){function ei(ei,eo){var ea=this;this.inject=function(ei,eo){void 0===eo&&(eo=nd);var eu=ea.name+eo.hash;ei.hasNameForId(ea.id,eu)||ei.insertRules(ea.id,eu,eo(ea.rules,eu,"@keyframes"))},this.name=ei,this.id="sc-keyframes-".concat(ei),this.rules=eo,rD(this,function(){throw rN(12,String(ea.name))})}return ei.prototype.getName=function(ei){return void 0===ei&&(ei=nd),this.name+ei.hash},ei}(),n_=function(ei){return ei>="A"&&ei<="Z"};function nS(ei){for(var eo="",ea=0;ea>>0);if(!eo.hasNameForId(this.componentId,ed)){var ef=ea(ec,".".concat(ed),void 0,this.componentId);eo.insertRules(this.componentId,ed,ef)}eu=rC(eu,ed),this.staticRulesId=ed}}else{for(var eh=tW(this.baseHash,ea.hash),eg="",em=0;em>>0);eo.hasNameForId(this.componentId,e_)||eo.insertRules(this.componentId,e_,ea(eg,".".concat(e_),void 0,this.componentId)),eu=rC(eu,e_)}}return eu},ei}(),nO=ec.createContext(void 0),nI=nO.Consumer;function nP(){var ei=(0,ec.useContext)(nO);if(!ei)throw rN(18);return ei}function nD(ei){var eo=ec.useContext(nO),ea=(0,ec.useMemo)(function(){return function(ei,eo){if(!ei)throw rN(14);if(rT(ei))return ei(eo);if(Array.isArray(ei)||"object"!=typeof ei)throw rN(8);return eo?(0,eu.pi)((0,eu.pi)({},eo),ei):ei}(ei.theme,eo)},[ei.theme,eo]);return ei.children?ec.createElement(nO.Provider,{value:ea},ei.children):null}var nN={};function nM(ei,eo,ea){var ed=rk(ei),ef=ei,eh=!t$(ei),eg=eo.attrs,em=void 0===eg?tM:eg,eb=eo.componentId,ew=void 0===eb?function(ei,eo){var ea="string"!=typeof ei?"sc":tU(ei);nN[ea]=(nN[ea]||0)+1;var eu="".concat(ea,"-").concat(tY("6.1.0"+ea+nN[ea]));return eo?"".concat(eo,"-").concat(eu):eu}(eo.displayName,eo.parentComponentId):eb,e_=(void 0===eo.displayName&&function(ei){t$(ei)||tZ(ei)}(ei),eo.displayName&&eo.componentId?"".concat(tU(eo.displayName),"-").concat(eo.componentId):eo.componentId||ew),eS=ed&&ef.attrs?ef.attrs.concat(em).filter(Boolean):em,eE=eo.shouldForwardProp;if(ed&&ef.shouldForwardProp){var eA=ef.shouldForwardProp;if(eo.shouldForwardProp){var eT=eo.shouldForwardProp;eE=function(ei,eo){return eA(ei,eo)&&eT(ei,eo)}}else eE=eA}var ek=new nC(ea,e_,ed?ef.componentStyle:void 0);function eC(ei,eo){return function(ei,eo,ea){var ed=ei.attrs,ef=ei.componentStyle,eh=ei.defaultProps,eg=ei.foldedComponentIds,em=ei.styledComponentId,eb=ei.target,ew=ec.useContext(nO),e_=ng(),eS=ei.shouldForwardProp||e_.shouldForwardProp,eE=function(ei,eo,ea){for(var ec,ed=(0,eu.pi)((0,eu.pi)({},eo),{className:void 0,theme:ea}),ef=0;ef2&&rJ.registerId(this.componentId+ei),this.removeStyles(ei,ea),this.createStyles(ei,eo,ea,eu)},ei}();function nG(ei){for(var eo=[],ea=1;ea").concat(eo,"")},this.getStyleTags=function(){if(ei.sealed)throw rN(2);return ei._emitSheetCSS()},this.getStyleElement=function(){if(ei.sealed)throw rN(2);var eo,ea=((eo={})[tO]="",eo["data-styled-version"]="6.1.0",eo.dangerouslySetInnerHTML={__html:ei.instance.toString()},eo),ed=rq();return ed&&(ea.nonce=ed),[ec.createElement("style",(0,eu.pi)({},ea,{key:"sc-0-0"}))]},this.seal=function(){ei.sealed=!0},this.instance=new rJ({isServer:!0}),this.sealed=!1}return ei.prototype.collectStyles=function(ei){if(this.sealed)throw rN(2);return ec.createElement(ny,{sheet:this.instance},ei)},ei.prototype.interleaveWithNodeStream=function(ei){throw rN(3)},ei}(),nW={StyleSheet:rJ,mainSheet:nu}},34760:function(ei){var eo=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],ea=eo.join(","),eu="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function ec(ei,eo){eo=eo||{};var ec,ef,eh,eg=[],em=[],e_=ei.querySelectorAll(ea);for(eo.includeContainer&&eu.call(ei,ea)&&(e_=Array.prototype.slice.apply(e_)).unshift(ei),ec=0;eceb(ei))}function ef(ei){if(!ei)throw Error("No node provided");return!1!==eu.call(ei,ea)&&ed(ei)}function eh(ei){return!(ei.disabled||eE(ei)||eO(ei))}ec.isTabbable=ef,ec.isFocusable=em;var eg=eo.concat("iframe").join(",");function em(ei){if(!ei)throw Error("No node provided");return!1!==eu.call(ei,eg)&&eh(ei)}function eb(ei){var eo=parseInt(ei.getAttribute("tabindex"),10);return isNaN(eo)?e_(ei)?0:ei.tabIndex:eo}function ew(ei,eo){return ei.tabIndex===eo.tabIndex?ei.documentOrder-eo.documentOrder:ei.tabIndex-eo.tabIndex}function e_(ei){return"true"===ei.contentEditable}function eS(ei){return"INPUT"===ei.tagName}function eE(ei){return eS(ei)&&"hidden"===ei.type}function eA(ei){return eS(ei)&&"radio"===ei.type}function eT(ei){return eA(ei)&&!eC(ei)}function ek(ei){for(var eo=0;eoei.match(eo)||[],eu=ei=>ei[0].toUpperCase()+ei.slice(1),ec=(ei,eo)=>ea(ei).join(eo).toLowerCase(),ed=ei=>ea(ei).reduce((ei,eo)=>`${ei}${ei?eo[0].toUpperCase()+eo.slice(1).toLowerCase():eo.toLowerCase()}`,""),ef=ei=>eu(ed(ei)),eh=ei=>ec(ei,"_"),eg=ei=>ec(ei,"-"),em=ei=>eu(ec(ei," ")),eb=ei=>ea(ei).map(eu).join(" ");ei.exports={words:ea,upperFirst:eu,camelCase:ed,pascalCase:ef,snakeCase:eh,kebabCase:eg,sentenceCase:em,titleCase:eb}},94633:function(ei){function eo(ei,eo){var ea=ei.length,ed=Array(ea),ef={},eh=ea,eg=eu(eo),em=ec(ei);for(eo.forEach(function(ei){if(!em.has(ei[0])||!em.has(ei[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});eh--;)ef[eh]||eb(ei[eh],eh,new Set);return ed;function eb(ei,eo,eu){if(eu.has(ei)){var ec;try{ec=", node was:"+JSON.stringify(ei)}catch(ei){ec=""}throw Error("Cyclic dependency"+ec)}if(!em.has(ei))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(ei));if(!ef[eo]){ef[eo]=!0;var eh=eg.get(ei)||new Set;if(eh=Array.from(eh),eo=eh.length){eu.add(ei);do{var ew=eh[--eo];eb(ew,em.get(ew),eu)}while(eo);eu.delete(ei)}ed[--ea]=ei}}}function ea(ei){for(var eo=new Set,ea=0,eu=ei.length;ea0?2===ef.length?typeof ef[1]==em?this[ef[0]]=ef[1].call(this,eg):this[ef[0]]=ef[1]:3===ef.length?typeof ef[1]!==em||ef[1].exec&&ef[1].test?this[ef[0]]=eg?eg.replace(ef[1],ef[2]):ed:this[ef[0]]=eg?ef[1].call(this,eg,ef[2]):ed:4===ef.length&&(this[ef[0]]=eg?ef[3].call(this,eg.replace(ef[1],ef[2])):ed):this[ef]=eg||ed;eb+=2}},tp=function(ei,eo){for(var ea in eo)if(typeof eo[ea]===ew&&eo[ea].length>0){for(var eu=0;eu2&&(ei[eE]="iPad",ei[eT]=eD),ei},this.getEngine=function(){var ei={};return ei[eA]=ed,ei[eC]=ed,tf.call(ei,eu,eg.engine),ei},this.getOS=function(){var ei={};return ei[eA]=ed,ei[eC]=ed,tf.call(ei,eu,eg.os),eI&&!ei[eA]&&ef&&"Unknown"!=ef.platform&&(ei[eA]=ef.platform.replace(/chrome os/i,e6).replace(/macos/i,e8)),ei},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return eu},this.setUA=function(ei){return eu=typeof ei===e_&&ei.length>eR?td(ei,eR):ei,this},this.setUA(eu),this};tv.VERSION=ef,tv.BROWSER=e7([eA,eC,eS]),tv.CPU=e7([eO]),tv.DEVICE=e7([eE,ek,eT,eI,eP,eN,eD,eM,ej]),tv.ENGINE=tv.OS=e7([eA,eC]),typeof eo!==eb?("object"!==eb&&ei.exports&&(eo=ei.exports=tv),eo.UAParser=tv):"function"===em&&ea.amdO?(eu=(function(){return tv}).call(eo,ea,eo,ei),ed!==eu&&(ei.exports=eu)):typeof ec!==eb&&(ec.UAParser=tv);var tb=typeof ec!==eb&&(ec.jQuery||ec.Zepto);if(tb&&!tb.ua){var tw=new tv;tb.ua=tw.getResult(),tb.ua.get=function(){return tw.getUA()},tb.ua.set=function(ei){tw.setUA(ei);var eo=tw.getResult();for(var ea in eo)tb.ua[ea]=eo[ea]}}}("object"==typeof window?window:this)},94788:function(){},60540:function(ei,eo){!function(ei,ea){ea(eo)}(0,function(ei){"use strict";function eo(){for(var ei=arguments.length,eo=Array(ei),ea=0;ea1))return eo[0];eo[0]=eo[0].slice(0,-1);for(var eu=eo.length-1,ec=1;ec= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ej=35,eR=Math.floor,eL=String.fromCharCode;function eF(ei){throw RangeError(eM[ei])}function eB(ei,eo){for(var ea=[],eu=ei.length;eu--;)ea[eu]=eo(ei[eu]);return ea}function eU(ei,eo){var ea=ei.split("@"),eu="";return ea.length>1&&(eu=ea[0]+"@",ei=ea[1]),eu+eB((ei=ei.replace(eN,".")).split("."),eo).join(".")}function eG(ei){for(var eo=[],ea=0,eu=ei.length;ea=55296&&ec<=56319&&ea>1,ei+=eR(ei/eo);ei>ej*eA>>1;eu+=eS)ei=eR(ei/ej);return eR(eu+(ej+1)*ei/(ei+eT))},eK=function(ei){var eo=[],ea=ei.length,eu=0,ec=eO,ed=eC,ef=ei.lastIndexOf(eI);ef<0&&(ef=0);for(var eh=0;eh=128&&eF("not-basic"),eo.push(ei.charCodeAt(eh));for(var eg=ef>0?ef+1:0;eg=ea&&eF("invalid-input");var eT=eV(ei.charCodeAt(eg++));(eT>=eS||eT>eR((e_-eu)/eb))&&eF("overflow"),eu+=eT*eb;var ek=ew<=ed?eE:ew>=ed+eA?eA:ew-ed;if(eTeR(e_/eP)&&eF("overflow"),eb*=eP}var eD=eo.length+1;ed=eW(eu-em,eD,0==em),eR(eu/eD)>e_-ec&&eF("overflow"),ec+=eR(eu/eD),eu%=eD,eo.splice(eu++,0,ec)}return String.fromCodePoint.apply(String,eo)},eY=function(ei){var eo=[],ea=(ei=eG(ei)).length,eu=eO,ec=0,ed=eC,ef=!0,eh=!1,eg=void 0;try{for(var em,eb=ei[Symbol.iterator]();!(ef=(em=eb.next()).done);ef=!0){var ew=em.value;ew<128&&eo.push(eL(ew))}}catch(ei){eh=!0,eg=ei}finally{try{!ef&&eb.return&&eb.return()}finally{if(eh)throw eg}}var eT=eo.length,ek=eT;for(eT&&eo.push(eI);ek=eu&&eUeR((e_-ec)/eV)&&eF("overflow"),ec+=(eP-eu)*eV,eu=eP;var eK=!0,eY=!1,eZ=void 0;try{for(var e$,eJ=ei[Symbol.iterator]();!(eK=(e$=eJ.next()).done);eK=!0){var eQ=e$.value;if(eQe_&&eF("overflow"),eQ==eu){for(var eX=ec,e0=eS;;e0+=eS){var e3=e0<=ed?eE:e0>=ed+eA?eA:e0-ed;if(eX>6|192).toString(16).toUpperCase()+"%"+(63&eo|128).toString(16).toUpperCase():"%"+(eo>>12|224).toString(16).toUpperCase()+"%"+(eo>>6&63|128).toString(16).toUpperCase()+"%"+(63&eo|128).toString(16).toUpperCase()}function e0(ei){for(var eo="",ea=0,eu=ei.length;ea=194&&ec<224?(eu-ea>=6?eo+=String.fromCharCode((31&ec)<<6|63&parseInt(ei.substr(ea+4,2),16)):eo+=ei.substr(ea,6),ea+=6):ec>=224?(eu-ea>=9?eo+=String.fromCharCode((15&ec)<<12|(63&parseInt(ei.substr(ea+4,2),16))<<6|63&parseInt(ei.substr(ea+7,2),16)):eo+=ei.substr(ea,9),ea+=9):(eo+=ei.substr(ea,3),ea+=3)}return eo}function e3(ei,eo){function ea(ei){var ea=e0(ei);return ea.match(eo.UNRESERVED)?ea:ei}return ei.scheme&&(ei.scheme=String(ei.scheme).replace(eo.PCT_ENCODED,ea).toLowerCase().replace(eo.NOT_SCHEME,"")),void 0!==ei.userinfo&&(ei.userinfo=String(ei.userinfo).replace(eo.PCT_ENCODED,ea).replace(eo.NOT_USERINFO,eX).replace(eo.PCT_ENCODED,ec)),void 0!==ei.host&&(ei.host=String(ei.host).replace(eo.PCT_ENCODED,ea).toLowerCase().replace(eo.NOT_HOST,eX).replace(eo.PCT_ENCODED,ec)),void 0!==ei.path&&(ei.path=String(ei.path).replace(eo.PCT_ENCODED,ea).replace(ei.scheme?eo.NOT_PATH:eo.NOT_PATH_NOSCHEME,eX).replace(eo.PCT_ENCODED,ec)),void 0!==ei.query&&(ei.query=String(ei.query).replace(eo.PCT_ENCODED,ea).replace(eo.NOT_QUERY,eX).replace(eo.PCT_ENCODED,ec)),void 0!==ei.fragment&&(ei.fragment=String(ei.fragment).replace(eo.PCT_ENCODED,ea).replace(eo.NOT_FRAGMENT,eX).replace(eo.PCT_ENCODED,ec)),ei}function e5(ei){return ei.replace(/^0*(.*)/,"$1")||"0"}function e4(ei,eo){var ea=eb(ei.match(eo.IPV4ADDRESS)||[],2)[1];return ea?ea.split(".").map(e5).join("."):ei}function e6(ei,eo){var ea=eb(ei.match(eo.IPV6ADDRESS)||[],3),eu=ea[1],ec=ea[2];if(!eu)return ei;for(var ed=eb(eu.toLowerCase().split("::").reverse(),2),ef=ed[0],eh=ed[1],eg=eh?eh.split(":").map(e5):[],em=ef.split(":").map(e5),ew=eo.IPV4ADDRESS.test(em[em.length-1]),e_=ew?7:8,eS=em.length-e_,eE=Array(e_),eA=0;eA1){var eC=eE.slice(0,eT.index),eO=eE.slice(eT.index+eT.length);ek=eC.join(":")+"::"+eO.join(":")}else ek=eE.join(":");return ec&&(ek+="%"+ec),ek}var e8=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,e9=void 0==="".match(/(){0}/)[1];function e7(ei){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ea={},eu=!1!==eo.iri?em:eg;"suffix"===eo.reference&&(ei=(eo.scheme?eo.scheme+":":"")+"//"+ei);var ec=ei.match(e8);if(ec){e9?(ea.scheme=ec[1],ea.userinfo=ec[3],ea.host=ec[4],ea.port=parseInt(ec[5],10),ea.path=ec[6]||"",ea.query=ec[7],ea.fragment=ec[8],isNaN(ea.port)&&(ea.port=ec[5])):(ea.scheme=ec[1]||void 0,ea.userinfo=-1!==ei.indexOf("@")?ec[3]:void 0,ea.host=-1!==ei.indexOf("//")?ec[4]:void 0,ea.port=parseInt(ec[5],10),ea.path=ec[6]||"",ea.query=-1!==ei.indexOf("?")?ec[7]:void 0,ea.fragment=-1!==ei.indexOf("#")?ec[8]:void 0,isNaN(ea.port)&&(ea.port=ei.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ec[4]:void 0)),ea.host&&(ea.host=e6(e4(ea.host,eu),eu)),void 0!==ea.scheme||void 0!==ea.userinfo||void 0!==ea.host||void 0!==ea.port||ea.path||void 0!==ea.query?void 0===ea.scheme?ea.reference="relative":void 0===ea.fragment?ea.reference="absolute":ea.reference="uri":ea.reference="same-document",eo.reference&&"suffix"!==eo.reference&&eo.reference!==ea.reference&&(ea.error=ea.error||"URI is not a "+eo.reference+" reference.");var ed=eQ[(eo.scheme||ea.scheme||"").toLowerCase()];if(eo.unicodeSupport||ed&&ed.unicodeSupport)e3(ea,eu);else{if(ea.host&&(eo.domainHost||ed&&ed.domainHost))try{ea.host=eJ.toASCII(ea.host.replace(eu.PCT_ENCODED,e0).toLowerCase())}catch(ei){ea.error=ea.error||"Host's domain name can not be converted to ASCII via punycode: "+ei}e3(ea,eg)}ed&&ed.parse&&ed.parse(ea,eo)}else ea.error=ea.error||"URI can not be parsed.";return ea}function ta(ei,eo){var ea=!1!==eo.iri?em:eg,eu=[];return void 0!==ei.userinfo&&(eu.push(ei.userinfo),eu.push("@")),void 0!==ei.host&&eu.push(e6(e4(String(ei.host),ea),ea).replace(ea.IPV6ADDRESS,function(ei,eo,ea){return"["+eo+(ea?"%25"+ea:"")+"]"})),("number"==typeof ei.port||"string"==typeof ei.port)&&(eu.push(":"),eu.push(String(ei.port))),eu.length?eu.join(""):void 0}var tu=/^\.\.?\//,tc=/^\/\.(\/|$)/,td=/^\/\.\.(\/|$)/,tf=/^\/?(?:.|\n)*?(?=\/|$)/;function tp(ei){for(var eo=[];ei.length;)if(ei.match(tu))ei=ei.replace(tu,"");else if(ei.match(tc))ei=ei.replace(tc,"/");else if(ei.match(td))ei=ei.replace(td,"/"),eo.pop();else if("."===ei||".."===ei)ei="";else{var ea=ei.match(tf);if(ea){var eu=ea[0];ei=ei.slice(eu.length),eo.push(eu)}else throw Error("Unexpected dot segment condition")}return eo.join("")}function tg(ei){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ea=eo.iri?em:eg,eu=[],ec=eQ[(eo.scheme||ei.scheme||"").toLowerCase()];if(ec&&ec.serialize&&ec.serialize(ei,eo),ei.host){if(ea.IPV6ADDRESS.test(ei.host));else if(eo.domainHost||ec&&ec.domainHost)try{ei.host=eo.iri?eJ.toUnicode(ei.host):eJ.toASCII(ei.host.replace(ea.PCT_ENCODED,e0).toLowerCase())}catch(ea){ei.error=ei.error||"Host's domain name can not be converted to "+(eo.iri?"Unicode":"ASCII")+" via punycode: "+ea}}e3(ei,ea),"suffix"!==eo.reference&&ei.scheme&&(eu.push(ei.scheme),eu.push(":"));var ed=ta(ei,eo);if(void 0!==ed&&("suffix"!==eo.reference&&eu.push("//"),eu.push(ed),ei.path&&"/"!==ei.path.charAt(0)&&eu.push("/")),void 0!==ei.path){var ef=ei.path;eo.absolutePath||ec&&ec.absolutePath||(ef=tp(ef)),void 0===ed&&(ef=ef.replace(/^\/\//,"/%2F")),eu.push(ef)}return void 0!==ei.query&&(eu.push("?"),eu.push(ei.query)),void 0!==ei.fragment&&(eu.push("#"),eu.push(ei.fragment)),eu.join("")}function tm(ei,eo){var ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},eu=arguments[3],ec={};return eu||(ei=e7(tg(ei,ea),ea),eo=e7(tg(eo,ea),ea)),!(ea=ea||{}).tolerant&&eo.scheme?(ec.scheme=eo.scheme,ec.userinfo=eo.userinfo,ec.host=eo.host,ec.port=eo.port,ec.path=tp(eo.path||""),ec.query=eo.query):(void 0!==eo.userinfo||void 0!==eo.host||void 0!==eo.port?(ec.userinfo=eo.userinfo,ec.host=eo.host,ec.port=eo.port,ec.path=tp(eo.path||""),ec.query=eo.query):(eo.path?("/"===eo.path.charAt(0)?ec.path=tp(eo.path):(void 0===ei.userinfo&&void 0===ei.host&&void 0===ei.port||ei.path?ei.path?ec.path=ei.path.slice(0,ei.path.lastIndexOf("/")+1)+eo.path:ec.path=eo.path:ec.path="/"+eo.path,ec.path=tp(ec.path)),ec.query=eo.query):(ec.path=ei.path,void 0!==eo.query?ec.query=eo.query:ec.query=ei.query),ec.userinfo=ei.userinfo,ec.host=ei.host,ec.port=ei.port),ec.scheme=ei.scheme),ec.fragment=eo.fragment,ec}function tv(ei,eo,ea){var eu=ef({scheme:"null"},ea);return tg(tm(e7(ei,eu),e7(eo,eu),eu,!0),eu)}function tb(ei,eo){return"string"==typeof ei?ei=tg(e7(ei,eo),eo):"object"===eu(ei)&&(ei=e7(tg(ei,eo),eo)),ei}function tw(ei,eo,ea){return"string"==typeof ei?ei=tg(e7(ei,ea),ea):"object"===eu(ei)&&(ei=tg(ei,ea)),"string"==typeof eo?eo=tg(e7(eo,ea),ea):"object"===eu(eo)&&(eo=tg(eo,ea)),ei===eo}function t_(ei,eo){return ei&&ei.toString().replace(eo&&eo.iri?em.ESCAPE:eg.ESCAPE,eX)}function tS(ei,eo){return ei&&ei.toString().replace(eo&&eo.iri?em.PCT_ENCODED:eg.PCT_ENCODED,e0)}var tE={scheme:"http",domainHost:!0,parse:function(ei,eo){return ei.host||(ei.error=ei.error||"HTTP URIs must have a host."),ei},serialize:function(ei,eo){var ea="https"===String(ei.scheme).toLowerCase();return(ei.port===(ea?443:80)||""===ei.port)&&(ei.port=void 0),ei.path||(ei.path="/"),ei}},tA={scheme:"https",domainHost:tE.domainHost,parse:tE.parse,serialize:tE.serialize};function tT(ei){return"boolean"==typeof ei.secure?ei.secure:"wss"===String(ei.scheme).toLowerCase()}var tk={scheme:"ws",domainHost:!0,parse:function(ei,eo){var ea=ei;return ea.secure=tT(ea),ea.resourceName=(ea.path||"/")+(ea.query?"?"+ea.query:""),ea.path=void 0,ea.query=void 0,ea},serialize:function(ei,eo){if((ei.port===(tT(ei)?443:80)||""===ei.port)&&(ei.port=void 0),"boolean"==typeof ei.secure&&(ei.scheme=ei.secure?"wss":"ws",ei.secure=void 0),ei.resourceName){var ea=eb(ei.resourceName.split("?"),2),eu=ea[0],ec=ea[1];ei.path=eu&&"/"!==eu?eu:void 0,ei.query=ec,ei.resourceName=void 0}return ei.fragment=void 0,ei}},tC={scheme:"wss",domainHost:tk.domainHost,parse:tk.parse,serialize:tk.serialize},tO={},tI="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",tP="[0-9A-Fa-f]",tD=ea(ea("%[EFef]"+tP+"%"+tP+tP+"%"+tP+tP)+"|"+ea("%[89A-Fa-f]"+tP+"%"+tP+tP)+"|"+ea("%"+tP+tP)),tN="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",tM=eo("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),tj="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",tR=RegExp(tI,"g"),tL=RegExp(tD,"g"),tF=RegExp(eo("[^]",tN,"[\\.]",'[\\"]',tM),"g"),tB=RegExp(eo("[^]",tI,tj),"g"),tU=tB;function tG(ei){var eo=e0(ei);return eo.match(tR)?eo:ei}var tV={scheme:"mailto",parse:function(ei,eo){var ea=ei,eu=ea.to=ea.path?ea.path.split(","):[];if(ea.path=void 0,ea.query){for(var ec=!1,ed={},ef=ea.query.split("&"),eh=0,eg=ef.length;eheo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function eu(ei){var eo="function"==typeof Symbol&&Symbol.iterator,ea=eo&&ei[eo],eu=0;if(ea)return ea.call(ei);if(ei&&"number"==typeof ei.length)return{next:function(){return ei&&eu>=ei.length&&(ei=void 0),{value:ei&&ei[eu++],done:!ei}}};throw TypeError(eo?"Object is not iterable.":"Symbol.iterator is not defined.")}function ec(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef}function ed(ei,eo,ea){if(ea||2==arguments.length)for(var eu,ec=0,ed=eo.length;ec=0;--ec){var ed=this.tryEntries[ec],eh=ed.completion;if("root"===ed.tryLoc)return eu("end");if(ed.tryLoc<=this.prev){var eg=ef.call(ed,"catchLoc"),em=ef.call(ed,"finallyLoc");if(eg&&em){if(this.prev=0;--ea){var eu=this.tryEntries[ea];if(eu.tryLoc<=this.prev&&ef.call(eu,"finallyLoc")&&this.prev=0;--eo){var ea=this.tryEntries[eo];if(ea.finallyLoc===ei)return this.complete(ea.completion,ea.afterLoc),eV(ea),eO}},catch:function(ei){for(var eo=this.tryEntries.length-1;eo>=0;--eo){var ea=this.tryEntries[eo];if(ea.tryLoc===ei){var eu=ea.completion;if("throw"===eu.type){var ec=eu.arg;eV(ea)}return ec}}throw Error("illegal catch attempt")},delegateYield:function(ei,ea,eu){return this.delegate={iterator:eW(ei),resultName:ea,nextLoc:eu},"next"===this.method&&(this.arg=eo),eO}},ea}ei.exports=ec,ei.exports.__esModule=!0,ei.exports.default=ei.exports},6015:function(ei){function eo(ea,eu){return ei.exports=eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ei,eo){return ei.__proto__=eo,ei},ei.exports.__esModule=!0,ei.exports.default=ei.exports,eo(ea,eu)}ei.exports=eo,ei.exports.__esModule=!0,ei.exports.default=ei.exports},95036:function(ei,eo,ea){var eu=ea(18698).default;function ec(ei,eo){if("object"!==eu(ei)||null===ei)return ei;var ea=ei[Symbol.toPrimitive];if(void 0!==ea){var ec=ea.call(ei,eo||"default");if("object"!==eu(ec))return ec;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===eo?String:Number)(ei)}ei.exports=ec,ei.exports.__esModule=!0,ei.exports.default=ei.exports},64062:function(ei,eo,ea){var eu=ea(18698).default,ec=ea(95036);function ed(ei){var eo=ec(ei,"string");return"symbol"===eu(eo)?eo:String(eo)}ei.exports=ed,ei.exports.__esModule=!0,ei.exports.default=ei.exports},18698:function(ei){function eo(ea){return ei.exports=eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ei){return typeof ei}:function(ei){return ei&&"function"==typeof Symbol&&ei.constructor===Symbol&&ei!==Symbol.prototype?"symbol":typeof ei},ei.exports.__esModule=!0,ei.exports.default=ei.exports,eo(ea)}ei.exports=eo,ei.exports.__esModule=!0,ei.exports.default=ei.exports},64687:function(ei,eo,ea){var eu=ea(17061)();ei.exports=eu;try{regeneratorRuntime=eu}catch(ei){"object"==typeof globalThis?globalThis.regeneratorRuntime=eu:Function("r","regeneratorRuntime = r")(eu)}},36559:function(ei,eo,ea){"use strict";let eu=ea(85346);ei.exports=eh;let ec=eM().console||{},ed={mapHttpRequest:ek,mapHttpResponse:ek,wrapRequestSerializer:eC,wrapResponseSerializer:eC,wrapErrorSerializer:eC,req:ek,res:ek,err:eA};function ef(ei,eo){if(Array.isArray(ei)){let eo=ei.filter(function(ei){return"!stdSerializers.err"!==ei});return eo}return!0===ei&&Object.keys(eo)}function eh(ei){(ei=ei||{}).browser=ei.browser||{};let eo=ei.browser.transmit;if(eo&&"function"!=typeof eo.send)throw Error("pino: transmit option must have a send function");let ea=ei.browser.write||ec;ei.browser.write&&(ei.browser.asObject=!0);let eu=ei.serializers||{},ed=ef(ei.browser.serialize,eu),em=ei.browser.serialize;Array.isArray(ei.browser.serialize)&&ei.browser.serialize.indexOf("!stdSerializers.err")>-1&&(em=!1);let eb=["error","fatal","warn","info","debug","trace"];"function"==typeof ea&&(ea.error=ea.fatal=ea.warn=ea.info=ea.debug=ea.trace=ea),!1===ei.enabled&&(ei.level="silent");let eS=ei.level||"info",eA=Object.create(ea);eA.log||(eA.log=eO),Object.defineProperty(eA,"levelVal",{get:eC}),Object.defineProperty(eA,"level",{get:eI,set:eP});let ek={transmit:eo,serialize:ed,asObject:ei.browser.asObject,levels:eb,timestamp:eT(ei)};function eC(){return"silent"===this.level?1/0:this.levels.values[this.level]}function eI(){return this._level}function eP(ei){if("silent"!==ei&&!this.levels.values[ei])throw Error("unknown level "+ei);this._level=ei,eg(ek,eA,"error","log"),eg(ek,eA,"fatal","error"),eg(ek,eA,"warn","error"),eg(ek,eA,"info","log"),eg(ek,eA,"debug","log"),eg(ek,eA,"trace","log")}function eD(ea,ec){if(!ea)throw Error("missing bindings for child Pino");ec=ec||{},ed&&ea.serializers&&(ec.serializers=ea.serializers);let ef=ec.serializers;if(ed&&ef){var eh=Object.assign({},eu,ef),eg=!0===ei.browser.serialize?Object.keys(eh):ed;delete ea.serializers,ew([ea],eg,eh,this._stdErrSerialize)}function em(ei){this._childLevel=(0|ei._childLevel)+1,this.error=e_(ei,ea,"error"),this.fatal=e_(ei,ea,"fatal"),this.warn=e_(ei,ea,"warn"),this.info=e_(ei,ea,"info"),this.debug=e_(ei,ea,"debug"),this.trace=e_(ei,ea,"trace"),eh&&(this.serializers=eh,this._serialize=eg),eo&&(this._logEvent=eE([].concat(ei._logEvent.bindings,ea)))}return em.prototype=this,new em(this)}return eA.levels=eh.levels,eA.level=eS,eA.setMaxListeners=eA.getMaxListeners=eA.emit=eA.addListener=eA.on=eA.prependListener=eA.once=eA.prependOnceListener=eA.removeListener=eA.removeAllListeners=eA.listeners=eA.listenerCount=eA.eventNames=eA.write=eA.flush=eO,eA.serializers=eu,eA._serialize=ed,eA._stdErrSerialize=em,eA.child=eD,eo&&(eA._logEvent=eE()),eA}function eg(ei,eo,ea,eu){let ed=Object.getPrototypeOf(eo);eo[ea]=eo.levelVal>eo.levels.values[ea]?eO:ed[ea]?ed[ea]:ec[ea]||ec[eu]||eO,em(ei,eo,ea)}function em(ei,eo,ea){(ei.transmit||eo[ea]!==eO)&&(eo[ea]=function(eu){return function(){let ed=ei.timestamp(),ef=Array(arguments.length),eg=Object.getPrototypeOf&&Object.getPrototypeOf(this)===ec?ec:this;for(var em=0;em-1&&eu in ea&&(ei[ec][eu]=ea[eu](ei[ec][eu]))}function e_(ei,eo,ea){return function(){let eu=Array(1+arguments.length);eu[0]=eo;for(var ec=1;ec256){for(eu=Array(eo=256);eo--;)eu[eo]=256*Math.random()|0;eo=ec=0}for(;eo<16;eo++)ei=eu[ec+eo],6==eo?ea+=ed[15&ei|64]:8==eo?ea+=ed[63&ei|128]:ea+=ed[ei],1&eo&&eo>1&&eo<11&&(ea+="-");return ec++,ea}},9471:function(ei,eo,ea){"use strict";ea.d(eo,{U:function(){return ef}});var eu=ea(768),ec=ea(28628),ed=ea(72290);function ef(ei,eo){let ea,{elementType:ef="button",isDisabled:eh,onPress:eg,onPressStart:em,onPressEnd:eb,onPressChange:ew,preventFocusOnPress:e_,allowFocusWhenDisabled:eS,onClick:eE,href:eA,target:eT,rel:ek,type:eC="button"}=ei;ea="button"===ef?{type:eC,disabled:eh}:{role:"button",tabIndex:eh?void 0:0,href:"a"===ef&&eh?void 0:eA,target:"a"===ef?eT:void 0,type:"input"===ef?eC:void 0,disabled:"input"===ef?eh:void 0,"aria-disabled":eh&&"input"!==ef?eh:void 0,rel:"a"===ef?ek:void 0};let{pressProps:eO,isPressed:eI}=(0,ed.r7)({onPressStart:em,onPressEnd:eb,onPressChange:ew,onPress:eg,isDisabled:eh,preventFocusOnPress:e_,ref:eo}),{focusableProps:eP}=(0,ec.kc)(ei,eo);eS&&(eP.tabIndex=eh?-1:eP.tabIndex);let eD=(0,eu.dG)(eP,eO,(0,eu.zL)(ei,{labelable:!0}));return{isPressed:eI,buttonProps:(0,eu.dG)(ea,eD,{"aria-haspopup":ei["aria-haspopup"],"aria-expanded":ei["aria-expanded"],"aria-controls":ei["aria-controls"],"aria-pressed":ei["aria-pressed"],onClick:ei=>{eE&&(eE(ei),console.warn("onClick is deprecated, please use onPress"))}})}}},28628:function(ei,eo,ea){"use strict";ea.d(eo,{MT:function(){return e_},QL:function(){return eG},cW:function(){return eN},ex:function(){return ef},kc:function(){return eZ}});var eu=ea(67294),ec=ea(768),ed=ea(72290);function ef(ei){if("virtual"===(0,ed.Jz)()){let eo=document.activeElement;(0,ec.QB)(()=>{document.activeElement===eo&&document.contains(ei)&&(0,ec.Ao)(ei)})}else(0,ec.Ao)(ei)}function eh(ei){if(!(ei instanceof HTMLElement)&&!(ei instanceof SVGElement))return!1;let{display:eo,visibility:ea}=ei.style,eu="none"!==eo&&"hidden"!==ea&&"collapse"!==ea;if(eu){let{getComputedStyle:eo}=ei.ownerDocument.defaultView,{display:ea,visibility:ec}=eo(ei);eu="none"!==ea&&"hidden"!==ec&&"collapse"!==ec}return eu}function eg(ei,eo){return!ei.hasAttribute("hidden")&&("DETAILS"!==ei.nodeName||!eo||"SUMMARY"===eo.nodeName||ei.hasAttribute("open"))}function em(ei,eo){return"#comment"!==ei.nodeName&&eh(ei)&&eg(ei,eo)&&(!ei.parentElement||em(ei.parentElement,ei))}let eb=eu.createContext(null),ew=null;function e_(ei){let{children:eo,contain:ea,restoreFocus:ed,autoFocus:ef}=ei,eh=(0,eu.useRef)(),eg=(0,eu.useRef)(),em=(0,eu.useRef)([]),{parentNode:e_}=(0,eu.useContext)(eb)||{},eE=(0,eu.useMemo)(()=>new eH({scopeRef:em}),[em]);(0,ec.bt)(()=>{let ei=e_||eW.root;if(eW.getTreeNode(ei.scopeRef)&&ew&&!eM(ew,ei.scopeRef)){let eo=eW.getTreeNode(ew);eo&&(ei=eo)}ei.addChild(eE),eW.addNode(eE)},[eE,e_]),(0,ec.bt)(()=>{eW.getTreeNode(em).contain=ea},[ea]),(0,ec.bt)(()=>{let ei=eh.current.nextSibling,eo=[];for(;ei&&ei!==eg.current;)eo.push(ei),ei=ei.nextSibling;em.current=eo},[eo]),eF(em,ed,ea),eO(em,ea),eU(em,ed,ea),eL(em,ef),(0,eu.useEffect)(()=>{if(em){let ei=document.activeElement,eo=null;if(eP(ei,em.current)){for(let ea of eW.traverse())eP(ei,ea.scopeRef.current)&&(eo=ea);eo===eW.getTreeNode(em)&&(ew=eo.scopeRef)}return()=>{let ei=eW.getTreeNode(em).parent.scopeRef;(em===ew||eM(em,ew))&&(!ei||eW.getTreeNode(ei))&&(ew=ei),eW.removeTreeNode(em)}}},[em]);let eA=(0,eu.useMemo)(()=>eS(em),[]),eT=(0,eu.useMemo)(()=>({focusManager:eA,parentNode:eE}),[eE,eA]);return eu.createElement(eb.Provider,{value:eT},eu.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:eh}),eo,eu.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:eg}))}function eS(ei){return{focusNext(eo={}){let ea=ei.current,{from:eu,tabbable:ec,wrap:ed,accept:ef}=eo,eh=eu||document.activeElement,eg=ea[0].previousElementSibling,em=eG(ek(ea),{tabbable:ec,accept:ef},ea);em.currentNode=eP(eh,ea)?eh:eg;let eb=em.nextNode();return!eb&&ed&&(em.currentNode=eg,eb=em.nextNode()),eb&&ej(eb,!0),eb},focusPrevious(eo={}){let ea=ei.current,{from:eu,tabbable:ec,wrap:ed,accept:ef}=eo,eh=eu||document.activeElement,eg=ea[ea.length-1].nextElementSibling,em=eG(ek(ea),{tabbable:ec,accept:ef},ea);em.currentNode=eP(eh,ea)?eh:eg;let eb=em.previousNode();return!eb&&ed&&(em.currentNode=eg,eb=em.previousNode()),eb&&ej(eb,!0),eb},focusFirst(eo={}){let ea=ei.current,{tabbable:eu,accept:ec}=eo,ed=eG(ek(ea),{tabbable:eu,accept:ec},ea);ed.currentNode=ea[0].previousElementSibling;let ef=ed.nextNode();return ef&&ej(ef,!0),ef},focusLast(eo={}){let ea=ei.current,{tabbable:eu,accept:ec}=eo,ed=eG(ek(ea),{tabbable:eu,accept:ec},ea);ed.currentNode=ea[ea.length-1].nextElementSibling;let ef=ed.previousNode();return ef&&ej(ef,!0),ef}}}let eE=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],eA=eE.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";eE.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let eT=eE.join(':not([hidden]):not([tabindex="-1"]),');function ek(ei){return ei[0].parentElement}function eC(ei){let eo=eW.getTreeNode(ew);for(;eo&&eo.scopeRef!==ei;){if(eo.contain)return!1;eo=eo.parent}return!0}function eO(ei,eo){let ea=(0,eu.useRef)(),ed=(0,eu.useRef)(null);(0,ec.bt)(()=>{let eu=ei.current;if(!eo){ed.current&&(cancelAnimationFrame(ed.current),ed.current=null);return}let ec=eo=>{if("Tab"!==eo.key||eo.altKey||eo.ctrlKey||eo.metaKey||!eC(ei))return;let ea=document.activeElement,eu=ei.current;if(!eP(ea,eu))return;let ec=eG(ek(eu),{tabbable:!0},eu);ec.currentNode=ea;let ed=eo.shiftKey?ec.previousNode():ec.nextNode();ed||(ec.currentNode=eo.shiftKey?eu[eu.length-1].nextElementSibling:eu[0].previousElementSibling,ed=eo.shiftKey?ec.previousNode():ec.nextNode()),eo.preventDefault(),ed&&ej(ed,!0)},ef=eo=>{(!ew||eM(ew,ei))&&eP(eo.target,ei.current)?(ew=ei,ea.current=eo.target):eC(ei)&&!eD(eo.target,ei)?ea.current?ea.current.focus():ew&&eR(ew.current):eC(ei)&&(ea.current=eo.target)},eh=eo=>{ed.current&&cancelAnimationFrame(ed.current),ed.current=requestAnimationFrame(()=>{eC(ei)&&!eD(document.activeElement,ei)&&(ew=ei,document.body.contains(eo.target)?(ea.current=eo.target,ea.current.focus()):ew&&eR(ew.current))})};return document.addEventListener("keydown",ec,!1),document.addEventListener("focusin",ef,!1),eu.forEach(ei=>ei.addEventListener("focusin",ef,!1)),eu.forEach(ei=>ei.addEventListener("focusout",eh,!1)),()=>{document.removeEventListener("keydown",ec,!1),document.removeEventListener("focusin",ef,!1),eu.forEach(ei=>ei.removeEventListener("focusin",ef,!1)),eu.forEach(ei=>ei.removeEventListener("focusout",eh,!1))}},[ei,eo]),(0,ec.bt)(()=>()=>{ed.current&&cancelAnimationFrame(ed.current)},[ed])}function eI(ei){return eD(ei)}function eP(ei,eo){return eo.some(eo=>eo.contains(ei))}function eD(ei,eo=null){if(ei instanceof Element&&ei.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:ea}of eW.traverse(eW.getTreeNode(eo)))if(eP(ei,ea.current))return!0;return!1}function eN(ei){return eD(ei,ew)}function eM(ei,eo){var ea;let eu=null===(ea=eW.getTreeNode(eo))||void 0===ea?void 0:ea.parent;for(;eu;){if(eu.scopeRef===ei)return!0;eu=eu.parent}return!1}function ej(ei,eo=!1){if(null==ei||eo){if(null!=ei)try{ei.focus()}catch(ei){}}else try{ef(ei)}catch(ei){}}function eR(ei,eo=!0){let ea=ei[0].previousElementSibling,eu=eG(ek(ei),{tabbable:eo},ei);eu.currentNode=ea;let ec=eu.nextNode();eo&&!ec&&((eu=eG(ek(ei),{tabbable:!1},ei)).currentNode=ea,ec=eu.nextNode()),ej(ec)}function eL(ei,eo){let ea=eu.useRef(eo);(0,eu.useEffect)(()=>{ea.current&&(ew=ei,eP(document.activeElement,ew.current)||eR(ei.current)),ea.current=!1},[ei])}function eF(ei,eo,ea){(0,ec.bt)(()=>{if(eo||ea)return;let eu=ei.current,ec=eo=>{let ea=eo.target;eP(ea,ei.current)?ew=ei:eI(ea)||(ew=null)};return document.addEventListener("focusin",ec,!1),eu.forEach(ei=>ei.addEventListener("focusin",ec,!1)),()=>{document.removeEventListener("focusin",ec,!1),eu.forEach(ei=>ei.removeEventListener("focusin",ec,!1))}},[ei,eo,ea])}function eB(ei){let eo=eW.getTreeNode(ew);for(;eo&&eo.scopeRef!==ei;){if(eo.nodeToRestore)return!1;eo=eo.parent}return(null==eo?void 0:eo.scopeRef)===ei}function eU(ei,eo,ea){let ed=(0,eu.useRef)("undefined"!=typeof document?document.activeElement:null);(0,ec.bt)(()=>{let eu=ei.current;if(!eo||ea)return;let ec=()=>{(!ew||eM(ew,ei))&&eP(document.activeElement,ei.current)&&(ew=ei)};return document.addEventListener("focusin",ec,!1),eu.forEach(ei=>ei.addEventListener("focusin",ec,!1)),()=>{document.removeEventListener("focusin",ec,!1),eu.forEach(ei=>ei.removeEventListener("focusin",ec,!1))}},[ei,ea]),(0,ec.bt)(()=>{if(!eo)return;let eu=eo=>{if("Tab"!==eo.key||eo.altKey||eo.ctrlKey||eo.metaKey||!eC(ei))return;let ea=document.activeElement;if(!eP(ea,ei.current))return;let eu=eW.getTreeNode(ei).nodeToRestore,ec=eG(document.body,{tabbable:!0});ec.currentNode=ea;let ed=eo.shiftKey?ec.previousNode():ec.nextNode();if(document.body.contains(eu)&&eu!==document.body||(eu=null,eW.getTreeNode(ei).nodeToRestore=null),(!ed||!eP(ed,ei.current))&&eu){ec.currentNode=eu;do ed=eo.shiftKey?ec.previousNode():ec.nextNode();while(eP(ed,ei.current));eo.preventDefault(),eo.stopPropagation(),ed?ej(ed,!0):eI(eu)?ej(eu,!0):ea.blur()}};return ea||document.addEventListener("keydown",eu,!0),()=>{ea||document.removeEventListener("keydown",eu,!0)}},[ei,eo,ea]),(0,ec.bt)(()=>{if(eo)return eW.getTreeNode(ei).nodeToRestore=ed.current,()=>{let ea=eW.getTreeNode(ei).nodeToRestore;if(eo&&ea&&(eP(document.activeElement,ei.current)||document.activeElement===document.body&&eB(ei))){let eo=eW.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let ea=eo.getTreeNode(ei);for(;ea;){if(ea.nodeToRestore&&document.body.contains(ea.nodeToRestore)){ej(ea.nodeToRestore);return}ea=ea.parent}for(ea=eo.getTreeNode(ei);ea;){if(ea.scopeRef&&eW.getTreeNode(ea.scopeRef)){eR(ea.scopeRef.current,!0);return}ea=ea.parent}}})}}},[ei,eo])}function eG(ei,eo,ea){let eu=(null==eo?void 0:eo.tabbable)?eT:eA,ec=document.createTreeWalker(ei,NodeFilter.SHOW_ELEMENT,{acceptNode(ei){var ec;return(null==eo?void 0:null===(ec=eo.from)||void 0===ec?void 0:ec.contains(ei))?NodeFilter.FILTER_REJECT:ei.matches(eu)&&em(ei)&&(!ea||eP(ei,ea))&&(!(null==eo?void 0:eo.accept)||eo.accept(ei))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==eo?void 0:eo.from)&&(ec.currentNode=eo.from),ec}class eV{get size(){return this.fastMap.size}getTreeNode(ei){return this.fastMap.get(ei)}addTreeNode(ei,eo,ea){let eu=this.fastMap.get(null!=eo?eo:null),ec=new eH({scopeRef:ei});eu.addChild(ec),ec.parent=eu,this.fastMap.set(ei,ec),ea&&(ec.nodeToRestore=ea)}addNode(ei){this.fastMap.set(ei.scopeRef,ei)}removeTreeNode(ei){if(null===ei)return;let eo=this.fastMap.get(ei),ea=eo.parent;for(let ei of this.traverse())ei!==eo&&eo.nodeToRestore&&ei.nodeToRestore&&eo.scopeRef.current&&eP(ei.nodeToRestore,eo.scopeRef.current)&&(ei.nodeToRestore=eo.nodeToRestore);let eu=eo.children;ea.removeChild(eo),eu.size>0&&eu.forEach(ei=>ea.addChild(ei)),this.fastMap.delete(eo.scopeRef)}*traverse(ei=this.root){if(null!=ei.scopeRef&&(yield ei),ei.children.size>0)for(let eo of ei.children)yield*this.traverse(eo)}clone(){let ei=new eV;for(let eo of this.traverse())ei.addTreeNode(eo.scopeRef,eo.parent.scopeRef,eo.nodeToRestore);return ei}constructor(){this.fastMap=new Map,this.root=new eH({scopeRef:null}),this.fastMap.set(null,this.root)}}class eH{addChild(ei){this.children.add(ei),ei.parent=this}removeChild(ei){this.children.delete(ei),ei.parent=void 0}constructor(ei){this.children=new Set,this.contain=!1,this.scopeRef=ei.scopeRef}}let eW=new eV,eK=eu.createContext(null);function eY(ei){let eo=(0,eu.useContext)(eK)||{};(0,ec.lE)(eo,ei);let{ref:ea,...ed}=eo;return ed}function eZ(ei,eo){let{focusProps:ea}=(0,ed.KK)(ei),{keyboardProps:eh}=(0,ed.v5)(ei),eg=(0,ec.dG)(ea,eh),em=eY(eo),eb=ei.isDisabled?{}:em,ew=(0,eu.useRef)(ei.autoFocus);return(0,eu.useEffect)(()=>{ew.current&&eo.current&&ef(eo.current),ew.current=!1},[eo]),{focusableProps:(0,ec.dG)({...eg,tabIndex:ei.excludeFromTabOrder&&!ei.isDisabled?-1:void 0},eb)}}},3175:function(ei,eo,ea){"use strict";ea.d(eo,{Xe:function(){return ej},bU:function(){return eI},qb:function(){return eN}});var eu=ea(67294),ec=ea(16769);class ed{getStringForLocale(ei,eo){let ea=this.strings[eo];ea||(ea=ef(eo,this.strings,this.defaultLocale),this.strings[eo]=ea);let eu=ea[ei];if(!eu)throw Error(`Could not find intl message ${ei} in ${eo} locale`);return eu}constructor(ei,eo="en-US"){this.strings={...ei},this.defaultLocale=eo}}function ef(ei,eo,ea="en-US"){if(eo[ei])return eo[ei];let eu=eh(ei);if(eo[eu])return eo[eu];for(let ei in eo)if(ei.startsWith(eu+"-"))return eo[ei];return eo[ea]}function eh(ei){return Intl.Locale?new Intl.Locale(ei).language:ei.split("-")[0]}let eg=new Map,em=new Map;class eb{format(ei,eo){let ea=this.strings.getStringForLocale(ei,this.locale);return"function"==typeof ea?ea(eo,this):ea}plural(ei,eo,ea="cardinal"){let eu=eo["="+ei];if(eu)return"function"==typeof eu?eu():eu;let ec=this.locale+":"+ea,ed=eg.get(ec);return ed||(ed=new Intl.PluralRules(this.locale,{type:ea}),eg.set(ec,ed)),"function"==typeof(eu=eo[ed.select(ei)]||eo.other)?eu():eu}number(ei){let eo=em.get(this.locale);return eo||(eo=new Intl.NumberFormat(this.locale),em.set(this.locale,eo)),eo.format(ei)}select(ei,eo){let ea=ei[eo]||ei.other;return"function"==typeof ea?ea():ea}constructor(ei,eo){this.locale=ei,this.strings=eo}}let ew=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),e_=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function eS(ei){if(Intl.Locale){let eo=new Intl.Locale(ei).maximize().script;return ew.has(eo)}let eo=ei.split("-")[0];return e_.has(eo)}function eE(){let ei="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([ei])}catch(eo){ei="en-US"}return{locale:ei,direction:eS(ei)?"rtl":"ltr"}}let eA=eE(),eT=new Set;function ek(){for(let ei of(eA=eE(),eT))ei(eA)}function eC(){let ei=(0,ec.Av)(),[eo,ea]=(0,eu.useState)(eA);return((0,eu.useEffect)(()=>(0===eT.size&&window.addEventListener("languagechange",ek),eT.add(ea),()=>{eT.delete(ea),0===eT.size&&window.removeEventListener("languagechange",ek)}),[]),ei)?{locale:"en-US",direction:"ltr"}:eo}let eO=eu.createContext(null);function eI(){let ei=eC();return(0,eu.useContext)(eO)||ei}let eP=new WeakMap;function eD(ei){let eo=eP.get(ei);return eo||(eo=new ed(ei),eP.set(ei,eo)),eo}function eN(ei){let{locale:eo}=eI(),ea=(0,eu.useMemo)(()=>eD(ei),[ei]);return(0,eu.useMemo)(()=>new eb(eo,ea),[eo,ea])}let eM=new Map;function ej(ei){let{locale:eo}=eI(),ea=eo+(ei?Object.entries(ei).sort((ei,eo)=>ei[0]{(0,eu.QB)(()=>{"restoring"===e_&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=eS||""),eS="",e_="default")})},300));else if((ei instanceof HTMLElement||ei instanceof SVGElement)&&ei&&eE.has(ei)){let eo=eE.get(ei);"none"===ei.style.userSelect&&(ei.style.userSelect=eo),""===ei.getAttribute("style")&&ei.removeAttribute("style"),eE.delete(ei)}}let ek=ec.createContext(null);function eC(ei){let eo=(0,ec.useContext)(ek);if(eo){let{register:ea,...ec}=eo;ei=(0,eu.dG)(ec,ei),ea()}return(0,eu.lE)(eo,ei.ref),ei}ek.displayName="PressResponderContext";var eO=new WeakMap;class eI{continuePropagation(){ew(this,eO,!1)}get shouldStopPropagation(){return eh(this,eO)}constructor(ei,eo,ea){em(this,eO,{writable:!0,value:void 0}),ew(this,eO,!0),this.type=ei,this.pointerType=eo,this.target=ea.currentTarget,this.shiftKey=ea.shiftKey,this.metaKey=ea.metaKey,this.ctrlKey=ea.ctrlKey,this.altKey=ea.altKey}}let eP=Symbol("linkClicked");function eD(ei){let{onPress:eo,onPressChange:ea,onPressStart:ed,onPressEnd:ef,onPressUp:eh,isDisabled:eg,isPressed:em,preventFocusOnPress:eb,shouldCancelOnPointerExit:ew,allowTextSelectionOnPress:e_,ref:eS,...eE}=eC(ei),[ek,eO]=(0,ec.useState)(!1),eD=(0,ec.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:eF,removeAllGlobalListeners:eB}=(0,eu.xi)(),eH=(0,eu.iW)((ei,eo)=>{let eu=eD.current;if(eg||eu.didFirePressStart)return;let ec=!0;if(eu.isTriggeringEvent=!0,ed){let ea=new eI("pressstart",eo,ei);ed(ea),ec=ea.shouldStopPropagation}return ea&&ea(!0),eu.isTriggeringEvent=!1,eu.didFirePressStart=!0,eO(!0),ec}),eW=(0,eu.iW)((ei,eu,ec=!0)=>{let ed=eD.current;if(!ed.didFirePressStart)return;ed.ignoreClickAfterPress=!0,ed.didFirePressStart=!1,ed.isTriggeringEvent=!0;let eh=!0;if(ef){let eo=new eI("pressend",eu,ei);ef(eo),eh=eo.shouldStopPropagation}if(ea&&ea(!1),eO(!1),eo&&ec&&!eg){let ea=new eI("press",eu,ei);eo(ea),eh&&(eh=ea.shouldStopPropagation)}return ed.isTriggeringEvent=!1,eh}),eK=(0,eu.iW)((ei,eo)=>{let ea=eD.current;if(!eg){if(eh){ea.isTriggeringEvent=!0;let eu=new eI("pressup",eo,ei);return eh(eu),ea.isTriggeringEvent=!1,eu.shouldStopPropagation}return!0}}),eY=(0,eu.iW)(ei=>{let eo=eD.current;eo.isPressed&&(eo.isOverTarget&&eW(eL(eo.target,ei),eo.pointerType,!1),eo.isPressed=!1,eo.isOverTarget=!1,eo.activePointerId=null,eo.pointerType=null,eB(),e_||eT(eo.target))}),eZ=(0,eu.iW)(ei=>{ew&&eY(ei)}),e$=(0,ec.useMemo)(()=>{let ei=eD.current,eo={onKeyDown(eo){if(eM(eo.nativeEvent,eo.currentTarget)&&eo.currentTarget.contains(eo.target)){eV(eo.target,eo.key)&&eo.preventDefault();let ec=!0;ei.isPressed||eo.repeat||(ei.target=eo.currentTarget,ei.isPressed=!0,ec=eH(eo,"keyboard"),eF(document,"keyup",ea,!1)),ec&&eo.stopPropagation(),eo.metaKey&&(0,eu.V5)()&&ei.metaKeyEvents.set(eo.key,eo.nativeEvent)}else"Meta"===eo.key&&(ei.metaKeyEvents=new Map)},onKeyUp(eo){eM(eo.nativeEvent,eo.currentTarget)&&!eo.repeat&&eo.currentTarget.contains(eo.target)&&eK(eL(ei.target,eo),"keyboard")},onClick(eo){if((!eo||eo.currentTarget.contains(eo.target))&&eo&&0===eo.button&&!ei.isTriggeringEvent&&!eu.nG.isOpening){let ea=!0;if(eg&&eo.preventDefault(),!ei.ignoreClickAfterPress&&!ei.ignoreEmulatedMouseEvents&&!ei.isPressed&&("virtual"===ei.pointerType||(0,eu.Zj)(eo.nativeEvent))){eg||eb||(0,eu.Ao)(eo.currentTarget);let ei=eH(eo,"virtual"),ec=eK(eo,"virtual"),ed=eW(eo,"virtual");ea=ei&&ec&&ed}ei.ignoreEmulatedMouseEvents=!1,ei.ignoreClickAfterPress=!1,ea&&eo.stopPropagation()}}},ea=eo=>{var ea,ec;if(ei.isPressed&&eM(eo,ei.target)){eV(eo.target,eo.key)&&eo.preventDefault();let ea=eo.target,ed=eW(eL(ei.target,eo),"keyboard",ei.target.contains(ea));eB(),ed&&eo.stopPropagation(),"Enter"!==eo.key&&eN(ei.target)&&ei.target.contains(ea)&&!eo[eP]&&(eo[eP]=!0,(0,eu.nG)(ei.target,eo,!1)),ei.isPressed=!1,null===(ec=ei.metaKeyEvents)||void 0===ec||ec.delete(eo.key)}else if("Meta"===eo.key&&(null===(ea=ei.metaKeyEvents)||void 0===ea?void 0:ea.size)){let eo=ei.metaKeyEvents;for(let ea of(ei.metaKeyEvents=null,eo.values()))ei.target.dispatchEvent(new KeyboardEvent("keyup",ea))}};if("undefined"!=typeof PointerEvent){eo.onPointerDown=eo=>{if(0!==eo.button||!eo.currentTarget.contains(eo.target))return;if((0,eu.cr)(eo.nativeEvent)){ei.pointerType="virtual";return}eG(eo.currentTarget)&&eo.preventDefault(),ei.pointerType=eo.pointerType;let ef=!0;ei.isPressed||(ei.isPressed=!0,ei.isOverTarget=!0,ei.activePointerId=eo.pointerId,ei.target=eo.currentTarget,eg||eb||(0,eu.Ao)(eo.currentTarget),e_||eA(ei.target),ef=eH(eo,ei.pointerType),eF(document,"pointermove",ea,!1),eF(document,"pointerup",ec,!1),eF(document,"pointercancel",ed,!1)),ef&&eo.stopPropagation()},eo.onMouseDown=ei=>{ei.currentTarget.contains(ei.target)&&0===ei.button&&(eG(ei.currentTarget)&&ei.preventDefault(),ei.stopPropagation())},eo.onPointerUp=eo=>{eo.currentTarget.contains(eo.target)&&"virtual"!==ei.pointerType&&0===eo.button&&eU(eo,eo.currentTarget)&&eK(eo,ei.pointerType||eo.pointerType)};let ea=eo=>{eo.pointerId===ei.activePointerId&&(eU(eo,ei.target)?ei.isOverTarget||(ei.isOverTarget=!0,eH(eL(ei.target,eo),ei.pointerType)):ei.isOverTarget&&(ei.isOverTarget=!1,eW(eL(ei.target,eo),ei.pointerType,!1),eZ(eo)))},ec=eo=>{eo.pointerId===ei.activePointerId&&ei.isPressed&&0===eo.button&&(eU(eo,ei.target)?eW(eL(ei.target,eo),ei.pointerType):ei.isOverTarget&&eW(eL(ei.target,eo),ei.pointerType,!1),ei.isPressed=!1,ei.isOverTarget=!1,ei.activePointerId=null,ei.pointerType=null,eB(),e_||eT(ei.target))},ed=ei=>{eY(ei)};eo.onDragStart=ei=>{ei.currentTarget.contains(ei.target)&&eY(ei)}}else{eo.onMouseDown=eo=>{if(0===eo.button&&eo.currentTarget.contains(eo.target)){if(eG(eo.currentTarget)&&eo.preventDefault(),ei.ignoreEmulatedMouseEvents){eo.stopPropagation();return}ei.isPressed=!0,ei.isOverTarget=!0,ei.target=eo.currentTarget,ei.pointerType=(0,eu.Zj)(eo.nativeEvent)?"virtual":"mouse",eg||eb||(0,eu.Ao)(eo.currentTarget),eH(eo,ei.pointerType)&&eo.stopPropagation(),eF(document,"mouseup",ea,!1)}},eo.onMouseEnter=eo=>{if(!eo.currentTarget.contains(eo.target))return;let ea=!0;ei.isPressed&&!ei.ignoreEmulatedMouseEvents&&(ei.isOverTarget=!0,ea=eH(eo,ei.pointerType)),ea&&eo.stopPropagation()},eo.onMouseLeave=eo=>{if(!eo.currentTarget.contains(eo.target))return;let ea=!0;ei.isPressed&&!ei.ignoreEmulatedMouseEvents&&(ei.isOverTarget=!1,ea=eW(eo,ei.pointerType,!1),eZ(eo)),ea&&eo.stopPropagation()},eo.onMouseUp=eo=>{eo.currentTarget.contains(eo.target)&&!ei.ignoreEmulatedMouseEvents&&0===eo.button&&eK(eo,ei.pointerType||"mouse")};let ea=eo=>{if(0===eo.button){if(ei.isPressed=!1,eB(),ei.ignoreEmulatedMouseEvents){ei.ignoreEmulatedMouseEvents=!1;return}eU(eo,ei.target)?eW(eL(ei.target,eo),ei.pointerType):ei.isOverTarget&&eW(eL(ei.target,eo),ei.pointerType,!1),ei.isOverTarget=!1}};eo.onTouchStart=eo=>{if(!eo.currentTarget.contains(eo.target))return;let ea=ej(eo.nativeEvent);ea&&(ei.activePointerId=ea.identifier,ei.ignoreEmulatedMouseEvents=!0,ei.isOverTarget=!0,ei.isPressed=!0,ei.target=eo.currentTarget,ei.pointerType="touch",eg||eb||(0,eu.Ao)(eo.currentTarget),e_||eA(ei.target),eH(eo,ei.pointerType)&&eo.stopPropagation(),eF(window,"scroll",ec,!0))},eo.onTouchMove=eo=>{if(!eo.currentTarget.contains(eo.target))return;if(!ei.isPressed){eo.stopPropagation();return}let ea=eR(eo.nativeEvent,ei.activePointerId),eu=!0;ea&&eU(ea,eo.currentTarget)?ei.isOverTarget||(ei.isOverTarget=!0,eu=eH(eo,ei.pointerType)):ei.isOverTarget&&(ei.isOverTarget=!1,eu=eW(eo,ei.pointerType,!1),eZ(eo)),eu&&eo.stopPropagation()},eo.onTouchEnd=eo=>{if(!eo.currentTarget.contains(eo.target))return;if(!ei.isPressed){eo.stopPropagation();return}let ea=eR(eo.nativeEvent,ei.activePointerId),eu=!0;ea&&eU(ea,eo.currentTarget)?(eK(eo,ei.pointerType),eu=eW(eo,ei.pointerType)):ei.isOverTarget&&(eu=eW(eo,ei.pointerType,!1)),eu&&eo.stopPropagation(),ei.isPressed=!1,ei.activePointerId=null,ei.isOverTarget=!1,ei.ignoreEmulatedMouseEvents=!0,e_||eT(ei.target),eB()},eo.onTouchCancel=eo=>{eo.currentTarget.contains(eo.target)&&(eo.stopPropagation(),ei.isPressed&&eY(eo))};let ec=eo=>{ei.isPressed&&eo.target.contains(ei.target)&&eY({currentTarget:ei.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};eo.onDragStart=ei=>{ei.currentTarget.contains(ei.target)&&eY(ei)}}return eo},[eF,eg,eb,eB,e_,eY,eZ,eW,eH,eK]);return(0,ec.useEffect)(()=>()=>{e_||eT(eD.current.target)},[e_]),{isPressed:em||ek,pressProps:(0,eu.dG)(eE,e$)}}function eN(ei){return"A"===ei.tagName&&ei.hasAttribute("href")}function eM(ei,eo){let{key:ea,code:eu}=ei,ec=eo,ed=ec.getAttribute("role");return("Enter"===ea||" "===ea||"Spacebar"===ea||"Space"===eu)&&!(ec instanceof HTMLInputElement&&!eW(ec,ea)||ec instanceof HTMLTextAreaElement||ec.isContentEditable)&&!(("link"===ed||!ed&&eN(ec))&&"Enter"!==ea)}function ej(ei){let{targetTouches:eo}=ei;return eo.length>0?eo[0]:null}function eR(ei,eo){let ea=ei.changedTouches;for(let ei=0;eieo.right)&&!(eo.left>ei.right)&&!(ei.top>eo.bottom)&&!(eo.top>ei.bottom)}function eU(ei,eo){return eB(eo.getBoundingClientRect(),eF(ei))}function eG(ei){return!(ei instanceof HTMLElement)||!ei.hasAttribute("draggable")}function eV(ei,eo){return ei instanceof HTMLInputElement?!eW(ei,eo):ei instanceof HTMLButtonElement?"submit"!==ei.type&&"reset"!==ei.type:!eN(ei)}let eH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function eW(ei,eo){return"checkbox"===ei.type||"radio"===ei.type?" "===eo:eH.has(ei.type)}class eK{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(ei,eo){this.nativeEvent=eo,this.target=eo.target,this.currentTarget=eo.currentTarget,this.relatedTarget=eo.relatedTarget,this.bubbles=eo.bubbles,this.cancelable=eo.cancelable,this.defaultPrevented=eo.defaultPrevented,this.eventPhase=eo.eventPhase,this.isTrusted=eo.isTrusted,this.timeStamp=eo.timeStamp,this.type=ei}}function eY(ei){let eo=(0,ec.useRef)({isFocused:!1,observer:null});(0,eu.bt)(()=>{let ei=eo.current;return()=>{ei.observer&&(ei.observer.disconnect(),ei.observer=null)}},[]);let ea=(0,eu.iW)(eo=>{null==ei||ei(eo)});return(0,ec.useCallback)(ei=>{if(ei.target instanceof HTMLButtonElement||ei.target instanceof HTMLInputElement||ei.target instanceof HTMLTextAreaElement||ei.target instanceof HTMLSelectElement){eo.current.isFocused=!0;let eu=ei.target,ec=ei=>{eo.current.isFocused=!1,eu.disabled&&ea(new eK("blur",ei)),eo.current.observer&&(eo.current.observer.disconnect(),eo.current.observer=null)};eu.addEventListener("focusout",ec,{once:!0}),eo.current.observer=new MutationObserver(()=>{if(eo.current.isFocused&&eu.disabled){eo.current.observer.disconnect();let ei=eu===document.activeElement?null:document.activeElement;eu.dispatchEvent(new FocusEvent("blur",{relatedTarget:ei})),eu.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:ei}))}}),eo.current.observer.observe(eu,{attributes:!0,attributeFilter:["disabled"]})}},[ea])}function eZ(ei){let{isDisabled:eo,onFocus:ea,onBlur:eu,onFocusChange:ed}=ei,ef=(0,ec.useCallback)(ei=>{if(ei.target===ei.currentTarget)return eu&&eu(ei),ed&&ed(!1),!0},[eu,ed]),eh=eY(ef),eg=(0,ec.useCallback)(ei=>{ei.target===ei.currentTarget&&document.activeElement===ei.target&&(ea&&ea(ei),ed&&ed(!0),eh(ei))},[ed,ea,eh]);return{focusProps:{onFocus:!eo&&(ea||ed||eu)?eg:void 0,onBlur:!eo&&(eu||ed)?ef:void 0}}}let e$=null,eJ=new Set,eQ=!1,eX=!1,e0=!1,e3={Tab:!0,Escape:!0};function e5(ei,eo){for(let ea of eJ)ea(ei,eo)}function e4(ei){return!(ei.metaKey||!(0,eu.V5)()&&ei.altKey||ei.ctrlKey||"Control"===ei.key||"Shift"===ei.key||"Meta"===ei.key)}function e6(ei){eX=!0,e4(ei)&&(e$="keyboard",e5("keyboard",ei))}function e8(ei){e$="pointer",("mousedown"===ei.type||"pointerdown"===ei.type)&&(eX=!0,e5("pointer",ei))}function e9(ei){(0,eu.Zj)(ei)&&(eX=!0,e$="virtual")}function e7(ei){ei.target!==window&&ei.target!==document&&(eX||e0||(e$="virtual",e5("virtual",ei)),eX=!1,e0=!1)}function ta(){eX=!1,e0=!0}function tu(){if("undefined"==typeof window||eQ)return;let ei=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){eX=!0,ei.apply(this,arguments)},document.addEventListener("keydown",e6,!0),document.addEventListener("keyup",e6,!0),document.addEventListener("click",e9,!0),window.addEventListener("focus",e7,!0),window.addEventListener("blur",ta,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",e8,!0),document.addEventListener("pointermove",e8,!0),document.addEventListener("pointerup",e8,!0)):(document.addEventListener("mousedown",e8,!0),document.addEventListener("mousemove",e8,!0),document.addEventListener("mouseup",e8,!0)),eQ=!0}function tc(){return"pointer"!==e$}function td(){return e$}function tf(ei,eo,ea){return!(ei&&"keyboard"===eo&&ea instanceof KeyboardEvent&&!e3[ea.key])}function tp(ei={}){let{isTextInput:eo,autoFocus:ea}=ei,[eu,ed]=(0,ec.useState)(ea||tc());return tg(ei=>{ed(ei)},[eo],{isTextInput:eo}),{isFocusVisible:eu}}function tg(ei,eo,ea){tu(),(0,ec.useEffect)(()=>{let eo=(eo,eu)=>{tf(null==ea?void 0:ea.isTextInput,eo,eu)&&ei(tc())};return eJ.add(eo),()=>{eJ.delete(eo)}},eo)}function tm(ei){let{isDisabled:eo,onBlurWithin:ea,onFocusWithin:eu,onFocusWithinChange:ed}=ei,ef=(0,ec.useRef)({isFocusWithin:!1}),eh=(0,ec.useCallback)(ei=>{ef.current.isFocusWithin&&!ei.currentTarget.contains(ei.relatedTarget)&&(ef.current.isFocusWithin=!1,ea&&ea(ei),ed&&ed(!1))},[ea,ed,ef]),eg=eY(eh),em=(0,ec.useCallback)(ei=>{ef.current.isFocusWithin||document.activeElement!==ei.target||(eu&&eu(ei),ed&&ed(!0),ef.current.isFocusWithin=!0,eg(ei))},[eu,ed,eg]);return eo?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:em,onBlur:eh}}}"undefined"!=typeof document&&("loading"!==document.readyState?tu():document.addEventListener("DOMContentLoaded",tu));let tv=!1,tb=0;function tw(){tv=!0,setTimeout(()=>{tv=!1},50)}function t_(ei){"touch"===ei.pointerType&&tw()}function tS(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",t_):document.addEventListener("touchend",tw),tb++,()=>{--tb>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",t_):document.removeEventListener("touchend",tw))}}function tE(ei){let{onHoverStart:eo,onHoverChange:ea,onHoverEnd:eu,isDisabled:ed}=ei,[ef,eh]=(0,ec.useState)(!1),eg=(0,ec.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,ec.useEffect)(tS,[]);let{hoverProps:em,triggerHoverEnd:eb}=(0,ec.useMemo)(()=>{let ei=(ei,eu)=>{if(eg.pointerType=eu,ed||"touch"===eu||eg.isHovered||!ei.currentTarget.contains(ei.target))return;eg.isHovered=!0;let ec=ei.currentTarget;eg.target=ec,eo&&eo({type:"hoverstart",target:ec,pointerType:eu}),ea&&ea(!0),eh(!0)},ec=(ei,eo)=>{if(eg.pointerType="",eg.target=null,"touch"===eo||!eg.isHovered)return;eg.isHovered=!1;let ec=ei.currentTarget;eu&&eu({type:"hoverend",target:ec,pointerType:eo}),ea&&ea(!1),eh(!1)},ef={};return"undefined"!=typeof PointerEvent?(ef.onPointerEnter=eo=>{tv&&"mouse"===eo.pointerType||ei(eo,eo.pointerType)},ef.onPointerLeave=ei=>{!ed&&ei.currentTarget.contains(ei.target)&&ec(ei,ei.pointerType)}):(ef.onTouchStart=()=>{eg.ignoreEmulatedMouseEvents=!0},ef.onMouseEnter=eo=>{eg.ignoreEmulatedMouseEvents||tv||ei(eo,"mouse"),eg.ignoreEmulatedMouseEvents=!1},ef.onMouseLeave=ei=>{!ed&&ei.currentTarget.contains(ei.target)&&ec(ei,"mouse")}),{hoverProps:ef,triggerHoverEnd:ec}},[eo,ea,eu,ed,eg]);return(0,ec.useEffect)(()=>{ed&&eb({currentTarget:eg.target},eg.pointerType)},[ed]),{hoverProps:em,isHovered:ef}}function tA(ei){let{ref:eo,onInteractOutside:ea,isDisabled:ed,onInteractOutsideStart:ef}=ei,eh=(0,ec.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),eg=(0,eu.iW)(ei=>{ea&&tT(ei,eo)&&(ef&&ef(ei),eh.current.isPointerDown=!0)}),em=(0,eu.iW)(ei=>{ea&&ea(ei)});(0,ec.useEffect)(()=>{let ei=eh.current;if(!ed){if("undefined"!=typeof PointerEvent){let ea=ea=>{ei.isPointerDown&&tT(ea,eo)&&em(ea),ei.isPointerDown=!1};return document.addEventListener("pointerdown",eg,!0),document.addEventListener("pointerup",ea,!0),()=>{document.removeEventListener("pointerdown",eg,!0),document.removeEventListener("pointerup",ea,!0)}}{let ea=ea=>{ei.ignoreEmulatedMouseEvents?ei.ignoreEmulatedMouseEvents=!1:ei.isPointerDown&&tT(ea,eo)&&em(ea),ei.isPointerDown=!1},eu=ea=>{ei.ignoreEmulatedMouseEvents=!0,ei.isPointerDown&&tT(ea,eo)&&em(ea),ei.isPointerDown=!1};return document.addEventListener("mousedown",eg,!0),document.addEventListener("mouseup",ea,!0),document.addEventListener("touchstart",eg,!0),document.addEventListener("touchend",eu,!0),()=>{document.removeEventListener("mousedown",eg,!0),document.removeEventListener("mouseup",ea,!0),document.removeEventListener("touchstart",eg,!0),document.removeEventListener("touchend",eu,!0)}}}},[eo,ed,eg,em])}function tT(ei,eo){if(ei.button>0)return!1;if(ei.target){let eo=ei.target.ownerDocument;if(!eo||!eo.documentElement.contains(ei.target)||ei.target.closest("[data-react-aria-top-layer]"))return!1}return eo.current&&!eo.current.contains(ei.target)}function tk(ei){if(!ei)return;let eo=!0;return ea=>{ei({...ea,preventDefault(){ea.preventDefault()},isDefaultPrevented:()=>ea.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){eo=!1}}),eo&&ea.stopPropagation()}}function tC(ei){return{keyboardProps:ei.isDisabled?{}:{onKeyDown:tk(ei.onKeyDown),onKeyUp:tk(ei.onKeyUp)}}}let tO=500;function tI(ei){let{isDisabled:eo,onLongPressStart:ea,onLongPressEnd:ed,onLongPress:ef,threshold:eh=tO,accessibilityDescription:eg}=ei,em=(0,ec.useRef)(null),{addGlobalListener:eb,removeGlobalListener:ew}=(0,eu.xi)(),{pressProps:e_}=eD({isDisabled:eo,onPressStart(ei){if(ei.continuePropagation(),("mouse"===ei.pointerType||"touch"===ei.pointerType)&&(ea&&ea({...ei,type:"longpressstart"}),em.current=setTimeout(()=>{ei.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ef&&ef({...ei,type:"longpress"}),em.current=null},eh),"touch"===ei.pointerType)){let eo=ei=>{ei.preventDefault()};eb(ei.target,"contextmenu",eo,{once:!0}),eb(window,"pointerup",()=>{setTimeout(()=>{ew(ei.target,"contextmenu",eo)},30)},{once:!0})}},onPressEnd(ei){em.current&&clearTimeout(em.current),ed&&("mouse"===ei.pointerType||"touch"===ei.pointerType)&&ed({...ei,type:"longpressend"})}}),eS=(0,eu.PK)(ef&&!eo?eg:null);return{longPressProps:(0,eu.dG)(e_,eS)}}},93791:function(ei,eo,ea){"use strict";let eu;ea.d(eo,{U4:function(){return ry},Xj:function(){return t_},N3:function(){return tw},dd:function(){return tS},Ir:function(){return e5},Bq:function(){return r_},tN:function(){return eQ},IB:function(){return e4},tk:function(){return e7}});var ec=ea(67294),ed=ea(65897),ef=ea(768),eh=ea(3175),eg=ea(28628),em=ea(72290),eb=ea(73935),ew=ea(16769);let e_={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function eS(ei={}){let{style:eo,isFocusable:ea}=ei,[eu,ed]=(0,ec.useState)(!1),{focusWithinProps:ef}=(0,em.L_)({isDisabled:!ea,onFocusWithinChange:ei=>ed(ei)}),eh=(0,ec.useMemo)(()=>eu?eo:eo?{...e_,...eo}:e_,[eu]);return{visuallyHiddenProps:{...ef,style:eh}}}function eE(ei){let{children:eo,elementType:ea="div",isFocusable:eu,style:ed,...eh}=ei,{visuallyHiddenProps:eg}=eS(ei);return ec.createElement(ea,(0,ef.dG)(eh,eg),eo)}function eA(ei){return ei&&ei.__esModule?ei.default:ei}let eT={top:"top",bottom:"top",left:"left",right:"left"},ek={top:"bottom",bottom:"top",left:"right",right:"left"},eC={top:"left",left:"top"},eO={top:"height",left:"width"},eI={width:"totalWidth",height:"totalHeight"},eP={},eD="undefined"!=typeof document&&window.visualViewport;function eN(ei){let eo=0,ea=0,eu=0,ec=0,ed=0,ef=0,eh={};if("BODY"===ei.tagName){var eg,em;let ed=document.documentElement;eu=ed.clientWidth,ec=ed.clientHeight,eo=null!==(eg=null==eD?void 0:eD.width)&&void 0!==eg?eg:eu,ea=null!==(em=null==eD?void 0:eD.height)&&void 0!==em?em:ec,eh.top=ed.scrollTop||ei.scrollTop,eh.left=ed.scrollLeft||ei.scrollLeft}else({width:eo,height:ea,top:ed,left:ef}=eH(ei)),eh.top=ei.scrollTop,eh.left=ei.scrollLeft,eu=eo,ec=ea;return{width:eo,height:ea,totalWidth:eu,totalHeight:ec,scroll:eh,top:ed,left:ef}}function eM(ei){return{top:ei.scrollTop,left:ei.scrollLeft,width:ei.scrollWidth,height:ei.scrollHeight}}function ej(ei,eo,ea,eu,ec,ed){let ef=ec.scroll[ei],eh=eu[eO[ei]],eg=eo-ed-ef,em=eo+ed-ef+ea;return eg<0?-eg:em>eh?Math.max(eh-em,-eg):0}function eR(ei){let eo=window.getComputedStyle(ei);return{top:parseInt(eo.marginTop,10)||0,bottom:parseInt(eo.marginBottom,10)||0,left:parseInt(eo.marginLeft,10)||0,right:parseInt(eo.marginRight,10)||0}}function eL(ei){if(eP[ei])return eP[ei];let[eo,ea]=ei.split(" "),eu=eT[eo]||"right",ec=eC[eu];eT[ea]||(ea="center");let ed=eO[eu],ef=eO[ec];return eP[ei]={placement:eo,crossPlacement:ea,axis:eu,crossAxis:ec,size:ed,crossSize:ef},eP[ei]}function eF(ei,eo,ea,eu,ec,ef,eh,eg,em,eb){let{placement:ew,crossPlacement:e_,axis:eS,crossAxis:eE,size:eA,crossSize:eT}=eu,eC={};eC[eE]=ei[eE],"center"===e_?eC[eE]+=(ei[eT]-ea[eT])/2:e_!==eE&&(eC[eE]+=ei[eT]-ea[eT]),eC[eE]+=ef;let eO=ei[eE]-ea[eT]+em+eb,eP=ei[eE]+ei[eT]-em-eb;if(eC[eE]=(0,ed.uZ)(eC[eE],eO,eP),ew===eS){let ea=eg?eh[eA]:eo[eI[eA]];eC[ek[eS]]=Math.floor(ea-ei[eS]+ec)}else eC[eS]=Math.floor(ei[eS]+ei[eA]+ec);return eC}function eB(ei,eo,ea,eu,ec,ed){return null!=ei.top?Math.max(0,eo.height+eo.top+eo.scroll.top-(ea.top+ei.top)-(ec.top+ec.bottom+ed)):Math.max(0,eu.top+ea.top-(eo.top+eo.scroll.top)-(ec.top+ec.bottom+ed))}function eU(ei,eo,ea,eu,ec,ed){let{placement:ef,axis:eh,size:eg}=ed;return ef===eh?Math.max(0,ea[eh]-ei[eh]-ei.scroll[eh]+eo[eh]-eu[eh]-eu[ek[eh]]-ec):Math.max(0,ei[eg]+ei[eh]+ei.scroll[eh]-eo[eh]-ea[eh]-ea[eg]-eu[eh]-eu[ek[eh]]-ec)}function eG(ei,eo,ea,eu,ec,ef,eh,eg,em,eb,ew,e_,eS,eE,eA,eT){let eC=eL(ei),{size:eO,crossAxis:eI,crossSize:eP,placement:eD,crossPlacement:eN}=eC,eM=eF(eo,eg,ea,eC,ew,e_,eb,eS,eA,eT),eR=ew,eG=eU(eg,eb,eo,ec,ef+ew,eC);if(eh&&eu[eO]>eG){let ei=eL(`${ek[eD]} ${eN}`),eu=eF(eo,eg,ea,ei,ew,e_,eb,eS,eA,eT);eU(eg,eb,eo,ec,ef+ew,ei)>eG&&(eC=ei,eM=eu,eR=ew)}let eV=ej(eI,eM[eI],ea[eP],eg,em,ef);eM[eI]+=eV;let eH=eB(eM,eg,eb,eo,ec,ef);eE&&eE{if(!ea||null===eu)return;let ei=ei=>{let ea=ei.target;if(!eo.current||ea instanceof Node&&!ea.contains(eo.current))return;let ec=eu||eZ.get(eo.current);ec&&ec()};return window.addEventListener("scroll",ei,!0),()=>{window.removeEventListener("scroll",ei,!0)}},[ea,eu,eo])}let eJ="undefined"!=typeof document&&window.visualViewport;function eQ(ei){let{direction:eo}=(0,eh.bU)(),{arrowSize:ea=0,targetRef:eu,overlayRef:ed,scrollRef:eg=ed,placement:em="bottom",containerPadding:eb=12,shouldFlip:ew=!0,boundaryElement:e_="undefined"!=typeof document?document.body:null,offset:eS=0,crossOffset:eE=0,shouldUpdatePosition:eA=!0,isOpen:eT=!0,onClose:ek,maxHeight:eC,arrowBoundaryOffset:eO=0}=ei,[eI,eP]=(0,ec.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),eD=[eA,em,ed.current,eu.current,eg.current,eb,ew,e_,eS,eE,eT,eo,eC,eO,ea],eN=(0,ec.useCallback)(()=>{if(!1===eA||!eT||!ed.current||!eu.current||!eg.current||!e_)return;let ei=eV({placement:e0(em,eo),overlayNode:ed.current,targetNode:eu.current,scrollNode:eg.current,padding:eb,shouldFlip:ew,boundaryElement:e_,offset:eS,crossOffset:eE,maxHeight:eC,arrowSize:ea,arrowBoundaryOffset:eO});Object.keys(ei.position).forEach(eo=>ed.current.style[eo]=ei.position[eo]+"px"),ed.current.style.maxHeight=null!=ei.maxHeight?ei.maxHeight+"px":void 0,eP(ei)},eD);(0,ef.bt)(eN,eD),eX(eN),(0,ef.yU)({ref:ed,onResize:eN});let eM=(0,ec.useRef)(!1);(0,ef.bt)(()=>{let ei;let eo=()=>{eM.current=!0,clearTimeout(ei),ei=setTimeout(()=>{eM.current=!1},500),eN()};return null==eJ||eJ.addEventListener("resize",eo),null==eJ||eJ.addEventListener("scroll",eo),()=>{null==eJ||eJ.removeEventListener("resize",eo),null==eJ||eJ.removeEventListener("scroll",eo)}},[eN]);let ej=(0,ec.useCallback)(()=>{eM.current||ek()},[ek,eM]);return e$({triggerRef:eu,isOpen:eT,onClose:ek&&ej}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...eI.position,maxHeight:eI.maxHeight}},placement:eI.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:eI.arrowOffsetLeft,top:eI.arrowOffsetTop}},updatePosition:eN}}function eX(ei){(0,ef.bt)(()=>(window.addEventListener("resize",ei,!1),()=>{window.removeEventListener("resize",ei,!1)}),[ei])}function e0(ei,eo){return"rtl"===eo?ei.replace("start","right").replace("end","left"):ei.replace("start","left").replace("end","right")}let e3=[];function e5(ei,eo){let{onClose:ea,shouldCloseOnBlur:eu,isOpen:ed,isDismissable:ef=!1,isKeyboardDismissDisabled:eh=!1,shouldCloseOnInteractOutside:eb}=ei;(0,ec.useEffect)(()=>(ed&&e3.push(eo),()=>{let ei=e3.indexOf(eo);ei>=0&&e3.splice(ei,1)}),[ed,eo]);let ew=()=>{e3[e3.length-1]===eo&&ea&&ea()},e_=ei=>{(!eb||eb(ei.target))&&e3[e3.length-1]===eo&&(ei.stopPropagation(),ei.preventDefault())},eS=ei=>{(!eb||eb(ei.target))&&(e3[e3.length-1]===eo&&(ei.stopPropagation(),ei.preventDefault()),ew())},eE=ei=>{"Escape"!==ei.key||eh||(ei.stopPropagation(),ei.preventDefault(),ew())};(0,em.Fc)({ref:eo,onInteractOutside:ef?eS:null,onInteractOutsideStart:e_});let{focusWithinProps:eA}=(0,em.L_)({isDisabled:!eu,onBlurWithin:ei=>{!(!ei.relatedTarget||(0,eg.cW)(ei.relatedTarget))&&(!eb||eb(ei.relatedTarget))&&ea()}}),eT=ei=>{ei.target===ei.currentTarget&&ei.preventDefault()};return{overlayProps:{onKeyDown:eE,...eA},underlayProps:{onPointerDown:eT}}}function e4(ei,eo,ea){let eu,{type:ed}=ei,{isOpen:eh}=eo;(0,ec.useEffect)(()=>{ea&&ea.current&&eZ.set(ea.current,eo.close)}),"menu"===ed?eu=!0:"listbox"===ed&&(eu="listbox");let eg=(0,ef.Me)();return{triggerProps:{"aria-haspopup":eu,"aria-expanded":eh,"aria-controls":eh?eg:null,onPress:eo.toggle},overlayProps:{id:eg}}}let e6="undefined"!=typeof document&&window.visualViewport,e8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),e9=0;function e7(ei={}){let{isDisabled:eo}=ei;(0,ef.bt)(()=>{if(!eo)return 1==++e9&&(eu=(0,ef.gn)()?tu():ta()),()=>{0==--e9&&eu()}},[eo])}function ta(){return(0,ef.tS)(tc(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),tc(document.documentElement,"overflow","hidden"))}function tu(){let ei;let eo=0,ea=ea=>{((ei=(0,ef.rP)(ea.target))!==document.documentElement||ei!==document.body)&&(eo=ea.changedTouches[0].pageY)},eu=ea=>{if(!ei||ei===document.documentElement||ei===document.body){ea.preventDefault();return}let eu=ea.changedTouches[0].pageY,ec=ei.scrollTop,ed=ei.scrollHeight-ei.clientHeight;0!==ed&&((ec<=0&&eu>eo||ec>=ed&&eu{let eo=ei.target;tp(eo)&&eo!==document.activeElement&&(ei.preventDefault(),eo.style.transform="translateY(-2000px)",eo.focus(),requestAnimationFrame(()=>{eo.style.transform=""}))},ed=ei=>{let eo=ei.target;tp(eo)&&(eo.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{eo.style.transform="",e6&&(e6.height{tf(eo)}):e6.addEventListener("resize",()=>tf(eo),{once:!0}))}))},eh=()=>{window.scrollTo(0,0)},eg=window.pageXOffset,em=window.pageYOffset,eb=(0,ef.tS)(tc(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),tc(document.documentElement,"overflow","hidden"),tc(document.body,"marginTop",`-${em}px`));window.scrollTo(0,0);let ew=(0,ef.tS)(td(document,"touchstart",ea,{passive:!1,capture:!0}),td(document,"touchmove",eu,{passive:!1,capture:!0}),td(document,"touchend",ec,{passive:!1,capture:!0}),td(document,"focus",ed,!0),td(window,"scroll",eh));return()=>{eb(),ew(),window.scrollTo(eg,em)}}function tc(ei,eo,ea){let eu=ei.style[eo];return ei.style[eo]=ea,()=>{ei.style[eo]=eu}}function td(ei,eo,ea,eu){return ei.addEventListener(eo,ea,eu),()=>{ei.removeEventListener(eo,ea,eu)}}function tf(ei){let eo=document.scrollingElement||document.documentElement;for(;ei&&ei!==eo;){let eo=(0,ef.rP)(ei);if(eo!==document.documentElement&&eo!==document.body&&eo!==ei){let ea=eo.getBoundingClientRect().top,eu=ei.getBoundingClientRect().top;eu>ea+ei.clientHeight&&(eo.scrollTop+=eu-ea)}ei=eo.parentElement}}function tp(ei){return ei instanceof HTMLInputElement&&!e8.has(ei.type)||ei instanceof HTMLTextAreaElement||ei instanceof HTMLElement&&ei.isContentEditable}let tg=ec.createContext(null);function tm(ei){let{children:eo}=ei,ea=(0,ec.useContext)(tg),[eu,ed]=(0,ec.useState)(0),ef=(0,ec.useMemo)(()=>({parent:ea,modalCount:eu,addModal(){ed(ei=>ei+1),ea&&ea.addModal()},removeModal(){ed(ei=>ei-1),ea&&ea.removeModal()}}),[ea,eu]);return ec.createElement(tg.Provider,{value:ef},eo)}function tv(){let ei=(0,ec.useContext)(tg);return{modalProviderProps:{"aria-hidden":!!ei&&ei.modalCount>0||null}}}function tb(ei){let{modalProviderProps:eo}=tv();return ec.createElement("div",{"data-overlay-container":!0,...ei,...eo})}function tw(ei){return ec.createElement(tm,null,ec.createElement(tb,ei))}function t_(ei){let eo=(0,ew.Av)(),{portalContainer:ea=eo?null:document.body,...eu}=ei;if(ec.useEffect(()=>{if(null==ea?void 0:ea.closest("[data-overlay-container]"))throw Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[ea]),!ea)return null;let ed=ec.createElement(tw,eu);return eb.createPortal(ed,ea)}function tS(ei){let eo=(0,ec.useContext)(tg);if(!eo)throw Error("Modal is not contained within a provider");return(0,ec.useEffect)(()=>{if((null==ei||!ei.isDisabled)&&eo&&eo.parent)return eo.parent.addModal(),()=>{eo&&eo.parent&&eo.parent.removeModal()}},[eo,eo.parent,null==ei?void 0:ei.isDisabled]),{modalProps:{"data-ismodal":!(null==ei?void 0:ei.isDisabled)}}}var tE={},tA={},tT={},tk={},tC={},tO={},tI={},tP={},tD={},tN={},tM={},tj={},tR={},tL={},tF={},tB={},tU={},tG={},tV={},tq={},tH={},tW={},tK={},tY={},tZ={},t$={},tJ={},tQ={},tX={},ra={},ru={},rc={},rf={},rh={},rp={};function ry(ei){let{onDismiss:eo,...ea}=ei,eu=(0,eh.qb)(eA(tE)),ed=(0,ef.bE)(ea,eu.format("dismiss")),eg=()=>{eo&&eo()};return ec.createElement(eE,null,ec.createElement("button",{...ed,tabIndex:-1,onClick:eg}))}tE={"ar-AE":tA={dismiss:`تجاهل`},"bg-BG":tT={dismiss:`Отхвърляне`},"cs-CZ":tk={dismiss:"Odstranit"},"da-DK":tC={dismiss:"Luk"},"de-DE":tO={dismiss:`Schlie\xdfen`},"el-GR":tI={dismiss:`Απόρριψη`},"en-US":tP={dismiss:"Dismiss"},"es-ES":tD={dismiss:"Descartar"},"et-EE":tN={dismiss:`L\xf5peta`},"fi-FI":tM={dismiss:`Hylk\xe4\xe4`},"fr-FR":tj={dismiss:"Rejeter"},"he-IL":tR={dismiss:`התעלם`},"hr-HR":tL={dismiss:"Odbaci"},"hu-HU":tF={dismiss:`Elutas\xedt\xe1s`},"it-IT":tB={dismiss:"Ignora"},"ja-JP":tU={dismiss:`閉じる`},"ko-KR":tG={dismiss:`무시`},"lt-LT":tV={dismiss:"Atmesti"},"lv-LV":tq={dismiss:`Nerādīt`},"nb-NO":tH={dismiss:"Lukk"},"nl-NL":tW={dismiss:"Negeren"},"pl-PL":tK={dismiss:"Zignoruj"},"pt-BR":tY={dismiss:"Descartar"},"pt-PT":tZ={dismiss:"Dispensar"},"ro-RO":t$={dismiss:"Revocare"},"ru-RU":tJ={dismiss:`Пропустить`},"sk-SK":tQ={dismiss:`Zrušiť`},"sl-SI":tX={dismiss:"Opusti"},"sr-SP":ra={dismiss:"Odbaci"},"sv-SE":ru={dismiss:"Avvisa"},"tr-TR":rc={dismiss:"Kapat"},"uk-UA":rf={dismiss:`Скасувати`},"zh-CN":rh={dismiss:`取消`},"zh-TW":rp={dismiss:`關閉`}},new WeakMap;let rw=ec.createContext(null);function r_(){let ei=(0,ec.useContext)(rw),eo=null==ei?void 0:ei.setContain;(0,ef.bt)(()=>{null==eo||eo(!0)},[eo])}},16769:function(ei,eo,ea){"use strict";ea.d(eo,{Av:function(){return eT},gP:function(){return e_}});var eu=ea(67294);let ec={prefix:String(Math.round(1e10*Math.random())),current:0},ed=eu.createContext(ec),ef=eu.createContext(!1),eh=!!("undefined"!=typeof window&&window.document&&window.document.createElement),eg=new WeakMap;function em(ei=!1){let eo=(0,eu.useContext)(ed),ea=(0,eu.useRef)(null);if(null===ea.current&&!ei){var ec,ef;let ei=null===(ec=eu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===ec?void 0:null===(ef=ec.ReactCurrentOwner)||void 0===ef?void 0:ef.current;if(ei){let ea=eg.get(ei);null==ea?eg.set(ei,{id:eo.current,state:ei.memoizedState}):ei.memoizedState!==ea.state&&(eo.current=ea.id,eg.delete(ei))}ea.current=++eo.current}return ea.current}function eb(ei){let eo=(0,eu.useContext)(ed);eo!==ec||eh||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let ea=em(!!ei),ef=`react-aria${eo.prefix}`;return ei||`${ef}-${ea}`}function ew(ei){let eo=eu.useId(),[ea]=(0,eu.useState)(eT()),ed=ea?"react-aria":`react-aria${ec.prefix}`;return ei||`${ed}-${eo}`}let e_="function"==typeof eu.useId?ew:eb;function eS(){return!1}function eE(){return!0}function eA(ei){return()=>{}}function eT(){return"function"==typeof eu.useSyncExternalStore?eu.useSyncExternalStore(eA,eS,eE):(0,eu.useContext)(ef)}},768:function(ei,eo,ea){"use strict";ea.d(eo,{Ao:function(){return eI},Gt:function(){return tb},Me:function(){return eb},PK:function(){return tp},QB:function(){return e4},V5:function(){return eL},Zj:function(){return tw},a9:function(){return tc},ad:function(){return eG},b0:function(){return e$},bE:function(){return e8},bt:function(){return ef},cr:function(){return t_},dG:function(){return eE},gn:function(){return eU},iW:function(){return eh},lE:function(){return ta},mp:function(){return e_},nG:function(){return eJ},rP:function(){return tu},tS:function(){return eS},tv:function(){return eZ},xi:function(){return e6},yU:function(){return e7},zL:function(){return eO},zT:function(){return tm},zX:function(){return tg}});var eu=ea(67294),ec=ea(16769),ed=ea(86010);let ef="undefined"!=typeof document?eu.useLayoutEffect:()=>{};function eh(ei){let eo=(0,eu.useRef)(null);return ef(()=>{eo.current=ei},[ei]),(0,eu.useCallback)((...ei)=>{let ea=eo.current;return ea(...ei)},[])}function eg(ei){let[eo,ea]=(0,eu.useState)(ei),ec=(0,eu.useRef)(null),ed=eh(()=>{let ei=ec.current.next();if(ei.done){ec.current=null;return}eo===ei.value?ed():ea(ei.value)});ef(()=>{ec.current&&ed()});let eg=eh(ei=>{ec.current=ei(eo),ed()});return[eo,eg]}let em=new Map;function eb(ei){let[eo,ea]=(0,eu.useState)(ei),ed=(0,eu.useRef)(null),eh=(0,ec.gP)(eo),eg=(0,eu.useCallback)(ei=>{ed.current=ei},[]);return em.set(eh,eg),ef(()=>{let ei=eh;return()=>{em.delete(ei)}},[eh]),(0,eu.useEffect)(()=>{let ei=ed.current;ei&&(ed.current=null,ea(ei))}),eh}function ew(ei,eo){if(ei===eo)return ei;let ea=em.get(ei);if(ea)return ea(eo),eo;let eu=em.get(eo);return eu?(eu(ei),ei):eo}function e_(ei=[]){let eo=eb(),[ea,ec]=eg(eo),ed=(0,eu.useCallback)(()=>{ec(function*(){yield eo,yield document.getElementById(eo)?eo:void 0})},[eo,ec]);return ef(ed,[eo,ed,...ei]),ea}function eS(...ei){return(...eo)=>{for(let ea of ei)"function"==typeof ea&&ea(...eo)}}function eE(...ei){let eo={...ei[0]};for(let ea=1;ea=65&&90>=ei.charCodeAt(2)?eo[ei]=eS(ea,ec):("className"===ei||"UNSAFE_className"===ei)&&"string"==typeof ea&&"string"==typeof ec?eo[ei]=(0,ed.Z)(ea,ec):"id"===ei&&ea&&ec?eo.id=ew(ea,ec):eo[ei]=void 0!==ec?ec:ea}}return eo}let eA=new Set(["id"]),eT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ek=new Set(["href","target","rel","download","ping","referrerPolicy"]),eC=/^(data-.*)$/;function eO(ei,eo={}){let{labelable:ea,isLink:eu,propNames:ec}=eo,ed={};for(let eo in ei)Object.prototype.hasOwnProperty.call(ei,eo)&&(eA.has(eo)||ea&&eT.has(eo)||eu&&ek.has(eo)||(null==ec?void 0:ec.has(eo))||eC.test(eo))&&(ed[eo]=ei[eo]);return ed}function eI(ei){if(eD())ei.focus({preventScroll:!0});else{let eo=eN(ei);ei.focus(),eM(eo)}}let eP=null;function eD(){if(null==eP){eP=!1;try{document.createElement("div").focus({get preventScroll(){return eP=!0,!0}})}catch(ei){}}return eP}function eN(ei){for(var eo=ei.parentNode,ea=[],eu=document.scrollingElement||document.documentElement;eo instanceof HTMLElement&&eo!==eu;)(eo.offsetHeightei.test(eo.brand)))||ei.test(window.navigator.userAgent))}function eR(ei){var eo;return"undefined"!=typeof window&&null!=window.navigator&&ei.test((null===(eo=window.navigator.userAgentData)||void 0===eo?void 0:eo.platform)||window.navigator.platform)}function eL(){return eR(/^Mac/i)}function eF(){return eR(/^iPhone/i)}function eB(){return eR(/^iPad/i)||eL()&&navigator.maxTouchPoints>1}function eU(){return eF()||eB()}function eG(){return eL()||eU()}function eV(){return ej(/AppleWebKit/i)&&!eH()}function eH(){return ej(/Chrome/i)}function eW(){return ej(/Android/i)}function eK(){return ej(/Firefox/i)}let eY=(0,eu.createContext)({isNative:!0,open:eX});function eZ(){return(0,eu.useContext)(eY)}function e$(ei,eo){let ea=ei.getAttribute("target");return(!ea||"_self"===ea)&&ei.origin===location.origin&&!ei.hasAttribute("download")&&!eo.metaKey&&!eo.ctrlKey&&!eo.altKey&&!eo.shiftKey}function eJ(ei,eo,ea=!0){var eu,ec;let{metaKey:ed,ctrlKey:ef,altKey:eh,shiftKey:eg}=eo;eK()&&(null===(eu=window.event)||void 0===eu?void 0:null===(ec=eu.type)||void 0===ec?void 0:ec.startsWith("key"))&&"_blank"===ei.target&&(eL()?ed=!0:ef=!0);let em=eV()&&eL()&&!eB()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:ed,ctrlKey:ef,altKey:eh,shiftKey:eg}):new MouseEvent("click",{metaKey:ed,ctrlKey:ef,altKey:eh,shiftKey:eg,bubbles:!0,cancelable:!0});eJ.isOpening=ea,eI(ei),ei.dispatchEvent(em),eJ.isOpening=!1}function eQ(ei,eo){if(ei instanceof HTMLAnchorElement)eo(ei);else if(ei.hasAttribute("data-href")){let ea=document.createElement("a");ea.href=ei.getAttribute("data-href"),ei.hasAttribute("data-target")&&(ea.target=ei.getAttribute("data-target")),ei.hasAttribute("data-rel")&&(ea.rel=ei.getAttribute("data-rel")),ei.hasAttribute("data-download")&&(ea.download=ei.getAttribute("data-download")),ei.hasAttribute("data-ping")&&(ea.ping=ei.getAttribute("data-ping")),ei.hasAttribute("data-referrer-policy")&&(ea.referrerPolicy=ei.getAttribute("data-referrer-policy")),ei.appendChild(ea),eo(ea),ei.removeChild(ea)}}function eX(ei,eo){eQ(ei,ei=>eJ(ei,eo))}eJ.isOpening=!1;let e0=new Map,e3=new Set;function e5(){if("undefined"==typeof window)return;let ei=ei=>{let ea=e0.get(ei.target);ea||(ea=new Set,e0.set(ei.target,ea),ei.target.addEventListener("transitioncancel",eo)),ea.add(ei.propertyName)},eo=ei=>{let ea=e0.get(ei.target);if(ea&&(ea.delete(ei.propertyName),0===ea.size&&(ei.target.removeEventListener("transitioncancel",eo),e0.delete(ei.target)),0===e0.size)){for(let ei of e3)ei();e3.clear()}};document.body.addEventListener("transitionrun",ei),document.body.addEventListener("transitionend",eo)}function e4(ei){requestAnimationFrame(()=>{0===e0.size?ei():e3.add(ei)})}function e6(){let ei=(0,eu.useRef)(new Map),eo=(0,eu.useCallback)((eo,ea,eu,ec)=>{let ed=(null==ec?void 0:ec.once)?(...eo)=>{ei.current.delete(eu),eu(...eo)}:eu;ei.current.set(eu,{type:ea,eventTarget:eo,fn:ed,options:ec}),eo.addEventListener(ea,eu,ec)},[]),ea=(0,eu.useCallback)((eo,ea,eu,ec)=>{var ed;let ef=(null===(ed=ei.current.get(eu))||void 0===ed?void 0:ed.fn)||eu;eo.removeEventListener(ea,ef,ec),ei.current.delete(eu)},[]),ec=(0,eu.useCallback)(()=>{ei.current.forEach((ei,eo)=>{ea(ei.eventTarget,ei.type,eo,ei.options)})},[ea]);return(0,eu.useEffect)(()=>ec,[ec]),{addGlobalListener:eo,removeGlobalListener:ea,removeAllGlobalListeners:ec}}function e8(ei,eo){let{id:ea,"aria-label":eu,"aria-labelledby":ec}=ei;return ea=eb(ea),ec&&eu?ec=[...new Set([ea,...ec.trim().split(/\s+/)])].join(" "):ec&&(ec=ec.trim().split(/\s+/).join(" ")),eu||ec||!eo||(eu=eo),{id:ea,"aria-label":eu,"aria-labelledby":ec}}function e9(){return void 0!==window.ResizeObserver}function e7(ei){let{ref:eo,onResize:ea}=ei;(0,eu.useEffect)(()=>{let ei=null==eo?void 0:eo.current;if(ei){if(!e9())return window.addEventListener("resize",ea,!1),()=>{window.removeEventListener("resize",ea,!1)};{let eo=new window.ResizeObserver(ei=>{ei.length&&ea()});return eo.observe(ei),()=>{ei&&eo.unobserve(ei)}}}},[ea,eo])}function ta(ei,eo){ef(()=>{if(ei&&ei.ref&&eo)return ei.ref.current=eo.current,()=>{ei.ref.current=null}})}function tu(ei){for(tc(ei)&&(ei=ei.parentElement);ei&&!tc(ei);)ei=ei.parentElement;return ei||document.scrollingElement||document.documentElement}function tc(ei){let eo=window.getComputedStyle(ei);return/(auto|scroll)/.test(eo.overflow+eo.overflowX+eo.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?e5():document.addEventListener("DOMContentLoaded",e5)),"undefined"!=typeof document&&window.visualViewport;let td=0,tf=new Map;function tp(ei){let[eo,ea]=(0,eu.useState)(void 0);return ef(()=>{if(!ei)return;let eo=tf.get(ei);if(eo)ea(eo.element.id);else{let eu=`react-aria-description-${td++}`;ea(eu);let ec=document.createElement("div");ec.id=eu,ec.style.display="none",ec.textContent=ei,document.body.appendChild(ec),eo={refCount:0,element:ec},tf.set(ei,eo)}return eo.refCount++,()=>{0==--eo.refCount&&(eo.element.remove(),tf.delete(ei))}},[ei]),{"aria-describedby":ei?eo:void 0}}function tg(ei,eo,ea,ec){let ed=eh(ea),ef=null==ea;(0,eu.useEffect)(()=>{if(ef)return;let ea=ei.current;return ea.addEventListener(eo,ed,ec),()=>{ea.removeEventListener(eo,ed,ec)}},[ei,eo,ec,ef,ed])}function tm(ei,eo){let ea=tv(ei,eo,"left"),eu=tv(ei,eo,"top"),ec=eo.offsetWidth,ed=eo.offsetHeight,ef=ei.scrollLeft,eh=ei.scrollTop,{borderTopWidth:eg,borderLeftWidth:em}=getComputedStyle(ei),eb=ei.scrollLeft+parseInt(em,10),ew=ei.scrollTop+parseInt(eg,10),e_=eb+ei.clientWidth,eS=ew+ei.clientHeight;ea<=ef?ef=ea-parseInt(em,10):ea+ec>e_&&(ef+=ea+ec-e_),eu<=ew?eh=eu-parseInt(eg,10):eu+ed>eS&&(eh+=eu+ed-eS),ei.scrollLeft=ef,ei.scrollTop=eh}function tv(ei,eo,ea){let eu="left"===ea?"offsetLeft":"offsetTop",ec=0;for(;eo.offsetParent&&(ec+=eo[eu],eo.offsetParent!==ei);){if(eo.offsetParent.contains(ei)){ec-=ei[eu];break}eo=eo.offsetParent}return ec}function tb(ei,eo){if(document.contains(ei)){let ef=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(ef).overflow){let eo=tu(ei);for(;ei&&eo&&ei!==ef&&eo!==ef;)tm(eo,ei),eo=tu(ei=eo)}else{var ea,eu,ec,ed;let{left:ef,top:eh}=ei.getBoundingClientRect();null==ei||null===(ea=ei.scrollIntoView)||void 0===ea||ea.call(ei,{block:"nearest"});let{left:eg,top:em}=ei.getBoundingClientRect();(Math.abs(ef-eg)>1||Math.abs(eh-em)>1)&&(null==eo||null===(eu=eo.containingElement)||void 0===eu||null===(ec=eu.scrollIntoView)||void 0===ec||ec.call(eu,{block:"center",inline:"center"}),null===(ed=ei.scrollIntoView)||void 0===ed||ed.call(ei,{block:"nearest"}))}}}function tw(ei){return 0===ei.mozInputSource&&!!ei.isTrusted||(eW()&&ei.pointerType?"click"===ei.type&&1===ei.buttons:0===ei.detail&&!ei.pointerType)}function t_(ei){return!eW()&&0===ei.width&&0===ei.height||1===ei.width&&1===ei.height&&0===ei.pressure&&0===ei.detail&&"mouse"===ei.pointerType}},65897:function(ei,eo,ea){"use strict";ea.d(eo,{uZ:function(){return ed},zk:function(){return ec}});var eu=ea(67294);function ec(ei,eo,ea){let[ec,ed]=(0,eu.useState)(ei||eo),ef=(0,eu.useRef)(void 0!==ei),eh=void 0!==ei;(0,eu.useEffect)(()=>{let ei=ef.current;ei!==eh&&console.warn(`WARN: A component changed from ${ei?"controlled":"uncontrolled"} to ${eh?"controlled":"uncontrolled"}.`),ef.current=eh},[eh]);let eg=eh?ei:ec,em=(0,eu.useCallback)((ei,...eo)=>{let eu=(ei,...eo)=>{ea&&!Object.is(eg,ei)&&ea(ei,...eo),eh||(eg=ei)};"function"==typeof ei?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),ed((ea,...ec)=>{let ed=ei(eh?eg:ea,...ec);return(eu(ed,...eo),eh)?ea:ed})):(eh||ed(ei),eu(ei,...eo))},[eh,eg,ea]);return[eg,em]}function ed(ei,eo=-1/0,ea=1/0){return Math.min(Math.max(ei,eo),ea)}},15761:function(ei,eo,ea){"use strict";ea.d(eo,{j:function(){return ef}});var eu=ea(33989),ec=ea(32161);class ed extends eu.l{constructor(){super(),this.setup=ei=>{if(!ec.sk&&window.addEventListener){let eo=()=>ei();return window.addEventListener("visibilitychange",eo,!1),window.addEventListener("focus",eo,!1),()=>{window.removeEventListener("visibilitychange",eo),window.removeEventListener("focus",eo)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var ei;null==(ei=this.cleanup)||ei.call(this),this.cleanup=void 0}}setEventListener(ei){var eo;this.setup=ei,null==(eo=this.cleanup)||eo.call(this),this.cleanup=ei(ei=>{"boolean"==typeof ei?this.setFocused(ei):this.onFocus()})}setFocused(ei){let eo=this.focused!==ei;eo&&(this.focused=ei,this.onFocus())}onFocus(){this.listeners.forEach(({listener:ei})=>{ei()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let ef=new ed},30819:function(ei,eo,ea){"use strict";ea.d(eo,{_:function(){return eu}});let eu=console},89886:function(ei,eo,ea){"use strict";ea.d(eo,{R:function(){return eg},m:function(){return eh}});var eu=ea(30819),ec=ea(30081),ed=ea(89643),ef=ea(72379);class eh extends ed.F{constructor(ei){super(),this.defaultOptions=ei.defaultOptions,this.mutationId=ei.mutationId,this.mutationCache=ei.mutationCache,this.logger=ei.logger||eu._,this.observers=[],this.state=ei.state||eg(),this.setOptions(ei.options),this.scheduleGc()}setOptions(ei){this.options={...this.defaultOptions,...ei},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(ei){this.dispatch({type:"setState",state:ei})}addObserver(ei){this.observers.includes(ei)||(this.observers.push(ei),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:ei}))}removeObserver(ei){this.observers=this.observers.filter(eo=>eo!==ei),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:ei})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var ei,eo;return null!=(ei=null==(eo=this.retryer)?void 0:eo.continue())?ei:this.execute()}async execute(){var ei,eo,ea,eu,ec,ed,eh,eg,em,eb,ew,e_,eS,eE,eA,eT,ek,eC,eO,eI;let eP=()=>{var ei;return this.retryer=(0,ef.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(ei,eo)=>{this.dispatch({type:"failed",failureCount:ei,error:eo})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(ei=this.options.retry)?ei:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},eD="loading"===this.state.status;try{if(!eD){this.dispatch({type:"loading",variables:this.options.variables}),await(null==(em=(eb=this.mutationCache.config).onMutate)?void 0:em.call(eb,this.state.variables,this));let ei=await(null==(ew=(e_=this.options).onMutate)?void 0:ew.call(e_,this.state.variables));ei!==this.state.context&&this.dispatch({type:"loading",context:ei,variables:this.state.variables})}let ef=await eP();return await(null==(ei=(eo=this.mutationCache.config).onSuccess)?void 0:ei.call(eo,ef,this.state.variables,this.state.context,this)),await(null==(ea=(eu=this.options).onSuccess)?void 0:ea.call(eu,ef,this.state.variables,this.state.context)),await(null==(ec=(ed=this.mutationCache.config).onSettled)?void 0:ec.call(ed,ef,null,this.state.variables,this.state.context,this)),await(null==(eh=(eg=this.options).onSettled)?void 0:eh.call(eg,ef,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:ef}),ef}catch(ei){try{throw await(null==(eS=(eE=this.mutationCache.config).onError)?void 0:eS.call(eE,ei,this.state.variables,this.state.context,this)),await(null==(eA=(eT=this.options).onError)?void 0:eA.call(eT,ei,this.state.variables,this.state.context)),await(null==(ek=(eC=this.mutationCache.config).onSettled)?void 0:ek.call(eC,void 0,ei,this.state.variables,this.state.context,this)),await(null==(eO=(eI=this.options).onSettled)?void 0:eO.call(eI,void 0,ei,this.state.variables,this.state.context)),ei}finally{this.dispatch({type:"error",error:ei})}}}dispatch(ei){let eo=eo=>{switch(ei.type){case"failed":return{...eo,failureCount:ei.failureCount,failureReason:ei.error};case"pause":return{...eo,isPaused:!0};case"continue":return{...eo,isPaused:!1};case"loading":return{...eo,context:ei.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,ef.Kw)(this.options.networkMode),status:"loading",variables:ei.variables};case"success":return{...eo,data:ei.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...eo,data:void 0,error:ei.error,failureCount:eo.failureCount+1,failureReason:ei.error,isPaused:!1,status:"error"};case"setState":return{...eo,...ei.state}}};this.state=eo(this.state),ec.V.batch(()=>{this.observers.forEach(eo=>{eo.onMutationUpdate(ei)}),this.mutationCache.notify({mutation:this,type:"updated",action:ei})})}}function eg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},19999:function(ei,eo,ea){"use strict";ea.d(eo,{X:function(){return eh}});var eu=ea(89886),ec=ea(30081),ed=ea(33989),ef=ea(32161);class eh extends ed.l{constructor(ei,eo){super(),this.client=ei,this.setOptions(eo),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(ei){var eo;let ea=this.options;this.options=this.client.defaultMutationOptions(ei),(0,ef.VS)(ea,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(eo=this.currentMutation)||eo.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var ei;null==(ei=this.currentMutation)||ei.removeObserver(this)}}onMutationUpdate(ei){this.updateResult();let eo={listeners:!0};"success"===ei.type?eo.onSuccess=!0:"error"===ei.type&&(eo.onError=!0),this.notify(eo)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(ei,eo){return this.mutateOptions=eo,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==ei?ei:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let ei=this.currentMutation?this.currentMutation.state:(0,eu.R)(),eo={...ei,isLoading:"loading"===ei.status,isSuccess:"success"===ei.status,isError:"error"===ei.status,isIdle:"idle"===ei.status,mutate:this.mutate,reset:this.reset};this.currentResult=eo}notify(ei){ec.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var eo,ea,eu,ec,ed,ef,eh,eg;ei.onSuccess?(null==(eo=(ea=this.mutateOptions).onSuccess)||eo.call(ea,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(eu=(ec=this.mutateOptions).onSettled)||eu.call(ec,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):ei.onError&&(null==(ed=(ef=this.mutateOptions).onError)||ed.call(ef,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(eh=(eg=this.mutateOptions).onSettled)||eh.call(eg,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}ei.listeners&&this.listeners.forEach(({listener:ei})=>{ei(this.currentResult)})})}}},30081:function(ei,eo,ea){"use strict";ea.d(eo,{V:function(){return ed}});var eu=ea(32161);function ec(){let ei=[],eo=0,ea=ei=>{ei()},ec=ei=>{ei()},ed=ei=>{let ea;eo++;try{ea=ei()}finally{--eo||eg()}return ea},ef=ec=>{eo?ei.push(ec):(0,eu.A4)(()=>{ea(ec)})},eh=ei=>(...eo)=>{ef(()=>{ei(...eo)})},eg=()=>{let eo=ei;ei=[],eo.length&&(0,eu.A4)(()=>{ec(()=>{eo.forEach(ei=>{ea(ei)})})})},em=ei=>{ea=ei},eb=ei=>{ec=ei};return{batch:ed,batchCalls:eh,schedule:ef,setNotifyFunction:em,setBatchNotifyFunction:eb}}let ed=ec()},96474:function(ei,eo,ea){"use strict";ea.d(eo,{N:function(){return eh}});var eu=ea(33989),ec=ea(32161);let ed=["online","offline"];class ef extends eu.l{constructor(){super(),this.setup=ei=>{if(!ec.sk&&window.addEventListener){let eo=()=>ei();return ed.forEach(ei=>{window.addEventListener(ei,eo,!1)}),()=>{ed.forEach(ei=>{window.removeEventListener(ei,eo)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var ei;null==(ei=this.cleanup)||ei.call(this),this.cleanup=void 0}}setEventListener(ei){var eo;this.setup=ei,null==(eo=this.cleanup)||eo.call(this),this.cleanup=ei(ei=>{"boolean"==typeof ei?this.setOnline(ei):this.onOnline()})}setOnline(ei){let eo=this.online!==ei;eo&&(this.online=ei,this.onOnline())}onOnline(){this.listeners.forEach(({listener:ei})=>{ei()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let eh=new ef},89643:function(ei,eo,ea){"use strict";ea.d(eo,{F:function(){return ec}});var eu=ea(32161);class ec{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,eu.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(ei){this.cacheTime=Math.max(this.cacheTime||0,null!=ei?ei:eu.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},72379:function(ei,eo,ea){"use strict";ea.d(eo,{DV:function(){return em},Kw:function(){return eh},Mz:function(){return eb}});var eu=ea(15761),ec=ea(96474),ed=ea(32161);function ef(ei){return Math.min(1e3*2**ei,3e4)}function eh(ei){return(null!=ei?ei:"online")!=="online"||ec.N.isOnline()}class eg{constructor(ei){this.revert=null==ei?void 0:ei.revert,this.silent=null==ei?void 0:ei.silent}}function em(ei){return ei instanceof eg}function eb(ei){let eo,ea,em,eb=!1,ew=0,e_=!1,eS=new Promise((ei,eo)=>{ea=ei,em=eo}),eE=eo=>{e_||(eO(new eg(eo)),null==ei.abort||ei.abort())},eA=()=>{eb=!0},eT=()=>{eb=!1},ek=()=>!eu.j.isFocused()||"always"!==ei.networkMode&&!ec.N.isOnline(),eC=eu=>{e_||(e_=!0,null==ei.onSuccess||ei.onSuccess(eu),null==eo||eo(),ea(eu))},eO=ea=>{e_||(e_=!0,null==ei.onError||ei.onError(ea),null==eo||eo(),em(ea))},eI=()=>new Promise(ea=>{eo=ei=>{let eo=e_||!ek();return eo&&ea(ei),eo},null==ei.onPause||ei.onPause()}).then(()=>{eo=void 0,e_||null==ei.onContinue||ei.onContinue()}),eP=()=>{let eo;if(!e_){try{eo=ei.fn()}catch(ei){eo=Promise.reject(ei)}Promise.resolve(eo).then(eC).catch(eo=>{var ea,eu;if(e_)return;let ec=null!=(ea=ei.retry)?ea:3,eh=null!=(eu=ei.retryDelay)?eu:ef,eg="function"==typeof eh?eh(ew,eo):eh,em=!0===ec||"number"==typeof ec&&ew{if(ek())return eI()}).then(()=>{eb?eO(eo):eP()})})}};return eh(ei.networkMode)?eP():eI().then(eP),{promise:eS,cancel:eE,continue:()=>{let ei=null==eo?void 0:eo();return ei?eS:Promise.resolve()},cancelRetry:eA,continueRetry:eT}}},33989:function(ei,eo,ea){"use strict";ea.d(eo,{l:function(){return eu}});class eu{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(ei){let eo={listener:ei};return this.listeners.add(eo),this.onSubscribe(),()=>{this.listeners.delete(eo),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},32161:function(ei,eo,ea){"use strict";ea.d(eo,{A4:function(){return eM},G9:function(){return ej},Gh:function(){return eN},I6:function(){return eb},Kp:function(){return eh},PN:function(){return ef},Rm:function(){return eS},SE:function(){return ed},VS:function(){return eC},X7:function(){return e_},ZT:function(){return ec},_v:function(){return eg},_x:function(){return ew},lV:function(){return em},oE:function(){return eR},sk:function(){return eu},to:function(){return eA},yF:function(){return eE}});let eu="undefined"==typeof window||"Deno"in window;function ec(){}function ed(ei,eo){return"function"==typeof ei?ei(eo):ei}function ef(ei){return"number"==typeof ei&&ei>=0&&ei!==1/0}function eh(ei,eo){return Math.max(ei+(eo||0)-Date.now(),0)}function eg(ei,eo,ea){return eD(ei)?"function"==typeof eo?{...ea,queryKey:ei,queryFn:eo}:{...eo,queryKey:ei}:ei}function em(ei,eo,ea){return eD(ei)?"function"==typeof eo?{...ea,mutationKey:ei,mutationFn:eo}:{...eo,mutationKey:ei}:"function"==typeof ei?{...eo,mutationFn:ei}:{...ei}}function eb(ei,eo,ea){return eD(ei)?[{...eo,queryKey:ei},ea]:[ei||{},eo]}function ew(ei,eo){let{type:ea="all",exact:eu,fetchStatus:ec,predicate:ed,queryKey:ef,stale:eh}=ei;if(eD(ef)){if(eu){if(eo.queryHash!==eS(ef,eo.options))return!1}else if(!eA(eo.queryKey,ef))return!1}if("all"!==ea){let ei=eo.isActive();if("active"===ea&&!ei||"inactive"===ea&&ei)return!1}return("boolean"!=typeof eh||eo.isStale()===eh)&&(void 0===ec||ec===eo.state.fetchStatus)&&(!ed||!!ed(eo))}function e_(ei,eo){let{exact:ea,fetching:eu,predicate:ec,mutationKey:ed}=ei;if(eD(ed)){if(!eo.options.mutationKey)return!1;if(ea){if(eE(eo.options.mutationKey)!==eE(ed))return!1}else if(!eA(eo.options.mutationKey,ed))return!1}return("boolean"!=typeof eu||"loading"===eo.state.status===eu)&&(!ec||!!ec(eo))}function eS(ei,eo){let ea=(null==eo?void 0:eo.queryKeyHashFn)||eE;return ea(ei)}function eE(ei){return JSON.stringify(ei,(ei,eo)=>eI(eo)?Object.keys(eo).sort().reduce((ei,ea)=>(ei[ea]=eo[ea],ei),{}):eo)}function eA(ei,eo){return eT(ei,eo)}function eT(ei,eo){return ei===eo||typeof ei==typeof eo&&!!ei&&!!eo&&"object"==typeof ei&&"object"==typeof eo&&!Object.keys(eo).some(ea=>!eT(ei[ea],eo[ea]))}function ek(ei,eo){if(ei===eo)return ei;let ea=eO(ei)&&eO(eo);if(ea||eI(ei)&&eI(eo)){let eu=ea?ei.length:Object.keys(ei).length,ec=ea?eo:Object.keys(eo),ed=ec.length,ef=ea?[]:{},eh=0;for(let eu=0;eu{setTimeout(eo,ei)})}function eM(ei){eN(0).then(ei)}function ej(){if("function"==typeof AbortController)return new AbortController}function eR(ei,eo,ea){return null!=ea.isDataEqual&&ea.isDataEqual(ei,eo)?ei:"function"==typeof ea.structuralSharing?ea.structuralSharing(ei,eo):!1!==ea.structuralSharing?ek(ei,eo):eo}},85945:function(ei,eo,ea){"use strict";ea.d(eo,{NL:function(){return eh},aH:function(){return eg}});var eu=ea(67294);let ec=eu.createContext(void 0),ed=eu.createContext(!1);function ef(ei,eo){return ei||(eo&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ec),window.ReactQueryClientContext):ec)}let eh=({context:ei}={})=>{let eo=eu.useContext(ef(ei,eu.useContext(ed)));if(!eo)throw Error("No QueryClient set, use QueryClientProvider to set one");return eo},eg=({client:ei,children:eo,context:ea,contextSharing:ec=!1})=>{eu.useEffect(()=>(ei.mount(),()=>{ei.unmount()}),[ei]);let eh=ef(ea,ec);return eu.createElement(ed.Provider,{value:!ea&&ec},eu.createElement(eh.Provider,{value:ei},eo))}},464:function(ei,eo,ea){"use strict";ea.d(eo,{$:function(){return ec}});var eu=ea(61688);let ec=eu.useSyncExternalStore},24798:function(ei,eo,ea){"use strict";function eu(ei,eo){return"function"==typeof ei?ei(...eo):!!ei}ea.d(eo,{L:function(){return eu}})},75740:function(ei,eo,ea){"use strict";ea.d(eo,{t0:function(){return eY},zv:function(){return eB},uA:function(){return eV},uc:function(){return e9},jb:function(){return ta},zb:function(){return eW},AV:function(){return eF},Ic:function(){return tb},Vs:function(){return t_}});let eu=Symbol(),ec=Symbol(),ed="a",ef="w",eh=(ei,eo)=>new Proxy(ei,eo),eg=Object.getPrototypeOf,em=new WeakMap,eb=ei=>ei&&(em.has(ei)?em.get(ei):eg(ei)===Object.prototype||eg(ei)===Array.prototype),ew=ei=>"object"==typeof ei&&null!==ei,e_=ei=>{if(Array.isArray(ei))return Array.from(ei);let eo=Object.getOwnPropertyDescriptors(ei);return Object.values(eo).forEach(ei=>{ei.configurable=!0}),Object.create(eg(ei),eo)},eS=ei=>ei[ec]||ei,eE=(ei,eo,ea,eg)=>{if(!eb(ei))return ei;let em=eg&&eg.get(ei);if(!em){var ew;let eo=eS(ei);em=Object.values(Object.getOwnPropertyDescriptors(ew=eo)).some(ei=>!ei.configurable&&!ei.writable)?[eo,e_(eo)]:[eo],null==eg||eg.set(ei,em)}let[eA,eT]=em,ek=ea&&ea.get(eA);return ek&&!!eT===ek[1].f||((ek=((ei,eo)=>{let ea={f:eo},eh=!1,eg=(eo,eu)=>{if(!eh){let ec=ea[ed].get(ei);if(ec||(ec={},ea[ed].set(ei,ec)),eo===ef)ec[ef]=!0;else{let ei=ec[eo];ei||(ei=new Set,ec[eo]=ei),ei.add(eu)}}},em={get:(eo,eu)=>eu===ec?ei:(eg("k",eu),eE(Reflect.get(eo,eu),ea[ed],ea.c,ea.t)),has:(eo,ec)=>ec===eu?(eh=!0,ea[ed].delete(ei),!0):(eg("h",ec),Reflect.has(eo,ec)),getOwnPropertyDescriptor:(ei,eo)=>(eg("o",eo),Reflect.getOwnPropertyDescriptor(ei,eo)),ownKeys:ei=>(eg(ef),Reflect.ownKeys(ei))};return eo&&(em.set=em.deleteProperty=()=>!1),[em,ea]})(eA,!!eT))[1].p=eh(eT||eA,ek[0]),ea&&ea.set(eA,ek)),ek[1][ed]=eo,ek[1].c=ea,ek[1].t=eg,ek[1].p},eA=(ei,eo,ea,eu)=>{if(Object.is(ei,eo))return!1;if(!ew(ei)||!ew(eo))return!0;let ec=ea.get(eS(ei));if(!ec)return!0;if(eu){let ea=eu.get(ei);if(ea&&ea.n===eo)return ea.g;eu.set(ei,{n:eo,g:!1})}let ed=null;try{for(let ea of ec.h||[])if(ed=Reflect.has(ei,ea)!==Reflect.has(eo,ea))return ed;if(!0===ec[ef]){if(ed=((ei,eo)=>{let ea=Reflect.ownKeys(ei),eu=Reflect.ownKeys(eo);return ea.length!==eu.length||ea.some((ei,eo)=>ei!==eu[eo])})(ei,eo))return ed}else for(let ea of ec.o||[])if(ed=!!Reflect.getOwnPropertyDescriptor(ei,ea)!=!!Reflect.getOwnPropertyDescriptor(eo,ea))return ed;for(let ef of ec.k||[])if(ed=eA(ei[ef],eo[ef],ea,eu))return ed;return null===ed&&(ed=!0),ed}finally{eu&&eu.set(ei,{n:eo,g:ed})}},eT=ei=>eb(ei)&&ei[ec]||null,ek=(ei,eo=!0)=>{em.set(ei,eo)},eC=ei=>"object"==typeof ei&&null!==ei,eO=new WeakMap,eI=new WeakSet,eP=(ei=Object.is,eo=(ei,eo)=>new Proxy(ei,eo),ea=ei=>eC(ei)&&!eI.has(ei)&&(Array.isArray(ei)||!(Symbol.iterator in ei))&&!(ei instanceof WeakMap)&&!(ei instanceof WeakSet)&&!(ei instanceof Error)&&!(ei instanceof Number)&&!(ei instanceof Date)&&!(ei instanceof String)&&!(ei instanceof RegExp)&&!(ei instanceof ArrayBuffer),eu=ei=>{switch(ei.status){case"fulfilled":return ei.value;case"rejected":throw ei.reason;default:throw ei}},ec=new WeakMap,ed=(ei,eo,ea=eu)=>{let ef=ec.get(ei);if((null==ef?void 0:ef[0])===eo)return ef[1];let eh=Array.isArray(ei)?[]:Object.create(Object.getPrototypeOf(ei));return ek(eh,!0),ec.set(ei,[eo,eh]),Reflect.ownKeys(ei).forEach(eo=>{if(Object.getOwnPropertyDescriptor(eh,eo))return;let eu=Reflect.get(ei,eo),ec={value:eu,enumerable:!0,configurable:!0};if(eI.has(eu))ek(eu,!1);else if(eu instanceof Promise)delete ec.value,ec.get=()=>ea(eu);else if(eO.has(eu)){let[ei,eo]=eO.get(eu);ec.value=ed(ei,eo(),ea)}Object.defineProperty(eh,eo,ec)}),eh},ef=new WeakMap,eh=[1,1],eg=eu=>{if(!eC(eu))throw Error("object required");let ec=ef.get(eu);if(ec)return ec;let em=eh[0],eb=new Set,ew=(ei,eo=++eh[0])=>{em!==eo&&(em=eo,eb.forEach(ea=>ea(ei,eo)))},e_=eh[1],eS=(ei=++eh[1])=>(e_===ei||eb.size||(e_=ei,eA.forEach(([eo])=>{let ea=eo[1](ei);ea>em&&(em=ea)})),em),eE=ei=>(eo,ea)=>{let eu=[...eo];eu[1]=[ei,...eu[1]],ew(eu,ea)},eA=new Map,ek=(ei,eo)=>{if(eA.has(ei))throw Error("prop listener already exists");if(eb.size){let ea=eo[3](eE(ei));eA.set(ei,[eo,ea])}else eA.set(ei,[eo])},eP=ei=>{var eo;let ea=eA.get(ei);ea&&(eA.delete(ei),null==(eo=ea[1])||eo.call(ea))},eD=ei=>{eb.add(ei),1===eb.size&&eA.forEach(([ei,eo],ea)=>{if(eo)throw Error("remove already exists");let eu=ei[3](eE(ea));eA.set(ea,[ei,eu])});let eo=()=>{eb.delete(ei),0===eb.size&&eA.forEach(([ei,eo],ea)=>{eo&&(eo(),eA.set(ea,[ei]))})};return eo},eN=Array.isArray(eu)?[]:Object.create(Object.getPrototypeOf(eu)),eM={deleteProperty(ei,eo){let ea=Reflect.get(ei,eo);eP(eo);let eu=Reflect.deleteProperty(ei,eo);return eu&&ew(["delete",[eo],ea]),eu},set(eo,eu,ec,ed){let eh=Reflect.has(eo,eu),em=Reflect.get(eo,eu,ed);if(eh&&(ei(em,ec)||ef.has(ec)&&ei(em,ef.get(ec))))return!0;eP(eu),eC(ec)&&(ec=eT(ec)||ec);let eb=ec;if(ec instanceof Promise)ec.then(ei=>{ec.status="fulfilled",ec.value=ei,ew(["resolve",[eu],ei])}).catch(ei=>{ec.status="rejected",ec.reason=ei,ew(["reject",[eu],ei])});else{!eO.has(ec)&&ea(ec)&&(eb=eg(ec));let ei=!eI.has(eb)&&eO.get(eb);ei&&ek(eu,ei)}return Reflect.set(eo,eu,eb,ed),ew(["set",[eu],ec,em]),!0}},ej=eo(eN,eM);ef.set(eu,ej);let eR=[eN,eS,ed,eD];return eO.set(ej,eR),Reflect.ownKeys(eu).forEach(ei=>{let eo=Object.getOwnPropertyDescriptor(eu,ei);"value"in eo&&(ej[ei]=eu[ei],delete eo.value,delete eo.writable),Object.defineProperty(eN,ei,eo)}),ej})=>[eg,eO,eI,ei,eo,ea,eu,ec,ed,ef,eh],[eD]=eP();function eN(ei={}){return eD(ei)}function eM(ei,eo,ea){let eu;let ec=eO.get(ei);ec||console.warn("Please use proxy object");let ed=[],ef=ec[3],eh=!1,eg=ei=>{if(ed.push(ei),ea){eo(ed.splice(0));return}eu||(eu=Promise.resolve().then(()=>{eu=void 0,eh&&eo(ed.splice(0))}))},em=ef(eg);return eh=!0,()=>{eh=!1,em()}}function ej(ei,eo){let ea=eO.get(ei);ea||console.warn("Please use proxy object");let[eu,ec,ed]=ea;return ed(eu,ec(),eo)}var eR=ea(48764);let eL=eN({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),eF={state:eL,subscribe:ei=>eM(eL,()=>ei(eL)),push(ei,eo){ei!==eL.view&&(eL.view=ei,eo&&(eL.data=eo),eL.history.push(ei))},reset(ei){eL.view=ei,eL.history=[ei]},replace(ei){eL.history.length>1&&(eL.history[eL.history.length-1]=ei,eL.view=ei)},goBack(){if(eL.history.length>1){eL.history.pop();let[ei]=eL.history.slice(-1);eL.view=ei}},setData(ei){eL.data=ei}},eB={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>"u">typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>eB.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){let ei=navigator.userAgent.toLowerCase();return eB.isMobile()&&(ei.includes("iphone")||ei.includes("ipad"))},isHttpUrl:ei=>ei.startsWith("http://")||ei.startsWith("https://"),isArray:ei=>Array.isArray(ei)&&ei.length>0,formatNativeUrl(ei,eo,ea){if(eB.isHttpUrl(ei))return this.formatUniversalUrl(ei,eo,ea);let eu=ei;eu.includes("://")||(eu=`${eu=ei.replaceAll("/","").replaceAll(":","")}://`),eu.endsWith("/")||(eu=`${eu}/`),this.setWalletConnectDeepLink(eu,ea);let ec=encodeURIComponent(eo);return`${eu}wc?uri=${ec}`},formatUniversalUrl(ei,eo,ea){if(!eB.isHttpUrl(ei))return this.formatNativeUrl(ei,eo,ea);let eu=ei;eu.endsWith("/")||(eu=`${eu}/`),this.setWalletConnectDeepLink(eu,ea);let ec=encodeURIComponent(eo);return`${eu}wc?uri=${ec}`},wait:async ei=>new Promise(eo=>{setTimeout(eo,ei)}),openHref(ei,eo){window.open(ei,eo,"noreferrer noopener")},setWalletConnectDeepLink(ei,eo){try{localStorage.setItem(eB.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:ei,name:eo}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(ei){try{let[eo]=ei.split("?");localStorage.setItem(eB.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:eo,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(eB.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{"u">typeof localStorage&&localStorage.setItem(eB.WCM_VERSION,"2.5.9")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var ei;let eo=null==(ei=eF.state.data)?void 0:ei.Wallet;if(!eo)throw Error('Missing "Wallet" view data');return eo}},eU="u">typeof location&&(location.hostname.includes("localhost")||location.protocol.includes("https")),eG=eN({enabled:eU,userSessionId:"",events:[],connectedWalletId:void 0}),eV={state:eG,subscribe:ei=>eM(eG.events,()=>ei(ej(eG.events[eG.events.length-1]))),initialize(){eG.enabled&&"u">typeof(null==crypto?void 0:crypto.randomUUID)&&(eG.userSessionId=crypto.randomUUID())},setConnectedWalletId(ei){eG.connectedWalletId=ei},click(ei){if(eG.enabled){let eo={type:"CLICK",name:ei.name,userSessionId:eG.userSessionId,timestamp:Date.now(),data:ei};eG.events.push(eo)}},track(ei){if(eG.enabled){let eo={type:"TRACK",name:ei.name,userSessionId:eG.userSessionId,timestamp:Date.now(),data:ei};eG.events.push(eo)}},view(ei){if(eG.enabled){let eo={type:"VIEW",name:ei.name,userSessionId:eG.userSessionId,timestamp:Date.now(),data:ei};eG.events.push(eo)}}},eH=eN({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),eW={state:eH,subscribe:ei=>eM(eH,()=>ei(eH)),setChains(ei){eH.chains=ei},setWalletConnectUri(ei){eH.walletConnectUri=ei},setIsCustomDesktop(ei){eH.isCustomDesktop=ei},setIsCustomMobile(ei){eH.isCustomMobile=ei},setIsDataLoaded(ei){eH.isDataLoaded=ei},setIsUiLoaded(ei){eH.isUiLoaded=ei},setIsAuth(ei){eH.isAuth=ei}},eK=eN({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),eY={state:eK,subscribe:ei=>eM(eK,()=>ei(eK)),setConfig(ei){var eo,ea;eV.initialize(),eW.setChains(ei.chains),eW.setIsAuth(!!ei.enableAuthMode),eW.setIsCustomMobile(!!(null==(eo=ei.mobileWallets)?void 0:eo.length)),eW.setIsCustomDesktop(!!(null==(ea=ei.desktopWallets)?void 0:ea.length)),eB.setModalVersionInStorage(),Object.assign(eK,ei)}},eZ="https://explorer-api.walletconnect.com";async function e$(ei,eo){let ea=new URL(ei,eZ);return ea.searchParams.append("projectId",eY.state.projectId),Object.entries(eo).forEach(([ei,eo])=>{eo&&ea.searchParams.append(ei,String(eo))}),(await fetch(ea)).json()}let eJ={getDesktopListings:async ei=>e$("/w3m/v1/getDesktopListings",ei),getMobileListings:async ei=>e$("/w3m/v1/getMobileListings",ei),getInjectedListings:async ei=>e$("/w3m/v1/getInjectedListings",ei),getAllListings:async ei=>e$("/w3m/v1/getAllListings",ei),getWalletImageUrl:ei=>`${eZ}/w3m/v1/getWalletImage/${ei}?projectId=${eY.state.projectId}`,getAssetImageUrl:ei=>`${eZ}/w3m/v1/getAssetImage/${ei}?projectId=${eY.state.projectId}`};var eQ=Object.defineProperty,eX=Object.getOwnPropertySymbols,e0=Object.prototype.hasOwnProperty,e3=Object.prototype.propertyIsEnumerable,e5=(ei,eo,ea)=>eo in ei?eQ(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,e4=(ei,eo)=>{for(var ea in eo||(eo={}))e0.call(eo,ea)&&e5(ei,ea,eo[ea]);if(eX)for(var ea of eX(eo))e3.call(eo,ea)&&e5(ei,ea,eo[ea]);return ei};let e6=eB.isMobile(),e8=eN({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),e9={state:e8,async getRecomendedWallets(){let{explorerRecommendedWalletIds:ei,explorerExcludedWalletIds:eo}=eY.state;if("NONE"===ei||"ALL"===eo&&!ei)return e8.recomendedWallets;if(eB.isArray(ei)){let eo={recommendedIds:ei.join(",")},{listings:ea}=await eJ.getAllListings(eo),eu=Object.values(ea);eu.sort((eo,ea)=>{let eu=ei.indexOf(eo.id),ec=ei.indexOf(ea.id);return eu-ec}),e8.recomendedWallets=eu}else{let{chains:ei,isAuth:ea}=eW.state,eu=ei?.join(","),ec=eB.isArray(eo),ed={page:1,sdks:ea?"auth_v1":void 0,entries:eB.RECOMMENDED_WALLET_AMOUNT,chains:eu,version:2,excludedIds:ec?eo.join(","):void 0},{listings:ef}=e6?await eJ.getMobileListings(ed):await eJ.getDesktopListings(ed);e8.recomendedWallets=Object.values(ef)}return e8.recomendedWallets},async getWallets(ei){let eo=e4({},ei),{explorerRecommendedWalletIds:ea,explorerExcludedWalletIds:eu}=eY.state,{recomendedWallets:ec}=e8;if("ALL"===eu)return e8.wallets;ec.length?eo.excludedIds=ec.map(ei=>ei.id).join(","):eB.isArray(ea)&&(eo.excludedIds=ea.join(",")),eB.isArray(eu)&&(eo.excludedIds=[eo.excludedIds,eu].filter(Boolean).join(",")),eW.state.isAuth&&(eo.sdks="auth_v1");let{page:ed,search:ef}=ei,{listings:eh,total:eg}=e6?await eJ.getMobileListings(eo):await eJ.getDesktopListings(eo),em=Object.values(eh),eb=ef?"search":"wallets";return e8[eb]={listings:[...e8[eb].listings,...em],total:eg,page:ed??1},{listings:em,total:eg}},getWalletImageUrl:ei=>eJ.getWalletImageUrl(ei),getAssetImageUrl:ei=>eJ.getAssetImageUrl(ei),resetSearch(){e8.search={listings:[],total:0,page:1}}},e7=eN({open:!1}),ta={state:e7,subscribe:ei=>eM(e7,()=>ei(e7)),open:async ei=>new Promise(eo=>{let{isUiLoaded:ea,isDataLoaded:eu}=eW.state;if(eW.setWalletConnectUri(ei?.uri),eW.setChains(ei?.chains),eF.reset("ConnectWallet"),ea&&eu)e7.open=!0,eo();else{let ei=setInterval(()=>{let ea=eW.state;ea.isUiLoaded&&ea.isDataLoaded&&(clearInterval(ei),e7.open=!0,eo())},200)}}),close(){e7.open=!1}};var tu=Object.defineProperty,tc=Object.getOwnPropertySymbols,td=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,tp=(ei,eo,ea)=>eo in ei?tu(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,tg=(ei,eo)=>{for(var ea in eo||(eo={}))td.call(eo,ea)&&tp(ei,ea,eo[ea]);if(tc)for(var ea of tc(eo))tf.call(eo,ea)&&tp(ei,ea,eo[ea]);return ei};function tm(){return"u">typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches}let tv=eN({themeMode:tm()?"dark":"light"}),tb={state:tv,subscribe:ei=>eM(tv,()=>ei(tv)),setThemeConfig(ei){let{themeMode:eo,themeVariables:ea}=ei;eo&&(tv.themeMode=eo),ea&&(tv.themeVariables=tg({},ea))}},tw=eN({open:!1,message:"",variant:"success"}),t_={state:tw,subscribe:ei=>eM(tw,()=>ei(tw)),openToast(ei,eo){tw.open=!0,tw.message=ei,tw.variant=eo},closeToast(){tw.open=!1}};"u">typeof window&&(window.Buffer||(window.Buffer=eR.Buffer),window.global||(window.global=window),window.process||(window.process={env:{}}),window.global||(window.global=window))},47964:function(ei,eo,ea){"use strict";let eu;ea.d(eo,{gQ:function(){return f0},$4:function(){return f5},QT:function(){return f9},kP:function(){return hp}});var ec={};ea.r(ec),ea.d(ec,{identity:function(){return tR}});var ed={};ea.r(ed),ea.d(ed,{base2:function(){return tL}});var ef={};ea.r(ef),ea.d(ef,{base8:function(){return tF}});var eh={};ea.r(eh),ea.d(eh,{base10:function(){return tB}});var eg={};ea.r(eg),ea.d(eg,{base16:function(){return tU},base16upper:function(){return tG}});var em={};ea.r(em),ea.d(em,{base32:function(){return tV},base32hex:function(){return tK},base32hexpad:function(){return tZ},base32hexpadupper:function(){return t$},base32hexupper:function(){return tY},base32pad:function(){return tH},base32padupper:function(){return tW},base32upper:function(){return tq},base32z:function(){return tJ}});var eb={};ea.r(eb),ea.d(eb,{base36:function(){return tQ},base36upper:function(){return tX}});var ew={};ea.r(ew),ea.d(ew,{base58btc:function(){return ra},base58flickr:function(){return ru}});var e_={};ea.r(e_),ea.d(e_,{base64:function(){return rc},base64pad:function(){return rf},base64url:function(){return rh},base64urlpad:function(){return rp}});var eS={};ea.r(eS),ea.d(eS,{base256emoji:function(){return rA}});var eE={};ea.r(eE),ea.d(eE,{sha256:function(){return r$},sha512:function(){return rJ}});var eA={};ea.r(eA),ea.d(eA,{identity:function(){return nu}});var eT={};ea.r(eT),ea.d(eT,{code:function(){return nf},decode:function(){return np},encode:function(){return nh},name:function(){return nd}});var ek={};ea.r(ek),ea.d(ek,{code:function(){return n_},decode:function(){return nE},encode:function(){return nS},name:function(){return nw}});var eC=ea(67294),eO=ea(75740);class eI{constructor(ei){this.openModal=eO.jb.open,this.closeModal=eO.jb.close,this.subscribeModal=eO.jb.subscribe,this.setTheme=eO.Ic.setThemeConfig,eO.Ic.setThemeConfig(ei),eO.t0.setConfig(ei),this.initUi()}async initUi(){if("u">typeof window){await ea.e(1391).then(ea.bind(ea,41391));let ei=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",ei),eO.zb.setIsUiLoaded(!0)}}}var eP=ea(17187),eD=ea.n(eP),eN=ea(85150),eM=ea(90772),ej=ea(9107),eR=ea(38200);class eL extends eR.q{constructor(ei){super(),this.opts=ei,this.protocol="wc",this.version=2}}class eF extends eR.q{constructor(ei,eo){super(),this.core=ei,this.logger=eo,this.records=new Map}}class eB{constructor(ei,eo){this.logger=ei,this.core=eo}}class eU extends eR.q{constructor(ei,eo){super(),this.relayer=ei,this.logger=eo}}class eG extends eR.q{constructor(ei){super()}}class eV{constructor(ei,eo,ea,eu){this.core=ei,this.logger=eo,this.name=ea}}class eH extends eR.q{constructor(ei,eo){super(),this.relayer=ei,this.logger=eo}}class eW extends eR.q{constructor(ei,eo){super(),this.core=ei,this.logger=eo}}class eK{constructor(ei,eo){this.projectId=ei,this.logger=eo}}class eY{constructor(ei){this.opts=ei,this.protocol="wc",this.version=2}}class eZ{constructor(ei){this.client=ei}}let e$=ei=>JSON.stringify(ei,(ei,eo)=>"bigint"==typeof eo?eo.toString()+"n":eo),eJ=ei=>{let eo=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,ea=ei.replace(eo,'$1"$2n"$3');return JSON.parse(ea,(ei,eo)=>{let ea="string"==typeof eo&&eo.match(/^\d+n$/);return ea?BigInt(eo.substring(0,eo.length-1)):eo})};function eQ(ei){if("string"!=typeof ei)throw Error(`Cannot safe json parse value of type ${typeof ei}`);try{return eJ(ei)}catch(eo){return ei}}function eX(ei){return"string"==typeof ei?ei:e$(ei)||""}var e0=ea(31050),e3=ea(31416),e5=ea(66736);let e4="EdDSA",e6="JWT",e8=".",e9="base64url",e7="utf8",ta="utf8",tu=":",tc="did",td="key",tf="base58btc",tp="z",tg="K36",tm=32;function tv(ei){return null!=globalThis.Buffer?new Uint8Array(ei.buffer,ei.byteOffset,ei.byteLength):ei}function tb(ei=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?tv(globalThis.Buffer.allocUnsafe(ei)):new Uint8Array(ei)}function tw(ei,eo){eo||(eo=ei.reduce((ei,eo)=>ei+eo.length,0));let ea=tb(eo),eu=0;for(let eo of ei)ea.set(eo,eu),eu+=eo.length;return tv(ea)}var t_=function(ei,eo){if(ei.length>=255)throw TypeError("Alphabet too long");for(var ea=new Uint8Array(256),eu=0;eu>>0,ef=new Uint8Array(ed);ei[eo];){var eb=ea[ei.charCodeAt(eo)];if(255===eb)return;for(var ew=0,e_=ed-1;(0!==eb||ew>>0,ef[e_]=eb%256>>>0,eb=eb/256>>>0;if(0!==eb)throw Error("Non-zero carry");ec=ew,eo++}if(" "!==ei[eo]){for(var eS=ed-ec;eS!==ed&&0===ef[eS];)eS++;for(var eE=new Uint8Array(eu+(ed-eS)),eA=eu;eS!==ed;)eE[eA++]=ef[eS++];return eE}}}function e_(ei){var ea=ew(ei);if(ea)return ea;throw Error(`Non-${eo} character`)}return{encode:function(eo){if(eo instanceof Uint8Array||(ArrayBuffer.isView(eo)?eo=new Uint8Array(eo.buffer,eo.byteOffset,eo.byteLength):Array.isArray(eo)&&(eo=Uint8Array.from(eo))),!(eo instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===eo.length)return"";for(var ea=0,eu=0,ec=0,ed=eo.length;ec!==ed&&0===eo[ec];)ec++,ea++;for(var ef=(ed-ec)*eb+1>>>0,em=new Uint8Array(ef);ec!==ed;){for(var ew=eo[ec],e_=0,eS=ef-1;(0!==ew||e_>>0,em[eS]=ew%eh>>>0,ew=ew/eh>>>0;if(0!==ew)throw Error("Non-zero carry");eu=e_,ec++}for(var eE=ef-eu;eE!==ef&&0===em[eE];)eE++;for(var eA=eg.repeat(ea);eE{if(ei instanceof Uint8Array&&"Uint8Array"===ei.constructor.name)return ei;if(ei instanceof ArrayBuffer)return new Uint8Array(ei);if(ArrayBuffer.isView(ei))return new Uint8Array(ei.buffer,ei.byteOffset,ei.byteLength);throw Error("Unknown type, must be binary type")},tE=ei=>new TextEncoder().encode(ei),tA=ei=>new TextDecoder().decode(ei);class tT{constructor(ei,eo,ea){this.name=ei,this.prefix=eo,this.baseEncode=ea}encode(ei){if(ei instanceof Uint8Array)return`${this.prefix}${this.baseEncode(ei)}`;throw Error("Unknown type, must be binary type")}}class tk{constructor(ei,eo,ea){if(this.name=ei,this.prefix=eo,void 0===eo.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=eo.codePointAt(0),this.baseDecode=ea}decode(ei){if("string"==typeof ei){if(ei.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(ei)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(ei.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(ei){return tO(this,ei)}}class tC{constructor(ei){this.decoders=ei}or(ei){return tO(this,ei)}decode(ei){let eo=ei[0],ea=this.decoders[eo];if(ea)return ea.decode(ei);throw RangeError(`Unable to decode multibase string ${JSON.stringify(ei)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let tO=(ei,eo)=>new tC({...ei.decoders||{[ei.prefix]:ei},...eo.decoders||{[eo.prefix]:eo}});class tI{constructor(ei,eo,ea,eu){this.name=ei,this.prefix=eo,this.baseEncode=ea,this.baseDecode=eu,this.encoder=new tT(ei,eo,ea),this.decoder=new tk(ei,eo,eu)}encode(ei){return this.encoder.encode(ei)}decode(ei){return this.decoder.decode(ei)}}let tP=({name:ei,prefix:eo,encode:ea,decode:eu})=>new tI(ei,eo,ea,eu),tD=({prefix:ei,name:eo,alphabet:ea})=>{let{encode:eu,decode:ec}=t_(ea,eo);return tP({prefix:ei,name:eo,encode:eu,decode:ei=>tS(ec(ei))})},tN=(ei,eo,ea,eu)=>{let ec={};for(let ei=0;ei=8&&(eh-=8,ef[em++]=255&eg>>eh)}if(eh>=ea||255&eg<<8-eh)throw SyntaxError("Unexpected end of data");return ef},tM=(ei,eo,ea)=>{let eu="="===eo[eo.length-1],ec=(1<ea;)ef-=ea,ed+=eo[ec&eh>>ef];if(ef&&(ed+=eo[ec&eh<tP({prefix:eo,name:ei,encode:ei=>tM(ei,eu,ea),decode:eo=>tN(eo,eu,ea,ei)}),tR=tP({prefix:"\x00",name:"identity",encode:ei=>tA(ei),decode:ei=>tE(ei)}),tL=tj({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),tF=tj({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),tB=tD({prefix:"9",name:"base10",alphabet:"0123456789"}),tU=tj({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),tG=tj({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),tV=tj({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),tq=tj({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),tH=tj({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),tW=tj({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),tK=tj({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),tY=tj({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),tZ=tj({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),t$=tj({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),tJ=tj({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),tQ=tD({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),tX=tD({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),ra=tD({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),ru=tD({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),rc=tj({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),rf=tj({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),rh=tj({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),rp=tj({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ry=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),rw=ry.reduce((ei,eo,ea)=>(ei[ea]=eo,ei),[]),r_=ry.reduce((ei,eo,ea)=>(ei[eo.codePointAt(0)]=ea,ei),[]);function rS(ei){return ei.reduce((ei,eo)=>ei+=rw[eo],"")}function rE(ei){let eo=[];for(let ea of ei){let ei=r_[ea.codePointAt(0)];if(void 0===ei)throw Error(`Non-base256emoji character: ${ea}`);eo.push(ei)}return new Uint8Array(eo)}let rA=tP({prefix:"\uD83D\uDE80",name:"base256emoji",encode:rS,decode:rE});var rT=128,rk=-128,rC=2147483648;function rO(ei,eo,ea){eo=eo||[];for(var eu=ea=ea||0;ei>=rC;)eo[ea++]=255&ei|rT,ei/=128;for(;ei&rk;)eo[ea++]=255&ei|rT,ei>>>=7;return eo[ea]=0|ei,rO.bytes=ea-eu+1,eo}var rI=128,rP=127;function rD(ei,eo){var ea,eu=0,eo=eo||0,ec=0,ed=eo,ef=ei.length;do{if(ed>=ef)throw rD.bytes=0,RangeError("Could not decode varint");ea=ei[ed++],eu+=ec<28?(ea&rP)<=rI);return rD.bytes=ed-eo,eu}var rN=128,rM=16384,rj=2097152,rR=268435456,rL=34359738368,rF=4398046511104,rB=562949953421312,rU=72057594037927940,rz=0x7fffffffffffffff,rG={encode:rO,decode:rD,encodingLength:function(ei){return ei(rG.encode(ei,eo,ea),eo),rq=ei=>rG.encodingLength(ei),rH=(ei,eo)=>{let ea=eo.byteLength,eu=rq(ei),ec=eu+rq(ea),ed=new Uint8Array(ec+ea);return rV(ei,ed,0),rV(ea,ed,eu),ed.set(eo,ec),new rW(ei,ea,eo,ed)};class rW{constructor(ei,eo,ea,eu){this.code=ei,this.size=eo,this.digest=ea,this.bytes=eu}}let rK=({name:ei,code:eo,encode:ea})=>new rY(ei,eo,ea);class rY{constructor(ei,eo,ea){this.name=ei,this.code=eo,this.encode=ea}digest(ei){if(ei instanceof Uint8Array){let eo=this.encode(ei);return eo instanceof Uint8Array?rH(this.code,eo):eo.then(ei=>rH(this.code,ei))}throw Error("Unknown type, must be binary type")}}let rZ=ei=>async eo=>new Uint8Array(await crypto.subtle.digest(ei,eo)),r$=rK({name:"sha2-256",code:18,encode:rZ("SHA-256")}),rJ=rK({name:"sha2-512",code:19,encode:rZ("SHA-512")}),rQ=0,rX="identity",ni=tS,no=ei=>rH(rQ,ni(ei)),nu={code:rQ,name:rX,encode:ni,digest:no},nd="raw",nf=85,nh=ei=>tS(ei),np=ei=>tS(ei),ng=new TextEncoder,ny=new TextDecoder,nw="json",n_=512,nS=ei=>ng.encode(JSON.stringify(ei)),nE=ei=>JSON.parse(ny.decode(ei));class nx{constructor(ei,eo,ea,eu){this.code=eo,this.version=ei,this.multihash=ea,this.bytes=eu,this.byteOffset=eu.byteOffset,this.byteLength=eu.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:nN,byteLength:nN,code:nD,version:nD,multihash:nD,bytes:nD,_baseCache:nN,asCID:nN})}toV0(){if(0===this.version)return this;{let{code:ei,multihash:eo}=this;if(ei!==nC)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(eo.code!==nO)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return nx.createV0(eo)}}toV1(){switch(this.version){case 0:{let{code:ei,digest:eo}=this.multihash,ea=Digest.create(ei,eo);return nx.createV1(this.code,ea)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(ei){return ei&&this.code===ei.code&&this.version===ei.version&&Digest.equals(this.multihash,ei.multihash)}toString(ei){let{bytes:eo,version:ea,_baseCache:eu}=this;return 0===ea?nT(eo,eu,ei||base58btc.encoder):nk(eo,eu,ei||base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(ei){return nj(/^0\.0/,nR),!!(ei&&(ei[nP]||ei.asCID===ei))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(ei){if(ei instanceof nx)return ei;if(null!=ei&&ei.asCID===ei){let{version:eo,code:ea,multihash:eu,bytes:ec}=ei;return new nx(eo,ea,eu,ec||nI(eo,ea,eu.bytes))}if(null==ei||!0!==ei[nP])return null;{let{version:eo,multihash:ea,code:eu}=ei,ec=Digest.decode(ea);return nx.create(eo,eu,ec)}}static create(ei,eo,ea){if("number"!=typeof eo)throw Error("String codecs are no longer supported");switch(ei){case 0:if(eo===nC)return new nx(ei,eo,ea,ea.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${nC}) block encoding`);case 1:{let eu=nI(ei,eo,ea.bytes);return new nx(ei,eo,ea,eu)}default:throw Error("Invalid version")}}static createV0(ei){return nx.create(0,nC,ei)}static createV1(ei,eo){return nx.create(1,ei,eo)}static decode(ei){let[eo,ea]=nx.decodeFirst(ei);if(ea.length)throw Error("Incorrect length");return eo}static decodeFirst(ei){let eo=nx.inspectBytes(ei),ea=eo.size-eo.multihashSize,eu=coerce(ei.subarray(ea,ea+eo.multihashSize));if(eu.byteLength!==eo.multihashSize)throw Error("Incorrect length");let ec=eu.subarray(eo.multihashSize-eo.digestSize),ed=new Digest.Digest(eo.multihashCode,eo.digestSize,ec,eu),ef=0===eo.version?nx.createV0(ed):nx.createV1(eo.codec,ed);return[ef,ei.subarray(eo.size)]}static inspectBytes(ei){let eo=0,ea=()=>{let[ea,eu]=varint.decode(ei.subarray(eo));return eo+=eu,ea},eu=ea(),ec=nC;if(18===eu?(eu=0,eo=0):1===eu&&(ec=ea()),0!==eu&&1!==eu)throw RangeError(`Invalid CID version ${eu}`);let ed=eo,ef=ea(),eh=ea(),eg=eo+eh,em=eg-ed;return{version:eu,codec:ec,multihashCode:ef,digestSize:eh,multihashSize:em,size:eg}}static parse(ei,eo){let[ea,eu]=nA(ei,eo),ec=nx.decode(eu);return ec._baseCache.set(ea,ei),ec}}let nA=(ei,eo)=>{switch(ei[0]){case"Q":{let ea=eo||base58btc;return[base58btc.prefix,ea.decode(`${base58btc.prefix}${ei}`)]}case base58btc.prefix:{let ea=eo||base58btc;return[base58btc.prefix,ea.decode(ei)]}case base32.prefix:{let ea=eo||base32;return[base32.prefix,ea.decode(ei)]}default:if(null==eo)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[ei[0],eo.decode(ei)]}},nT=(ei,eo,ea)=>{let{prefix:eu}=ea;if(eu!==base58btc.prefix)throw Error(`Cannot string encode V0 in ${ea.name} encoding`);let ec=eo.get(eu);if(null!=ec)return ec;{let ec=ea.encode(ei).slice(1);return eo.set(eu,ec),ec}},nk=(ei,eo,ea)=>{let{prefix:eu}=ea,ec=eo.get(eu);if(null!=ec)return ec;{let ec=ea.encode(ei);return eo.set(eu,ec),ec}},nC=112,nO=18,nI=(ei,eo,ea)=>{let eu=varint.encodingLength(ei),ec=eu+varint.encodingLength(eo),ed=new Uint8Array(ec+ea.byteLength);return varint.encodeTo(ei,ed,0),varint.encodeTo(eo,ed,eu),ed.set(ea,ec),ed},nP=Symbol.for("@ipld/js-cid/CID"),nD={writable:!1,configurable:!1,enumerable:!0},nN={writable:!1,enumerable:!1,configurable:!1},nM="0.0.0-dev",nj=(ei,eo)=>{if(ei.test(nM))console.warn(eo);else throw Error(eo)},nR=null,nL={...ec,...ed,...ef,...eh,...eg,...em,...eb,...ew,...e_,...eS};function nF(ei,eo,ea,eu){return{name:ei,prefix:eo,encoder:{name:ei,prefix:eo,encode:ea},decoder:{decode:eu}}}({...eE,...eA});let nB=nF("utf8","u",ei=>{let eo=new TextDecoder("utf8");return"u"+eo.decode(ei)},ei=>{let eo=new TextEncoder;return eo.encode(ei.substring(1))}),nU=nF("ascii","a",ei=>{let eo="a";for(let ea=0;ea{ei=ei.substring(1);let eo=tb(ei.length);for(let ea=0;eatypeof ei.type?ei.type:iM);if(iK(eo)===ij&&typeof ei.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let ea="u">typeof ei.senderPublicKey?nq(ei.senderPublicKey,iP):void 0,eu="u">typeof ei.iv?nq(ei.iv,iP):(0,e3.randomBytes)(iF),ec=new nQ.OK(nq(ei.symKey,iP)).seal(eu,nq(ei.message,iN));return iJ({type:eo,sealed:ec,iv:eu,senderPublicKey:ea})}function i$(ei){let eo=new nQ.OK(nq(ei.symKey,iP)),{sealed:ea,iv:eu}=iQ(ei.encoded),ec=eo.open(eu,ea);if(null===ec)throw Error("Failed to decrypt");return nV(ec,iN)}function iJ(ei){if(iK(ei.type)===ij){if(typeof ei.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");return nV(tw([ei.type,ei.senderPublicKey,ei.iv,ei.sealed]),iD)}return nV(tw([ei.type,ei.iv,ei.sealed]),iD)}function iQ(ei){let eo=nq(ei,iD),ea=eo.slice(iR,iL),eu=iL;if(iK(ea)===ij){let ei=eu+iB,ec=ei+iF,ed=eo.slice(eu,ei),ef=eo.slice(ei,ec),eh=eo.slice(ec);return{type:ea,sealed:eh,iv:ef,senderPublicKey:ed}}let ec=eu+iF,ed=eo.slice(eu,ec),ef=eo.slice(ec);return{type:ea,sealed:ef,iv:ed}}function i0(ei,eo){let ea=iQ(ei);return i6({type:iK(ea.type),senderPublicKey:"u">typeof ea.senderPublicKey?nV(ea.senderPublicKey,iP):void 0,receiverPublicKey:eo?.receiverPublicKey})}function i6(ei){let eo=ei?.type||iM;if(eo===ij){if(typeof ei?.senderPublicKey>"u")throw Error("missing sender public key");if(typeof ei?.receiverPublicKey>"u")throw Error("missing receiver public key")}return{type:eo,senderPublicKey:ei?.senderPublicKey,receiverPublicKey:ei?.receiverPublicKey}}function i8(ei){return ei.type===ij&&"string"==typeof ei.senderPublicKey&&"string"==typeof ei.receiverPublicKey}var i9=Object.defineProperty,i7=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,oo=Object.prototype.propertyIsEnumerable,oa=(ei,eo,ea)=>eo in ei?i9(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,ol=(ei,eo)=>{for(var ea in eo||(eo={}))oi.call(eo,ea)&&oa(ei,ea,eo[ea]);if(i7)for(var ea of i7(eo))oo.call(eo,ea)&&oa(ei,ea,eo[ea]);return ei};let ou="ReactNative",oc={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},od="js";function oh(){return"u">typeof iC&&"u">typeof iC.versions&&"u">typeof iC.versions.node}function og(){return!(0,iS.getDocument)()&&!!(0,iS.getNavigator)()&&navigator.product===ou}function om(){return!oh()&&!!(0,iS.getNavigator)()}function ov(){return og()?oc.reactNative:oh()?oc.node:om()?oc.browser:oc.unknown}function ow(ei,eo){let ea=iA.parse(ei);return ea=ol(ol({},ea),eo),ei=iA.stringify(ea)}function o_(){return(0,iE.D)()||{name:"",description:"",url:"",icons:[""]}}function oS(){if("u">typeof(null==ea.g?void 0:ea.g.Platform)){let{OS:ei,Version:eo}=ea.g.Platform;return[ei,eo].join("-")}let ei=ig();if(null===ei)return"unknown";let eo=ei.os?ei.os.replace(" ","").toLowerCase():"unknown";return"browser"===ei.type?[eo,ei.name,ei.version].join("-"):[eo,ei.version].join("-")}function oE(){var ei;let eo=ov();return eo===oc.browser?[eo,(null==(ei=(0,iS.getLocation)())?void 0:ei.host)||"unknown"].join(":"):eo}function oA(ei,eo,ea){let eu=oS(),ec=oE();return[[ei,eo].join("-"),[od,ea].join("-"),eu,ec].join("/")}function oT({protocol:ei,version:eo,relayUrl:ea,sdkVersion:eu,auth:ec,projectId:ed,useOnCloseEvent:ef}){let eh=ea.split("?"),eg=oA(ei,eo,eu),em={auth:ec,ua:eg,projectId:ed,useOnCloseEvent:ef||void 0},eb=ow(eh[1]||"",em);return eh[0]+"?"+eb}function oC(ei,eo){return ei.filter(ei=>eo.includes(ei)).length===ei.length}function oI(ei){return Object.fromEntries(ei.entries())}function oP(ei){return new Map(Object.entries(ei))}function oD(ei=e5.FIVE_MINUTES,eo){let ea,eu,ec;let ed=(0,e5.toMiliseconds)(ei||e5.FIVE_MINUTES);return{resolve:ei=>{ec&&ea&&(clearTimeout(ec),ea(ei))},reject:ei=>{ec&&eu&&(clearTimeout(ec),eu(ei))},done:()=>new Promise((ei,ef)=>{ec=setTimeout(()=>{ef(Error(eo))},ed),ea=ei,eu=ef})}}function oN(ei,eo,ea){return new Promise(async(eu,ec)=>{let ed=setTimeout(()=>ec(Error(ea)),eo);try{let eo=await ei;eu(eo)}catch(ei){ec(ei)}clearTimeout(ed)})}function oM(ei,eo){if("string"==typeof eo&&eo.startsWith(`${ei}:`))return eo;if("topic"===ei.toLowerCase()){if("string"!=typeof eo)throw Error('Value must be "string" for expirer target type: topic');return`topic:${eo}`}if("id"===ei.toLowerCase()){if("number"!=typeof eo)throw Error('Value must be "number" for expirer target type: id');return`id:${eo}`}throw Error(`Unknown expirer target type: ${ei}`)}function oj(ei){return oM("topic",ei)}function oR(ei){return oM("id",ei)}function oL(ei){let[eo,ea]=ei.split(":"),eu={id:void 0,topic:void 0};if("topic"===eo&&"string"==typeof ea)eu.topic=ea;else if("id"===eo&&Number.isInteger(Number(ea)))eu.id=Number(ea);else throw Error(`Invalid target, expected id:number or topic:string, got ${eo}:${ea}`);return eu}function oF(ei,eo){return(0,e5.fromMiliseconds)((eo||Date.now())+(0,e5.toMiliseconds)(ei))}function oB(ei){return Date.now()>=(0,e5.toMiliseconds)(ei)}function oU(ei,eo){return`${ei}${eo?`:${eo}`:""}`}async function oz({id:ei,topic:eo,wcDeepLink:eu}){try{if(!eu)return;let ec="string"==typeof eu?JSON.parse(eu):eu,ed=ec?.href;if("string"!=typeof ed)return;ed.endsWith("/")&&(ed=ed.slice(0,-1));let ef=`${ed}/wc?requestId=${ei}&sessionTopic=${eo}`,eh=ov();eh===oc.browser?ef.startsWith("https://")?window.open(ef,"_blank","noreferrer noopener"):window.open(ef,"_self","noreferrer noopener"):eh===oc.reactNative&&"u">typeof(null==ea.g?void 0:ea.g.Linking)&&await ea.g.Linking.openURL(ef)}catch(ei){console.error(ei)}}let oG="irn";function oV(ei){return ei?.relay||{protocol:oG}}function oq(ei){let eo=iT[ei];if(typeof eo>"u")throw Error(`Relay Protocol not supported: ${ei}`);return eo}var oH=Object.defineProperty,oW=Object.getOwnPropertySymbols,oK=Object.prototype.hasOwnProperty,oZ=Object.prototype.propertyIsEnumerable,o$=(ei,eo,ea)=>eo in ei?oH(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,oJ=(ei,eo)=>{for(var ea in eo||(eo={}))oK.call(eo,ea)&&o$(ei,ea,eo[ea]);if(oW)for(var ea of oW(eo))oZ.call(eo,ea)&&o$(ei,ea,eo[ea]);return ei};function oQ(ei,eo="-"){let ea={},eu="relay"+eo;return Object.keys(ei).forEach(eo=>{if(eo.startsWith(eu)){let ec=eo.replace(eu,""),ed=ei[eo];ea[ec]=ed}}),ea}function o0(ei){let eo=ei.indexOf(":"),ea=-1!==ei.indexOf("?")?ei.indexOf("?"):void 0,eu=ei.substring(0,eo),ec=ei.substring(eo+1,ea).split("@"),ed="u">typeof ea?ei.substring(ea):"",ef=iA.parse(ed);return{protocol:eu,topic:o3(ec[0]),version:parseInt(ec[1],10),symKey:ef.symKey,relay:oQ(ef)}}function o3(ei){return ei.startsWith("//")?ei.substring(2):ei}function o5(ei,eo="-"){let ea="relay",eu={};return Object.keys(ei).forEach(ec=>{let ed=ea+eo+ec;ei[ec]&&(eu[ed]=ei[ec])}),eu}function o4(ei){return`${ei.protocol}:${ei.topic}@${ei.version}?`+iA.stringify(oJ({symKey:ei.symKey},o5(ei.relay)))}function o6(ei){let eo=[];return ei.forEach(ei=>{let[ea,eu]=ei.split(":");eo.push(`${ea}:${eu}`)}),eo}function o8(ei){let eo=[];return Object.values(ei).forEach(ei=>{eo.push(...o6(ei.accounts))}),eo}function o9(ei,eo){let ea=[];return Object.values(ei).forEach(ei=>{o6(ei.accounts).includes(eo)&&ea.push(...ei.methods)}),ea}function o7(ei,eo){let ea=[];return Object.values(ei).forEach(ei=>{o6(ei.accounts).includes(eo)&&ea.push(...ei.events)}),ea}function si(ei,eo){let ea=sF(ei,eo);if(ea)throw Error(ea.message);let eu={};for(let[eo,ea]of Object.entries(ei))eu[eo]={methods:ea.methods,events:ea.events,chains:ea.accounts.map(ei=>`${ei.split(":")[0]}:${ei.split(":")[1]}`)};return eu}Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let so={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},sa={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function su(ei,eo){let{message:ea,code:eu}=sa[ei];return{message:eo?`${ea} ${eo}`:ea,code:eu}}function sf(ei,eo){let{message:ea,code:eu}=so[ei];return{message:eo?`${ea} ${eo}`:ea,code:eu}}function sh(ei,eo){return!!Array.isArray(ei)&&(!("u">typeof eo)||!ei.length||ei.every(eo))}function sp(ei){return Object.getPrototypeOf(ei)===Object.prototype&&Object.keys(ei).length}function sm(ei){return typeof ei>"u"}function sv(ei,eo){return!!(eo&&sm(ei))||"string"==typeof ei&&!!ei.trim().length}function sb(ei,eo){return!!(eo&&sm(ei))||"number"==typeof ei&&!isNaN(ei)}function sS(ei,eo){let{requiredNamespaces:ea}=eo,eu=Object.keys(ei.namespaces),ec=Object.keys(ea),ed=!0;return!!oC(ec,eu)&&(eu.forEach(eo=>{let{accounts:eu,methods:ec,events:ef}=ei.namespaces[eo],eh=o6(eu),eg=ea[eo];oC(iO(eo,eg),eh)&&oC(eg.methods,ec)&&oC(eg.events,ef)||(ed=!1)}),ed)}function sE(ei){return!!(sv(ei,!1)&&ei.includes(":"))&&2===ei.split(":").length}function sA(ei){if(sv(ei,!1)&&ei.includes(":")){let eo=ei.split(":");if(3===eo.length){let ei=eo[0]+":"+eo[1];return!!eo[2]&&sE(ei)}}return!1}function sT(ei){if(sv(ei,!1))try{return"u">typeof new URL(ei)}catch{}return!1}function sk(ei){var eo;return null==(eo=ei?.proposer)?void 0:eo.publicKey}function sC(ei){return ei?.topic}function sO(ei,eo){let ea=null;return sv(ei?.publicKey,!1)||(ea=su("MISSING_OR_INVALID",`${eo} controller public key should be a string`)),ea}function sI(ei){let eo=!0;return sh(ei)?ei.length&&(eo=ei.every(ei=>sv(ei,!1))):eo=!1,eo}function sP(ei,eo,ea){let eu=null;return sh(eo)&&eo.length?eo.forEach(ei=>{eu||sE(ei)||(eu=sf("UNSUPPORTED_CHAINS",`${ea}, chain ${ei} should be a string and conform to "namespace:chainId" format`))}):sE(ei)||(eu=sf("UNSUPPORTED_CHAINS",`${ea}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),eu}function sD(ei,eo,ea){let eu=null;return Object.entries(ei).forEach(([ei,ec])=>{if(eu)return;let ed=sP(ei,iO(ei,ec),`${eo} ${ea}`);ed&&(eu=ed)}),eu}function sN(ei,eo){let ea=null;return sh(ei)?ei.forEach(ei=>{ea||sA(ei)||(ea=sf("UNSUPPORTED_ACCOUNTS",`${eo}, account ${ei} should be a string and conform to "namespace:chainId:address" format`))}):ea=sf("UNSUPPORTED_ACCOUNTS",`${eo}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),ea}function sM(ei,eo){let ea=null;return Object.values(ei).forEach(ei=>{if(ea)return;let eu=sN(ei?.accounts,`${eo} namespace`);eu&&(ea=eu)}),ea}function sj(ei,eo){let ea=null;return sI(ei?.methods)?sI(ei?.events)||(ea=sf("UNSUPPORTED_EVENTS",`${eo}, events should be an array of strings or empty array for no events`)):ea=sf("UNSUPPORTED_METHODS",`${eo}, methods should be an array of strings or empty array for no methods`),ea}function sR(ei,eo){let ea=null;return Object.values(ei).forEach(ei=>{if(ea)return;let eu=sj(ei,`${eo}, namespace`);eu&&(ea=eu)}),ea}function sL(ei,eo,ea){let eu=null;if(ei&&sp(ei)){let ec=sR(ei,eo);ec&&(eu=ec);let ed=sD(ei,eo,ea);ed&&(eu=ed)}else eu=su("MISSING_OR_INVALID",`${eo}, ${ea} should be an object with data`);return eu}function sF(ei,eo){let ea=null;if(ei&&sp(ei)){let eu=sR(ei,eo);eu&&(ea=eu);let ec=sM(ei,eo);ec&&(ea=ec)}else ea=su("MISSING_OR_INVALID",`${eo}, namespaces should be an object with data`);return ea}function sB(ei){return sv(ei.protocol,!0)}function sU(ei,eo){let ea=!1;return eo&&!ei?ea=!0:ei&&sh(ei)&&ei.length&&ei.forEach(ei=>{ea=sB(ei)}),ea}function sG(ei){return"number"==typeof ei}function sV(ei){return"u">typeof ei}function sq(ei){return!(!ei||"object"!=typeof ei||!ei.code||!sb(ei.code,!1)||!ei.message||!sv(ei.message,!1))}function sH(ei){return!(sm(ei)||!sv(ei.method,!1))}function sW(ei){return!(sm(ei)||sm(ei.result)&&sm(ei.error)||!sb(ei.id,!1)||!sv(ei.jsonrpc,!1))}function sK(ei){return!(sm(ei)||!sv(ei.name,!1))}function sY(ei,eo){return!(!sE(eo)||!o8(ei).includes(eo))}function sZ(ei,eo,ea){return!!sv(ea,!1)&&o9(ei,eo).includes(ea)}function s$(ei,eo,ea){return!!sv(ea,!1)&&o7(ei,eo).includes(ea)}function sJ(ei,eo,ea){let eu=null,ec=sQ(ei),ed=s5(eo),ef=Object.keys(ec),eh=Object.keys(ed),eg=sX(Object.keys(ei)),em=sX(Object.keys(eo)),eb=eg.filter(ei=>!em.includes(ei));return eb.length&&(eu=su("NON_CONFORMING_NAMESPACES",`${ea} namespaces keys don't satisfy requiredNamespaces. + Required: ${eb.toString()} + Received: ${Object.keys(eo).toString()}`)),oC(ef,eh)||(eu=su("NON_CONFORMING_NAMESPACES",`${ea} namespaces chains don't satisfy required namespaces. + Required: ${ef.toString()} + Approved: ${eh.toString()}`)),Object.keys(eo).forEach(ei=>{if(!ei.includes(":")||eu)return;let ec=o6(eo[ei].accounts);ec.includes(ei)||(eu=su("NON_CONFORMING_NAMESPACES",`${ea} namespaces accounts don't satisfy namespace accounts for ${ei} + Required: ${ei} + Approved: ${ec.toString()}`))}),ef.forEach(ei=>{eu||(oC(ec[ei].methods,ed[ei].methods)?oC(ec[ei].events,ed[ei].events)||(eu=su("NON_CONFORMING_NAMESPACES",`${ea} namespaces events don't satisfy namespace events for ${ei}`)):eu=su("NON_CONFORMING_NAMESPACES",`${ea} namespaces methods don't satisfy namespace methods for ${ei}`))}),eu}function sQ(ei){let eo={};return Object.keys(ei).forEach(ea=>{var eu;ea.includes(":")?eo[ea]=ei[ea]:null==(eu=ei[ea].chains)||eu.forEach(eu=>{eo[eu]={methods:ei[ea].methods,events:ei[ea].events}})}),eo}function sX(ei){return[...new Set(ei.map(ei=>ei.includes(":")?ei.split(":")[0]:ei))]}function s5(ei){let eo={};return Object.keys(ei).forEach(ea=>{if(ea.includes(":"))eo[ea]=ei[ea];else{let eu=o6(ei[ea].accounts);eu?.forEach(eu=>{eo[eu]={accounts:ei[ea].accounts.filter(ei=>ei.includes(`${eu}:`)),methods:ei[ea].methods,events:ei[ea].events}})}}),eo}function s4(ei,eo){return sb(ei,!1)&&ei<=eo.max&&ei>=eo.min}let s6="PARSE_ERROR",s8="INVALID_REQUEST",s9="METHOD_NOT_FOUND",s7="INVALID_PARAMS",ao="INTERNAL_ERROR",aa="SERVER_ERROR",au=[-32700,-32600,-32601,-32602,-32603],ac={[s6]:{code:-32700,message:"Parse error"},[s8]:{code:-32600,message:"Invalid Request"},[s9]:{code:-32601,message:"Method not found"},[s7]:{code:-32602,message:"Invalid params"},[ao]:{code:-32603,message:"Internal error"},[aa]:{code:-32e3,message:"Server error"}},af=aa;function ag(ei){return au.includes(ei)}function am(ei){return Object.keys(ac).includes(ei)?ac[ei]:ac[af]}function av(ei){let eo=Object.values(ac).find(eo=>eo.code===ei);return eo||ac[af]}function ab(ei,eo,ea){return ei.message.includes("getaddrinfo ENOTFOUND")||ei.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${ea} RPC url at ${eo}`):ei}var a_=ea(1468);function aS(ei=3){let eo=Date.now()*Math.pow(10,ei),ea=Math.floor(Math.random()*Math.pow(10,ei));return eo+ea}function aE(ei=6){return BigInt(aS(ei))}function ak(ei,eo,ea){return{id:ea||aS(),jsonrpc:"2.0",method:ei,params:eo}}function aC(ei,eo){return{id:ei,jsonrpc:"2.0",result:eo}}function aO(ei,eo,ea){return{id:ei,jsonrpc:"2.0",error:aI(eo,ea)}}function aI(ei,eo){return void 0===ei?am(ao):("string"==typeof ei&&(ei=Object.assign(Object.assign({},am(aa)),{message:ei})),void 0!==eo&&(ei.data=eo),ag(ei.code)&&(ei=av(ei.code)),ei)}class aP{}class aD extends aP{constructor(){super()}}class aN extends aD{constructor(ei){super()}}let aM="^wss?:";function aj(ei){let eo=ei.match(RegExp(/^\w+:/,"gi"));if(eo&&eo.length)return eo[0]}function aR(ei,eo){let ea=aj(ei);return void 0!==ea&&new RegExp(eo).test(ea)}function aL(ei){return aR(ei,aM)}function aF(ei){return RegExp("wss?://localhost(:d{2,5})?").test(ei)}function aU(ei){return"object"==typeof ei&&"id"in ei&&"jsonrpc"in ei&&"2.0"===ei.jsonrpc}function aG(ei){return aU(ei)&&"method"in ei}function aV(ei){return aU(ei)&&(aq(ei)||aH(ei))}function aq(ei){return"result"in ei}function aH(ei){return"error"in ei}class aW extends aN{constructor(ei){super(ei),this.events=new eP.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(ei),this.connection.connected&&this.registerEventListeners()}async connect(ei=this.connection){await this.open(ei)}async disconnect(){await this.close()}on(ei,eo){this.events.on(ei,eo)}once(ei,eo){this.events.once(ei,eo)}off(ei,eo){this.events.off(ei,eo)}removeListener(ei,eo){this.events.removeListener(ei,eo)}async request(ei,eo){return this.requestStrict(ak(ei.method,ei.params||[],ei.id||aE().toString()),eo)}async requestStrict(ei,eo){return new Promise(async(ea,eu)=>{if(!this.connection.connected)try{await this.open()}catch(ei){eu(ei)}this.events.on(`${ei.id}`,ei=>{aH(ei)?eu(ei.error):ea(ei.result)});try{await this.connection.send(ei,eo)}catch(ei){eu(ei)}})}setConnection(ei=this.connection){return ei}onPayload(ei){this.events.emit("payload",ei),aV(ei)?this.events.emit(`${ei.id}`,ei):this.events.emit("message",{type:ei.method,data:ei.params})}onClose(ei){ei&&3e3===ei.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${ei.code} ${ei.reason?`(${ei.reason})`:""}`)),this.events.emit("disconnect")}async open(ei=this.connection){this.connection===ei&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof ei&&(await this.connection.open(ei),ei=this.connection),this.connection=this.setConnection(ei),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",ei=>this.onPayload(ei)),this.connection.on("close",ei=>this.onClose(ei)),this.connection.on("error",ei=>this.events.emit("error",ei)),this.connection.on("register_error",ei=>this.onClose()),this.hasRegisteredEventListeners=!0)}}let aK=()=>"undefined"!=typeof WebSocket?WebSocket:void 0!==ea.g&&void 0!==ea.g.WebSocket?ea.g.WebSocket:"undefined"!=typeof window&&void 0!==window.WebSocket?window.WebSocket:"undefined"!=typeof self&&void 0!==self.WebSocket?self.WebSocket:ea(57026),aY=()=>"undefined"!=typeof WebSocket||void 0!==ea.g&&void 0!==ea.g.WebSocket||"undefined"!=typeof window&&void 0!==window.WebSocket||"undefined"!=typeof self&&void 0!==self.WebSocket,aZ=ei=>ei.split("?")[0],a$=10,aJ=aK();class aQ{constructor(ei){if(this.url=ei,this.events=new eP.EventEmitter,this.registering=!1,!aL(ei))throw Error(`Provided URL is not compatible with WebSocket connection: ${ei}`);this.url=ei}get connected(){return void 0!==this.socket}get connecting(){return this.registering}on(ei,eo){this.events.on(ei,eo)}once(ei,eo){this.events.once(ei,eo)}off(ei,eo){this.events.off(ei,eo)}removeListener(ei,eo){this.events.removeListener(ei,eo)}async open(ei=this.url){await this.register(ei)}async close(){return new Promise((ei,eo)=>{if(void 0===this.socket){eo(Error("Connection already closed"));return}this.socket.onclose=eo=>{this.onClose(eo),ei()},this.socket.close()})}async send(ei,eo){void 0===this.socket&&(this.socket=await this.register());try{this.socket.send(eX(ei))}catch(eo){this.onError(ei.id,eo)}}register(ei=this.url){if(!aL(ei))throw Error(`Provided URL is not compatible with WebSocket connection: ${ei}`);if(this.registering){let ei=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=ei||this.events.listenerCount("open")>=ei)&&this.events.setMaxListeners(ei+1),new Promise((ei,eo)=>{this.events.once("register_error",ei=>{this.resetMaxListeners(),eo(ei)}),this.events.once("open",()=>{if(this.resetMaxListeners(),void 0===this.socket)return eo(Error("WebSocket connection is missing or invalid"));ei(this.socket)})})}return this.url=ei,this.registering=!0,new Promise((eo,ea)=>{let eu=(0,a_.isReactNative)()?void 0:{rejectUnauthorized:!aF(ei)},ec=new aJ(ei,[],eu);aY()?ec.onerror=ei=>{let eo=ei;ea(this.emitError(eo.error))}:ec.on("error",ei=>{ea(this.emitError(ei))}),ec.onopen=()=>{this.onOpen(ec),eo(ec)}})}onOpen(ei){ei.onmessage=ei=>this.onPayload(ei),ei.onclose=ei=>this.onClose(ei),this.socket=ei,this.registering=!1,this.events.emit("open")}onClose(ei){this.socket=void 0,this.registering=!1,this.events.emit("close",ei)}onPayload(ei){if(void 0===ei.data)return;let eo="string"==typeof ei.data?eQ(ei.data):ei.data;this.events.emit("payload",eo)}onError(ei,eo){let ea=this.parseError(eo),eu=ea.message||ea.toString(),ec=aO(ei,eu);this.events.emit("payload",ec)}parseError(ei,eo=this.url){return ab(ei,aZ(eo),"WS")}resetMaxListeners(){this.events.getMaxListeners()>a$&&this.events.setMaxListeners(a$)}emitError(ei){let eo=this.parseError(Error((null==ei?void 0:ei.message)||`WebSocket connection failed for host: ${aZ(this.url)}`));return this.events.emit("register_error",eo),eo}}var la=aQ,ll=ea(72307),lc=ea.n(ll),ld=ea(83454),lf=function(ei,eo){if(ei.length>=255)throw TypeError("Alphabet too long");for(var ea=new Uint8Array(256),eu=0;eu>>0,ef=new Uint8Array(ed);ei[eo];){var eb=ea[ei.charCodeAt(eo)];if(255===eb)return;for(var ew=0,e_=ed-1;(0!==eb||ew>>0,ef[e_]=eb%256>>>0,eb=eb/256>>>0;if(0!==eb)throw Error("Non-zero carry");ec=ew,eo++}if(" "!==ei[eo]){for(var eS=ed-ec;eS!==ed&&0===ef[eS];)eS++;for(var eE=new Uint8Array(eu+(ed-eS)),eA=eu;eS!==ed;)eE[eA++]=ef[eS++];return eE}}}function e_(ei){var ea=ew(ei);if(ea)return ea;throw Error(`Non-${eo} character`)}return{encode:function(eo){if(eo instanceof Uint8Array||(ArrayBuffer.isView(eo)?eo=new Uint8Array(eo.buffer,eo.byteOffset,eo.byteLength):Array.isArray(eo)&&(eo=Uint8Array.from(eo))),!(eo instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===eo.length)return"";for(var ea=0,eu=0,ec=0,ed=eo.length;ec!==ed&&0===eo[ec];)ec++,ea++;for(var ef=(ed-ec)*eb+1>>>0,em=new Uint8Array(ef);ec!==ed;){for(var ew=eo[ec],e_=0,eS=ef-1;(0!==ew||e_>>0,em[eS]=ew%eh>>>0,ew=ew/eh>>>0;if(0!==ew)throw Error("Non-zero carry");eu=e_,ec++}for(var eE=ef-eu;eE!==ef&&0===em[eE];)eE++;for(var eA=eg.repeat(ea);eE{if(ei instanceof Uint8Array&&"Uint8Array"===ei.constructor.name)return ei;if(ei instanceof ArrayBuffer)return new Uint8Array(ei);if(ArrayBuffer.isView(ei))return new Uint8Array(ei.buffer,ei.byteOffset,ei.byteLength);throw Error("Unknown type, must be binary type")},lp=ei=>new TextEncoder().encode(ei),lg=ei=>new TextDecoder().decode(ei);class lm{constructor(ei,eo,ea){this.name=ei,this.prefix=eo,this.baseEncode=ea}encode(ei){if(ei instanceof Uint8Array)return`${this.prefix}${this.baseEncode(ei)}`;throw Error("Unknown type, must be binary type")}}class ly{constructor(ei,eo,ea){if(this.name=ei,this.prefix=eo,void 0===eo.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=eo.codePointAt(0),this.baseDecode=ea}decode(ei){if("string"==typeof ei){if(ei.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(ei)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(ei.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(ei){return lb(this,ei)}}class lv{constructor(ei){this.decoders=ei}or(ei){return lb(this,ei)}decode(ei){let eo=ei[0],ea=this.decoders[eo];if(ea)return ea.decode(ei);throw RangeError(`Unable to decode multibase string ${JSON.stringify(ei)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let lb=(ei,eo)=>new lv({...ei.decoders||{[ei.prefix]:ei},...eo.decoders||{[eo.prefix]:eo}});class lw{constructor(ei,eo,ea,eu){this.name=ei,this.prefix=eo,this.baseEncode=ea,this.baseDecode=eu,this.encoder=new lm(ei,eo,ea),this.decoder=new ly(ei,eo,eu)}encode(ei){return this.encoder.encode(ei)}decode(ei){return this.decoder.decode(ei)}}let l_=({name:ei,prefix:eo,encode:ea,decode:eu})=>new lw(ei,eo,ea,eu),lS=({prefix:ei,name:eo,alphabet:ea})=>{let{encode:eu,decode:ec}=lf(ea,eo);return l_({prefix:ei,name:eo,encode:eu,decode:ei=>lh(ec(ei))})},lE=(ei,eo,ea,eu)=>{let ec={};for(let ei=0;ei=8&&(eh-=8,ef[em++]=255&eg>>eh)}if(eh>=ea||255&eg<<8-eh)throw SyntaxError("Unexpected end of data");return ef},lx=(ei,eo,ea)=>{let eu="="===eo[eo.length-1],ec=(1<ea;)ef-=ea,ed+=eo[ec&eh>>ef];if(ef&&(ed+=eo[ec&eh<l_({prefix:eo,name:ei,encode:ei=>lx(ei,eu,ea),decode:eo=>lE(eo,eu,ea,ei)}),lT=l_({prefix:"\x00",name:"identity",encode:ei=>lg(ei),decode:ei=>lp(ei)});var lk=Object.freeze({__proto__:null,identity:lT});let lC=lA({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var lO=Object.freeze({__proto__:null,base2:lC});let lI=lA({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var lP=Object.freeze({__proto__:null,base8:lI});let lD=lS({prefix:"9",name:"base10",alphabet:"0123456789"});var lN=Object.freeze({__proto__:null,base10:lD});let lM=lA({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),lj=lA({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var lR=Object.freeze({__proto__:null,base16:lM,base16upper:lj});let lL=lA({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),lF=lA({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),lB=lA({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),lU=lA({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),lz=lA({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),lG=lA({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),lV=lA({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),lq=lA({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),lH=lA({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var lW=Object.freeze({__proto__:null,base32:lL,base32upper:lF,base32pad:lB,base32padupper:lU,base32hex:lz,base32hexupper:lG,base32hexpad:lV,base32hexpadupper:lq,base32z:lH});let lK=lS({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),lY=lS({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var lZ=Object.freeze({__proto__:null,base36:lK,base36upper:lY});let l$=lS({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),lJ=lS({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var lQ=Object.freeze({__proto__:null,base58btc:l$,base58flickr:lJ});let lX=lA({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),l0=lA({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),l6=lA({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),l8=lA({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var l9=Object.freeze({__proto__:null,base64:lX,base64pad:l0,base64url:l6,base64urlpad:l8});let l7=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),ur=l7.reduce((ei,eo,ea)=>(ei[ea]=eo,ei),[]),ui=l7.reduce((ei,eo,ea)=>(ei[eo.codePointAt(0)]=ea,ei),[]);function uo(ei){return ei.reduce((ei,eo)=>ei+=ur[eo],"")}function ul(ei){let eo=[];for(let ea of ei){let ei=ui[ea.codePointAt(0)];if(void 0===ei)throw Error(`Non-base256emoji character: ${ea}`);eo.push(ei)}return new Uint8Array(eo)}let uu=l_({prefix:"\uD83D\uDE80",name:"base256emoji",encode:uo,decode:ul});var uc=Object.freeze({__proto__:null,base256emoji:uu}),ud=128,uf=-128,uh=2147483648;function ug(ei,eo,ea){eo=eo||[],ea=ea||0;for(var eu=ea;ei>=uh;)eo[ea++]=255&ei|ud,ei/=128;for(;ei&uf;)eo[ea++]=255&ei|ud,ei>>>=7;return eo[ea]=0|ei,ug.bytes=ea-eu+1,eo}var um=128,uy=127;function uv(ei,eo){var ea,eu=0,eo=eo||0,ec=0,ed=eo,ef=ei.length;do{if(ed>=ef)throw uv.bytes=0,RangeError("Could not decode varint");ea=ei[ed++],eu+=ec<28?(ea&uy)<=um);return uv.bytes=ed-eo,eu}var ub=128,uw=16384,u_=2097152,uS=268435456,uE=34359738368,ux=4398046511104,uA=562949953421312,uT=72057594037927940,uk=0x7fffffffffffffff,uC={encode:ug,decode:uv,encodingLength:function(ei){return ei(uC.encode(ei,eo,ea),eo),uI=ei=>uC.encodingLength(ei),uP=(ei,eo)=>{let ea=eo.byteLength,eu=uI(ei),ec=eu+uI(ea),ed=new Uint8Array(ec+ea);return uO(ei,ed,0),uO(ea,ed,eu),ed.set(eo,ec),new uD(ei,ea,eo,ed)};class uD{constructor(ei,eo,ea,eu){this.code=ei,this.size=eo,this.digest=ea,this.bytes=eu}}let uN=({name:ei,code:eo,encode:ea})=>new uM(ei,eo,ea);class uM{constructor(ei,eo,ea){this.name=ei,this.code=eo,this.encode=ea}digest(ei){if(ei instanceof Uint8Array){let eo=this.encode(ei);return eo instanceof Uint8Array?uP(this.code,eo):eo.then(ei=>uP(this.code,ei))}throw Error("Unknown type, must be binary type")}}let uj=ei=>async eo=>new Uint8Array(await crypto.subtle.digest(ei,eo)),uR=uN({name:"sha2-256",code:18,encode:uj("SHA-256")}),uL=uN({name:"sha2-512",code:19,encode:uj("SHA-512")});var uF=Object.freeze({__proto__:null,sha256:uR,sha512:uL});let uB=0,uU="identity",uz=lh,uG=ei=>uP(uB,uz(ei)),uV={code:uB,name:uU,encode:uz,digest:uG};var uq=Object.freeze({__proto__:null,identity:uV});new TextEncoder,new TextDecoder;let uH={...lk,...lO,...lP,...lN,...lR,...lW,...lZ,...lQ,...l9,...uc};function uW(ei){return null!=globalThis.Buffer?new Uint8Array(ei.buffer,ei.byteOffset,ei.byteLength):ei}function uK(ei=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?uW(globalThis.Buffer.allocUnsafe(ei)):new Uint8Array(ei)}function uY(ei,eo,ea,eu){return{name:ei,prefix:eo,encoder:{name:ei,prefix:eo,encode:ea},decoder:{decode:eu}}}({...uF,...uq});let uZ=uY("utf8","u",ei=>"u"+new TextDecoder("utf8").decode(ei),ei=>new TextEncoder().encode(ei.substring(1))),u$=uY("ascii","a",ei=>{let eo="a";for(let ea=0;ea{ei=ei.substring(1);let eo=uK(ei.length);for(let ea=0;ea{if(!this.initialized){let ei=await this.getKeyChain();"u">typeof ei&&(this.keychain=ei),this.initialized=!0}},this.has=ei=>(this.isInitialized(),this.keychain.has(ei)),this.set=async(ei,eo)=>{this.isInitialized(),this.keychain.set(ei,eo),await this.persist()},this.get=ei=>{this.isInitialized();let eo=this.keychain.get(ei);if(typeof eo>"u"){let{message:eo}=su("NO_MATCHING_KEY",`${this.name}: ${ei}`);throw Error(eo)}return eo},this.del=async ei=>{this.isInitialized(),this.keychain.delete(ei),await this.persist()},this.core=ei,this.logger=(0,ej.generateChildLogger)(eo,this.name)}get context(){return(0,ej.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(ei){await this.core.storage.setItem(this.storageKey,oI(ei))}async getKeyChain(){let ei=await this.core.storage.getItem(this.storageKey);return"u">typeof ei?oP(ei):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}}class cH{constructor(ei,eo,ea){this.core=ei,this.logger=eo,this.name=u7,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=ei=>(this.isInitialized(),this.keychain.has(ei)),this.getClientId=async()=>{this.isInitialized();let ei=await this.getClientSeed(),eo=n$(ei);return nW(eo.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let ei=iU();return this.setPrivateKey(ei.publicKey,ei.privateKey)},this.signJWT=async ei=>{this.isInitialized();let eo=await this.getClientSeed(),ea=n$(eo),eu=iG(),ec=ci;return await nJ(eu,ei,ec,ea)},this.generateSharedKey=(ei,eo,ea)=>{this.isInitialized();let eu=this.getPrivateKey(ei),ec=iV(eu,eo);return this.setSymKey(ec,ea)},this.setSymKey=async(ei,eo)=>{this.isInitialized();let ea=eo||iq(ei);return await this.keychain.set(ea,ei),ea},this.deleteKeyPair=async ei=>{this.isInitialized(),await this.keychain.del(ei)},this.deleteSymKey=async ei=>{this.isInitialized(),await this.keychain.del(ei)},this.encode=async(ei,eo,ea)=>{this.isInitialized();let eu=i6(ea),ec=eX(eo);if(i8(eu)){let eo=eu.senderPublicKey,ea=eu.receiverPublicKey;ei=await this.generateSharedKey(eo,ea)}let ed=this.getSymKey(ei),{type:ef,senderPublicKey:eh}=eu;return iZ({type:ef,symKey:ed,message:ec,senderPublicKey:eh})},this.decode=async(ei,eo,ea)=>{this.isInitialized();let eu=i0(eo,ea);if(i8(eu)){let eo=eu.receiverPublicKey,ea=eu.senderPublicKey;ei=await this.generateSharedKey(eo,ea)}let ec=this.getSymKey(ei),ed=i$({symKey:ec,encoded:eo});return eQ(ed)},this.getPayloadType=ei=>{let eo=iQ(ei);return iK(eo.type)},this.getPayloadSenderPublicKey=ei=>{let eo=iQ(ei);return eo.senderPublicKey?nV(eo.senderPublicKey,iP):void 0},this.core=ei,this.logger=(0,ej.generateChildLogger)(eo,this.name),this.keychain=ea||new cq(this.core,this.logger)}get context(){return(0,ej.getLoggerContext)(this.logger)}async setPrivateKey(ei,eo){return await this.keychain.set(ei,eo),ei}getPrivateKey(ei){return this.keychain.get(ei)}async getClientSeed(){let ei="";try{ei=this.keychain.get(cr)}catch{ei=iG(),await this.keychain.set(cr,ei)}return uQ(ei,"base16")}getSymKey(ei){return this.keychain.get(ei)}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}}class cW extends eB{constructor(ei,eo){super(ei,eo),this.logger=ei,this.core=eo,this.messages=new Map,this.name=cl,this.version=cu,this.initialized=!1,this.storagePrefix=u4,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let ei=await this.getRelayerMessages();"u">typeof ei&&(this.messages=ei),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(ei){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(ei)}finally{this.initialized=!0}}},this.set=async(ei,eo)=>{this.isInitialized();let ea=iH(eo),eu=this.messages.get(ei);return typeof eu>"u"&&(eu={}),"u">typeof eu[ea]||(eu[ea]=eo,this.messages.set(ei,eu),await this.persist()),ea},this.get=ei=>{this.isInitialized();let eo=this.messages.get(ei);return typeof eo>"u"&&(eo={}),eo},this.has=(ei,eo)=>{this.isInitialized();let ea=this.get(ei),eu=iH(eo);return"u">typeof ea[eu]},this.del=async ei=>{this.isInitialized(),this.messages.delete(ei),await this.persist()},this.logger=(0,ej.generateChildLogger)(ei,this.name),this.core=eo}get context(){return(0,ej.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(ei){await this.core.storage.setItem(this.storageKey,oI(ei))}async getRelayerMessages(){let ei=await this.core.storage.getItem(this.storageKey);return"u">typeof ei?oP(ei):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}}class cK extends eU{constructor(ei,eo){super(ei,eo),this.relayer=ei,this.logger=eo,this.events=new eP.EventEmitter,this.name=cd,this.queue=new Map,this.publishTimeout=(0,e5.toMiliseconds)(e5.TEN_SECONDS),this.queueTimeout=(0,e5.toMiliseconds)(e5.FIVE_SECONDS),this.needsTransportRestart=!1,this.publish=async(ei,eo,ea)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:ei,message:eo,opts:ea}});try{let eu=ea?.ttl||cc,ec=oV(ea),ed=ea?.prompt||!1,ef=ea?.tag||0,eh=ea?.id||aE().toString(),eg={topic:ei,message:eo,opts:{ttl:eu,relay:ec,prompt:ed,tag:ef,id:eh}},em=setTimeout(()=>this.queue.set(eh,eg),this.queueTimeout);try{await await oN(this.rpcPublish(ei,eo,eu,ec,ed,ef,eh),this.publishTimeout),clearTimeout(em),this.relayer.events.emit(cw.publish,eg)}catch{this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0;return}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:ei,message:eo,opts:ea}})}catch(ei){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(ei),ei}},this.on=(ei,eo)=>{this.events.on(ei,eo)},this.once=(ei,eo)=>{this.events.once(ei,eo)},this.off=(ei,eo)=>{this.events.off(ei,eo)},this.removeListener=(ei,eo)=>{this.events.removeListener(ei,eo)},this.relayer=ei,this.logger=(0,ej.generateChildLogger)(eo,this.name),this.registerEventListeners()}get context(){return(0,ej.getLoggerContext)(this.logger)}rpcPublish(ei,eo,ea,eu,ec,ed,ef){var eh,eg,em,eb;let ew={method:oq(eu.protocol).publish,params:{topic:ei,message:eo,ttl:ea,prompt:ec,tag:ed},id:ef};return sm(null==(eh=ew.params)?void 0:eh.prompt)&&(null==(eg=ew.params)||delete eg.prompt),sm(null==(em=ew.params)?void 0:em.tag)&&(null==(eb=ew.params)||delete eb.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:ew}),this.relayer.request(ew)}onPublish(ei){this.queue.delete(ei)}checkQueue(){this.queue.forEach(async ei=>{let{topic:eo,message:ea,opts:eu}=ei;await this.publish(eo,ea,eu)})}registerEventListeners(){this.relayer.core.heartbeat.on(eM.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(cw.connection_stalled);return}this.checkQueue()}),this.relayer.on(cw.message_ack,ei=>{this.onPublish(ei.id.toString())})}}class cY{constructor(){this.map=new Map,this.set=(ei,eo)=>{let ea=this.get(ei);this.exists(ei,eo)||this.map.set(ei,[...ea,eo])},this.get=ei=>this.map.get(ei)||[],this.exists=(ei,eo)=>this.get(ei).includes(eo),this.delete=(ei,eo)=>{if(typeof eo>"u"){this.map.delete(ei);return}if(!this.map.has(ei))return;let ea=this.get(ei);if(!this.exists(ei,eo))return;let eu=ea.filter(ei=>ei!==eo);if(!eu.length){this.map.delete(ei);return}this.map.set(ei,eu)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var cZ=Object.defineProperty,c$=Object.defineProperties,cJ=Object.getOwnPropertyDescriptors,cQ=Object.getOwnPropertySymbols,cX=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,di=(ei,eo,ea)=>eo in ei?cZ(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,da=(ei,eo)=>{for(var ea in eo||(eo={}))cX.call(eo,ea)&&di(ei,ea,eo[ea]);if(cQ)for(var ea of cQ(eo))dn.call(eo,ea)&&di(ei,ea,eo[ea]);return ei},dl=(ei,eo)=>c$(ei,cJ(eo));class du extends eH{constructor(ei,eo){super(ei,eo),this.relayer=ei,this.logger=eo,this.subscriptions=new Map,this.topicMap=new cY,this.events=new eP.EventEmitter,this.name=cI,this.version=cP,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=u4,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(ei,eo)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:ei,opts:eo}});try{let ea=oV(eo),eu={topic:ei,relay:ea};this.pending.set(ei,eu);let ec=await this.rpcSubscribe(ei,ea);return this.onSubscribe(ec,eu),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:ei,opts:eo}}),ec}catch(ei){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(ei),ei}},this.unsubscribe=async(ei,eo)=>{await this.restartToComplete(),this.isInitialized(),"u">typeof eo?.id?await this.unsubscribeById(ei,eo.id,eo):await this.unsubscribeByTopic(ei,eo)},this.isSubscribed=async ei=>!!this.topics.includes(ei)||await new Promise((eo,ea)=>{let eu=new e5.Watch;eu.start(this.pendingSubscriptionWatchLabel);let ec=setInterval(()=>{!this.pending.has(ei)&&this.topics.includes(ei)&&(clearInterval(ec),eu.stop(this.pendingSubscriptionWatchLabel),eo(!0)),eu.elapsed(this.pendingSubscriptionWatchLabel)>=cD&&(clearInterval(ec),eu.stop(this.pendingSubscriptionWatchLabel),ea(Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(ei,eo)=>{this.events.on(ei,eo)},this.once=(ei,eo)=>{this.events.once(ei,eo)},this.off=(ei,eo)=>{this.events.off(ei,eo)},this.removeListener=(ei,eo)=>{this.events.removeListener(ei,eo)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=ei,this.logger=(0,ej.generateChildLogger)(eo,this.name),this.clientId=""}get context(){return(0,ej.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(ei,eo){let ea=!1;try{ea=this.getSubscription(ei).topic===eo}catch{}return ea}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(ei,eo){let ea=this.topicMap.get(ei);await Promise.all(ea.map(async ea=>await this.unsubscribeById(ei,ea,eo)))}async unsubscribeById(ei,eo,ea){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:ei,id:eo,opts:ea}});try{let eu=oV(ea);await this.rpcUnsubscribe(ei,eo,eu);let ec=sf("USER_DISCONNECTED",`${this.name}, ${ei}`);await this.onUnsubscribe(ei,eo,ec),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:ei,id:eo,opts:ea}})}catch(ei){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(ei),ei}}async rpcSubscribe(ei,eo){let ea={method:oq(eo.protocol).subscribe,params:{topic:ei}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:ea});try{await await oN(this.relayer.request(ea),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(cw.connection_stalled)}return iH(ei+this.clientId)}async rpcBatchSubscribe(ei){if(!ei.length)return;let eo=ei[0].relay,ea={method:oq(eo.protocol).batchSubscribe,params:{topics:ei.map(ei=>ei.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:ea});try{return await await oN(this.relayer.request(ea),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(cw.connection_stalled)}}rpcUnsubscribe(ei,eo,ea){let eu={method:oq(ea.protocol).unsubscribe,params:{topic:ei,id:eo}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:eu}),this.relayer.request(eu)}onSubscribe(ei,eo){this.setSubscription(ei,dl(da({},eo),{id:ei})),this.pending.delete(eo.topic)}onBatchSubscribe(ei){ei.length&&ei.forEach(ei=>{this.setSubscription(ei.id,da({},ei)),this.pending.delete(ei.topic)})}async onUnsubscribe(ei,eo,ea){this.events.removeAllListeners(eo),this.hasSubscription(eo,ei)&&this.deleteSubscription(eo,ea),await this.relayer.messages.del(ei)}async setRelayerSubscriptions(ei){await this.relayer.core.storage.setItem(this.storageKey,ei)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(ei,eo){this.subscriptions.has(ei)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:ei,subscription:eo}),this.addSubscription(ei,eo))}addSubscription(ei,eo){this.subscriptions.set(ei,da({},eo)),this.topicMap.set(eo.topic,ei),this.events.emit(cO.created,eo)}getSubscription(ei){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:ei});let eo=this.subscriptions.get(ei);if(!eo){let{message:eo}=su("NO_MATCHING_KEY",`${this.name}: ${ei}`);throw Error(eo)}return eo}deleteSubscription(ei,eo){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:ei,reason:eo});let ea=this.getSubscription(ei);this.subscriptions.delete(ei),this.topicMap.delete(ea.topic,ei),this.events.emit(cO.deleted,dl(da({},ea),{reason:eo}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(cO.sync)}async reset(){if(this.cached.length){let ei=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let eo=0;eo"u"||!ei.length)return;if(this.subscriptions.size){let{message:ei}=su("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(ei),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(ei)}this.cached=ei,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(ei){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(ei)}}async batchSubscribe(ei){if(!ei.length)return;let eo=await this.rpcBatchSubscribe(ei);sh(eo)&&this.onBatchSubscribe(eo.map((eo,ea)=>dl(da({},ei[ea]),{id:eo})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;let ei=[];this.pending.forEach(eo=>{ei.push(eo)}),await this.batchSubscribe(ei)}registerEventListeners(){this.relayer.core.heartbeat.on(eM.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(cw.connect,async()=>{await this.onConnect()}),this.relayer.on(cw.disconnect,()=>{this.onDisconnect()}),this.events.on(cO.created,async ei=>{let eo=cO.created;this.logger.info(`Emitting ${eo}`),this.logger.debug({type:"event",event:eo,data:ei}),await this.persist()}),this.events.on(cO.deleted,async ei=>{let eo=cO.deleted;this.logger.info(`Emitting ${eo}`),this.logger.debug({type:"event",event:eo,data:ei}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}async restartToComplete(){this.restartInProgress&&await new Promise(ei=>{let eo=setInterval(()=>{this.restartInProgress||(clearInterval(eo),ei())},this.pollingInterval)})}}var dc=Object.defineProperty,dd=Object.getOwnPropertySymbols,df=Object.prototype.hasOwnProperty,dh=Object.prototype.propertyIsEnumerable,dg=(ei,eo,ea)=>eo in ei?dc(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,dy=(ei,eo)=>{for(var ea in eo||(eo={}))df.call(eo,ea)&&dg(ei,ea,eo[ea]);if(dd)for(var ea of dd(eo))dh.call(eo,ea)&&dg(ei,ea,eo[ea]);return ei};class dv extends eG{constructor(ei){super(ei),this.protocol="wc",this.version=2,this.events=new eP.EventEmitter,this.name=cy,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.request=async ei=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(ei)}catch(ei){throw this.logger.debug("Failed to Publish Request"),this.logger.error(ei),ei}},this.core=ei.core,this.logger="u">typeof ei.logger&&"string"!=typeof ei.logger?(0,ej.generateChildLogger)(ei.logger,this.name):(0,ej.pino)((0,ej.getDefaultLoggerOptions)({level:ei.logger||ch})),this.messages=new cW(this.logger,ei.core),this.subscriber=new du(this,this.logger),this.publisher=new cK(this,this.logger),this.relayUrl=ei?.relayUrl||cg,this.projectId=ei.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${cm}...`),await this.restartTransport(cm)}this.registerEventListeners(),this.initialized=!0,setTimeout(async()=>{0===this.subscriber.topics.length&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},cT)}get context(){return(0,ej.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(ei,eo,ea){this.isInitialized(),await this.publisher.publish(ei,eo,ea),await this.recordMessageEvent({topic:ei,message:eo,publishedAt:Date.now()})}async subscribe(ei,eo){var ea;this.isInitialized();let eu=(null==(ea=this.subscriber.topicMap.get(ei))?void 0:ea[0])||"";return eu||(await Promise.all([new Promise(eo=>{this.subscriber.once(cO.created,ea=>{ea.topic===ei&&eo()})}),new Promise(async ea=>{eu=await this.subscriber.subscribe(ei,eo),ea()})]),eu)}async unsubscribe(ei,eo){this.isInitialized(),await this.subscriber.unsubscribe(ei,eo)}on(ei,eo){this.events.on(ei,eo)}once(ei,eo){this.events.once(ei,eo)}off(ei,eo){this.events.off(ei,eo)}removeListener(ei,eo){this.events.removeListener(ei,eo)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(cw.transport_closed))}async transportOpen(ei){if(this.transportExplicitlyClosed=!1,!this.reconnecting){this.relayUrl=ei||this.relayUrl,this.reconnecting=!0;try{await Promise.all([new Promise(ei=>{this.initialized||ei(),this.subscriber.once(cO.resubscribed,()=>{ei()})}),await Promise.race([new Promise(async(ei,eo)=>{await oN(this.provider.connect(),5e3,`Socket stalled when trying to connect to ${this.relayUrl}`).catch(ei=>eo(ei)).then(()=>ei()).finally(()=>this.removeListener(cw.transport_closed,this.rejectTransportOpen))}),new Promise(ei=>this.once(cw.transport_closed,this.rejectTransportOpen))])])}catch(eo){this.logger.error(eo);let ei=eo;if(!this.isConnectionStalled(ei.message))throw eo;this.events.emit(cw.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(ei){this.transportExplicitlyClosed||this.reconnecting||(this.relayUrl=ei||this.relayUrl,this.connected&&await Promise.all([new Promise(ei=>{this.provider.once(cS.disconnect,()=>{ei()})}),this.transportClose()]),await this.createProvider(),await this.transportOpen())}isConnectionStalled(ei){return this.staleConnectionErrors.some(eo=>ei.includes(eo))}rejectTransportOpen(){throw Error("Attempt to connect to relay via `transportOpen` has stalled. Retrying...")}async createProvider(){let ei=await this.core.crypto.signJWT(this.relayUrl);this.provider=new aW(new la(oT({sdkVersion:cA,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:ei,useOnCloseEvent:!0}))),this.registerProviderListeners()}async recordMessageEvent(ei){let{topic:eo,message:ea}=ei;await this.messages.set(eo,ea)}async shouldIgnoreMessageEvent(ei){let{topic:eo,message:ea}=ei;return!await this.subscriber.isSubscribed(eo)||this.messages.has(eo,ea)}async onProviderPayload(ei){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:ei}),aG(ei)){if(!ei.method.endsWith(c_))return;let eo=ei.params,{topic:ea,message:eu,publishedAt:ec}=eo.data,ed={topic:ea,message:eu,publishedAt:ec};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(dy({type:"event",event:eo.id},ed)),this.events.emit(eo.id,ed),await this.acknowledgePayload(ei),await this.onMessageEvent(ed)}else aV(ei)&&this.events.emit(cw.message_ack,ei)}async onMessageEvent(ei){await this.shouldIgnoreMessageEvent(ei)||(this.events.emit(cw.message,ei),await this.recordMessageEvent(ei))}async acknowledgePayload(ei){let eo=aC(ei.id,!0);await this.provider.connection.send(eo)}registerProviderListeners(){this.provider.on(cS.payload,ei=>this.onProviderPayload(ei)),this.provider.on(cS.connect,()=>{this.events.emit(cw.connect)}),this.provider.on(cS.disconnect,()=>{this.onProviderDisconnect()}),this.provider.on(cS.error,ei=>{this.logger.error(ei),this.events.emit(cw.error,ei)})}registerEventListeners(){this.events.on(cw.connection_stalled,async()=>{await this.restartTransport()})}onProviderDisconnect(){this.events.emit(cw.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.restartTransport()},(0,e5.toMiliseconds)(cE))}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}async toEstablishConnection(){if(!this.connected){if(this.connecting)return await new Promise(ei=>{let eo=setInterval(()=>{this.connected&&(clearInterval(eo),ei())},this.connectionStatusPollingInterval)});await this.restartTransport()}}}var dw=Object.defineProperty,d_=Object.getOwnPropertySymbols,dS=Object.prototype.hasOwnProperty,dE=Object.prototype.propertyIsEnumerable,dx=(ei,eo,ea)=>eo in ei?dw(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,dA=(ei,eo)=>{for(var ea in eo||(eo={}))dS.call(eo,ea)&&dx(ei,ea,eo[ea]);if(d_)for(var ea of d_(eo))dE.call(eo,ea)&&dx(ei,ea,eo[ea]);return ei};class dT extends eV{constructor(ei,eo,ea,eu=u4,ec){super(ei,eo,ea,eu),this.core=ei,this.logger=eo,this.name=ea,this.map=new Map,this.version=ck,this.cached=[],this.initialized=!1,this.storagePrefix=u4,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(ei=>{this.getKey&&null!==ei&&!sm(ei)?this.map.set(this.getKey(ei),ei):sk(ei)?this.map.set(ei.id,ei):sC(ei)&&this.map.set(ei.topic,ei)}),this.cached=[],this.initialized=!0)},this.set=async(ei,eo)=>{this.isInitialized(),this.map.has(ei)?await this.update(ei,eo):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:ei,value:eo}),this.map.set(ei,eo),await this.persist())},this.get=ei=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:ei}),this.getData(ei)),this.getAll=ei=>(this.isInitialized(),ei?this.values.filter(eo=>Object.keys(ei).every(ea=>lc()(eo[ea],ei[ea]))):this.values),this.update=async(ei,eo)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:ei,update:eo});let ea=dA(dA({},this.getData(ei)),eo);this.map.set(ei,ea),await this.persist()},this.delete=async(ei,eo)=>{this.isInitialized(),this.map.has(ei)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:ei,reason:eo}),this.map.delete(ei),await this.persist())},this.logger=(0,ej.generateChildLogger)(eo,this.name),this.storagePrefix=eu,this.getKey=ec}get context(){return(0,ej.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(ei){await this.core.storage.setItem(this.storageKey,ei)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(ei){let eo=this.map.get(ei);if(!eo){let{message:eo}=su("NO_MATCHING_KEY",`${this.name}: ${ei}`);throw this.logger.error(eo),Error(eo)}return eo}async persist(){await this.setDataStore(this.values)}async restore(){try{let ei=await this.getDataStore();if(typeof ei>"u"||!ei.length)return;if(this.map.size){let{message:ei}=su("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(ei),Error(ei)}this.cached=ei,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(ei){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(ei)}}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}}class dk{constructor(ei,eo){this.core=ei,this.logger=eo,this.name=cN,this.version=cM,this.events=new(eD()),this.initialized=!1,this.storagePrefix=u4,this.ignoredPayloadTypes=[ij],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:ei})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...ei])]},this.create=async()=>{this.isInitialized();let ei=iG(),eo=await this.core.crypto.setSymKey(ei),ea=oF(e5.FIVE_MINUTES),eu={protocol:cf},ec={topic:eo,expiry:ea,relay:eu,active:!1},ed=o4({protocol:this.core.protocol,version:this.core.version,topic:eo,symKey:ei,relay:eu});return await this.pairings.set(eo,ec),await this.core.relayer.subscribe(eo),this.core.expirer.set(eo,ea),{topic:eo,uri:ed}},this.pair=async ei=>{this.isInitialized(),this.isValidPair(ei);let{topic:eo,symKey:ea,relay:eu}=o0(ei.uri);if(this.pairings.keys.includes(eo))throw Error(`Pairing already exists: ${eo}`);if(this.core.crypto.hasKeys(eo))throw Error(`Keychain already exists: ${eo}`);let ec=oF(e5.FIVE_MINUTES),ed={topic:eo,relay:eu,expiry:ec,active:!1};return await this.pairings.set(eo,ed),await this.core.crypto.setSymKey(ea,eo),await this.core.relayer.subscribe(eo,{relay:eu}),this.core.expirer.set(eo,ec),ei.activatePairing&&await this.activate({topic:eo}),ed},this.activate=async({topic:ei})=>{this.isInitialized();let eo=oF(e5.THIRTY_DAYS);await this.pairings.update(ei,{active:!0,expiry:eo}),this.core.expirer.set(ei,eo)},this.ping=async ei=>{this.isInitialized(),await this.isValidPing(ei);let{topic:eo}=ei;if(this.pairings.keys.includes(eo)){let ei=await this.sendRequest(eo,"wc_pairingPing",{}),{done:ea,resolve:eu,reject:ec}=oD();this.events.once(oU("pairing_ping",ei),({error:ei})=>{ei?ec(ei):eu()}),await ea()}},this.updateExpiry=async({topic:ei,expiry:eo})=>{this.isInitialized(),await this.pairings.update(ei,{expiry:eo})},this.updateMetadata=async({topic:ei,metadata:eo})=>{this.isInitialized(),await this.pairings.update(ei,{peerMetadata:eo})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async ei=>{this.isInitialized(),await this.isValidDisconnect(ei);let{topic:eo}=ei;this.pairings.keys.includes(eo)&&(await this.sendRequest(eo,"wc_pairingDelete",sf("USER_DISCONNECTED")),await this.deletePairing(eo))},this.sendRequest=async(ei,eo,ea)=>{let eu=ak(eo,ea),ec=await this.core.crypto.encode(ei,eu),ed=cj[eo].req;return this.core.history.set(ei,eu),this.core.relayer.publish(ei,ec,ed),eu.id},this.sendResult=async(ei,eo,ea)=>{let eu=aC(ei,ea),ec=await this.core.crypto.encode(eo,eu),ed=await this.core.history.get(eo,ei),ef=cj[ed.request.method].res;await this.core.relayer.publish(eo,ec,ef),await this.core.history.resolve(eu)},this.sendError=async(ei,eo,ea)=>{let eu=aO(ei,ea),ec=await this.core.crypto.encode(eo,eu),ed=await this.core.history.get(eo,ei),ef=cj[ed.request.method]?cj[ed.request.method].res:cj.unregistered_method.res;await this.core.relayer.publish(eo,ec,ef),await this.core.history.resolve(eu)},this.deletePairing=async(ei,eo)=>{await this.core.relayer.unsubscribe(ei),await Promise.all([this.pairings.delete(ei,sf("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(ei),eo?Promise.resolve():this.core.expirer.del(ei)])},this.cleanup=async()=>{let ei=this.pairings.getAll().filter(ei=>oB(ei.expiry));await Promise.all(ei.map(ei=>this.deletePairing(ei.topic)))},this.onRelayEventRequest=ei=>{let{topic:eo,payload:ea}=ei,eu=ea.method;if(this.pairings.keys.includes(eo))switch(eu){case"wc_pairingPing":return this.onPairingPingRequest(eo,ea);case"wc_pairingDelete":return this.onPairingDeleteRequest(eo,ea);default:return this.onUnknownRpcMethodRequest(eo,ea)}},this.onRelayEventResponse=async ei=>{let{topic:eo,payload:ea}=ei,eu=(await this.core.history.get(eo,ea.id)).request.method;if(this.pairings.keys.includes(eo))return"wc_pairingPing"===eu?this.onPairingPingResponse(eo,ea):this.onUnknownRpcMethodResponse(eu)},this.onPairingPingRequest=async(ei,eo)=>{let{id:ea}=eo;try{this.isValidPing({topic:ei}),await this.sendResult(ea,ei,!0),this.events.emit("pairing_ping",{id:ea,topic:ei})}catch(eo){await this.sendError(ea,ei,eo),this.logger.error(eo)}},this.onPairingPingResponse=(ei,eo)=>{let{id:ea}=eo;setTimeout(()=>{aq(eo)?this.events.emit(oU("pairing_ping",ea),{}):aH(eo)&&this.events.emit(oU("pairing_ping",ea),{error:eo.error})},500)},this.onPairingDeleteRequest=async(ei,eo)=>{let{id:ea}=eo;try{this.isValidDisconnect({topic:ei}),await this.deletePairing(ei),this.events.emit("pairing_delete",{id:ea,topic:ei})}catch(eo){await this.sendError(ea,ei,eo),this.logger.error(eo)}},this.onUnknownRpcMethodRequest=async(ei,eo)=>{let{id:ea,method:eu}=eo;try{if(this.registeredMethods.includes(eu))return;let eo=sf("WC_METHOD_UNSUPPORTED",eu);await this.sendError(ea,ei,eo),this.logger.error(eo)}catch(eo){await this.sendError(ea,ei,eo),this.logger.error(eo)}},this.onUnknownRpcMethodResponse=ei=>{this.registeredMethods.includes(ei)||this.logger.error(sf("WC_METHOD_UNSUPPORTED",ei))},this.isValidPair=ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`pair() params: ${ei}`);throw Error(eo)}if(!sT(ei.uri)){let{message:eo}=su("MISSING_OR_INVALID",`pair() uri: ${ei.uri}`);throw Error(eo)}},this.isValidPing=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`ping() params: ${ei}`);throw Error(eo)}let{topic:eo}=ei;await this.isValidPairingTopic(eo)},this.isValidDisconnect=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`disconnect() params: ${ei}`);throw Error(eo)}let{topic:eo}=ei;await this.isValidPairingTopic(eo)},this.isValidPairingTopic=async ei=>{if(!sv(ei,!1)){let{message:eo}=su("MISSING_OR_INVALID",`pairing topic should be a string: ${ei}`);throw Error(eo)}if(!this.pairings.keys.includes(ei)){let{message:eo}=su("NO_MATCHING_KEY",`pairing topic doesn't exist: ${ei}`);throw Error(eo)}if(oB(this.pairings.get(ei).expiry)){await this.deletePairing(ei);let{message:eo}=su("EXPIRED",`pairing topic: ${ei}`);throw Error(eo)}},this.core=ei,this.logger=(0,ej.generateChildLogger)(eo,this.name),this.pairings=new dT(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,ej.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}registerRelayerEvents(){this.core.relayer.on(cw.message,async ei=>{let{topic:eo,message:ea}=ei;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(ea)))return;let eu=await this.core.crypto.decode(eo,ea);aG(eu)?(this.core.history.set(eo,eu),this.onRelayEventRequest({topic:eo,payload:eu})):aV(eu)&&(await this.core.history.resolve(eu),await this.onRelayEventResponse({topic:eo,payload:eu}),this.core.history.delete(eo,eu.id))})}registerExpirerEvents(){this.core.expirer.on(cU.expired,async ei=>{let{topic:eo}=oL(ei.target);eo&&this.pairings.keys.includes(eo)&&(await this.deletePairing(eo,!0),this.events.emit("pairing_expire",{topic:eo}))})}}class dC extends eF{constructor(ei,eo){super(ei,eo),this.core=ei,this.logger=eo,this.records=new Map,this.events=new eP.EventEmitter,this.name=cL,this.version=cF,this.cached=[],this.initialized=!1,this.storagePrefix=u4,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(ei=>this.records.set(ei.id,ei)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(ei,eo,ea)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:ei,request:eo,chainId:ea}),this.records.has(eo.id))return;let eu={id:eo.id,topic:ei,request:{method:eo.method,params:eo.params||null},chainId:ea,expiry:oF(e5.THIRTY_DAYS)};this.records.set(eu.id,eu),this.events.emit(cR.created,eu)},this.resolve=async ei=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:ei}),!this.records.has(ei.id))return;let eo=await this.getRecord(ei.id);typeof eo.response>"u"&&(eo.response=aH(ei)?{error:ei.error}:{result:ei.result},this.records.set(eo.id,eo),this.events.emit(cR.updated,eo))},this.get=async(ei,eo)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:ei,id:eo}),await this.getRecord(eo)),this.delete=(ei,eo)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:eo}),this.values.forEach(ea=>{ea.topic!==ei||"u">typeof eo&&ea.id!==eo||(this.records.delete(ea.id),this.events.emit(cR.deleted,ea))})},this.exists=async(ei,eo)=>(this.isInitialized(),!!this.records.has(eo)&&(await this.getRecord(eo)).topic===ei),this.on=(ei,eo)=>{this.events.on(ei,eo)},this.once=(ei,eo)=>{this.events.once(ei,eo)},this.off=(ei,eo)=>{this.events.off(ei,eo)},this.removeListener=(ei,eo)=>{this.events.removeListener(ei,eo)},this.logger=(0,ej.generateChildLogger)(eo,this.name)}get context(){return(0,ej.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let ei=[];return this.values.forEach(eo=>{if("u">typeof eo.response)return;let ea={topic:eo.topic,request:ak(eo.request.method,eo.request.params,eo.id),chainId:eo.chainId};return ei.push(ea)}),ei}async setJsonRpcRecords(ei){await this.core.storage.setItem(this.storageKey,ei)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(ei){this.isInitialized();let eo=this.records.get(ei);if(!eo){let{message:eo}=su("NO_MATCHING_KEY",`${this.name}: ${ei}`);throw Error(eo)}return eo}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(cR.sync)}async restore(){try{let ei=await this.getJsonRpcRecords();if(typeof ei>"u"||!ei.length)return;if(this.records.size){let{message:ei}=su("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(ei),Error(ei)}this.cached=ei,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(ei){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(ei)}}registerEventListeners(){this.events.on(cR.created,ei=>{let eo=cR.created;this.logger.info(`Emitting ${eo}`),this.logger.debug({type:"event",event:eo,record:ei}),this.persist()}),this.events.on(cR.updated,ei=>{let eo=cR.updated;this.logger.info(`Emitting ${eo}`),this.logger.debug({type:"event",event:eo,record:ei}),this.persist()}),this.events.on(cR.deleted,ei=>{let eo=cR.deleted;this.logger.info(`Emitting ${eo}`),this.logger.debug({type:"event",event:eo,record:ei}),this.persist()}),this.core.heartbeat.on(eM.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(ei=>{(0,e5.toMiliseconds)(ei.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${ei.id}`),this.delete(ei.topic,ei.id))})}catch(ei){this.logger.warn(ei)}}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}}class dO extends eW{constructor(ei,eo){super(ei,eo),this.core=ei,this.logger=eo,this.expirations=new Map,this.events=new eP.EventEmitter,this.name=cB,this.version=cz,this.cached=[],this.initialized=!1,this.storagePrefix=u4,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(ei=>this.expirations.set(ei.target,ei)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=ei=>{try{let eo=this.formatTarget(ei);return"u">typeof this.getExpiration(eo)}catch{return!1}},this.set=(ei,eo)=>{this.isInitialized();let ea=this.formatTarget(ei),eu={target:ea,expiry:eo};this.expirations.set(ea,eu),this.checkExpiry(ea,eu),this.events.emit(cU.created,{target:ea,expiration:eu})},this.get=ei=>{this.isInitialized();let eo=this.formatTarget(ei);return this.getExpiration(eo)},this.del=ei=>{if(this.isInitialized(),this.has(ei)){let eo=this.formatTarget(ei),ea=this.getExpiration(eo);this.expirations.delete(eo),this.events.emit(cU.deleted,{target:eo,expiration:ea})}},this.on=(ei,eo)=>{this.events.on(ei,eo)},this.once=(ei,eo)=>{this.events.once(ei,eo)},this.off=(ei,eo)=>{this.events.off(ei,eo)},this.removeListener=(ei,eo)=>{this.events.removeListener(ei,eo)},this.logger=(0,ej.generateChildLogger)(eo,this.name)}get context(){return(0,ej.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(ei){if("string"==typeof ei)return oj(ei);if("number"==typeof ei)return oR(ei);let{message:eo}=su("UNKNOWN_TYPE",`Target type: ${typeof ei}`);throw Error(eo)}async setExpirations(ei){await this.core.storage.setItem(this.storageKey,ei)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(cU.sync)}async restore(){try{let ei=await this.getExpirations();if(typeof ei>"u"||!ei.length)return;if(this.expirations.size){let{message:ei}=su("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(ei),Error(ei)}this.cached=ei,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(ei){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(ei)}}getExpiration(ei){let eo=this.expirations.get(ei);if(!eo){let{message:eo}=su("NO_MATCHING_KEY",`${this.name}: ${ei}`);throw this.logger.error(eo),Error(eo)}return eo}checkExpiry(ei,eo){let{expiry:ea}=eo;(0,e5.toMiliseconds)(ea)-Date.now()<=0&&this.expire(ei,eo)}expire(ei,eo){this.expirations.delete(ei),this.events.emit(cU.expired,{target:ei,expiration:eo})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((ei,eo)=>this.checkExpiry(eo,ei))}registerEventListeners(){this.core.heartbeat.on(eM.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(cU.created,ei=>{let eo=cU.created;this.logger.info(`Emitting ${eo}`),this.logger.debug({type:"event",event:eo,data:ei}),this.persist()}),this.events.on(cU.expired,ei=>{let eo=cU.expired;this.logger.info(`Emitting ${eo}`),this.logger.debug({type:"event",event:eo,data:ei}),this.persist()}),this.events.on(cU.deleted,ei=>{let eo=cU.deleted;this.logger.info(`Emitting ${eo}`),this.logger.debug({type:"event",event:eo,data:ei}),this.persist()})}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}}class dI extends eK{constructor(ei,eo){super(ei,eo),this.projectId=ei,this.logger=eo,this.name=cG,this.initialized=!1,this.init=async ei=>{og()||!om()||(this.verifyUrl=ei?.verifyUrl||cV,await this.createIframe())},this.register=async ei=>{var eo;if(this.initialized||await this.init(),this.iframe)try{null==(eo=this.iframe.contentWindow)||eo.postMessage(ei.attestationId,this.verifyUrl),this.logger.info(`postMessage sent: ${ei.attestationId} ${this.verifyUrl}`)}catch{}},this.resolve=async ei=>{var eo;if(this.isDevEnv)return"";this.logger.info(`resolving attestation: ${ei.attestationId}`);let ea=this.startAbortTimer(e5.FIVE_SECONDS),eu=await fetch(`${this.verifyUrl}/attestation/${ei.attestationId}`,{signal:this.abortController.signal});return clearTimeout(ea),200===eu.status?null==(eo=await eu.json())?void 0:eo.origin:""},this.createIframe=async()=>{try{await Promise.race([new Promise((ei,eo)=>{if(document.getElementById(cG))return ei();let ea=document.createElement("iframe");ea.setAttribute("id",cG),ea.setAttribute("src",`${this.verifyUrl}/${this.projectId}`),ea.style.display="none",ea.addEventListener("load",()=>{this.initialized=!0,ei()}),ea.addEventListener("error",ei=>{eo(ei)}),document.body.append(ea),this.iframe=ea}),new Promise(ei=>{setTimeout(()=>ei("iframe load timeout"),(0,e5.toMiliseconds)(e5.ONE_SECOND/2))})])}catch(ei){this.logger.error(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.error(ei)}},this.logger=(0,ej.generateChildLogger)(eo,this.name),this.verifyUrl=cV,this.abortController=new AbortController,this.isDevEnv=oh()&&ld.env.IS_VITEST}get context(){return(0,ej.getLoggerContext)(this.logger)}startAbortTimer(ei){return setTimeout(()=>this.abortController.abort(),(0,e5.toMiliseconds)(ei))}}var dP=Object.defineProperty,dD=Object.getOwnPropertySymbols,dN=Object.prototype.hasOwnProperty,dM=Object.prototype.propertyIsEnumerable,dj=(ei,eo,ea)=>eo in ei?dP(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,dR=(ei,eo)=>{for(var ea in eo||(eo={}))dN.call(eo,ea)&&dj(ei,ea,eo[ea]);if(dD)for(var ea of dD(eo))dM.call(eo,ea)&&dj(ei,ea,eo[ea]);return ei};class dL extends eL{constructor(ei){super(ei),this.protocol=uX,this.version=u3,this.name=u5,this.events=new eP.EventEmitter,this.initialized=!1,this.on=(ei,eo)=>this.events.on(ei,eo),this.once=(ei,eo)=>this.events.once(ei,eo),this.off=(ei,eo)=>this.events.off(ei,eo),this.removeListener=(ei,eo)=>this.events.removeListener(ei,eo),this.projectId=ei?.projectId,this.relayUrl=ei?.relayUrl||cg;let eo="u">typeof ei?.logger&&"string"!=typeof ei?.logger?ei.logger:(0,ej.pino)((0,ej.getDefaultLoggerOptions)({level:ei?.logger||u6.logger}));this.logger=(0,ej.generateChildLogger)(eo,this.name),this.heartbeat=new eM.HeartBeat,this.crypto=new cH(this,this.logger,ei?.keychain),this.history=new dC(this,this.logger),this.expirer=new dO(this,this.logger),this.storage=null!=ei&&ei.storage?ei.storage:new eN.ZP(dR(dR({},u9),ei?.storageOptions)),this.relayer=new dv({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new dk(this,this.logger),this.verify=new dI(this.projectId||"",this.logger)}static async init(ei){let eo=new dL(ei);await eo.initialize();let ea=await eo.crypto.getClientId();return await eo.storage.setItem(cC,ea),eo}get context(){return(0,ej.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(ei){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,ei),this.logger.error(ei.message),ei}}}let dF=dL,dB="wc",dU=2,dz="client",dG=`${dB}@${dU}:${dz}:`,dV={name:dz,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},dq="WALLETCONNECT_DEEPLINK_CHOICE",dH="proposal",dW="Proposal expired",dK="session",dY=e5.SEVEN_DAYS,dZ="engine",d$={wc_sessionPropose:{req:{ttl:e5.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:e5.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:e5.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:e5.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:e5.ONE_DAY,prompt:!1,tag:1104},res:{ttl:e5.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:e5.ONE_DAY,prompt:!1,tag:1106},res:{ttl:e5.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:e5.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:e5.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:e5.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:e5.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:e5.ONE_DAY,prompt:!1,tag:1112},res:{ttl:e5.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:e5.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:e5.THIRTY_SECONDS,prompt:!1,tag:1115}}},dJ={min:e5.FIVE_MINUTES,max:e5.SEVEN_DAYS},dQ="request",dX=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var fi=Object.defineProperty,fo=Object.defineProperties,fa=Object.getOwnPropertyDescriptors,fl=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,fp=(ei,eo,ea)=>eo in ei?fi(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,fg=(ei,eo)=>{for(var ea in eo||(eo={}))fu.call(eo,ea)&&fp(ei,ea,eo[ea]);if(fl)for(var ea of fl(eo))fh.call(eo,ea)&&fp(ei,ea,eo[ea]);return ei},fm=(ei,eo)=>fo(ei,fa(eo));class fy extends eZ{constructor(ei){super(ei),this.name=dZ,this.events=new(eD()),this.initialized=!1,this.ignoredPayloadTypes=[ij],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(d$)}),this.initialized=!0)},this.connect=async ei=>{this.isInitialized();let eo=fm(fg({},ei),{requiredNamespaces:ei.requiredNamespaces||{},optionalNamespaces:ei.optionalNamespaces||{}});await this.isValidConnect(eo);let{pairingTopic:ea,requiredNamespaces:eu,optionalNamespaces:ec,sessionProperties:ed,relays:ef}=eo,eh=ea,eg,em=!1;if(eh&&(em=this.client.core.pairing.pairings.get(eh).active),!eh||!em){let{topic:ei,uri:eo}=await this.client.core.pairing.create();eh=ei,eg=eo}let eb=await this.client.core.crypto.generateKeyPair(),ew=fg({requiredNamespaces:eu,optionalNamespaces:ec,relays:ef??[{protocol:cf}],proposer:{publicKey:eb,metadata:this.client.metadata}},ed&&{sessionProperties:ed}),{reject:e_,resolve:eS,done:eE}=oD(e5.FIVE_MINUTES,dW);if(this.events.once(oU("session_connect"),async({error:ei,session:eo})=>{if(ei)e_(ei);else if(eo){eo.self.publicKey=eb;let ei=fm(fg({},eo),{requiredNamespaces:eo.requiredNamespaces,optionalNamespaces:eo.optionalNamespaces});await this.client.session.set(eo.topic,ei),await this.setExpiry(eo.topic,eo.expiry),eh&&await this.client.core.pairing.updateMetadata({topic:eh,metadata:eo.peer.metadata}),eS(ei)}}),!eh){let{message:ei}=su("NO_MATCHING_KEY",`connect() pairing topic: ${eh}`);throw Error(ei)}let eA=await this.sendRequest(eh,"wc_sessionPropose",ew),eT=oF(e5.FIVE_MINUTES);return await this.setProposal(eA,fg({id:eA,expiry:eT},ew)),{uri:eg,approval:eE}},this.pair=async ei=>(this.isInitialized(),await this.client.core.pairing.pair(ei)),this.approve=async ei=>{this.isInitialized(),await this.isValidApprove(ei);let{id:eo,relayProtocol:ea,namespaces:eu,sessionProperties:ec}=ei,ed=this.client.proposal.get(eo),{pairingTopic:ef,proposer:eh,requiredNamespaces:eg,optionalNamespaces:em}=ed;ef=ef||"",sp(eg)||(eg=si(eu,"approve()"));let eb=await this.client.core.crypto.generateKeyPair(),ew=eh.publicKey,e_=await this.client.core.crypto.generateSharedKey(eb,ew);ef&&eo&&(await this.client.core.pairing.updateMetadata({topic:ef,metadata:eh.metadata}),await this.sendResult(eo,ef,{relay:{protocol:ea??"irn"},responderPublicKey:eb}),await this.client.proposal.delete(eo,sf("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:ef}));let eS=fg({relay:{protocol:ea??"irn"},namespaces:eu,requiredNamespaces:eg,optionalNamespaces:em,pairingTopic:ef,controller:{publicKey:eb,metadata:this.client.metadata},expiry:oF(dY)},ec&&{sessionProperties:ec});await this.client.core.relayer.subscribe(e_),await this.sendRequest(e_,"wc_sessionSettle",eS);let eE=fm(fg({},eS),{topic:e_,pairingTopic:ef,acknowledged:!1,self:eS.controller,peer:{publicKey:eh.publicKey,metadata:eh.metadata},controller:eb});return await this.client.session.set(e_,eE),await this.setExpiry(e_,oF(dY)),{topic:e_,acknowledged:()=>new Promise(ei=>setTimeout(()=>ei(this.client.session.get(e_)),500))}},this.reject=async ei=>{this.isInitialized(),await this.isValidReject(ei);let{id:eo,reason:ea}=ei,{pairingTopic:eu}=this.client.proposal.get(eo);eu&&(await this.sendError(eo,eu,ea),await this.client.proposal.delete(eo,sf("USER_DISCONNECTED")))},this.update=async ei=>{this.isInitialized(),await this.isValidUpdate(ei);let{topic:eo,namespaces:ea}=ei,eu=await this.sendRequest(eo,"wc_sessionUpdate",{namespaces:ea}),{done:ec,resolve:ed,reject:ef}=oD();return this.events.once(oU("session_update",eu),({error:ei})=>{ei?ef(ei):ed()}),await this.client.session.update(eo,{namespaces:ea}),{acknowledged:ec}},this.extend=async ei=>{this.isInitialized(),await this.isValidExtend(ei);let{topic:eo}=ei,ea=await this.sendRequest(eo,"wc_sessionExtend",{}),{done:eu,resolve:ec,reject:ed}=oD();return this.events.once(oU("session_extend",ea),({error:ei})=>{ei?ed(ei):ec()}),await this.setExpiry(eo,oF(dY)),{acknowledged:eu}},this.request=async ei=>{this.isInitialized(),await this.isValidRequest(ei);let{chainId:eo,request:ea,topic:eu,expiry:ec}=ei,ed=await this.sendRequest(eu,"wc_sessionRequest",{request:ea,chainId:eo},ec),{done:ef,resolve:eh,reject:eg}=oD(ec);this.events.once(oU("session_request",ed),({error:ei,result:eo})=>{ei?eg(ei):eh(eo)}),this.client.events.emit("session_request_sent",{topic:eu,request:ea,chainId:eo,id:ed});let em=await this.client.core.storage.getItem(dq);return oz({id:ed,topic:eu,wcDeepLink:em}),await ef()},this.respond=async ei=>{this.isInitialized(),await this.isValidRespond(ei);let{topic:eo,response:ea}=ei,{id:eu}=ea;aq(ea)?await this.sendResult(eu,eo,ea.result):aH(ea)&&await this.sendError(eu,eo,ea.error),this.deletePendingSessionRequest(ei.response.id,{message:"fulfilled",code:0})},this.ping=async ei=>{this.isInitialized(),await this.isValidPing(ei);let{topic:eo}=ei;if(this.client.session.keys.includes(eo)){let ei=await this.sendRequest(eo,"wc_sessionPing",{}),{done:ea,resolve:eu,reject:ec}=oD();this.events.once(oU("session_ping",ei),({error:ei})=>{ei?ec(ei):eu()}),await ea()}else this.client.core.pairing.pairings.keys.includes(eo)&&await this.client.core.pairing.ping({topic:eo})},this.emit=async ei=>{this.isInitialized(),await this.isValidEmit(ei);let{topic:eo,event:ea,chainId:eu}=ei;await this.sendRequest(eo,"wc_sessionEvent",{event:ea,chainId:eu})},this.disconnect=async ei=>{this.isInitialized(),await this.isValidDisconnect(ei);let{topic:eo}=ei;if(this.client.session.keys.includes(eo)){let ei;let ea=aE().toString(),eu=eo=>{eo?.id.toString()===ea&&(this.client.core.relayer.events.removeListener(cw.message_ack,eu),ei())};await Promise.all([new Promise(eo=>{ei=eo,this.client.core.relayer.on(cw.message_ack,eu)}),this.sendRequest(eo,"wc_sessionDelete",sf("USER_DISCONNECTED"),void 0,ea)]),await this.deleteSession(eo)}else await this.client.core.pairing.disconnect({topic:eo})},this.find=ei=>(this.isInitialized(),this.client.session.getAll().filter(eo=>sS(eo,ei))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async ei=>{if(ei.pairingTopic)try{let eo=this.client.core.pairing.pairings.get(ei.pairingTopic),ea=this.client.core.pairing.pairings.getAll().filter(ea=>{var eu,ec;return(null==(eu=ea.peerMetadata)?void 0:eu.url)&&(null==(ec=ea.peerMetadata)?void 0:ec.url)===ei.peer.metadata.url&&ea.topic&&ea.topic!==eo.topic});if(0===ea.length)return;this.client.logger.info(`Cleaning up ${ea.length} duplicate pairing(s)`),await Promise.all(ea.map(ei=>this.client.core.pairing.disconnect({topic:ei.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(ei){this.client.logger.error(ei)}},this.deleteSession=async(ei,eo)=>{let{self:ea}=this.client.session.get(ei);await this.client.core.relayer.unsubscribe(ei),this.client.session.delete(ei,sf("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(ea.publicKey)&&await this.client.core.crypto.deleteKeyPair(ea.publicKey),this.client.core.crypto.keychain.has(ei)&&await this.client.core.crypto.deleteSymKey(ei),eo||this.client.core.expirer.del(ei)},this.deleteProposal=async(ei,eo)=>{await Promise.all([this.client.proposal.delete(ei,sf("USER_DISCONNECTED")),eo?Promise.resolve():this.client.core.expirer.del(ei)])},this.deletePendingSessionRequest=async(ei,eo,ea=!1)=>{await Promise.all([this.client.pendingRequest.delete(ei,eo),ea?Promise.resolve():this.client.core.expirer.del(ei)])},this.setExpiry=async(ei,eo)=>{this.client.session.keys.includes(ei)&&await this.client.session.update(ei,{expiry:eo}),this.client.core.expirer.set(ei,eo)},this.setProposal=async(ei,eo)=>{await this.client.proposal.set(ei,eo),this.client.core.expirer.set(ei,eo.expiry)},this.setPendingSessionRequest=async ei=>{let eo=d$.wc_sessionRequest.req.ttl,{id:ea,topic:eu,params:ec}=ei;await this.client.pendingRequest.set(ea,{id:ea,topic:eu,params:ec}),eo&&this.client.core.expirer.set(ea,oF(eo))},this.sendRequest=async(ei,eo,ea,eu,ec)=>{let ed=ak(eo,ea);if(om()&&dX.includes(eo)){let ei=iH(JSON.stringify(ed));await this.client.core.verify.register({attestationId:ei})}let ef=await this.client.core.crypto.encode(ei,ed),eh=d$[eo].req;return eu&&(eh.ttl=eu),ec&&(eh.id=ec),this.client.core.history.set(ei,ed),this.client.core.relayer.publish(ei,ef,eh),ed.id},this.sendResult=async(ei,eo,ea)=>{let eu=aC(ei,ea),ec=await this.client.core.crypto.encode(eo,eu),ed=await this.client.core.history.get(eo,ei),ef=d$[ed.request.method].res;this.client.core.relayer.publish(eo,ec,ef),await this.client.core.history.resolve(eu)},this.sendError=async(ei,eo,ea)=>{let eu=aO(ei,ea),ec=await this.client.core.crypto.encode(eo,eu),ed=await this.client.core.history.get(eo,ei),ef=d$[ed.request.method].res;this.client.core.relayer.publish(eo,ec,ef),await this.client.core.history.resolve(eu)},this.cleanup=async()=>{let ei=[],eo=[];this.client.session.getAll().forEach(eo=>{oB(eo.expiry)&&ei.push(eo.topic)}),this.client.proposal.getAll().forEach(ei=>{oB(ei.expiry)&&eo.push(ei.id)}),await Promise.all([...ei.map(ei=>this.deleteSession(ei)),...eo.map(ei=>this.deleteProposal(ei))])},this.onRelayEventRequest=ei=>{let{topic:eo,payload:ea}=ei,eu=ea.method;switch(eu){case"wc_sessionPropose":return this.onSessionProposeRequest(eo,ea);case"wc_sessionSettle":return this.onSessionSettleRequest(eo,ea);case"wc_sessionUpdate":return this.onSessionUpdateRequest(eo,ea);case"wc_sessionExtend":return this.onSessionExtendRequest(eo,ea);case"wc_sessionPing":return this.onSessionPingRequest(eo,ea);case"wc_sessionDelete":return this.onSessionDeleteRequest(eo,ea);case"wc_sessionRequest":return this.onSessionRequest(eo,ea);case"wc_sessionEvent":return this.onSessionEventRequest(eo,ea);default:return this.client.logger.info(`Unsupported request method ${eu}`)}},this.onRelayEventResponse=async ei=>{let{topic:eo,payload:ea}=ei,eu=(await this.client.core.history.get(eo,ea.id)).request.method;switch(eu){case"wc_sessionPropose":return this.onSessionProposeResponse(eo,ea);case"wc_sessionSettle":return this.onSessionSettleResponse(eo,ea);case"wc_sessionUpdate":return this.onSessionUpdateResponse(eo,ea);case"wc_sessionExtend":return this.onSessionExtendResponse(eo,ea);case"wc_sessionPing":return this.onSessionPingResponse(eo,ea);case"wc_sessionRequest":return this.onSessionRequestResponse(eo,ea);default:return this.client.logger.info(`Unsupported response method ${eu}`)}},this.onRelayEventUnknownPayload=ei=>{let{topic:eo}=ei,{message:ea}=su("MISSING_OR_INVALID",`Decoded payload on topic ${eo} is not identifiable as a JSON-RPC request or a response.`);throw Error(ea)},this.onSessionProposeRequest=async(ei,eo)=>{let{params:ea,id:eu}=eo;try{this.isValidConnect(fg({},eo.params));let ec=oF(e5.FIVE_MINUTES),ed=fg({id:eu,pairingTopic:ei,expiry:ec},ea);await this.setProposal(eu,ed);let ef=iH(JSON.stringify(eo)),eh=await this.getVerifyContext(ef,ed.proposer.metadata);this.client.events.emit("session_proposal",{id:eu,params:ed,verifyContext:eh})}catch(eo){await this.sendError(eu,ei,eo),this.client.logger.error(eo)}},this.onSessionProposeResponse=async(ei,eo)=>{let{id:ea}=eo;if(aq(eo)){let{result:eu}=eo;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:eu});let ec=this.client.proposal.get(ea);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:ec});let ed=ec.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:ed});let ef=eu.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:ef});let eh=await this.client.core.crypto.generateSharedKey(ed,ef);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:eh});let eg=await this.client.core.relayer.subscribe(eh);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:eg}),await this.client.core.pairing.activate({topic:ei})}else aH(eo)&&(await this.client.proposal.delete(ea,sf("USER_DISCONNECTED")),this.events.emit(oU("session_connect"),{error:eo.error}))},this.onSessionSettleRequest=async(ei,eo)=>{let{id:ea,params:eu}=eo;try{this.isValidSessionSettleRequest(eu);let{relay:ea,controller:ec,expiry:ed,namespaces:ef,requiredNamespaces:eh,optionalNamespaces:eg,sessionProperties:em,pairingTopic:eb}=eo.params,ew=fg({topic:ei,relay:ea,expiry:ed,namespaces:ef,acknowledged:!0,pairingTopic:eb,requiredNamespaces:eh,optionalNamespaces:eg,controller:ec.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:ec.publicKey,metadata:ec.metadata}},em&&{sessionProperties:em});await this.sendResult(eo.id,ei,!0),this.events.emit(oU("session_connect"),{session:ew}),this.cleanupDuplicatePairings(ew)}catch(eo){await this.sendError(ea,ei,eo),this.client.logger.error(eo)}},this.onSessionSettleResponse=async(ei,eo)=>{let{id:ea}=eo;aq(eo)?(await this.client.session.update(ei,{acknowledged:!0}),this.events.emit(oU("session_approve",ea),{})):aH(eo)&&(await this.client.session.delete(ei,sf("USER_DISCONNECTED")),this.events.emit(oU("session_approve",ea),{error:eo.error}))},this.onSessionUpdateRequest=async(ei,eo)=>{let{params:ea,id:eu}=eo;try{this.isValidUpdate(fg({topic:ei},ea)),await this.client.session.update(ei,{namespaces:ea.namespaces}),await this.sendResult(eu,ei,!0),this.client.events.emit("session_update",{id:eu,topic:ei,params:ea})}catch(eo){await this.sendError(eu,ei,eo),this.client.logger.error(eo)}},this.onSessionUpdateResponse=(ei,eo)=>{let{id:ea}=eo;aq(eo)?this.events.emit(oU("session_update",ea),{}):aH(eo)&&this.events.emit(oU("session_update",ea),{error:eo.error})},this.onSessionExtendRequest=async(ei,eo)=>{let{id:ea}=eo;try{this.isValidExtend({topic:ei}),await this.setExpiry(ei,oF(dY)),await this.sendResult(ea,ei,!0),this.client.events.emit("session_extend",{id:ea,topic:ei})}catch(eo){await this.sendError(ea,ei,eo),this.client.logger.error(eo)}},this.onSessionExtendResponse=(ei,eo)=>{let{id:ea}=eo;aq(eo)?this.events.emit(oU("session_extend",ea),{}):aH(eo)&&this.events.emit(oU("session_extend",ea),{error:eo.error})},this.onSessionPingRequest=async(ei,eo)=>{let{id:ea}=eo;try{this.isValidPing({topic:ei}),await this.sendResult(ea,ei,!0),this.client.events.emit("session_ping",{id:ea,topic:ei})}catch(eo){await this.sendError(ea,ei,eo),this.client.logger.error(eo)}},this.onSessionPingResponse=(ei,eo)=>{let{id:ea}=eo;setTimeout(()=>{aq(eo)?this.events.emit(oU("session_ping",ea),{}):aH(eo)&&this.events.emit(oU("session_ping",ea),{error:eo.error})},500)},this.onSessionDeleteRequest=async(ei,eo)=>{let{id:ea}=eo;try{this.isValidDisconnect({topic:ei,reason:eo.params}),await Promise.all([new Promise(eo=>{this.client.core.relayer.once(cw.publish,async()=>{eo(await this.deleteSession(ei))})}),this.sendResult(ea,ei,!0)]),this.client.events.emit("session_delete",{id:ea,topic:ei})}catch(ei){this.client.logger.error(ei)}},this.onSessionRequest=async(ei,eo)=>{let{id:ea,params:eu}=eo;try{this.isValidRequest(fg({topic:ei},eu)),await this.setPendingSessionRequest({id:ea,topic:ei,params:eu});let ec=iH(JSON.stringify(eo)),ed=this.client.session.get(ei),ef=await this.getVerifyContext(ec,ed.peer.metadata);this.client.events.emit("session_request",{id:ea,topic:ei,params:eu,verifyContext:ef})}catch(eo){await this.sendError(ea,ei,eo),this.client.logger.error(eo)}},this.onSessionRequestResponse=(ei,eo)=>{let{id:ea}=eo;aq(eo)?this.events.emit(oU("session_request",ea),{result:eo.result}):aH(eo)&&this.events.emit(oU("session_request",ea),{error:eo.error})},this.onSessionEventRequest=async(ei,eo)=>{let{id:ea,params:eu}=eo;try{this.isValidEmit(fg({topic:ei},eu)),this.client.events.emit("session_event",{id:ea,topic:ei,params:eu})}catch(eo){await this.sendError(ea,ei,eo),this.client.logger.error(eo)}},this.isValidConnect=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(ei)}`);throw Error(eo)}let{pairingTopic:eo,requiredNamespaces:ea,optionalNamespaces:eu,sessionProperties:ec,relays:ed}=ei;if(sm(eo)||await this.isValidPairingTopic(eo),!sU(ed,!0)){let{message:ei}=su("MISSING_OR_INVALID",`connect() relays: ${ed}`);throw Error(ei)}sm(ea)||0===sp(ea)||this.validateNamespaces(ea,"requiredNamespaces"),sm(eu)||0===sp(eu)||this.validateNamespaces(eu,"optionalNamespaces"),sm(ec)||this.validateSessionProps(ec,"sessionProperties")},this.validateNamespaces=(ei,eo)=>{let ea=sL(ei,"connect()",eo);if(ea)throw Error(ea.message)},this.isValidApprove=async ei=>{if(!sV(ei))throw Error(su("MISSING_OR_INVALID",`approve() params: ${ei}`).message);let{id:eo,namespaces:ea,relayProtocol:eu,sessionProperties:ec}=ei;await this.isValidProposalId(eo);let ed=this.client.proposal.get(eo),ef=sF(ea,"approve()");if(ef)throw Error(ef.message);let eh=sJ(ed.requiredNamespaces,ea,"approve()");if(eh)throw Error(eh.message);if(!sv(eu,!0)){let{message:ei}=su("MISSING_OR_INVALID",`approve() relayProtocol: ${eu}`);throw Error(ei)}sm(ec)||this.validateSessionProps(ec,"sessionProperties")},this.isValidReject=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`reject() params: ${ei}`);throw Error(eo)}let{id:eo,reason:ea}=ei;if(await this.isValidProposalId(eo),!sq(ea)){let{message:ei}=su("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(ea)}`);throw Error(ei)}},this.isValidSessionSettleRequest=ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${ei}`);throw Error(eo)}let{relay:eo,controller:ea,namespaces:eu,expiry:ec}=ei;if(!sB(eo)){let{message:ei}=su("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw Error(ei)}let ed=sO(ea,"onSessionSettleRequest()");if(ed)throw Error(ed.message);let ef=sF(eu,"onSessionSettleRequest()");if(ef)throw Error(ef.message);if(oB(ec)){let{message:ei}=su("EXPIRED","onSessionSettleRequest()");throw Error(ei)}},this.isValidUpdate=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`update() params: ${ei}`);throw Error(eo)}let{topic:eo,namespaces:ea}=ei;await this.isValidSessionTopic(eo);let eu=this.client.session.get(eo),ec=sF(ea,"update()");if(ec)throw Error(ec.message);let ed=sJ(eu.requiredNamespaces,ea,"update()");if(ed)throw Error(ed.message)},this.isValidExtend=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`extend() params: ${ei}`);throw Error(eo)}let{topic:eo}=ei;await this.isValidSessionTopic(eo)},this.isValidRequest=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`request() params: ${ei}`);throw Error(eo)}let{topic:eo,request:ea,chainId:eu,expiry:ec}=ei;await this.isValidSessionTopic(eo);let{namespaces:ed}=this.client.session.get(eo);if(!sY(ed,eu)){let{message:ei}=su("MISSING_OR_INVALID",`request() chainId: ${eu}`);throw Error(ei)}if(!sH(ea)){let{message:ei}=su("MISSING_OR_INVALID",`request() ${JSON.stringify(ea)}`);throw Error(ei)}if(!sZ(ed,eu,ea.method)){let{message:ei}=su("MISSING_OR_INVALID",`request() method: ${ea.method}`);throw Error(ei)}if(ec&&!s4(ec,dJ)){let{message:ei}=su("MISSING_OR_INVALID",`request() expiry: ${ec}. Expiry must be a number (in seconds) between ${dJ.min} and ${dJ.max}`);throw Error(ei)}},this.isValidRespond=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`respond() params: ${ei}`);throw Error(eo)}let{topic:eo,response:ea}=ei;if(await this.isValidSessionTopic(eo),!sW(ea)){let{message:ei}=su("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(ea)}`);throw Error(ei)}},this.isValidPing=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`ping() params: ${ei}`);throw Error(eo)}let{topic:eo}=ei;await this.isValidSessionOrPairingTopic(eo)},this.isValidEmit=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`emit() params: ${ei}`);throw Error(eo)}let{topic:eo,event:ea,chainId:eu}=ei;await this.isValidSessionTopic(eo);let{namespaces:ec}=this.client.session.get(eo);if(!sY(ec,eu)){let{message:ei}=su("MISSING_OR_INVALID",`emit() chainId: ${eu}`);throw Error(ei)}if(!sK(ea)){let{message:ei}=su("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(ea)}`);throw Error(ei)}if(!s$(ec,eu,ea.name)){let{message:ei}=su("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(ea)}`);throw Error(ei)}},this.isValidDisconnect=async ei=>{if(!sV(ei)){let{message:eo}=su("MISSING_OR_INVALID",`disconnect() params: ${ei}`);throw Error(eo)}let{topic:eo}=ei;await this.isValidSessionOrPairingTopic(eo)},this.getVerifyContext=async(ei,eo)=>{let ea={verified:{verifyUrl:eo.verifyUrl||"",validation:"UNKNOWN",origin:eo.url||""}};try{let eu=await this.client.core.verify.resolve({attestationId:ei,verifyUrl:eo.verifyUrl});eu&&(ea.verified.origin=eu,ea.verified.validation=eu===eo.url?"VALID":"INVALID")}catch(ei){this.client.logger.error(ei)}return this.client.logger.info(`Verify context: ${JSON.stringify(ea)}`),ea},this.validateSessionProps=(ei,eo)=>{Object.values(ei).forEach(ei=>{if(!sv(ei,!1)){let{message:ea}=su("MISSING_OR_INVALID",`${eo} must be in Record format. Received: ${JSON.stringify(ei)}`);throw Error(ea)}})}}isInitialized(){if(!this.initialized){let{message:ei}=su("NOT_INITIALIZED",this.name);throw Error(ei)}}registerRelayerEvents(){this.client.core.relayer.on(cw.message,async ei=>{let{topic:eo,message:ea}=ei;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(ea)))return;let eu=await this.client.core.crypto.decode(eo,ea);aG(eu)?(this.client.core.history.set(eo,eu),this.onRelayEventRequest({topic:eo,payload:eu})):aV(eu)?(await this.client.core.history.resolve(eu),await this.onRelayEventResponse({topic:eo,payload:eu}),this.client.core.history.delete(eo,eu.id)):this.onRelayEventUnknownPayload({topic:eo,payload:eu})})}registerExpirerEvents(){this.client.core.expirer.on(cU.expired,async ei=>{let{topic:eo,id:ea}=oL(ei.target);if(ea&&this.client.pendingRequest.keys.includes(ea))return await this.deletePendingSessionRequest(ea,su("EXPIRED"),!0);eo?this.client.session.keys.includes(eo)&&(await this.deleteSession(eo,!0),this.client.events.emit("session_expire",{topic:eo})):ea&&(await this.deleteProposal(ea,!0),this.client.events.emit("proposal_expire",{id:ea}))})}isValidPairingTopic(ei){if(!sv(ei,!1)){let{message:eo}=su("MISSING_OR_INVALID",`pairing topic should be a string: ${ei}`);throw Error(eo)}if(!this.client.core.pairing.pairings.keys.includes(ei)){let{message:eo}=su("NO_MATCHING_KEY",`pairing topic doesn't exist: ${ei}`);throw Error(eo)}if(oB(this.client.core.pairing.pairings.get(ei).expiry)){let{message:eo}=su("EXPIRED",`pairing topic: ${ei}`);throw Error(eo)}}async isValidSessionTopic(ei){if(!sv(ei,!1)){let{message:eo}=su("MISSING_OR_INVALID",`session topic should be a string: ${ei}`);throw Error(eo)}if(!this.client.session.keys.includes(ei)){let{message:eo}=su("NO_MATCHING_KEY",`session topic doesn't exist: ${ei}`);throw Error(eo)}if(oB(this.client.session.get(ei).expiry)){await this.deleteSession(ei);let{message:eo}=su("EXPIRED",`session topic: ${ei}`);throw Error(eo)}}async isValidSessionOrPairingTopic(ei){if(this.client.session.keys.includes(ei))await this.isValidSessionTopic(ei);else if(this.client.core.pairing.pairings.keys.includes(ei))this.isValidPairingTopic(ei);else if(sv(ei,!1)){let{message:eo}=su("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${ei}`);throw Error(eo)}else{let{message:eo}=su("MISSING_OR_INVALID",`session or pairing topic should be a string: ${ei}`);throw Error(eo)}}async isValidProposalId(ei){if(!sG(ei)){let{message:eo}=su("MISSING_OR_INVALID",`proposal id should be a number: ${ei}`);throw Error(eo)}if(!this.client.proposal.keys.includes(ei)){let{message:eo}=su("NO_MATCHING_KEY",`proposal id doesn't exist: ${ei}`);throw Error(eo)}if(oB(this.client.proposal.get(ei).expiry)){await this.deleteProposal(ei);let{message:eo}=su("EXPIRED",`proposal id: ${ei}`);throw Error(eo)}}}class fb extends dT{constructor(ei,eo){super(ei,eo,dH,dG),this.core=ei,this.logger=eo}}class fw extends dT{constructor(ei,eo){super(ei,eo,dK,dG),this.core=ei,this.logger=eo}}class f_ extends dT{constructor(ei,eo){super(ei,eo,dQ,dG,ei=>ei.id),this.core=ei,this.logger=eo}}class fS extends eY{constructor(ei){super(ei),this.protocol=dB,this.version=dU,this.name=dV.name,this.events=new eP.EventEmitter,this.on=(ei,eo)=>this.events.on(ei,eo),this.once=(ei,eo)=>this.events.once(ei,eo),this.off=(ei,eo)=>this.events.off(ei,eo),this.removeListener=(ei,eo)=>this.events.removeListener(ei,eo),this.removeAllListeners=ei=>this.events.removeAllListeners(ei),this.connect=async ei=>{try{return await this.engine.connect(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.pair=async ei=>{try{return await this.engine.pair(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.approve=async ei=>{try{return await this.engine.approve(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.reject=async ei=>{try{return await this.engine.reject(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.update=async ei=>{try{return await this.engine.update(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.extend=async ei=>{try{return await this.engine.extend(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.request=async ei=>{try{return await this.engine.request(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.respond=async ei=>{try{return await this.engine.respond(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.ping=async ei=>{try{return await this.engine.ping(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.emit=async ei=>{try{return await this.engine.emit(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.disconnect=async ei=>{try{return await this.engine.disconnect(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.find=ei=>{try{return this.engine.find(ei)}catch(ei){throw this.logger.error(ei.message),ei}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(ei){throw this.logger.error(ei.message),ei}},this.name=ei?.name||dV.name,this.metadata=ei?.metadata||o_();let eo="u">typeof ei?.logger&&"string"!=typeof ei?.logger?ei.logger:(0,ej.pino)((0,ej.getDefaultLoggerOptions)({level:ei?.logger||dV.logger}));this.core=ei?.core||new dF(ei),this.logger=(0,ej.generateChildLogger)(eo,this.name),this.session=new fw(this.core,this.logger),this.proposal=new fb(this.core,this.logger),this.pendingRequest=new f_(this.core,this.logger),this.engine=new fy(this)}static async init(ei){let eo=new fS(ei);return await eo.initialize(),eo}get context(){return(0,ej.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(ei){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(ei.message),ei}}}var fE,fx,fA,fT,fC,fO,fI,fP,fD,fN,fM=Object.defineProperty,fj=Object.defineProperties,fR=Object.getOwnPropertyDescriptors,fL=Object.getOwnPropertySymbols,fF=Object.prototype.hasOwnProperty,fB=Object.prototype.propertyIsEnumerable,fU=(ei,eo,ea)=>eo in ei?fM(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,fz=(ei,eo)=>{for(var ea in eo||(eo={}))fF.call(eo,ea)&&fU(ei,ea,eo[ea]);if(fL)for(var ea of fL(eo))fB.call(eo,ea)&&fU(ei,ea,eo[ea]);return ei},fG=(ei,eo)=>fj(ei,fR(eo)),fV=(ei,eo,ea)=>{if(!eo.has(ei))throw TypeError("Cannot "+ea)},fq=(ei,eo,ea)=>(fV(ei,eo,"read from private field"),ea?ea.call(ei):eo.get(ei)),fH=(ei,eo,ea)=>{if(eo.has(ei))throw TypeError("Cannot add the same private member more than once");eo instanceof WeakSet?eo.add(ei):eo.set(ei,ea)},fW=(ei,eo,ea,eu)=>(fV(ei,eo,"write to private field"),eu?eu.call(ei,ea):eo.set(ei,ea),ea),fK=(ei,eo,ea)=>(fV(ei,eo,"access private method"),ea);class fY{constructor(ei){fH(this,fC),fH(this,fI),fH(this,fD),fH(this,fE,void 0),fH(this,fx,void 0),fH(this,fA,void 0),fH(this,fT,void 0),fW(this,fE,ei),fW(this,fx,fK(this,fC,fO).call(this)),fK(this,fI,fP).call(this)}async connect(ei){let{requiredNamespaces:eo,optionalNamespaces:ea}=ei;return new Promise(async(eu,ec)=>{await fK(this,fI,fP).call(this);let ed=fq(this,fx).subscribeModal(ei=>{ei.open||(ed(),ec(Error("Modal closed")))}),{uri:ef,approval:eh}=await fq(this,fT).connect(ei);if(ef){let ei=new Set;eo&&Object.values(eo).forEach(({chains:eo})=>{eo&&eo.forEach(eo=>ei.add(eo))}),ea&&Object.values(ea).forEach(({chains:eo})=>{eo&&eo.forEach(eo=>ei.add(eo))}),await fq(this,fx).openModal({uri:ef,chains:Array.from(ei)})}try{let ei=await eh();eu(ei)}catch(ei){ec(ei)}finally{ed(),fq(this,fx).closeModal()}})}async disconnect(ei){await fK(this,fI,fP).call(this),await fq(this,fT).disconnect(ei)}async request(ei){return await fK(this,fI,fP).call(this),await fq(this,fT).request(ei)}async getSessions(){return await fK(this,fI,fP).call(this),fq(this,fT).session.getAll()}async getSession(){return await fK(this,fI,fP).call(this),fq(this,fT).session.getAll().at(-1)}async onSessionEvent(ei){await fK(this,fI,fP).call(this),fq(this,fT).on("session_event",ei)}async offSessionEvent(ei){await fK(this,fI,fP).call(this),fq(this,fT).off("session_event",ei)}async onSessionUpdate(ei){await fK(this,fI,fP).call(this),fq(this,fT).on("session_update",ei)}async offSessionUpdate(ei){await fK(this,fI,fP).call(this),fq(this,fT).off("session_update",ei)}async onSessionDelete(ei){await fK(this,fI,fP).call(this),fq(this,fT).on("session_delete",ei)}async offSessionDelete(ei){await fK(this,fI,fP).call(this),fq(this,fT).off("session_delete",ei)}async onSessionExpire(ei){await fK(this,fI,fP).call(this),fq(this,fT).on("session_expire",ei)}async offSessionExpire(ei){await fK(this,fI,fP).call(this),fq(this,fT).off("session_expire",ei)}}function fZ(ei){return{all:ei=ei||new Map,on:function(eo,ea){var eu=ei.get(eo);eu?eu.push(ea):ei.set(eo,[ea])},off:function(eo,ea){var eu=ei.get(eo);eu&&(ea?eu.splice(eu.indexOf(ea)>>>0,1):ei.set(eo,[]))},emit:function(eo,ea){var eu=ei.get(eo);eu&&eu.slice().map(function(ei){ei(ea)}),(eu=ei.get("*"))&&eu.slice().map(function(ei){ei(eo,ea)})}}}fE=new WeakMap,fx=new WeakMap,fA=new WeakMap,fT=new WeakMap,fC=new WeakSet,fO=function(){let{modalOptions:ei,projectId:eo}=fq(this,fE);return new eI(fG(fz({},ei),{projectId:eo}))},fI=new WeakSet,fP=async function(){return!!fq(this,fT)||(!fq(this,fA)&&"u">typeof window&&fW(this,fA,fK(this,fD,fN).call(this)),fq(this,fA))},fD=new WeakSet,fN=async function(){fW(this,fT,await fS.init({metadata:fq(this,fE).metadata,projectId:fq(this,fE).projectId,relayUrl:fq(this,fE).relayUrl}));let ei=await fq(this,fT).core.crypto.getClientId();try{localStorage.setItem("WCM_WALLETCONNECT_CLIENT_ID",ei)}catch{console.info("Unable to set client id")}};let f$=fZ();function fJ(ei){eu=new fY(ei)}async function fQ(){return new Promise(ei=>{if(eu)ei(eu);else{let eo=setInterval(()=>{eu&&(clearInterval(eo),ei(eu))},200)}})}function fX(ei){return(0,eC.useEffect)(()=>{fJ(ei)},[]),null}let f0=(0,eC.memo)(fX);function f3(){let[ei,eo]=(0,eC.useState)(void 0),[ea,eu]=(0,eC.useState)(void 0),[ec,ed]=(0,eC.useState)(!1);return{data:ei,error:ea,loading:ec,setData:eo,setError:eu,setLoading:ed}}function f5(ei){let{data:eo,error:ea,loading:eu,setData:ec,setError:ed,setLoading:ef}=f3();return{data:eo,error:ea,loading:eu,connect:async function(eo){try{ef(!0),ed(void 0);let ea=await(await fQ()).connect(eo??ei);return ec(ea),f$.emit("session_change"),ea}catch(ei){throw ed(ei),ei}finally{ef(!1)}}}}function f4(ei){(0,eC.useEffect)(()=>(fQ().then(eo=>{eo.onSessionDelete(ei)}),()=>{fQ().then(eo=>{eo.offSessionDelete(ei)})}),[ei])}function f6(ei){(0,eC.useEffect)(()=>(fQ().then(eo=>{eo.onSessionExpire(ei)}),()=>{fQ().then(eo=>{eo.offSessionExpire(ei)})}),[ei])}function f8(ei){(0,eC.useEffect)(()=>(fQ().then(eo=>{eo.onSessionUpdate(ei)}),()=>{fQ().then(eo=>{eo.offSessionUpdate(ei)})}),[ei])}function f9(ei){let{data:eo,error:ea,loading:eu,setData:ec,setError:ed,setLoading:ef}=f3();return{data:eo,error:ea,loading:eu,request:async function(eo){try{ef(!0),ed(void 0);let ea=await(await fQ()).request(eo??ei);return ec(ea),ea}catch(ei){throw ed(ei),ei}finally{ef(!1)}}}}var f7=Object.defineProperty,hr=Object.defineProperties,hn=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertySymbols,ha=Object.prototype.hasOwnProperty,hu=Object.prototype.propertyIsEnumerable,hc=(ei,eo,ea)=>eo in ei?f7(ei,eo,{enumerable:!0,configurable:!0,writable:!0,value:ea}):ei[eo]=ea,hd=(ei,eo)=>{for(var ea in eo||(eo={}))ha.call(eo,ea)&&hc(ei,ea,eo[ea]);if(ho)for(var ea of ho(eo))hu.call(eo,ea)&&hc(ei,ea,eo[ea]);return ei},hf=(ei,eo)=>hr(ei,hn(eo));function hp(){let[ei,eo]=(0,eC.useState)(void 0);return f4(ea=>{ea.topic===ei?.topic&&eo(void 0)}),f8(ea=>{if(ei&&ea.topic===ei?.topic){let{namespaces:eu}=ea.params,ec=hf(hd({},ei),{namespaces:eu});eo(ec)}}),f6(ea=>{ei&&ea.topic===ei?.topic&&eo(void 0)}),(0,eC.useEffect)(()=>{async function ei(){let ei=await(await fQ()).getSession();eo(ei)}return ei(),f$.on("session_change",ei),()=>{f$.off("session_change",ei)}},[]),ei}},13012:function(ei,eo,ea){"use strict";ea.d(eo,{p:function(){return eD}});var eu=20,ec=1,ed=1e6,ef=1e6,eh=-7,eg=21,em=!1,eb="[big.js] ",ew=eb+"Invalid ",e_=ew+"decimal places",eS=ew+"rounding mode",eE=eb+"Division by zero",eA={},eT=void 0,ek=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function eC(){function ei(eo){var ea=this;if(!(ea instanceof ei))return eo===eT?eC():new ei(eo);if(eo instanceof ei)ea.s=eo.s,ea.e=eo.e,ea.c=eo.c.slice();else{if("string"!=typeof eo){if(!0===ei.strict&&"bigint"!=typeof eo)throw TypeError(ew+"value");eo=0===eo&&1/eo<0?"-0":String(eo)}eO(ea,eo)}ea.constructor=ei}return ei.prototype=eA,ei.DP=eu,ei.RM=ec,ei.NE=eh,ei.PE=eg,ei.strict=em,ei.roundDown=0,ei.roundHalfUp=1,ei.roundHalfEven=2,ei.roundUp=3,ei}function eO(ei,eo){var ea,eu,ec;if(!ek.test(eo))throw Error(ew+"number");for(ei.s="-"==eo.charAt(0)?(eo=eo.slice(1),-1):1,(ea=eo.indexOf("."))>-1&&(eo=eo.replace(".","")),(eu=eo.search(/e/i))>0?(ea<0&&(ea=eu),ea+=+eo.slice(eu+1),eo=eo.substring(0,eu)):ea<0&&(ea=eo.length),ec=eo.length,eu=0;eu0&&"0"==eo.charAt(--ec););for(ei.e=ea-eu-1,ei.c=[],ea=0;eu<=ec;)ei.c[ea++]=+eo.charAt(eu++)}return ei}function eI(ei,eo,ea,eu){var ec=ei.c;if(ea===eT&&(ea=ei.constructor.RM),0!==ea&&1!==ea&&2!==ea&&3!==ea)throw Error(eS);if(eo<1)eu=3===ea&&(eu||!!ec[0])||0===eo&&(1===ea&&ec[0]>=5||2===ea&&(ec[0]>5||5===ec[0]&&(eu||ec[1]!==eT))),ec.length=1,eu?(ei.e=ei.e-eo+1,ec[0]=1):ec[0]=ei.e=0;else if(eo=5||2===ea&&(ec[eo]>5||5===ec[eo]&&(eu||ec[eo+1]!==eT||1&ec[eo-1]))||3===ea&&(eu||!!ec[0]),ec.length=eo,eu){for(;++ec[--eo]>9;)if(ec[eo]=0,0===eo){++ei.e,ec.unshift(1);break}}for(eo=ec.length;!ec[--eo];)ec.pop()}return ei}function eP(ei,eo,ea){var eu=ei.e,ec=ei.c.join(""),ed=ec.length;if(eo)ec=ec.charAt(0)+(ed>1?"."+ec.slice(1):"")+(eu<0?"e":"e+")+eu;else if(eu<0){for(;++eu;)ec="0"+ec;ec="0."+ec}else if(eu>0){if(++eu>ed)for(eu-=ed;eu--;)ec+="0";else eu1&&(ec=ec.charAt(0)+"."+ec.slice(1));return ei.s<0&&ea?"-"+ec:ec}eA.abs=function(){var ei=new this.constructor(this);return ei.s=1,ei},eA.cmp=function(ei){var eo,ea=this,eu=ea.c,ec=(ei=new ea.constructor(ei)).c,ed=ea.s,ef=ei.s,eh=ea.e,eg=ei.e;if(!eu[0]||!ec[0])return eu[0]?ed:ec[0]?-ef:0;if(ed!=ef)return ed;if(eo=ed<0,eh!=eg)return eh>eg^eo?1:-1;for(ed=-1,ef=(eh=eu.length)<(eg=ec.length)?eh:eg;++edec[ed]^eo?1:-1;return eh==eg?0:eh>eg^eo?1:-1},eA.div=function(ei){var eo=this,ea=eo.constructor,eu=eo.c,ec=(ei=new ea(ei)).c,ef=eo.s==ei.s?1:-1,eh=ea.DP;if(eh!==~~eh||eh<0||eh>ed)throw Error(e_);if(!ec[0])throw Error(eE);if(!eu[0])return ei.s=ef,ei.c=[ei.e=0],ei;var eg,em,eb,ew,eS,eA=ec.slice(),ek=eg=ec.length,eC=eu.length,eO=eu.slice(0,eg),eP=eO.length,eD=ei,eN=eD.c=[],eM=0,ej=eh+(eD.e=eo.e-ei.e)+1;for(eD.s=ef,ef=ej<0?0:ej,eA.unshift(0);eP++eP?1:-1;else for(eS=-1,ew=0;++eSeO[eS]?1:-1;break}if(ew<0){for(em=eP==eg?ec:eA;eP;){if(eO[--eP]ej&&eI(eD,ej,ea.RM,eO[0]!==eT),eD},eA.eq=function(ei){return 0===this.cmp(ei)},eA.gt=function(ei){return this.cmp(ei)>0},eA.gte=function(ei){return this.cmp(ei)>-1},eA.lt=function(ei){return 0>this.cmp(ei)},eA.lte=function(ei){return 1>this.cmp(ei)},eA.minus=eA.sub=function(ei){var eo,ea,eu,ec,ed=this,ef=ed.constructor,eh=ed.s,eg=(ei=new ef(ei)).s;if(eh!=eg)return ei.s=-eg,ed.plus(ei);var em=ed.c.slice(),eb=ed.e,ew=ei.c,e_=ei.e;if(!em[0]||!ew[0])return ew[0]?ei.s=-eg:em[0]?ei=new ef(ed):ei.s=1,ei;if(eh=eb-e_){for((ec=eh<0)?(eh=-eh,eu=em):(e_=eb,eu=ew),eu.reverse(),eg=eh;eg--;)eu.push(0);eu.reverse()}else for(ea=((ec=em.length0)for(;eg--;)em[eo++]=0;for(eg=eo;ea>eh;){if(em[--ea]0?(eg=ef,eu=em):(eo=-eo,eu=eh),eu.reverse();eo--;)eu.push(0);eu.reverse()}for(eh.length-em.length<0&&(eu=em,em=eh,eh=eu),eo=em.length,ea=0;eo;eh[eo]%=10)ea=(eh[--eo]=eh[eo]+em[eo]+ea)/10|0;for(ea&&(eh.unshift(ea),++eg),eo=eh.length;0===eh[--eo];)eh.pop();return ei.c=eh,ei.e=eg,ei},eA.pow=function(ei){var eo=this,ea=new eo.constructor("1"),eu=ea,ec=ei<0;if(ei!==~~ei||ei<-ef||ei>ef)throw Error(ew+"exponent");for(ec&&(ei=-ei);1&ei&&(eu=eu.times(eo)),ei>>=1;)eo=eo.times(eo);return ec?ea.div(eu):eu},eA.prec=function(ei,eo){if(ei!==~~ei||ei<1||ei>ed)throw Error(ew+"precision");return eI(new this.constructor(this),ei,eo)},eA.round=function(ei,eo){if(ei===eT)ei=0;else if(ei!==~~ei||ei<-ed||ei>ed)throw Error(e_);return eI(new this.constructor(this),ei+this.e+1,eo)},eA.sqrt=function(){var ei,eo,ea,eu=this,ec=eu.constructor,ed=eu.s,ef=eu.e,eh=new ec("0.5");if(!eu.c[0])return new ec(eu);if(ed<0)throw Error(eb+"No square root");0===(ed=Math.sqrt(eu+""))||ed===1/0?((eo=eu.c.join("")).length+ef&1||(eo+="0"),ed=Math.sqrt(eo),ef=((ef+1)/2|0)-(ef<0||1&ef),ei=new ec((ed==1/0?"5e":(ed=ed.toExponential()).slice(0,ed.indexOf("e")+1))+ef)):ei=new ec(ed+""),ef=ei.e+(ec.DP+=4);do ea=ei,ei=eh.times(ea.plus(eu.div(ea)));while(ea.c.slice(0,ef).join("")!==ei.c.slice(0,ef).join(""));return eI(ei,(ec.DP-=4)+ei.e+1,ec.RM)},eA.times=eA.mul=function(ei){var eo,ea=this,eu=ea.constructor,ec=ea.c,ed=(ei=new eu(ei)).c,ef=ec.length,eh=ed.length,eg=ea.e,em=ei.e;if(ei.s=ea.s==ei.s?1:-1,!ec[0]||!ed[0])return ei.c=[ei.e=0],ei;for(ei.e=eg+em,efeg;)eh=eo[em]+ed[eg]*ec[em-eg-1]+eh,eo[em--]=eh%10,eh=eh/10|0;eo[em]=eh}for(eh?++ei.e:eo.shift(),eg=eo.length;!eo[--eg];)eo.pop();return ei.c=eo,ei},eA.toExponential=function(ei,eo){var ea=this,eu=ea.c[0];if(ei!==eT){if(ei!==~~ei||ei<0||ei>ed)throw Error(e_);for(ea=eI(new ea.constructor(ea),++ei,eo);ea.c.lengthed)throw Error(e_);for(ea=eI(new ea.constructor(ea),ei+ea.e+1,eo),ei=ei+ea.e+1;ea.c.length=eo.PE,!!ei.c[0])},eA.toNumber=function(){var ei=Number(eP(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(ei.toString()))throw Error(eb+"Imprecise conversion");return ei},eA.toPrecision=function(ei,eo){var ea=this,eu=ea.constructor,ec=ea.c[0];if(ei!==eT){if(ei!==~~ei||ei<1||ei>ed)throw Error(ew+"precision");for(ea=eI(new eu(ea),ei,eo);ea.c.length=eu.PE,!!ec)},eA.valueOf=function(){var ei=this,eo=ei.constructor;if(!0===eo.strict)throw Error(eb+"valueOf disallowed");return eP(ei,ei.e<=eo.NE||ei.e>=eo.PE,!0)};var eD=eC();eo.Z=eD},96475:function(ei,eo,ea){"use strict";function eu(ei,eo,ea){eo.split&&(eo=eo.split("."));for(var eu,ec,ed=0,ef=eo.length,eh=ei;edei.length)&&(eo=ei.length);for(var ea=0,eu=Array(eo);ea1&&void 0!==arguments[1]?arguments[1]:{};ec(this,ei),this.init(eo,ea)}return eg(ei,[{key:"init",value:function(ei){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=eo.prefix||"i18next:",this.logger=ei||eN,this.options=eo,this.debug=eo.debug}},{key:"setDebug",value:function(ei){this.debug=ei}},{key:"log",value:function(){for(var ei=arguments.length,eo=Array(ei),ea=0;ea1?eo-1:0),eu=1;eu-1?ei.replace(/###/g,"."):ei}function ec(){return!ei||"string"==typeof ei}for(var ed="string"!=typeof eo?[].concat(eo):eo.split(".");ed.length>1;){if(ec())return{};var ef=eu(ed.shift());!ei[ef]&&ea&&(ei[ef]=new ea),ei=Object.prototype.hasOwnProperty.call(ei,ef)?ei[ef]:{}}return ec()?{}:{obj:ei,k:eu(ed.shift())}}function eU(ei,eo,ea){var eu=eB(ei,eo,Object);eu.obj[eu.k]=ea}function eG(ei,eo,ea,eu){var ec=eB(ei,eo,Object),ed=ec.obj,ef=ec.k;ed[ef]=ed[ef]||[],eu&&(ed[ef]=ed[ef].concat(ea)),eu||ed[ef].push(ea)}function eV(ei,eo){var ea=eB(ei,eo),eu=ea.obj,ec=ea.k;if(eu)return eu[ec]}function eH(ei,eo,ea){var eu=eV(ei,ea);return void 0!==eu?eu:eV(eo,ea)}function eW(ei,eo,ea){for(var eu in eo)"__proto__"!==eu&&"constructor"!==eu&&(eu in ei?"string"==typeof ei[eu]||ei[eu]instanceof String||"string"==typeof eo[eu]||eo[eu]instanceof String?ea&&(ei[eu]=eo[eu]):eW(ei[eu],eo[eu],ea):ei[eu]=eo[eu]);return ei}function eK(ei){return ei.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var eY={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function eZ(ei){return"string"==typeof ei?ei.replace(/[&<>"'\/]/g,function(ei){return eY[ei]}):ei}var e$="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,eJ=[" ",",","?","!",";"];function eQ(ei,eo,ea){eo=eo||"",ea=ea||"";var eu=eJ.filter(function(ei){return 0>eo.indexOf(ei)&&0>ea.indexOf(ei)});if(0===eu.length)return!0;var ec=new RegExp("(".concat(eu.map(function(ei){return"?"===ei?"\\?":ei}).join("|"),")")),ed=!ec.test(ei);if(!ed){var ef=ei.indexOf(ea);ef>0&&!ec.test(ei.substring(0,ef))&&(ed=!0)}return ed}function eX(ei,eo){var ea=Object.keys(ei);if(Object.getOwnPropertySymbols){var eu=Object.getOwnPropertySymbols(ei);eo&&(eu=eu.filter(function(eo){return Object.getOwnPropertyDescriptor(ei,eo).enumerable})),ea.push.apply(ea,eu)}return ea}function e0(ei){for(var eo=1;eo2&&void 0!==arguments[2]?arguments[2]:".";if(ei){if(ei[eo])return ei[eo];for(var eu=eo.split(ea),ec=ei,ed=0;eded+ef;)ef++,eg=ec[eh=eu.slice(ed,ed+ef).join(ea)];if(void 0===eg)return;if(null===eg)return null;if(eo.endsWith(eh)){if("string"==typeof eg)return eg;if(eh&&"string"==typeof eg[eh])return eg[eh]}var em=eu.slice(ed+ef).join(ea);if(em)return e4(eg,em,ea);return}ec=ec[eu[ed]]}return ec}}var e6=function(ei){ew(ea,ei);var eo=e3(ea);function ea(ei){var eu,ed=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ec(this,ea),eu=eo.call(this),e$&&ej.call(em(eu)),eu.data=ei||{},eu.options=ed,void 0===eu.options.keySeparator&&(eu.options.keySeparator="."),void 0===eu.options.ignoreJSONStructure&&(eu.options.ignoreJSONStructure=!0),eu}return eg(ea,[{key:"addNamespaces",value:function(ei){0>this.options.ns.indexOf(ei)&&this.options.ns.push(ei)}},{key:"removeNamespaces",value:function(ei){var eo=this.options.ns.indexOf(ei);eo>-1&&this.options.ns.splice(eo,1)}},{key:"getResource",value:function(ei,eo,ea){var eu=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},ec=void 0!==eu.keySeparator?eu.keySeparator:this.options.keySeparator,ed=void 0!==eu.ignoreJSONStructure?eu.ignoreJSONStructure:this.options.ignoreJSONStructure,ef=[ei,eo];ea&&"string"!=typeof ea&&(ef=ef.concat(ea)),ea&&"string"==typeof ea&&(ef=ef.concat(ec?ea.split(ec):ea)),ei.indexOf(".")>-1&&(ef=ei.split("."));var eh=eV(this.data,ef);return eh||!ed||"string"!=typeof ea?eh:e4(this.data&&this.data[ei]&&this.data[ei][eo],ea,ec)}},{key:"addResource",value:function(ei,eo,ea,eu){var ec=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},ed=this.options.keySeparator;void 0===ed&&(ed=".");var ef=[ei,eo];ea&&(ef=ef.concat(ed?ea.split(ed):ea)),ei.indexOf(".")>-1&&(ef=ei.split("."),eu=eo,eo=ef[1]),this.addNamespaces(eo),eU(this.data,ef,eu),ec.silent||this.emit("added",ei,eo,ea,eu)}},{key:"addResources",value:function(ei,eo,ea){var eu=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var ec in ea)("string"==typeof ea[ec]||"[object Array]"===Object.prototype.toString.apply(ea[ec]))&&this.addResource(ei,eo,ec,ea[ec],{silent:!0});eu.silent||this.emit("added",ei,eo,ea)}},{key:"addResourceBundle",value:function(ei,eo,ea,eu,ec){var ed=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},ef=[ei,eo];ei.indexOf(".")>-1&&(ef=ei.split("."),eu=ea,ea=eo,eo=ef[1]),this.addNamespaces(eo);var eh=eV(this.data,ef)||{};eu?eW(eh,ea,ec):eh=e0(e0({},eh),ea),eU(this.data,ef,eh),ed.silent||this.emit("added",ei,eo,ea)}},{key:"removeResourceBundle",value:function(ei,eo){this.hasResourceBundle(ei,eo)&&delete this.data[ei][eo],this.removeNamespaces(eo),this.emit("removed",ei,eo)}},{key:"hasResourceBundle",value:function(ei,eo){return void 0!==this.getResource(ei,eo)}},{key:"getResourceBundle",value:function(ei,eo){return(eo||(eo=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?e0(e0({},{}),this.getResource(ei,eo)):this.getResource(ei,eo)}},{key:"getDataByLanguage",value:function(ei){return this.data[ei]}},{key:"hasLanguageSomeTranslations",value:function(ei){var eo=this.getDataByLanguage(ei);return!!(eo&&Object.keys(eo)||[]).find(function(ei){return eo[ei]&&Object.keys(eo[ei]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),ea}(ej),e8={processors:{},addPostProcessor:function(ei){this.processors[ei.name]=ei},handle:function(ei,eo,ea,eu,ec){var ed=this;return ei.forEach(function(ei){ed.processors[ei]&&(eo=ed.processors[ei].process(eo,ea,eu,ec))}),eo}};function e9(ei,eo){var ea=Object.keys(ei);if(Object.getOwnPropertySymbols){var eu=Object.getOwnPropertySymbols(ei);eo&&(eu=eu.filter(function(eo){return Object.getOwnPropertyDescriptor(ei,eo).enumerable})),ea.push.apply(ea,eu)}return ea}function e7(ei){for(var eo=1;eo1&&void 0!==arguments[1]?arguments[1]:{};return ec(this,ea),eu=eo.call(this),e$&&ej.call(em(eu)),eF(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],ei,em(eu)),eu.options=ed,void 0===eu.options.keySeparator&&(eu.options.keySeparator="."),eu.logger=eM.create("translator"),eu}return eg(ea,[{key:"changeLanguage",value:function(ei){ei&&(this.language=ei)}},{key:"exists",value:function(ei){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==ei)return!1;var ea=this.resolve(ei,eo);return ea&&void 0!==ea.res}},{key:"extractFromKey",value:function(ei,eo){var ea=void 0!==eo.nsSeparator?eo.nsSeparator:this.options.nsSeparator;void 0===ea&&(ea=":");var eu=void 0!==eo.keySeparator?eo.keySeparator:this.options.keySeparator,ec=eo.ns||this.options.defaultNS||[],ed=ea&&ei.indexOf(ea)>-1,ef=!this.options.userDefinedKeySeparator&&!eo.keySeparator&&!this.options.userDefinedNsSeparator&&!eo.nsSeparator&&!eQ(ei,ea,eu);if(ed&&!ef){var eh=ei.match(this.interpolator.nestingRegexp);if(eh&&eh.length>0)return{key:ei,namespaces:ec};var eg=ei.split(ea);(ea!==eu||ea===eu&&this.options.ns.indexOf(eg[0])>-1)&&(ec=eg.shift()),ei=eg.join(eu)}return"string"==typeof ec&&(ec=[ec]),{key:ei,namespaces:ec}}},{key:"translate",value:function(ei,eo,ec){var ed=this;if("object"!==eu(eo)&&this.options.overloadTranslationOptionHandler&&(eo=this.options.overloadTranslationOptionHandler(arguments)),eo||(eo={}),null==ei)return"";Array.isArray(ei)||(ei=[String(ei)]);var ef=void 0!==eo.returnDetails?eo.returnDetails:this.options.returnDetails,eh=void 0!==eo.keySeparator?eo.keySeparator:this.options.keySeparator,eg=this.extractFromKey(ei[ei.length-1],eo),em=eg.key,eb=eg.namespaces,ew=eb[eb.length-1],e_=eo.lng||this.language,eS=eo.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(e_&&"cimode"===e_.toLowerCase()){if(eS){var eE=eo.nsSeparator||this.options.nsSeparator;return ef?(eA.res="".concat(ew).concat(eE).concat(em),eA):"".concat(ew).concat(eE).concat(em)}return ef?(eA.res=em,eA):em}var eA=this.resolve(ei,eo),eT=eA&&eA.res,ek=eA&&eA.usedKey||em,eC=eA&&eA.exactUsedKey||em,eO=Object.prototype.toString.apply(eT),eI=["[object Number]","[object Function]","[object RegExp]"],eP=void 0!==eo.joinArrays?eo.joinArrays:this.options.joinArrays,eD=!this.i18nFormat||this.i18nFormat.handleAsObject,eN="string"!=typeof eT&&"boolean"!=typeof eT&&"number"!=typeof eT;if(eD&&eT&&eN&&0>eI.indexOf(eO)&&!("string"==typeof eP&&"[object Array]"===eO)){if(!eo.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var eM=this.options.returnedObjectHandler?this.options.returnedObjectHandler(ek,eT,e7(e7({},eo),{},{ns:eb})):"key '".concat(em," (").concat(this.language,")' returned an object instead of string.");return ef?(eA.res=eM,eA):eM}if(eh){var ej="[object Array]"===eO,eR=ej?[]:{},eL=ej?eC:ek;for(var eF in eT)if(Object.prototype.hasOwnProperty.call(eT,eF)){var eB="".concat(eL).concat(eh).concat(eF);eR[eF]=this.translate(eB,e7(e7({},eo),{joinArrays:!1,ns:eb})),eR[eF]===eB&&(eR[eF]=eT[eF])}eT=eR}}else if(eD&&"string"==typeof eP&&"[object Array]"===eO)(eT=eT.join(eP))&&(eT=this.extendTranslation(eT,ei,eo,ec));else{var eU=!1,eG=!1,eV=void 0!==eo.count&&"string"!=typeof eo.count,eH=ea.hasDefaultValue(eo),eW=eV?this.pluralResolver.getSuffix(e_,eo.count,eo):"",eK=eo["defaultValue".concat(eW)]||eo.defaultValue;!this.isValidLookup(eT)&&eH&&(eU=!0,eT=eK),this.isValidLookup(eT)||(eG=!0,eT=em);var eY=(eo.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&eG?void 0:eT,eZ=eH&&eK!==eT&&this.options.updateMissing;if(eG||eU||eZ){if(this.logger.log(eZ?"updateKey":"missingKey",e_,ew,em,eZ?eK:eT),eh){var e$=this.resolve(em,e7(e7({},eo),{},{keySeparator:!1}));e$&&e$.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.")}var eJ=[],eQ=this.languageUtils.getFallbackCodes(this.options.fallbackLng,eo.lng||this.language);if("fallback"===this.options.saveMissingTo&&eQ&&eQ[0])for(var eX=0;eX1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof ei&&(ei=[ei]),ei.forEach(function(ei){if(!ef.isValidLookup(eo)){var eg=ef.extractFromKey(ei,eh),em=eg.key;ea=em;var eb=eg.namespaces;ef.options.fallbackNS&&(eb=eb.concat(ef.options.fallbackNS));var ew=void 0!==eh.count&&"string"!=typeof eh.count,e_=ew&&!eh.ordinal&&0===eh.count&&ef.pluralResolver.shouldUseIntlApi(),eS=void 0!==eh.context&&("string"==typeof eh.context||"number"==typeof eh.context)&&""!==eh.context,eE=eh.lngs?eh.lngs:ef.languageUtils.toResolveHierarchy(eh.lng||ef.language,eh.fallbackLng);eb.forEach(function(ei){ef.isValidLookup(eo)||(ed=ei,!tc["".concat(eE[0],"-").concat(ei)]&&ef.utils&&ef.utils.hasLoadedNamespace&&!ef.utils.hasLoadedNamespace(ed)&&(tc["".concat(eE[0],"-").concat(ei)]=!0,ef.logger.warn('key "'.concat(ea,'" for languages "').concat(eE.join(", "),'" won\'t get resolved as namespace "').concat(ed,'" 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!!!")),eE.forEach(function(ea){if(!ef.isValidLookup(eo)){ec=ea;var ed,eg=[em];if(ef.i18nFormat&&ef.i18nFormat.addLookupKeys)ef.i18nFormat.addLookupKeys(eg,em,ea,ei,eh);else{ew&&(eb=ef.pluralResolver.getSuffix(ea,eh.count,eh));var eb,eE="".concat(ef.options.pluralSeparator,"zero");if(ew&&(eg.push(em+eb),e_&&eg.push(em+eE)),eS){var eA="".concat(em).concat(ef.options.contextSeparator).concat(eh.context);eg.push(eA),ew&&(eg.push(eA+eb),e_&&eg.push(eA+eE))}}for(;ed=eg.pop();)ef.isValidLookup(eo)||(eu=ed,eo=ef.getResource(ea,ei,ed,eh))}}))})}}),{res:eo,usedKey:ea,exactUsedKey:eu,usedLng:ec,usedNS:ed}}},{key:"isValidLookup",value:function(ei){return void 0!==ei&&!(!this.options.returnNull&&null===ei)&&!(!this.options.returnEmptyString&&""===ei)}},{key:"getResource",value:function(ei,eo,ea){var eu=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(ei,eo,ea,eu):this.resourceStore.getResource(ei,eo,ea,eu)}}],[{key:"hasDefaultValue",value:function(ei){var eo="defaultValue";for(var ea in ei)if(Object.prototype.hasOwnProperty.call(ei,ea)&&eo===ea.substring(0,eo.length)&&void 0!==ei[ea])return!0;return!1}}]),ea}(ej);function tf(ei){return ei.charAt(0).toUpperCase()+ei.slice(1)}var tp=function(){function ei(eo){ec(this,ei),this.options=eo,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eM.create("languageUtils")}return eg(ei,[{key:"getScriptPartFromCode",value:function(ei){if(!ei||0>ei.indexOf("-"))return null;var eo=ei.split("-");return 2===eo.length?null:(eo.pop(),"x"===eo[eo.length-1].toLowerCase())?null:this.formatLanguageCode(eo.join("-"))}},{key:"getLanguagePartFromCode",value:function(ei){if(!ei||0>ei.indexOf("-"))return ei;var eo=ei.split("-");return this.formatLanguageCode(eo[0])}},{key:"formatLanguageCode",value:function(ei){if("string"==typeof ei&&ei.indexOf("-")>-1){var eo=["hans","hant","latn","cyrl","cans","mong","arab"],ea=ei.split("-");return this.options.lowerCaseLng?ea=ea.map(function(ei){return ei.toLowerCase()}):2===ea.length?(ea[0]=ea[0].toLowerCase(),ea[1]=ea[1].toUpperCase(),eo.indexOf(ea[1].toLowerCase())>-1&&(ea[1]=tf(ea[1].toLowerCase()))):3===ea.length&&(ea[0]=ea[0].toLowerCase(),2===ea[1].length&&(ea[1]=ea[1].toUpperCase()),"sgn"!==ea[0]&&2===ea[2].length&&(ea[2]=ea[2].toUpperCase()),eo.indexOf(ea[1].toLowerCase())>-1&&(ea[1]=tf(ea[1].toLowerCase())),eo.indexOf(ea[2].toLowerCase())>-1&&(ea[2]=tf(ea[2].toLowerCase()))),ea.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?ei.toLowerCase():ei}},{key:"isSupportedCode",value:function(ei){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(ei=this.getLanguagePartFromCode(ei)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(ei)>-1}},{key:"getBestMatchFromCodes",value:function(ei){var eo,ea=this;return ei?(ei.forEach(function(ei){if(!eo){var eu=ea.formatLanguageCode(ei);(!ea.options.supportedLngs||ea.isSupportedCode(eu))&&(eo=eu)}}),!eo&&this.options.supportedLngs&&ei.forEach(function(ei){if(!eo){var eu=ea.getLanguagePartFromCode(ei);if(ea.isSupportedCode(eu))return eo=eu;eo=ea.options.supportedLngs.find(function(ei){if(0===ei.indexOf(eu))return ei})}}),eo||(eo=this.getFallbackCodes(this.options.fallbackLng)[0]),eo):null}},{key:"getFallbackCodes",value:function(ei,eo){if(!ei)return[];if("function"==typeof ei&&(ei=ei(eo)),"string"==typeof ei&&(ei=[ei]),"[object Array]"===Object.prototype.toString.apply(ei))return ei;if(!eo)return ei.default||[];var ea=ei[eo];return ea||(ea=ei[this.getScriptPartFromCode(eo)]),ea||(ea=ei[this.formatLanguageCode(eo)]),ea||(ea=ei[this.getLanguagePartFromCode(eo)]),ea||(ea=ei.default),ea||[]}},{key:"toResolveHierarchy",value:function(ei,eo){var ea=this,eu=this.getFallbackCodes(eo||this.options.fallbackLng||[],ei),ec=[],ed=function(ei){ei&&(ea.isSupportedCode(ei)?ec.push(ei):ea.logger.warn("rejecting language code not found in supportedLngs: ".concat(ei)))};return"string"==typeof ei&&ei.indexOf("-")>-1?("languageOnly"!==this.options.load&&ed(this.formatLanguageCode(ei)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&ed(this.getScriptPartFromCode(ei)),"currentOnly"!==this.options.load&&ed(this.getLanguagePartFromCode(ei))):"string"==typeof ei&&ed(this.formatLanguageCode(ei)),eu.forEach(function(ei){0>ec.indexOf(ei)&&ed(ea.formatLanguageCode(ei))}),ec}}]),ei}(),tg=[{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}],tm={1:function(ei){return Number(ei>1)},2:function(ei){return Number(1!=ei)},3:function(ei){return 0},4:function(ei){return Number(ei%10==1&&ei%100!=11?0:ei%10>=2&&ei%10<=4&&(ei%100<10||ei%100>=20)?1:2)},5:function(ei){return Number(0==ei?0:1==ei?1:2==ei?2:ei%100>=3&&ei%100<=10?3:ei%100>=11?4:5)},6:function(ei){return Number(1==ei?0:ei>=2&&ei<=4?1:2)},7:function(ei){return Number(1==ei?0:ei%10>=2&&ei%10<=4&&(ei%100<10||ei%100>=20)?1:2)},8:function(ei){return Number(1==ei?0:2==ei?1:8!=ei&&11!=ei?2:3)},9:function(ei){return Number(ei>=2)},10:function(ei){return Number(1==ei?0:2==ei?1:ei<7?2:ei<11?3:4)},11:function(ei){return Number(1==ei||11==ei?0:2==ei||12==ei?1:ei>2&&ei<20?2:3)},12:function(ei){return Number(ei%10!=1||ei%100==11)},13:function(ei){return Number(0!==ei)},14:function(ei){return Number(1==ei?0:2==ei?1:3==ei?2:3)},15:function(ei){return Number(ei%10==1&&ei%100!=11?0:ei%10>=2&&(ei%100<10||ei%100>=20)?1:2)},16:function(ei){return Number(ei%10==1&&ei%100!=11?0:0!==ei?1:2)},17:function(ei){return Number(1==ei||ei%10==1&&ei%100!=11?0:1)},18:function(ei){return Number(0==ei?0:1==ei?1:2)},19:function(ei){return Number(1==ei?0:0==ei||ei%100>1&&ei%100<11?1:ei%100>10&&ei%100<20?2:3)},20:function(ei){return Number(1==ei?0:0==ei||ei%100>0&&ei%100<20?1:2)},21:function(ei){return Number(ei%100==1?1:ei%100==2?2:ei%100==3||ei%100==4?3:0)},22:function(ei){return Number(1==ei?0:2==ei?1:(ei<0||ei>10)&&ei%10==0?2:3)}},tv=["v1","v2","v3"],tb={zero:0,one:1,two:2,few:3,many:4,other:5};function tw(){var ei={};return tg.forEach(function(eo){eo.lngs.forEach(function(ea){ei[ea]={numbers:eo.nr,plurals:tm[eo.fc]}})}),ei}var t_=function(){function ei(eo){var ea=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ec(this,ei),this.languageUtils=eo,this.options=ea,this.logger=eM.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&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=tw()}return eg(ei,[{key:"addRule",value:function(ei,eo){this.rules[ei]=eo}},{key:"getRule",value:function(ei){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(ei,{type:eo.ordinal?"ordinal":"cardinal"})}catch(ei){return}return this.rules[ei]||this.rules[this.languageUtils.getLanguagePartFromCode(ei)]}},{key:"needsPlural",value:function(ei){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ea=this.getRule(ei,eo);return this.shouldUseIntlApi()?ea&&ea.resolvedOptions().pluralCategories.length>1:ea&&ea.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(ei,eo){var ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(ei,ea).map(function(ei){return"".concat(eo).concat(ei)})}},{key:"getSuffixes",value:function(ei){var eo=this,ea=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},eu=this.getRule(ei,ea);return eu?this.shouldUseIntlApi()?eu.resolvedOptions().pluralCategories.sort(function(ei,eo){return tb[ei]-tb[eo]}).map(function(ei){return"".concat(eo.options.prepend).concat(ei)}):eu.numbers.map(function(eu){return eo.getSuffix(ei,eu,ea)}):[]}},{key:"getSuffix",value:function(ei,eo){var ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},eu=this.getRule(ei,ea);return eu?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(eu.select(eo)):this.getSuffixRetroCompatible(eu,eo):(this.logger.warn("no plural rule found for: ".concat(ei)),"")}},{key:"getSuffixRetroCompatible",value:function(ei,eo){var ea=this,eu=ei.noAbs?ei.plurals(eo):ei.plurals(Math.abs(eo)),ec=ei.numbers[eu];this.options.simplifyPluralSuffix&&2===ei.numbers.length&&1===ei.numbers[0]&&(2===ec?ec="plural":1===ec&&(ec=""));var ed=function(){return ea.options.prepend&&ec.toString()?ea.options.prepend+ec.toString():ec.toString()};return"v1"===this.options.compatibilityJSON?1===ec?"":"number"==typeof ec?"_plural_".concat(ec.toString()):ed():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===ei.numbers.length&&1===ei.numbers[0]?ed():this.options.prepend&&eu.toString()?this.options.prepend+eu.toString():eu.toString()}},{key:"shouldUseIntlApi",value:function(){return!tv.includes(this.options.compatibilityJSON)}}]),ei}();function tS(ei,eo){var ea=Object.keys(ei);if(Object.getOwnPropertySymbols){var eu=Object.getOwnPropertySymbols(ei);eo&&(eu=eu.filter(function(eo){return Object.getOwnPropertyDescriptor(ei,eo).enumerable})),ea.push.apply(ea,eu)}return ea}function tE(ei){for(var eo=1;eo0&&void 0!==arguments[0]?arguments[0]:{};ec(this,ei),this.logger=eM.create("interpolator"),this.options=eo,this.format=eo.interpolation&&eo.interpolation.format||function(ei){return ei},this.init(eo)}return eg(ei,[{key:"init",value:function(){var ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ei.interpolation||(ei.interpolation={escapeValue:!0});var eo=ei.interpolation;this.escape=void 0!==eo.escape?eo.escape:eZ,this.escapeValue=void 0===eo.escapeValue||eo.escapeValue,this.useRawValueToEscape=void 0!==eo.useRawValueToEscape&&eo.useRawValueToEscape,this.prefix=eo.prefix?eK(eo.prefix):eo.prefixEscaped||"{{",this.suffix=eo.suffix?eK(eo.suffix):eo.suffixEscaped||"}}",this.formatSeparator=eo.formatSeparator?eo.formatSeparator:eo.formatSeparator||",",this.unescapePrefix=eo.unescapeSuffix?"":eo.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":eo.unescapeSuffix||"",this.nestingPrefix=eo.nestingPrefix?eK(eo.nestingPrefix):eo.nestingPrefixEscaped||eK("$t("),this.nestingSuffix=eo.nestingSuffix?eK(eo.nestingSuffix):eo.nestingSuffixEscaped||eK(")"),this.nestingOptionsSeparator=eo.nestingOptionsSeparator?eo.nestingOptionsSeparator:eo.nestingOptionsSeparator||",",this.maxReplaces=eo.maxReplaces?eo.maxReplaces:1e3,this.alwaysFormat=void 0!==eo.alwaysFormat&&eo.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var ei="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(ei,"g");var eo="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(eo,"g");var ea="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(ea,"g")}},{key:"interpolate",value:function(ei,eo,ea,eu){var ec,ed,ef,eh=this,eg=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function em(ei){return ei.replace(/\$/g,"$$$$")}var eb=function(ei){if(0>ei.indexOf(eh.formatSeparator)){var ec=eH(eo,eg,ei);return eh.alwaysFormat?eh.format(ec,void 0,ea,tE(tE(tE({},eu),eo),{},{interpolationkey:ei})):ec}var ed=ei.split(eh.formatSeparator),ef=ed.shift().trim(),em=ed.join(eh.formatSeparator).trim();return eh.format(eH(eo,eg,ef),em,ea,tE(tE(tE({},eu),eo),{},{interpolationkey:ef}))};this.resetRegExp();var ew=eu&&eu.missingInterpolationHandler||this.options.missingInterpolationHandler,e_=eu&&eu.interpolation&&void 0!==eu.interpolation.skipOnVariables?eu.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(ei){return em(ei)}},{regex:this.regexp,safeValue:function(ei){return eh.escapeValue?em(eh.escape(ei)):em(ei)}}].forEach(function(eo){for(ef=0;ec=eo.regex.exec(ei);){var ea=ec[1].trim();if(void 0===(ed=eb(ea))){if("function"==typeof ew){var eg=ew(ei,ec,eu);ed="string"==typeof eg?eg:""}else if(eu&&eu.hasOwnProperty(ea))ed="";else if(e_){ed=ec[0];continue}else eh.logger.warn("missed to pass in variable ".concat(ea," for interpolating ").concat(ei)),ed=""}else"string"==typeof ed||eh.useRawValueToEscape||(ed=eL(ed));var em=eo.safeValue(ed);if(ei=ei.replace(ec[0],em),e_?(eo.regex.lastIndex+=ed.length,eo.regex.lastIndex-=ec[0].length):eo.regex.lastIndex=0,++ef>=eh.maxReplaces)break}}),ei}},{key:"nest",value:function(ei,eo){var ea,eu,ec,ed=this,ef=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function eh(ei,eo){var ea=this.nestingOptionsSeparator;if(0>ei.indexOf(ea))return ei;var eu=ei.split(new RegExp("".concat(ea,"[ ]*{"))),ed="{".concat(eu[1]);ei=eu[0];var ef=(ed=this.interpolate(ed,ec)).match(/'/g),eh=ed.match(/"/g);(ef&&ef.length%2==0&&!eh||eh.length%2!=0)&&(ed=ed.replace(/'/g,'"'));try{ec=JSON.parse(ed),eo&&(ec=tE(tE({},eo),ec))}catch(eo){return this.logger.warn("failed parsing options string in nesting for key ".concat(ei),eo),"".concat(ei).concat(ea).concat(ed)}return delete ec.defaultValue,ei}for(;ea=this.nestingRegexp.exec(ei);){var eg=[];(ec=tE({},ef)).applyPostProcessor=!1,delete ec.defaultValue;var em=!1;if(-1!==ea[0].indexOf(this.formatSeparator)&&!/{.*}/.test(ea[1])){var eb=ea[1].split(this.formatSeparator).map(function(ei){return ei.trim()});ea[1]=eb.shift(),eg=eb,em=!0}if((eu=eo(eh.call(this,ea[1].trim(),ec),ec))&&ea[0]===ei&&"string"!=typeof eu)return eu;"string"!=typeof eu&&(eu=eL(eu)),eu||(this.logger.warn("missed to resolve ".concat(ea[1]," for nesting ").concat(ei)),eu=""),em&&(eu=eg.reduce(function(ei,eo){return ed.format(ei,eo,ef.lng,tE(tE({},ef),{},{interpolationkey:ea[1].trim()}))},eu.trim())),ei=ei.replace(ea[0],eu),this.regexp.lastIndex=0}return ei}}]),ei}();function tT(ei,eo){var ea=Object.keys(ei);if(Object.getOwnPropertySymbols){var eu=Object.getOwnPropertySymbols(ei);eo&&(eu=eu.filter(function(eo){return Object.getOwnPropertyDescriptor(ei,eo).enumerable})),ea.push.apply(ea,eu)}return ea}function tk(ei){for(var eo=1;eo-1){var eu=ei.split("(");eo=eu[0].toLowerCase().trim();var ec=eu[1].substring(0,eu[1].length-1);"currency"===eo&&0>ec.indexOf(":")?ea.currency||(ea.currency=ec.trim()):"relativetime"===eo&&0>ec.indexOf(":")?ea.range||(ea.range=ec.trim()):ec.split(";").forEach(function(ei){if(ei){var eo=ei.split(":"),eu=eI(eo),ec=eu[0],ed=eu.slice(1),ef=ed.join(":").trim().replace(/^'+|'+$/g,"");ea[ec.trim()]||(ea[ec.trim()]=ef),"false"===ef&&(ea[ec.trim()]=!1),"true"===ef&&(ea[ec.trim()]=!0),isNaN(ef)||(ea[ec.trim()]=parseInt(ef,10))}})}return{formatName:eo,formatOptions:ea}}function tO(ei){var eo={};return function(ea,eu,ec){var ed=eu+JSON.stringify(ec),ef=eo[ed];return ef||(ef=ei(eu,ec),eo[ed]=ef),ef(ea)}}var tI=function(){function ei(){var eo=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ec(this,ei),this.logger=eM.create("formatter"),this.options=eo,this.formats={number:tO(function(ei,eo){var ea=new Intl.NumberFormat(ei,eo);return function(ei){return ea.format(ei)}}),currency:tO(function(ei,eo){var ea=new Intl.NumberFormat(ei,tk(tk({},eo),{},{style:"currency"}));return function(ei){return ea.format(ei)}}),datetime:tO(function(ei,eo){var ea=new Intl.DateTimeFormat(ei,tk({},eo));return function(ei){return ea.format(ei)}}),relativetime:tO(function(ei,eo){var ea=new Intl.RelativeTimeFormat(ei,tk({},eo));return function(ei){return ea.format(ei,eo.range||"day")}}),list:tO(function(ei,eo){var ea=new Intl.ListFormat(ei,tk({},eo));return function(ei){return ea.format(ei)}})},this.init(eo)}return eg(ei,[{key:"init",value:function(ei){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},ea=eo.interpolation;this.formatSeparator=ea.formatSeparator?ea.formatSeparator:ea.formatSeparator||","}},{key:"add",value:function(ei,eo){this.formats[ei.toLowerCase().trim()]=eo}},{key:"addCached",value:function(ei,eo){this.formats[ei.toLowerCase().trim()]=tO(eo)}},{key:"format",value:function(ei,eo,ea,eu){var ec=this;return eo.split(this.formatSeparator).reduce(function(ei,eo){var ed=tC(eo),ef=ed.formatName,eh=ed.formatOptions;if(ec.formats[ef]){var eg=ei;try{var em=eu&&eu.formatParams&&eu.formatParams[eu.interpolationkey]||{},eb=em.locale||em.lng||eu.locale||eu.lng||ea;eg=ec.formats[ef](ei,eb,tk(tk(tk({},eh),eu),em))}catch(ei){ec.logger.warn(ei)}return eg}return ec.logger.warn("there was no format function for ".concat(ef)),ei},ei)}}]),ei}();function tP(ei,eo){var ea=Object.keys(ei);if(Object.getOwnPropertySymbols){var eu=Object.getOwnPropertySymbols(ei);eo&&(eu=eu.filter(function(eo){return Object.getOwnPropertyDescriptor(ei,eo).enumerable})),ea.push.apply(ea,eu)}return ea}function tD(ei){for(var eo=1;eo3&&void 0!==arguments[3]?arguments[3]:{};return ec(this,ea),ef=eo.call(this),e$&&ej.call(em(ef)),ef.backend=ei,ef.store=eu,ef.services=ed,ef.languageUtils=ed.languageUtils,ef.options=eh,ef.logger=eM.create("backendConnector"),ef.waitingReads=[],ef.maxParallelReads=eh.maxParallelReads||10,ef.readingCalls=0,ef.maxRetries=eh.maxRetries>=0?eh.maxRetries:5,ef.retryTimeout=eh.retryTimeout>=1?eh.retryTimeout:350,ef.state={},ef.queue=[],ef.backend&&ef.backend.init&&ef.backend.init(ed,eh.backend,eh),ef}return eg(ea,[{key:"queueLoad",value:function(ei,eo,ea,eu){var ec=this,ed={},ef={},eh={},eg={};return ei.forEach(function(ei){var eu=!0;eo.forEach(function(eo){var eh="".concat(ei,"|").concat(eo);!ea.reload&&ec.store.hasResourceBundle(ei,eo)?ec.state[eh]=2:ec.state[eh]<0||(1===ec.state[eh]?void 0===ef[eh]&&(ef[eh]=!0):(ec.state[eh]=1,eu=!1,void 0===ef[eh]&&(ef[eh]=!0),void 0===ed[eh]&&(ed[eh]=!0),void 0===eg[eo]&&(eg[eo]=!0)))}),eu||(eh[ei]=!0)}),(Object.keys(ed).length||Object.keys(ef).length)&&this.queue.push({pending:ef,pendingCount:Object.keys(ef).length,loaded:{},errors:[],callback:eu}),{toLoad:Object.keys(ed),pending:Object.keys(ef),toLoadLanguages:Object.keys(eh),toLoadNamespaces:Object.keys(eg)}}},{key:"loaded",value:function(ei,eo,ea){var eu=ei.split("|"),ec=eu[0],ed=eu[1];eo&&this.emit("failedLoading",ec,ed,eo),ea&&this.store.addResourceBundle(ec,ed,ea),this.state[ei]=eo?-1:2;var ef={};this.queue.forEach(function(ea){eG(ea.loaded,[ec],ed),tj(ea,ei),eo&&ea.errors.push(eo),0!==ea.pendingCount||ea.done||(Object.keys(ea.loaded).forEach(function(ei){ef[ei]||(ef[ei]={});var eo=ea.loaded[ei];eo.length&&eo.forEach(function(eo){void 0===ef[ei][eo]&&(ef[ei][eo]=!0)})}),ea.done=!0,ea.errors.length?ea.callback(ea.errors):ea.callback())}),this.emit("loaded",ef),this.queue=this.queue.filter(function(ei){return!ei.done})}},{key:"read",value:function(ei,eo,ea){var eu=this,ec=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,ed=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,ef=arguments.length>5?arguments[5]:void 0;if(!ei.length)return ef(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:ei,ns:eo,fcName:ea,tried:ec,wait:ed,callback:ef});return}this.readingCalls++;var eh=function(eh,eg){if(eu.readingCalls--,eu.waitingReads.length>0){var em=eu.waitingReads.shift();eu.read(em.lng,em.ns,em.fcName,em.tried,em.wait,em.callback)}if(eh&&eg&&ec2&&void 0!==arguments[2]?arguments[2]:{},ec=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."),ec&&ec();"string"==typeof ei&&(ei=this.languageUtils.toResolveHierarchy(ei)),"string"==typeof eo&&(eo=[eo]);var ed=this.queueLoad(ei,eo,eu,ec);if(!ed.toLoad.length)return ed.pending.length||ec(),null;ed.toLoad.forEach(function(ei){ea.loadOne(ei)})}},{key:"load",value:function(ei,eo,ea){this.prepareLoading(ei,eo,{},ea)}},{key:"reload",value:function(ei,eo,ea){this.prepareLoading(ei,eo,{reload:!0},ea)}},{key:"loadOne",value:function(ei){var eo=this,ea=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",eu=ei.split("|"),ec=eu[0],ed=eu[1];this.read(ec,ed,"read",void 0,void 0,function(eu,ef){eu&&eo.logger.warn("".concat(ea,"loading namespace ").concat(ed," for language ").concat(ec," failed"),eu),!eu&&ef&&eo.logger.log("".concat(ea,"loaded namespace ").concat(ed," for language ").concat(ec),ef),eo.loaded(ei,eu,ef)})}},{key:"saveMissing",value:function(ei,eo,ea,eu,ec){var ed=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},ef=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(eo)){this.logger.warn('did not save key "'.concat(ea,'" as the namespace "').concat(eo,'" 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(null!=ea&&""!==ea){if(this.backend&&this.backend.create){var eh,eg=tD(tD({},ed),{},{isUpdate:ec}),em=this.backend.create.bind(this.backend);if(em.length<6)try{(eh=5===em.length?em(ei,eo,ea,eu,eg):em(ei,eo,ea,eu))&&"function"==typeof eh.then?eh.then(function(ei){return ef(null,ei)}).catch(ef):ef(null,eh)}catch(ei){ef(ei)}else em(ei,eo,ea,eu,ef,eg)}ei&&ei[0]&&this.store.addResource(ei[0],eo,ea,eu)}}}]),ea}(ej);function tL(){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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(ei){var eo={};if("object"===eu(ei[1])&&(eo=ei[1]),"string"==typeof ei[1]&&(eo.defaultValue=ei[1]),"string"==typeof ei[2]&&(eo.tDescription=ei[2]),"object"===eu(ei[2])||"object"===eu(ei[3])){var ea=ei[3]||ei[2];Object.keys(ea).forEach(function(ei){eo[ei]=ea[ei]})}return eo},interpolation:{escapeValue:!0,format:function(ei,eo,ea,eu){return ei},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function tF(ei){return"string"==typeof ei.ns&&(ei.ns=[ei.ns]),"string"==typeof ei.fallbackLng&&(ei.fallbackLng=[ei.fallbackLng]),"string"==typeof ei.fallbackNS&&(ei.fallbackNS=[ei.fallbackNS]),ei.supportedLngs&&0>ei.supportedLngs.indexOf("cimode")&&(ei.supportedLngs=ei.supportedLngs.concat(["cimode"])),ei}function tB(ei,eo){var ea=Object.keys(ei);if(Object.getOwnPropertySymbols){var eu=Object.getOwnPropertySymbols(ei);eo&&(eu=eu.filter(function(eo){return Object.getOwnPropertyDescriptor(ei,eo).enumerable})),ea.push.apply(ea,eu)}return ea}function tU(ei){for(var eo=1;eo0&&void 0!==arguments[0]?arguments[0]:{},ed=arguments.length>1?arguments[1]:void 0;if(ec(this,ea),ei=eo.call(this),e$&&ej.call(em(ei)),ei.options=tF(eu),ei.services={},ei.logger=eM,ei.modules={external:[]},tH(em(ei)),ed&&!ei.isInitialized&&!eu.isClone){if(!ei.options.initImmediate)return ei.init(eu,ed),e_(ei,em(ei));setTimeout(function(){ei.init(eu,ed)},0)}return ei}return eg(ea,[{key:"init",value:function(){var ei=this,eo=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ea=arguments.length>1?arguments[1]:void 0;"function"==typeof eo&&(ea=eo,eo={}),!eo.defaultNS&&!1!==eo.defaultNS&&eo.ns&&("string"==typeof eo.ns?eo.defaultNS=eo.ns:0>eo.ns.indexOf("translation")&&(eo.defaultNS=eo.ns[0]));var eu=tL();function ec(ei){return ei?"function"==typeof ei?new ei:ei:null}if(this.options=tU(tU(tU({},eu),this.options),tF(eo)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=tU(tU({},eu.interpolation),this.options.interpolation)),void 0!==eo.keySeparator&&(this.options.userDefinedKeySeparator=eo.keySeparator),void 0!==eo.nsSeparator&&(this.options.userDefinedNsSeparator=eo.nsSeparator),!this.options.isClone){this.modules.logger?eM.init(ec(this.modules.logger),this.options):eM.init(null,this.options),this.modules.formatter?ed=this.modules.formatter:"undefined"!=typeof Intl&&(ed=tI);var ed,ef=new tp(this.options);this.store=new e6(this.options.resources,this.options);var eh=this.services;eh.logger=eM,eh.resourceStore=this.store,eh.languageUtils=ef,eh.pluralResolver=new t_(ef,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),ed&&(!this.options.interpolation.format||this.options.interpolation.format===eu.interpolation.format)&&(eh.formatter=ec(ed),eh.formatter.init(eh,this.options),this.options.interpolation.format=eh.formatter.format.bind(eh.formatter)),eh.interpolator=new tA(this.options),eh.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},eh.backendConnector=new tR(ec(this.modules.backend),eh.resourceStore,eh,this.options),eh.backendConnector.on("*",function(eo){for(var ea=arguments.length,eu=Array(ea>1?ea-1:0),ec=1;ec1?ea-1:0),ec=1;ec0&&"dev"!==eg[0]&&(this.options.lng=eg[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(function(eo){ei[eo]=function(){var ea;return(ea=ei.store)[eo].apply(ea,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(eo){ei[eo]=function(){var ea;return(ea=ei.store)[eo].apply(ea,arguments),ei}});var em=eR(),eb=function(){var eo=function(eo,eu){ei.isInitialized&&!ei.initializedStoreOnce&&ei.logger.warn("init: i18next is already initialized. You should call init just once!"),ei.isInitialized=!0,ei.options.isClone||ei.logger.log("initialized",ei.options),ei.emit("initialized",ei.options),em.resolve(eu),ea(eo,eu)};if(ei.languages&&"v1"!==ei.options.compatibilityAPI&&!ei.isInitialized)return eo(null,ei.t.bind(ei));ei.changeLanguage(ei.options.lng,eo)};return this.options.resources||!this.options.initImmediate?eb():setTimeout(eb,0),em}},{key:"loadResources",value:function(ei){var eo=this,ea=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tq,eu=ea,ec="string"==typeof ei?ei:this.language;if("function"==typeof ei&&(eu=ei),!this.options.resources||this.options.partialBundledLanguages){if(ec&&"cimode"===ec.toLowerCase())return eu();var ed=[],ef=function(ei){if(ei){var ea=eo.services.languageUtils.toResolveHierarchy(ei);ea.forEach(function(ei){0>ed.indexOf(ei)&&ed.push(ei)})}};ec?ef(ec):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(ei){return ef(ei)}),this.options.preload&&this.options.preload.forEach(function(ei){return ef(ei)}),this.services.backendConnector.load(ed,this.options.ns,function(ei){ei||eo.resolvedLanguage||!eo.language||eo.setResolvedLanguage(eo.language),eu(ei)})}else eu(null)}},{key:"reloadResources",value:function(ei,eo,ea){var eu=eR();return ei||(ei=this.languages),eo||(eo=this.options.ns),ea||(ea=tq),this.services.backendConnector.reload(ei,eo,function(ei){eu.resolve(),ea(ei)}),eu}},{key:"use",value:function(ei){if(!ei)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!ei.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===ei.type&&(this.modules.backend=ei),("logger"===ei.type||ei.log&&ei.warn&&ei.error)&&(this.modules.logger=ei),"languageDetector"===ei.type&&(this.modules.languageDetector=ei),"i18nFormat"===ei.type&&(this.modules.i18nFormat=ei),"postProcessor"===ei.type&&e8.addPostProcessor(ei),"formatter"===ei.type&&(this.modules.formatter=ei),"3rdParty"===ei.type&&this.modules.external.push(ei),this}},{key:"setResolvedLanguage",value:function(ei){if(ei&&this.languages&&!(["cimode","dev"].indexOf(ei)>-1))for(var eo=0;eo-1)&&this.store.hasLanguageSomeTranslations(ea)){this.resolvedLanguage=ea;break}}}},{key:"changeLanguage",value:function(ei,eo){var ea=this;this.isLanguageChangingTo=ei;var eu=eR();this.emit("languageChanging",ei);var ec=function(ei){ea.language=ei,ea.languages=ea.services.languageUtils.toResolveHierarchy(ei),ea.resolvedLanguage=void 0,ea.setResolvedLanguage(ei)},ed=function(ei,ed){ed?(ec(ed),ea.translator.changeLanguage(ed),ea.isLanguageChangingTo=void 0,ea.emit("languageChanged",ed),ea.logger.log("languageChanged",ed)):ea.isLanguageChangingTo=void 0,eu.resolve(function(){return ea.t.apply(ea,arguments)}),eo&&eo(ei,function(){return ea.t.apply(ea,arguments)})},ef=function(eo){ei||eo||!ea.services.languageDetector||(eo=[]);var eu="string"==typeof eo?eo:ea.services.languageUtils.getBestMatchFromCodes(eo);eu&&(ea.language||ec(eu),ea.translator.language||ea.translator.changeLanguage(eu),ea.services.languageDetector&&ea.services.languageDetector.cacheUserLanguage&&ea.services.languageDetector.cacheUserLanguage(eu)),ea.loadResources(eu,function(ei){ed(ei,eu)})};return ei||!this.services.languageDetector||this.services.languageDetector.async?!ei&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(ef):this.services.languageDetector.detect(ef):ef(ei):ef(this.services.languageDetector.detect()),eu}},{key:"getFixedT",value:function(ei,eo,ea){var ec=this,ed=function ei(eo,ed){if("object"!==eu(ed)){for(var ef,eh=arguments.length,eg=Array(eh>2?eh-2:0),em=2;em1&&void 0!==arguments[1]?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;var eu=this.resolvedLanguage||this.languages[0],ec=!!this.options&&this.options.fallbackLng,ed=this.languages[this.languages.length-1];if("cimode"===eu.toLowerCase())return!0;var ef=function(ei,ea){var eu=eo.services.backendConnector.state["".concat(ei,"|").concat(ea)];return-1===eu||2===eu};if(ea.precheck){var eh=ea.precheck(this,ef);if(void 0!==eh)return eh}return!!(this.hasResourceBundle(eu,ei)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||ef(eu,ei)&&(!ec||ef(ed,ei)))}},{key:"loadNamespaces",value:function(ei,eo){var ea=this,eu=eR();return this.options.ns?("string"==typeof ei&&(ei=[ei]),ei.forEach(function(ei){0>ea.options.ns.indexOf(ei)&&ea.options.ns.push(ei)}),this.loadResources(function(ei){eu.resolve(),eo&&eo(ei)}),eu):(eo&&eo(),Promise.resolve())}},{key:"loadLanguages",value:function(ei,eo){var ea=eR();"string"==typeof ei&&(ei=[ei]);var eu=this.options.preload||[],ec=ei.filter(function(ei){return 0>eu.indexOf(ei)});return ec.length?(this.options.preload=eu.concat(ec),this.loadResources(function(ei){ea.resolve(),eo&&eo(ei)}),ea):(eo&&eo(),Promise.resolve())}},{key:"dir",value:function(ei){return(ei||(ei=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),ei)?["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"].indexOf((this.services&&this.services.languageUtils||new tp(tL())).getLanguagePartFromCode(ei))>-1||ei.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var ei=this,eo=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eu=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tq,ec=tU(tU(tU({},this.options),eo),{isClone:!0}),ed=new ea(ec);return(void 0!==eo.debug||void 0!==eo.prefix)&&(ed.logger=ed.logger.clone(eo)),["store","services","language"].forEach(function(eo){ed[eo]=ei[eo]}),ed.services=tU({},this.services),ed.services.utils={hasLoadedNamespace:ed.hasLoadedNamespace.bind(ed)},ed.translator=new td(ed.services,ed.options),ed.translator.on("*",function(ei){for(var eo=arguments.length,ea=Array(eo>1?eo-1:0),eu=1;eu0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1?arguments[1]:void 0;return new tW(ei,eo)});var tK=tW.createInstance();tK.createInstance=tW.createInstance,tK.createInstance,tK.dir,tK.init,tK.loadResources,tK.reloadResources,tK.use,tK.changeLanguage,tK.getFixedT,tK.t,tK.exists,tK.setDefaultNamespace,tK.hasLoadedNamespace,tK.loadNamespaces,tK.loadLanguages},99572:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return e_}});var eu=function(){this.__data__=[],this.size=0},ec=ea(29122),ed=function(ei,eo){for(var ea=ei.length;ea--;)if((0,ec.Z)(ei[ea][0],eo))return ea;return-1},ef=Array.prototype.splice,eh=function(ei){var eo=this.__data__,ea=ed(eo,ei);return!(ea<0)&&(ea==eo.length-1?eo.pop():ef.call(eo,ea,1),--this.size,!0)},eg=function(ei){var eo=this.__data__,ea=ed(eo,ei);return ea<0?void 0:eo[ea][1]},em=function(ei){return ed(this.__data__,ei)>-1},eb=function(ei,eo){var ea=this.__data__,eu=ed(ea,ei);return eu<0?(++this.size,ea.push([ei,eo])):ea[eu][1]=eo,this};function ew(ei){var eo=-1,ea=null==ei?0:ei.length;for(this.clear();++eo0&&ea(eb)?eo>1?em(eb,eo-1,ea,ec,ed):(0,eu.Z)(ed,eb):ec||(ed[ed.length]=eb)}return ed}var eb=em},27430:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eu}});var eu=function(ei){return function(ei,eo,ea){for(var eu=-1,ec=Object(ei),ed=ea(ei),ef=ed.length;ef--;){var eh=ed[++eu];if(!1===eo(ec[eh],eh,ec))break}return ei}}()},65906:function(ei,eo,ea){"use strict";var eu=ea(8354),ec=ea(61701);function ed(ei,eo){eo=(0,eu.Z)(eo,ei);for(var ea=0,ed=eo.length;null!=ei&&eae_))return!1;var eE=eb.get(ei),eA=eb.get(eo);if(eE&&eA)return eE==eo&&eA==ei;var eT=-1,ek=!0,eC=ea&eg?new ec.Z:void 0;for(eb.set(ei,eo),eb.set(eo,ei);++eTec?0:ec+eo),(ea=ea>ec?ec:ea)<0&&(ea+=ec),ec=eo>ea?0:ea-eo>>>0,eo>>>=0;for(var ed=Array(ec);++eu-1&&ei%1==0&&ei0){if(++eo>=eh)return arguments[0]}else eo=0;return ei.apply(void 0,arguments)}}(ef)},43920:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eh}});var eu=ea(9850),ec=500,ed=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ef=/\\(\\)?/g,eh=function(ei){var eo=(0,eu.Z)(ei,function(ei){return ea.size===ec&&ea.clear(),ei}),ea=eo.cache;return eo}(function(ei){var eo=[];return 46===ei.charCodeAt(0)&&eo.push(""),ei.replace(ed,function(ei,ea,eu,ec){eo.push(eu?ec.replace(ef,"$1"):ea||ei)}),eo})},61701:function(ei,eo,ea){"use strict";var eu=ea(52661),ec=1/0;function ed(ei){if("string"==typeof ei||(0,eu.Z)(ei))return ei;var eo=ei+"";return"0"==eo&&1/ei==-ec?"-0":eo}eo.Z=ed},15033:function(ei,eo){"use strict";var ea=Function.prototype.toString;function eu(ei){if(null!=ei){try{return ea.call(ei)}catch(ei){}try{return ei+""}catch(ei){}}return""}eo.Z=eu},69340:function(ei,eo,ea){"use strict";var eu=ea(93553),ec=1,ed=4;function ef(ei){return(0,eu.Z)(ei,ec|ed)}eo.Z=ef},13677:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eb}});var eu=ea(19252),ec=ea(88089),ed=function(){return ec.Z.Date.now()},ef=ea(77209),eh="Expected a function",eg=Math.max,em=Math.min,eb=function(ei,eo,ea){var ec,eb,ew,e_,eS,eE,eA=0,eT=!1,ek=!1,eC=!0;if("function"!=typeof ei)throw TypeError(eh);function eO(eo){var ea=ec,eu=eb;return ec=eb=void 0,eA=eo,e_=ei.apply(eu,ea)}function eI(ei){return eA=ei,eS=setTimeout(eN,eo),eT?eO(ei):e_}function eP(ei){var ea=ei-eE,eu=ei-eA,ec=eo-ea;return ek?em(ec,ew-eu):ec}function eD(ei){var ea=ei-eE,eu=ei-eA;return void 0===eE||ea>=eo||ea<0||ek&&eu>=ew}function eN(){var ei=ed();if(eD(ei))return eM(ei);eS=setTimeout(eN,eP(ei))}function eM(ei){return(eS=void 0,eC&&ec)?eO(ei):(ec=eb=void 0,e_)}function ej(){void 0!==eS&&clearTimeout(eS),eA=0,ec=eE=eb=eS=void 0}function eR(){return void 0===eS?e_:eM(ed())}function eL(){var ei=ed(),ea=eD(ei);if(ec=arguments,eb=this,eE=ei,ea){if(void 0===eS)return eI(eE);if(ek)return clearTimeout(eS),eS=setTimeout(eN,eo),eO(eE)}return void 0===eS&&(eS=setTimeout(eN,eo)),e_}return eo=(0,ef.Z)(eo)||0,(0,eu.Z)(ea)&&(eT=!!ea.leading,ew=(ek="maxWait"in ea)?eg((0,ef.Z)(ea.maxWait)||0,eo):ew,eC="trailing"in ea?!!ea.trailing:eC),eL.cancel=ej,eL.flush=eR,eL}},29122:function(ei,eo){"use strict";function ea(ei,eo){return ei===eo||ei!=ei&&eo!=eo}eo.Z=ea},77377:function(ei,eo,ea){"use strict";var eu=ea(70249);function ec(ei){return(null==ei?0:ei.length)?(0,eu.Z)(ei,1):[]}eo.Z=ec},62009:function(ei,eo){"use strict";function ea(ei){return ei}eo.Z=ea},99212:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eb}});var eu=ea(50430),ec=ea(27732),ed="[object Arguments]",ef=function(ei){return(0,ec.Z)(ei)&&(0,eu.Z)(ei)==ed},eh=Object.prototype,eg=eh.hasOwnProperty,em=eh.propertyIsEnumerable,eb=ef(function(){return arguments}())?ef:function(ei){return(0,ec.Z)(ei)&&eg.call(ei,"callee")&&!em.call(ei,"callee")}},39557:function(ei,eo){"use strict";var ea=Array.isArray;eo.Z=ea},25614:function(ei,eo,ea){"use strict";var eu=ea(29556),ec=ea(34447);function ed(ei){return null!=ei&&(0,ec.Z)(ei.length)&&!(0,eu.Z)(ei)}eo.Z=ed},87077:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eg}});var eu=ea(88089),ec=function(){return!1},ed="object"==typeof exports&&exports&&!exports.nodeType&&exports,ef=ed&&"object"==typeof module&&module&&!module.nodeType&&module,eh=ef&&ef.exports===ed?eu.Z.Buffer:void 0,eg=(eh?eh.isBuffer:void 0)||ec},64124:function(ei,eo,ea){"use strict";var eu=ea(79281),ec=ea(96921),ed=ea(99212),ef=ea(39557),eh=ea(25614),eg=ea(87077),em=ea(89387),eb=ea(50489),ew="[object Map]",e_="[object Set]",eS=Object.prototype.hasOwnProperty;function eE(ei){if(null==ei)return!0;if((0,eh.Z)(ei)&&((0,ef.Z)(ei)||"string"==typeof ei||"function"==typeof ei.splice||(0,eg.Z)(ei)||(0,eb.Z)(ei)||(0,ed.Z)(ei)))return!ei.length;var eo=(0,ec.Z)(ei);if(eo==ew||eo==e_)return!ei.size;if((0,em.Z)(ei))return!(0,eu.Z)(ei).length;for(var ea in ei)if(eS.call(ei,ea))return!1;return!0}eo.Z=eE},63470:function(ei,eo,ea){"use strict";var eu=ea(81912);function ec(ei,eo){return(0,eu.Z)(ei,eo)}eo.Z=ec},29556:function(ei,eo,ea){"use strict";var eu=ea(50430),ec=ea(19252),ed="[object AsyncFunction]",ef="[object Function]",eh="[object GeneratorFunction]",eg="[object Proxy]";function em(ei){if(!(0,ec.Z)(ei))return!1;var eo=(0,eu.Z)(ei);return eo==ef||eo==eh||eo==ed||eo==eg}eo.Z=em},34447:function(ei,eo){"use strict";var ea=9007199254740991;function eu(ei){return"number"==typeof ei&&ei>-1&&ei%1==0&&ei<=ea}eo.Z=eu},19252:function(ei,eo){"use strict";function ea(ei){var eo=typeof ei;return null!=ei&&("object"==eo||"function"==eo)}eo.Z=ea},27732:function(ei,eo){"use strict";function ea(ei){return null!=ei&&"object"==typeof ei}eo.Z=ea},63914:function(ei,eo,ea){"use strict";var eu=ea(50430),ec=ea(51151),ed=ea(27732),ef="[object Object]",eh=Object.prototype,eg=Function.prototype.toString,em=eh.hasOwnProperty,eb=eg.call(Object);function ew(ei){if(!(0,ed.Z)(ei)||(0,eu.Z)(ei)!=ef)return!1;var eo=(0,ec.Z)(ei);if(null===eo)return!0;var ea=em.call(eo,"constructor")&&eo.constructor;return"function"==typeof ea&&ea instanceof ea&&eg.call(ea)==eb}eo.Z=ew},52661:function(ei,eo,ea){"use strict";var eu=ea(50430),ec=ea(27732),ed="[object Symbol]";function ef(ei){return"symbol"==typeof ei||(0,ec.Z)(ei)&&(0,eu.Z)(ei)==ed}eo.Z=ef},50489:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eW}});var eu=ea(50430),ec=ea(34447),ed=ea(27732),ef="[object Arguments]",eh="[object Array]",eg="[object Boolean]",em="[object Date]",eb="[object Error]",ew="[object Function]",e_="[object Map]",eS="[object Number]",eE="[object Object]",eA="[object RegExp]",eT="[object Set]",ek="[object String]",eC="[object WeakMap]",eO="[object ArrayBuffer]",eI="[object DataView]",eP="[object Float64Array]",eD="[object Int8Array]",eN="[object Int16Array]",eM="[object Int32Array]",ej="[object Uint8Array]",eR="[object Uint8ClampedArray]",eL="[object Uint16Array]",eF="[object Uint32Array]",eB={};eB["[object Float32Array]"]=eB[eP]=eB[eD]=eB[eN]=eB[eM]=eB[ej]=eB[eR]=eB[eL]=eB[eF]=!0,eB[ef]=eB[eh]=eB[eO]=eB[eg]=eB[eI]=eB[em]=eB[eb]=eB[ew]=eB[e_]=eB[eS]=eB[eE]=eB[eA]=eB[eT]=eB[ek]=eB[eC]=!1;var eU=function(ei){return(0,ed.Z)(ei)&&(0,ec.Z)(ei.length)&&!!eB[(0,eu.Z)(ei)]},eG=ea(33079),eV=ea(78587),eH=eV.Z&&eV.Z.isTypedArray,eW=eH?(0,eG.Z)(eH):eU},11888:function(ei,eo){"use strict";function ea(ei){return void 0===ei}eo.Z=ea},48832:function(ei,eo,ea){"use strict";var eu=ea(58207),ec=ea(79281),ed=ea(25614);function ef(ei){return(0,ed.Z)(ei)?(0,eu.Z)(ei):(0,ec.Z)(ei)}eo.Z=ef},82287:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eb}});var eu=ea(58207),ec=ea(19252),ed=ea(89387),ef=function(ei){var eo=[];if(null!=ei)for(var ea in Object(ei))eo.push(ea);return eo},eh=Object.prototype.hasOwnProperty,eg=function(ei){if(!(0,ec.Z)(ei))return ef(ei);var eo=(0,ed.Z)(ei),ea=[];for(var eu in ei)"constructor"==eu&&(eo||!eh.call(ei,eu))||ea.push(eu);return ea},em=ea(25614),eb=function(ei){return(0,em.Z)(ei)?(0,eu.Z)(ei,!0):eg(ei)}},9850:function(ei,eo,ea){"use strict";var eu=ea(31446),ec="Expected a function";function ed(ei,eo){if("function"!=typeof ei||null!=eo&&"function"!=typeof eo)throw TypeError(ec);var ea=function(){var eu=arguments,ec=eo?eo.apply(this,eu):eu[0],ed=ea.cache;if(ed.has(ec))return ed.get(ec);var ef=ei.apply(this,eu);return ea.cache=ed.set(ec,ef)||ed,ef};return ea.cache=new(ed.Cache||eu.Z),ea}ed.Cache=eu.Z,eo.Z=ed},54749:function(ei,eo){"use strict";function ea(){}eo.Z=ea},7334:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eI}});var eu=ea(83311),ec=ea(93553),ed=ea(8354),ef=function(ei){var eo=null==ei?0:ei.length;return eo?ei[eo-1]:void 0},eh=ea(65906),eg=ea(51976),em=function(ei,eo){return eo.length<2?ei:(0,eh.Z)(ei,(0,eg.Z)(eo,0,-1))},eb=ea(61701),ew=function(ei,eo){return eo=(0,ed.Z)(eo,ei),null==(ei=em(ei,eo))||delete ei[eb.Z(ef(eo))]},e_=ea(53288),eS=ea(63914),eE=function(ei){return(0,eS.Z)(ei)?void 0:ei},eA=ea(19408),eT=ea(10073),ek=1,eC=2,eO=4,eI=(0,eA.Z)(function(ei,eo){var ea={};if(null==ei)return ea;var ef=!1;eo=(0,eu.Z)(eo,function(eo){return eo=(0,ed.Z)(eo,ei),ef||(ef=eo.length>1),eo}),(0,e_.Z)(ei,(0,eT.Z)(ei),ea),ef&&(ea=(0,ec.Z)(ea,ek|eC|eO,eE));for(var eh=eo.length;eh--;)ew(ea,eo[eh]);return ea})},62142:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eh}});var eu=ea(35128),ec="Expected a function",ed=function(ei){if("function"!=typeof ei)throw TypeError(ec);return function(){var eo=arguments;switch(eo.length){case 0:return!ei.call(this);case 1:return!ei.call(this,eo[0]);case 2:return!ei.call(this,eo[0],eo[1]);case 3:return!ei.call(this,eo[0],eo[1],eo[2])}return!ei.apply(this,eo)}},ef=ea(21289),eh=function(ei,eo){return(0,ef.Z)(ei,ed((0,eu.Z)(eo)))}},21289:function(ei,eo,ea){"use strict";ea.d(eo,{Z:function(){return eE}});var eu=ea(83311),ec=ea(35128),ed=ea(65906),ef=ea(30146),eh=ea(8354),eg=ea(81161),em=ea(19252),eb=ea(61701),ew=function(ei,eo,ea,eu){if(!(0,em.Z)(ei))return ei;eo=(0,eh.Z)(eo,ei);for(var ec=-1,ed=eo.length,ew=ed-1,e_=ei;null!=e_&&++ec"checkbox"===ei.type,ed=ei=>ei instanceof Date,ef=ei=>null==ei;let eh=ei=>"object"==typeof ei;var eg=ei=>!ef(ei)&&!Array.isArray(ei)&&eh(ei)&&!ed(ei),em=ei=>eg(ei)&&ei.target?ec(ei.target)?ei.target.checked:ei.target.value:ei,eb=ei=>ei.substring(0,ei.search(/\.\d+(\.|$)/))||ei,ew=(ei,eo)=>ei.has(eb(eo)),e_=ei=>{let eo=ei.constructor&&ei.constructor.prototype;return eg(eo)&&eo.hasOwnProperty("isPrototypeOf")},eS="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function eE(ei){let eo;let ea=Array.isArray(ei);if(ei instanceof Date)eo=new Date(ei);else if(ei instanceof Set)eo=new Set(ei);else if(!(!(eS&&(ei instanceof Blob||ei instanceof FileList))&&(ea||eg(ei))))return ei;else if(eo=ea?[]:{},ea||e_(ei))for(let ea in ei)ei.hasOwnProperty(ea)&&(eo[ea]=eE(ei[ea]));else eo=ei;return eo}var eA=ei=>Array.isArray(ei)?ei.filter(Boolean):[],eT=ei=>void 0===ei,ek=(ei,eo,ea)=>{if(!eo||!eg(ei))return ea;let eu=eA(eo.split(/[,[\].]+?/)).reduce((ei,eo)=>ef(ei)?ei:ei[eo],ei);return eT(eu)||eu===ei?eT(ei[eo])?ea:ei[eo]:eu},eC=ei=>"boolean"==typeof ei;let eO={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},eI={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},eP={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},eD=eu.createContext(null),eN=()=>eu.useContext(eD),eM=ei=>{let{children:eo,...ea}=ei;return eu.createElement(eD.Provider,{value:ea},eo)};var ej=(ei,eo,ea,eu=!0)=>{let ec={defaultValues:eo._defaultValues};for(let ed in ei)Object.defineProperty(ec,ed,{get:()=>{let ec=ed;return eo._proxyFormState[ec]!==eI.all&&(eo._proxyFormState[ec]=!eu||eI.all),ea&&(ea[ec]=!0),ei[ec]}});return ec},eR=ei=>eg(ei)&&!Object.keys(ei).length,eL=(ei,eo,ea,eu)=>{ea(ei);let{name:ec,...ed}=ei;return eR(ed)||Object.keys(ed).length>=Object.keys(eo).length||Object.keys(ed).find(ei=>eo[ei]===(!eu||eI.all))},eF=ei=>Array.isArray(ei)?ei:[ei],eB=(ei,eo,ea)=>!ei||!eo||ei===eo||eF(ei).some(ei=>ei&&(ea?ei===eo:ei.startsWith(eo)||eo.startsWith(ei)));function eU(ei){let eo=eu.useRef(ei);eo.current=ei,eu.useEffect(()=>{let ea=!ei.disabled&&eo.current.subject&&eo.current.subject.subscribe({next:eo.current.next});return()=>{ea&&ea.unsubscribe()}},[ei.disabled])}function eG(ei){let eo=eN(),{control:ea=eo.control,disabled:ec,name:ed,exact:ef}=ei||{},[eh,eg]=eu.useState(ea._formState),em=eu.useRef(!0),eb=eu.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),ew=eu.useRef(ed);return ew.current=ed,eU({disabled:ec,next:ei=>em.current&&eB(ew.current,ei.name,ef)&&eL(ei,eb.current,ea._updateFormState)&&eg({...ea._formState,...ei}),subject:ea._subjects.state}),eu.useEffect(()=>(em.current=!0,eb.current.isValid&&ea._updateValid(!0),()=>{em.current=!1}),[ea]),ej(eh,ea,eb.current,!1)}var eV=ei=>"string"==typeof ei,eH=(ei,eo,ea,eu,ec)=>eV(ei)?(eu&&eo.watch.add(ei),ek(ea,ei,ec)):Array.isArray(ei)?ei.map(ei=>(eu&&eo.watch.add(ei),ek(ea,ei))):(eu&&(eo.watchAll=!0),ea);function eW(ei){let eo=eN(),{control:ea=eo.control,name:ec,defaultValue:ed,disabled:ef,exact:eh}=ei||{},eg=eu.useRef(ec);eg.current=ec,eU({disabled:ef,subject:ea._subjects.values,next:ei=>{eB(eg.current,ei.name,eh)&&eb(eE(eH(eg.current,ea._names,ei.values||ea._formValues,!1,ed)))}});let[em,eb]=eu.useState(ea._getWatch(ec,ed));return eu.useEffect(()=>ea._removeUnmounted()),em}var eK=ei=>/^\w*$/.test(ei),eY=ei=>eA(ei.replace(/["|']|\]/g,"").split(/\.|\[/));function eZ(ei,eo,ea){let eu=-1,ec=eK(eo)?[eo]:eY(eo),ed=ec.length,ef=ed-1;for(;++eueo?{...ea[ei],types:{...ea[ei]&&ea[ei].types?ea[ei].types:{},[eu]:ec||!0}}:{};let eJ=(ei,eo,ea)=>{for(let eu of ea||Object.keys(ei)){let ea=ek(ei,eu);if(ea){let{_f:ei,...eu}=ea;if(ei&&eo(ei.name)){if(ei.ref.focus){ei.ref.focus();break}if(ei.refs&&ei.refs[0].focus){ei.refs[0].focus();break}}else eg(eu)&&eJ(eu,eo)}}};var eQ=ei=>({isOnSubmit:!ei||ei===eI.onSubmit,isOnBlur:ei===eI.onBlur,isOnChange:ei===eI.onChange,isOnAll:ei===eI.all,isOnTouch:ei===eI.onTouched}),eX=(ei,eo,ea)=>!ea&&(eo.watchAll||eo.watch.has(ei)||[...eo.watch].some(eo=>ei.startsWith(eo)&&/^\.\w+/.test(ei.slice(eo.length)))),e0=(ei,eo,ea)=>{let eu=eA(ek(ei,ea));return eZ(eu,"root",eo[ea]),eZ(ei,ea,eu),ei},e3=ei=>"file"===ei.type,e5=ei=>"function"==typeof ei,e4=ei=>{if(!eS)return!1;let eo=ei?ei.ownerDocument:0;return ei instanceof(eo&&eo.defaultView?eo.defaultView.HTMLElement:HTMLElement)},e6=ei=>eV(ei),e8=ei=>"radio"===ei.type,e9=ei=>ei instanceof RegExp;let e7={value:!1,isValid:!1},ta={value:!0,isValid:!0};var tu=ei=>{if(Array.isArray(ei)){if(ei.length>1){let eo=ei.filter(ei=>ei&&ei.checked&&!ei.disabled).map(ei=>ei.value);return{value:eo,isValid:!!eo.length}}return ei[0].checked&&!ei[0].disabled?ei[0].attributes&&!eT(ei[0].attributes.value)?eT(ei[0].value)||""===ei[0].value?ta:{value:ei[0].value,isValid:!0}:ta:e7}return e7};let tc={isValid:!1,value:null};var td=ei=>Array.isArray(ei)?ei.reduce((ei,eo)=>eo&&eo.checked&&!eo.disabled?{isValid:!0,value:eo.value}:ei,tc):tc;function tf(ei,eo,ea="validate"){if(e6(ei)||Array.isArray(ei)&&ei.every(e6)||eC(ei)&&!ei)return{type:ea,message:e6(ei)?ei:"",ref:eo}}var tp=ei=>eg(ei)&&!e9(ei)?ei:{value:ei,message:""},tg=async(ei,eo,ea,eu,ed)=>{let{ref:eh,refs:em,required:eb,maxLength:ew,minLength:e_,min:eS,max:eE,pattern:eA,validate:eO,name:eI,valueAsNumber:eD,mount:eN,disabled:eM}=ei._f,ej=ek(eo,eI);if(!eN||eM)return{};let eL=em?em[0]:eh,eF=ei=>{eu&&eL.reportValidity&&(eL.setCustomValidity(eC(ei)?"":ei||""),eL.reportValidity())},eB={},eU=e8(eh),eG=ec(eh),eH=eU||eG,eW=(eD||e3(eh))&&eT(eh.value)&&eT(ej)||e4(eh)&&""===eh.value||""===ej||Array.isArray(ej)&&!ej.length,eK=e$.bind(null,eI,ea,eB),eY=(ei,eo,ea,eu=eP.maxLength,ec=eP.minLength)=>{let ed=ei?eo:ea;eB[eI]={type:ei?eu:ec,message:ed,ref:eh,...eK(ei?eu:ec,ed)}};if(ed?!Array.isArray(ej)||!ej.length:eb&&(!eH&&(eW||ef(ej))||eC(ej)&&!ej||eG&&!tu(em).isValid||eU&&!td(em).isValid)){let{value:ei,message:eo}=e6(eb)?{value:!!eb,message:eb}:tp(eb);if(ei&&(eB[eI]={type:eP.required,message:eo,ref:eL,...eK(eP.required,eo)},!ea))return eF(eo),eB}if(!eW&&(!ef(eS)||!ef(eE))){let ei,eo;let eu=tp(eE),ec=tp(eS);if(ef(ej)||isNaN(ej)){let ea=eh.valueAsDate||new Date(ej),ed=ei=>new Date(new Date().toDateString()+" "+ei),ef="time"==eh.type,eg="week"==eh.type;eV(eu.value)&&ej&&(ei=ef?ed(ej)>ed(eu.value):eg?ej>eu.value:ea>new Date(eu.value)),eV(ec.value)&&ej&&(eo=ef?ed(ej)eu.value),ef(ec.value)||(eo=ea+ei.value,ec=!ef(eo.value)&&ej.length<+eo.value;if((eu||ec)&&(eY(eu,ei.message,eo.message),!ea))return eF(eB[eI].message),eB}if(eA&&!eW&&eV(ej)){let{value:ei,message:eo}=tp(eA);if(e9(ei)&&!ej.match(ei)&&(eB[eI]={type:eP.pattern,message:eo,ref:eh,...eK(eP.pattern,eo)},!ea))return eF(eo),eB}if(eO){if(e5(eO)){let ei=await eO(ej,eo),eu=tf(ei,eL);if(eu&&(eB[eI]={...eu,...eK(eP.validate,eu.message)},!ea))return eF(eu.message),eB}else if(eg(eO)){let ei={};for(let eu in eO){if(!eR(ei)&&!ea)break;let ec=tf(await eO[eu](ej,eo),eL,eu);ec&&(ei={...ec,...eK(eu,ec.message)},eF(ec.message),ea&&(eB[eI]=ei))}if(!eR(ei)&&(eB[eI]={ref:eL,...ei},!ea))return eB}}return eF(!0),eB};function tm(ei,eo){let ea=eo.slice(0,-1).length,eu=0;for(;eu{for(let ea of ei)ea.next&&ea.next(eo)},ea=eo=>(ei.push(eo),{unsubscribe:()=>{ei=ei.filter(ei=>ei!==eo)}}),eu=()=>{ei=[]};return{get observers(){return ei},next:eo,subscribe:ea,unsubscribe:eu}}var t_=ei=>ef(ei)||!eh(ei);function tS(ei,eo){if(t_(ei)||t_(eo))return ei===eo;if(ed(ei)&&ed(eo))return ei.getTime()===eo.getTime();let ea=Object.keys(ei),eu=Object.keys(eo);if(ea.length!==eu.length)return!1;for(let ec of ea){let ea=ei[ec];if(!eu.includes(ec))return!1;if("ref"!==ec){let ei=eo[ec];if(ed(ea)&&ed(ei)||eg(ea)&&eg(ei)||Array.isArray(ea)&&Array.isArray(ei)?!tS(ea,ei):ea!==ei)return!1}}return!0}var tE=ei=>"select-multiple"===ei.type,tA=ei=>e8(ei)||ec(ei),tT=ei=>e4(ei)&&ei.isConnected,tk=ei=>{for(let eo in ei)if(e5(ei[eo]))return!0;return!1};function tC(ei,eo={}){let ea=Array.isArray(ei);if(eg(ei)||ea)for(let ea in ei)Array.isArray(ei[ea])||eg(ei[ea])&&!tk(ei[ea])?(eo[ea]=Array.isArray(ei[ea])?[]:{},tC(ei[ea],eo[ea])):ef(ei[ea])||(eo[ea]=!0);return eo}function tO(ei,eo,ea){let eu=Array.isArray(ei);if(eg(ei)||eu)for(let eu in ei)Array.isArray(ei[eu])||eg(ei[eu])&&!tk(ei[eu])?eT(eo)||t_(ea[eu])?ea[eu]=Array.isArray(ei[eu])?tC(ei[eu],[]):{...tC(ei[eu])}:tO(ei[eu],ef(eo)?{}:eo[eu],ea[eu]):ea[eu]=!tS(ei[eu],eo[eu]);return ea}var tI=(ei,eo)=>tO(ei,eo,tC(eo)),tP=(ei,{valueAsNumber:eo,valueAsDate:ea,setValueAs:eu})=>eT(ei)?ei:eo?""===ei?NaN:ei?+ei:ei:ea&&eV(ei)?new Date(ei):eu?eu(ei):ei;function tD(ei){let eo=ei.ref;return(ei.refs?ei.refs.every(ei=>ei.disabled):eo.disabled)?void 0:e3(eo)?eo.files:e8(eo)?td(ei.refs).value:tE(eo)?[...eo.selectedOptions].map(({value:ei})=>ei):ec(eo)?tu(ei.refs).value:tP(eT(eo.value)?ei.ref.value:eo.value,ei)}var tN=(ei,eo,ea,eu)=>{let ec={};for(let ea of ei){let ei=ek(eo,ea);ei&&eZ(ec,ea,ei._f)}return{criteriaMode:ea,names:[...ei],fields:ec,shouldUseNativeValidation:eu}},tM=ei=>eT(ei)?ei:e9(ei)?ei.source:eg(ei)?e9(ei.value)?ei.value.source:ei.value:ei,tj=ei=>ei.mount&&(ei.required||ei.min||ei.max||ei.maxLength||ei.minLength||ei.pattern||ei.validate);function tR(ei,eo,ea){let eu=ek(ei,ea);if(eu||eK(ea))return{error:eu,name:ea};let ec=ea.split(".");for(;ec.length;){let eu=ec.join("."),ed=ek(eo,eu),ef=ek(ei,eu);if(ed&&!Array.isArray(ed)&&ea!==eu)break;if(ef&&ef.type)return{name:eu,error:ef};ec.pop()}return{name:ea}}var tL=(ei,eo,ea,eu,ec)=>!ec.isOnAll&&(!ea&&ec.isOnTouch?!(eo||ei):(ea?eu.isOnBlur:ec.isOnBlur)?!ei:(ea?!eu.isOnChange:!ec.isOnChange)||ei),tF=(ei,eo)=>!eA(ek(ei,eo)).length&&tb(ei,eo);let tB={mode:eI.onSubmit,reValidateMode:eI.onChange,shouldFocusError:!0};function tU(ei={},eo){let ea,eu={...tB,...ei},eh={submitCount:0,isDirty:!1,isLoading:e5(eu.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},eb={},e_=(eg(eu.defaultValues)||eg(eu.values))&&eE(eu.defaultValues||eu.values)||{},eP=eu.shouldUnregister?{}:eE(e_),eD={action:!1,mount:!1,watch:!1},eN={mount:new Set,unMount:new Set,array:new Set,watch:new Set},eM=0,ej={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},eL={values:tw(),array:tw(),state:tw()},eB=ei.resetOptions&&ei.resetOptions.keepDirtyValues,eU=eQ(eu.mode),eG=eQ(eu.reValidateMode),eW=eu.criteriaMode===eI.all,eK=ei=>eo=>{clearTimeout(eM),eM=setTimeout(ei,eo)},eY=async ei=>{if(ej.isValid||ei){let ei=eu.resolver?eR((await tu()).errors):await td(eb,!0);ei!==eh.isValid&&eL.state.next({isValid:ei})}},e$=ei=>ej.isValidating&&eL.state.next({isValidating:ei}),e6=(ei,eo=[],ea,eu,ec=!0,ed=!0)=>{if(eu&&ea){if(eD.action=!0,ed&&Array.isArray(ek(eb,ei))){let eo=ea(ek(eb,ei),eu.argA,eu.argB);ec&&eZ(eb,ei,eo)}if(ed&&Array.isArray(ek(eh.errors,ei))){let eo=ea(ek(eh.errors,ei),eu.argA,eu.argB);ec&&eZ(eh.errors,ei,eo),tF(eh.errors,ei)}if(ej.touchedFields&&ed&&Array.isArray(ek(eh.touchedFields,ei))){let eo=ea(ek(eh.touchedFields,ei),eu.argA,eu.argB);ec&&eZ(eh.touchedFields,ei,eo)}ej.dirtyFields&&(eh.dirtyFields=tI(e_,eP)),eL.state.next({name:ei,isDirty:tp(ei,eo),dirtyFields:eh.dirtyFields,errors:eh.errors,isValid:eh.isValid})}else eZ(eP,ei,eo)},e8=(ei,eo)=>{eZ(eh.errors,ei,eo),eL.state.next({errors:eh.errors})},e9=(ei,eo,ea,eu)=>{let ec=ek(eb,ei);if(ec){let ed=ek(eP,ei,eT(ea)?ek(e_,ei):ea);eT(ed)||eu&&eu.defaultChecked||eo?eZ(eP,ei,eo?ed:tD(ec._f)):tk(ei,ed),eD.mount&&eY()}},e7=(ei,eo,ea,eu,ec)=>{let ed=!1,ef=!1,eg={name:ei};if(!ea||eu){ej.isDirty&&(ef=eh.isDirty,eh.isDirty=eg.isDirty=tp(),ed=ef!==eg.isDirty);let ea=tS(ek(e_,ei),eo);ef=ek(eh.dirtyFields,ei),ea?tb(eh.dirtyFields,ei):eZ(eh.dirtyFields,ei,!0),eg.dirtyFields=eh.dirtyFields,ed=ed||ej.dirtyFields&&!ea!==ef}if(ea){let eo=ek(eh.touchedFields,ei);eo||(eZ(eh.touchedFields,ei,ea),eg.touchedFields=eh.touchedFields,ed=ed||ej.touchedFields&&eo!==ea)}return ed&&ec&&eL.state.next(eg),ed?eg:{}},ta=(eo,eu,ec,ed)=>{let ef=ek(eh.errors,eo),eg=ej.isValid&&eC(eu)&&eh.isValid!==eu;if(ei.delayError&&ec?(ea=eK(()=>e8(eo,ec)))(ei.delayError):(clearTimeout(eM),ea=null,ec?eZ(eh.errors,eo,ec):tb(eh.errors,eo)),(ec?!tS(ef,ec):ef)||!eR(ed)||eg){let ei={...ed,...eg&&eC(eu)?{isValid:eu}:{},errors:eh.errors,name:eo};eh={...eh,...ei},eL.state.next(ei)}e$(!1)},tu=async ei=>eu.resolver(eP,eu.context,tN(ei||eN.mount,eb,eu.criteriaMode,eu.shouldUseNativeValidation)),tc=async ei=>{let{errors:eo}=await tu(ei);if(ei)for(let ea of ei){let ei=ek(eo,ea);ei?eZ(eh.errors,ea,ei):tb(eh.errors,ea)}else eh.errors=eo;return eo},td=async(ei,eo,ea={valid:!0})=>{for(let ec in ei){let ed=ei[ec];if(ed){let{_f:ei,...ec}=ed;if(ei){let ec=eN.array.has(ei.name),ef=await tg(ed,eP,eW,eu.shouldUseNativeValidation&&!eo,ec);if(ef[ei.name]&&(ea.valid=!1,eo))break;eo||(ek(ef,ei.name)?ec?e0(eh.errors,ef,ei.name):eZ(eh.errors,ei.name,ef[ei.name]):tb(eh.errors,ei.name))}ec&&await td(ec,eo,ea)}}return ea.valid},tf=()=>{for(let ei of eN.unMount){let eo=ek(eb,ei);eo&&(eo._f.refs?eo._f.refs.every(ei=>!tT(ei)):!tT(eo._f.ref))&&tY(ei)}eN.unMount=new Set},tp=(ei,eo)=>(ei&&eo&&eZ(eP,ei,eo),!tS(tV(),e_)),tm=(ei,eo,ea)=>eH(ei,eN,{...eD.mount?eP:eT(eo)?e_:eV(ei)?{[ei]:eo}:eo},ea,eo),tv=eo=>eA(ek(eD.mount?eP:e_,eo,ei.shouldUnregister?ek(e_,eo,[]):[])),tk=(ei,eo,ea={})=>{let eu=ek(eb,ei),ed=eo;if(eu){let ea=eu._f;ea&&(ea.disabled||eZ(eP,ei,tP(eo,ea)),ed=e4(ea.ref)&&ef(eo)?"":eo,tE(ea.ref)?[...ea.ref.options].forEach(ei=>ei.selected=ed.includes(ei.value)):ea.refs?ec(ea.ref)?ea.refs.length>1?ea.refs.forEach(ei=>(!ei.defaultChecked||!ei.disabled)&&(ei.checked=Array.isArray(ed)?!!ed.find(eo=>eo===ei.value):ed===ei.value)):ea.refs[0]&&(ea.refs[0].checked=!!ed):ea.refs.forEach(ei=>ei.checked=ei.value===ed):e3(ea.ref)?ea.ref.value="":(ea.ref.value=ed,ea.ref.type||eL.values.next({name:ei,values:{...eP}})))}(ea.shouldDirty||ea.shouldTouch)&&e7(ei,ed,ea.shouldTouch,ea.shouldDirty,!0),ea.shouldValidate&&tG(ei)},tC=(ei,eo,ea)=>{for(let eu in eo){let ec=eo[eu],ef=`${ei}.${eu}`,eh=ek(eb,ef);!eN.array.has(ei)&&t_(ec)&&(!eh||eh._f)||ed(ec)?tk(ef,ec,ea):tC(ef,ec,ea)}},tO=(ei,ea,eu={})=>{let ec=ek(eb,ei),ed=eN.array.has(ei),eg=eE(ea);eZ(eP,ei,eg),ed?(eL.array.next({name:ei,values:{...eP}}),(ej.isDirty||ej.dirtyFields)&&eu.shouldDirty&&eL.state.next({name:ei,dirtyFields:tI(e_,eP),isDirty:tp(ei,eg)})):!ec||ec._f||ef(eg)?tk(ei,eg,eu):tC(ei,eg,eu),eX(ei,eN)&&eL.state.next({...eh}),eL.values.next({name:ei,values:{...eP}}),eD.mount||eo()},tU=async ei=>{let eo=ei.target,ec=eo.name,ed=!0,ef=ek(eb,ec),eg=()=>eo.type?tD(ef._f):em(ei);if(ef){let eo,em;let ew=eg(),e_=ei.type===eO.BLUR||ei.type===eO.FOCUS_OUT,eS=!tj(ef._f)&&!eu.resolver&&!ek(eh.errors,ec)&&!ef._f.deps||tL(e_,ek(eh.touchedFields,ec),eh.isSubmitted,eG,eU),eE=eX(ec,eN,e_);eZ(eP,ec,ew),e_?(ef._f.onBlur&&ef._f.onBlur(ei),ea&&ea(0)):ef._f.onChange&&ef._f.onChange(ei);let eA=e7(ec,ew,e_,!1),eT=!eR(eA)||eE;if(e_||eL.values.next({name:ec,type:ei.type,values:{...eP}}),eS)return ej.isValid&&eY(),eT&&eL.state.next({name:ec,...eE?{}:eA});if(!e_&&eE&&eL.state.next({...eh}),e$(!0),eu.resolver){let{errors:ei}=await tu([ec]),ea=tR(eh.errors,eb,ec),eu=tR(ei,eb,ea.name||ec);eo=eu.error,ec=eu.name,em=eR(ei)}else eo=(await tg(ef,eP,eW,eu.shouldUseNativeValidation))[ec],(ed=Number.isNaN(ew)||ew===ek(eP,ec,ew))&&(eo?em=!1:ej.isValid&&(em=await td(eb,!0)));ed&&(ef._f.deps&&tG(ef._f.deps),ta(ec,em,eo,eA))}},tG=async(ei,eo={})=>{let ea,ec;let ed=eF(ei);if(e$(!0),eu.resolver){let eo=await tc(eT(ei)?ei:ed);ea=eR(eo),ec=ei?!ed.some(ei=>ek(eo,ei)):ea}else ei?((ec=(await Promise.all(ed.map(async ei=>{let eo=ek(eb,ei);return await td(eo&&eo._f?{[ei]:eo}:eo)}))).every(Boolean))||eh.isValid)&&eY():ec=ea=await td(eb);return eL.state.next({...!eV(ei)||ej.isValid&&ea!==eh.isValid?{}:{name:ei},...eu.resolver||!ei?{isValid:ea}:{},errors:eh.errors,isValidating:!1}),eo.shouldFocus&&!ec&&eJ(eb,ei=>ei&&ek(eh.errors,ei),ei?ed:eN.mount),ec},tV=ei=>{let eo={...e_,...eD.mount?eP:{}};return eT(ei)?eo:eV(ei)?ek(eo,ei):ei.map(ei=>ek(eo,ei))},tq=(ei,eo)=>({invalid:!!ek((eo||eh).errors,ei),isDirty:!!ek((eo||eh).dirtyFields,ei),isTouched:!!ek((eo||eh).touchedFields,ei),error:ek((eo||eh).errors,ei)}),tH=ei=>{ei&&eF(ei).forEach(ei=>tb(eh.errors,ei)),eL.state.next({errors:ei?eh.errors:{}})},tW=(ei,eo,ea)=>{let eu=(ek(eb,ei,{_f:{}})._f||{}).ref;eZ(eh.errors,ei,{...eo,ref:eu}),eL.state.next({name:ei,errors:eh.errors,isValid:!1}),ea&&ea.shouldFocus&&eu&&eu.focus&&eu.focus()},tK=(ei,eo)=>e5(ei)?eL.values.subscribe({next:ea=>ei(tm(void 0,eo),ea)}):tm(ei,eo,!0),tY=(ei,eo={})=>{for(let ea of ei?eF(ei):eN.mount)eN.mount.delete(ea),eN.array.delete(ea),eo.keepValue||(tb(eb,ea),tb(eP,ea)),eo.keepError||tb(eh.errors,ea),eo.keepDirty||tb(eh.dirtyFields,ea),eo.keepTouched||tb(eh.touchedFields,ea),eu.shouldUnregister||eo.keepDefaultValue||tb(e_,ea);eL.values.next({values:{...eP}}),eL.state.next({...eh,...eo.keepDirty?{isDirty:tp()}:{}}),eo.keepIsValid||eY()},tZ=({disabled:ei,name:eo,field:ea,fields:eu})=>{if(eC(ei)){let ec=ei?void 0:ek(eP,eo,tD(ea?ea._f:ek(eu,eo)._f));eZ(eP,eo,ec),e7(eo,ec,!1,!1,!0)}},t$=(ei,eo={})=>{let ea=ek(eb,ei),ec=eC(eo.disabled);return eZ(eb,ei,{...ea||{},_f:{...ea&&ea._f?ea._f:{ref:{name:ei}},name:ei,mount:!0,...eo}}),eN.mount.add(ei),ea?tZ({field:ea,disabled:eo.disabled,name:ei}):e9(ei,!0,eo.value),{...ec?{disabled:eo.disabled}:{},...eu.progressive?{required:!!eo.required,min:tM(eo.min),max:tM(eo.max),minLength:tM(eo.minLength),maxLength:tM(eo.maxLength),pattern:tM(eo.pattern)}:{},name:ei,onChange:tU,onBlur:tU,ref:ec=>{if(ec){t$(ei,eo),ea=ek(eb,ei);let eu=eT(ec.value)&&ec.querySelectorAll&&ec.querySelectorAll("input,select,textarea")[0]||ec,ed=tA(eu),ef=ea._f.refs||[];(ed?ef.find(ei=>ei===eu):eu===ea._f.ref)||(eZ(eb,ei,{_f:{...ea._f,...ed?{refs:[...ef.filter(tT),eu,...Array.isArray(ek(e_,ei))?[{}]:[]],ref:{type:eu.type,name:ei}}:{ref:eu}}}),e9(ei,!1,void 0,eu))}else(ea=ek(eb,ei,{}))._f&&(ea._f.mount=!1),(eu.shouldUnregister||eo.shouldUnregister)&&!(ew(eN.array,ei)&&eD.action)&&eN.unMount.add(ei)}}},tJ=()=>eu.shouldFocusError&&eJ(eb,ei=>ei&&ek(eh.errors,ei),eN.mount),tQ=(ei,eo)=>async ea=>{ea&&(ea.preventDefault&&ea.preventDefault(),ea.persist&&ea.persist());let ec=eE(eP);if(eL.state.next({isSubmitting:!0}),eu.resolver){let{errors:ei,values:eo}=await tu();eh.errors=ei,ec=eo}else await td(eb);tb(eh.errors,"root"),eR(eh.errors)?(eL.state.next({errors:{}}),await ei(ec,ea)):(eo&&await eo({...eh.errors},ea),tJ(),setTimeout(tJ)),eL.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:eR(eh.errors),submitCount:eh.submitCount+1,errors:eh.errors})},tX=(ei,eo={})=>{ek(eb,ei)&&(eT(eo.defaultValue)?tO(ei,ek(e_,ei)):(tO(ei,eo.defaultValue),eZ(e_,ei,eo.defaultValue)),eo.keepTouched||tb(eh.touchedFields,ei),eo.keepDirty||(tb(eh.dirtyFields,ei),eh.isDirty=eo.defaultValue?tp(ei,ek(e_,ei)):tp()),!eo.keepError&&(tb(eh.errors,ei),ej.isValid&&eY()),eL.state.next({...eh}))},ra=(ea,eu={})=>{let ec=ea?eE(ea):e_,ed=eE(ec),ef=ea&&!eR(ea)?ed:e_;if(eu.keepDefaultValues||(e_=ec),!eu.keepValues){if(eu.keepDirtyValues||eB)for(let ei of eN.mount)ek(eh.dirtyFields,ei)?eZ(ef,ei,ek(eP,ei)):tO(ei,ek(ef,ei));else{if(eS&&eT(ea))for(let ei of eN.mount){let eo=ek(eb,ei);if(eo&&eo._f){let ei=Array.isArray(eo._f.refs)?eo._f.refs[0]:eo._f.ref;if(e4(ei)){let eo=ei.closest("form");if(eo){eo.reset();break}}}}eb={}}eP=ei.shouldUnregister?eu.keepDefaultValues?eE(e_):{}:eE(ef),eL.array.next({values:{...ef}}),eL.values.next({values:{...ef}})}eN={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},eD.mount||eo(),eD.mount=!ej.isValid||!!eu.keepIsValid,eD.watch=!!ei.shouldUnregister,eL.state.next({submitCount:eu.keepSubmitCount?eh.submitCount:0,isDirty:eu.keepDirty?eh.isDirty:!!(eu.keepDefaultValues&&!tS(ea,e_)),isSubmitted:!!eu.keepIsSubmitted&&eh.isSubmitted,dirtyFields:eu.keepDirtyValues?eh.dirtyFields:eu.keepDefaultValues&&ea?tI(e_,ea):{},touchedFields:eu.keepTouched?eh.touchedFields:{},errors:eu.keepErrors?eh.errors:{},isSubmitSuccessful:!!eu.keepIsSubmitSuccessful&&eh.isSubmitSuccessful,isSubmitting:!1})},ru=(ei,eo)=>ra(e5(ei)?ei(eP):ei,eo),rc=(ei,eo={})=>{let ea=ek(eb,ei),eu=ea&&ea._f;if(eu){let ei=eu.refs?eu.refs[0]:eu.ref;ei.focus&&(ei.focus(),eo.shouldSelect&&ei.select())}},rf=ei=>{eh={...eh,...ei}},rh=()=>e5(eu.defaultValues)&&eu.defaultValues().then(ei=>{ru(ei,eu.resetOptions),eL.state.next({isLoading:!1})});return{control:{register:t$,unregister:tY,getFieldState:tq,handleSubmit:tQ,setError:tW,_executeSchema:tu,_getWatch:tm,_getDirty:tp,_updateValid:eY,_removeUnmounted:tf,_updateFieldArray:e6,_updateDisabledField:tZ,_getFieldArray:tv,_reset:ra,_resetDefaultValues:rh,_updateFormState:rf,_subjects:eL,_proxyFormState:ej,get _fields(){return eb},get _formValues(){return eP},get _state(){return eD},set _state(value){eD=value},get _defaultValues(){return e_},get _names(){return eN},set _names(value){eN=value},get _formState(){return eh},set _formState(value){eh=value},get _options(){return eu},set _options(value){eu={...eu,...value}}},trigger:tG,register:t$,handleSubmit:tQ,watch:tK,setValue:tO,getValues:tV,reset:ru,resetField:tX,clearErrors:tH,unregister:tY,setError:tW,setFocus:rc,getFieldState:tq}}function tG(ei={}){let eo=eu.useRef(),ea=eu.useRef(),[ec,ed]=eu.useState({isDirty:!1,isValidating:!1,isLoading:e5(ei.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:e5(ei.defaultValues)?void 0:ei.defaultValues});eo.current||(eo.current={...tU(ei,()=>ed(ei=>({...ei}))),formState:ec});let ef=eo.current.control;return ef._options=ei,eU({subject:ef._subjects.state,next:ei=>{eL(ei,ef._proxyFormState,ef._updateFormState,!0)&&ed({...ef._formState})}}),eu.useEffect(()=>{ei.values&&!tS(ei.values,ea.current)?(ef._reset(ei.values,ef._options.resetOptions),ea.current=ei.values):ef._resetDefaultValues()},[ei.values,ef]),eu.useEffect(()=>{ef._state.mount||(ef._updateValid(),ef._state.mount=!0),ef._state.watch&&(ef._state.watch=!1,ef._subjects.state.next({...ef._formState})),ef._removeUnmounted()}),eo.current.formState=ej(ec,ef),eo.current}},1922:function(ei,eo,ea){"use strict";function eu(ei){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ei){return typeof ei}:function(ei){return ei&&"function"==typeof Symbol&&ei.constructor===Symbol&&ei!==Symbol.prototype?"symbol":typeof ei})(ei)}function ec(ei,eo){if("object"!==eu(ei)||null===ei)return ei;var ea=ei[Symbol.toPrimitive];if(void 0!==ea){var ec=ea.call(ei,eo||"default");if("object"!==eu(ec))return ec;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===eo?String:Number)(ei)}function ed(ei){var eo=ec(ei,"string");return"symbol"===eu(eo)?eo:String(eo)}function ef(ei,eo,ea){return(eo=ed(eo))in ei?Object.defineProperty(ei,eo,{value:ea,enumerable:!0,configurable:!0,writable:!0}):ei[eo]=ea,ei}function eh(ei,eo){if(null==ei)return{};var ea,eu,ec={},ed=Object.keys(ei);for(eu=0;eu=0||(ec[ea]=ei[ea]);return ec}function eg(ei,eo){if(null==ei)return{};var ea,eu,ec=eh(ei,eo);if(Object.getOwnPropertySymbols){var ed=Object.getOwnPropertySymbols(ei);for(eu=0;eu=0)&&Object.prototype.propertyIsEnumerable.call(ei,ea)&&(ec[ea]=ei[ea])}return ec}ea.d(eo,{a3:function(){return tE},cC:function(){return tc},$G:function(){return tS}});var em,eb=ea(67294),ew=ea(71739),e_=ea.n(ew),eS=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function eE(ei){var eo={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},ea=ei.match(/<\/?([^\s]+?)[/\s>]/);if(ea&&(eo.name=ea[1],(e_()[ea[1]]||"/"===ei.charAt(ei.length-2))&&(eo.voidElement=!0),eo.name.startsWith("!--"))){var eu=ei.indexOf("-->");return{type:"comment",comment:-1!==eu?ei.slice(4,eu):""}}for(var ec=new RegExp(eS),ed=null;null!==(ed=ec.exec(ei));)if(ed[0].trim()){if(ed[1]){var ef=ed[1].trim(),eh=[ef,""];ef.indexOf("=")>-1&&(eh=ef.split("=")),eo.attrs[eh[0]]=eh[1],ec.lastIndex--}else ed[2]&&(eo.attrs[ed[2]]=ed[3].trim().substring(1,ed[3].length-1))}return eo}var eA=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,eT=/^\s*$/,ek=Object.create(null);function eC(ei,eo){switch(eo.type){case"text":return ei+eo.content;case"tag":return ei+="<"+eo.name+(eo.attrs?function(ei){var eo=[];for(var ea in ei)eo.push(ea+'="'+ei[ea]+'"');return eo.length?" "+eo.join(" "):""}(eo.attrs):"")+(eo.voidElement?"/>":">"),eo.voidElement?ei:ei+eo.children.reduce(eC,"")+"";case"comment":return ei+""}}var eO={parse:function(ei,eo){eo||(eo={}),eo.components||(eo.components=ek);var ea,eu=[],ec=[],ed=-1,ef=!1;if(0!==ei.indexOf("<")){var eh=ei.indexOf("<");eu.push({type:"text",content:-1===eh?ei:ei.substring(0,eh)})}return ei.replace(eA,function(eh,eg){if(ef){if(eh!=="")return;ef=!1}var em,eb="/"!==eh.charAt(1),ew=eh.startsWith("0;)eg=em[eb](eg);return eg(ed,ef||eh.fetcher,eh)}},tm=function(ei,eo,ea){var eu=eo[ei]||(eo[ei]=[]);return eu.push(ea),function(){var ei=eu.indexOf(ea);ei>=0&&(eu[ei]=eu[eu.length-1],eu.pop())}},tv={dedupe:!0},tb=function(ei,eo,ea){var ef=ea.cache,eg=ea.compare,e_=ea.fallbackData,eS=ea.suspense,eE=ea.revalidateOnMount,eA=ea.refreshInterval,eT=ea.refreshWhenHidden,ek=ea.refreshWhenOffline,eC=eK.get(ef),eO=eC[0],eI=eC[1],eP=eC[2],eD=eC[3],eN=eW(ei),eM=eN[0],ej=eN[1],eR=eN[2],eL=(0,eu.useRef)(!1),eF=(0,eu.useRef)(!1),eV=(0,eu.useRef)(eM),eH=(0,eu.useRef)(eo),eQ=(0,eu.useRef)(ea),e3=function(){return eQ.current},e5=function(){return e3().isVisible()&&e3().isOnline()},e4=function(ei){return ef.set(eR,ew(ef.get(eR),ei))},e6=ef.get(eM),e8=em(e_)?ea.fallback[eM]:e_,e9=em(e6)?e8:e6,e7=ef.get(eR)||{},ta=e7.error,tu=!eL.current,tc=function(){return tu&&!em(eE)?eE:!e3().isPaused()&&(eS?!em(e9)&&ea.revalidateIfStale:em(e9)||ea.revalidateIfStale)},tf=function(){return!!eM&&!!eo&&(!!e7.isValidating||tu&&tc())}(),tp=td({data:e9,error:ta,isValidating:tf},eF),tg=tp[0],tb=tp[1],tw=tp[2],t_=(0,eu.useCallback)(function(ei){return ec(void 0,void 0,void 0,function(){var eo,eu,ec,ew,e_,eS,eE,eA,eT,ek,eC,eO,eI;return ed(this,function(ed){switch(ed.label){case 0:if(eo=eH.current,!eM||!eo||eF.current||e3().isPaused())return[2,!1];ew=!0,e_=ei||{},eS=!eD[eM]||!e_.dedupe,eE=function(){return!eF.current&&eM===eV.current&&eL.current},eA=function(){var ei=eD[eM];ei&&ei[1]===ec&&delete eD[eM]},eT={isValidating:!1},ek=function(){e4({isValidating:!1}),eE()&&tw(eT)},e4({isValidating:!0}),tw({isValidating:!0}),ed.label=1;case 1:return ed.trys.push([1,3,,4]),eS&&(eJ(ef,eM,tg.current.data,tg.current.error,!0),ea.loadingTimeout&&!ef.get(eM)&&setTimeout(function(){ew&&eE()&&e3().onLoadingSlow(eM,ea)},ea.loadingTimeout),eD[eM]=[eo.apply(void 0,ej),eX()]),eu=(eI=eD[eM])[0],ec=eI[1],[4,eu];case 2:if(eu=ed.sent(),eS&&setTimeout(eA,ea.dedupingInterval),!eD[eM]||eD[eM][1]!==ec)return eS&&eE()&&e3().onDiscarded(eM),[2,!1];if(e4({error:eh}),eT.error=eh,!em(eC=eP[eM])&&(ec<=eC[0]||ec<=eC[1]||0===eC[1]))return ek(),eS&&eE()&&e3().onDiscarded(eM),[2,!1];return eg(tg.current.data,eu)?eT.data=tg.current.data:eT.data=eu,eg(ef.get(eM),eu)||ef.set(eM,eu),eS&&eE()&&e3().onSuccess(eu,eM,ea),[3,4];case 3:return eO=ed.sent(),eA(),!e3().isPaused()&&(e4({error:eO}),eT.error=eO,eS&&eE()&&(e3().onError(eO,eM,ea),("boolean"==typeof ea.shouldRetryOnError&&ea.shouldRetryOnError||eb(ea.shouldRetryOnError)&&ea.shouldRetryOnError(eO))&&e5()&&e3().onErrorRetry(eO,eM,ea,t_,{retryCount:(e_.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return ew=!1,ek(),eE()&&eS&&eJ(ef,eM,eT.data,eT.error,!1),[2,!0]}})})},[eM]),tS=(0,eu.useCallback)(e0.bind(eh,ef,function(){return eV.current}),[]);if(eG(function(){eH.current=eo,eQ.current=ea}),eG(function(){if(eM){var ei=eM!==eV.current,eo=t_.bind(eh,tv),ea=function(ei,eo,ea){tw(ew({error:eo,isValidating:ea},eg(tg.current.data,ei)?eh:{data:ei}))},eu=0,ec=function(ei){if(ei==eY){var ea=Date.now();e3().revalidateOnFocus&&ea>eu&&e5()&&(eu=ea+e3().focusThrottleInterval,eo())}else if(ei==eZ)e3().revalidateOnReconnect&&e5()&&eo();else if(ei==e$)return t_()},ed=tm(eM,eI,ea),ef=tm(eM,eO,ec);return eF.current=!1,eV.current=eM,eL.current=!0,ei&&tw({data:e9,error:ta,isValidating:tf}),tc()&&(em(e9)||eB?eo():eU(eo)),function(){eF.current=!0,ed(),ef()}}},[eM,t_]),eG(function(){var ei;function eo(){var eo=eb(eA)?eA(e9):eA;eo&&-1!==ei&&(ei=setTimeout(ea,eo))}function ea(){!tg.current.error&&(eT||e3().isVisible())&&(ek||e3().isOnline())?t_(tv).then(eo):eo()}return eo(),function(){ei&&(clearTimeout(ei),ei=-1)}},[eA,eT,ek,t_]),(0,eu.useDebugValue)(e9),eS&&em(e9)&&eM)throw eH.current=eo,eQ.current=ea,eF.current=!1,em(ta)?t_(tv):ta;return{mutate:tS,get data(){return tb.data=!0,e9},get error(){return tb.error=!0,ta},get isValidating(){return tb.isValidating=!0,tf}}};eg.defineProperty(tc,"default",{value:e7});var tw=tg(tb)},21127:function(ei,eo,ea){"use strict";function eu(ei,eo,ea){return eo<=ei&&ei<=ea}function ec(ei){if(void 0===ei)return{};if(ei===Object(ei))return ei;throw TypeError("Could not convert argument to dictionary")}function ed(ei){for(var eo=String(ei),ea=eo.length,eu=0,ec=[];eu57343)ec.push(ed);else if(56320<=ed&&ed<=57343)ec.push(65533);else if(55296<=ed&&ed<=56319){if(eu===ea-1)ec.push(65533);else{var ef=ei.charCodeAt(eu+1);if(56320<=ef&&ef<=57343){var eh=1023&ed,eg=1023&ef;ec.push(65536+(eh<<10)+eg),eu+=1}else ec.push(65533)}}eu+=1}return ec}function ef(ei){for(var eo="",ea=0;ea>10)+55296,(1023&eu)+56320))}return eo}ea.r(eo),ea.d(eo,{TextDecoder:function(){return e_},TextEncoder:function(){return eS}});var eh=-1;function eg(ei){this.tokens=[].slice.call(ei)}eg.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():eh},prepend:function(ei){if(Array.isArray(ei))for(var eo=ei;eo.length;)this.tokens.unshift(eo.pop());else this.tokens.unshift(ei)},push:function(ei){if(Array.isArray(ei))for(var eo=ei;eo.length;)this.tokens.push(eo.shift());else this.tokens.push(ei)}};var em=-1;function eb(ei,eo){if(ei)throw TypeError("Decoder error");return eo||65533}var ew="utf-8";function e_(ei,eo){if(!(this instanceof e_))return new e_(ei,eo);if((ei=void 0!==ei?String(ei).toLowerCase():ew)!==ew)throw Error("Encoding not supported. Only utf-8 is supported");eo=ec(eo),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!eo.fatal,this._ignoreBOM=!!eo.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function eS(ei,eo){if(!(this instanceof eS))return new eS(ei,eo);if((ei=void 0!==ei?String(ei).toLowerCase():ew)!==ew)throw Error("Encoding not supported. Only utf-8 is supported");eo=ec(eo),this._streaming=!1,this._encoder=null,this._options={fatal:!!eo.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}function eE(ei){var eo=ei.fatal,ea=0,ec=0,ed=0,ef=128,eg=191;this.handler=function(ei,ew){if(ew===eh&&0!==ed)return ed=0,eb(eo);if(ew===eh)return em;if(0===ed){if(eu(ew,0,127))return ew;if(eu(ew,194,223))ed=1,ea=ew-192;else if(eu(ew,224,239))224===ew&&(ef=160),237===ew&&(eg=159),ed=2,ea=ew-224;else{if(!eu(ew,240,244))return eb(eo);240===ew&&(ef=144),244===ew&&(eg=143),ed=3,ea=ew-240}return ea<<=6*ed,null}if(!eu(ew,ef,eg))return ea=ed=ec=0,ef=128,eg=191,ei.prepend(ew),eb(eo);if(ef=128,eg=191,ec+=1,ea+=ew-128<<6*(ed-ec),ec!==ed)return null;var e_=ea;return ea=ed=ec=0,e_}}function eA(ei){ei.fatal,this.handler=function(ei,eo){if(eo===eh)return em;if(eu(eo,0,127))return eo;eu(eo,128,2047)?(ea=1,ec=192):eu(eo,2048,65535)?(ea=2,ec=224):eu(eo,65536,1114111)&&(ea=3,ec=240);for(var ea,ec,ed=[(eo>>6*ea)+ec];ea>0;){var ef=eo>>6*(ea-1);ed.push(128|63&ef),ea-=1}return ed}}e_.prototype={decode:function(ei,eo){ea="object"==typeof ei&&ei instanceof ArrayBuffer?new Uint8Array(ei):"object"==typeof ei&&"buffer"in ei&&ei.buffer instanceof ArrayBuffer?new Uint8Array(ei.buffer,ei.byteOffset,ei.byteLength):new Uint8Array(0),eo=ec(eo),this._streaming||(this._decoder=new eE({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!eo.stream;for(var ea,eu,ed=new eg(ea),eh=[];!ed.endOfStream()&&(eu=this._decoder.handler(ed,ed.read()))!==em;)null!==eu&&(Array.isArray(eu)?eh.push.apply(eh,eu):eh.push(eu));if(!this._streaming){do{if((eu=this._decoder.handler(ed,ed.read()))===em)break;if(null===eu)continue;Array.isArray(eu)?eh.push.apply(eh,eu):eh.push(eu)}while(!ed.endOfStream());this._decoder=null}return!eh.length||-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===eh[0]?(this._BOMseen=!0,eh.shift()):this._BOMseen=!0),ef(eh)}},eS.prototype={encode:function(ei,eo){ei=ei?String(ei):"",eo=ec(eo),this._streaming||(this._encoder=new eA(this._options)),this._streaming=!!eo.stream;for(var ea,eu=[],ef=new eg(ed(ei));!ef.endOfStream()&&(ea=this._encoder.handler(ef,ef.read()))!==em;)Array.isArray(ea)?eu.push.apply(eu,ea):eu.push(ea);if(!this._streaming){for(;(ea=this._encoder.handler(ef,ef.read()))!==em;)Array.isArray(ea)?eu.push.apply(eu,ea):eu.push(ea);this._encoder=null}return new Uint8Array(eu)}}},97582:function(ei,eo,ea){"use strict";ea.d(eo,{CR:function(){return eb},FC:function(){return eE},Jh:function(){return eg},KL:function(){return eA},XA:function(){return em},ZT:function(){return ec},_T:function(){return ef},ev:function(){return e_},mG:function(){return eh},pi:function(){return ed},pr:function(){return ew},qq:function(){return eS}});var eu=function(ei,eo){return(eu=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(ei,eo){ei.__proto__=eo}||function(ei,eo){for(var ea in eo)Object.prototype.hasOwnProperty.call(eo,ea)&&(ei[ea]=eo[ea])})(ei,eo)};function ec(ei,eo){if("function"!=typeof eo&&null!==eo)throw TypeError("Class extends value "+String(eo)+" is not a constructor or null");function ea(){this.constructor=ei}eu(ei,eo),ei.prototype=null===eo?Object.create(eo):(ea.prototype=eo.prototype,new ea)}var ed=function(){return(ed=Object.assign||function(ei){for(var eo,ea=1,eu=arguments.length;eaeo.indexOf(eu)&&(ea[eu]=ei[eu]);if(null!=ei&&"function"==typeof Object.getOwnPropertySymbols)for(var ec=0,eu=Object.getOwnPropertySymbols(ei);eceo.indexOf(eu[ec])&&Object.prototype.propertyIsEnumerable.call(ei,eu[ec])&&(ea[eu[ec]]=ei[eu[ec]]);return ea}function eh(ei,eo,ea,eu){function ec(ei){return ei instanceof ea?ei:new ea(function(eo){eo(ei)})}return new(ea||(ea=Promise))(function(ea,ed){function ef(ei){try{eg(eu.next(ei))}catch(ei){ed(ei)}}function eh(ei){try{eg(eu.throw(ei))}catch(ei){ed(ei)}}function eg(ei){ei.done?ea(ei.value):ec(ei.value).then(ef,eh)}eg((eu=eu.apply(ei,eo||[])).next())})}function eg(ei,eo){var ea,eu,ec,ed,ef={label:0,sent:function(){if(1&ec[0])throw ec[1];return ec[1]},trys:[],ops:[]};return ed={next:eh(0),throw:eh(1),return:eh(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function eh(ei){return function(eo){return eg([ei,eo])}}function eg(eh){if(ea)throw TypeError("Generator is already executing.");for(;ed&&(ed=0,eh[0]&&(ef=0)),ef;)try{if(ea=1,eu&&(ec=2&eh[0]?eu.return:eh[0]?eu.throw||((ec=eu.return)&&ec.call(eu),0):eu.next)&&!(ec=ec.call(eu,eh[1])).done)return ec;switch(eu=0,ec&&(eh=[2&eh[0],ec.value]),eh[0]){case 0:case 1:ec=eh;break;case 4:return ef.label++,{value:eh[1],done:!1};case 5:ef.label++,eu=eh[1],eh=[0];continue;case 7:eh=ef.ops.pop(),ef.trys.pop();continue;default:if(!(ec=(ec=ef.trys).length>0&&ec[ec.length-1])&&(6===eh[0]||2===eh[0])){ef=0;continue}if(3===eh[0]&&(!ec||eh[1]>ec[0]&&eh[1]=ei.length&&(ei=void 0),{value:ei&&ei[eu++],done:!ei}}};throw TypeError(eo?"Object is not iterable.":"Symbol.iterator is not defined.")}function eb(ei,eo){var ea="function"==typeof Symbol&&ei[Symbol.iterator];if(!ea)return ei;var eu,ec,ed=ea.call(ei),ef=[];try{for(;(void 0===eo||eo-->0)&&!(eu=ed.next()).done;)ef.push(eu.value)}catch(ei){ec={error:ei}}finally{try{eu&&!eu.done&&(ea=ed.return)&&ea.call(ed)}finally{if(ec)throw ec.error}}return ef}function ew(){for(var ei=0,eo=0,ea=arguments.length;eo1||eh(ei,eo)})})}function eh(ei,eo){try{eg(ec[ei](eo))}catch(ei){ew(ed[0][3],ei)}}function eg(ei){ei.value instanceof eS?Promise.resolve(ei.value.v).then(em,eb):ew(ed[0][2],ei)}function em(ei){eh("next",ei)}function eb(ei){eh("throw",ei)}function ew(ei,eo){ei(eo),ed.shift(),ed.length&&eh(ed[0][0],ed[0][1])}}function eA(ei){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var eo,ea=ei[Symbol.asyncIterator];return ea?ea.call(ei):(ei=em(ei),eo={},eu("next"),eu("throw"),eu("return"),eo[Symbol.asyncIterator]=function(){return this},eo);function eu(ea){eo[ea]=ei[ea]&&function(eo){return new Promise(function(eu,ed){ec(eu,ed,(eo=ei[ea](eo)).done,eo.value)})}}function ec(ei,eo,ea,eu){Promise.resolve(eu).then(function(eo){ei({value:eo,done:ea})},eo)}}"function"==typeof SuppressedError&&SuppressedError},894:function(ei){"use strict";ei.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},6680:function(ei){"use strict";ei.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},function(ei){var eo=function(eo){return ei(ei.s=eo)};ei.O(0,[9774,179],function(){return eo(80773),eo(6840),eo(96885)}),_N_E=ei.O()}]); \ No newline at end of file diff --git a/framework-ce84985cd166733a.js.download b/framework-ce84985cd166733a.js.download new file mode 100644 index 0000000..0d9180b --- /dev/null +++ b/framework-ce84985cd166733a.js.download @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9774],{64448:function(e,n,t){var r,l,a,u,o,i,s=t(67294),c=t(63840);function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t