@yuno-payments/dashboard-api-mfe 0.36.57-beta.1 → 0.36.57-beta.3

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.
@@ -55,7 +55,7 @@ function ai(e){const t=ni.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
55
55
  *
56
56
  * This source code is licensed under the MIT license found in the
57
57
  * LICENSE file in the root directory of this source tree.
58
- */"production"===process.env.NODE_ENV?vg.exports=function(){if(yg)return bg;yg=1;var e=k,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,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!t(e,a)}catch(e){return!0}}var s="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,r(u)&&l({inst:u})},[e,s,t]),a(function(){return r(u)&&l({inst:u}),e(function(){r(u)&&l({inst:u})})},[e]),i(s),s};return bg.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,bg}():vg.exports=(xg||(xg=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}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=k,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useState,o=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!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 p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=a({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i(function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})},[u,p,l]),o(function(){return e(m)&&h({inst:m}),u(function(){e(m)&&h({inst:m})})},[u]),r(p),p};kg.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),kg);var wg=vg.exports;const _g=wg.useSyncExternalStore,Eg=x.createContext(void 0),Cg=x.createContext(!1);function Sg(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Eg),window.ReactQueryClientContext):Eg)}const Rg=({context:e}={})=>{const t=x.useContext(Sg(e,x.useContext(Cg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tg=({client:e,children:t,context:n,contextSharing:a=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&a&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=Sg(n,a);return x.createElement(Cg.Provider,{value:!n&&a},x.createElement(o.Provider,{value:e},t))},jg=x.createContext(!1);jg.Provider;const Ag=x.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Ig(e,t){return"function"==typeof e?e(...t):!!e}function Og(e,t){const n=Rg({context:e.context}),a=x.useContext(jg),o=x.useContext(Ag),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",i.onError&&(i.onError=ng.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ng.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ng.batchCalls(i.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{x.useEffect(()=>{e.clearReset()},[e])})(o);const[r]=x.useState(()=>new t(n,i)),s=r.getOptimisticResult(i);if(_g(x.useCallback(e=>{const t=a?()=>{}:r.subscribe(ng.batchCalls(e));return r.updateResult(),t},[r,a]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),x.useEffect(()=>{r.setOptions(i,{listeners:!1})},[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,a))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)}))(i,r,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:a})=>e.isError&&!t.isReset()&&!e.isFetching&&Ig(n,[e.error,a]))({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Pg(e,t,n){return Og(Af(e,t,n),pg)}function Lg(e,t,n){const a=function(e,t,n){return Hf(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Rg({context:a.context}),[i]=x.useState(()=>new gg(o,a));x.useEffect(()=>{i.setOptions(a)},[i,a]);const r=_g(x.useCallback(e=>i.subscribe(ng.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=x.useCallback((e,t)=>{i.mutate(e,t).catch(zg)},[i]);if(r.error&&Ig(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function zg(){}function Dg(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function qg(e){return Lg(function(e){var t=e.code,n=e.accountCode;return Ef.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ng(e){return Lg(function(e){var t=e.code,n=e.payload,a=e.accountCode;return Ef.getInstance().updateWebhookV2(t,n,a)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Mg(){return Lg(function(e){var t=e.name,n=e.principal;return Ef.getInstance().postAccount(t,n)})}function Fg(){return Lg(function(e){var t=e.name,n=e.code,a=e.principal;return Ef.getInstance().patchAccountV2({name:t,code:n,principal:a})})}function Ug(){return Lg(function(e){var t=e.account_code;return Ef.getInstance().putAccountPrincipal({account_code:t})})}function Bg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().putAccountsUserMassive(t,n,a)})}function Hg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().deleteAccountsUserMassive(t,n,a)})}function Wg(){return Lg(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Gg(){return Lg(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Vg(){return Lg(function(e){return Ef.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function $g(){return Lg(["post-connection"],function(e){var t=e.payload;return Ef.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Kg(){return Lg(["new-post-connection-validate"],function(){return Ef.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Qg(){return Lg(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Ef.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function Jg(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Xg(){return Lg(function(e){return Ef.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Yg(){return Lg(["patch-organizations"],function(){return Ef.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function Zg(){return Lg(function(e){return Ef.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function ey(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().changePasswordV2(a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ty(e){return Lg(function(e){return Ef.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ny(){return Lg(function(e){return Ef.getInstance().inviteUsersMassive(e,e.organizationCode)})}function ay(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function oy(){return Lg(function(e){return Ef.getInstance().createUserAuth0(e)})}function iy(){return Lg(function(e){return Ef.getInstance().postCall(e)})}function ry(){return Lg(function(e){return Ef.getInstance().changeLoginMethods(e)})}function sy(e){return Lg(function(e){return Ef.getInstance().updateIsActiveCheckout(e)},e)}function cy(){return Lg(function(e){var t=e.accountCode,n=e.template;return Ef.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then(function(e){return null==e?void 0:e.data})})}function uy(){return Lg(function(e){var t=e.accountCode,n=e.theme;return Ef.getInstance().updateStylingTheme({accountCode:t,theme:n}).then(function(e){return null==e?void 0:e.data})})}function ly(){return Lg(function(e){var t=e.payload,n=e.transactionId,a=e.paymentId,o=e.action;return Ef.getInstance().createOperationTransaction(t,n,a,o)})}function py(){return Lg(function(e){var t=e.payload,n=e.paymentId,a=e.transactionId,o=e.handleSetProgress;return Ef.getInstance().uploadChargebacks(t,n,a,o)})}var dy=new ig({}),my=new class{constructor(e={}){this.queryCache=e.queryCache||new ig,this.mutationCache=e.mutationCache||new cg,this.logger=e.logger||tg,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=$f.subscribe(()=>{$f.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Qf.subscribe(()=>{Qf.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]=If(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 a=Af(e,t,n),o=this.getQueryData(a.queryKey);return o?Promise.resolve(o):this.fetchQuery(a)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const a=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==a?void 0:a.state.data);if(void 0===o)return;const i=Af(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ng.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]=If(e,t),a=this.queryCache;ng.batch(()=>{a.findAll(n).forEach(e=>{a.remove(e)})})}resetQueries(e,t,n){const[a,o]=If(e,t,n),i=this.queryCache,r={type:"active",...a};return ng.batch(()=>(i.findAll(a).forEach(e=>{e.reset()}),this.refetchQueries(r,o)))}cancelQueries(e,t,n){const[a,o={}]=If(e,t,n);void 0===o.revert&&(o.revert=!0);const i=ng.batch(()=>this.queryCache.findAll(a).map(e=>e.cancel(o)));return Promise.all(i).then(Rf).catch(Rf)}invalidateQueries(e,t,n){const[a,o]=If(e,t,n);return ng.batch(()=>{var e,t;if(this.queryCache.findAll(a).forEach(e=>{e.invalidate()}),"none"===a.refetchType)return Promise.resolve();const n={...a,type:null!=(e=null!=(t=a.refetchType)?t:a.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[a,o]=If(e,t,n),i=ng.batch(()=>this.queryCache.findAll(a).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:a.refetchPage}})}));let r=Promise.all(i).then(Rf);return null!=o&&o.throwOnError||(r=r.catch(Rf)),r}fetchQuery(e,t,n){const a=Af(e,t,n),o=this.defaultQueryOptions(a);void 0===o.retry&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Rf).catch(Rf)}fetchInfiniteQuery(e,t,n){const a=Af(e,t,n);return a.behavior=ug(),this.fetchQuery(a)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Rf).catch(Rf)}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=>zf(e)===zf(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Df(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Df(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=>zf(e)===zf(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Df(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Df(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=Lf(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:dy});function hy(){return Lg(function(e){return Ef.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fy(){return Lg(function(e){return Ef.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function gy(){return Lg(function(e){return Ef.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yy(){return Lg(function(e){return Ef.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function vy(a){var o=this;return Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=my.getQueryData(["GET/reports/templates"]),my.setQueryData(["GET/reports/templates"],function(t){return e(e([],t,!0),[a],!1)}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function by(e){return Lg(function(){return Ef.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function xy(e,a,o){var i=this;return void 0===o&&(o=null),Lg(function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().postSmartRoutingCreateWorkflow(e,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,t.sent()]}})})},o)}function ky(e,a){var o=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===a&&(a=null),Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().postSmartRoutingPublishVersion(r,i,s).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},a)}function wy(e,t){var n=e.data,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflow(a,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function _y(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().deleteSmartRoutingVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Ey(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().postSmartRoutingDuplicateVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Cy(e,t){var n=e.paymentMethod,a=e.active,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingToggleMethod(o,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Sy(e,t){var n=e.declinedId,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().updateSmartRoutingDeclinedGroup(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Ry(e){var t=e.accountCode;return Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function Ty(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=!1),Ef.getInstance().updateSmartRoutingFavorite(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function jy(e,t){var n=e.code,a=e.name,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:a}).then(function(e){return null==e?void 0:e.data})},t)}function Ay(e,t){var n=e.accountCode,a=e.workflowVersionCode;return void 0===t&&(t=null),Lg(function(e){return Ef.getInstance().simulateSmartRoutingTransaction(n,a,e).then(function(e){return null==e?void 0:e.data})},t)}function Iy(e,t){return void 0===t&&(t=null),Lg(function(t){return Ef.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function Oy(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.declinedGroupCode;return Ef.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}function Py(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.payload;return Ef.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}var Ly=function(e){return Lg(function(t){return Ef.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},zy=function(e){return Lg(function(t){return Ef.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function Dy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function qy(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function Ny(){return Lg(function(){return Ef.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function My(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Fy(){var e=this;return Lg(function(a){var o=a.payload,i=a.id,r=a.accountCode;return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().editRoles({payload:o,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Uy(){return Lg(function(e){return Ef.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function By(){return Lg(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Hy(){return Lg(["post-delete-payment-link"],function(e){var t=e.code;return Ef.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Wy(){return Lg(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return Ef.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:a}).then(function(e){return null==e?void 0:e.data})})}function Gy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Vy(){return Lg(function(e){return Ef.getInstance().postUserThemeSettings(e)})}function $y(){return Lg(function(e){var t=e.payload,n=e.section;return Ef.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var t=my.getQueryData(["fetch-profile"]);e.data&&my.setQueryData(["fetch-profile"],o(o({},t),{settings:e.data}))}})}function Ky(e){return Lg(["pinned-sections"],function(e){var t=e.payload;return Ef.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Qy(){return Lg(function(e){var t=e.password,n=e.otp;return Ef.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Jy(){return Lg(function(){return Ef.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Xy(){return Lg(function(e){return Ef.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function Yy(){return Lg(function(e){return Ef.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function Zy(){return Lg(function(){return Ef.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function ev(){return Lg(["post-get-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function tv(){return Lg(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function nv(){return Lg(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function av(){return Lg(["patch-change-status-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ov(){return Lg(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function iv(){return Lg(["post-add-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function rv(){return Lg(["patch-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sv(){return Lg(["post-blacklist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cv(){return Lg(["put-blacklist"],function(e){return Ef.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function uv(){return Lg(["change-blacklist"],function(e){return Ef.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function lv(){return Lg(["change-blacklist-item"],function(e){return Ef.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function pv(){return Lg(["post-blacklist-items"],function(e){var t=e.payload;return Ef.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function dv(){return Lg(["delete-blacklist"],function(e){var t=e.black_list_code;return Ef.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function mv(e){var t=e.handleSetProgress;return Lg(["post-blacklist-batch"],function(e){var n=e.blacklist_code,a=e.expiration_days,o=e.file;return Ef.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:a,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hv(){return Lg(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Ef.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fv(){return Lg(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return Ef.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gv(){return Lg(["valiate-blacklist-items"],function(e){return Ef.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yv(){return Lg(["delete-allowlist-item"],function(e){return Ef.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function vv(){return Lg(["validate-allowlist-items"],function(e){return Ef.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function bv(e){var t=e.fileName,n=e.onSuccess,a=e.onError,o=w(0),i=o[0],r=o[1],s=_({cancel:function(){return null}}),c=Lg(["upload-file-chargeback",t],function(e){var t=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),o=t.promise,i=t.cancel;return s.current.cancel=i,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==a||a(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function xv(){return Lg(function(e){return Ef.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function kv(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().batchRefundByFile({payload:a}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function wv(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundProcessedFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function _v(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundUserFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ev(){var e=_({cancel:function(){return null}}),t=Lg(["upload-file"],function(t){var n=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),a=n.promise,o=n.cancel;return e.current.cancel=o,a.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Cv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().updateMFAConfig(t,n)})}function Sv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().mfaExcludeUsers(t,n)})}function Rv(e){return Pg(["GET/scheduled-reports",e],function(){return Ef.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 Tv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function jv(){return Lg(function(e){var t=e.reportCode,n=e.payload;return Ef.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Av(){return Lg(function(e){return Ef.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Iv(){return Lg(function(e){return Ef.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ov(){return Lg(function(e){return Ef.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Pv(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Lv(){return Lg(function(e){var t=e.payload,n=e.ruleId,a=e.accountCode;return Ef.getInstance().postEditRule(t,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function zv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Dv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function qv(){return Lg(function(e){var t=e.code,n=e.password;return Ef.getInstance().getCustomizedApiKeysToken(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Nv(){return Lg(function(e){var t=e.passwordOtp;return Ef.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Mv(){return Lg(function(e){var t=e.code;return Ef.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Fv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().patchApiKeysEditNote(t,n).then(function(e){return e.data}).catch(function(e){return e})})}function Uv(){return Lg(function(e){var t=e.payload,n=e.code,a=e.password;return Ef.getInstance().postApiKeysRoll(t,n,a).then(function(e){return e.data}).catch(function(e){return e})})}function Bv(){return Lg(function(e){var t=e.password,n=e.accountCode;return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},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}})})}function Hv(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Wv(a){var o=this;return Lg(function(){return Ef.getInstance().createReconciliationReportTemplate(a).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t,o;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(o=my.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,my.setQueryData(["GET/reconciliation/reports/templates"],function(t){return{templates:e(e([],t.templates,!0),[a],!1)}}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Gv(e){return Lg(function(){return Ef.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Vv(){return Lg(["POST/reconciliation/alerts"],function(e){return Ef.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function $v(){return Lg(["DELETE/reconciliation/alerts"],function(e){return Ef.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Kv(){return Lg(["UPDATE/reconciliation/alerts"],function(e){return Ef.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Qv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Jv(){return Lg(function(e){return Ef.getInstance().createSamlConfig(e)})}function Xv(){return Lg(function(e){return Ef.getInstance().updateSamlConfig(e)})}function Yv(){return Lg(function(){return Ef.getInstance().deleteSamlConfig()})}function Zv(e,t){return void 0===t&&(t={}),Lg(function(t){return Ef.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},o(o({},t),{useErrorBoundary:!1}))}function eb(e){return void 0===e&&(e={}),Lg(function(e){return Ef.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},o(o({},e),{useErrorBoundary:!1}))}function tb(){return Lg(function(e){return Ef.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function nb(){return Lg(function(e){return Ef.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ab(){return Lg(function(e){var t=e.chart_id,n=e.type,a=e.name,o=e.user_prompt,i=void 0===o?"":o;return Ef.getInstance().patchChartGPTChart(t,{type:n,name:a,user_prompt:i}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ob(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e,o,i,r,s,c,u,l,p,d=this;return n(this,function(m){switch(m.label){case 0:return[4,(e=Ef.getInstance()).createChartGPTChart(a)];case 1:if(o=m.sent(),!(i=null!==(l=null===(u=null==o?void 0:o.data)||void 0===u?void 0:u.chartgpt_id)&&void 0!==l?l:null===(p=null==o?void 0:o.data)||void 0===p?void 0:p.chart_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(d,void 0,void 0,function(){var a=this;return n(this,function(o){return[2,new Promise(function(o,r){var s=setInterval(function(){return t(a,void 0,void 0,function(){var t,a,c;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"ERROR"===(null==(a=null==t?void 0:t.data)?void 0:a.status)&&(clearInterval(s),o(a)),"DRAFT"===(null==a?void 0:a.status)&&(clearInterval(s),o(a)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}})})},1e4)})]})})},[4,r()];case 2:return s=m.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=m.sent(),[2,{chart:s,chartgpt_id:i,execution:null==c?void 0:c.data}]}})})},{useErrorBoundary:!1})}var ib=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),a=n[0],o=n[1];return E(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]),a}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function rb(e){var a=this;return Pg(["fetch-payments-lazy",e],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.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 sb(e){return Pg(["fetch-payments-evaluated",e],function(){return Ef.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 cb(e){var a=this,o=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:r,cacheTime:500,useErrorBoundary:!1})}function ub(e){var a=this,o=e.payment_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-details-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function lb(e){var a=this,o=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-raw-response",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function pb(e){var t=ib();return Pg(["payment-methods",e],function(){return Ef.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 db(){return Pg({queryKey:["/payment-methods/providers"],queryFn:function(){return Ef.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function mb(){return Pg(["GET/catalog/card-brands"],function(){return Ef.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function hb(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Lm.PAYMENTS),Pg(["payment-filters",e,t],function(){return Ef.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function fb(){return Pg(["payment-metrics-filters"],function(){return Ef.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function gb(e){var t=e.transaction_code,n=e.enabled;return Pg(["payment-transaction-details",t],function(){return Ef.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function yb(e){var t=e.payment_code,n=e.enabled;return Pg(["transaction-history",t],function(){return Ef.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function vb(e){var a=this;return Pg(["POST/transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function bb(e){var a=this;return Pg(["POST/fraud-transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.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 xb(e){return Pg(["GET/payout-detail",JSON.stringify(e)],function(){var t=Ef.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 kb(e){return Pg(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Ef.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 wb(e){var t=ib();return Pg(["GET/payout-history-detail",JSON.stringify(e)],function(){return Ef.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 _b(e,a){var o=this,i=ib();return Pg(["GET/useGetProofOfCancel",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfCancel(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function Eb(e,a){var o=this,i=ib();return Pg(["GET/useGetProofOfPayment",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfPayment(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function Cb(e,a,o){var i=this,r=Ef.getInstance();return Pg(["send-payment-notification",e,a],function(){return t(i,void 0,void 0,function(){var t,i;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,a)];case 1:return t=n.sent(),o.onSuccess(),[2,t.data];case 2:throw i=n.sent(),o.onError(),i;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function Sb(e){return Pg(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Ef.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 Rb(e){var a=this;void 0===e&&(e=!0);var o=ib();return Pg(["getPayoutsFilters",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function Tb(e){var t=e.password,n=e.accountCode;return Pg(["developers"],function(){return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},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 jb(){return Pg(["fetch-customized-api-keys-members"],function(){return Ef.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Ab(){return Pg(["developers-get-allowed-ips"],function(){return Ef.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Ib(){return Pg(["fetch-customized-api-keys-accounts"],function(){return Ef.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Ob(e){return Pg(["fetch-customized-api-keys",e],function(){return Ef.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 Pb(){return Pg(["fetch-customized-api-keys-products"],function(){return Ef.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Lb(){return Lg(["developers-patch-allowed-ips"],function(e){return Ef.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{cacheTime:0})}function zb(){return Pg(["fetch-organizations"],function(){return Ef.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Db(){return Pg(["fetch-all-organizations",ib()],function(){return Ef.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function qb(e){var t=ib();return Pg(["organizations-provider-params",e],function(e){var n=e.queryKey;return Ef.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 Nb(e){var t=e.integration_code,n=e.enabled,a=e.accountCode;return Pg(["integration-params",t,a],function(){return t.includes("undefined")?{}:Ef.getInstance().getIntegrationParams({accountCode:a,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Mb(e){var t=e.accountCode,n=e.organizationCode,a=ib();return Pg(["organizations-account-integrations",t,n],function(){return Ef.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||a}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Fb(e){var t=e.accountCode,n=e.paymentMethod;return Pg(["fetch-connections-by-payment-method",n,t],function(){return Ef.getInstance().getConnectionsByPaymentMethod(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Ub(){var e=this;return Pg(["fetch-hash-pylon"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Bb(){return Pg(["connections"],function(){return Ef.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Hb(){return Pg(["dialogs"],function(){return Ef.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Wb(){return Pg(["params-catalog"],function(){return Ef.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function Gb(e){var t=e.accountCode,n=e.name;return Pg(["webhooks",t,n],function(){return Ef.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function Vb(e){var t=e.accountCode,n=e.enabled;return Pg(["webhooks-detail",t],function(){return Ef.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function $b(e){var t,n=ib(),a=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pg({queryKey:["accounts",a],queryFn:function(){return Ef.getInstance().getAccounts(a).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!a})}function Kb(e){return Pg(["accountsV2",e],function(){return Ef.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Qb(e){return Pg(["accountsV2-by-user",e],function(){return e?Ef.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 Jb(){return Pg(["menu"],function(){return Ef.getInstance().getMenu().then(function(e){return sf(e)?hf:null==e?void 0:e.data}).catch(function(){return hf})})}function Xb(){return Pg(["/payment/statuses/style"],function(){return Ef.getInstance().useGetPaymentStatusesStyles().then(function(e){return sf(e)?cf:null==e?void 0:e.data}).catch(function(){return cf})})}function Yb(){return Pg(["/transaction/statuses/style"],function(){return Ef.getInstance().useGetTransactionStatusesStyles().then(function(e){return sf(e)?uf:null==e?void 0:e.data}).catch(function(){return uf})},{cacheTime:36e5,useErrorBoundary:!1})}function Zb(){return Pg(["/reconciliation/transaction/statuses/style"],function(){return Ef.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return sf(e)?lf:null==e?void 0:e.data}).catch(function(){return lf})})}function ex(){return Pg(["timezone-catalog"],function(){return Ef.getInstance().useGetTimeZoneCatalog().then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})})}function tx(){return Pg(["/cms/audit-logs-filters"],function(){return Ef.getInstance().useGetAuditLogsFilters().then(function(e){return sf(e)?df:null==e?void 0:e.data}).catch(function(){return df})})}function nx(){return Pg(["/cms/static-contents"],function(){return Ef.getInstance().getDashboardStaticContents().then(function(e){var t,n;return sf(e)?mf:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function ax(){return Pg(["/cms/locales"],function(){return Ef.getInstance().getLocales().then(function(e){return sf(e)?ff:e.data}).catch(function(){return ff})})}var ox=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return E(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}};function ix(e){return Pg(["smart-routing-methods",e],function(){return Ef.getInstance().getSmartRoutingMethods(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function rx(e,t){return Pg(["smart-routing-workflow",t,e],function(){return Ef.getInstance().getSmartRoutingWorkflow(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function sx(e,t){return Pg(["smart-routing-condition-types",e,t],function(){return Ef.getInstance().getSmartRoutingConditionTypes(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function cx(e,t){return Pg(["smart-routing-condition-payment-method",e,t],function(){return Ef.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 ux(e,t){return Pg(["smart-routing-condition-types-values",t,e],function(){return Ef.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function lx(e){var t=e.accountCode,n=e.workflowVersionId;return Pg(["smart-routing-workflow-version",n,t],function(){return Ef.getInstance().getSmartRoutingWorkflowVersion(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function px(e,t,n){return Pg(["smart-routing-next-route",e,n,t],function(){return Ef.getInstance().getSmartRoutingNextSteps(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function dx(e){return Pg(["smart-routing-decline-groups",e],function(){return Ef.getInstance().getSmartRoutingDeclinedGroup(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function mx(e,t){return Pg(["smart-routing-payment-route",e,t],function(){return Ef.getInstance().getSmartRoutingPaymentRoute(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!t,cacheTime:0})}function hx(e){return Pg(["smart-routing-simulate-condition-type-values",e],function(){return Ef.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function fx(e){var t=e.text,n=e.conditionType;return Pg(["smart-routing-search-condition-values",t,n],function(){return Ef.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 gx(){return Pg(["smart-routing-conversion-rates"],function(){return Ef.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function yx(){var e=this;return Pg({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function vx(){var e=this;return Pg({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function bx(e){return Pg(["fetch-routing-monitors-templates",e],function(){return Ef.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function xx(e,t){return Pg(["fetch-routing-monitors-template",e],function(){return Ef.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 kx(e){var t=e.accountCode;return Pg(["checkouts",t],function(){return Ef.getInstance().getCheckouts({accountCode:t}).then(function(e){return e.data})},{cacheTime:0,enabled:Boolean(t)})}function wx(e){var t=e.accountCode;return Pg(["checkouts-template"],function(){return Ef.getInstance().getCheckoutTemplate({accountCode:t}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(t)})}var _x=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Ex=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(_x({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getNameAndIcon({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)},Cx=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Sx=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(Cx({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getRequiredFields({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)};function Rx(e){var t=e.accountCode;return Pg(["styling-sdk-dynamic",t],function(){return Ef.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 Tx(e){var t=e.accountCode;return Pg(["styling-theme",t],function(){return Ef.getInstance().getStylingTheme({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 jx(e){var t=e.accountCode;return Pg(["styling-settings",t],function(){return Ef.getInstance().getStylingSettings({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 Ax(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n;return Pg(["styling-settings-v2",t],function(){return Ef.getInstance().getStylingSettingsV2({accountCode:t,environment:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Ix(){return Lg(function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload;return Ef.getInstance().changeStylingSettings({accountCode:t,environment:a,payload:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Ox(){return Pg(["fetch-profile"],function(){return Ef.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 Px(e,t){return Pg(["fetch-permissions",e,t],function(){var e,t,n,a=localStorage.getItem("account"),o=localStorage.getItem("user"),i=a&&JSON.parse(a),r=o&&JSON.parse(o);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.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 Lx(e){return Pg(["email-verification",e],function(){return Ef.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function zx(){return Pg({queryKey:["get-login-methods"],queryFn:function(){return Ef.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Dx(){return Pg(["fetch-impersonation-users"],function(){return Ef.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 qx(){return Pg(["fetch-impersonation-enabled"],function(){return Ef.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Nx(e){var a=this;return Pg(["get-users-to-impersonate",e],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getUsersToImpersonate(e).then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.users)||[]})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Mx(e){var t;return Pg(["fetch-communications",e],function(){return Ef.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 Fx(){return Pg(["fetch-communications-filters"],function(){return Ef.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Ux(e,t){return Pg(["fetch-communication-details",e],function(){return Ef.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Bx(e){return Pg(["notifications-customer",e],function(){return Ef.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function Hx(e){return Pg(["validate-opsgenie-key",e],function(){return Ef.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function Wx(){return Pg(["notifications-merged"],function(){return Ef.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function Gx(){return Lg(function(e){return Ef.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Vx(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().pathNotification(a)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})})}var $x={key:"metadata_fields",name:"metadata_fields"};function Kx(){return Pg(["reports"],function(){return Ef.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Qx(e){return void 0===e&&(e=!0),Pg(["reports-multi-env"],function(){return Ef.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function Jx(e,t,n){return void 0===t&&(t=!1),Pg(["reports/".concat(e)],function(){return Ef.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Xx(e){return Pg(["GET/reports/templates"],function(){return Ef.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function Yx(a,o,i){var r=this;return Pg(["GET/reports/columns/".concat(o,"/").concat(i)],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportColumns(o,i).then(function(t){return o===Mm.ALL&&i===Nm.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[$x],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:a,useErrorBoundary:!1})}function Zx(e,a){var o=this,i=ib();return Pg(["getRefundPdf",e,i,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getRefundPdf(e,i,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!i,useErrorBoundary:!1})}function ek(){var e=ib();return Pg(["teams-filters-members"],function(){return Ef.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function tk(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r=ib();return Pg(["fetch-post-members-v2",t,n,a,o,i],function(){return Ef.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:a,page:o,pageSize:i}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function nk(){return Pg(["fetch-roles"],function(){return Ef.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ak(){return Pg(["fetch-rolespermissions"],function(){return Ef.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function ok(){return Pg(["fetch-permissions-catalog"],function(){return Ef.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function ik(e){return Pg(["data-report",e],function(){return Ef.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function rk(e,t,n){return void 0===n&&(n=!0),Pg(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Ef.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:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function sk(e,t){return Pg(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Ef.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 ck(e){return Pg(["get-insights-conversion-rate-fallback-metrics",e],function(){return Ef.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 uk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-volume-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function lk(e,t,n,a){return void 0===a&&(a=!0),delete t.account_code,Pg(["get-insights-volume-metrics-v2",t,e,n],function(){return Ef.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:a,cacheTime:200,useErrorBoundary:!1})}function pk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-total-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function dk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-customer-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function mk(e){return Pg(["get-insights-overview",e],function(){return Ef.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function hk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Pg(["get-insights-overview-v3",e,t],function(){return Ef.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function fk(e){return Pg(["get-insights-home-metrics",e],function(){return Ef.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 gk(e){return Pg(["get-insights-reports",e],function(){return Ef.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 yk(e){return Pg(["get-insights-reports-again",e],function(){return Ef.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 vk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function bk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-conversion-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningConversionRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function xk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-volume-and-count-tx",a,e],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function kk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsConversionRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function wk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-decline-reasons",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsDeclineReasons(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function _k(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsFrictionlessVsChallenge(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ek(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ck(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Sk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-win-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksWinRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Rk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-disputed",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksDisputed(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Tk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function jk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-reasons-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksReasonsDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ak(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-status-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksStatusDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ik(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ok(e,t){return Pg(["fetch-reconciliation-transaction",e],function(){return Ef.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Pk(e,t){return Pg(["fetch-reconciliation-settlements",e],function(){return Ef.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Lk(e,t){return Pg(["fetch-reconciliation-metrics",e],function(){return Ef.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function zk(){return Pg(["GET-reconciliation-filters"],function(){return Ef.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Dk(e){return Pg(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Ef.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function qk(){return Pg(["GET/v1/reconciliation/active"],function(){return Ef.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Nk(e,t,n){return Pg(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Ef.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 Mk(e){return Pg(["GET/reconciliation/reports/templates"],function(){return Ef.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function Fk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/alerts/list",t,n],function(){return Ef.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Uk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/list",t,n],function(){return Ef.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Bk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/insights",t,n],function(){return Ef.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Hk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/sales/list",t,n],function(){return Ef.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Wk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/advancements/list",t,n],function(){return Ef.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Gk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/fees/list",t,n],function(){return Ef.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Vk(e){var a=this,o=Object.values(e).filter(Boolean);return Pg(["feature-flags",o],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function $k(e){var a=this,o=Pg({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.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}),i=Rg();return E(function(){i.setQueryData(["cached-feature-flags"],o)},[o,i]),o}function Kk(e){var t=Rg();return Pg({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function Qk(e){return Pg(["events",e],function(){return Ef.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 Jk(e){return Pg(["audit-monitor-event-detail",e],function(){return Ef.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 Xk(e,t){return Pg(["fetch-payment-links",e,t],function(){return Ef.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function Yk(e){return Pg(["payment-link"],function(){return Ef.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Zk(e){return void 0===e&&(e=!0),Pg(["countries",e],function(){return Ef.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function ew(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Pg(["countries-v2",n],function(){return Ef.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function tw(e){return Pg(["timezone"],function(){return Ef.getInstance().getTimezone(e).then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})},{enabled:!0,keepPreviousData:!0})}function nw(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function aw(e,t){return Pg(["get-cofig-allow-list",e],function(){return Ef.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 ow(e){return Pg(["get-black-list",e],function(){return Ef.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e})}function iw(e,t,n,a){var o;return Pg(["post-black-list",e],function(){return Ef.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=a?a: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 rw(e,t,n){return Pg(["get-block-list-summary",e,t,n],function(){var a=Ef.getInstance();return n?a.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function sw(e,t,n,a,o,i){return Pg(["black-list-detail",e,t,a,o,i],function(){return Ef.getInstance().getBlacklistDetail(e,t,n,a,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&i,cacheTime:0})}function cw(e,t,n){return Pg(["allow-list-detail",e],function(){return Ef.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function uw(e){return Pg(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Ef.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function lw(e,a){var o=this;return void 0===e&&(e=26),void 0===a&&(a=0),Pg(["batch-refunds",e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getBatchRefunds(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function pw(e){return Pg(["velocity-rules",e],function(){var t=Ef.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 dw(){return Pg(["config-rules"],function(){return Ef.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function mw(e,t){var n=e.organizationCode;return Pg(["mfa-excluded-users",n],function(){return Ef.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function hw(e,t){var n=e.organizationCode;return Pg(["mfa-config",n],function(){return Ef.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function fw(e,t){return Pg(["mfa-enforcement-status",e.accountCode],function(){return Ef.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function gw(e){return Pg(["fetch-organization-saml-config",e],function(){return Ef.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function yw(e){return Pg(["chartgpt-chart-execute",e],function(){return Ef.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function vw(){return Pg(["chartgpt-user-charts"],function(){return Ef.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function bw(){var e=this;return Pg(["chartgpt-user-charts-with-results"],function(){return t(e,void 0,void 0,function(){var e,a,i,r=this;return n(this,function(s){switch(s.label){case 0:return[4,(e=Ef.getInstance()).getChartsByUser()];case 1:return a=s.sent(),i=(null==a?void 0:a.data)||[],[4,Promise.all(i.map(function(a){return t(r,void 0,void 0,function(){var t,i,r,s,c,u,l,p;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(a.code)];case 1:return t=n.sent(),[2,o(o({},a),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:a.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:a.unit_to_display,results:null!==(p=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==p?p:[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(a.chart_id,":"),i),[2,o(o({},a),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function xw(e,a,o){var i=this;return void 0===o&&(o=!0),Pg(["chartgpt-patch-and-execute",e,a],function(){return t(i,void 0,void 0,function(){var t,o,i,r,s;return n(this,function(n){switch(n.label){case 0:return[4,(t=Ef.getInstance()).patchChartGPTChart(e,a)];case 1:return o=n.sent(),i=null==o?void 0:o.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function kw(){return Pg(["languages"],function(){return Ef.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function ww(){var e=localStorage.getItem("lang")||"en";return Pg(["translations",e],function(){return Ef.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}var _w=function(e){return t(void 0,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return e={daily_communications_and_conversion_rate:{communications:{distribution:[{key:"2024-01-01",total:150,current_label:"Jan 1",current_amount:150},{key:"2024-01-02",total:180,current_label:"Jan 2",current_amount:180},{key:"2024-01-03",total:120,current_label:"Jan 3",current_amount:120},{key:"2024-01-04",total:200,current_label:"Jan 4",current_amount:200},{key:"2024-01-05",total:165,current_label:"Jan 5",current_amount:165},{key:"2024-01-06",total:190,current_label:"Jan 6",current_amount:190},{key:"2024-01-07",total:175,current_label:"Jan 7",current_amount:175}],total:1180},conversion_rate:{distribution:[{key:"2024-01-01",total:.45,percentage:.45},{key:"2024-01-02",total:.52,percentage:.52},{key:"2024-01-03",total:.38,percentage:.38},{key:"2024-01-04",total:.61,percentage:.61},{key:"2024-01-05",total:.47,percentage:.47},{key:"2024-01-06",total:.55,percentage:.55},{key:"2024-01-07",total:.49,percentage:.49}],total:.495},completed_communications:{distribution:[{key:"2024-01-01",total:68,current_label:"Jan 1",current_amount:68},{key:"2024-01-02",total:94,current_label:"Jan 2",current_amount:94},{key:"2024-01-03",total:46,current_label:"Jan 3",current_amount:46},{key:"2024-01-04",total:122,current_label:"Jan 4",current_amount:122},{key:"2024-01-05",total:78,current_label:"Jan 5",current_amount:78},{key:"2024-01-06",total:105,current_label:"Jan 6",current_amount:105},{key:"2024-01-07",total:86,current_label:"Jan 7",current_amount:86}],total:599}},communications_by_sub_status:{distribution:[{key:"SUCCEEDED",total:599,percentage:50.8,amount:125e3},{key:"CREATED",total:295,percentage:25,amount:45e3},{key:"PENDING",total:177,percentage:15,amount:28e3},{key:"DECLINED",total:109,percentage:9.2,amount:12e3}],total:1180},daily_communications_sub_status_distribution:{SUCCEEDED:[{key:"2024-01-01",total:68,current_label:"Jan 1",current_amount:68},{key:"2024-01-02",total:94,current_label:"Jan 2",current_amount:94},{key:"2024-01-03",total:46,current_label:"Jan 3",current_amount:46},{key:"2024-01-04",total:122,current_label:"Jan 4",current_amount:122},{key:"2024-01-05",total:78,current_label:"Jan 5",current_amount:78},{key:"2024-01-06",total:105,current_label:"Jan 6",current_amount:105},{key:"2024-01-07",total:86,current_label:"Jan 7",current_amount:86}],CREATED:[{key:"2024-01-01",total:35,current_label:"Jan 1",current_amount:35},{key:"2024-01-02",total:42,current_label:"Jan 2",current_amount:42},{key:"2024-01-03",total:28,current_label:"Jan 3",current_amount:28},{key:"2024-01-04",total:48,current_label:"Jan 4",current_amount:48},{key:"2024-01-05",total:38,current_label:"Jan 5",current_amount:38},{key:"2024-01-06",total:45,current_label:"Jan 6",current_amount:45},{key:"2024-01-07",total:59,current_label:"Jan 7",current_amount:59}],PENDING:[{key:"2024-01-01",total:32,current_label:"Jan 1",current_amount:32},{key:"2024-01-02",total:28,current_label:"Jan 2",current_amount:28},{key:"2024-01-03",total:31,current_label:"Jan 3",current_amount:31},{key:"2024-01-04",total:20,current_label:"Jan 4",current_amount:20},{key:"2024-01-05",total:33,current_label:"Jan 5",current_amount:33},{key:"2024-01-06",total:25,current_label:"Jan 6",current_amount:25},{key:"2024-01-07",total:8,current_label:"Jan 7",current_amount:8}],DECLINED:[{key:"2024-01-01",total:15,current_label:"Jan 1",current_amount:15},{key:"2024-01-02",total:16,current_label:"Jan 2",current_amount:16},{key:"2024-01-03",total:15,current_label:"Jan 3",current_amount:15},{key:"2024-01-04",total:10,current_label:"Jan 4",current_amount:10},{key:"2024-01-05",total:16,current_label:"Jan 5",current_amount:16},{key:"2024-01-06",total:15,current_label:"Jan 6",current_amount:15},{key:"2024-01-07",total:22,current_label:"Jan 7",current_amount:22}]},recovered_payments:{distribution:[{key:"2024-01-01",total:45,current_label:"Jan 1",current_amount:45},{key:"2024-01-02",total:62,current_label:"Jan 2",current_amount:62},{key:"2024-01-03",total:31,current_label:"Jan 3",current_amount:31},{key:"2024-01-04",total:85,current_label:"Jan 4",current_amount:85},{key:"2024-01-05",total:52,current_label:"Jan 5",current_amount:52},{key:"2024-01-06",total:73,current_label:"Jan 6",current_amount:73},{key:"2024-01-07",total:58,current_label:"Jan 7",current_amount:58}],total:406,total_amount:21e4}},[4,new Promise(function(e){return setTimeout(e,500)})];case 1:return t.sent(),[2,e]}})})},Ew=function(e,t){return Pg(o({queryKey:["smart-recovery-overview",e],queryFn:function(){return _w()},enabled:!!e.organization_code,staleTime:3e5},t))};function Cw(){return Cw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Cw.apply(this,arguments)}
58
+ */"production"===process.env.NODE_ENV?vg.exports=function(){if(yg)return bg;yg=1;var e=k,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,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!t(e,a)}catch(e){return!0}}var s="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,r(u)&&l({inst:u})},[e,s,t]),a(function(){return r(u)&&l({inst:u}),e(function(){r(u)&&l({inst:u})})},[e]),i(s),s};return bg.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,bg}():vg.exports=(xg||(xg=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}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=k,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useState,o=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!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 p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=a({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i(function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})},[u,p,l]),o(function(){return e(m)&&h({inst:m}),u(function(){e(m)&&h({inst:m})})},[u]),r(p),p};kg.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),kg);var wg=vg.exports;const _g=wg.useSyncExternalStore,Eg=x.createContext(void 0),Cg=x.createContext(!1);function Sg(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Eg),window.ReactQueryClientContext):Eg)}const Rg=({context:e}={})=>{const t=x.useContext(Sg(e,x.useContext(Cg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tg=({client:e,children:t,context:n,contextSharing:a=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&a&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=Sg(n,a);return x.createElement(Cg.Provider,{value:!n&&a},x.createElement(o.Provider,{value:e},t))},jg=x.createContext(!1);jg.Provider;const Ag=x.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Ig(e,t){return"function"==typeof e?e(...t):!!e}function Og(e,t){const n=Rg({context:e.context}),a=x.useContext(jg),o=x.useContext(Ag),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",i.onError&&(i.onError=ng.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ng.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ng.batchCalls(i.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{x.useEffect(()=>{e.clearReset()},[e])})(o);const[r]=x.useState(()=>new t(n,i)),s=r.getOptimisticResult(i);if(_g(x.useCallback(e=>{const t=a?()=>{}:r.subscribe(ng.batchCalls(e));return r.updateResult(),t},[r,a]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),x.useEffect(()=>{r.setOptions(i,{listeners:!1})},[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,a))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)}))(i,r,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:a})=>e.isError&&!t.isReset()&&!e.isFetching&&Ig(n,[e.error,a]))({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Pg(e,t,n){return Og(Af(e,t,n),pg)}function Lg(e,t,n){const a=function(e,t,n){return Hf(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Rg({context:a.context}),[i]=x.useState(()=>new gg(o,a));x.useEffect(()=>{i.setOptions(a)},[i,a]);const r=_g(x.useCallback(e=>i.subscribe(ng.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=x.useCallback((e,t)=>{i.mutate(e,t).catch(zg)},[i]);if(r.error&&Ig(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function zg(){}function Dg(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function qg(e){return Lg(function(e){var t=e.code,n=e.accountCode;return Ef.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ng(e){return Lg(function(e){var t=e.code,n=e.payload,a=e.accountCode;return Ef.getInstance().updateWebhookV2(t,n,a)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Mg(){return Lg(function(e){var t=e.name,n=e.principal;return Ef.getInstance().postAccount(t,n)})}function Fg(){return Lg(function(e){var t=e.name,n=e.code,a=e.principal;return Ef.getInstance().patchAccountV2({name:t,code:n,principal:a})})}function Ug(){return Lg(function(e){var t=e.account_code;return Ef.getInstance().putAccountPrincipal({account_code:t})})}function Bg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().putAccountsUserMassive(t,n,a)})}function Hg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().deleteAccountsUserMassive(t,n,a)})}function Wg(){return Lg(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Gg(){return Lg(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Vg(){return Lg(function(e){return Ef.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function $g(){return Lg(["post-connection"],function(e){var t=e.payload;return Ef.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Kg(){return Lg(["new-post-connection-validate"],function(){return Ef.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Qg(){return Lg(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Ef.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function Jg(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Xg(){return Lg(function(e){return Ef.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Yg(){return Lg(["patch-organizations"],function(){return Ef.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function Zg(){return Lg(function(e){return Ef.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function ey(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().changePasswordV2(a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ty(e){return Lg(function(e){return Ef.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ny(){return Lg(function(e){return Ef.getInstance().inviteUsersMassive(e,e.organizationCode)})}function ay(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function oy(){return Lg(function(e){return Ef.getInstance().createUserAuth0(e)})}function iy(){return Lg(function(e){return Ef.getInstance().postCall(e)})}function ry(){return Lg(function(e){return Ef.getInstance().changeLoginMethods(e)})}function sy(e){return Lg(function(e){return Ef.getInstance().updateIsActiveCheckout(e)},e)}function cy(){return Lg(function(e){var t=e.accountCode,n=e.template;return Ef.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then(function(e){return null==e?void 0:e.data})})}function uy(){return Lg(function(e){var t=e.accountCode,n=e.theme;return Ef.getInstance().updateStylingTheme({accountCode:t,theme:n}).then(function(e){return null==e?void 0:e.data})})}function ly(){return Lg(function(e){var t=e.payload,n=e.transactionId,a=e.paymentId,o=e.action;return Ef.getInstance().createOperationTransaction(t,n,a,o)})}function py(){return Lg(function(e){var t=e.payload,n=e.paymentId,a=e.transactionId,o=e.handleSetProgress;return Ef.getInstance().uploadChargebacks(t,n,a,o)})}var dy=new ig({}),my=new class{constructor(e={}){this.queryCache=e.queryCache||new ig,this.mutationCache=e.mutationCache||new cg,this.logger=e.logger||tg,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=$f.subscribe(()=>{$f.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Qf.subscribe(()=>{Qf.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]=If(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 a=Af(e,t,n),o=this.getQueryData(a.queryKey);return o?Promise.resolve(o):this.fetchQuery(a)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const a=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==a?void 0:a.state.data);if(void 0===o)return;const i=Af(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ng.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]=If(e,t),a=this.queryCache;ng.batch(()=>{a.findAll(n).forEach(e=>{a.remove(e)})})}resetQueries(e,t,n){const[a,o]=If(e,t,n),i=this.queryCache,r={type:"active",...a};return ng.batch(()=>(i.findAll(a).forEach(e=>{e.reset()}),this.refetchQueries(r,o)))}cancelQueries(e,t,n){const[a,o={}]=If(e,t,n);void 0===o.revert&&(o.revert=!0);const i=ng.batch(()=>this.queryCache.findAll(a).map(e=>e.cancel(o)));return Promise.all(i).then(Rf).catch(Rf)}invalidateQueries(e,t,n){const[a,o]=If(e,t,n);return ng.batch(()=>{var e,t;if(this.queryCache.findAll(a).forEach(e=>{e.invalidate()}),"none"===a.refetchType)return Promise.resolve();const n={...a,type:null!=(e=null!=(t=a.refetchType)?t:a.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[a,o]=If(e,t,n),i=ng.batch(()=>this.queryCache.findAll(a).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:a.refetchPage}})}));let r=Promise.all(i).then(Rf);return null!=o&&o.throwOnError||(r=r.catch(Rf)),r}fetchQuery(e,t,n){const a=Af(e,t,n),o=this.defaultQueryOptions(a);void 0===o.retry&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Rf).catch(Rf)}fetchInfiniteQuery(e,t,n){const a=Af(e,t,n);return a.behavior=ug(),this.fetchQuery(a)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Rf).catch(Rf)}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=>zf(e)===zf(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Df(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Df(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=>zf(e)===zf(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Df(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Df(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=Lf(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:dy});function hy(){return Lg(function(e){return Ef.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fy(){return Lg(function(e){return Ef.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function gy(){return Lg(function(e){return Ef.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yy(){return Lg(function(e){return Ef.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function vy(a){var o=this;return Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=my.getQueryData(["GET/reports/templates"]),my.setQueryData(["GET/reports/templates"],function(t){return e(e([],t,!0),[a],!1)}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function by(e){return Lg(function(){return Ef.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function xy(e,a,o){var i=this;return void 0===o&&(o=null),Lg(function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().postSmartRoutingCreateWorkflow(e,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,t.sent()]}})})},o)}function ky(e,a){var o=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===a&&(a=null),Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().postSmartRoutingPublishVersion(r,i,s).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},a)}function wy(e,t){var n=e.data,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflow(a,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function _y(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().deleteSmartRoutingVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Ey(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().postSmartRoutingDuplicateVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Cy(e,t){var n=e.paymentMethod,a=e.active,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingToggleMethod(o,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Sy(e,t){var n=e.declinedId,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().updateSmartRoutingDeclinedGroup(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Ry(e){var t=e.accountCode;return Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function Ty(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=!1),Ef.getInstance().updateSmartRoutingFavorite(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function jy(e,t){var n=e.code,a=e.name,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:a}).then(function(e){return null==e?void 0:e.data})},t)}function Ay(e,t){var n=e.accountCode,a=e.workflowVersionCode;return void 0===t&&(t=null),Lg(function(e){return Ef.getInstance().simulateSmartRoutingTransaction(n,a,e).then(function(e){return null==e?void 0:e.data})},t)}function Iy(e,t){return void 0===t&&(t=null),Lg(function(t){return Ef.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function Oy(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.declinedGroupCode;return Ef.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}function Py(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.payload;return Ef.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}var Ly=function(e){return Lg(function(t){return Ef.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},zy=function(e){return Lg(function(t){return Ef.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function Dy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function qy(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function Ny(){return Lg(function(){return Ef.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function My(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Fy(){var e=this;return Lg(function(a){var o=a.payload,i=a.id,r=a.accountCode;return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().editRoles({payload:o,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Uy(){return Lg(function(e){return Ef.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function By(){return Lg(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Hy(){return Lg(["post-delete-payment-link"],function(e){var t=e.code;return Ef.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Wy(){return Lg(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return Ef.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:a}).then(function(e){return null==e?void 0:e.data})})}function Gy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Vy(){return Lg(function(e){return Ef.getInstance().postUserThemeSettings(e)})}function $y(){return Lg(function(e){var t=e.payload,n=e.section;return Ef.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var t=my.getQueryData(["fetch-profile"]);e.data&&my.setQueryData(["fetch-profile"],o(o({},t),{settings:e.data}))}})}function Ky(e){return Lg(["pinned-sections"],function(e){var t=e.payload;return Ef.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Qy(){return Lg(function(e){var t=e.password,n=e.otp;return Ef.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Jy(){return Lg(function(){return Ef.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Xy(){return Lg(function(e){return Ef.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function Yy(){return Lg(function(e){return Ef.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function Zy(){return Lg(function(){return Ef.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function ev(){return Lg(["post-get-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function tv(){return Lg(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function nv(){return Lg(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function av(){return Lg(["patch-change-status-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ov(){return Lg(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function iv(){return Lg(["post-add-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function rv(){return Lg(["patch-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sv(){return Lg(["post-blacklist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cv(){return Lg(["put-blacklist"],function(e){return Ef.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function uv(){return Lg(["change-blacklist"],function(e){return Ef.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function lv(){return Lg(["change-blacklist-item"],function(e){return Ef.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function pv(){return Lg(["post-blacklist-items"],function(e){var t=e.payload;return Ef.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function dv(){return Lg(["delete-blacklist"],function(e){var t=e.black_list_code;return Ef.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function mv(e){var t=e.handleSetProgress;return Lg(["post-blacklist-batch"],function(e){var n=e.blacklist_code,a=e.expiration_days,o=e.file;return Ef.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:a,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hv(){return Lg(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Ef.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fv(){return Lg(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return Ef.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gv(){return Lg(["valiate-blacklist-items"],function(e){return Ef.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yv(){return Lg(["delete-allowlist-item"],function(e){return Ef.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function vv(){return Lg(["validate-allowlist-items"],function(e){return Ef.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function bv(e){var t=e.fileName,n=e.onSuccess,a=e.onError,o=w(0),i=o[0],r=o[1],s=_({cancel:function(){return null}}),c=Lg(["upload-file-chargeback",t],function(e){var t=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),o=t.promise,i=t.cancel;return s.current.cancel=i,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==a||a(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function xv(){return Lg(function(e){return Ef.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function kv(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().batchRefundByFile({payload:a}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function wv(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundProcessedFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function _v(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundUserFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ev(){var e=_({cancel:function(){return null}}),t=Lg(["upload-file"],function(t){var n=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),a=n.promise,o=n.cancel;return e.current.cancel=o,a.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Cv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().updateMFAConfig(t,n)})}function Sv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().mfaExcludeUsers(t,n)})}function Rv(e){return Pg(["GET/scheduled-reports",e],function(){return Ef.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 Tv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function jv(){return Lg(function(e){var t=e.reportCode,n=e.payload;return Ef.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Av(){return Lg(function(e){return Ef.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Iv(){return Lg(function(e){return Ef.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ov(){return Lg(function(e){return Ef.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Pv(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Lv(){return Lg(function(e){var t=e.payload,n=e.ruleId,a=e.accountCode;return Ef.getInstance().postEditRule(t,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function zv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Dv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function qv(){return Lg(function(e){var t=e.code,n=e.password;return Ef.getInstance().getCustomizedApiKeysToken(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Nv(){return Lg(function(e){var t=e.passwordOtp;return Ef.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Mv(){return Lg(function(e){var t=e.code;return Ef.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Fv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().patchApiKeysEditNote(t,n).then(function(e){return e.data}).catch(function(e){return e})})}function Uv(){return Lg(function(e){var t=e.payload,n=e.code,a=e.password;return Ef.getInstance().postApiKeysRoll(t,n,a).then(function(e){return e.data}).catch(function(e){return e})})}function Bv(){return Lg(function(e){var t=e.password,n=e.accountCode;return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},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}})})}function Hv(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Wv(a){var o=this;return Lg(function(){return Ef.getInstance().createReconciliationReportTemplate(a).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t,o;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(o=my.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,my.setQueryData(["GET/reconciliation/reports/templates"],function(t){return{templates:e(e([],t.templates,!0),[a],!1)}}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Gv(e){return Lg(function(){return Ef.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Vv(){return Lg(["POST/reconciliation/alerts"],function(e){return Ef.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function $v(){return Lg(["DELETE/reconciliation/alerts"],function(e){return Ef.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Kv(){return Lg(["UPDATE/reconciliation/alerts"],function(e){return Ef.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Qv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Jv(){return Lg(function(e){return Ef.getInstance().createSamlConfig(e)})}function Xv(){return Lg(function(e){return Ef.getInstance().updateSamlConfig(e)})}function Yv(){return Lg(function(){return Ef.getInstance().deleteSamlConfig()})}function Zv(e,t){return void 0===t&&(t={}),Lg(function(t){return Ef.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},o(o({},t),{useErrorBoundary:!1}))}function eb(e){return void 0===e&&(e={}),Lg(function(e){return Ef.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},o(o({},e),{useErrorBoundary:!1}))}function tb(){return Lg(function(e){return Ef.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function nb(){return Lg(function(e){return Ef.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ab(){return Lg(function(e){var t=e.chart_id,n=e.type,a=e.name,o=e.user_prompt,i=void 0===o?"":o;return Ef.getInstance().patchChartGPTChart(t,{type:n,name:a,user_prompt:i}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ob(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e,o,i,r,s,c,u,l,p,d=this;return n(this,function(m){switch(m.label){case 0:return[4,(e=Ef.getInstance()).createChartGPTChart(a)];case 1:if(o=m.sent(),!(i=null!==(l=null===(u=null==o?void 0:o.data)||void 0===u?void 0:u.chartgpt_id)&&void 0!==l?l:null===(p=null==o?void 0:o.data)||void 0===p?void 0:p.chart_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(d,void 0,void 0,function(){var a=this;return n(this,function(o){return[2,new Promise(function(o,r){var s=setInterval(function(){return t(a,void 0,void 0,function(){var t,a,c;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"ERROR"===(null==(a=null==t?void 0:t.data)?void 0:a.status)&&(clearInterval(s),o(a)),"DRAFT"===(null==a?void 0:a.status)&&(clearInterval(s),o(a)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}})})},1e4)})]})})},[4,r()];case 2:return s=m.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=m.sent(),[2,{chart:s,chartgpt_id:i,execution:null==c?void 0:c.data}]}})})},{useErrorBoundary:!1})}var ib=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),a=n[0],o=n[1];return E(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]),a}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function rb(e){var a=this;return Pg(["fetch-payments-lazy",e],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.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 sb(e){return Pg(["fetch-payments-evaluated",e],function(){return Ef.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 cb(e){var a=this,o=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:r,cacheTime:500,useErrorBoundary:!1})}function ub(e){var a=this,o=e.payment_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-details-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function lb(e){var a=this,o=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-raw-response",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function pb(e){var t=ib();return Pg(["payment-methods",e],function(){return Ef.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 db(){return Pg({queryKey:["/payment-methods/providers"],queryFn:function(){return Ef.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function mb(){return Pg(["GET/catalog/card-brands"],function(){return Ef.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function hb(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Lm.PAYMENTS),Pg(["payment-filters",e,t],function(){return Ef.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function fb(){return Pg(["payment-metrics-filters"],function(){return Ef.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function gb(e){var t=e.transaction_code,n=e.enabled;return Pg(["payment-transaction-details",t],function(){return Ef.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function yb(e){var t=e.payment_code,n=e.enabled;return Pg(["transaction-history",t],function(){return Ef.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function vb(e){var a=this;return Pg(["POST/transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function bb(e){var a=this;return Pg(["POST/fraud-transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.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 xb(e){return Pg(["GET/payout-detail",JSON.stringify(e)],function(){var t=Ef.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 kb(e){return Pg(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Ef.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 wb(e){var t=ib();return Pg(["GET/payout-history-detail",JSON.stringify(e)],function(){return Ef.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 _b(e,a){var o=this,i=ib();return Pg(["GET/useGetProofOfCancel",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfCancel(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function Eb(e,a){var o=this,i=ib();return Pg(["GET/useGetProofOfPayment",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfPayment(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function Cb(e,a,o){var i=this,r=Ef.getInstance();return Pg(["send-payment-notification",e,a],function(){return t(i,void 0,void 0,function(){var t,i;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,a)];case 1:return t=n.sent(),o.onSuccess(),[2,t.data];case 2:throw i=n.sent(),o.onError(),i;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function Sb(e){return Pg(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Ef.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 Rb(e){var a=this;void 0===e&&(e=!0);var o=ib();return Pg(["getPayoutsFilters",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function Tb(e){var t=e.password,n=e.accountCode;return Pg(["developers"],function(){return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},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 jb(){return Pg(["fetch-customized-api-keys-members"],function(){return Ef.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Ab(){return Pg(["developers-get-allowed-ips"],function(){return Ef.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Ib(){return Pg(["fetch-customized-api-keys-accounts"],function(){return Ef.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Ob(e){return Pg(["fetch-customized-api-keys",e],function(){return Ef.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 Pb(){return Pg(["fetch-customized-api-keys-products"],function(){return Ef.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Lb(){return Lg(["developers-patch-allowed-ips"],function(e){return Ef.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{cacheTime:0})}function zb(){return Pg(["fetch-organizations"],function(){return Ef.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Db(){return Pg(["fetch-all-organizations",ib()],function(){return Ef.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function qb(e){var t=ib();return Pg(["organizations-provider-params",e],function(e){var n=e.queryKey;return Ef.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 Nb(e){var t=e.integration_code,n=e.enabled,a=e.accountCode;return Pg(["integration-params",t,a],function(){return t.includes("undefined")?{}:Ef.getInstance().getIntegrationParams({accountCode:a,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Mb(e){var t=e.accountCode,n=e.organizationCode,a=ib();return Pg(["organizations-account-integrations",t,n],function(){return Ef.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||a}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Fb(e){var t=e.accountCode,n=e.paymentMethod;return Pg(["fetch-connections-by-payment-method",n,t],function(){return Ef.getInstance().getConnectionsByPaymentMethod(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Ub(){var e=this;return Pg(["fetch-hash-pylon"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Bb(){return Pg(["connections"],function(){return Ef.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Hb(){return Pg(["dialogs"],function(){return Ef.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Wb(){return Pg(["params-catalog"],function(){return Ef.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function Gb(e){var t=e.accountCode,n=e.name;return Pg(["webhooks",t,n],function(){return Ef.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function Vb(e){var t=e.accountCode,n=e.enabled;return Pg(["webhooks-detail",t],function(){return Ef.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function $b(e){var t,n=ib(),a=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pg({queryKey:["accounts",a],queryFn:function(){return Ef.getInstance().getAccounts(a).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!a})}function Kb(e){return Pg(["accountsV2",e],function(){return Ef.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Qb(e){return Pg(["accountsV2-by-user",e],function(){return e?Ef.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 Jb(){return Pg(["menu"],function(){return Ef.getInstance().getMenu().then(function(e){return sf(e)?hf:null==e?void 0:e.data}).catch(function(){return hf})})}function Xb(){return Pg(["/payment/statuses/style"],function(){return Ef.getInstance().useGetPaymentStatusesStyles().then(function(e){return sf(e)?cf:null==e?void 0:e.data}).catch(function(){return cf})})}function Yb(){return Pg(["/transaction/statuses/style"],function(){return Ef.getInstance().useGetTransactionStatusesStyles().then(function(e){return sf(e)?uf:null==e?void 0:e.data}).catch(function(){return uf})},{cacheTime:36e5,useErrorBoundary:!1})}function Zb(){return Pg(["/reconciliation/transaction/statuses/style"],function(){return Ef.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return sf(e)?lf:null==e?void 0:e.data}).catch(function(){return lf})})}function ex(){return Pg(["timezone-catalog"],function(){return Ef.getInstance().useGetTimeZoneCatalog().then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})})}function tx(){return Pg(["/cms/audit-logs-filters"],function(){return Ef.getInstance().useGetAuditLogsFilters().then(function(e){return sf(e)?df:null==e?void 0:e.data}).catch(function(){return df})})}function nx(){return Pg(["/cms/static-contents"],function(){return Ef.getInstance().getDashboardStaticContents().then(function(e){var t,n;return sf(e)?mf:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function ax(){return Pg(["/cms/locales"],function(){return Ef.getInstance().getLocales().then(function(e){return sf(e)?ff:e.data}).catch(function(){return ff})})}var ox=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return E(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}};function ix(e){return Pg(["smart-routing-methods",e],function(){return Ef.getInstance().getSmartRoutingMethods(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function rx(e,t){return Pg(["smart-routing-workflow",t,e],function(){return Ef.getInstance().getSmartRoutingWorkflow(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function sx(e,t){return Pg(["smart-routing-condition-types",e,t],function(){return Ef.getInstance().getSmartRoutingConditionTypes(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function cx(e,t){return Pg(["smart-routing-condition-payment-method",e,t],function(){return Ef.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 ux(e,t){return Pg(["smart-routing-condition-types-values",t,e],function(){return Ef.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function lx(e){var t=e.accountCode,n=e.workflowVersionId;return Pg(["smart-routing-workflow-version",n,t],function(){return Ef.getInstance().getSmartRoutingWorkflowVersion(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function px(e,t,n){return Pg(["smart-routing-next-route",e,n,t],function(){return Ef.getInstance().getSmartRoutingNextSteps(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function dx(e){return Pg(["smart-routing-decline-groups",e],function(){return Ef.getInstance().getSmartRoutingDeclinedGroup(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function mx(e,t){return Pg(["smart-routing-payment-route",e,t],function(){return Ef.getInstance().getSmartRoutingPaymentRoute(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!t,cacheTime:0})}function hx(e){return Pg(["smart-routing-simulate-condition-type-values",e],function(){return Ef.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function fx(e){var t=e.text,n=e.conditionType;return Pg(["smart-routing-search-condition-values",t,n],function(){return Ef.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 gx(){return Pg(["smart-routing-conversion-rates"],function(){return Ef.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function yx(){var e=this;return Pg({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function vx(){var e=this;return Pg({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function bx(e){return Pg(["fetch-routing-monitors-templates",e],function(){return Ef.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function xx(e,t){return Pg(["fetch-routing-monitors-template",e],function(){return Ef.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 kx(e){var t=e.accountCode;return Pg(["checkouts",t],function(){return Ef.getInstance().getCheckouts({accountCode:t}).then(function(e){return e.data})},{cacheTime:0,enabled:Boolean(t)})}function wx(e){var t=e.accountCode;return Pg(["checkouts-template"],function(){return Ef.getInstance().getCheckoutTemplate({accountCode:t}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(t)})}var _x=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Ex=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(_x({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getNameAndIcon({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)},Cx=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Sx=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(Cx({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getRequiredFields({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)};function Rx(e){var t=e.accountCode;return Pg(["styling-sdk-dynamic",t],function(){return Ef.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 Tx(e){var t=e.accountCode;return Pg(["styling-theme",t],function(){return Ef.getInstance().getStylingTheme({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 jx(e){var t=e.accountCode;return Pg(["styling-settings",t],function(){return Ef.getInstance().getStylingSettings({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 Ax(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n;return Pg(["styling-settings-v2",t],function(){return Ef.getInstance().getStylingSettingsV2({accountCode:t,environment:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Ix(){return Lg(function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload;return Ef.getInstance().changeStylingSettings({accountCode:t,environment:a,payload:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Ox(){return Pg(["fetch-profile"],function(){return Ef.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 Px(e,t){return Pg(["fetch-permissions",e,t],function(){var e,t,n,a=localStorage.getItem("account"),o=localStorage.getItem("user"),i=a&&JSON.parse(a),r=o&&JSON.parse(o);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.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 Lx(e){return Pg(["email-verification",e],function(){return Ef.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function zx(){return Pg({queryKey:["get-login-methods"],queryFn:function(){return Ef.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Dx(){return Pg(["fetch-impersonation-users"],function(){return Ef.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 qx(){return Pg(["fetch-impersonation-enabled"],function(){return Ef.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Nx(e){var a=this;return Pg(["get-users-to-impersonate",e],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getUsersToImpersonate(e).then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.users)||[]})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Mx(e){var t;return Pg(["fetch-communications",e],function(){return Ef.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 Fx(){return Pg(["fetch-communications-filters"],function(){return Ef.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Ux(e,t){return Pg(["fetch-communication-details",e],function(){return Ef.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Bx(e){return Pg(["notifications-customer",e],function(){return Ef.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function Hx(e){return Pg(["validate-opsgenie-key",e],function(){return Ef.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function Wx(){return Pg(["notifications-merged"],function(){return Ef.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function Gx(){return Lg(function(e){return Ef.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Vx(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().pathNotification(a)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})})}var $x={key:"metadata_fields",name:"metadata_fields"};function Kx(){return Pg(["reports"],function(){return Ef.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Qx(e){return void 0===e&&(e=!0),Pg(["reports-multi-env"],function(){return Ef.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function Jx(e,t,n){return void 0===t&&(t=!1),Pg(["reports/".concat(e)],function(){return Ef.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Xx(e){return Pg(["GET/reports/templates"],function(){return Ef.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function Yx(a,o,i){var r=this;return Pg(["GET/reports/columns/".concat(o,"/").concat(i)],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportColumns(o,i).then(function(t){return o===Mm.ALL&&i===Nm.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[$x],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:a,useErrorBoundary:!1})}function Zx(e,a){var o=this,i=ib();return Pg(["getRefundPdf",e,i,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getRefundPdf(e,i,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!i,useErrorBoundary:!1})}function ek(){var e=ib();return Pg(["teams-filters-members"],function(){return Ef.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function tk(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r=ib();return Pg(["fetch-post-members-v2",t,n,a,o,i],function(){return Ef.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:a,page:o,pageSize:i}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function nk(){return Pg(["fetch-roles"],function(){return Ef.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ak(){return Pg(["fetch-rolespermissions"],function(){return Ef.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function ok(){return Pg(["fetch-permissions-catalog"],function(){return Ef.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function ik(e){return Pg(["data-report",e],function(){return Ef.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function rk(e,t,n){return void 0===n&&(n=!0),Pg(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Ef.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:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function sk(e,t){return Pg(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Ef.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 ck(e){return Pg(["get-insights-conversion-rate-fallback-metrics",e],function(){return Ef.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 uk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-volume-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function lk(e,t,n,a){return void 0===a&&(a=!0),delete t.account_code,Pg(["get-insights-volume-metrics-v2",t,e,n],function(){return Ef.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:a,cacheTime:200,useErrorBoundary:!1})}function pk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-total-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function dk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-customer-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function mk(e){return Pg(["get-insights-overview",e],function(){return Ef.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function hk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Pg(["get-insights-overview-v3",e,t],function(){return Ef.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function fk(e){return Pg(["get-insights-home-metrics",e],function(){return Ef.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 gk(e){return Pg(["get-insights-reports",e],function(){return Ef.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 yk(e){return Pg(["get-insights-reports-again",e],function(){return Ef.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 vk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function bk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-conversion-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningConversionRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function xk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-volume-and-count-tx",a,e],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function kk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsConversionRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function wk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-decline-reasons",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsDeclineReasons(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function _k(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsFrictionlessVsChallenge(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ek(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ck(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Sk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-win-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksWinRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Rk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-disputed",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksDisputed(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Tk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function jk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-reasons-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksReasonsDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ak(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-status-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksStatusDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ik(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ok(e,t){return Pg(["fetch-reconciliation-transaction",e],function(){return Ef.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Pk(e,t){return Pg(["fetch-reconciliation-settlements",e],function(){return Ef.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Lk(e,t){return Pg(["fetch-reconciliation-metrics",e],function(){return Ef.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function zk(){return Pg(["GET-reconciliation-filters"],function(){return Ef.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Dk(e){return Pg(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Ef.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function qk(){return Pg(["GET/v1/reconciliation/active"],function(){return Ef.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Nk(e,t,n){return Pg(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Ef.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 Mk(e){return Pg(["GET/reconciliation/reports/templates"],function(){return Ef.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function Fk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/alerts/list",t,n],function(){return Ef.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Uk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/list",t,n],function(){return Ef.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Bk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/insights",t,n],function(){return Ef.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Hk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/sales/list",t,n],function(){return Ef.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Wk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/advancements/list",t,n],function(){return Ef.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Gk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/fees/list",t,n],function(){return Ef.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Vk(e){var a=this,o=Object.values(e).filter(Boolean);return Pg(["feature-flags",o],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function $k(e){var a=this,o=Pg({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.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}),i=Rg();return E(function(){i.setQueryData(["cached-feature-flags"],o)},[o,i]),o}function Kk(e){var t=Rg();return Pg({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function Qk(e){return Pg(["events",e],function(){return Ef.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 Jk(e){return Pg(["audit-monitor-event-detail",e],function(){return Ef.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 Xk(e,t){return Pg(["fetch-payment-links",e,t],function(){return Ef.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function Yk(e){return Pg(["payment-link"],function(){return Ef.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Zk(e){return void 0===e&&(e=!0),Pg(["countries",e],function(){return Ef.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function ew(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Pg(["countries-v2",n],function(){return Ef.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function tw(e){return Pg(["timezone"],function(){return Ef.getInstance().getTimezone(e).then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})},{enabled:!0,keepPreviousData:!0})}function nw(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function aw(e,t){return Pg(["get-cofig-allow-list",e],function(){return Ef.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 ow(e){return Pg(["get-black-list",e],function(){return Ef.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e})}function iw(e,t,n,a){var o;return Pg(["post-black-list",e],function(){return Ef.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=a?a: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 rw(e,t,n){return Pg(["get-block-list-summary",e,t,n],function(){var a=Ef.getInstance();return n?a.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function sw(e,t,n,a,o,i){return Pg(["black-list-detail",e,t,a,o,i],function(){return Ef.getInstance().getBlacklistDetail(e,t,n,a,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&i,cacheTime:0})}function cw(e,t,n){return Pg(["allow-list-detail",e],function(){return Ef.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function uw(e){return Pg(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Ef.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function lw(e,a){var o=this;return void 0===e&&(e=26),void 0===a&&(a=0),Pg(["batch-refunds",e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getBatchRefunds(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function pw(e){return Pg(["velocity-rules",e],function(){var t=Ef.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 dw(){return Pg(["config-rules"],function(){return Ef.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function mw(e,t){var n=e.organizationCode;return Pg(["mfa-excluded-users",n],function(){return Ef.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function hw(e,t){var n=e.organizationCode;return Pg(["mfa-config",n],function(){return Ef.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function fw(e,t){return Pg(["mfa-enforcement-status",e.accountCode],function(){return Ef.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function gw(e){return Pg(["fetch-organization-saml-config",e],function(){return Ef.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function yw(e){return Pg(["chartgpt-chart-execute",e],function(){return Ef.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function vw(){return Pg(["chartgpt-user-charts"],function(){return Ef.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function bw(){var e=this;return Pg(["chartgpt-user-charts-with-results"],function(){return t(e,void 0,void 0,function(){var e,a,i,r=this;return n(this,function(s){switch(s.label){case 0:return[4,(e=Ef.getInstance()).getChartsByUser()];case 1:return a=s.sent(),i=(null==a?void 0:a.data)||[],[4,Promise.all(i.map(function(a){return t(r,void 0,void 0,function(){var t,i,r,s,c,u,l,p;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(a.code)];case 1:return t=n.sent(),[2,o(o({},a),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:a.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:a.unit_to_display,results:null!==(p=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==p?p:[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(a.chart_id,":"),i),[2,o(o({},a),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function xw(e,a,o){var i=this;return void 0===o&&(o=!0),Pg(["chartgpt-patch-and-execute",e,a],function(){return t(i,void 0,void 0,function(){var t,o,i,r,s;return n(this,function(n){switch(n.label){case 0:return[4,(t=Ef.getInstance()).patchChartGPTChart(e,a)];case 1:return o=n.sent(),i=null==o?void 0:o.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function kw(){return Pg(["languages"],function(){return Ef.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function ww(){var e=localStorage.getItem("lang")||"en";return Pg(["translations",e],function(){return Ef.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}var _w=function(e){var t,n,a,o=e.plots||[],i=o.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),r=o.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),s=o.find(function(e){return"CONVERSION_RATE_LABEL"===e.label});return{communications:{distribution:(null===(t=null==i?void 0:i.rows)||void 0===t?void 0:t.map(function(e){return{key:e.date,total:parseFloat(e.value),current_label:new Date(e.date).toLocaleDateString(),current_amount:parseFloat(e.value)}}))||[],total:parseFloat((null==i?void 0:i.value)||"0")},conversion_rate:{distribution:(null===(n=null==s?void 0:s.rows)||void 0===n?void 0:n.map(function(e){return{key:e.date,total:parseFloat(e.value),percentage:parseFloat(e.value)}}))||[],total:parseFloat((null==s?void 0:s.value)||"0")},completed_communications:{distribution:(null===(a=null==r?void 0:r.rows)||void 0===a?void 0:a.map(function(e){return{key:e.date,total:parseFloat(e.value),current_label:new Date(e.date).toLocaleDateString(),current_amount:parseFloat(e.value)}}))||[],total:parseFloat((null==r?void 0:r.value)||"0")}}},Ew=function(e){var t,n;return{distribution:(null===(t=e.plots)||void 0===t?void 0:t.map(function(e){return{key:e.label,total:parseFloat(e.value),percentage:parseFloat(e.percentage||"0"),amount:parseFloat(e.value)}}))||[],total:(null===(n=e.plots)||void 0===n?void 0:n.reduce(function(e,t){return e+parseFloat(t.value)},0))||0}},Cw=function(e){var t,n={};return null===(t=e.plots)||void 0===t||t.forEach(function(e){var t;n[e.label]=(null===(t=e.rows)||void 0===t?void 0:t.map(function(e){return{key:e.date,total:parseFloat(e.value),current_label:new Date(e.date).toLocaleDateString(),current_amount:parseFloat(e.value)}}))||[]}),n},Sw=function(e){var t,n,a=null===(t=e.plots)||void 0===t?void 0:t[0];return{distribution:(null===(n=null==a?void 0:a.rows)||void 0===n?void 0:n.map(function(e){return{key:e.date,total:parseFloat(e.value),current_label:new Date(e.date).toLocaleDateString(),current_amount:parseFloat(e.value)}}))||[],total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},Rw=function(e){var t,n,a=null===(t=e.plots)||void 0===t?void 0:t[0];return{distribution:(null===(n=null==a?void 0:a.rows)||void 0===n?void 0:n.map(function(e){return{key:e.date,total:parseFloat(e.value),current_label:new Date(e.date).toLocaleDateString(),current_amount:parseFloat(e.value)}}))||[],total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},Tw=function(e,a){return Pg(o({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,function(){var t,a,o;return n(this,function(n){switch(n.label){case 0:return t=Ef.getInstance(),a={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||[]},[4,t.post("/nova-insights/communications-by-day",a)];case 1:return o=n.sent(),[2,_w(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},a))},jw=function(e,a){return Pg(o({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return t(void 0,void 0,void 0,function(){var t,a,o;return n(this,function(n){switch(n.label){case 0:return t=Ef.getInstance(),a={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||[]},[4,t.post("/nova-insights/communications-by-substatus",a)];case 1:return o=n.sent(),[2,Ew(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},a))},Aw=function(e,a){return Pg(o({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,function(){var t,a,o;return n(this,function(n){switch(n.label){case 0:return t=Ef.getInstance(),a={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||[]},[4,t.post("/nova-insights/communications-substatus-by-day",a)];case 1:return o=n.sent(),[2,Cw(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},a))},Iw=function(e,a){return Pg(o({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,function(){var t,a,o;return n(this,function(n){switch(n.label){case 0:return t=Ef.getInstance(),a={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||[]},[4,t.post("/nova-insights/recovered-tpv-by-day",a)];case 1:return o=n.sent(),[2,Sw(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},a))},Ow=function(e,a){return Pg(o({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,function(){var t,a,o;return n(this,function(n){switch(n.label){case 0:return t=Ef.getInstance(),a={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||[]},[4,t.post("/nova-insights/recovered-payments-by-day",a)];case 1:return o=n.sent(),[2,Rw(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},a))};function Pw(){return Pw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Pw.apply(this,arguments)}
59
59
  /**
60
60
  * match-sorter-utils
61
61
  *
@@ -65,12 +65,12 @@ function ai(e){const t=ni.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
65
65
  * LICENSE.md file in the root directory of this source tree.
66
66
  *
67
67
  * @license MIT
68
- */const Sw={"À":"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"},Rw=Object.keys(Sw).join("|"),Tw=new RegExp(Rw,"g");
68
+ */const Lw={"À":"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"},zw=Object.keys(Lw).join("|"),Dw=new RegExp(zw,"g");
69
69
  /**
70
70
  * @name match-sorter
71
71
  * @license MIT license.
72
72
  * @copyright (c) 2099 Kent C. Dodds
73
73
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
74
74
  */
75
- const jw=7,Aw=6,Iw=5,Ow=4,Pw=3,Lw=2,zw=1,Dw=0;function qw(e,t,n){var a;if((n=n||{}).threshold=null!=(a=n.threshold)?a:zw,!n.accessors){const a=Nw(e,t,n);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:n.threshold,passed:a>=n.threshold}}const o=function(e,t){const n=[];for(let a=0,o=t.length;a<o;a++){const o=t[a],i=Bw(o),r=Fw(e,o);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Dw,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const a=o[e];let r=Nw(a.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=a.attributes;r<s&&r>=zw?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=a.itemValue)}return i}function Nw(e,t,n){return e=Mw(e,n),(t=Mw(t,n)).length>e.length?Dw:e===t?jw:(e=e.toLowerCase())===(t=t.toLowerCase())?Aw:e.startsWith(t)?Iw:e.includes(` ${t}`)?Ow:e.includes(t)?Pw:1===t.length?Dw:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?Lw:function(e,t){let n=0,a=0;function o(e,t,a){for(let o=a,i=t.length;o<i;o++){if(t[o]===e)return n+=1,o+1}return-1}function i(e){const a=1/e,o=n/t.length;return zw+o*a}const r=o(t[0],e,0);if(r<0)return Dw;a=r;for(let n=1,i=t.length;n<i;n++){a=o(t[n],e,a);if(!(a>-1))return Dw}const s=a-r;return i(s)}(e,t)}function Mw(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Tw,e=>Sw[e])),e}function Fw(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const a=n(e);return null==a?[]:Array.isArray(a)?a:[String(a)]}const Uw={maxRanking:1/0,minRanking:-1/0};function Bw(e){return"function"==typeof e?Uw:{...Uw,...e}}function Hw(e,t){const[n,a]=x.useState();x.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);a(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,x.useCallback(t=>{a(n=>{let a=t;"function"==typeof t&&(a=t(n));try{localStorage.setItem(e,JSON.stringify(a))}catch{}return a})},[e])]}var Ww,Gw=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}(),Vw=function(){function e(e){this.generateIdentifier=e,this.kv=new Gw}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}(),$w=(Ww=function(e,t){return Ww=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])},Ww(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}Ww(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Kw=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return $w(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}(Vw),Qw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r};function Jw(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 a=n,o=0;o<a.length;o++){var i=a[o];if(t(i))return i}}function Xw(e,t){Object.entries(e).forEach(function(e){var n=Qw(e,2),a=n[0],o=n[1];return t(o,a)})}function Yw(e,t){return-1!==e.indexOf(t)}function Zw(e,t){for(var n=0;n<e.length;n++){var a=e[n];if(t(a))return a}}var e_=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Jw(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),t_=function(e){return void 0===e},n_=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},a_=function(e){return n_(e)&&0===Object.keys(e).length},o_=function(e){return Array.isArray(e)},i_=function(e){return e instanceof Map},r_=function(e){return e instanceof Set},s_=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},c_=function(e){return"number"==typeof e&&isNaN(e)},u_=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||t_(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||s_(e)},l_=function(e){return e.replace(/\./g,"\\.")},p_=function(e){return e.map(String).map(l_).join(".")},d_=function(e){for(var t=[],n="",a=0;a<e.length;a++){var o=e.charAt(a);if("\\"===o&&"."===e.charAt(a+1))n+=".",a++;else"."===o?(t.push(n),n=""):n+=o}var i=n;return t.push(i),t},m_=function(){return m_=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m_.apply(this,arguments)},h_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},f_=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e};function g_(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var y_=[g_(t_,"undefined",function(){return null},function(){}),g_(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)}),g_(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),g_(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}),g_(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)}),g_(r_,"set",function(e){return f_([],h_(e.values()))},function(e){return new Set(e)}),g_(i_,"map",function(e){return f_([],h_(e.entries()))},function(e){return new Map(e)}),g_(function(e){return c_(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return c_(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),g_(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),g_(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function v_(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var b_=v_(function(e,t){return!!s_(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var a=n.symbolRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown symbol");return a}),x_=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),k_=v_(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return f_([],h_(e))},function(e,t){var n=x_[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function w_(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var __=v_(w_,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return m_({},e);var a={};return n.forEach(function(t){a[t]=e[t]}),a},function(e,t,n){var a=n.classRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(a.prototype),e)}),E_=v_(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 a=n.customTransformerRegistry.findByName(t[1]);if(!a)throw new Error("Trying to deserialize unknown custom value");return a.deserialize(e)}),C_=[__,b_,E_,k_],S_=function(e,t){var n=Zw(C_,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var a=Zw(y_,function(n){return n.isApplicable(e,t)});return a?{value:a.transform(e,t),type:a.annotation}:void 0},R_={};y_.forEach(function(e){R_[e.annotation]=e});var T_=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function j_(e){if(Yw(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Yw(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Yw(e,"constructor"))throw new Error("constructor is not allowed as a property")}var A_=function(e,t,n){if(j_(t),0===t.length)return n(e);for(var a=e,o=0;o<t.length-1;o++){var i=t[o];if(o_(a))a=a[+i];else if(n_(a))a=a[i];else if(r_(a)){a=T_(a,r=+i)}else if(i_(a)){if(o===t.length-2)break;var r=+i,s=0===+t[++o]?"key":"value",c=T_(a,r);switch(s){case"key":a=c;break;case"value":a=a.get(c)}}}var u=t[t.length-1];if(o_(a)?a[+u]=n(a[+u]):n_(a)&&(a[u]=n(a[u])),r_(a)){var l=T_(a,+u),p=n(l);l!==p&&(a.delete(l),a.add(p))}if(i_(a)){r=+t[t.length-2];var d=T_(a,r);switch(s=0===+u?"key":"value"){case"key":var m=n(d);a.set(m,a.get(d)),m!==d&&a.delete(d);break;case"value":a.set(d,n(a.get(d)))}}return e},I_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},O_=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e};function P_(e,t,n){if(void 0===n&&(n=[]),e)if(o_(e)){var a=I_(e,2),o=a[0],i=a[1];i&&Xw(i,function(e,a){P_(e,t,O_(O_([],I_(n)),I_(d_(a))))}),t(o,n)}else Xw(e,function(e,a){return P_(e,t,O_(O_([],I_(n)),I_(d_(a))))})}function L_(e,t,n){return P_(t,function(t,a){e=A_(e,a,function(e){return function(e,t,n){if(!o_(t)){var a=R_[t];if(!a)throw new Error("Unknown transformation: "+t);return a.untransform(e,n)}switch(t[0]){case"symbol":return b_.untransform(e,t,n);case"class":return __.untransform(e,t,n);case"custom":return E_.untransform(e,t,n);case"typed-array":return k_.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function z_(e,t){function n(t,n){var a=function(e,t){j_(t);for(var n=0;n<t.length;n++){var a=t[n];if(r_(e))e=T_(e,+a);else if(i_(e)){var o=+a,i=0===+t[++n]?"key":"value",r=T_(e,o);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[a]}return e}(e,d_(n));t.map(d_).forEach(function(t){e=A_(e,t,function(){return a})})}if(o_(t)){var a=I_(t,2),o=a[0],i=a[1];o.forEach(function(t){e=A_(e,d_(t),function(){return e})}),i&&Xw(i,n)}else Xw(t,n);return e}var D_=function(e,t,n,a,o,i,r){var s;void 0===o&&(o=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=u_(e);if(!c){!function(e,t,n){var a=n.get(e);a?a.push(t):n.set(e,[t])}(e,o,t);var u=r.get(e);if(u)return a?{transformedValue:null}:u}if(!function(e,t){return n_(e)||o_(e)||i_(e)||r_(e)||w_(e,t)}(e,n)){var l=S_(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(Yw(i,e))return{transformedValue:null};var d=S_(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=o_(m)?[]:{},f={};Xw(m,function(s,c){var u=D_(s,t,n,a,O_(O_([],I_(o)),[c]),O_(O_([],I_(i)),[e]),r);h[c]=u.transformedValue,o_(u.annotations)?f[c]=u.annotations:n_(u.annotations)&&Xw(u.annotations,function(e,t){f[l_(c)+"."+t]=e})});var g=a_(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function q_(e){return Object.prototype.toString.call(e).slice(8,-1)}function N_(e){return"Array"===q_(e)}function M_(e,t={}){if(N_(e))return e.map(e=>M_(e,t));if(!function(e){if("Object"!==q_(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,a)=>{if(N_(t.props)&&!t.props.includes(a))return n;return function(e,t,n,a,o){const i={}.propertyIsEnumerable.call(a,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),o&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,a,M_(e[a],t),e,t.nonenumerable),n},{})}var F_=function(){return F_=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},F_.apply(this,arguments)},U_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},B_=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e},H_=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Kw,this.symbolRegistry=new Vw(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new e_,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=D_(e,t,this,this.dedupe),a={json:n.transformedValue};n.annotations&&(a.meta=F_(F_({},a.meta),{values:n.annotations}));var o,i,r,s,c=(o=t,i=this.dedupe,r={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){i||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=I_(e),n=t[0],a=t.slice(1);0===n.length?s=a.map(p_):r[p_(n)]=a.map(p_)}}),s?a_(r)?[s]:[s,r]:a_(r)?void 0:r);return c&&(a.meta=F_(F_({},a.meta),{referentialEqualities:c})),a},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,a=M_(t);return(null==n?void 0:n.values)&&(a=L_(a,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(a=z_(a,n.referentialEqualities)),a},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(F_({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,B_([],U_(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 W_={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},G_=x.createContext(W_);function V_({theme:e,...t}){return x.createElement(G_.Provider,Cw({value:e},t))}function $_({queryState:e,observerCount:t,isStale:n,theme:a}){return"fetching"===e.fetchStatus?a.active:t?"paused"===e.fetchStatus?a.paused:n?a.warning:a.success:a.gray}function K_(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Q_(e,t,n={}){return x.forwardRef(({style:a,...o},i)=>{const r=x.useContext(G_),s=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=x.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return x.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),a=({matches:e})=>n(e);return t.addListener(a),()=>{t.removeListener(a)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,r):n}:e,{});return x.createElement(e,{...o,style:{..."function"==typeof t?t(o,r):t,...a,...s},ref:i})})}const J_=(e,t=!1)=>{const{json:n}=H_.serialize(e);return JSON.stringify(n,null,t?2:void 0)},X_=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Y_=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Z_={"Status > Last Updated":(e,t)=>X_(e)===X_(t)?Y_(e,t):X_(e)>X_(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Y_},eE=500,tE={top:"bottom",bottom:"top",left:"right",right:"left"};function nE(e){return["left","right"].includes(e)}function aE(e){return tE[e]}function oE(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function iE(e="bottom"){const t=nE(e),n=aE(e),a=oE("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[a]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const rE=Q_("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"}}),sE=Q_("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),cE=Q_("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"})),uE=Q_("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),lE=Q_("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),pE=Q_("code",{fontSize:".9em",color:"inherit",background:"inherit"}),dE=Q_("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),mE=Q_("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 hE({text:e}){return x.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const fE=Q_("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),gE=Q_("span",{color:"white"}),yE=Q_("button",{cursor:"pointer",color:"white"}),vE=Q_("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),bE=({value:e})=>{const[t,n]=x.useState("NoCopy");return x.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(H_.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?x.createElement(EE,null):"SuccessCopy"===t?x.createElement(SE,null):x.createElement(CE,null))},xE=Q_("span",(e,t)=>({color:t.danger})),kE=Q_("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),wE=Q_("span",{color:"grey",fontSize:".7em"}),_E=({expanded:e,style:t={}})=>x.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),EE=()=>x.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},x.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},x.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"}),x.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"}))),CE=()=>x.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},x.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},x.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"})),x.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),SE=()=>x.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},x.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},x.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 RE=({handleEntry:e,label:t,value:n,subEntries:a=[],subEntryPages:o=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=x.useState([]);return x.createElement(fE,{key:t},o.length?x.createElement(x.Fragment,null,x.createElement(vE,{onClick:()=>c()},x.createElement(_E,{expanded:r})," ",t," ",x.createElement(wE,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",a.length," ",a.length>1?"items":"item")),s?x.createElement(bE,{value:n}):null,r?1===o.length?x.createElement(kE,null,a.map(e)):x.createElement(kE,null,o.map((t,n)=>x.createElement("div",{key:n},x.createElement(fE,null,x.createElement(yE,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},x.createElement(_E,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?x.createElement(kE,null,t.map(e)):null)))):null):x.createElement(x.Fragment,null,x.createElement(gE,null,t,":")," ",x.createElement(xE,null,J_(n))))};function TE({value:e,defaultExpanded:t,renderer:n=RE,pageSize:a=100,copyable:o=!1,...i}){const[r,s]=x.useState(Boolean(t)),c=x.useCallback(()=>s(e=>!e),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const m=function(e,t){if(t<1)return[];let n=0;const a=[];for(;n<e.length;)a.push(e.slice(n,n+t)),n+=t;return a}(l,a);return n({handleEntry:t=>x.createElement(TE,Cw({key:t.label,value:e,renderer:n,copyable:o},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:o,toggleExpanded:c,pageSize:a,...i})}function jE(e){return x.createElement("svg",Cw({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-33.000000, 0.000000)"},x.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) "}),x.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"}),x.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 AE=(e,t,n=!1)=>wg.useSyncExternalStore(x.useCallback(t=>n?()=>{}:e.subscribe(ng.batchCalls(t)),[e,n]),t,t),IE=x.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:a,setIsOpen:o,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Rg({context:i}),g=f.getQueryCache(),[y,v]=Hw("reactQueryDevtoolsSortFn",Object.keys(Z_)[0]),[b,k]=Hw("reactQueryDevtoolsFilter",""),[w,_]=Hw("reactQueryDevtoolsBaseSort",1),E=x.useMemo(()=>Z_[y],[y]),C=AE(g,()=>g.getAll().length,!n),[S,R]=Hw("reactQueryDevtoolsActiveQueryHash",""),T=x.useMemo(()=>{const e=g.getAll();if(0===C)return[];const t=b?e.filter(e=>qw(e.queryHash,b).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,b,C,g]),[j,A]=x.useState(!1);return x.createElement(V_,{theme:W_},x.createElement(rE,Cw({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:eE,position:"relative",...d.style}}),x.createElement("style",{nonce:a,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+W_.backgroundAlt+" "+W_.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: "+W_.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+W_.gray+";\n border-radius: .5em;\n border: 3px solid "+W_.backgroundAlt+";\n }\n "}}),x.createElement("div",{style:iE(u),onMouseDown:r}),n&&x.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+W_.grayAlt,display:"flex",flexDirection:"column"}},x.createElement("div",{style:{padding:".5em",background:W_.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},x.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"}},x.createElement(jE,{"aria-hidden":!0}),x.createElement(hE,{text:"Close React Query Devtools"})),x.createElement("div",{style:{display:"flex",flexDirection:"column"}},x.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},x.createElement(PE,{queryCache:g}),u&&s?x.createElement(mE,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},x.createElement("option",{value:"left"},"Left"),x.createElement("option",{value:"right"},"Right"),x.createElement("option",{value:"top"},"Top"),x.createElement("option",{value:"bottom"},"Bottom")):null),x.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},x.createElement(dE,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"===e.key&&k("")},style:{flex:"1",width:"100%"}}),x.createElement(mE,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Z_).map(e=>x.createElement("option",{key:e,value:e},"Sort by ",e))),x.createElement(cE,{type:"button",onClick:()=>_(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),x.createElement(cE,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),x.createElement(cE,{type:"button",onClick:()=>{j?(Qf.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(Qf.setOnline(!1),A(!0))},"aria-label":j?"Restore offline mock":"Mock offline behavior",title:j?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:j?W_.danger:"currentColor",fill:"none"},j?x.createElement(x.Fragment,null,x.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),x.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),x.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),x.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"}),x.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"}),x.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):x.createElement(x.Fragment,null,x.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),x.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),x.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),x.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),x.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),x.createElement(hE,{text:j?"Restore offline mock":"Mock offline behavior"}))))),x.createElement("div",{style:{overflowY:"auto",flex:"1"}},T.map(e=>x.createElement(LE,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:g})))),S&&n?x.createElement(OE,{activeQueryHash:S,queryCache:g,queryClient:f,errorTypes:p}):null,c?x.createElement(cE,Cw({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{o(!1),null==m||m(e)}}),"Close"):null))}),OE=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:a})=>{var o,i;const r=AE(e,()=>e.getAll().find(e=>e.queryHash===t)),s=AE(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),c=null!=(o=AE(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,u=null!=(i=AE(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?i:0,l=C(()=>{if(r&&null!=s&&s.error){const e=a.find(e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())});return null==e?void 0:e.name}},[r,null==s?void 0:s.error,a]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),a=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:a}})};return x.createElement(sE,null,x.createElement("div",{style:{padding:".5em",background:W_.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),x.createElement("div",{style:{padding:".5em"}},x.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},x.createElement(pE,{style:{lineHeight:"1.8em"}},x.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},J_(r.queryKey,!0))),x.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:$_({queryState:s,isStale:c,observerCount:u,theme:W_}),flexShrink:0}},K_(r))),x.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",x.createElement(pE,null,u)),x.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",x.createElement(pE,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),x.createElement("div",{style:{background:W_.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),x.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},x.createElement(cE,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(zE)},disabled:"fetching"===s.fetchStatus,style:{background:W_.active}},"Refetch")," ",x.createElement(cE,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:W_.warning,color:W_.inputTextColor}},"Invalidate")," ",x.createElement(cE,{type:"button",onClick:()=>n.resetQueries(r),style:{background:W_.gray}},"Reset")," ",x.createElement(cE,{type:"button",onClick:()=>n.removeQueries(r),style:{background:W_.danger}},"Remove")," ",x.createElement(cE,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:W_.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===r.state.status?x.createElement(cE,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:W_.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):x.createElement("label",null,"Trigger error:",x.createElement(mE,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find(t=>t.name===e.target.value);p(t)}},x.createElement("option",{key:"",value:""}),a.map(e=>x.createElement("option",{key:e.name,value:e.name},e.name))))),x.createElement("div",{style:{background:W_.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),x.createElement("div",{style:{padding:".5em"}},x.createElement(TE,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),x.createElement("div",{style:{background:W_.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),x.createElement("div",{style:{padding:".5em"}},x.createElement(TE,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},PE=({queryCache:e})=>{const t=AE(e,()=>e.getAll().filter(e=>"fresh"===K_(e)).length),n=AE(e,()=>e.getAll().filter(e=>"fetching"===K_(e)).length),a=AE(e,()=>e.getAll().filter(e=>"paused"===K_(e)).length),o=AE(e,()=>e.getAll().filter(e=>"stale"===K_(e)).length),i=AE(e,()=>e.getAll().filter(e=>"inactive"===K_(e)).length);return x.createElement(uE,null,x.createElement(lE,{style:{background:W_.success,opacity:t?1:.3}},"fresh ",x.createElement(pE,null,"(",t,")"))," ",x.createElement(lE,{style:{background:W_.active,opacity:n?1:.3}},"fetching ",x.createElement(pE,null,"(",n,")"))," ",x.createElement(lE,{style:{background:W_.paused,opacity:a?1:.3}},"paused ",x.createElement(pE,null,"(",a,")"))," ",x.createElement(lE,{style:{background:W_.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",x.createElement(pE,null,"(",o,")"))," ",x.createElement(lE,{style:{background:W_.gray,opacity:i?1:.3}},"inactive ",x.createElement(pE,null,"(",i,")")))},LE=x.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:a})=>{var o,i,r,s;const c=null!=(o=AE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.queryHash}))?o:"",u=AE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.state}),l=null!=(i=AE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.isStale()}))&&i,p=null!=(r=AE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.isDisabled()}))&&r,d=null!=(s=AE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.getObserversCount()}))?s:0;return u?x.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+W_.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},x.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:$_({queryState:u,isStale:l,observerCount:d,theme:W_}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?x.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:W_.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,x.createElement(pE,{style:{padding:".5em"}},""+c)):null});function zE(){}LE.displayName="QueryRow";const DE="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:a={},position:o="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=x.useRef(null),p=x.useRef(null),[d,m]=Hw("reactQueryDevtoolsOpen",e),[h,f]=Hw("reactQueryDevtoolsHeight",eE),[g,y]=Hw("reactQueryDevtoolsWidth",eE),[v="bottom",b]=Hw("reactQueryDevtoolsPanelPosition",c),[k,w]=x.useState(!1),[_,E]=x.useState(!1),C=function(){const e=x.useRef(!1),t=x.useCallback(()=>e.current,[]);return x.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();x.useEffect(()=>{w(null!=d&&d)},[d,k,w]),x.useEffect(()=>{const e=p.current;if(e){const t=()=>{k&&(e.style.visibility="visible")},n=()=>{k||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[k]),x.useEffect(()=>{var e;if(k&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=oE("padding",v),n=nE(v),a=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:a,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:a,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?g:h)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(a).forEach(([t,n])=>{e.style[t]=n})}}},[k,v,h,g]);const{style:S={},...R}=t,{style:T={},onClick:j,...A}=a,I=function({position:e="bottom",height:t,width:n,devtoolsTheme:a,isOpen:o,isResizing:i,panelStyle:r}){const s=aE(e),c=oE("border",s),u=nE(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+a.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...i?{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:eE}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:eE}}}({position:v,devtoolsTheme:W_,isOpen:k,height:h,width:g,isResizing:_,panelStyle:S});return C()?x.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},x.createElement(V_,{theme:W_},x.createElement(IE,Cw({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},R,{style:I,isOpen:k,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=nE(v);E(!0);const{height:a,width:o}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=a+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{_&&E(!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:u}))),k?null:x.createElement("button",Cw({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==j||j(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"},...T}}),x.createElement(jE,{"aria-hidden":!0}),x.createElement(hE,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var qE,NE={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function ME(e){var a=this,i=e.children,r=process.env.ENVIRONMENT,s=C(function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"},[process.env.ENVIRONMENT]),c=w(!1),u=c[0],l=c[1],p=S(function(e){return t(a,void 0,void 0,function(){var t,a,i,r,c;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),a=t&&JSON.parse(t),i=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),c=r?JSON.parse(r).value:"",[4,Ef.refreshInstance({headers:o(o({},a),{"X-Environment":i||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}})})},[s,l]);E(function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}},[p]);var d=S(function(e){return t(a,void 0,void 0,function(){var t,a,i,r,c,u,p;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(a=t&&JSON.parse(t))?(i=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),c=r?null===(p=JSON.parse(r).value)||void 0===p?void 0:p.code:"",u=i?JSON.parse(i).value:"",[4,Ef.refreshInstance({headers:o(o({},a),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),my.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}})})},[s,l]);return E(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?d(n):"token"===t.key&&d(e)}}),d(e)},[l,d]),u?React.createElement(Tg,{client:my},i,React.createElement(DE,{initialIsOpen:!1})):React.createElement("div",{style:NE})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(qE||(qE={}));var FE=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&FE&&function(){t(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:if(!Oi())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,ji.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{Wm as AI,wf as Api,qE as ApiErrorCodes,ME as ApiProvider,Ef as ApiSingleton,qm as Cms,Dm as Country,Um as DataReport,zm as Organization,Lm as PaymentFiltersSection,Hm as ReconciliationAgendaInsight,Bm as ReconciliationReportType,Nm as ReportType,Pm as SendPaymentNotification,Fm as SmartRouting,Mm as TemplateType,_x as getQueryKeyGetNameAndIcon,Cx as getQueryKeyRequiredFields,_w as getSmartRecoveryOverview,dy as queryCache,my as queryClient,yx as use3DSExemptions,Zv as useAICreateWorkflow,$k as useAllFeatureFlags,cw as useAllowListDetail,sw as useBlackListDetail,Kk as useCachedFeatureFlag,yy as useCancelReport,ey as useChangePasswordV2,hv as useChangePaymentsWebhook,uv as useChangeStatusBlackList,lv as useChangeStatusItemBlackList,Ix as useChangeStylingSettings,py as useChargebacksUpload,yw as useChartExecute,Ux as useCommunicationDetails,Mx as useCommunications,Fx as useCommunicationsFilters,Xy as useConfirmedOtpMfa,gy as useCountRowsForReport,ob as useCreateAndExecuteChart,tb as useCreateChart,zy as useCreateMonitorTemplate,Ly as useCreateMonitorThreshold,ly as useCreateOperationTransaction,By as useCreatePaymentLinks,Vv as useCreateReconciliationAlert,Wv as useCreateReconciliationReportTemplate,hy as useCreateReconciliationsReportV2,vy as useCreateReportTemplate,fy as useCreateReportV2,My as useCreateRoles,Jv as useCreateSamlConfig,Tv as useCreateScheduledReport,oy as useCreateUserAuth0,xy as useCreateWorkflow,Hg as useDeleteAccountsUserMassive,yv as useDeleteAllowlistItem,dv as useDeleteBlackListType,fv as useDeleteBlockListItem,nb as useDeleteChart,Mv as useDeleteCustomizedApiKeys,Hy as useDeletePaymentLink,$v as useDeleteReconciliationAlert,Uy as useDeleteRoles,Yv as useDeleteSamlConfig,Av as useDeleteScheduledReport,qy as useDeleteUserTeamV2,_y as useDeleteVersion,qg as useDeleteWebhookV2,Ey as useDuplicateVersion,Wy as useEditPaymentLinks,Fy as useEditRoles,Lx as useEmailVerification,Sv as useExcludeUsers,Vk as useFeatureFlags,nw as useFirebaseUserSubscribe,eb as useGenerateFeedback,$b as useGetAccounts,Qb as useGetAccountsByUser,Kb as useGetAccountsV2,dw as useGetAllConfigRules,Db as useGetAllOrganizations,Wk as useGetAllReconciliationsAdvancements,Uk as useGetAllReconciliationsAgenda,Fk as useGetAllReconciliationsAlerts,Gk as useGetAllReconciliationsFees,Hk as useGetAllReconciliationsSales,Dk as useGetAllTableColumns,Ab as useGetAllowedIps,Qk as useGetAuditEvents,tx as useGetAuditLogsFilters,Jk as useGetAuditMonitorEventDetail,wv as useGetBatchRefundProcessedFileDownload,_v as useGetBatchRefundUserFileDownload,lw as useGetBatchRefunds,ow as useGetBlackList,rw as useGetBlockListSummary,mb as useGetCardBrands,vw as useGetChartsByUser,bw as useGetChartsByUserWithResults,wx as useGetCheckoutTemplate,kx as useGetCheckouts,Iv as useGetConditionalConfigRules,aw as useGetConfigAllowlist,Bb as useGetConnections,Fb as useGetConnectionsByPaymentMethod,Zk as useGetCountriesConfigPaymentLink,ew as useGetCountriesConfigPaymentLinkV2,Tb as useGetCredentials,Bv as useGetCredentialsMFA,Ob as useGetCustomizedApiKeys,Ib as useGetCustomizedApiKeysAccounts,jb as useGetCustomizedApiKeysMembers,Pb as useGetCustomizedApiKeysProducts,qv as useGetCustomizedApiKeysToken,nx as useGetDashboardStaticContents,Hb as useGetDialogs,Jx as useGetDownloadReport,Jy as useGetEmailOtp,Ub as useGetHashPylon,qx as useGetImpersonationEnabled,Dx as useGetImpersonationUsers,gk as useGetInsightsReport,yk as useGetInsightsReportAgain,Mb as useGetIntegrationByAccountV2,Nb as useGetIntegrationParams,kw as useGetLanguages,ax as useGetLocales,zx as useGetLoginMethods,hw as useGetMFAConfig,mw as useGetMFAExcludedUsers,fw as useGetMFAStatus,Jb as useGetMenu,Wx as useGetMergedNotifications,Ex as useGetNameAndIcon,Bx as useGetNotificationsCustomer,Gx as useGetNotificationsNumberMutation,zb as useGetOrganization,hb as useGetPaymentFilters,Yk as useGetPaymentLinkByCode,Xk as useGetPaymentLinks,db as useGetPaymentMethodsAndProviders,fb as useGetPaymentMetricsFilters,Xb as useGetPaymentStatusesStyles,gb as useGetPaymentTransactionsDetails,cb as useGetPaymentV2,pb as useGetPaymentsMethodsByCountry,xb as useGetPayoutDetail,wb as useGetPayoutHistoryDetail,kb as useGetPayoutTransactionDetail,Px as useGetPermissions,ok as useGetPermissionsCatalog,Ox as useGetProfile,_b as useGetProofOfCancel,Eb as useGetProofOfPayment,qb as useGetProviderParams,qk as useGetReconciliationActive,Bk as useGetReconciliationAgendaInsightsByKey,zk as useGetReconciliationFilters,Lk as useGetReconciliationMetrics,Zb as useGetReconciliationTransactionStatusesStyles,Ok as useGetReconciliationTransactions,Nk as useGetReconciliationsReportColumns,Mk as useGetReconciliationsReportTemplates,Zx as useGetRefundPdf,Yx as useGetReportColumns,Xx as useGetReportTemplates,Kx as useGetReportsList,Qx as useGetReportsListMultiEnv,Sx as useGetRequiredFields,nk as useGetRoles,ak as useGetRolesPermissions,xx as useGetRoutingMonitorsTemplate,bx as useGetRoutingMonitorsTemplates,Ov as useGetRule,gw as useGetSamlConfig,Rv as useGetScheduledReportsList,Pk as useGetSettlements,cx as useGetSmartRoutingConditionPaymentMethod,sx as useGetSmartRoutingConditionTypes,ux as useGetSmartRoutingConditionTypesValues,ik as useGetSmartRoutingDataReport,dx as useGetSmartRoutingDeclineGroups,ix as useGetSmartRoutingMethods,px as useGetSmartRoutingNextRoute,mx as useGetSmartRoutingPaymentRoute,fx as useGetSmartRoutingSearchConditionValues,hx as useGetSmartRoutingSimulateConditionTypeValues,rx as useGetSmartRoutingWorkflow,lx as useGetSmartRoutingWorkflowVersion,Rx as useGetStylingSdkDynamic,jx as useGetStylingSettings,Ax as useGetStylingSettingsV2,Tx as useGetStylingTheme,ek as useGetTeamsFiltersMembers,ex as useGetTimeZoneCatalog,tw as useGetTimezonePaymentLink,Qy as useGetTokenValidation,ub as useGetTransactionDetailsV2,yb as useGetTransactionHistoryByPaymentCode,lb as useGetTransactionRawResponse,Yb as useGetTransactionStatusesStyles,ww as useGetTranslations,Nx as useGetUsersToImpersonate,Hx as useGetValidateOpsgenieKey,Wb as useGetWebhookParamsV2,Vb as useGetWebhooksV2Detail,Gb as useGetWebhooksV3,kk as useInsights3dsConversionRateAndEvolution,wk as useInsights3dsDeclineReasons,_k as useInsights3dsFrictionlessVsChallenge,xk as useInsights3dsVolumeAndCountTx,Ik as useInsightsChargebacksByCardBrand,Tk as useInsightsChargebacksByProviderAndCardBrand,Rk as useInsightsChargebacksDisputed,jk as useInsightsChargebacksReasonsDistribution,Ak as useInsightsChargebacksStatusDistribution,Ck as useInsightsChargebacksTotalRateAndEvolution,Ek as useInsightsChargebacksVolumeAndCountTx,Sk as useInsightsChargebacksWinRate,rk as useInsightsConversionRateMetricsV2,dk as useInsightsCustomerPaymentsAndFraudMetrics,ck as useInsightsFallbackMetrics,bk as useInsightsFraudScreeningConversionRate,vk as useInsightsFraudScreeningVolumeAndCountTx,fk as useInsightsHomeMetrics,mk as useInsightsOverviewMetrics,hk as useInsightsOverviewMetricsV3,pk as useInsightsTotalPaymentsAndFraudMetrics,uk as useInsightsVolumeMetrics,lk as useInsightsVolumeMetricsV2,ny as useInviteUsersMultiaccountMassive,ox as useIsTesting,ry as useLoginMethods,vx as useNetworkTokensOnboarding,Kg as useNewPostConnectionValidate,Fg as usePatchAccountV2,iv as usePatchAddAllowlistItems,Lb as usePatchAllowedIps,rv as usePatchAllowlist,xw as usePatchAndExecuteChart,Fv as usePatchApiKeysEditNote,av as usePatchChangeStatusAllowlist,ov as usePatchChangeStatusAllowlistItem,ab as usePatchChartName,Qg as usePatchConnection,Dv as usePathCreateCustomizedApiKeys,Vx as usePathNotifications,Rb as usePayoutsFilters,Sb as usePayoutsList,Mg as usePostAccount,uw as usePostAllowlistMultiAccount,Uv as usePostApiKeysRoll,Hv as usePostAuditMonitors,kv as usePostBatchRefundByFile,mv as usePostBlackListBatch,pv as usePostBlackListItems,sv as usePostBlackListMultiAccount,iw as usePostBlockList,iy as usePostCall,Gg as usePostChangeStatusConnection,$g as usePostConnectionMultiAccount,nv as usePostCreateAllowlistMultiAccount,zv as usePostCreateCustomizedApiKeys,Qv as usePostCreateInsightsReport,Pv as usePostCreateRuleMultiAccount,Nv as usePostCredentialsValidatePassword,Jg as usePostDefaultRoutes,Lv as usePostEditRule,bb as usePostFraudTransactions,ev as usePostGetAllowlistItems,tv as usePostGetAllowlistMultiAccount,tk as usePostMembersPaginatedV2,sb as usePostPaymentsEvaluated,rb as usePostPaymentsLazy,Dy as usePostSlackMessageChannel,vb as usePostTransactions,Gy as usePostUserSettings,Ky as usePostUserSettingsPinned,$y as usePostUserSettingsTables,Vy as usePostUserThemeSettings,Wg as usePostValideStatusConnection,pw as usePostVelocityRules,Dg as usePostWebhookMultiAccount,gx as useProviderConversionRatesData,ky as usePublishVersion,Ug as usePutAccountPrincipal,Bg as usePutAccountsUserMassive,cv as usePutBlackListType,Vg as usePutCosts,wy as useSaveVersion,Cb as useSendPaymentNotification,Ny as useSetCustodian,Ew as useSmartRecoveryOverview,Ry as useSmartRoutingCreateDeclinedGroup,jy as useSmartRoutingEditWorkflowName,Py as useSmartRoutingMultiAccountDeclinedGroupCreate,Oy as useSmartRoutingRemoveDeclinedGroup,Ay as useSmartRoutingSimulateTransaction,Ty as useSmartRoutingToggleFavorite,Sy as useSmartRoutingUpdateDeclinedGroup,Iy as useSmartRoutingUpdateMonitorRedistribution,Cy as useToggleMethod,ay as useUnInviteUsersV2,Yy as useUnrollUserV2,cy as useUpdateCheckoutTemplate,sy as useUpdateIsActiveCheckout,Cv as useUpdateMFAConfig,Yg as useUpdateOrganizationStatus,ty as useUpdateProfile,Kv as useUpdateReconciliationAlert,Gv as useUpdateReconciliationReportTemplate,by as useUpdateReportTemplate,Xv as useUpdateSamlConfig,jv as useUpdateScheduledReport,uy as useUpdateStylingTheme,Ng as useUpdateWebhookV2,bv as useUploadBatchRefundsFileV2,xv as useUploadBatchRefundsV2,Ev as useUploadFileS3ClientBatchRefunds,vv as useValiateAllowlistItems,gv as useValidateBlockListItems,Xg as useValidateCredentials,Zg as useValidateOrgName,Zy as useValidatePasswordStatus,sk as useViewMoreMetrics};
75
+ const qw=7,Nw=6,Mw=5,Fw=4,Uw=3,Bw=2,Hw=1,Ww=0;function Gw(e,t,n){var a;if((n=n||{}).threshold=null!=(a=n.threshold)?a:Hw,!n.accessors){const a=Vw(e,t,n);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:n.threshold,passed:a>=n.threshold}}const o=function(e,t){const n=[];for(let a=0,o=t.length;a<o;a++){const o=t[a],i=Jw(o),r=Kw(e,o);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Ww,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const a=o[e];let r=Vw(a.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=a.attributes;r<s&&r>=Hw?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=a.itemValue)}return i}function Vw(e,t,n){return e=$w(e,n),(t=$w(t,n)).length>e.length?Ww:e===t?qw:(e=e.toLowerCase())===(t=t.toLowerCase())?Nw:e.startsWith(t)?Mw:e.includes(` ${t}`)?Fw:e.includes(t)?Uw:1===t.length?Ww:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?Bw:function(e,t){let n=0,a=0;function o(e,t,a){for(let o=a,i=t.length;o<i;o++){if(t[o]===e)return n+=1,o+1}return-1}function i(e){const a=1/e,o=n/t.length;return Hw+o*a}const r=o(t[0],e,0);if(r<0)return Ww;a=r;for(let n=1,i=t.length;n<i;n++){a=o(t[n],e,a);if(!(a>-1))return Ww}const s=a-r;return i(s)}(e,t)}function $w(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Dw,e=>Lw[e])),e}function Kw(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const a=n(e);return null==a?[]:Array.isArray(a)?a:[String(a)]}const Qw={maxRanking:1/0,minRanking:-1/0};function Jw(e){return"function"==typeof e?Qw:{...Qw,...e}}function Xw(e,t){const[n,a]=x.useState();x.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);a(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,x.useCallback(t=>{a(n=>{let a=t;"function"==typeof t&&(a=t(n));try{localStorage.setItem(e,JSON.stringify(a))}catch{}return a})},[e])]}var Yw,Zw=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}(),e_=function(){function e(e){this.generateIdentifier=e,this.kv=new Zw}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}(),t_=(Yw=function(e,t){return Yw=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])},Yw(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}Yw(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),n_=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return t_(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}(e_),a_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r};function o_(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 a=n,o=0;o<a.length;o++){var i=a[o];if(t(i))return i}}function i_(e,t){Object.entries(e).forEach(function(e){var n=a_(e,2),a=n[0],o=n[1];return t(o,a)})}function r_(e,t){return-1!==e.indexOf(t)}function s_(e,t){for(var n=0;n<e.length;n++){var a=e[n];if(t(a))return a}}var c_=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return o_(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),u_=function(e){return void 0===e},l_=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},p_=function(e){return l_(e)&&0===Object.keys(e).length},d_=function(e){return Array.isArray(e)},m_=function(e){return e instanceof Map},h_=function(e){return e instanceof Set},f_=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},g_=function(e){return"number"==typeof e&&isNaN(e)},y_=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||u_(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||f_(e)},v_=function(e){return e.replace(/\./g,"\\.")},b_=function(e){return e.map(String).map(v_).join(".")},x_=function(e){for(var t=[],n="",a=0;a<e.length;a++){var o=e.charAt(a);if("\\"===o&&"."===e.charAt(a+1))n+=".",a++;else"."===o?(t.push(n),n=""):n+=o}var i=n;return t.push(i),t},k_=function(){return k_=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},k_.apply(this,arguments)},w_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},__=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e};function E_(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var C_=[E_(u_,"undefined",function(){return null},function(){}),E_(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)}),E_(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),E_(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}),E_(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)}),E_(h_,"set",function(e){return __([],w_(e.values()))},function(e){return new Set(e)}),E_(m_,"map",function(e){return __([],w_(e.entries()))},function(e){return new Map(e)}),E_(function(e){return g_(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return g_(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),E_(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),E_(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function S_(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var R_=S_(function(e,t){return!!f_(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var a=n.symbolRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown symbol");return a}),T_=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),j_=S_(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return __([],w_(e))},function(e,t){var n=T_[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function A_(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var I_=S_(A_,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return k_({},e);var a={};return n.forEach(function(t){a[t]=e[t]}),a},function(e,t,n){var a=n.classRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(a.prototype),e)}),O_=S_(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 a=n.customTransformerRegistry.findByName(t[1]);if(!a)throw new Error("Trying to deserialize unknown custom value");return a.deserialize(e)}),P_=[I_,R_,O_,j_],L_=function(e,t){var n=s_(P_,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var a=s_(C_,function(n){return n.isApplicable(e,t)});return a?{value:a.transform(e,t),type:a.annotation}:void 0},z_={};C_.forEach(function(e){z_[e.annotation]=e});var D_=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function q_(e){if(r_(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(r_(e,"prototype"))throw new Error("prototype is not allowed as a property");if(r_(e,"constructor"))throw new Error("constructor is not allowed as a property")}var N_=function(e,t,n){if(q_(t),0===t.length)return n(e);for(var a=e,o=0;o<t.length-1;o++){var i=t[o];if(d_(a))a=a[+i];else if(l_(a))a=a[i];else if(h_(a)){a=D_(a,r=+i)}else if(m_(a)){if(o===t.length-2)break;var r=+i,s=0===+t[++o]?"key":"value",c=D_(a,r);switch(s){case"key":a=c;break;case"value":a=a.get(c)}}}var u=t[t.length-1];if(d_(a)?a[+u]=n(a[+u]):l_(a)&&(a[u]=n(a[u])),h_(a)){var l=D_(a,+u),p=n(l);l!==p&&(a.delete(l),a.add(p))}if(m_(a)){r=+t[t.length-2];var d=D_(a,r);switch(s=0===+u?"key":"value"){case"key":var m=n(d);a.set(m,a.get(d)),m!==d&&a.delete(d);break;case"value":a.set(d,n(a.get(d)))}}return e},M_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},F_=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e};function U_(e,t,n){if(void 0===n&&(n=[]),e)if(d_(e)){var a=M_(e,2),o=a[0],i=a[1];i&&i_(i,function(e,a){U_(e,t,F_(F_([],M_(n)),M_(x_(a))))}),t(o,n)}else i_(e,function(e,a){return U_(e,t,F_(F_([],M_(n)),M_(x_(a))))})}function B_(e,t,n){return U_(t,function(t,a){e=N_(e,a,function(e){return function(e,t,n){if(!d_(t)){var a=z_[t];if(!a)throw new Error("Unknown transformation: "+t);return a.untransform(e,n)}switch(t[0]){case"symbol":return R_.untransform(e,t,n);case"class":return I_.untransform(e,t,n);case"custom":return O_.untransform(e,t,n);case"typed-array":return j_.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function H_(e,t){function n(t,n){var a=function(e,t){q_(t);for(var n=0;n<t.length;n++){var a=t[n];if(h_(e))e=D_(e,+a);else if(m_(e)){var o=+a,i=0===+t[++n]?"key":"value",r=D_(e,o);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[a]}return e}(e,x_(n));t.map(x_).forEach(function(t){e=N_(e,t,function(){return a})})}if(d_(t)){var a=M_(t,2),o=a[0],i=a[1];o.forEach(function(t){e=N_(e,x_(t),function(){return e})}),i&&i_(i,n)}else i_(t,n);return e}var W_=function(e,t,n,a,o,i,r){var s;void 0===o&&(o=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=y_(e);if(!c){!function(e,t,n){var a=n.get(e);a?a.push(t):n.set(e,[t])}(e,o,t);var u=r.get(e);if(u)return a?{transformedValue:null}:u}if(!function(e,t){return l_(e)||d_(e)||m_(e)||h_(e)||A_(e,t)}(e,n)){var l=L_(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(r_(i,e))return{transformedValue:null};var d=L_(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=d_(m)?[]:{},f={};i_(m,function(s,c){var u=W_(s,t,n,a,F_(F_([],M_(o)),[c]),F_(F_([],M_(i)),[e]),r);h[c]=u.transformedValue,d_(u.annotations)?f[c]=u.annotations:l_(u.annotations)&&i_(u.annotations,function(e,t){f[v_(c)+"."+t]=e})});var g=p_(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function G_(e){return Object.prototype.toString.call(e).slice(8,-1)}function V_(e){return"Array"===G_(e)}function $_(e,t={}){if(V_(e))return e.map(e=>$_(e,t));if(!function(e){if("Object"!==G_(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,a)=>{if(V_(t.props)&&!t.props.includes(a))return n;return function(e,t,n,a,o){const i={}.propertyIsEnumerable.call(a,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),o&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,a,$_(e[a],t),e,t.nonenumerable),n},{})}var K_=function(){return K_=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},K_.apply(this,arguments)},Q_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},J_=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e},X_=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new n_,this.symbolRegistry=new e_(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new c_,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=W_(e,t,this,this.dedupe),a={json:n.transformedValue};n.annotations&&(a.meta=K_(K_({},a.meta),{values:n.annotations}));var o,i,r,s,c=(o=t,i=this.dedupe,r={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){i||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=M_(e),n=t[0],a=t.slice(1);0===n.length?s=a.map(b_):r[b_(n)]=a.map(b_)}}),s?p_(r)?[s]:[s,r]:p_(r)?void 0:r);return c&&(a.meta=K_(K_({},a.meta),{referentialEqualities:c})),a},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,a=$_(t);return(null==n?void 0:n.values)&&(a=B_(a,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(a=H_(a,n.referentialEqualities)),a},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(K_({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,J_([],Q_(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 Y_={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Z_=x.createContext(Y_);function eE({theme:e,...t}){return x.createElement(Z_.Provider,Pw({value:e},t))}function tE({queryState:e,observerCount:t,isStale:n,theme:a}){return"fetching"===e.fetchStatus?a.active:t?"paused"===e.fetchStatus?a.paused:n?a.warning:a.success:a.gray}function nE(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function aE(e,t,n={}){return x.forwardRef(({style:a,...o},i)=>{const r=x.useContext(Z_),s=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=x.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return x.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),a=({matches:e})=>n(e);return t.addListener(a),()=>{t.removeListener(a)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,r):n}:e,{});return x.createElement(e,{...o,style:{..."function"==typeof t?t(o,r):t,...a,...s},ref:i})})}const oE=(e,t=!1)=>{const{json:n}=X_.serialize(e);return JSON.stringify(n,null,t?2:void 0)},iE=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,rE=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,sE={"Status > Last Updated":(e,t)=>iE(e)===iE(t)?rE(e,t):iE(e)>iE(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":rE},cE=500,uE={top:"bottom",bottom:"top",left:"right",right:"left"};function lE(e){return["left","right"].includes(e)}function pE(e){return uE[e]}function dE(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function mE(e="bottom"){const t=lE(e),n=pE(e),a=dE("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[a]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const hE=aE("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"}}),fE=aE("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),gE=aE("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"})),yE=aE("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),vE=aE("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),bE=aE("code",{fontSize:".9em",color:"inherit",background:"inherit"}),xE=aE("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),kE=aE("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 wE({text:e}){return x.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const _E=aE("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),EE=aE("span",{color:"white"}),CE=aE("button",{cursor:"pointer",color:"white"}),SE=aE("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),RE=({value:e})=>{const[t,n]=x.useState("NoCopy");return x.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(X_.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?x.createElement(OE,null):"SuccessCopy"===t?x.createElement(LE,null):x.createElement(PE,null))},TE=aE("span",(e,t)=>({color:t.danger})),jE=aE("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),AE=aE("span",{color:"grey",fontSize:".7em"}),IE=({expanded:e,style:t={}})=>x.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),OE=()=>x.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},x.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},x.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"}),x.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"}))),PE=()=>x.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},x.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},x.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"})),x.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),LE=()=>x.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},x.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},x.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 zE=({handleEntry:e,label:t,value:n,subEntries:a=[],subEntryPages:o=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=x.useState([]);return x.createElement(_E,{key:t},o.length?x.createElement(x.Fragment,null,x.createElement(SE,{onClick:()=>c()},x.createElement(IE,{expanded:r})," ",t," ",x.createElement(AE,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",a.length," ",a.length>1?"items":"item")),s?x.createElement(RE,{value:n}):null,r?1===o.length?x.createElement(jE,null,a.map(e)):x.createElement(jE,null,o.map((t,n)=>x.createElement("div",{key:n},x.createElement(_E,null,x.createElement(CE,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},x.createElement(IE,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?x.createElement(jE,null,t.map(e)):null)))):null):x.createElement(x.Fragment,null,x.createElement(EE,null,t,":")," ",x.createElement(TE,null,oE(n))))};function DE({value:e,defaultExpanded:t,renderer:n=zE,pageSize:a=100,copyable:o=!1,...i}){const[r,s]=x.useState(Boolean(t)),c=x.useCallback(()=>s(e=>!e),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const m=function(e,t){if(t<1)return[];let n=0;const a=[];for(;n<e.length;)a.push(e.slice(n,n+t)),n+=t;return a}(l,a);return n({handleEntry:t=>x.createElement(DE,Pw({key:t.label,value:e,renderer:n,copyable:o},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:o,toggleExpanded:c,pageSize:a,...i})}function qE(e){return x.createElement("svg",Pw({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-33.000000, 0.000000)"},x.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) "}),x.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"}),x.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 NE=(e,t,n=!1)=>wg.useSyncExternalStore(x.useCallback(t=>n?()=>{}:e.subscribe(ng.batchCalls(t)),[e,n]),t,t),ME=x.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:a,setIsOpen:o,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Rg({context:i}),g=f.getQueryCache(),[y,v]=Xw("reactQueryDevtoolsSortFn",Object.keys(sE)[0]),[b,k]=Xw("reactQueryDevtoolsFilter",""),[w,_]=Xw("reactQueryDevtoolsBaseSort",1),E=x.useMemo(()=>sE[y],[y]),C=NE(g,()=>g.getAll().length,!n),[S,R]=Xw("reactQueryDevtoolsActiveQueryHash",""),T=x.useMemo(()=>{const e=g.getAll();if(0===C)return[];const t=b?e.filter(e=>Gw(e.queryHash,b).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,b,C,g]),[j,A]=x.useState(!1);return x.createElement(eE,{theme:Y_},x.createElement(hE,Pw({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:cE,position:"relative",...d.style}}),x.createElement("style",{nonce:a,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Y_.backgroundAlt+" "+Y_.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: "+Y_.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Y_.gray+";\n border-radius: .5em;\n border: 3px solid "+Y_.backgroundAlt+";\n }\n "}}),x.createElement("div",{style:mE(u),onMouseDown:r}),n&&x.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Y_.grayAlt,display:"flex",flexDirection:"column"}},x.createElement("div",{style:{padding:".5em",background:Y_.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},x.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"}},x.createElement(qE,{"aria-hidden":!0}),x.createElement(wE,{text:"Close React Query Devtools"})),x.createElement("div",{style:{display:"flex",flexDirection:"column"}},x.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},x.createElement(UE,{queryCache:g}),u&&s?x.createElement(kE,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},x.createElement("option",{value:"left"},"Left"),x.createElement("option",{value:"right"},"Right"),x.createElement("option",{value:"top"},"Top"),x.createElement("option",{value:"bottom"},"Bottom")):null),x.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},x.createElement(xE,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"===e.key&&k("")},style:{flex:"1",width:"100%"}}),x.createElement(kE,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(sE).map(e=>x.createElement("option",{key:e,value:e},"Sort by ",e))),x.createElement(gE,{type:"button",onClick:()=>_(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),x.createElement(gE,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),x.createElement(gE,{type:"button",onClick:()=>{j?(Qf.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(Qf.setOnline(!1),A(!0))},"aria-label":j?"Restore offline mock":"Mock offline behavior",title:j?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:j?Y_.danger:"currentColor",fill:"none"},j?x.createElement(x.Fragment,null,x.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),x.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),x.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),x.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"}),x.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"}),x.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):x.createElement(x.Fragment,null,x.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),x.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),x.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),x.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),x.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),x.createElement(wE,{text:j?"Restore offline mock":"Mock offline behavior"}))))),x.createElement("div",{style:{overflowY:"auto",flex:"1"}},T.map(e=>x.createElement(BE,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:g})))),S&&n?x.createElement(FE,{activeQueryHash:S,queryCache:g,queryClient:f,errorTypes:p}):null,c?x.createElement(gE,Pw({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{o(!1),null==m||m(e)}}),"Close"):null))}),FE=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:a})=>{var o,i;const r=NE(e,()=>e.getAll().find(e=>e.queryHash===t)),s=NE(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),c=null!=(o=NE(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,u=null!=(i=NE(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?i:0,l=C(()=>{if(r&&null!=s&&s.error){const e=a.find(e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())});return null==e?void 0:e.name}},[r,null==s?void 0:s.error,a]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),a=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:a}})};return x.createElement(fE,null,x.createElement("div",{style:{padding:".5em",background:Y_.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),x.createElement("div",{style:{padding:".5em"}},x.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},x.createElement(bE,{style:{lineHeight:"1.8em"}},x.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},oE(r.queryKey,!0))),x.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:tE({queryState:s,isStale:c,observerCount:u,theme:Y_}),flexShrink:0}},nE(r))),x.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",x.createElement(bE,null,u)),x.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",x.createElement(bE,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),x.createElement("div",{style:{background:Y_.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),x.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},x.createElement(gE,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(HE)},disabled:"fetching"===s.fetchStatus,style:{background:Y_.active}},"Refetch")," ",x.createElement(gE,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:Y_.warning,color:Y_.inputTextColor}},"Invalidate")," ",x.createElement(gE,{type:"button",onClick:()=>n.resetQueries(r),style:{background:Y_.gray}},"Reset")," ",x.createElement(gE,{type:"button",onClick:()=>n.removeQueries(r),style:{background:Y_.danger}},"Remove")," ",x.createElement(gE,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Y_.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===r.state.status?x.createElement(gE,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:Y_.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):x.createElement("label",null,"Trigger error:",x.createElement(kE,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find(t=>t.name===e.target.value);p(t)}},x.createElement("option",{key:"",value:""}),a.map(e=>x.createElement("option",{key:e.name,value:e.name},e.name))))),x.createElement("div",{style:{background:Y_.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),x.createElement("div",{style:{padding:".5em"}},x.createElement(DE,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),x.createElement("div",{style:{background:Y_.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),x.createElement("div",{style:{padding:".5em"}},x.createElement(DE,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},UE=({queryCache:e})=>{const t=NE(e,()=>e.getAll().filter(e=>"fresh"===nE(e)).length),n=NE(e,()=>e.getAll().filter(e=>"fetching"===nE(e)).length),a=NE(e,()=>e.getAll().filter(e=>"paused"===nE(e)).length),o=NE(e,()=>e.getAll().filter(e=>"stale"===nE(e)).length),i=NE(e,()=>e.getAll().filter(e=>"inactive"===nE(e)).length);return x.createElement(yE,null,x.createElement(vE,{style:{background:Y_.success,opacity:t?1:.3}},"fresh ",x.createElement(bE,null,"(",t,")"))," ",x.createElement(vE,{style:{background:Y_.active,opacity:n?1:.3}},"fetching ",x.createElement(bE,null,"(",n,")"))," ",x.createElement(vE,{style:{background:Y_.paused,opacity:a?1:.3}},"paused ",x.createElement(bE,null,"(",a,")"))," ",x.createElement(vE,{style:{background:Y_.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",x.createElement(bE,null,"(",o,")"))," ",x.createElement(vE,{style:{background:Y_.gray,opacity:i?1:.3}},"inactive ",x.createElement(bE,null,"(",i,")")))},BE=x.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:a})=>{var o,i,r,s;const c=null!=(o=NE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.queryHash}))?o:"",u=NE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.state}),l=null!=(i=NE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.isStale()}))&&i,p=null!=(r=NE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.isDisabled()}))&&r,d=null!=(s=NE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.getObserversCount()}))?s:0;return u?x.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+Y_.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},x.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:tE({queryState:u,isStale:l,observerCount:d,theme:Y_}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?x.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Y_.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,x.createElement(bE,{style:{padding:".5em"}},""+c)):null});function HE(){}BE.displayName="QueryRow";const WE="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:a={},position:o="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=x.useRef(null),p=x.useRef(null),[d,m]=Xw("reactQueryDevtoolsOpen",e),[h,f]=Xw("reactQueryDevtoolsHeight",cE),[g,y]=Xw("reactQueryDevtoolsWidth",cE),[v="bottom",b]=Xw("reactQueryDevtoolsPanelPosition",c),[k,w]=x.useState(!1),[_,E]=x.useState(!1),C=function(){const e=x.useRef(!1),t=x.useCallback(()=>e.current,[]);return x.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();x.useEffect(()=>{w(null!=d&&d)},[d,k,w]),x.useEffect(()=>{const e=p.current;if(e){const t=()=>{k&&(e.style.visibility="visible")},n=()=>{k||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[k]),x.useEffect(()=>{var e;if(k&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=dE("padding",v),n=lE(v),a=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:a,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:a,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?g:h)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(a).forEach(([t,n])=>{e.style[t]=n})}}},[k,v,h,g]);const{style:S={},...R}=t,{style:T={},onClick:j,...A}=a,I=function({position:e="bottom",height:t,width:n,devtoolsTheme:a,isOpen:o,isResizing:i,panelStyle:r}){const s=pE(e),c=dE("border",s),u=lE(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+a.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...i?{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:cE}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:cE}}}({position:v,devtoolsTheme:Y_,isOpen:k,height:h,width:g,isResizing:_,panelStyle:S});return C()?x.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},x.createElement(eE,{theme:Y_},x.createElement(ME,Pw({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},R,{style:I,isOpen:k,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=lE(v);E(!0);const{height:a,width:o}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=a+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{_&&E(!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:u}))),k?null:x.createElement("button",Pw({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==j||j(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"},...T}}),x.createElement(qE,{"aria-hidden":!0}),x.createElement(wE,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var GE,VE={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function $E(e){var a=this,i=e.children,r=process.env.ENVIRONMENT,s=C(function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"},[process.env.ENVIRONMENT]),c=w(!1),u=c[0],l=c[1],p=S(function(e){return t(a,void 0,void 0,function(){var t,a,i,r,c;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),a=t&&JSON.parse(t),i=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),c=r?JSON.parse(r).value:"",[4,Ef.refreshInstance({headers:o(o({},a),{"X-Environment":i||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}})})},[s,l]);E(function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}},[p]);var d=S(function(e){return t(a,void 0,void 0,function(){var t,a,i,r,c,u,p;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(a=t&&JSON.parse(t))?(i=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),c=r?null===(p=JSON.parse(r).value)||void 0===p?void 0:p.code:"",u=i?JSON.parse(i).value:"",[4,Ef.refreshInstance({headers:o(o({},a),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),my.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}})})},[s,l]);return E(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?d(n):"token"===t.key&&d(e)}}),d(e)},[l,d]),u?React.createElement(Tg,{client:my},i,React.createElement(WE,{initialIsOpen:!1})):React.createElement("div",{style:VE})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(GE||(GE={}));var KE=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&KE&&function(){t(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:if(!Oi())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,ji.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{Wm as AI,wf as Api,GE as ApiErrorCodes,$E as ApiProvider,Ef as ApiSingleton,qm as Cms,Dm as Country,Um as DataReport,zm as Organization,Lm as PaymentFiltersSection,Hm as ReconciliationAgendaInsight,Bm as ReconciliationReportType,Nm as ReportType,Pm as SendPaymentNotification,Fm as SmartRouting,Mm as TemplateType,_x as getQueryKeyGetNameAndIcon,Cx as getQueryKeyRequiredFields,dy as queryCache,my as queryClient,yx as use3DSExemptions,Zv as useAICreateWorkflow,$k as useAllFeatureFlags,cw as useAllowListDetail,sw as useBlackListDetail,Kk as useCachedFeatureFlag,yy as useCancelReport,ey as useChangePasswordV2,hv as useChangePaymentsWebhook,uv as useChangeStatusBlackList,lv as useChangeStatusItemBlackList,Ix as useChangeStylingSettings,py as useChargebacksUpload,yw as useChartExecute,Ux as useCommunicationDetails,Mx as useCommunications,Tw as useCommunicationsByDay,jw as useCommunicationsBySubstatus,Fx as useCommunicationsFilters,Aw as useCommunicationsSubstatusByDay,Xy as useConfirmedOtpMfa,gy as useCountRowsForReport,ob as useCreateAndExecuteChart,tb as useCreateChart,zy as useCreateMonitorTemplate,Ly as useCreateMonitorThreshold,ly as useCreateOperationTransaction,By as useCreatePaymentLinks,Vv as useCreateReconciliationAlert,Wv as useCreateReconciliationReportTemplate,hy as useCreateReconciliationsReportV2,vy as useCreateReportTemplate,fy as useCreateReportV2,My as useCreateRoles,Jv as useCreateSamlConfig,Tv as useCreateScheduledReport,oy as useCreateUserAuth0,xy as useCreateWorkflow,Hg as useDeleteAccountsUserMassive,yv as useDeleteAllowlistItem,dv as useDeleteBlackListType,fv as useDeleteBlockListItem,nb as useDeleteChart,Mv as useDeleteCustomizedApiKeys,Hy as useDeletePaymentLink,$v as useDeleteReconciliationAlert,Uy as useDeleteRoles,Yv as useDeleteSamlConfig,Av as useDeleteScheduledReport,qy as useDeleteUserTeamV2,_y as useDeleteVersion,qg as useDeleteWebhookV2,Ey as useDuplicateVersion,Wy as useEditPaymentLinks,Fy as useEditRoles,Lx as useEmailVerification,Sv as useExcludeUsers,Vk as useFeatureFlags,nw as useFirebaseUserSubscribe,eb as useGenerateFeedback,$b as useGetAccounts,Qb as useGetAccountsByUser,Kb as useGetAccountsV2,dw as useGetAllConfigRules,Db as useGetAllOrganizations,Wk as useGetAllReconciliationsAdvancements,Uk as useGetAllReconciliationsAgenda,Fk as useGetAllReconciliationsAlerts,Gk as useGetAllReconciliationsFees,Hk as useGetAllReconciliationsSales,Dk as useGetAllTableColumns,Ab as useGetAllowedIps,Qk as useGetAuditEvents,tx as useGetAuditLogsFilters,Jk as useGetAuditMonitorEventDetail,wv as useGetBatchRefundProcessedFileDownload,_v as useGetBatchRefundUserFileDownload,lw as useGetBatchRefunds,ow as useGetBlackList,rw as useGetBlockListSummary,mb as useGetCardBrands,vw as useGetChartsByUser,bw as useGetChartsByUserWithResults,wx as useGetCheckoutTemplate,kx as useGetCheckouts,Iv as useGetConditionalConfigRules,aw as useGetConfigAllowlist,Bb as useGetConnections,Fb as useGetConnectionsByPaymentMethod,Zk as useGetCountriesConfigPaymentLink,ew as useGetCountriesConfigPaymentLinkV2,Tb as useGetCredentials,Bv as useGetCredentialsMFA,Ob as useGetCustomizedApiKeys,Ib as useGetCustomizedApiKeysAccounts,jb as useGetCustomizedApiKeysMembers,Pb as useGetCustomizedApiKeysProducts,qv as useGetCustomizedApiKeysToken,nx as useGetDashboardStaticContents,Hb as useGetDialogs,Jx as useGetDownloadReport,Jy as useGetEmailOtp,Ub as useGetHashPylon,qx as useGetImpersonationEnabled,Dx as useGetImpersonationUsers,gk as useGetInsightsReport,yk as useGetInsightsReportAgain,Mb as useGetIntegrationByAccountV2,Nb as useGetIntegrationParams,kw as useGetLanguages,ax as useGetLocales,zx as useGetLoginMethods,hw as useGetMFAConfig,mw as useGetMFAExcludedUsers,fw as useGetMFAStatus,Jb as useGetMenu,Wx as useGetMergedNotifications,Ex as useGetNameAndIcon,Bx as useGetNotificationsCustomer,Gx as useGetNotificationsNumberMutation,zb as useGetOrganization,hb as useGetPaymentFilters,Yk as useGetPaymentLinkByCode,Xk as useGetPaymentLinks,db as useGetPaymentMethodsAndProviders,fb as useGetPaymentMetricsFilters,Xb as useGetPaymentStatusesStyles,gb as useGetPaymentTransactionsDetails,cb as useGetPaymentV2,pb as useGetPaymentsMethodsByCountry,xb as useGetPayoutDetail,wb as useGetPayoutHistoryDetail,kb as useGetPayoutTransactionDetail,Px as useGetPermissions,ok as useGetPermissionsCatalog,Ox as useGetProfile,_b as useGetProofOfCancel,Eb as useGetProofOfPayment,qb as useGetProviderParams,qk as useGetReconciliationActive,Bk as useGetReconciliationAgendaInsightsByKey,zk as useGetReconciliationFilters,Lk as useGetReconciliationMetrics,Zb as useGetReconciliationTransactionStatusesStyles,Ok as useGetReconciliationTransactions,Nk as useGetReconciliationsReportColumns,Mk as useGetReconciliationsReportTemplates,Zx as useGetRefundPdf,Yx as useGetReportColumns,Xx as useGetReportTemplates,Kx as useGetReportsList,Qx as useGetReportsListMultiEnv,Sx as useGetRequiredFields,nk as useGetRoles,ak as useGetRolesPermissions,xx as useGetRoutingMonitorsTemplate,bx as useGetRoutingMonitorsTemplates,Ov as useGetRule,gw as useGetSamlConfig,Rv as useGetScheduledReportsList,Pk as useGetSettlements,cx as useGetSmartRoutingConditionPaymentMethod,sx as useGetSmartRoutingConditionTypes,ux as useGetSmartRoutingConditionTypesValues,ik as useGetSmartRoutingDataReport,dx as useGetSmartRoutingDeclineGroups,ix as useGetSmartRoutingMethods,px as useGetSmartRoutingNextRoute,mx as useGetSmartRoutingPaymentRoute,fx as useGetSmartRoutingSearchConditionValues,hx as useGetSmartRoutingSimulateConditionTypeValues,rx as useGetSmartRoutingWorkflow,lx as useGetSmartRoutingWorkflowVersion,Rx as useGetStylingSdkDynamic,jx as useGetStylingSettings,Ax as useGetStylingSettingsV2,Tx as useGetStylingTheme,ek as useGetTeamsFiltersMembers,ex as useGetTimeZoneCatalog,tw as useGetTimezonePaymentLink,Qy as useGetTokenValidation,ub as useGetTransactionDetailsV2,yb as useGetTransactionHistoryByPaymentCode,lb as useGetTransactionRawResponse,Yb as useGetTransactionStatusesStyles,ww as useGetTranslations,Nx as useGetUsersToImpersonate,Hx as useGetValidateOpsgenieKey,Wb as useGetWebhookParamsV2,Vb as useGetWebhooksV2Detail,Gb as useGetWebhooksV3,kk as useInsights3dsConversionRateAndEvolution,wk as useInsights3dsDeclineReasons,_k as useInsights3dsFrictionlessVsChallenge,xk as useInsights3dsVolumeAndCountTx,Ik as useInsightsChargebacksByCardBrand,Tk as useInsightsChargebacksByProviderAndCardBrand,Rk as useInsightsChargebacksDisputed,jk as useInsightsChargebacksReasonsDistribution,Ak as useInsightsChargebacksStatusDistribution,Ck as useInsightsChargebacksTotalRateAndEvolution,Ek as useInsightsChargebacksVolumeAndCountTx,Sk as useInsightsChargebacksWinRate,rk as useInsightsConversionRateMetricsV2,dk as useInsightsCustomerPaymentsAndFraudMetrics,ck as useInsightsFallbackMetrics,bk as useInsightsFraudScreeningConversionRate,vk as useInsightsFraudScreeningVolumeAndCountTx,fk as useInsightsHomeMetrics,mk as useInsightsOverviewMetrics,hk as useInsightsOverviewMetricsV3,pk as useInsightsTotalPaymentsAndFraudMetrics,uk as useInsightsVolumeMetrics,lk as useInsightsVolumeMetricsV2,ny as useInviteUsersMultiaccountMassive,ox as useIsTesting,ry as useLoginMethods,vx as useNetworkTokensOnboarding,Kg as useNewPostConnectionValidate,Fg as usePatchAccountV2,iv as usePatchAddAllowlistItems,Lb as usePatchAllowedIps,rv as usePatchAllowlist,xw as usePatchAndExecuteChart,Fv as usePatchApiKeysEditNote,av as usePatchChangeStatusAllowlist,ov as usePatchChangeStatusAllowlistItem,ab as usePatchChartName,Qg as usePatchConnection,Dv as usePathCreateCustomizedApiKeys,Vx as usePathNotifications,Rb as usePayoutsFilters,Sb as usePayoutsList,Mg as usePostAccount,uw as usePostAllowlistMultiAccount,Uv as usePostApiKeysRoll,Hv as usePostAuditMonitors,kv as usePostBatchRefundByFile,mv as usePostBlackListBatch,pv as usePostBlackListItems,sv as usePostBlackListMultiAccount,iw as usePostBlockList,iy as usePostCall,Gg as usePostChangeStatusConnection,$g as usePostConnectionMultiAccount,nv as usePostCreateAllowlistMultiAccount,zv as usePostCreateCustomizedApiKeys,Qv as usePostCreateInsightsReport,Pv as usePostCreateRuleMultiAccount,Nv as usePostCredentialsValidatePassword,Jg as usePostDefaultRoutes,Lv as usePostEditRule,bb as usePostFraudTransactions,ev as usePostGetAllowlistItems,tv as usePostGetAllowlistMultiAccount,tk as usePostMembersPaginatedV2,sb as usePostPaymentsEvaluated,rb as usePostPaymentsLazy,Dy as usePostSlackMessageChannel,vb as usePostTransactions,Gy as usePostUserSettings,Ky as usePostUserSettingsPinned,$y as usePostUserSettingsTables,Vy as usePostUserThemeSettings,Wg as usePostValideStatusConnection,pw as usePostVelocityRules,Dg as usePostWebhookMultiAccount,gx as useProviderConversionRatesData,ky as usePublishVersion,Ug as usePutAccountPrincipal,Bg as usePutAccountsUserMassive,cv as usePutBlackListType,Vg as usePutCosts,Ow as useRecoveredPaymentsByDay,Iw as useRecoveredTPVByDay,wy as useSaveVersion,Cb as useSendPaymentNotification,Ny as useSetCustodian,Ry as useSmartRoutingCreateDeclinedGroup,jy as useSmartRoutingEditWorkflowName,Py as useSmartRoutingMultiAccountDeclinedGroupCreate,Oy as useSmartRoutingRemoveDeclinedGroup,Ay as useSmartRoutingSimulateTransaction,Ty as useSmartRoutingToggleFavorite,Sy as useSmartRoutingUpdateDeclinedGroup,Iy as useSmartRoutingUpdateMonitorRedistribution,Cy as useToggleMethod,ay as useUnInviteUsersV2,Yy as useUnrollUserV2,cy as useUpdateCheckoutTemplate,sy as useUpdateIsActiveCheckout,Cv as useUpdateMFAConfig,Yg as useUpdateOrganizationStatus,ty as useUpdateProfile,Kv as useUpdateReconciliationAlert,Gv as useUpdateReconciliationReportTemplate,by as useUpdateReportTemplate,Xv as useUpdateSamlConfig,jv as useUpdateScheduledReport,uy as useUpdateStylingTheme,Ng as useUpdateWebhookV2,bv as useUploadBatchRefundsFileV2,xv as useUploadBatchRefundsV2,Ev as useUploadFileS3ClientBatchRefunds,vv as useValiateAllowlistItems,gv as useValidateBlockListItems,Xg as useValidateCredentials,Zg as useValidateOrgName,Zy as useValidatePasswordStatus,sk as useViewMoreMetrics};
76
76
  //# sourceMappingURL=index.js.map