1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="38332f89-eb33-4d5a-9175-f695beb4290e",e._sentryDebugIdIdentifier="sentry-dbid-38332f89-eb33-4d5a-9175-f695beb4290e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2547],{3200:(e,t,n)=>{"use strict";n.d(t,{SharedHydration:()=>l});var r=n(55251),s=n(84497),i=n(13486),o=n(12115),a=n(70577);function l(e){let{initialProps:t}=e,n=a.v.setState;return(0,o.useEffect)(()=>{let e={...(0,i.A)(t,["basePath"])},o=(0,r.A)((0,s.A)(e));n({...t,hostServiceId:"LAND",...o,usePathname(){let e=o.usePathname();return e.includes(t.basePath)||(e="".concat(t.basePath).concat(e)),e}})},[t,n]),null}},4417:(e,t,n)=>{"use strict";n.d(t,{default:()=>l}),n(4481);var r=n(17718),s=n(25375),i=n(46875),o=n(12115),a=n(22718);let l=()=>{let e=(0,r.useIsSessionInCookies)(),t=(0,s.n)(e=>e.setAuth),n=()=>{(0,i.logout)(()=>(t(!1),(0,a.generateLogoutEvent)()))};return(0,o.useEffect)(()=>{var e,t;"undefined"!=typeof window&&(null==(t=window)||null==(e=t.apiEventEmitter)||e.on("logout",n))},[]),(0,o.useEffect)(()=>{t(e)},[e]),null}},7706:(e,t,n)=>{"use strict";n.d(t,{GlobalApiEventEmitterInitializer:()=>i});var r=n(12115),s=n(23612);let i=()=>((0,r.useEffect)(()=>{"undefined"!=typeof window&&(window.apiEventEmitter||(window.apiEventEmitter=new s.e.EventEmitter))},[]),null)},12970:(e,t,n)=>{"use strict";n.d(t,{default:()=>N});var r=n(95155),s=n(12115),i=n(71980);n(84334),n(73893),n(32177);var o=n(66926);n(2161),n(94123),n(87828);var a=n(62908);n(68870);var l=n(6682);n(43551),n(42275),n(21481);var u=n(72378),c=n(679),d=n(86504),h=n(18955),f=n(85571),p=n(22544),m={form:"_Uao-9VzJ"};let g={code:""},y=()=>{let e=(0,h.c)("shared.settings"),t=(0,h.c)("shared.common"),{confirmData:n,updateConfirmData:s}=(0,c.E)((0,f.k)(e=>({confirmData:e.confirmData,updateConfirmData:e.updateConfirmData}))),i=(0,p.mN)({defaultValues:g,mode:"onChange"});return(0,r.jsx)(p.Op,{...i,children:(0,r.jsxs)("form",{className:m.form,onSubmit:i.handleSubmit(e=>{if(!n||!n.confirmDto||!n.onConfirmCallback)return;s("isPending",!0);let t=n.confirmDto;n.onConfirmCallback({confirm:[{code:e.code,payload:t.payload,type:t.type}]})}),children:[(0,r.jsx)(p.xI,{name:"code",rules:{required:!0},render:i=>{let{field:{onChange:o,value:a}}=i;return(0,r.jsx)(d.pd,{value:a,label:e("Two-Factor Authentication"),placeholder:t("Enter 2FA code"),error:n.error,onChange:e=>{let t=e.target.value;n.error&&s("error",""),o(t)}})}}),(0,r.jsx)(d.$n,{fullWidth:!0,appearance:"primary",disabled:!i.formState.isValid||!!n.error,isLoading:n.isPending,size:"l",type:"submit",children:t("Confirm")})]})})},v=()=>{let e=(0,h.c)("shared.common"),{setValue:t,isConfirmModalOpen:n,updateConfirmData:s,closeConfirmModal:i}=(0,c.E)((0,f.k)(e=>({closeConfirmModal:e.closeConfirmModal,isConfirmModalOpen:e.isConfirmModalOpen,setValue:e.setValue,updateConfirmData:e.updateConfirmData})));return(0,r.jsx)(r.Fragment,{children:n?(0,r.jsx)(d.aF,{isActive:n,title:e("Confirm"),setIsActive:e=>{if(!e)return i();t("isConfirmModalOpen",e)},onClose:()=>{s("error",""),t("isConfirmModalOpen",!1)},children:(0,r.jsx)(y,{})}):null})};var b=n(67957),w=n(75837),_=n(45888),S=n(15789),C=n(12918),O=n(37637);n(37547);var E=n(74744);n(61252),n(71162);var x=n(99776);n(72068),n(4481);var A=n(25375);n(47051),n(37288),n(53762),n(13849),n(70047),n(15239),n(19786),n(93746);var P={form:"_3Iqlw3aV"};let j=e=>{let{isKycVerified:t,isMaximumSubAccountsCount:n,isTwoFactorAuthenticationOn:s}=e,i=(0,h.c)("shared.settings"),o=(0,h.c)("shared.balances");return t?s?n?(0,r.jsx)(O.E,{type:"warning",children:(0,r.jsx)(d.o5,{color:"text_primary",fontWeight:400,variant:"system_h4",children:i("MaximumSubAccountsWarningHintMessage")})}):null:(0,r.jsx)(O.E,{title:i("2FA Not Passed"),type:"warning",children:(0,r.jsx)(d.o5,{color:"text_primary",fontWeight:400,variant:"system_h4",children:o("2FA boosts security")})}):(0,r.jsx)(O.E,{title:i("KYC not passed"),type:"warning",children:(0,r.jsx)(d.o5,{color:"text_primary",fontWeight:400,variant:"system_h4",children:i("You are not passed verification")})})},k={name:""},M=()=>{let e=(0,h.c)("shared.subaccount"),t=(0,h.c)("shared.common"),{currentAccount:n,setValue:s,
1closeConfirmModal:o,openConfirmModal:a,masterAccount:l,updateConfirmData:u}=(0,c.E)((0,f.k)(e=>({closeConfirmModal:e.closeConfirmModal,currentAccount:e.currentAccount,masterAccount:e.masterAccount,openConfirmModal:e.openConfirmModal,setValue:e.setValue,updateConfirmData:e.updateConfirmData}))),m=(0,x.useQueryClient)(),g=(0,b.useMasterAccountKycStatusObserver)(l),y=(0,b.useMasterAccountSubAccountsListObserver)(l).length===S.RX,v=(0,b.useMasterAccountTwoFactorAuthenticationObserver)(l),O=g&&!y&&v,{mutate:A}=(0,_.default)({onError:e=>{let t=(0,C.A)(e);u("isPending",!1),u("error",t)},onSuccess:()=>{m.invalidateQueries({queryKey:[i.A.getSubAccounts.queryKey]}),E.toast.success(e("Sub account successfully created")),o()}}),{mutate:M,isPending:L}=(0,w.default)({onError:e=>{var t,n;E.toast.error(null==e||null==(n=e.response)||null==(t=n.data)?void 0:t.message)},onSuccess:e=>{u("confirmDto",e[0]),s("isCreateModalOpen",!1),a(A)}}),q=(0,p.mN)({defaultValues:k,mode:"onChange"}),D=e("SubAccountNicknameValidationMessage");return(0,r.jsx)(p.Op,{...q,children:(0,r.jsxs)("form",{className:P.form,onSubmit:q.handleSubmit(e=>{var t;(null==n||null==(t=n.getPermission("can_create_sub_account"))?void 0:t.checkState())&&M(e)}),children:[(0,r.jsx)(j,{isKycVerified:g,isMaximumSubAccountsCount:y,isTwoFactorAuthenticationOn:v}),(0,r.jsx)(p.xI,{name:"name",rules:{maxLength:{message:D,value:20},minLength:{message:D,value:5},pattern:{message:D,value:S.Fg},required:!0},render:n=>{let{field:{onChange:s,value:i},fieldState:{error:o}}=n;return(0,r.jsx)(d.pd,{value:i,hintText:D,label:e("Subaccount nicknames"),placeholder:t("Enter name"),onChange:e=>{s(e.target.value)},...o&&{error:String(o.message)}})}}),(0,r.jsx)(d.$n,{fullWidth:!0,appearance:"primary",disabled:!q.formState.isValid||!O,isLoading:L,size:"l",type:"submit",children:t("Confirm")})]})})},L=()=>{let e=(0,h.c)("shared.layout.header"),{setValue:t,isCreateModalOpen:n}=(0,c.E)((0,f.k)(e=>({isCreateModalOpen:e.isCreateModalOpen,setValue:e.setValue})));return(0,r.jsx)(r.Fragment,{children:n?(0,r.jsx)(d.aF,{isActive:n,setIsActive:e=>t("isCreateModalOpen",e),title:e("Create subaccount"),onClose:()=>t("isCreateModalOpen",!1),children:(0,r.jsx)(M,{})}):null})};var q=n(69759),D=n(15560);let N=()=>{let{isAuth:e}=(0,A.n)(),{data:t}=(0,q.z)(),{initStore:n,updateSubAccounts:i,currentAccount:d,masterAccount:h}=(0,c.E)((0,f.k)(e=>({currentAccount:e.currentAccount,initStore:e.initStore,masterAccount:e.masterAccount,updateSubAccounts:e.updateSubAccounts}))),{data:p,isLoading:m}=(0,l.default)({enabled:e&&!!d&&"sub"!==d.getType()}),g=(0,s.useMemo)(()=>{var e;return(null==t?void 0:t.is_master_account)?null==t||null==(e=t.email)?void 0:e.replace(/@.*/,""):null==t?void 0:t.sub_account_name},[d,t]);return(0,s.useEffect)(()=>{var e;let r=!!(null==t?void 0:t.is_master_account);!d&&t&&n({balance:(0,o._)()(2)(null!=(e=null==p?void 0:p.totalAmount)?e:""),currency:null==t?void 0:t.equivalent_currency_code,isKycVerified:!!t.is_kyc_verified,isMasterAccount:r,isTwoFactorAuthenticationEnabled:!!t.two_factor,name:null!=g?g:"",uuid:t.uuid},null==p?void 0:p.subAccounts)},[p,t,g,d]),(0,s.useEffect)(()=>{if(t){let e=t.is_master_account?"master":"sub";(0,D.A)(e)}else u.default.remove(a.u),u.default.remove(a.u,{domain:"cryptomus.com"})},[t]),(0,s.useEffect)(()=>{p&&d&&i(p.subAccounts)},[p,d]),(0,s.useEffect)(()=>{h.updateIsSubAccountsLoading(m)},[m]),(0,s.useEffect)(()=>{t&&p&&d&&h&&g&&(h.setName(g),h.setBalance((0,o._)()(2)(p.totalAmount)),h.setCurrency(t.equivalent_currency_code),h.setIsKycVerified(t.is_kyc_verified),h.setIsTwoFactorAuthenticationEnabled(!!t.two_factor))},[t,g,p,d]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L,{}),(0,r.jsx)(v,{})]})}},16459:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(n,r){var s,i,o;function a(n){e.removeListener(t,l),r(n)}function l(){"function"==typeof e.removeListener&&e.removeListener("error",a),n([].slice.call(arguments))}m(e,t,l,{once:!0}),"error"!==t&&(s=e,i=a,o={once:!0},"function"==typeof s.on&&m(s,"error",i,o))})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function a(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(s=l(e))>0&&o.length>s&&!o.warned){o.warned=!0;var s,i,o,u=Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,console&&console.warn&&console.warn(u)}return e}function c(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=c.bind(r);return s.listener=n,r.wrapFn=s,s}function h(e,t,n){var r=e._events;if(void 0===r)return[];var s=r[t];return void 0===s?[]:"function"==typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(s):p(s,s.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else if("function"==typeof e.addEventListener)e.addEventListener(t,function s(i){r.once&&e.removeEventListener(t,s),n(i)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o}
1,set:function(e){if("number"!=typeof e||e<0||s(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),i.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var s="error"===e,i=this._events;if(void 0!==i)s=s&&void 0===i.error;else if(!s)return!1;if(s){if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var o,a=Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else for(var u=l.length,c=p(l,u),n=0;n<u;++n)r(c[n],this,t);return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,s,i,o;if(a(t),void 0===(r=this._events)||void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(s=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,s=i;break}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,s),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var s,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(s=i[r])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},31461:(e,t,n)=>{"use strict";n.d(t,{E:()=>p});var r=n(34049),s=n(31668),i=n(74268),o=n(38445),a=class extends o.Q{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let i=t.queryKey,o=t.queryHash??(0,r.F$)(i,t),a=this.get(o);return a||(a=new s.X({client:e,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.MK)(e,t)):t}notify(e){i.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.jG.batch(()=>
1{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=n(38559),u=class extends o.Q{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#n=new Map,this.#r=0}#t;#n;#r;build(e,t,n){let r=new l.s({mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);let t=c(e);if("string"==typeof t){let n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=c(e);if("string"==typeof t){let n=this.#n.get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let n=this.#n.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#n.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){i.jG.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#n.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.nJ)(e,t))}notify(e){i.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>
1e.state.isPaused);return i.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.lQ))))}};function c(e){return e.options.scope?.id}var d=n(56195),h=n(63122),f=n(66902),p=class{#s;#i;#o;#a;#l;#u;#c;#d;constructor(e={}){this.#s=e.queryCache||new a,this.#i=e.mutationCache||new u,this.#o=e.defaultOptions||{},this.#a=new Map,this.#l=new Map,this.#u=0}mount(){this.#u++,1===this.#u&&(this.#c=d.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#s.onFocus())}),this.#d=h.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#s.onOnline())}))}unmount(){this.#u--,0===this.#u&&(this.#c?.(),this.#c=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#s.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#s.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#s.build(this,t),s=n.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.d2)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#s.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let s=this.defaultQueryOptions({queryKey:e}),i=this.#s.get(s.queryHash),o=i?.state.data,a=(0,r.Zw)(t,o);if(void 0!==a)return this.#s.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return i.jG.batch(()=>this.#s.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#s.get(t.queryHash)?.state}removeQueries(e){let t=this.#s;i.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#s;return i.jG.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(i.jG.batch(()=>this.#s.findAll(e).map(e=>e.cancel(n)))).then(r.lQ).catch(r.lQ)}invalidateQueries(e,t={}){return i.jG.batch(()=>(this.#s.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(i.jG.batch(()=>this.#s.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#s.build(this,t);return n.isStaleByTime((0,r.d2)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.lQ).catch(r.lQ)}fetchInfiniteQuery(e){return e.behavior=(0,f.PL)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.lQ).catch(r.lQ)}ensureInfiniteQueryData(e){return e.behavior=(0,f.PL)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return h.t.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#s}getMutationCache(){return this.#i}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#a.set((0,r.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#a.values()],n={};return t.forEach(t=>{(0,r.Cp)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#l.set((0,r.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#l.values()],n={};return t.forEach(t=>{(0,r.Cp)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#s.clear(),this.#i.clear()}}},32421:(e,t,n)=>{"use strict";n.d(t,{default:()=>b});var r,s=n(95155),i=n(86504),o=n(71408),a=n(14438),l=n(52031),u=n(12115),c=n(18955);n(74744),n(61252),n(71162),n(72068),n(42275),n(4481);var d=n(72378);n(25375),n(47051),n(37288);var h=n(53517);n(53762);var f=n(36676);n(13849),n(70047),n(15239),n(19786),n(93746);var p={root:"_UHiBcisY",root__inner:"__6zD8h9-",root__crms:"_21a_KBw-",root__crms__info:"_0xwv7aeY",root__crms__close:"_UimwgEi1",root__download:"_EdxOtXWG",root__download__install:"_S0TQCWtS"},m=n(53469);n(12794);let g="com.cryptomus.bundle",y=`https://play.google.com/store/apps/details?id=${g}`,v={LAND:"landing"};!function(e){e.Android="android",e.Ios="ios",e.Other="other"}(r||(r={}));let b=()=>{let e,t=(0,c.c)("shared.common"),n=(e=(0,m.a8)(),v.LAND??e.split("/").at(-1)??""),b="app_install_banner",[w,_]=(0,u.useState)(r.Other),[S,C]=(0,u.useState)(!1),[O,E]=(0,u.useState)(!1),{sendAnalyticsEvent:x}=(0,f.k)(),A=w===r.Android;return(0,u.useEffect)(()=>{_((()=>
1{if("undefined"==typeof window||"undefined"==typeof navigator)return r.Other;let e=navigator.userAgent;return/Android/i.test(e)?r.Android:/iPhone|iPad|iPod/i.test(e)?r.Ios:r.Other})())},[]),(0,u.useEffect)(()=>{E(!!sessionStorage.getItem("isClosedSmartBannerAndroid"))},[]),(0,u.useEffect)(()=>{var e;A&&!O&&x({event_params:{page:n,platform:r.Android,screen_name:b},event_type:"ui_screen_view",visit_id:null!=(e=d.default.get(h.M_))?e:""})},[A,O,n]),!A||O?null:(0,s.jsx)(o.N,{children:!S&&(0,s.jsx)(a.P.div,{initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"100%"},className:p.root,transition:{opacity:{duration:.22},y:{damping:32,mass:.8,stiffness:380,type:"spring"}},children:(0,s.jsxs)("div",{className:p.root__inner,children:[(0,s.jsxs)("div",{className:p.root__crms,children:[(0,s.jsx)(l.I,{name:"common:icon-crms-avatar",size:48}),(0,s.jsxs)("div",{className:p.root__crms__info,children:[(0,s.jsx)(i.o5,{variant:"system_h5",fontWeight:400,color:"text_primary",children:t("CryptomusWalletTrading")}),(0,s.jsx)(i.o5,{variant:"system_h6",fontWeight:400,color:"text_tertiary",children:t("Other Crypto")})]}),(0,s.jsx)(l.I,{name:"common:close",color:"text_secondary",className:p.root__crms__close,onClick:()=>{var e;x({event_params:{button_name:"btn_app_banner_dismiss",page:n,platform:r.Android,screen_name:b},event_type:"ui_button_clicked",visit_id:null!=(e=d.default.get(h.M_))?e:""}),C(!0),sessionStorage.setItem("isClosedSmartBannerAndroid","true")}})]}),(0,s.jsxs)("div",{className:p.root__download,children:[(0,s.jsx)(l.I,{name:"common:icon-google-play",height:19,width:91}),(0,s.jsx)(i.$n,{appearance:"custom",size:"s",className:p.root__download__install,onClick:()=>{var e;x({event_params:{button_name:"btn_app_banner_go",page:n,platform:r.Android,screen_name:b,store:"google_play"},event_type:"ui_button_clicked",visit_id:null!=(e=d.default.get(h.M_))?e:""});let t=new URLSearchParams({utm_campaign:n,utm_medium:"smart_banner",utm_source:"web_banner"}).toString(),s="".concat(y,"&referrer=").concat(encodeURIComponent(t));window.location.href="intent://app.cryptomus.com/deeplink/overview#Intent;scheme=https;package=".concat(g,";S.browser_fallback_url=")+encodeURIComponent(s)+";end"},children:t("Go")})]})]})},"smart-banner-android")})}},38217:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var r=function(){return null}},40419:()=>{},49534:(e,t,n)=>{"use strict";n.d(t,{V:()=>j});var r=n(20063),s=n(12115);function i(e,t,n){return Math.max(t,Math.min(e,n))}function o(e,t){return"rtl"===t?(1-e)*100:(-1+e)*100}function a(e,t,n){if("string"==typeof t)void 0!==n&&(e.style[t]=n);else for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];void 0!==r&&(e.style[n]=r)}}function l(e,t){e.classList.add(t)}function u(e,t){e.classList.remove(t)}function c(e){e&&e.parentNode&&e.parentNode.removeChild(e)}var d={minimum:.08,maximum:1,template:`<div class="bar"><div class="peg"></div></div> 2 <div class="spinner"><div class="spinner-icon"></div></div> 3 <div class="indeterminate"><div class="inc"></div><div class="dec"></div></div>`,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,indeterminate:!1,indeterminateSelector:".indeterminate",barSelector:".bar",spinnerSelector:".spinner",parent:"body",direction:"ltr"},h=class{static settings=d;static status=null;static pending=[];static isPaused=!1;static reset(){return this.status=null,this.isPaused=!1,this.pending=[],this.settings=d,this}static configure(e){return Object.assign(this.settings,e),this}static isStarted(){return"number"==typeof this.status}static set(e){if(this.isPaused)return this;let t=this.isStarted();e=i(e,this.settings.minimum,this.settings.maximum),this.status=e===this.settings.maximum?null:e;let n=this.render(!t),r=this.settings.speed,s=this.settings.easing;return n.forEach(e=>e.offsetWidth),this.queue(t=>{n.forEach(t=>{this.settings.indeterminate||a(t.querySelector(this.settings.barSelector),this.barPositionCSS({n:e,speed:r,ease:s}))}),e===this.settings.maximum?(n.forEach(e=>{a(e,{transition:"none",opacity:"1"}),e.offsetWidth}),setTimeout(()=>
3{n.forEach(e=>{a(e,{transition:`all ${r}ms ${s}`,opacity:"0"})}),setTimeout(()=>{n.forEach(e=>{this.remove(e),null===this.settings.template&&a(e,{transition:"none",opacity:"1"})}),t()},r)},r)):setTimeout(t,r)}),this}static start(){this.status||this.set(0);let e=()=>{this.isPaused||setTimeout(()=>{this.status&&(this.trickle(),e())},this.settings.trickleSpeed)};return this.settings.trickle&&e(),this}static done(e){return e||this.status?this.inc(.3+.5*Math.random()).set(1):this}static inc(e){if(this.isPaused||this.settings.indeterminate)return this;let t=this.status;return t?t>1?this:("number"!=typeof e&&(e=t>=0&&t<.2?.1:t>=.2&&t<.5?.04:t>=.5&&t<.8?.02:.005*(t>=.8&&t<.99)),t=i(t+e,0,.994),this.set(t)):this.start()}static dec(e){if(this.isPaused||this.settings.indeterminate)return this;let t=this.status;return"number"!=typeof t?this:("number"!=typeof e&&(e=t>.8?.1:t>.5?.05:t>.2?.02:.01),t=i(t-e,0,.994),this.set(t))}static trickle(){return this.isPaused||this.settings.indeterminate?this:this.inc()}static promise(e){if(!e||"resolved"===e.state())return this;let t=0,n=0;return this.start(),t++,n++,e.always(()=>{0==--n?(t=0,this.done()):this.set((t-n)/t)}),this}static render(e=!1){let t="string"==typeof this.settings.parent?document.querySelector(this.settings.parent):this.settings.parent,n=t?Array.from(t.querySelectorAll(".bprogress")):[];if(null!==this.settings.template&&0===n.length){l(document.documentElement,"bprogress-busy");let e=document.createElement("div");l(e,"bprogress"),e.innerHTML=this.settings.template,t!==document.body&&l(t,"bprogress-custom-parent"),t.appendChild(e),n.push(e)}return n.forEach(n=>{if(null===this.settings.template&&(n.style.display=""),l(document.documentElement,"bprogress-busy"),t!==document.body&&l(t,"bprogress-custom-parent"),this.settings.indeterminate){let e=n.querySelector(this.settings.barSelector);e&&(e.style.display="none");let t=n.querySelector(this.settings.indeterminateSelector);t&&(t.style.display="")}else{let t=n.querySelector(this.settings.barSelector),r=e?o(0,this.settings.direction):o(this.status||0,this.settings.direction);a(t,this.barPositionCSS({n:this.status||0,speed:this.settings.speed,ease:this.settings.easing,perc:r}));let s=n.querySelector(this.settings.indeterminateSelector);s&&(s.style.display="none")}if(null===this.settings.template){let e=n.querySelector(this.settings.spinnerSelector);e&&(e.style.display=this.settings.showSpinner?"block":"none")}else if(!this.settings.showSpinner){let e=n.querySelector(this.settings.spinnerSelector);e&&c(e)}}),n}static remove(e){e?null===this.settings.template?e.style.display="none":c(e):(u(document.documentElement,"bprogress-busy"),("string"==typeof this.settings.parent?document.querySelectorAll(this.settings.parent):[this.settings.parent]).forEac
3h(e=>{u(e,"bprogress-custom-parent")}),document.querySelectorAll(".bprogress").forEach(e=>{null===this.settings.template?e.style.display="none":c(e)}))}static pause(){return!this.isStarted()||this.settings.indeterminate||(this.isPaused=!0),this}static resume(){if(!this.isStarted()||this.settings.indeterminate)return this;if(this.isPaused=!1,this.settings.trickle){let e=()=>{this.isPaused||setTimeout(()=>{this.status&&(this.trickle(),e())},this.settings.trickleSpeed)};e()}return this}static isRendered(){return document.querySelectorAll(".bprogress").length>0}static getPositioningCSS(){let e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return`${t}Perspective`in e?"translate3d":`${t}Transform`in e?"translate":"margin"}static queue(e){this.pending.push(e),1===this.pending.length&&this.next()}static next(){let e=this.pending.shift();e&&e(this.next.bind(this))}static initPositionUsing(){""===this.settings.positionUsing&&(this.settings.positionUsing=this.getPositioningCSS())}static barPositionCSS({n:e,speed:t,ease:n,perc:r}){this.initPositionUsing();let s={},i=r??o(e,this.settings.direction);return"translate3d"===this.settings.positionUsing?s={transform:`translate3d(${i}%,0,0)`}:"translate"===this.settings.positionUsing?s={transform:`translate(${i}%,0)`}:"width"===this.settings.positionUsing?s={width:`${"rtl"===this.settings.direction?100-i:i+100}%`,..."rtl"===this.settings.direction?{right:"0",left:"auto"}:{}}:"margin"===this.settings.positionUsing&&(s="rtl"===this.settings.direction?{"margin-left":`${-i}%`}:{"margin-right":`${-i}%`}),s.transition=`all ${t}ms ${n}`,s}};function f(e,t){if("string"==typeof t&&"data-disable-progress"===t){let n=t.substring(5).replace(/-([a-z])/g,(e,t)=>t.toUpperCase());return e.dataset[n]}let n=e[t];if(n instanceof SVGAnimatedString){let e=n.baseVal;if("href"===t){var r=location.origin;if(!e.startsWith("/")||!r)return e;let{pathname:t,query:n,hash:s}=function(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n<t);return r||t>-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}(e);return`${r}${t}${n}${s}`}return e}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function m(e,t){if(null==e)return{};var n,r,s=function(e,t){if(null==e)return{};var n,r,s={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}var g=(0,s.createContext)(void 0),y=function(){var e=(0,s.useContext)(g);if(!e)throw Error("useProgress must be used within a ProgressProvider");return e},v=function(e){var t=e.children,n=e.color,r=void 0===n?"#0A2FFF":n,i=e.height,o=void 0===i?"2px":i,a=e.options,l=e.spinnerPosition,u=void 0===l?"top-right":l,c=e.style,d=e.disableStyle,f=e.nonce,m=e.shallowRouting,y=e.disableSameURL,v=e.startPosition,b=e.delay,w=e.stopDelay,_=(0,s.useRef)(null),S=(0,s.useRef)(!1),C=(0,s.useCallback)(function(){return S.current=!0},[]),O=(0,s.useCallback)(function(){return S.current=!1},[]),E=(0,s.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n&&C(),_.current=setTimeout(function(){e>0&&h.set(e),h.start()},t)},[C]),x=(0,s.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;setTimeout(function(){_.current&&clearTimeout(_.current),_.current=setTimeout(function(){h.isStarted()&&(h.done(),S.current&&O())},e)},t)},[O]),A=(0,s.useCallback)(function(e){return h.inc(e)},[]),P=(0,s.useCallback)(function(e){return h.dec(e)},[]),j=(0,s.useCallback)(function(e){return h.set(e)},[]),k=(0,s.useCallback)(function(){return h.pause()},[]),M=(0,s.useCallback)(function(){return h.resume()},[]),L=(0,s.useCallback)(function(){return h.settings},[]),q=(0,s.useCallback)(function(e){var t=L(),n="function"==typeof e?e(t):e,r=p({},t,n);h.configure(r)},[L]),D=(0,s.useMemo)(function(){return s.createElement("style",{nonce:f},c||(({color:e="#29d",height:t="2px",spinnerPosition:n="top-right"})=>` 4:root { 5 --bprogress-color: ${e}; 6 --bprogress-height: ${t}; 7 --bprogress-spinner-size: 18px; 8 --bprogress-spinner-animation-duration: 400ms; 9 --bprogress-spinner-border-size: 2px;
10 --bprogress-box-shadow: 0 0 10px ${e}, 0 0 5px ${e}; 11 --bprogress-z-index: 99999; 12 --bprogress-spinner-top: ${"top-right"===n||"top-left"===n?"15px":"auto"}; 13 --bprogress-spinner-bottom: ${"bottom-right"===n||"bottom-left"===n?"15px":"auto"}; 14 --bprogress-spinner-right: ${"top-right"===n||"bottom-right"===n?"15px":"auto"}; 15 --bprogress-spinner-left: ${"top-left"===n||"bottom-left"===n?"15px":"auto"}; 16} 17 18.bprogress { 19 width: 0; 20 height: 0; 21 pointer-events: none; 22 z-index: var(--bprogress-z-index); 23} 24 25.bprogress .bar { 26 background: var(--bprogress-color); 27 position: fixed; 28 z-index: var(--bprogress-z-index); 29 top: 0; 30 left: 0; 31 width: 100%; 32 height: var(--bprogress-height); 33} 34 35/* Fancy blur effect */ 36.bprogress .peg { 37 display: block; 38 position: absolute; 39 right: 0; 40 width: 100px; 41 height: 100%; 42 box-shadow: var(--bprogress-box-shadow); 43 opacity: 1.0; 44 transform: rotate(3deg) translate(0px, -4px); 45} 46 47/* Remove these to get rid of the spinner */ 48.bprogress .spinner { 49 display: block; 50 position: fixed; 51 z-index: var(--bprogress-z-index); 52 top: var(--bprogress-spinner-top); 53 bottom: var(--bprogress-spinner-bottom); 54 right: var(--bprogress-spinner-right); 55 left: var(--bprogress-spinner-left); 56} 57 58.bprogress .spinner-icon { 59 width: var(--bprogress-spinner-size); 60 height: var(--bprogress-spinner-size); 61 box-sizing: border-box; 62 border: solid var(--bprogress-spinner-border-size) transparent; 63 border-top-color: var(--bprogress-color); 64 border-left-color: var(--bprogress-color); 65 border-radius: 50%; 66 -webkit-animation: bprogress-spinner var(--bprogress-spinner-animation-duration) linear infinite; 67 animation: bprogress-spinner var(--bprogress-spinner-animation-duration) linear infinite; 68} 69 70.bprogress-custom-parent { 71 overflow: hidden; 72 position: relative; 73} 74 75.bprogress-custom-parent .bprogress .spinner, 76.bprogress-custom-parent .bprogress .bar { 77 position: absolute; 78} 79 80.bprogress .indeterminate { 81 position: fixed; 82 top: 0; 83 left: 0; 84 width: 100%; 85 height: var(--bprogress-height); 86 overflow: hidden; 87} 88 89.bprogress .indeterminate .inc, 90.bprogress .indeterminate .dec { 91 position: absolute; 92 top: 0; 93 height: 100%; 94 background-color: var(--bprogress-color); 95} 96 97.bprogress .indeterminate .inc { 98 animation: bprogress-indeterminate-increase 2s infinite; 99} 100 101.bprogress .indeterminate .dec { 102 animation: bprogress-indeterminate-decrease 2s 0.5s infinite; 103} 104 105@-webkit-keyframes bprogress-spinner { 106 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 107 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } 108} 109 110@keyframes bprogress-spinner { 111 0% { transform: rotate(0deg); } 112 100% { transform: rotate(360deg); } 113} 114 115@keyframes bprogress-indeterminate-increase { 116 from { left: -5%; width: 5%; } 117 to { left: 130%; width: 100%; } 118} 119 120@keyframes bprogress-indeterminate-decrease { 121 from { left: -80%; width: 80%; } 122 to { left: 110%; width: 10%; } 123} 124`)({color:r,height:o,spinnerPosition:u}))},[r,o,f,u,c]);return h.configure(a||{}),s.createElement(g.Provider,{value:{start:E,stop:x,inc:A,dec:P,set:j,pause:k,resume:M,setOptions:q,getOptions:L,isAutoStopDisabled:S,disableAutoStop:C,enableAutoStop:O,shallowRouting:void 0!==m&&m,disableSameURL:void 0===y||y,startPosition:void 0===v?0:v,delay:void 0===b?0:b,stopDelay:void 0===w?0:w}},void 0!==d&&d?null:D,t)};function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var w=s.forwardRef(function(e,t){var n=e.as,r=e.children,i=e.className,o=e.classSelector,a=m(e,["as","children","className","classSelector"]);return s.createElement(null!=n?n:"div",p({ref:t,className:b(void 0===o?"bar":o,i)},a),r)}),_=s.forwardRef(function(e,t){var n=e.as,r=e.children,i=e.className,o=e.classSelector,a=m(e,["as","children","className","classSelector"]);return s.createElement(null!=n?n:"div",p({ref:t,className:b(void 0===o?"peg":o,i)},a),r)}),S=s.forwardRef(function(e,t){var n=e.as,r=e.children,i=e.className,o=e.classSelector,a=m(e,["as","children","className","classSelector"]);return s.createElement(null!=n?n:"div",p({ref:t,className:b(void 0===o?"spinner":o,i)},a),r)}),C=s.forwardRef(function(e,t){var n=e.as,r=e.children,i=e.className,o=e.classSelector,a=m(e,["as","children","className","classSelector"]);return s.createElement(null!=n?n:"div",p({ref:t,className:b(void 0===o?"spinner-icon":o,i)},a),r)});function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function E(e,t){if(null==e)return{};var n,r,s=function(e,t){if(null==e)return{};var n,r,s={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}s.forwardRef(function(e,t){var n,r,i=e.as,o=e.children,a=e.className,l=e.style,u=m(e,["as","children","className","style"]);return s.createElement(null!=i?i:"div",p({ref:t,className:b("bprogress",a),style:(n=p({},l),r=r={display:"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
124)(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n)},u),o||s.createElement(s.Fragment,null,s.createElement(w,null,s.createElement(_,null)),s.createElement(S,null,s.createElement(C,null))))}),s.forwardRef(function(e,t){var n=e.as,r=e.className,i=e.classSelector,o=m(e,["as","className","classSelector"]);return s.createElement(null!=n?n:"div",p({ref:t,className:b(void 0===i?"indeterminate":i,r)},o),s.createElement("div",{className:"inc"}),s.createElement("div",{className:"dec"}))});var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["memo","shouldCompareComplexProps"];return(0,s.memo)(e,function(e,n){return!1!==n.memo&&(!n.shouldCompareComplexProps||function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object.keys(e).filter(function(e){return!n.includes(e)}),s=Object.keys(t).filter(function(e){return!n.includes(e)});if(r.length!==s.length)return!1;var i=!0,o=!1,a=void 0;try{for(var l,u=r[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value;if(e[c]!==t[c])return!1}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return!0}(e,n,t))})}(function(e){return!function(e){var t=e.shallowRouting,n=void 0!==t&&t,r=e.disableSameURL,i=void 0===r||r,o=e.startPosition,a=void 0===o?0:o,l=e.delay,u=void 0===l?0:l,c=e.stopDelay,d=void 0===c?0:c,h=e.targetPreprocessor,p=e.disableAnchorClick,m=void 0!==p&&p,g=e.startOnLoad,v=void 0!==g&&g,b=e.forcedStopDelay,w=void 0===b?0:b,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],S=(0,s.useRef)([]),C=(0,s.useRef)(null),O=y(),E=O.start,x=O.stop,A=O.isAutoStopDisabled;(0,s.useEffect)(function(){v&&E(a,u)},[]),(0,s.useEffect)(function(){return C.current&&clearTimeout(C.current),C.current=setTimeout(function(){A.current||x()},d),function(){C.current&&clearTimeout(C.current)}},_),(0,s.useEffect)(function(){if(!m){var e=function(e){if(e.defaultPrevented)return;var t,r,s,o,l=e.currentTarget;if(l.hasAttribute("download"))return;var c=e.target,d=(null==c?void 0:c.getAttribute("data-prevent-progress"))==="true"||(null==l?void 0:l.getAttribute("data-prevent-progress"))==="true";if(!d)for(var p,m=c;m&&"a"!==m.tagName.toLowerCase();){if((null==(p=m.parentElement)?void 0:p.getAttribute("data-prevent-progress"))==="true"){d=!0;break}m=m.parentElement}if(!d&&"_blank"!==f(l,"target")&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey){var g=f(l,"href"),y=h?h(new URL(g)):new URL(g),v=new URL(location.href);if(!(n&&(t=y,r=v,t.protocol+"//"+t.host+t.pathname==r.protocol+"//"+r.host+r.pathname))||!i){s=y,o=v,s.protocol+"//"+s.host+s.pathname+s.search==o.protocol+"//"+o.host+o.pathname+o.search&&i||E(a,u)}}},t=new MutationObserver(function(){var t=Array.from(document.querySelectorAll("a")).filter(function(e){var t=f(e,"href"),n="true"===e.getAttribute("data-disable-progress"),r=t&&!t.startsWith("tel:")&&!t.startsWith("mailto:")&&!t.startsWith("blob:")&&!t.startsWith("javascript:");return!n&&r&&"_blank"!==f(e,"target")});t.forEach(function(t){t.addEventListener("click",e,!0)}),S.current=t});t.observe(document,{childList:!0,subtree:!0});var r=window.history.pushState;return window.history.pushState=new Proxy(window.history.pushState,{apply:function(e,t,n){return A.current||x(d,w),e.apply(t,n)}}),function(){t.disconnect(),S.current.forEach(function(t){t.removeEventListener("click",e,!0)}),S.current=[],window.history.pushState=r}}},[m,h,n,i,u,d,a,E,x,w,A])}(e,[(0,r.usePathname)(),(0,r.useSearchParams)()]),null});x.displayName="AppProgress";var A=function(e){var t=e.children,n=e.ProgressComponent,r=e.color,i=e.height,o=e.options,a=e.spinnerPosition,l=e.style,u=e.disableStyle,c=e.nonce,d=e.stopDelay,h=e.delay,f=e.startPosition,p=e.disableSameURL,m=e.shallowRouting,g=E(e,["children","ProgressComponent","color","height","options","spinnerPosition","style","disableStyle","nonce","stopDelay","delay","startPosition","disableSameURL","shallowRouting"]);return s.createElement(v,{color:r,height:i,options:o,spinnerPosition:a,style:l,disableStyle:u,nonce:c,stopDelay:d,delay:h,startPosition:f,disableSameURL:p,shallowRouting:m}
124,s.createElement(n,O({stopDelay:d,delay:h,startPosition:f,disableSameURL:p,shallowRouting:m},g)),t)},P=function(e){return s.createElement(s.Suspense,null,s.createElement(x,p({},e)))},j=function(e){var t=e.children,n=E(e,["children"]);return s.createElement(A,O({ProgressComponent:P},n),t)}},62601:()=>{},66938:(e,t,n)=>{"use strict";n.d(t,{default:()=>_});var r=n(95155),s=n(72068),i=n(80549),o=n(53455),a=n(97618),l=n(53469);n(12794);var u=n(99776),c=n(12115),d=n(13830);n(86504),n(37547),n(74744),n(61252),n(71162),n(42275),n(4481);var h=n(72378);n(25375),n(47051);var f=n(44178);n(13849),n(70047),n(15239),n(19786),n(93746);var p=n(47650);let m=e=>{if(!e.isConnected)return!1;if("function"==typeof e.checkVisibility)return e.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;let n=window.getComputedStyle(e);return"none"!==n.display&&"hidden"!==n.visibility&&"0"!==n.opacity},g=e=>{var t,n;"true"===e.dataset.onboardingTargetElevated&&(e.style.position=null!=(t=e.dataset.onboardingOriginalPosition)?t:"",e.style.zIndex=null!=(n=e.dataset.onboardingOriginalZIndex)?n:"",delete e.dataset.onboardingOriginalPosition,delete e.dataset.onboardingOriginalZIndex,delete e.dataset.onboardingTargetElevated)};var y={backdrop:"_YEY1dE7s",highlightRing:"_O_WFt825",anchor:"_Xj3kjZM1",trigger:"_HJPaf6U7",spotlight:"_rc5NRsrs"};n(37288);var v=n(53517);n(53762);var b=n(36676);let w=e=>{var t,n;let{routeConfig:s,step:i,stepNumber:o,totalSteps:a,onComplete:l,onDismissAll:u,onDismissTour:w,onboarding_slug:_}=e,{sendAnalyticsEvent:S}=(0,b.k)(),C=(0,c.useRef)(Date.now()),O=e=>{var t;S({event_params:{button_name:e},event_type:"ui_button_clicked",visit_id:null!=(t=h.default.get(v.M_))?t:""})},E=(e=>{let[t,n]=(0,c.useState)(null);return(0,c.useEffect)(()=>{if(!e)return void n(null);let t=null,r=()=>{if(!(null==t?void 0:t.isConnected))return;let e=(e=>{let{height:t,left:n,top:r,width:s}=e.getBoundingClientRect();return{height:Math.round(t),left:Math.round(n),top:Math.round(r),width:Math.round(s)}})(t);n(t=>((e,t)=>(null==e?void 0:e.height)===t.height&&(null==e?void 0:e.left)===t.left&&(null==e?void 0:e.top)===t.top&&(null==e?void 0:e.width)===t.width)(t,e)?t:e)},s=new ResizeObserver(r),i=()=>{let i=(e=>{var t;if(!e.length)return null;let n=e.filter(m);return null!=(t=(n.length?n:e).at(-1))?t:null})([...document.querySelectorAll('[data-onboarding-id="'.concat(CSS.escape(e),'"]'))]);i?(e=>{t!==e&&(t&&(g(t),s.unobserve(t)),t=e,(e=>{"true"!==e.dataset.onboardingTargetElevated&&(e.dataset.onboardingOriginalPosition=e.style.position,e.dataset.onboardingOriginalZIndex=e.style.zIndex,"static"===window.getComputedStyle(e).position&&(e.style.position="relative"),e.style.zIndex=String(100),e.dataset.onboardingTargetElevated="true")})(e),s.observe(e),s.observe(document.documentElement)),r()})(i):t&&(g(t),s.unobserve(t),t=null,n(null))},o=new MutationObserver(i);return i(),o.observe(document.body,{attributeFilter:["data-onboarding-id"],attributes:!0,childList:!0,subtree:!0}),window.addEventListener("resize",i),window.addEventListener("scroll",i,!0),()=>{o.disconnect(),s.disconnect(),window.removeEventListener("resize",i),window.removeEventListener("scroll",i,!0),t&&g(t)}},[e]),t})((0,d.m4)(s.slug));return((0,c.useEffect)(()=>{C.current=Date.now()},[s.slug,o]),E)?(0,p.createPortal)((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:y.backdrop,onClick:()=>{O("onboarding_overlay"),u()}}),(0,r.jsx)("div",{className:y.highlightRing,style:{height:E.height,left:E.left,top:E.top,width:E.width}}),(0,r.jsx)("div",{className:y.anchor,style:{left:E.left,top:E.top},children:(0,r.jsx)(f.OnboardingTooltip,{hideFloatingOverlay:!0,hideOverlay:!0,isOpen:!0,currentStep:o,customOffset:null!=(t=s.offset)?t:16,placement:null!=(n=s.placement)?n:"bottom-start",title:i.title,onboarding_slug:_,totalSteps:a,classNames:{trigger:y.trigger},trigger:(0,r.jsx)("div",{className:y.spotlight,style:{height:E.height,width:E.width},onClick:()=>{O("onboarding_target")}}),onAction:()=>{l({slug:s.slug,step:o,timeSpent:Math.round((Date.now()-C.current)/1e3)})},onClose:w,children:i.text},"".concat(_,":").concat(o))})]}),document.body):null},_=()=>{let e=(0,a.Ym)(),t=(0,l.a8)(),[n,h]=(0,c.useState)(!1),[f,p]=(0,c.useState)(()=>new Set),[m,g]=(0,c.useState)({}),y=(0,u.useQueryClient)(),v=(0,c.useRef)(new Map),b=(0,c.useRef)(new Set),_=(0,c.useRef)(!1),S=(0,c.useMemo)(()=>d.f$.filter(e=>t.includes(e.path)),[t]),C=(0,c.useMemo)(()=>new Set(S.map(e=>e.slug)),[S]),{onboardingTours:O}=((e,t)=>{let{data:n,isLoading:r}=(0,o.useQuery)({queryFn:()=>s.A.getOnboardingTours(e),queryKey:[s.A.getOnboardingTours.queryKey],...t});return{isLoadingOnboardingTours:r,onboardingTours:n}})(e,{enabled:S.length>0}),E=(0,c.useCallback)(()=>y.invalidateQueries({queryKey:[s.A.getOnboardingTours.queryKey]}
124),[y]),{completeOnboardingStepAsync:x}=(e=>{let{isPending:t,mutate:n,mutateAsync:r}=(0,i.useMutation)({mutationFn:e=>s.A.completeOnboardingStep(e),mutationKey:[s.A.completeOnboardingStep.queryKey],...e?.options});return{completeOnboardingStep:n,completeOnboardingStepAsync:r,isCompleteOnboardingStepPending:t}})(),A=(0,c.useMemo)(()=>(null==O?void 0:O.onboardings.length)?O.onboardings.flatMap(e=>{if(!C.has(e.slug)||!e.steps.length)return[];let t=S.find(t=>t.slug===e.slug);return t?[{routeConfig:t,tour:e}]:[]}):[],[null==O?void 0:O.onboardings,S,C]),P=(0,c.useCallback)(e=>{var t;let n=null!=(t=v.current.get(e))?t:Date.now();return Math.round((Date.now()-n)/1e3)},[]);(0,c.useEffect)(()=>{h(!0)},[]),(0,c.useEffect)(()=>{g(e=>{let t=!1,n={...e};return A.forEach(e=>{let{tour:r}=e;f.has(r.slug)||n[r.slug]||(n[r.slug]={index:0,steps:r.steps,totalSteps:r.total_steps},t=!0)}),t?n:e})},[f,A]);let j=(0,c.useMemo)(()=>Object.entries(m).flatMap(e=>{let[t,n]=e;if(f.has(t))return[];let r=S.find(e=>e.slug===t);if(!r)return[];let s=n.steps[n.index];return s?[{key:t,routeConfig:r,step:s,stepNumber:(e=>e.totalSteps-e.steps.length+1+e.index)(n),totalSteps:n.totalSteps}]:[]}),[f,S,m]);(0,c.useEffect)(()=>{_.current=!1},[j]),(0,c.useEffect)(()=>{let e=new Set(j.map(e=>{let{key:t}=e;return t}));j.forEach(e=>{let{key:t}=e;v.current.has(t)||v.current.set(t,Date.now())}),v.current.forEach((t,n)=>{e.has(n)||v.current.delete(n)})},[j]);let k=(0,c.useCallback)(e=>{p(t=>{let n=new Set(t);return e.forEach(e=>{n.add(e)}),n}),g(t=>{if(!e.some(e=>e in t))return t;let n={...t};return e.forEach(e=>{delete n[e]}),n})},[]),M=(0,c.useCallback)(()=>{if(_.current||!j.length)return;let e=j.filter(e=>{let{routeConfig:t}=e;return!f.has(t.slug)});e.length&&(_.current=!0,k(e.map(e=>{let{routeConfig:t}=e;return t.slug})),Promise.all(e.map(e=>{let{routeConfig:t,stepNumber:n,key:r}=e;return x({body:{skip:!0,step:n,time_spent:P(r)},onboardingSlug:t.slug})})).finally(()=>{E()}))},[j,x,k,f,P,E]),L=(0,c.useCallback)(e=>{let{slug:t,step:n,timeSpent:r}=e;f.has(t)||(k([t]),x({body:{skip:!0,step:n,time_spent:r},onboardingSlug:t}).finally(()=>{E()}))},[x,k,f,E]),q=(0,c.useCallback)(e=>{let{isLastStep:t,slug:n,step:r,timeSpent:s}=e,i="".concat(n,":").concat(r);f.has(n)||b.current.has(i)||(b.current.add(i),t?k([n]):g(e=>{let t=e[n];return t?{...e,[n]:{...t,index:t.index+1}}:e}),x({body:{skip:!1,step:r,time_spent:s},onboardingSlug:n}).then(()=>E()).finally(()=>{b.current.delete(i)}))},[x,k,f,E]);return n&&j.length?(0,r.jsx)(r.Fragment,{children:j.map(e=>{let{key:t,routeConfig:n,step:s,stepNumber:i,totalSteps:o}=e;return(0,r.jsx)(w,{routeConfig:n,onboarding_slug:n.slug,step:s,stepNumber:i,totalSteps:o,onDismissAll:M,onDismissTour:()=>{L({slug:n.slug,step:i,timeSpent:P(t)})},onComplete:e=>{let{slug:t,step:n,timeSpent:r}=e;q({isLastStep:n===o,slug:t,step:n,timeSpent:r})}},t)})}):null}},68321:(e,t,n)=>{"use strict";n.d(t,{default:()=>s.a});var r=n(41402),s=n.n(r)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.