@yuno-payments/dashboard-api-mfe 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,7 +38,7 @@ statuses/index.js:
38
38
  * Copyright(c) 2016 Douglas Christopher Wilson
39
39
  * MIT Licensed
40
40
  *)
41
- */function yt(e){if(mt.test(e)||""===e.trim())throw new TypeError("Invalid character in header field name");return e.trim().toLowerCase()}var vt=[String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(9),String.fromCharCode(32)],bt=new RegExp(`(^[${vt.join("")}]|$[${vt.join("")}])`,"g");function kt(e){return e.replace(bt,"")}function wt(e){if("string"!=typeof e)return!1;if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>127||!_t(n))return!1}return!0}function _t(e){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(e)}function Et(e){if("string"!=typeof e)return!1;if(e.trim()!==e)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(0===n||10===n||13===n)return!1}return!0}var xt,St,Ct,It=Symbol("normalizedHeaders"),Rt=Symbol("rawHeaderNames"),Tt=class e{constructor(t){if(this[xt]={},this[St]=new Map,this[Ct]="Headers",["Headers","HeadersPolyfill"].includes(t?.constructor.name)||t instanceof e||void 0!==globalThis.Headers&&t instanceof globalThis.Headers){t.forEach((e,t)=>{this.append(t,e)},this)}else Array.isArray(t)?t.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(", "):t)}):t&&Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e];this.append(e,Array.isArray(n)?n.join(", "):n)})}[(xt=It,St=Rt,Ct=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[It]).sort((e,t)=>e.localeCompare(t));for(const t of e)if("set-cookie"===t)for(const e of this.getSetCookie())yield[t,e];else yield[t,this.get(t)]}has(e){if(!wt(e))throw new TypeError(`Invalid header name "${e}"`);return this[It].hasOwnProperty(yt(e))}get(e){if(!wt(e))throw TypeError(`Invalid header name "${e}"`);return this[It][yt(e)]??null}set(e,t){if(!wt(e)||!Et(t))return;const n=yt(e),r=kt(t);this[It][n]=kt(r),this[Rt].set(n,e)}append(e,t){if(!wt(e)||!Et(t))return;const n=yt(e),r=kt(t);let o=this.has(n)?`${this.get(n)}, ${r}`:r;this.set(e,o)}delete(e){if(!wt(e))return;if(!this.has(e))return;const t=yt(e);delete this[It][t],this[Rt].delete(t)}forEach(e,t){for(const[n,r]of this.entries())e.call(t,r,n,this)}getSetCookie(){const e=this.get("set-cookie");return null===e?[]:""===e?[""]:(0,gt.splitCookiesString)(e)}};const{message:Ot}=st,At=Symbol("kSetCookie");function Pt(e={}){const t=e?.status||200,n=e?.statusText||Ot[t]||"",r=new Headers(e?.headers);return{...e,headers:r,status:t,statusText:n}}async function jt(e,t,n,r,o,a){if(o.emit("request:start",{request:e,requestId:t}),e.headers.get("accept")?.includes("msw/passthrough"))return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(()=>(async({request:e,requestId:t,handlers:n,resolutionContext:r})=>{let o=null,a=null;for(const i of n)if(a=await i.run({request:e,requestId:t,resolutionContext:r}),null!==a&&(o=i),a?.response)break;return o?{handler:o,parsedResult:a?.parsedResult,response:a?.response}:null})({request:e,requestId:t,handlers:n,resolutionContext:a?.resolutionContext}));if(i)throw o.emit("unhandledException",{error:i,request:e,requestId:t}),i;if(!s)return await C(e,r.onUnhandledRequest),o.emit("request:unhandled",{request:e,requestId:t}),o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const{response:c}=s;if(!c)return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);if(302===c.status&&"passthrough"===c.headers.get("x-msw-intention"))return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);await async function(e,t){const n=Reflect.get(t,At);n&&await Ve.setCookie(n,e.url)}(e,c),o.emit("request:match",{request:e,requestId:t});const u=s;return a?.onMockedResponse?.(c,u),o.emit("request:end",{request:e,requestId:t}),c}function Dt(e){return t=>null!=t&&"object"==typeof t&&"__kind"in t&&t.__kind===e}var Lt=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},zt=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=zt.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...r)=>(this.removeListener(e,n),t.apply(this,r));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new Lt(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},qt=zt;qt.defaultMaxListeners=10;class Nt{subscriptions=[];dispose(){let e;for(;e=this.subscriptions.shift();)e()}}class Ut{constructor(e){this.initialHandlers=e,this.handlers=[...e]}handlers;prepend(e){this.handlers.unshift(...e)}reset(e){this.handlers=e.length>0?[...e]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class Mt extends Nt{handlersController;emitter;publicEmitter;events;constructor(...e){super(),v(this.validateHandlers(e),k.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new Ut(e),this.emitter=new qt,this.publicEmitter=new qt,function(e,t){const n=e.emit;if(n._isPiped)return;const r=function(e,...r){return t.emit(e,...r),n.call(this,e,...r)};r._isPiped=!0,e.emit=r}(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(e){return e.every(e=>!Array.isArray(e))}use(...e){v(this.validateHandlers(e),k.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(e)}restoreHandlers(){this.handlersController.currentHandlers().forEach(e=>{"isUsed"in e&&(e.isUsed=!1)})}resetHandlers(...e){this.handlersController.reset(e)}listHandlers(){return function(e){const t=[...e];return Object.freeze(t),t}(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...e)=>this.publicEmitter.on(...e),removeListener:(...e)=>this.publicEmitter.removeListener(...e),removeAllListeners:(...e)=>this.publicEmitter.removeAllListeners(...e)}}}var Bt=Object.defineProperty,Ft={};function Ht(e){return`${e}`}function Wt(e){return`${e}`}function Gt(e){return`${e}`}function Vt(e){return`${e}`}function Kt(e){return`${e}`}((e,t)=>{for(var n in t)Bt(e,n,{get:t[n],enumerable:!0})})(Ft,{blue:()=>Wt,gray:()=>Gt,green:()=>Kt,red:()=>Vt,yellow:()=>Ht});var $t=I(),Qt=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=tn("DEBUG"),n=tn("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=nn(n,"debug")?Jt:this.debug,this.info=nn(n,"info")?Jt:this.info,this.success=nn(n,"success")?Jt:this.success,this.warning=nn(n,"warning")?Jt:this.warning,this.error=nn(n,"error")?Jt:this.error):(this.info=Jt,this.success=Jt,this.warning=Jt,this.error=Jt,this.only=Jt)}prefix;extend(e){return new Qt(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:Gt(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new Yt;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${Gt(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:r,colors:o,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:Ft[o?.timestamp||"gray"],prefix:Ft[o?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=r?s.prefix(r):[]).concat(rn(n)).join(" "),...a.map(rn))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return Zt;case"warning":return Xt;case"error":return en}}},Yt=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},Jt=()=>{};function Zt(e,...t){$t?process.stdout.write(m(e,...t)+"\n"):console.log(e,...t)}function Xt(e,...t){$t?process.stderr.write(m(e,...t)+"\n"):console.warn(e,...t)}function en(e,...t){$t?process.stderr.write(m(e,...t)+"\n"):console.error(e,...t)}function tn(e){return $t?process.env[e]:globalThis[e]?.toString()}function nn(e,t){return void 0!==e&&e!==t}function rn(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}function on(e){return globalThis[e]||void 0}let an=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({});var sn=class{constructor(e){this.symbol=e,this.readyState=an.INACTIVE,this.emitter=new qt,this.subscriptions=[],this.logger=new Qt(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===an.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=an.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,r)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,r),this.subscriptions.push(()=>{t.emitter.removeListener(n,r),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=an.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=an.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===an.DISPOSING||this.readyState===an.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==an.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=an.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",on(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=an.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=on(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function cn(e){if("string"==typeof e)return cn(new URL(e,"undefined"!=typeof location?location.href:void 0));if("http:"===e.protocol?e.protocol="ws:":"https:"===e.protocol&&(e.protocol="wss:"),"ws:"!==e.protocol&&"wss:"!==e.protocol)throw new SyntaxError(`Failed to construct 'WebSocket': The URL's scheme must be either 'http', 'https', 'ws', or 'wss'. '${e.protocol}' is not allowed.`);if(""!==e.hash)throw new SyntaxError(`Failed to construct 'WebSocket': The URL contains a fragment identifier ('${e.hash}'). Fragment identifiers are not allowed in WebSocket URLs.`);return e.href}var un=class extends Promise{#r;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,r)=>{t(n,r),e?.(t.resolve,t.reject)}),this.#r=t,this.resolve=this.#r.resolve,this.reject=this.#r.reject}get state(){return this.#r.state}get rejectionReason(){return this.#r.rejectionReason}then(e,t){return this.#o(super.then(e,t))}catch(e){return this.#o(super.catch(e))}finally(e){return this.#o(super.finally(e))}#o(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}};function ln(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}const dn=Symbol("kCancelable"),pn=Symbol("kDefaultPrevented");var hn=class extends MessageEvent{constructor(e,t){super(e,t),this[dn]=!!t.cancelable,this[pn]=!1}get cancelable(){return this[dn]}set cancelable(e){this[dn]=e}get defaultPrevented(){return this[pn]}set defaultPrevented(e){this[pn]=e}preventDefault(){this.cancelable&&!this[pn]&&(this[pn]=!0)}},fn=class extends Event{constructor(e,t={}){super(e,t),this.code=void 0===t.code?0:t.code,this.reason=void 0===t.reason?"":t.reason,this.wasClean=void 0!==t.wasClean&&t.wasClean}},gn=class extends fn{constructor(e,t={}){super(e,t),this[dn]=!!t.cancelable,this[pn]=!1}get cancelable(){return this[dn]}set cancelable(e){this[dn]=e}get defaultPrevented(){return this[pn]}set defaultPrevented(e){this[pn]=e}preventDefault(){this.cancelable&&!this[pn]&&(this[pn]=!0)}};const mn=Symbol("kEmitter"),yn=Symbol("kBoundListener");var vn=class{constructor(e,t){this.socket=e,this.transport=t,this.id=Math.random().toString(16).slice(2),this.url=new URL(e.url),this[mn]=new EventTarget,this.transport.addEventListener("outgoing",e=>{const t=ln(this.socket,new hn("message",{data:e.data,origin:e.origin,cancelable:!0}));this[mn].dispatchEvent(t),t.defaultPrevented&&e.preventDefault()}),this.transport.addEventListener("close",e=>{this[mn].dispatchEvent(ln(this.socket,new fn("close",e)))})}addEventListener(e,t,n){if(!Reflect.has(t,yn)){const e=t.bind(this.socket);Object.defineProperty(t,yn,{value:e,enumerable:!1,configurable:!1})}this[mn].addEventListener(e,Reflect.get(t,yn),n)}removeEventListener(e,t,n){this[mn].removeEventListener(e,Reflect.get(t,yn),n)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}};const bn="InvalidAccessError: close code out of user configurable range",kn=Symbol("kPassthroughPromise"),wn=Symbol("kOnSend"),_n=Symbol("kClose");var En=class extends EventTarget{static{this.CONNECTING=0}static{this.OPEN=1}static{this.CLOSING=2}static{this.CLOSED=3}constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=cn(e),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[kn]=new un,queueMicrotask(async()=>{await this[kn]||(this.protocol="string"==typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(ln(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,null!==e&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,null!==e&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,null!==e&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,null!==e&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.bufferedAmount+=function(e){return"string"==typeof e?e.length:e instanceof Blob?e.size:e.byteLength}(e),queueMicrotask(()=>{this.bufferedAmount=0,this[wn]?.(e)}))}close(e=1e3,t){v(e,bn),v(1e3===e||e>=3e3&&e<=4999,bn),this[_n](e,t)}[_n](e=1e3,t,n=!0){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(ln(this,new fn("close",{code:e,reason:t,wasClean:n}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,n){return super.addEventListener(e,t,n)}removeEventListener(e,t,n){return super.removeEventListener(e,t,n)}};const xn=Symbol("kEmitter"),Sn=Symbol("kBoundListener"),Cn=Symbol("kSend");var In=class{constructor(e,t,n){this.client=e,this.transport=t,this.createConnection=n,this[xn]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",e=>{void 0!==this.realWebSocket&&queueMicrotask(()=>{e.defaultPrevented||this[Cn](e.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return v(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){v(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",e=>{this[xn].dispatchEvent(ln(this.realWebSocket,new Event("open",e)))},{once:!0}),e.addEventListener("message",e=>{this.transport.dispatchEvent(ln(this.realWebSocket,new MessageEvent("incoming",{data:e.data,origin:e.origin})))}),this.client.addEventListener("close",e=>{this.handleMockClose(e)},{signal:this.mockCloseController.signal}),e.addEventListener("close",e=>{this.handleRealClose(e)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=ln(e,new Event("error",{cancelable:!0}));this[xn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ln(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,n){if(!Reflect.has(t,Sn)){const e=t.bind(this.client);Object.defineProperty(t,Sn,{value:e,enumerable:!1})}this[xn].addEventListener(e,Reflect.get(t,Sn),n)}removeEventListener(e,t,n){this[xn].removeEventListener(e,Reflect.get(t,Sn),n)}send(e){this[Cn](e)}[Cn](e){const{realWebSocket:t}=this;v(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),t.readyState!==WebSocket.CLOSING&&t.readyState!==WebSocket.CLOSED&&(t.readyState!==WebSocket.CONNECTING?t.send(e):t.addEventListener("open",()=>{t.send(e)},{once:!0}))}close(){const{realWebSocket:e}=this;v(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),e.readyState!==WebSocket.CLOSING&&e.readyState!==WebSocket.CLOSED&&(e.close(),queueMicrotask(()=>{this[xn].dispatchEvent(ln(this.realWebSocket,new gn("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=ln(e.target,new hn("message",{data:e.data,origin:e.origin,cancelable:!0}));this[xn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ln(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=ln(this.realWebSocket,new gn("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[xn].dispatchEvent(t),t.defaultPrevented||this.client[_n](e.code,e.reason)}},Rn=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",e=>{this.dispatchEvent(ln(this.socket,new fn("close",e)))}),this.socket[wn]=e=>{this.dispatchEvent(ln(this.socket,new hn("outgoing",{data:e,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,n){return super.addEventListener(e,t,n)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(ln(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[_n](e,t)}},Tn=class e extends sn{static{this.symbol=Symbol("websocket")}constructor(){super(e.symbol)}checkEnvironment(){return function(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return!(void 0===t||"function"==typeof t.get&&void 0===t.get()||void 0===t.get&&null==t.value||void 0===t.set&&!t.configurable&&(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),1))}("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(e,t,n)=>{const[r,o]=t,a=()=>Reflect.construct(e,t,n),i=new En(r,o),s=new Rn(i);return queueMicrotask(async()=>{try{const e=new In(i,s,a),t=this.emitter.listenerCount("connection")>0;await async function(e,t,...n){const r=e.listeners(t);if(0!==r.length)for(const t of r)await t.apply(e,n)}(this.emitter,"connection",{client:new vn(i,s),server:e,info:{protocols:o}}),t?i[kn].resolve(!1):(i[kn].resolve(!0),e.connect(),e.addEventListener("open",()=>{i.dispatchEvent(ln(i,new Event("open"))),e.realWebSocket&&(i.protocol=e.realWebSocket.protocol)}))}catch(e){e instanceof Error&&(i.dispatchEvent(new Event("error")),i.readyState!==WebSocket.CLOSING&&i.readyState!==WebSocket.CLOSED&&i[_n](1011,e.message,!1),console.error(e))}}),i}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}};const On=new Tn;function An(e){const t=new Date,n=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}`;return e?.milliseconds?`${n}.${t.getMilliseconds().toString().padStart(3,"0")}`:n}function Pn(e){return e instanceof Blob?e.size:h(e)&&"byteLength"in e?e.byteLength:new Blob([e]).size}function jn(e){return e.length<=24?e:`${e.slice(0,24)}…`}async function Dn(e){if(e instanceof Blob){return`Blob(${jn(await e.text())})`}if(h(e)){return`ArrayBuffer(${jn((new TextDecoder).decode(e))})`}return jn(e)}const Ln="#3b82f6",zn="#22c55e",qn="#ef4444",Nn="#ff6a33";function Un(e){const{client:t,server:n}=e;!function(e){const t=S(e.url);console.groupCollapsed(k.formatMessage(`${An()} %c▶%c ${t}`),`color:${Ln}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}(t),t.addEventListener("message",e=>{!async function(e){const t=Pn(e.data),n=await Dn(e.data),r=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c${r}%c ${n} %c${t}%c`),`color:${zn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)}),t.addEventListener("close",e=>{!function(e){const t=e.target,n=S(t.url);console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c■%c ${n}`),`color:${Ln}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.socket.addEventListener("error",e=>{!function(e){const t=e.target,n=S(t.url);console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c×%c ${n}`),`color:${Ln}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.send=new Proxy(t.send,{apply(e,n,r){const[o]=r,a=new MessageEvent("message",{data:o});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{!async function(e){const t=Pn(e.data),n=await Dn(e.data);console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c⬇%c ${n} %c${t}%c`),`color:${Nn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a)}),Reflect.apply(e,n,r)}}),n.addEventListener("open",()=>{n.addEventListener("message",e=>{!async function(e){const t=Pn(e.data),n=await Dn(e.data),r=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c${r}%c ${n} %c${t}%c`),`color:${qn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)})},{once:!0}),n.send=new Proxy(n.send,{apply(e,t,r){const[o]=r,a=new MessageEvent("message",{data:o});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:n.socket},target:{enumerable:!0,writable:!1,value:n.socket}}),async function(e){const t=Pn(e.data),n=await Dn(e.data);console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c⬆%c ${n} %c${t}%c`),`color:${Nn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a),Reflect.apply(e,t,r)}})}var Mn=/(%?)(%([sdijo]))/g;function Bn(e,...t){if(0===t.length)return e;let n=0,r=e.replace(Mn,(e,r,o,a)=>{const i=function(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if("string"==typeof e)return e;const t=JSON.stringify(e);return"{}"===t||"[]"===t||/^\[object .+?\]$/.test(t)?e:t}}}(t[n],a);return r?e:(n++,i)});return n<t.length&&(r+=` ${t.slice(n).join(" ")}`),r=r.replace(/%{2,2}/g,"%"),r}var Fn=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=Bn(e,...t),function(e){if(!e.stack)return;const t=e.stack.split("\n");t.splice(1,2),e.stack=t.join("\n")}(this)}},Hn=(e,t,...n)=>{if(!e)throw new Fn(t,...n)};function Wn(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if("undefined"!=typeof process){const e=process.type;return"renderer"!==e&&"worker"!==e&&!(!process.versions||!process.versions.node)}return!1}Hn.as=(e,t,n,...r)=>{if(!t){const t=0===r.length?n:Bn(n,...r);let o;try{o=Reflect.construct(e,[t])}catch(n){o=e(t)}throw o}};var Gn=class extends Promise{#r;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,r)=>{t(n,r),e?.(t.resolve,t.reject)}),this.#r=t,this.resolve=this.#r.resolve,this.reject=this.#r.reject}get state(){return this.#r.state}get rejectionReason(){return this.#r.rejectionReason}then(e,t){return this.#o(super.then(e,t))}catch(e){return this.#o(super.catch(e))}finally(e){return this.#o(super.finally(e))}#o(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}},Vn={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker:(e,t)=>e===t};function Kn(e,t,n){return[e.active,e.installing,e.waiting].filter(e=>null!=e).find(e=>n(e.scriptURL,t))||null}var $n=async(e,t={},n)=>{const r=new URL(e,location.href).href;const o=await navigator.serviceWorker.getRegistrations().then(e=>e.filter(e=>Kn(e,r,n)));!navigator.serviceWorker.controller&&o.length>0&&location.reload();const[a]=o;if(a)return a.update(),[Kn(a,r,n),a];const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(async()=>{const o=await navigator.serviceWorker.register(e,t);return[Kn(o,r,n),o]});if(i){if(i.message.includes("(404)")){const e=new URL(t?.scope||"/",location.href);throw new Error(k.formatMessage(`Failed to register a Service Worker for scope ('${e.href}') with script ('${r}'): Service Worker script does not exist at the given path.\n\nDid you forget to run "npx msw init <PUBLIC_DIR>"?\n\nLearn more about creating the Service Worker script: https://mswjs.io/docs/cli/init`))}throw new Error(k.formatMessage("Failed to register the Service Worker:\n\n%s",i.message))}return s};function Qn(e={}){if(e.quiet)return;const t=e.message||"Mocking enabled.";console.groupCollapsed(`%c${k.formatMessage(t)}`,"color:orangered;font-weight:bold;"),console.log("%cDocumentation: %chttps://mswjs.io/docs","font-weight:bold","font-weight:normal"),console.log("Found an issue? https://github.com/mswjs/msw/issues"),e.workerUrl&&console.log("Worker script URL:",e.workerUrl),e.workerScope&&console.log("Worker scope:",e.workerScope),e.client&&console.log("Client ID: %s (%s)",e.client.id,e.client.frameType),console.groupEnd()}function Yn(e){if(!["HEAD","GET"].includes(e.method))return e.body}function Jn(e){return new Request(e.url,{...e,body:Yn(e)})}function Zn(){return"undefined"!=typeof navigator&&"serviceWorker"in navigator&&"undefined"!=typeof location&&"file:"!==location.protocol}var Xn=function(){try{const e=new ReadableStream({start:e=>e.close()});return(new MessageChannel).port1.postMessage(e,[e]),!0}catch{return!1}}(),er=(e,t)=>async n=>{if(!e.isMockingEnabled&&e.workerStoppedAt&&n.data.interceptedAt>e.workerStoppedAt)return void n.postMessage("PASSTHROUGH");const r=n.data.id,o=Jn(n.data),a=o.clone(),i=o.clone();x.cache.set(o,i);try{await jt(o,r,e.getRequestHandlers().filter(Dt("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onPassthroughResponse(){n.postMessage("PASSTHROUGH")},async onMockedResponse(r,{handler:o,parsedResult:i}){const s=r.clone(),c=r.clone(),u=function(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}(r);if(Xn){const e=r.body;n.postMessage("MOCK_RESPONSE",{...u,body:e},e?[e]:void 0)}else{const e=null===r.body?null:await s.arrayBuffer();n.postMessage("MOCK_RESPONSE",{...u,body:e})}t.quiet||e.emitter.once("response:mocked",()=>{o.log({request:a,response:c,parsedResult:i})})}})}catch(e){e instanceof Error&&(k.error('Uncaught exception in the request handler for "%s %s":\n\n%s\n\nThis exception has been gracefully handled as a 500 response, however, it\'s strongly recommended to resolve this error, as it indicates a mistake in your code. If you wish to mock an error response, please see this guide: https://mswjs.io/docs/http/mocking-responses/error-responses',o.method,o.url,e.stack??e),n.postMessage("MOCK_RESPONSE",{status:500,statusText:"Request Handler Error",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,message:e.message,stack:e.stack})}))}};var tr=Symbol("isPatchedModule"),nr=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}},rr=class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new Gn}get#a(){return this.handled}async passthrough(){Hn.as(nr,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){Hn.as(nr,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){Hn.as(nr,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}};function or(e){try{return new URL(e),!0}catch(e){return!1}}function ar(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}var ir=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!or(e))return;const n=ar("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const r=n.status??200,o=e.isConfigurableStatusCode(r)?r:200;if(super(e.isResponseWithBody(r)?t:null,{status:o,statusText:n.statusText,headers:n.headers}),r!==o){const e=ar("state",this);e?e.status=r:Object.defineProperty(this,"status",{value:r,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}},sr=Symbol("kRawRequest");function cr(e,t){Reflect.set(e,sr,t)}var ur=Object.defineProperty,lr={};function dr(e){return`${e}`}function pr(e){return`${e}`}function hr(e){return`${e}`}function fr(e){return`${e}`}function gr(e){return`${e}`}((e,t)=>{for(var n in t)ur(e,n,{get:t[n],enumerable:!0})})(lr,{blue:()=>pr,gray:()=>hr,green:()=>gr,red:()=>fr,yellow:()=>dr});var mr=Wn(),yr=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=Er("DEBUG"),n=Er("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=xr(n,"debug")?br:this.debug,this.info=xr(n,"info")?br:this.info,this.success=xr(n,"success")?br:this.success,this.warning=xr(n,"warning")?br:this.warning,this.error=xr(n,"error")?br:this.error):(this.info=br,this.success=br,this.warning=br,this.error=br,this.only=br)}prefix;extend(e){return new yr(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:hr(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new vr;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${hr(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:r,colors:o,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:lr[o?.timestamp||"gray"],prefix:lr[o?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=r?s.prefix(r):[]).concat(Sr(n)).join(" "),...a.map(Sr))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return kr;case"warning":return wr;case"error":return _r}}},vr=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},br=()=>{};function kr(e,...t){mr?process.stdout.write(Bn(e,...t)+"\n"):console.log(e,...t)}function wr(e,...t){mr?process.stderr.write(Bn(e,...t)+"\n"):console.warn(e,...t)}function _r(e,...t){mr?process.stderr.write(Bn(e,...t)+"\n"):console.error(e,...t)}function Er(e){return mr?process.env[e]:globalThis[e]?.toString()}function xr(e,t){return void 0!==e&&e!==t}function Sr(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}var Cr=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},Ir=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=Ir.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...r)=>(this.removeListener(e,n),t.apply(this,r));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new Cr(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},Rr=Ir;Rr.defaultMaxListeners=10;function Tr(e){return globalThis[e]||void 0}var Or=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({}),Ar=class{constructor(e){this.symbol=e,this.readyState=Or.INACTIVE,this.emitter=new Rr,this.subscriptions=[],this.logger=new yr(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===Or.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=Or.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,r)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,r),this.subscriptions.push(()=>{t.emitter.removeListener(n,r),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=Or.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=Or.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===Or.DISPOSING||this.readyState===Or.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==Or.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=Or.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",Tr(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=Or.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=Tr(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Pr(){return Math.random().toString(16).slice(2)}var jr=new TextEncoder;var Dr=class e extends Ar{constructor(t){e.symbol=Symbol(t.name),super(e.symbol),this.interceptors=t.interceptors}setup(){const e=this.logger.extend("setup");e.info("applying all %d interceptors...",this.interceptors.length);for(const t of this.interceptors)e.info('applying "%s" interceptor...',t.constructor.name),t.apply(),e.info("adding interceptor dispose subscription"),this.subscriptions.push(()=>t.dispose())}on(e,t){for(const n of this.interceptors)n.on(e,t);return this}once(e,t){for(const n of this.interceptors)n.once(e,t);return this}off(e,t){for(const n of this.interceptors)n.off(e,t);return this}removeAllListeners(e){for(const t of this.interceptors)t.removeAllListeners(e);return this}};var Lr=e=>function(t,n){const r=(async()=>{e.workerChannel.removeAllListeners(),e.workerChannel.on("REQUEST",er(e,t)),e.workerChannel.on("RESPONSE",function(e){return t=>{const n=t.data,r=Jn(n.request);if(n.response.type?.includes("opaque"))return;const o=0===n.response.status?Response.error():new ir(ir.isResponseWithBody(n.response.status)?n.response.body:null,{...n.response,url:r.url});e.emitter.emit(n.isMockedResponse?"response:mocked":"response:bypass",{requestId:n.request.id,request:r,response:o})}}(e));const r=await $n(t.serviceWorker.url,t.serviceWorker.options,t.findWorker),[o,a]=r;if(!o){const e=n?.findWorker?k.formatMessage('Failed to locate the Service Worker registration using a custom "findWorker" predicate.\n\nPlease ensure that the custom predicate properly locates the Service Worker registration at "%s".\nMore details: https://mswjs.io/docs/api/setup-worker/start#findworker\n',t.serviceWorker.url):k.formatMessage('Failed to locate the Service Worker registration.\n\nThis most likely means that the worker script URL "%s" cannot resolve against the actual public hostname (%s). This may happen if your application runs behind a proxy, or has a dynamic hostname.\n\nPlease consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start',t.serviceWorker.url,location.host);throw new Error(e)}return e.workerPromise.resolve(o),e.registration=a,window.addEventListener("beforeunload",()=>{"redundant"!==o.state&&e.workerChannel.postMessage("CLIENT_CLOSED"),window.clearInterval(e.keepAliveInterval),window.postMessage({type:"msw/worker:stop"})}),await function(e){const t=new Gn;return e.workerChannel.postMessage("INTEGRITY_CHECK_REQUEST"),e.workerChannel.once("INTEGRITY_CHECK_RESPONSE",e=>{const{checksum:n,packageVersion:r}=e.data;"4db4a41e972cec1b64cc569c66952d82"!==n&&k.warn(`The currently registered Service Worker has been generated by a different version of MSW (${r}) and may not be fully compatible with the installed version.\n\nIt's recommended you update your worker script by running this command:\n\n • npx msw init <PUBLIC_DIR>\n\nYou can also automate this process and make the worker script update automatically upon the library installations. Read more: https://mswjs.io/docs/cli/init.`),t.resolve()}),t}(e).catch(e=>{k.error("Error while checking the worker script integrity. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),console.error(e)}),e.keepAliveInterval=window.setInterval(()=>e.workerChannel.postMessage("KEEPALIVE_REQUEST"),5e3),function(e,t){t?.quiet||location.href.startsWith(e.scope)||k.warn(`Cannot intercept requests on this page because it's outside of the worker's scope ("${e.scope}"). If you wish to mock API requests on this page, you must resolve this scope issue.\n\n- (Recommended) Register the worker at the root level ("/") of your application.\n- Set the "Service-Worker-Allowed" response header to allow out-of-scope workers.`)}(a,e.startOptions),a})().then(async n=>{const r=n.installing||n.waiting;if(r){const e=new Gn;r.addEventListener("statechange",()=>{"activated"===r.state&&e.resolve()}),await e}return await function(e,t){const n=new Gn;return e.workerChannel.postMessage("MOCK_ACTIVATE"),e.workerChannel.once("MOCKING_ENABLED",async r=>{e.isMockingEnabled=!0;const o=await e.workerPromise;Qn({quiet:t.quiet,workerScope:e.registration?.scope,workerUrl:o.scriptURL,client:r.data.client}),n.resolve(!0)}),n}(e,t).catch(e=>{throw k.error("Failed to enable mocking. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),e}),n});return r},zr=class{#i;#s;constructor(){this.#i=[],this.#s=new Map}get[Symbol.iterator](){return this.#i[Symbol.iterator].bind(this.#i)}entries(){return this.#s.entries()}get(e){return this.#s.get(e)||[]}getAll(){return this.#i.map(([,e])=>e)}append(e,t){this.#i.push([e,t]),this.#c(e,e=>e.push(t))}prepend(e,t){this.#i.unshift([e,t]),this.#c(e,e=>e.unshift(t))}delete(e,t){if(0!==this.size){this.#i=this.#i.filter(e=>e[1]!==t);for(const[n,r]of this.#s)n===e&&r.includes(t)&&r.splice(r.indexOf(t),1)}}deleteAll(e){0!==this.size&&(this.#i=this.#i.filter(t=>t[0]!==e),this.#s.delete(e))}get size(){return this.#i.length}clear(){0!==this.size&&(this.#i.length=0,this.#s.clear())}#c(e,t){t(this.#s.get(e)||this.#s.set(e,[]).get(e))}},qr=Symbol("kDefaultPrevented"),Nr=Symbol("kPropagationStopped"),Ur=Symbol("kImmediatePropagationStopped"),Mr=class extends MessageEvent{#u;[qr];[Nr];[Ur];constructor(...e){super(e[0],e[1]),this[qr]=!1}get defaultPrevented(){return this[qr]}preventDefault(){super.preventDefault(),this[qr]=!0}stopImmediatePropagation(){super.stopImmediatePropagation(),this[Ur]=!0}},Br=Symbol("kListenerOptions"),Fr=class{#l;constructor(){this.#l=new zr}on(e,t,n){return this.#d(e,t,n),this}once(e,t,n){return this.on(e,t,{...n||{},once:!0})}earlyOn(e,t,n){return this.#d(e,t,n,"prepend"),this}earlyOnce(e,t,n){return this.earlyOn(e,t,{...n||{},once:!0})}emit(e){if(0===this.#l.size)return!1;const t=this.listenerCount(e.type)>0,n=this.#p(e);for(const t of this.#h(e.type)){if(null!=n.event[Nr]&&n.event[Nr]!==this)return n.revoke(),!1;if(n.event[Ur])break;this.#f(n.event,t)}return n.revoke(),t}async emitAsPromise(e){if(0===this.#l.size)return[];const t=[],n=this.#p(e);for(const r of this.#h(e.type)){if(null!=n.event[Nr]&&n.event[Nr]!==this)return n.revoke(),[];if(n.event[Ur])break;const e=await Promise.resolve(this.#f(n.event,r));this.#g(r)||t.push(e)}return n.revoke(),Promise.allSettled(t).then(e=>e.map(e=>"fulfilled"===e.status?e.value:e.reason))}*emitAsGenerator(e){if(0===this.#l.size)return;const t=this.#p(e);for(const n of this.#h(e.type)){if(null!=t.event[Nr]&&t.event[Nr]!==this)return void t.revoke();if(t.event[Ur])break;const e=this.#f(t.event,n);this.#g(n)||(yield e)}t.revoke()}removeListener(e,t){this.#l.delete(e,t)}removeAllListeners(e){null!=e?this.#l.deleteAll(e):this.#l.clear()}listeners(e){return null==e?this.#l.getAll():this.#l.get(e)}listenerCount(e){return null==e?this.#l.size:this.listeners(e).length}#d(e,t,n,r="append"){"prepend"===r?this.#l.prepend(e,t):this.#l.append(e,t),n&&(Object.defineProperty(t,Br,{value:n,enumerable:!1,writable:!1}),n.signal&&n.signal.addEventListener("abort",()=>{this.removeListener(e,t)},{once:!0}))}#p(e){const{stopPropagation:t}=e;return e.stopPropagation=new Proxy(e.stopPropagation,{apply:(t,n,r)=>(e[Nr]=this,Reflect.apply(t,n,r))}),{event:e,revoke(){e.stopPropagation=t}}}#f(e,t){const n=t.call(this,e);if(t[Br]?.once){const n=this.#g(t)?"*":e.type;this.#l.delete(n,t)}return n}*#h(e){for(const[t,n]of this.#l)"*"!==t&&t!==e||(yield n)}#g(e){return this.#l.get("*").includes(e)}},Hr=Zn(),Wr=class extends Mr{#m;constructor(e){super(e.data.type,{data:e.data.payload}),this.#m=e}get ports(){return this.#m.ports}postMessage(e,...t){this.#m.ports[0].postMessage({type:e,data:t[0]},{transfer:t[1]})}},Gr=class extends Fr{constructor(e){super(),this.options=e,Hr&&navigator.serviceWorker.addEventListener("message",async e=>{const t=await this.options.worker;null!=e.source&&e.source!==t||e.data&&h(e.data)&&"type"in e.data&&this.emit(new Wr(e))})}postMessage(e){Hn(Hr,"Failed to post message on a WorkerChannel: the Service Worker API is unavailable in this context. This is likely an issue with MSW. Please report it on GitHub: https://github.com/mswjs/msw/issues"),this.options.worker.then(t=>{t.postMessage(e)})}};async function Vr(e,t,...n){const r=e.listeners(t);if(0!==r.length)for(const t of r)await t.apply(e,n)}function Kr(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return void 0!==t&&(("function"!=typeof t.get||void 0!==t.get())&&((void 0!==t.get||null!=t.value)&&(!(void 0===t.set&&!t.configurable)||(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1))))}var $r=async e=>{try{return{error:null,data:await e().catch(e=>{throw e})}}catch(e){return{error:e,data:null}}};function Qr(e,t=!1){return t?Object.prototype.toString.call(e).startsWith("[object "):"[object Object]"===Object.prototype.toString.call(e)}function Yr(e,t){try{return e[t],!0}catch{return!1}}function Jr(e){return null!=e&&e instanceof Response&&Yr(e,"type")&&"error"===e.type}async function Zr(e){const t=async t=>{return t instanceof Error?(await e.controller.errorWith(t),!0):Jr(t)?(await e.controller.respondWith(t),!0):Qr(n=t,!0)&&Yr(n,"status")&&Yr(n,"statusText")&&Yr(n,"bodyUsed")?(await e.controller.respondWith(t),!0):!!Qr(t)&&(await e.controller.errorWith(t),!0);var n},n=async n=>{if(n instanceof nr)throw o.error;return function(e){return null!=e&&e instanceof Error&&"code"in e&&"errno"in e}(n)?(await e.controller.errorWith(n),!0):n instanceof Response&&await t(n)},r=new Gn;if(e.request.signal){if(e.request.signal.aborted)return void await e.controller.errorWith(e.request.signal.reason);e.request.signal.addEventListener("abort",()=>{r.reject(e.request.signal.reason)},{once:!0})}const o=await $r(async()=>{const t=Vr(e.emitter,"request",{requestId:e.requestId,request:e.request,controller:e.controller});await Promise.race([r,t,e.controller.handled])});if("rejected"!==r.state){var a;if(!o.error)return e.controller.readyState===rr.PENDING?await e.controller.passthrough():e.controller.handled;if(await n(o.error))return;if(e.emitter.listenerCount("unhandledException")>0){const n=new rr(e.request,{passthrough(){},async respondWith(e){await t(e)},async errorWith(t){await e.controller.errorWith(t)}});if(await Vr(e.emitter,"unhandledException",{error:o.error,request:e.request,requestId:e.requestId,controller:n}),n.readyState!==rr.PENDING)return}await e.controller.respondWith((a=o.error,new Response(JSON.stringify(a instanceof Error?{name:a.name,message:a.message,stack:a.stack}:a),{status:500,statusText:"Unhandled Exception",headers:{"Content-Type":"application/json"}})))}else await e.controller.errorWith(r.rejectionReason)}function Xr(e){return Object.assign(new TypeError("Failed to fetch"),{cause:e})}var eo=["content-encoding","content-language","content-location","content-type","content-length"],to=Symbol("kRedirectCount");function no(e,t){return e.origin===t.origin&&"null"===e.origin||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}var ro=class extends TransformStream{constructor(){console.warn("[Interceptors]: Brotli decompression of response streams is not supported in the browser"),super({transform(e,t){t.enqueue(e)}})}},oo=class extends TransformStream{constructor(e,...t){super({},...t);const n=[super.readable,...e].reduce((e,t)=>e.pipeThrough(t));Object.defineProperty(this,"readable",{get:()=>n})}};function ao(e){if(null===e.body)return null;const t=function(e){if(""===e)return null;const t=function(e){return e.toLowerCase().split(",").map(e=>e.trim())}(e);return 0===t.length?null:new oo(t.reduceRight((e,t)=>"gzip"===t||"x-gzip"===t?e.concat(new DecompressionStream("gzip")):"deflate"===t?e.concat(new DecompressionStream("deflate")):"br"===t?e.concat(new ro):(e.length=0,e),[]))}(e.headers.get("content-encoding")||"");return t?(e.body.pipeTo(t.writable),t.readable):null}var io=class e extends Ar{static{this.symbol=Symbol("fetch")}constructor(){super(e.symbol)}checkEnvironment(){return Kr("fetch")}async setup(){const e=globalThis.fetch;Hn(!e[tr],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=async(t,n)=>{const r=Pr(),o="string"!=typeof t||"undefined"==typeof location||or(t)?t:new URL(t,location.href),a=new Request(o,n);t instanceof Request&&cr(a,t);const i=new Gn,s=new rr(a,{passthrough:async()=>{this.logger.info("request has not been handled, passthrough...");const t=a.clone(),{error:n,data:o}=await $r(()=>e(a));if(n)return i.reject(n);if(this.logger.info("original fetch performed",o),this.emitter.listenerCount("response")>0){this.logger.info('emitting the "response" event...');const e=o.clone();await Vr(this.emitter,"response",{response:e,isMockedResponse:!1,request:t,requestId:r})}i.resolve(o)},respondWith:async e=>{if(Jr(e))return this.logger.info("request has errored!",{response:e}),void i.reject(Xr(e));this.logger.info("received mocked response!",{rawResponse:e});const t=ao(e),n=null===t?e:new ir(t,e);if(ir.setUrl(a.url,n),ir.isRedirectResponse(n.status)){if("error"===a.redirect)return void i.reject(Xr("unexpected redirect"));if("follow"===a.redirect)return void async function(e,t){if(303!==t.status&&null!=e.body)return Promise.reject(Xr());const n=new URL(e.url);let r;try{r=new URL(t.headers.get("location"),e.url)}catch(e){return Promise.reject(Xr(e))}if("http:"!==r.protocol&&"https:"!==r.protocol)return Promise.reject(Xr("URL scheme must be a HTTP(S) scheme"));if(Reflect.get(e,to)>20)return Promise.reject(Xr("redirect count exceeded"));if(Object.defineProperty(e,to,{value:(Reflect.get(e,to)||0)+1}),"cors"===e.mode&&(r.username||r.password)&&!no(n,r))return Promise.reject(Xr('cross origin not allowed for request mode "cors"'));const o={};([301,302].includes(t.status)&&"POST"===e.method||303===t.status&&!["HEAD","GET"].includes(e.method))&&(o.method="GET",o.body=null,eo.forEach(t=>{e.headers.delete(t)})),no(n,r)||(e.headers.delete("authorization"),e.headers.delete("proxy-authorization"),e.headers.delete("cookie"),e.headers.delete("host")),o.headers=e.headers;const a=await fetch(new Request(r,o));return Object.defineProperty(a,"redirected",{value:!0,configurable:!0}),a}(a,n).then(e=>{i.resolve(e)},e=>{i.reject(e)})}this.emitter.listenerCount("response")>0&&(this.logger.info('emitting the "response" event...'),await Vr(this.emitter,"response",{response:n.clone(),isMockedResponse:!0,request:a,requestId:r})),i.resolve(n)},errorWith:e=>{this.logger.info("request has been aborted!",{reason:e}),i.reject(e)}});return this.logger.info("[%s] %s",a.method,a.url),this.logger.info("awaiting for the mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',this.emitter.listenerCount("request")),await Zr({request:a,requestId:r,emitter:this.emitter,controller:s}),i},Object.defineProperty(globalThis.fetch,tr,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.fetch,tr,{value:void 0}),globalThis.fetch=e,this.logger.info('restored native "globalThis.fetch"!',globalThis.fetch.name)})}};var so=class{constructor(e,t){this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=t?.target||null,this.currentTarget=t?.currentTarget||null,this.timeStamp=Date.now()}composedPath(){return[]}initEvent(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n}preventDefault(){this.defaultPrevented=!0}stopPropagation(){}stopImmediatePropagation(){}},co=class extends so{constructor(e,t){super(e),this.lengthComputable=t?.lengthComputable||!1,this.composed=t?.composed||!1,this.loaded=t?.loaded||0,this.total=t?.total||0}},uo="undefined"!=typeof ProgressEvent;function lo(e,t){if(!(t in e))return null;if(Object.prototype.hasOwnProperty.call(e,t))return e;const n=Reflect.getPrototypeOf(e);return n?lo(n,t):null}function po(e,t){return new Proxy(e,function(e){const{constructorCall:t,methodCall:n,getProperty:r,setProperty:o}=e,a={};void 0!==t&&(a.construct=function(e,n,r){const o=Reflect.construct.bind(null,e,n,r);return t.call(r,n,o)});return a.set=function(e,t,n){const r=()=>{const r=lo(e,t)||e,o=Reflect.getOwnPropertyDescriptor(r,t);return void 0!==o?.set?(o.set.apply(e,[n]),!0):Reflect.defineProperty(r,t,{writable:!0,enumerable:!0,configurable:!0,value:n})};return void 0!==o?o.call(e,[t,n],r):r()},a.get=function(e,t,o){const a=()=>e[t],i=void 0!==r?r.call(e,[t,o],a):a();return"function"==typeof i?(...r)=>{const o=i.bind(e,...r);return void 0!==n?n.call(e,[t,r],o):o()}:i},a}(t))}function ho(e){const t=new Headers,n=e.split(/[\r\n]+/);for(const e of n){if(""===e.trim())continue;const[n,...r]=e.split(": "),o=r.join(": ");t.append(n,o)}return t}async function fo(e){const t=e.headers.get("content-length");return null!=t&&""!==t?Number(t):(await e.arrayBuffer()).byteLength}var go=Symbol("kIsRequestHandled"),mo=Wn(),yo=Symbol("kFetchRequest"),vo=class{constructor(e,t){this.initialRequest=e,this.logger=t,this.method="GET",this.url=null,this[go]=!1,this.events=new Map,this.uploadEvents=new Map,this.requestId=Pr(),this.requestHeaders=new Headers,this.responseBuffer=new Uint8Array,this.request=po(e,{setProperty:([e,t],n)=>{if("ontimeout"===e){const r=e.slice(2);return this.request.addEventListener(r,t),n()}return n()},methodCall:([e,t],n)=>{switch(e){case"open":{const[e,r]=t;return void 0===r?(this.method="GET",this.url=bo(e)):(this.method=e,this.url=bo(r)),this.logger=this.logger.extend(`${this.method} ${this.url.href}`),this.logger.info("open",this.method,this.url.href),n()}case"addEventListener":{const[e,r]=t;return this.registerEvent(e,r),this.logger.info("addEventListener",e,r),n()}case"setRequestHeader":{const[e,r]=t;return this.requestHeaders.set(e,r),this.logger.info("setRequestHeader",e,r),n()}case"send":{const[e]=t;this.request.addEventListener("load",()=>{if(void 0!==this.onResponse){const e=function(e,t){return new ir(ir.isResponseWithBody(e.status)?t:null,{url:e.responseURL,status:e.status,statusText:e.statusText,headers:ho(e.getAllResponseHeaders())})}(this.request,this.request.response);this.onResponse.call(this,{response:e,isMockedResponse:this[go],request:a,requestId:this.requestId})}});const o="string"==typeof e?(r=e,jr.encode(r)):e,a=this.toFetchApiRequest(o);this[yo]=a.clone(),queueMicrotask(()=>{(this.onRequest?.call(this,{request:a,requestId:this.requestId})||Promise.resolve()).finally(()=>{if(!this[go])return this.logger.info("request callback settled but request has not been handled (readystate %d), performing as-is...",this.request.readyState),mo&&this.request.setRequestHeader("x-interceptors-internal-request-id",this.requestId),n()})});break}default:return n()}var r}}),ko(this.request,"upload",po(this.request.upload,{setProperty:([e,t],n)=>{switch(e){case"onloadstart":case"onprogress":case"onaboart":case"onerror":case"onload":case"ontimeout":case"onloadend":{const n=e.slice(2);this.registerUploadEvent(n,t)}}return n()},methodCall:([e,t],n)=>{if("addEventListener"===e){const[e,r]=t;return this.registerUploadEvent(e,r),this.logger.info("upload.addEventListener",e,r),n()}}}))}registerEvent(e,t){const n=(this.events.get(e)||[]).concat(t);this.events.set(e,n),this.logger.info('registered event "%s"',e,t)}registerUploadEvent(e,t){const n=(this.uploadEvents.get(e)||[]).concat(t);this.uploadEvents.set(e,n),this.logger.info('registered upload event "%s"',e,t)}async respondWith(e){if(this[go]=!0,this[yo]){const e=await fo(this[yo]);this.trigger("loadstart",this.request.upload,{loaded:0,total:e}),this.trigger("progress",this.request.upload,{loaded:e,total:e}),this.trigger("load",this.request.upload,{loaded:e,total:e}),this.trigger("loadend",this.request.upload,{loaded:e,total:e})}this.logger.info("responding with a mocked response: %d %s",e.status,e.statusText),ko(this.request,"status",e.status),ko(this.request,"statusText",e.statusText),ko(this.request,"responseURL",this.url.href),this.request.getResponseHeader=new Proxy(this.request.getResponseHeader,{apply:(t,n,r)=>{if(this.logger.info("getResponseHeader",r[0]),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning null"),null;const o=e.headers.get(r[0]);return this.logger.info('resolved response header "%s" to',r[0],o),o}}),this.request.getAllResponseHeaders=new Proxy(this.request.getAllResponseHeaders,{apply:()=>{if(this.logger.info("getAllResponseHeaders"),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning empty string"),"";const t=Array.from(e.headers.entries()).map(([e,t])=>`${e}: ${t}`).join("\r\n");return this.logger.info("resolved all response headers to",t),t}}),Object.defineProperties(this.request,{response:{enumerable:!0,configurable:!1,get:()=>this.response},responseText:{enumerable:!0,configurable:!1,get:()=>this.responseText},responseXML:{enumerable:!0,configurable:!1,get:()=>this.responseXML}});const t=await fo(e.clone());this.logger.info("calculated response body length",t),this.trigger("loadstart",this.request,{loaded:0,total:t}),this.setReadyState(this.request.HEADERS_RECEIVED),this.setReadyState(this.request.LOADING);const n=()=>{this.logger.info("finalizing the mocked response..."),this.setReadyState(this.request.DONE),this.trigger("load",this.request,{loaded:this.responseBuffer.byteLength,total:t}),this.trigger("loadend",this.request,{loaded:this.responseBuffer.byteLength,total:t})};if(e.body){this.logger.info("mocked response has body, streaming...");const r=e.body.getReader(),o=async()=>{const{value:e,done:a}=await r.read();if(a)return this.logger.info("response body stream done!"),void n();e&&(this.logger.info("read response body chunk:",e),this.responseBuffer=function(e,t){const n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}(this.responseBuffer,e),this.trigger("progress",this.request,{loaded:this.responseBuffer.byteLength,total:t})),o()};o()}else n()}responseBufferToText(){return e=this.responseBuffer,new TextDecoder(t).decode(e);var e,t}get response(){if(this.logger.info("getResponse (responseType: %s)",this.request.responseType),this.request.readyState!==this.request.DONE)return null;switch(this.request.responseType){case"json":{const e=function(e){try{return JSON.parse(e)}catch(e){return null}}(this.responseBufferToText());return this.logger.info("resolved response JSON",e),e}case"arraybuffer":{const t=(e=this.responseBuffer).buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return this.logger.info("resolved response ArrayBuffer",t),t}case"blob":{const e=this.request.getResponseHeader("Content-Type")||"text/plain",t=new Blob([this.responseBufferToText()],{type:e});return this.logger.info("resolved response Blob (mime type: %s)",t,e),t}default:{const e=this.responseBufferToText();return this.logger.info('resolving "%s" response type as text',this.request.responseType,e),e}}var e}get responseText(){if(Hn(""===this.request.responseType||"text"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.LOADING&&this.request.readyState!==this.request.DONE)return"";const e=this.responseBufferToText();return this.logger.info('getResponseText: "%s"',e),e}get responseXML(){if(Hn(""===this.request.responseType||"document"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.DONE)return null;const e=this.request.getResponseHeader("Content-Type")||"";return"undefined"==typeof DOMParser?(console.warn("Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly."),null):function(e){return["application/xhtml+xml","application/xml","image/svg+xml","text/html","text/xml"].some(t=>e.startsWith(t))}(e)?(new DOMParser).parseFromString(this.responseBufferToText(),e):null}errorWith(e){this[go]=!0,this.logger.info("responding with an error"),this.setReadyState(this.request.DONE),this.trigger("error",this.request),this.trigger("loadend",this.request)}setReadyState(e){this.logger.info("setReadyState: %d -> %d",this.request.readyState,e),this.request.readyState!==e?(ko(this.request,"readyState",e),this.logger.info("set readyState to: %d",e),e!==this.request.UNSENT&&(this.logger.info('triggering "readystatechange" event...'),this.trigger("readystatechange",this.request))):this.logger.info("ready state identical, skipping transition...")}trigger(e,t,n){const r=t[`on${e}`],o=function(e,t,n){const r=uo?ProgressEvent:co;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new r(t,{lengthComputable:!0,loaded:n?.loaded||0,total:n?.total||0}):new so(t,{target:e,currentTarget:e})}(t,e,n);this.logger.info('trigger "%s"',e,n||""),"function"==typeof r&&(this.logger.info('found a direct "%s" callback, calling...',e),r.call(t,o));const a=t instanceof XMLHttpRequestUpload?this.uploadEvents:this.events;for(const[n,r]of a)n===e&&(this.logger.info('found %d listener(s) for "%s" event, calling...',r.length,e),r.forEach(e=>e.call(t,o)))}toFetchApiRequest(e){this.logger.info("converting request to a Fetch API Request...");const t=e instanceof Document?e.documentElement.innerText:e,n=new Request(this.url.href,{method:this.method,headers:this.requestHeaders,credentials:this.request.withCredentials?"include":"same-origin",body:["GET","HEAD"].includes(this.method.toUpperCase())?null:t});return ko(n,"headers",po(n.headers,{methodCall:([e,t],r)=>{switch(e){case"append":case"set":{const[e,n]=t;this.request.setRequestHeader(e,n);break}case"delete":{const[e]=t;console.warn(`XMLHttpRequest: Cannot remove a "${e}" header from the Fetch API representation of the "${n.method} ${n.url}" request. XMLHttpRequest headers cannot be removed.`);break}}return r()}})),cr(n,this.request),this.logger.info("converted request to a Fetch API Request!",n),n}};function bo(e){return"undefined"==typeof location?new URL(e):new URL(e.toString(),location.href)}function ko(e,t,n){Reflect.defineProperty(e,t,{writable:!0,enumerable:!0,value:n})}var wo=class e extends Ar{static{this.interceptorSymbol=Symbol("xhr")}constructor(){super(e.interceptorSymbol)}checkEnvironment(){return Kr("XMLHttpRequest")}setup(){const e=this.logger.extend("setup");e.info('patching "XMLHttpRequest" module...');const t=globalThis.XMLHttpRequest;Hn(!t[tr],'Failed to patch the "XMLHttpRequest" module: already patched.'),globalThis.XMLHttpRequest=function({emitter:e,logger:t}){return new Proxy(globalThis.XMLHttpRequest,{construct(n,r,o){t.info("constructed new XMLHttpRequest");const a=Reflect.construct(n,r,o),i=Object.getOwnPropertyDescriptors(n.prototype);for(const e in i)Reflect.defineProperty(a,e,i[e]);const s=new vo(a,t);return s.onRequest=async function({request:t,requestId:n}){const r=new rr(t,{passthrough:()=>{this.logger.info("no mocked response received, performing request as-is...")},respondWith:async e=>{Jr(e)?this.errorWith(new TypeError("Network error")):await this.respondWith(e)},errorWith:e=>{this.logger.info("request errored!",{error:e}),e instanceof Error&&this.errorWith(e)}});this.logger.info("awaiting mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',e.listenerCount("request")),await Zr({request:t,requestId:n,controller:r,emitter:e})},s.onResponse=async function({response:t,isMockedResponse:n,request:r,requestId:o}){this.logger.info('emitting the "response" event for %s listener(s)...',e.listenerCount("response")),e.emit("response",{response:t,isMockedResponse:n,request:r,requestId:o})},s.request}})}({emitter:this.emitter,logger:this.logger}),e.info('native "XMLHttpRequest" module patched!',globalThis.XMLHttpRequest.name),Object.defineProperty(globalThis.XMLHttpRequest,tr,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.XMLHttpRequest,tr,{value:void 0}),globalThis.XMLHttpRequest=t,e.info('native "XMLHttpRequest" module restored!',globalThis.XMLHttpRequest.name)})}};var _o=class extends Mt{context;constructor(...e){super(...e),Hn(!Wn(),k.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead.")),this.context=this.createWorkerContext()}createWorkerContext(){const e=new Gn;return{isMockingEnabled:!1,startOptions:null,workerPromise:e,registration:void 0,getRequestHandlers:()=>this.handlersController.currentHandlers(),emitter:this.emitter,workerChannel:new Gr({worker:e})}}async start(e={}){if("waitUntilReady"in e&&k.warn('The "waitUntilReady" option has been deprecated. Please remove it from this "worker.start()" call. Follow the recommended Browser integration (https://mswjs.io/docs/integrations/browser) to eliminate any race conditions between the Service Worker registration and any requests made by your application on initial render.'),this.context.isMockingEnabled)return k.warn('Found a redundant "worker.start()" call. Note that starting the worker while mocking is already enabled will have no effect. Consider removing this "worker.start()" call.'),this.context.registration;if(this.context.workerStoppedAt=void 0,this.context.startOptions=f(Vn,e),function(e){On.on("connection",async t=>{const n=e.getHandlers().filter(Dt("EventHandler"));if(n.length>0)return e?.onMockedConnection(t),void await Promise.all(n.map(e=>e.run(t)));const r=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await C(r,e.getUnhandledRequestStrategy()).catch(e=>{const n=new Event("error");Object.defineProperty(n,"cause",{enumerable:!0,configurable:!1,value:e}),t.client.socket.dispatchEvent(n)}),e?.onPassthroughConnection(t),t.server.connect()})}({getUnhandledRequestStrategy:()=>this.context.startOptions.onUnhandledRequest,getHandlers:()=>this.handlersController.currentHandlers(),onMockedConnection:e=>{this.context.startOptions.quiet||Un(e)},onPassthroughConnection(){}}),On.apply(),this.subscriptions.push(()=>{On.dispose()}),!Zn()){const e=function(e,t){const n=new Dr({name:"fallback",interceptors:[new io,new wo]});return n.on("request",async({request:n,requestId:r,controller:o})=>{const a=n.clone(),i=await jt(n,r,e.getRequestHandlers().filter(Dt("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onMockedResponse(n,{handler:r,parsedResult:o}){t.quiet||e.emitter.once("response:mocked",({response:e})=>{r.log({request:a,response:e,parsedResult:o})})}});i&&o.respondWith(i)}),n.on("response",({response:t,isMockedResponse:n,request:r,requestId:o})=>{e.emitter.emit(n?"response:mocked":"response:bypass",{response:t,request:r,requestId:o})}),n.apply(),n}(this.context,this.context.startOptions);return this.subscriptions.push(()=>{e.dispose()}),this.context.isMockingEnabled=!0,void Qn({message:"Mocking enabled (fallback mode).",quiet:this.context.startOptions.quiet})}const t=Lr(this.context),n=await t(this.context.startOptions,e);return this.context.isMockingEnabled=!0,n}stop(){super.dispose(),this.context.isMockingEnabled?(this.context.isMockingEnabled=!1,this.context.workerStoppedAt=Date.now(),this.context.emitter.removeAllListeners(),Zn()&&(this.context.workerChannel.removeAllListeners("RESPONSE"),window.clearInterval(this.context.keepAliveInterval)),window.postMessage({type:"msw/worker:stop"}),function(e={}){e.quiet||console.log(`%c${k.formatMessage("Mocking disabled.")}`,"color:orangered;font-weight:bold;")}({quiet:this.context.startOptions?.quiet})):k.warn('Found a redundant "worker.stop()" call. Notice that stopping the worker after it has already been stopped has no effect. Consider removing this "worker.stop()" call.')}};const{message:Eo}=st;function xo(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,a="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=e[s++]}else a+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!a)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:a}),n=s}else{for(var i="",s=n+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,a=t.delimiter,i=void 0===a?"/#?":a,s=[],c=0,u=0,l="",d=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var r=n[u],o=r.type,a=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},f=function(e){var t=s[s.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=i;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(Co(i),"]+?"):"(?:(?!".concat(Co(n),")[^").concat(Co(i),"])+?")};u<n.length;){var g=d("CHAR"),m=d("NAME"),y=d("PATTERN");if(m||y){var v=g||"";-1===o.indexOf(v)&&(l+=v,v=""),l&&(s.push(l),l=""),s.push({name:m||c++,prefix:v,suffix:"",pattern:y||f(v),modifier:d("MODIFIER")||""})}else{var b=g||d("ESCAPED_CHAR");if(b)l+=b;else if(l&&(s.push(l),l=""),d("OPEN")){v=h();var k=d("NAME")||"",w=d("PATTERN")||"",_=h();p("CLOSE"),s.push({name:k||(w?c++:""),pattern:k&&!w?f(v):w,prefix:v,suffix:_,modifier:d("MODIFIER")||""})}else p("END")}}return s}function So(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var a=r[0],i=r.index,s=Object.create(null),c=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map(function(e){return o(e,n)}):s[n.name]=o(r[e],n)},u=1;u<r.length;u++)c(u);return{path:a,index:i,params:s}}}(To(e,n,t),n,t)}function Co(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Io(e){return e&&e.sensitive?"":"i"}function Ro(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,a=n.start,i=void 0===a||a,s=n.end,c=void 0===s||s,u=n.encode,l=void 0===u?function(e){return e}:u,d=n.delimiter,p=void 0===d?"/#?":d,h=n.endsWith,f="[".concat(Co(void 0===h?"":h),"]|$"),g="[".concat(Co(p),"]"),m=i?"^":"",y=0,v=e;y<v.length;y++){var b=v[y];if("string"==typeof b)m+=Co(l(b));else{var k=Co(l(b.prefix)),w=Co(l(b.suffix));if(b.pattern)if(t&&t.push(b),k||w)if("+"===b.modifier||"*"===b.modifier){var _="*"===b.modifier?"?":"";m+="(?:".concat(k,"((?:").concat(b.pattern,")(?:").concat(w).concat(k,"(?:").concat(b.pattern,"))*)").concat(w,")").concat(_)}else m+="(?:".concat(k,"(").concat(b.pattern,")").concat(w,")").concat(b.modifier);else{if("+"===b.modifier||"*"===b.modifier)throw new TypeError('Can not repeat "'.concat(b.name,'" without a prefix and suffix'));m+="(".concat(b.pattern,")").concat(b.modifier)}else m+="(?:".concat(k).concat(w,")").concat(b.modifier)}}if(c)o||(m+="".concat(g,"?")),m+=n.endsWith?"(?=".concat(f,")"):"$";else{var E=e[e.length-1],x="string"==typeof E?g.indexOf(E[E.length-1])>-1:void 0===E;o||(m+="(?:".concat(g,"(?=").concat(f,"))?")),x||(m+="(?=".concat(g,"|").concat(f,")"))}return new RegExp(m,Io(n))}(xo(e,n),t,n)}function To(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map(function(e){return To(e,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),Io(n))}(e,t,n):Ro(e,t,n)}var Oo=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}};function Ao(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}(class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new un}get#a(){return this.handled}async passthrough(){v.as(Oo,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){v.as(Oo,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){v.as(Oo,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}});var Po=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return;const n=Ao("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const r=n.status??200,o=e.isConfigurableStatusCode(r)?r:200;if(super(e.isResponseWithBody(r)?t:null,{status:o,statusText:n.statusText,headers:n.headers}),r!==o){const e=Ao("state",this);e?e.status=r:Object.defineProperty(this,"status",{value:r,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}};new TextEncoder;const jo=/[?|#].*$/g;function Do(e){return e.endsWith("?")?e:e.replace(jo,"")}function Lo(e,t){if(e instanceof RegExp)return e;const n=function(e,t){if(/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e))return e;if(e.startsWith("*"))return e;const n=t||"undefined"!=typeof location&&location.href;return n?decodeURI(new URL(encodeURI(e),n).href):e}(e,t);return Do(n)}function zo(e,t,n){const r=Lo(t,n),o="string"==typeof r?function(e){return e.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(e,t,n)=>{const r="(.*)";return t?t.startsWith(":")?`${t}${n}`:`${t}${r}`:r}).replace(/([^/])(:)(?=\d+)/,"$1\\$2").replace(/^([^/]+)(:)(?=\/\/)/,"$1\\$2")}(r):r,a=function(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}(e),i=So(o,{decode:decodeURIComponent})(a);return{matches:!1!==i,params:i&&i.params||{}}}var qo=Object.create,No=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Mo=Object.getOwnPropertyNames,Bo=Object.getPrototypeOf,Fo=Object.prototype.hasOwnProperty,Ho=((e,t)=>function(){return t||(0,e[Mo(e)[0]])((t={exports:{}}).exports,t),t.exports})({"node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parse=function(e,t){const n=new i,r=e.length;if(r<2)return n;const o=t?.decode||u;let a=0;do{const t=e.indexOf("=",a);if(-1===t)break;const i=e.indexOf(";",a),u=-1===i?r:i;if(t>u){a=e.lastIndexOf(";",t-1)+1;continue}const l=s(e,a,t),d=c(e,t,l),p=e.slice(l,d);if(void 0===n[p]){let r=s(e,t+1,u),a=c(e,u,r);const i=o(e.slice(r,a));n[p]=i}a=u+1}while(a<r);return n},e.serialize=function(e,i,s){const c=s?.encode||encodeURIComponent;if(!t.test(e))throw new TypeError(`argument name is invalid: ${e}`);const u=c(i);if(!n.test(u))throw new TypeError(`argument val is invalid: ${i}`);let l=e+"="+u;if(!s)return l;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);l+="; Max-Age="+s.maxAge}if(s.domain){if(!r.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);l+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);l+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===a.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);l+="; Expires="+s.expires.toUTCString()}s.httpOnly&&(l+="; HttpOnly");s.secure&&(l+="; Secure");s.partitioned&&(l+="; Partitioned");if(s.priority){switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}}if(s.sameSite){switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}}return l};var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,i=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function s(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function c(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function u(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}}}),Wo=((e,t,n)=>(n=null!=e?qo(Bo(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Mo(t))Fo.call(e,o)||o===n||No(e,o,{get:()=>t[o],enumerable:!(r=Uo(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:No(n,"default",{value:e,enumerable:!0}),e)))(Ho(),1),Go=Wo.default||Wo,Vo=Go.parse,Ko=Go.serialize;function $o(e){const t=Vo(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Qo(){return $o(document.cookie)}function Yo(e){const t=e.headers.get("cookie"),n=t?$o(t):{},r=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Qo():{}}case"include":return Qo();default:return{}}}(e);for(const t in r)e.headers.append("cookie",Ko(t,r[t]));const o=Ve.getCookies(e.url),a=Object.fromEntries(o.map(e=>[e.key,e.value]));for(const t of o)e.headers.append("cookie",t.toString());return{...r,...a,...n}}var Jo=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Jo||{});class Zo extends x{constructor(e,t,n,r){const o="function"==typeof t?"[custom predicate]":t;super({info:{header:`${e}${o?` ${o}`:""}`,path:t,method:e},resolver:n,options:r}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(!t||t instanceof RegExp||"function"==typeof t)return;Do(t)!==t&&k.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`)}async parse(e){const t=new URL(e.request.url),n=Yo(e.request);if("function"==typeof this.info.path){const t=await this.info.path({request:e.request,cookies:n});return{match:"boolean"==typeof t?{matches:t,params:{}}:t,cookies:n}}return{match:this.info.path?zo(t,this.info.path,e.resolutionContext?.baseUrl):{matches:!1,params:{}},cookies:n}}async predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=S(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),r=await async function(e){const t=e.clone(),n=await t.text(),r=t.status||200;return{status:r,statusText:t.statusText||Eo[r]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),o=(a=r.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(k.formatMessage(`${An()} ${e.request.method} ${t} (%c${r.status} ${r.statusText}%c)`),`color:${o}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",r),console.groupEnd()}}function Xo(e){return(t,n,r={})=>new Zo(e,t,n,r)}const ea={all:Xo(/.+/),head:Xo(Jo.HEAD),get:Xo(Jo.GET),post:Xo(Jo.POST),put:Xo(Jo.PUT),delete:Xo(Jo.DELETE),patch:Xo(Jo.PATCH),options:Xo(Jo.OPTIONS)},ta=Symbol("bodyType");class na extends Po{[ta]=null;constructor(e,t){const n=Pt(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,At,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=Tt.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static error(){return super.error()}static text(e,t){const n=Pt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new na(e,n)}static json(e,t){const n=Pt(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const r=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",r?new Blob([r]).size.toString():"0"),new na(r,n)}static xml(e,t){const n=Pt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new na(e,n)}static html(e,t){const n=Pt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new na(e,n)}static arrayBuffer(e,t){const n=Pt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new na(e,n)}static formData(e,t){return new na(e,Pt(t))}}v("undefined"!=typeof URL,k.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var ra,oa={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},aa={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ia={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},sa={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ca=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],ua={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},la=[ea.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",function(){return na.json(oa)}),ea.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",function(){return na.json(aa)}),ea.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",function(){return na.json(ia)}),ea.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",function(){return na.json(sa)}),ea.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",function(){return na.json(ca)}),ea.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",function(){return na.json(ua)})],da={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},pa={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},ha={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(ra||(ra={}));var fa={sales_volume_metric_group:ha.sales_volume_metric_group,total_payments:ha.total_payments},ga=ea.get("/api/insights/overview-metrics",function(){return na.json(fa)}),ma=[ea.get("/api/v3/insights/overview-metrics/".concat(ra.GENERAL),function(){return na.json({sales_volume_metric_group:fa.sales_volume_metric_group})}),ea.get("/api/v3/insights/overview-metrics/".concat(ra.LATENCY),function(){return na.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})}),ea.get("/api/v3/insights/overview-metrics/".concat(ra.STATUS),function(){return na.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})}),ea.get("/api/v3/insights/overview-metrics/".concat(ra.SUBSCRIPTIONS),function(){return na.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})})],ya=e([ga],ma,!0),va=e([ea.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",function(){return na.json(da)}),ea.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",function(){return na.json(pa)}),ea.get("*/accounts/webhooks/:accountCode",function(){return na.json({})}),ea.get("*/accounts/webhooks/params-catalog",function(){return na.json({})}),ea.get("*/accounts/webhooks-v2/:accountCode",function(){return na.json({})})],ya,!0),ba={by_currency:[{currency_code:"USD",transactions:100,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD"},{currency_code:"COP",transactions:50,amount_local:4e7,amount_usd:10000.5,currency_code_local:"COP"}],by_connection:[{connection_name:"Stripe",transactions:80,amount_local:12e3,amount_usd:12e3,currency_code_local:"USD"},{connection_name:"PayPal",transactions:70,amount_local:13000.5,amount_usd:13000.5,currency_code_local:"USD"}],by_brand:[{brand:"Visa",transactions:90,amount_local:14e3,amount_usd:14e3,currency_code_local:"USD"},{brand:"Mastercard",transactions:60,amount_local:11000.5,amount_usd:11000.5,currency_code_local:"USD"}],by_payment_method:[{payment_method:"CARD",transactions:120,amount_local:2e4,amount_usd:2e4,currency_code_local:"USD"},{payment_method:"BANK_TRANSFER",transactions:30,amount_local:5000.5,amount_usd:5000.5,currency_code_local:"USD"}],total:{transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD"}},ka={total:100,page:1,page_size:10,total_pages:10},wa={authorization_code:"AUTH123",card_category:"CREDIT",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",payment_method_category:"CARD",provider_id:"stripe",reconciliation_status:"NOT_RECONCILED",reconciliation_sub_status:"PENDING"},_a={transaction_id:"TXN123",transaction_date:"2025-01-15T10:30:00Z",acquirer:"STRIPE",authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",country:"US",currency:"USD",fee_status:"MATCHED",fee_sub_status:"OK",fee_taxes_diff:0,calculated_fix_costed_fee:.3,calculated_percentage_cost:2.9,percentage_cost:2.9,merchant_order_id:"ORDER123",provider_transaction_id:"PROV123",reconciliation_status:"RECONCILED",reconciliation_sub_status:"OK",type:"PAYMENT"},Ea={not_reconciled:{data:[{id:"stripe",transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD",total_transactions:200},{id:"paypal",transactions:80,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD",total_transactions:120}],total:{transactions:230,amount_local:40000.5,amount_usd:40000.5,currency_code_local:"USD"}},status_conflict:{data:[{id:"stripe",transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}],total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}},amount_conflict:{data:[{id:"paypal",transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}],total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}},xa=ba,Sa={data:[wa,t(t({},wa),{authorization_code:"AUTH456",provider_id:"paypal"})],pagination:ka},Ca=t(t({},ba),{total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}}),Ia={data:[t(t({},wa),{reconciliation_status:"STATUS_CONFLICT"})],pagination:t(t({},ka),{total:20,total_pages:2})},Ra=t(t({},ba),{total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}),Ta={data:[t(t({},wa),{reconciliation_status:"AMOUNT_CONFLICT"})],pagination:t(t({},ka),{total:10,total_pages:1})},Oa={data:[{id:"2025-01-10",transactions:30,amount_local:8e3,amount_usd:8e3,currency_code_local:"USD"},{id:"2025-01-11",transactions:25,amount_local:6500,amount_usd:6500,currency_code_local:"USD"}],total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}},Aa=t(t({},ba),{total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}}),Pa={data:[t(t({},wa),{reconciliation_status:"DATE_CONFLICT"})],pagination:t(t({},ka),{total:55,total_pages:6})},ja={data:[{id:"stripe",transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}],total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}},Da=t(t({},ba),{total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}}),La={data:[t(t({},_a),{fee_status:"MISMATCH"}),t(t({},_a),{transaction_id:"TXN456",fee_status:"MISMATCH"})],pagination:t(t({},ka),{total:15,total_pages:2})},za={total_amount_usd:5e3,chart_data:[{date:"2025-01-10",amount_usd:1500},{date:"2025-01-11",amount_usd:1800},{date:"2025-01-12",amount_usd:1700}]},qa={data:[{id:"stripe",transaction_type:"PURCHASE",transactions:500,amount_local:1e5,amount_usd:1e5,currency_code_local:"USD"},{id:"paypal",transaction_type:"REFUND",transactions:300,amount_local:6e4,amount_usd:6e4,currency_code_local:"USD"}],total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}},Na=t(t({},ba),{total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}}),Ua={data:[_a],pagination:t(t({},ka),{total:800,total_pages:80})},Ma={data:[{id:"stripe",transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}],total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}},Ba=t(t({},ba),{total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}}),Fa={data:[t(t({},{transaction_id:"TXN123",acquirer:"STRIPE",amount:100,authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",confirmation_status:"CONFIRMED",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",merchant_order_id:"ORDER123",merchant_transaction_id:"MERCH123",payment_id:"PAY123",provider_status:"APPROVED",provider_transaction_id:"PROV123",response_code:"00",status:"SUCCEEDED",type:"PAYMENT"}),{confirmation_status:"NOT_CONFIRMED"})],pagination:t(t({},ka),{total:25,total_pages:3})},Ha={total_amount_usd:75e3,chart_data:[{date:"2025-01-10",amount_usd:2e4},{date:"2025-01-11",amount_usd:25e3},{date:"2025-01-12",amount_usd:3e4}]},Wa="*/reconciliations/insights",Ga=[ea.post("".concat(Wa,"/conflicts/summary"),function(){return na.json(Ea)}),ea.post("".concat(Wa,"/not-reconciled/aggregators"),function(){return na.json(xa)}),ea.post("".concat(Wa,"/not-reconciled/list"),function(){return na.json(Sa)}),ea.post("".concat(Wa,"/status-conflict/aggregators"),function(){return na.json(Ca)}),ea.post("".concat(Wa,"/status-conflict/list"),function(){return na.json(Ia)}),ea.post("".concat(Wa,"/amount-conflict/aggregators"),function(){return na.json(Ra)}),ea.post("".concat(Wa,"/amount-conflict/list"),function(){return na.json(Ta)}),ea.post("".concat(Wa,"/conflict-date/summary"),function(){return na.json(Oa)}),ea.post("".concat(Wa,"/conflict-date/aggregators"),function(){return na.json(Aa)}),ea.post("".concat(Wa,"/conflict-date/list"),function(){return na.json(Pa)}),ea.post("".concat(Wa,"/incorrect-fees/summary"),function(){return na.json(ja)}),ea.post("".concat(Wa,"/incorrect-fees/aggregators"),function(){return na.json(Da)}),ea.post("".concat(Wa,"/incorrect-fees/list"),function(){return na.json(La)}),ea.post("".concat(Wa,"/fees-charged/summary"),function(){return na.json(za)}),ea.post("".concat(Wa,"/reconciled/summary"),function(){return na.json(qa)}),ea.post("".concat(Wa,"/reconciled/aggregators"),function(){return na.json(Na)}),ea.post("".concat(Wa,"/reconciled/list"),function(){return na.json(Ua)}),ea.post("".concat(Wa,"/not-confirm/summary"),function(){return na.json(Ma)}),ea.post("".concat(Wa,"/not-confirm/aggregators"),function(){return na.json(Ba)}),ea.post("".concat(Wa,"/not-confirm/list"),function(){return na.json(Fa)}),ea.post("".concat(Wa,"/amount-to-be-settled/summary"),function(){return na.json(Ha)}),ea.post("".concat(Wa,"/reconciliation-rate/summary/by-provider"),function(){return na.json({total:{total_transactions:0,transactions_percentage:0},data:[]})}),ea.post("".concat(Wa,"/reconciliation-rate/summary/by-account"),function(){return na.json([])}),ea.post("".concat(Wa,"/reconciliation-rate/summary/by-currency"),function(){return na.json([])})],Va=[{id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Plan Argentina con CFT y TEA",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]},{id:"",installment:6,rate:1.25,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:45.5},{type:"TEA",rate:180.12}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},availability:{start_at:"2025-01-01T00:00:00Z",finish_at:"2025-12-31T23:59:59Z"},types_list:null,created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-01T16:41:17.428285Z"},{id:"1688",code:"1381d64b-ed14-4739-8f0a-b3adbe5949b0",name:"Plan Colombia sin intereses",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-col-sin-interes",installments_plan:[{id:"",installment:1,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"},{id:"",installment:3,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"}],country_code:"CO",amount:{currency:"COP",min_value:"50000",max_value:"10000000"},availability:{},types_list:null,created_at:"2025-08-06T14:33:32.854396Z",updated_at:"2025-08-06T14:33:32.854396Z"}],Ka={id:"1689",code:"new-plan-code-uuid",name:"New Test Plan",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"new-plan-ref",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-10T12:00:00.000000Z",updated_at:"2025-08-10T12:00:00.000000Z"},$a={id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Updated Plan Name",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.2,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:40},{type:"TEA",rate:160}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-10T15:00:00.000000Z"},Qa={deleted:!0},Ya=[ea.get("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return na.json(Va)}),ea.post("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return na.json(Ka)}),ea.patch("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return na.json($a)}),ea.delete("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return na.json(Qa)})],Ja={account_id:"acc_test_001",country:"BR",created_at:"2026-01-15T10:30:00.000Z",updated_at:"2026-02-20T14:45:00.000Z"},Za={data:[t({id:"rec_001",merchant_recipient_id:"merch-rec-001",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"Carlos",last_name:"Rodríguez",legal_name:null,email:"carlos.rodriguez@example.com",date_of_birth:"1990-05-12",website:null,industry:null,merchant_category_code:null,document:{number:"12345678901",type:"CPF"},phone:{country_code:"+55",number:"11999887766"},address:{address_line_1:"Rua Augusta 1200",address_line_2:"Apto 301",city:"São Paulo",state:"SP",zip_code:"01304-001",country:"BR"}},Ja),t(t({id:"rec_002",merchant_recipient_id:"merch-rec-002",national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"Acme Payments Ltda",email:"finance@acmepayments.com",date_of_birth:null,website:"https://acmepayments.com",industry:"Financial Services",merchant_category_code:"5411",document:{number:"12345678000199",type:"CNPJ"},phone:{country_code:"+55",number:"1133445566"},address:{address_line_1:"Av. Paulista 900",address_line_2:"Sala 1201",city:"São Paulo",state:"SP",zip_code:"01310-100",country:"BR"}},Ja),{account_id:"acc_test_002",country:"BR",created_at:"2026-01-20T08:00:00.000Z",updated_at:"2026-02-22T16:30:00.000Z"}),t(t({id:"rec_003",merchant_recipient_id:"merch-rec-003",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"María",last_name:"González",legal_name:null,email:"maria.gonzalez@example.com",date_of_birth:"1985-11-30",website:null,industry:null,merchant_category_code:null,document:{number:"87654321",type:"DNI"},phone:{country_code:"+54",number:"1155667788"},address:{address_line_1:"Av. Corrientes 1234",address_line_2:null,city:"Buenos Aires",state:"CABA",zip_code:"C1043",country:"AR"}},Ja),{account_id:"acc_test_001",country:"AR",created_at:"2026-02-01T12:00:00.000Z",updated_at:"2026-02-28T09:15:00.000Z"}),t(t({id:"rec_004",merchant_recipient_id:null,national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"TechPay Solutions S.A.",email:"admin@techpay.co",date_of_birth:null,website:"https://techpay.co",industry:"Technology",merchant_category_code:"7372",document:{number:"900123456",type:"NIT"},phone:{country_code:"+57",number:"3001234567"},address:{address_line_1:"Carrera 7 #80-49",address_line_2:"Oficina 605",city:"Bogotá",state:"Cundinamarca",zip_code:"110221",country:"CO"}},Ja),{account_id:"acc_test_003",country:"CO",created_at:"2026-02-10T15:30:00.000Z",updated_at:"2026-03-01T11:00:00.000Z"}),t(t({id:"rec_005",merchant_recipient_id:"merch-rec-005",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"João",last_name:"Silva",legal_name:null,email:"joao.silva@example.com",date_of_birth:"1992-08-25",website:null,industry:null,merchant_category_code:null,document:{number:"98765432100",type:"CPF"},phone:{country_code:"+55",number:"21988776655"},address:{address_line_1:"Rua Voluntários da Pátria 45",address_line_2:null,city:"Rio de Janeiro",state:"RJ",zip_code:"22270-000",country:"BR"}},Ja),{created_at:"2026-02-15T09:00:00.000Z",updated_at:"2026-03-01T17:45:00.000Z"})],pagination:{page:1,page_size:25,total_items:5,total_pages:1,has_next:!1,has_previous:!1}},Xa={id:"rec_001",merchant_recipient_id:"merch-rec-001",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"Carlos",last_name:"Rodríguez",legal_name:null,email:"carlos.rodriguez@example.com",account_id:"acc_test_001",country:"BR",created_at:"2026-01-15T10:30:00.000Z",updated_at:"2026-02-20T14:45:00.000Z",document:{number:"12345678901",type:"CPF"},phone:{country_code:"+55",number:"11999887766"},address:{address_line_1:"Rua Augusta 1200",address_line_2:"Apto 301",city:"São Paulo",state:"SP",zip_code:"01304-001",country:"BR"},withdrawal_method:{bank:{code:"001",branch:"1234",branch_digit:"5",account:"98765432",account_digit:"1",account_type:"CHECKINGS",routing:"00119876",country:"BR",currency:"BRL",payout_schedule:null}},documentation:[],onboardings:[{id:"onb_001",provider_id:"stripe",provider:{name:"Stripe",icon:"https://cdn.y.uno/providers/stripe.svg"},status:"APPROVED",response_message:null,created_at:"2026-01-16T08:00:00.000Z",updated_at:"2026-01-18T12:00:00.000Z"},{id:"onb_002",provider_id:"adyen",provider:{name:"Adyen",icon:"https://cdn.y.uno/providers/adyen.svg"},status:"PENDING",response_message:null,created_at:"2026-02-10T09:00:00.000Z",updated_at:"2026-02-10T09:00:00.000Z"}]},ei={id:"onb_001",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"Stripe onboarding for payout capabilities",status:"APPROVED",response_message:null,callback_url:"https://example.com/callback/onboarding",provider:{id:"stripe",connection_id:"conn_stripe_001",redirect_url:null,recipient_id:"acct_1NcVZQS0m7FGzPCG",recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:"ba_1Nc000",recipient_type:null,raw_notification:null,raw_response:null,response_code:"200",response_message:"OK"},documentation:[],legal_representatives:[],withdrawal_methods:{bank:{code:"001",branch:"1234",branch_digit:"5",account:"98765432",account_digit:"1",account_type:"CHECKINGS",routing:"00119876",country:"BR",currency:"BRL"}},requirements:[],capabilities:{payouts:{status:"ACTIVE",requirements:[]},send_transfers:{status:"ACTIVE",requirements:[]},receive_transfers:{status:"ACTIVE",requirements:[]},payments:{status:"ACTIVE",requirements:[]}},terms_of_service:{acceptance:!0,date:"2026-01-16T08:00:00.000Z",ip:"200.100.50.25"},metadata:[],created_at:"2026-01-16T08:00:00.000Z",updated_at:"2026-01-18T12:00:00.000Z",expires_at:null},ti=[{timestamp:"2026-01-16T08:00:00.000Z",event_type:"ONBOARDING_CREATED",status:"PENDING",event_data:{provider_id:"stripe",provider_status:null,provider_response_code:null,provider_response_message:null,provider_recipient_id:null,provider_redirect_url:null,requirements:[],capabilities:null,change_type:null}},{timestamp:"2026-01-16T08:01:30.000Z",event_type:"ONBOARDING_SUBMITTED",status:"IN_PROGRESS",event_data:{provider_id:"stripe",provider_status:"IN_PROGRESS",provider_response_code:"200",provider_response_message:"Onboarding submitted successfully",provider_recipient_id:"acct_1NcVZQS0m7FGzPCG",provider_redirect_url:null,requirements:[],capabilities:null,change_type:null}},{timestamp:"2026-01-18T12:00:00.000Z",event_type:"ONBOARDING_APPROVED",status:"APPROVED",event_data:{provider_id:"stripe",provider_status:"APPROVED",provider_response_code:"200",provider_response_message:"Onboarding approved",provider_recipient_id:"acct_1NcVZQS0m7FGzPCG",provider_redirect_url:null,requirements:[],capabilities:{payouts:{status:"ACTIVE",requirements:[]},send_transfers:{status:"ACTIVE",requirements:[]},receive_transfers:{status:"ACTIVE",requirements:[]},payments:{status:"ACTIVE",requirements:[]}},change_type:null}}],ni={id:"rec_new_001",merchant_recipient_id:null,national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"New",last_name:"Recipient",legal_name:null,email:"new.recipient@example.com",account_id:"acc_test_001",country:"BR",created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),document:{number:"11122233344",type:"CPF"},phone:{country_code:"+55",number:"11900001111"},address:null,withdrawal_method:null,documentation:[],onboardings:[]};t(t({},Xa),{updated_at:(new Date).toISOString()});var ri={message:"Recipient deleted successfully"},oi={id:"onb_new_001",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"New onboarding",status:"PENDING",response_message:null,callback_url:null,provider:{id:"stripe",connection_id:"conn_stripe_001",redirect_url:null,recipient_id:null,recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:null,recipient_type:null,raw_notification:null,raw_response:null,response_code:null,response_message:null},documentation:[],legal_representatives:[],withdrawal_methods:null,requirements:[],capabilities:null,terms_of_service:null,metadata:[],created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),expires_at:null},ai=t(t({},ei),{updated_at:(new Date).toISOString()}),ii=t(t({},ei),{status:"BLOCKED",updated_at:(new Date).toISOString()}),si=t(t({},ei),{status:"APPROVED",updated_at:(new Date).toISOString()}),ci="https://dev.y.uno/dashboard-bff/api",ui={rec_001:Xa,rec_002:{id:"rec_002",merchant_recipient_id:"merch-rec-002",national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"Acme Payments Ltda",email:"finance@acmepayments.com",account_id:"acc_test_002",country:"BR",created_at:"2026-01-20T08:00:00.000Z",updated_at:"2026-02-22T16:30:00.000Z",document:{number:"12345678000199",type:"CNPJ"},phone:{country_code:"+55",number:"1133445566"},address:{address_line_1:"Av. Paulista 900",address_line_2:"Sala 1201",city:"São Paulo",state:"SP",zip_code:"01310-100",country:"BR"},withdrawal_method:{bank:{code:"341",branch:"0001",branch_digit:"0",account:"12345678",account_digit:"9",account_type:"CHECKINGS",routing:"34100001",country:"BR",currency:"BRL",payout_schedule:null}},documentation:[],onboardings:[{id:"onb_003",provider_id:"dlocal",provider:{name:"dLocal",icon:"https://cdn.y.uno/providers/dlocal.svg"},status:"IN_PROGRESS",response_message:"Waiting for document verification",created_at:"2026-02-01T10:00:00.000Z",updated_at:"2026-02-15T14:00:00.000Z"}]},rec_003:{id:"rec_003",merchant_recipient_id:"merch-rec-003",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"María",last_name:"González",legal_name:null,email:"maria.gonzalez@example.com",account_id:"acc_test_001",country:"AR",created_at:"2026-02-01T12:00:00.000Z",updated_at:"2026-02-28T09:15:00.000Z",document:{number:"87654321",type:"DNI"},phone:{country_code:"+54",number:"1155667788"},address:{address_line_1:"Av. Corrientes 1234",address_line_2:null,city:"Buenos Aires",state:"CABA",zip_code:"C1043",country:"AR"},withdrawal_method:null,documentation:[],onboardings:[]}},li={onb_001:ei,onb_002:{id:"onb_002",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"Adyen onboarding",status:"PENDING",response_message:null,callback_url:null,provider:{id:"adyen",connection_id:"conn_adyen_001",redirect_url:null,recipient_id:null,recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:null,recipient_type:null,raw_notification:null,raw_response:null,response_code:null,response_message:null},documentation:[],legal_representatives:[],withdrawal_methods:null,requirements:[],capabilities:null,terms_of_service:null,metadata:[],created_at:"2026-02-10T09:00:00.000Z",updated_at:"2026-02-10T09:00:00.000Z",expires_at:null}},di=[ea.get("".concat(ci,"/recipients"),function(){return na.json(Za)}),ea.get("".concat(ci,"/recipients/:recipientId"),function(e){var n=e.params.recipientId,r=ui[n];return r?na.json(r):na.json(t(t({},Xa),{id:n}))}),ea.get("".concat(ci,"/recipients/:recipientId/onboardings/:onboardingId"),function(e){var n=e.params.onboardingId,r=li[n];return r?na.json(r):na.json(t(t({},ei),{id:n}))}),ea.get("".concat(ci,"/recipients/onboardings/:onboardingId/timeline"),function(){return na.json(ti)}),ea.post("".concat(ci,"/recipients"),function(e){var o=e.request;return n(void 0,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,o.json()];case 1:return e=n.sent(),[2,na.json(t(t(t({},ni),e),{id:"rec_".concat(Date.now()),created_at:(new Date).toISOString(),updated_at:(new Date).toISOString()}),{status:201})]}})})}),ea.patch("".concat(ci,"/recipients/:recipientId"),function(e){var o=e.request,a=e.params;return n(void 0,void 0,void 0,function(){var e,n,i;return r(this,function(r){switch(r.label){case 0:return[4,o.json()];case 1:return e=r.sent(),n=a.recipientId,i=ui[n]||Xa,[2,na.json(t(t(t({},i),e),{id:n,updated_at:(new Date).toISOString()}))]}})})}),ea.delete("".concat(ci,"/recipients/:recipientId"),function(){return na.json(ri)}),ea.post("".concat(ci,"/recipients/:recipientId/onboardings"),function(e){var o=e.request;return n(void 0,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,o.json()];case 1:return e=n.sent(),[2,na.json(t(t(t({},oi),e),{id:"onb_".concat(Date.now()),created_at:(new Date).toISOString(),updated_at:(new Date).toISOString()}),{status:201})]}})})}),ea.patch("".concat(ci,"/recipients/:recipientId/onboardings/:onboardingId"),function(e){var o=e.request,a=e.params;return n(void 0,void 0,void 0,function(){var e,n;return r(this,function(r){switch(r.label){case 0:return[4,o.json()];case 1:return e=r.sent(),n=a.onboardingId,[2,na.json(t(t(t({},ai),e),{id:n,updated_at:(new Date).toISOString()}))]}})})}),ea.post("".concat(ci,"/recipients/:recipientId/onboardings/:onboardingId/block"),function(e){var n=e.params.onboardingId;return na.json(t(t({},ii),{id:n,updated_at:(new Date).toISOString()}))}),ea.post("".concat(ci,"/recipients/:recipientId/onboardings/:onboardingId/unblock"),function(e){var n=e.params.onboardingId;return na.json(t(t({},si),{id:n,updated_at:(new Date).toISOString()}))})],pi={data:[{code:"api-log-001",url:"/api/v1/payments",method:"POST",source:"dashboard",headers:{"Content-Type":"application/json",Authorization:"Bearer token123"},request:{amount:"100.00",currency:"USD"},response:{status:"success",payment_id:"pay_123"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-123-456",created_at:"2024-03-01T10:00:00Z",payment_code:"PAY001",transaction_code:"TXN001"},{code:"api-log-002",url:"/api/v1/payments/PAY001",method:"GET",source:"api",headers:{"Content-Type":"application/json"},request:{},response:{payment_code:"PAY001",amount:"100.00"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-789-012",created_at:"2024-03-01T10:05:00Z"}],page:1,size:10,total_rows:2,total_pages:1},hi=[ea.post("https://dev.y.uno/dashboard-bff/api/v3/api-logs/organization",function(){return na.json(pi)})],fi={data:[{id:1,organization_code:"ORG001",account_code:"ACC001",type:"payment.succeeded",created_at:"2024-03-01T10:00:00Z",updated_at:"2024-03-01T10:00:00Z",time:250,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.succeeded",payment_code:"PAY001"}),response:JSON.stringify({received:!0}),response_status:200,connect_timeout:5e3,read_timeout:1e4,exception:"",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-001",origin_id:"origin-001",payment_code:"PAY001",transaction_code:"TXN001"},{id:2,organization_code:"ORG001",account_code:"ACC001",type:"payment.failed",created_at:"2024-03-01T10:05:00Z",updated_at:"2024-03-01T10:05:00Z",time:300,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.failed",payment_code:"PAY002"}),response:"",response_status:500,connect_timeout:5e3,read_timeout:1e4,exception:"Connection timeout",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-002",origin_id:"origin-002",payment_code:"PAY002"}],page:1,size:10,total_rows:2,total_pages:1},gi=[ea.post("https://dev.y.uno/dashboard-bff/api/v3/webhooks/timeline",function(){return na.json(fi)})],mi=[ea.get("".concat("https://dev.y.uno/dashboard-bff/api","/mfa/status"),function(){return na.json({mfa_active:!0,factor_id:"auth_factor_123"})})],yi=[ea.get("".concat("https://dev.y.uno/dashboard-bff/api","/hidden-fields"),function(e){var t=e.request,n=new URL(t.url).searchParams.get("scope");return n?na.json([{scope:n,fields:[]}]):na.json([])})],vi=e(e(e(e(e(e(e(e(e([],la,!0),va,!0),Ga,!0),Ya,!0),di,!0),hi,!0),gi,!0),mi,!0),yi,!0),bi=function(...e){return new _o(...e)}.apply(void 0,vi),ki="MSW_ENABLED";function wi(e){e?(localStorage.setItem(ki,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(ki),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function _i(){return"true"===localStorage.getItem(ki)}function Ei(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return wi(!0)},window.disableMSW=function(){return wi(!1)},window.isMSWEnabled=_i);const{toString:xi}=Object.prototype,{getPrototypeOf:Si}=Object,{iterator:Ci,toStringTag:Ii}=Symbol,Ri=(Ti=Object.create(null),e=>{const t=xi.call(e);return Ti[t]||(Ti[t]=t.slice(8,-1).toLowerCase())});var Ti;const Oi=e=>(e=e.toLowerCase(),t=>Ri(t)===e),Ai=e=>t=>typeof t===e,{isArray:Pi}=Array,ji=Ai("undefined");function Di(e){return null!==e&&!ji(e)&&null!==e.constructor&&!ji(e.constructor)&&qi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Li=Oi("ArrayBuffer");const zi=Ai("string"),qi=Ai("function"),Ni=Ai("number"),Ui=e=>null!==e&&"object"==typeof e,Mi=e=>{if("object"!==Ri(e))return!1;const t=Si(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Ii in e||Ci in e)},Bi=Oi("Date"),Fi=Oi("File"),Hi=Oi("Blob"),Wi=Oi("FileList"),Gi=Oi("URLSearchParams"),[Vi,Ki,$i,Qi]=["ReadableStream","Request","Response","Headers"].map(Oi);function Yi(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Pi(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Di(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function Ji(e,t){if(Di(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Zi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Xi=e=>!ji(e)&&e!==Zi;const es=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Si(Uint8Array)),ts=Oi("HTMLFormElement"),ns=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rs=Oi("RegExp"),os=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yi(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const as=Oi("AsyncFunction"),is=(ss="function"==typeof setImmediate,cs=qi(Zi.postMessage),ss?setImmediate:cs?(us=`axios@${Math.random()}`,ls=[],Zi.addEventListener("message",({source:e,data:t})=>{e===Zi&&t===us&&ls.length&&ls.shift()()},!1),e=>{ls.push(e),Zi.postMessage(us,"*")}):e=>setTimeout(e));var ss,cs,us,ls;const ds="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Zi):"undefined"!=typeof process&&process.nextTick||is;var ps={isArray:Pi,isArrayBuffer:Li,isBuffer:Di,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||qi(e.append)&&("formdata"===(t=Ri(e))||"object"===t&&qi(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Li(e.buffer),t},isString:zi,isNumber:Ni,isBoolean:e=>!0===e||!1===e,isObject:Ui,isPlainObject:Mi,isEmptyObject:e=>{if(!Ui(e)||Di(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Vi,isRequest:Ki,isResponse:$i,isHeaders:Qi,isUndefined:ji,isDate:Bi,isFile:Fi,isBlob:Hi,isRegExp:rs,isFunction:qi,isStream:e=>Ui(e)&&qi(e.pipe),isURLSearchParams:Gi,isTypedArray:es,isFileList:Wi,forEach:Yi,merge:function e(){const{caseless:t,skipUndefined:n}=Xi(this)&&this||{},r={},o=(o,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=t&&Ji(r,a)||a;Mi(r[i])&&Mi(o)?r[i]=e(r[i],o):Mi(o)?r[i]=e({},o):Pi(o)?r[i]=o.slice():n&&ji(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Yi(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Yi(t,(t,r)=>{n&&qi(t)?Object.defineProperty(e,r,{value:Ei(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Si(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ri,kindOfTest:Oi,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Pi(e))return e;let t=e.length;if(!Ni(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ci]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ts,hasOwnProperty:ns,hasOwnProp:ns,reduceDescriptors:os,freezeMethods:e=>{os(e,(t,n)=>{if(qi(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];qi(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Pi(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ji,global:Zi,isContextDefined:Xi,isSpecCompliantForm:function(e){return!!(e&&qi(e.append)&&"FormData"===e[Ii]&&e[Ci])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Ui(e)){if(t.indexOf(e)>=0)return;if(Di(e))return e;if(!("toJSON"in e)){t[r]=e;const o=Pi(e)?[]:{};return Yi(e,(e,t)=>{const a=n(e,r+1);!ji(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:as,isThenable:e=>e&&(Ui(e)||qi(e))&&qi(e.then)&&qi(e.catch),setImmediate:is,asap:ds,isIterable:e=>null!=e&&qi(e[Ci])};class hs extends Error{static from(e,t,n,r,o,a){const i=new hs(e.message,t||e.code,n,r,o);return i.cause=e,i.name=e.name,a&&Object.assign(i,a),i}constructor(e,t,n,r,o){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ps.toJSONObject(this.config),code:this.code,status:this.status}}}hs.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",hs.ERR_BAD_OPTION="ERR_BAD_OPTION",hs.ECONNABORTED="ECONNABORTED",hs.ETIMEDOUT="ETIMEDOUT",hs.ERR_NETWORK="ERR_NETWORK",hs.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",hs.ERR_DEPRECATED="ERR_DEPRECATED",hs.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",hs.ERR_BAD_REQUEST="ERR_BAD_REQUEST",hs.ERR_CANCELED="ERR_CANCELED",hs.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",hs.ERR_INVALID_URL="ERR_INVALID_URL";var fs=hs;function gs(e){return ps.isPlainObject(e)||ps.isArray(e)}function ms(e){return ps.endsWith(e,"[]")?e.slice(0,-2):e}function ys(e,t,n){return e?e.concat(t).map(function(e,t){return e=ms(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const vs=ps.toFlatObject(ps,{},null,function(e){return/^is[A-Z]/.test(e)});function bs(e,t,n){if(!ps.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ps.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ps.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ps.isSpecCompliantForm(t);if(!ps.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ps.isDate(e))return e.toISOString();if(ps.isBoolean(e))return e.toString();if(!s&&ps.isBlob(e))throw new fs("Blob is not supported. Use a Buffer instead.");return ps.isArrayBuffer(e)||ps.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(ps.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ps.isArray(e)&&function(e){return ps.isArray(e)&&!e.some(gs)}(e)||(ps.isFileList(e)||ps.endsWith(n,"[]"))&&(s=ps.toArray(e)))return n=ms(n),s.forEach(function(e,r){!ps.isUndefined(e)&&null!==e&&t.append(!0===i?ys([n],r,a):null===i?n:n+"[]",c(e))}),!1;return!!gs(e)||(t.append(ys(o,n,a),c(e)),!1)}const l=[],d=Object.assign(vs,{defaultVisitor:u,convertValue:c,isVisitable:gs});if(!ps.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ps.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),ps.forEach(n,function(n,a){!0===(!(ps.isUndefined(n)||null===n)&&o.call(t,n,ps.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),l.pop()}}(e),t}function ks(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ws(e,t){this._pairs=[],e&&bs(e,this,t)}const _s=ws.prototype;function Es(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xs(e,t,n){if(!t)return e;const r=n&&n.encode||Es,o=ps.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let i;if(i=a?a(t,o):ps.isURLSearchParams(t)?t.toString():new ws(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}_s.append=function(e,t){this._pairs.push([e,t])},_s.toString=function(e){const t=e?function(t){return e.call(this,t,ks)}:ks;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ss=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ps.forEach(this.handlers,function(t){null!==t&&e(t)})}},Cs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Is={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ws,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Rs="undefined"!=typeof window&&"undefined"!=typeof document,Ts="object"==typeof navigator&&navigator||void 0,Os=Rs&&(!Ts||["ReactNative","NativeScript","NS"].indexOf(Ts.product)<0),As="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ps=Rs&&window.location.href||"http://localhost";var js={...Object.freeze({__proto__:null,hasBrowserEnv:Rs,hasStandardBrowserEnv:Os,hasStandardBrowserWebWorkerEnv:As,navigator:Ts,origin:Ps}),...Is};function Ds(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&ps.isArray(r)?r.length:a,s)return ps.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&ps.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&ps.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(ps.isFormData(e)&&ps.isFunction(e.entries)){const n={};return ps.forEachEntry(e,(e,r)=>{t(function(e){return ps.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Ls={transitional:Cs,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ps.isObject(e);o&&ps.isHTMLForm(e)&&(e=new FormData(e));if(ps.isFormData(e))return r?JSON.stringify(Ds(e)):e;if(ps.isArrayBuffer(e)||ps.isBuffer(e)||ps.isStream(e)||ps.isFile(e)||ps.isBlob(e)||ps.isReadableStream(e))return e;if(ps.isArrayBufferView(e))return e.buffer;if(ps.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return bs(e,new js.classes.URLSearchParams,{visitor:function(e,t,n,r){return js.isNode&&ps.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=ps.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return bs(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ps.isString(e))try{return(t||JSON.parse)(e),ps.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ls.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ps.isResponse(e)||ps.isReadableStream(e))return e;if(e&&ps.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw fs.from(e,fs.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:js.classes.FormData,Blob:js.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ps.forEach(["delete","get","head","post","put","patch"],e=>{Ls.headers[e]={}});var zs=Ls;const qs=ps.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Ns=Symbol("internals");function Us(e){return e&&String(e).trim().toLowerCase()}function Ms(e){return!1===e||null==e?e:ps.isArray(e)?e.map(Ms):String(e)}function Bs(e,t,n,r,o){return ps.isFunction(r)?r.call(this,t,n):(o&&(t=n),ps.isString(t)?ps.isString(r)?-1!==t.indexOf(r):ps.isRegExp(r)?r.test(t):void 0:void 0)}class Fs{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Us(t);if(!o)throw new Error("header name must be a non-empty string");const a=ps.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Ms(e))}const a=(e,t)=>ps.forEach(e,(e,n)=>o(e,n,t));if(ps.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ps.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&qs[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ps.isObject(e)&&ps.isIterable(e)){let n,r,o={};for(const t of e){if(!ps.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ps.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Us(e)){const n=ps.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ps.isFunction(t))return t.call(this,e,n);if(ps.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Us(e)){const n=ps.findKey(this,e);return!(!n||void 0===this[n]||t&&!Bs(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Us(e)){const o=ps.findKey(n,e);!o||t&&!Bs(0,n[o],o,t)||(delete n[o],r=!0)}}return ps.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Bs(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ps.forEach(this,(r,o)=>{const a=ps.findKey(n,o);if(a)return t[a]=Ms(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Ms(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ps.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ps.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ns]=this[Ns]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Us(e);t[r]||(!function(e,t){const n=ps.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return ps.isArray(e)?e.forEach(r):r(e),this}}Fs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ps.reduceDescriptors(Fs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ps.freezeMethods(Fs);var Hs=Fs;function Ws(e,t){const n=this||zs,r=t||n,o=Hs.from(r.headers);let a=r.data;return ps.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Gs(e){return!(!e||!e.__CANCEL__)}var Vs=class extends fs{constructor(e,t,n){super(null==e?"canceled":e,fs.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ks(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new fs("Request failed with status code "+n.status,[fs.ERR_BAD_REQUEST,fs.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const $s=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[i];o||(o=c),n[a]=s,r[a]=c;let l=i,d=0;for(;l!==a;)d+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,c=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Qs=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ys=e=>(...t)=>ps.asap(()=>e(...t));var Js=js.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,js.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(js.origin),js.navigator&&/(msie|trident)/i.test(js.navigator.userAgent)):()=>!0,Zs=js.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];ps.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ps.isString(r)&&s.push(`path=${r}`),ps.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),ps.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Xs(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ec=e=>e instanceof Hs?{...e}:e;function tc(e,t){t=t||{};const n={};function r(e,t,n,r){return ps.isPlainObject(e)&&ps.isPlainObject(t)?ps.merge.call({caseless:r},e,t):ps.isPlainObject(t)?ps.merge({},t):ps.isArray(t)?t.slice():t}function o(e,t,n,o){return ps.isUndefined(t)?ps.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!ps.isUndefined(t))return r(void 0,t)}function i(e,t){return ps.isUndefined(t)?ps.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(ec(e),ec(t),0,!0)};return ps.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=ps.hasOwnProp(c,r)?c[r]:o,i=a(e[r],t[r],r);ps.isUndefined(i)&&a!==s||(n[r]=i)}),n}var nc=e=>{const t=tc({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Hs.from(i),t.url=xs(Xs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ps.isFormData(n))if(js.hasStandardBrowserEnv||js.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(ps.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(js.hasStandardBrowserEnv&&(r&&ps.isFunction(r)&&(r=r(t)),r||!1!==r&&Js(t.url))){const e=o&&a&&Zs.read(a);e&&i.set(o,e)}return t};var rc="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=nc(e);let o=r.data;const a=Hs.from(r.headers).normalize();let i,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=r;function f(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=Hs.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ks(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new fs("Request aborted",fs.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new fs(r,fs.ERR_NETWORK,e,g);o.event=t||null,n(o),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Cs;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new fs(t,o.clarifyTimeoutError?fs.ETIMEDOUT:fs.ECONNABORTED,e,g)),g=null},void 0===o&&a.setContentType(null),"setRequestHeader"in g&&ps.forEach(a.toJSON(),function(e,t){g.setRequestHeader(t,e)}),ps.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),h&&([c,l]=$s(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([s,u]=$s(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{g&&(n(!t||t.type?new Vs(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===js.protocols.indexOf(y)?n(new fs("Unsupported protocol "+y+":",fs.ERR_BAD_REQUEST,e)):g.send(o||null)})};var oc=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof fs?t:new Vs(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new fs(`timeout of ${t}ms exceeded`,fs.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>ps.asap(i),s}};const ac=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},ic=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},sc=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of ic(e))yield*ac(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:cc}=ps,uc=(({Request:e,Response:t})=>({Request:e,Response:t}))(ps.global),{ReadableStream:lc,TextEncoder:dc}=ps.global,pc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},hc=e=>{e=ps.merge.call({skipUndefined:!0},uc,e);const{fetch:t,Request:n,Response:r}=e,o=t?cc(t):"function"==typeof fetch,a=cc(n),i=cc(r);if(!o)return!1;const s=o&&cc(lc),c=o&&("function"==typeof dc?(e=>t=>e.encode(t))(new dc):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=a&&s&&pc(()=>{let e=!1;const t=new n(js.origin,{body:new lc,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=i&&s&&pc(()=>ps.isReadableStream(new r("").body)),d={stream:l&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new fs(`Response type '${e}' is not supported`,fs.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=ps.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(ps.isBlob(e))return e.size;if(ps.isSpecCompliantForm(e)){const t=new n(js.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ps.isArrayBufferView(e)||ps.isArrayBuffer(e)?e.byteLength:(ps.isURLSearchParams(e)&&(e+=""),ps.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:s,signal:c,cancelToken:h,timeout:f,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:k}=nc(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let _=oc([c,h&&h.toAbortSignal()],f),E=null;const x=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let S;try{if(m&&u&&"get"!==i&&"head"!==i&&0!==(S=await p(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(ps.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Qs(S,$s(Ys(m)));s=sc(t.body,65536,e,n)}}ps.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,c={...k,signal:_,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};E=a&&new n(o,c);let h=await(a?w(E,k):w(o,c));const f=l&&("stream"===y||"response"===y);if(l&&(g||f&&x)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});const t=ps.toFiniteNumber(h.headers.get("content-length")),[n,o]=g&&Qs(t,$s(Ys(g),!0))||[];h=new r(sc(h.body,65536,n,()=>{o&&o(),x&&x()}),e)}y=y||"text";let C=await d[ps.findKey(d,y)||"text"](h,e);return!f&&x&&x(),await new Promise((t,n)=>{Ks(t,n,{data:C,headers:Hs.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:E})})}catch(t){if(x&&x(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new fs("Network Error",fs.ERR_NETWORK,e,E,t&&t.response),{cause:t.cause||t});throw fs.from(t,t&&t.code,e,E,t&&t.response)}}},fc=new Map,gc=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,c=a.length,u=fc;for(;c--;)i=a[c],s=u.get(i),void 0===s&&u.set(i,s=c?new Map:hc(t)),u=s;return s};gc();const mc={http:null,xhr:rc,fetch:{get:gc}};ps.forEach(mc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const yc=e=>`- ${e}`,vc=e=>ps.isFunction(e)||null===e||!1===e;var bc={getAdapter:function(e,t){e=ps.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!vc(r)&&(o=mc[(n=String(r)).toLowerCase()],void 0===o))throw new fs(`Unknown adapter '${n}'`);if(o&&(ps.isFunction(o)||(o=o.get(t))))break;a[n||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(yc).join("\n"):" "+yc(e[0]):"as no adapter specified";throw new fs("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:mc};function kc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vs(null,e)}function wc(e){kc(e),e.headers=Hs.from(e.headers),e.data=Ws.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return bc.getAdapter(e.adapter||zs.adapter,e)(e).then(function(t){return kc(e),t.data=Ws.call(e,e.transformResponse,t),t.headers=Hs.from(t.headers),t},function(t){return Gs(t)||(kc(e),t&&t.response&&(t.response.data=Ws.call(e,e.transformResponse,t.response),t.response.headers=Hs.from(t.response.headers))),Promise.reject(t)})}const _c="1.13.5",Ec={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ec[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const xc={};Ec.transitional=function(e,t,n){function r(e,t){return"[Axios v"+_c+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new fs(r(o," has been removed"+(t?" in "+t:"")),fs.ERR_DEPRECATED);return t&&!xc[o]&&(xc[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},Ec.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Sc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new fs("options must be an object",fs.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new fs("option "+a+" must be "+n,fs.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new fs("Unknown option "+a,fs.ERR_BAD_OPTION)}},validators:Ec};const Cc=Sc.validators;let Ic=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ss,response:new Ss}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tc(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Sc.assertOptions(n,{silentJSONParsing:Cc.transitional(Cc.boolean),forcedJSONParsing:Cc.transitional(Cc.boolean),clarifyTimeoutError:Cc.transitional(Cc.boolean),legacyInterceptorReqResOrdering:Cc.transitional(Cc.boolean)},!1),null!=r&&(ps.isFunction(r)?t.paramsSerializer={serialize:r}:Sc.assertOptions(r,{encode:Cc.function,serialize:Cc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Sc.assertOptions(t,{baseUrl:Cc.spelling("baseURL"),withXsrfToken:Cc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&ps.merge(o.common,o[t.method]);o&&ps.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Hs.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Cs;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[wc.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=i.length;let p=t;for(;d<l;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=wc.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return xs(Xs((e=tc(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};ps.forEach(["delete","get","head","options"],function(e){Ic.prototype[e]=function(t,n){return this.request(tc(n||{},{method:e,url:t,data:(n||{}).data}))}}),ps.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(tc(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ic.prototype[e]=t(),Ic.prototype[e+"Form"]=t(!0)});var Rc=Ic;class Tc{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Vs(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Tc(function(t){e=t}),cancel:e}}}var Oc=Tc;const Ac={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ac).forEach(([e,t])=>{Ac[t]=e});var Pc=Ac;const jc=function e(t){const n=new Rc(t),r=Ei(Rc.prototype.request,n);return ps.extend(r,Rc.prototype,n,{allOwnKeys:!0}),ps.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(tc(t,n))},r}(zs);jc.Axios=Rc,jc.CanceledError=Vs,jc.CancelToken=Oc,jc.isCancel=Gs,jc.VERSION=_c,jc.toFormData=bs,jc.AxiosError=fs,jc.Cancel=jc.CanceledError,jc.all=function(e){return Promise.all(e)},jc.spread=function(e){return function(t){return e.apply(null,t)}},jc.isAxiosError=function(e){return ps.isObject(e)&&!0===e.isAxiosError},jc.mergeConfig=tc,jc.AxiosHeaders=Hs,jc.formToJSON=e=>Ds(ps.isHTMLForm(e)?new FormData(e):e),jc.getAdapter=bc.getAdapter,jc.HttpStatusCode=Pc,jc.default=jc;var Dc=jc,Lc=function(e){var t=[];return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];if(Array.isArray(r)){var o=r.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(o))}else null!=r&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(r))))}),t.join("&")},zc=function(e){function n(n){var r,o,a,i,s=this;return(s=e.call(this,n)||this).token="",null===(o=null===(r=s.instance)||void 0===r?void 0:r.interceptors)||void 0===o||o.request.use(function(e){return t(t({},e),{defaults:{headers:t(t({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.response.use(function(e){return t({},e)},function(e){return Promise.reject(e)}),s}return o(n,e),n.prototype.getToken=function(){return"Bearer ".concat(this.token)},n.prototype.setToken=function(e){this.token=e},n.prototype.getUri=function(e){return this.instance.getUri(e)},n.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Dc.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},n.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},n.prototype.get=function(e,t){return this.instance.get(e,t)},n.prototype.options=function(e,t){return this.instance.options(e,t)},n.prototype.delete=function(e,t){return this.instance.delete(e,t)},n.prototype.head=function(e,t){return this.instance.head(e,t)},n.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},n.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},n.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},n.prototype.success=function(e){return null==e?void 0:e.data},n.prototype.error=function(e){throw e},n}(function(e){this.instance=Dc.create(e)}),qc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Nc(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Uc=TypeError,Mc=Nc(Object.freeze({__proto__:null,default:{}})),Bc="function"==typeof Map&&Map.prototype,Fc=Object.getOwnPropertyDescriptor&&Bc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hc=Bc&&Fc&&"function"==typeof Fc.get?Fc.get:null,Wc=Bc&&Map.prototype.forEach,Gc="function"==typeof Set&&Set.prototype,Vc=Object.getOwnPropertyDescriptor&&Gc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Kc=Gc&&Vc&&"function"==typeof Vc.get?Vc.get:null,$c=Gc&&Set.prototype.forEach,Qc="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Yc="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Jc="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Zc=Boolean.prototype.valueOf,Xc=Object.prototype.toString,eu=Function.prototype.toString,tu=String.prototype.match,nu=String.prototype.slice,ru=String.prototype.replace,ou=String.prototype.toUpperCase,au=String.prototype.toLowerCase,iu=RegExp.prototype.test,su=Array.prototype.concat,cu=Array.prototype.join,uu=Array.prototype.slice,lu=Math.floor,du="function"==typeof BigInt?BigInt.prototype.valueOf:null,pu=Object.getOwnPropertySymbols,hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,fu="function"==typeof Symbol&&"object"==typeof Symbol.iterator,gu="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===fu||"symbol")?Symbol.toStringTag:null,mu=Object.prototype.propertyIsEnumerable,yu=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function vu(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||iu.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-lu(-e):lu(e);if(r!==e){var o=String(r),a=nu.call(t,o.length+1);return ru.call(o,n,"$&_")+"."+ru.call(ru.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ru.call(t,n,"$&_")}var bu=Mc,ku=bu.custom,wu=Ou(ku)?ku:null,_u={__proto__:null,double:'"',single:"'"},Eu={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},xu=function e(t,n,r,o){var a=n||{};if(Pu(a,"quoteStyle")&&!Pu(_u,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Pu(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!Pu(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Pu(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Pu(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Lu(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?vu(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?vu(t,u):u}var l=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=l&&l>0&&"object"==typeof t)return Ru(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=cu.call(Array(e.indent+1)," ")}return{base:n,prev:cu.call(Array(t+1),n)}}(a,r);if(void 0===o)o=[];else if(Du(o,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(o=uu.call(o)).push(n),i){var s={depth:a.depth};return Pu(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,r+1,o)}return e(t,a,r+1,o)}if("function"==typeof t&&!Tu(t)){var h=function(e){if(e.name)return e.name;var t=tu.call(eu.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=Bu(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+cu.call(f,", ")+" }":"")}if(Ou(t)){var g=fu?ru.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):hu.call(t);return"object"!=typeof t||fu?g:qu(g)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var m="<"+au.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)m+=" "+y[v].name+"="+Su(Cu(y[v].value),"double",a);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+au.call(String(t.nodeName))+">"}if(Ru(t)){if(0===t.length)return"[]";var b=Bu(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(Du(e[t],"\n")>=0)return!1;return!0}(b)?"["+Mu(b,d)+"]":"[ "+cu.call(b,", ")+" ]"}if(function(e){return"[object Error]"===ju(e)&&Iu(e)}(t)){var k=Bu(t,p);return"cause"in Error.prototype||!("cause"in t)||mu.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+cu.call(k,", ")+" }":"{ ["+String(t)+"] "+cu.call(su.call("[cause]: "+p(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(wu&&"function"==typeof t[wu]&&bu)return bu(t,{depth:l-r});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Hc||!e||"object"!=typeof e)return!1;try{Hc.call(e);try{Kc.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var w=[];return Wc&&Wc.call(t,function(e,n){w.push(p(n,t,!0)+" => "+p(e,t))}),Uu("Map",Hc.call(t),w,d)}if(function(e){if(!Kc||!e||"object"!=typeof e)return!1;try{Kc.call(e);try{Hc.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var _=[];return $c&&$c.call(t,function(e){_.push(p(e,t))}),Uu("Set",Kc.call(t),_,d)}if(function(e){if(!Qc||!e||"object"!=typeof e)return!1;try{Qc.call(e,Qc);try{Yc.call(e,Yc)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Nu("WeakMap");if(function(e){if(!Yc||!e||"object"!=typeof e)return!1;try{Yc.call(e,Yc);try{Qc.call(e,Qc)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Nu("WeakSet");if(function(e){if(!Jc||!e||"object"!=typeof e)return!1;try{return Jc.call(e),!0}catch(e){}return!1}(t))return Nu("WeakRef");if(function(e){return"[object Number]"===ju(e)&&Iu(e)}(t))return qu(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!du)return!1;try{return du.call(e),!0}catch(e){}return!1}(t))return qu(p(du.call(t)));if(function(e){return"[object Boolean]"===ju(e)&&Iu(e)}(t))return qu(Zc.call(t));if(function(e){return"[object String]"===ju(e)&&Iu(e)}(t))return qu(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==qc&&t===qc)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===ju(e)&&Iu(e)}(t)&&!Tu(t)){var E=Bu(t,p),x=yu?yu(t)===Object.prototype:t instanceof Object||t.constructor===Object,S=t instanceof Object?"":"null prototype",C=!x&&gu&&Object(t)===t&&gu in t?nu.call(ju(t),8,-1):S?"Object":"",I=(x||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(C||S?"["+cu.call(su.call([],C||[],S||[]),": ")+"] ":"");return 0===E.length?I+"{}":d?I+"{"+Mu(E,d)+"}":I+"{ "+cu.call(E,", ")+" }"}return String(t)};function Su(e,t,n){var r=n.quoteStyle||t,o=_u[r];return o+e+o}function Cu(e){return ru.call(String(e),/"/g,"&quot;")}function Iu(e){return!gu||!("object"==typeof e&&(gu in e||void 0!==e[gu]))}function Ru(e){return"[object Array]"===ju(e)&&Iu(e)}function Tu(e){return"[object RegExp]"===ju(e)&&Iu(e)}function Ou(e){if(fu)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!hu)return!1;try{return hu.call(e),!0}catch(e){}return!1}var Au=Object.prototype.hasOwnProperty||function(e){return e in this};function Pu(e,t){return Au.call(e,t)}function ju(e){return Xc.call(e)}function Du(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Lu(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Lu(nu.call(e,0,t.maxStringLength),t)+r}var o=Eu[t.quoteStyle||"single"];return o.lastIndex=0,Su(ru.call(ru.call(e,o,"\\$1"),/[\x00-\x1f]/g,zu),"single",t)}function zu(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+ou.call(t.toString(16))}function qu(e){return"Object("+e+")"}function Nu(e){return e+" { ? }"}function Uu(e,t,n,r){return e+" ("+t+") {"+(r?Mu(n,r):cu.call(n,", "))+"}"}function Mu(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+cu.call(e,","+n)+"\n"+t.prev}function Bu(e,t){var n=Ru(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Pu(e,o)?t(e[o],e):""}var a,i="function"==typeof pu?pu(e):[];if(fu){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)Pu(e,c)&&(n&&String(Number(c))===c&&c<e.length||fu&&a["$"+c]instanceof Symbol||(iu.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof pu)for(var u=0;u<i.length;u++)mu.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var Fu=xu,Hu=Uc,Wu=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r},Gu=Object,Vu=Error,Ku=EvalError,$u=RangeError,Qu=ReferenceError,Yu=SyntaxError,Ju=URIError,Zu=Math.abs,Xu=Math.floor,el=Math.max,tl=Math.min,nl=Math.pow,rl=Math.round,ol=Number.isNaN||function(e){return e!=e},al=Object.getOwnPropertyDescriptor;if(al)try{al([],"length")}catch(e){al=null}var il=al,sl=Object.defineProperty||!1;if(sl)try{sl({},"a",{value:1})}catch(e){sl=!1}var cl,ul,ll,dl,pl,hl,fl,gl,ml,yl,vl,bl,kl,wl,_l,El,xl=sl;function Sl(){return hl?pl:(hl=1,pl="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Cl(){return gl?fl:(gl=1,fl=Gu.getPrototypeOf||null)}function Il(){if(yl)return ml;yl=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};return ml=function(r){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),s=t(0,o.length-i.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(a=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=o.apply(this,n(i,arguments));return Object(e)===e?e:this}return o.apply(r,n(i,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,a.prototype=new l,l.prototype=null}return a},ml}function Rl(){if(bl)return vl;bl=1;var e=Il();return vl=Function.prototype.bind||e}function Tl(){return wl?kl:(wl=1,kl=Function.prototype.call)}function Ol(){return El?_l:(El=1,_l=Function.prototype.apply)}var Al,Pl,jl,Dl,Ll,zl,ql,Nl="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Ul=Rl(),Ml=Ol(),Bl=Tl(),Fl=Nl||Ul.call(Bl,Ml),Hl=Rl(),Wl=Uc,Gl=Tl(),Vl=Fl,Kl=function(e){if(e.length<1||"function"!=typeof e[0])throw new Wl("a function is required");return Vl(Hl,Gl,e)};var $l=Gu,Ql=Vu,Yl=Ku,Jl=$u,Zl=Qu,Xl=Yu,ed=Uc,td=Ju,nd=Zu,rd=Xu,od=el,ad=tl,id=nl,sd=rl,cd=function(e){return ol(e)||0===e?e:e<0?-1:1},ud=Function,ld=function(e){try{return ud('"use strict"; return ('+e+").constructor;")()}catch(e){}},dd=il,pd=xl,hd=function(){throw new ed},fd=dd?function(){try{return hd}catch(e){try{return dd(arguments,"callee").get}catch(e){return hd}}}():hd,gd=function(){if(dl)return ll;dl=1;var e="undefined"!=typeof Symbol&&Symbol,t=ul?cl:(ul=1,cl=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return ll=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),md=function(){if(Dl)return jl;Dl=1;var e=Sl(),t=Cl(),n=function(){if(Pl)return Al;Pl=1;var e,t=Kl,n=il;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Al=r&&"function"==typeof r.get?t([r.get]):"function"==typeof a&&function(e){return a(null==e?e:o(e))}}();return jl=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),yd=Cl(),vd=Sl(),bd=Ol(),kd=Tl(),wd={},_d="undefined"!=typeof Uint8Array&&md?md(Uint8Array):ql,Ed={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?ql:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ql:ArrayBuffer,"%ArrayIteratorPrototype%":gd&&md?md([][Symbol.iterator]()):ql,"%AsyncFromSyncIteratorPrototype%":ql,"%AsyncFunction%":wd,"%AsyncGenerator%":wd,"%AsyncGeneratorFunction%":wd,"%AsyncIteratorPrototype%":wd,"%Atomics%":"undefined"==typeof Atomics?ql:Atomics,"%BigInt%":"undefined"==typeof BigInt?ql:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?ql:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?ql:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ql:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ql,"%eval%":eval,"%EvalError%":Yl,"%Float16Array%":"undefined"==typeof Float16Array?ql:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?ql:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ql:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ql:FinalizationRegistry,"%Function%":ud,"%GeneratorFunction%":wd,"%Int8Array%":"undefined"==typeof Int8Array?ql:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ql:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ql:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gd&&md?md(md([][Symbol.iterator]())):ql,"%JSON%":"object"==typeof JSON?JSON:ql,"%Map%":"undefined"==typeof Map?ql:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&gd&&md?md((new Map)[Symbol.iterator]()):ql,"%Math%":Math,"%Number%":Number,"%Object%":$l,"%Object.getOwnPropertyDescriptor%":dd,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ql:Promise,"%Proxy%":"undefined"==typeof Proxy?ql:Proxy,"%RangeError%":Jl,"%ReferenceError%":Zl,"%Reflect%":"undefined"==typeof Reflect?ql:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ql:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&gd&&md?md((new Set)[Symbol.iterator]()):ql,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ql:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gd&&md?md(""[Symbol.iterator]()):ql,"%Symbol%":gd?Symbol:ql,"%SyntaxError%":Xl,"%ThrowTypeError%":fd,"%TypedArray%":_d,"%TypeError%":ed,"%Uint8Array%":"undefined"==typeof Uint8Array?ql:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ql:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ql:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ql:Uint32Array,"%URIError%":td,"%WeakMap%":"undefined"==typeof WeakMap?ql:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ql:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ql:WeakSet,"%Function.prototype.call%":kd,"%Function.prototype.apply%":bd,"%Object.defineProperty%":pd,"%Object.getPrototypeOf%":yd,"%Math.abs%":nd,"%Math.floor%":rd,"%Math.max%":od,"%Math.min%":ad,"%Math.pow%":id,"%Math.round%":sd,"%Math.sign%":cd,"%Reflect.getPrototypeOf%":vd};if(md)try{null.error}catch(e){var xd=md(md(e));Ed["%Error.prototype%"]=xd}var Sd,Cd,Id,Rd,Td,Od,Ad,Pd,jd,Dd,Ld,zd,qd,Nd=function e(t){var n;if("%AsyncFunction%"===t)n=ld("async function () {}");else if("%GeneratorFunction%"===t)n=ld("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=ld("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&md&&(n=md(o.prototype))}return Ed[t]=n,n},Ud={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Md=Rl(),Bd=function(){if(zl)return Ll;zl=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Rl();return Ll=n.call(e,t)}(),Fd=Md.call(kd,Array.prototype.concat),Hd=Md.call(bd,Array.prototype.splice),Wd=Md.call(kd,String.prototype.replace),Gd=Md.call(kd,String.prototype.slice),Vd=Md.call(kd,RegExp.prototype.exec),Kd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$d=/\\(\\)?/g,Qd=function(e,t){var n,r=e;if(Bd(Ud,r)&&(r="%"+(n=Ud[r])[0]+"%"),Bd(Ed,r)){var o=Ed[r];if(o===wd&&(o=Nd(r)),void 0===o&&!t)throw new ed("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Xl("intrinsic "+e+" does not exist!")},Yd=function(e,t){if("string"!=typeof e||0===e.length)throw new ed("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ed('"allowMissing" argument must be a boolean');if(null===Vd(/^%?[^%]*%?$/,e))throw new Xl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Gd(e,0,1),n=Gd(e,-1);if("%"===t&&"%"!==n)throw new Xl("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Xl("invalid intrinsic syntax, expected opening `%`");var r=[];return Wd(e,Kd,function(e,t,n,o){r[r.length]=n?Wd(o,$d,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=Qd("%"+r+"%",t),a=o.name,i=o.value,s=!1,c=o.alias;c&&(r=c[0],Hd(n,Fd([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var d=n[u],p=Gd(d,0,1),h=Gd(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new Xl("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),Bd(Ed,a="%"+(r+="."+d)+"%"))i=Ed[a];else if(null!=i){if(!(d in i)){if(!t)throw new ed("base intrinsic for "+e+" exists, but the property is not available.");return}if(dd&&u+1>=n.length){var f=dd(i,d);i=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:i[d]}else l=Bd(i,d),i=i[d];l&&!s&&(Ed[a]=i)}}return i},Jd=Yd,Zd=Kl,Xd=Zd([Jd("%String.prototype.indexOf%")]),ep=function(e,t){var n=Jd(e,!!t);return"function"==typeof n&&Xd(e,".prototype.")>-1?Zd([n]):n},tp=ep,np=xu,rp=Uc,op=Yd("%Map%",!0),ap=tp("Map.prototype.get",!0),ip=tp("Map.prototype.set",!0),sp=tp("Map.prototype.has",!0),cp=tp("Map.prototype.delete",!0),up=tp("Map.prototype.size",!0),lp=!!op&&function(){var e,t={assert:function(e){if(!t.has(e))throw new rp("Side channel does not contain "+np(e))},delete:function(t){if(e){var n=cp(e,t);return 0===up(e)&&(e=void 0),n}return!1},get:function(t){if(e)return ap(e,t)},has:function(t){return!!e&&sp(e,t)},set:function(t,n){e||(e=new op),ip(e,t,n)}};return t},dp=ep,pp=xu,hp=lp,fp=Uc,gp=Yd("%WeakMap%",!0),mp=dp("WeakMap.prototype.get",!0),yp=dp("WeakMap.prototype.set",!0),vp=dp("WeakMap.prototype.has",!0),bp=dp("WeakMap.prototype.delete",!0),kp=Uc,wp=xu,_p=(gp?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new fp("Side channel does not contain "+pp(e))},delete:function(n){if(gp&&n&&("object"==typeof n||"function"==typeof n)){if(e)return bp(e,n)}else if(hp&&t)return t.delete(n);return!1},get:function(n){return gp&&n&&("object"==typeof n||"function"==typeof n)&&e?mp(e,n):t&&t.get(n)},has:function(n){return gp&&n&&("object"==typeof n||"function"==typeof n)&&e?vp(e,n):!!t&&t.has(n)},set:function(n,r){gp&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new gp),yp(e,n,r)):hp&&(t||(t=hp()),t.set(n,r))}};return n}:hp)||lp||function(){var e,t={assert:function(e){if(!t.has(e))throw new Hu("Side channel does not contain "+Fu(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return Wu(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=Wu(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Wu(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=Wu(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},Ep=function(){var e,t={assert:function(e){if(!t.has(e))throw new kp("Side channel does not contain "+wp(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=_p()),e.set(t,n)}};return t},xp=String.prototype.replace,Sp=/%20/g,Cp="RFC3986",Ip={default:Cp,formatters:{RFC1738:function(e){return xp.call(e,Sp,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Cp},Rp=Ip,Tp=Ep,Op=Object.prototype.hasOwnProperty,Ap=Array.isArray,Pp=Tp(),jp=function(e,t){return Pp.set(e,t),e},Dp=function(e){return Pp.has(e)},Lp=function(e){return Pp.get(e)},zp=function(e,t){Pp.set(e,t)},qp=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),Np=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},Up=1024,Mp={arrayToObject:Np,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t,n,r){if(Dp(e)){var o=Lp(e)+1;return e[o]=t,zp(e,o),e}var a=[].concat(e,t);return a.length>n?jp(Np(a,{plainObjects:r}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t[t.length]={obj:a,prop:c},n[n.length]=u)}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Ap(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&(r[r.length]=n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,r,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",s=0;s<a.length;s+=Up){for(var c=a.length>=Up?a.slice(s,s+Up):a,u=[],l=0;l<c.length;++l){var d=c.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===Rp.RFC1738&&(40===d||41===d)?u[u.length]=c.charAt(l):d<128?u[u.length]=qp[d]:d<2048?u[u.length]=qp[192|d>>6]+qp[128|63&d]:d<55296||d>=57344?u[u.length]=qp[224|d>>12]+qp[128|d>>6&63]+qp[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&c.charCodeAt(l)),u[u.length]=qp[240|d>>18]+qp[128|d>>12&63]+qp[128|d>>6&63]+qp[128|63&d])}i+=u.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:Dp,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:jp,maybeMap:function(e,t){if(Ap(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(Ap(t)){var o=t.length;if(r&&"number"==typeof r.arrayLimit&&o>r.arrayLimit)return jp(Np(t.concat(n),r),o);t[o]=n}else{if(!t||"object"!=typeof t)return[t,n];if(Dp(t)){var a=Lp(t)+1;t[a]=n,zp(t,a)}else(r&&(r.plainObjects||r.allowPrototypes)||!Op.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t){if(Dp(n)){for(var i=Object.keys(n),s=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},c=0;c<i.length;c++){s[parseInt(i[c],10)+1]=n[i[c]]}return jp(s,Lp(n)+1)}var u=[t].concat(n);return r&&"number"==typeof r.arrayLimit&&u.length>r.arrayLimit?jp(Np(u,r),u.length-1):u}var l=t;return Ap(t)&&!Ap(n)&&(l=Np(t,r)),Ap(t)&&Ap(n)?(n.forEach(function(n,o){if(Op.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t[t.length]=n}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];if(Op.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,Dp(n)&&!Dp(t)&&jp(t,Lp(n)),Dp(t)){var i=parseInt(o,10);String(i)===o&&i>=0&&i>Lp(t)&&zp(t,i)}return t},l)}},Bp=Ep,Fp=Mp,Hp=Ip,Wp=Object.prototype.hasOwnProperty,Gp={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Vp=Array.isArray,Kp=Array.prototype.push,$p=function(e,t){Kp.apply(e,Vp(t)?t:[t])},Qp=Date.prototype.toISOString,Yp=Hp.default,Jp={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Fp.encode,encodeValuesOnly:!1,filter:void 0,format:Yp,formatter:Hp.formatters[Yp],indices:!1,serializeDate:function(e){return Qp.call(e)},skipNulls:!1,strictNullHandling:!1},Zp={},Xp=function e(t,n,r,o,a,i,s,c,u,l,d,p,h,f,g,m,y,v){for(var b,k=t,w=v,_=0,E=!1;void 0!==(w=w.get(Zp))&&!E;){var x=w.get(t);if(_+=1,void 0!==x){if(x===_)throw new RangeError("Cyclic object value");E=!0}void 0===w.get(Zp)&&(_=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=h(k):"comma"===r&&Vp(k)&&(k=Fp.maybeMap(k,function(e){return e instanceof Date?h(e):e})),null===k){if(i)return u&&!m?u(n,Jp.encoder,y,"key",f):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Fp.isBuffer(k))return u?[g(m?n:u(n,Jp.encoder,y,"key",f))+"="+g(u(k,Jp.encoder,y,"value",f))]:[g(n)+"="+g(String(k))];var S,C=[];if(void 0===k)return C;if("comma"===r&&Vp(k))m&&u&&(k=Fp.maybeMap(k,u)),S=[{value:k.length>0?k.join(",")||null:void 0}];else if(Vp(l))S=l;else{var I=Object.keys(k);S=d?I.sort(d):I}var R=c?String(n).replace(/\./g,"%2E"):String(n),T=o&&Vp(k)&&1===k.length?R+"[]":R;if(a&&Vp(k)&&0===k.length)return T+"[]";for(var O=0;O<S.length;++O){var A=S[O],P="object"==typeof A&&A&&void 0!==A.value?A.value:k[A];if(!s||null!==P){var j=p&&c?String(A).replace(/\./g,"%2E"):String(A),D=Vp(k)?"function"==typeof r?r(T,j):T:T+(p?"."+j:"["+j+"]");v.set(t,_);var L=Bp();L.set(Zp,v),$p(C,e(P,D,r,o,a,i,s,c,"comma"===r&&m&&Vp(k)?null:u,l,d,p,h,f,g,m,y,L))}}return C},eh=Mp,th=Object.prototype.hasOwnProperty,nh=Array.isArray,rh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:eh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},oh=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},ah=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},ih=function(e,t,n,r){if(e){var o=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&th.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(n),a=o?n.slice(0,o.index):n,i=[];if(a){if(!t.plainObjects&&th.call(Object.prototype,a)&&!t.allowPrototypes)return;i[i.length]=a}for(var s=0;null!==(o=r.exec(n))&&s<t.depth;){s+=1;var c=o[1].slice(1,-1);if(!t.plainObjects&&th.call(Object.prototype,c)&&!t.allowPrototypes)return;i[i.length]=o[1]}if(o){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+n.slice(o.index)+"]"}return i}(e,n);if(o)return function(e,t,n,r){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var i=r?t:ah(t,n,o),s=e.length-1;s>=0;--s){var c,u=e[s];if("[]"===u&&n.parseArrays)c=eh.isOverflow(i)?i:n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:eh.combine([],i,n.arrayLimit,n.plainObjects);else{c=n.plainObjects?{__proto__:null}:{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,d=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(d,10),h=!isNaN(p)&&u!==d&&String(p)===d&&p>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(h&&p<n.arrayLimit)(c=[])[p]=i;else{if(h&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");h?(c[p]=i,eh.markOverflow(c,p)):"__proto__"!==d&&(c[d]=i)}else c={0:i}}i=c}return i}(o,t,n,r)}},sh=function(e,t){var n,r=e,o=function(e){if(!e)return Jp;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Jp.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Hp.default;if(void 0!==e.format){if(!Wp.call(Hp.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=Hp.formatters[n],a=Jp.filter;if(("function"==typeof e.filter||Vp(e.filter))&&(a=e.filter),r=e.arrayFormat in Gp?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Jp.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||Jp.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Jp.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Jp.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Jp.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?Jp.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Jp.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Jp.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Jp.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Jp.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Jp.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Jp.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Jp.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):Vp(o.filter)&&(n=o.filter);var a=[];if("object"!=typeof r||null===r)return"";var i=Gp[o.arrayFormat],s="comma"===i&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=Bp(),u=0;u<n.length;++u){var l=n[u],d=r[l];o.skipNulls&&null===d||$p(a,Xp(d,l,i,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=a.join(o.delimiter),h=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),p.length>0?h+p:""},ch=function(e,t){var n=function(e){if(!e)return rh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?rh.charset:e.charset,n=void 0===e.duplicates?rh.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||rh.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:rh.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:rh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:rh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:rh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:rh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:rh.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:rh.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:rh.decoder,delimiter:"string"==typeof e.delimiter||eh.isRegExp(e.delimiter)?e.delimiter:rh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:rh.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:rh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:rh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:rh.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:rh.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:rh.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=r.split(t.delimiter,t.throwOnLimitExceeded?o+1:o);if(t.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var i,s=-1,c=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?c="utf-8":"utf8=%26%2310003%3B"===a[i]&&(c="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var u,l,d=a[i],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;if(-1===h?(u=t.decoder(d,rh.decoder,c,"key"),l=t.strictNullHandling?null:""):null!==(u=t.decoder(d.slice(0,h),rh.decoder,c,"key"))&&(l=eh.maybeMap(ah(d.slice(h+1),t,nh(n[u])?n[u].length:0),function(e){return t.decoder(e,rh.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=oh(String(l))),d.indexOf("[]=")>-1&&(l=nh(l)?[l]:l),t.comma&&nh(l)&&l.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");l=eh.combine([],l,t.arrayLimit,t.plainObjects)}if(null!==u){var f=th.call(n,u);f&&"combine"===t.duplicates?n[u]=eh.combine(n[u],l,t.arrayLimit,t.plainObjects):f&&"last"!==t.duplicates||(n[u]=l)}}return n}(e,n):e,o=n.plainObjects?{__proto__:null}:{},a=Object.keys(r),i=0;i<a.length;++i){var s=a[i],c=ih(s,r[s],n,"string"==typeof e);o=eh.merge(o,c,n)}return!0===n.allowSparse?o:eh.compact(o)},uh={formats:Ip,parse:ch,stringify:sh},lh={withCredentials:!1,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return uh.stringify(e,{indices:!1})}},dh=[{value:"CHART_NOT_EXPECTED",labelKey:"insights.feedback.issues.chartNotExpected"},{value:"TIME_RANGE_INCORRECT",labelKey:"insights.feedback.issues.timeRangeIncorrect"},{value:"DATA_INACCURATE",labelKey:"insights.feedback.issues.dataInaccurate"},{value:"NOT_ANSWERING_QUESTION",labelKey:"insights.feedback.issues.notAnsweringQuestion"},{value:"EXPECTED_INSIGHTS",labelKey:"insights.feedback.issues.expectedInsights"},{value:"OTHER",labelKey:"insights.feedback.issues.other"}];!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(Sd||(Sd={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(Cd||(Cd={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(Id||(Id={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(Rd||(Rd={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Td||(Td={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Od||(Od={})),function(e){var t,n;e.DEFAULT_ROUTING_TYPE="smart-routing",(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Ad||(Ad={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",t.CARD_TYPES="card-types",t.CARD_BRANDS="card-brands",t.ISSUERS="issuers",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(Pd||(Pd={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.FEES="FEES",e.ADVANCEMENTS="ADVANCEMENTS",e.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",e.SETTLEMENTS_FEES="SETTLEMENTS_FEES",e.CASHFLOW="CASHFLOW",e.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS"}(jd||(jd={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Dd||(Dd={})),function(e){var t;(t=e.AuditExportReportType||(e.AuditExportReportType={})).DASHBOARD="DASHBOARD",t.API="API",t.WEBHOOKS="WEBHOOKS",t.MONITORS="MONITORS"}(Ld||(Ld={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(zd||(zd={})),function(e){var t;(t=e.ConfigType||(e.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",t.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",t.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN"}(qd||(qd={}));var ph=["PAUSED","ACTIVE"],hh={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},fh="DELETED",gh={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"};const mh=[];for(let e=0;e<256;++e)mh.push((e+256).toString(16).slice(1));let yh;const vh=new Uint8Array(16);var bh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kh(e,t,n){if(bh.randomUUID&&!t&&!e)return bh.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!yh){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yh=crypto.getRandomValues.bind(crypto)}return yh(vh)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(mh[e[t+0]]+mh[e[t+1]]+mh[e[t+2]]+mh[e[t+3]]+"-"+mh[e[t+4]]+mh[e[t+5]]+"-"+mh[e[t+6]]+mh[e[t+7]]+"-"+mh[e[t+8]]+mh[e[t+9]]+"-"+mh[e[t+10]]+mh[e[t+11]]+mh[e[t+12]]+mh[e[t+13]]+mh[e[t+14]]+mh[e[t+15]]).toLowerCase()}(r)}var wh=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function _h(e){return e&&0!==e.length?{metadata_filters:e.map(function(e){var t=e.field,n=e.type,r=e.values;return{key:t,conditional:n,values:Array.isArray(r)?r:[r]}})}:{}}var Eh=function(e){function i(n){var r=n?t(t({},lh),n):lh;return e.call(this,r)||this}return o(i,e),i.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},i.prototype.updateReconciliationReportTemplate=function(e){var n=e.type===jd.TRANSACTIONS?"TRANSACTIONS":e.type,r=t(t({},e),{type:n});return this.put("/v1/reconciliation/reports/templates",r)},i.prototype.createReconciliationReportTemplate=function(e){var n=e.type===jd.TRANSACTIONS?"TRANSACTIONS":e.type,r=t(t({},e),{type:n});return this.post("/v1/reconciliation/reports/templates",r)},i.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},i.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},i.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},i.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},i.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},i.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},i.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},i.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},i.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},i.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},i.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},i.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},i.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},i.prototype.getReconciliationInsightsConflictsSummary=function(e){return this.post("/reconciliations/insights/conflicts/summary",e)},i.prototype.getReconciliationInsightsNotReconciledAggregators=function(e){return this.post("/reconciliations/insights/not-reconciled/aggregators",e)},i.prototype.getReconciliationInsightsNotReconciledList=function(e){return this.post("/reconciliations/insights/not-reconciled/list",e)},i.prototype.getReconciliationInsightsStatusConflictAggregators=function(e){return this.post("/reconciliations/insights/status-conflict/aggregators",e)},i.prototype.getReconciliationInsightsStatusConflictList=function(e){return this.post("/reconciliations/insights/status-conflict/list",e)},i.prototype.getReconciliationInsightsAmountConflictAggregators=function(e){return this.post("/reconciliations/insights/amount-conflict/aggregators",e)},i.prototype.getReconciliationInsightsAmountConflictList=function(e){return this.post("/reconciliations/insights/amount-conflict/list",e)},i.prototype.getReconciliationInsightsConflictDateSummary=function(e){return this.post("/reconciliations/insights/conflict-date/summary",e)},i.prototype.getReconciliationInsightsConflictDateAggregators=function(e){return this.post("/reconciliations/insights/conflict-date/aggregators",e)},i.prototype.getReconciliationInsightsConflictDateList=function(e){return this.post("/reconciliations/insights/conflict-date/list",e)},i.prototype.getReconciliationInsightsIncorrectFeesSummary=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsIncorrectFeesAggregators=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/aggregators",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsIncorrectFeesList=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/list",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsFeesChargedSummary=function(e,t){return this.post("/reconciliations/insights/fees-charged/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsReconciledSummary=function(e,t){return this.post("/reconciliations/insights/reconciled/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsReconciledAggregators=function(e,t,n){var r={};return t&&(r.date_filter=t),n&&(r.type=n),this.post("/reconciliations/insights/reconciled/aggregators",e,Object.keys(r).length>0?{params:r}:void 0)},i.prototype.getReconciliationInsightsReconciledList=function(e,t,n){var r={};return t&&(r.date_filter=t),n&&(r.type=n),this.post("/reconciliations/insights/reconciled/list",e,Object.keys(r).length>0?{params:r}:void 0)},i.prototype.getReconciliationInsightsNotConfirmSummary=function(e){return this.post("/reconciliations/insights/not-confirm/summary",e)},i.prototype.getReconciliationInsightsNotConfirmAggregators=function(e){return this.post("/reconciliations/insights/not-confirm/aggregators",e)},i.prototype.getReconciliationInsightsNotConfirmList=function(e){return this.post("/reconciliations/insights/not-confirm/list",e)},i.prototype.getReconciliationInsightsAmountToBeSettledSummary=function(e){return this.post("/reconciliations/insights/amount-to-be-settled/summary",e)},i.prototype.getReconciliationInsightsReconciliationRateByProvider=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-provider",e)},i.prototype.getReconciliationInsightsReconciliationRateByAccount=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-account",e)},i.prototype.getReconciliationInsightsReconciliationRateByCurrency=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-currency",e)},i.prototype.postPaymentsLazy=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payments/lazy",t({account_codes:(null==n?void 0:n.split(","))||[]},_h(r)),{params:o})},i.prototype.postPayouts=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payouts",t({account_codes:(null==n?void 0:n.split(","))||[]},_h(r)),{params:o})},i.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},i.prototype.getHiddenFields=function(e){var t=e.scope;return this.get("/hidden-fields",{params:{scope:t}})},i.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=a(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},i.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},i.prototype.postTransactions=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]);return this.post("/v2/transactions",t({account_codes:(null==n?void 0:n.split(","))||[]},_h(r)),{params:o})},i.prototype.postFraudTransactions=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]);return this.post("/fraud-transactions",t({account_codes:(null==n?void 0:n.split(","))||[]},_h(r)),{params:o})},i.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},i.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},i.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},i.prototype.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},i.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,r=e.country,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(r),o?{}:{headers:a})},i.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},i.prototype.createOperationTransaction=function(e,t,n,r){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(r),e)},i.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},i.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},i.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},i.prototype.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},i.prototype.uploadChargebacks=function(e,t,n,r){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){r(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":kh()}})},i.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},i.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},i.prototype.getDeveloperCredentials=function(e,t,n,r){var o={};return e&&(o["x-password"]=e),t&&(o["x-account-code"]=t),n&&(o["x-otp"]=n),r&&(o["x-mfa-token"]=r),this.get("/v2/developers/credentials",{headers:o})},i.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},i.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{headers:{"x-password":e}})},i.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},i.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},i.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},i.prototype.getAllOrganization=function(){return this.get("/organizations/all")},i.prototype.getProviderParams=function(e,t){var n,r=localStorage.getItem("x-organization-code"),o={"x-organization-code":r?null===(n=JSON.parse(r))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:o})},i.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},i.prototype.putCosts=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,this.put("/connections/costs",{costs:[e]})]})})},i.prototype.updateOrganizationStatus=function(){return n(this,void 0,void 0,function(){return r(this,function(e){return[2,this.patch("/organizations/status")]})})},i.prototype.addToRiskList=function(e,t){return this.post("/payments/".concat(e,"/add-to-risk-list"),t)},i.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},i.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},i.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},i.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},i.prototype.getConnectionsByPaymentMethod=function(e,t,o){return void 0===o&&(o=Ad.DEFAULT_ROUTING_TYPE),n(this,void 0,void 0,function(){return r(this,function(n){return[2,this.get("/organizations/connections/".concat(e,"/").concat(t).concat("routing-payouts"===o?"?flow_type=PAYOUT":""))]})})},i.prototype.getHashPylon=function(){return this.get("/pylon-hash")},i.prototype.getConnections=function(){return this.get("/connections")},i.prototype.getOnboardingStatus=function(e){return this.get("/onboarding/status/".concat(e))},i.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},i.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,r="/connections/change-status";if(t.status==fh)return delete t.status,this.delete(r,{data:t});Object.values(ph).includes(null==t?void 0:t.status)&&(r="".concat(r,"/").concat(hh[t.status]),delete t.status);var o={"x-account-code":n};return this.post(r,t,{headers:o})},i.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},i.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},i.prototype.patchConnection=function(e){var n,r=e.payload,o=e.connectionCode,a=localStorage.getItem("account"),i=a?null===(n=JSON.parse(a).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(o),t({account_code:i},r))},i.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},i.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},i.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},i.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},i.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},i.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},i.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},i.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,r=a(t,["account_code"]),o={account_codes:n};return this.post("/v2/webhooks/organization",o,{params:r,paramsSerializer:Lc})},i.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},i.prototype.postExportApiLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/api-logs/organization/export-csv",t,{params:e,paramsSerializer:Lc})},i.prototype.postExportWebhooksLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/webhooks/organization/export-csv",t,{params:e,paramsSerializer:Lc})},i.prototype.getApiLogsV3=function(e){return this.get("/v3/api-logs/payment/".concat(e))},i.prototype.getWebhookTimeline=function(e){return this.get("/v3/webhooks/payment/".concat(e))},i.prototype.postExportDashboardLogs=function(e){var t={account_codes:e.account_code,event:e.event,source:e.source,search:e.search},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/v2/events/organization/export-csv",t,{params:n,paramsSerializer:Lc})},i.prototype.postExportMonitorsLogs=function(e){var t={account_codes:e.account_codes,status:e.status,payment_methods:e.payment_methods,providers:e.providers,traffic_redistribution:e.traffic_redistribution},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/routing-monitor/audit/export-csv",t,{params:n,paramsSerializer:Lc})},i.prototype.getAuditExportsList=function(e){return this.get("/audit/reports",{params:{report_type:e}})},i.prototype.getAuditExportDownload=function(e){return this.get("/audit/reports/".concat(e,"/download"))},i.prototype.getUnifiedExportsPath=function(e){return"/v1/".concat(e,"/exports")},i.prototype.postUnifiedExport=function(e,t){return this.post(this.getUnifiedExportsPath(e),t)},i.prototype.getUnifiedExportStatus=function(e,t){var n=this.getUnifiedExportsPath(e);return this.get("".concat(n,"/").concat(t))},i.prototype.getUnifiedExportsList=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.get(this.getUnifiedExportsPath(e),{params:{page:t,size:n}})},i.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,r=a(t,["account_code"]),o={account_codes:n};return this.post("/v2/api-logs/organization",o,{params:r,paramsSerializer:Lc})},i.prototype.getApiLogsDetailByPaymentCode=function(e,t){return this.get("/v3/api-logs/payment/".concat(e),{params:t?{created_at_from:t}:void 0})},i.prototype.getApiLogsByTransactionCode=function(e,t){return this.get("/v2/api-logs/transaction/".concat(e),{headers:{"x-account-code":t}})},i.prototype.postApiLogsStatsRequests=function(e){return this.post("/v3/api-logs/organization/stats/requests",e)},i.prototype.postApiLogsStatsErrors=function(e){return this.post("/v3/api-logs/organization/stats/errors",e)},i.prototype.postApiLogsStatsErrorsByEndpoint=function(e){return this.post("/v3/api-logs/organization/stats/errors-by-endpoint",e)},i.prototype.postApiLogsList=function(e){return this.post("/v3/api-logs/organization/list",e)},i.prototype.getApiLogsV3ByPaymentCode=function(e,t){return this.get("/v3/api-logs/payment/".concat(e),{params:t?{created_at_from:t}:void 0})},i.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},i.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},i.prototype.getSmartRoutingMethods=function(e,t){void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE);var n="routing-payouts"===t?"/".concat(t,"/config/withdrawal-methods"):"/".concat(t,"/methods/").concat(e);return this.get(n)},i.prototype.putSmartRoutingToggleMethod=function(e,t,n,r){void 0===r&&(r=Ad.DEFAULT_ROUTING_TYPE);var o="/".concat(r,"/methods/").concat(e,"/").concat(t);return this.put(o,{active:n})},i.prototype.getSmartRoutingConditionTypes=function(e,t,n){void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/config/condition-types/").concat(t):"/".concat(n,"/condition-types/").concat(e,"/").concat(t);return this.get(r)},i.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},i.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingNextSteps=function(e,t,n,r){return void 0===r&&(r=Ad.DEFAULT_ROUTING_TYPE),"routing-payouts"===r?this.post("/".concat(r,"/config/next-steps"),{step_type:t,status:n}):this.get("/".concat(r,"/next-route/").concat(e,"/").concat(t,"/").concat(n))},i.prototype.getSmartRoutingWorkflowVersion=function(e,t,n){void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflow-version/").concat(t):"/".concat(n,"/workflow-version/").concat(e,"/").concat(t);return this.get(r)},i.prototype.getSmartRoutingWorkflow=function(e,t,n){void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/workflow/").concat(e,"/").concat(t);return this.get(r)},i.prototype.putSmartRoutingUpdateWorkflow=function(e,t,n){var r;if(void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),"routing-payouts"===n){var o=(null===(r=t.version)||void 0===r?void 0:r.code)||t.code;return this.put("/".concat(n,"/workflows/").concat(o),t)}return this.put("/".concat(n,"/update-workflow/").concat(e),t)},i.prototype.putSmartRoutingUpdateWorkflowName=function(e,t,n){void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/name/").concat(t.code):"/".concat(n,"/workflow/").concat(e,"/edit-name");return this.put(r,t)},i.prototype.postSmartRoutingCreateWorkflow=function(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),"routing-payouts"===n?this.post("/".concat(n,"/workflows"),t):this.post("/".concat(n,"/create-workflow/").concat(e),t)},i.prototype.postSmartRoutingPublishVersion=function(e,t,n,r){void 0===r&&(r=Ad.DEFAULT_ROUTING_TYPE);var o={"x-organization-code":n},a="routing-payouts"===r?"/".concat(r,"/workflows/").concat(t,"/publish"):"/".concat(r,"/publish-version/").concat(e,"/").concat(t);return this.post(a,{},{headers:o})},i.prototype.deleteSmartRoutingVersion=function(e,t,n){void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/delete-version/").concat(e,"/").concat(t);return this.delete(r)},i.prototype.postSmartRoutingDuplicateVersion=function(e,t,n){void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t,"/duplicate"):"/".concat(n,"/duplicate-version/").concat(e,"/").concat(t);return this.post(r,{})},i.prototype.getSmartRoutingDeclinedGroup=function(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/declined-groups/").concat(e))},i.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},i.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},i.prototype.getSmartRoutingPaymentRoute=function(e,t,n){void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/payments/").concat(t,"/route"):"/".concat(n,"/payment-route/").concat(e,"/").concat(t);return this.get(r)},i.prototype.updateSmartRoutingFavorite=function(e,t,n,r){void 0===r&&(r=Ad.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===r?"/".concat(r,"/workflows/favorite/").concat(t):"/".concat(r,"/favorite/").concat(e,"/").concat(t);return this.put(o,{favorite:n})},i.prototype.getSmartRoutingSimulateConditionTypeValues=function(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/condition-types-values-list/").concat(e))},i.prototype.simulateSmartRoutingTransaction=function(e,t,n,r){void 0===r&&(r=Ad.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===r?"/".concat(r,"/workflows/").concat(t,"/simulate"):"/".concat(r,"/simulate-transaction/").concat(e,"/").concat(t);return this.post(o,n)},i.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},i.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},i.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},i.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},i.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},i.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},i.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},i.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},i.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},i.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},i.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},i.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},i.prototype.getInsightsMetricsConversionRateV2=function(e,n){var r=e.account_code,o=e.connection_name,i=e.metadata,s=a(e,["account_code","connection_name","metadata"]),c=wh(r);return o&&(c.connection_name=o.split(",")),i&&(c=t(t({},c),_h(i))),this.post("/insights/conversion-rate/".concat(n),c,{params:s})},i.prototype.getInsightsMetricsConversionRateViewMore=function(e,n){var r=e.account_code,o=e.metadata,i=a(e,["account_code","metadata"]),s=wh(r);return o&&(s=t(t({},s),_h(o))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),s,{params:i})},i.prototype.getInsightFallbackMetrics=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]),i=wh(n);return r&&(i=t(t({},i),_h(r))),this.post("/insights/conversion-rate/fallback",i,{params:o})},i.prototype.getInsightsMetricsVolumeV2=function(e,n,r){var o=r.connection_name,i=r.metadata,s=a(r,["connection_name","metadata"]),c={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(c=t(t({},c),{connection_name:null==o?void 0:o.split(",")})),i&&(c=t(t({},c),_h(i))),this.post("/insights/volume/".concat(n),c,{params:s})},i.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},i.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},i.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},i.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},i.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},i.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},i.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},i.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},i.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},i.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},i.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},i.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.getInsightOverviewV3=function(e,n){var r=e.account_code,o=e.connection_name,i=e.metadata,s=a(e,["account_code","connection_name","metadata"]),c=wh(r);return o&&(c=t(t({},c),{connection_name:null==o?void 0:o.split(",")})),i&&(c=t(t({},c),_h(i))),this.post("/insights/overview/".concat(n),c,{params:s})},i.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},i.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},i.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},i.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},i.prototype.getPaymentMethodAccounts=function(e){var t=e.paymentMethod,n={"x-organization-code":e.organizationCode};return this.get("/checkouts/payment-methods/".concat(t,"/accounts"),{headers:n})},i.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},i.prototype.updateIsActiveCheckout=function(e){var t=e.accountCode,n=a(e,["accountCode"]);return this.patch("/checkouts/publish",n,{headers:{"x-account-code":t}})},i.prototype.getCountryData=function(e){var t=e.accountCode;return this.get("/country-data/v1/country-documents",{headers:{"x-account-code":t}})},i.prototype.publishCheckout=function(e){var t=e.accountCode,n=a(e,["accountCode"]);return this.patch("/checkouts/publish",n,{headers:{"x-account-code":t}})},i.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingSettingsV2=function(e){var t={"x-account-code":e.accountCode};return this.get("/v1/checkouts/builder/settings",{headers:t})},i.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.payload,r={"x-account-code":t,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",n,{headers:r})},i.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},i.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},i.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/reports/create",e)},i.prototype.createReportV2=function(e){return this.post("/reports",e)},i.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},i.prototype.reportsList=function(){return this.get("/reports")},i.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},i.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},i.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},i.prototype.getReportTemplates=function(){return this.get("/reports/templates")},i.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},i.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},i.prototype.deletePaymentsReportTemplate=function(e){return this.delete("/reports/templates",{data:e})},i.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},i.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},i.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},i.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},i.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},i.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},i.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},i.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},i.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},i.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},i.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},i.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},i.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},i.prototype.getRefundPdf=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:r})},i.prototype.getProofOfCancel=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:r})},i.prototype.getProofOfPayment=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:r})},i.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},i.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},i.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},i.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},i.prototype.getProfile=function(){return this.get("/user")},i.prototype.getUserFull=function(){return this.get("/user-full")},i.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},i.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},i.prototype.getUsersToImpersonate=function(e,n,r,o,a,i){void 0===r&&(r=1),void 0===o&&(o=10);var s=t(t({account_codes:n||[],page:r,page_size:o},a&&{search_value:a}),(null==i?void 0:i.length)&&{role_ids:i});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),s)},i.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},i.prototype.getRolesForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/roles"))},i.prototype.updateProfile=function(e){return this.patch("/user",e)},i.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},i.prototype.inviteUsersMassiveV2=function(e){return this.post("user/invite/massive/v2",e)},i.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},i.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},i.prototype.getAccountsV2=function(){return this.get("/accounts-user")},i.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},i.prototype.putAccountsUserMassive=function(e,t,n){var r={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:r})},i.prototype.deleteAccountsUserMassive=function(e,t,n){var r={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:r})},i.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},i.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},i.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},i.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},i.prototype.patchAccount=function(e){var t=e.name,n=e.code,r=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:r})},i.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,r=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:r},{headers:{"x-account-code":n}})},i.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},i.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},i.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},i.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},i.prototype.postSlackFeatureNotification=function(e){return this.post("/slack-channel-message",e)},i.prototype.pathNotification=function(e){return this.patch("/notifications",e)},i.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},i.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},i.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:r,status:o,role_id:a,statuses:i,role_ids:s,page:c,page_size:u},{headers:l})},i.prototype.getRoles=function(){return this.get("/teams/roles")},i.prototype.setCustodian=function(){return this.post("/teams/custodian")},i.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},i.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},i.prototype.editRoles=function(e,t){var n=e.payload,r=e.id;return this.patch("/teams/roles/".concat(r),n,{headers:{"x-account-code":t}})},i.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},i.prototype.getFeatureFlagId=function(e){var t=e.name,n=a(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},i.prototype.getFeatureFlagIdAll=function(e){var t=e.accountCode;return n(this,void 0,void 0,function(){var e,n;return r(this,function(r){switch(r.label){case 0:return[4,this.get("/feature-flags/names",t?{headers:{"x-account-code":t}}:{})];case 1:return e=r.sent(),n={},e.data.feature_flag_names.forEach(function(e){n[e]=!0}),[2,{data:n,status:200,statusText:"OK",headers:{},config:{}}]}})})},i.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},i.prototype.getOrgRolesPermissions=function(){return this.get("/teams/permissions?type=ORGANIZATION")},i.prototype.getOrgPermissionsCatalog=function(){return this.get("/teams/permissions-catalog?role_type=ORGANIZATION")},i.prototype.createOrgRole=function(e){return this.post("/teams/roles",e)},i.prototype.editOrgRole=function(e){var t=e.payload,n=e.id;return this.patch("/teams/roles/".concat(n),t)},i.prototype.deleteOrgRole=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getOrgRoleAssignments=function(){return this.get("/teams/organization-roles/assignments")},i.prototype.assignOrgRole=function(e){return this.post("/teams/organization-roles/assign",e)},i.prototype.unassignOrgRole=function(e){return this.delete("/teams/organization-roles/assign/".concat(e))},i.prototype.startUserExport=function(e){return this.post("/users/exports/start",{account_codes:e.accountCodes,name:e.name,search:e.search,statuses:e.statuses,role_ids:e.roleIds})},i.prototype.getUserExportStatus=function(e){var t=e.exportCode;return this.get("/users/exports/".concat(t))},i.prototype.listUserExports=function(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r;return this.get("/users/exports?page=".concat(n,"&page_size=").concat(o))},i.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},i.prototype.workosPasswordReset=function(e){return this.post("/workos/password-reset",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public")})},i.prototype.workosAdminPortal=function(){return this.post("/workos/admin-portal",{})},i.prototype.workosDomainVerificationPortal=function(){return this.post("/workos/domain-verification-portal",{})},i.prototype.workosDomainStatus=function(){return this.get("/workos/domain-status")},i.prototype.workosVerifyMfa=function(e){return this.post("/workos/verify-mfa",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public"),withCredentials:!0})},i.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},i.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},i.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},i.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},i.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},i.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},i.prototype.getAuditEvents=function(e){var t=e.account_code,n=a(e,["account_code"]);return this.post("v2/events/organization",{account_codes:t},{params:n,paramsSerializer:Lc})},i.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},i.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},i.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},i.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(r),t)},i.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},i.prototype.uploadPaymentLinkLogo=function(e){var t=e.payload;return this.post("/v1/checkouts/payment-link/logo",t)},i.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},i.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},i.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},i.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},i.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},i.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},i.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},i.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},i.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},i.prototype.getInstallmentPlans=function(e){var t=e?Lc(e):"",n=t?"/v1/installments-plans?".concat(t):"/v1/installments-plans";return this.get(n)},i.prototype.createInstallmentsPlan=function(e){return this.post("/v1/installments-plans",e)},i.prototype.updateInstallmentsPlan=function(e,t){return this.patch("/v1/installments-plans/".concat(e),t)},i.prototype.deleteInstallmentsPlan=function(e){return this.delete("/v1/installments-plans/".concat(e))},i.prototype.searchInstallmentsPlans=function(e){return this.post("/v2/installments-plans/search",e)},i.prototype.bulkCreateInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk",e)},i.prototype.bulkDeleteInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk-delete",e)},i.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},i.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},i.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},i.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},i.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},i.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},i.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},i.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},i.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},i.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},i.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},i.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},i.prototype.postBlockList=function(e,t,n,r){var o={name:t,account_codes:e,page:n,size:r};return this.post("/blacklist",o)},i.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},i.prototype.getBlacklistDetail=function(e,t,n,r,o){void 0===n&&(n=26),void 0===r&&(r=null),void 0===o&&(o=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return o&&(null==o?void 0:o.length)>0&&(a+="&search=".concat(o)),this.get(a,r?{headers:{"x-account-code":r}}:{})},i.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},i.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},i.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},i.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},i.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},i.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},i.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},i.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},i.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},i.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},i.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,r=e.file,o=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:r},{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)}})},i.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},i.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":r}})},i.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",t({},e))},i.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},i.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,r=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:r.token}),cancel:function(){return r.cancel()}}},i.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,r=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:r.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return r.cancel()}}},i.prototype.batchRefundByFile=function(e){var n=e.payload;return this.post("/batch-refund-by-file",t({},n))},i.prototype.uploadBatchRefundsV2=function(e){var n=e.payload;return this.post("/batch-refunds",t({},n))},i.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},i.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:r})},i.prototype.getBatchRefundUserFileDownload=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:r})},i.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},i.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},i.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},i.prototype.getWorkOsMfaStatus=function(){return this.get("/mfa/status")},i.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},i.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},i.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},i.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},i.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},i.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},i.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},i.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},i.prototype.patchApiKeysEditNote=function(e,t,n){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e,{headers:{"x-password":n}})},i.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},i.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},i.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},i.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},i.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},i.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},i.prototype.getCustomizedApiKeysToken=function(e,t,n,r){var o={};return t&&(o["x-password"]=t),n&&(o["x-otp"]=n),r&&(o["x-mfa-token"]=r),this.get("/credentials-manager/keys/show-token/".concat(e),{headers:o})},i.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},i.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},i.prototype.buildAuthHeaders=function(e,t,n){var r={};return e&&(r["x-password"]=e),t&&(r["x-otp"]=t),n&&(r["x-mfa-token"]=n),r},i.prototype.getOrganizationKeysMetadata=function(){return this.get("/v2/developers/organization-keys/metadata")},i.prototype.patchOrganizationKeysNote=function(e,t){return this.patch("/v2/developers/organization-keys/note",e,{headers:{"x-password":t}})},i.prototype.postOrganizationKeysRoll=function(e,t,n){return this.post("/v2/developers/organization-keys/roll",{},{headers:this.buildAuthHeaders(e,t,n)})},i.prototype.postOrganizationKeysTamRequest=function(e,t,n){return this.post("/v2/developers/organization-keys/tam-request",{},{headers:this.buildAuthHeaders(e,t,n)})},i.prototype.postOrganizationKeysMarkRevealed=function(e,t,n){return this.post("/v2/developers/organization-keys/mark-revealed",{},{headers:this.buildAuthHeaders(e,t,n)})},i.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(gh[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(gh[null==e?void 0:e.type],"/export");return this.post(t,e)},i.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},i.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},i.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},i.prototype.getSamlConfig=function(){return this.get("/saml-config")},i.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},i.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},i.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},i.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},i.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},i.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},i.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},i.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},i.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},i.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},i.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},i.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},i.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},i.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},i.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},i.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},i.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},i.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},i.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},i.prototype.submitChartFeedback=function(e,t){return this.post("/data-assistant/charts/".concat(e,"/feedback"),t)},i.prototype.getChartFeedback=function(e){return this.get("/data-assistant/charts/".concat(e,"/feedback"))},i.prototype.getLanguages=function(){return this.get("/languages")},i.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},i.prototype.getCommunications=function(e){return this.post("/communications",e)},i.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},i.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},i.prototype.getRecipients=function(e,t){var n={"x-organization-code":e};return this.get("/recipients",{headers:n,params:t})},i.prototype.getRecipientById=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/".concat(t),{headers:n})},i.prototype.getOnboardingDetail=function(e,t,n){var r={"x-organization-code":e};return this.get("/recipients/".concat(t,"/onboardings/").concat(n),{headers:r})},i.prototype.getOnboardingTimeline=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/onboardings/".concat(t,"/timeline"),{headers:n})},i.prototype.createRecipientExport=function(e,t){var n={"x-account-code":t};return this.post("/v1/recipients/exports",e,{headers:n})},i.prototype.getRecipientExports=function(e,t){var n={"x-account-code":t};return this.get("/v1/recipients/exports",{headers:n,params:e})},i.prototype.downloadRecipientExport=function(e,t){var n={"x-account-code":t};return this.get("/v1/recipients/exports/".concat(e,"/download"),{headers:n})},i.prototype.createRecipient=function(e,t){var n={"x-organization-code":e};return this.post("/recipients",t,{headers:n})},i.prototype.updateRecipient=function(e,t,n){var r={"x-organization-code":e};return this.patch("/recipients/".concat(t),n,{headers:r})},i.prototype.deleteRecipient=function(e,t){var n={"x-organization-code":e};return this.delete("/recipients/".concat(t),{headers:n})},i.prototype.createOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings"),n,{headers:r})},i.prototype.updateOnboarding=function(e,t,n,r){var o={"x-organization-code":e};return this.patch("/recipients/".concat(t,"/onboardings/").concat(n),r,{headers:o})},i.prototype.blockOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings/").concat(n,"/block"),{},{headers:r})},i.prototype.unblockOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings/").concat(n,"/unblock"),{},{headers:r})},i.prototype.getConciergeAlerts=function(){return this.get("/concierge/alerts")},i.prototype.getConciergeAlertById=function(e){return this.get("/concierge/alerts/".concat(e))},i.prototype.createConciergeAlert=function(e){return this.post("/concierge/alerts",e)},i.prototype.deleteConciergeAlert=function(e){return this.delete("/concierge/alerts/".concat(e))},i.prototype.enableConciergeAlert=function(e,t){return this.post("/concierge/alerts/enable/".concat(e),t)},i.prototype.postPlaygroundExecuteFlow=function(e){return this.post("/playground/payment-flows",e)},i}(zc),xh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"https://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff/api")}}(),Sh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"wss://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff")}}(),Ch={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:null!=xh?xh:process.env.BFF_URL_PROD,BFF_URL_SBX:null!=xh?xh:process.env.BFF_URL_SBX,BFF_URL_STG:null!=xh?xh:process.env.BFF_URL_STG,BFF_URL_DEV:null!=xh?xh:process.env.BFF_URL_DEV,BFF_URL_LOCAL:null!=xh?xh:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:null!=Sh?Sh:process.env.WS_URL_LOCAL,WS_URL_PROD:null!=Sh?Sh:process.env.WS_URL_PROD,WS_URL_SBX:null!=Sh?Sh:process.env.WS_URL_SBX,WS_URL_STG:null!=Sh?Sh:process.env.WS_URL_STG,WS_URL_DEV:null!=Sh?Sh:process.env.WS_URL_DEV},Ih=function(e){function a(t){return e.call(this,t)||this}return o(a,e),a.registerCanaryInterceptor=function(){var e;null===(e=this.classInstance.instance.interceptors)||void 0===e||e.request.use(function(e){return"true"===localStorage.getItem("canary-enabled")&&e.headers&&(e.headers["x-canary-traffic"]="canary-traffic"),e},function(e){return Promise.reject(e)})},a.refreshInstance=function(e){var n;return this.classInstance=new a(t(t({},e),{baseURL:Ch["BFF_URL_".concat(Ch.ENVIRONMENT)]})),this.registerCanaryInterceptor(),null===(n=this.classInstance.instance.interceptors)||void 0===n||n.response.use(function(e){return e},function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"}),this.classInstance},a.getInstance=function(e){var n,r;if(this.classInstance){var o=localStorage.getItem("account");if(o){var i=null===(r=null===(n=JSON.parse(o))||void 0===n?void 0:n.value)||void 0===r?void 0:r.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new a(t(t({},e),{baseURL:(null==e?void 0:e.baseURL)||Ch["BFF_URL_".concat(Ch.ENVIRONMENT)]})),this.registerCanaryInterceptor(),this.classInstance},a.setMode=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return this.classInstance.instance.interceptors.request.use(function(t){return t.headers&&(t.headers["X-Environment"]=e),t},function(e){return Promise.reject(e)}),[2]})})},a}(Eh);class Rh{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Th="undefined"==typeof window||"Deno"in window;function Oh(){}function Ah(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ph(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jh(e,t,n){return Vh(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Dh(e,t,n){return Vh(e)?[{...t,queryKey:e},n]:[e||{},t]}function Lh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(Vh(i))if(r){if(t.queryHash!==qh(i,t.options))return!1}else if(!Uh(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function zh(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(Vh(a)){if(!t.options.mutationKey)return!1;if(n){if(Nh(t.options.mutationKey)!==Nh(a))return!1}else if(!Uh(t.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function qh(e,t){return((null==t?void 0:t.queryKeyHashFn)||Nh)(e)}function Nh(e){return JSON.stringify(e,(e,t)=>Wh(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Uh(e,t){return Mh(e,t)}function Mh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!Mh(e[n],t[n])))}function Bh(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Hh(e)&&Hh(t);if(r||Wh(e)&&Wh(t)){const o=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),i=a.length,s=r?[]:{};let c=0;for(let o=0;o<i;o++){const i=r?o:a[o];s[i]=Bh(e[i],t[i],n+1),s[i]===e[i]&&c++}return o===i&&c===o?e:s}return t}function Fh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Hh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wh(e){if(!Gh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Gh(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Gh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Vh(e){return Array.isArray(e)}function Kh(e){return new Promise(t=>{setTimeout(t,e)})}function $h(e){Kh(0).then(e)}function Qh(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Bh(e,t):t}const Yh=new class extends Rh{constructor(){super(),this.setup=e=>{if(!Th&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Jh=["online","offline"];const Zh=new class extends Rh{constructor(){super(),this.setup=e=>{if(!Th&&window.addEventListener){const t=()=>e();return Jh.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Jh.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Xh(e){return Math.min(1e3*2**e,3e4)}function ef(e){return"online"!==(null!=e?e:"online")||Zh.isOnline()}class tf{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function nf(e){return e instanceof tf}function rf(e){let t,n,r,o=!1,a=0,i=!1;const s=new Promise((e,t)=>{n=e,r=t}),c=()=>!Yh.isFocused()||"always"!==e.networkMode&&!Zh.isOnline(),u=r=>{i||(i=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise(n=>{t=e=>{const t=i||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,i||null==e.onContinue||e.onContinue()}),p=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,r;if(i)return;const s=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:Xh,h="function"==typeof u?u(a,t):u,f=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!o&&f?(a++,null==e.onFail||e.onFail(a,t),Kh(h).then(()=>{if(c())return d()}).then(()=>{o?l(t):p()})):l(t)})};return ef(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new tf(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}const of=console;const af=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):$h(()=>{n(r)})},a=()=>{const t=e;e=[],t.length&&$h(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class sf{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ah(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Th?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class cf extends sf{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||of,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Qh(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Oh).catch(Oh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Ph(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),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:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,r,o;(nf(e)&&e.silent||this.dispatch({type:"error",error:e}),nf(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=rf({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,r,o;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:ef(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return nf(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),af.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class uf extends Rh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,a=null!=(r=t.queryHash)?r:qh(o,t);let i=this.get(a);return i||(i=new cf({cache:this,logger:e.getLogger(),queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(i)),i}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){af.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Dh(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Lh(n,e))}findAll(e,t){const[n]=Dh(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Lh(n,e)):this.queries}notify(e){af.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){af.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){af.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class lf extends sf{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||of,this.observers=[],this.state=e.state||df(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=rf({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,a,i,s,c,u;if(!t){var l,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(o=(a=this.options).onSuccess)?void 0:o.call(a,f,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{var f,g,m,y,v,b,k,w;throw await(null==(f=(g=this.mutationCache.config).onError)?void 0:f.call(g,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(m=(y=this.options).onError)?void 0:m.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(k=(w=this.options).onSettled)?void 0:k.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ef(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),af.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function df(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class pf extends Rh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new lf({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){af.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>zh(e,t))}findAll(e){return this.mutations.filter(t=>zh(e,t))}notify(e){af.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return af.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Oh)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function hf(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),d="backward"===(null==c?void 0:c.direction),p=(null==(a=e.state.data)?void 0:a.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let f=h,g=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,r)=>(f=r?[t,...f]:[...f,t],r?[n,...e]:[...e,n]),v=(t,n,r,o)=>{if(g)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{g=!0}),e.signal}});const s=m(a);return Promise.resolve(s).then(e=>y(t,r,e,o))};let b;if(p.length)if(l){const t=void 0!==u,n=t?u:ff(e.options,p);b=v(p,t,n)}else if(d){const t=void 0!==u,n=t?u:(k=e.options,w=p,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(w[0],w));b=v(p,t,n,!0)}else{f=[];const t=void 0===e.options.getNextPageParam;b=!s||!p[0]||s(p[0],0,p)?v([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)b=b.then(r=>{if(!s||!p[n]||s(p[n],n,p)){const o=t?h[n]:ff(e.options,r);return v(r,t,o)}return Promise.resolve(y(r,h[n],p[n]))})}else b=v([]);var k,w;const _=b.then(e=>({pages:e,pageParams:f}));return _}}}}function ff(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class gf extends Rh{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),mf(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yf(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Fh(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&vf(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Fh(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Oh)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Th||this.currentResult.isStale||!Ah(this.options.staleTime))return;const e=Ph(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Th&&!1!==this.options.enabled&&Ah(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Yh.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(e,t){const n=this.currentQuery,r=this.options,o=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:f,fetchStatus:g,status:m}=l,y=!1,v=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&mf(e,t),i=o&&vf(e,n,t,r);(a||i)&&(g=ef(e.options.networkMode)?"fetching":"paused",p||(m="loading")),"isRestoring"===t._optimisticResults&&(g="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==m)d=u.data,p=u.dataUpdatedAt,m=u.status,y=!0;else if(t.select&&void 0!==l.data)if(o&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=Qh(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===m){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(m="success",d=Qh(null==o?void 0:o.data,e,t),v=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,f=Date.now(),m="error");const b="fetching"===g,k="loading"===m,w="error"===m;return{status:m,fetchStatus:g,isLoading:k,isSuccess:"success"===m,isError:w,isInitialLoading:k&&b,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:f,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>c.dataUpdateCount||l.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!k,isLoadingError:w&&0===l.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:v,isPreviousData:y,isRefetchError:w&&0!==l.dataUpdatedAt,isStale:bf(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Fh(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)})})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||nf(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){af.batch(()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var a,i,s,c;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function mf(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&yf(e,t,t.refetchOnMount)}function yf(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&bf(e,t)}return!1}function vf(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&bf(e,n)}function bf(e,t){return e.isStaleByTime(t.staleTime)}class kf extends Rh{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),Fh(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){af.batch(()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,c;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var wf,_f={exports:{}},Ef={};var xf,Sf={};
41
+ */function yt(e){if(mt.test(e)||""===e.trim())throw new TypeError("Invalid character in header field name");return e.trim().toLowerCase()}var vt=[String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(9),String.fromCharCode(32)],bt=new RegExp(`(^[${vt.join("")}]|$[${vt.join("")}])`,"g");function kt(e){return e.replace(bt,"")}function wt(e){if("string"!=typeof e)return!1;if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>127||!_t(n))return!1}return!0}function _t(e){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(e)}function Et(e){if("string"!=typeof e)return!1;if(e.trim()!==e)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(0===n||10===n||13===n)return!1}return!0}var xt,St,Ct,It=Symbol("normalizedHeaders"),Rt=Symbol("rawHeaderNames"),Tt=class e{constructor(t){if(this[xt]={},this[St]=new Map,this[Ct]="Headers",["Headers","HeadersPolyfill"].includes(t?.constructor.name)||t instanceof e||void 0!==globalThis.Headers&&t instanceof globalThis.Headers){t.forEach((e,t)=>{this.append(t,e)},this)}else Array.isArray(t)?t.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(", "):t)}):t&&Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e];this.append(e,Array.isArray(n)?n.join(", "):n)})}[(xt=It,St=Rt,Ct=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[It]).sort((e,t)=>e.localeCompare(t));for(const t of e)if("set-cookie"===t)for(const e of this.getSetCookie())yield[t,e];else yield[t,this.get(t)]}has(e){if(!wt(e))throw new TypeError(`Invalid header name "${e}"`);return this[It].hasOwnProperty(yt(e))}get(e){if(!wt(e))throw TypeError(`Invalid header name "${e}"`);return this[It][yt(e)]??null}set(e,t){if(!wt(e)||!Et(t))return;const n=yt(e),r=kt(t);this[It][n]=kt(r),this[Rt].set(n,e)}append(e,t){if(!wt(e)||!Et(t))return;const n=yt(e),r=kt(t);let o=this.has(n)?`${this.get(n)}, ${r}`:r;this.set(e,o)}delete(e){if(!wt(e))return;if(!this.has(e))return;const t=yt(e);delete this[It][t],this[Rt].delete(t)}forEach(e,t){for(const[n,r]of this.entries())e.call(t,r,n,this)}getSetCookie(){const e=this.get("set-cookie");return null===e?[]:""===e?[""]:(0,gt.splitCookiesString)(e)}};const{message:Ot}=st,At=Symbol("kSetCookie");function Pt(e={}){const t=e?.status||200,n=e?.statusText||Ot[t]||"",r=new Headers(e?.headers);return{...e,headers:r,status:t,statusText:n}}async function jt(e,t,n,r,o,a){if(o.emit("request:start",{request:e,requestId:t}),e.headers.get("accept")?.includes("msw/passthrough"))return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(()=>(async({request:e,requestId:t,handlers:n,resolutionContext:r})=>{let o=null,a=null;for(const i of n)if(a=await i.run({request:e,requestId:t,resolutionContext:r}),null!==a&&(o=i),a?.response)break;return o?{handler:o,parsedResult:a?.parsedResult,response:a?.response}:null})({request:e,requestId:t,handlers:n,resolutionContext:a?.resolutionContext}));if(i)throw o.emit("unhandledException",{error:i,request:e,requestId:t}),i;if(!s)return await C(e,r.onUnhandledRequest),o.emit("request:unhandled",{request:e,requestId:t}),o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const{response:c}=s;if(!c)return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);if(302===c.status&&"passthrough"===c.headers.get("x-msw-intention"))return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);await async function(e,t){const n=Reflect.get(t,At);n&&await Ve.setCookie(n,e.url)}(e,c),o.emit("request:match",{request:e,requestId:t});const u=s;return a?.onMockedResponse?.(c,u),o.emit("request:end",{request:e,requestId:t}),c}function Dt(e){return t=>null!=t&&"object"==typeof t&&"__kind"in t&&t.__kind===e}var Lt=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},zt=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=zt.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...r)=>(this.removeListener(e,n),t.apply(this,r));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new Lt(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},qt=zt;qt.defaultMaxListeners=10;class Nt{subscriptions=[];dispose(){let e;for(;e=this.subscriptions.shift();)e()}}class Ut{constructor(e){this.initialHandlers=e,this.handlers=[...e]}handlers;prepend(e){this.handlers.unshift(...e)}reset(e){this.handlers=e.length>0?[...e]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class Mt extends Nt{handlersController;emitter;publicEmitter;events;constructor(...e){super(),v(this.validateHandlers(e),k.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new Ut(e),this.emitter=new qt,this.publicEmitter=new qt,function(e,t){const n=e.emit;if(n._isPiped)return;const r=function(e,...r){return t.emit(e,...r),n.call(this,e,...r)};r._isPiped=!0,e.emit=r}(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(e){return e.every(e=>!Array.isArray(e))}use(...e){v(this.validateHandlers(e),k.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(e)}restoreHandlers(){this.handlersController.currentHandlers().forEach(e=>{"isUsed"in e&&(e.isUsed=!1)})}resetHandlers(...e){this.handlersController.reset(e)}listHandlers(){return function(e){const t=[...e];return Object.freeze(t),t}(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...e)=>this.publicEmitter.on(...e),removeListener:(...e)=>this.publicEmitter.removeListener(...e),removeAllListeners:(...e)=>this.publicEmitter.removeAllListeners(...e)}}}var Bt=Object.defineProperty,Ft={};function Ht(e){return`${e}`}function Wt(e){return`${e}`}function Gt(e){return`${e}`}function Vt(e){return`${e}`}function Kt(e){return`${e}`}((e,t)=>{for(var n in t)Bt(e,n,{get:t[n],enumerable:!0})})(Ft,{blue:()=>Wt,gray:()=>Gt,green:()=>Kt,red:()=>Vt,yellow:()=>Ht});var $t=I(),Qt=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=tn("DEBUG"),n=tn("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=nn(n,"debug")?Jt:this.debug,this.info=nn(n,"info")?Jt:this.info,this.success=nn(n,"success")?Jt:this.success,this.warning=nn(n,"warning")?Jt:this.warning,this.error=nn(n,"error")?Jt:this.error):(this.info=Jt,this.success=Jt,this.warning=Jt,this.error=Jt,this.only=Jt)}prefix;extend(e){return new Qt(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:Gt(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new Yt;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${Gt(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:r,colors:o,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:Ft[o?.timestamp||"gray"],prefix:Ft[o?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=r?s.prefix(r):[]).concat(rn(n)).join(" "),...a.map(rn))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return Zt;case"warning":return Xt;case"error":return en}}},Yt=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},Jt=()=>{};function Zt(e,...t){$t?process.stdout.write(m(e,...t)+"\n"):console.log(e,...t)}function Xt(e,...t){$t?process.stderr.write(m(e,...t)+"\n"):console.warn(e,...t)}function en(e,...t){$t?process.stderr.write(m(e,...t)+"\n"):console.error(e,...t)}function tn(e){return $t?process.env[e]:globalThis[e]?.toString()}function nn(e,t){return void 0!==e&&e!==t}function rn(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}function on(e){return globalThis[e]||void 0}let an=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({});var sn=class{constructor(e){this.symbol=e,this.readyState=an.INACTIVE,this.emitter=new qt,this.subscriptions=[],this.logger=new Qt(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===an.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=an.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,r)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,r),this.subscriptions.push(()=>{t.emitter.removeListener(n,r),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=an.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=an.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===an.DISPOSING||this.readyState===an.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==an.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=an.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",on(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=an.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=on(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function cn(e){if("string"==typeof e)return cn(new URL(e,"undefined"!=typeof location?location.href:void 0));if("http:"===e.protocol?e.protocol="ws:":"https:"===e.protocol&&(e.protocol="wss:"),"ws:"!==e.protocol&&"wss:"!==e.protocol)throw new SyntaxError(`Failed to construct 'WebSocket': The URL's scheme must be either 'http', 'https', 'ws', or 'wss'. '${e.protocol}' is not allowed.`);if(""!==e.hash)throw new SyntaxError(`Failed to construct 'WebSocket': The URL contains a fragment identifier ('${e.hash}'). Fragment identifiers are not allowed in WebSocket URLs.`);return e.href}var un=class extends Promise{#r;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,r)=>{t(n,r),e?.(t.resolve,t.reject)}),this.#r=t,this.resolve=this.#r.resolve,this.reject=this.#r.reject}get state(){return this.#r.state}get rejectionReason(){return this.#r.rejectionReason}then(e,t){return this.#o(super.then(e,t))}catch(e){return this.#o(super.catch(e))}finally(e){return this.#o(super.finally(e))}#o(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}};function ln(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}const dn=Symbol("kCancelable"),pn=Symbol("kDefaultPrevented");var hn=class extends MessageEvent{constructor(e,t){super(e,t),this[dn]=!!t.cancelable,this[pn]=!1}get cancelable(){return this[dn]}set cancelable(e){this[dn]=e}get defaultPrevented(){return this[pn]}set defaultPrevented(e){this[pn]=e}preventDefault(){this.cancelable&&!this[pn]&&(this[pn]=!0)}},fn=class extends Event{constructor(e,t={}){super(e,t),this.code=void 0===t.code?0:t.code,this.reason=void 0===t.reason?"":t.reason,this.wasClean=void 0!==t.wasClean&&t.wasClean}},gn=class extends fn{constructor(e,t={}){super(e,t),this[dn]=!!t.cancelable,this[pn]=!1}get cancelable(){return this[dn]}set cancelable(e){this[dn]=e}get defaultPrevented(){return this[pn]}set defaultPrevented(e){this[pn]=e}preventDefault(){this.cancelable&&!this[pn]&&(this[pn]=!0)}};const mn=Symbol("kEmitter"),yn=Symbol("kBoundListener");var vn=class{constructor(e,t){this.socket=e,this.transport=t,this.id=Math.random().toString(16).slice(2),this.url=new URL(e.url),this[mn]=new EventTarget,this.transport.addEventListener("outgoing",e=>{const t=ln(this.socket,new hn("message",{data:e.data,origin:e.origin,cancelable:!0}));this[mn].dispatchEvent(t),t.defaultPrevented&&e.preventDefault()}),this.transport.addEventListener("close",e=>{this[mn].dispatchEvent(ln(this.socket,new fn("close",e)))})}addEventListener(e,t,n){if(!Reflect.has(t,yn)){const e=t.bind(this.socket);Object.defineProperty(t,yn,{value:e,enumerable:!1,configurable:!1})}this[mn].addEventListener(e,Reflect.get(t,yn),n)}removeEventListener(e,t,n){this[mn].removeEventListener(e,Reflect.get(t,yn),n)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}};const bn="InvalidAccessError: close code out of user configurable range",kn=Symbol("kPassthroughPromise"),wn=Symbol("kOnSend"),_n=Symbol("kClose");var En=class extends EventTarget{static{this.CONNECTING=0}static{this.OPEN=1}static{this.CLOSING=2}static{this.CLOSED=3}constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=cn(e),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[kn]=new un,queueMicrotask(async()=>{await this[kn]||(this.protocol="string"==typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(ln(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,null!==e&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,null!==e&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,null!==e&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,null!==e&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.bufferedAmount+=function(e){return"string"==typeof e?e.length:e instanceof Blob?e.size:e.byteLength}(e),queueMicrotask(()=>{this.bufferedAmount=0,this[wn]?.(e)}))}close(e=1e3,t){v(e,bn),v(1e3===e||e>=3e3&&e<=4999,bn),this[_n](e,t)}[_n](e=1e3,t,n=!0){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(ln(this,new fn("close",{code:e,reason:t,wasClean:n}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,n){return super.addEventListener(e,t,n)}removeEventListener(e,t,n){return super.removeEventListener(e,t,n)}};const xn=Symbol("kEmitter"),Sn=Symbol("kBoundListener"),Cn=Symbol("kSend");var In=class{constructor(e,t,n){this.client=e,this.transport=t,this.createConnection=n,this[xn]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",e=>{void 0!==this.realWebSocket&&queueMicrotask(()=>{e.defaultPrevented||this[Cn](e.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return v(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){v(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",e=>{this[xn].dispatchEvent(ln(this.realWebSocket,new Event("open",e)))},{once:!0}),e.addEventListener("message",e=>{this.transport.dispatchEvent(ln(this.realWebSocket,new MessageEvent("incoming",{data:e.data,origin:e.origin})))}),this.client.addEventListener("close",e=>{this.handleMockClose(e)},{signal:this.mockCloseController.signal}),e.addEventListener("close",e=>{this.handleRealClose(e)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=ln(e,new Event("error",{cancelable:!0}));this[xn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ln(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,n){if(!Reflect.has(t,Sn)){const e=t.bind(this.client);Object.defineProperty(t,Sn,{value:e,enumerable:!1})}this[xn].addEventListener(e,Reflect.get(t,Sn),n)}removeEventListener(e,t,n){this[xn].removeEventListener(e,Reflect.get(t,Sn),n)}send(e){this[Cn](e)}[Cn](e){const{realWebSocket:t}=this;v(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),t.readyState!==WebSocket.CLOSING&&t.readyState!==WebSocket.CLOSED&&(t.readyState!==WebSocket.CONNECTING?t.send(e):t.addEventListener("open",()=>{t.send(e)},{once:!0}))}close(){const{realWebSocket:e}=this;v(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),e.readyState!==WebSocket.CLOSING&&e.readyState!==WebSocket.CLOSED&&(e.close(),queueMicrotask(()=>{this[xn].dispatchEvent(ln(this.realWebSocket,new gn("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=ln(e.target,new hn("message",{data:e.data,origin:e.origin,cancelable:!0}));this[xn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ln(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=ln(this.realWebSocket,new gn("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[xn].dispatchEvent(t),t.defaultPrevented||this.client[_n](e.code,e.reason)}},Rn=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",e=>{this.dispatchEvent(ln(this.socket,new fn("close",e)))}),this.socket[wn]=e=>{this.dispatchEvent(ln(this.socket,new hn("outgoing",{data:e,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,n){return super.addEventListener(e,t,n)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(ln(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[_n](e,t)}},Tn=class e extends sn{static{this.symbol=Symbol("websocket")}constructor(){super(e.symbol)}checkEnvironment(){return function(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return!(void 0===t||"function"==typeof t.get&&void 0===t.get()||void 0===t.get&&null==t.value||void 0===t.set&&!t.configurable&&(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),1))}("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(e,t,n)=>{const[r,o]=t,a=()=>Reflect.construct(e,t,n),i=new En(r,o),s=new Rn(i);return queueMicrotask(async()=>{try{const e=new In(i,s,a),t=this.emitter.listenerCount("connection")>0;await async function(e,t,...n){const r=e.listeners(t);if(0!==r.length)for(const t of r)await t.apply(e,n)}(this.emitter,"connection",{client:new vn(i,s),server:e,info:{protocols:o}}),t?i[kn].resolve(!1):(i[kn].resolve(!0),e.connect(),e.addEventListener("open",()=>{i.dispatchEvent(ln(i,new Event("open"))),e.realWebSocket&&(i.protocol=e.realWebSocket.protocol)}))}catch(e){e instanceof Error&&(i.dispatchEvent(new Event("error")),i.readyState!==WebSocket.CLOSING&&i.readyState!==WebSocket.CLOSED&&i[_n](1011,e.message,!1),console.error(e))}}),i}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}};const On=new Tn;function An(e){const t=new Date,n=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}`;return e?.milliseconds?`${n}.${t.getMilliseconds().toString().padStart(3,"0")}`:n}function Pn(e){return e instanceof Blob?e.size:h(e)&&"byteLength"in e?e.byteLength:new Blob([e]).size}function jn(e){return e.length<=24?e:`${e.slice(0,24)}…`}async function Dn(e){if(e instanceof Blob){return`Blob(${jn(await e.text())})`}if(h(e)){return`ArrayBuffer(${jn((new TextDecoder).decode(e))})`}return jn(e)}const Ln="#3b82f6",zn="#22c55e",qn="#ef4444",Nn="#ff6a33";function Un(e){const{client:t,server:n}=e;!function(e){const t=S(e.url);console.groupCollapsed(k.formatMessage(`${An()} %c▶%c ${t}`),`color:${Ln}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}(t),t.addEventListener("message",e=>{!async function(e){const t=Pn(e.data),n=await Dn(e.data),r=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c${r}%c ${n} %c${t}%c`),`color:${zn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)}),t.addEventListener("close",e=>{!function(e){const t=e.target,n=S(t.url);console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c■%c ${n}`),`color:${Ln}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.socket.addEventListener("error",e=>{!function(e){const t=e.target,n=S(t.url);console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c×%c ${n}`),`color:${Ln}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.send=new Proxy(t.send,{apply(e,n,r){const[o]=r,a=new MessageEvent("message",{data:o});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{!async function(e){const t=Pn(e.data),n=await Dn(e.data);console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c⬇%c ${n} %c${t}%c`),`color:${Nn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a)}),Reflect.apply(e,n,r)}}),n.addEventListener("open",()=>{n.addEventListener("message",e=>{!async function(e){const t=Pn(e.data),n=await Dn(e.data),r=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c${r}%c ${n} %c${t}%c`),`color:${qn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)})},{once:!0}),n.send=new Proxy(n.send,{apply(e,t,r){const[o]=r,a=new MessageEvent("message",{data:o});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:n.socket},target:{enumerable:!0,writable:!1,value:n.socket}}),async function(e){const t=Pn(e.data),n=await Dn(e.data);console.groupCollapsed(k.formatMessage(`${An({milliseconds:!0})} %c⬆%c ${n} %c${t}%c`),`color:${Nn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a),Reflect.apply(e,t,r)}})}var Mn=/(%?)(%([sdijo]))/g;function Bn(e,...t){if(0===t.length)return e;let n=0,r=e.replace(Mn,(e,r,o,a)=>{const i=function(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if("string"==typeof e)return e;const t=JSON.stringify(e);return"{}"===t||"[]"===t||/^\[object .+?\]$/.test(t)?e:t}}}(t[n],a);return r?e:(n++,i)});return n<t.length&&(r+=` ${t.slice(n).join(" ")}`),r=r.replace(/%{2,2}/g,"%"),r}var Fn=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=Bn(e,...t),function(e){if(!e.stack)return;const t=e.stack.split("\n");t.splice(1,2),e.stack=t.join("\n")}(this)}},Hn=(e,t,...n)=>{if(!e)throw new Fn(t,...n)};function Wn(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if("undefined"!=typeof process){const e=process.type;return"renderer"!==e&&"worker"!==e&&!(!process.versions||!process.versions.node)}return!1}Hn.as=(e,t,n,...r)=>{if(!t){const t=0===r.length?n:Bn(n,...r);let o;try{o=Reflect.construct(e,[t])}catch(n){o=e(t)}throw o}};var Gn=class extends Promise{#r;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,r)=>{t(n,r),e?.(t.resolve,t.reject)}),this.#r=t,this.resolve=this.#r.resolve,this.reject=this.#r.reject}get state(){return this.#r.state}get rejectionReason(){return this.#r.rejectionReason}then(e,t){return this.#o(super.then(e,t))}catch(e){return this.#o(super.catch(e))}finally(e){return this.#o(super.finally(e))}#o(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}},Vn={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker:(e,t)=>e===t};function Kn(e,t,n){return[e.active,e.installing,e.waiting].filter(e=>null!=e).find(e=>n(e.scriptURL,t))||null}var $n=async(e,t={},n)=>{const r=new URL(e,location.href).href;const o=await navigator.serviceWorker.getRegistrations().then(e=>e.filter(e=>Kn(e,r,n)));!navigator.serviceWorker.controller&&o.length>0&&location.reload();const[a]=o;if(a)return a.update(),[Kn(a,r,n),a];const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(async()=>{const o=await navigator.serviceWorker.register(e,t);return[Kn(o,r,n),o]});if(i){if(i.message.includes("(404)")){const e=new URL(t?.scope||"/",location.href);throw new Error(k.formatMessage(`Failed to register a Service Worker for scope ('${e.href}') with script ('${r}'): Service Worker script does not exist at the given path.\n\nDid you forget to run "npx msw init <PUBLIC_DIR>"?\n\nLearn more about creating the Service Worker script: https://mswjs.io/docs/cli/init`))}throw new Error(k.formatMessage("Failed to register the Service Worker:\n\n%s",i.message))}return s};function Qn(e={}){if(e.quiet)return;const t=e.message||"Mocking enabled.";console.groupCollapsed(`%c${k.formatMessage(t)}`,"color:orangered;font-weight:bold;"),console.log("%cDocumentation: %chttps://mswjs.io/docs","font-weight:bold","font-weight:normal"),console.log("Found an issue? https://github.com/mswjs/msw/issues"),e.workerUrl&&console.log("Worker script URL:",e.workerUrl),e.workerScope&&console.log("Worker scope:",e.workerScope),e.client&&console.log("Client ID: %s (%s)",e.client.id,e.client.frameType),console.groupEnd()}function Yn(e){if(!["HEAD","GET"].includes(e.method))return e.body}function Jn(e){return new Request(e.url,{...e,body:Yn(e)})}function Zn(){return"undefined"!=typeof navigator&&"serviceWorker"in navigator&&"undefined"!=typeof location&&"file:"!==location.protocol}var Xn=function(){try{const e=new ReadableStream({start:e=>e.close()});return(new MessageChannel).port1.postMessage(e,[e]),!0}catch{return!1}}(),er=(e,t)=>async n=>{if(!e.isMockingEnabled&&e.workerStoppedAt&&n.data.interceptedAt>e.workerStoppedAt)return void n.postMessage("PASSTHROUGH");const r=n.data.id,o=Jn(n.data),a=o.clone(),i=o.clone();x.cache.set(o,i);try{await jt(o,r,e.getRequestHandlers().filter(Dt("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onPassthroughResponse(){n.postMessage("PASSTHROUGH")},async onMockedResponse(r,{handler:o,parsedResult:i}){const s=r.clone(),c=r.clone(),u=function(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}(r);if(Xn){const e=r.body;n.postMessage("MOCK_RESPONSE",{...u,body:e},e?[e]:void 0)}else{const e=null===r.body?null:await s.arrayBuffer();n.postMessage("MOCK_RESPONSE",{...u,body:e})}t.quiet||e.emitter.once("response:mocked",()=>{o.log({request:a,response:c,parsedResult:i})})}})}catch(e){e instanceof Error&&(k.error('Uncaught exception in the request handler for "%s %s":\n\n%s\n\nThis exception has been gracefully handled as a 500 response, however, it\'s strongly recommended to resolve this error, as it indicates a mistake in your code. If you wish to mock an error response, please see this guide: https://mswjs.io/docs/http/mocking-responses/error-responses',o.method,o.url,e.stack??e),n.postMessage("MOCK_RESPONSE",{status:500,statusText:"Request Handler Error",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,message:e.message,stack:e.stack})}))}};var tr=Symbol("isPatchedModule"),nr=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}},rr=class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new Gn}get#a(){return this.handled}async passthrough(){Hn.as(nr,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){Hn.as(nr,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){Hn.as(nr,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}};function or(e){try{return new URL(e),!0}catch(e){return!1}}function ar(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}var ir=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!or(e))return;const n=ar("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const r=n.status??200,o=e.isConfigurableStatusCode(r)?r:200;if(super(e.isResponseWithBody(r)?t:null,{status:o,statusText:n.statusText,headers:n.headers}),r!==o){const e=ar("state",this);e?e.status=r:Object.defineProperty(this,"status",{value:r,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}},sr=Symbol("kRawRequest");function cr(e,t){Reflect.set(e,sr,t)}var ur=Object.defineProperty,lr={};function dr(e){return`${e}`}function pr(e){return`${e}`}function hr(e){return`${e}`}function fr(e){return`${e}`}function gr(e){return`${e}`}((e,t)=>{for(var n in t)ur(e,n,{get:t[n],enumerable:!0})})(lr,{blue:()=>pr,gray:()=>hr,green:()=>gr,red:()=>fr,yellow:()=>dr});var mr=Wn(),yr=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=Er("DEBUG"),n=Er("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=xr(n,"debug")?br:this.debug,this.info=xr(n,"info")?br:this.info,this.success=xr(n,"success")?br:this.success,this.warning=xr(n,"warning")?br:this.warning,this.error=xr(n,"error")?br:this.error):(this.info=br,this.success=br,this.warning=br,this.error=br,this.only=br)}prefix;extend(e){return new yr(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:hr(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new vr;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${hr(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:r,colors:o,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:lr[o?.timestamp||"gray"],prefix:lr[o?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=r?s.prefix(r):[]).concat(Sr(n)).join(" "),...a.map(Sr))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return kr;case"warning":return wr;case"error":return _r}}},vr=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},br=()=>{};function kr(e,...t){mr?process.stdout.write(Bn(e,...t)+"\n"):console.log(e,...t)}function wr(e,...t){mr?process.stderr.write(Bn(e,...t)+"\n"):console.warn(e,...t)}function _r(e,...t){mr?process.stderr.write(Bn(e,...t)+"\n"):console.error(e,...t)}function Er(e){return mr?process.env[e]:globalThis[e]?.toString()}function xr(e,t){return void 0!==e&&e!==t}function Sr(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}var Cr=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},Ir=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=Ir.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...r)=>(this.removeListener(e,n),t.apply(this,r));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new Cr(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},Rr=Ir;Rr.defaultMaxListeners=10;function Tr(e){return globalThis[e]||void 0}var Or=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({}),Ar=class{constructor(e){this.symbol=e,this.readyState=Or.INACTIVE,this.emitter=new Rr,this.subscriptions=[],this.logger=new yr(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===Or.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=Or.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,r)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,r),this.subscriptions.push(()=>{t.emitter.removeListener(n,r),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=Or.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=Or.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===Or.DISPOSING||this.readyState===Or.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==Or.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=Or.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",Tr(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=Or.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=Tr(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Pr(){return Math.random().toString(16).slice(2)}var jr=new TextEncoder;var Dr=class e extends Ar{constructor(t){e.symbol=Symbol(t.name),super(e.symbol),this.interceptors=t.interceptors}setup(){const e=this.logger.extend("setup");e.info("applying all %d interceptors...",this.interceptors.length);for(const t of this.interceptors)e.info('applying "%s" interceptor...',t.constructor.name),t.apply(),e.info("adding interceptor dispose subscription"),this.subscriptions.push(()=>t.dispose())}on(e,t){for(const n of this.interceptors)n.on(e,t);return this}once(e,t){for(const n of this.interceptors)n.once(e,t);return this}off(e,t){for(const n of this.interceptors)n.off(e,t);return this}removeAllListeners(e){for(const t of this.interceptors)t.removeAllListeners(e);return this}};var Lr=e=>function(t,n){const r=(async()=>{e.workerChannel.removeAllListeners(),e.workerChannel.on("REQUEST",er(e,t)),e.workerChannel.on("RESPONSE",function(e){return t=>{const n=t.data,r=Jn(n.request);if(n.response.type?.includes("opaque"))return;const o=0===n.response.status?Response.error():new ir(ir.isResponseWithBody(n.response.status)?n.response.body:null,{...n.response,url:r.url});e.emitter.emit(n.isMockedResponse?"response:mocked":"response:bypass",{requestId:n.request.id,request:r,response:o})}}(e));const r=await $n(t.serviceWorker.url,t.serviceWorker.options,t.findWorker),[o,a]=r;if(!o){const e=n?.findWorker?k.formatMessage('Failed to locate the Service Worker registration using a custom "findWorker" predicate.\n\nPlease ensure that the custom predicate properly locates the Service Worker registration at "%s".\nMore details: https://mswjs.io/docs/api/setup-worker/start#findworker\n',t.serviceWorker.url):k.formatMessage('Failed to locate the Service Worker registration.\n\nThis most likely means that the worker script URL "%s" cannot resolve against the actual public hostname (%s). This may happen if your application runs behind a proxy, or has a dynamic hostname.\n\nPlease consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start',t.serviceWorker.url,location.host);throw new Error(e)}return e.workerPromise.resolve(o),e.registration=a,window.addEventListener("beforeunload",()=>{"redundant"!==o.state&&e.workerChannel.postMessage("CLIENT_CLOSED"),window.clearInterval(e.keepAliveInterval),window.postMessage({type:"msw/worker:stop"})}),await function(e){const t=new Gn;return e.workerChannel.postMessage("INTEGRITY_CHECK_REQUEST"),e.workerChannel.once("INTEGRITY_CHECK_RESPONSE",e=>{const{checksum:n,packageVersion:r}=e.data;"4db4a41e972cec1b64cc569c66952d82"!==n&&k.warn(`The currently registered Service Worker has been generated by a different version of MSW (${r}) and may not be fully compatible with the installed version.\n\nIt's recommended you update your worker script by running this command:\n\n • npx msw init <PUBLIC_DIR>\n\nYou can also automate this process and make the worker script update automatically upon the library installations. Read more: https://mswjs.io/docs/cli/init.`),t.resolve()}),t}(e).catch(e=>{k.error("Error while checking the worker script integrity. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),console.error(e)}),e.keepAliveInterval=window.setInterval(()=>e.workerChannel.postMessage("KEEPALIVE_REQUEST"),5e3),function(e,t){t?.quiet||location.href.startsWith(e.scope)||k.warn(`Cannot intercept requests on this page because it's outside of the worker's scope ("${e.scope}"). If you wish to mock API requests on this page, you must resolve this scope issue.\n\n- (Recommended) Register the worker at the root level ("/") of your application.\n- Set the "Service-Worker-Allowed" response header to allow out-of-scope workers.`)}(a,e.startOptions),a})().then(async n=>{const r=n.installing||n.waiting;if(r){const e=new Gn;r.addEventListener("statechange",()=>{"activated"===r.state&&e.resolve()}),await e}return await function(e,t){const n=new Gn;return e.workerChannel.postMessage("MOCK_ACTIVATE"),e.workerChannel.once("MOCKING_ENABLED",async r=>{e.isMockingEnabled=!0;const o=await e.workerPromise;Qn({quiet:t.quiet,workerScope:e.registration?.scope,workerUrl:o.scriptURL,client:r.data.client}),n.resolve(!0)}),n}(e,t).catch(e=>{throw k.error("Failed to enable mocking. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),e}),n});return r},zr=class{#i;#s;constructor(){this.#i=[],this.#s=new Map}get[Symbol.iterator](){return this.#i[Symbol.iterator].bind(this.#i)}entries(){return this.#s.entries()}get(e){return this.#s.get(e)||[]}getAll(){return this.#i.map(([,e])=>e)}append(e,t){this.#i.push([e,t]),this.#c(e,e=>e.push(t))}prepend(e,t){this.#i.unshift([e,t]),this.#c(e,e=>e.unshift(t))}delete(e,t){if(0!==this.size){this.#i=this.#i.filter(e=>e[1]!==t);for(const[n,r]of this.#s)n===e&&r.includes(t)&&r.splice(r.indexOf(t),1)}}deleteAll(e){0!==this.size&&(this.#i=this.#i.filter(t=>t[0]!==e),this.#s.delete(e))}get size(){return this.#i.length}clear(){0!==this.size&&(this.#i.length=0,this.#s.clear())}#c(e,t){t(this.#s.get(e)||this.#s.set(e,[]).get(e))}},qr=Symbol("kDefaultPrevented"),Nr=Symbol("kPropagationStopped"),Ur=Symbol("kImmediatePropagationStopped"),Mr=class extends MessageEvent{#u;[qr];[Nr];[Ur];constructor(...e){super(e[0],e[1]),this[qr]=!1}get defaultPrevented(){return this[qr]}preventDefault(){super.preventDefault(),this[qr]=!0}stopImmediatePropagation(){super.stopImmediatePropagation(),this[Ur]=!0}},Br=Symbol("kListenerOptions"),Fr=class{#l;constructor(){this.#l=new zr}on(e,t,n){return this.#d(e,t,n),this}once(e,t,n){return this.on(e,t,{...n||{},once:!0})}earlyOn(e,t,n){return this.#d(e,t,n,"prepend"),this}earlyOnce(e,t,n){return this.earlyOn(e,t,{...n||{},once:!0})}emit(e){if(0===this.#l.size)return!1;const t=this.listenerCount(e.type)>0,n=this.#p(e);for(const t of this.#h(e.type)){if(null!=n.event[Nr]&&n.event[Nr]!==this)return n.revoke(),!1;if(n.event[Ur])break;this.#f(n.event,t)}return n.revoke(),t}async emitAsPromise(e){if(0===this.#l.size)return[];const t=[],n=this.#p(e);for(const r of this.#h(e.type)){if(null!=n.event[Nr]&&n.event[Nr]!==this)return n.revoke(),[];if(n.event[Ur])break;const e=await Promise.resolve(this.#f(n.event,r));this.#g(r)||t.push(e)}return n.revoke(),Promise.allSettled(t).then(e=>e.map(e=>"fulfilled"===e.status?e.value:e.reason))}*emitAsGenerator(e){if(0===this.#l.size)return;const t=this.#p(e);for(const n of this.#h(e.type)){if(null!=t.event[Nr]&&t.event[Nr]!==this)return void t.revoke();if(t.event[Ur])break;const e=this.#f(t.event,n);this.#g(n)||(yield e)}t.revoke()}removeListener(e,t){this.#l.delete(e,t)}removeAllListeners(e){null!=e?this.#l.deleteAll(e):this.#l.clear()}listeners(e){return null==e?this.#l.getAll():this.#l.get(e)}listenerCount(e){return null==e?this.#l.size:this.listeners(e).length}#d(e,t,n,r="append"){"prepend"===r?this.#l.prepend(e,t):this.#l.append(e,t),n&&(Object.defineProperty(t,Br,{value:n,enumerable:!1,writable:!1}),n.signal&&n.signal.addEventListener("abort",()=>{this.removeListener(e,t)},{once:!0}))}#p(e){const{stopPropagation:t}=e;return e.stopPropagation=new Proxy(e.stopPropagation,{apply:(t,n,r)=>(e[Nr]=this,Reflect.apply(t,n,r))}),{event:e,revoke(){e.stopPropagation=t}}}#f(e,t){const n=t.call(this,e);if(t[Br]?.once){const n=this.#g(t)?"*":e.type;this.#l.delete(n,t)}return n}*#h(e){for(const[t,n]of this.#l)"*"!==t&&t!==e||(yield n)}#g(e){return this.#l.get("*").includes(e)}},Hr=Zn(),Wr=class extends Mr{#m;constructor(e){super(e.data.type,{data:e.data.payload}),this.#m=e}get ports(){return this.#m.ports}postMessage(e,...t){this.#m.ports[0].postMessage({type:e,data:t[0]},{transfer:t[1]})}},Gr=class extends Fr{constructor(e){super(),this.options=e,Hr&&navigator.serviceWorker.addEventListener("message",async e=>{const t=await this.options.worker;null!=e.source&&e.source!==t||e.data&&h(e.data)&&"type"in e.data&&this.emit(new Wr(e))})}postMessage(e){Hn(Hr,"Failed to post message on a WorkerChannel: the Service Worker API is unavailable in this context. This is likely an issue with MSW. Please report it on GitHub: https://github.com/mswjs/msw/issues"),this.options.worker.then(t=>{t.postMessage(e)})}};async function Vr(e,t,...n){const r=e.listeners(t);if(0!==r.length)for(const t of r)await t.apply(e,n)}function Kr(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return void 0!==t&&(("function"!=typeof t.get||void 0!==t.get())&&((void 0!==t.get||null!=t.value)&&(!(void 0===t.set&&!t.configurable)||(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1))))}var $r=async e=>{try{return{error:null,data:await e().catch(e=>{throw e})}}catch(e){return{error:e,data:null}}};function Qr(e,t=!1){return t?Object.prototype.toString.call(e).startsWith("[object "):"[object Object]"===Object.prototype.toString.call(e)}function Yr(e,t){try{return e[t],!0}catch{return!1}}function Jr(e){return null!=e&&e instanceof Response&&Yr(e,"type")&&"error"===e.type}async function Zr(e){const t=async t=>{return t instanceof Error?(await e.controller.errorWith(t),!0):Jr(t)?(await e.controller.respondWith(t),!0):Qr(n=t,!0)&&Yr(n,"status")&&Yr(n,"statusText")&&Yr(n,"bodyUsed")?(await e.controller.respondWith(t),!0):!!Qr(t)&&(await e.controller.errorWith(t),!0);var n},n=async n=>{if(n instanceof nr)throw o.error;return function(e){return null!=e&&e instanceof Error&&"code"in e&&"errno"in e}(n)?(await e.controller.errorWith(n),!0):n instanceof Response&&await t(n)},r=new Gn;if(e.request.signal){if(e.request.signal.aborted)return void await e.controller.errorWith(e.request.signal.reason);e.request.signal.addEventListener("abort",()=>{r.reject(e.request.signal.reason)},{once:!0})}const o=await $r(async()=>{const t=Vr(e.emitter,"request",{requestId:e.requestId,request:e.request,controller:e.controller});await Promise.race([r,t,e.controller.handled])});if("rejected"!==r.state){var a;if(!o.error)return e.controller.readyState===rr.PENDING?await e.controller.passthrough():e.controller.handled;if(await n(o.error))return;if(e.emitter.listenerCount("unhandledException")>0){const n=new rr(e.request,{passthrough(){},async respondWith(e){await t(e)},async errorWith(t){await e.controller.errorWith(t)}});if(await Vr(e.emitter,"unhandledException",{error:o.error,request:e.request,requestId:e.requestId,controller:n}),n.readyState!==rr.PENDING)return}await e.controller.respondWith((a=o.error,new Response(JSON.stringify(a instanceof Error?{name:a.name,message:a.message,stack:a.stack}:a),{status:500,statusText:"Unhandled Exception",headers:{"Content-Type":"application/json"}})))}else await e.controller.errorWith(r.rejectionReason)}function Xr(e){return Object.assign(new TypeError("Failed to fetch"),{cause:e})}var eo=["content-encoding","content-language","content-location","content-type","content-length"],to=Symbol("kRedirectCount");function no(e,t){return e.origin===t.origin&&"null"===e.origin||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}var ro=class extends TransformStream{constructor(){console.warn("[Interceptors]: Brotli decompression of response streams is not supported in the browser"),super({transform(e,t){t.enqueue(e)}})}},oo=class extends TransformStream{constructor(e,...t){super({},...t);const n=[super.readable,...e].reduce((e,t)=>e.pipeThrough(t));Object.defineProperty(this,"readable",{get:()=>n})}};function ao(e){if(null===e.body)return null;const t=function(e){if(""===e)return null;const t=function(e){return e.toLowerCase().split(",").map(e=>e.trim())}(e);return 0===t.length?null:new oo(t.reduceRight((e,t)=>"gzip"===t||"x-gzip"===t?e.concat(new DecompressionStream("gzip")):"deflate"===t?e.concat(new DecompressionStream("deflate")):"br"===t?e.concat(new ro):(e.length=0,e),[]))}(e.headers.get("content-encoding")||"");return t?(e.body.pipeTo(t.writable),t.readable):null}var io=class e extends Ar{static{this.symbol=Symbol("fetch")}constructor(){super(e.symbol)}checkEnvironment(){return Kr("fetch")}async setup(){const e=globalThis.fetch;Hn(!e[tr],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=async(t,n)=>{const r=Pr(),o="string"!=typeof t||"undefined"==typeof location||or(t)?t:new URL(t,location.href),a=new Request(o,n);t instanceof Request&&cr(a,t);const i=new Gn,s=new rr(a,{passthrough:async()=>{this.logger.info("request has not been handled, passthrough...");const t=a.clone(),{error:n,data:o}=await $r(()=>e(a));if(n)return i.reject(n);if(this.logger.info("original fetch performed",o),this.emitter.listenerCount("response")>0){this.logger.info('emitting the "response" event...');const e=o.clone();await Vr(this.emitter,"response",{response:e,isMockedResponse:!1,request:t,requestId:r})}i.resolve(o)},respondWith:async e=>{if(Jr(e))return this.logger.info("request has errored!",{response:e}),void i.reject(Xr(e));this.logger.info("received mocked response!",{rawResponse:e});const t=ao(e),n=null===t?e:new ir(t,e);if(ir.setUrl(a.url,n),ir.isRedirectResponse(n.status)){if("error"===a.redirect)return void i.reject(Xr("unexpected redirect"));if("follow"===a.redirect)return void async function(e,t){if(303!==t.status&&null!=e.body)return Promise.reject(Xr());const n=new URL(e.url);let r;try{r=new URL(t.headers.get("location"),e.url)}catch(e){return Promise.reject(Xr(e))}if("http:"!==r.protocol&&"https:"!==r.protocol)return Promise.reject(Xr("URL scheme must be a HTTP(S) scheme"));if(Reflect.get(e,to)>20)return Promise.reject(Xr("redirect count exceeded"));if(Object.defineProperty(e,to,{value:(Reflect.get(e,to)||0)+1}),"cors"===e.mode&&(r.username||r.password)&&!no(n,r))return Promise.reject(Xr('cross origin not allowed for request mode "cors"'));const o={};([301,302].includes(t.status)&&"POST"===e.method||303===t.status&&!["HEAD","GET"].includes(e.method))&&(o.method="GET",o.body=null,eo.forEach(t=>{e.headers.delete(t)})),no(n,r)||(e.headers.delete("authorization"),e.headers.delete("proxy-authorization"),e.headers.delete("cookie"),e.headers.delete("host")),o.headers=e.headers;const a=await fetch(new Request(r,o));return Object.defineProperty(a,"redirected",{value:!0,configurable:!0}),a}(a,n).then(e=>{i.resolve(e)},e=>{i.reject(e)})}this.emitter.listenerCount("response")>0&&(this.logger.info('emitting the "response" event...'),await Vr(this.emitter,"response",{response:n.clone(),isMockedResponse:!0,request:a,requestId:r})),i.resolve(n)},errorWith:e=>{this.logger.info("request has been aborted!",{reason:e}),i.reject(e)}});return this.logger.info("[%s] %s",a.method,a.url),this.logger.info("awaiting for the mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',this.emitter.listenerCount("request")),await Zr({request:a,requestId:r,emitter:this.emitter,controller:s}),i},Object.defineProperty(globalThis.fetch,tr,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.fetch,tr,{value:void 0}),globalThis.fetch=e,this.logger.info('restored native "globalThis.fetch"!',globalThis.fetch.name)})}};var so=class{constructor(e,t){this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=t?.target||null,this.currentTarget=t?.currentTarget||null,this.timeStamp=Date.now()}composedPath(){return[]}initEvent(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n}preventDefault(){this.defaultPrevented=!0}stopPropagation(){}stopImmediatePropagation(){}},co=class extends so{constructor(e,t){super(e),this.lengthComputable=t?.lengthComputable||!1,this.composed=t?.composed||!1,this.loaded=t?.loaded||0,this.total=t?.total||0}},uo="undefined"!=typeof ProgressEvent;function lo(e,t){if(!(t in e))return null;if(Object.prototype.hasOwnProperty.call(e,t))return e;const n=Reflect.getPrototypeOf(e);return n?lo(n,t):null}function po(e,t){return new Proxy(e,function(e){const{constructorCall:t,methodCall:n,getProperty:r,setProperty:o}=e,a={};void 0!==t&&(a.construct=function(e,n,r){const o=Reflect.construct.bind(null,e,n,r);return t.call(r,n,o)});return a.set=function(e,t,n){const r=()=>{const r=lo(e,t)||e,o=Reflect.getOwnPropertyDescriptor(r,t);return void 0!==o?.set?(o.set.apply(e,[n]),!0):Reflect.defineProperty(r,t,{writable:!0,enumerable:!0,configurable:!0,value:n})};return void 0!==o?o.call(e,[t,n],r):r()},a.get=function(e,t,o){const a=()=>e[t],i=void 0!==r?r.call(e,[t,o],a):a();return"function"==typeof i?(...r)=>{const o=i.bind(e,...r);return void 0!==n?n.call(e,[t,r],o):o()}:i},a}(t))}function ho(e){const t=new Headers,n=e.split(/[\r\n]+/);for(const e of n){if(""===e.trim())continue;const[n,...r]=e.split(": "),o=r.join(": ");t.append(n,o)}return t}async function fo(e){const t=e.headers.get("content-length");return null!=t&&""!==t?Number(t):(await e.arrayBuffer()).byteLength}var go=Symbol("kIsRequestHandled"),mo=Wn(),yo=Symbol("kFetchRequest"),vo=class{constructor(e,t){this.initialRequest=e,this.logger=t,this.method="GET",this.url=null,this[go]=!1,this.events=new Map,this.uploadEvents=new Map,this.requestId=Pr(),this.requestHeaders=new Headers,this.responseBuffer=new Uint8Array,this.request=po(e,{setProperty:([e,t],n)=>{if("ontimeout"===e){const r=e.slice(2);return this.request.addEventListener(r,t),n()}return n()},methodCall:([e,t],n)=>{switch(e){case"open":{const[e,r]=t;return void 0===r?(this.method="GET",this.url=bo(e)):(this.method=e,this.url=bo(r)),this.logger=this.logger.extend(`${this.method} ${this.url.href}`),this.logger.info("open",this.method,this.url.href),n()}case"addEventListener":{const[e,r]=t;return this.registerEvent(e,r),this.logger.info("addEventListener",e,r),n()}case"setRequestHeader":{const[e,r]=t;return this.requestHeaders.set(e,r),this.logger.info("setRequestHeader",e,r),n()}case"send":{const[e]=t;this.request.addEventListener("load",()=>{if(void 0!==this.onResponse){const e=function(e,t){return new ir(ir.isResponseWithBody(e.status)?t:null,{url:e.responseURL,status:e.status,statusText:e.statusText,headers:ho(e.getAllResponseHeaders())})}(this.request,this.request.response);this.onResponse.call(this,{response:e,isMockedResponse:this[go],request:a,requestId:this.requestId})}});const o="string"==typeof e?(r=e,jr.encode(r)):e,a=this.toFetchApiRequest(o);this[yo]=a.clone(),queueMicrotask(()=>{(this.onRequest?.call(this,{request:a,requestId:this.requestId})||Promise.resolve()).finally(()=>{if(!this[go])return this.logger.info("request callback settled but request has not been handled (readystate %d), performing as-is...",this.request.readyState),mo&&this.request.setRequestHeader("x-interceptors-internal-request-id",this.requestId),n()})});break}default:return n()}var r}}),ko(this.request,"upload",po(this.request.upload,{setProperty:([e,t],n)=>{switch(e){case"onloadstart":case"onprogress":case"onaboart":case"onerror":case"onload":case"ontimeout":case"onloadend":{const n=e.slice(2);this.registerUploadEvent(n,t)}}return n()},methodCall:([e,t],n)=>{if("addEventListener"===e){const[e,r]=t;return this.registerUploadEvent(e,r),this.logger.info("upload.addEventListener",e,r),n()}}}))}registerEvent(e,t){const n=(this.events.get(e)||[]).concat(t);this.events.set(e,n),this.logger.info('registered event "%s"',e,t)}registerUploadEvent(e,t){const n=(this.uploadEvents.get(e)||[]).concat(t);this.uploadEvents.set(e,n),this.logger.info('registered upload event "%s"',e,t)}async respondWith(e){if(this[go]=!0,this[yo]){const e=await fo(this[yo]);this.trigger("loadstart",this.request.upload,{loaded:0,total:e}),this.trigger("progress",this.request.upload,{loaded:e,total:e}),this.trigger("load",this.request.upload,{loaded:e,total:e}),this.trigger("loadend",this.request.upload,{loaded:e,total:e})}this.logger.info("responding with a mocked response: %d %s",e.status,e.statusText),ko(this.request,"status",e.status),ko(this.request,"statusText",e.statusText),ko(this.request,"responseURL",this.url.href),this.request.getResponseHeader=new Proxy(this.request.getResponseHeader,{apply:(t,n,r)=>{if(this.logger.info("getResponseHeader",r[0]),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning null"),null;const o=e.headers.get(r[0]);return this.logger.info('resolved response header "%s" to',r[0],o),o}}),this.request.getAllResponseHeaders=new Proxy(this.request.getAllResponseHeaders,{apply:()=>{if(this.logger.info("getAllResponseHeaders"),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning empty string"),"";const t=Array.from(e.headers.entries()).map(([e,t])=>`${e}: ${t}`).join("\r\n");return this.logger.info("resolved all response headers to",t),t}}),Object.defineProperties(this.request,{response:{enumerable:!0,configurable:!1,get:()=>this.response},responseText:{enumerable:!0,configurable:!1,get:()=>this.responseText},responseXML:{enumerable:!0,configurable:!1,get:()=>this.responseXML}});const t=await fo(e.clone());this.logger.info("calculated response body length",t),this.trigger("loadstart",this.request,{loaded:0,total:t}),this.setReadyState(this.request.HEADERS_RECEIVED),this.setReadyState(this.request.LOADING);const n=()=>{this.logger.info("finalizing the mocked response..."),this.setReadyState(this.request.DONE),this.trigger("load",this.request,{loaded:this.responseBuffer.byteLength,total:t}),this.trigger("loadend",this.request,{loaded:this.responseBuffer.byteLength,total:t})};if(e.body){this.logger.info("mocked response has body, streaming...");const r=e.body.getReader(),o=async()=>{const{value:e,done:a}=await r.read();if(a)return this.logger.info("response body stream done!"),void n();e&&(this.logger.info("read response body chunk:",e),this.responseBuffer=function(e,t){const n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}(this.responseBuffer,e),this.trigger("progress",this.request,{loaded:this.responseBuffer.byteLength,total:t})),o()};o()}else n()}responseBufferToText(){return e=this.responseBuffer,new TextDecoder(t).decode(e);var e,t}get response(){if(this.logger.info("getResponse (responseType: %s)",this.request.responseType),this.request.readyState!==this.request.DONE)return null;switch(this.request.responseType){case"json":{const e=function(e){try{return JSON.parse(e)}catch(e){return null}}(this.responseBufferToText());return this.logger.info("resolved response JSON",e),e}case"arraybuffer":{const t=(e=this.responseBuffer).buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return this.logger.info("resolved response ArrayBuffer",t),t}case"blob":{const e=this.request.getResponseHeader("Content-Type")||"text/plain",t=new Blob([this.responseBufferToText()],{type:e});return this.logger.info("resolved response Blob (mime type: %s)",t,e),t}default:{const e=this.responseBufferToText();return this.logger.info('resolving "%s" response type as text',this.request.responseType,e),e}}var e}get responseText(){if(Hn(""===this.request.responseType||"text"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.LOADING&&this.request.readyState!==this.request.DONE)return"";const e=this.responseBufferToText();return this.logger.info('getResponseText: "%s"',e),e}get responseXML(){if(Hn(""===this.request.responseType||"document"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.DONE)return null;const e=this.request.getResponseHeader("Content-Type")||"";return"undefined"==typeof DOMParser?(console.warn("Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly."),null):function(e){return["application/xhtml+xml","application/xml","image/svg+xml","text/html","text/xml"].some(t=>e.startsWith(t))}(e)?(new DOMParser).parseFromString(this.responseBufferToText(),e):null}errorWith(e){this[go]=!0,this.logger.info("responding with an error"),this.setReadyState(this.request.DONE),this.trigger("error",this.request),this.trigger("loadend",this.request)}setReadyState(e){this.logger.info("setReadyState: %d -> %d",this.request.readyState,e),this.request.readyState!==e?(ko(this.request,"readyState",e),this.logger.info("set readyState to: %d",e),e!==this.request.UNSENT&&(this.logger.info('triggering "readystatechange" event...'),this.trigger("readystatechange",this.request))):this.logger.info("ready state identical, skipping transition...")}trigger(e,t,n){const r=t[`on${e}`],o=function(e,t,n){const r=uo?ProgressEvent:co;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new r(t,{lengthComputable:!0,loaded:n?.loaded||0,total:n?.total||0}):new so(t,{target:e,currentTarget:e})}(t,e,n);this.logger.info('trigger "%s"',e,n||""),"function"==typeof r&&(this.logger.info('found a direct "%s" callback, calling...',e),r.call(t,o));const a=t instanceof XMLHttpRequestUpload?this.uploadEvents:this.events;for(const[n,r]of a)n===e&&(this.logger.info('found %d listener(s) for "%s" event, calling...',r.length,e),r.forEach(e=>e.call(t,o)))}toFetchApiRequest(e){this.logger.info("converting request to a Fetch API Request...");const t=e instanceof Document?e.documentElement.innerText:e,n=new Request(this.url.href,{method:this.method,headers:this.requestHeaders,credentials:this.request.withCredentials?"include":"same-origin",body:["GET","HEAD"].includes(this.method.toUpperCase())?null:t});return ko(n,"headers",po(n.headers,{methodCall:([e,t],r)=>{switch(e){case"append":case"set":{const[e,n]=t;this.request.setRequestHeader(e,n);break}case"delete":{const[e]=t;console.warn(`XMLHttpRequest: Cannot remove a "${e}" header from the Fetch API representation of the "${n.method} ${n.url}" request. XMLHttpRequest headers cannot be removed.`);break}}return r()}})),cr(n,this.request),this.logger.info("converted request to a Fetch API Request!",n),n}};function bo(e){return"undefined"==typeof location?new URL(e):new URL(e.toString(),location.href)}function ko(e,t,n){Reflect.defineProperty(e,t,{writable:!0,enumerable:!0,value:n})}var wo=class e extends Ar{static{this.interceptorSymbol=Symbol("xhr")}constructor(){super(e.interceptorSymbol)}checkEnvironment(){return Kr("XMLHttpRequest")}setup(){const e=this.logger.extend("setup");e.info('patching "XMLHttpRequest" module...');const t=globalThis.XMLHttpRequest;Hn(!t[tr],'Failed to patch the "XMLHttpRequest" module: already patched.'),globalThis.XMLHttpRequest=function({emitter:e,logger:t}){return new Proxy(globalThis.XMLHttpRequest,{construct(n,r,o){t.info("constructed new XMLHttpRequest");const a=Reflect.construct(n,r,o),i=Object.getOwnPropertyDescriptors(n.prototype);for(const e in i)Reflect.defineProperty(a,e,i[e]);const s=new vo(a,t);return s.onRequest=async function({request:t,requestId:n}){const r=new rr(t,{passthrough:()=>{this.logger.info("no mocked response received, performing request as-is...")},respondWith:async e=>{Jr(e)?this.errorWith(new TypeError("Network error")):await this.respondWith(e)},errorWith:e=>{this.logger.info("request errored!",{error:e}),e instanceof Error&&this.errorWith(e)}});this.logger.info("awaiting mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',e.listenerCount("request")),await Zr({request:t,requestId:n,controller:r,emitter:e})},s.onResponse=async function({response:t,isMockedResponse:n,request:r,requestId:o}){this.logger.info('emitting the "response" event for %s listener(s)...',e.listenerCount("response")),e.emit("response",{response:t,isMockedResponse:n,request:r,requestId:o})},s.request}})}({emitter:this.emitter,logger:this.logger}),e.info('native "XMLHttpRequest" module patched!',globalThis.XMLHttpRequest.name),Object.defineProperty(globalThis.XMLHttpRequest,tr,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.XMLHttpRequest,tr,{value:void 0}),globalThis.XMLHttpRequest=t,e.info('native "XMLHttpRequest" module restored!',globalThis.XMLHttpRequest.name)})}};var _o=class extends Mt{context;constructor(...e){super(...e),Hn(!Wn(),k.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead.")),this.context=this.createWorkerContext()}createWorkerContext(){const e=new Gn;return{isMockingEnabled:!1,startOptions:null,workerPromise:e,registration:void 0,getRequestHandlers:()=>this.handlersController.currentHandlers(),emitter:this.emitter,workerChannel:new Gr({worker:e})}}async start(e={}){if("waitUntilReady"in e&&k.warn('The "waitUntilReady" option has been deprecated. Please remove it from this "worker.start()" call. Follow the recommended Browser integration (https://mswjs.io/docs/integrations/browser) to eliminate any race conditions between the Service Worker registration and any requests made by your application on initial render.'),this.context.isMockingEnabled)return k.warn('Found a redundant "worker.start()" call. Note that starting the worker while mocking is already enabled will have no effect. Consider removing this "worker.start()" call.'),this.context.registration;if(this.context.workerStoppedAt=void 0,this.context.startOptions=f(Vn,e),function(e){On.on("connection",async t=>{const n=e.getHandlers().filter(Dt("EventHandler"));if(n.length>0)return e?.onMockedConnection(t),void await Promise.all(n.map(e=>e.run(t)));const r=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await C(r,e.getUnhandledRequestStrategy()).catch(e=>{const n=new Event("error");Object.defineProperty(n,"cause",{enumerable:!0,configurable:!1,value:e}),t.client.socket.dispatchEvent(n)}),e?.onPassthroughConnection(t),t.server.connect()})}({getUnhandledRequestStrategy:()=>this.context.startOptions.onUnhandledRequest,getHandlers:()=>this.handlersController.currentHandlers(),onMockedConnection:e=>{this.context.startOptions.quiet||Un(e)},onPassthroughConnection(){}}),On.apply(),this.subscriptions.push(()=>{On.dispose()}),!Zn()){const e=function(e,t){const n=new Dr({name:"fallback",interceptors:[new io,new wo]});return n.on("request",async({request:n,requestId:r,controller:o})=>{const a=n.clone(),i=await jt(n,r,e.getRequestHandlers().filter(Dt("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onMockedResponse(n,{handler:r,parsedResult:o}){t.quiet||e.emitter.once("response:mocked",({response:e})=>{r.log({request:a,response:e,parsedResult:o})})}});i&&o.respondWith(i)}),n.on("response",({response:t,isMockedResponse:n,request:r,requestId:o})=>{e.emitter.emit(n?"response:mocked":"response:bypass",{response:t,request:r,requestId:o})}),n.apply(),n}(this.context,this.context.startOptions);return this.subscriptions.push(()=>{e.dispose()}),this.context.isMockingEnabled=!0,void Qn({message:"Mocking enabled (fallback mode).",quiet:this.context.startOptions.quiet})}const t=Lr(this.context),n=await t(this.context.startOptions,e);return this.context.isMockingEnabled=!0,n}stop(){super.dispose(),this.context.isMockingEnabled?(this.context.isMockingEnabled=!1,this.context.workerStoppedAt=Date.now(),this.context.emitter.removeAllListeners(),Zn()&&(this.context.workerChannel.removeAllListeners("RESPONSE"),window.clearInterval(this.context.keepAliveInterval)),window.postMessage({type:"msw/worker:stop"}),function(e={}){e.quiet||console.log(`%c${k.formatMessage("Mocking disabled.")}`,"color:orangered;font-weight:bold;")}({quiet:this.context.startOptions?.quiet})):k.warn('Found a redundant "worker.stop()" call. Notice that stopping the worker after it has already been stopped has no effect. Consider removing this "worker.stop()" call.')}};const{message:Eo}=st;function xo(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,a="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=e[s++]}else a+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!a)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:a}),n=s}else{for(var i="",s=n+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,a=t.delimiter,i=void 0===a?"/#?":a,s=[],c=0,u=0,l="",d=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var r=n[u],o=r.type,a=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},f=function(e){var t=s[s.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=i;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(Co(i),"]+?"):"(?:(?!".concat(Co(n),")[^").concat(Co(i),"])+?")};u<n.length;){var g=d("CHAR"),m=d("NAME"),y=d("PATTERN");if(m||y){var v=g||"";-1===o.indexOf(v)&&(l+=v,v=""),l&&(s.push(l),l=""),s.push({name:m||c++,prefix:v,suffix:"",pattern:y||f(v),modifier:d("MODIFIER")||""})}else{var b=g||d("ESCAPED_CHAR");if(b)l+=b;else if(l&&(s.push(l),l=""),d("OPEN")){v=h();var k=d("NAME")||"",w=d("PATTERN")||"",_=h();p("CLOSE"),s.push({name:k||(w?c++:""),pattern:k&&!w?f(v):w,prefix:v,suffix:_,modifier:d("MODIFIER")||""})}else p("END")}}return s}function So(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var a=r[0],i=r.index,s=Object.create(null),c=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map(function(e){return o(e,n)}):s[n.name]=o(r[e],n)},u=1;u<r.length;u++)c(u);return{path:a,index:i,params:s}}}(To(e,n,t),n,t)}function Co(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Io(e){return e&&e.sensitive?"":"i"}function Ro(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,a=n.start,i=void 0===a||a,s=n.end,c=void 0===s||s,u=n.encode,l=void 0===u?function(e){return e}:u,d=n.delimiter,p=void 0===d?"/#?":d,h=n.endsWith,f="[".concat(Co(void 0===h?"":h),"]|$"),g="[".concat(Co(p),"]"),m=i?"^":"",y=0,v=e;y<v.length;y++){var b=v[y];if("string"==typeof b)m+=Co(l(b));else{var k=Co(l(b.prefix)),w=Co(l(b.suffix));if(b.pattern)if(t&&t.push(b),k||w)if("+"===b.modifier||"*"===b.modifier){var _="*"===b.modifier?"?":"";m+="(?:".concat(k,"((?:").concat(b.pattern,")(?:").concat(w).concat(k,"(?:").concat(b.pattern,"))*)").concat(w,")").concat(_)}else m+="(?:".concat(k,"(").concat(b.pattern,")").concat(w,")").concat(b.modifier);else{if("+"===b.modifier||"*"===b.modifier)throw new TypeError('Can not repeat "'.concat(b.name,'" without a prefix and suffix'));m+="(".concat(b.pattern,")").concat(b.modifier)}else m+="(?:".concat(k).concat(w,")").concat(b.modifier)}}if(c)o||(m+="".concat(g,"?")),m+=n.endsWith?"(?=".concat(f,")"):"$";else{var E=e[e.length-1],x="string"==typeof E?g.indexOf(E[E.length-1])>-1:void 0===E;o||(m+="(?:".concat(g,"(?=").concat(f,"))?")),x||(m+="(?=".concat(g,"|").concat(f,")"))}return new RegExp(m,Io(n))}(xo(e,n),t,n)}function To(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map(function(e){return To(e,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),Io(n))}(e,t,n):Ro(e,t,n)}var Oo=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}};function Ao(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}(class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new un}get#a(){return this.handled}async passthrough(){v.as(Oo,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){v.as(Oo,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){v.as(Oo,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}});var Po=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return;const n=Ao("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const r=n.status??200,o=e.isConfigurableStatusCode(r)?r:200;if(super(e.isResponseWithBody(r)?t:null,{status:o,statusText:n.statusText,headers:n.headers}),r!==o){const e=Ao("state",this);e?e.status=r:Object.defineProperty(this,"status",{value:r,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}};new TextEncoder;const jo=/[?|#].*$/g;function Do(e){return e.endsWith("?")?e:e.replace(jo,"")}function Lo(e,t){if(e instanceof RegExp)return e;const n=function(e,t){if(/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e))return e;if(e.startsWith("*"))return e;const n=t||"undefined"!=typeof location&&location.href;return n?decodeURI(new URL(encodeURI(e),n).href):e}(e,t);return Do(n)}function zo(e,t,n){const r=Lo(t,n),o="string"==typeof r?function(e){return e.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(e,t,n)=>{const r="(.*)";return t?t.startsWith(":")?`${t}${n}`:`${t}${r}`:r}).replace(/([^/])(:)(?=\d+)/,"$1\\$2").replace(/^([^/]+)(:)(?=\/\/)/,"$1\\$2")}(r):r,a=function(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}(e),i=So(o,{decode:decodeURIComponent})(a);return{matches:!1!==i,params:i&&i.params||{}}}var qo=Object.create,No=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Mo=Object.getOwnPropertyNames,Bo=Object.getPrototypeOf,Fo=Object.prototype.hasOwnProperty,Ho=((e,t)=>function(){return t||(0,e[Mo(e)[0]])((t={exports:{}}).exports,t),t.exports})({"node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parse=function(e,t){const n=new i,r=e.length;if(r<2)return n;const o=t?.decode||u;let a=0;do{const t=e.indexOf("=",a);if(-1===t)break;const i=e.indexOf(";",a),u=-1===i?r:i;if(t>u){a=e.lastIndexOf(";",t-1)+1;continue}const l=s(e,a,t),d=c(e,t,l),p=e.slice(l,d);if(void 0===n[p]){let r=s(e,t+1,u),a=c(e,u,r);const i=o(e.slice(r,a));n[p]=i}a=u+1}while(a<r);return n},e.serialize=function(e,i,s){const c=s?.encode||encodeURIComponent;if(!t.test(e))throw new TypeError(`argument name is invalid: ${e}`);const u=c(i);if(!n.test(u))throw new TypeError(`argument val is invalid: ${i}`);let l=e+"="+u;if(!s)return l;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);l+="; Max-Age="+s.maxAge}if(s.domain){if(!r.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);l+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);l+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===a.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);l+="; Expires="+s.expires.toUTCString()}s.httpOnly&&(l+="; HttpOnly");s.secure&&(l+="; Secure");s.partitioned&&(l+="; Partitioned");if(s.priority){switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}}if(s.sameSite){switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}}return l};var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,i=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function s(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function c(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function u(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}}}),Wo=((e,t,n)=>(n=null!=e?qo(Bo(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Mo(t))Fo.call(e,o)||o===n||No(e,o,{get:()=>t[o],enumerable:!(r=Uo(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:No(n,"default",{value:e,enumerable:!0}),e)))(Ho(),1),Go=Wo.default||Wo,Vo=Go.parse,Ko=Go.serialize;function $o(e){const t=Vo(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Qo(){return $o(document.cookie)}function Yo(e){const t=e.headers.get("cookie"),n=t?$o(t):{},r=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Qo():{}}case"include":return Qo();default:return{}}}(e);for(const t in r)e.headers.append("cookie",Ko(t,r[t]));const o=Ve.getCookies(e.url),a=Object.fromEntries(o.map(e=>[e.key,e.value]));for(const t of o)e.headers.append("cookie",t.toString());return{...r,...a,...n}}var Jo=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Jo||{});class Zo extends x{constructor(e,t,n,r){const o="function"==typeof t?"[custom predicate]":t;super({info:{header:`${e}${o?` ${o}`:""}`,path:t,method:e},resolver:n,options:r}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(!t||t instanceof RegExp||"function"==typeof t)return;Do(t)!==t&&k.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`)}async parse(e){const t=new URL(e.request.url),n=Yo(e.request);if("function"==typeof this.info.path){const t=await this.info.path({request:e.request,cookies:n});return{match:"boolean"==typeof t?{matches:t,params:{}}:t,cookies:n}}return{match:this.info.path?zo(t,this.info.path,e.resolutionContext?.baseUrl):{matches:!1,params:{}},cookies:n}}async predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=S(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),r=await async function(e){const t=e.clone(),n=await t.text(),r=t.status||200;return{status:r,statusText:t.statusText||Eo[r]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),o=(a=r.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(k.formatMessage(`${An()} ${e.request.method} ${t} (%c${r.status} ${r.statusText}%c)`),`color:${o}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",r),console.groupEnd()}}function Xo(e){return(t,n,r={})=>new Zo(e,t,n,r)}const ea={all:Xo(/.+/),head:Xo(Jo.HEAD),get:Xo(Jo.GET),post:Xo(Jo.POST),put:Xo(Jo.PUT),delete:Xo(Jo.DELETE),patch:Xo(Jo.PATCH),options:Xo(Jo.OPTIONS)},ta=Symbol("bodyType");class na extends Po{[ta]=null;constructor(e,t){const n=Pt(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,At,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=Tt.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static error(){return super.error()}static text(e,t){const n=Pt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new na(e,n)}static json(e,t){const n=Pt(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const r=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",r?new Blob([r]).size.toString():"0"),new na(r,n)}static xml(e,t){const n=Pt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new na(e,n)}static html(e,t){const n=Pt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new na(e,n)}static arrayBuffer(e,t){const n=Pt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new na(e,n)}static formData(e,t){return new na(e,Pt(t))}}v("undefined"!=typeof URL,k.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var ra,oa={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},aa={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ia={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},sa={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ca=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],ua={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},la=[ea.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",function(){return na.json(oa)}),ea.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",function(){return na.json(aa)}),ea.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",function(){return na.json(ia)}),ea.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",function(){return na.json(sa)}),ea.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",function(){return na.json(ca)}),ea.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",function(){return na.json(ua)})],da={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},pa={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},ha={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(ra||(ra={}));var fa={sales_volume_metric_group:ha.sales_volume_metric_group,total_payments:ha.total_payments},ga=ea.get("/api/insights/overview-metrics",function(){return na.json(fa)}),ma=[ea.get("/api/v3/insights/overview-metrics/".concat(ra.GENERAL),function(){return na.json({sales_volume_metric_group:fa.sales_volume_metric_group})}),ea.get("/api/v3/insights/overview-metrics/".concat(ra.LATENCY),function(){return na.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})}),ea.get("/api/v3/insights/overview-metrics/".concat(ra.STATUS),function(){return na.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})}),ea.get("/api/v3/insights/overview-metrics/".concat(ra.SUBSCRIPTIONS),function(){return na.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})})],ya=e([ga],ma,!0),va=e([ea.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",function(){return na.json(da)}),ea.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",function(){return na.json(pa)}),ea.get("*/accounts/webhooks/:accountCode",function(){return na.json({})}),ea.get("*/accounts/webhooks/params-catalog",function(){return na.json({})}),ea.get("*/accounts/webhooks-v2/:accountCode",function(){return na.json({})})],ya,!0),ba={by_currency:[{currency_code:"USD",transactions:100,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD"},{currency_code:"COP",transactions:50,amount_local:4e7,amount_usd:10000.5,currency_code_local:"COP"}],by_connection:[{connection_name:"Stripe",transactions:80,amount_local:12e3,amount_usd:12e3,currency_code_local:"USD"},{connection_name:"PayPal",transactions:70,amount_local:13000.5,amount_usd:13000.5,currency_code_local:"USD"}],by_brand:[{brand:"Visa",transactions:90,amount_local:14e3,amount_usd:14e3,currency_code_local:"USD"},{brand:"Mastercard",transactions:60,amount_local:11000.5,amount_usd:11000.5,currency_code_local:"USD"}],by_payment_method:[{payment_method:"CARD",transactions:120,amount_local:2e4,amount_usd:2e4,currency_code_local:"USD"},{payment_method:"BANK_TRANSFER",transactions:30,amount_local:5000.5,amount_usd:5000.5,currency_code_local:"USD"}],total:{transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD"}},ka={total:100,page:1,page_size:10,total_pages:10},wa={authorization_code:"AUTH123",card_category:"CREDIT",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",payment_method_category:"CARD",provider_id:"stripe",reconciliation_status:"NOT_RECONCILED",reconciliation_sub_status:"PENDING"},_a={transaction_id:"TXN123",transaction_date:"2025-01-15T10:30:00Z",acquirer:"STRIPE",authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",country:"US",currency:"USD",fee_status:"MATCHED",fee_sub_status:"OK",fee_taxes_diff:0,calculated_fix_costed_fee:.3,calculated_percentage_cost:2.9,percentage_cost:2.9,merchant_order_id:"ORDER123",provider_transaction_id:"PROV123",reconciliation_status:"RECONCILED",reconciliation_sub_status:"OK",type:"PAYMENT"},Ea={not_reconciled:{data:[{id:"stripe",transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD",total_transactions:200},{id:"paypal",transactions:80,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD",total_transactions:120}],total:{transactions:230,amount_local:40000.5,amount_usd:40000.5,currency_code_local:"USD"}},status_conflict:{data:[{id:"stripe",transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}],total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}},amount_conflict:{data:[{id:"paypal",transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}],total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}},xa=ba,Sa={data:[wa,t(t({},wa),{authorization_code:"AUTH456",provider_id:"paypal"})],pagination:ka},Ca=t(t({},ba),{total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}}),Ia={data:[t(t({},wa),{reconciliation_status:"STATUS_CONFLICT"})],pagination:t(t({},ka),{total:20,total_pages:2})},Ra=t(t({},ba),{total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}),Ta={data:[t(t({},wa),{reconciliation_status:"AMOUNT_CONFLICT"})],pagination:t(t({},ka),{total:10,total_pages:1})},Oa={data:[{id:"2025-01-10",transactions:30,amount_local:8e3,amount_usd:8e3,currency_code_local:"USD"},{id:"2025-01-11",transactions:25,amount_local:6500,amount_usd:6500,currency_code_local:"USD"}],total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}},Aa=t(t({},ba),{total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}}),Pa={data:[t(t({},wa),{reconciliation_status:"DATE_CONFLICT"})],pagination:t(t({},ka),{total:55,total_pages:6})},ja={data:[{id:"stripe",transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}],total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}},Da=t(t({},ba),{total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}}),La={data:[t(t({},_a),{fee_status:"MISMATCH"}),t(t({},_a),{transaction_id:"TXN456",fee_status:"MISMATCH"})],pagination:t(t({},ka),{total:15,total_pages:2})},za={total_amount_usd:5e3,chart_data:[{date:"2025-01-10",amount_usd:1500},{date:"2025-01-11",amount_usd:1800},{date:"2025-01-12",amount_usd:1700}]},qa={data:[{id:"stripe",transaction_type:"PURCHASE",transactions:500,amount_local:1e5,amount_usd:1e5,currency_code_local:"USD"},{id:"paypal",transaction_type:"REFUND",transactions:300,amount_local:6e4,amount_usd:6e4,currency_code_local:"USD"}],total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}},Na=t(t({},ba),{total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}}),Ua={data:[_a],pagination:t(t({},ka),{total:800,total_pages:80})},Ma={data:[{id:"stripe",transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}],total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}},Ba=t(t({},ba),{total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}}),Fa={data:[t(t({},{transaction_id:"TXN123",acquirer:"STRIPE",amount:100,authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",confirmation_status:"CONFIRMED",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",merchant_order_id:"ORDER123",merchant_transaction_id:"MERCH123",payment_id:"PAY123",provider_status:"APPROVED",provider_transaction_id:"PROV123",response_code:"00",status:"SUCCEEDED",type:"PAYMENT"}),{confirmation_status:"NOT_CONFIRMED"})],pagination:t(t({},ka),{total:25,total_pages:3})},Ha={total_amount_usd:75e3,chart_data:[{date:"2025-01-10",amount_usd:2e4},{date:"2025-01-11",amount_usd:25e3},{date:"2025-01-12",amount_usd:3e4}]},Wa="*/reconciliations/insights",Ga=[ea.post("".concat(Wa,"/conflicts/summary"),function(){return na.json(Ea)}),ea.post("".concat(Wa,"/not-reconciled/aggregators"),function(){return na.json(xa)}),ea.post("".concat(Wa,"/not-reconciled/list"),function(){return na.json(Sa)}),ea.post("".concat(Wa,"/status-conflict/aggregators"),function(){return na.json(Ca)}),ea.post("".concat(Wa,"/status-conflict/list"),function(){return na.json(Ia)}),ea.post("".concat(Wa,"/amount-conflict/aggregators"),function(){return na.json(Ra)}),ea.post("".concat(Wa,"/amount-conflict/list"),function(){return na.json(Ta)}),ea.post("".concat(Wa,"/conflict-date/summary"),function(){return na.json(Oa)}),ea.post("".concat(Wa,"/conflict-date/aggregators"),function(){return na.json(Aa)}),ea.post("".concat(Wa,"/conflict-date/list"),function(){return na.json(Pa)}),ea.post("".concat(Wa,"/incorrect-fees/summary"),function(){return na.json(ja)}),ea.post("".concat(Wa,"/incorrect-fees/aggregators"),function(){return na.json(Da)}),ea.post("".concat(Wa,"/incorrect-fees/list"),function(){return na.json(La)}),ea.post("".concat(Wa,"/fees-charged/summary"),function(){return na.json(za)}),ea.post("".concat(Wa,"/reconciled/summary"),function(){return na.json(qa)}),ea.post("".concat(Wa,"/reconciled/aggregators"),function(){return na.json(Na)}),ea.post("".concat(Wa,"/reconciled/list"),function(){return na.json(Ua)}),ea.post("".concat(Wa,"/not-confirm/summary"),function(){return na.json(Ma)}),ea.post("".concat(Wa,"/not-confirm/aggregators"),function(){return na.json(Ba)}),ea.post("".concat(Wa,"/not-confirm/list"),function(){return na.json(Fa)}),ea.post("".concat(Wa,"/amount-to-be-settled/summary"),function(){return na.json(Ha)}),ea.post("".concat(Wa,"/reconciliation-rate/summary/by-provider"),function(){return na.json({total:{total_transactions:0,transactions_percentage:0},data:[]})}),ea.post("".concat(Wa,"/reconciliation-rate/summary/by-account"),function(){return na.json([])}),ea.post("".concat(Wa,"/reconciliation-rate/summary/by-currency"),function(){return na.json([])})],Va=[{id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Plan Argentina con CFT y TEA",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]},{id:"",installment:6,rate:1.25,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:45.5},{type:"TEA",rate:180.12}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},availability:{start_at:"2025-01-01T00:00:00Z",finish_at:"2025-12-31T23:59:59Z"},types_list:null,created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-01T16:41:17.428285Z"},{id:"1688",code:"1381d64b-ed14-4739-8f0a-b3adbe5949b0",name:"Plan Colombia sin intereses",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-col-sin-interes",installments_plan:[{id:"",installment:1,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"},{id:"",installment:3,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"}],country_code:"CO",amount:{currency:"COP",min_value:"50000",max_value:"10000000"},availability:{},types_list:null,created_at:"2025-08-06T14:33:32.854396Z",updated_at:"2025-08-06T14:33:32.854396Z"}],Ka={id:"1689",code:"new-plan-code-uuid",name:"New Test Plan",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"new-plan-ref",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-10T12:00:00.000000Z",updated_at:"2025-08-10T12:00:00.000000Z"},$a={id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Updated Plan Name",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.2,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:40},{type:"TEA",rate:160}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-10T15:00:00.000000Z"},Qa={deleted:!0},Ya=[ea.get("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return na.json(Va)}),ea.post("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return na.json(Ka)}),ea.patch("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return na.json($a)}),ea.delete("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return na.json(Qa)})],Ja={account_id:"acc_test_001",country:"BR",created_at:"2026-01-15T10:30:00.000Z",updated_at:"2026-02-20T14:45:00.000Z"},Za={data:[t({id:"rec_001",merchant_recipient_id:"merch-rec-001",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"Carlos",last_name:"Rodríguez",legal_name:null,email:"carlos.rodriguez@example.com",date_of_birth:"1990-05-12",website:null,industry:null,merchant_category_code:null,document:{number:"12345678901",type:"CPF"},phone:{country_code:"+55",number:"11999887766"},address:{address_line_1:"Rua Augusta 1200",address_line_2:"Apto 301",city:"São Paulo",state:"SP",zip_code:"01304-001",country:"BR"}},Ja),t(t({id:"rec_002",merchant_recipient_id:"merch-rec-002",national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"Acme Payments Ltda",email:"finance@acmepayments.com",date_of_birth:null,website:"https://acmepayments.com",industry:"Financial Services",merchant_category_code:"5411",document:{number:"12345678000199",type:"CNPJ"},phone:{country_code:"+55",number:"1133445566"},address:{address_line_1:"Av. Paulista 900",address_line_2:"Sala 1201",city:"São Paulo",state:"SP",zip_code:"01310-100",country:"BR"}},Ja),{account_id:"acc_test_002",country:"BR",created_at:"2026-01-20T08:00:00.000Z",updated_at:"2026-02-22T16:30:00.000Z"}),t(t({id:"rec_003",merchant_recipient_id:"merch-rec-003",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"María",last_name:"González",legal_name:null,email:"maria.gonzalez@example.com",date_of_birth:"1985-11-30",website:null,industry:null,merchant_category_code:null,document:{number:"87654321",type:"DNI"},phone:{country_code:"+54",number:"1155667788"},address:{address_line_1:"Av. Corrientes 1234",address_line_2:null,city:"Buenos Aires",state:"CABA",zip_code:"C1043",country:"AR"}},Ja),{account_id:"acc_test_001",country:"AR",created_at:"2026-02-01T12:00:00.000Z",updated_at:"2026-02-28T09:15:00.000Z"}),t(t({id:"rec_004",merchant_recipient_id:null,national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"TechPay Solutions S.A.",email:"admin@techpay.co",date_of_birth:null,website:"https://techpay.co",industry:"Technology",merchant_category_code:"7372",document:{number:"900123456",type:"NIT"},phone:{country_code:"+57",number:"3001234567"},address:{address_line_1:"Carrera 7 #80-49",address_line_2:"Oficina 605",city:"Bogotá",state:"Cundinamarca",zip_code:"110221",country:"CO"}},Ja),{account_id:"acc_test_003",country:"CO",created_at:"2026-02-10T15:30:00.000Z",updated_at:"2026-03-01T11:00:00.000Z"}),t(t({id:"rec_005",merchant_recipient_id:"merch-rec-005",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"João",last_name:"Silva",legal_name:null,email:"joao.silva@example.com",date_of_birth:"1992-08-25",website:null,industry:null,merchant_category_code:null,document:{number:"98765432100",type:"CPF"},phone:{country_code:"+55",number:"21988776655"},address:{address_line_1:"Rua Voluntários da Pátria 45",address_line_2:null,city:"Rio de Janeiro",state:"RJ",zip_code:"22270-000",country:"BR"}},Ja),{created_at:"2026-02-15T09:00:00.000Z",updated_at:"2026-03-01T17:45:00.000Z"})],pagination:{page:1,page_size:25,total_items:5,total_pages:1,has_next:!1,has_previous:!1}},Xa={id:"rec_001",merchant_recipient_id:"merch-rec-001",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"Carlos",last_name:"Rodríguez",legal_name:null,email:"carlos.rodriguez@example.com",account_id:"acc_test_001",country:"BR",created_at:"2026-01-15T10:30:00.000Z",updated_at:"2026-02-20T14:45:00.000Z",document:{number:"12345678901",type:"CPF"},phone:{country_code:"+55",number:"11999887766"},address:{address_line_1:"Rua Augusta 1200",address_line_2:"Apto 301",city:"São Paulo",state:"SP",zip_code:"01304-001",country:"BR"},withdrawal_method:{bank:{code:"001",branch:"1234",branch_digit:"5",account:"98765432",account_digit:"1",account_type:"CHECKINGS",routing:"00119876",country:"BR",currency:"BRL",payout_schedule:null}},documentation:[],onboardings:[{id:"onb_001",provider_id:"stripe",provider:{name:"Stripe",icon:"https://cdn.y.uno/providers/stripe.svg"},status:"APPROVED",response_message:null,created_at:"2026-01-16T08:00:00.000Z",updated_at:"2026-01-18T12:00:00.000Z"},{id:"onb_002",provider_id:"adyen",provider:{name:"Adyen",icon:"https://cdn.y.uno/providers/adyen.svg"},status:"PENDING",response_message:null,created_at:"2026-02-10T09:00:00.000Z",updated_at:"2026-02-10T09:00:00.000Z"}]},ei={id:"onb_001",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"Stripe onboarding for payout capabilities",status:"APPROVED",response_message:null,callback_url:"https://example.com/callback/onboarding",provider:{id:"stripe",connection_id:"conn_stripe_001",redirect_url:null,recipient_id:"acct_1NcVZQS0m7FGzPCG",recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:"ba_1Nc000",recipient_type:null,raw_notification:null,raw_response:null,response_code:"200",response_message:"OK"},documentation:[],legal_representatives:[],withdrawal_methods:{bank:{code:"001",branch:"1234",branch_digit:"5",account:"98765432",account_digit:"1",account_type:"CHECKINGS",routing:"00119876",country:"BR",currency:"BRL"}},requirements:[],capabilities:{payouts:{status:"ACTIVE",requirements:[]},send_transfers:{status:"ACTIVE",requirements:[]},receive_transfers:{status:"ACTIVE",requirements:[]},payments:{status:"ACTIVE",requirements:[]}},terms_of_service:{acceptance:!0,date:"2026-01-16T08:00:00.000Z",ip:"200.100.50.25"},metadata:[],created_at:"2026-01-16T08:00:00.000Z",updated_at:"2026-01-18T12:00:00.000Z",expires_at:null},ti=[{timestamp:"2026-01-16T08:00:00.000Z",event_type:"ONBOARDING_CREATED",status:"PENDING",event_data:{provider_id:"stripe",provider_status:null,provider_response_code:null,provider_response_message:null,provider_recipient_id:null,provider_redirect_url:null,requirements:[],capabilities:null,change_type:null}},{timestamp:"2026-01-16T08:01:30.000Z",event_type:"ONBOARDING_SUBMITTED",status:"IN_PROGRESS",event_data:{provider_id:"stripe",provider_status:"IN_PROGRESS",provider_response_code:"200",provider_response_message:"Onboarding submitted successfully",provider_recipient_id:"acct_1NcVZQS0m7FGzPCG",provider_redirect_url:null,requirements:[],capabilities:null,change_type:null}},{timestamp:"2026-01-18T12:00:00.000Z",event_type:"ONBOARDING_APPROVED",status:"APPROVED",event_data:{provider_id:"stripe",provider_status:"APPROVED",provider_response_code:"200",provider_response_message:"Onboarding approved",provider_recipient_id:"acct_1NcVZQS0m7FGzPCG",provider_redirect_url:null,requirements:[],capabilities:{payouts:{status:"ACTIVE",requirements:[]},send_transfers:{status:"ACTIVE",requirements:[]},receive_transfers:{status:"ACTIVE",requirements:[]},payments:{status:"ACTIVE",requirements:[]}},change_type:null}}],ni={id:"rec_new_001",merchant_recipient_id:null,national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"New",last_name:"Recipient",legal_name:null,email:"new.recipient@example.com",account_id:"acc_test_001",country:"BR",created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),document:{number:"11122233344",type:"CPF"},phone:{country_code:"+55",number:"11900001111"},address:null,withdrawal_method:null,documentation:[],onboardings:[]};t(t({},Xa),{updated_at:(new Date).toISOString()});var ri={message:"Recipient deleted successfully"},oi={id:"onb_new_001",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"New onboarding",status:"PENDING",response_message:null,callback_url:null,provider:{id:"stripe",connection_id:"conn_stripe_001",redirect_url:null,recipient_id:null,recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:null,recipient_type:null,raw_notification:null,raw_response:null,response_code:null,response_message:null},documentation:[],legal_representatives:[],withdrawal_methods:null,requirements:[],capabilities:null,terms_of_service:null,metadata:[],created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),expires_at:null},ai=t(t({},ei),{updated_at:(new Date).toISOString()}),ii=t(t({},ei),{status:"BLOCKED",updated_at:(new Date).toISOString()}),si=t(t({},ei),{status:"APPROVED",updated_at:(new Date).toISOString()}),ci="https://dev.y.uno/dashboard-bff/api",ui={rec_001:Xa,rec_002:{id:"rec_002",merchant_recipient_id:"merch-rec-002",national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"Acme Payments Ltda",email:"finance@acmepayments.com",account_id:"acc_test_002",country:"BR",created_at:"2026-01-20T08:00:00.000Z",updated_at:"2026-02-22T16:30:00.000Z",document:{number:"12345678000199",type:"CNPJ"},phone:{country_code:"+55",number:"1133445566"},address:{address_line_1:"Av. Paulista 900",address_line_2:"Sala 1201",city:"São Paulo",state:"SP",zip_code:"01310-100",country:"BR"},withdrawal_method:{bank:{code:"341",branch:"0001",branch_digit:"0",account:"12345678",account_digit:"9",account_type:"CHECKINGS",routing:"34100001",country:"BR",currency:"BRL",payout_schedule:null}},documentation:[],onboardings:[{id:"onb_003",provider_id:"dlocal",provider:{name:"dLocal",icon:"https://cdn.y.uno/providers/dlocal.svg"},status:"IN_PROGRESS",response_message:"Waiting for document verification",created_at:"2026-02-01T10:00:00.000Z",updated_at:"2026-02-15T14:00:00.000Z"}]},rec_003:{id:"rec_003",merchant_recipient_id:"merch-rec-003",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"María",last_name:"González",legal_name:null,email:"maria.gonzalez@example.com",account_id:"acc_test_001",country:"AR",created_at:"2026-02-01T12:00:00.000Z",updated_at:"2026-02-28T09:15:00.000Z",document:{number:"87654321",type:"DNI"},phone:{country_code:"+54",number:"1155667788"},address:{address_line_1:"Av. Corrientes 1234",address_line_2:null,city:"Buenos Aires",state:"CABA",zip_code:"C1043",country:"AR"},withdrawal_method:null,documentation:[],onboardings:[]}},li={onb_001:ei,onb_002:{id:"onb_002",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"Adyen onboarding",status:"PENDING",response_message:null,callback_url:null,provider:{id:"adyen",connection_id:"conn_adyen_001",redirect_url:null,recipient_id:null,recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:null,recipient_type:null,raw_notification:null,raw_response:null,response_code:null,response_message:null},documentation:[],legal_representatives:[],withdrawal_methods:null,requirements:[],capabilities:null,terms_of_service:null,metadata:[],created_at:"2026-02-10T09:00:00.000Z",updated_at:"2026-02-10T09:00:00.000Z",expires_at:null}},di=[ea.get("".concat(ci,"/recipients"),function(){return na.json(Za)}),ea.get("".concat(ci,"/recipients/:recipientId"),function(e){var n=e.params.recipientId,r=ui[n];return r?na.json(r):na.json(t(t({},Xa),{id:n}))}),ea.get("".concat(ci,"/recipients/:recipientId/onboardings/:onboardingId"),function(e){var n=e.params.onboardingId,r=li[n];return r?na.json(r):na.json(t(t({},ei),{id:n}))}),ea.get("".concat(ci,"/recipients/onboardings/:onboardingId/timeline"),function(){return na.json(ti)}),ea.post("".concat(ci,"/recipients"),function(e){var o=e.request;return n(void 0,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,o.json()];case 1:return e=n.sent(),[2,na.json(t(t(t({},ni),e),{id:"rec_".concat(Date.now()),created_at:(new Date).toISOString(),updated_at:(new Date).toISOString()}),{status:201})]}})})}),ea.patch("".concat(ci,"/recipients/:recipientId"),function(e){var o=e.request,a=e.params;return n(void 0,void 0,void 0,function(){var e,n,i;return r(this,function(r){switch(r.label){case 0:return[4,o.json()];case 1:return e=r.sent(),n=a.recipientId,i=ui[n]||Xa,[2,na.json(t(t(t({},i),e),{id:n,updated_at:(new Date).toISOString()}))]}})})}),ea.delete("".concat(ci,"/recipients/:recipientId"),function(){return na.json(ri)}),ea.post("".concat(ci,"/recipients/:recipientId/onboardings"),function(e){var o=e.request;return n(void 0,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,o.json()];case 1:return e=n.sent(),[2,na.json(t(t(t({},oi),e),{id:"onb_".concat(Date.now()),created_at:(new Date).toISOString(),updated_at:(new Date).toISOString()}),{status:201})]}})})}),ea.patch("".concat(ci,"/recipients/:recipientId/onboardings/:onboardingId"),function(e){var o=e.request,a=e.params;return n(void 0,void 0,void 0,function(){var e,n;return r(this,function(r){switch(r.label){case 0:return[4,o.json()];case 1:return e=r.sent(),n=a.onboardingId,[2,na.json(t(t(t({},ai),e),{id:n,updated_at:(new Date).toISOString()}))]}})})}),ea.post("".concat(ci,"/recipients/:recipientId/onboardings/:onboardingId/block"),function(e){var n=e.params.onboardingId;return na.json(t(t({},ii),{id:n,updated_at:(new Date).toISOString()}))}),ea.post("".concat(ci,"/recipients/:recipientId/onboardings/:onboardingId/unblock"),function(e){var n=e.params.onboardingId;return na.json(t(t({},si),{id:n,updated_at:(new Date).toISOString()}))})],pi={data:[{code:"api-log-001",url:"/api/v1/payments",method:"POST",source:"dashboard",headers:{"Content-Type":"application/json",Authorization:"Bearer token123"},request:{amount:"100.00",currency:"USD"},response:{status:"success",payment_id:"pay_123"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-123-456",created_at:"2024-03-01T10:00:00Z",payment_code:"PAY001",transaction_code:"TXN001"},{code:"api-log-002",url:"/api/v1/payments/PAY001",method:"GET",source:"api",headers:{"Content-Type":"application/json"},request:{},response:{payment_code:"PAY001",amount:"100.00"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-789-012",created_at:"2024-03-01T10:05:00Z"}],page:1,size:10,total_rows:2,total_pages:1},hi=[ea.post("https://dev.y.uno/dashboard-bff/api/v3/api-logs/organization",function(){return na.json(pi)})],fi={data:[{id:1,organization_code:"ORG001",account_code:"ACC001",type:"payment.succeeded",created_at:"2024-03-01T10:00:00Z",updated_at:"2024-03-01T10:00:00Z",time:250,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.succeeded",payment_code:"PAY001"}),response:JSON.stringify({received:!0}),response_status:200,connect_timeout:5e3,read_timeout:1e4,exception:"",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-001",origin_id:"origin-001",payment_code:"PAY001",transaction_code:"TXN001"},{id:2,organization_code:"ORG001",account_code:"ACC001",type:"payment.failed",created_at:"2024-03-01T10:05:00Z",updated_at:"2024-03-01T10:05:00Z",time:300,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.failed",payment_code:"PAY002"}),response:"",response_status:500,connect_timeout:5e3,read_timeout:1e4,exception:"Connection timeout",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-002",origin_id:"origin-002",payment_code:"PAY002"}],page:1,size:10,total_rows:2,total_pages:1},gi=[ea.post("https://dev.y.uno/dashboard-bff/api/v3/webhooks/timeline",function(){return na.json(fi)})],mi=function(e){return void 0===e&&(e={}),t({id:1,code:"7471bbc5-76f0-4bb9-aad6-dd21fb68a0c8",account_code_live:"7471bbc5-76f0-4bb9-aad6-dd21fb68a0c8",account_code_testing:"56fc6485-6015-4c0b-b8ee-3fb687a107e6",status:"ACTIVE",active:!0,principal:!1,name:"Mock Account",organization_code:"daff0d16-9e94-45d4-8f9f-fe70a6d3bb3c",created_at:null,updated_at:null,user_account_code:"92f73a2c-2a6a-4ccb-85c5-68b61ad52686",role:{id:"rol_sAnEykYxo6e4x2wY",name:"Admin",admin:!0,staff:!0,permission_ids:["manage_accounts"]}},e)},yi=mi(),vi=mi({code:"ebad3a4e-a145-4bc9-9bba-d5d5f2130287",account_code_live:"ebad3a4e-a145-4bc9-9bba-d5d5f2130287",name:"Disabled Account",status:"INACTIVE",active:!1}),bi=[ea.post("/v1/accounts/bulk-disable",function(e){var t=e.request;return n(void 0,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,t.json()];case 1:return e=n.sent(),[2,na.json(e.account_codes.map(function(e){return mi({code:e,status:"INACTIVE",active:!1})}))]}})})}),ea.post("/v1/accounts/bulk-enable",function(e){var t=e.request;return n(void 0,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,t.json()];case 1:return e=n.sent(),[2,na.json(e.account_codes.map(function(e){return mi({code:e,status:"ACTIVE",active:!0})}))]}})})}),ea.get("/v1/accounts/by-organization",function(e){var t=e.request,n="true"===new URL(t.url).searchParams.get("includeDisabled");return na.json(n?[yi,vi]:[yi])}),ea.get("/v1/accounts/organization/:organizationCode",function(e){var t=e.request,n="true"===new URL(t.url).searchParams.get("includeDisabled");return na.json(n?[yi,vi]:[yi])})],ki=[ea.get("".concat("https://dev.y.uno/dashboard-bff/api","/mfa/status"),function(){return na.json({mfa_active:!0,factor_id:"auth_factor_123"})})],wi=[ea.get("".concat("https://dev.y.uno/dashboard-bff/api","/hidden-fields"),function(e){var t=e.request,n=new URL(t.url).searchParams.get("scope");return n?na.json([{scope:n,fields:[]}]):na.json([])})],_i=e(e(e(e(e(e(e(e(e(e([],la,!0),va,!0),Ga,!0),Ya,!0),di,!0),hi,!0),gi,!0),bi,!0),ki,!0),wi,!0),Ei=function(...e){return new _o(...e)}.apply(void 0,_i),xi="MSW_ENABLED";function Si(e){e?(localStorage.setItem(xi,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(xi),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function Ci(){return"true"===localStorage.getItem(xi)}function Ii(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return Si(!0)},window.disableMSW=function(){return Si(!1)},window.isMSWEnabled=Ci);const{toString:Ri}=Object.prototype,{getPrototypeOf:Ti}=Object,{iterator:Oi,toStringTag:Ai}=Symbol,Pi=(ji=Object.create(null),e=>{const t=Ri.call(e);return ji[t]||(ji[t]=t.slice(8,-1).toLowerCase())});var ji;const Di=e=>(e=e.toLowerCase(),t=>Pi(t)===e),Li=e=>t=>typeof t===e,{isArray:zi}=Array,qi=Li("undefined");function Ni(e){return null!==e&&!qi(e)&&null!==e.constructor&&!qi(e.constructor)&&Bi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ui=Di("ArrayBuffer");const Mi=Li("string"),Bi=Li("function"),Fi=Li("number"),Hi=e=>null!==e&&"object"==typeof e,Wi=e=>{if("object"!==Pi(e))return!1;const t=Ti(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Ai in e||Oi in e)},Gi=Di("Date"),Vi=Di("File"),Ki=Di("Blob"),$i=Di("FileList");const Qi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Yi=void 0!==Qi.FormData?Qi.FormData:void 0,Ji=Di("URLSearchParams"),[Zi,Xi,es,ts]=["ReadableStream","Request","Response","Headers"].map(Di);function ns(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),zi(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Ni(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function rs(e,t){if(Ni(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const os="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,as=e=>!qi(e)&&e!==os;const is=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Ti(Uint8Array)),ss=Di("HTMLFormElement"),cs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),us=Di("RegExp"),ls=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ns(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const ds=Di("AsyncFunction"),ps=(hs="function"==typeof setImmediate,fs=Bi(os.postMessage),hs?setImmediate:fs?(gs=`axios@${Math.random()}`,ms=[],os.addEventListener("message",({source:e,data:t})=>{e===os&&t===gs&&ms.length&&ms.shift()()},!1),e=>{ms.push(e),os.postMessage(gs,"*")}):e=>setTimeout(e));var hs,fs,gs,ms;const ys="undefined"!=typeof queueMicrotask?queueMicrotask.bind(os):"undefined"!=typeof process&&process.nextTick||ps;var vs={isArray:zi,isArrayBuffer:Ui,isBuffer:Ni,isFormData:e=>{let t;return e&&(Yi&&e instanceof Yi||Bi(e.append)&&("formdata"===(t=Pi(e))||"object"===t&&Bi(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ui(e.buffer),t},isString:Mi,isNumber:Fi,isBoolean:e=>!0===e||!1===e,isObject:Hi,isPlainObject:Wi,isEmptyObject:e=>{if(!Hi(e)||Ni(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Zi,isRequest:Xi,isResponse:es,isHeaders:ts,isUndefined:qi,isDate:Gi,isFile:Vi,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Ki,isRegExp:us,isFunction:Bi,isStream:e=>Hi(e)&&Bi(e.pipe),isURLSearchParams:Ji,isTypedArray:is,isFileList:$i,forEach:ns,merge:function e(){const{caseless:t,skipUndefined:n}=as(this)&&this||{},r={},o=(o,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=t&&rs(r,a)||a;Wi(r[i])&&Wi(o)?r[i]=e(r[i],o):Wi(o)?r[i]=e({},o):zi(o)?r[i]=o.slice():n&&qi(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ns(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(ns(t,(t,r)=>{n&&Bi(t)?Object.defineProperty(e,r,{value:Ii(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Ti(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Pi,kindOfTest:Di,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(zi(e))return e;let t=e.length;if(!Fi(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Oi]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ss,hasOwnProperty:cs,hasOwnProp:cs,reduceDescriptors:ls,freezeMethods:e=>{ls(e,(t,n)=>{if(Bi(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Bi(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return zi(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:rs,global:os,isContextDefined:as,isSpecCompliantForm:function(e){return!!(e&&Bi(e.append)&&"FormData"===e[Ai]&&e[Oi])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Hi(e)){if(t.indexOf(e)>=0)return;if(Ni(e))return e;if(!("toJSON"in e)){t[r]=e;const o=zi(e)?[]:{};return ns(e,(e,t)=>{const a=n(e,r+1);!qi(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ds,isThenable:e=>e&&(Hi(e)||Bi(e))&&Bi(e.then)&&Bi(e.catch),setImmediate:ps,asap:ys,isIterable:e=>null!=e&&Bi(e[Oi])};class bs extends Error{static from(e,t,n,r,o,a){const i=new bs(e.message,t||e.code,n,r,o);return i.cause=e,i.name=e.name,null!=e.status&&null==i.status&&(i.status=e.status),a&&Object.assign(i,a),i}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vs.toJSONObject(this.config),code:this.code,status:this.status}}}bs.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",bs.ERR_BAD_OPTION="ERR_BAD_OPTION",bs.ECONNABORTED="ECONNABORTED",bs.ETIMEDOUT="ETIMEDOUT",bs.ERR_NETWORK="ERR_NETWORK",bs.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",bs.ERR_DEPRECATED="ERR_DEPRECATED",bs.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",bs.ERR_BAD_REQUEST="ERR_BAD_REQUEST",bs.ERR_CANCELED="ERR_CANCELED",bs.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",bs.ERR_INVALID_URL="ERR_INVALID_URL";var ks=bs;function ws(e){return vs.isPlainObject(e)||vs.isArray(e)}function _s(e){return vs.endsWith(e,"[]")?e.slice(0,-2):e}function Es(e,t,n){return e?e.concat(t).map(function(e,t){return e=_s(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const xs=vs.toFlatObject(vs,{},null,function(e){return/^is[A-Z]/.test(e)});function Ss(e,t,n){if(!vs.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=vs.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!vs.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&vs.isSpecCompliantForm(t);if(!vs.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(vs.isDate(e))return e.toISOString();if(vs.isBoolean(e))return e.toString();if(!s&&vs.isBlob(e))throw new ks("Blob is not supported. Use a Buffer instead.");return vs.isArrayBuffer(e)||vs.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(vs.isReactNative(t)&&vs.isReactNativeBlob(e))return t.append(Es(o,n,a),c(e)),!1;if(e&&!o&&"object"==typeof e)if(vs.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(vs.isArray(e)&&function(e){return vs.isArray(e)&&!e.some(ws)}(e)||(vs.isFileList(e)||vs.endsWith(n,"[]"))&&(s=vs.toArray(e)))return n=_s(n),s.forEach(function(e,r){!vs.isUndefined(e)&&null!==e&&t.append(!0===i?Es([n],r,a):null===i?n:n+"[]",c(e))}),!1;return!!ws(e)||(t.append(Es(o,n,a),c(e)),!1)}const l=[],d=Object.assign(xs,{defaultVisitor:u,convertValue:c,isVisitable:ws});if(!vs.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!vs.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),vs.forEach(n,function(n,a){!0===(!(vs.isUndefined(n)||null===n)&&o.call(t,n,vs.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),l.pop()}}(e),t}function Cs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Is(e,t){this._pairs=[],e&&Ss(e,this,t)}const Rs=Is.prototype;function Ts(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Os(e,t,n){if(!t)return e;const r=n&&n.encode||Ts,o=vs.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let i;if(i=a?a(t,o):vs.isURLSearchParams(t)?t.toString():new Is(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Rs.append=function(e,t){this._pairs.push([e,t])},Rs.toString=function(e){const t=e?function(t){return e.call(this,t,Cs)}:Cs;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var As=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){vs.forEach(this.handlers,function(t){null!==t&&e(t)})}},Ps={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},js={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Is,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ds="undefined"!=typeof window&&"undefined"!=typeof document,Ls="object"==typeof navigator&&navigator||void 0,zs=Ds&&(!Ls||["ReactNative","NativeScript","NS"].indexOf(Ls.product)<0),qs="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ns=Ds&&window.location.href||"http://localhost";var Us={...Object.freeze({__proto__:null,hasBrowserEnv:Ds,hasStandardBrowserEnv:zs,hasStandardBrowserWebWorkerEnv:qs,navigator:Ls,origin:Ns}),...js};function Ms(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&vs.isArray(r)?r.length:a,s)return vs.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&vs.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&vs.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(vs.isFormData(e)&&vs.isFunction(e.entries)){const n={};return vs.forEachEntry(e,(e,r)=>{t(function(e){return vs.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Bs={transitional:Ps,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=vs.isObject(e);o&&vs.isHTMLForm(e)&&(e=new FormData(e));if(vs.isFormData(e))return r?JSON.stringify(Ms(e)):e;if(vs.isArrayBuffer(e)||vs.isBuffer(e)||vs.isStream(e)||vs.isFile(e)||vs.isBlob(e)||vs.isReadableStream(e))return e;if(vs.isArrayBufferView(e))return e.buffer;if(vs.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ss(e,new Us.classes.URLSearchParams,{visitor:function(e,t,n,r){return Us.isNode&&vs.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=vs.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ss(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(vs.isString(e))try{return(t||JSON.parse)(e),vs.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Bs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(vs.isResponse(e)||vs.isReadableStream(e))return e;if(e&&vs.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw ks.from(e,ks.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Us.classes.FormData,Blob:Us.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vs.forEach(["delete","get","head","post","put","patch"],e=>{Bs.headers[e]={}});var Fs=Bs;const Hs=vs.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Ws=Symbol("internals");function Gs(e,t){if(!1!==e&&null!=e)if(vs.isArray(e))e.forEach(e=>Gs(e,t));else if(!(e=>!/[\r\n]/.test(e))(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}function Vs(e){return e&&String(e).trim().toLowerCase()}function Ks(e){return!1===e||null==e?e:vs.isArray(e)?e.map(Ks):function(e){let t=e.length;for(;t>0;){const n=e.charCodeAt(t-1);if(10!==n&&13!==n)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function $s(e,t,n,r,o){return vs.isFunction(r)?r.call(this,t,n):(o&&(t=n),vs.isString(t)?vs.isString(r)?-1!==t.indexOf(r):vs.isRegExp(r)?r.test(t):void 0:void 0)}class Qs{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Vs(t);if(!o)throw new Error("header name must be a non-empty string");const a=vs.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(Gs(e,t),r[a||t]=Ks(e))}const a=(e,t)=>vs.forEach(e,(e,n)=>o(e,n,t));if(vs.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(vs.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Hs[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(vs.isObject(e)&&vs.isIterable(e)){let n,r,o={};for(const t of e){if(!vs.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?vs.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Vs(e)){const n=vs.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(vs.isFunction(t))return t.call(this,e,n);if(vs.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Vs(e)){const n=vs.findKey(this,e);return!(!n||void 0===this[n]||t&&!$s(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Vs(e)){const o=vs.findKey(n,e);!o||t&&!$s(0,n[o],o,t)||(delete n[o],r=!0)}}return vs.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!$s(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return vs.forEach(this,(r,o)=>{const a=vs.findKey(n,o);if(a)return t[a]=Ks(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Ks(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return vs.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&vs.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ws]=this[Ws]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Vs(e);t[r]||(!function(e,t){const n=vs.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return vs.isArray(e)?e.forEach(r):r(e),this}}Qs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vs.reduceDescriptors(Qs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),vs.freezeMethods(Qs);var Ys=Qs;function Js(e,t){const n=this||Fs,r=t||n,o=Ys.from(r.headers);let a=r.data;return vs.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Zs(e){return!(!e||!e.__CANCEL__)}var Xs=class extends ks{constructor(e,t,n){super(null==e?"canceled":e,ks.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function ec(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ks("Request failed with status code "+n.status,[ks.ERR_BAD_REQUEST,ks.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const tc=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[i];o||(o=c),n[a]=s,r[a]=c;let l=i,d=0;for(;l!==a;)d+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,c=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},nc=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rc=e=>(...t)=>vs.asap(()=>e(...t));var oc=Us.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Us.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Us.origin),Us.navigator&&/(msie|trident)/i.test(Us.navigator.userAgent)):()=>!0,ac=Us.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];vs.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),vs.isString(r)&&s.push(`path=${r}`),vs.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),vs.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function ic(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const sc=e=>e instanceof Ys?{...e}:e;function cc(e,t){t=t||{};const n={};function r(e,t,n,r){return vs.isPlainObject(e)&&vs.isPlainObject(t)?vs.merge.call({caseless:r},e,t):vs.isPlainObject(t)?vs.merge({},t):vs.isArray(t)?t.slice():t}function o(e,t,n,o){return vs.isUndefined(t)?vs.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!vs.isUndefined(t))return r(void 0,t)}function i(e,t){return vs.isUndefined(t)?vs.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(sc(e),sc(t),0,!0)};return vs.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=vs.hasOwnProp(c,r)?c[r]:o,i=a(e[r],t[r],r);vs.isUndefined(i)&&a!==s||(n[r]=i)}),n}var uc=e=>{const t=cc({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Ys.from(i),t.url=Os(ic(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),vs.isFormData(n))if(Us.hasStandardBrowserEnv||Us.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(vs.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(Us.hasStandardBrowserEnv&&(r&&vs.isFunction(r)&&(r=r(t)),r||!1!==r&&oc(t.url))){const e=o&&a&&ac.read(a);e&&i.set(o,e)}return t};var lc="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=uc(e);let o=r.data;const a=Ys.from(r.headers).normalize();let i,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=r;function f(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=Ys.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());ec(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new ks("Request aborted",ks.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new ks(r,ks.ERR_NETWORK,e,g);o.event=t||null,n(o),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ps;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ks(t,o.clarifyTimeoutError?ks.ETIMEDOUT:ks.ECONNABORTED,e,g)),g=null},void 0===o&&a.setContentType(null),"setRequestHeader"in g&&vs.forEach(a.toJSON(),function(e,t){g.setRequestHeader(t,e)}),vs.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),h&&([c,l]=tc(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([s,u]=tc(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{g&&(n(!t||t.type?new Xs(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===Us.protocols.indexOf(y)?n(new ks("Unsupported protocol "+y+":",ks.ERR_BAD_REQUEST,e)):g.send(o||null)})};var dc=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ks?t:new Xs(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new ks(`timeout of ${t}ms exceeded`,ks.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>vs.asap(i),s}};const pc=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},hc=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},fc=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of hc(e))yield*pc(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:gc}=vs,mc=(({Request:e,Response:t})=>({Request:e,Response:t}))(vs.global),{ReadableStream:yc,TextEncoder:vc}=vs.global,bc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},kc=e=>{e=vs.merge.call({skipUndefined:!0},mc,e);const{fetch:t,Request:n,Response:r}=e,o=t?gc(t):"function"==typeof fetch,a=gc(n),i=gc(r);if(!o)return!1;const s=o&&gc(yc),c=o&&("function"==typeof vc?(e=>t=>e.encode(t))(new vc):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=a&&s&&bc(()=>{let e=!1;const t=new yc,r=new n(Us.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!r}),l=i&&s&&bc(()=>vs.isReadableStream(new r("").body)),d={stream:l&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ks(`Response type '${e}' is not supported`,ks.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=vs.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(vs.isBlob(e))return e.size;if(vs.isSpecCompliantForm(e)){const t=new n(Us.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return vs.isArrayBufferView(e)||vs.isArrayBuffer(e)?e.byteLength:(vs.isURLSearchParams(e)&&(e+=""),vs.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:s,signal:c,cancelToken:h,timeout:f,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:k}=uc(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let _=dc([c,h&&h.toAbortSignal()],f),E=null;const x=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let S;try{if(m&&u&&"get"!==i&&"head"!==i&&0!==(S=await p(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(vs.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=nc(S,tc(rc(m)));s=fc(t.body,65536,e,n)}}vs.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,c={...k,signal:_,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};E=a&&new n(o,c);let h=await(a?w(E,k):w(o,c));const f=l&&("stream"===y||"response"===y);if(l&&(g||f&&x)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});const t=vs.toFiniteNumber(h.headers.get("content-length")),[n,o]=g&&nc(t,tc(rc(g),!0))||[];h=new r(fc(h.body,65536,n,()=>{o&&o(),x&&x()}),e)}y=y||"text";let C=await d[vs.findKey(d,y)||"text"](h,e);return!f&&x&&x(),await new Promise((t,n)=>{ec(t,n,{data:C,headers:Ys.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:E})})}catch(t){if(x&&x(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ks("Network Error",ks.ERR_NETWORK,e,E,t&&t.response),{cause:t.cause||t});throw ks.from(t,t&&t.code,e,E,t&&t.response)}}},wc=new Map,_c=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,c=a.length,u=wc;for(;c--;)i=a[c],s=u.get(i),void 0===s&&u.set(i,s=c?new Map:kc(t)),u=s;return s};_c();const Ec={http:null,xhr:lc,fetch:{get:_c}};vs.forEach(Ec,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const xc=e=>`- ${e}`,Sc=e=>vs.isFunction(e)||null===e||!1===e;var Cc={getAdapter:function(e,t){e=vs.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!Sc(r)&&(o=Ec[(n=String(r)).toLowerCase()],void 0===o))throw new ks(`Unknown adapter '${n}'`);if(o&&(vs.isFunction(o)||(o=o.get(t))))break;a[n||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(xc).join("\n"):" "+xc(e[0]):"as no adapter specified";throw new ks("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Ec};function Ic(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xs(null,e)}function Rc(e){Ic(e),e.headers=Ys.from(e.headers),e.data=Js.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Cc.getAdapter(e.adapter||Fs.adapter,e)(e).then(function(t){return Ic(e),t.data=Js.call(e,e.transformResponse,t),t.headers=Ys.from(t.headers),t},function(t){return Zs(t)||(Ic(e),t&&t.response&&(t.response.data=Js.call(e,e.transformResponse,t.response),t.response.headers=Ys.from(t.response.headers))),Promise.reject(t)})}const Tc="1.15.0",Oc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Oc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ac={};Oc.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Tc+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new ks(r(o," has been removed"+(t?" in "+t:"")),ks.ERR_DEPRECATED);return t&&!Ac[o]&&(Ac[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},Oc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Pc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ks("options must be an object",ks.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new ks("option "+a+" must be "+n,ks.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ks("Unknown option "+a,ks.ERR_BAD_OPTION)}},validators:Oc};const jc=Pc.validators;let Dc=class{constructor(e){this.defaults=e||{},this.interceptors={request:new As,response:new As}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=cc(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Pc.assertOptions(n,{silentJSONParsing:jc.transitional(jc.boolean),forcedJSONParsing:jc.transitional(jc.boolean),clarifyTimeoutError:jc.transitional(jc.boolean),legacyInterceptorReqResOrdering:jc.transitional(jc.boolean)},!1),null!=r&&(vs.isFunction(r)?t.paramsSerializer={serialize:r}:Pc.assertOptions(r,{encode:jc.function,serialize:jc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Pc.assertOptions(t,{baseUrl:jc.spelling("baseURL"),withXsrfToken:jc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&vs.merge(o.common,o[t.method]);o&&vs.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Ys.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Ps;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[Rc.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=i.length;let p=t;for(;d<l;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=Rc.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return Os(ic((e=cc(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};vs.forEach(["delete","get","head","options"],function(e){Dc.prototype[e]=function(t,n){return this.request(cc(n||{},{method:e,url:t,data:(n||{}).data}))}}),vs.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(cc(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Dc.prototype[e]=t(),Dc.prototype[e+"Form"]=t(!0)});var Lc=Dc;class zc{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Xs(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new zc(function(t){e=t}),cancel:e}}}var qc=zc;const Nc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Nc).forEach(([e,t])=>{Nc[t]=e});var Uc=Nc;const Mc=function e(t){const n=new Lc(t),r=Ii(Lc.prototype.request,n);return vs.extend(r,Lc.prototype,n,{allOwnKeys:!0}),vs.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(cc(t,n))},r}(Fs);Mc.Axios=Lc,Mc.CanceledError=Xs,Mc.CancelToken=qc,Mc.isCancel=Zs,Mc.VERSION=Tc,Mc.toFormData=Ss,Mc.AxiosError=ks,Mc.Cancel=Mc.CanceledError,Mc.all=function(e){return Promise.all(e)},Mc.spread=function(e){return function(t){return e.apply(null,t)}},Mc.isAxiosError=function(e){return vs.isObject(e)&&!0===e.isAxiosError},Mc.mergeConfig=cc,Mc.AxiosHeaders=Ys,Mc.formToJSON=e=>Ms(vs.isHTMLForm(e)?new FormData(e):e),Mc.getAdapter=Cc.getAdapter,Mc.HttpStatusCode=Uc,Mc.default=Mc;var Bc=Mc,Fc=function(e){var t=[];return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];if(Array.isArray(r)){var o=r.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(o))}else null!=r&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(r))))}),t.join("&")},Hc=function(e){function n(n){var r,o,a,i,s=this;return(s=e.call(this,n)||this).token="",null===(o=null===(r=s.instance)||void 0===r?void 0:r.interceptors)||void 0===o||o.request.use(function(e){return t(t({},e),{defaults:{headers:t(t({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.response.use(function(e){return t({},e)},function(e){return Promise.reject(e)}),s}return o(n,e),n.prototype.getToken=function(){return"Bearer ".concat(this.token)},n.prototype.setToken=function(e){this.token=e},n.prototype.getUri=function(e){return this.instance.getUri(e)},n.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Bc.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},n.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},n.prototype.get=function(e,t){return this.instance.get(e,t)},n.prototype.options=function(e,t){return this.instance.options(e,t)},n.prototype.delete=function(e,t){return this.instance.delete(e,t)},n.prototype.head=function(e,t){return this.instance.head(e,t)},n.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},n.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},n.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},n.prototype.success=function(e){return null==e?void 0:e.data},n.prototype.error=function(e){throw e},n}(function(e){this.instance=Bc.create(e)}),Wc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Gc(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Vc=TypeError,Kc=Gc(Object.freeze({__proto__:null,default:{}})),$c="function"==typeof Map&&Map.prototype,Qc=Object.getOwnPropertyDescriptor&&$c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Yc=$c&&Qc&&"function"==typeof Qc.get?Qc.get:null,Jc=$c&&Map.prototype.forEach,Zc="function"==typeof Set&&Set.prototype,Xc=Object.getOwnPropertyDescriptor&&Zc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,eu=Zc&&Xc&&"function"==typeof Xc.get?Xc.get:null,tu=Zc&&Set.prototype.forEach,nu="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,ru="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,ou="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,au=Boolean.prototype.valueOf,iu=Object.prototype.toString,su=Function.prototype.toString,cu=String.prototype.match,uu=String.prototype.slice,lu=String.prototype.replace,du=String.prototype.toUpperCase,pu=String.prototype.toLowerCase,hu=RegExp.prototype.test,fu=Array.prototype.concat,gu=Array.prototype.join,mu=Array.prototype.slice,yu=Math.floor,vu="function"==typeof BigInt?BigInt.prototype.valueOf:null,bu=Object.getOwnPropertySymbols,ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,wu="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_u="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wu||"symbol")?Symbol.toStringTag:null,Eu=Object.prototype.propertyIsEnumerable,xu=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Su(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||hu.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-yu(-e):yu(e);if(r!==e){var o=String(r),a=uu.call(t,o.length+1);return lu.call(o,n,"$&_")+"."+lu.call(lu.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return lu.call(t,n,"$&_")}var Cu=Kc,Iu=Cu.custom,Ru=qu(Iu)?Iu:null,Tu={__proto__:null,double:'"',single:"'"},Ou={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Au=function e(t,n,r,o){var a=n||{};if(Uu(a,"quoteStyle")&&!Uu(Tu,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Uu(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!Uu(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Uu(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Uu(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Fu(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?Su(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?Su(t,u):u}var l=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=l&&l>0&&"object"==typeof t)return Lu(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=gu.call(Array(e.indent+1)," ")}return{base:n,prev:gu.call(Array(t+1),n)}}(a,r);if(void 0===o)o=[];else if(Bu(o,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(o=mu.call(o)).push(n),i){var s={depth:a.depth};return Uu(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,r+1,o)}return e(t,a,r+1,o)}if("function"==typeof t&&!zu(t)){var h=function(e){if(e.name)return e.name;var t=cu.call(su.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=$u(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+gu.call(f,", ")+" }":"")}if(qu(t)){var g=wu?lu.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ku.call(t);return"object"!=typeof t||wu?g:Wu(g)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var m="<"+pu.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)m+=" "+y[v].name+"="+Pu(ju(y[v].value),"double",a);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+pu.call(String(t.nodeName))+">"}if(Lu(t)){if(0===t.length)return"[]";var b=$u(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(Bu(e[t],"\n")>=0)return!1;return!0}(b)?"["+Ku(b,d)+"]":"[ "+gu.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Mu(e)&&Du(e)}(t)){var k=$u(t,p);return"cause"in Error.prototype||!("cause"in t)||Eu.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+gu.call(k,", ")+" }":"{ ["+String(t)+"] "+gu.call(fu.call("[cause]: "+p(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(Ru&&"function"==typeof t[Ru]&&Cu)return Cu(t,{depth:l-r});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Yc||!e||"object"!=typeof e)return!1;try{Yc.call(e);try{eu.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var w=[];return Jc&&Jc.call(t,function(e,n){w.push(p(n,t,!0)+" => "+p(e,t))}),Vu("Map",Yc.call(t),w,d)}if(function(e){if(!eu||!e||"object"!=typeof e)return!1;try{eu.call(e);try{Yc.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var _=[];return tu&&tu.call(t,function(e){_.push(p(e,t))}),Vu("Set",eu.call(t),_,d)}if(function(e){if(!nu||!e||"object"!=typeof e)return!1;try{nu.call(e,nu);try{ru.call(e,ru)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Gu("WeakMap");if(function(e){if(!ru||!e||"object"!=typeof e)return!1;try{ru.call(e,ru);try{nu.call(e,nu)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Gu("WeakSet");if(function(e){if(!ou||!e||"object"!=typeof e)return!1;try{return ou.call(e),!0}catch(e){}return!1}(t))return Gu("WeakRef");if(function(e){return"[object Number]"===Mu(e)&&Du(e)}(t))return Wu(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!vu)return!1;try{return vu.call(e),!0}catch(e){}return!1}(t))return Wu(p(vu.call(t)));if(function(e){return"[object Boolean]"===Mu(e)&&Du(e)}(t))return Wu(au.call(t));if(function(e){return"[object String]"===Mu(e)&&Du(e)}(t))return Wu(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Wc&&t===Wc)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Mu(e)&&Du(e)}(t)&&!zu(t)){var E=$u(t,p),x=xu?xu(t)===Object.prototype:t instanceof Object||t.constructor===Object,S=t instanceof Object?"":"null prototype",C=!x&&_u&&Object(t)===t&&_u in t?uu.call(Mu(t),8,-1):S?"Object":"",I=(x||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(C||S?"["+gu.call(fu.call([],C||[],S||[]),": ")+"] ":"");return 0===E.length?I+"{}":d?I+"{"+Ku(E,d)+"}":I+"{ "+gu.call(E,", ")+" }"}return String(t)};function Pu(e,t,n){var r=n.quoteStyle||t,o=Tu[r];return o+e+o}function ju(e){return lu.call(String(e),/"/g,"&quot;")}function Du(e){return!_u||!("object"==typeof e&&(_u in e||void 0!==e[_u]))}function Lu(e){return"[object Array]"===Mu(e)&&Du(e)}function zu(e){return"[object RegExp]"===Mu(e)&&Du(e)}function qu(e){if(wu)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!ku)return!1;try{return ku.call(e),!0}catch(e){}return!1}var Nu=Object.prototype.hasOwnProperty||function(e){return e in this};function Uu(e,t){return Nu.call(e,t)}function Mu(e){return iu.call(e)}function Bu(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Fu(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Fu(uu.call(e,0,t.maxStringLength),t)+r}var o=Ou[t.quoteStyle||"single"];return o.lastIndex=0,Pu(lu.call(lu.call(e,o,"\\$1"),/[\x00-\x1f]/g,Hu),"single",t)}function Hu(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+du.call(t.toString(16))}function Wu(e){return"Object("+e+")"}function Gu(e){return e+" { ? }"}function Vu(e,t,n,r){return e+" ("+t+") {"+(r?Ku(n,r):gu.call(n,", "))+"}"}function Ku(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+gu.call(e,","+n)+"\n"+t.prev}function $u(e,t){var n=Lu(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Uu(e,o)?t(e[o],e):""}var a,i="function"==typeof bu?bu(e):[];if(wu){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)Uu(e,c)&&(n&&String(Number(c))===c&&c<e.length||wu&&a["$"+c]instanceof Symbol||(hu.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof bu)for(var u=0;u<i.length;u++)Eu.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var Qu=Au,Yu=Vc,Ju=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r},Zu=Object,Xu=Error,el=EvalError,tl=RangeError,nl=ReferenceError,rl=SyntaxError,ol=URIError,al=Math.abs,il=Math.floor,sl=Math.max,cl=Math.min,ul=Math.pow,ll=Math.round,dl=Number.isNaN||function(e){return e!=e},pl=Object.getOwnPropertyDescriptor;if(pl)try{pl([],"length")}catch(e){pl=null}var hl=pl,fl=Object.defineProperty||!1;if(fl)try{fl({},"a",{value:1})}catch(e){fl=!1}var gl,ml,yl,vl,bl,kl,wl,_l,El,xl,Sl,Cl,Il,Rl,Tl,Ol,Al=fl;function Pl(){return kl?bl:(kl=1,bl="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function jl(){return _l?wl:(_l=1,wl=Zu.getPrototypeOf||null)}function Dl(){if(xl)return El;xl=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};return El=function(r){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),s=t(0,o.length-i.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(a=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=o.apply(this,n(i,arguments));return Object(e)===e?e:this}return o.apply(r,n(i,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,a.prototype=new l,l.prototype=null}return a},El}function Ll(){if(Cl)return Sl;Cl=1;var e=Dl();return Sl=Function.prototype.bind||e}function zl(){return Rl?Il:(Rl=1,Il=Function.prototype.call)}function ql(){return Ol?Tl:(Ol=1,Tl=Function.prototype.apply)}var Nl,Ul,Ml,Bl,Fl,Hl,Wl,Gl="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Vl=Ll(),Kl=ql(),$l=zl(),Ql=Gl||Vl.call($l,Kl),Yl=Ll(),Jl=Vc,Zl=zl(),Xl=Ql,ed=function(e){if(e.length<1||"function"!=typeof e[0])throw new Jl("a function is required");return Xl(Yl,Zl,e)};var td=Zu,nd=Xu,rd=el,od=tl,ad=nl,id=rl,sd=Vc,cd=ol,ud=al,ld=il,dd=sl,pd=cl,hd=ul,fd=ll,gd=function(e){return dl(e)||0===e?e:e<0?-1:1},md=Function,yd=function(e){try{return md('"use strict"; return ('+e+").constructor;")()}catch(e){}},vd=hl,bd=Al,kd=function(){throw new sd},wd=vd?function(){try{return kd}catch(e){try{return vd(arguments,"callee").get}catch(e){return kd}}}():kd,_d=function(){if(vl)return yl;vl=1;var e="undefined"!=typeof Symbol&&Symbol,t=ml?gl:(ml=1,gl=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return yl=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Ed=function(){if(Bl)return Ml;Bl=1;var e=Pl(),t=jl(),n=function(){if(Ul)return Nl;Ul=1;var e,t=ed,n=hl;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Nl=r&&"function"==typeof r.get?t([r.get]):"function"==typeof a&&function(e){return a(null==e?e:o(e))}}();return Ml=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),xd=jl(),Sd=Pl(),Cd=ql(),Id=zl(),Rd={},Td="undefined"!=typeof Uint8Array&&Ed?Ed(Uint8Array):Wl,Od={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Wl:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Wl:ArrayBuffer,"%ArrayIteratorPrototype%":_d&&Ed?Ed([][Symbol.iterator]()):Wl,"%AsyncFromSyncIteratorPrototype%":Wl,"%AsyncFunction%":Rd,"%AsyncGenerator%":Rd,"%AsyncGeneratorFunction%":Rd,"%AsyncIteratorPrototype%":Rd,"%Atomics%":"undefined"==typeof Atomics?Wl:Atomics,"%BigInt%":"undefined"==typeof BigInt?Wl:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Wl:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Wl:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Wl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nd,"%eval%":eval,"%EvalError%":rd,"%Float16Array%":"undefined"==typeof Float16Array?Wl:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Wl:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Wl:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Wl:FinalizationRegistry,"%Function%":md,"%GeneratorFunction%":Rd,"%Int8Array%":"undefined"==typeof Int8Array?Wl:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Wl:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Wl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_d&&Ed?Ed(Ed([][Symbol.iterator]())):Wl,"%JSON%":"object"==typeof JSON?JSON:Wl,"%Map%":"undefined"==typeof Map?Wl:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_d&&Ed?Ed((new Map)[Symbol.iterator]()):Wl,"%Math%":Math,"%Number%":Number,"%Object%":td,"%Object.getOwnPropertyDescriptor%":vd,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Wl:Promise,"%Proxy%":"undefined"==typeof Proxy?Wl:Proxy,"%RangeError%":od,"%ReferenceError%":ad,"%Reflect%":"undefined"==typeof Reflect?Wl:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Wl:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_d&&Ed?Ed((new Set)[Symbol.iterator]()):Wl,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Wl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_d&&Ed?Ed(""[Symbol.iterator]()):Wl,"%Symbol%":_d?Symbol:Wl,"%SyntaxError%":id,"%ThrowTypeError%":wd,"%TypedArray%":Td,"%TypeError%":sd,"%Uint8Array%":"undefined"==typeof Uint8Array?Wl:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Wl:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Wl:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Wl:Uint32Array,"%URIError%":cd,"%WeakMap%":"undefined"==typeof WeakMap?Wl:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Wl:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Wl:WeakSet,"%Function.prototype.call%":Id,"%Function.prototype.apply%":Cd,"%Object.defineProperty%":bd,"%Object.getPrototypeOf%":xd,"%Math.abs%":ud,"%Math.floor%":ld,"%Math.max%":dd,"%Math.min%":pd,"%Math.pow%":hd,"%Math.round%":fd,"%Math.sign%":gd,"%Reflect.getPrototypeOf%":Sd};if(Ed)try{null.error}catch(e){var Ad=Ed(Ed(e));Od["%Error.prototype%"]=Ad}var Pd,jd,Dd,Ld,zd,qd,Nd,Ud,Md,Bd,Fd,Hd,Wd,Gd=function e(t){var n;if("%AsyncFunction%"===t)n=yd("async function () {}");else if("%GeneratorFunction%"===t)n=yd("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=yd("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&Ed&&(n=Ed(o.prototype))}return Od[t]=n,n},Vd={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Kd=Ll(),$d=function(){if(Hl)return Fl;Hl=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Ll();return Fl=n.call(e,t)}(),Qd=Kd.call(Id,Array.prototype.concat),Yd=Kd.call(Cd,Array.prototype.splice),Jd=Kd.call(Id,String.prototype.replace),Zd=Kd.call(Id,String.prototype.slice),Xd=Kd.call(Id,RegExp.prototype.exec),ep=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tp=/\\(\\)?/g,np=function(e,t){var n,r=e;if($d(Vd,r)&&(r="%"+(n=Vd[r])[0]+"%"),$d(Od,r)){var o=Od[r];if(o===Rd&&(o=Gd(r)),void 0===o&&!t)throw new sd("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new id("intrinsic "+e+" does not exist!")},rp=function(e,t){if("string"!=typeof e||0===e.length)throw new sd("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new sd('"allowMissing" argument must be a boolean');if(null===Xd(/^%?[^%]*%?$/,e))throw new id("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Zd(e,0,1),n=Zd(e,-1);if("%"===t&&"%"!==n)throw new id("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new id("invalid intrinsic syntax, expected opening `%`");var r=[];return Jd(e,ep,function(e,t,n,o){r[r.length]=n?Jd(o,tp,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=np("%"+r+"%",t),a=o.name,i=o.value,s=!1,c=o.alias;c&&(r=c[0],Yd(n,Qd([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var d=n[u],p=Zd(d,0,1),h=Zd(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new id("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),$d(Od,a="%"+(r+="."+d)+"%"))i=Od[a];else if(null!=i){if(!(d in i)){if(!t)throw new sd("base intrinsic for "+e+" exists, but the property is not available.");return}if(vd&&u+1>=n.length){var f=vd(i,d);i=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:i[d]}else l=$d(i,d),i=i[d];l&&!s&&(Od[a]=i)}}return i},op=rp,ap=ed,ip=ap([op("%String.prototype.indexOf%")]),sp=function(e,t){var n=op(e,!!t);return"function"==typeof n&&ip(e,".prototype.")>-1?ap([n]):n},cp=sp,up=Au,lp=Vc,dp=rp("%Map%",!0),pp=cp("Map.prototype.get",!0),hp=cp("Map.prototype.set",!0),fp=cp("Map.prototype.has",!0),gp=cp("Map.prototype.delete",!0),mp=cp("Map.prototype.size",!0),yp=!!dp&&function(){var e,t={assert:function(e){if(!t.has(e))throw new lp("Side channel does not contain "+up(e))},delete:function(t){if(e){var n=gp(e,t);return 0===mp(e)&&(e=void 0),n}return!1},get:function(t){if(e)return pp(e,t)},has:function(t){return!!e&&fp(e,t)},set:function(t,n){e||(e=new dp),hp(e,t,n)}};return t},vp=sp,bp=Au,kp=yp,wp=Vc,_p=rp("%WeakMap%",!0),Ep=vp("WeakMap.prototype.get",!0),xp=vp("WeakMap.prototype.set",!0),Sp=vp("WeakMap.prototype.has",!0),Cp=vp("WeakMap.prototype.delete",!0),Ip=Vc,Rp=Au,Tp=(_p?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new wp("Side channel does not contain "+bp(e))},delete:function(n){if(_p&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Cp(e,n)}else if(kp&&t)return t.delete(n);return!1},get:function(n){return _p&&n&&("object"==typeof n||"function"==typeof n)&&e?Ep(e,n):t&&t.get(n)},has:function(n){return _p&&n&&("object"==typeof n||"function"==typeof n)&&e?Sp(e,n):!!t&&t.has(n)},set:function(n,r){_p&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new _p),xp(e,n,r)):kp&&(t||(t=kp()),t.set(n,r))}};return n}:kp)||yp||function(){var e,t={assert:function(e){if(!t.has(e))throw new Yu("Side channel does not contain "+Qu(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return Ju(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=Ju(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Ju(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=Ju(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},Op=function(){var e,t={assert:function(e){if(!t.has(e))throw new Ip("Side channel does not contain "+Rp(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=Tp()),e.set(t,n)}};return t},Ap=String.prototype.replace,Pp=/%20/g,jp="RFC3986",Dp={default:jp,formatters:{RFC1738:function(e){return Ap.call(e,Pp,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:jp},Lp=Dp,zp=Op,qp=Object.prototype.hasOwnProperty,Np=Array.isArray,Up=zp(),Mp=function(e,t){return Up.set(e,t),e},Bp=function(e){return Up.has(e)},Fp=function(e){return Up.get(e)},Hp=function(e,t){Up.set(e,t)},Wp=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),Gp=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},Vp=1024,Kp={arrayToObject:Gp,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t,n,r){if(Bp(e)){var o=Fp(e)+1;return e[o]=t,Hp(e,o),e}var a=[].concat(e,t);return a.length>n?Mp(Gp(a,{plainObjects:r}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t[t.length]={obj:a,prop:c},n[n.length]=u)}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Np(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&(r[r.length]=n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,r,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",s=0;s<a.length;s+=Vp){for(var c=a.length>=Vp?a.slice(s,s+Vp):a,u=[],l=0;l<c.length;++l){var d=c.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===Lp.RFC1738&&(40===d||41===d)?u[u.length]=c.charAt(l):d<128?u[u.length]=Wp[d]:d<2048?u[u.length]=Wp[192|d>>6]+Wp[128|63&d]:d<55296||d>=57344?u[u.length]=Wp[224|d>>12]+Wp[128|d>>6&63]+Wp[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&c.charCodeAt(l)),u[u.length]=Wp[240|d>>18]+Wp[128|d>>12&63]+Wp[128|d>>6&63]+Wp[128|63&d])}i+=u.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:Bp,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:Mp,maybeMap:function(e,t){if(Np(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(Np(t)){var o=t.length;if(r&&"number"==typeof r.arrayLimit&&o>r.arrayLimit)return Mp(Gp(t.concat(n),r),o);t[o]=n}else{if(!t||"object"!=typeof t)return[t,n];if(Bp(t)){var a=Fp(t)+1;t[a]=n,Hp(t,a)}else(r&&(r.plainObjects||r.allowPrototypes)||!qp.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t){if(Bp(n)){for(var i=Object.keys(n),s=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},c=0;c<i.length;c++){s[parseInt(i[c],10)+1]=n[i[c]]}return Mp(s,Fp(n)+1)}var u=[t].concat(n);return r&&"number"==typeof r.arrayLimit&&u.length>r.arrayLimit?Mp(Gp(u,r),u.length-1):u}var l=t;return Np(t)&&!Np(n)&&(l=Gp(t,r)),Np(t)&&Np(n)?(n.forEach(function(n,o){if(qp.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t[t.length]=n}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];if(qp.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,Bp(n)&&!Bp(t)&&Mp(t,Fp(n)),Bp(t)){var i=parseInt(o,10);String(i)===o&&i>=0&&i>Fp(t)&&Hp(t,i)}return t},l)}},$p=Op,Qp=Kp,Yp=Dp,Jp=Object.prototype.hasOwnProperty,Zp={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Xp=Array.isArray,eh=Array.prototype.push,th=function(e,t){eh.apply(e,Xp(t)?t:[t])},nh=Date.prototype.toISOString,rh=Yp.default,oh={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Qp.encode,encodeValuesOnly:!1,filter:void 0,format:rh,formatter:Yp.formatters[rh],indices:!1,serializeDate:function(e){return nh.call(e)},skipNulls:!1,strictNullHandling:!1},ah={},ih=function e(t,n,r,o,a,i,s,c,u,l,d,p,h,f,g,m,y,v){for(var b,k=t,w=v,_=0,E=!1;void 0!==(w=w.get(ah))&&!E;){var x=w.get(t);if(_+=1,void 0!==x){if(x===_)throw new RangeError("Cyclic object value");E=!0}void 0===w.get(ah)&&(_=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=h(k):"comma"===r&&Xp(k)&&(k=Qp.maybeMap(k,function(e){return e instanceof Date?h(e):e})),null===k){if(i)return u&&!m?u(n,oh.encoder,y,"key",f):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Qp.isBuffer(k))return u?[g(m?n:u(n,oh.encoder,y,"key",f))+"="+g(u(k,oh.encoder,y,"value",f))]:[g(n)+"="+g(String(k))];var S,C=[];if(void 0===k)return C;if("comma"===r&&Xp(k))m&&u&&(k=Qp.maybeMap(k,u)),S=[{value:k.length>0?k.join(",")||null:void 0}];else if(Xp(l))S=l;else{var I=Object.keys(k);S=d?I.sort(d):I}var R=c?String(n).replace(/\./g,"%2E"):String(n),T=o&&Xp(k)&&1===k.length?R+"[]":R;if(a&&Xp(k)&&0===k.length)return T+"[]";for(var O=0;O<S.length;++O){var A=S[O],P="object"==typeof A&&A&&void 0!==A.value?A.value:k[A];if(!s||null!==P){var j=p&&c?String(A).replace(/\./g,"%2E"):String(A),D=Xp(k)?"function"==typeof r?r(T,j):T:T+(p?"."+j:"["+j+"]");v.set(t,_);var L=$p();L.set(ah,v),th(C,e(P,D,r,o,a,i,s,c,"comma"===r&&m&&Xp(k)?null:u,l,d,p,h,f,g,m,y,L))}}return C},sh=Kp,ch=Object.prototype.hasOwnProperty,uh=Array.isArray,lh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:sh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},dh=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},ph=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},hh=function(e,t,n,r){if(e){var o=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&ch.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(n),a=o?n.slice(0,o.index):n,i=[];if(a){if(!t.plainObjects&&ch.call(Object.prototype,a)&&!t.allowPrototypes)return;i[i.length]=a}for(var s=0;null!==(o=r.exec(n))&&s<t.depth;){s+=1;var c=o[1].slice(1,-1);if(!t.plainObjects&&ch.call(Object.prototype,c)&&!t.allowPrototypes)return;i[i.length]=o[1]}if(o){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+n.slice(o.index)+"]"}return i}(e,n);if(o)return function(e,t,n,r){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var i=r?t:ph(t,n,o),s=e.length-1;s>=0;--s){var c,u=e[s];if("[]"===u&&n.parseArrays)c=sh.isOverflow(i)?i:n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:sh.combine([],i,n.arrayLimit,n.plainObjects);else{c=n.plainObjects?{__proto__:null}:{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,d=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(d,10),h=!isNaN(p)&&u!==d&&String(p)===d&&p>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(h&&p<n.arrayLimit)(c=[])[p]=i;else{if(h&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");h?(c[p]=i,sh.markOverflow(c,p)):"__proto__"!==d&&(c[d]=i)}else c={0:i}}i=c}return i}(o,t,n,r)}},fh=function(e,t){var n,r=e,o=function(e){if(!e)return oh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||oh.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Yp.default;if(void 0!==e.format){if(!Jp.call(Yp.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=Yp.formatters[n],a=oh.filter;if(("function"==typeof e.filter||Xp(e.filter))&&(a=e.filter),r=e.arrayFormat in Zp?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":oh.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||oh.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:oh.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:oh.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:oh.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?oh.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:oh.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:oh.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:oh.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:oh.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:oh.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:oh.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:oh.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):Xp(o.filter)&&(n=o.filter);var a=[];if("object"!=typeof r||null===r)return"";var i=Zp[o.arrayFormat],s="comma"===i&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=$p(),u=0;u<n.length;++u){var l=n[u],d=r[l];o.skipNulls&&null===d||th(a,ih(d,l,i,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=a.join(o.delimiter),h=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),p.length>0?h+p:""},gh=function(e,t){var n=function(e){if(!e)return lh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?lh.charset:e.charset,n=void 0===e.duplicates?lh.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||lh.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:lh.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:lh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:lh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:lh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:lh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:lh.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:lh.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:lh.decoder,delimiter:"string"==typeof e.delimiter||sh.isRegExp(e.delimiter)?e.delimiter:lh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:lh.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:lh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:lh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:lh.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:lh.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:lh.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=r.split(t.delimiter,t.throwOnLimitExceeded?o+1:o);if(t.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var i,s=-1,c=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?c="utf-8":"utf8=%26%2310003%3B"===a[i]&&(c="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var u,l,d=a[i],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;if(-1===h?(u=t.decoder(d,lh.decoder,c,"key"),l=t.strictNullHandling?null:""):null!==(u=t.decoder(d.slice(0,h),lh.decoder,c,"key"))&&(l=sh.maybeMap(ph(d.slice(h+1),t,uh(n[u])?n[u].length:0),function(e){return t.decoder(e,lh.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=dh(String(l))),d.indexOf("[]=")>-1&&(l=uh(l)?[l]:l),t.comma&&uh(l)&&l.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");l=sh.combine([],l,t.arrayLimit,t.plainObjects)}if(null!==u){var f=ch.call(n,u);f&&"combine"===t.duplicates?n[u]=sh.combine(n[u],l,t.arrayLimit,t.plainObjects):f&&"last"!==t.duplicates||(n[u]=l)}}return n}(e,n):e,o=n.plainObjects?{__proto__:null}:{},a=Object.keys(r),i=0;i<a.length;++i){var s=a[i],c=hh(s,r[s],n,"string"==typeof e);o=sh.merge(o,c,n)}return!0===n.allowSparse?o:sh.compact(o)},mh={formats:Dp,parse:gh,stringify:fh},yh={withCredentials:!1,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return mh.stringify(e,{indices:!1})}},vh=[{value:"CHART_NOT_EXPECTED",labelKey:"insights.feedback.issues.chartNotExpected"},{value:"TIME_RANGE_INCORRECT",labelKey:"insights.feedback.issues.timeRangeIncorrect"},{value:"DATA_INACCURATE",labelKey:"insights.feedback.issues.dataInaccurate"},{value:"NOT_ANSWERING_QUESTION",labelKey:"insights.feedback.issues.notAnsweringQuestion"},{value:"EXPECTED_INSIGHTS",labelKey:"insights.feedback.issues.expectedInsights"},{value:"OTHER",labelKey:"insights.feedback.issues.other"}];!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(Pd||(Pd={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(jd||(jd={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(Dd||(Dd={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(Ld||(Ld={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(zd||(zd={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(qd||(qd={})),function(e){var t,n;e.DEFAULT_ROUTING_TYPE="smart-routing",(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Nd||(Nd={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",t.CARD_TYPES="card-types",t.CARD_BRANDS="card-brands",t.ISSUERS="issuers",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(Ud||(Ud={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.FEES="FEES",e.ADVANCEMENTS="ADVANCEMENTS",e.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",e.SETTLEMENTS_FEES="SETTLEMENTS_FEES",e.CASHFLOW="CASHFLOW",e.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS"}(Md||(Md={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Bd||(Bd={})),function(e){var t;(t=e.AuditExportReportType||(e.AuditExportReportType={})).DASHBOARD="DASHBOARD",t.API="API",t.WEBHOOKS="WEBHOOKS",t.MONITORS="MONITORS"}(Fd||(Fd={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Hd||(Hd={})),function(e){var t;(t=e.ConfigType||(e.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",t.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",t.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN"}(Wd||(Wd={}));var bh=["PAUSED","ACTIVE"],kh={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},wh="DELETED",_h={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"};const Eh=[];for(let e=0;e<256;++e)Eh.push((e+256).toString(16).slice(1));let xh;const Sh=new Uint8Array(16);var Ch={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ih(e,t,n){if(Ch.randomUUID&&!t&&!e)return Ch.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!xh){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xh=crypto.getRandomValues.bind(crypto)}return xh(Sh)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(Eh[e[t+0]]+Eh[e[t+1]]+Eh[e[t+2]]+Eh[e[t+3]]+"-"+Eh[e[t+4]]+Eh[e[t+5]]+"-"+Eh[e[t+6]]+Eh[e[t+7]]+"-"+Eh[e[t+8]]+Eh[e[t+9]]+"-"+Eh[e[t+10]]+Eh[e[t+11]]+Eh[e[t+12]]+Eh[e[t+13]]+Eh[e[t+14]]+Eh[e[t+15]]).toLowerCase()}(r)}var Rh=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function Th(e){return e&&0!==e.length?{metadata_filters:e.map(function(e){var t=e.field,n=e.type,r=e.values;return{key:t,conditional:n,values:Array.isArray(r)?r:[r]}})}:{}}var Oh=function(e){function i(n){var r=n?t(t({},yh),n):yh;return e.call(this,r)||this}return o(i,e),i.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},i.prototype.updateReconciliationReportTemplate=function(e){var n=e.type===Md.TRANSACTIONS?"TRANSACTIONS":e.type,r=t(t({},e),{type:n});return this.put("/v1/reconciliation/reports/templates",r)},i.prototype.createReconciliationReportTemplate=function(e){var n=e.type===Md.TRANSACTIONS?"TRANSACTIONS":e.type,r=t(t({},e),{type:n});return this.post("/v1/reconciliation/reports/templates",r)},i.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},i.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},i.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},i.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},i.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},i.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},i.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},i.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},i.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},i.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},i.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},i.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},i.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},i.prototype.getReconciliationInsightsConflictsSummary=function(e){return this.post("/reconciliations/insights/conflicts/summary",e)},i.prototype.getReconciliationInsightsNotReconciledAggregators=function(e){return this.post("/reconciliations/insights/not-reconciled/aggregators",e)},i.prototype.getReconciliationInsightsNotReconciledList=function(e){return this.post("/reconciliations/insights/not-reconciled/list",e)},i.prototype.getReconciliationInsightsStatusConflictAggregators=function(e){return this.post("/reconciliations/insights/status-conflict/aggregators",e)},i.prototype.getReconciliationInsightsStatusConflictList=function(e){return this.post("/reconciliations/insights/status-conflict/list",e)},i.prototype.getReconciliationInsightsAmountConflictAggregators=function(e){return this.post("/reconciliations/insights/amount-conflict/aggregators",e)},i.prototype.getReconciliationInsightsAmountConflictList=function(e){return this.post("/reconciliations/insights/amount-conflict/list",e)},i.prototype.getReconciliationInsightsConflictDateSummary=function(e){return this.post("/reconciliations/insights/conflict-date/summary",e)},i.prototype.getReconciliationInsightsConflictDateAggregators=function(e){return this.post("/reconciliations/insights/conflict-date/aggregators",e)},i.prototype.getReconciliationInsightsConflictDateList=function(e){return this.post("/reconciliations/insights/conflict-date/list",e)},i.prototype.getReconciliationInsightsIncorrectFeesSummary=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsIncorrectFeesAggregators=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/aggregators",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsIncorrectFeesList=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/list",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsFeesChargedSummary=function(e,t){return this.post("/reconciliations/insights/fees-charged/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsReconciledSummary=function(e,t){return this.post("/reconciliations/insights/reconciled/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsReconciledAggregators=function(e,t,n){var r={};return t&&(r.date_filter=t),n&&(r.type=n),this.post("/reconciliations/insights/reconciled/aggregators",e,Object.keys(r).length>0?{params:r}:void 0)},i.prototype.getReconciliationInsightsReconciledList=function(e,t,n){var r={};return t&&(r.date_filter=t),n&&(r.type=n),this.post("/reconciliations/insights/reconciled/list",e,Object.keys(r).length>0?{params:r}:void 0)},i.prototype.getReconciliationInsightsNotConfirmSummary=function(e){return this.post("/reconciliations/insights/not-confirm/summary",e)},i.prototype.getReconciliationInsightsNotConfirmAggregators=function(e){return this.post("/reconciliations/insights/not-confirm/aggregators",e)},i.prototype.getReconciliationInsightsNotConfirmList=function(e){return this.post("/reconciliations/insights/not-confirm/list",e)},i.prototype.getReconciliationInsightsAmountToBeSettledSummary=function(e){return this.post("/reconciliations/insights/amount-to-be-settled/summary",e)},i.prototype.getReconciliationInsightsReconciliationRateByProvider=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-provider",e)},i.prototype.getReconciliationInsightsReconciliationRateByAccount=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-account",e)},i.prototype.getReconciliationInsightsReconciliationRateByCurrency=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-currency",e)},i.prototype.postPaymentsLazy=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payments/lazy",t({account_codes:(null==n?void 0:n.split(","))||[]},Th(r)),{params:o})},i.prototype.postPayouts=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payouts",t({account_codes:(null==n?void 0:n.split(","))||[]},Th(r)),{params:o})},i.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},i.prototype.getHiddenFields=function(e){var t=e.scope;return this.get("/hidden-fields",{params:{scope:t}})},i.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=a(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},i.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},i.prototype.postTransactions=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]);return this.post("/v2/transactions",t({account_codes:(null==n?void 0:n.split(","))||[]},Th(r)),{params:o})},i.prototype.postFraudTransactions=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]);return this.post("/fraud-transactions",t({account_codes:(null==n?void 0:n.split(","))||[]},Th(r)),{params:o})},i.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},i.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},i.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},i.prototype.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},i.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,r=e.country,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(r),o?{}:{headers:a})},i.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},i.prototype.createOperationTransaction=function(e,t,n,r){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(r),e)},i.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},i.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},i.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},i.prototype.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},i.prototype.uploadChargebacks=function(e,t,n,r){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){r(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":Ih()}})},i.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},i.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},i.prototype.getDeveloperCredentials=function(e,t,n,r){var o={};return e&&(o["x-password"]=e),t&&(o["x-account-code"]=t),n&&(o["x-otp"]=n),r&&(o["x-mfa-token"]=r),this.get("/v2/developers/credentials",{headers:o})},i.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},i.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{headers:{"x-password":e}})},i.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},i.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},i.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},i.prototype.getAllOrganization=function(){return this.get("/organizations/all")},i.prototype.getProviderParams=function(e,t){var n,r=localStorage.getItem("x-organization-code"),o={"x-organization-code":r?null===(n=JSON.parse(r))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:o})},i.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},i.prototype.putCosts=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,this.put("/connections/costs",{costs:[e]})]})})},i.prototype.updateOrganizationStatus=function(){return n(this,void 0,void 0,function(){return r(this,function(e){return[2,this.patch("/organizations/status")]})})},i.prototype.addToRiskList=function(e,t){return this.post("/payments/".concat(e,"/add-to-risk-list"),t)},i.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},i.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},i.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},i.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},i.prototype.getConnectionsByPaymentMethod=function(e,t,o){return void 0===o&&(o=Nd.DEFAULT_ROUTING_TYPE),n(this,void 0,void 0,function(){return r(this,function(n){return[2,this.get("/organizations/connections/".concat(e,"/").concat(t).concat("routing-payouts"===o?"?flow_type=PAYOUT":""))]})})},i.prototype.getHashPylon=function(){return this.get("/pylon-hash")},i.prototype.getConnections=function(){return this.get("/connections")},i.prototype.getOnboardingStatus=function(e){return this.get("/onboarding/status/".concat(e))},i.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},i.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,r="/connections/change-status";if(t.status==wh)return delete t.status,this.delete(r,{data:t});Object.values(bh).includes(null==t?void 0:t.status)&&(r="".concat(r,"/").concat(kh[t.status]),delete t.status);var o={"x-account-code":n};return this.post(r,t,{headers:o})},i.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},i.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},i.prototype.patchConnection=function(e){var n,r=e.payload,o=e.connectionCode,a=localStorage.getItem("account"),i=a?null===(n=JSON.parse(a).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(o),t({account_code:i},r))},i.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},i.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},i.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},i.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},i.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},i.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},i.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},i.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,r=a(t,["account_code"]),o={account_codes:n};return this.post("/v2/webhooks/organization",o,{params:r,paramsSerializer:Fc})},i.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},i.prototype.postExportApiLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/api-logs/organization/export-csv",t,{params:e,paramsSerializer:Fc})},i.prototype.postExportWebhooksLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/webhooks/organization/export-csv",t,{params:e,paramsSerializer:Fc})},i.prototype.getApiLogsV3=function(e){return this.get("/v3/api-logs/payment/".concat(e))},i.prototype.getWebhookTimeline=function(e){return this.get("/v3/webhooks/payment/".concat(e))},i.prototype.postExportDashboardLogs=function(e){var t={account_codes:e.account_code,event:e.event,source:e.source,search:e.search},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/v2/events/organization/export-csv",t,{params:n,paramsSerializer:Fc})},i.prototype.postExportMonitorsLogs=function(e){var t={account_codes:e.account_codes,status:e.status,payment_methods:e.payment_methods,providers:e.providers,traffic_redistribution:e.traffic_redistribution},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/routing-monitor/audit/export-csv",t,{params:n,paramsSerializer:Fc})},i.prototype.getAuditExportsList=function(e){return this.get("/audit/reports",{params:{report_type:e}})},i.prototype.getAuditExportDownload=function(e){return this.get("/audit/reports/".concat(e,"/download"))},i.prototype.getUnifiedExportsPath=function(e){return"/v1/".concat(e,"/exports")},i.prototype.postUnifiedExport=function(e,t){return this.post(this.getUnifiedExportsPath(e),t)},i.prototype.getUnifiedExportStatus=function(e,t){var n=this.getUnifiedExportsPath(e);return this.get("".concat(n,"/").concat(t))},i.prototype.getUnifiedExportsList=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.get(this.getUnifiedExportsPath(e),{params:{page:t,size:n}})},i.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,r=a(t,["account_code"]),o={account_codes:n};return this.post("/v2/api-logs/organization",o,{params:r,paramsSerializer:Fc})},i.prototype.getApiLogsDetailByPaymentCode=function(e,t){return this.get("/v3/api-logs/payment/".concat(e),{params:t?{created_at_from:t}:void 0})},i.prototype.getApiLogsByTransactionCode=function(e,t){return this.get("/v2/api-logs/transaction/".concat(e),{headers:{"x-account-code":t}})},i.prototype.postApiLogsStatsRequests=function(e){return this.post("/v3/api-logs/organization/stats/requests",e)},i.prototype.postApiLogsStatsErrors=function(e){return this.post("/v3/api-logs/organization/stats/errors",e)},i.prototype.postApiLogsStatsErrorsByEndpoint=function(e){return this.post("/v3/api-logs/organization/stats/errors-by-endpoint",e)},i.prototype.postApiLogsList=function(e){return this.post("/v3/api-logs/organization/list",e)},i.prototype.getApiLogsV3ByPaymentCode=function(e,t){return this.get("/v3/api-logs/payment/".concat(e),{params:t?{created_at_from:t}:void 0})},i.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},i.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},i.prototype.getSmartRoutingMethods=function(e,t){void 0===t&&(t=Nd.DEFAULT_ROUTING_TYPE);var n="routing-payouts"===t?"/".concat(t,"/config/withdrawal-methods"):"/".concat(t,"/methods/").concat(e);return this.get(n)},i.prototype.putSmartRoutingToggleMethod=function(e,t,n,r){void 0===r&&(r=Nd.DEFAULT_ROUTING_TYPE);var o="/".concat(r,"/methods/").concat(e,"/").concat(t);return this.put(o,{active:n})},i.prototype.getSmartRoutingConditionTypes=function(e,t,n){void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/config/condition-types/").concat(t):"/".concat(n,"/condition-types/").concat(e,"/").concat(t);return this.get(r)},i.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},i.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingNextSteps=function(e,t,n,r){return void 0===r&&(r=Nd.DEFAULT_ROUTING_TYPE),"routing-payouts"===r?this.post("/".concat(r,"/config/next-steps"),{step_type:t,status:n}):this.get("/".concat(r,"/next-route/").concat(e,"/").concat(t,"/").concat(n))},i.prototype.getSmartRoutingWorkflowVersion=function(e,t,n){void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflow-version/").concat(t):"/".concat(n,"/workflow-version/").concat(e,"/").concat(t);return this.get(r)},i.prototype.getSmartRoutingWorkflow=function(e,t,n){void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/workflow/").concat(e,"/").concat(t);return this.get(r)},i.prototype.putSmartRoutingUpdateWorkflow=function(e,t,n){var r;if(void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE),"routing-payouts"===n){var o=(null===(r=t.version)||void 0===r?void 0:r.code)||t.code;return this.put("/".concat(n,"/workflows/").concat(o),t)}return this.put("/".concat(n,"/update-workflow/").concat(e),t)},i.prototype.putSmartRoutingUpdateWorkflowName=function(e,t,n){void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/name/").concat(t.code):"/".concat(n,"/workflow/").concat(e,"/edit-name");return this.put(r,t)},i.prototype.postSmartRoutingCreateWorkflow=function(e,t,n){return void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE),"routing-payouts"===n?this.post("/".concat(n,"/workflows"),t):this.post("/".concat(n,"/create-workflow/").concat(e),t)},i.prototype.postSmartRoutingPublishVersion=function(e,t,n,r){void 0===r&&(r=Nd.DEFAULT_ROUTING_TYPE);var o={"x-organization-code":n},a="routing-payouts"===r?"/".concat(r,"/workflows/").concat(t,"/publish"):"/".concat(r,"/publish-version/").concat(e,"/").concat(t);return this.post(a,{},{headers:o})},i.prototype.deleteSmartRoutingVersion=function(e,t,n){void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/delete-version/").concat(e,"/").concat(t);return this.delete(r)},i.prototype.postSmartRoutingDuplicateVersion=function(e,t,n){void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t,"/duplicate"):"/".concat(n,"/duplicate-version/").concat(e,"/").concat(t);return this.post(r,{})},i.prototype.getSmartRoutingDeclinedGroup=function(e,t){return void 0===t&&(t=Nd.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/declined-groups/").concat(e))},i.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},i.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},i.prototype.getSmartRoutingPaymentRoute=function(e,t,n){void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/payments/").concat(t,"/route"):"/".concat(n,"/payment-route/").concat(e,"/").concat(t);return this.get(r)},i.prototype.updateSmartRoutingFavorite=function(e,t,n,r){void 0===r&&(r=Nd.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===r?"/".concat(r,"/workflows/favorite/").concat(t):"/".concat(r,"/favorite/").concat(e,"/").concat(t);return this.put(o,{favorite:n})},i.prototype.getSmartRoutingSimulateConditionTypeValues=function(e,t){return void 0===t&&(t=Nd.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/condition-types-values-list/").concat(e))},i.prototype.simulateSmartRoutingTransaction=function(e,t,n,r){void 0===r&&(r=Nd.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===r?"/".concat(r,"/workflows/").concat(t,"/simulate"):"/".concat(r,"/simulate-transaction/").concat(e,"/").concat(t);return this.post(o,n)},i.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},i.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},i.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},i.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},i.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},i.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},i.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},i.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},i.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},i.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},i.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},i.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},i.prototype.getInsightsMetricsConversionRateV2=function(e,n){var r=e.account_code,o=e.connection_name,i=e.metadata,s=a(e,["account_code","connection_name","metadata"]),c=Rh(r);return o&&(c.connection_name=o.split(",")),i&&(c=t(t({},c),Th(i))),this.post("/insights/conversion-rate/".concat(n),c,{params:s})},i.prototype.getInsightsMetricsConversionRateViewMore=function(e,n){var r=e.account_code,o=e.metadata,i=a(e,["account_code","metadata"]),s=Rh(r);return o&&(s=t(t({},s),Th(o))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),s,{params:i})},i.prototype.getInsightFallbackMetrics=function(e){var n=e.account_code,r=e.metadata,o=a(e,["account_code","metadata"]),i=Rh(n);return r&&(i=t(t({},i),Th(r))),this.post("/insights/conversion-rate/fallback",i,{params:o})},i.prototype.getInsightsMetricsVolumeV2=function(e,n,r){var o=r.connection_name,i=r.metadata,s=a(r,["connection_name","metadata"]),c={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(c=t(t({},c),{connection_name:null==o?void 0:o.split(",")})),i&&(c=t(t({},c),Th(i))),this.post("/insights/volume/".concat(n),c,{params:s})},i.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},i.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},i.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},i.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},i.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},i.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},i.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},i.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},i.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},i.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},i.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},i.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.getInsightOverviewV3=function(e,n){var r=e.account_code,o=e.connection_name,i=e.metadata,s=a(e,["account_code","connection_name","metadata"]),c=Rh(r);return o&&(c=t(t({},c),{connection_name:null==o?void 0:o.split(",")})),i&&(c=t(t({},c),Th(i))),this.post("/insights/overview/".concat(n),c,{params:s})},i.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},i.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},i.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},i.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},i.prototype.getPaymentMethodAccounts=function(e){var t=e.paymentMethod,n={"x-organization-code":e.organizationCode};return this.get("/checkouts/payment-methods/".concat(t,"/accounts"),{headers:n})},i.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},i.prototype.updateIsActiveCheckout=function(e){var t=e.accountCode,n=a(e,["accountCode"]);return this.patch("/checkouts/publish",n,{headers:{"x-account-code":t}})},i.prototype.getCountryData=function(e){var t=e.accountCode;return this.get("/country-data/v1/country-documents",{headers:{"x-account-code":t}})},i.prototype.publishCheckout=function(e){var t=e.accountCode,n=a(e,["accountCode"]);return this.patch("/checkouts/publish",n,{headers:{"x-account-code":t}})},i.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingSettingsV2=function(e){var t={"x-account-code":e.accountCode};return this.get("/v1/checkouts/builder/settings",{headers:t})},i.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.payload,r={"x-account-code":t,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",n,{headers:r})},i.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},i.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},i.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/reports/create",e)},i.prototype.createReportV2=function(e){return this.post("/reports",e)},i.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},i.prototype.reportsList=function(){return this.get("/reports")},i.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},i.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},i.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},i.prototype.getReportTemplates=function(){return this.get("/reports/templates")},i.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},i.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},i.prototype.deletePaymentsReportTemplate=function(e){return this.delete("/reports/templates",{data:e})},i.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},i.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},i.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},i.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},i.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},i.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},i.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},i.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},i.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},i.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},i.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},i.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},i.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},i.prototype.getRefundPdf=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:r})},i.prototype.getProofOfCancel=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:r})},i.prototype.getProofOfPayment=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:r})},i.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},i.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},i.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},i.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},i.prototype.getProfile=function(){return this.get("/user")},i.prototype.getUserFull=function(){return this.get("/user-full")},i.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},i.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},i.prototype.getUsersToImpersonate=function(e,n,r,o,a,i){void 0===r&&(r=1),void 0===o&&(o=10);var s=t(t({account_codes:n||[],page:r,page_size:o},a&&{search_value:a}),(null==i?void 0:i.length)&&{role_ids:i});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),s)},i.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},i.prototype.getRolesForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/roles"))},i.prototype.updateProfile=function(e){return this.patch("/user",e)},i.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},i.prototype.inviteUsersMassiveV2=function(e){return this.post("user/invite/massive/v2",e)},i.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},i.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},i.prototype.getAccountsV2=function(){return this.get("/accounts-user")},i.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},i.prototype.putAccountsUserMassive=function(e,t,n){var r={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:r})},i.prototype.deleteAccountsUserMassive=function(e,t,n){var r={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:r})},i.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},i.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},i.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},i.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},i.prototype.patchAccount=function(e){var t=e.name,n=e.code,r=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:r})},i.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,r=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:r},{headers:{"x-account-code":n}})},i.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},i.prototype.bulkDisableAccounts=function(e){return this.post("/v1/accounts/bulk-disable",{account_codes:e.accountCodes})},i.prototype.bulkEnableAccounts=function(e){return this.post("/v1/accounts/bulk-enable",{account_codes:e.accountCodes})},i.prototype.getAccountsByOrganization=function(e){return this.get("/v1/accounts/by-organization",{params:e})},i.prototype.getAccountsByOrganizationCode=function(e,t){return this.get("/v1/accounts/organization/".concat(e),{params:t})},i.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},i.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},i.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},i.prototype.postSlackFeatureNotification=function(e){return this.post("/slack-channel-message",e)},i.prototype.pathNotification=function(e){return this.patch("/notifications",e)},i.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},i.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},i.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:r,status:o,role_id:a,statuses:i,role_ids:s,page:c,page_size:u},{headers:l})},i.prototype.getRoles=function(){return this.get("/teams/roles")},i.prototype.setCustodian=function(){return this.post("/teams/custodian")},i.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},i.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},i.prototype.editRoles=function(e,t){var n=e.payload,r=e.id;return this.patch("/teams/roles/".concat(r),n,{headers:{"x-account-code":t}})},i.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},i.prototype.getFeatureFlagId=function(e){var t=e.name,n=a(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},i.prototype.getFeatureFlagIdAll=function(e){var t=e.accountCode;return n(this,void 0,void 0,function(){var e,n;return r(this,function(r){switch(r.label){case 0:return[4,this.get("/feature-flags/names",t?{headers:{"x-account-code":t}}:{})];case 1:return e=r.sent(),n={},e.data.feature_flag_names.forEach(function(e){n[e]=!0}),[2,{data:n,status:200,statusText:"OK",headers:{},config:{}}]}})})},i.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},i.prototype.getOrgRolesPermissions=function(){return this.get("/teams/permissions?type=ORGANIZATION")},i.prototype.getOrgPermissionsCatalog=function(){return this.get("/teams/permissions-catalog?role_type=ORGANIZATION")},i.prototype.createOrgRole=function(e){return this.post("/teams/roles",e)},i.prototype.editOrgRole=function(e){var t=e.payload,n=e.id;return this.patch("/teams/roles/".concat(n),t)},i.prototype.deleteOrgRole=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getOrgRoleAssignments=function(){return this.get("/teams/organization-roles/assignments")},i.prototype.assignOrgRole=function(e){return this.post("/teams/organization-roles/assign",e)},i.prototype.unassignOrgRole=function(e){return this.delete("/teams/organization-roles/assign/".concat(e))},i.prototype.startUserExport=function(e){return this.post("/users/exports/start",{account_codes:e.accountCodes,name:e.name,search:e.search,statuses:e.statuses,role_ids:e.roleIds})},i.prototype.getUserExportStatus=function(e){var t=e.exportCode;return this.get("/users/exports/".concat(t))},i.prototype.listUserExports=function(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r;return this.get("/users/exports?page=".concat(n,"&page_size=").concat(o))},i.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},i.prototype.workosPasswordReset=function(e){return this.post("/workos/password-reset",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public")})},i.prototype.workosAdminPortal=function(){return this.post("/workos/admin-portal",{})},i.prototype.workosDomainVerificationPortal=function(){return this.post("/workos/domain-verification-portal",{})},i.prototype.workosDomainStatus=function(){return this.get("/workos/domain-status")},i.prototype.workosSsoConfigStatus=function(){return this.get("/workos/sso-config-status")},i.prototype.workosVerifyMfa=function(e){return this.post("/workos/verify-mfa",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public"),withCredentials:!0})},i.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},i.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},i.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},i.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},i.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},i.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},i.prototype.getAuditEvents=function(e){var t=e.account_code,n=a(e,["account_code"]);return this.post("v2/events/organization",{account_codes:t},{params:n,paramsSerializer:Fc})},i.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},i.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},i.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},i.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(r),t)},i.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},i.prototype.uploadPaymentLinkLogo=function(e){var t=e.payload;return this.post("/v1/checkouts/payment-link/logo",t)},i.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},i.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},i.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},i.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},i.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},i.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},i.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},i.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},i.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},i.prototype.getInstallmentPlans=function(e){var t=e?Fc(e):"",n=t?"/v1/installments-plans?".concat(t):"/v1/installments-plans";return this.get(n)},i.prototype.createInstallmentsPlan=function(e){return this.post("/v1/installments-plans",e)},i.prototype.updateInstallmentsPlan=function(e,t){return this.patch("/v1/installments-plans/".concat(e),t)},i.prototype.deleteInstallmentsPlan=function(e){return this.delete("/v1/installments-plans/".concat(e))},i.prototype.searchInstallmentsPlans=function(e){return this.post("/v2/installments-plans/search",e)},i.prototype.bulkCreateInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk",e)},i.prototype.bulkDeleteInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk-delete",e)},i.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},i.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},i.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},i.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},i.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},i.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},i.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},i.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},i.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},i.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},i.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},i.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},i.prototype.postBlockList=function(e,t,n,r){var o={name:t,account_codes:e,page:n,size:r};return this.post("/blacklist",o)},i.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},i.prototype.getBlacklistDetail=function(e,t,n,r,o){void 0===n&&(n=26),void 0===r&&(r=null),void 0===o&&(o=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return o&&(null==o?void 0:o.length)>0&&(a+="&search=".concat(o)),this.get(a,r?{headers:{"x-account-code":r}}:{})},i.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},i.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},i.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},i.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},i.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},i.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},i.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},i.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},i.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},i.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},i.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,r=e.file,o=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:r},{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)}})},i.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},i.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":r}})},i.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",t({},e))},i.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},i.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,r=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:r.token}),cancel:function(){return r.cancel()}}},i.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,r=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:r.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return r.cancel()}}},i.prototype.batchRefundByFile=function(e){var n=e.payload;return this.post("/batch-refund-by-file",t({},n))},i.prototype.uploadBatchRefundsV2=function(e){var n=e.payload;return this.post("/batch-refunds",t({},n))},i.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},i.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:r})},i.prototype.getBatchRefundUserFileDownload=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:r})},i.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},i.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},i.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},i.prototype.getWorkOsMfaStatus=function(){return this.get("/mfa/status")},i.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},i.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},i.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},i.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},i.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},i.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},i.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},i.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},i.prototype.patchApiKeysEditNote=function(e,t,n){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e,{headers:{"x-password":n}})},i.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},i.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},i.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},i.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},i.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},i.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},i.prototype.getCustomizedApiKeysToken=function(e,t,n,r){var o={};return t&&(o["x-password"]=t),n&&(o["x-otp"]=n),r&&(o["x-mfa-token"]=r),this.get("/credentials-manager/keys/show-token/".concat(e),{headers:o})},i.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},i.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},i.prototype.buildAuthHeaders=function(e,t,n){var r={};return e&&(r["x-password"]=e),t&&(r["x-otp"]=t),n&&(r["x-mfa-token"]=n),r},i.prototype.getOrganizationKeysMetadata=function(){return this.get("/v2/developers/organization-keys/metadata")},i.prototype.patchOrganizationKeysNote=function(e,t){return this.patch("/v2/developers/organization-keys/note",e,{headers:{"x-password":t}})},i.prototype.postOrganizationKeysRoll=function(e,t,n){return this.post("/v2/developers/organization-keys/roll",{},{headers:this.buildAuthHeaders(e,t,n)})},i.prototype.postOrganizationKeysTamRequest=function(e,t,n){return this.post("/v2/developers/organization-keys/tam-request",{},{headers:this.buildAuthHeaders(e,t,n)})},i.prototype.postOrganizationKeysMarkRevealed=function(e,t,n){return this.post("/v2/developers/organization-keys/mark-revealed",{},{headers:this.buildAuthHeaders(e,t,n)})},i.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(_h[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(_h[null==e?void 0:e.type],"/export");return this.post(t,e)},i.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},i.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},i.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},i.prototype.getSamlConfig=function(){return this.get("/saml-config")},i.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},i.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},i.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},i.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},i.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},i.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},i.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},i.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},i.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},i.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},i.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},i.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},i.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},i.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},i.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},i.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},i.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},i.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},i.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},i.prototype.submitChartFeedback=function(e,t){return this.post("/data-assistant/charts/".concat(e,"/feedback"),t)},i.prototype.getChartFeedback=function(e){return this.get("/data-assistant/charts/".concat(e,"/feedback"))},i.prototype.getLanguages=function(){return this.get("/languages")},i.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},i.prototype.getCommunications=function(e){return this.post("/communications",e)},i.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},i.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},i.prototype.getRecipients=function(e,t){var n={"x-organization-code":e};return this.get("/recipients",{headers:n,params:t})},i.prototype.getRecipientById=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/".concat(t),{headers:n})},i.prototype.getOnboardingDetail=function(e,t,n){var r={"x-organization-code":e};return this.get("/recipients/".concat(t,"/onboardings/").concat(n),{headers:r})},i.prototype.getOnboardingTimeline=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/onboardings/".concat(t,"/timeline"),{headers:n})},i.prototype.createRecipientExport=function(e,t){var n={"x-account-code":t};return this.post("/v1/recipients/exports",e,{headers:n})},i.prototype.getRecipientExports=function(e,t){var n={"x-account-code":t};return this.get("/v1/recipients/exports",{headers:n,params:e})},i.prototype.downloadRecipientExport=function(e,t){var n={"x-account-code":t};return this.get("/v1/recipients/exports/".concat(e,"/download"),{headers:n})},i.prototype.createRecipient=function(e,t){var n={"x-organization-code":e};return this.post("/recipients",t,{headers:n})},i.prototype.updateRecipient=function(e,t,n){var r={"x-organization-code":e};return this.patch("/recipients/".concat(t),n,{headers:r})},i.prototype.deleteRecipient=function(e,t){var n={"x-organization-code":e};return this.delete("/recipients/".concat(t),{headers:n})},i.prototype.createOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings"),n,{headers:r})},i.prototype.updateOnboarding=function(e,t,n,r){var o={"x-organization-code":e};return this.patch("/recipients/".concat(t,"/onboardings/").concat(n),r,{headers:o})},i.prototype.blockOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings/").concat(n,"/block"),{},{headers:r})},i.prototype.unblockOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings/").concat(n,"/unblock"),{},{headers:r})},i.prototype.getConciergeAlerts=function(){return this.get("/concierge/alerts")},i.prototype.getConciergeAlertById=function(e){return this.get("/concierge/alerts/".concat(e))},i.prototype.createConciergeAlert=function(e){return this.post("/concierge/alerts",e)},i.prototype.deleteConciergeAlert=function(e){return this.delete("/concierge/alerts/".concat(e))},i.prototype.enableConciergeAlert=function(e,t){return this.post("/concierge/alerts/enable/".concat(e),t)},i.prototype.postPlaygroundExecuteFlow=function(e){return this.post("/playground/payment-flows",e)},i}(Hc),Ah=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"https://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff/api")}}(),Ph=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"wss://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff")}}(),jh={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:null!=Ah?Ah:process.env.BFF_URL_PROD,BFF_URL_SBX:null!=Ah?Ah:process.env.BFF_URL_SBX,BFF_URL_STG:null!=Ah?Ah:process.env.BFF_URL_STG,BFF_URL_DEV:null!=Ah?Ah:process.env.BFF_URL_DEV,BFF_URL_LOCAL:null!=Ah?Ah:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:null!=Ph?Ph:process.env.WS_URL_LOCAL,WS_URL_PROD:null!=Ph?Ph:process.env.WS_URL_PROD,WS_URL_SBX:null!=Ph?Ph:process.env.WS_URL_SBX,WS_URL_STG:null!=Ph?Ph:process.env.WS_URL_STG,WS_URL_DEV:null!=Ph?Ph:process.env.WS_URL_DEV},Dh=function(e){function a(t){return e.call(this,t)||this}return o(a,e),a.registerCanaryInterceptor=function(){var e;null===(e=this.classInstance.instance.interceptors)||void 0===e||e.request.use(function(e){return"true"===localStorage.getItem("canary-enabled")&&e.headers&&(e.headers["x-canary-traffic"]="canary-traffic"),e},function(e){return Promise.reject(e)})},a.refreshInstance=function(e){var n;return this.classInstance=new a(t(t({},e),{baseURL:jh["BFF_URL_".concat(jh.ENVIRONMENT)]})),this.registerCanaryInterceptor(),null===(n=this.classInstance.instance.interceptors)||void 0===n||n.response.use(function(e){return e},function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"}),this.classInstance},a.getInstance=function(e){var n,r;if(this.classInstance){var o=localStorage.getItem("account");if(o){var i=null===(r=null===(n=JSON.parse(o))||void 0===n?void 0:n.value)||void 0===r?void 0:r.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new a(t(t({},e),{baseURL:(null==e?void 0:e.baseURL)||jh["BFF_URL_".concat(jh.ENVIRONMENT)]})),this.registerCanaryInterceptor(),this.classInstance},a.setMode=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return this.classInstance.instance.interceptors.request.use(function(t){return t.headers&&(t.headers["X-Environment"]=e),t},function(e){return Promise.reject(e)}),[2]})})},a}(Oh);class Lh{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const zh="undefined"==typeof window||"Deno"in window;function qh(){}function Nh(e){return"number"==typeof e&&e>=0&&e!==1/0}function Uh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mh(e,t,n){return Xh(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Bh(e,t,n){return Xh(e)?[{...t,queryKey:e},n]:[e||{},t]}function Fh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(Xh(i))if(r){if(t.queryHash!==Wh(i,t.options))return!1}else if(!Vh(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function Hh(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(Xh(a)){if(!t.options.mutationKey)return!1;if(n){if(Gh(t.options.mutationKey)!==Gh(a))return!1}else if(!Vh(t.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function Wh(e,t){return((null==t?void 0:t.queryKeyHashFn)||Gh)(e)}function Gh(e){return JSON.stringify(e,(e,t)=>Jh(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Vh(e,t){return Kh(e,t)}function Kh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!Kh(e[n],t[n])))}function $h(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Yh(e)&&Yh(t);if(r||Jh(e)&&Jh(t)){const o=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),i=a.length,s=r?[]:{};let c=0;for(let o=0;o<i;o++){const i=r?o:a[o];s[i]=$h(e[i],t[i],n+1),s[i]===e[i]&&c++}return o===i&&c===o?e:s}return t}function Qh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Yh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Jh(e){if(!Zh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Zh(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Zh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Xh(e){return Array.isArray(e)}function ef(e){return new Promise(t=>{setTimeout(t,e)})}function tf(e){ef(0).then(e)}function nf(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?$h(e,t):t}const rf=new class extends Lh{constructor(){super(),this.setup=e=>{if(!zh&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},of=["online","offline"];const af=new class extends Lh{constructor(){super(),this.setup=e=>{if(!zh&&window.addEventListener){const t=()=>e();return of.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{of.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function sf(e){return Math.min(1e3*2**e,3e4)}function cf(e){return"online"!==(null!=e?e:"online")||af.isOnline()}class uf{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function lf(e){return e instanceof uf}function df(e){let t,n,r,o=!1,a=0,i=!1;const s=new Promise((e,t)=>{n=e,r=t}),c=()=>!rf.isFocused()||"always"!==e.networkMode&&!af.isOnline(),u=r=>{i||(i=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise(n=>{t=e=>{const t=i||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,i||null==e.onContinue||e.onContinue()}),p=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,r;if(i)return;const s=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:sf,h="function"==typeof u?u(a,t):u,f=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!o&&f?(a++,null==e.onFail||e.onFail(a,t),ef(h).then(()=>{if(c())return d()}).then(()=>{o?l(t):p()})):l(t)})};return cf(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new uf(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}const pf=console;const hf=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):tf(()=>{n(r)})},a=()=>{const t=e;e=[],t.length&&tf(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class ff{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nh(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:zh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class gf extends ff{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||pf,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=nf(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(qh).catch(qh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Uh(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),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:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,r,o;(lf(e)&&e.silent||this.dispatch({type:"error",error:e}),lf(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=df({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,r,o;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:cf(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return lf(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),hf.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class mf extends Lh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,a=null!=(r=t.queryHash)?r:Wh(o,t);let i=this.get(a);return i||(i=new gf({cache:this,logger:e.getLogger(),queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(i)),i}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){hf.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Bh(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Fh(n,e))}findAll(e,t){const[n]=Bh(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Fh(n,e)):this.queries}notify(e){hf.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){hf.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){hf.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class yf extends ff{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||pf,this.observers=[],this.state=e.state||vf(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=df({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,a,i,s,c,u;if(!t){var l,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(o=(a=this.options).onSuccess)?void 0:o.call(a,f,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{var f,g,m,y,v,b,k,w;throw await(null==(f=(g=this.mutationCache.config).onError)?void 0:f.call(g,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(m=(y=this.options).onError)?void 0:m.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(k=(w=this.options).onSettled)?void 0:k.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!cf(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),hf.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function vf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class bf extends Lh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new yf({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){hf.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>Hh(e,t))}findAll(e){return this.mutations.filter(t=>Hh(e,t))}notify(e){hf.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return hf.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(qh)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function kf(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),d="backward"===(null==c?void 0:c.direction),p=(null==(a=e.state.data)?void 0:a.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let f=h,g=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,r)=>(f=r?[t,...f]:[...f,t],r?[n,...e]:[...e,n]),v=(t,n,r,o)=>{if(g)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{g=!0}),e.signal}});const s=m(a);return Promise.resolve(s).then(e=>y(t,r,e,o))};let b;if(p.length)if(l){const t=void 0!==u,n=t?u:wf(e.options,p);b=v(p,t,n)}else if(d){const t=void 0!==u,n=t?u:(k=e.options,w=p,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(w[0],w));b=v(p,t,n,!0)}else{f=[];const t=void 0===e.options.getNextPageParam;b=!s||!p[0]||s(p[0],0,p)?v([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)b=b.then(r=>{if(!s||!p[n]||s(p[n],n,p)){const o=t?h[n]:wf(e.options,r);return v(r,t,o)}return Promise.resolve(y(r,h[n],p[n]))})}else b=v([]);var k,w;const _=b.then(e=>({pages:e,pageParams:f}));return _}}}}function wf(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class _f extends Lh{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),Ef(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xf(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Qh(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&Sf(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Qh(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(qh)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),zh||this.currentResult.isStale||!Nh(this.options.staleTime))return;const e=Uh(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!zh&&!1!==this.options.enabled&&Nh(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||rf.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(e,t){const n=this.currentQuery,r=this.options,o=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:f,fetchStatus:g,status:m}=l,y=!1,v=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&Ef(e,t),i=o&&Sf(e,n,t,r);(a||i)&&(g=cf(e.options.networkMode)?"fetching":"paused",p||(m="loading")),"isRestoring"===t._optimisticResults&&(g="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==m)d=u.data,p=u.dataUpdatedAt,m=u.status,y=!0;else if(t.select&&void 0!==l.data)if(o&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=nf(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===m){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(m="success",d=nf(null==o?void 0:o.data,e,t),v=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,f=Date.now(),m="error");const b="fetching"===g,k="loading"===m,w="error"===m;return{status:m,fetchStatus:g,isLoading:k,isSuccess:"success"===m,isError:w,isInitialLoading:k&&b,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:f,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>c.dataUpdateCount||l.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!k,isLoadingError:w&&0===l.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:v,isPreviousData:y,isRefetchError:w&&0!==l.dataUpdatedAt,isStale:Cf(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Qh(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)})})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||lf(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){hf.batch(()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var a,i,s,c;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Ef(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&xf(e,t,t.refetchOnMount)}function xf(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Cf(e,t)}return!1}function Sf(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&Cf(e,n)}function Cf(e,t){return e.isStaleByTime(t.staleTime)}class If extends Lh{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),Qh(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){hf.batch(()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,c;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var Rf,Tf={exports:{}},Of={};var Af,Pf={};
42
42
  /**
43
43
  * @license React
44
44
  * use-sync-external-store-shim.development.js
@@ -47,7 +47,7 @@ statuses/index.js:
47
47
  *
48
48
  * This source code is licensed under the MIT license found in the
49
49
  * LICENSE file in the root directory of this source tree.
50
- */"production"===process.env.NODE_ENV?_f.exports=function(){if(wf)return Ef;wf=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return o(function(){u.value=s,u.getSnapshot=t,i(u)&&l({inst:u})},[e,s,t]),r(function(){return i(u)&&l({inst:u}),e(function(){i(u)&&l({inst:u})})},[e]),a(s),s};return Ef.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:c,Ef}():_f.exports=(xf||(xf=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useState,o=t.useEffect,a=t.useLayoutEffect,i=t.useDebugValue,c=!1,u=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){c||void 0===t.startTransition||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!u){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var h=(p=r({inst:{value:d,getSnapshot:l}}))[0].inst,f=p[1];return a(function(){h.value=d,h.getSnapshot=l,e(h)&&f({inst:h})},[s,d,l]),o(function(){return e(h)&&f({inst:h}),s(function(){e(h)&&f({inst:h})})},[s]),i(d),d};Sf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Sf);var Cf=_f.exports;const If=Cf.useSyncExternalStore,Rf=i.createContext(void 0),Tf=i.createContext(!1);function Of(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Rf),window.ReactQueryClientContext):Rf)}const Af=({context:e}={})=>{const t=i.useContext(Of(e,i.useContext(Tf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Pf=({client:e,children:t,context:n,contextSharing:r=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&r&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=Of(n,r);return i.createElement(Tf.Provider,{value:!n&&r},i.createElement(o.Provider,{value:e},t))},jf=i.createContext(!1);jf.Provider;const Df=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Lf(e,t){return"function"==typeof e?e(...t):!!e}function zf(e,t){const n=Af({context:e.context}),r=i.useContext(jf),o=i.useContext(Df),a=n.defaultQueryOptions(e);a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=af.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=af.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=af.batchCalls(a.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(a),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(o);const[s]=i.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(If(i.useCallback(e=>{const t=r?()=>{}:s.subscribe(af.batchCalls(e));return s.updateResult(),t},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(a,c,r))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(a,s,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Lf(n,[e.error,r]))({result:c,errorResetBoundary:o,useErrorBoundary:a.useErrorBoundary,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function qf(e,t,n){return zf(jh(e,t,n),gf)}function Nf(e,t,n){const r=function(e,t,n){return Vh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Af({context:r.context}),[a]=i.useState(()=>new kf(o,r));i.useEffect(()=>{a.setOptions(r)},[a,r]);const s=If(i.useCallback(e=>a.subscribe(af.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=i.useCallback((e,t)=>{a.mutate(e,t).catch(Uf)},[a]);if(s.error&&Lf(a.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function Uf(){}var Mf;function Bf(e){return Nf(function(e){var t=e.payload;return Ih.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ff(e){return Nf(function(e){var t=e.code,n=e.accountCode;return Ih.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Hf(e){return Nf(function(e){var t=e.code,n=e.payload,r=e.accountCode;return Ih.getInstance().updateWebhookV2(t,n,r)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Wf(){return Nf(function(e){var t=e.name,n=e.principal;return Ih.getInstance().postAccount(t,n)})}function Gf(){return Nf(function(n){var r=e([Mf.ACCOUNT],n.duplicate_order,!0);return Ih.getInstance().duplicateAccount(t(t({},n),{duplicate_order:r}))})}function Vf(){return Nf(function(e){return Ih.getInstance().retryDuplicateAccount(e)})}function Kf(){return Nf(function(e){var t=e.name,n=e.code,r=e.principal;return Ih.getInstance().patchAccountV2({name:t,code:n,principal:r})})}function $f(){return Nf(function(e){var t=e.account_code;return Ih.getInstance().putAccountPrincipal({account_code:t})})}function Qf(){return Nf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Ih.getInstance().putAccountsUserMassive(t,n,r)})}function Yf(){return Nf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Ih.getInstance().deleteAccountsUserMassive(t,n,r)})}function Jf(){return Nf(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ih.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Zf(){return Nf(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ih.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Xf(){return Nf(function(e){return Ih.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function eg(){return Nf(["post-connection"],function(e){var t=e.payload;return Ih.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function tg(){return Nf(["new-post-connection-validate"],function(){return Ih.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function ng(){return Nf(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Ih.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function rg(){return Nf(function(e){var t=e.payload;return Ih.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function og(){return Nf(function(e){return Ih.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function ag(){var e=this;return Nf(function(t){var o=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})}function ig(){return Nf(["patch-organizations"],function(){return Ih.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function sg(){return Nf(function(e){return Ih.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function cg(){var e=this;return Nf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().changePasswordV2(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ug(){var e=this;return Nf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().workosPasswordReset(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function lg(){var e=this;return Nf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function dg(){var e=this;return Nf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().workosDomainVerificationPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function pg(){var e=this;return Nf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().workosVerifyMfa(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function hg(e){return Nf(function(e){return Ih.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function fg(){return Nf(function(e){return Ih.getInstance().inviteUsersMassive(e,e.organizationCode)})}function gg(){return Nf(function(e){return Ih.getInstance().inviteUsersMassiveV2(e)})}function mg(){return Nf(function(e){var t=e.userCode,n=e.organizationCode;return Ih.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function yg(){return Nf(function(e){return Ih.getInstance().createUserAuth0(e)})}function vg(){return Nf(function(e){return Ih.getInstance().postCall(e)})}function bg(){return Nf(function(e){return Ih.getInstance().changeLoginMethods(e)})}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(Mf||(Mf={}));var kg=function(){var e=c("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return u(function(){var e=function(e){"isTesting"===e.key&&n("ON"===e.newValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}},[]),{isTesting:t}},wg=function(e){var t=localStorage.getItem(e),n=c(t&&JSON.parse(t)),r=n[0],o=n[1];return u(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),r},_g=function(){var e,t;return null===(t=null===(e=wg("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code},Eg=function(){var e,t=kg().isTesting,n=null===(e=wg("account"))||void 0===e?void 0:e.value;return(t?null==n?void 0:n.account_code_testing:null==n?void 0:n.account_code_live)||(null==n?void 0:n.code)};function xg(e){var n=Eg(),r=l(n);return r.current=n,Nf(function(e){return Ih.getInstance().updateIsActiveCheckout(t(t({},e),{accountCode:r.current}))},e)}function Sg(e){var n=Eg(),r=l(n);return r.current=n,Nf(function(e){return Ih.getInstance().publishCheckout(t(t({},e),{accountCode:r.current}))},e)}function Cg(){return Nf(function(e){var t=e.payload,n=e.transactionId,r=e.paymentId,o=e.action;return Ih.getInstance().createOperationTransaction(t,n,r,o)})}function Ig(){return Nf(function(e){var t=e.payload,n=e.paymentId,r=e.transactionId,o=e.handleSetProgress;return Ih.getInstance().uploadChargebacks(t,n,r,o)})}function Rg(){return Nf(function(e){var t=e.transactionCode,n=e.payload;return Ih.getInstance().postProviderRawResponse(t,n)})}function Tg(){return Nf(function(e){var t=e.paymentId,n=e.payload;return Ih.getInstance().addToRiskList(t,n)})}var Og=new uf({}),Ag=new class{constructor(e={}){this.queryCache=e.queryCache||new uf,this.mutationCache=e.mutationCache||new pf,this.logger=e.logger||of,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Yh.subscribe(()=>{Yh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Zh.subscribe(()=>{Zh.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Dh(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=jh(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=jh(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return af.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Dh(e,t),r=this.queryCache;af.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,o]=Dh(e,t,n),a=this.queryCache,i={type:"active",...r};return af.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(i,o)))}cancelQueries(e,t,n){const[r,o={}]=Dh(e,t,n);void 0===o.revert&&(o.revert=!0);const a=af.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(a).then(Oh).catch(Oh)}invalidateQueries(e,t,n){const[r,o]=Dh(e,t,n);return af.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[r,o]=Dh(e,t,n),a=af.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}));let i=Promise.all(a).then(Oh);return null!=o&&o.throwOnError||(i=i.catch(Oh)),i}fetchQuery(e,t,n){const r=jh(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Oh).catch(Oh)}fetchInfiniteQuery(e,t,n){const r=jh(e,t,n);return r.behavior=hf(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Oh).catch(Oh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>Nh(e)===Nh(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Uh(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Uh(e,t.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>Nh(e)===Nh(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Uh(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Uh(e,t.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=qh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:Og});function Pg(){return Nf(function(e){return Ih.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function jg(){return Nf(function(e){return Ih.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Dg(){return Nf(function(e){return Ih.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function Lg(){return Nf(function(e){return Ih.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function zg(){return Nf(function(e){return Ih.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function qg(t){var o=this;return Nf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().createReportTemplate(t).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n;return r(this,function(r){switch(r.label){case 0:return[4,Ag.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return r.sent(),n=Ag.getQueryData(["GET/reports/templates"]),Ag.setQueryData(["GET/reports/templates"],function(n){return e(e([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Ag.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Ag.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Ng(e){return Nf(function(){return Ih.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function Ug(){return Nf(function(e){return Ih.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function Mg(e,t,o){var a=this;void 0===o&&(o=null);var i=(null==o?void 0:o.basePath)||Ad.DEFAULT_ROUTING_TYPE;return Nf(function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().postSmartRoutingCreateWorkflow(e,t,i).then(function(e){return null==e?void 0:e.data})];case 1:return[2,n.sent()]}})})},o)}function Bg(e,t){var o=this,a=e.versionCode,i=e.accountCode,s=e.organizationCode,c=e.routingType,u=void 0===c?Ad.DEFAULT_ROUTING_TYPE:c;return void 0===t&&(t=null),Nf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().postSmartRoutingPublishVersion(i,a,s,u).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},t)}function Fg(e,t){var n=e.data,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Nf(function(){return Ih.getInstance().putSmartRoutingUpdateWorkflow(r,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function Hg(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Nf(function(){return Ih.getInstance().deleteSmartRoutingVersion(r,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Wg(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Nf(function(){return Ih.getInstance().postSmartRoutingDuplicateVersion(r,String(n),a).then(function(e){return null==e?void 0:e.data})},t)}function Gg(e,t){var n=e.paymentMethod,r=e.active,o=e.accountCode,a=e.routingType,i=void 0===a?Ad.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Nf(function(){return Ih.getInstance().putSmartRoutingToggleMethod(o,n,r,i).then(function(e){return null==e?void 0:e.data})},t)}function Vg(e,t){var o=this;return void 0===t&&(t=null),Nf(function(t){return n(o,void 0,void 0,function(){var n,o,a,i,s,c;return r(this,function(r){switch(r.label){case 0:return n=Ih.getInstance(),o=t.map(function(t){return n.putSmartRoutingToggleMethod(e,t.paymentMethod,t.active,t.routingType)}),[4,Promise.allSettled(o)];case 1:return a=r.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),c=i.map(function(e,n){return{paymentMethod:t[n].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:t.length,errors:c}]}})})},t)}function Kg(e,t){var n=e.declinedId,r=e.accountCode;return void 0===t&&(t=null),Nf(function(e){return void 0===e&&(e=null),Ih.getInstance().updateSmartRoutingDeclinedGroup(r,n,e).then(function(e){return null==e?void 0:e.data})},t)}function $g(e){var t=e.accountCode;return Nf(function(e){return void 0===e&&(e=null),Ih.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function Qg(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Nf(function(e){return void 0===e&&(e=!1),Ih.getInstance().updateSmartRoutingFavorite(r,n,e,a).then(function(e){return null==e?void 0:e.data})},t)}function Yg(e,t){var n=e.code,r=e.name,o=e.accountCode,a=e.routingType,i=void 0===a?Ad.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Nf(function(){return Ih.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:r},i).then(function(e){return null==e?void 0:e.data})},t)}function Jg(e,t){var n=e.accountCode,r=e.workflowVersionCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Nf(function(e){return Ih.getInstance().simulateSmartRoutingTransaction(n,r,e,a).then(function(e){return null==e?void 0:e.data})},t)}function Zg(e,t){return void 0===t&&(t=null),Nf(function(t){return Ih.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function Xg(e,n){return void 0===n&&(n={}),Nf(function(t){var n=t.declinedGroupCode;return Ih.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}function em(e,n){return void 0===n&&(n={}),Nf(function(t){var n=t.payload;return Ih.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}var tm=function(e){return Nf(function(t){return Ih.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},nm=function(e){return Nf(function(t){return Ih.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function rm(){return Nf(function(e){var t=e.payload;return Ih.getInstance().postSlackFeatureNotification(t).then(function(e){return null==e?void 0:e.data})})}function om(){return Nf(function(e){var t=e.userCode,n=e.organizationCode;return Ih.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function am(){return Nf(function(){return Ih.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function im(){return Nf(function(e){var t=e.payload,n=e.accountCode;return Ih.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sm(){var e=this;return Nf(function(t){var o=t.payload,a=t.id,i=t.accountCode;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,Ih.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function cm(){return Nf(function(e){return Ih.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function um(){return Nf(function(e){var t=e.payload;return Ih.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function lm(){var e=this;return Nf(function(t){var o=t.payload,a=t.id;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,Ih.getInstance().editOrgRole({payload:o,id:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function dm(){return Nf(function(e){return Ih.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})}function pm(){return Nf(function(e){return Ih.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function hm(){return Nf(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Ih.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function fm(){return Nf(["post-delete-payment-link"],function(e){var t=e.code;return Ih.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function gm(){return Nf(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return Ih.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:r}).then(function(e){return null==e?void 0:e.data})})}function mm(){return Nf(["upload-payment-link-logo"],function(e){var t=e.payload;return Ih.getInstance().uploadPaymentLinkLogo({payload:t}).then(function(e){return null==e?void 0:e.data})})}function ym(){return Nf(["post-subscription"],function(e){return Ih.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})}function vm(){return Nf(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return Ih.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})}function bm(){return Nf(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return Ih.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})}function km(){return Nf(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return Ih.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})}function wm(){return Nf(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return Ih.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})}function _m(){return Nf(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return Ih.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Em(){return Nf(["post-list-subscriptions"],function(e){return Ih.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})}function xm(){return Nf(function(e){var t=e.payload;return Ih.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Sm(){return Nf(function(e){return Ih.getInstance().postUserThemeSettings(e)})}function Cm(){return Nf(function(e){var t=e.payload,n=e.section;return Ih.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var n=Ag.getQueryData(["fetch-profile"]);e.data&&Ag.setQueryData(["fetch-profile"],t(t({},n),{settings:e.data}))}})}function Im(e){return Nf(["pinned-sections"],function(e){var t=e.payload;return Ih.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Rm(){return qf(["fetch-profile"],function(){return Ih.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Tm(){var e=this;return qf(["get-user-full"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Om(e,t){return qf(["fetch-permissions",e,t],function(){var e,t,n,r=localStorage.getItem("account"),o=localStorage.getItem("user"),a=r&&JSON.parse(r),i=o&&JSON.parse(o);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Am(e){return qf(["email-verification",e],function(){return Ih.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Pm(){return qf({queryKey:["get-login-methods"],queryFn:function(){return Ih.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function jm(){return qf(["fetch-impersonation-users"],function(){return Ih.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Dm(){return qf(["fetch-impersonation-enabled"],function(){return Ih.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Lm(e,t,o,a,i,s){var c=this;return void 0===o&&(o=1),void 0===a&&(a=10),qf(["get-users-to-impersonate",e,t,o,a,i,s],function(){return n(c,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getUsersToImpersonate(e,t,o,a,i,s).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function zm(e){var t;return qf(["fetch-communications",e],function(){return Ih.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function qm(){return qf(["fetch-communications-filters"],function(){return Ih.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Nm(e,t){return qf(["fetch-communication-details",e],function(){return Ih.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var Um=["fetch-profile"];function Mm(n,r,o){var a,i,s=Rm(),c=xm().mutate,u=s.data,l=s.isLoading||!s.isFetched,p=null!==(i=null===(a=null==u?void 0:u.settings)||void 0===a?void 0:a.viewed_tutorials)&&void 0!==i?i:[],h="onboarding-".concat(null!=n?n:"default","-").concat(r,"-").concat(o),f=p.includes(h),g=d(function(){var n=null;Ag.setQueryData(Um,function(r){var o,a,i;if(!r)return r;var s=null!==(a=null===(o=r.settings)||void 0===o?void 0:o.viewed_tutorials)&&void 0!==a?a:[];if(s.includes(h))return r;var c=e(e([],s,!0),[h],!1);return n=c,t(t({},r),{settings:t(t({},null!==(i=r.settings)&&void 0!==i?i:{}),{viewed_tutorials:c})})}),n&&c({payload:{viewed_tutorials:n}})},[h,c]);return{hasSeenOnboarding:f,dismiss:g,id:h,isProfileLoading:l}}function Bm(){return Nf(function(e){var t=e.password,n=e.otp;return Ih.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Fm(){return Nf(function(){return Ih.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Hm(){return Nf(function(e){return Ih.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function Wm(){return Nf(function(e){return Ih.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function Gm(){return Nf(function(){return Ih.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function Vm(){return Nf(["post-get-allowlist-items"],function(e){var t=e.payload;return Ih.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Km(){return Nf(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Ih.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function $m(){return Nf(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Ih.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Qm(){return Nf(["patch-change-status-allowlist"],function(e){var t=e.payload;return Ih.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ym(){return Nf(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Ih.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Jm(){return Nf(["post-add-allowlist-items"],function(e){var t=e.payload;return Ih.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Zm(){return Nf(["patch-allowlist"],function(e){var t=e.payload;return Ih.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Xm(){return Nf(["post-blacklist-multi-account"],function(e){var t=e.payload;return Ih.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ey(){return Nf(["put-blacklist"],function(e){return Ih.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ty(){return Nf(["change-blacklist"],function(e){return Ih.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ny(){return Nf(["change-blacklist-item"],function(e){return Ih.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ry(){return Nf(["post-blacklist-items"],function(e){var t=e.payload;return Ih.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function oy(){return Nf(["delete-blacklist"],function(e){var t=e.black_list_code;return Ih.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ay(e){var t=e.handleSetProgress;return Nf(["post-blacklist-batch"],function(e){var n=e.blacklist_code,r=e.expiration_days,o=e.file;return Ih.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:r,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function iy(){return Nf(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Ih.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function sy(){return Nf(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return Ih.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function cy(){return Nf(["valiate-blacklist-items"],function(e){return Ih.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function uy(){return Nf(["delete-allowlist-item"],function(e){return Ih.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ly(){return Nf(["validate-allowlist-items"],function(e){return Ih.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function dy(e){var t=e.fileName,n=e.onSuccess,r=e.onError,o=c(0),a=o[0],i=o[1],s=l({cancel:function(){return null}}),u=Nf(["upload-file-chargeback",t],function(e){var t=Ih.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),o=t.promise,a=t.cancel;return s.current.cancel=a,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==r||r(),e})},{useErrorBoundary:!1});return{mutation:u,cancelRequest:s.current.cancel,progress:a}}function py(){return Nf(function(e){return Ih.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function hy(){var e=this;return Nf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().batchRefundByFile({payload:t}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function fy(){var e=this;return Nf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().getBatchRefundProcessedFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function gy(){var e=this;return Nf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().getBatchRefundUserFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function my(){var e=l({cancel:function(){return null}}),t=Nf(["upload-file"],function(t){var n=Ih.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),r=n.promise,o=n.cancel;return e.current.cancel=o,r.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function yy(){return Nf(function(e){var t=e.payload,n=e.organizationCode;return Ih.getInstance().updateMFAConfig(t,n)})}function vy(){return Nf(function(e){var t=e.payload,n=e.organizationCode;return Ih.getInstance().mfaExcludeUsers(t,n)})}function by(e){return qf(["GET/scheduled-reports",e],function(){return Ih.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function ky(){return Nf(function(e){var t=e.payload;return Ih.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function wy(){return Nf(function(e){var t=e.reportCode,n=e.payload;return Ih.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function _y(){return Nf(function(e){return Ih.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ey(){return Nf(function(e){return Ih.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function xy(){return Nf(function(e){return Ih.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Sy(){return Nf(function(e){var t=e.payload,n=e.accountCode;return Ih.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Cy(){return Nf(function(e){var t=e.payload,n=e.ruleId,r=e.accountCode;return Ih.getInstance().postEditRule(t,n,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Iy(){return Nf(function(e){var t=e.payload;return Ih.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ry(){return Nf(function(e){var t=e.payload,n=e.code;return Ih.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ty(){return Nf(function(e){var t=e.code,n=e.password,r=e.otp,o=e.mfaToken;return Ih.getInstance().getCustomizedApiKeysToken(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Oy(){return Nf(function(e){var t=e.passwordOtp;return Ih.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Ay(){return Nf(function(e){var t=e.password;return Ih.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Py(){return Nf(function(e){var t=e.code;return Ih.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function jy(){return Nf(function(e){var t=e.payload,n=e.code,r=e.password;return Ih.getInstance().patchApiKeysEditNote(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function Dy(){return Nf(function(e){var t=e.payload,n=e.code,r=e.password;return Ih.getInstance().postApiKeysRoll(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function Ly(){return Nf(function(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return Ih.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n,r;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(r=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.data}})})}function zy(){return Nf(function(e){var t=e.password,n=e.accountCode,r=e.otp,o=e.mfaToken;return Ih.getInstance().getDeveloperCredentials(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function qy(){return Nf(function(){return Ih.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})}function Ny(){return Nf(function(e){var t=e.note,n=e.password;return Ih.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})}function Uy(){return Nf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Ih.getInstance().postOrganizationKeysRoll(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function My(){return Nf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Ih.getInstance().postOrganizationKeysTamRequest(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function By(){return Nf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Ih.getInstance().postOrganizationKeysMarkRevealed(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function Fy(e){return Nf(function(e){var t=e.payload;return Ih.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Hy(){return Nf(function(e){var t=e.codes;return Ih.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function Wy(){return Nf(function(e){var t=e.tab,n=e.payload;return Ih.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})}function Gy(){return Nf(function(e){return Ih.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function Vy(){return Nf(function(e){return Ih.getInstance().postExportWebhooksLogs(e).then(function(e){return null==e?void 0:e.data})})}function Ky(){return Nf(function(e){return Ih.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})}function $y(){return Nf(function(e){return Ih.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})}function Qy(t){var o=this;return Nf(function(){return Ih.getInstance().createReconciliationReportTemplate(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n,o;return r(this,function(r){switch(r.label){case 0:return[4,Ag.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Ag.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Ag.setQueryData(["GET/reconciliation/reports/templates"],function(n){return{templates:e(e([],n.templates,!0),[t],!1)}}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Ag.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Ag.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Yy(e){return Nf(function(){return Ih.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Jy(){return Nf(["POST/reconciliation/alerts"],function(e){return Ih.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Ag.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Zy(){return Nf(["DELETE/reconciliation/alerts"],function(e){return Ih.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Ag.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Xy(){return Nf(["UPDATE/reconciliation/alerts"],function(e){return Ih.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Ag.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ev(){return Nf(function(e){var t=e.payload;return Ih.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function tv(){return Nf(function(e){return Ih.getInstance().createSamlConfig(e)})}function nv(){return Nf(function(e){return Ih.getInstance().updateSamlConfig(e)})}function rv(){return Nf(function(){return Ih.getInstance().deleteSamlConfig()})}function ov(e,n){return void 0===n&&(n={}),Nf(function(t){return Ih.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},t(t({},n),{useErrorBoundary:!1}))}function av(e){return void 0===e&&(e={}),Nf(function(e){return Ih.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},t(t({},e),{useErrorBoundary:!1}))}function iv(){return Nf(function(e){return Ih.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sv(){return Nf(function(e){return Ih.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function cv(){return Nf(function(e){var t=e.chart_id,n=e.type,r=e.name,o=e.user_prompt,a=void 0===o?"":o;return Ih.getInstance().patchChartGPTChart(t,{type:n,name:r,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function uv(){var e=this;return Nf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,Ih.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function lv(){return Nf(function(e){return Ih.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function dv(){var e=this;return Nf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,Ih.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function pv(e,t){var n=e.chartCode,r=Af();return Nf(function(e){return Ih.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var o;r.invalidateQueries(["chart-feedback",n]),null===(o=null==t?void 0:t.onSuccess)||void 0===o||o.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})}function hv(){var e=this;return Nf(["POST/template-reporting/report-templates"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().createTemplateReporting(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Ag.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function fv(){var e=this;return Nf(["POST/template-reporting/report-templates/clone"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().cloneReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Ag.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function gv(){var e=this;return Nf(["PATCH/template-reporting/report-templates/selection"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().updateTemplateSelection(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Ag.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function mv(){var e=this;return Nf(["PATCH/template-reporting/report-templates/status"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().changeTemplateStatus(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Ag.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function yv(){var e=this;return Nf(["DELETE/template-reporting/report-templates"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().deleteReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Ag.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function vv(){var e=this;return Nf(["POST/template-reporting/report-schedules"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().createReportSchedule(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Ag.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function bv(){var e=this;return Nf(["PATCH/template-reporting/report-schedules/disable"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().disableReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Ag.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function kv(){var e=this;return Nf(["DELETE/template-reporting/report-schedules"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().deleteReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Ag.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function wv(){return Nf(function(e){return Ih.getInstance().postOrganizationConfigs(e)})}function _v(){return Nf(function(e){return Ih.getInstance().putOrganizationConfigsByAccount(e)})}function Ev(){return Nf(["create-installments-plan"],function(e){var t=e.payload;return Ih.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function xv(){return Nf(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return Ih.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})}function Sv(){return Nf(["delete-installments-plan"],function(e){var t=e.code;return Ih.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Cv(){return Nf(["bulk-create-installments-plans"],function(e){var t=e.payload;return Ih.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function Iv(){return Nf(["bulk-delete-installments-plans"],function(e){var t=e.payload;return Ih.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function Rv(){return Nf(function(e){var t=e.accountCode,n=e.payload;return Ih.getInstance().createRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Tv(){return Nf(function(e){var t=e.accountCode,n=e.exportCode;return Ih.getInstance().downloadRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Ov(){var e=Af();return Nf(["create-recipient"],function(e){var t=e.organizationCode,n=e.payload;return Ih.getInstance().createRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Av(){var e=Af();return Nf(["update-recipient"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Ih.getInstance().updateRecipient(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Pv(){var e=Af();return Nf(["delete-recipient"],function(e){var t=e.organizationCode,n=e.recipientId;return Ih.getInstance().deleteRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function jv(){var e=Af();return Nf(["create-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Ih.getInstance().createOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Dv(){var e=Af();return Nf(["update-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId,o=e.payload;return Ih.getInstance().updateOnboarding(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Lv(){var e=Af();return Nf(["block-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Ih.getInstance().blockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function zv(){var e=Af();return Nf(["unblock-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Ih.getInstance().unblockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}var qv="GET/concierge/alerts",Nv="GET/concierge/alerts/by-id";function Uv(){return qf([qv],function(){return Ih.getInstance().getConciergeAlerts().then(function(e){return e.data})},{useErrorBoundary:!1})}function Mv(e){return qf([Nv,e],function(){return Ih.getInstance().getConciergeAlertById(e).then(function(e){return e.data})},{enabled:!!e,useErrorBoundary:!1})}function Bv(){return Nf(["POST/concierge/alerts"],function(e){return Ih.getInstance().createConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Ag.invalidateQueries([qv]),Ag.invalidateQueries([Nv])},useErrorBoundary:!1})}function Fv(){return Nf(["DELETE/concierge/alerts"],function(e){return Ih.getInstance().deleteConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Ag.invalidateQueries([qv]),Ag.invalidateQueries([Nv])},useErrorBoundary:!1})}function Hv(){return Nf(["POST/concierge/alerts/enable"],function(e){var t=e.alertId,n=e.payload;return Ih.getInstance().enableConciergeAlert(t,n).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Ag.invalidateQueries([qv]),Ag.invalidateQueries([Nv])},useErrorBoundary:!1})}function Wv(){return Nf(function(e){var t=e.payload;return Ih.getInstance().postPlaygroundExecuteFlow(t).then(function(e){return null==e?void 0:e.data})})}var Gv;function Vv(e){var t=this;return qf(["fetch-payments-lazy",e],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Ih.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Kv(e){return qf(["fetch-payments-evaluated",e],function(){return Ih.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function $v(e){var t=this,o=e.paymentCode,a=e.enabled,i=void 0===a||a,s=Ih.getInstance();return qf(["get-payment-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})}function Qv(e){var t=this,o=e.payment_code,a=e.enabled,i=void 0===a||a,s=Ih.getInstance();return qf(["get-payment-transaction-details-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function Yv(e){var t=this,o=e.transaction_code,a=e.enabled,i=void 0===a||a,s=Ih.getInstance();return qf(["get-payment-transaction-raw-response",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function Jv(e){var t=_g();return qf(["payment-methods",e],function(){return Ih.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Zv(){return qf({queryKey:["/payment-methods/providers"],queryFn:function(){return Ih.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function Xv(){return qf(["GET/catalog/card-brands"],function(){return Ih.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function eb(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Cd.PAYMENTS),qf(["payment-filters",e,t],function(){return Ih.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function tb(){return qf(["payment-metrics-filters"],function(){return Ih.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function nb(e){var t=e.transaction_code,n=e.enabled;return qf(["payment-transaction-details",t],function(){return Ih.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function rb(e){var t=e.payment_code,n=e.enabled;return qf(["transaction-history",t],function(){return Ih.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function ob(e){var t=this;return qf(["POST/transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Ih.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function ab(e){var t=this;return qf(["POST/fraud-transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Ih.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function ib(e){return qf(["GET/payout-detail",JSON.stringify(e)],function(){var t=Ih.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function sb(e){return qf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Ih.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function cb(e){var t=_g();return qf(["GET/payout-history-detail",JSON.stringify(e)],function(){return Ih.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function ub(e,t){var o=this,a=_g();return qf(["GET/useGetProofOfCancel",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getProofOfCancel(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function lb(e,t){var o=this,a=_g();return qf(["GET/useGetProofOfPayment",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getProofOfPayment(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function db(e,t,o){var a=this,i=Ih.getInstance();return qf(["send-payment-notification",e,t],function(){return n(a,void 0,void 0,function(){var n,a;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,t)];case 1:return n=r.sent(),o.onSuccess(),[2,n.data];case 2:throw a=r.sent(),o.onError(),a;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function pb(e){return qf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Ih.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function hb(e){var t=this;void 0===e&&(e=!0);var o=_g();return qf(["getPayoutsFilters",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function fb(e,t){var o=this;void 0===t&&(t=!0);var a=_g();return qf(["getPayoutTimeline",e,a],function(){return n(o,void 0,void 0,function(){var t;return r(this,function(n){return t=Ih.getInstance(),e?[2,t.getPayoutTimeline(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:t&&!!e&&!!a,cacheTime:500,useErrorBoundary:!1})}function gb(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return qf(["developers"],function(){return Ih.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function mb(){return qf(["fetch-customized-api-keys-members"],function(){return Ih.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function yb(){return qf(["developers-get-allowed-ips"],function(){return Ih.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function vb(){return qf(["fetch-customized-api-keys-accounts"],function(){return Ih.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function bb(e){return qf(["fetch-customized-api-keys",e],function(){return Ih.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function kb(){return qf(["fetch-customized-api-keys-products"],function(){return Ih.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function wb(){return Nf(["developers-patch-allowed-ips"],function(e){return Ih.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{cacheTime:0})}function _b(){return qf(["fetch-organizations"],function(){return Ih.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Eb(){return qf(["fetch-all-organizations",_g()],function(){return Ih.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function xb(e){var t=_g();return qf(["organizations-provider-params",e],function(e){var n=e.queryKey;return Ih.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Sb(e){var t=e.integration_code,n=e.enabled,r=e.accountCode;return qf(["integration-params",t,r],function(){return t.includes("undefined")?{}:Ih.getInstance().getIntegrationParams({accountCode:r,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Cb(e){var t=e.accountCode,n=e.organizationCode,r=_g();return qf(["organizations-account-integrations",t,n],function(){return Ih.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||r}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Ib(e){var t=e.accountCode,n=e.paymentMethod,r=e.basePath,o=void 0===r?Ad.DEFAULT_ROUTING_TYPE:r;return qf(["fetch-connections-by-payment-method",n,t,o],function(){return Ih.getInstance().getConnectionsByPaymentMethod(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Rb(){var e=this;return qf(["fetch-hash-pylon"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Tb(){return qf(["connections"],function(){return Ih.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Ob(){return qf(["params-catalog"],function(){return Ih.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function Ab(e){var t=e.accountCode,n=e.name;return qf(["webhooks",t,n],function(){return Ih.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function Pb(e){var t=e.accountCode,n=e.enabled;return qf(["webhooks-detail",t],function(){return Ih.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function jb(e){var t,n=_g(),r=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return qf({queryKey:["accounts",r],queryFn:function(){return Ih.getInstance().getAccounts(r).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!r})}function Db(e){return qf(["accountsV2",e],function(){return Ih.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Lb(e){return qf(["accountsV2-by-user",e],function(){return e?Ih.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function zb(e,t){var o=this;return qf({queryKey:["accounts-for-impersonation",e,t],queryFn:function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getAccountsForImpersonation(e).then(function(e){var n,r;return(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.response)||void 0===r?void 0:r.map(function(e){return{label:e.name,value:t?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function qb(e){var t=this;return qf({queryKey:["roles-for-impersonation",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Ih.getInstance().getRolesForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Nb(e){return qf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Ih.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function Ub(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),qf(["smart-routing-methods",e,t],function(){return Ih.getInstance().getSmartRoutingMethods(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Mb(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),qf(["smart-routing-workflow",t,e,n],function(){return Ih.getInstance().getSmartRoutingWorkflow(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Bb(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),qf(["smart-routing-condition-types",e,t,n],function(){return Ih.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function Fb(e,t){return qf(["smart-routing-condition-payment-method",e,t],function(){return Ih.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function Hb(e,t){return qf(["smart-routing-condition-types-values",t,e],function(){return Ih.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function Wb(e){var t=e.accountCode,n=e.workflowVersionId,r=e.routingType,o=void 0===r?Ad.DEFAULT_ROUTING_TYPE:r;return qf(["smart-routing-workflow-version",n,t,o],function(){return Ih.getInstance().getSmartRoutingWorkflowVersion(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Gb(e,t,n,r){return void 0===r&&(r=Ad.DEFAULT_ROUTING_TYPE),qf(["smart-routing-next-route",e,n,t,r],function(){return Ih.getInstance().getSmartRoutingNextSteps(e,t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})}function Vb(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),qf(["smart-routing-decline-groups",e,t],function(){return Ih.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Kb(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),qf(["smart-routing-payment-route",e,t,n],function(){return Ih.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function $b(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),qf(["smart-routing-simulate-condition-type-values",e,t],function(){return Ih.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Qb(e){var t=e.text,n=e.conditionType;return qf(["smart-routing-search-condition-values",t,n],function(){return Ih.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Yb(){return qf(["smart-routing-conversion-rates"],function(){return Ih.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function Jb(){var e=this;return qf({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Zb(){var e=this;return qf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Xb(e){return qf(["fetch-routing-monitors-templates",e],function(){return Ih.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function ek(e,t){return qf(["fetch-routing-monitors-template",e],function(){return Ih.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function tk(e,n){var r=e.accountCode,o=qf(["checkouts",r],function(){return Ih.getInstance().getCheckouts({accountCode:r}).then(function(e){return e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n)),a=o.refetch;return t(t({},o),{refetch:function(e){return a(null!=e?e:void 0)}})}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(Gv||(Gv={}));var nk=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},rk=function(e,t){var n=e.paymentMethodType,r=e.type;return qf(nk({paymentMethodType:n,type:r}),function(){return Ih.getInstance().getNameAndIcon({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},ok=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},ak=function(e,t){var n=e.paymentMethodType,r=e.type;return qf(ok({paymentMethodType:n,type:r}),function(){return Ih.getInstance().getRequiredFields({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},ik=function(e){return qf(["checkout-builder-country-data",e],function(){return Ih.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},sk=function(e){return["checkout-payment-method-accounts",e.paymentMethod,e.organizationCode]},ck=function(e,n){var r=e.paymentMethod,o=e.organizationCode;return qf(sk({paymentMethod:r,organizationCode:o}),function(){return Ih.getInstance().getPaymentMethodAccounts({paymentMethod:r,organizationCode:o}).then(function(e){return null==e?void 0:e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))};function uk(e){var t=e.accountCode;return qf(["styling-sdk-dynamic",t],function(){return Ih.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function lk(e){var t=e.accountCode;return qf(["styling-settings-v2",t],function(){return Ih.getInstance().getStylingSettingsV2({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function dk(){return Nf(function(e){var t=e.accountCode,n=e.payload;return Ih.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function pk(e){return qf(["notifications-customer",e],function(){return Ih.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function hk(e){return qf(["validate-opsgenie-key",e],function(){return Ih.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function fk(){return qf(["notifications-merged"],function(){return Ih.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function gk(){return Nf(function(e){return Ih.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function mk(){var e=this;return Nf(function(t){return n(e,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().pathNotification(t)];case 1:return[2,null==(e=n.sent())?void 0:e.data]}})})})}var yk={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function vk(){return qf(["reports"],function(){return Ih.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function bk(e){return void 0===e&&(e=!0),qf(["reports-multi-env"],function(){return Ih.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function kk(e,t,n){return void 0===t&&(t=!1),qf(["reports/".concat(e)],function(){return Ih.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function wk(e){return qf(["GET/reports/templates"],function(){return Ih.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function _k(t,o,a){var i=this;return qf(["GET/reports/columns/".concat(o,"/").concat(a)],function(){return n(i,void 0,void 0,function(){return r(this,function(t){return[2,Ih.getInstance().getReportColumns(o,a).then(function(t){return o===Od.ALL&&a===Td.PAYMENTS?e(e([],(null==t?void 0:t.data)||[],!0),[yk],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})}function Ek(e,t){var o=this,a=_g();return qf(["getRefundPdf",e,a,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getRefundPdf(e,a,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!a,useErrorBoundary:!1})}function xk(){var e=_g();return qf(["teams-filters-members"],function(){return Ih.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Sk(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l=_g();return qf(["fetch-post-members-v2",t,n,r,o,a,i,s,c,u],function(){return Ih.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:r,status:o,roleId:a,statuses:i,roleIds:s,page:c,pageSize:u}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Ck(){return qf(["fetch-roles"],function(){return Ih.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Ik(){return qf(["fetch-rolespermissions"],function(){return Ih.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Rk(){return qf(["fetch-permissions-catalog"],function(){return Ih.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Tk(){return qf(["fetch-org-roles-permissions"],function(){return Ih.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Ok(){return qf(["fetch-org-permissions-catalog"],function(){return Ih.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Ak(e){var t=e.exportCode,n=e.enabled;return qf(["user-export-status",t],function(){return Ih.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})}function Pk(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r,a=e.enabled;return qf(["user-exports-list",n,o],function(){return Ih.getInstance().listUserExports({page:n,pageSize:o}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})}function jk(){var e=this,t=Af();return function(o){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,t.fetchQuery(["user-export-status",o],function(){return Ih.getInstance().getUserExportStatus({exportCode:o}).then(function(e){return null==e?void 0:e.data})})]})})}}function Dk(e){return qf(["data-report",e],function(){return Ih.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function Lk(e,t,n,r){void 0===n&&(n=!0);return qf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Ih.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})}function zk(e,t){return qf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Ih.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function qk(e){return qf(["get-insights-conversion-rate-fallback-metrics",e],function(){return Ih.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Nk(e,t,n,r){return void 0===r&&(r=!0),delete t.account_code,qf(["get-insights-volume-metrics-v2",t,e,n],function(){return Ih.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:r,cacheTime:200,useErrorBoundary:!1})}function Uk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return qf(["get-insights-overview-v3",e,t],function(){return Ih.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Mk(e){return qf(["get-insights-home-metrics",e],function(){return Ih.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function Bk(e){return qf(["get-insights-reports",e],function(){return Ih.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function Fk(e){return qf(["get-insights-reports-again",e],function(){return Ih.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function Hk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Wk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-fraud-screening-conversion-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsFraudScreeningConversionRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Gk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-3ds-volume-and-count-tx",t,e],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsights3dsVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Vk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsights3dsConversionRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Kk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-3ds-decline-reasons",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsights3dsDeclineReasons(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function $k(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsights3dsFrictionlessVsChallenge(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Qk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsChargebacksVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Yk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Jk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-chargebacks-win-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsChargebacksWinRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Zk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-chargebacks-disputed",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsChargebacksDisputed(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Xk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ew(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-chargebacks-reasons-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsChargebacksReasonsDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function tw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-chargebacks-status-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsChargebacksStatusDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function nw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),qf({queryKey:["post-insights-chargebacks-by-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getInsightsChargebacksByCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rw(e,t){return qf(["fetch-reconciliation-transaction",e],function(){return Ih.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function ow(e,t){return qf(["fetch-reconciliation-settlements",e],function(){return Ih.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function aw(e,t){return qf(["fetch-reconciliation-metrics",e],function(){return Ih.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function iw(){return qf(["GET-reconciliation-filters"],function(){return Ih.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sw(e){return qf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Ih.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cw(){return qf(["GET/v1/reconciliation/active"],function(){return Ih.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})}function uw(e,t,n){return qf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Ih.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function lw(e){return qf(["GET/reconciliation/reports/templates"],function(){return Ih.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function dw(e){var t=e.body,n=e.params,r=e.enabled;return qf(["GET/reconciliation/alerts/list",t,n],function(){return Ih.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function pw(e){var t=e.body,n=e.params,r=e.enabled;return qf(["GET/reconciliation/agenda/list",t,n],function(){return Ih.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function hw(e){var t=e.body,n=e.params,r=e.enabled;return qf(["GET/reconciliation/agenda/insights",t,n],function(){return Ih.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function fw(e){var t=e.body,n=e.params,r=e.enabled;return qf(["GET/reconciliation/sales/list",t,n],function(){return Ih.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function gw(e){var t=e.body,n=e.params,r=e.enabled;return qf(["GET/reconciliation/advancements/list",t,n],function(){return Ih.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function mw(e){var t=e.body,n=e.params,r=e.enabled;return qf(["GET/reconciliation/fees/list",t,n],function(){return Ih.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function yw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-conflicts-summary",t],function(){return Ih.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function vw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return Ih.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function bw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-not-reconciled-list",t],function(){return Ih.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function kw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-status-conflict-aggregators",t],function(){return Ih.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function ww(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-status-conflict-list",t],function(){return Ih.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function _w(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return Ih.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Ew(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-amount-conflict-list",t],function(){return Ih.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function xw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-conflict-date-summary",t],function(){return Ih.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Sw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-conflict-date-aggregators",t],function(){return Ih.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Cw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-conflict-date-list",t],function(){return Ih.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Iw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return qf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return Ih.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Rw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return qf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return Ih.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Tw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return qf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return Ih.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Ow(e){var t=e.body,n=e.dateFilter,r=e.enabled;return qf(["reconciliation-insights-fees-charged-summary",t,n],function(){return Ih.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Aw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return qf(["reconciliation-insights-reconciled-summary",t,n],function(){return Ih.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Pw(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return qf(["reconciliation-insights-reconciled-aggregators",t,n,r],function(){return Ih.getInstance().getReconciliationInsightsReconciledAggregators(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function jw(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return qf(["reconciliation-insights-reconciled-list",t,n,r],function(){return Ih.getInstance().getReconciliationInsightsReconciledList(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function Dw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-not-confirm-summary",t],function(){return Ih.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Lw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-not-confirm-aggregators",t],function(){return Ih.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function zw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-not-confirm-list",t],function(){return Ih.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function qw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return Ih.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Nw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return Ih.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Uw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return Ih.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Mw(e){var t=e.body,n=e.enabled;return qf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return Ih.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Bw(e){var t=this,o=Object.values(e).filter(Boolean);return qf(["feature-flags",o],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Ih.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function Fw(e){var t=this,o=qf({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Ih.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),a=Af();return u(function(){a.setQueryData(["cached-feature-flags"],o)},[o,a]),o}function Hw(e){var n,r,o=Af(),a=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(r=null==a?void 0:a.data)||void 0===r?void 0:r.status)),s=qf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return t(t({},s),{isLoading:i})}function Ww(e){return qf(["events",e],function(){return Ih.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function Gw(e){return qf(["audit-monitor-event-detail",e],function(){return Ih.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function Vw(e){return qf(["api-logs",e],function(){return Ih.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Kw(e){var t=e.params;return qf(["webhook-logs",t],function(){return Ih.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function $w(e,t){return qf(["api-logs-detail",e,t],function(){return Ih.getInstance().getApiLogsDetailByPaymentCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Qw(e,t){return qf(["api-logs-by-transaction",e,t],function(){return Ih.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function Yw(e,t){return void 0===t&&(t=!0),qf(["audit-exports-list",e],function(){return Ih.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})}function Jw(e,t,n){return void 0===t&&(t=!1),qf(["audit-export-download",e],function(){return Ih.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})}function Zw(e){var t=e.tab,n=e.exportId,r=e.enabled,o=void 0!==r&&r,a=e.onSuccess;return qf(["unified-export-status",t,n],function(){return Ih.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&o,cacheTime:0,useErrorBoundary:!1,onSuccess:a})}function Xw(e){var t=e.tab,n=e.page,r=void 0===n?0:n,o=e.size,a=void 0===o?10:o,i=e.enabled;return qf(["unified-exports-list",t,r,a],function(){return Ih.getInstance().getUnifiedExportsList(t,r,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})}function e_(e){return qf(["api-logs-stats-requests",e],function(){return Ih.getInstance().postApiLogsStatsRequests(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function t_(e){return qf(["api-logs-stats-errors",e],function(){return Ih.getInstance().postApiLogsStatsErrors(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function n_(e){return qf(["api-logs-stats-errors-by-endpoint",e],function(){return Ih.getInstance().postApiLogsStatsErrorsByEndpoint(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function r_(e){return qf(["api-logs-list",e],function(){return Ih.getInstance().postApiLogsList(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function o_(e){var t=e.paymentCode,n=e.createdAtFrom,r=e.enabled;return qf(["api-logs-v2-payment",t,n],function(){return Ih.getInstance().getApiLogsV3ByPaymentCode(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:(void 0===r||r)&&!!t,cacheTime:0,useErrorBoundary:!1})}function a_(e,t){return qf(["fetch-payment-links",e,t],function(){return Ih.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function i_(e){return qf(["payment-link"],function(){return Ih.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function s_(e){return void 0===e&&(e=!0),qf(["countries",e],function(){return Ih.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function c_(e){var t=localStorage.getItem("lang")||"en",n=e||t;return qf(["countries-v2",n],function(){return Ih.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function u_(e,t){return void 0===t&&(t=!0),qf(["subscription",e],function(){return Ih.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})}function l_(e,t,n,r){return void 0===r&&(r=!0),qf(["subscription-payments",e,t,n],function(){return Ih.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&r,cacheTime:0})}function d_(e){return Nf(function(e){var t=e.payload;return Ih.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function p_(e,t){return qf(["get-cofig-allow-list",e],function(){return Ih.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function h_(e,t){return void 0===t&&(t=!0),qf(["get-black-list",e],function(){return Ih.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})}function f_(e,t,n,r){var o;return qf(["post-black-list",e],function(){return Ih.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=r?r:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function g_(e,t,n){return qf(["get-block-list-summary",e,t,n],function(){var r=Ih.getInstance();return n?r.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function m_(e,t,n,r,o,a){return qf(["black-list-detail",e,t,r,o,a],function(){return Ih.getInstance().getBlacklistDetail(e,t,n,r,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})}function y_(e,t,n){return qf(["allow-list-detail",e],function(){return Ih.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function v_(e,t){return void 0===t&&(t=!0),qf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Ih.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})}function b_(e,t){var o=this;return void 0===e&&(e=26),void 0===t&&(t=0),qf(["batch-refunds",e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getBatchRefunds(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function k_(e){return qf(["velocity-rules",e],function(){var t=Ih.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function w_(){return qf(["config-rules"],function(){return Ih.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function __(e,t){var n=e.organizationCode;return qf(["mfa-excluded-users",n],function(){return Ih.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function E_(e,t){var n=e.organizationCode;return qf(["mfa-config",n],function(){return Ih.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function x_(e,t){return qf(["mfa-enforcement-status",e.accountCode],function(){return Ih.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function S_(e){return qf(["workos-mfa-status"],function(){return Ih.getInstance().getWorkOsMfaStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:e.enabled})}function C_(e){return qf(["fetch-organization-saml-config",e],function(){return Ih.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function I_(e){return qf(["chartgpt-chart-execute",e],function(){return Ih.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function R_(){return qf(["chartgpt-user-charts"],function(){return Ih.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function T_(){var e=this;return qf(["chartgpt-user-charts-with-results"],function(){return n(e,void 0,void 0,function(){var e,o,a,i=this;return r(this,function(s){switch(s.label){case 0:return[4,(e=Ih.getInstance()).getChartsByUser()];case 1:return o=s.sent(),a=(null==o?void 0:o.data)||[],[4,Promise.all(a.map(function(o){return n(i,void 0,void 0,function(){var n,a,i,s,c,u,l,d;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return n=r.sent(),[2,t(t({},o),{user_prompt:null!==(s=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(d=null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return a=r.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),a),[2,t(t({},o),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function O_(e,t,o){var a=this;return void 0===o&&(o=!0),qf(["chartgpt-patch-and-execute",e,t],function(){return n(a,void 0,void 0,function(){var n,o,a,i,s;return r(this,function(r){switch(r.label){case 0:return[4,(n=Ih.getInstance()).patchChartGPTChart(e,t)];case 1:return o=r.sent(),a=null==o?void 0:o.data,[4,n.executeChartGPTChart(e)];case 2:return i=r.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function A_(e){var t=this,o=e.chartCode,a=e.enabled;return qf(["chart-feedback",o],function(){return n(t,void 0,void 0,function(){var e,t,n,a,i;return r(this,function(r){switch(r.label){case 0:e=Ih.getInstance(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getChartFeedback(o)];case 2:return t=r.sent(),(n=null==t?void 0:t.data)&&n.rating?[2,n]:[2,null];case 3:if(a=r.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===a||a)&&!!o,staleTime:3e5})}function P_(){return qf(["languages"],function(){return Ih.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function j_(){var e=localStorage.getItem("lang")||"en";return qf(["translations",e],function(){return Ih.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function D_(e){var t=this;return qf({queryKey:["network-tokens-onboarding",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,Ih.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}})})},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var L_=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},z_=function(e,t,n){if(!t||!n)return e||[];var r=function(e,t){var n=[],r=new Date(e),o=new Date(t);r.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0);for(var a=new Date(r);a<=o;)n.push(a.toISOString()),a.setUTCDate(a.getUTCDate()+1);return n}(t,n),o=new Map;return null==e||e.forEach(function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];o.set(t,e.value)}}),r.map(function(e){var t=e.split("T")[0];return{date:e,value:o.get(t)||"0"}})},q_=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var r=parseFloat(n.value||"0");return{distribution:n.rows.map(function(e){var t,n=100*parseFloat(e.value),o=Math.round(r*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:o,percentage:n,amount:o}}),total:r}},N_=function(e,t,n){var r,o={};return null===(r=e.plots)||void 0===r||r.forEach(function(e){var r=z_(e.rows,t,n),a=e.label;o[a]=r.map(function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:L_(e.date||""),current_amount:100*parseFloat(e.value)}})}),o},U_=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:z_(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:L_(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},M_=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:z_(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:L_(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},B_=function(e,o){return qf(t({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Ih.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",n)];case 1:return o=r.sent(),[2,(a=o.data,i=n.start_date,s=n.end_date,c=a.plots||[],u=c.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=c.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=c.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=z_(null==u?void 0:u.rows,i,s),h=z_(null==l?void 0:l.rows,i,s),f=z_(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:L_(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==u?void 0:u.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:L_(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,c,u,l,d,p,h,f})})},enabled:!!e.organization_code,staleTime:3e5},o))},F_=function(e,o){return qf(t({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Ih.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",n)];case 1:return o=r.sent(),[2,q_(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},H_=function(e,o){return qf(t({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Ih.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",n)];case 1:return o=r.sent(),[2,N_(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},W_=function(e,o){return qf(t({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Ih.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",n)];case 1:return o=r.sent(),[2,U_(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},G_=function(e,o){return qf(t({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Ih.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",n)];case 1:return o=r.sent(),[2,M_(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))};function V_(e,t){var o=this;return qf(["POST/template-reporting/templates/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,Ih.getInstance().searchReportTemplates(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function K_(e,t,o){var a=this;return qf(["POST/template-reporting/template-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().searchReportTemplateById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function $_(e,t){var o=this;return qf(["POST/template-reporting/schedules/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,Ih.getInstance().searchReportSchedules(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function Q_(e,t,o){var a=this;return qf(["POST/template-reporting/schedule-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().searchReportScheduleById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function Y_(){return qf({queryKey:["organization-configs"],queryFn:function(){return Ih.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})}function J_(e){var t=e.accountCode,n=e.enabled;return qf(["onboarding-status",t],function(){return Ih.getInstance().getOnboardingStatus(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Z_(e,t,o){var a=this;return void 0===o&&(o=!0),qf(["get-recipients",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getRecipients(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function X_(e,t,o){var a=this;return void 0===o&&(o=!0),qf(["get-recipient-by-id",e,t.recipient_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getRecipientById(e,t.recipient_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&o,cacheTime:500,useErrorBoundary:!1})}function eE(e,t,o){var a=this;return void 0===o&&(o=!0),qf(["get-onboarding-detail",e,t.recipient_id,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getOnboardingDetail(e,t.recipient_id,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function tE(e,t,o){var a=this;return void 0===o&&(o=!0),qf(["get-onboarding-timeline",e,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getOnboardingTimeline(e,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function nE(e,t,o){var a=this;return void 0===o&&(o=!0),qf(["get-recipient-exports",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().getRecipientExports(t,e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function rE(e,t,o){var a=this;return void 0===o&&(o=!0),qf(["get-recipient-export-download",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Ih.getInstance().downloadRecipientExport(t,e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t&&o,cacheTime:0,useErrorBoundary:!1})}function oE(e,t,n){return void 0===t&&(t=!0),qf(["installments-plans",e,n],function(){return Ih.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})}function aE(e,t){return void 0===t&&(t=!0),qf(["search-installments-plans",JSON.stringify(e)],function(){return Ih.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})}function iE(e){var t=this,o=e.paymentCode,a=e.enabled;return qf({queryKey:["api-logs-v3",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().getApiLogsV3(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function sE(e){var t=this,o=e.paymentCode,a=e.enabled;return qf({queryKey:["webhook-timeline",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Ih.getInstance().getWebhookTimeline(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function cE(){var e=this;return qf(["workos-domain-status"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Ih.getInstance().workosDomainStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function uE(e){var t=this,o=e.scope,a=e.enabled;return qf(["hidden-fields",o],function(){return n(t,void 0,void 0,function(){var e,t;return r(this,function(n){switch(n.label){case 0:return[4,Ih.getInstance().getHiddenFields({scope:o})];case 1:return e=n.sent(),[2,null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[]]}})})},{enabled:!!o&&(void 0===a||a),staleTime:3e5,useErrorBoundary:!1})}function lE(){return lE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lE.apply(this,arguments)}
50
+ */"production"===process.env.NODE_ENV?Tf.exports=function(){if(Rf)return Of;Rf=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return o(function(){u.value=s,u.getSnapshot=t,i(u)&&l({inst:u})},[e,s,t]),r(function(){return i(u)&&l({inst:u}),e(function(){i(u)&&l({inst:u})})},[e]),a(s),s};return Of.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:c,Of}():Tf.exports=(Af||(Af=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useState,o=t.useEffect,a=t.useLayoutEffect,i=t.useDebugValue,c=!1,u=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){c||void 0===t.startTransition||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!u){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var h=(p=r({inst:{value:d,getSnapshot:l}}))[0].inst,f=p[1];return a(function(){h.value=d,h.getSnapshot=l,e(h)&&f({inst:h})},[s,d,l]),o(function(){return e(h)&&f({inst:h}),s(function(){e(h)&&f({inst:h})})},[s]),i(d),d};Pf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Pf);var jf=Tf.exports;const Df=jf.useSyncExternalStore,Lf=i.createContext(void 0),zf=i.createContext(!1);function qf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Lf),window.ReactQueryClientContext):Lf)}const Nf=({context:e}={})=>{const t=i.useContext(qf(e,i.useContext(zf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Uf=({client:e,children:t,context:n,contextSharing:r=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&r&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=qf(n,r);return i.createElement(zf.Provider,{value:!n&&r},i.createElement(o.Provider,{value:e},t))},Mf=i.createContext(!1);Mf.Provider;const Bf=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Ff(e,t){return"function"==typeof e?e(...t):!!e}function Hf(e,t){const n=Nf({context:e.context}),r=i.useContext(Mf),o=i.useContext(Bf),a=n.defaultQueryOptions(e);a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=hf.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=hf.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=hf.batchCalls(a.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(a),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(o);const[s]=i.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(Df(i.useCallback(e=>{const t=r?()=>{}:s.subscribe(hf.batchCalls(e));return s.updateResult(),t},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(a,c,r))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(a,s,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Ff(n,[e.error,r]))({result:c,errorResetBoundary:o,useErrorBoundary:a.useErrorBoundary,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function Wf(e,t,n){return Hf(Mh(e,t,n),_f)}function Gf(e,t,n){const r=function(e,t,n){return Xh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Nf({context:r.context}),[a]=i.useState(()=>new If(o,r));i.useEffect(()=>{a.setOptions(r)},[a,r]);const s=Df(i.useCallback(e=>a.subscribe(hf.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=i.useCallback((e,t)=>{a.mutate(e,t).catch(Vf)},[a]);if(s.error&&Ff(a.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function Vf(){}var Kf;function $f(e){return Gf(function(e){var t=e.payload;return Dh.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Qf(e){return Gf(function(e){var t=e.code,n=e.accountCode;return Dh.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Yf(e){return Gf(function(e){var t=e.code,n=e.payload,r=e.accountCode;return Dh.getInstance().updateWebhookV2(t,n,r)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Jf(){return Gf(function(e){var t=e.name,n=e.principal;return Dh.getInstance().postAccount(t,n)})}function Zf(){return Gf(function(n){var r=e([Kf.ACCOUNT],n.duplicate_order,!0);return Dh.getInstance().duplicateAccount(t(t({},n),{duplicate_order:r}))})}function Xf(){return Gf(function(e){return Dh.getInstance().retryDuplicateAccount(e)})}function eg(){return Gf(function(e){var t=e.name,n=e.code,r=e.principal;return Dh.getInstance().patchAccountV2({name:t,code:n,principal:r})})}function tg(){return Gf(function(e){var t=e.account_code;return Dh.getInstance().putAccountPrincipal({account_code:t})})}function ng(){return Gf(function(e){return Dh.getInstance().bulkDisableAccounts(e)},{useErrorBoundary:!1})}function rg(){return Gf(function(e){return Dh.getInstance().bulkEnableAccounts(e)},{useErrorBoundary:!1})}function og(){return Gf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Dh.getInstance().putAccountsUserMassive(t,n,r)})}function ag(){return Gf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Dh.getInstance().deleteAccountsUserMassive(t,n,r)})}function ig(){return Gf(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Dh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function sg(){return Gf(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Dh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function cg(){return Gf(function(e){return Dh.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function ug(){return Gf(["post-connection"],function(e){var t=e.payload;return Dh.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function lg(){return Gf(["new-post-connection-validate"],function(){return Dh.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function dg(){return Gf(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Dh.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function pg(){return Gf(function(e){var t=e.payload;return Dh.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function hg(){return Gf(function(e){return Dh.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function fg(){var e=this;return Gf(function(t){var o=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})}function gg(){return Gf(["patch-organizations"],function(){return Dh.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function mg(){return Gf(function(e){return Dh.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function yg(){var e=this;return Gf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().changePasswordV2(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function vg(){var e=this;return Gf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().workosPasswordReset(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function bg(){var e=this;return Gf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function kg(){var e=this;return Gf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().workosDomainVerificationPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function wg(){var e=this;return Gf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().workosVerifyMfa(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function _g(e){return Gf(function(e){return Dh.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Eg(){return Gf(function(e){return Dh.getInstance().inviteUsersMassive(e,e.organizationCode)})}function xg(){return Gf(function(e){return Dh.getInstance().inviteUsersMassiveV2(e)})}function Sg(){return Gf(function(e){var t=e.userCode,n=e.organizationCode;return Dh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function Cg(){return Gf(function(e){return Dh.getInstance().createUserAuth0(e)})}function Ig(){return Gf(function(e){return Dh.getInstance().postCall(e)})}function Rg(){return Gf(function(e){return Dh.getInstance().changeLoginMethods(e)})}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(Kf||(Kf={}));var Tg=function(){var e=c("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return u(function(){var e=function(e){"isTesting"===e.key&&n("ON"===e.newValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}},[]),{isTesting:t}},Og=function(e){var t=localStorage.getItem(e),n=c(t&&JSON.parse(t)),r=n[0],o=n[1];return u(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),r},Ag=function(){var e,t;return null===(t=null===(e=Og("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code},Pg=function(){var e,t=Tg().isTesting,n=null===(e=Og("account"))||void 0===e?void 0:e.value;return(t?null==n?void 0:n.account_code_testing:null==n?void 0:n.account_code_live)||(null==n?void 0:n.code)};function jg(e){var n=Pg(),r=l(n);return r.current=n,Gf(function(e){return Dh.getInstance().updateIsActiveCheckout(t(t({},e),{accountCode:r.current}))},e)}function Dg(e){var n=Pg(),r=l(n);return r.current=n,Gf(function(e){return Dh.getInstance().publishCheckout(t(t({},e),{accountCode:r.current}))},e)}function Lg(){return Gf(function(e){var t=e.payload,n=e.transactionId,r=e.paymentId,o=e.action;return Dh.getInstance().createOperationTransaction(t,n,r,o)})}function zg(){return Gf(function(e){var t=e.payload,n=e.paymentId,r=e.transactionId,o=e.handleSetProgress;return Dh.getInstance().uploadChargebacks(t,n,r,o)})}function qg(){return Gf(function(e){var t=e.transactionCode,n=e.payload;return Dh.getInstance().postProviderRawResponse(t,n)})}function Ng(){return Gf(function(e){var t=e.paymentId,n=e.payload;return Dh.getInstance().addToRiskList(t,n)})}var Ug=new mf({}),Mg=new class{constructor(e={}){this.queryCache=e.queryCache||new mf,this.mutationCache=e.mutationCache||new bf,this.logger=e.logger||pf,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=rf.subscribe(()=>{rf.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=af.subscribe(()=>{af.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Bh(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=Mh(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=Mh(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return hf.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Bh(e,t),r=this.queryCache;hf.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,o]=Bh(e,t,n),a=this.queryCache,i={type:"active",...r};return hf.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(i,o)))}cancelQueries(e,t,n){const[r,o={}]=Bh(e,t,n);void 0===o.revert&&(o.revert=!0);const a=hf.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(a).then(qh).catch(qh)}invalidateQueries(e,t,n){const[r,o]=Bh(e,t,n);return hf.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[r,o]=Bh(e,t,n),a=hf.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}));let i=Promise.all(a).then(qh);return null!=o&&o.throwOnError||(i=i.catch(qh)),i}fetchQuery(e,t,n){const r=Mh(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(qh).catch(qh)}fetchInfiniteQuery(e,t,n){const r=Mh(e,t,n);return r.behavior=kf(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(qh).catch(qh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>Gh(e)===Gh(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Vh(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Vh(e,t.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>Gh(e)===Gh(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Vh(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Vh(e,t.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Wh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:Ug});function Bg(){return Gf(function(e){return Dh.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Fg(){return Gf(function(e){return Dh.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Hg(){return Gf(function(e){return Dh.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function Wg(){return Gf(function(e){return Dh.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Gg(){return Gf(function(e){return Dh.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function Vg(t){var o=this;return Gf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().createReportTemplate(t).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n;return r(this,function(r){switch(r.label){case 0:return[4,Mg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return r.sent(),n=Mg.getQueryData(["GET/reports/templates"]),Mg.setQueryData(["GET/reports/templates"],function(n){return e(e([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Mg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Mg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Kg(e){return Gf(function(){return Dh.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function $g(){return Gf(function(e){return Dh.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function Qg(e,t,o){var a=this;void 0===o&&(o=null);var i=(null==o?void 0:o.basePath)||Nd.DEFAULT_ROUTING_TYPE;return Gf(function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().postSmartRoutingCreateWorkflow(e,t,i).then(function(e){return null==e?void 0:e.data})];case 1:return[2,n.sent()]}})})},o)}function Yg(e,t){var o=this,a=e.versionCode,i=e.accountCode,s=e.organizationCode,c=e.routingType,u=void 0===c?Nd.DEFAULT_ROUTING_TYPE:c;return void 0===t&&(t=null),Gf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().postSmartRoutingPublishVersion(i,a,s,u).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},t)}function Jg(e,t){var n=e.data,r=e.accountCode,o=e.routingType,a=void 0===o?Nd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Gf(function(){return Dh.getInstance().putSmartRoutingUpdateWorkflow(r,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function Zg(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Nd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Gf(function(){return Dh.getInstance().deleteSmartRoutingVersion(r,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Xg(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Nd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Gf(function(){return Dh.getInstance().postSmartRoutingDuplicateVersion(r,String(n),a).then(function(e){return null==e?void 0:e.data})},t)}function em(e,t){var n=e.paymentMethod,r=e.active,o=e.accountCode,a=e.routingType,i=void 0===a?Nd.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Gf(function(){return Dh.getInstance().putSmartRoutingToggleMethod(o,n,r,i).then(function(e){return null==e?void 0:e.data})},t)}function tm(e,t){var o=this;return void 0===t&&(t=null),Gf(function(t){return n(o,void 0,void 0,function(){var n,o,a,i,s,c;return r(this,function(r){switch(r.label){case 0:return n=Dh.getInstance(),o=t.map(function(t){return n.putSmartRoutingToggleMethod(e,t.paymentMethod,t.active,t.routingType)}),[4,Promise.allSettled(o)];case 1:return a=r.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),c=i.map(function(e,n){return{paymentMethod:t[n].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:t.length,errors:c}]}})})},t)}function nm(e,t){var n=e.declinedId,r=e.accountCode;return void 0===t&&(t=null),Gf(function(e){return void 0===e&&(e=null),Dh.getInstance().updateSmartRoutingDeclinedGroup(r,n,e).then(function(e){return null==e?void 0:e.data})},t)}function rm(e){var t=e.accountCode;return Gf(function(e){return void 0===e&&(e=null),Dh.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function om(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Nd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Gf(function(e){return void 0===e&&(e=!1),Dh.getInstance().updateSmartRoutingFavorite(r,n,e,a).then(function(e){return null==e?void 0:e.data})},t)}function am(e,t){var n=e.code,r=e.name,o=e.accountCode,a=e.routingType,i=void 0===a?Nd.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Gf(function(){return Dh.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:r},i).then(function(e){return null==e?void 0:e.data})},t)}function im(e,t){var n=e.accountCode,r=e.workflowVersionCode,o=e.routingType,a=void 0===o?Nd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Gf(function(e){return Dh.getInstance().simulateSmartRoutingTransaction(n,r,e,a).then(function(e){return null==e?void 0:e.data})},t)}function sm(e,t){return void 0===t&&(t=null),Gf(function(t){return Dh.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function cm(e,n){return void 0===n&&(n={}),Gf(function(t){var n=t.declinedGroupCode;return Dh.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}function um(e,n){return void 0===n&&(n={}),Gf(function(t){var n=t.payload;return Dh.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}var lm=function(e){return Gf(function(t){return Dh.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},dm=function(e){return Gf(function(t){return Dh.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function pm(){return Gf(function(e){var t=e.payload;return Dh.getInstance().postSlackFeatureNotification(t).then(function(e){return null==e?void 0:e.data})})}function hm(){return Gf(function(e){var t=e.userCode,n=e.organizationCode;return Dh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function fm(){return Gf(function(){return Dh.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function gm(){return Gf(function(e){var t=e.payload,n=e.accountCode;return Dh.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function mm(){var e=this;return Gf(function(t){var o=t.payload,a=t.id,i=t.accountCode;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,Dh.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function ym(){return Gf(function(e){return Dh.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function vm(){return Gf(function(e){var t=e.payload;return Dh.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function bm(){var e=this;return Gf(function(t){var o=t.payload,a=t.id;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,Dh.getInstance().editOrgRole({payload:o,id:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function km(){return Gf(function(e){return Dh.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})}function wm(){return Gf(function(e){return Dh.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function _m(){return Gf(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Dh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Em(){return Gf(["post-delete-payment-link"],function(e){var t=e.code;return Dh.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function xm(){return Gf(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return Dh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:r}).then(function(e){return null==e?void 0:e.data})})}function Sm(){return Gf(["upload-payment-link-logo"],function(e){var t=e.payload;return Dh.getInstance().uploadPaymentLinkLogo({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Cm(){return Gf(["post-subscription"],function(e){return Dh.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})}function Im(){return Gf(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return Dh.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Rm(){return Gf(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return Dh.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Tm(){return Gf(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return Dh.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Om(){return Gf(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return Dh.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})}function Am(){return Gf(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return Dh.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Pm(){return Gf(["post-list-subscriptions"],function(e){return Dh.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})}function jm(){return Gf(function(e){var t=e.payload;return Dh.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Dm(){return Gf(function(e){return Dh.getInstance().postUserThemeSettings(e)})}function Lm(){return Gf(function(e){var t=e.payload,n=e.section;return Dh.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var n=Mg.getQueryData(["fetch-profile"]);e.data&&Mg.setQueryData(["fetch-profile"],t(t({},n),{settings:e.data}))}})}function zm(e){return Gf(["pinned-sections"],function(e){var t=e.payload;return Dh.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function qm(){return Wf(["fetch-profile"],function(){return Dh.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Nm(){var e=this;return Wf(["get-user-full"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Um(e,t){return Wf(["fetch-permissions",e,t],function(){var e,t,n,r=localStorage.getItem("account"),o=localStorage.getItem("user"),a=r&&JSON.parse(r),i=o&&JSON.parse(o);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Mm(e){return Wf(["email-verification",e],function(){return Dh.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Bm(){return Wf({queryKey:["get-login-methods"],queryFn:function(){return Dh.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Fm(){return Wf(["fetch-impersonation-users"],function(){return Dh.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Hm(){return Wf(["fetch-impersonation-enabled"],function(){return Dh.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Wm(e,t,o,a,i,s){var c=this;return void 0===o&&(o=1),void 0===a&&(a=10),Wf(["get-users-to-impersonate",e,t,o,a,i,s],function(){return n(c,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getUsersToImpersonate(e,t,o,a,i,s).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Gm(e){var t;return Wf(["fetch-communications",e],function(){return Dh.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Vm(){return Wf(["fetch-communications-filters"],function(){return Dh.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Km(e,t){return Wf(["fetch-communication-details",e],function(){return Dh.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var $m=["fetch-profile"];function Qm(n,r,o){var a,i,s=qm(),c=jm().mutate,u=s.data,l=s.isLoading||!s.isFetched,p=null!==(i=null===(a=null==u?void 0:u.settings)||void 0===a?void 0:a.viewed_tutorials)&&void 0!==i?i:[],h="onboarding-".concat(null!=n?n:"default","-").concat(r,"-").concat(o),f=p.includes(h),g=d(function(){var n=null;Mg.setQueryData($m,function(r){var o,a,i;if(!r)return r;var s=null!==(a=null===(o=r.settings)||void 0===o?void 0:o.viewed_tutorials)&&void 0!==a?a:[];if(s.includes(h))return r;var c=e(e([],s,!0),[h],!1);return n=c,t(t({},r),{settings:t(t({},null!==(i=r.settings)&&void 0!==i?i:{}),{viewed_tutorials:c})})}),n&&c({payload:{viewed_tutorials:n}})},[h,c]);return{hasSeenOnboarding:f,dismiss:g,id:h,isProfileLoading:l}}function Ym(){return Gf(function(e){var t=e.password,n=e.otp;return Dh.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Jm(){return Gf(function(){return Dh.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Zm(){return Gf(function(e){return Dh.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function Xm(){return Gf(function(e){return Dh.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function ey(){return Gf(function(){return Dh.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function ty(){return Gf(["post-get-allowlist-items"],function(e){var t=e.payload;return Dh.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ny(){return Gf(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Dh.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ry(){return Gf(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Dh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function oy(){return Gf(["patch-change-status-allowlist"],function(e){var t=e.payload;return Dh.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ay(){return Gf(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Dh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function iy(){return Gf(["post-add-allowlist-items"],function(e){var t=e.payload;return Dh.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sy(){return Gf(["patch-allowlist"],function(e){var t=e.payload;return Dh.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cy(){return Gf(["post-blacklist-multi-account"],function(e){var t=e.payload;return Dh.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function uy(){return Gf(["put-blacklist"],function(e){return Dh.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ly(){return Gf(["change-blacklist"],function(e){return Dh.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function dy(){return Gf(["change-blacklist-item"],function(e){return Dh.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function py(){return Gf(["post-blacklist-items"],function(e){var t=e.payload;return Dh.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hy(){return Gf(["delete-blacklist"],function(e){var t=e.black_list_code;return Dh.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fy(e){var t=e.handleSetProgress;return Gf(["post-blacklist-batch"],function(e){var n=e.blacklist_code,r=e.expiration_days,o=e.file;return Dh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:r,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gy(){return Gf(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Dh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function my(){return Gf(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return Dh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yy(){return Gf(["valiate-blacklist-items"],function(e){return Dh.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function vy(){return Gf(["delete-allowlist-item"],function(e){return Dh.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function by(){return Gf(["validate-allowlist-items"],function(e){return Dh.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function ky(e){var t=e.fileName,n=e.onSuccess,r=e.onError,o=c(0),a=o[0],i=o[1],s=l({cancel:function(){return null}}),u=Gf(["upload-file-chargeback",t],function(e){var t=Dh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),o=t.promise,a=t.cancel;return s.current.cancel=a,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==r||r(),e})},{useErrorBoundary:!1});return{mutation:u,cancelRequest:s.current.cancel,progress:a}}function wy(){return Gf(function(e){return Dh.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function _y(){var e=this;return Gf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().batchRefundByFile({payload:t}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ey(){var e=this;return Gf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().getBatchRefundProcessedFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function xy(){var e=this;return Gf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().getBatchRefundUserFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Sy(){var e=l({cancel:function(){return null}}),t=Gf(["upload-file"],function(t){var n=Dh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),r=n.promise,o=n.cancel;return e.current.cancel=o,r.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Cy(){return Gf(function(e){var t=e.payload,n=e.organizationCode;return Dh.getInstance().updateMFAConfig(t,n)})}function Iy(){return Gf(function(e){var t=e.payload,n=e.organizationCode;return Dh.getInstance().mfaExcludeUsers(t,n)})}function Ry(e){return Wf(["GET/scheduled-reports",e],function(){return Dh.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ty(){return Gf(function(e){var t=e.payload;return Dh.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function Oy(){return Gf(function(e){var t=e.reportCode,n=e.payload;return Dh.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ay(){return Gf(function(e){return Dh.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Py(){return Gf(function(e){return Dh.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function jy(){return Gf(function(e){return Dh.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Dy(){return Gf(function(e){var t=e.payload,n=e.accountCode;return Dh.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ly(){return Gf(function(e){var t=e.payload,n=e.ruleId,r=e.accountCode;return Dh.getInstance().postEditRule(t,n,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function zy(){return Gf(function(e){var t=e.payload;return Dh.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function qy(){return Gf(function(e){var t=e.payload,n=e.code;return Dh.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ny(){return Gf(function(e){var t=e.code,n=e.password,r=e.otp,o=e.mfaToken;return Dh.getInstance().getCustomizedApiKeysToken(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Uy(){return Gf(function(e){var t=e.passwordOtp;return Dh.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function My(){return Gf(function(e){var t=e.password;return Dh.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function By(){return Gf(function(e){var t=e.code;return Dh.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Fy(){return Gf(function(e){var t=e.payload,n=e.code,r=e.password;return Dh.getInstance().patchApiKeysEditNote(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function Hy(){return Gf(function(e){var t=e.payload,n=e.code,r=e.password;return Dh.getInstance().postApiKeysRoll(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function Wy(){return Gf(function(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return Dh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n,r;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(r=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.data}})})}function Gy(){return Gf(function(e){var t=e.password,n=e.accountCode,r=e.otp,o=e.mfaToken;return Dh.getInstance().getDeveloperCredentials(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Vy(){return Gf(function(){return Dh.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})}function Ky(){return Gf(function(e){var t=e.note,n=e.password;return Dh.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})}function $y(){return Gf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Dh.getInstance().postOrganizationKeysRoll(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function Qy(){return Gf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Dh.getInstance().postOrganizationKeysTamRequest(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function Yy(){return Gf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Dh.getInstance().postOrganizationKeysMarkRevealed(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function Jy(e){return Gf(function(e){var t=e.payload;return Dh.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Zy(){return Gf(function(e){var t=e.codes;return Dh.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function Xy(){return Gf(function(e){var t=e.tab,n=e.payload;return Dh.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})}function ev(){return Gf(function(e){return Dh.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function tv(){return Gf(function(e){return Dh.getInstance().postExportWebhooksLogs(e).then(function(e){return null==e?void 0:e.data})})}function nv(){return Gf(function(e){return Dh.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})}function rv(){return Gf(function(e){return Dh.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})}function ov(t){var o=this;return Gf(function(){return Dh.getInstance().createReconciliationReportTemplate(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n,o;return r(this,function(r){switch(r.label){case 0:return[4,Mg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Mg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Mg.setQueryData(["GET/reconciliation/reports/templates"],function(n){return{templates:e(e([],n.templates,!0),[t],!1)}}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Mg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Mg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function av(e){return Gf(function(){return Dh.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function iv(){return Gf(["POST/reconciliation/alerts"],function(e){return Dh.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Mg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function sv(){return Gf(["DELETE/reconciliation/alerts"],function(e){return Dh.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Mg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function cv(){return Gf(["UPDATE/reconciliation/alerts"],function(e){return Dh.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Mg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function uv(){return Gf(function(e){var t=e.payload;return Dh.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function lv(){return Gf(function(e){return Dh.getInstance().createSamlConfig(e)})}function dv(){return Gf(function(e){return Dh.getInstance().updateSamlConfig(e)})}function pv(){return Gf(function(){return Dh.getInstance().deleteSamlConfig()})}function hv(e,n){return void 0===n&&(n={}),Gf(function(t){return Dh.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},t(t({},n),{useErrorBoundary:!1}))}function fv(e){return void 0===e&&(e={}),Gf(function(e){return Dh.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},t(t({},e),{useErrorBoundary:!1}))}function gv(){return Gf(function(e){return Dh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function mv(){return Gf(function(e){return Dh.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function yv(){return Gf(function(e){var t=e.chart_id,n=e.type,r=e.name,o=e.user_prompt,a=void 0===o?"":o;return Dh.getInstance().patchChartGPTChart(t,{type:n,name:r,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function vv(){var e=this;return Gf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,Dh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function bv(){return Gf(function(e){return Dh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function kv(){var e=this;return Gf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,Dh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function wv(e,t){var n=e.chartCode,r=Nf();return Gf(function(e){return Dh.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var o;r.invalidateQueries(["chart-feedback",n]),null===(o=null==t?void 0:t.onSuccess)||void 0===o||o.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})}function _v(){var e=this;return Gf(["POST/template-reporting/report-templates"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().createTemplateReporting(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Ev(){var e=this;return Gf(["POST/template-reporting/report-templates/clone"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().cloneReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function xv(){var e=this;return Gf(["PATCH/template-reporting/report-templates/selection"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().updateTemplateSelection(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Sv(){var e=this;return Gf(["PATCH/template-reporting/report-templates/status"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().changeTemplateStatus(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Cv(){var e=this;return Gf(["DELETE/template-reporting/report-templates"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().deleteReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Iv(){var e=this;return Gf(["POST/template-reporting/report-schedules"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().createReportSchedule(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Rv(){var e=this;return Gf(["PATCH/template-reporting/report-schedules/disable"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().disableReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Tv(){var e=this;return Gf(["DELETE/template-reporting/report-schedules"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().deleteReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Ov(){return Gf(function(e){return Dh.getInstance().postOrganizationConfigs(e)})}function Av(){return Gf(function(e){return Dh.getInstance().putOrganizationConfigsByAccount(e)})}function Pv(){return Gf(["create-installments-plan"],function(e){var t=e.payload;return Dh.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function jv(){return Gf(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return Dh.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})}function Dv(){return Gf(["delete-installments-plan"],function(e){var t=e.code;return Dh.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Lv(){return Gf(["bulk-create-installments-plans"],function(e){var t=e.payload;return Dh.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function zv(){return Gf(["bulk-delete-installments-plans"],function(e){var t=e.payload;return Dh.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function qv(){return Gf(function(e){var t=e.accountCode,n=e.payload;return Dh.getInstance().createRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Nv(){return Gf(function(e){var t=e.accountCode,n=e.exportCode;return Dh.getInstance().downloadRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Uv(){var e=Nf();return Gf(["create-recipient"],function(e){var t=e.organizationCode,n=e.payload;return Dh.getInstance().createRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Mv(){var e=Nf();return Gf(["update-recipient"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Dh.getInstance().updateRecipient(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Bv(){var e=Nf();return Gf(["delete-recipient"],function(e){var t=e.organizationCode,n=e.recipientId;return Dh.getInstance().deleteRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Fv(){var e=Nf();return Gf(["create-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Dh.getInstance().createOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Hv(){var e=Nf();return Gf(["update-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId,o=e.payload;return Dh.getInstance().updateOnboarding(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Wv(){var e=Nf();return Gf(["block-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Dh.getInstance().blockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Gv(){var e=Nf();return Gf(["unblock-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Dh.getInstance().unblockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}var Vv="GET/concierge/alerts",Kv="GET/concierge/alerts/by-id";function $v(){return Wf([Vv],function(){return Dh.getInstance().getConciergeAlerts().then(function(e){return e.data})},{useErrorBoundary:!1})}function Qv(e){return Wf([Kv,e],function(){return Dh.getInstance().getConciergeAlertById(e).then(function(e){return e.data})},{enabled:!!e,useErrorBoundary:!1})}function Yv(){return Gf(["POST/concierge/alerts"],function(e){return Dh.getInstance().createConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Mg.invalidateQueries([Vv]),Mg.invalidateQueries([Kv])},useErrorBoundary:!1})}function Jv(){return Gf(["DELETE/concierge/alerts"],function(e){return Dh.getInstance().deleteConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Mg.invalidateQueries([Vv]),Mg.invalidateQueries([Kv])},useErrorBoundary:!1})}function Zv(){return Gf(["POST/concierge/alerts/enable"],function(e){var t=e.alertId,n=e.payload;return Dh.getInstance().enableConciergeAlert(t,n).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Mg.invalidateQueries([Vv]),Mg.invalidateQueries([Kv])},useErrorBoundary:!1})}function Xv(){return Gf(function(e){var t=e.payload;return Dh.getInstance().postPlaygroundExecuteFlow(t).then(function(e){return null==e?void 0:e.data})})}var eb;function tb(e){var t=this;return Wf(["fetch-payments-lazy",e],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Dh.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function nb(e){return Wf(["fetch-payments-evaluated",e],function(){return Dh.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function rb(e){var t=this,o=e.paymentCode,a=e.enabled,i=void 0===a||a,s=Dh.getInstance();return Wf(["get-payment-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})}function ob(e){var t=this,o=e.payment_code,a=e.enabled,i=void 0===a||a,s=Dh.getInstance();return Wf(["get-payment-transaction-details-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function ab(e){var t=this,o=e.transaction_code,a=e.enabled,i=void 0===a||a,s=Dh.getInstance();return Wf(["get-payment-transaction-raw-response",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function ib(e){var t=Ag();return Wf(["payment-methods",e],function(){return Dh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function sb(){return Wf({queryKey:["/payment-methods/providers"],queryFn:function(){return Dh.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function cb(){return Wf(["GET/catalog/card-brands"],function(){return Dh.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ub(e,t){return void 0===e&&(e=!0),void 0===t&&(t=jd.PAYMENTS),Wf(["payment-filters",e,t],function(){return Dh.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function lb(){return Wf(["payment-metrics-filters"],function(){return Dh.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function db(e){var t=e.transaction_code,n=e.enabled;return Wf(["payment-transaction-details",t],function(){return Dh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function pb(e){var t=e.payment_code,n=e.enabled;return Wf(["transaction-history",t],function(){return Dh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function hb(e){var t=this;return Wf(["POST/transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Dh.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function fb(e){var t=this;return Wf(["POST/fraud-transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Dh.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function gb(e){return Wf(["GET/payout-detail",JSON.stringify(e)],function(){var t=Dh.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function mb(e){return Wf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Dh.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function yb(e){var t=Ag();return Wf(["GET/payout-history-detail",JSON.stringify(e)],function(){return Dh.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function vb(e,t){var o=this,a=Ag();return Wf(["GET/useGetProofOfCancel",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getProofOfCancel(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function bb(e,t){var o=this,a=Ag();return Wf(["GET/useGetProofOfPayment",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getProofOfPayment(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function kb(e,t,o){var a=this,i=Dh.getInstance();return Wf(["send-payment-notification",e,t],function(){return n(a,void 0,void 0,function(){var n,a;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,t)];case 1:return n=r.sent(),o.onSuccess(),[2,n.data];case 2:throw a=r.sent(),o.onError(),a;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function wb(e){return Wf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Dh.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function _b(e){var t=this;void 0===e&&(e=!0);var o=Ag();return Wf(["getPayoutsFilters",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function Eb(e,t){var o=this;void 0===t&&(t=!0);var a=Ag();return Wf(["getPayoutTimeline",e,a],function(){return n(o,void 0,void 0,function(){var t;return r(this,function(n){return t=Dh.getInstance(),e?[2,t.getPayoutTimeline(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:t&&!!e&&!!a,cacheTime:500,useErrorBoundary:!1})}function xb(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return Wf(["developers"],function(){return Dh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function Sb(){return Wf(["fetch-customized-api-keys-members"],function(){return Dh.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Cb(){return Wf(["developers-get-allowed-ips"],function(){return Dh.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Ib(){return Wf(["fetch-customized-api-keys-accounts"],function(){return Dh.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Rb(e){return Wf(["fetch-customized-api-keys",e],function(){return Dh.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function Tb(){return Wf(["fetch-customized-api-keys-products"],function(){return Dh.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Ob(){return Gf(["developers-patch-allowed-ips"],function(e){return Dh.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{cacheTime:0})}function Ab(){return Wf(["fetch-organizations"],function(){return Dh.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Pb(){return Wf(["fetch-all-organizations",Ag()],function(){return Dh.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function jb(e){var t=Ag();return Wf(["organizations-provider-params",e],function(e){var n=e.queryKey;return Dh.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Db(e){var t=e.integration_code,n=e.enabled,r=e.accountCode;return Wf(["integration-params",t,r],function(){return t.includes("undefined")?{}:Dh.getInstance().getIntegrationParams({accountCode:r,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Lb(e){var t=e.accountCode,n=e.organizationCode,r=Ag();return Wf(["organizations-account-integrations",t,n],function(){return Dh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||r}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function zb(e){var t=e.accountCode,n=e.paymentMethod,r=e.basePath,o=void 0===r?Nd.DEFAULT_ROUTING_TYPE:r;return Wf(["fetch-connections-by-payment-method",n,t,o],function(){return Dh.getInstance().getConnectionsByPaymentMethod(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function qb(){var e=this;return Wf(["fetch-hash-pylon"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Nb(){return Wf(["connections"],function(){return Dh.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Ub(){return Wf(["params-catalog"],function(){return Dh.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function Mb(e){var t=e.accountCode,n=e.name;return Wf(["webhooks",t,n],function(){return Dh.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function Bb(e){var t=e.accountCode,n=e.enabled;return Wf(["webhooks-detail",t],function(){return Dh.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function Fb(e){var t,n=Ag(),r=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Wf({queryKey:["accounts",r],queryFn:function(){return Dh.getInstance().getAccounts(r).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!r})}function Hb(e){return Wf(["accountsV2",e],function(){return Dh.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Wb(e){var t=null==e?void 0:e.includeDisabled;return Wf(["accounts-by-organization",{includeDisabled:t}],function(){return Dh.getInstance().getAccountsByOrganization({includeDisabled:t}).then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1})}function Gb(e){return Wf(["accountsV2-by-user",e],function(){return e?Dh.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function Vb(e,t){var o=this;return Wf({queryKey:["accounts-for-impersonation",e,t],queryFn:function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getAccountsForImpersonation(e).then(function(e){var n,r;return(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.response)||void 0===r?void 0:r.map(function(e){return{label:e.name,value:t?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Kb(e){var t=this;return Wf({queryKey:["roles-for-impersonation",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Dh.getInstance().getRolesForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function $b(e){return Wf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Dh.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function Qb(e,t){return void 0===t&&(t=Nd.DEFAULT_ROUTING_TYPE),Wf(["smart-routing-methods",e,t],function(){return Dh.getInstance().getSmartRoutingMethods(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Yb(e,t,n){return void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE),Wf(["smart-routing-workflow",t,e,n],function(){return Dh.getInstance().getSmartRoutingWorkflow(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Jb(e,t,n){return void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE),Wf(["smart-routing-condition-types",e,t,n],function(){return Dh.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function Zb(e,t){return Wf(["smart-routing-condition-payment-method",e,t],function(){return Dh.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function Xb(e,t){return Wf(["smart-routing-condition-types-values",t,e],function(){return Dh.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function ek(e){var t=e.accountCode,n=e.workflowVersionId,r=e.routingType,o=void 0===r?Nd.DEFAULT_ROUTING_TYPE:r;return Wf(["smart-routing-workflow-version",n,t,o],function(){return Dh.getInstance().getSmartRoutingWorkflowVersion(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function tk(e,t,n,r){return void 0===r&&(r=Nd.DEFAULT_ROUTING_TYPE),Wf(["smart-routing-next-route",e,n,t,r],function(){return Dh.getInstance().getSmartRoutingNextSteps(e,t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})}function nk(e,t){return void 0===t&&(t=Nd.DEFAULT_ROUTING_TYPE),Wf(["smart-routing-decline-groups",e,t],function(){return Dh.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function rk(e,t,n){return void 0===n&&(n=Nd.DEFAULT_ROUTING_TYPE),Wf(["smart-routing-payment-route",e,t,n],function(){return Dh.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function ok(e,t){return void 0===t&&(t=Nd.DEFAULT_ROUTING_TYPE),Wf(["smart-routing-simulate-condition-type-values",e,t],function(){return Dh.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function ak(e){var t=e.text,n=e.conditionType;return Wf(["smart-routing-search-condition-values",t,n],function(){return Dh.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function ik(){return Wf(["smart-routing-conversion-rates"],function(){return Dh.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function sk(){var e=this;return Wf({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function ck(){var e=this;return Wf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function uk(e){return Wf(["fetch-routing-monitors-templates",e],function(){return Dh.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function lk(e,t){return Wf(["fetch-routing-monitors-template",e],function(){return Dh.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function dk(e,n){var r=e.accountCode,o=Wf(["checkouts",r],function(){return Dh.getInstance().getCheckouts({accountCode:r}).then(function(e){return e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n)),a=o.refetch;return t(t({},o),{refetch:function(e){return a(null!=e?e:void 0)}})}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(eb||(eb={}));var pk=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},hk=function(e,t){var n=e.paymentMethodType,r=e.type;return Wf(pk({paymentMethodType:n,type:r}),function(){return Dh.getInstance().getNameAndIcon({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},fk=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},gk=function(e,t){var n=e.paymentMethodType,r=e.type;return Wf(fk({paymentMethodType:n,type:r}),function(){return Dh.getInstance().getRequiredFields({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},mk=function(e){return Wf(["checkout-builder-country-data",e],function(){return Dh.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},yk=function(e){return["checkout-payment-method-accounts",e.paymentMethod,e.organizationCode]},vk=function(e,n){var r=e.paymentMethod,o=e.organizationCode;return Wf(yk({paymentMethod:r,organizationCode:o}),function(){return Dh.getInstance().getPaymentMethodAccounts({paymentMethod:r,organizationCode:o}).then(function(e){return null==e?void 0:e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))};function bk(e){var t=e.accountCode;return Wf(["styling-sdk-dynamic",t],function(){return Dh.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function kk(e){var t=e.accountCode;return Wf(["styling-settings-v2",t],function(){return Dh.getInstance().getStylingSettingsV2({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function wk(){return Gf(function(e){var t=e.accountCode,n=e.payload;return Dh.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function _k(e){return Wf(["notifications-customer",e],function(){return Dh.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function Ek(e){return Wf(["validate-opsgenie-key",e],function(){return Dh.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function xk(){return Wf(["notifications-merged"],function(){return Dh.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function Sk(){return Gf(function(e){return Dh.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ck(){var e=this;return Gf(function(t){return n(e,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().pathNotification(t)];case 1:return[2,null==(e=n.sent())?void 0:e.data]}})})})}var Ik={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function Rk(){return Wf(["reports"],function(){return Dh.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Tk(e){return void 0===e&&(e=!0),Wf(["reports-multi-env"],function(){return Dh.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function Ok(e,t,n){return void 0===t&&(t=!1),Wf(["reports/".concat(e)],function(){return Dh.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Ak(e){return Wf(["GET/reports/templates"],function(){return Dh.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function Pk(t,o,a){var i=this;return Wf(["GET/reports/columns/".concat(o,"/").concat(a)],function(){return n(i,void 0,void 0,function(){return r(this,function(t){return[2,Dh.getInstance().getReportColumns(o,a).then(function(t){return o===qd.ALL&&a===zd.PAYMENTS?e(e([],(null==t?void 0:t.data)||[],!0),[Ik],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})}function jk(e,t){var o=this,a=Ag();return Wf(["getRefundPdf",e,a,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getRefundPdf(e,a,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!a,useErrorBoundary:!1})}function Dk(){var e=Ag();return Wf(["teams-filters-members"],function(){return Dh.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Lk(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l=Ag();return Wf(["fetch-post-members-v2",t,n,r,o,a,i,s,c,u],function(){return Dh.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:r,status:o,roleId:a,statuses:i,roleIds:s,page:c,pageSize:u}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function zk(){return Wf(["fetch-roles"],function(){return Dh.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function qk(){return Wf(["fetch-rolespermissions"],function(){return Dh.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Nk(){return Wf(["fetch-permissions-catalog"],function(){return Dh.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Uk(){return Wf(["fetch-org-roles-permissions"],function(){return Dh.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Mk(){return Wf(["fetch-org-permissions-catalog"],function(){return Dh.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Bk(e){var t=e.exportCode,n=e.enabled;return Wf(["user-export-status",t],function(){return Dh.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})}function Fk(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r,a=e.enabled;return Wf(["user-exports-list",n,o],function(){return Dh.getInstance().listUserExports({page:n,pageSize:o}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})}function Hk(){var e=this,t=Nf();return function(o){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,t.fetchQuery(["user-export-status",o],function(){return Dh.getInstance().getUserExportStatus({exportCode:o}).then(function(e){return null==e?void 0:e.data})})]})})}}function Wk(e){return Wf(["data-report",e],function(){return Dh.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function Gk(e,t,n,r){void 0===n&&(n=!0);return Wf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Dh.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})}function Vk(e,t){return Wf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Dh.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function Kk(e){return Wf(["get-insights-conversion-rate-fallback-metrics",e],function(){return Dh.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function $k(e,t,n,r){return void 0===r&&(r=!0),delete t.account_code,Wf(["get-insights-volume-metrics-v2",t,e,n],function(){return Dh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:r,cacheTime:200,useErrorBoundary:!1})}function Qk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Wf(["get-insights-overview-v3",e,t],function(){return Dh.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Yk(e){return Wf(["get-insights-home-metrics",e],function(){return Dh.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function Jk(e){return Wf(["get-insights-reports",e],function(){return Dh.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function Zk(e){return Wf(["get-insights-reports-again",e],function(){return Dh.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function Xk(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ew(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-fraud-screening-conversion-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsFraudScreeningConversionRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function tw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-3ds-volume-and-count-tx",t,e],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsights3dsVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function nw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsights3dsConversionRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-3ds-decline-reasons",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsights3dsDeclineReasons(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ow(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsights3dsFrictionlessVsChallenge(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function aw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function iw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-chargebacks-win-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsChargebacksWinRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function cw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-chargebacks-disputed",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsChargebacksDisputed(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function uw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function lw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-chargebacks-reasons-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsChargebacksReasonsDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function dw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-chargebacks-status-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsChargebacksStatusDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function pw(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Wf({queryKey:["post-insights-chargebacks-by-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getInsightsChargebacksByCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hw(e,t){return Wf(["fetch-reconciliation-transaction",e],function(){return Dh.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function fw(e,t){return Wf(["fetch-reconciliation-settlements",e],function(){return Dh.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function gw(e,t){return Wf(["fetch-reconciliation-metrics",e],function(){return Dh.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function mw(){return Wf(["GET-reconciliation-filters"],function(){return Dh.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function yw(e){return Wf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Dh.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function vw(){return Wf(["GET/v1/reconciliation/active"],function(){return Dh.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})}function bw(e,t,n){return Wf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Dh.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function kw(e){return Wf(["GET/reconciliation/reports/templates"],function(){return Dh.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function ww(e){var t=e.body,n=e.params,r=e.enabled;return Wf(["GET/reconciliation/alerts/list",t,n],function(){return Dh.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function _w(e){var t=e.body,n=e.params,r=e.enabled;return Wf(["GET/reconciliation/agenda/list",t,n],function(){return Dh.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function Ew(e){var t=e.body,n=e.params,r=e.enabled;return Wf(["GET/reconciliation/agenda/insights",t,n],function(){return Dh.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function xw(e){var t=e.body,n=e.params,r=e.enabled;return Wf(["GET/reconciliation/sales/list",t,n],function(){return Dh.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function Sw(e){var t=e.body,n=e.params,r=e.enabled;return Wf(["GET/reconciliation/advancements/list",t,n],function(){return Dh.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function Cw(e){var t=e.body,n=e.params,r=e.enabled;return Wf(["GET/reconciliation/fees/list",t,n],function(){return Dh.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function Iw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-conflicts-summary",t],function(){return Dh.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Rw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return Dh.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Tw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-not-reconciled-list",t],function(){return Dh.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Ow(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-status-conflict-aggregators",t],function(){return Dh.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Aw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-status-conflict-list",t],function(){return Dh.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Pw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return Dh.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function jw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-amount-conflict-list",t],function(){return Dh.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Dw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-conflict-date-summary",t],function(){return Dh.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Lw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-conflict-date-aggregators",t],function(){return Dh.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function zw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-conflict-date-list",t],function(){return Dh.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function qw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Wf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return Dh.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Nw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Wf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return Dh.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Uw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Wf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return Dh.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Mw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Wf(["reconciliation-insights-fees-charged-summary",t,n],function(){return Dh.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Bw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Wf(["reconciliation-insights-reconciled-summary",t,n],function(){return Dh.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Fw(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Wf(["reconciliation-insights-reconciled-aggregators",t,n,r],function(){return Dh.getInstance().getReconciliationInsightsReconciledAggregators(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function Hw(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Wf(["reconciliation-insights-reconciled-list",t,n,r],function(){return Dh.getInstance().getReconciliationInsightsReconciledList(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function Ww(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-not-confirm-summary",t],function(){return Dh.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Gw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-not-confirm-aggregators",t],function(){return Dh.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Vw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-not-confirm-list",t],function(){return Dh.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Kw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return Dh.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function $w(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return Dh.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Qw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return Dh.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Yw(e){var t=e.body,n=e.enabled;return Wf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return Dh.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Jw(e){var t=this,o=Object.values(e).filter(Boolean);return Wf(["feature-flags",o],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Dh.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function Zw(e){var t=this,o=Wf({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Dh.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),a=Nf();return u(function(){a.setQueryData(["cached-feature-flags"],o)},[o,a]),o}function Xw(e){var n,r,o=Nf(),a=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(r=null==a?void 0:a.data)||void 0===r?void 0:r.status)),s=Wf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return t(t({},s),{isLoading:i})}function e_(e){return Wf(["events",e],function(){return Dh.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function t_(e){return Wf(["audit-monitor-event-detail",e],function(){return Dh.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function n_(e){return Wf(["api-logs",e],function(){return Dh.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function r_(e){var t=e.params;return Wf(["webhook-logs",t],function(){return Dh.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function o_(e,t){return Wf(["api-logs-detail",e,t],function(){return Dh.getInstance().getApiLogsDetailByPaymentCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function a_(e,t){return Wf(["api-logs-by-transaction",e,t],function(){return Dh.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function i_(e,t){return void 0===t&&(t=!0),Wf(["audit-exports-list",e],function(){return Dh.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})}function s_(e,t,n){return void 0===t&&(t=!1),Wf(["audit-export-download",e],function(){return Dh.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})}function c_(e){var t=e.tab,n=e.exportId,r=e.enabled,o=void 0!==r&&r,a=e.onSuccess;return Wf(["unified-export-status",t,n],function(){return Dh.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&o,cacheTime:0,useErrorBoundary:!1,onSuccess:a})}function u_(e){var t=e.tab,n=e.page,r=void 0===n?0:n,o=e.size,a=void 0===o?10:o,i=e.enabled;return Wf(["unified-exports-list",t,r,a],function(){return Dh.getInstance().getUnifiedExportsList(t,r,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})}function l_(e){return Wf(["api-logs-stats-requests",e],function(){return Dh.getInstance().postApiLogsStatsRequests(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function d_(e){return Wf(["api-logs-stats-errors",e],function(){return Dh.getInstance().postApiLogsStatsErrors(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function p_(e){return Wf(["api-logs-stats-errors-by-endpoint",e],function(){return Dh.getInstance().postApiLogsStatsErrorsByEndpoint(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function h_(e){return Wf(["api-logs-list",e],function(){return Dh.getInstance().postApiLogsList(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function f_(e){var t=e.paymentCode,n=e.createdAtFrom,r=e.enabled;return Wf(["api-logs-v2-payment",t,n],function(){return Dh.getInstance().getApiLogsV3ByPaymentCode(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:(void 0===r||r)&&!!t,cacheTime:0,useErrorBoundary:!1})}function g_(e,t){return Wf(["fetch-payment-links",e,t],function(){return Dh.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function m_(e){return Wf(["payment-link"],function(){return Dh.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function y_(e){return void 0===e&&(e=!0),Wf(["countries",e],function(){return Dh.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function v_(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Wf(["countries-v2",n],function(){return Dh.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function b_(e,t){return void 0===t&&(t=!0),Wf(["subscription",e],function(){return Dh.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})}function k_(e,t,n,r){return void 0===r&&(r=!0),Wf(["subscription-payments",e,t,n],function(){return Dh.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&r,cacheTime:0})}function w_(e){return Gf(function(e){var t=e.payload;return Dh.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function __(e,t){return Wf(["get-cofig-allow-list",e],function(){return Dh.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function E_(e,t){return void 0===t&&(t=!0),Wf(["get-black-list",e],function(){return Dh.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})}function x_(e,t,n,r){var o;return Wf(["post-black-list",e],function(){return Dh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=r?r:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function S_(e,t,n){return Wf(["get-block-list-summary",e,t,n],function(){var r=Dh.getInstance();return n?r.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function C_(e,t,n,r,o,a){return Wf(["black-list-detail",e,t,r,o,a],function(){return Dh.getInstance().getBlacklistDetail(e,t,n,r,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})}function I_(e,t,n){return Wf(["allow-list-detail",e],function(){return Dh.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function R_(e,t){return void 0===t&&(t=!0),Wf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Dh.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})}function T_(e,t){var o=this;return void 0===e&&(e=26),void 0===t&&(t=0),Wf(["batch-refunds",e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getBatchRefunds(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function O_(e){return Wf(["velocity-rules",e],function(){var t=Dh.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function A_(){return Wf(["config-rules"],function(){return Dh.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function P_(e,t){var n=e.organizationCode;return Wf(["mfa-excluded-users",n],function(){return Dh.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function j_(e,t){var n=e.organizationCode;return Wf(["mfa-config",n],function(){return Dh.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function D_(e,t){return Wf(["mfa-enforcement-status",e.accountCode],function(){return Dh.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function L_(e){return Wf(["workos-mfa-status"],function(){return Dh.getInstance().getWorkOsMfaStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:e.enabled})}function z_(e){return Wf(["fetch-organization-saml-config",e],function(){return Dh.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function q_(e){return Wf(["chartgpt-chart-execute",e],function(){return Dh.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function N_(){return Wf(["chartgpt-user-charts"],function(){return Dh.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function U_(){var e=this;return Wf(["chartgpt-user-charts-with-results"],function(){return n(e,void 0,void 0,function(){var e,o,a,i=this;return r(this,function(s){switch(s.label){case 0:return[4,(e=Dh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),a=(null==o?void 0:o.data)||[],[4,Promise.all(a.map(function(o){return n(i,void 0,void 0,function(){var n,a,i,s,c,u,l,d;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return n=r.sent(),[2,t(t({},o),{user_prompt:null!==(s=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(d=null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return a=r.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),a),[2,t(t({},o),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function M_(e,t,o){var a=this;return void 0===o&&(o=!0),Wf(["chartgpt-patch-and-execute",e,t],function(){return n(a,void 0,void 0,function(){var n,o,a,i,s;return r(this,function(r){switch(r.label){case 0:return[4,(n=Dh.getInstance()).patchChartGPTChart(e,t)];case 1:return o=r.sent(),a=null==o?void 0:o.data,[4,n.executeChartGPTChart(e)];case 2:return i=r.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function B_(e){var t=this,o=e.chartCode,a=e.enabled;return Wf(["chart-feedback",o],function(){return n(t,void 0,void 0,function(){var e,t,n,a,i;return r(this,function(r){switch(r.label){case 0:e=Dh.getInstance(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getChartFeedback(o)];case 2:return t=r.sent(),(n=null==t?void 0:t.data)&&n.rating?[2,n]:[2,null];case 3:if(a=r.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===a||a)&&!!o,staleTime:3e5})}function F_(){return Wf(["languages"],function(){return Dh.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function H_(){var e=localStorage.getItem("lang")||"en";return Wf(["translations",e],function(){return Dh.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function W_(e){var t=this;return Wf({queryKey:["network-tokens-onboarding",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,Dh.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}})})},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var G_=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},V_=function(e,t,n){if(!t||!n)return e||[];var r=function(e,t){var n=[],r=new Date(e),o=new Date(t);r.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0);for(var a=new Date(r);a<=o;)n.push(a.toISOString()),a.setUTCDate(a.getUTCDate()+1);return n}(t,n),o=new Map;return null==e||e.forEach(function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];o.set(t,e.value)}}),r.map(function(e){var t=e.split("T")[0];return{date:e,value:o.get(t)||"0"}})},K_=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var r=parseFloat(n.value||"0");return{distribution:n.rows.map(function(e){var t,n=100*parseFloat(e.value),o=Math.round(r*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:o,percentage:n,amount:o}}),total:r}},$_=function(e,t,n){var r,o={};return null===(r=e.plots)||void 0===r||r.forEach(function(e){var r=V_(e.rows,t,n),a=e.label;o[a]=r.map(function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:G_(e.date||""),current_amount:100*parseFloat(e.value)}})}),o},Q_=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:V_(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:G_(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},Y_=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:V_(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:G_(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},J_=function(e,o){return Wf(t({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Dh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",n)];case 1:return o=r.sent(),[2,(a=o.data,i=n.start_date,s=n.end_date,c=a.plots||[],u=c.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=c.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=c.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=V_(null==u?void 0:u.rows,i,s),h=V_(null==l?void 0:l.rows,i,s),f=V_(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:G_(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==u?void 0:u.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:G_(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,c,u,l,d,p,h,f})})},enabled:!!e.organization_code,staleTime:3e5},o))},Z_=function(e,o){return Wf(t({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Dh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",n)];case 1:return o=r.sent(),[2,K_(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},X_=function(e,o){return Wf(t({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Dh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",n)];case 1:return o=r.sent(),[2,$_(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},eE=function(e,o){return Wf(t({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Dh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",n)];case 1:return o=r.sent(),[2,Q_(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},tE=function(e,o){return Wf(t({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Dh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",n)];case 1:return o=r.sent(),[2,Y_(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))};function nE(e,t){var o=this;return Wf(["POST/template-reporting/templates/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,Dh.getInstance().searchReportTemplates(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function rE(e,t,o){var a=this;return Wf(["POST/template-reporting/template-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().searchReportTemplateById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function oE(e,t){var o=this;return Wf(["POST/template-reporting/schedules/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,Dh.getInstance().searchReportSchedules(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function aE(e,t,o){var a=this;return Wf(["POST/template-reporting/schedule-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().searchReportScheduleById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function iE(){return Wf({queryKey:["organization-configs"],queryFn:function(){return Dh.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})}function sE(e){var t=e.accountCode,n=e.enabled;return Wf(["onboarding-status",t],function(){return Dh.getInstance().getOnboardingStatus(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function cE(e,t,o){var a=this;return void 0===o&&(o=!0),Wf(["get-recipients",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getRecipients(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function uE(e,t,o){var a=this;return void 0===o&&(o=!0),Wf(["get-recipient-by-id",e,t.recipient_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getRecipientById(e,t.recipient_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&o,cacheTime:500,useErrorBoundary:!1})}function lE(e,t,o){var a=this;return void 0===o&&(o=!0),Wf(["get-onboarding-detail",e,t.recipient_id,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getOnboardingDetail(e,t.recipient_id,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function dE(e,t,o){var a=this;return void 0===o&&(o=!0),Wf(["get-onboarding-timeline",e,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getOnboardingTimeline(e,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function pE(e,t,o){var a=this;return void 0===o&&(o=!0),Wf(["get-recipient-exports",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().getRecipientExports(t,e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function hE(e,t,o){var a=this;return void 0===o&&(o=!0),Wf(["get-recipient-export-download",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Dh.getInstance().downloadRecipientExport(t,e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t&&o,cacheTime:0,useErrorBoundary:!1})}function fE(e,t,n){return void 0===t&&(t=!0),Wf(["installments-plans",e,n],function(){return Dh.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})}function gE(e,t){return void 0===t&&(t=!0),Wf(["search-installments-plans",JSON.stringify(e)],function(){return Dh.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})}function mE(e){var t=this,o=e.paymentCode,a=e.enabled;return Wf({queryKey:["api-logs-v3",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().getApiLogsV3(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function yE(e){var t=this,o=e.paymentCode,a=e.enabled;return Wf({queryKey:["webhook-timeline",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Dh.getInstance().getWebhookTimeline(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function vE(){var e=this;return Wf(["workos-domain-status"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().workosDomainStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function bE(){var e=this;return Wf(["workos-sso-config-status"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Dh.getInstance().workosSsoConfigStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function kE(e){var t=this,o=e.scope,a=e.enabled;return Wf(["hidden-fields",o],function(){return n(t,void 0,void 0,function(){var e,t;return r(this,function(n){switch(n.label){case 0:return[4,Dh.getInstance().getHiddenFields({scope:o})];case 1:return e=n.sent(),[2,null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[]]}})})},{enabled:!!o&&(void 0===a||a),staleTime:3e5,useErrorBoundary:!1})}function wE(){return wE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wE.apply(this,arguments)}
51
51
  /**
52
52
  * match-sorter-utils
53
53
  *
@@ -57,12 +57,12 @@ statuses/index.js:
57
57
  * LICENSE.md file in the root directory of this source tree.
58
58
  *
59
59
  * @license MIT
60
- */const dE={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"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","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},pE=Object.keys(dE).join("|"),hE=new RegExp(pE,"g");
60
+ */const _E={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"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","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},EE=Object.keys(_E).join("|"),xE=new RegExp(EE,"g");
61
61
  /**
62
62
  * @name match-sorter
63
63
  * @license MIT license.
64
64
  * @copyright (c) 2099 Kent C. Dodds
65
65
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
66
66
  */
67
- const fE=7,gE=6,mE=5,yE=4,vE=3,bE=2,kE=1,wE=0;function _E(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:kE,!n.accessors){const r=EE(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=IE(o),i=SE(e,o);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:wE,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const r=o[e];let i=EE(r.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=r.attributes;i<s&&i>=kE?i=s:i>c&&(i=c),i=Math.min(i,c),i>=u&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=u,a.rankedValue=r.itemValue)}return a}function EE(e,t,n){return e=xE(e,n),(t=xE(t,n)).length>e.length?wE:e===t?fE:(e=e.toLowerCase())===(t=t.toLowerCase())?gE:e.startsWith(t)?mE:e.includes(` ${t}`)?yE:e.includes(t)?vE:1===t.length?wE:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?bE:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,a=t.length;o<a;o++){if(t[o]===e)return n+=1,o+1}return-1}function a(e){const r=1/e,o=n/t.length;return kE+o*r}const i=o(t[0],e,0);if(i<0)return wE;r=i;for(let n=1,a=t.length;n<a;n++){r=o(t[n],e,r);if(!(r>-1))return wE}const s=r-i;return a(s)}(e,t)}function xE(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(hE,e=>dE[e])),e}function SE(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const CE={maxRanking:1/0,minRanking:-1/0};function IE(e){return"function"==typeof e?CE:{...CE,...e}}function RE(e,t){const[n,r]=i.useState();i.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,i.useCallback(t=>{r(n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r})},[e])]}var TE,OE=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),AE=function(){function e(e){this.generateIdentifier=e,this.kv=new OE}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),PE=(TE=function(e,t){return TE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},TE(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}TE(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),jE=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return PE(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(AE),DE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function LE(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var r=n,o=0;o<r.length;o++){var a=r[o];if(t(a))return a}}function zE(e,t){Object.entries(e).forEach(function(e){var n=DE(e,2),r=n[0],o=n[1];return t(o,r)})}function qE(e,t){return-1!==e.indexOf(t)}function NE(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var UE=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return LE(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),ME=function(e){return void 0===e},BE=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},FE=function(e){return BE(e)&&0===Object.keys(e).length},HE=function(e){return Array.isArray(e)},WE=function(e){return e instanceof Map},GE=function(e){return e instanceof Set},VE=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},KE=function(e){return"number"==typeof e&&isNaN(e)},$E=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||ME(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||VE(e)},QE=function(e){return e.replace(/\./g,"\\.")},YE=function(e){return e.map(String).map(QE).join(".")},JE=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r);if("\\"===o&&"."===e.charAt(r+1))n+=".",r++;else"."===o?(t.push(n),n=""):n+=o}var a=n;return t.push(a),t},ZE=function(){return ZE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ZE.apply(this,arguments)},XE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},ex=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function tx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var nx=[tx(ME,"undefined",function(){return null},function(){}),tx(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),tx(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),tx(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),tx(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),tx(GE,"set",function(e){return ex([],XE(e.values()))},function(e){return new Set(e)}),tx(WE,"map",function(e){return ex([],XE(e.entries()))},function(e){return new Map(e)}),tx(function(e){return KE(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return KE(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),tx(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),tx(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function rx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var ox=rx(function(e,t){return!!VE(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),ax=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),ix=rx(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return ex([],XE(e))},function(e,t){var n=ax[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function sx(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var cx=rx(sx,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return ZE({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),ux=rx(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),lx=[cx,ox,ux,ix],dx=function(e,t){var n=NE(lx,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=NE(nx,function(n){return n.isApplicable(e,t)});return r?{value:r.transform(e,t),type:r.annotation}:void 0},px={};nx.forEach(function(e){px[e.annotation]=e});var hx=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function fx(e){if(qE(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(qE(e,"prototype"))throw new Error("prototype is not allowed as a property");if(qE(e,"constructor"))throw new Error("constructor is not allowed as a property")}var gx=function(e,t,n){if(fx(t),0===t.length)return n(e);for(var r=e,o=0;o<t.length-1;o++){var a=t[o];if(HE(r))r=r[+a];else if(BE(r))r=r[a];else if(GE(r)){r=hx(r,i=+a)}else if(WE(r)){if(o===t.length-2)break;var i=+a,s=0===+t[++o]?"key":"value",c=hx(r,i);switch(s){case"key":r=c;break;case"value":r=r.get(c)}}}var u=t[t.length-1];if(HE(r)?r[+u]=n(r[+u]):BE(r)&&(r[u]=n(r[u])),GE(r)){var l=hx(r,+u),d=n(l);l!==d&&(r.delete(l),r.add(d))}if(WE(r)){i=+t[t.length-2];var p=hx(r,i);switch(s=0===+u?"key":"value"){case"key":var h=n(p);r.set(h,r.get(p)),h!==p&&r.delete(p);break;case"value":r.set(p,n(r.get(p)))}}return e},mx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},yx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function vx(e,t,n){if(void 0===n&&(n=[]),e)if(HE(e)){var r=mx(e,2),o=r[0],a=r[1];a&&zE(a,function(e,r){vx(e,t,yx(yx([],mx(n)),mx(JE(r))))}),t(o,n)}else zE(e,function(e,r){return vx(e,t,yx(yx([],mx(n)),mx(JE(r))))})}function bx(e,t,n){return vx(t,function(t,r){e=gx(e,r,function(e){return function(e,t,n){if(!HE(t)){var r=px[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return ox.untransform(e,t,n);case"class":return cx.untransform(e,t,n);case"custom":return ux.untransform(e,t,n);case"typed-array":return ix.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function kx(e,t){function n(t,n){var r=function(e,t){fx(t);for(var n=0;n<t.length;n++){var r=t[n];if(GE(e))e=hx(e,+r);else if(WE(e)){var o=+r,a=0===+t[++n]?"key":"value",i=hx(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e}(e,JE(n));t.map(JE).forEach(function(t){e=gx(e,t,function(){return r})})}if(HE(t)){var r=mx(t,2),o=r[0],a=r[1];o.forEach(function(t){e=gx(e,JE(t),function(){return e})}),a&&zE(a,n)}else zE(t,n);return e}var wx=function(e,t,n,r,o,a,i){var s;void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var c=$E(e);if(!c){!function(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);var u=i.get(e);if(u)return r?{transformedValue:null}:u}if(!function(e,t){return BE(e)||HE(e)||WE(e)||GE(e)||sx(e,t)}(e,n)){var l=dx(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||i.set(e,d),d}if(qE(a,e))return{transformedValue:null};var p=dx(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=HE(h)?[]:{},g={};zE(h,function(s,c){var u=wx(s,t,n,r,yx(yx([],mx(o)),[c]),yx(yx([],mx(a)),[e]),i);f[c]=u.transformedValue,HE(u.annotations)?g[c]=u.annotations:BE(u.annotations)&&zE(u.annotations,function(e,t){g[QE(c)+"."+t]=e})});var m=FE(g)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,g]:g};return c||i.set(e,m),m};function _x(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ex(e){return"Array"===_x(e)}function xx(e,t={}){if(Ex(e))return e.map(e=>xx(e,t));if(!function(e){if("Object"!==_x(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,r)=>{if(Ex(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,xx(e[r],t),e,t.nonenumerable),n},{})}var Sx=function(){return Sx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sx.apply(this,arguments)},Cx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Ix=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Rx=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new jE,this.symbolRegistry=new AE(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new UE,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=wx(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta=Sx(Sx({},r.meta),{values:n.annotations}));var o,a,i,s,c=(o=t,a=this.dedupe,i={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=mx(e),n=t[0],r=t.slice(1);0===n.length?s=r.map(YE):i[YE(n)]=r.map(YE)}}),s?FE(i)?[s]:[s,i]:FE(i)?void 0:i);return c&&(r.meta=Sx(Sx({},r.meta),{referentialEqualities:c})),r},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,r=xx(t);return(null==n?void 0:n.values)&&(r=bx(r,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(r=kx(r,n.referentialEqualities)),r},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(Sx({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,Ix([],Cx(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const Tx={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Ox=i.createContext(Tx);function Ax({theme:e,...t}){return i.createElement(Ox.Provider,lE({value:e},t))}function Px({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray}function jx(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Dx(e,t,n={}){return i.forwardRef(({style:r,...o},a)=>{const s=i.useContext(Ox),c=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=i.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return i.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,s):n}:e,{});return i.createElement(e,{...o,style:{..."function"==typeof t?t(o,s):t,...r,...c},ref:a})})}const Lx=(e,t=!1)=>{const{json:n}=Rx.serialize(e);return JSON.stringify(n,null,t?2:void 0)},zx=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,qx=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Nx={"Status > Last Updated":(e,t)=>zx(e)===zx(t)?qx(e,t):zx(e)>zx(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":qx},Ux=500,Mx={top:"bottom",bottom:"top",left:"right",right:"left"};function Bx(e){return["left","right"].includes(e)}function Fx(e){return Mx[e]}function Hx(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function Wx(e="bottom"){const t=Bx(e),n=Fx(e),r=Hx("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[r]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const Gx=Dx("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),Vx=Dx("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),Kx=Dx("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),$x=Dx("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),Qx=Dx("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Yx=Dx("code",{fontSize:".9em",color:"inherit",background:"inherit"}),Jx=Dx("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),Zx=Dx("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function Xx({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const eS=Dx("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),tS=Dx("span",{color:"white"}),nS=Dx("button",{cursor:"pointer",color:"white"}),rS=Dx("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),oS=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Rx.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(uS,null):"SuccessCopy"===t?i.createElement(dS,null):i.createElement(lS,null))},aS=Dx("span",(e,t)=>({color:t.danger})),iS=Dx("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),sS=Dx("span",{color:"grey",fontSize:".7em"}),cS=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),uS=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),lS=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),dS=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const pS=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:o=[],type:a,expanded:s=!1,copyable:c=!1,toggleExpanded:u,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(eS,{key:t},o.length?i.createElement(i.Fragment,null,i.createElement(rS,{onClick:()=>u()},i.createElement(cS,{expanded:s})," ",t," ",i.createElement(sS,null,"iterable"===String(a).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),c?i.createElement(oS,{value:n}):null,s?1===o.length?i.createElement(iS,null,r.map(e)):i.createElement(iS,null,o.map((t,n)=>i.createElement("div",{key:n},i.createElement(eS,null,i.createElement(nS,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},i.createElement(cS,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(iS,null,t.map(e)):null)))):null):i.createElement(i.Fragment,null,i.createElement(tS,null,t,":")," ",i.createElement(aS,null,Lx(n))))};function hS({value:e,defaultExpanded:t,renderer:n=pS,pageSize:r=100,copyable:o=!1,...a}){const[s,c]=i.useState(Boolean(t)),u=i.useCallback(()=>c(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=function(e,t){if(t<1)return[];let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}(d,r);return n({handleEntry:t=>i.createElement(hS,lE({key:t.label,value:e,renderer:n,copyable:o},a,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:o,toggleExpanded:u,pageSize:r,...a})}function fS(e){return i.createElement("svg",lE({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const gS=(e,t,n=!1)=>Cf.useSyncExternalStore(i.useCallback(t=>n?()=>{}:e.subscribe(af.batchCalls(t)),[e,n]),t,t),mS=i.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:o,context:a,onDragStart:s,onPositionChange:c,showCloseButton:u,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...g}=d,m=Af({context:a}),y=m.getQueryCache(),[v,b]=RE("reactQueryDevtoolsSortFn",Object.keys(Nx)[0]),[k,w]=RE("reactQueryDevtoolsFilter",""),[_,E]=RE("reactQueryDevtoolsBaseSort",1),x=i.useMemo(()=>Nx[v],[v]),S=gS(y,()=>y.getAll().length,!n),[C,I]=RE("reactQueryDevtoolsActiveQueryHash",""),R=i.useMemo(()=>{const e=y.getAll();if(0===S)return[];const t=k?e.filter(e=>_E(e.queryHash,k).passed):[...e];return x?t.sort((e,t)=>x(e,t)*_):t},[_,x,k,S,y]),[T,O]=i.useState(!1);return i.createElement(Ax,{theme:Tx},i.createElement(Gx,lE({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:Ux,position:"relative",...h.style}}),i.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Tx.backgroundAlt+" "+Tx.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+Tx.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Tx.gray+";\n border-radius: .5em;\n border: 3px solid "+Tx.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:Wx(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Tx.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:Tx.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>o(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(fS,{"aria-hidden":!0}),i.createElement(Xx,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(vS,{queryCache:y}),l&&c?i.createElement(Zx,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>c(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(Jx,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>w(e.target.value),onKeyDown:e=>{"Escape"===e.key&&w("")},style:{flex:"1",width:"100%"}}),i.createElement(Zx,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Nx).map(e=>i.createElement("option",{key:e,value:e},"Sort by ",e))),i.createElement(Kx,{type:"button",onClick:()=>E(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===_?"⬆ Asc":"⬇ Desc"),i.createElement(Kx,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(Kx,{type:"button",onClick:()=>{T?(Zh.setOnline(void 0),O(!1),window.dispatchEvent(new Event("online"))):(Zh.setOnline(!1),O(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Tx.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(Xx,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map(e=>i.createElement(bS,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:I,key:e.queryHash,queryCache:y})))),C&&n?i.createElement(yS,{activeQueryHash:C,queryCache:y,queryClient:m,errorTypes:p}):null,u?i.createElement(Kx,lE({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},g,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...g.style},onClick:e=>{o(!1),null==f||f(e)}}),"Close"):null))}),yS=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:r})=>{var o,a;const s=gS(e,()=>e.getAll().find(e=>e.queryHash===t)),c=gS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),u=null!=(o=gS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,l=null!=(a=gS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?a:0,d=p(()=>{if(s&&null!=c&&c.error){const e=r.find(e=>{var t;return e.initializer(s).toString()===(null==(t=c.error)?void 0:t.toString())});return null==e?void 0:e.name}},[s,null==c?void 0:c.error,r]);if(!s||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),r=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:r}})};return i.createElement(Vx,null,i.createElement("div",{style:{padding:".5em",background:Tx.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(Yx,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Lx(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Px({queryState:c,isStale:u,observerCount:l,theme:Tx}),flexShrink:0}},jx(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(Yx,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(Yx,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:Tx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(Kx,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(kS)},disabled:"fetching"===c.fetchStatus,style:{background:Tx.active}},"Refetch")," ",i.createElement(Kx,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Tx.warning,color:Tx.inputTextColor}},"Invalidate")," ",i.createElement(Kx,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Tx.gray}},"Reset")," ",i.createElement(Kx,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Tx.danger}},"Remove")," ",i.createElement(Kx,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Tx.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===r.length||"error"===s.state.status?i.createElement(Kx,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:Tx.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(Zx,{value:null!=d?d:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=r.find(t=>t.name===e.target.value);h(t)}},i.createElement("option",{key:"",value:""}),r.map(e=>i.createElement("option",{key:e.name,value:e.name},e.name))))),i.createElement("div",{style:{background:Tx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(hS,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:Tx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(hS,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},vS=({queryCache:e})=>{const t=gS(e,()=>e.getAll().filter(e=>"fresh"===jx(e)).length),n=gS(e,()=>e.getAll().filter(e=>"fetching"===jx(e)).length),r=gS(e,()=>e.getAll().filter(e=>"paused"===jx(e)).length),o=gS(e,()=>e.getAll().filter(e=>"stale"===jx(e)).length),a=gS(e,()=>e.getAll().filter(e=>"inactive"===jx(e)).length);return i.createElement($x,null,i.createElement(Qx,{style:{background:Tx.success,opacity:t?1:.3}},"fresh ",i.createElement(Yx,null,"(",t,")"))," ",i.createElement(Qx,{style:{background:Tx.active,opacity:n?1:.3}},"fetching ",i.createElement(Yx,null,"(",n,")"))," ",i.createElement(Qx,{style:{background:Tx.paused,opacity:r?1:.3}},"paused ",i.createElement(Yx,null,"(",r,")"))," ",i.createElement(Qx,{style:{background:Tx.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",i.createElement(Yx,null,"(",o,")"))," ",i.createElement(Qx,{style:{background:Tx.gray,opacity:a?1:.3}},"inactive ",i.createElement(Yx,null,"(",a,")")))},bS=i.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var o,a,s,c;const u=null!=(o=gS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?o:"",l=gS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(a=gS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&a,p=null!=(s=gS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(c=gS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?c:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+u,onClick:()=>t(n===u?"":u),style:{display:"flex",borderBottom:"solid 1px "+Tx.grayAlt,cursor:"pointer",background:u===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Px({queryState:l,isStale:d,observerCount:h,theme:Tx}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Tx.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(Yx,{style:{padding:".5em"}},""+u)):null});function kS(){}bS.displayName="QueryRow";const wS="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:o="bottom-left",containerElement:a="aside",context:s,styleNonce:c,panelPosition:u="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,f]=RE("reactQueryDevtoolsOpen",e),[g,m]=RE("reactQueryDevtoolsHeight",Ux),[y,v]=RE("reactQueryDevtoolsWidth",Ux),[b="bottom",k]=RE("reactQueryDevtoolsPanelPosition",u),[w,_]=i.useState(!1),[E,x]=i.useState(!1),S=function(){const e=i.useRef(!1),t=i.useCallback(()=>e.current,[]);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();i.useEffect(()=>{_(null!=h&&h)},[h,w,_]),i.useEffect(()=>{const e=p.current;if(e){const t=()=>{w&&(e.style.visibility="visible")},n=()=>{w||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[w]),i.useEffect(()=>{var e;if(w&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=Hx("padding",b),n=Bx(b),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:g)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach(([t,n])=>{e.style[t]=n})}}},[w,b,g,y]);const{style:C={},...I}=t,{style:R={},onClick:T,...O}=r,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:a,panelStyle:i}){const s=Fx(e),c=Hx("border",s),u=Bx(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+r.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:Ux}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Ux}}}({position:b,devtoolsTheme:Tx,isOpen:w,height:g,width:y,isResizing:E,panelStyle:C});return S()?i.createElement(a,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(Ax,{theme:Tx},i.createElement(mS,lE({ref:p,context:s,styleNonce:c,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},I,{style:A,isOpen:w,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=Bx(b);x(!0);const{height:r,width:o}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=r+("bottom"===b?i-e.clientY:e.clientY-i),m(s)),f(!(s<70))},u=()=>{E&&x(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:l}))),w?null:i.createElement("button",lE({type:"button"},O,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===o?{top:"0",right:"0"}:"top-left"===o?{top:"0",left:"0"}:"bottom-right"===o?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),i.createElement(fS,{"aria-hidden":!0}),i.createElement(Xx,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var _S,ES={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function xS(e){var o=this,a=e.children,i=process.env.ENVIRONMENT,s=p(function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"},[i]),l=c(!1),h=l[0],f=l[1],g=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),c=i?JSON.parse(i).value:"",[4,Ih.refreshInstance({headers:t(t({},o),{"X-Environment":a||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return r.sent(),[2]}})})},[s]);u(function(){return addEventListener("ACCOUNT_CHANGED",g),function(){window.removeEventListener("ACCOUNT_CHANGED",g)}},[g]);var m=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c,u,l;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),c=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,Ih.refreshInstance({headers:t(t({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:r.sent(),Ag.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),f(!0),r.label=2;case 2:return[2]}})})},[s,f]);return u(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?m(n):"token"===t.key&&m(e)}}),m(e)},[f,m]),h?React.createElement(Pf,{client:Ag},a,React.createElement(wS,{initialIsOpen:!1})):React.createElement("div",{style:ES})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(_S||(_S={}));var SS=function(){var e=l(null),t=l(null),n=l(null),r=c(!1),o=r[0],a=r[1],i=c(null),s=i[0],p=i[1],h=c(null),f=h[0],g=h[1],m=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),y=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),g(null);try{var r=new WebSocket("".concat(Ch["WS_URL_".concat(Ch.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=r,r.onopen=function(){a(!0);var e=localStorage.getItem("token");e&&r.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){r.readyState===WebSocket.OPEN?r.send(JSON.stringify({type:"ping"})):(m(),a(!1))},3e4)},r.onmessage=function(e){try{var t=JSON.parse(e.data);p(t)}catch(e){g("Failed to parse server response")}},r.onerror=function(e){g("Connection error occurred"),a(!1)},r.onclose=function(e){a(!1),m(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){y()},5e3))}}catch(e){g("Failed to establish connection")}},[]),v=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),b=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),k=d(function(){p(null)},[]),w=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(a(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return u(function(){return y(),function(){m(),w()}},[]),{subscribe:v,unsubscribe:b,disconnect:w,connect:y,clearChartData:k,isConnected:o,chartData:s,connectionError:f}},CS=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&CS&&function(){n(this,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:if(!_i())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,bi.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{zd as AI,Eh as Api,_S as ApiErrorCodes,xS as ApiProvider,Ih as ApiSingleton,Ld as Audit,qv as CONCIERGE_ALERTS_QUERY_KEY,Nv as CONCIERGE_ALERT_BY_ID_QUERY_KEY,Rd as Country,Pd as DataReport,Mf as DuplicateSetting,dh as FEEDBACK_ISSUE_OPTIONS,Id as Organization,qd as OrganizationConfig,Cd as PaymentFiltersSection,Gv as PendingDuplicateAccountStatus,Dd as ReconciliationAgendaInsight,jd as ReconciliationReportType,Td as ReportType,Sd as SendPaymentNotification,Ad as SmartRouting,Od as TemplateType,nk as getQueryKeyGetNameAndIcon,sk as getQueryKeyPaymentMethodAccounts,ok as getQueryKeyRequiredFields,Og as queryCache,Ag as queryClient,Jb as use3DSExemptions,ov as useAICreateWorkflow,Eg as useAccountCode,Tg as useAddToRiskList,Fw as useAllFeatureFlags,y_ as useAllowListDetail,m_ as useBlackListDetail,Lv as useBlockOnboarding,Cv as useBulkCreateInstallmentsPlans,Iv as useBulkDeleteInstallmentsPlans,Vg as useBulkToggleMethod,Hw as useCachedFeatureFlag,zg as useCancelReport,km as useCancelSubscription,cg as useChangePasswordV2,iy as useChangePaymentsWebhook,ty as useChangeStatusBlackList,ny as useChangeStatusItemBlackList,dk as useChangeStylingSettings,mv as useChangeTemplateStatus,Ig as useChargebacksUpload,SS as useChartAssistantSocket,I_ as useChartExecute,fv as useCloneTemplate,Nm as useCommunicationDetails,zm as useCommunications,B_ as useCommunicationsByDay,F_ as useCommunicationsBySubstatus,qm as useCommunicationsFilters,H_ as useCommunicationsSubstatusByDay,Hm as useConfirmedOtpMfa,Lg as useCountRowsForReport,uv as useCreateAndExecuteChart,dv as useCreateAndExecuteChartWithTimezone,iv as useCreateChart,lv as useCreateChartWithTimezone,Bv as useCreateConciergeAlert,Ev as useCreateInstallmentsPlan,nm as useCreateMonitorTemplate,tm as useCreateMonitorThreshold,jv as useCreateOnboarding,Cg as useCreateOperationTransaction,um as useCreateOrgRole,hm as useCreatePaymentLinks,Ov as useCreateRecipient,Rv as useCreateRecipientExport,Jy as useCreateReconciliationAlert,Qy as useCreateReconciliationReportTemplate,Pg as useCreateReconciliationsReportV2,jg as useCreateReconciliationsReportV3,qg as useCreateReportTemplate,Dg as useCreateReportV2,im as useCreateRoles,tv as useCreateSamlConfig,vv as useCreateSchedule,ky as useCreateScheduledReport,ym as useCreateSubscription,hv as useCreateTemplate,yg as useCreateUserAuth0,Mg as useCreateWorkflow,Yf as useDeleteAccountsUserMassive,uy as useDeleteAllowlistItem,oy as useDeleteBlackListType,sy as useDeleteBlockListItem,sv as useDeleteChart,Fv as useDeleteConciergeAlert,Py as useDeleteCustomizedApiKeys,Sv as useDeleteInstallmentsPlan,dm as useDeleteOrgRole,fm as useDeletePaymentLink,Pv as useDeleteRecipient,Zy as useDeleteReconciliationAlert,Ug as useDeleteReportTemplate,cm as useDeleteRoles,rv as useDeleteSamlConfig,kv as useDeleteSchedule,_y as useDeleteScheduledReport,yv as useDeleteTemplate,om as useDeleteUserTeamV2,Hg as useDeleteVersion,Ff as useDeleteWebhookV2,bv as useDisableSchedule,Tv as useDownloadRecipientExport,Gf as useDuplicateAccount,Wg as useDuplicateVersion,lm as useEditOrgRole,gm as useEditPaymentLinks,sm as useEditRoles,Am as useEmailVerification,Hv as useEnableConciergeAlert,vy as useExcludeUsers,Gy as useExportApiLogs,Ky as useExportDashboardLogs,$y as useExportMonitorsLogs,Vy as useExportWebhooksLogs,Bw as useFeatureFlags,jk as useFetchUserExportDetail,d_ as useFirebaseUserSubscribe,av as useGenerateFeedback,jb as useGetAccounts,Lb as useGetAccountsByUser,zb as useGetAccountsForImpersonation,Db as useGetAccountsV2,w_ as useGetAllConfigRules,Eb as useGetAllOrganizations,gw as useGetAllReconciliationsAdvancements,pw as useGetAllReconciliationsAgenda,dw as useGetAllReconciliationsAlerts,mw as useGetAllReconciliationsFees,fw as useGetAllReconciliationsSales,sw as useGetAllTableColumns,yb as useGetAllowedIps,Qw as useGetApiLogsByTransactionCode,$w as useGetApiLogsDetailByPaymentCode,r_ as useGetApiLogsList,t_ as useGetApiLogsStatsErrors,n_ as useGetApiLogsStatsErrorsByEndpoint,e_ as useGetApiLogsStatsRequests,iE as useGetApiLogsV3,o_ as useGetApiLogsV3ByPaymentCode,Ww as useGetAuditEvents,Jw as useGetAuditExportDownload,Yw as useGetAuditExportsList,Gw as useGetAuditMonitorEventDetail,fy as useGetBatchRefundProcessedFileDownload,gy as useGetBatchRefundUserFileDownload,b_ as useGetBatchRefunds,h_ as useGetBlackList,g_ as useGetBlockListSummary,Xv as useGetCardBrands,A_ as useGetChartFeedback,R_ as useGetChartsByUser,T_ as useGetChartsByUserWithResults,tk as useGetCheckouts,Mv as useGetConciergeAlertById,Uv as useGetConciergeAlerts,Ey as useGetConditionalConfigRules,p_ as useGetConfigAllowlist,Tb as useGetConnections,Ib as useGetConnectionsByPaymentMethod,s_ as useGetCountriesConfigPaymentLink,c_ as useGetCountriesConfigPaymentLinkV2,ik as useGetCountryData,gb as useGetCredentials,Ly as useGetCredentialsMFA,bb as useGetCustomizedApiKeys,vb as useGetCustomizedApiKeysAccounts,mb as useGetCustomizedApiKeysMembers,kb as useGetCustomizedApiKeysProducts,Ty as useGetCustomizedApiKeysToken,kk as useGetDownloadReport,Fm as useGetEmailOtp,Rb as useGetHashPylon,uE as useGetHiddenFields,Dm as useGetImpersonationEnabled,jm as useGetImpersonationUsers,Bk as useGetInsightsReport,Fk as useGetInsightsReportAgain,oE as useGetInstallmentsPlans,Cb as useGetIntegrationByAccountV2,Sb as useGetIntegrationParams,P_ as useGetLanguages,Pm as useGetLoginMethods,E_ as useGetMFAConfig,__ as useGetMFAExcludedUsers,x_ as useGetMFAStatus,fk as useGetMergedNotifications,rk as useGetNameAndIcon,D_ as useGetNetworkTokensOnboardingByOrganization,pk as useGetNotificationsCustomer,gk as useGetNotificationsNumberMutation,eE as useGetOnboardingDetail,J_ as useGetOnboardingStatus,tE as useGetOnboardingTimeline,Ok as useGetOrgPermissionsCatalog,Tk as useGetOrgRolesPermissions,_b as useGetOrganization,Y_ as useGetOrganizationConfigs,qy as useGetOrganizationKeysMetadata,eb as useGetPaymentFilters,i_ as useGetPaymentLinkByCode,a_ as useGetPaymentLinks,ck as useGetPaymentMethodAccounts,Zv as useGetPaymentMethodsAndProviders,tb as useGetPaymentMetricsFilters,nb as useGetPaymentTransactionsDetails,$v as useGetPaymentV2,Jv as useGetPaymentsMethodsByCountry,ib as useGetPayoutDetail,cb as useGetPayoutHistoryDetail,fb as useGetPayoutTimeline,sb as useGetPayoutTransactionDetail,Nb as useGetPendingDuplicateAccounts,Om as useGetPermissions,Rk as useGetPermissionsCatalog,Rm as useGetProfile,ub as useGetProofOfCancel,lb as useGetProofOfPayment,xb as useGetProviderParams,X_ as useGetRecipientById,rE as useGetRecipientExportDownload,nE as useGetRecipientExports,Z_ as useGetRecipients,cw as useGetReconciliationActive,hw as useGetReconciliationAgendaInsightsByKey,iw as useGetReconciliationFilters,_w as useGetReconciliationInsightsAmountConflictAggregators,Ew as useGetReconciliationInsightsAmountConflictList,qw as useGetReconciliationInsightsAmountToBeSettledSummary,Sw as useGetReconciliationInsightsConflictDateAggregators,Cw as useGetReconciliationInsightsConflictDateList,xw as useGetReconciliationInsightsConflictDateSummary,yw as useGetReconciliationInsightsConflictsSummary,Ow as useGetReconciliationInsightsFeesChargedSummary,Rw as useGetReconciliationInsightsIncorrectFeesAggregators,Tw as useGetReconciliationInsightsIncorrectFeesList,Iw as useGetReconciliationInsightsIncorrectFeesSummary,Lw as useGetReconciliationInsightsNotConfirmAggregators,zw as useGetReconciliationInsightsNotConfirmList,Dw as useGetReconciliationInsightsNotConfirmSummary,vw as useGetReconciliationInsightsNotReconciledAggregators,bw as useGetReconciliationInsightsNotReconciledList,Pw as useGetReconciliationInsightsReconciledAggregators,jw as useGetReconciliationInsightsReconciledList,Aw as useGetReconciliationInsightsReconciledSummary,Uw as useGetReconciliationInsightsReconciliationRateByAccount,Mw as useGetReconciliationInsightsReconciliationRateByCurrency,Nw as useGetReconciliationInsightsReconciliationRateByProvider,kw as useGetReconciliationInsightsStatusConflictAggregators,ww as useGetReconciliationInsightsStatusConflictList,aw as useGetReconciliationMetrics,rw as useGetReconciliationTransactions,uw as useGetReconciliationsReportColumns,lw as useGetReconciliationsReportTemplates,Ek as useGetRefundPdf,_k as useGetReportColumns,wk as useGetReportTemplates,vk as useGetReportsList,bk as useGetReportsListMultiEnv,ak as useGetRequiredFields,Ck as useGetRoles,qb as useGetRolesForImpersonation,Ik as useGetRolesPermissions,ek as useGetRoutingMonitorsTemplate,Xb as useGetRoutingMonitorsTemplates,xy as useGetRule,C_ as useGetSamlConfig,by as useGetScheduledReportsList,ow as useGetSettlements,Fb as useGetSmartRoutingConditionPaymentMethod,Bb as useGetSmartRoutingConditionTypes,Hb as useGetSmartRoutingConditionTypesValues,Dk as useGetSmartRoutingDataReport,Vb as useGetSmartRoutingDeclineGroups,Ub as useGetSmartRoutingMethods,Gb as useGetSmartRoutingNextRoute,Kb as useGetSmartRoutingPaymentRoute,Qb as useGetSmartRoutingSearchConditionValues,$b as useGetSmartRoutingSimulateConditionTypeValues,Mb as useGetSmartRoutingWorkflow,Wb as useGetSmartRoutingWorkflowVersion,uk as useGetStylingSdkDynamic,lk as useGetStylingSettingsV2,u_ as useGetSubscriptionByCode,l_ as useGetSubscriptionPayments,xk as useGetTeamsFiltersMembers,Bm as useGetTokenValidation,Qv as useGetTransactionDetailsV2,rb as useGetTransactionHistoryByPaymentCode,Yv as useGetTransactionRawResponse,j_ as useGetTranslations,Zw as useGetUnifiedExportStatus,Xw as useGetUnifiedExportsList,Ak as useGetUserExportStatus,Tm as useGetUserFull,Lm as useGetUsersToImpersonate,hk as useGetValidateOpsgenieKey,Ob as useGetWebhookParamsV2,sE as useGetWebhookTimeline,Pb as useGetWebhooksV2Detail,Ab as useGetWebhooksV3,S_ as useGetWorkOsMfaStatus,Vk as useInsights3dsConversionRateAndEvolution,Kk as useInsights3dsDeclineReasons,$k as useInsights3dsFrictionlessVsChallenge,Gk as useInsights3dsVolumeAndCountTx,nw as useInsightsChargebacksByCardBrand,Xk as useInsightsChargebacksByProviderAndCardBrand,Zk as useInsightsChargebacksDisputed,ew as useInsightsChargebacksReasonsDistribution,tw as useInsightsChargebacksStatusDistribution,Yk as useInsightsChargebacksTotalRateAndEvolution,Qk as useInsightsChargebacksVolumeAndCountTx,Jk as useInsightsChargebacksWinRate,Lk as useInsightsConversionRateMetricsV2,qk as useInsightsFallbackMetrics,Wk as useInsightsFraudScreeningConversionRate,Hk as useInsightsFraudScreeningVolumeAndCountTx,Mk as useInsightsHomeMetrics,Uk as useInsightsOverviewMetricsV3,Nk as useInsightsVolumeMetricsV2,fg as useInviteUsersMultiaccountMassive,gg as useInviteUsersMultiaccountMassiveV2,kg as useIsTesting,Em as useListSubscriptions,Pk as useListUserExports,wg as useLocalStorage,bg as useLoginMethods,Zb as useNetworkTokensOnboarding,tg as useNewPostConnectionValidate,_g as useOrganizationCode,Kf as usePatchAccountV2,Jm as usePatchAddAllowlistItems,wb as usePatchAllowedIps,Zm as usePatchAllowlist,O_ as usePatchAndExecuteChart,jy as usePatchApiKeysEditNote,Qm as usePatchChangeStatusAllowlist,Ym as usePatchChangeStatusAllowlistItem,cv as usePatchChartName,ng as usePatchConnection,Ny as usePatchOrganizationKeysNote,Ry as usePathCreateCustomizedApiKeys,mk as usePathNotifications,vm as usePauseSubscription,hb as usePayoutsFilters,pb as usePayoutsList,Wf as usePostAccount,v_ as usePostAllowlistMultiAccount,Dy as usePostApiKeysRoll,Vw as usePostApiLogs,Fy as usePostAuditMonitors,hy as usePostBatchRefundByFile,ay as usePostBlackListBatch,ry as usePostBlackListItems,Xm as usePostBlackListMultiAccount,f_ as usePostBlockList,vg as usePostCall,Zf as usePostChangeStatusConnection,eg as usePostConnectionMultiAccount,$m as usePostCreateAllowlistMultiAccount,Iy as usePostCreateCustomizedApiKeys,ev as usePostCreateInsightsReport,Sy as usePostCreateRuleMultiAccount,Oy as usePostCredentialsValidatePassword,Ay as usePostCredentialsValidatePasswordRegularUser,zy as usePostCredentialsWithOtpMfa,rg as usePostDefaultRoutes,Cy as usePostEditRule,ab as usePostFraudTransactions,Vm as usePostGetAllowlistItems,Km as usePostGetAllowlistMultiAccount,Sk as usePostMembersPaginatedV2,ag as usePostNetworkTokensOnboarding,wv as usePostOrganizationConfigs,By as usePostOrganizationKeysMarkRevealed,Uy as usePostOrganizationKeysRoll,My as usePostOrganizationKeysTamRequest,Kv as usePostPaymentsEvaluated,Vv as usePostPaymentsLazy,Wv as usePostPlaygroundExecuteFlow,rm as usePostSlackFeatureNotification,ob as usePostTransactions,xm as usePostUserSettings,Im as usePostUserSettingsPinned,Cm as usePostUserSettingsTables,Sm as usePostUserThemeSettings,Jf as usePostValideStatusConnection,k_ as usePostVelocityRules,Kw as usePostWebhookLogs,Bf as usePostWebhookMultiAccount,Yb as useProviderConversionRatesData,Rg as useProviderRawResponse,Sg as usePublishCheckout,Bg as usePublishVersion,$f as usePutAccountPrincipal,Qf as usePutAccountsUserMassive,ey as usePutBlackListType,Xf as usePutCosts,_v as usePutOrganizationConfigsByAccount,G_ as useRecoveredPaymentsByDay,W_ as useRecoveredTPVByDay,_m as useRescheduleSubscription,Hy as useResendWebhooks,bm as useResumeSubscription,Vf as useRetryDuplicateAccount,Fg as useSaveVersion,aE as useSearchInstallmentsPlans,Q_ as useSearchScheduleById,$_ as useSearchSchedules,K_ as useSearchTemplateById,V_ as useSearchTemplates,db as useSendPaymentNotification,am as useSetCustodian,$g as useSmartRoutingCreateDeclinedGroup,Yg as useSmartRoutingEditWorkflowName,em as useSmartRoutingMultiAccountDeclinedGroupCreate,Xg as useSmartRoutingRemoveDeclinedGroup,Jg as useSmartRoutingSimulateTransaction,Qg as useSmartRoutingToggleFavorite,Kg as useSmartRoutingUpdateDeclinedGroup,Zg as useSmartRoutingUpdateMonitorRedistribution,pm as useStartUserExport,pv as useSubmitChartFeedback,Mm as useTableOnboarding,Gg as useToggleMethod,mg as useUnInviteUsersV2,zv as useUnblockOnboarding,Wy as useUnifiedExportStart,Wm as useUnrollUserV2,xv as useUpdateInstallmentsPlan,xg as useUpdateIsActiveCheckout,yy as useUpdateMFAConfig,Dv as useUpdateOnboarding,ig as useUpdateOrganizationStatus,hg as useUpdateProfile,Av as useUpdateRecipient,Xy as useUpdateReconciliationAlert,Yy as useUpdateReconciliationReportTemplate,Ng as useUpdateReportTemplate,nv as useUpdateSamlConfig,wy as useUpdateScheduledReport,wm as useUpdateSubscription,gv as useUpdateTemplateSelection,Hf as useUpdateWebhookV2,dy as useUploadBatchRefundsFileV2,py as useUploadBatchRefundsV2,my as useUploadFileS3ClientBatchRefunds,mm as useUploadPaymentLinkLogo,ly as useValiateAllowlistItems,cy as useValidateBlockListItems,og as useValidateCredentials,sg as useValidateOrgName,Gm as useValidatePasswordStatus,zk as useViewMoreMetrics,lg as useWorkosAdminPortal,cE as useWorkosDomainStatus,dg as useWorkosDomainVerificationPortal,ug as useWorkosPasswordReset,pg as useWorkosVerifyMfa};
67
+ const SE=7,CE=6,IE=5,RE=4,TE=3,OE=2,AE=1,PE=0;function jE(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:AE,!n.accessors){const r=DE(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=NE(o),i=zE(e,o);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:PE,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const r=o[e];let i=DE(r.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=r.attributes;i<s&&i>=AE?i=s:i>c&&(i=c),i=Math.min(i,c),i>=u&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=u,a.rankedValue=r.itemValue)}return a}function DE(e,t,n){return e=LE(e,n),(t=LE(t,n)).length>e.length?PE:e===t?SE:(e=e.toLowerCase())===(t=t.toLowerCase())?CE:e.startsWith(t)?IE:e.includes(` ${t}`)?RE:e.includes(t)?TE:1===t.length?PE:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?OE:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,a=t.length;o<a;o++){if(t[o]===e)return n+=1,o+1}return-1}function a(e){const r=1/e,o=n/t.length;return AE+o*r}const i=o(t[0],e,0);if(i<0)return PE;r=i;for(let n=1,a=t.length;n<a;n++){r=o(t[n],e,r);if(!(r>-1))return PE}const s=r-i;return a(s)}(e,t)}function LE(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(xE,e=>_E[e])),e}function zE(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const qE={maxRanking:1/0,minRanking:-1/0};function NE(e){return"function"==typeof e?qE:{...qE,...e}}function UE(e,t){const[n,r]=i.useState();i.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,i.useCallback(t=>{r(n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r})},[e])]}var ME,BE=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),FE=function(){function e(e){this.generateIdentifier=e,this.kv=new BE}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),HE=(ME=function(e,t){return ME=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ME(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ME(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),WE=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return HE(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(FE),GE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function VE(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var r=n,o=0;o<r.length;o++){var a=r[o];if(t(a))return a}}function KE(e,t){Object.entries(e).forEach(function(e){var n=GE(e,2),r=n[0],o=n[1];return t(o,r)})}function $E(e,t){return-1!==e.indexOf(t)}function QE(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var YE=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return VE(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),JE=function(e){return void 0===e},ZE=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},XE=function(e){return ZE(e)&&0===Object.keys(e).length},ex=function(e){return Array.isArray(e)},tx=function(e){return e instanceof Map},nx=function(e){return e instanceof Set},rx=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},ox=function(e){return"number"==typeof e&&isNaN(e)},ax=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||JE(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||rx(e)},ix=function(e){return e.replace(/\./g,"\\.")},sx=function(e){return e.map(String).map(ix).join(".")},cx=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r);if("\\"===o&&"."===e.charAt(r+1))n+=".",r++;else"."===o?(t.push(n),n=""):n+=o}var a=n;return t.push(a),t},ux=function(){return ux=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ux.apply(this,arguments)},lx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},dx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function px(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var hx=[px(JE,"undefined",function(){return null},function(){}),px(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),px(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),px(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),px(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),px(nx,"set",function(e){return dx([],lx(e.values()))},function(e){return new Set(e)}),px(tx,"map",function(e){return dx([],lx(e.entries()))},function(e){return new Map(e)}),px(function(e){return ox(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return ox(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),px(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),px(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function fx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var gx=fx(function(e,t){return!!rx(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),mx=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),yx=fx(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return dx([],lx(e))},function(e,t){var n=mx[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function vx(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var bx=fx(vx,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return ux({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),kx=fx(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),wx=[bx,gx,kx,yx],_x=function(e,t){var n=QE(wx,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=QE(hx,function(n){return n.isApplicable(e,t)});return r?{value:r.transform(e,t),type:r.annotation}:void 0},Ex={};hx.forEach(function(e){Ex[e.annotation]=e});var xx=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Sx(e){if($E(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if($E(e,"prototype"))throw new Error("prototype is not allowed as a property");if($E(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Cx=function(e,t,n){if(Sx(t),0===t.length)return n(e);for(var r=e,o=0;o<t.length-1;o++){var a=t[o];if(ex(r))r=r[+a];else if(ZE(r))r=r[a];else if(nx(r)){r=xx(r,i=+a)}else if(tx(r)){if(o===t.length-2)break;var i=+a,s=0===+t[++o]?"key":"value",c=xx(r,i);switch(s){case"key":r=c;break;case"value":r=r.get(c)}}}var u=t[t.length-1];if(ex(r)?r[+u]=n(r[+u]):ZE(r)&&(r[u]=n(r[u])),nx(r)){var l=xx(r,+u),d=n(l);l!==d&&(r.delete(l),r.add(d))}if(tx(r)){i=+t[t.length-2];var p=xx(r,i);switch(s=0===+u?"key":"value"){case"key":var h=n(p);r.set(h,r.get(p)),h!==p&&r.delete(p);break;case"value":r.set(p,n(r.get(p)))}}return e},Ix=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Rx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function Tx(e,t,n){if(void 0===n&&(n=[]),e)if(ex(e)){var r=Ix(e,2),o=r[0],a=r[1];a&&KE(a,function(e,r){Tx(e,t,Rx(Rx([],Ix(n)),Ix(cx(r))))}),t(o,n)}else KE(e,function(e,r){return Tx(e,t,Rx(Rx([],Ix(n)),Ix(cx(r))))})}function Ox(e,t,n){return Tx(t,function(t,r){e=Cx(e,r,function(e){return function(e,t,n){if(!ex(t)){var r=Ex[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return gx.untransform(e,t,n);case"class":return bx.untransform(e,t,n);case"custom":return kx.untransform(e,t,n);case"typed-array":return yx.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function Ax(e,t){function n(t,n){var r=function(e,t){Sx(t);for(var n=0;n<t.length;n++){var r=t[n];if(nx(e))e=xx(e,+r);else if(tx(e)){var o=+r,a=0===+t[++n]?"key":"value",i=xx(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e}(e,cx(n));t.map(cx).forEach(function(t){e=Cx(e,t,function(){return r})})}if(ex(t)){var r=Ix(t,2),o=r[0],a=r[1];o.forEach(function(t){e=Cx(e,cx(t),function(){return e})}),a&&KE(a,n)}else KE(t,n);return e}var Px=function(e,t,n,r,o,a,i){var s;void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var c=ax(e);if(!c){!function(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);var u=i.get(e);if(u)return r?{transformedValue:null}:u}if(!function(e,t){return ZE(e)||ex(e)||tx(e)||nx(e)||vx(e,t)}(e,n)){var l=_x(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||i.set(e,d),d}if($E(a,e))return{transformedValue:null};var p=_x(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=ex(h)?[]:{},g={};KE(h,function(s,c){var u=Px(s,t,n,r,Rx(Rx([],Ix(o)),[c]),Rx(Rx([],Ix(a)),[e]),i);f[c]=u.transformedValue,ex(u.annotations)?g[c]=u.annotations:ZE(u.annotations)&&KE(u.annotations,function(e,t){g[ix(c)+"."+t]=e})});var m=XE(g)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,g]:g};return c||i.set(e,m),m};function jx(e){return Object.prototype.toString.call(e).slice(8,-1)}function Dx(e){return"Array"===jx(e)}function Lx(e,t={}){if(Dx(e))return e.map(e=>Lx(e,t));if(!function(e){if("Object"!==jx(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,r)=>{if(Dx(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,Lx(e[r],t),e,t.nonenumerable),n},{})}var zx=function(){return zx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zx.apply(this,arguments)},qx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Nx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Ux=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new WE,this.symbolRegistry=new FE(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new YE,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Px(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta=zx(zx({},r.meta),{values:n.annotations}));var o,a,i,s,c=(o=t,a=this.dedupe,i={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=Ix(e),n=t[0],r=t.slice(1);0===n.length?s=r.map(sx):i[sx(n)]=r.map(sx)}}),s?XE(i)?[s]:[s,i]:XE(i)?void 0:i);return c&&(r.meta=zx(zx({},r.meta),{referentialEqualities:c})),r},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,r=Lx(t);return(null==n?void 0:n.values)&&(r=Ox(r,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(r=Ax(r,n.referentialEqualities)),r},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(zx({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,Nx([],qx(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const Mx={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Bx=i.createContext(Mx);function Fx({theme:e,...t}){return i.createElement(Bx.Provider,wE({value:e},t))}function Hx({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray}function Wx(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Gx(e,t,n={}){return i.forwardRef(({style:r,...o},a)=>{const s=i.useContext(Bx),c=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=i.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return i.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,s):n}:e,{});return i.createElement(e,{...o,style:{..."function"==typeof t?t(o,s):t,...r,...c},ref:a})})}const Vx=(e,t=!1)=>{const{json:n}=Ux.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Kx=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,$x=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Qx={"Status > Last Updated":(e,t)=>Kx(e)===Kx(t)?$x(e,t):Kx(e)>Kx(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":$x},Yx=500,Jx={top:"bottom",bottom:"top",left:"right",right:"left"};function Zx(e){return["left","right"].includes(e)}function Xx(e){return Jx[e]}function eS(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function tS(e="bottom"){const t=Zx(e),n=Xx(e),r=eS("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[r]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const nS=Gx("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),rS=Gx("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),oS=Gx("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),aS=Gx("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),iS=Gx("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),sS=Gx("code",{fontSize:".9em",color:"inherit",background:"inherit"}),cS=Gx("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),uS=Gx("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function lS({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const dS=Gx("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),pS=Gx("span",{color:"white"}),hS=Gx("button",{cursor:"pointer",color:"white"}),fS=Gx("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),gS=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Ux.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(kS,null):"SuccessCopy"===t?i.createElement(_S,null):i.createElement(wS,null))},mS=Gx("span",(e,t)=>({color:t.danger})),yS=Gx("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),vS=Gx("span",{color:"grey",fontSize:".7em"}),bS=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),kS=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),wS=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),_S=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const ES=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:o=[],type:a,expanded:s=!1,copyable:c=!1,toggleExpanded:u,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(dS,{key:t},o.length?i.createElement(i.Fragment,null,i.createElement(fS,{onClick:()=>u()},i.createElement(bS,{expanded:s})," ",t," ",i.createElement(vS,null,"iterable"===String(a).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),c?i.createElement(gS,{value:n}):null,s?1===o.length?i.createElement(yS,null,r.map(e)):i.createElement(yS,null,o.map((t,n)=>i.createElement("div",{key:n},i.createElement(dS,null,i.createElement(hS,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},i.createElement(bS,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(yS,null,t.map(e)):null)))):null):i.createElement(i.Fragment,null,i.createElement(pS,null,t,":")," ",i.createElement(mS,null,Vx(n))))};function xS({value:e,defaultExpanded:t,renderer:n=ES,pageSize:r=100,copyable:o=!1,...a}){const[s,c]=i.useState(Boolean(t)),u=i.useCallback(()=>c(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=function(e,t){if(t<1)return[];let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}(d,r);return n({handleEntry:t=>i.createElement(xS,wE({key:t.label,value:e,renderer:n,copyable:o},a,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:o,toggleExpanded:u,pageSize:r,...a})}function SS(e){return i.createElement("svg",wE({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const CS=(e,t,n=!1)=>jf.useSyncExternalStore(i.useCallback(t=>n?()=>{}:e.subscribe(hf.batchCalls(t)),[e,n]),t,t),IS=i.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:o,context:a,onDragStart:s,onPositionChange:c,showCloseButton:u,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...g}=d,m=Nf({context:a}),y=m.getQueryCache(),[v,b]=UE("reactQueryDevtoolsSortFn",Object.keys(Qx)[0]),[k,w]=UE("reactQueryDevtoolsFilter",""),[_,E]=UE("reactQueryDevtoolsBaseSort",1),x=i.useMemo(()=>Qx[v],[v]),S=CS(y,()=>y.getAll().length,!n),[C,I]=UE("reactQueryDevtoolsActiveQueryHash",""),R=i.useMemo(()=>{const e=y.getAll();if(0===S)return[];const t=k?e.filter(e=>jE(e.queryHash,k).passed):[...e];return x?t.sort((e,t)=>x(e,t)*_):t},[_,x,k,S,y]),[T,O]=i.useState(!1);return i.createElement(Fx,{theme:Mx},i.createElement(nS,wE({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:Yx,position:"relative",...h.style}}),i.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Mx.backgroundAlt+" "+Mx.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+Mx.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Mx.gray+";\n border-radius: .5em;\n border: 3px solid "+Mx.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:tS(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Mx.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:Mx.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>o(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(SS,{"aria-hidden":!0}),i.createElement(lS,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(TS,{queryCache:y}),l&&c?i.createElement(uS,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>c(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(cS,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>w(e.target.value),onKeyDown:e=>{"Escape"===e.key&&w("")},style:{flex:"1",width:"100%"}}),i.createElement(uS,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Qx).map(e=>i.createElement("option",{key:e,value:e},"Sort by ",e))),i.createElement(oS,{type:"button",onClick:()=>E(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===_?"⬆ Asc":"⬇ Desc"),i.createElement(oS,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(oS,{type:"button",onClick:()=>{T?(af.setOnline(void 0),O(!1),window.dispatchEvent(new Event("online"))):(af.setOnline(!1),O(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Mx.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(lS,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map(e=>i.createElement(OS,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:I,key:e.queryHash,queryCache:y})))),C&&n?i.createElement(RS,{activeQueryHash:C,queryCache:y,queryClient:m,errorTypes:p}):null,u?i.createElement(oS,wE({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},g,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...g.style},onClick:e=>{o(!1),null==f||f(e)}}),"Close"):null))}),RS=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:r})=>{var o,a;const s=CS(e,()=>e.getAll().find(e=>e.queryHash===t)),c=CS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),u=null!=(o=CS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,l=null!=(a=CS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?a:0,d=p(()=>{if(s&&null!=c&&c.error){const e=r.find(e=>{var t;return e.initializer(s).toString()===(null==(t=c.error)?void 0:t.toString())});return null==e?void 0:e.name}},[s,null==c?void 0:c.error,r]);if(!s||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),r=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:r}})};return i.createElement(rS,null,i.createElement("div",{style:{padding:".5em",background:Mx.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(sS,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Vx(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Hx({queryState:c,isStale:u,observerCount:l,theme:Mx}),flexShrink:0}},Wx(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(sS,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(sS,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:Mx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(oS,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(AS)},disabled:"fetching"===c.fetchStatus,style:{background:Mx.active}},"Refetch")," ",i.createElement(oS,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Mx.warning,color:Mx.inputTextColor}},"Invalidate")," ",i.createElement(oS,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Mx.gray}},"Reset")," ",i.createElement(oS,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Mx.danger}},"Remove")," ",i.createElement(oS,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Mx.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===r.length||"error"===s.state.status?i.createElement(oS,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:Mx.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(uS,{value:null!=d?d:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=r.find(t=>t.name===e.target.value);h(t)}},i.createElement("option",{key:"",value:""}),r.map(e=>i.createElement("option",{key:e.name,value:e.name},e.name))))),i.createElement("div",{style:{background:Mx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(xS,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:Mx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(xS,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},TS=({queryCache:e})=>{const t=CS(e,()=>e.getAll().filter(e=>"fresh"===Wx(e)).length),n=CS(e,()=>e.getAll().filter(e=>"fetching"===Wx(e)).length),r=CS(e,()=>e.getAll().filter(e=>"paused"===Wx(e)).length),o=CS(e,()=>e.getAll().filter(e=>"stale"===Wx(e)).length),a=CS(e,()=>e.getAll().filter(e=>"inactive"===Wx(e)).length);return i.createElement(aS,null,i.createElement(iS,{style:{background:Mx.success,opacity:t?1:.3}},"fresh ",i.createElement(sS,null,"(",t,")"))," ",i.createElement(iS,{style:{background:Mx.active,opacity:n?1:.3}},"fetching ",i.createElement(sS,null,"(",n,")"))," ",i.createElement(iS,{style:{background:Mx.paused,opacity:r?1:.3}},"paused ",i.createElement(sS,null,"(",r,")"))," ",i.createElement(iS,{style:{background:Mx.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",i.createElement(sS,null,"(",o,")"))," ",i.createElement(iS,{style:{background:Mx.gray,opacity:a?1:.3}},"inactive ",i.createElement(sS,null,"(",a,")")))},OS=i.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var o,a,s,c;const u=null!=(o=CS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?o:"",l=CS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(a=CS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&a,p=null!=(s=CS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(c=CS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?c:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+u,onClick:()=>t(n===u?"":u),style:{display:"flex",borderBottom:"solid 1px "+Mx.grayAlt,cursor:"pointer",background:u===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Hx({queryState:l,isStale:d,observerCount:h,theme:Mx}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Mx.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(sS,{style:{padding:".5em"}},""+u)):null});function AS(){}OS.displayName="QueryRow";const PS="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:o="bottom-left",containerElement:a="aside",context:s,styleNonce:c,panelPosition:u="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,f]=UE("reactQueryDevtoolsOpen",e),[g,m]=UE("reactQueryDevtoolsHeight",Yx),[y,v]=UE("reactQueryDevtoolsWidth",Yx),[b="bottom",k]=UE("reactQueryDevtoolsPanelPosition",u),[w,_]=i.useState(!1),[E,x]=i.useState(!1),S=function(){const e=i.useRef(!1),t=i.useCallback(()=>e.current,[]);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();i.useEffect(()=>{_(null!=h&&h)},[h,w,_]),i.useEffect(()=>{const e=p.current;if(e){const t=()=>{w&&(e.style.visibility="visible")},n=()=>{w||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[w]),i.useEffect(()=>{var e;if(w&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=eS("padding",b),n=Zx(b),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:g)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach(([t,n])=>{e.style[t]=n})}}},[w,b,g,y]);const{style:C={},...I}=t,{style:R={},onClick:T,...O}=r,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:a,panelStyle:i}){const s=Xx(e),c=eS("border",s),u=Zx(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+r.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:Yx}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Yx}}}({position:b,devtoolsTheme:Mx,isOpen:w,height:g,width:y,isResizing:E,panelStyle:C});return S()?i.createElement(a,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(Fx,{theme:Mx},i.createElement(IS,wE({ref:p,context:s,styleNonce:c,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},I,{style:A,isOpen:w,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=Zx(b);x(!0);const{height:r,width:o}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=r+("bottom"===b?i-e.clientY:e.clientY-i),m(s)),f(!(s<70))},u=()=>{E&&x(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:l}))),w?null:i.createElement("button",wE({type:"button"},O,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===o?{top:"0",right:"0"}:"top-left"===o?{top:"0",left:"0"}:"bottom-right"===o?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),i.createElement(SS,{"aria-hidden":!0}),i.createElement(lS,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var jS,DS={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function LS(e){var o=this,a=e.children,i=process.env.ENVIRONMENT,s=p(function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"},[i]),l=c(!1),h=l[0],f=l[1],g=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),c=i?JSON.parse(i).value:"",[4,Dh.refreshInstance({headers:t(t({},o),{"X-Environment":a||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return r.sent(),[2]}})})},[s]);u(function(){return addEventListener("ACCOUNT_CHANGED",g),function(){window.removeEventListener("ACCOUNT_CHANGED",g)}},[g]);var m=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c,u,l;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),c=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,Dh.refreshInstance({headers:t(t({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:r.sent(),Mg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),f(!0),r.label=2;case 2:return[2]}})})},[s,f]);return u(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?m(n):"token"===t.key&&m(e)}}),m(e)},[f,m]),h?React.createElement(Uf,{client:Mg},a,React.createElement(PS,{initialIsOpen:!1})):React.createElement("div",{style:DS})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(jS||(jS={}));var zS=function(){var e=l(null),t=l(null),n=l(null),r=c(!1),o=r[0],a=r[1],i=c(null),s=i[0],p=i[1],h=c(null),f=h[0],g=h[1],m=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),y=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),g(null);try{var r=new WebSocket("".concat(jh["WS_URL_".concat(jh.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=r,r.onopen=function(){a(!0);var e=localStorage.getItem("token");e&&r.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){r.readyState===WebSocket.OPEN?r.send(JSON.stringify({type:"ping"})):(m(),a(!1))},3e4)},r.onmessage=function(e){try{var t=JSON.parse(e.data);p(t)}catch(e){g("Failed to parse server response")}},r.onerror=function(e){g("Connection error occurred"),a(!1)},r.onclose=function(e){a(!1),m(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){y()},5e3))}}catch(e){g("Failed to establish connection")}},[]),v=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),b=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),k=d(function(){p(null)},[]),w=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(a(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return u(function(){return y(),function(){m(),w()}},[]),{subscribe:v,unsubscribe:b,disconnect:w,connect:y,clearChartData:k,isConnected:o,chartData:s,connectionError:f}},qS=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&qS&&function(){n(this,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:if(!Ci())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Ei.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{Hd as AI,Oh as Api,jS as ApiErrorCodes,LS as ApiProvider,Dh as ApiSingleton,Fd as Audit,Vv as CONCIERGE_ALERTS_QUERY_KEY,Kv as CONCIERGE_ALERT_BY_ID_QUERY_KEY,Ld as Country,Ud as DataReport,Kf as DuplicateSetting,vh as FEEDBACK_ISSUE_OPTIONS,Dd as Organization,Wd as OrganizationConfig,jd as PaymentFiltersSection,eb as PendingDuplicateAccountStatus,Bd as ReconciliationAgendaInsight,Md as ReconciliationReportType,zd as ReportType,Pd as SendPaymentNotification,Nd as SmartRouting,qd as TemplateType,pk as getQueryKeyGetNameAndIcon,yk as getQueryKeyPaymentMethodAccounts,fk as getQueryKeyRequiredFields,Ug as queryCache,Mg as queryClient,sk as use3DSExemptions,hv as useAICreateWorkflow,Pg as useAccountCode,Ng as useAddToRiskList,Zw as useAllFeatureFlags,I_ as useAllowListDetail,C_ as useBlackListDetail,Wv as useBlockOnboarding,Lv as useBulkCreateInstallmentsPlans,zv as useBulkDeleteInstallmentsPlans,ng as useBulkDisableAccounts,rg as useBulkEnableAccounts,tm as useBulkToggleMethod,Xw as useCachedFeatureFlag,Gg as useCancelReport,Tm as useCancelSubscription,yg as useChangePasswordV2,gy as useChangePaymentsWebhook,ly as useChangeStatusBlackList,dy as useChangeStatusItemBlackList,wk as useChangeStylingSettings,Sv as useChangeTemplateStatus,zg as useChargebacksUpload,zS as useChartAssistantSocket,q_ as useChartExecute,Ev as useCloneTemplate,Km as useCommunicationDetails,Gm as useCommunications,J_ as useCommunicationsByDay,Z_ as useCommunicationsBySubstatus,Vm as useCommunicationsFilters,X_ as useCommunicationsSubstatusByDay,Zm as useConfirmedOtpMfa,Wg as useCountRowsForReport,vv as useCreateAndExecuteChart,kv as useCreateAndExecuteChartWithTimezone,gv as useCreateChart,bv as useCreateChartWithTimezone,Yv as useCreateConciergeAlert,Pv as useCreateInstallmentsPlan,dm as useCreateMonitorTemplate,lm as useCreateMonitorThreshold,Fv as useCreateOnboarding,Lg as useCreateOperationTransaction,vm as useCreateOrgRole,_m as useCreatePaymentLinks,Uv as useCreateRecipient,qv as useCreateRecipientExport,iv as useCreateReconciliationAlert,ov as useCreateReconciliationReportTemplate,Bg as useCreateReconciliationsReportV2,Fg as useCreateReconciliationsReportV3,Vg as useCreateReportTemplate,Hg as useCreateReportV2,gm as useCreateRoles,lv as useCreateSamlConfig,Iv as useCreateSchedule,Ty as useCreateScheduledReport,Cm as useCreateSubscription,_v as useCreateTemplate,Cg as useCreateUserAuth0,Qg as useCreateWorkflow,ag as useDeleteAccountsUserMassive,vy as useDeleteAllowlistItem,hy as useDeleteBlackListType,my as useDeleteBlockListItem,mv as useDeleteChart,Jv as useDeleteConciergeAlert,By as useDeleteCustomizedApiKeys,Dv as useDeleteInstallmentsPlan,km as useDeleteOrgRole,Em as useDeletePaymentLink,Bv as useDeleteRecipient,sv as useDeleteReconciliationAlert,$g as useDeleteReportTemplate,ym as useDeleteRoles,pv as useDeleteSamlConfig,Tv as useDeleteSchedule,Ay as useDeleteScheduledReport,Cv as useDeleteTemplate,hm as useDeleteUserTeamV2,Zg as useDeleteVersion,Qf as useDeleteWebhookV2,Rv as useDisableSchedule,Nv as useDownloadRecipientExport,Zf as useDuplicateAccount,Xg as useDuplicateVersion,bm as useEditOrgRole,xm as useEditPaymentLinks,mm as useEditRoles,Mm as useEmailVerification,Zv as useEnableConciergeAlert,Iy as useExcludeUsers,ev as useExportApiLogs,nv as useExportDashboardLogs,rv as useExportMonitorsLogs,tv as useExportWebhooksLogs,Jw as useFeatureFlags,Hk as useFetchUserExportDetail,w_ as useFirebaseUserSubscribe,fv as useGenerateFeedback,Fb as useGetAccounts,Wb as useGetAccountsByOrganization,Gb as useGetAccountsByUser,Vb as useGetAccountsForImpersonation,Hb as useGetAccountsV2,A_ as useGetAllConfigRules,Pb as useGetAllOrganizations,Sw as useGetAllReconciliationsAdvancements,_w as useGetAllReconciliationsAgenda,ww as useGetAllReconciliationsAlerts,Cw as useGetAllReconciliationsFees,xw as useGetAllReconciliationsSales,yw as useGetAllTableColumns,Cb as useGetAllowedIps,a_ as useGetApiLogsByTransactionCode,o_ as useGetApiLogsDetailByPaymentCode,h_ as useGetApiLogsList,d_ as useGetApiLogsStatsErrors,p_ as useGetApiLogsStatsErrorsByEndpoint,l_ as useGetApiLogsStatsRequests,mE as useGetApiLogsV3,f_ as useGetApiLogsV3ByPaymentCode,e_ as useGetAuditEvents,s_ as useGetAuditExportDownload,i_ as useGetAuditExportsList,t_ as useGetAuditMonitorEventDetail,Ey as useGetBatchRefundProcessedFileDownload,xy as useGetBatchRefundUserFileDownload,T_ as useGetBatchRefunds,E_ as useGetBlackList,S_ as useGetBlockListSummary,cb as useGetCardBrands,B_ as useGetChartFeedback,N_ as useGetChartsByUser,U_ as useGetChartsByUserWithResults,dk as useGetCheckouts,Qv as useGetConciergeAlertById,$v as useGetConciergeAlerts,Py as useGetConditionalConfigRules,__ as useGetConfigAllowlist,Nb as useGetConnections,zb as useGetConnectionsByPaymentMethod,y_ as useGetCountriesConfigPaymentLink,v_ as useGetCountriesConfigPaymentLinkV2,mk as useGetCountryData,xb as useGetCredentials,Wy as useGetCredentialsMFA,Rb as useGetCustomizedApiKeys,Ib as useGetCustomizedApiKeysAccounts,Sb as useGetCustomizedApiKeysMembers,Tb as useGetCustomizedApiKeysProducts,Ny as useGetCustomizedApiKeysToken,Ok as useGetDownloadReport,Jm as useGetEmailOtp,qb as useGetHashPylon,kE as useGetHiddenFields,Hm as useGetImpersonationEnabled,Fm as useGetImpersonationUsers,Jk as useGetInsightsReport,Zk as useGetInsightsReportAgain,fE as useGetInstallmentsPlans,Lb as useGetIntegrationByAccountV2,Db as useGetIntegrationParams,F_ as useGetLanguages,Bm as useGetLoginMethods,j_ as useGetMFAConfig,P_ as useGetMFAExcludedUsers,D_ as useGetMFAStatus,xk as useGetMergedNotifications,hk as useGetNameAndIcon,W_ as useGetNetworkTokensOnboardingByOrganization,_k as useGetNotificationsCustomer,Sk as useGetNotificationsNumberMutation,lE as useGetOnboardingDetail,sE as useGetOnboardingStatus,dE as useGetOnboardingTimeline,Mk as useGetOrgPermissionsCatalog,Uk as useGetOrgRolesPermissions,Ab as useGetOrganization,iE as useGetOrganizationConfigs,Vy as useGetOrganizationKeysMetadata,ub as useGetPaymentFilters,m_ as useGetPaymentLinkByCode,g_ as useGetPaymentLinks,vk as useGetPaymentMethodAccounts,sb as useGetPaymentMethodsAndProviders,lb as useGetPaymentMetricsFilters,db as useGetPaymentTransactionsDetails,rb as useGetPaymentV2,ib as useGetPaymentsMethodsByCountry,gb as useGetPayoutDetail,yb as useGetPayoutHistoryDetail,Eb as useGetPayoutTimeline,mb as useGetPayoutTransactionDetail,$b as useGetPendingDuplicateAccounts,Um as useGetPermissions,Nk as useGetPermissionsCatalog,qm as useGetProfile,vb as useGetProofOfCancel,bb as useGetProofOfPayment,jb as useGetProviderParams,uE as useGetRecipientById,hE as useGetRecipientExportDownload,pE as useGetRecipientExports,cE as useGetRecipients,vw as useGetReconciliationActive,Ew as useGetReconciliationAgendaInsightsByKey,mw as useGetReconciliationFilters,Pw as useGetReconciliationInsightsAmountConflictAggregators,jw as useGetReconciliationInsightsAmountConflictList,Kw as useGetReconciliationInsightsAmountToBeSettledSummary,Lw as useGetReconciliationInsightsConflictDateAggregators,zw as useGetReconciliationInsightsConflictDateList,Dw as useGetReconciliationInsightsConflictDateSummary,Iw as useGetReconciliationInsightsConflictsSummary,Mw as useGetReconciliationInsightsFeesChargedSummary,Nw as useGetReconciliationInsightsIncorrectFeesAggregators,Uw as useGetReconciliationInsightsIncorrectFeesList,qw as useGetReconciliationInsightsIncorrectFeesSummary,Gw as useGetReconciliationInsightsNotConfirmAggregators,Vw as useGetReconciliationInsightsNotConfirmList,Ww as useGetReconciliationInsightsNotConfirmSummary,Rw as useGetReconciliationInsightsNotReconciledAggregators,Tw as useGetReconciliationInsightsNotReconciledList,Fw as useGetReconciliationInsightsReconciledAggregators,Hw as useGetReconciliationInsightsReconciledList,Bw as useGetReconciliationInsightsReconciledSummary,Qw as useGetReconciliationInsightsReconciliationRateByAccount,Yw as useGetReconciliationInsightsReconciliationRateByCurrency,$w as useGetReconciliationInsightsReconciliationRateByProvider,Ow as useGetReconciliationInsightsStatusConflictAggregators,Aw as useGetReconciliationInsightsStatusConflictList,gw as useGetReconciliationMetrics,hw as useGetReconciliationTransactions,bw as useGetReconciliationsReportColumns,kw as useGetReconciliationsReportTemplates,jk as useGetRefundPdf,Pk as useGetReportColumns,Ak as useGetReportTemplates,Rk as useGetReportsList,Tk as useGetReportsListMultiEnv,gk as useGetRequiredFields,zk as useGetRoles,Kb as useGetRolesForImpersonation,qk as useGetRolesPermissions,lk as useGetRoutingMonitorsTemplate,uk as useGetRoutingMonitorsTemplates,jy as useGetRule,z_ as useGetSamlConfig,Ry as useGetScheduledReportsList,fw as useGetSettlements,Zb as useGetSmartRoutingConditionPaymentMethod,Jb as useGetSmartRoutingConditionTypes,Xb as useGetSmartRoutingConditionTypesValues,Wk as useGetSmartRoutingDataReport,nk as useGetSmartRoutingDeclineGroups,Qb as useGetSmartRoutingMethods,tk as useGetSmartRoutingNextRoute,rk as useGetSmartRoutingPaymentRoute,ak as useGetSmartRoutingSearchConditionValues,ok as useGetSmartRoutingSimulateConditionTypeValues,Yb as useGetSmartRoutingWorkflow,ek as useGetSmartRoutingWorkflowVersion,bk as useGetStylingSdkDynamic,kk as useGetStylingSettingsV2,b_ as useGetSubscriptionByCode,k_ as useGetSubscriptionPayments,Dk as useGetTeamsFiltersMembers,Ym as useGetTokenValidation,ob as useGetTransactionDetailsV2,pb as useGetTransactionHistoryByPaymentCode,ab as useGetTransactionRawResponse,H_ as useGetTranslations,c_ as useGetUnifiedExportStatus,u_ as useGetUnifiedExportsList,Bk as useGetUserExportStatus,Nm as useGetUserFull,Wm as useGetUsersToImpersonate,Ek as useGetValidateOpsgenieKey,Ub as useGetWebhookParamsV2,yE as useGetWebhookTimeline,Bb as useGetWebhooksV2Detail,Mb as useGetWebhooksV3,L_ as useGetWorkOsMfaStatus,nw as useInsights3dsConversionRateAndEvolution,rw as useInsights3dsDeclineReasons,ow as useInsights3dsFrictionlessVsChallenge,tw as useInsights3dsVolumeAndCountTx,pw as useInsightsChargebacksByCardBrand,uw as useInsightsChargebacksByProviderAndCardBrand,cw as useInsightsChargebacksDisputed,lw as useInsightsChargebacksReasonsDistribution,dw as useInsightsChargebacksStatusDistribution,iw as useInsightsChargebacksTotalRateAndEvolution,aw as useInsightsChargebacksVolumeAndCountTx,sw as useInsightsChargebacksWinRate,Gk as useInsightsConversionRateMetricsV2,Kk as useInsightsFallbackMetrics,ew as useInsightsFraudScreeningConversionRate,Xk as useInsightsFraudScreeningVolumeAndCountTx,Yk as useInsightsHomeMetrics,Qk as useInsightsOverviewMetricsV3,$k as useInsightsVolumeMetricsV2,Eg as useInviteUsersMultiaccountMassive,xg as useInviteUsersMultiaccountMassiveV2,Tg as useIsTesting,Pm as useListSubscriptions,Fk as useListUserExports,Og as useLocalStorage,Rg as useLoginMethods,ck as useNetworkTokensOnboarding,lg as useNewPostConnectionValidate,Ag as useOrganizationCode,eg as usePatchAccountV2,iy as usePatchAddAllowlistItems,Ob as usePatchAllowedIps,sy as usePatchAllowlist,M_ as usePatchAndExecuteChart,Fy as usePatchApiKeysEditNote,oy as usePatchChangeStatusAllowlist,ay as usePatchChangeStatusAllowlistItem,yv as usePatchChartName,dg as usePatchConnection,Ky as usePatchOrganizationKeysNote,qy as usePathCreateCustomizedApiKeys,Ck as usePathNotifications,Im as usePauseSubscription,_b as usePayoutsFilters,wb as usePayoutsList,Jf as usePostAccount,R_ as usePostAllowlistMultiAccount,Hy as usePostApiKeysRoll,n_ as usePostApiLogs,Jy as usePostAuditMonitors,_y as usePostBatchRefundByFile,fy as usePostBlackListBatch,py as usePostBlackListItems,cy as usePostBlackListMultiAccount,x_ as usePostBlockList,Ig as usePostCall,sg as usePostChangeStatusConnection,ug as usePostConnectionMultiAccount,ry as usePostCreateAllowlistMultiAccount,zy as usePostCreateCustomizedApiKeys,uv as usePostCreateInsightsReport,Dy as usePostCreateRuleMultiAccount,Uy as usePostCredentialsValidatePassword,My as usePostCredentialsValidatePasswordRegularUser,Gy as usePostCredentialsWithOtpMfa,pg as usePostDefaultRoutes,Ly as usePostEditRule,fb as usePostFraudTransactions,ty as usePostGetAllowlistItems,ny as usePostGetAllowlistMultiAccount,Lk as usePostMembersPaginatedV2,fg as usePostNetworkTokensOnboarding,Ov as usePostOrganizationConfigs,Yy as usePostOrganizationKeysMarkRevealed,$y as usePostOrganizationKeysRoll,Qy as usePostOrganizationKeysTamRequest,nb as usePostPaymentsEvaluated,tb as usePostPaymentsLazy,Xv as usePostPlaygroundExecuteFlow,pm as usePostSlackFeatureNotification,hb as usePostTransactions,jm as usePostUserSettings,zm as usePostUserSettingsPinned,Lm as usePostUserSettingsTables,Dm as usePostUserThemeSettings,ig as usePostValideStatusConnection,O_ as usePostVelocityRules,r_ as usePostWebhookLogs,$f as usePostWebhookMultiAccount,ik as useProviderConversionRatesData,qg as useProviderRawResponse,Dg as usePublishCheckout,Yg as usePublishVersion,tg as usePutAccountPrincipal,og as usePutAccountsUserMassive,uy as usePutBlackListType,cg as usePutCosts,Av as usePutOrganizationConfigsByAccount,tE as useRecoveredPaymentsByDay,eE as useRecoveredTPVByDay,Am as useRescheduleSubscription,Zy as useResendWebhooks,Rm as useResumeSubscription,Xf as useRetryDuplicateAccount,Jg as useSaveVersion,gE as useSearchInstallmentsPlans,aE as useSearchScheduleById,oE as useSearchSchedules,rE as useSearchTemplateById,nE as useSearchTemplates,kb as useSendPaymentNotification,fm as useSetCustodian,rm as useSmartRoutingCreateDeclinedGroup,am as useSmartRoutingEditWorkflowName,um as useSmartRoutingMultiAccountDeclinedGroupCreate,cm as useSmartRoutingRemoveDeclinedGroup,im as useSmartRoutingSimulateTransaction,om as useSmartRoutingToggleFavorite,nm as useSmartRoutingUpdateDeclinedGroup,sm as useSmartRoutingUpdateMonitorRedistribution,wm as useStartUserExport,wv as useSubmitChartFeedback,Qm as useTableOnboarding,em as useToggleMethod,Sg as useUnInviteUsersV2,Gv as useUnblockOnboarding,Xy as useUnifiedExportStart,Xm as useUnrollUserV2,jv as useUpdateInstallmentsPlan,jg as useUpdateIsActiveCheckout,Cy as useUpdateMFAConfig,Hv as useUpdateOnboarding,gg as useUpdateOrganizationStatus,_g as useUpdateProfile,Mv as useUpdateRecipient,cv as useUpdateReconciliationAlert,av as useUpdateReconciliationReportTemplate,Kg as useUpdateReportTemplate,dv as useUpdateSamlConfig,Oy as useUpdateScheduledReport,Om as useUpdateSubscription,xv as useUpdateTemplateSelection,Yf as useUpdateWebhookV2,ky as useUploadBatchRefundsFileV2,wy as useUploadBatchRefundsV2,Sy as useUploadFileS3ClientBatchRefunds,Sm as useUploadPaymentLinkLogo,by as useValiateAllowlistItems,yy as useValidateBlockListItems,hg as useValidateCredentials,mg as useValidateOrgName,ey as useValidatePasswordStatus,Vk as useViewMoreMetrics,bg as useWorkosAdminPortal,vE as useWorkosDomainStatus,kg as useWorkosDomainVerificationPortal,vg as useWorkosPasswordReset,bE as useWorkosSsoConfigStatus,wg as useWorkosVerifyMfa};
68
68
  //# sourceMappingURL=index.js.map