@yuno-payments/dashboard-api-mfe 1.2.2-CORECM-15741.2 → 1.2.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.
@@ -204,7 +204,7 @@ cookie/index.js:
204
204
  * MIT Licensed
205
205
  *)
206
206
  */
207
- function Vo(e){const t=Go.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Ko(){return Vo(document.cookie)}function $o(e){const t=e.headers.get("cookie"),n=t?Vo(t):{},o=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Ko():{}}case"include":return Ko();default:return{}}}(e);for(const t in o)e.headers.append("cookie",Go.serialize(t,o[t]));const a=se.getCookiesSync(e.url),r=Object.fromEntries(a.map((e=>[e.key,e.value])));for(const t of a)e.headers.append("cookie",t.toString());return{...o,...r,...n}}var Qo=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Qo||{});class Jo extends w{constructor(e,t,n,o){super({info:{header:`${e} ${t}`,path:t,method:e},resolver:n,options:o}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(t instanceof RegExp)return;if(Yt(t)===t)return;const n=function(e){return new URL(`/${e}`,"http://localhost").searchParams}(t);n.forEach(((e,t)=>{})),b.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/recipes/query-parameters`)}async parse(e){return{match:Zt(new URL(e.request.url),this.info.path,e.resolutionContext?.baseUrl),cookies:$o(e.request)}}predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=_(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),o=await async function(e){const t=e.clone(),n=await t.text(),o=t.status||200;return{status:o,statusText:t.statusText||Lo[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),a=(r=o.status)<300?"#69AB32":r<400?"#F0BB4B":"#E95F5D";var r;console.groupCollapsed(b.formatMessage(`${tn()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${a}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Yo(e){return(t,n,o={})=>new Jo(e,t,n,o)}const Xo={all:Yo(/.+/),head:Yo(Qo.HEAD),get:Yo(Qo.GET),post:Yo(Qo.POST),put:Yo(Qo.PUT),delete:Yo(Qo.DELETE),patch:Yo(Qo.PATCH),options:Yo(Qo.OPTIONS)},Zo=Symbol("bodyType");class ea extends Wt{[Zo]=null;constructor(e,t){const n=We(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,Fe,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=Ue.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static text(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new ea(e,n)}static json(e,t){const n=We(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const o=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",o?new Blob([o]).size.toString():"0"),new ea(o,n)}static xml(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new ea(e,n)}static html(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new ea(e,n)}static arrayBuffer(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new ea(e,n)}static formData(e,t){return new ea(e,We(t))}}g("undefined"!=typeof URL,b.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var ta,na={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},oa={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},aa={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ra={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ia=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],sa={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},ua=[Xo.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",(function(){return ea.json(na)})),Xo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",(function(){return ea.json(oa)})),Xo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",(function(){return ea.json(aa)})),Xo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",(function(){return ea.json(ra)})),Xo.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",(function(){return ea.json(ia)})),Xo.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",(function(){return ea.json(sa)}))],ca={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},la={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},da={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(ta||(ta={}));var pa={sales_volume_metric_group:da.sales_volume_metric_group,total_payments:da.total_payments},ha=Xo.get("/api/insights/overview-metrics",(function(){return ea.json(pa)})),ma=[Xo.get("/api/v3/insights/overview-metrics/".concat(ta.GENERAL),(function(){return ea.json({sales_volume_metric_group:pa.sales_volume_metric_group})})),Xo.get("/api/v3/insights/overview-metrics/".concat(ta.LATENCY),(function(){return ea.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})})),Xo.get("/api/v3/insights/overview-metrics/".concat(ta.STATUS),(function(){return ea.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})})),Xo.get("/api/v3/insights/overview-metrics/".concat(ta.SUBSCRIPTIONS),(function(){return ea.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})}))],fa=e([ha],ma,!0),ga=e([Xo.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",(function(){return ea.json(ca)})),Xo.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",(function(){return ea.json(la)})),Xo.get("*/dialogs",(function(){return ea.json({})})),Xo.get("*/accounts/webhooks/:accountCode",(function(){return ea.json({})})),Xo.get("*/accounts/webhooks/params-catalog",(function(){return ea.json({})})),Xo.get("*/accounts/webhooks-v2/:accountCode",(function(){return ea.json({})}))],fa,!0),ya={by_currency:[{currency_code:"USD",transactions:100,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD"},{currency_code:"COP",transactions:50,amount_local:4e7,amount_usd:10000.5,currency_code_local:"COP"}],by_connection:[{connection_name:"Stripe",transactions:80,amount_local:12e3,amount_usd:12e3,currency_code_local:"USD"},{connection_name:"PayPal",transactions:70,amount_local:13000.5,amount_usd:13000.5,currency_code_local:"USD"}],by_brand:[{brand:"Visa",transactions:90,amount_local:14e3,amount_usd:14e3,currency_code_local:"USD"},{brand:"Mastercard",transactions:60,amount_local:11000.5,amount_usd:11000.5,currency_code_local:"USD"}],by_payment_method:[{payment_method:"CARD",transactions:120,amount_local:2e4,amount_usd:2e4,currency_code_local:"USD"},{payment_method:"BANK_TRANSFER",transactions:30,amount_local:5000.5,amount_usd:5000.5,currency_code_local:"USD"}],total:{transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD"}},ba={total:100,page:1,page_size:10,total_pages:10},va={authorization_code:"AUTH123",card_category:"CREDIT",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",payment_method_category:"CARD",provider_id:"stripe",reconciliation_status:"NOT_RECONCILED",reconciliation_sub_status:"PENDING"},ka={transaction_id:"TXN123",transaction_date:"2025-01-15T10:30:00Z",acquirer:"STRIPE",authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",country:"US",currency:"USD",fee_status:"MATCHED",fee_sub_status:"OK",fee_taxes_diff:0,calculated_fix_costed_fee:.3,calculated_percentage_cost:2.9,percentage_cost:2.9,merchant_order_id:"ORDER123",provider_transaction_id:"PROV123",reconciliation_status:"RECONCILED",reconciliation_sub_status:"OK",type:"PAYMENT"},ja={not_reconciled:{data:[{id:"stripe",transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD",total_transactions:200},{id:"paypal",transactions:80,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD",total_transactions:120}],total:{transactions:230,amount_local:40000.5,amount_usd:40000.5,currency_code_local:"USD"}},status_conflict:{data:[{id:"stripe",transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}],total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}},amount_conflict:{data:[{id:"paypal",transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}],total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}},wa=ya,_a={data:[va,t(t({},va),{authorization_code:"AUTH456",provider_id:"paypal"})],pagination:ba},Ea=t(t({},ya),{total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}}),Ca={data:[t(t({},va),{reconciliation_status:"STATUS_CONFLICT"})],pagination:t(t({},ba),{total:20,total_pages:2})},Sa=t(t({},ya),{total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}),Ra={data:[t(t({},va),{reconciliation_status:"AMOUNT_CONFLICT"})],pagination:t(t({},ba),{total:10,total_pages:1})},Ta={data:[{id:"2025-01-10",transactions:30,amount_local:8e3,amount_usd:8e3,currency_code_local:"USD"},{id:"2025-01-11",transactions:25,amount_local:6500,amount_usd:6500,currency_code_local:"USD"}],total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}},Ia=t(t({},ya),{total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}}),xa={data:[t(t({},va),{reconciliation_status:"DATE_CONFLICT"})],pagination:t(t({},ba),{total:55,total_pages:6})},Oa={data:[{id:"stripe",transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}],total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}},Aa=t(t({},ya),{total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}}),za={data:[t(t({},ka),{fee_status:"MISMATCH"}),t(t({},ka),{transaction_id:"TXN456",fee_status:"MISMATCH"})],pagination:t(t({},ba),{total:15,total_pages:2})},Pa={total_amount_usd:5e3,chart_data:[{date:"2025-01-10",amount_usd:1500},{date:"2025-01-11",amount_usd:1800},{date:"2025-01-12",amount_usd:1700}]},Da={data:[{id:"stripe",transaction_type:"PURCHASE",transactions:500,amount_local:1e5,amount_usd:1e5,currency_code_local:"USD"},{id:"paypal",transaction_type:"REFUND",transactions:300,amount_local:6e4,amount_usd:6e4,currency_code_local:"USD"}],total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}},La=t(t({},ya),{total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}}),Na={data:[ka],pagination:t(t({},ba),{total:800,total_pages:80})},qa={data:[{id:"stripe",transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}],total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}},Ma=t(t({},ya),{total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}}),Ua={data:[t(t({},{transaction_id:"TXN123",acquirer:"STRIPE",amount:100,authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",confirmation_status:"CONFIRMED",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",merchant_order_id:"ORDER123",merchant_transaction_id:"MERCH123",payment_id:"PAY123",provider_status:"APPROVED",provider_transaction_id:"PROV123",response_code:"00",status:"SUCCEEDED",type:"PAYMENT"}),{confirmation_status:"NOT_CONFIRMED"})],pagination:t(t({},ba),{total:25,total_pages:3})},Ba={total_amount_usd:75e3,chart_data:[{date:"2025-01-10",amount_usd:2e4},{date:"2025-01-11",amount_usd:25e3},{date:"2025-01-12",amount_usd:3e4}]},Fa="*/reconciliations/insights",Wa=[Xo.post("".concat(Fa,"/conflicts/summary"),(function(){return ea.json(ja)})),Xo.post("".concat(Fa,"/not-reconciled/aggregators"),(function(){return ea.json(wa)})),Xo.post("".concat(Fa,"/not-reconciled/list"),(function(){return ea.json(_a)})),Xo.post("".concat(Fa,"/status-conflict/aggregators"),(function(){return ea.json(Ea)})),Xo.post("".concat(Fa,"/status-conflict/list"),(function(){return ea.json(Ca)})),Xo.post("".concat(Fa,"/amount-conflict/aggregators"),(function(){return ea.json(Sa)})),Xo.post("".concat(Fa,"/amount-conflict/list"),(function(){return ea.json(Ra)})),Xo.post("".concat(Fa,"/conflict-date/summary"),(function(){return ea.json(Ta)})),Xo.post("".concat(Fa,"/conflict-date/aggregators"),(function(){return ea.json(Ia)})),Xo.post("".concat(Fa,"/conflict-date/list"),(function(){return ea.json(xa)})),Xo.post("".concat(Fa,"/incorrect-fees/summary"),(function(){return ea.json(Oa)})),Xo.post("".concat(Fa,"/incorrect-fees/aggregators"),(function(){return ea.json(Aa)})),Xo.post("".concat(Fa,"/incorrect-fees/list"),(function(){return ea.json(za)})),Xo.post("".concat(Fa,"/fees-charged/summary"),(function(){return ea.json(Pa)})),Xo.post("".concat(Fa,"/reconciled/summary"),(function(){return ea.json(Da)})),Xo.post("".concat(Fa,"/reconciled/aggregators"),(function(){return ea.json(La)})),Xo.post("".concat(Fa,"/reconciled/list"),(function(){return ea.json(Na)})),Xo.post("".concat(Fa,"/not-confirm/summary"),(function(){return ea.json(qa)})),Xo.post("".concat(Fa,"/not-confirm/aggregators"),(function(){return ea.json(Ma)})),Xo.post("".concat(Fa,"/not-confirm/list"),(function(){return ea.json(Ua)})),Xo.post("".concat(Fa,"/amount-to-be-settled/summary"),(function(){return ea.json(Ba)}))],Ha=[{id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Plan Argentina con CFT y TEA",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]},{id:"",installment:6,rate:1.25,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:45.5},{type:"TEA",rate:180.12}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},availability:{start_at:"2025-01-01T00:00:00Z",finish_at:"2025-12-31T23:59:59Z"},types_list:null,created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-01T16:41:17.428285Z"},{id:"1688",code:"1381d64b-ed14-4739-8f0a-b3adbe5949b0",name:"Plan Colombia sin intereses",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-col-sin-interes",installments_plan:[{id:"",installment:1,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"},{id:"",installment:3,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"}],country_code:"CO",amount:{currency:"COP",min_value:"50000",max_value:"10000000"},availability:{},types_list:null,created_at:"2025-08-06T14:33:32.854396Z",updated_at:"2025-08-06T14:33:32.854396Z"}],Ga={id:"1689",code:"new-plan-code-uuid",name:"New Test Plan",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"new-plan-ref",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-10T12:00:00.000000Z",updated_at:"2025-08-10T12:00:00.000000Z"},Va={id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Updated Plan Name",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.2,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:40},{type:"TEA",rate:160}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-10T15:00:00.000000Z"},Ka={deleted:!0},$a=[Xo.get("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",(function(){return ea.json(Ha)})),Xo.post("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",(function(){return ea.json(Ga)})),Xo.patch("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",(function(){return ea.json(Va)})),Xo.delete("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",(function(){return ea.json(Ka)}))],Qa=e(e(e(e([],ua,!0),ga,!0),Wa,!0),$a,!0),Ja=function(...e){return new Do(...e)}.apply(void 0,Qa),Ya="MSW_ENABLED";function Xa(e){e?(localStorage.setItem(Ya,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(Ya),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function Za(){return"true"===localStorage.getItem(Ya)}function er(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return Xa(!0)},window.disableMSW=function(){return Xa(!1)},window.isMSWEnabled=Za);const{toString:tr}=Object.prototype,{getPrototypeOf:nr}=Object,{iterator:or,toStringTag:ar}=Symbol,rr=(ir=Object.create(null),e=>{const t=tr.call(e);return ir[t]||(ir[t]=t.slice(8,-1).toLowerCase())});var ir;const sr=e=>(e=e.toLowerCase(),t=>rr(t)===e),ur=e=>t=>typeof t===e,{isArray:cr}=Array,lr=ur("undefined");const dr=sr("ArrayBuffer");const pr=ur("string"),hr=ur("function"),mr=ur("number"),fr=e=>null!==e&&"object"==typeof e,gr=e=>{if("object"!==rr(e))return!1;const t=nr(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ar in e||or in e)},yr=sr("Date"),br=sr("File"),vr=sr("Blob"),kr=sr("FileList"),jr=sr("URLSearchParams"),[wr,_r,Er,Cr]=["ReadableStream","Request","Response","Headers"].map(sr);function Sr(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,a;if("object"!=typeof e&&(e=[e]),cr(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),r=a.length;let i;for(o=0;o<r;o++)i=a[o],t.call(null,e[i],i,e)}}function Rr(e,t){t=t.toLowerCase();const n=Object.keys(e);let o,a=n.length;for(;a-- >0;)if(o=n[a],t===o.toLowerCase())return o;return null}const Tr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ir=e=>!lr(e)&&e!==Tr;const xr=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&nr(Uint8Array)),Or=sr("HTMLFormElement"),Ar=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zr=sr("RegExp"),Pr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Sr(n,((n,a)=>{let r;!1!==(r=t(n,a,e))&&(o[a]=r||n)})),Object.defineProperties(e,o)};const Dr=sr("AsyncFunction"),Lr=(Nr="function"==typeof setImmediate,qr=hr(Tr.postMessage),Nr?setImmediate:qr?(Mr=`axios@${Math.random()}`,Ur=[],Tr.addEventListener("message",(({source:e,data:t})=>{e===Tr&&t===Mr&&Ur.length&&Ur.shift()()}),!1),e=>{Ur.push(e),Tr.postMessage(Mr,"*")}):e=>setTimeout(e));var Nr,qr,Mr,Ur;const Br="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Tr):"undefined"!=typeof process&&process.nextTick||Lr;var Fr={isArray:cr,isArrayBuffer:dr,isBuffer:function(e){return null!==e&&!lr(e)&&null!==e.constructor&&!lr(e.constructor)&&hr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||hr(e.append)&&("formdata"===(t=rr(e))||"object"===t&&hr(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&dr(e.buffer),t},isString:pr,isNumber:mr,isBoolean:e=>!0===e||!1===e,isObject:fr,isPlainObject:gr,isReadableStream:wr,isRequest:_r,isResponse:Er,isHeaders:Cr,isUndefined:lr,isDate:yr,isFile:br,isBlob:vr,isRegExp:zr,isFunction:hr,isStream:e=>fr(e)&&hr(e.pipe),isURLSearchParams:jr,isTypedArray:xr,isFileList:kr,forEach:Sr,merge:function e(){const{caseless:t}=Ir(this)&&this||{},n={},o=(o,a)=>{const r=t&&Rr(n,a)||a;gr(n[r])&&gr(o)?n[r]=e(n[r],o):gr(o)?n[r]=e({},o):cr(o)?n[r]=o.slice():n[r]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Sr(arguments[e],o);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(Sr(t,((t,o)=>{n&&hr(t)?e[o]=er(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let a,r,i;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),r=a.length;r-- >0;)i=a[r],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&nr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rr,kindOfTest:sr,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(cr(e))return e;let t=e.length;if(!mr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[or]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:Or,hasOwnProperty:Ar,hasOwnProp:Ar,reduceDescriptors:Pr,freezeMethods:e=>{Pr(e,((t,n)=>{if(hr(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];hr(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach((e=>{n[e]=!0}))};return cr(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Rr,global:Tr,isContextDefined:Ir,isSpecCompliantForm:function(e){return!!(e&&hr(e.append)&&"FormData"===e[ar]&&e[or])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(fr(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const a=cr(e)?[]:{};return Sr(e,((e,t)=>{const r=n(e,o+1);!lr(r)&&(a[t]=r)})),t[o]=void 0,a}}return e};return n(e,0)},isAsyncFn:Dr,isThenable:e=>e&&(fr(e)||hr(e))&&hr(e.then)&&hr(e.catch),setImmediate:Lr,asap:Br,isIterable:e=>null!=e&&hr(e[or])};function Wr(e,t,n,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}Fr.inherits(Wr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Fr.toJSONObject(this.config),code:this.code,status:this.status}}});const Hr=Wr.prototype,Gr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Gr[e]={value:e}})),Object.defineProperties(Wr,Gr),Object.defineProperty(Hr,"isAxiosError",{value:!0}),Wr.from=(e,t,n,o,a,r)=>{const i=Object.create(Hr);return Fr.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Wr.call(i,e.message,t,n,o,a),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};function Vr(e){return Fr.isPlainObject(e)||Fr.isArray(e)}function Kr(e){return Fr.endsWith(e,"[]")?e.slice(0,-2):e}function $r(e,t,n){return e?e.concat(t).map((function(e,t){return e=Kr(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Qr=Fr.toFlatObject(Fr,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Jr(e,t,n){if(!Fr.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=Fr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Fr.isUndefined(t[e])}))).metaTokens,a=n.visitor||c,r=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Fr.isSpecCompliantForm(t);if(!Fr.isFunction(a))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Fr.isDate(e))return e.toISOString();if(!s&&Fr.isBlob(e))throw new Wr("Blob is not supported. Use a Buffer instead.");return Fr.isArrayBuffer(e)||Fr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(Fr.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(Fr.isArray(e)&&function(e){return Fr.isArray(e)&&!e.some(Vr)}(e)||(Fr.isFileList(e)||Fr.endsWith(n,"[]"))&&(s=Fr.toArray(e)))return n=Kr(n),s.forEach((function(e,o){!Fr.isUndefined(e)&&null!==e&&t.append(!0===i?$r([n],o,r):null===i?n:n+"[]",u(e))})),!1;return!!Vr(e)||(t.append($r(a,n,r),u(e)),!1)}const l=[],d=Object.assign(Qr,{defaultVisitor:c,convertValue:u,isVisitable:Vr});if(!Fr.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!Fr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),Fr.forEach(n,(function(n,r){!0===(!(Fr.isUndefined(n)||null===n)&&a.call(t,n,Fr.isString(r)?r.trim():r,o,d))&&e(n,o?o.concat(r):[r])})),l.pop()}}(e),t}function Yr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Xr(e,t){this._pairs=[],e&&Jr(e,this,t)}const Zr=Xr.prototype;function ei(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ti(e,t,n){if(!t)return e;const o=n&&n.encode||ei;Fr.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let r;if(r=a?a(t,n):Fr.isURLSearchParams(t)?t.toString():new Xr(t,n).toString(o),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}Zr.append=function(e,t){this._pairs.push([e,t])},Zr.toString=function(e){const t=e?function(t){return e.call(this,t,Yr)}:Yr;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ni=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Fr.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},oi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ai={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Xr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ri="undefined"!=typeof window&&"undefined"!=typeof document,ii="object"==typeof navigator&&navigator||void 0,si=ri&&(!ii||["ReactNative","NativeScript","NS"].indexOf(ii.product)<0),ui="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ci=ri&&window.location.href||"http://localhost";var li={...Object.freeze({__proto__:null,hasBrowserEnv:ri,hasStandardBrowserEnv:si,hasStandardBrowserWebWorkerEnv:ui,navigator:ii,origin:ci}),...ai};function di(e){function t(e,n,o,a){let r=e[a++];if("__proto__"===r)return!0;const i=Number.isFinite(+r),s=a>=e.length;if(r=!r&&Fr.isArray(o)?o.length:r,s)return Fr.hasOwnProp(o,r)?o[r]=[o[r],n]:o[r]=n,!i;o[r]&&Fr.isObject(o[r])||(o[r]=[]);return t(e,n,o[r],a)&&Fr.isArray(o[r])&&(o[r]=function(e){const t={},n=Object.keys(e);let o;const a=n.length;let r;for(o=0;o<a;o++)r=n[o],t[r]=e[r];return t}(o[r])),!i}if(Fr.isFormData(e)&&Fr.isFunction(e.entries)){const n={};return Fr.forEachEntry(e,((e,o)=>{t(function(e){return Fr.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const pi={transitional:oi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=Fr.isObject(e);a&&Fr.isHTMLForm(e)&&(e=new FormData(e));if(Fr.isFormData(e))return o?JSON.stringify(di(e)):e;if(Fr.isArrayBuffer(e)||Fr.isBuffer(e)||Fr.isStream(e)||Fr.isFile(e)||Fr.isBlob(e)||Fr.isReadableStream(e))return e;if(Fr.isArrayBufferView(e))return e.buffer;if(Fr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Jr(e,new li.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return li.isNode&&Fr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=Fr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Jr(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(Fr.isString(e))try{return(t||JSON.parse)(e),Fr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pi.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(Fr.isResponse(e)||Fr.isReadableStream(e))return e;if(e&&Fr.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Wr.from(e,Wr.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:li.classes.FormData,Blob:li.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Fr.forEach(["delete","get","head","post","put","patch"],(e=>{pi.headers[e]={}}));var hi=pi;const mi=Fr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const fi=Symbol("internals");function gi(e){return e&&String(e).trim().toLowerCase()}function yi(e){return!1===e||null==e?e:Fr.isArray(e)?e.map(yi):String(e)}function bi(e,t,n,o,a){return Fr.isFunction(o)?o.call(this,t,n):(a&&(t=n),Fr.isString(t)?Fr.isString(o)?-1!==t.indexOf(o):Fr.isRegExp(o)?o.test(t):void 0:void 0)}class vi{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=gi(t);if(!a)throw new Error("header name must be a non-empty string");const r=Fr.findKey(o,a);(!r||void 0===o[r]||!0===n||void 0===n&&!1!==o[r])&&(o[r||t]=yi(e))}const r=(e,t)=>Fr.forEach(e,((e,n)=>a(e,n,t)));if(Fr.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(Fr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))r((e=>{const t={};let n,o,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),o=e.substring(a+1).trim(),!n||t[n]&&mi[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t);else if(Fr.isObject(e)&&Fr.isIterable(e)){let n,o,a={};for(const t of e){if(!Fr.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?Fr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}r(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=gi(e)){const n=Fr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(Fr.isFunction(t))return t.call(this,e,n);if(Fr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gi(e)){const n=Fr.findKey(this,e);return!(!n||void 0===this[n]||t&&!bi(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=gi(e)){const a=Fr.findKey(n,e);!a||t&&!bi(0,n[a],a,t)||(delete n[a],o=!0)}}return Fr.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const a=t[n];e&&!bi(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return Fr.forEach(this,((o,a)=>{const r=Fr.findKey(n,a);if(r)return t[r]=yi(o),void delete t[a];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();i!==a&&delete t[a],t[i]=yi(o),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Fr.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&Fr.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[fi]=this[fi]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=gi(e);t[o]||(!function(e,t){const n=Fr.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,a){return this[o].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[o]=!0)}return Fr.isArray(e)?e.forEach(o):o(e),this}}vi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Fr.reduceDescriptors(vi.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Fr.freezeMethods(vi);var ki=vi;function ji(e,t){const n=this||hi,o=t||n,a=ki.from(o.headers);let r=o.data;return Fr.forEach(e,(function(e){r=e.call(n,r,a.normalize(),t?t.status:void 0)})),a.normalize(),r}function wi(e){return!(!e||!e.__CANCEL__)}function _i(e,t,n){Wr.call(this,null==e?"canceled":e,Wr.ERR_CANCELED,t,n),this.name="CanceledError"}function Ei(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Wr("Request failed with status code "+n.status,[Wr.ERR_BAD_REQUEST,Wr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Fr.inherits(_i,Wr,{__CANCEL__:!0});const Ci=(e,t,n=3)=>{let o=0;const a=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a,r=0,i=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=o[i];a||(a=u),n[r]=s,o[r]=u;let l=i,d=0;for(;l!==r;)d+=n[l++],l%=e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-a<t)return;const p=c&&u-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,o,a=0,r=1e3/t;const i=(t,r=Date.now())=>{a=r,n=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=r?i(e,t):(n=e,o||(o=setTimeout((()=>{o=null,i(n)}),r-s)))},()=>n&&i(n)]}((n=>{const r=n.loaded,i=n.lengthComputable?n.total:void 0,s=r-o,u=a(s);o=r;e({loaded:r,total:i,progress:i?r/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&r<=i?(i-r)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Si=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Ri=e=>(...t)=>Fr.asap((()=>e(...t)));var Ti=li.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,li.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(li.origin),li.navigator&&/(msie|trident)/i.test(li.navigator.userAgent)):()=>!0,Ii=li.hasStandardBrowserEnv?{write(e,t,n,o,a,r){const i=[e+"="+encodeURIComponent(t)];Fr.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Fr.isString(o)&&i.push("path="+o),Fr.isString(a)&&i.push("domain="+a),!0===r&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function xi(e,t,n){let o=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Oi=e=>e instanceof ki?{...e}:e;function Ai(e,t){t=t||{};const n={};function o(e,t,n,o){return Fr.isPlainObject(e)&&Fr.isPlainObject(t)?Fr.merge.call({caseless:o},e,t):Fr.isPlainObject(t)?Fr.merge({},t):Fr.isArray(t)?t.slice():t}function a(e,t,n,a){return Fr.isUndefined(t)?Fr.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function r(e,t){if(!Fr.isUndefined(t))return o(void 0,t)}function i(e,t){return Fr.isUndefined(t)?Fr.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,a,r){return r in t?o(n,a):r in e?o(void 0,n):void 0}const u={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>a(Oi(e),Oi(t),0,!0)};return Fr.forEach(Object.keys(Object.assign({},e,t)),(function(o){const r=u[o]||a,i=r(e[o],t[o],o);Fr.isUndefined(i)&&r!==s||(n[o]=i)})),n}var zi=e=>{const t=Ai({},e);let n,{data:o,withXSRFToken:a,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:u}=t;if(t.headers=s=ki.from(s),t.url=ti(xi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),Fr.isFormData(o))if(li.hasStandardBrowserEnv||li.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(li.hasStandardBrowserEnv&&(a&&Fr.isFunction(a)&&(a=a(t)),a||!1!==a&&Ti(t.url))){const e=r&&i&&Ii.read(i);e&&s.set(r,e)}return t};var Pi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=zi(e);let a=o.data;const r=ki.from(o.headers).normalize();let i,s,u,c,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function m(){c&&c(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=ki.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Ei((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new Wr("Request aborted",Wr.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new Wr("Network Error",Wr.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||oi;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Wr(t,a.clarifyTimeoutError?Wr.ETIMEDOUT:Wr.ECONNABORTED,e,f)),f=null},void 0===a&&r.setContentType(null),"setRequestHeader"in f&&Fr.forEach(r.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),Fr.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),d&&"json"!==d&&(f.responseType=o.responseType),h&&([u,l]=Ci(h,!0),f.addEventListener("progress",u)),p&&f.upload&&([s,c]=Ci(p),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{f&&(n(!t||t.type?new _i(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);y&&-1===li.protocols.indexOf(y)?n(new Wr("Unsupported protocol "+y+":",Wr.ERR_BAD_REQUEST,e)):f.send(a||null)}))};var Di=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const a=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof Wr?t:new _i(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null,a(new Wr(`timeout ${t} of ms exceeded`,Wr.ETIMEDOUT))}),t);const i=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=o;return s.unsubscribe=()=>Fr.asap(i),s}};const Li=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,a=0;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},Ni=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},qi=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of Ni(e))yield*Li(n,t)}(e,t);let r,i=0,s=e=>{r||(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return s(),void e.close();let r=o.byteLength;if(n){let e=i+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},Mi="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ui=Mi&&"function"==typeof ReadableStream,Bi=Mi&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fi=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Wi=Ui&&Fi((()=>{let e=!1;const t=new Request(li.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Hi=Ui&&Fi((()=>Fr.isReadableStream(new Response("").body))),Gi={stream:Hi&&(e=>e.body)};var Vi;Mi&&(Vi=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Gi[e]&&(Gi[e]=Fr.isFunction(Vi[e])?t=>t[e]():(t,n)=>{throw new Wr(`Response type '${e}' is not supported`,Wr.ERR_NOT_SUPPORT,n)})})));const Ki=async(e,t)=>{const n=Fr.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Fr.isBlob(e))return e.size;if(Fr.isSpecCompliantForm(e)){const t=new Request(li.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Fr.isArrayBufferView(e)||Fr.isArrayBuffer(e)?e.byteLength:(Fr.isURLSearchParams(e)&&(e+=""),Fr.isString(e)?(await Bi(e)).byteLength:void 0)})(t):n};const $i={http:null,xhr:Pi,fetch:Mi&&(async e=>{let{url:t,method:n,data:o,signal:a,cancelToken:r,timeout:i,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:d="same-origin",fetchOptions:p}=zi(e);c=c?(c+"").toLowerCase():"text";let h,m=Di([a,r&&r.toAbortSignal()],i);const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(u&&Wi&&"get"!==n&&"head"!==n&&0!==(g=await Ki(l,o))){let e,n=new Request(t,{method:"POST",body:o,duplex:"half"});if(Fr.isFormData(o)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=Si(g,Ci(Ri(u)));o=qi(n.body,65536,e,t)}}Fr.isString(d)||(d=d?"include":"omit");const a="credentials"in Request.prototype;h=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:o,duplex:"half",credentials:a?d:void 0});let r=await fetch(h);const i=Hi&&("stream"===c||"response"===c);if(Hi&&(s||i&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=r[t]}));const t=Fr.toFiniteNumber(r.headers.get("content-length")),[n,o]=s&&Si(t,Ci(Ri(s),!0))||[];r=new Response(qi(r.body,65536,n,(()=>{o&&o(),f&&f()})),e)}c=c||"text";let y=await Gi[Fr.findKey(Gi,c)||"text"](r,e);return!i&&f&&f(),await new Promise(((t,n)=>{Ei(t,n,{data:y,headers:ki.from(r.headers),status:r.status,statusText:r.statusText,config:e,request:h})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Wr("Network Error",Wr.ERR_NETWORK,e,h),{cause:t.cause||t});throw Wr.from(t,t&&t.code,e,h)}})};Fr.forEach($i,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qi=e=>`- ${e}`,Ji=e=>Fr.isFunction(e)||null===e||!1===e;var Yi=e=>{e=Fr.isArray(e)?e:[e];const{length:t}=e;let n,o;const a={};for(let r=0;r<t;r++){let t;if(n=e[r],o=n,!Ji(n)&&(o=$i[(t=String(n)).toLowerCase()],void 0===o))throw new Wr(`Unknown adapter '${t}'`);if(o)break;a[t||"#"+r]=o}if(!o){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Wr("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qi).join("\n"):" "+Qi(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function Xi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _i(null,e)}function Zi(e){Xi(e),e.headers=ki.from(e.headers),e.data=ji.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Yi(e.adapter||hi.adapter)(e).then((function(t){return Xi(e),t.data=ji.call(e,e.transformResponse,t),t.headers=ki.from(t.headers),t}),(function(t){return wi(t)||(Xi(e),t&&t.response&&(t.response.data=ji.call(e,e.transformResponse,t.response),t.response.headers=ki.from(t.response.headers))),Promise.reject(t)}))}const es="1.9.0",ts={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ts[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ns={};ts.transitional=function(e,t,n){function o(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,r)=>{if(!1===e)throw new Wr(o(a," has been removed"+(t?" in "+t:"")),Wr.ERR_DEPRECATED);return t&&!ns[a]&&(ns[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,r)}},ts.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var os={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Wr("options must be an object",Wr.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const r=o[a],i=t[r];if(i){const t=e[r],n=void 0===t||i(t,r,e);if(!0!==n)throw new Wr("option "+r+" must be "+n,Wr.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Wr("Unknown option "+r,Wr.ERR_BAD_OPTION)}},validators:ts};const as=os.validators;let rs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ni,response:new ni}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ai(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&os.assertOptions(n,{silentJSONParsing:as.transitional(as.boolean),forcedJSONParsing:as.transitional(as.boolean),clarifyTimeoutError:as.transitional(as.boolean)},!1),null!=o&&(Fr.isFunction(o)?t.paramsSerializer={serialize:o}:os.assertOptions(o,{encode:as.function,serialize:as.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),os.assertOptions(t,{baseUrl:as.spelling("baseURL"),withXsrfToken:as.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=a&&Fr.merge(a.common,a[t.method]);a&&Fr.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=ki.concat(r,a);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[Zi.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);d<l;)c=c.then(e[d++],e[d++]);return c}l=i.length;let p=t;for(d=0;d<l;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Zi.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=u.length;d<l;)c=c.then(u[d++],u[d++]);return c}getUri(e){return ti(xi((e=Ai(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Fr.forEach(["delete","get","head","options"],(function(e){rs.prototype[e]=function(t,n){return this.request(Ai(n||{},{method:e,url:t,data:(n||{}).data}))}})),Fr.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,a){return this.request(Ai(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}rs.prototype[e]=t(),rs.prototype[e+"Form"]=t(!0)}));var is=rs;class ss{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,a){n.reason||(n.reason=new _i(e,o,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ss((function(t){e=t})),cancel:e}}}var us=ss;const cs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cs).forEach((([e,t])=>{cs[t]=e}));var ls=cs;const ds=function e(t){const n=new is(t),o=er(is.prototype.request,n);return Fr.extend(o,is.prototype,n,{allOwnKeys:!0}),Fr.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ai(t,n))},o}(hi);ds.Axios=is,ds.CanceledError=_i,ds.CancelToken=us,ds.isCancel=wi,ds.VERSION=es,ds.toFormData=Jr,ds.AxiosError=Wr,ds.Cancel=ds.CanceledError,ds.all=function(e){return Promise.all(e)},ds.spread=function(e){return function(t){return e.apply(null,t)}},ds.isAxiosError=function(e){return Fr.isObject(e)&&!0===e.isAxiosError},ds.mergeConfig=Ai,ds.AxiosHeaders=ki,ds.formToJSON=e=>di(Fr.isHTMLForm(e)?new FormData(e):e),ds.getAdapter=Yi,ds.HttpStatusCode=ls,ds.default=ds;var ps=ds,hs=function(e){var t=[];return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];if(Array.isArray(o)){var a=o.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(a))}else null!=o&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o))))})),t.join("&")},ms=function(e){function n(n){var o,a,r,i,s=this;return(s=e.call(this,n)||this).token="",null===(a=null===(o=s.instance)||void 0===o?void 0:o.interceptors)||void 0===a||a.request.use((function(e){return t(t({},e),{defaults:{headers:t(t({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})}),(function(e){return Promise.reject(e)})),null===(i=null===(r=s.instance)||void 0===r?void 0:r.interceptors)||void 0===i||i.response.use((function(e){return t({},e)}),(function(e){return Promise.reject(e)})),s}return a(n,e),n.prototype.getToken=function(){return"Bearer ".concat(this.token)},n.prototype.setToken=function(e){this.token=e},n.prototype.getUri=function(e){return this.instance.getUri(e)},n.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=ps.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},n.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},n.prototype.get=function(e,t){return this.instance.get(e,t)},n.prototype.options=function(e,t){return this.instance.options(e,t)},n.prototype.delete=function(e,t){return this.instance.delete(e,t)},n.prototype.head=function(e,t){return this.instance.head(e,t)},n.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},n.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},n.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},n.prototype.success=function(e){return null==e?void 0:e.data},n.prototype.error=function(e){throw e},n}((function(e){this.instance=ps.create(e)})),fs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function gs(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),n}var ys=TypeError,bs=gs(Object.freeze({__proto__:null,default:{}})),vs="function"==typeof Map&&Map.prototype,ks=Object.getOwnPropertyDescriptor&&vs?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,js=vs&&ks&&"function"==typeof ks.get?ks.get:null,ws=vs&&Map.prototype.forEach,_s="function"==typeof Set&&Set.prototype,Es=Object.getOwnPropertyDescriptor&&_s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Cs=_s&&Es&&"function"==typeof Es.get?Es.get:null,Ss=_s&&Set.prototype.forEach,Rs="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ts="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Is="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,xs=Boolean.prototype.valueOf,Os=Object.prototype.toString,As=Function.prototype.toString,zs=String.prototype.match,Ps=String.prototype.slice,Ds=String.prototype.replace,Ls=String.prototype.toUpperCase,Ns=String.prototype.toLowerCase,qs=RegExp.prototype.test,Ms=Array.prototype.concat,Us=Array.prototype.join,Bs=Array.prototype.slice,Fs=Math.floor,Ws="function"==typeof BigInt?BigInt.prototype.valueOf:null,Hs=Object.getOwnPropertySymbols,Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Vs="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Ks="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Vs||"symbol")?Symbol.toStringTag:null,$s=Object.prototype.propertyIsEnumerable,Qs=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Js(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||qs.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-Fs(-e):Fs(e);if(o!==e){var a=String(o),r=Ps.call(t,a.length+1);return Ds.call(a,n,"$&_")+"."+Ds.call(Ds.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ds.call(t,n,"$&_")}var Ys=bs,Xs=Ys.custom,Zs=uu(Xs)?Xs:null,eu={__proto__:null,double:'"',single:"'"},tu={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},nu=function e(t,n,o,a){var r=n||{};if(lu(r,"quoteStyle")&&!lu(eu,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lu(r,"maxStringLength")&&("number"==typeof r.maxStringLength?r.maxStringLength<0&&r.maxStringLength!==1/0:null!==r.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!lu(r,"customInspect")||r.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lu(r,"indent")&&null!==r.indent&&"\t"!==r.indent&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lu(r,"numericSeparator")&&"boolean"!=typeof r.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=r.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return hu(t,r);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return s?Js(t,u):u}if("bigint"==typeof t){var c=String(t)+"n";return s?Js(t,c):c}var l=void 0===r.depth?5:r.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return iu(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Us.call(Array(e.indent+1)," ")}return{base:n,prev:Us.call(Array(t+1),n)}}(r,o);if(void 0===a)a=[];else if(pu(a,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(a=Bs.call(a)).push(n),i){var s={depth:r.depth};return lu(r,"quoteStyle")&&(s.quoteStyle=r.quoteStyle),e(t,s,o+1,a)}return e(t,r,o+1,a)}if("function"==typeof t&&!su(t)){var h=function(e){if(e.name)return e.name;var t=zs.call(As.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),m=vu(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Us.call(m,", ")+" }":"")}if(uu(t)){var f=Vs?Ds.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Gs.call(t);return"object"!=typeof t||Vs?f:fu(f)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+Ns.call(String(t.nodeName)),y=t.attributes||[],b=0;b<y.length;b++)g+=" "+y[b].name+"="+ou(au(y[b].value),"double",r);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Ns.call(String(t.nodeName))+">"}if(iu(t)){if(0===t.length)return"[]";var v=vu(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(pu(e[t],"\n")>=0)return!1;return!0}(v)?"["+bu(v,d)+"]":"[ "+Us.call(v,", ")+" ]"}if(function(e){return"[object Error]"===du(e)&&ru(e)}(t)){var k=vu(t,p);return"cause"in Error.prototype||!("cause"in t)||$s.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Us.call(k,", ")+" }":"{ ["+String(t)+"] "+Us.call(Ms.call("[cause]: "+p(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(Zs&&"function"==typeof t[Zs]&&Ys)return Ys(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!js||!e||"object"!=typeof e)return!1;try{js.call(e);try{Cs.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var j=[];return ws&&ws.call(t,(function(e,n){j.push(p(n,t,!0)+" => "+p(e,t))})),yu("Map",js.call(t),j,d)}if(function(e){if(!Cs||!e||"object"!=typeof e)return!1;try{Cs.call(e);try{js.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Ss&&Ss.call(t,(function(e){w.push(p(e,t))})),yu("Set",Cs.call(t),w,d)}if(function(e){if(!Rs||!e||"object"!=typeof e)return!1;try{Rs.call(e,Rs);try{Ts.call(e,Ts)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return gu("WeakMap");if(function(e){if(!Ts||!e||"object"!=typeof e)return!1;try{Ts.call(e,Ts);try{Rs.call(e,Rs)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return gu("WeakSet");if(function(e){if(!Is||!e||"object"!=typeof e)return!1;try{return Is.call(e),!0}catch(e){}return!1}(t))return gu("WeakRef");if(function(e){return"[object Number]"===du(e)&&ru(e)}(t))return fu(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Ws)return!1;try{return Ws.call(e),!0}catch(e){}return!1}(t))return fu(p(Ws.call(t)));if(function(e){return"[object Boolean]"===du(e)&&ru(e)}(t))return fu(xs.call(t));if(function(e){return"[object String]"===du(e)&&ru(e)}(t))return fu(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==fs&&t===fs)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===du(e)&&ru(e)}(t)&&!su(t)){var _=vu(t,p),E=Qs?Qs(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&Ks&&Object(t)===t&&Ks in t?Ps.call(du(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+Us.call(Ms.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":d?R+"{"+bu(_,d)+"}":R+"{ "+Us.call(_,", ")+" }"}return String(t)};function ou(e,t,n){var o=n.quoteStyle||t,a=eu[o];return a+e+a}function au(e){return Ds.call(String(e),/"/g,"&quot;")}function ru(e){return!Ks||!("object"==typeof e&&(Ks in e||void 0!==e[Ks]))}function iu(e){return"[object Array]"===du(e)&&ru(e)}function su(e){return"[object RegExp]"===du(e)&&ru(e)}function uu(e){if(Vs)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Gs)return!1;try{return Gs.call(e),!0}catch(e){}return!1}var cu=Object.prototype.hasOwnProperty||function(e){return e in this};function lu(e,t){return cu.call(e,t)}function du(e){return Os.call(e)}function pu(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function hu(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return hu(Ps.call(e,0,t.maxStringLength),t)+o}var a=tu[t.quoteStyle||"single"];return a.lastIndex=0,ou(Ds.call(Ds.call(e,a,"\\$1"),/[\x00-\x1f]/g,mu),"single",t)}function mu(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Ls.call(t.toString(16))}function fu(e){return"Object("+e+")"}function gu(e){return e+" { ? }"}function yu(e,t,n,o){return e+" ("+t+") {"+(o?bu(n,o):Us.call(n,", "))+"}"}function bu(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Us.call(e,","+n)+"\n"+t.prev}function vu(e,t){var n=iu(e),o=[];if(n){o.length=e.length;for(var a=0;a<e.length;a++)o[a]=lu(e,a)?t(e[a],e):""}var r,i="function"==typeof Hs?Hs(e):[];if(Vs){r={};for(var s=0;s<i.length;s++)r["$"+i[s]]=i[s]}for(var u in e)lu(e,u)&&(n&&String(Number(u))===u&&u<e.length||Vs&&r["$"+u]instanceof Symbol||(qs.call(/[^\w$]/,u)?o.push(t(u,e)+": "+t(e[u],e)):o.push(u+": "+t(e[u],e))));if("function"==typeof Hs)for(var c=0;c<i.length;c++)$s.call(e,i[c])&&o.push("["+t(i[c])+"]: "+t(e[i[c]],e));return o}var ku=nu,ju=ys,wu=function(e,t,n){for(var o,a=e;null!=(o=a.next);a=o)if(o.key===t)return a.next=o.next,n||(o.next=e.next,e.next=o),o},_u=Object,Eu=Error,Cu=EvalError,Su=RangeError,Ru=ReferenceError,Tu=SyntaxError,Iu=URIError,xu=Math.abs,Ou=Math.floor,Au=Math.max,zu=Math.min,Pu=Math.pow,Du=Math.round,Lu=Number.isNaN||function(e){return e!=e},Nu=Object.getOwnPropertyDescriptor;if(Nu)try{Nu([],"length")}catch(e){Nu=null}var qu=Nu,Mu=Object.defineProperty||!1;if(Mu)try{Mu({},"a",{value:1})}catch(e){Mu=!1}var Uu,Bu,Fu,Wu,Hu,Gu,Vu,Ku,$u,Qu,Ju,Yu,Xu,Zu,ec,tc,nc=Mu;function oc(){return Gu?Hu:(Gu=1,Hu="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function ac(){return Ku?Vu:(Ku=1,Vu=_u.getPrototypeOf||null)}function rc(){if(Qu)return $u;Qu=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};return $u=function(o){var a=this;if("function"!=typeof a||"[object Function]"!==e.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var r,i=function(e,t){for(var n=[],o=t||0,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n}(arguments,1),s=t(0,a.length-i.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(r=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var e=a.apply(this,n(i,arguments));return Object(e)===e?e:this}return a.apply(o,n(i,arguments))})),a.prototype){var l=function(){};l.prototype=a.prototype,r.prototype=new l,l.prototype=null}return r},$u}function ic(){if(Yu)return Ju;Yu=1;var e=rc();return Ju=Function.prototype.bind||e}function sc(){return Zu?Xu:(Zu=1,Xu=Function.prototype.call)}function uc(){return tc?ec:(tc=1,ec=Function.prototype.apply)}var cc,lc,dc,pc,hc,mc,fc,gc="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,yc=ic(),bc=uc(),vc=sc(),kc=gc||yc.call(vc,bc),jc=ic(),wc=ys,_c=sc(),Ec=kc,Cc=function(e){if(e.length<1||"function"!=typeof e[0])throw new wc("a function is required");return Ec(jc,_c,e)};var Sc=_u,Rc=Eu,Tc=Cu,Ic=Su,xc=Ru,Oc=Tu,Ac=ys,zc=Iu,Pc=xu,Dc=Ou,Lc=Au,Nc=zu,qc=Pu,Mc=Du,Uc=function(e){return Lu(e)||0===e?e:e<0?-1:1},Bc=Function,Fc=function(e){try{return Bc('"use strict"; return ('+e+").constructor;")()}catch(e){}},Wc=qu,Hc=nc,Gc=function(){throw new Ac},Vc=Wc?function(){try{return Gc}catch(e){try{return Wc(arguments,"callee").get}catch(e){return Gc}}}():Gc,Kc=function(){if(Wu)return Fu;Wu=1;var e="undefined"!=typeof Symbol&&Symbol,t=Bu?Uu:(Bu=1,Uu=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0});return Fu=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),$c=function(){if(pc)return dc;pc=1;var e=oc(),t=ac(),n=function(){if(lc)return cc;lc=1;var e,t=Cc,n=qu;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,r=a.getPrototypeOf;return cc=o&&"function"==typeof o.get?t([o.get]):"function"==typeof r&&function(e){return r(null==e?e:a(e))}}();return dc=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),Qc=ac(),Jc=oc(),Yc=uc(),Xc=sc(),Zc={},el="undefined"!=typeof Uint8Array&&$c?$c(Uint8Array):fc,tl={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?fc:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?fc:ArrayBuffer,"%ArrayIteratorPrototype%":Kc&&$c?$c([][Symbol.iterator]()):fc,"%AsyncFromSyncIteratorPrototype%":fc,"%AsyncFunction%":Zc,"%AsyncGenerator%":Zc,"%AsyncGeneratorFunction%":Zc,"%AsyncIteratorPrototype%":Zc,"%Atomics%":"undefined"==typeof Atomics?fc:Atomics,"%BigInt%":"undefined"==typeof BigInt?fc:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?fc:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?fc:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?fc:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Rc,"%eval%":eval,"%EvalError%":Tc,"%Float16Array%":"undefined"==typeof Float16Array?fc:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?fc:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?fc:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?fc:FinalizationRegistry,"%Function%":Bc,"%GeneratorFunction%":Zc,"%Int8Array%":"undefined"==typeof Int8Array?fc:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?fc:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?fc:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Kc&&$c?$c($c([][Symbol.iterator]())):fc,"%JSON%":"object"==typeof JSON?JSON:fc,"%Map%":"undefined"==typeof Map?fc:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Kc&&$c?$c((new Map)[Symbol.iterator]()):fc,"%Math%":Math,"%Number%":Number,"%Object%":Sc,"%Object.getOwnPropertyDescriptor%":Wc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?fc:Promise,"%Proxy%":"undefined"==typeof Proxy?fc:Proxy,"%RangeError%":Ic,"%ReferenceError%":xc,"%Reflect%":"undefined"==typeof Reflect?fc:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?fc:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Kc&&$c?$c((new Set)[Symbol.iterator]()):fc,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?fc:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Kc&&$c?$c(""[Symbol.iterator]()):fc,"%Symbol%":Kc?Symbol:fc,"%SyntaxError%":Oc,"%ThrowTypeError%":Vc,"%TypedArray%":el,"%TypeError%":Ac,"%Uint8Array%":"undefined"==typeof Uint8Array?fc:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?fc:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?fc:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?fc:Uint32Array,"%URIError%":zc,"%WeakMap%":"undefined"==typeof WeakMap?fc:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?fc:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?fc:WeakSet,"%Function.prototype.call%":Xc,"%Function.prototype.apply%":Yc,"%Object.defineProperty%":Hc,"%Object.getPrototypeOf%":Qc,"%Math.abs%":Pc,"%Math.floor%":Dc,"%Math.max%":Lc,"%Math.min%":Nc,"%Math.pow%":qc,"%Math.round%":Mc,"%Math.sign%":Uc,"%Reflect.getPrototypeOf%":Jc};if($c)try{null.error}catch(e){var nl=$c($c(e));tl["%Error.prototype%"]=nl}var ol,al,rl,il,sl,ul,cl,ll,dl,pl,hl,ml,fl,gl,yl=function e(t){var n;if("%AsyncFunction%"===t)n=Fc("async function () {}");else if("%GeneratorFunction%"===t)n=Fc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Fc("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&$c&&(n=$c(a.prototype))}return tl[t]=n,n},bl={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},vl=ic(),kl=function(){if(mc)return hc;mc=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=ic();return hc=n.call(e,t)}(),jl=vl.call(Xc,Array.prototype.concat),wl=vl.call(Yc,Array.prototype.splice),_l=vl.call(Xc,String.prototype.replace),El=vl.call(Xc,String.prototype.slice),Cl=vl.call(Xc,RegExp.prototype.exec),Sl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Rl=/\\(\\)?/g,Tl=function(e,t){var n,o=e;if(kl(bl,o)&&(o="%"+(n=bl[o])[0]+"%"),kl(tl,o)){var a=tl[o];if(a===Zc&&(a=yl(o)),void 0===a&&!t)throw new Ac("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new Oc("intrinsic "+e+" does not exist!")},Il=function(e,t){if("string"!=typeof e||0===e.length)throw new Ac("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Ac('"allowMissing" argument must be a boolean');if(null===Cl(/^%?[^%]*%?$/,e))throw new Oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=El(e,0,1),n=El(e,-1);if("%"===t&&"%"!==n)throw new Oc("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Oc("invalid intrinsic syntax, expected opening `%`");var o=[];return _l(e,Sl,(function(e,t,n,a){o[o.length]=n?_l(a,Rl,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",a=Tl("%"+o+"%",t),r=a.name,i=a.value,s=!1,u=a.alias;u&&(o=u[0],wl(n,jl([0,1],u)));for(var c=1,l=!0;c<n.length;c+=1){var d=n[c],p=El(d,0,1),h=El(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new Oc("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),kl(tl,r="%"+(o+="."+d)+"%"))i=tl[r];else if(null!=i){if(!(d in i)){if(!t)throw new Ac("base intrinsic for "+e+" exists, but the property is not available.");return}if(Wc&&c+1>=n.length){var m=Wc(i,d);i=(l=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:i[d]}else l=kl(i,d),i=i[d];l&&!s&&(tl[r]=i)}}return i},xl=Il,Ol=Cc,Al=Ol([xl("%String.prototype.indexOf%")]),zl=function(e,t){var n=xl(e,!!t);return"function"==typeof n&&Al(e,".prototype.")>-1?Ol([n]):n},Pl=zl,Dl=nu,Ll=ys,Nl=Il("%Map%",!0),ql=Pl("Map.prototype.get",!0),Ml=Pl("Map.prototype.set",!0),Ul=Pl("Map.prototype.has",!0),Bl=Pl("Map.prototype.delete",!0),Fl=Pl("Map.prototype.size",!0),Wl=!!Nl&&function(){var e,t={assert:function(e){if(!t.has(e))throw new Ll("Side channel does not contain "+Dl(e))},delete:function(t){if(e){var n=Bl(e,t);return 0===Fl(e)&&(e=void 0),n}return!1},get:function(t){if(e)return ql(e,t)},has:function(t){return!!e&&Ul(e,t)},set:function(t,n){e||(e=new Nl),Ml(e,t,n)}};return t},Hl=zl,Gl=nu,Vl=Wl,Kl=ys,$l=Il("%WeakMap%",!0),Ql=Hl("WeakMap.prototype.get",!0),Jl=Hl("WeakMap.prototype.set",!0),Yl=Hl("WeakMap.prototype.has",!0),Xl=Hl("WeakMap.prototype.delete",!0),Zl=ys,ed=nu,td=($l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new Kl("Side channel does not contain "+Gl(e))},delete:function(n){if($l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Xl(e,n)}else if(Vl&&t)return t.delete(n);return!1},get:function(n){return $l&&n&&("object"==typeof n||"function"==typeof n)&&e?Ql(e,n):t&&t.get(n)},has:function(n){return $l&&n&&("object"==typeof n||"function"==typeof n)&&e?Yl(e,n):!!t&&t.has(n)},set:function(n,o){$l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new $l),Jl(e,n,o)):Vl&&(t||(t=Vl()),t.set(n,o))}};return n}:Vl)||Wl||function(){var e,t={assert:function(e){if(!t.has(e))throw new ju("Side channel does not contain "+ku(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return wu(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},get:function(t){return function(e,t){if(e){var n=wu(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!wu(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=wu(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},nd=String.prototype.replace,od=/%20/g,ad="RFC3986",rd={default:ad,formatters:{RFC1738:function(e){return nd.call(e,od,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:ad},id=rd,sd=Object.prototype.hasOwnProperty,ud=Array.isArray,cd=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ld=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},dd=1024,pd={arrayToObject:ld,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var a=t[o],r=a.obj[a.prop],i=Object.keys(r),s=0;s<i.length;++s){var u=i[s],c=r[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:r,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(ud(n)){for(var o=[],a=0;a<n.length;++a)void 0!==n[a]&&o.push(n[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,a){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<r.length;s+=dd){for(var u=r.length>=dd?r.slice(s,s+dd):r,c=[],l=0;l<u.length;++l){var d=u.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===id.RFC1738&&(40===d||41===d)?c[c.length]=u.charAt(l):d<128?c[c.length]=cd[d]:d<2048?c[c.length]=cd[192|d>>6]+cd[128|63&d]:d<55296||d>=57344?c[c.length]=cd[224|d>>12]+cd[128|d>>6&63]+cd[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&u.charCodeAt(l)),c[c.length]=cd[240|d>>18]+cd[128|d>>12&63]+cd[128|d>>6&63]+cd[128|63&d])}i+=c.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(ud(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(ud(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!sd.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return ud(t)&&!ud(n)&&(a=ld(t,o)),ud(t)&&ud(n)?(n.forEach((function(n,a){if(sd.call(t,a)){var r=t[a];r&&"object"==typeof r&&n&&"object"==typeof n?t[a]=e(r,n,o):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var r=n[a];return sd.call(t,a)?t[a]=e(t[a],r,o):t[a]=r,t}),a)}},hd=function(){var e,t={assert:function(e){if(!t.has(e))throw new Zl("Side channel does not contain "+ed(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=td()),e.set(t,n)}};return t},md=pd,fd=rd,gd=Object.prototype.hasOwnProperty,yd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},bd=Array.isArray,vd=Array.prototype.push,kd=function(e,t){vd.apply(e,bd(t)?t:[t])},jd=Date.prototype.toISOString,wd=fd.default,_d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:md.encode,encodeValuesOnly:!1,format:wd,formatter:fd.formatters[wd],indices:!1,serializeDate:function(e){return jd.call(e)},skipNulls:!1,strictNullHandling:!1},Ed={},Cd=function e(t,n,o,a,r,i,s,u,c,l,d,p,h,m,f,g,y,b){for(var v,k=t,j=b,w=0,_=!1;void 0!==(j=j.get(Ed))&&!_;){var E=j.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");_=!0}void 0===j.get(Ed)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=h(k):"comma"===o&&bd(k)&&(k=md.maybeMap(k,(function(e){return e instanceof Date?h(e):e}))),null===k){if(i)return c&&!g?c(n,_d.encoder,y,"key",m):n;k=""}if("string"==typeof(v=k)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||md.isBuffer(k))return c?[f(g?n:c(n,_d.encoder,y,"key",m))+"="+f(c(k,_d.encoder,y,"value",m))]:[f(n)+"="+f(String(k))];var C,S=[];if(void 0===k)return S;if("comma"===o&&bd(k))g&&c&&(k=md.maybeMap(k,c)),C=[{value:k.length>0?k.join(",")||null:void 0}];else if(bd(l))C=l;else{var R=Object.keys(k);C=d?R.sort(d):R}var T=u?n.replace(/\./g,"%2E"):n,I=a&&bd(k)&&1===k.length?T+"[]":T;if(r&&bd(k)&&0===k.length)return I+"[]";for(var x=0;x<C.length;++x){var O=C[x],A="object"==typeof O&&void 0!==O.value?O.value:k[O];if(!s||null!==A){var z=p&&u?O.replace(/\./g,"%2E"):O,P=bd(k)?"function"==typeof o?o(I,z):I:I+(p?"."+z:"["+z+"]");b.set(t,w);var D=hd();D.set(Ed,b),kd(S,e(A,P,o,a,r,i,s,u,"comma"===o&&g&&bd(k)?null:c,l,d,p,h,m,f,g,y,D))}}return S},Sd=pd,Rd=Object.prototype.hasOwnProperty,Td=Array.isArray,Id={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Sd.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},xd=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Od=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ad=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=i?a.slice(0,i.index):a,u=[];if(s){if(!n.plainObjects&&Rd.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var c=0;n.depth>0&&null!==(i=r.exec(a))&&c<n.depth;){if(c+=1,!n.plainObjects&&Rd.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(i[1])}if(i){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(i.index)+"]")}return function(e,t,n,o){for(var a=o?t:Od(t,n),r=e.length-1;r>=0;--r){var i,s=e[r];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=n.decodeDotInKeys?u.replace(/%2E/g,"."):u,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(i=[])[l]=a:"__proto__"!==c&&(i[c]=a):i={0:a}}a=i}return a}(u,t,n,o)}},zd=function(e,t){var n,o=e,a=function(e){if(!e)return _d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||_d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=fd.default;if(void 0!==e.format){if(!gd.call(fd.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=fd.formatters[n],r=_d.filter;if(("function"==typeof e.filter||bd(e.filter))&&(r=e.filter),o=e.arrayFormat in yd?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":_d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||_d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:_d.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:_d.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:_d.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?_d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:_d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:_d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:_d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:_d.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:_d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:_d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:_d.strictNullHandling}}(t);"function"==typeof a.filter?o=(0,a.filter)("",o):bd(a.filter)&&(n=a.filter);var r=[];if("object"!=typeof o||null===o)return"";var i=yd[a.arrayFormat],s="comma"===i&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var u=hd(),c=0;c<n.length;++c){var l=n[c];a.skipNulls&&null===o[l]||kd(r,Cd(o[l],l,i,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,u))}var d=r.join(a.delimiter),p=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),d.length>0?p+d:""},Pd=function(e,t){var n=function(e){if(!e)return Id;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Id.charset:e.charset,n=void 0===e.duplicates?Id.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||Id.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Id.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Id.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Id.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Id.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Id.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Id.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Id.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Id.decoder,delimiter:"string"==typeof e.delimiter||Sd.isRegExp(e.delimiter)?e.delimiter:Id.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Id.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Id.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Id.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Id.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Id.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Id.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a,r=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,r),s=-1,u=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?u="utf-8":"utf8=%26%2310003%3B"===i[a]&&(u="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var c,l,d=i[a],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;-1===h?(c=t.decoder(d,Id.decoder,u,"key"),l=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,h),Id.decoder,u,"key"),l=Sd.maybeMap(Od(d.slice(h+1),t),(function(e){return t.decoder(e,Id.decoder,u,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=xd(l)),d.indexOf("[]=")>-1&&(l=Td(l)?[l]:l);var m=Rd.call(n,c);m&&"combine"===t.duplicates?n[c]=Sd.combine(n[c],l):m&&"last"!==t.duplicates||(n[c]=l)}return n}(e,n):e,a=n.plainObjects?Object.create(null):{},r=Object.keys(o),i=0;i<r.length;++i){var s=r[i],u=Ad(s,o[s],n,"string"==typeof e);a=Sd.merge(a,u,n)}return!0===n.allowSparse?a:Sd.compact(a)},Dd={formats:rd,parse:Pd,stringify:zd},Ld={withCredentials:!1,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return Dd.stringify(e,{indices:!1})}},Nd=[{value:"CHART_NOT_EXPECTED",labelKey:"insights.feedback.issues.chartNotExpected"},{value:"TIME_RANGE_INCORRECT",labelKey:"insights.feedback.issues.timeRangeIncorrect"},{value:"DATA_INACCURATE",labelKey:"insights.feedback.issues.dataInaccurate"},{value:"NOT_ANSWERING_QUESTION",labelKey:"insights.feedback.issues.notAnsweringQuestion"},{value:"EXPECTED_INSIGHTS",labelKey:"insights.feedback.issues.expectedInsights"},{value:"OTHER",labelKey:"insights.feedback.issues.other"}];!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(ol||(ol={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(al||(al={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(rl||(rl={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(il||(il={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(sl||(sl={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(ul||(ul={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(cl||(cl={})),function(e){var t,n;e.DEFAULT_ROUTING_TYPE="smart-routing",(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(ll||(ll={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(dl||(dl={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.FEES="FEES",e.ADVANCEMENTS="ADVANCEMENTS",e.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",e.SETTLEMENTS_FEES="SETTLEMENTS_FEES",e.CASHFLOW="CASHFLOW",e.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS"}(pl||(pl={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(hl||(hl={})),function(e){var t;(t=e.AuditExportReportType||(e.AuditExportReportType={})).DASHBOARD="DASHBOARD",t.API="API",t.WEBHOOKS="WEBHOOKS",t.MONITORS="MONITORS"}(ml||(ml={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(fl||(fl={})),function(e){var t;(t=e.ConfigType||(e.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",t.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",t.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN"}(gl||(gl={}));var qd=["PAUSED","ACTIVE"],Md={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},Ud="DELETED",Bd={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},Fd=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},Wd=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],Hd=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],Gd=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],Vd=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],Kd=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],$d={docs_url:"https://docs.y.uno/reference/api-reference-overview"},Qd={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},Jd=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const Yd=[];for(let e=0;e<256;++e)Yd.push((e+256).toString(16).slice(1));let Xd;const Zd=new Uint8Array(16);var ep={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tp(e,t,n){if(ep.randomUUID&&!t&&!e)return ep.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!Xd){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Xd=crypto.getRandomValues.bind(crypto)}return Xd(Zd)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(Yd[e[t+0]]+Yd[e[t+1]]+Yd[e[t+2]]+Yd[e[t+3]]+"-"+Yd[e[t+4]]+Yd[e[t+5]]+"-"+Yd[e[t+6]]+Yd[e[t+7]]+"-"+Yd[e[t+8]]+Yd[e[t+9]]+"-"+Yd[e[t+10]]+Yd[e[t+11]]+Yd[e[t+12]]+Yd[e[t+13]]+Yd[e[t+14]]+Yd[e[t+15]]).toLowerCase()}(o)}var np=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function op(e){return e&&0!==e.length?{metadata_filters:e.map((function(e){return{key:e.field,conditional:e.type,values:e.values}}))}:{}}var ap=function(e){function i(n){var o=n?t(t({},Ld),n):Ld;return e.call(this,o)||this}return a(i,e),i.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},i.prototype.updateReconciliationReportTemplate=function(e){var n=e.type===pl.TRANSACTIONS?"TRANSACTIONS":e.type,o=t(t({},e),{type:n});return this.put("/v1/reconciliation/reports/templates",o)},i.prototype.createReconciliationReportTemplate=function(e){var n=e.type===pl.TRANSACTIONS?"TRANSACTIONS":e.type,o=t(t({},e),{type:n});return this.post("/v1/reconciliation/reports/templates",o)},i.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},i.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},i.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},i.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},i.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},i.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},i.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},i.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},i.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},i.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},i.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},i.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},i.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},i.prototype.getReconciliationInsightsConflictsSummary=function(e){return this.post("/reconciliations/insights/conflicts/summary",e)},i.prototype.getReconciliationInsightsNotReconciledAggregators=function(e){return this.post("/reconciliations/insights/not-reconciled/aggregators",e)},i.prototype.getReconciliationInsightsNotReconciledList=function(e){return this.post("/reconciliations/insights/not-reconciled/list",e)},i.prototype.getReconciliationInsightsStatusConflictAggregators=function(e){return this.post("/reconciliations/insights/status-conflict/aggregators",e)},i.prototype.getReconciliationInsightsStatusConflictList=function(e){return this.post("/reconciliations/insights/status-conflict/list",e)},i.prototype.getReconciliationInsightsAmountConflictAggregators=function(e){return this.post("/reconciliations/insights/amount-conflict/aggregators",e)},i.prototype.getReconciliationInsightsAmountConflictList=function(e){return this.post("/reconciliations/insights/amount-conflict/list",e)},i.prototype.getReconciliationInsightsConflictDateSummary=function(e){return this.post("/reconciliations/insights/conflict-date/summary",e)},i.prototype.getReconciliationInsightsConflictDateAggregators=function(e){return this.post("/reconciliations/insights/conflict-date/aggregators",e)},i.prototype.getReconciliationInsightsConflictDateList=function(e){return this.post("/reconciliations/insights/conflict-date/list",e)},i.prototype.getReconciliationInsightsIncorrectFeesSummary=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsIncorrectFeesAggregators=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/aggregators",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsIncorrectFeesList=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/list",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsFeesChargedSummary=function(e,t){return this.post("/reconciliations/insights/fees-charged/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsReconciledSummary=function(e,t){return this.post("/reconciliations/insights/reconciled/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsReconciledAggregators=function(e,t,n){var o={};return t&&(o.date_filter=t),n&&(o.type=n),this.post("/reconciliations/insights/reconciled/aggregators",e,Object.keys(o).length>0?{params:o}:void 0)},i.prototype.getReconciliationInsightsReconciledList=function(e,t,n){var o={};return t&&(o.date_filter=t),n&&(o.type=n),this.post("/reconciliations/insights/reconciled/list",e,Object.keys(o).length>0?{params:o}:void 0)},i.prototype.getReconciliationInsightsNotConfirmSummary=function(e){return this.post("/reconciliations/insights/not-confirm/summary",e)},i.prototype.getReconciliationInsightsNotConfirmAggregators=function(e){return this.post("/reconciliations/insights/not-confirm/aggregators",e)},i.prototype.getReconciliationInsightsNotConfirmList=function(e){return this.post("/reconciliations/insights/not-confirm/list",e)},i.prototype.getReconciliationInsightsAmountToBeSettledSummary=function(e){return this.post("/reconciliations/insights/amount-to-be-settled/summary",e)},i.prototype.postPaymentsLazy=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]);return a.start_date||(a.start_date=new Date),a.end_date||(a.end_date=new Date),this.post("/payments/lazy",t({account_codes:(null==n?void 0:n.split(","))||[]},op(o)),{params:a})},i.prototype.postPayouts=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]);return a.start_date||(a.start_date=new Date),a.end_date||(a.end_date=new Date),this.post("/payouts",t({account_codes:(null==n?void 0:n.split(","))||[]},op(o)),{params:a})},i.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},i.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=r(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},i.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},i.prototype.postTransactions=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]);return this.post("/v2/transactions",t({account_codes:(null==n?void 0:n.split(","))||[]},op(o)),{params:a})},i.prototype.postFraudTransactions=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]);return this.post("/fraud-transactions",t({account_codes:(null==n?void 0:n.split(","))||[]},op(o)),{params:a})},i.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},i.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},i.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},i.prototype.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},i.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,a=localStorage.getItem("x-organization-code"),r={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),a?{}:{headers:r})},i.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},i.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},i.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},i.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},i.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},i.prototype.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},i.prototype.uploadChargebacks=function(e,t,n,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":tp()}})},i.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},i.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},i.prototype.getDeveloperCredentials=function(e,t,n,o){var a={};return e&&(a["x-password"]=e),t&&(a["x-account-code"]=t),n&&(a["x-otp"]=n),o&&(a["x-mfa-token"]=o),this.get("/v2/developers/credentials",{headers:a})},i.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},i.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{headers:{"x-password":e}})},i.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},i.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},i.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},i.prototype.getAllOrganization=function(){return this.get("/organizations/all")},i.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:a})},i.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},i.prototype.putCosts=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){return[2,this.put("/connections/costs",{costs:[e]})]}))}))},i.prototype.updateOrganizationStatus=function(){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.patch("/organizations/status")]}))}))},i.prototype.addToRiskList=function(e,t){return this.post("/payments/".concat(e,"/add-to-risk-list"),t)},i.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},i.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},i.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},i.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},i.prototype.getConnectionsByPaymentMethod=function(e,t){return n(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this.get("/organizations/connections/".concat(e,"/").concat(t))]}))}))},i.prototype.getHashPylon=function(){return this.get("/pylon-hash")},i.prototype.getConnections=function(){return this.get("/connections")},i.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},i.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==Ud)return delete t.status,this.delete(o,{data:t});Object.values(qd).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(Md[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},i.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},i.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},i.prototype.patchConnection=function(e){var n,o=e.payload,a=e.connectionCode,r=localStorage.getItem("account"),i=r?null===(n=JSON.parse(r).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(a),t({account_code:i},o))},i.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},i.prototype.getDialogs=function(){return this.get("/dialogs")},i.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},i.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},i.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},i.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},i.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},i.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},i.prototype.getMenu=function(){return this.get("/cms/menu")},i.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,o=r(t,["account_code"]),a={account_codes:n};return this.post("/v2/webhooks/organization",a,{params:o,paramsSerializer:hs})},i.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},i.prototype.postExportApiLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/api-logs/organization/export-csv",t,{params:e,paramsSerializer:hs})},i.prototype.postExportWebhooksLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/webhooks/organization/export-csv",t,{params:e,paramsSerializer:hs})},i.prototype.postExportDashboardLogs=function(e){var t={account_codes:e.account_code,event:e.event,source:e.source,search:e.search},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/v2/events/organization/export-csv",t,{params:n,paramsSerializer:hs})},i.prototype.postExportMonitorsLogs=function(e){var t={account_codes:e.account_codes,status:e.status,payment_methods:e.payment_methods,providers:e.providers,traffic_redistribution:e.traffic_redistribution},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/routing-monitor/audit/export-csv",t,{params:n,paramsSerializer:hs})},i.prototype.getAuditExportsList=function(e){return this.get("/audit/reports",{params:{report_type:e}})},i.prototype.getAuditExportDownload=function(e){return this.get("/audit/reports/".concat(e,"/download"))},i.prototype.getUnifiedExportsPath=function(e){return"/v1/".concat(e,"/exports")},i.prototype.postUnifiedExport=function(e,t){return this.post(this.getUnifiedExportsPath(e),t)},i.prototype.getUnifiedExportStatus=function(e,t){var n=this.getUnifiedExportsPath(e);return this.get("".concat(n,"/").concat(t))},i.prototype.getUnifiedExportsList=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.get(this.getUnifiedExportsPath(e),{params:{page:t,size:n}})},i.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,o=r(t,["account_code"]),a={account_codes:n};return this.post("/v2/api-logs/organization",a,{params:o,paramsSerializer:hs})},i.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},i.prototype.getApiLogsByTransactionCode=function(e,t){return this.get("/v2/api-logs/transaction/".concat(e),{headers:{"x-account-code":t}})},i.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},i.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},i.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},i.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},i.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},i.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},i.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},i.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},i.prototype.getLocales=function(){return this.get("/cms/locales")},i.prototype.getSmartRoutingMethods=function(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/methods/").concat(e))},i.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},i.prototype.getSmartRoutingConditionTypes=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(n,"/condition-types/").concat(e,"/").concat(t))},i.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},i.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingNextSteps=function(e,t,n,o){return void 0===o&&(o=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(o,"/next-route/").concat(e,"/").concat(t,"/").concat(n))},i.prototype.getSmartRoutingWorkflowVersion=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(n,"/workflow-version/").concat(e,"/").concat(t))},i.prototype.getSmartRoutingWorkflow=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(n,"/workflow/").concat(e,"/").concat(t))},i.prototype.putSmartRoutingUpdateWorkflow=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.put("/".concat(n,"/update-workflow/").concat(e),t)},i.prototype.putSmartRoutingUpdateWorkflowName=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.put("/".concat(n,"/workflow/").concat(e,"/edit-name"),t)},i.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},i.prototype.postSmartRoutingPublishVersion=function(e,t,n,o){void 0===o&&(o=ll.DEFAULT_ROUTING_TYPE);var a={"x-organization-code":n};return this.post("/".concat(o,"/publish-version/").concat(e,"/").concat(t),{},{headers:a})},i.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},i.prototype.postSmartRoutingDuplicateVersion=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.post("/".concat(n,"/duplicate-version/").concat(e,"/").concat(t))},i.prototype.getSmartRoutingDeclinedGroup=function(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/declined-groups/").concat(e))},i.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},i.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},i.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},i.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},i.prototype.getSmartRoutingSimulateConditionTypeValues=function(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/condition-types-values-list/").concat(e))},i.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},i.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},i.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},i.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},i.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},i.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},i.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},i.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},i.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},i.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},i.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},i.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},i.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},i.prototype.getInsightsMetricsConversionRateV2=function(e,n){var o=e.account_code,a=e.connection_name,i=e.metadata,s=r(e,["account_code","connection_name","metadata"]),u=np(o);return a&&(u.connection_name=a.split(",")),i&&(u=t(t({},u),op(i))),this.post("/insights/conversion-rate/".concat(n),u,{params:s})},i.prototype.getInsightsMetricsConversionRateViewMore=function(e,n){var o=e.account_code,a=e.metadata,i=r(e,["account_code","metadata"]),s=np(o);return a&&(s=t(t({},s),op(a))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),s,{params:i})},i.prototype.getInsightFallbackMetrics=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]),i=np(n);return o&&(i=t(t({},i),op(o))),this.post("/insights/conversion-rate/fallback",i,{params:a})},i.prototype.getInsightsMetricsVolume=function(e,n){var o=n.connection_name,a=n.metadata,i=r(n,["connection_name","metadata"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(s=t(t({},s),{connection_name:null==o?void 0:o.split(",")})),a&&(s=t(t({},s),op(a))),this.post("/insights/volume/metrics",s,{params:i})},i.prototype.getInsightsMetricsVolumeV2=function(e,n,o){var a=o.connection_name,i=o.metadata,s=r(o,["connection_name","metadata"]),u={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return a&&(u=t(t({},u),{connection_name:null==a?void 0:a.split(",")})),i&&(u=t(t({},u),op(i))),this.post("/insights/volume/".concat(n),u,{params:s})},i.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},i.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},i.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},i.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},i.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},i.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},i.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},i.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},i.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},i.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},i.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},i.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.getInsightOverview=function(e){var n=e.account_code,o=e.connection_name,a=e.metadata,i=r(e,["account_code","connection_name","metadata"]),s=np(n);return o&&(s=t(t({},s),{connection_name:null==o?void 0:o.split(",")})),a&&(s=t(t({},s),op(a))),this.post("/insights/overview",s,{params:i})},i.prototype.getInsightOverviewV3=function(e,n){var o=e.account_code,a=e.connection_name,i=e.metadata,s=r(e,["account_code","connection_name","metadata"]),u=np(o);return a&&(u=t(t({},u),{connection_name:null==a?void 0:a.split(",")})),i&&(u=t(t({},u),op(i))),this.post("/insights/overview/".concat(n),u,{params:s})},i.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},i.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},i.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},i.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},i.prototype.updateIsActiveCheckout=function(e){var t=e.accountCode,n=r(e,["accountCode"]);return this.patch("/checkouts/publish",n,{headers:{"x-account-code":t}})},i.prototype.getCountryData=function(e){var t=e.accountCode;return this.get("/country-data/v1/country-documents",{headers:{"x-account-code":t}})},i.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingSettingsV2=function(e){var t={"x-account-code":e.accountCode};return this.get("/v1/checkouts/builder/settings",{headers:t})},i.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.payload,o={"x-account-code":t,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",n,{headers:o})},i.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},i.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},i.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/reports/create",e)},i.prototype.createReportV2=function(e){return this.post("/reports",e)},i.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},i.prototype.reportsList=function(){return this.get("/reports")},i.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},i.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},i.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},i.prototype.getReportTemplates=function(){return this.get("/reports/templates")},i.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},i.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},i.prototype.deletePaymentsReportTemplate=function(e){return this.delete("/reports/templates",{data:e})},i.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},i.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},i.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},i.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},i.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},i.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},i.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},i.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},i.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},i.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},i.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},i.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},i.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},i.prototype.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},i.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},i.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},i.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},i.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},i.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},i.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},i.prototype.getProfile=function(){return this.get("/user")},i.prototype.getUserFull=function(){return this.get("/user-full")},i.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},i.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},i.prototype.getUsersToImpersonate=function(e,n,o,a,r){void 0===o&&(o=1),void 0===a&&(a=10);var i=t({account_codes:n||[],page:o,page_size:a},r&&{search_value:r});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),i)},i.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},i.prototype.updateProfile=function(e){return this.patch("/user",e)},i.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},i.prototype.inviteUsersMassiveV2=function(e){return this.post("user/invite/massive/v2",e)},i.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},i.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},i.prototype.getAccountsV2=function(){return this.get("/accounts-user")},i.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},i.prototype.putAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},i.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},i.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},i.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},i.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},i.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},i.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},i.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{headers:{"x-account-code":n}})},i.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},i.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},i.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},i.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},i.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},i.prototype.pathNotification=function(e){return this.patch("/notifications",e)},i.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},i.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},i.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:o,status:a,role_id:r,statuses:i,role_ids:s,page:u,page_size:c},{headers:l})},i.prototype.getRoles=function(){return this.get("/teams/roles")},i.prototype.setCustodian=function(){return this.post("/teams/custodian")},i.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},i.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},i.prototype.editRoles=function(e,t){var n=e.payload,o=e.id;return this.patch("/teams/roles/".concat(o),n,{headers:{"x-account-code":t}})},i.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},i.prototype.getFeatureFlagId=function(e){var t=e.name,n=r(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},i.prototype.getFeatureFlagIdAll=function(e){var t=e.accountCode;return n(this,void 0,void 0,(function(){var e,n;return o(this,(function(o){switch(o.label){case 0:return[4,this.get("/feature-flags/names",t?{headers:{"x-account-code":t}}:{})];case 1:return e=o.sent(),n={},e.data.feature_flag_names.forEach((function(e){n[e]=!0})),[2,{data:n,status:200,statusText:"OK",headers:{},config:{}}]}}))}))},i.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},i.prototype.startUserExport=function(e){return this.post("/users/exports/start",{account_codes:e.accountCodes,name:e.name,search:e.search,statuses:e.statuses,role_ids:e.roleIds})},i.prototype.getUserExportStatus=function(e){var t=e.exportCode;return this.get("/users/exports/".concat(t))},i.prototype.listUserExports=function(e){var t=e.page,n=void 0===t?0:t,o=e.pageSize,a=void 0===o?20:o;return this.get("/users/exports?page=".concat(n,"&page_size=").concat(a))},i.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},i.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},i.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},i.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},i.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},i.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},i.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},i.prototype.getAuditEvents=function(e){var t=e.account_code,n=r(e,["account_code"]);return this.post("v2/events/organization",{account_codes:t},{params:n,paramsSerializer:hs})},i.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},i.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},i.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},i.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),t)},i.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},i.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},i.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},i.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},i.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},i.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},i.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},i.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},i.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},i.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},i.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},i.prototype.getInstallmentPlans=function(){return this.get("/v1/installments-plans")},i.prototype.createInstallmentsPlan=function(e){return this.post("/v1/installments-plans",e)},i.prototype.updateInstallmentsPlan=function(e,t){return this.patch("/v1/installments-plans/".concat(e),t)},i.prototype.deleteInstallmentsPlan=function(e){return this.delete("/v1/installments-plans/".concat(e))},i.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},i.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},i.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},i.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},i.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},i.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},i.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},i.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},i.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},i.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},i.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},i.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},i.prototype.postBlockList=function(e,t,n,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},i.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},i.prototype.getBlacklistDetail=function(e,t,n,o,a){void 0===n&&(n=26),void 0===o&&(o=null),void 0===a&&(a=null);var r="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return a&&(null==a?void 0:a.length)>0&&(r+="&search=".concat(a)),this.get(r,o?{headers:{"x-account-code":o}}:{})},i.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},i.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},i.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},i.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},i.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},i.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},i.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},i.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},i.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},i.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},i.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,a=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)}})},i.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},i.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},i.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",t({},e))},i.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},i.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:o.token}),cancel:function(){return o.cancel()}}},i.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},i.prototype.batchRefundByFile=function(e){var n=e.payload;return this.post("/batch-refund-by-file",t({},n))},i.prototype.uploadBatchRefundsV2=function(e){var n=e.payload;return this.post("/batch-refunds",t({},n))},i.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},i.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},i.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},i.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},i.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},i.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},i.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},i.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},i.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},i.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},i.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},i.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},i.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},i.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},i.prototype.patchApiKeysEditNote=function(e,t,n){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e,{headers:{"x-password":n}})},i.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},i.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},i.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},i.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},i.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},i.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},i.prototype.getCustomizedApiKeysToken=function(e,t,n,o){var a={};return t&&(a["x-password"]=t),n&&(a["x-otp"]=n),o&&(a["x-mfa-token"]=o),this.get("/credentials-manager/keys/show-token/".concat(e),{headers:a})},i.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},i.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},i.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(Bd[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(Bd[null==e?void 0:e.type],"/export");return this.post(t,e)},i.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},i.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},i.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},i.prototype.getSamlConfig=function(){return this.get("/saml-config")},i.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},i.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},i.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},i.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},i.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},i.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},i.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},i.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},i.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},i.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},i.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},i.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},i.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},i.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},i.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},i.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},i.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},i.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},i.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},i.prototype.submitChartFeedback=function(e,t){return this.post("/data-assistant/charts/".concat(e,"/feedback"),t)},i.prototype.getChartFeedback=function(e){return this.get("/data-assistant/charts/".concat(e,"/feedback"))},i.prototype.getLanguages=function(){return this.get("/languages")},i.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},i.prototype.getCommunications=function(e){return this.post("/communications",e)},i.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},i.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},i.prototype.getRecipients=function(e,t){var n={"x-organization-code":e};return this.get("/recipients",{headers:n,params:t})},i.prototype.getRecipientById=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/".concat(t),{headers:n})},i.prototype.getOnboardingDetail=function(e,t,n){var o={"x-organization-code":e};return this.get("/recipients/".concat(t,"/onboardings/").concat(n),{headers:o})},i.prototype.getOnboardingTimeline=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/onboardings/".concat(t,"/timeline"),{headers:n})},i}(ms),rp={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:process.env.BFF_URL_PROD,BFF_URL_SBX:process.env.BFF_URL_SBX,BFF_URL_STG:process.env.BFF_URL_STG,BFF_URL_DEV:process.env.BFF_URL_DEV,BFF_URL_LOCAL:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:process.env.WS_URL_LOCAL,WS_URL_PROD:process.env.WS_URL_PROD,WS_URL_SBX:process.env.WS_URL_SBX,WS_URL_STG:process.env.WS_URL_STG,WS_URL_DEV:process.env.WS_URL_DEV},ip=function(e){function r(t){return e.call(this,t)||this}return a(r,e),r.refreshInstance=function(e){var n;return this.classInstance=new r(t(t({},e),{baseURL:rp["BFF_URL_".concat(rp.ENVIRONMENT)]})),null===(n=this.classInstance.instance.interceptors)||void 0===n||n.response.use((function(e){return e}),(function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"})),this.classInstance},r.getInstance=function(e){var n,o;if(this.classInstance){var a=localStorage.getItem("account");if(a){var i=null===(o=null===(n=JSON.parse(a))||void 0===n?void 0:n.value)||void 0===o?void 0:o.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new r(t(t({},e),{baseURL:(null==e?void 0:e.baseURL)||rp["BFF_URL_".concat(rp.ENVIRONMENT)]})),this.classInstance},r.setMode=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){return this.classInstance.instance.interceptors.request.use((function(t){return t.headers&&(t.headers["X-Environment"]=e),t}),(function(e){return Promise.reject(e)})),[2]}))}))},r}(ap);class sp{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const up="undefined"==typeof window||"Deno"in window;function cp(){}function lp(e){return"number"==typeof e&&e>=0&&e!==1/0}function dp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pp(e,t,n){return Cp(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function hp(e,t,n){return Cp(e)?[{...t,queryKey:e},n]:[e||{},t]}function mp(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:r,queryKey:i,stale:s}=e;if(Cp(i))if(o){if(t.queryHash!==gp(i,t.options))return!1}else if(!bp(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===a||a===t.state.fetchStatus)&&!(r&&!r(t)))}function fp(e,t){const{exact:n,fetching:o,predicate:a,mutationKey:r}=e;if(Cp(r)){if(!t.options.mutationKey)return!1;if(n){if(yp(t.options.mutationKey)!==yp(r))return!1}else if(!bp(t.options.mutationKey,r))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function gp(e,t){return((null==t?void 0:t.queryKeyHashFn)||yp)(e)}function yp(e){return JSON.stringify(e,((e,t)=>_p(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function bp(e,t){return vp(e,t)}function vp(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!vp(e[n],t[n]))))}function kp(e,t){if(e===t)return e;const n=wp(e)&&wp(t);if(n||_p(e)&&_p(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),r=a.length,i=n?[]:{};let s=0;for(let o=0;o<r;o++){const r=n?o:a[o];i[r]=kp(e[r],t[r]),i[r]===e[r]&&s++}return o===r&&s===o?e:i}return t}function jp(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function wp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _p(e){if(!Ep(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ep(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Ep(e){return"[object Object]"===Object.prototype.toString.call(e)}function Cp(e){return Array.isArray(e)}function Sp(e){return new Promise((t=>{setTimeout(t,e)}))}function Rp(e){Sp(0).then(e)}function Tp(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?kp(e,t):t}const Ip=new class extends sp{constructor(){super(),this.setup=e=>{if(!up&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},xp=["online","offline"];const Op=new class extends sp{constructor(){super(),this.setup=e=>{if(!up&&window.addEventListener){const t=()=>e();return xp.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{xp.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Ap(e){return Math.min(1e3*2**e,3e4)}function zp(e){return"online"!==(null!=e?e:"online")||Op.isOnline()}class Pp{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Dp(e){return e instanceof Pp}function Lp(e){let t,n,o,a=!1,r=0,i=!1;const s=new Promise(((e,t)=>{n=e,o=t})),u=()=>!Ip.isFocused()||"always"!==e.networkMode&&!Op.isOnline(),c=o=>{i||(i=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},d=()=>new Promise((n=>{t=e=>{const t=i||!u();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,i||null==e.onContinue||e.onContinue()})),p=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch((t=>{var n,o;if(i)return;const s=null!=(n=e.retry)?n:3,c=null!=(o=e.retryDelay)?o:Ap,h="function"==typeof c?c(r,t):c,m=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);!a&&m?(r++,null==e.onFail||e.onFail(r,t),Sp(h).then((()=>{if(u())return d()})).then((()=>{a?l(t):p()}))):l(t)}))};return zp(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new Pp(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}const Np=console;const qp=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):Rp((()=>{n(o)}))},r=()=>{const t=e;e=[],t.length&&Rp((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||r()}return n},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class Mp{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lp(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:up?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Up extends Mp{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Np,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Tp(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(cp).catch(cp):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!dp(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(r)return this.abortSignalConsumed=!0,r.signal}})};s(i);const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(s(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=u.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(c=u.fetchOptions)?void 0:c.meta});const l=e=>{var t,n,o,a;(Dp(e)&&e.silent||this.dispatch({type:"error",error:e}),Dp(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Lp({fn:u.fetchFn,abort:null==r?void 0:r.abort.bind(r),onSuccess:e=>{var t,n,o,a;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,o;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:zp(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return Dp(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),qp.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class Bp extends sp{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const a=t.queryKey,r=null!=(o=t.queryHash)?o:gp(a,t);let i=this.get(r);return i||(i=new Up({cache:this,logger:e.getLogger(),queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(i)),i}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){qp.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=hp(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>mp(n,e)))}findAll(e,t){const[n]=hp(e,t);return Object.keys(n).length>0?this.queries.filter((e=>mp(n,e))):this.queries}notify(e){qp.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){qp.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){qp.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class Fp extends Mp{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Np,this.observers=[],this.state=e.state||Wp(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=Lp({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,o,a,r,i,s,u,c;if(!t){var l,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const m=await e();return await(null==(n=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,m,this.state.variables,this.state.context,this)),await(null==(a=(r=this.options).onSuccess)?void 0:a.call(r,m,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,m,null,this.state.variables,this.state.context,this)),await(null==(u=(c=this.options).onSettled)?void 0:u.call(c,m,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:m}),m}catch(e){try{var m,f,g,y,b,v,k,j;throw await(null==(m=(f=this.mutationCache.config).onError)?void 0:m.call(f,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(b=(v=this.mutationCache.config).onSettled)?void 0:b.call(v,void 0,e,this.state.variables,this.state.context,this)),await(null==(k=(j=this.options).onSettled)?void 0:k.call(j,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!zp(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),qp.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function Wp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Hp extends sp{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new Fp({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(o),o}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){qp.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>fp(e,t)))}findAll(e){return this.mutations.filter((t=>fp(e,t)))}notify(e){qp.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return qp.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(cp)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function Gp(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,a,r,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(o=e.fetchOptions)||null==(a=o.meta)?void 0:a.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),d="backward"===(null==u?void 0:u.direction),p=(null==(r=e.state.data)?void 0:r.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let m=h,f=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,o)=>(m=o?[t,...m]:[...m,t],o?[n,...e]:[...e,n]),b=(t,n,o,a)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const r={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=r,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{f=!0})),e.signal}});const s=g(r);return Promise.resolve(s).then((e=>y(t,o,e,a)))};let v;if(p.length)if(l){const t=void 0!==c,n=t?c:Vp(e.options,p);v=b(p,t,n)}else if(d){const t=void 0!==c,n=t?c:(k=e.options,j=p,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(j[0],j));v=b(p,t,n,!0)}else{m=[];const t=void 0===e.options.getNextPageParam;v=!s||!p[0]||s(p[0],0,p)?b([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)v=v.then((o=>{if(!s||!p[n]||s(p[n],n,p)){const a=t?h[n]:Vp(e.options,o);return b(o,t,a)}return Promise.resolve(y(o,h[n],p[n]))}))}else v=b([]);var k,j;const w=v.then((e=>({pages:e,pageParams:m})));return w}}}}function Vp(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class Kp extends sp{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),$p(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qp(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qp(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),jp(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&Jp(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const r=this.computeRefetchInterval();!a||this.currentQuery===o&&this.options.enabled===n.enabled&&r===this.currentRefetchInterval||this.updateRefetchInterval(r)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!jp(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(cp)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),up||this.currentResult.isStale||!lp(this.options.staleTime))return;const e=dp(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!up&&!1!==this.options.enabled&&lp(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Ip.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,a=this.currentResult,r=this.currentResultState,i=this.currentResultOptions,s=e!==n,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:m,fetchStatus:f,status:g}=l,y=!1,b=!1;if(t._optimisticResults){const a=this.hasListeners(),r=!a&&$p(e,t),i=a&&Jp(e,n,t,o);(r||i)&&(f=zp(e.options.networkMode)?"fetching":"paused",p||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,p=c.dataUpdatedAt,g=c.status,y=!0;else if(t.select&&void 0!==l.data)if(a&&l.data===(null==r?void 0:r.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=Tp(null==a?void 0:a.data,d,t),this.selectResult=d,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(g="success",d=Tp(null==a?void 0:a.data,e,t),b=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,m=Date.now(),g="error");const v="fetching"===f,k="loading"===g,j="error"===g;return{status:g,fetchStatus:f,isLoading:k,isSuccess:"success"===g,isError:j,isInitialLoading:k&&v,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:m,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>u.dataUpdateCount||l.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!k,isLoadingError:j&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:b,isPreviousData:y,isRefetchError:j&&0!==l.dataUpdatedAt,isStale:Yp(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,jp(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Dp(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){qp.batch((()=>{var t,n,o,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(a=this.options).onSettled)||o.call(a,this.currentResult.data,null);else if(e.onError){var r,i,s,u;null==(r=(i=this.options).onError)||r.call(i,this.currentResult.error),null==(s=(u=this.options).onSettled)||s.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function $p(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&Qp(e,t,t.refetchOnMount)}function Qp(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&Yp(e,t)}return!1}function Jp(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&Yp(e,n)}function Yp(e,t){return e.isStaleByTime(t.staleTime)}class Xp extends sp{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),jp(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){qp.batch((()=>{var t,n,o,a;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(o=(a=this.mutateOptions).onSettled)||o.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var r,i,s,u;null==(r=(i=this.mutateOptions).onError)||r.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(u=this.mutateOptions).onSettled)||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}var Zp,eh={exports:{}},th={};var nh,oh={};
207
+ function Vo(e){const t=Go.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Ko(){return Vo(document.cookie)}function $o(e){const t=e.headers.get("cookie"),n=t?Vo(t):{},o=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Ko():{}}case"include":return Ko();default:return{}}}(e);for(const t in o)e.headers.append("cookie",Go.serialize(t,o[t]));const a=se.getCookiesSync(e.url),r=Object.fromEntries(a.map((e=>[e.key,e.value])));for(const t of a)e.headers.append("cookie",t.toString());return{...o,...r,...n}}var Qo=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Qo||{});class Jo extends w{constructor(e,t,n,o){super({info:{header:`${e} ${t}`,path:t,method:e},resolver:n,options:o}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(t instanceof RegExp)return;if(Yt(t)===t)return;const n=function(e){return new URL(`/${e}`,"http://localhost").searchParams}(t);n.forEach(((e,t)=>{})),b.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/recipes/query-parameters`)}async parse(e){return{match:Zt(new URL(e.request.url),this.info.path,e.resolutionContext?.baseUrl),cookies:$o(e.request)}}predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=_(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),o=await async function(e){const t=e.clone(),n=await t.text(),o=t.status||200;return{status:o,statusText:t.statusText||Lo[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),a=(r=o.status)<300?"#69AB32":r<400?"#F0BB4B":"#E95F5D";var r;console.groupCollapsed(b.formatMessage(`${tn()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${a}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Yo(e){return(t,n,o={})=>new Jo(e,t,n,o)}const Xo={all:Yo(/.+/),head:Yo(Qo.HEAD),get:Yo(Qo.GET),post:Yo(Qo.POST),put:Yo(Qo.PUT),delete:Yo(Qo.DELETE),patch:Yo(Qo.PATCH),options:Yo(Qo.OPTIONS)},Zo=Symbol("bodyType");class ea extends Wt{[Zo]=null;constructor(e,t){const n=We(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,Fe,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=Ue.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static text(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new ea(e,n)}static json(e,t){const n=We(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const o=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",o?new Blob([o]).size.toString():"0"),new ea(o,n)}static xml(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new ea(e,n)}static html(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new ea(e,n)}static arrayBuffer(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new ea(e,n)}static formData(e,t){return new ea(e,We(t))}}g("undefined"!=typeof URL,b.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var ta,na={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},oa={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},aa={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ra={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ia=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],sa={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},ua=[Xo.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",(function(){return ea.json(na)})),Xo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",(function(){return ea.json(oa)})),Xo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",(function(){return ea.json(aa)})),Xo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",(function(){return ea.json(ra)})),Xo.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",(function(){return ea.json(ia)})),Xo.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",(function(){return ea.json(sa)}))],ca={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},la={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},da={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(ta||(ta={}));var pa={sales_volume_metric_group:da.sales_volume_metric_group,total_payments:da.total_payments},ha=Xo.get("/api/insights/overview-metrics",(function(){return ea.json(pa)})),ma=[Xo.get("/api/v3/insights/overview-metrics/".concat(ta.GENERAL),(function(){return ea.json({sales_volume_metric_group:pa.sales_volume_metric_group})})),Xo.get("/api/v3/insights/overview-metrics/".concat(ta.LATENCY),(function(){return ea.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})})),Xo.get("/api/v3/insights/overview-metrics/".concat(ta.STATUS),(function(){return ea.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})})),Xo.get("/api/v3/insights/overview-metrics/".concat(ta.SUBSCRIPTIONS),(function(){return ea.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})}))],fa=e([ha],ma,!0),ga=e([Xo.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",(function(){return ea.json(ca)})),Xo.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",(function(){return ea.json(la)})),Xo.get("*/dialogs",(function(){return ea.json({})})),Xo.get("*/accounts/webhooks/:accountCode",(function(){return ea.json({})})),Xo.get("*/accounts/webhooks/params-catalog",(function(){return ea.json({})})),Xo.get("*/accounts/webhooks-v2/:accountCode",(function(){return ea.json({})}))],fa,!0),ya={by_currency:[{currency_code:"USD",transactions:100,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD"},{currency_code:"COP",transactions:50,amount_local:4e7,amount_usd:10000.5,currency_code_local:"COP"}],by_connection:[{connection_name:"Stripe",transactions:80,amount_local:12e3,amount_usd:12e3,currency_code_local:"USD"},{connection_name:"PayPal",transactions:70,amount_local:13000.5,amount_usd:13000.5,currency_code_local:"USD"}],by_brand:[{brand:"Visa",transactions:90,amount_local:14e3,amount_usd:14e3,currency_code_local:"USD"},{brand:"Mastercard",transactions:60,amount_local:11000.5,amount_usd:11000.5,currency_code_local:"USD"}],by_payment_method:[{payment_method:"CARD",transactions:120,amount_local:2e4,amount_usd:2e4,currency_code_local:"USD"},{payment_method:"BANK_TRANSFER",transactions:30,amount_local:5000.5,amount_usd:5000.5,currency_code_local:"USD"}],total:{transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD"}},ba={total:100,page:1,page_size:10,total_pages:10},va={authorization_code:"AUTH123",card_category:"CREDIT",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",payment_method_category:"CARD",provider_id:"stripe",reconciliation_status:"NOT_RECONCILED",reconciliation_sub_status:"PENDING"},ka={transaction_id:"TXN123",transaction_date:"2025-01-15T10:30:00Z",acquirer:"STRIPE",authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",country:"US",currency:"USD",fee_status:"MATCHED",fee_sub_status:"OK",fee_taxes_diff:0,calculated_fix_costed_fee:.3,calculated_percentage_cost:2.9,percentage_cost:2.9,merchant_order_id:"ORDER123",provider_transaction_id:"PROV123",reconciliation_status:"RECONCILED",reconciliation_sub_status:"OK",type:"PAYMENT"},ja={not_reconciled:{data:[{id:"stripe",transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD",total_transactions:200},{id:"paypal",transactions:80,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD",total_transactions:120}],total:{transactions:230,amount_local:40000.5,amount_usd:40000.5,currency_code_local:"USD"}},status_conflict:{data:[{id:"stripe",transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}],total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}},amount_conflict:{data:[{id:"paypal",transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}],total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}},wa=ya,_a={data:[va,t(t({},va),{authorization_code:"AUTH456",provider_id:"paypal"})],pagination:ba},Ea=t(t({},ya),{total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}}),Ca={data:[t(t({},va),{reconciliation_status:"STATUS_CONFLICT"})],pagination:t(t({},ba),{total:20,total_pages:2})},Sa=t(t({},ya),{total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}),Ra={data:[t(t({},va),{reconciliation_status:"AMOUNT_CONFLICT"})],pagination:t(t({},ba),{total:10,total_pages:1})},Ta={data:[{id:"2025-01-10",transactions:30,amount_local:8e3,amount_usd:8e3,currency_code_local:"USD"},{id:"2025-01-11",transactions:25,amount_local:6500,amount_usd:6500,currency_code_local:"USD"}],total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}},Ia=t(t({},ya),{total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}}),xa={data:[t(t({},va),{reconciliation_status:"DATE_CONFLICT"})],pagination:t(t({},ba),{total:55,total_pages:6})},Oa={data:[{id:"stripe",transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}],total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}},Aa=t(t({},ya),{total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}}),za={data:[t(t({},ka),{fee_status:"MISMATCH"}),t(t({},ka),{transaction_id:"TXN456",fee_status:"MISMATCH"})],pagination:t(t({},ba),{total:15,total_pages:2})},Pa={total_amount_usd:5e3,chart_data:[{date:"2025-01-10",amount_usd:1500},{date:"2025-01-11",amount_usd:1800},{date:"2025-01-12",amount_usd:1700}]},Da={data:[{id:"stripe",transaction_type:"PURCHASE",transactions:500,amount_local:1e5,amount_usd:1e5,currency_code_local:"USD"},{id:"paypal",transaction_type:"REFUND",transactions:300,amount_local:6e4,amount_usd:6e4,currency_code_local:"USD"}],total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}},La=t(t({},ya),{total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}}),Na={data:[ka],pagination:t(t({},ba),{total:800,total_pages:80})},qa={data:[{id:"stripe",transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}],total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}},Ma=t(t({},ya),{total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}}),Ua={data:[t(t({},{transaction_id:"TXN123",acquirer:"STRIPE",amount:100,authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",confirmation_status:"CONFIRMED",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",merchant_order_id:"ORDER123",merchant_transaction_id:"MERCH123",payment_id:"PAY123",provider_status:"APPROVED",provider_transaction_id:"PROV123",response_code:"00",status:"SUCCEEDED",type:"PAYMENT"}),{confirmation_status:"NOT_CONFIRMED"})],pagination:t(t({},ba),{total:25,total_pages:3})},Ba={total_amount_usd:75e3,chart_data:[{date:"2025-01-10",amount_usd:2e4},{date:"2025-01-11",amount_usd:25e3},{date:"2025-01-12",amount_usd:3e4}]},Fa="*/reconciliations/insights",Wa=[Xo.post("".concat(Fa,"/conflicts/summary"),(function(){return ea.json(ja)})),Xo.post("".concat(Fa,"/not-reconciled/aggregators"),(function(){return ea.json(wa)})),Xo.post("".concat(Fa,"/not-reconciled/list"),(function(){return ea.json(_a)})),Xo.post("".concat(Fa,"/status-conflict/aggregators"),(function(){return ea.json(Ea)})),Xo.post("".concat(Fa,"/status-conflict/list"),(function(){return ea.json(Ca)})),Xo.post("".concat(Fa,"/amount-conflict/aggregators"),(function(){return ea.json(Sa)})),Xo.post("".concat(Fa,"/amount-conflict/list"),(function(){return ea.json(Ra)})),Xo.post("".concat(Fa,"/conflict-date/summary"),(function(){return ea.json(Ta)})),Xo.post("".concat(Fa,"/conflict-date/aggregators"),(function(){return ea.json(Ia)})),Xo.post("".concat(Fa,"/conflict-date/list"),(function(){return ea.json(xa)})),Xo.post("".concat(Fa,"/incorrect-fees/summary"),(function(){return ea.json(Oa)})),Xo.post("".concat(Fa,"/incorrect-fees/aggregators"),(function(){return ea.json(Aa)})),Xo.post("".concat(Fa,"/incorrect-fees/list"),(function(){return ea.json(za)})),Xo.post("".concat(Fa,"/fees-charged/summary"),(function(){return ea.json(Pa)})),Xo.post("".concat(Fa,"/reconciled/summary"),(function(){return ea.json(Da)})),Xo.post("".concat(Fa,"/reconciled/aggregators"),(function(){return ea.json(La)})),Xo.post("".concat(Fa,"/reconciled/list"),(function(){return ea.json(Na)})),Xo.post("".concat(Fa,"/not-confirm/summary"),(function(){return ea.json(qa)})),Xo.post("".concat(Fa,"/not-confirm/aggregators"),(function(){return ea.json(Ma)})),Xo.post("".concat(Fa,"/not-confirm/list"),(function(){return ea.json(Ua)})),Xo.post("".concat(Fa,"/amount-to-be-settled/summary"),(function(){return ea.json(Ba)}))],Ha=[{id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Plan Argentina con CFT y TEA",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]},{id:"",installment:6,rate:1.25,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:45.5},{type:"TEA",rate:180.12}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},availability:{start_at:"2025-01-01T00:00:00Z",finish_at:"2025-12-31T23:59:59Z"},types_list:null,created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-01T16:41:17.428285Z"},{id:"1688",code:"1381d64b-ed14-4739-8f0a-b3adbe5949b0",name:"Plan Colombia sin intereses",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-col-sin-interes",installments_plan:[{id:"",installment:1,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"},{id:"",installment:3,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"}],country_code:"CO",amount:{currency:"COP",min_value:"50000",max_value:"10000000"},availability:{},types_list:null,created_at:"2025-08-06T14:33:32.854396Z",updated_at:"2025-08-06T14:33:32.854396Z"}],Ga={id:"1689",code:"new-plan-code-uuid",name:"New Test Plan",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"new-plan-ref",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-10T12:00:00.000000Z",updated_at:"2025-08-10T12:00:00.000000Z"},Va={id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Updated Plan Name",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.2,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:40},{type:"TEA",rate:160}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-10T15:00:00.000000Z"},Ka={deleted:!0},$a=[Xo.get("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",(function(){return ea.json(Ha)})),Xo.post("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",(function(){return ea.json(Ga)})),Xo.patch("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",(function(){return ea.json(Va)})),Xo.delete("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",(function(){return ea.json(Ka)}))],Qa=e(e(e(e([],ua,!0),ga,!0),Wa,!0),$a,!0),Ja=function(...e){return new Do(...e)}.apply(void 0,Qa),Ya="MSW_ENABLED";function Xa(e){e?(localStorage.setItem(Ya,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(Ya),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function Za(){return"true"===localStorage.getItem(Ya)}function er(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return Xa(!0)},window.disableMSW=function(){return Xa(!1)},window.isMSWEnabled=Za);const{toString:tr}=Object.prototype,{getPrototypeOf:nr}=Object,{iterator:or,toStringTag:ar}=Symbol,rr=(ir=Object.create(null),e=>{const t=tr.call(e);return ir[t]||(ir[t]=t.slice(8,-1).toLowerCase())});var ir;const sr=e=>(e=e.toLowerCase(),t=>rr(t)===e),ur=e=>t=>typeof t===e,{isArray:cr}=Array,lr=ur("undefined");const dr=sr("ArrayBuffer");const pr=ur("string"),hr=ur("function"),mr=ur("number"),fr=e=>null!==e&&"object"==typeof e,gr=e=>{if("object"!==rr(e))return!1;const t=nr(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ar in e||or in e)},yr=sr("Date"),br=sr("File"),vr=sr("Blob"),kr=sr("FileList"),jr=sr("URLSearchParams"),[wr,_r,Er,Cr]=["ReadableStream","Request","Response","Headers"].map(sr);function Sr(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,a;if("object"!=typeof e&&(e=[e]),cr(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),r=a.length;let i;for(o=0;o<r;o++)i=a[o],t.call(null,e[i],i,e)}}function Rr(e,t){t=t.toLowerCase();const n=Object.keys(e);let o,a=n.length;for(;a-- >0;)if(o=n[a],t===o.toLowerCase())return o;return null}const Tr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ir=e=>!lr(e)&&e!==Tr;const xr=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&nr(Uint8Array)),Or=sr("HTMLFormElement"),Ar=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zr=sr("RegExp"),Pr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Sr(n,((n,a)=>{let r;!1!==(r=t(n,a,e))&&(o[a]=r||n)})),Object.defineProperties(e,o)};const Dr=sr("AsyncFunction"),Lr=(Nr="function"==typeof setImmediate,qr=hr(Tr.postMessage),Nr?setImmediate:qr?(Mr=`axios@${Math.random()}`,Ur=[],Tr.addEventListener("message",(({source:e,data:t})=>{e===Tr&&t===Mr&&Ur.length&&Ur.shift()()}),!1),e=>{Ur.push(e),Tr.postMessage(Mr,"*")}):e=>setTimeout(e));var Nr,qr,Mr,Ur;const Br="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Tr):"undefined"!=typeof process&&process.nextTick||Lr;var Fr={isArray:cr,isArrayBuffer:dr,isBuffer:function(e){return null!==e&&!lr(e)&&null!==e.constructor&&!lr(e.constructor)&&hr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||hr(e.append)&&("formdata"===(t=rr(e))||"object"===t&&hr(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&dr(e.buffer),t},isString:pr,isNumber:mr,isBoolean:e=>!0===e||!1===e,isObject:fr,isPlainObject:gr,isReadableStream:wr,isRequest:_r,isResponse:Er,isHeaders:Cr,isUndefined:lr,isDate:yr,isFile:br,isBlob:vr,isRegExp:zr,isFunction:hr,isStream:e=>fr(e)&&hr(e.pipe),isURLSearchParams:jr,isTypedArray:xr,isFileList:kr,forEach:Sr,merge:function e(){const{caseless:t}=Ir(this)&&this||{},n={},o=(o,a)=>{const r=t&&Rr(n,a)||a;gr(n[r])&&gr(o)?n[r]=e(n[r],o):gr(o)?n[r]=e({},o):cr(o)?n[r]=o.slice():n[r]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Sr(arguments[e],o);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(Sr(t,((t,o)=>{n&&hr(t)?e[o]=er(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let a,r,i;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),r=a.length;r-- >0;)i=a[r],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&nr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rr,kindOfTest:sr,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(cr(e))return e;let t=e.length;if(!mr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[or]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:Or,hasOwnProperty:Ar,hasOwnProp:Ar,reduceDescriptors:Pr,freezeMethods:e=>{Pr(e,((t,n)=>{if(hr(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];hr(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach((e=>{n[e]=!0}))};return cr(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Rr,global:Tr,isContextDefined:Ir,isSpecCompliantForm:function(e){return!!(e&&hr(e.append)&&"FormData"===e[ar]&&e[or])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(fr(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const a=cr(e)?[]:{};return Sr(e,((e,t)=>{const r=n(e,o+1);!lr(r)&&(a[t]=r)})),t[o]=void 0,a}}return e};return n(e,0)},isAsyncFn:Dr,isThenable:e=>e&&(fr(e)||hr(e))&&hr(e.then)&&hr(e.catch),setImmediate:Lr,asap:Br,isIterable:e=>null!=e&&hr(e[or])};function Wr(e,t,n,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}Fr.inherits(Wr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Fr.toJSONObject(this.config),code:this.code,status:this.status}}});const Hr=Wr.prototype,Gr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Gr[e]={value:e}})),Object.defineProperties(Wr,Gr),Object.defineProperty(Hr,"isAxiosError",{value:!0}),Wr.from=(e,t,n,o,a,r)=>{const i=Object.create(Hr);return Fr.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Wr.call(i,e.message,t,n,o,a),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};function Vr(e){return Fr.isPlainObject(e)||Fr.isArray(e)}function Kr(e){return Fr.endsWith(e,"[]")?e.slice(0,-2):e}function $r(e,t,n){return e?e.concat(t).map((function(e,t){return e=Kr(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Qr=Fr.toFlatObject(Fr,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Jr(e,t,n){if(!Fr.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=Fr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Fr.isUndefined(t[e])}))).metaTokens,a=n.visitor||c,r=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Fr.isSpecCompliantForm(t);if(!Fr.isFunction(a))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Fr.isDate(e))return e.toISOString();if(!s&&Fr.isBlob(e))throw new Wr("Blob is not supported. Use a Buffer instead.");return Fr.isArrayBuffer(e)||Fr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(Fr.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(Fr.isArray(e)&&function(e){return Fr.isArray(e)&&!e.some(Vr)}(e)||(Fr.isFileList(e)||Fr.endsWith(n,"[]"))&&(s=Fr.toArray(e)))return n=Kr(n),s.forEach((function(e,o){!Fr.isUndefined(e)&&null!==e&&t.append(!0===i?$r([n],o,r):null===i?n:n+"[]",u(e))})),!1;return!!Vr(e)||(t.append($r(a,n,r),u(e)),!1)}const l=[],d=Object.assign(Qr,{defaultVisitor:c,convertValue:u,isVisitable:Vr});if(!Fr.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!Fr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),Fr.forEach(n,(function(n,r){!0===(!(Fr.isUndefined(n)||null===n)&&a.call(t,n,Fr.isString(r)?r.trim():r,o,d))&&e(n,o?o.concat(r):[r])})),l.pop()}}(e),t}function Yr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Xr(e,t){this._pairs=[],e&&Jr(e,this,t)}const Zr=Xr.prototype;function ei(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ti(e,t,n){if(!t)return e;const o=n&&n.encode||ei;Fr.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let r;if(r=a?a(t,n):Fr.isURLSearchParams(t)?t.toString():new Xr(t,n).toString(o),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}Zr.append=function(e,t){this._pairs.push([e,t])},Zr.toString=function(e){const t=e?function(t){return e.call(this,t,Yr)}:Yr;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ni=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Fr.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},oi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ai={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Xr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ri="undefined"!=typeof window&&"undefined"!=typeof document,ii="object"==typeof navigator&&navigator||void 0,si=ri&&(!ii||["ReactNative","NativeScript","NS"].indexOf(ii.product)<0),ui="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ci=ri&&window.location.href||"http://localhost";var li={...Object.freeze({__proto__:null,hasBrowserEnv:ri,hasStandardBrowserEnv:si,hasStandardBrowserWebWorkerEnv:ui,navigator:ii,origin:ci}),...ai};function di(e){function t(e,n,o,a){let r=e[a++];if("__proto__"===r)return!0;const i=Number.isFinite(+r),s=a>=e.length;if(r=!r&&Fr.isArray(o)?o.length:r,s)return Fr.hasOwnProp(o,r)?o[r]=[o[r],n]:o[r]=n,!i;o[r]&&Fr.isObject(o[r])||(o[r]=[]);return t(e,n,o[r],a)&&Fr.isArray(o[r])&&(o[r]=function(e){const t={},n=Object.keys(e);let o;const a=n.length;let r;for(o=0;o<a;o++)r=n[o],t[r]=e[r];return t}(o[r])),!i}if(Fr.isFormData(e)&&Fr.isFunction(e.entries)){const n={};return Fr.forEachEntry(e,((e,o)=>{t(function(e){return Fr.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const pi={transitional:oi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=Fr.isObject(e);a&&Fr.isHTMLForm(e)&&(e=new FormData(e));if(Fr.isFormData(e))return o?JSON.stringify(di(e)):e;if(Fr.isArrayBuffer(e)||Fr.isBuffer(e)||Fr.isStream(e)||Fr.isFile(e)||Fr.isBlob(e)||Fr.isReadableStream(e))return e;if(Fr.isArrayBufferView(e))return e.buffer;if(Fr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Jr(e,new li.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return li.isNode&&Fr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=Fr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Jr(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(Fr.isString(e))try{return(t||JSON.parse)(e),Fr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pi.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(Fr.isResponse(e)||Fr.isReadableStream(e))return e;if(e&&Fr.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Wr.from(e,Wr.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:li.classes.FormData,Blob:li.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Fr.forEach(["delete","get","head","post","put","patch"],(e=>{pi.headers[e]={}}));var hi=pi;const mi=Fr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const fi=Symbol("internals");function gi(e){return e&&String(e).trim().toLowerCase()}function yi(e){return!1===e||null==e?e:Fr.isArray(e)?e.map(yi):String(e)}function bi(e,t,n,o,a){return Fr.isFunction(o)?o.call(this,t,n):(a&&(t=n),Fr.isString(t)?Fr.isString(o)?-1!==t.indexOf(o):Fr.isRegExp(o)?o.test(t):void 0:void 0)}class vi{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=gi(t);if(!a)throw new Error("header name must be a non-empty string");const r=Fr.findKey(o,a);(!r||void 0===o[r]||!0===n||void 0===n&&!1!==o[r])&&(o[r||t]=yi(e))}const r=(e,t)=>Fr.forEach(e,((e,n)=>a(e,n,t)));if(Fr.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(Fr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))r((e=>{const t={};let n,o,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),o=e.substring(a+1).trim(),!n||t[n]&&mi[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t);else if(Fr.isObject(e)&&Fr.isIterable(e)){let n,o,a={};for(const t of e){if(!Fr.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?Fr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}r(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=gi(e)){const n=Fr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(Fr.isFunction(t))return t.call(this,e,n);if(Fr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gi(e)){const n=Fr.findKey(this,e);return!(!n||void 0===this[n]||t&&!bi(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=gi(e)){const a=Fr.findKey(n,e);!a||t&&!bi(0,n[a],a,t)||(delete n[a],o=!0)}}return Fr.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const a=t[n];e&&!bi(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return Fr.forEach(this,((o,a)=>{const r=Fr.findKey(n,a);if(r)return t[r]=yi(o),void delete t[a];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();i!==a&&delete t[a],t[i]=yi(o),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Fr.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&Fr.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[fi]=this[fi]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=gi(e);t[o]||(!function(e,t){const n=Fr.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,a){return this[o].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[o]=!0)}return Fr.isArray(e)?e.forEach(o):o(e),this}}vi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Fr.reduceDescriptors(vi.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Fr.freezeMethods(vi);var ki=vi;function ji(e,t){const n=this||hi,o=t||n,a=ki.from(o.headers);let r=o.data;return Fr.forEach(e,(function(e){r=e.call(n,r,a.normalize(),t?t.status:void 0)})),a.normalize(),r}function wi(e){return!(!e||!e.__CANCEL__)}function _i(e,t,n){Wr.call(this,null==e?"canceled":e,Wr.ERR_CANCELED,t,n),this.name="CanceledError"}function Ei(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Wr("Request failed with status code "+n.status,[Wr.ERR_BAD_REQUEST,Wr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Fr.inherits(_i,Wr,{__CANCEL__:!0});const Ci=(e,t,n=3)=>{let o=0;const a=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a,r=0,i=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=o[i];a||(a=u),n[r]=s,o[r]=u;let l=i,d=0;for(;l!==r;)d+=n[l++],l%=e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-a<t)return;const p=c&&u-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,o,a=0,r=1e3/t;const i=(t,r=Date.now())=>{a=r,n=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=r?i(e,t):(n=e,o||(o=setTimeout((()=>{o=null,i(n)}),r-s)))},()=>n&&i(n)]}((n=>{const r=n.loaded,i=n.lengthComputable?n.total:void 0,s=r-o,u=a(s);o=r;e({loaded:r,total:i,progress:i?r/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&r<=i?(i-r)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Si=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Ri=e=>(...t)=>Fr.asap((()=>e(...t)));var Ti=li.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,li.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(li.origin),li.navigator&&/(msie|trident)/i.test(li.navigator.userAgent)):()=>!0,Ii=li.hasStandardBrowserEnv?{write(e,t,n,o,a,r){const i=[e+"="+encodeURIComponent(t)];Fr.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Fr.isString(o)&&i.push("path="+o),Fr.isString(a)&&i.push("domain="+a),!0===r&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function xi(e,t,n){let o=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Oi=e=>e instanceof ki?{...e}:e;function Ai(e,t){t=t||{};const n={};function o(e,t,n,o){return Fr.isPlainObject(e)&&Fr.isPlainObject(t)?Fr.merge.call({caseless:o},e,t):Fr.isPlainObject(t)?Fr.merge({},t):Fr.isArray(t)?t.slice():t}function a(e,t,n,a){return Fr.isUndefined(t)?Fr.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function r(e,t){if(!Fr.isUndefined(t))return o(void 0,t)}function i(e,t){return Fr.isUndefined(t)?Fr.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,a,r){return r in t?o(n,a):r in e?o(void 0,n):void 0}const u={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>a(Oi(e),Oi(t),0,!0)};return Fr.forEach(Object.keys(Object.assign({},e,t)),(function(o){const r=u[o]||a,i=r(e[o],t[o],o);Fr.isUndefined(i)&&r!==s||(n[o]=i)})),n}var zi=e=>{const t=Ai({},e);let n,{data:o,withXSRFToken:a,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:u}=t;if(t.headers=s=ki.from(s),t.url=ti(xi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),Fr.isFormData(o))if(li.hasStandardBrowserEnv||li.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(li.hasStandardBrowserEnv&&(a&&Fr.isFunction(a)&&(a=a(t)),a||!1!==a&&Ti(t.url))){const e=r&&i&&Ii.read(i);e&&s.set(r,e)}return t};var Pi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=zi(e);let a=o.data;const r=ki.from(o.headers).normalize();let i,s,u,c,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function m(){c&&c(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=ki.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Ei((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new Wr("Request aborted",Wr.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new Wr("Network Error",Wr.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||oi;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Wr(t,a.clarifyTimeoutError?Wr.ETIMEDOUT:Wr.ECONNABORTED,e,f)),f=null},void 0===a&&r.setContentType(null),"setRequestHeader"in f&&Fr.forEach(r.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),Fr.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),d&&"json"!==d&&(f.responseType=o.responseType),h&&([u,l]=Ci(h,!0),f.addEventListener("progress",u)),p&&f.upload&&([s,c]=Ci(p),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{f&&(n(!t||t.type?new _i(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);y&&-1===li.protocols.indexOf(y)?n(new Wr("Unsupported protocol "+y+":",Wr.ERR_BAD_REQUEST,e)):f.send(a||null)}))};var Di=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const a=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof Wr?t:new _i(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null,a(new Wr(`timeout ${t} of ms exceeded`,Wr.ETIMEDOUT))}),t);const i=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=o;return s.unsubscribe=()=>Fr.asap(i),s}};const Li=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,a=0;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},Ni=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},qi=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of Ni(e))yield*Li(n,t)}(e,t);let r,i=0,s=e=>{r||(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return s(),void e.close();let r=o.byteLength;if(n){let e=i+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},Mi="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ui=Mi&&"function"==typeof ReadableStream,Bi=Mi&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fi=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Wi=Ui&&Fi((()=>{let e=!1;const t=new Request(li.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Hi=Ui&&Fi((()=>Fr.isReadableStream(new Response("").body))),Gi={stream:Hi&&(e=>e.body)};var Vi;Mi&&(Vi=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Gi[e]&&(Gi[e]=Fr.isFunction(Vi[e])?t=>t[e]():(t,n)=>{throw new Wr(`Response type '${e}' is not supported`,Wr.ERR_NOT_SUPPORT,n)})})));const Ki=async(e,t)=>{const n=Fr.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Fr.isBlob(e))return e.size;if(Fr.isSpecCompliantForm(e)){const t=new Request(li.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Fr.isArrayBufferView(e)||Fr.isArrayBuffer(e)?e.byteLength:(Fr.isURLSearchParams(e)&&(e+=""),Fr.isString(e)?(await Bi(e)).byteLength:void 0)})(t):n};const $i={http:null,xhr:Pi,fetch:Mi&&(async e=>{let{url:t,method:n,data:o,signal:a,cancelToken:r,timeout:i,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:d="same-origin",fetchOptions:p}=zi(e);c=c?(c+"").toLowerCase():"text";let h,m=Di([a,r&&r.toAbortSignal()],i);const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(u&&Wi&&"get"!==n&&"head"!==n&&0!==(g=await Ki(l,o))){let e,n=new Request(t,{method:"POST",body:o,duplex:"half"});if(Fr.isFormData(o)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=Si(g,Ci(Ri(u)));o=qi(n.body,65536,e,t)}}Fr.isString(d)||(d=d?"include":"omit");const a="credentials"in Request.prototype;h=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:o,duplex:"half",credentials:a?d:void 0});let r=await fetch(h);const i=Hi&&("stream"===c||"response"===c);if(Hi&&(s||i&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=r[t]}));const t=Fr.toFiniteNumber(r.headers.get("content-length")),[n,o]=s&&Si(t,Ci(Ri(s),!0))||[];r=new Response(qi(r.body,65536,n,(()=>{o&&o(),f&&f()})),e)}c=c||"text";let y=await Gi[Fr.findKey(Gi,c)||"text"](r,e);return!i&&f&&f(),await new Promise(((t,n)=>{Ei(t,n,{data:y,headers:ki.from(r.headers),status:r.status,statusText:r.statusText,config:e,request:h})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Wr("Network Error",Wr.ERR_NETWORK,e,h),{cause:t.cause||t});throw Wr.from(t,t&&t.code,e,h)}})};Fr.forEach($i,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qi=e=>`- ${e}`,Ji=e=>Fr.isFunction(e)||null===e||!1===e;var Yi=e=>{e=Fr.isArray(e)?e:[e];const{length:t}=e;let n,o;const a={};for(let r=0;r<t;r++){let t;if(n=e[r],o=n,!Ji(n)&&(o=$i[(t=String(n)).toLowerCase()],void 0===o))throw new Wr(`Unknown adapter '${t}'`);if(o)break;a[t||"#"+r]=o}if(!o){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Wr("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qi).join("\n"):" "+Qi(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function Xi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _i(null,e)}function Zi(e){Xi(e),e.headers=ki.from(e.headers),e.data=ji.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Yi(e.adapter||hi.adapter)(e).then((function(t){return Xi(e),t.data=ji.call(e,e.transformResponse,t),t.headers=ki.from(t.headers),t}),(function(t){return wi(t)||(Xi(e),t&&t.response&&(t.response.data=ji.call(e,e.transformResponse,t.response),t.response.headers=ki.from(t.response.headers))),Promise.reject(t)}))}const es="1.9.0",ts={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ts[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ns={};ts.transitional=function(e,t,n){function o(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,r)=>{if(!1===e)throw new Wr(o(a," has been removed"+(t?" in "+t:"")),Wr.ERR_DEPRECATED);return t&&!ns[a]&&(ns[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,r)}},ts.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var os={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Wr("options must be an object",Wr.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const r=o[a],i=t[r];if(i){const t=e[r],n=void 0===t||i(t,r,e);if(!0!==n)throw new Wr("option "+r+" must be "+n,Wr.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Wr("Unknown option "+r,Wr.ERR_BAD_OPTION)}},validators:ts};const as=os.validators;let rs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ni,response:new ni}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ai(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&os.assertOptions(n,{silentJSONParsing:as.transitional(as.boolean),forcedJSONParsing:as.transitional(as.boolean),clarifyTimeoutError:as.transitional(as.boolean)},!1),null!=o&&(Fr.isFunction(o)?t.paramsSerializer={serialize:o}:os.assertOptions(o,{encode:as.function,serialize:as.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),os.assertOptions(t,{baseUrl:as.spelling("baseURL"),withXsrfToken:as.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=a&&Fr.merge(a.common,a[t.method]);a&&Fr.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=ki.concat(r,a);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[Zi.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);d<l;)c=c.then(e[d++],e[d++]);return c}l=i.length;let p=t;for(d=0;d<l;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Zi.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=u.length;d<l;)c=c.then(u[d++],u[d++]);return c}getUri(e){return ti(xi((e=Ai(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Fr.forEach(["delete","get","head","options"],(function(e){rs.prototype[e]=function(t,n){return this.request(Ai(n||{},{method:e,url:t,data:(n||{}).data}))}})),Fr.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,a){return this.request(Ai(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}rs.prototype[e]=t(),rs.prototype[e+"Form"]=t(!0)}));var is=rs;class ss{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,a){n.reason||(n.reason=new _i(e,o,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ss((function(t){e=t})),cancel:e}}}var us=ss;const cs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cs).forEach((([e,t])=>{cs[t]=e}));var ls=cs;const ds=function e(t){const n=new is(t),o=er(is.prototype.request,n);return Fr.extend(o,is.prototype,n,{allOwnKeys:!0}),Fr.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ai(t,n))},o}(hi);ds.Axios=is,ds.CanceledError=_i,ds.CancelToken=us,ds.isCancel=wi,ds.VERSION=es,ds.toFormData=Jr,ds.AxiosError=Wr,ds.Cancel=ds.CanceledError,ds.all=function(e){return Promise.all(e)},ds.spread=function(e){return function(t){return e.apply(null,t)}},ds.isAxiosError=function(e){return Fr.isObject(e)&&!0===e.isAxiosError},ds.mergeConfig=Ai,ds.AxiosHeaders=ki,ds.formToJSON=e=>di(Fr.isHTMLForm(e)?new FormData(e):e),ds.getAdapter=Yi,ds.HttpStatusCode=ls,ds.default=ds;var ps=ds,hs=function(e){var t=[];return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];if(Array.isArray(o)){var a=o.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(a))}else null!=o&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o))))})),t.join("&")},ms=function(e){function n(n){var o,a,r,i,s=this;return(s=e.call(this,n)||this).token="",null===(a=null===(o=s.instance)||void 0===o?void 0:o.interceptors)||void 0===a||a.request.use((function(e){return t(t({},e),{defaults:{headers:t(t({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})}),(function(e){return Promise.reject(e)})),null===(i=null===(r=s.instance)||void 0===r?void 0:r.interceptors)||void 0===i||i.response.use((function(e){return t({},e)}),(function(e){return Promise.reject(e)})),s}return a(n,e),n.prototype.getToken=function(){return"Bearer ".concat(this.token)},n.prototype.setToken=function(e){this.token=e},n.prototype.getUri=function(e){return this.instance.getUri(e)},n.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=ps.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},n.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},n.prototype.get=function(e,t){return this.instance.get(e,t)},n.prototype.options=function(e,t){return this.instance.options(e,t)},n.prototype.delete=function(e,t){return this.instance.delete(e,t)},n.prototype.head=function(e,t){return this.instance.head(e,t)},n.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},n.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},n.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},n.prototype.success=function(e){return null==e?void 0:e.data},n.prototype.error=function(e){throw e},n}((function(e){this.instance=ps.create(e)})),fs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function gs(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),n}var ys=TypeError,bs=gs(Object.freeze({__proto__:null,default:{}})),vs="function"==typeof Map&&Map.prototype,ks=Object.getOwnPropertyDescriptor&&vs?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,js=vs&&ks&&"function"==typeof ks.get?ks.get:null,ws=vs&&Map.prototype.forEach,_s="function"==typeof Set&&Set.prototype,Es=Object.getOwnPropertyDescriptor&&_s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Cs=_s&&Es&&"function"==typeof Es.get?Es.get:null,Ss=_s&&Set.prototype.forEach,Rs="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ts="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Is="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,xs=Boolean.prototype.valueOf,Os=Object.prototype.toString,As=Function.prototype.toString,zs=String.prototype.match,Ps=String.prototype.slice,Ds=String.prototype.replace,Ls=String.prototype.toUpperCase,Ns=String.prototype.toLowerCase,qs=RegExp.prototype.test,Ms=Array.prototype.concat,Us=Array.prototype.join,Bs=Array.prototype.slice,Fs=Math.floor,Ws="function"==typeof BigInt?BigInt.prototype.valueOf:null,Hs=Object.getOwnPropertySymbols,Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Vs="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Ks="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Vs||"symbol")?Symbol.toStringTag:null,$s=Object.prototype.propertyIsEnumerable,Qs=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Js(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||qs.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-Fs(-e):Fs(e);if(o!==e){var a=String(o),r=Ps.call(t,a.length+1);return Ds.call(a,n,"$&_")+"."+Ds.call(Ds.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ds.call(t,n,"$&_")}var Ys=bs,Xs=Ys.custom,Zs=uu(Xs)?Xs:null,eu={__proto__:null,double:'"',single:"'"},tu={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},nu=function e(t,n,o,a){var r=n||{};if(lu(r,"quoteStyle")&&!lu(eu,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lu(r,"maxStringLength")&&("number"==typeof r.maxStringLength?r.maxStringLength<0&&r.maxStringLength!==1/0:null!==r.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!lu(r,"customInspect")||r.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lu(r,"indent")&&null!==r.indent&&"\t"!==r.indent&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lu(r,"numericSeparator")&&"boolean"!=typeof r.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=r.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return hu(t,r);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return s?Js(t,u):u}if("bigint"==typeof t){var c=String(t)+"n";return s?Js(t,c):c}var l=void 0===r.depth?5:r.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return iu(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Us.call(Array(e.indent+1)," ")}return{base:n,prev:Us.call(Array(t+1),n)}}(r,o);if(void 0===a)a=[];else if(pu(a,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(a=Bs.call(a)).push(n),i){var s={depth:r.depth};return lu(r,"quoteStyle")&&(s.quoteStyle=r.quoteStyle),e(t,s,o+1,a)}return e(t,r,o+1,a)}if("function"==typeof t&&!su(t)){var h=function(e){if(e.name)return e.name;var t=zs.call(As.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),m=vu(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Us.call(m,", ")+" }":"")}if(uu(t)){var f=Vs?Ds.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Gs.call(t);return"object"!=typeof t||Vs?f:fu(f)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+Ns.call(String(t.nodeName)),y=t.attributes||[],b=0;b<y.length;b++)g+=" "+y[b].name+"="+ou(au(y[b].value),"double",r);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Ns.call(String(t.nodeName))+">"}if(iu(t)){if(0===t.length)return"[]";var v=vu(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(pu(e[t],"\n")>=0)return!1;return!0}(v)?"["+bu(v,d)+"]":"[ "+Us.call(v,", ")+" ]"}if(function(e){return"[object Error]"===du(e)&&ru(e)}(t)){var k=vu(t,p);return"cause"in Error.prototype||!("cause"in t)||$s.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Us.call(k,", ")+" }":"{ ["+String(t)+"] "+Us.call(Ms.call("[cause]: "+p(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(Zs&&"function"==typeof t[Zs]&&Ys)return Ys(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!js||!e||"object"!=typeof e)return!1;try{js.call(e);try{Cs.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var j=[];return ws&&ws.call(t,(function(e,n){j.push(p(n,t,!0)+" => "+p(e,t))})),yu("Map",js.call(t),j,d)}if(function(e){if(!Cs||!e||"object"!=typeof e)return!1;try{Cs.call(e);try{js.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Ss&&Ss.call(t,(function(e){w.push(p(e,t))})),yu("Set",Cs.call(t),w,d)}if(function(e){if(!Rs||!e||"object"!=typeof e)return!1;try{Rs.call(e,Rs);try{Ts.call(e,Ts)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return gu("WeakMap");if(function(e){if(!Ts||!e||"object"!=typeof e)return!1;try{Ts.call(e,Ts);try{Rs.call(e,Rs)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return gu("WeakSet");if(function(e){if(!Is||!e||"object"!=typeof e)return!1;try{return Is.call(e),!0}catch(e){}return!1}(t))return gu("WeakRef");if(function(e){return"[object Number]"===du(e)&&ru(e)}(t))return fu(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Ws)return!1;try{return Ws.call(e),!0}catch(e){}return!1}(t))return fu(p(Ws.call(t)));if(function(e){return"[object Boolean]"===du(e)&&ru(e)}(t))return fu(xs.call(t));if(function(e){return"[object String]"===du(e)&&ru(e)}(t))return fu(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==fs&&t===fs)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===du(e)&&ru(e)}(t)&&!su(t)){var _=vu(t,p),E=Qs?Qs(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&Ks&&Object(t)===t&&Ks in t?Ps.call(du(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+Us.call(Ms.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":d?R+"{"+bu(_,d)+"}":R+"{ "+Us.call(_,", ")+" }"}return String(t)};function ou(e,t,n){var o=n.quoteStyle||t,a=eu[o];return a+e+a}function au(e){return Ds.call(String(e),/"/g,"&quot;")}function ru(e){return!Ks||!("object"==typeof e&&(Ks in e||void 0!==e[Ks]))}function iu(e){return"[object Array]"===du(e)&&ru(e)}function su(e){return"[object RegExp]"===du(e)&&ru(e)}function uu(e){if(Vs)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Gs)return!1;try{return Gs.call(e),!0}catch(e){}return!1}var cu=Object.prototype.hasOwnProperty||function(e){return e in this};function lu(e,t){return cu.call(e,t)}function du(e){return Os.call(e)}function pu(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function hu(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return hu(Ps.call(e,0,t.maxStringLength),t)+o}var a=tu[t.quoteStyle||"single"];return a.lastIndex=0,ou(Ds.call(Ds.call(e,a,"\\$1"),/[\x00-\x1f]/g,mu),"single",t)}function mu(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Ls.call(t.toString(16))}function fu(e){return"Object("+e+")"}function gu(e){return e+" { ? }"}function yu(e,t,n,o){return e+" ("+t+") {"+(o?bu(n,o):Us.call(n,", "))+"}"}function bu(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Us.call(e,","+n)+"\n"+t.prev}function vu(e,t){var n=iu(e),o=[];if(n){o.length=e.length;for(var a=0;a<e.length;a++)o[a]=lu(e,a)?t(e[a],e):""}var r,i="function"==typeof Hs?Hs(e):[];if(Vs){r={};for(var s=0;s<i.length;s++)r["$"+i[s]]=i[s]}for(var u in e)lu(e,u)&&(n&&String(Number(u))===u&&u<e.length||Vs&&r["$"+u]instanceof Symbol||(qs.call(/[^\w$]/,u)?o.push(t(u,e)+": "+t(e[u],e)):o.push(u+": "+t(e[u],e))));if("function"==typeof Hs)for(var c=0;c<i.length;c++)$s.call(e,i[c])&&o.push("["+t(i[c])+"]: "+t(e[i[c]],e));return o}var ku=nu,ju=ys,wu=function(e,t,n){for(var o,a=e;null!=(o=a.next);a=o)if(o.key===t)return a.next=o.next,n||(o.next=e.next,e.next=o),o},_u=Object,Eu=Error,Cu=EvalError,Su=RangeError,Ru=ReferenceError,Tu=SyntaxError,Iu=URIError,xu=Math.abs,Ou=Math.floor,Au=Math.max,zu=Math.min,Pu=Math.pow,Du=Math.round,Lu=Number.isNaN||function(e){return e!=e},Nu=Object.getOwnPropertyDescriptor;if(Nu)try{Nu([],"length")}catch(e){Nu=null}var qu=Nu,Mu=Object.defineProperty||!1;if(Mu)try{Mu({},"a",{value:1})}catch(e){Mu=!1}var Uu,Bu,Fu,Wu,Hu,Gu,Vu,Ku,$u,Qu,Ju,Yu,Xu,Zu,ec,tc,nc=Mu;function oc(){return Gu?Hu:(Gu=1,Hu="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function ac(){return Ku?Vu:(Ku=1,Vu=_u.getPrototypeOf||null)}function rc(){if(Qu)return $u;Qu=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};return $u=function(o){var a=this;if("function"!=typeof a||"[object Function]"!==e.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var r,i=function(e,t){for(var n=[],o=t||0,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n}(arguments,1),s=t(0,a.length-i.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(r=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var e=a.apply(this,n(i,arguments));return Object(e)===e?e:this}return a.apply(o,n(i,arguments))})),a.prototype){var l=function(){};l.prototype=a.prototype,r.prototype=new l,l.prototype=null}return r},$u}function ic(){if(Yu)return Ju;Yu=1;var e=rc();return Ju=Function.prototype.bind||e}function sc(){return Zu?Xu:(Zu=1,Xu=Function.prototype.call)}function uc(){return tc?ec:(tc=1,ec=Function.prototype.apply)}var cc,lc,dc,pc,hc,mc,fc,gc="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,yc=ic(),bc=uc(),vc=sc(),kc=gc||yc.call(vc,bc),jc=ic(),wc=ys,_c=sc(),Ec=kc,Cc=function(e){if(e.length<1||"function"!=typeof e[0])throw new wc("a function is required");return Ec(jc,_c,e)};var Sc=_u,Rc=Eu,Tc=Cu,Ic=Su,xc=Ru,Oc=Tu,Ac=ys,zc=Iu,Pc=xu,Dc=Ou,Lc=Au,Nc=zu,qc=Pu,Mc=Du,Uc=function(e){return Lu(e)||0===e?e:e<0?-1:1},Bc=Function,Fc=function(e){try{return Bc('"use strict"; return ('+e+").constructor;")()}catch(e){}},Wc=qu,Hc=nc,Gc=function(){throw new Ac},Vc=Wc?function(){try{return Gc}catch(e){try{return Wc(arguments,"callee").get}catch(e){return Gc}}}():Gc,Kc=function(){if(Wu)return Fu;Wu=1;var e="undefined"!=typeof Symbol&&Symbol,t=Bu?Uu:(Bu=1,Uu=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0});return Fu=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),$c=function(){if(pc)return dc;pc=1;var e=oc(),t=ac(),n=function(){if(lc)return cc;lc=1;var e,t=Cc,n=qu;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,r=a.getPrototypeOf;return cc=o&&"function"==typeof o.get?t([o.get]):"function"==typeof r&&function(e){return r(null==e?e:a(e))}}();return dc=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),Qc=ac(),Jc=oc(),Yc=uc(),Xc=sc(),Zc={},el="undefined"!=typeof Uint8Array&&$c?$c(Uint8Array):fc,tl={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?fc:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?fc:ArrayBuffer,"%ArrayIteratorPrototype%":Kc&&$c?$c([][Symbol.iterator]()):fc,"%AsyncFromSyncIteratorPrototype%":fc,"%AsyncFunction%":Zc,"%AsyncGenerator%":Zc,"%AsyncGeneratorFunction%":Zc,"%AsyncIteratorPrototype%":Zc,"%Atomics%":"undefined"==typeof Atomics?fc:Atomics,"%BigInt%":"undefined"==typeof BigInt?fc:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?fc:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?fc:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?fc:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Rc,"%eval%":eval,"%EvalError%":Tc,"%Float16Array%":"undefined"==typeof Float16Array?fc:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?fc:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?fc:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?fc:FinalizationRegistry,"%Function%":Bc,"%GeneratorFunction%":Zc,"%Int8Array%":"undefined"==typeof Int8Array?fc:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?fc:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?fc:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Kc&&$c?$c($c([][Symbol.iterator]())):fc,"%JSON%":"object"==typeof JSON?JSON:fc,"%Map%":"undefined"==typeof Map?fc:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Kc&&$c?$c((new Map)[Symbol.iterator]()):fc,"%Math%":Math,"%Number%":Number,"%Object%":Sc,"%Object.getOwnPropertyDescriptor%":Wc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?fc:Promise,"%Proxy%":"undefined"==typeof Proxy?fc:Proxy,"%RangeError%":Ic,"%ReferenceError%":xc,"%Reflect%":"undefined"==typeof Reflect?fc:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?fc:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Kc&&$c?$c((new Set)[Symbol.iterator]()):fc,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?fc:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Kc&&$c?$c(""[Symbol.iterator]()):fc,"%Symbol%":Kc?Symbol:fc,"%SyntaxError%":Oc,"%ThrowTypeError%":Vc,"%TypedArray%":el,"%TypeError%":Ac,"%Uint8Array%":"undefined"==typeof Uint8Array?fc:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?fc:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?fc:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?fc:Uint32Array,"%URIError%":zc,"%WeakMap%":"undefined"==typeof WeakMap?fc:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?fc:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?fc:WeakSet,"%Function.prototype.call%":Xc,"%Function.prototype.apply%":Yc,"%Object.defineProperty%":Hc,"%Object.getPrototypeOf%":Qc,"%Math.abs%":Pc,"%Math.floor%":Dc,"%Math.max%":Lc,"%Math.min%":Nc,"%Math.pow%":qc,"%Math.round%":Mc,"%Math.sign%":Uc,"%Reflect.getPrototypeOf%":Jc};if($c)try{null.error}catch(e){var nl=$c($c(e));tl["%Error.prototype%"]=nl}var ol,al,rl,il,sl,ul,cl,ll,dl,pl,hl,ml,fl,gl,yl=function e(t){var n;if("%AsyncFunction%"===t)n=Fc("async function () {}");else if("%GeneratorFunction%"===t)n=Fc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Fc("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&$c&&(n=$c(a.prototype))}return tl[t]=n,n},bl={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},vl=ic(),kl=function(){if(mc)return hc;mc=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=ic();return hc=n.call(e,t)}(),jl=vl.call(Xc,Array.prototype.concat),wl=vl.call(Yc,Array.prototype.splice),_l=vl.call(Xc,String.prototype.replace),El=vl.call(Xc,String.prototype.slice),Cl=vl.call(Xc,RegExp.prototype.exec),Sl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Rl=/\\(\\)?/g,Tl=function(e,t){var n,o=e;if(kl(bl,o)&&(o="%"+(n=bl[o])[0]+"%"),kl(tl,o)){var a=tl[o];if(a===Zc&&(a=yl(o)),void 0===a&&!t)throw new Ac("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new Oc("intrinsic "+e+" does not exist!")},Il=function(e,t){if("string"!=typeof e||0===e.length)throw new Ac("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Ac('"allowMissing" argument must be a boolean');if(null===Cl(/^%?[^%]*%?$/,e))throw new Oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=El(e,0,1),n=El(e,-1);if("%"===t&&"%"!==n)throw new Oc("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Oc("invalid intrinsic syntax, expected opening `%`");var o=[];return _l(e,Sl,(function(e,t,n,a){o[o.length]=n?_l(a,Rl,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",a=Tl("%"+o+"%",t),r=a.name,i=a.value,s=!1,u=a.alias;u&&(o=u[0],wl(n,jl([0,1],u)));for(var c=1,l=!0;c<n.length;c+=1){var d=n[c],p=El(d,0,1),h=El(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new Oc("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),kl(tl,r="%"+(o+="."+d)+"%"))i=tl[r];else if(null!=i){if(!(d in i)){if(!t)throw new Ac("base intrinsic for "+e+" exists, but the property is not available.");return}if(Wc&&c+1>=n.length){var m=Wc(i,d);i=(l=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:i[d]}else l=kl(i,d),i=i[d];l&&!s&&(tl[r]=i)}}return i},xl=Il,Ol=Cc,Al=Ol([xl("%String.prototype.indexOf%")]),zl=function(e,t){var n=xl(e,!!t);return"function"==typeof n&&Al(e,".prototype.")>-1?Ol([n]):n},Pl=zl,Dl=nu,Ll=ys,Nl=Il("%Map%",!0),ql=Pl("Map.prototype.get",!0),Ml=Pl("Map.prototype.set",!0),Ul=Pl("Map.prototype.has",!0),Bl=Pl("Map.prototype.delete",!0),Fl=Pl("Map.prototype.size",!0),Wl=!!Nl&&function(){var e,t={assert:function(e){if(!t.has(e))throw new Ll("Side channel does not contain "+Dl(e))},delete:function(t){if(e){var n=Bl(e,t);return 0===Fl(e)&&(e=void 0),n}return!1},get:function(t){if(e)return ql(e,t)},has:function(t){return!!e&&Ul(e,t)},set:function(t,n){e||(e=new Nl),Ml(e,t,n)}};return t},Hl=zl,Gl=nu,Vl=Wl,Kl=ys,$l=Il("%WeakMap%",!0),Ql=Hl("WeakMap.prototype.get",!0),Jl=Hl("WeakMap.prototype.set",!0),Yl=Hl("WeakMap.prototype.has",!0),Xl=Hl("WeakMap.prototype.delete",!0),Zl=ys,ed=nu,td=($l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new Kl("Side channel does not contain "+Gl(e))},delete:function(n){if($l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Xl(e,n)}else if(Vl&&t)return t.delete(n);return!1},get:function(n){return $l&&n&&("object"==typeof n||"function"==typeof n)&&e?Ql(e,n):t&&t.get(n)},has:function(n){return $l&&n&&("object"==typeof n||"function"==typeof n)&&e?Yl(e,n):!!t&&t.has(n)},set:function(n,o){$l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new $l),Jl(e,n,o)):Vl&&(t||(t=Vl()),t.set(n,o))}};return n}:Vl)||Wl||function(){var e,t={assert:function(e){if(!t.has(e))throw new ju("Side channel does not contain "+ku(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return wu(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},get:function(t){return function(e,t){if(e){var n=wu(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!wu(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=wu(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},nd=String.prototype.replace,od=/%20/g,ad="RFC3986",rd={default:ad,formatters:{RFC1738:function(e){return nd.call(e,od,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:ad},id=rd,sd=Object.prototype.hasOwnProperty,ud=Array.isArray,cd=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ld=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},dd=1024,pd={arrayToObject:ld,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var a=t[o],r=a.obj[a.prop],i=Object.keys(r),s=0;s<i.length;++s){var u=i[s],c=r[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:r,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(ud(n)){for(var o=[],a=0;a<n.length;++a)void 0!==n[a]&&o.push(n[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,a){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<r.length;s+=dd){for(var u=r.length>=dd?r.slice(s,s+dd):r,c=[],l=0;l<u.length;++l){var d=u.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===id.RFC1738&&(40===d||41===d)?c[c.length]=u.charAt(l):d<128?c[c.length]=cd[d]:d<2048?c[c.length]=cd[192|d>>6]+cd[128|63&d]:d<55296||d>=57344?c[c.length]=cd[224|d>>12]+cd[128|d>>6&63]+cd[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&u.charCodeAt(l)),c[c.length]=cd[240|d>>18]+cd[128|d>>12&63]+cd[128|d>>6&63]+cd[128|63&d])}i+=c.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(ud(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(ud(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!sd.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return ud(t)&&!ud(n)&&(a=ld(t,o)),ud(t)&&ud(n)?(n.forEach((function(n,a){if(sd.call(t,a)){var r=t[a];r&&"object"==typeof r&&n&&"object"==typeof n?t[a]=e(r,n,o):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var r=n[a];return sd.call(t,a)?t[a]=e(t[a],r,o):t[a]=r,t}),a)}},hd=function(){var e,t={assert:function(e){if(!t.has(e))throw new Zl("Side channel does not contain "+ed(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=td()),e.set(t,n)}};return t},md=pd,fd=rd,gd=Object.prototype.hasOwnProperty,yd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},bd=Array.isArray,vd=Array.prototype.push,kd=function(e,t){vd.apply(e,bd(t)?t:[t])},jd=Date.prototype.toISOString,wd=fd.default,_d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:md.encode,encodeValuesOnly:!1,format:wd,formatter:fd.formatters[wd],indices:!1,serializeDate:function(e){return jd.call(e)},skipNulls:!1,strictNullHandling:!1},Ed={},Cd=function e(t,n,o,a,r,i,s,u,c,l,d,p,h,m,f,g,y,b){for(var v,k=t,j=b,w=0,_=!1;void 0!==(j=j.get(Ed))&&!_;){var E=j.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");_=!0}void 0===j.get(Ed)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=h(k):"comma"===o&&bd(k)&&(k=md.maybeMap(k,(function(e){return e instanceof Date?h(e):e}))),null===k){if(i)return c&&!g?c(n,_d.encoder,y,"key",m):n;k=""}if("string"==typeof(v=k)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||md.isBuffer(k))return c?[f(g?n:c(n,_d.encoder,y,"key",m))+"="+f(c(k,_d.encoder,y,"value",m))]:[f(n)+"="+f(String(k))];var C,S=[];if(void 0===k)return S;if("comma"===o&&bd(k))g&&c&&(k=md.maybeMap(k,c)),C=[{value:k.length>0?k.join(",")||null:void 0}];else if(bd(l))C=l;else{var R=Object.keys(k);C=d?R.sort(d):R}var T=u?n.replace(/\./g,"%2E"):n,I=a&&bd(k)&&1===k.length?T+"[]":T;if(r&&bd(k)&&0===k.length)return I+"[]";for(var x=0;x<C.length;++x){var O=C[x],A="object"==typeof O&&void 0!==O.value?O.value:k[O];if(!s||null!==A){var z=p&&u?O.replace(/\./g,"%2E"):O,P=bd(k)?"function"==typeof o?o(I,z):I:I+(p?"."+z:"["+z+"]");b.set(t,w);var D=hd();D.set(Ed,b),kd(S,e(A,P,o,a,r,i,s,u,"comma"===o&&g&&bd(k)?null:c,l,d,p,h,m,f,g,y,D))}}return S},Sd=pd,Rd=Object.prototype.hasOwnProperty,Td=Array.isArray,Id={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Sd.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},xd=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Od=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ad=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=i?a.slice(0,i.index):a,u=[];if(s){if(!n.plainObjects&&Rd.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var c=0;n.depth>0&&null!==(i=r.exec(a))&&c<n.depth;){if(c+=1,!n.plainObjects&&Rd.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(i[1])}if(i){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(i.index)+"]")}return function(e,t,n,o){for(var a=o?t:Od(t,n),r=e.length-1;r>=0;--r){var i,s=e[r];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=n.decodeDotInKeys?u.replace(/%2E/g,"."):u,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(i=[])[l]=a:"__proto__"!==c&&(i[c]=a):i={0:a}}a=i}return a}(u,t,n,o)}},zd=function(e,t){var n,o=e,a=function(e){if(!e)return _d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||_d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=fd.default;if(void 0!==e.format){if(!gd.call(fd.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=fd.formatters[n],r=_d.filter;if(("function"==typeof e.filter||bd(e.filter))&&(r=e.filter),o=e.arrayFormat in yd?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":_d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||_d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:_d.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:_d.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:_d.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?_d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:_d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:_d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:_d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:_d.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:_d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:_d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:_d.strictNullHandling}}(t);"function"==typeof a.filter?o=(0,a.filter)("",o):bd(a.filter)&&(n=a.filter);var r=[];if("object"!=typeof o||null===o)return"";var i=yd[a.arrayFormat],s="comma"===i&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var u=hd(),c=0;c<n.length;++c){var l=n[c];a.skipNulls&&null===o[l]||kd(r,Cd(o[l],l,i,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,u))}var d=r.join(a.delimiter),p=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),d.length>0?p+d:""},Pd=function(e,t){var n=function(e){if(!e)return Id;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Id.charset:e.charset,n=void 0===e.duplicates?Id.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||Id.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Id.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Id.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Id.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Id.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Id.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Id.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Id.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Id.decoder,delimiter:"string"==typeof e.delimiter||Sd.isRegExp(e.delimiter)?e.delimiter:Id.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Id.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Id.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Id.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Id.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Id.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Id.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a,r=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,r),s=-1,u=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?u="utf-8":"utf8=%26%2310003%3B"===i[a]&&(u="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var c,l,d=i[a],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;-1===h?(c=t.decoder(d,Id.decoder,u,"key"),l=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,h),Id.decoder,u,"key"),l=Sd.maybeMap(Od(d.slice(h+1),t),(function(e){return t.decoder(e,Id.decoder,u,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=xd(l)),d.indexOf("[]=")>-1&&(l=Td(l)?[l]:l);var m=Rd.call(n,c);m&&"combine"===t.duplicates?n[c]=Sd.combine(n[c],l):m&&"last"!==t.duplicates||(n[c]=l)}return n}(e,n):e,a=n.plainObjects?Object.create(null):{},r=Object.keys(o),i=0;i<r.length;++i){var s=r[i],u=Ad(s,o[s],n,"string"==typeof e);a=Sd.merge(a,u,n)}return!0===n.allowSparse?a:Sd.compact(a)},Dd={formats:rd,parse:Pd,stringify:zd},Ld={withCredentials:!1,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return Dd.stringify(e,{indices:!1})}},Nd=[{value:"CHART_NOT_EXPECTED",labelKey:"insights.feedback.issues.chartNotExpected"},{value:"TIME_RANGE_INCORRECT",labelKey:"insights.feedback.issues.timeRangeIncorrect"},{value:"DATA_INACCURATE",labelKey:"insights.feedback.issues.dataInaccurate"},{value:"NOT_ANSWERING_QUESTION",labelKey:"insights.feedback.issues.notAnsweringQuestion"},{value:"EXPECTED_INSIGHTS",labelKey:"insights.feedback.issues.expectedInsights"},{value:"OTHER",labelKey:"insights.feedback.issues.other"}];!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(ol||(ol={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(al||(al={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(rl||(rl={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(il||(il={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(sl||(sl={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(ul||(ul={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(cl||(cl={})),function(e){var t,n;e.DEFAULT_ROUTING_TYPE="smart-routing",(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(ll||(ll={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(dl||(dl={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.FEES="FEES",e.ADVANCEMENTS="ADVANCEMENTS",e.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",e.SETTLEMENTS_FEES="SETTLEMENTS_FEES",e.CASHFLOW="CASHFLOW",e.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS"}(pl||(pl={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(hl||(hl={})),function(e){var t;(t=e.AuditExportReportType||(e.AuditExportReportType={})).DASHBOARD="DASHBOARD",t.API="API",t.WEBHOOKS="WEBHOOKS",t.MONITORS="MONITORS"}(ml||(ml={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(fl||(fl={})),function(e){var t;(t=e.ConfigType||(e.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",t.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",t.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN"}(gl||(gl={}));var qd=["PAUSED","ACTIVE"],Md={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},Ud="DELETED",Bd={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},Fd=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},Wd=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],Hd=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],Gd=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],Vd=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],Kd=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],$d={docs_url:"https://docs.y.uno/reference/api-reference-overview"},Qd={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},Jd=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const Yd=[];for(let e=0;e<256;++e)Yd.push((e+256).toString(16).slice(1));let Xd;const Zd=new Uint8Array(16);var ep={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tp(e,t,n){if(ep.randomUUID&&!t&&!e)return ep.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!Xd){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Xd=crypto.getRandomValues.bind(crypto)}return Xd(Zd)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(Yd[e[t+0]]+Yd[e[t+1]]+Yd[e[t+2]]+Yd[e[t+3]]+"-"+Yd[e[t+4]]+Yd[e[t+5]]+"-"+Yd[e[t+6]]+Yd[e[t+7]]+"-"+Yd[e[t+8]]+Yd[e[t+9]]+"-"+Yd[e[t+10]]+Yd[e[t+11]]+Yd[e[t+12]]+Yd[e[t+13]]+Yd[e[t+14]]+Yd[e[t+15]]).toLowerCase()}(o)}var np=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function op(e){return e&&0!==e.length?{metadata_filters:e.map((function(e){return{key:e.field,conditional:e.type,values:e.values}}))}:{}}var ap=function(e){function i(n){var o=n?t(t({},Ld),n):Ld;return e.call(this,o)||this}return a(i,e),i.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},i.prototype.updateReconciliationReportTemplate=function(e){var n=e.type===pl.TRANSACTIONS?"TRANSACTIONS":e.type,o=t(t({},e),{type:n});return this.put("/v1/reconciliation/reports/templates",o)},i.prototype.createReconciliationReportTemplate=function(e){var n=e.type===pl.TRANSACTIONS?"TRANSACTIONS":e.type,o=t(t({},e),{type:n});return this.post("/v1/reconciliation/reports/templates",o)},i.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},i.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},i.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},i.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},i.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},i.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},i.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},i.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},i.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},i.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},i.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},i.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},i.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},i.prototype.getReconciliationInsightsConflictsSummary=function(e){return this.post("/reconciliations/insights/conflicts/summary",e)},i.prototype.getReconciliationInsightsNotReconciledAggregators=function(e){return this.post("/reconciliations/insights/not-reconciled/aggregators",e)},i.prototype.getReconciliationInsightsNotReconciledList=function(e){return this.post("/reconciliations/insights/not-reconciled/list",e)},i.prototype.getReconciliationInsightsStatusConflictAggregators=function(e){return this.post("/reconciliations/insights/status-conflict/aggregators",e)},i.prototype.getReconciliationInsightsStatusConflictList=function(e){return this.post("/reconciliations/insights/status-conflict/list",e)},i.prototype.getReconciliationInsightsAmountConflictAggregators=function(e){return this.post("/reconciliations/insights/amount-conflict/aggregators",e)},i.prototype.getReconciliationInsightsAmountConflictList=function(e){return this.post("/reconciliations/insights/amount-conflict/list",e)},i.prototype.getReconciliationInsightsConflictDateSummary=function(e){return this.post("/reconciliations/insights/conflict-date/summary",e)},i.prototype.getReconciliationInsightsConflictDateAggregators=function(e){return this.post("/reconciliations/insights/conflict-date/aggregators",e)},i.prototype.getReconciliationInsightsConflictDateList=function(e){return this.post("/reconciliations/insights/conflict-date/list",e)},i.prototype.getReconciliationInsightsIncorrectFeesSummary=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsIncorrectFeesAggregators=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/aggregators",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsIncorrectFeesList=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/list",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsFeesChargedSummary=function(e,t){return this.post("/reconciliations/insights/fees-charged/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsReconciledSummary=function(e,t){return this.post("/reconciliations/insights/reconciled/summary",e,t?{params:{date_filter:t}}:void 0)},i.prototype.getReconciliationInsightsReconciledAggregators=function(e,t,n){var o={};return t&&(o.date_filter=t),n&&(o.type=n),this.post("/reconciliations/insights/reconciled/aggregators",e,Object.keys(o).length>0?{params:o}:void 0)},i.prototype.getReconciliationInsightsReconciledList=function(e,t,n){var o={};return t&&(o.date_filter=t),n&&(o.type=n),this.post("/reconciliations/insights/reconciled/list",e,Object.keys(o).length>0?{params:o}:void 0)},i.prototype.getReconciliationInsightsNotConfirmSummary=function(e){return this.post("/reconciliations/insights/not-confirm/summary",e)},i.prototype.getReconciliationInsightsNotConfirmAggregators=function(e){return this.post("/reconciliations/insights/not-confirm/aggregators",e)},i.prototype.getReconciliationInsightsNotConfirmList=function(e){return this.post("/reconciliations/insights/not-confirm/list",e)},i.prototype.getReconciliationInsightsAmountToBeSettledSummary=function(e){return this.post("/reconciliations/insights/amount-to-be-settled/summary",e)},i.prototype.postPaymentsLazy=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]);return a.start_date||(a.start_date=new Date),a.end_date||(a.end_date=new Date),this.post("/payments/lazy",t({account_codes:(null==n?void 0:n.split(","))||[]},op(o)),{params:a})},i.prototype.postPayouts=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]);return a.start_date||(a.start_date=new Date),a.end_date||(a.end_date=new Date),this.post("/payouts",t({account_codes:(null==n?void 0:n.split(","))||[]},op(o)),{params:a})},i.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},i.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=r(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},i.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},i.prototype.postTransactions=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]);return this.post("/v2/transactions",t({account_codes:(null==n?void 0:n.split(","))||[]},op(o)),{params:a})},i.prototype.postFraudTransactions=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]);return this.post("/fraud-transactions",t({account_codes:(null==n?void 0:n.split(","))||[]},op(o)),{params:a})},i.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},i.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},i.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},i.prototype.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},i.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,a=localStorage.getItem("x-organization-code"),r={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),a?{}:{headers:r})},i.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},i.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},i.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},i.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},i.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},i.prototype.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},i.prototype.uploadChargebacks=function(e,t,n,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":tp()}})},i.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},i.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},i.prototype.getDeveloperCredentials=function(e,t,n,o){var a={};return e&&(a["x-password"]=e),t&&(a["x-account-code"]=t),n&&(a["x-otp"]=n),o&&(a["x-mfa-token"]=o),this.get("/v2/developers/credentials",{headers:a})},i.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},i.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{headers:{"x-password":e}})},i.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},i.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},i.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},i.prototype.getAllOrganization=function(){return this.get("/organizations/all")},i.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:a})},i.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},i.prototype.putCosts=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){return[2,this.put("/connections/costs",{costs:[e]})]}))}))},i.prototype.updateOrganizationStatus=function(){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.patch("/organizations/status")]}))}))},i.prototype.addToRiskList=function(e,t){return this.post("/payments/".concat(e,"/add-to-risk-list"),t)},i.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},i.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},i.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},i.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},i.prototype.getConnectionsByPaymentMethod=function(e,t){return n(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this.get("/organizations/connections/".concat(e,"/").concat(t))]}))}))},i.prototype.getHashPylon=function(){return this.get("/pylon-hash")},i.prototype.getConnections=function(){return this.get("/connections")},i.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},i.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==Ud)return delete t.status,this.delete(o,{data:t});Object.values(qd).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(Md[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},i.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},i.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},i.prototype.patchConnection=function(e){var n,o=e.payload,a=e.connectionCode,r=localStorage.getItem("account"),i=r?null===(n=JSON.parse(r).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(a),t({account_code:i},o))},i.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},i.prototype.getDialogs=function(){return this.get("/dialogs")},i.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},i.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},i.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},i.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},i.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},i.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},i.prototype.getMenu=function(){return this.get("/cms/menu")},i.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,o=r(t,["account_code"]),a={account_codes:n};return this.post("/v2/webhooks/organization",a,{params:o,paramsSerializer:hs})},i.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},i.prototype.postExportApiLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/api-logs/organization/export-csv",t,{params:e,paramsSerializer:hs})},i.prototype.postExportWebhooksLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/webhooks/organization/export-csv",t,{params:e,paramsSerializer:hs})},i.prototype.postExportDashboardLogs=function(e){var t={account_codes:e.account_code,event:e.event,source:e.source,search:e.search},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/v2/events/organization/export-csv",t,{params:n,paramsSerializer:hs})},i.prototype.postExportMonitorsLogs=function(e){var t={account_codes:e.account_codes,status:e.status,payment_methods:e.payment_methods,providers:e.providers,traffic_redistribution:e.traffic_redistribution},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/routing-monitor/audit/export-csv",t,{params:n,paramsSerializer:hs})},i.prototype.getAuditExportsList=function(e){return this.get("/audit/reports",{params:{report_type:e}})},i.prototype.getAuditExportDownload=function(e){return this.get("/audit/reports/".concat(e,"/download"))},i.prototype.getUnifiedExportsPath=function(e){return"/v1/".concat(e,"/exports")},i.prototype.postUnifiedExport=function(e,t){return this.post(this.getUnifiedExportsPath(e),t)},i.prototype.getUnifiedExportStatus=function(e,t){var n=this.getUnifiedExportsPath(e);return this.get("".concat(n,"/").concat(t))},i.prototype.getUnifiedExportsList=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.get(this.getUnifiedExportsPath(e),{params:{page:t,size:n}})},i.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,o=r(t,["account_code"]),a={account_codes:n};return this.post("/v2/api-logs/organization",a,{params:o,paramsSerializer:hs})},i.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},i.prototype.getApiLogsByTransactionCode=function(e,t){return this.get("/v2/api-logs/transaction/".concat(e),{headers:{"x-account-code":t}})},i.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},i.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},i.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},i.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},i.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},i.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},i.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},i.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},i.prototype.getLocales=function(){return this.get("/cms/locales")},i.prototype.getSmartRoutingMethods=function(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/methods/").concat(e))},i.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},i.prototype.getSmartRoutingConditionTypes=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(n,"/condition-types/").concat(e,"/").concat(t))},i.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},i.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingNextSteps=function(e,t,n,o){return void 0===o&&(o=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(o,"/next-route/").concat(e,"/").concat(t,"/").concat(n))},i.prototype.getSmartRoutingWorkflowVersion=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(n,"/workflow-version/").concat(e,"/").concat(t))},i.prototype.getSmartRoutingWorkflow=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(n,"/workflow/").concat(e,"/").concat(t))},i.prototype.putSmartRoutingUpdateWorkflow=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.put("/".concat(n,"/update-workflow/").concat(e),t)},i.prototype.putSmartRoutingUpdateWorkflowName=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.put("/".concat(n,"/workflow/").concat(e,"/edit-name"),t)},i.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},i.prototype.postSmartRoutingPublishVersion=function(e,t,n,o){void 0===o&&(o=ll.DEFAULT_ROUTING_TYPE);var a={"x-organization-code":n};return this.post("/".concat(o,"/publish-version/").concat(e,"/").concat(t),{},{headers:a})},i.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},i.prototype.postSmartRoutingDuplicateVersion=function(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),this.post("/".concat(n,"/duplicate-version/").concat(e,"/").concat(t))},i.prototype.getSmartRoutingDeclinedGroup=function(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/declined-groups/").concat(e))},i.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},i.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},i.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},i.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},i.prototype.getSmartRoutingSimulateConditionTypeValues=function(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/condition-types-values-list/").concat(e))},i.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},i.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},i.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},i.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},i.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},i.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},i.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},i.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},i.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},i.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},i.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},i.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},i.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},i.prototype.getInsightsMetricsConversionRateV2=function(e,n){var o=e.account_code,a=e.connection_name,i=e.metadata,s=r(e,["account_code","connection_name","metadata"]),u=np(o);return a&&(u.connection_name=a.split(",")),i&&(u=t(t({},u),op(i))),this.post("/insights/conversion-rate/".concat(n),u,{params:s})},i.prototype.getInsightsMetricsConversionRateViewMore=function(e,n){var o=e.account_code,a=e.metadata,i=r(e,["account_code","metadata"]),s=np(o);return a&&(s=t(t({},s),op(a))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),s,{params:i})},i.prototype.getInsightFallbackMetrics=function(e){var n=e.account_code,o=e.metadata,a=r(e,["account_code","metadata"]),i=np(n);return o&&(i=t(t({},i),op(o))),this.post("/insights/conversion-rate/fallback",i,{params:a})},i.prototype.getInsightsMetricsVolume=function(e,n){var o=n.connection_name,a=n.metadata,i=r(n,["connection_name","metadata"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(s=t(t({},s),{connection_name:null==o?void 0:o.split(",")})),a&&(s=t(t({},s),op(a))),this.post("/insights/volume/metrics",s,{params:i})},i.prototype.getInsightsMetricsVolumeV2=function(e,n,o){var a=o.connection_name,i=o.metadata,s=r(o,["connection_name","metadata"]),u={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return a&&(u=t(t({},u),{connection_name:null==a?void 0:a.split(",")})),i&&(u=t(t({},u),op(i))),this.post("/insights/volume/".concat(n),u,{params:s})},i.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},i.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},i.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},i.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},i.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},i.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},i.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},i.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},i.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},i.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},i.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},i.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.getInsightOverview=function(e){var n=e.account_code,o=e.connection_name,a=e.metadata,i=r(e,["account_code","connection_name","metadata"]),s=np(n);return o&&(s=t(t({},s),{connection_name:null==o?void 0:o.split(",")})),a&&(s=t(t({},s),op(a))),this.post("/insights/overview",s,{params:i})},i.prototype.getInsightOverviewV3=function(e,n){var o=e.account_code,a=e.connection_name,i=e.metadata,s=r(e,["account_code","connection_name","metadata"]),u=np(o);return a&&(u=t(t({},u),{connection_name:null==a?void 0:a.split(",")})),i&&(u=t(t({},u),op(i))),this.post("/insights/overview/".concat(n),u,{params:s})},i.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},i.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},i.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},i.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},i.prototype.updateIsActiveCheckout=function(e){var t=e.accountCode,n=r(e,["accountCode"]);return this.patch("/checkouts/publish",n,{headers:{"x-account-code":t}})},i.prototype.getCountryData=function(e){var t=e.accountCode;return this.get("/country-data/v1/country-documents",{headers:{"x-account-code":t}})},i.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingSettingsV2=function(e){var t={"x-account-code":e.accountCode};return this.get("/v1/checkouts/builder/settings",{headers:t})},i.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.payload,o={"x-account-code":t,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",n,{headers:o})},i.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},i.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},i.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/reports/create",e)},i.prototype.createReportV2=function(e){return this.post("/reports",e)},i.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},i.prototype.reportsList=function(){return this.get("/reports")},i.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},i.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},i.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},i.prototype.getReportTemplates=function(){return this.get("/reports/templates")},i.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},i.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},i.prototype.deletePaymentsReportTemplate=function(e){return this.delete("/reports/templates",{data:e})},i.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},i.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},i.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},i.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},i.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},i.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},i.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},i.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},i.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},i.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},i.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},i.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},i.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},i.prototype.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},i.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},i.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},i.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},i.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},i.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},i.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},i.prototype.getProfile=function(){return this.get("/user")},i.prototype.getUserFull=function(){return this.get("/user-full")},i.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},i.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},i.prototype.getUsersToImpersonate=function(e,n,o,a,r){void 0===o&&(o=1),void 0===a&&(a=10);var i=t({account_codes:n||[],page:o,page_size:a},r&&{search_value:r});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),i)},i.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},i.prototype.updateProfile=function(e){return this.patch("/user",e)},i.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},i.prototype.inviteUsersMassiveV2=function(e){return this.post("user/invite/massive/v2",e)},i.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},i.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},i.prototype.getAccountsV2=function(){return this.get("/accounts-user")},i.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},i.prototype.putAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},i.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},i.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},i.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},i.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},i.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},i.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},i.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{headers:{"x-account-code":n}})},i.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},i.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},i.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},i.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},i.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},i.prototype.pathNotification=function(e){return this.patch("/notifications",e)},i.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},i.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},i.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:o,status:a,role_id:r,statuses:i,role_ids:s,page:u,page_size:c},{headers:l})},i.prototype.getRoles=function(){return this.get("/teams/roles")},i.prototype.setCustodian=function(){return this.post("/teams/custodian")},i.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},i.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},i.prototype.editRoles=function(e,t){var n=e.payload,o=e.id;return this.patch("/teams/roles/".concat(o),n,{headers:{"x-account-code":t}})},i.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},i.prototype.getFeatureFlagId=function(e){var t=e.name,n=r(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},i.prototype.getFeatureFlagIdAll=function(e){var t=e.accountCode;return n(this,void 0,void 0,(function(){var e,n;return o(this,(function(o){switch(o.label){case 0:return[4,this.get("/feature-flags/names",t?{headers:{"x-account-code":t}}:{})];case 1:return e=o.sent(),n={},e.data.feature_flag_names.forEach((function(e){n[e]=!0})),[2,{data:n,status:200,statusText:"OK",headers:{},config:{}}]}}))}))},i.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},i.prototype.startUserExport=function(e){return this.post("/users/exports/start",{account_codes:e.accountCodes,name:e.name,search:e.search,statuses:e.statuses,role_ids:e.roleIds})},i.prototype.getUserExportStatus=function(e){var t=e.exportCode;return this.get("/users/exports/".concat(t))},i.prototype.listUserExports=function(e){var t=e.page,n=void 0===t?0:t,o=e.pageSize,a=void 0===o?20:o;return this.get("/users/exports?page=".concat(n,"&page_size=").concat(a))},i.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},i.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},i.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},i.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},i.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},i.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},i.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},i.prototype.getAuditEvents=function(e){var t=e.account_code,n=r(e,["account_code"]);return this.post("v2/events/organization",{account_codes:t},{params:n,paramsSerializer:hs})},i.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},i.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},i.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},i.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),t)},i.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},i.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},i.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},i.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},i.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},i.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},i.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},i.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},i.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},i.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},i.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},i.prototype.getInstallmentPlans=function(e){var t=e?hs(e):"",n=t?"/v1/installments-plans?".concat(t):"/v1/installments-plans";return this.get(n)},i.prototype.createInstallmentsPlan=function(e){return this.post("/v1/installments-plans",e)},i.prototype.updateInstallmentsPlan=function(e,t){return this.patch("/v1/installments-plans/".concat(e),t)},i.prototype.deleteInstallmentsPlan=function(e){return this.delete("/v1/installments-plans/".concat(e))},i.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},i.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},i.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},i.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},i.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},i.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},i.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},i.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},i.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},i.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},i.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},i.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},i.prototype.postBlockList=function(e,t,n,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},i.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},i.prototype.getBlacklistDetail=function(e,t,n,o,a){void 0===n&&(n=26),void 0===o&&(o=null),void 0===a&&(a=null);var r="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return a&&(null==a?void 0:a.length)>0&&(r+="&search=".concat(a)),this.get(r,o?{headers:{"x-account-code":o}}:{})},i.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},i.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},i.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},i.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},i.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},i.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},i.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},i.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},i.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},i.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},i.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,a=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)}})},i.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},i.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},i.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",t({},e))},i.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},i.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:o.token}),cancel:function(){return o.cancel()}}},i.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},i.prototype.batchRefundByFile=function(e){var n=e.payload;return this.post("/batch-refund-by-file",t({},n))},i.prototype.uploadBatchRefundsV2=function(e){var n=e.payload;return this.post("/batch-refunds",t({},n))},i.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},i.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},i.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},i.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},i.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},i.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},i.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},i.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},i.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},i.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},i.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},i.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},i.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},i.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},i.prototype.patchApiKeysEditNote=function(e,t,n){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e,{headers:{"x-password":n}})},i.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},i.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},i.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},i.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},i.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},i.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},i.prototype.getCustomizedApiKeysToken=function(e,t,n,o){var a={};return t&&(a["x-password"]=t),n&&(a["x-otp"]=n),o&&(a["x-mfa-token"]=o),this.get("/credentials-manager/keys/show-token/".concat(e),{headers:a})},i.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},i.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},i.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(Bd[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(Bd[null==e?void 0:e.type],"/export");return this.post(t,e)},i.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},i.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},i.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},i.prototype.getSamlConfig=function(){return this.get("/saml-config")},i.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},i.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},i.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},i.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},i.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},i.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},i.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},i.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},i.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},i.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},i.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},i.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},i.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},i.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},i.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},i.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},i.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},i.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},i.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},i.prototype.submitChartFeedback=function(e,t){return this.post("/data-assistant/charts/".concat(e,"/feedback"),t)},i.prototype.getChartFeedback=function(e){return this.get("/data-assistant/charts/".concat(e,"/feedback"))},i.prototype.getLanguages=function(){return this.get("/languages")},i.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},i.prototype.getCommunications=function(e){return this.post("/communications",e)},i.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},i.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},i.prototype.getRecipients=function(e,t){var n={"x-organization-code":e};return this.get("/recipients",{headers:n,params:t})},i.prototype.getRecipientById=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/".concat(t),{headers:n})},i.prototype.getOnboardingDetail=function(e,t,n){var o={"x-organization-code":e};return this.get("/recipients/".concat(t,"/onboardings/").concat(n),{headers:o})},i.prototype.getOnboardingTimeline=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/onboardings/".concat(t,"/timeline"),{headers:n})},i}(ms),rp={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:process.env.BFF_URL_PROD,BFF_URL_SBX:process.env.BFF_URL_SBX,BFF_URL_STG:process.env.BFF_URL_STG,BFF_URL_DEV:process.env.BFF_URL_DEV,BFF_URL_LOCAL:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:process.env.WS_URL_LOCAL,WS_URL_PROD:process.env.WS_URL_PROD,WS_URL_SBX:process.env.WS_URL_SBX,WS_URL_STG:process.env.WS_URL_STG,WS_URL_DEV:process.env.WS_URL_DEV},ip=function(e){function r(t){return e.call(this,t)||this}return a(r,e),r.refreshInstance=function(e){var n;return this.classInstance=new r(t(t({},e),{baseURL:rp["BFF_URL_".concat(rp.ENVIRONMENT)]})),null===(n=this.classInstance.instance.interceptors)||void 0===n||n.response.use((function(e){return e}),(function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"})),this.classInstance},r.getInstance=function(e){var n,o;if(this.classInstance){var a=localStorage.getItem("account");if(a){var i=null===(o=null===(n=JSON.parse(a))||void 0===n?void 0:n.value)||void 0===o?void 0:o.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new r(t(t({},e),{baseURL:(null==e?void 0:e.baseURL)||rp["BFF_URL_".concat(rp.ENVIRONMENT)]})),this.classInstance},r.setMode=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){return this.classInstance.instance.interceptors.request.use((function(t){return t.headers&&(t.headers["X-Environment"]=e),t}),(function(e){return Promise.reject(e)})),[2]}))}))},r}(ap);class sp{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const up="undefined"==typeof window||"Deno"in window;function cp(){}function lp(e){return"number"==typeof e&&e>=0&&e!==1/0}function dp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pp(e,t,n){return Cp(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function hp(e,t,n){return Cp(e)?[{...t,queryKey:e},n]:[e||{},t]}function mp(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:r,queryKey:i,stale:s}=e;if(Cp(i))if(o){if(t.queryHash!==gp(i,t.options))return!1}else if(!bp(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===a||a===t.state.fetchStatus)&&!(r&&!r(t)))}function fp(e,t){const{exact:n,fetching:o,predicate:a,mutationKey:r}=e;if(Cp(r)){if(!t.options.mutationKey)return!1;if(n){if(yp(t.options.mutationKey)!==yp(r))return!1}else if(!bp(t.options.mutationKey,r))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function gp(e,t){return((null==t?void 0:t.queryKeyHashFn)||yp)(e)}function yp(e){return JSON.stringify(e,((e,t)=>_p(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function bp(e,t){return vp(e,t)}function vp(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!vp(e[n],t[n]))))}function kp(e,t){if(e===t)return e;const n=wp(e)&&wp(t);if(n||_p(e)&&_p(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),r=a.length,i=n?[]:{};let s=0;for(let o=0;o<r;o++){const r=n?o:a[o];i[r]=kp(e[r],t[r]),i[r]===e[r]&&s++}return o===r&&s===o?e:i}return t}function jp(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function wp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _p(e){if(!Ep(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ep(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Ep(e){return"[object Object]"===Object.prototype.toString.call(e)}function Cp(e){return Array.isArray(e)}function Sp(e){return new Promise((t=>{setTimeout(t,e)}))}function Rp(e){Sp(0).then(e)}function Tp(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?kp(e,t):t}const Ip=new class extends sp{constructor(){super(),this.setup=e=>{if(!up&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},xp=["online","offline"];const Op=new class extends sp{constructor(){super(),this.setup=e=>{if(!up&&window.addEventListener){const t=()=>e();return xp.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{xp.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Ap(e){return Math.min(1e3*2**e,3e4)}function zp(e){return"online"!==(null!=e?e:"online")||Op.isOnline()}class Pp{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Dp(e){return e instanceof Pp}function Lp(e){let t,n,o,a=!1,r=0,i=!1;const s=new Promise(((e,t)=>{n=e,o=t})),u=()=>!Ip.isFocused()||"always"!==e.networkMode&&!Op.isOnline(),c=o=>{i||(i=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},d=()=>new Promise((n=>{t=e=>{const t=i||!u();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,i||null==e.onContinue||e.onContinue()})),p=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch((t=>{var n,o;if(i)return;const s=null!=(n=e.retry)?n:3,c=null!=(o=e.retryDelay)?o:Ap,h="function"==typeof c?c(r,t):c,m=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);!a&&m?(r++,null==e.onFail||e.onFail(r,t),Sp(h).then((()=>{if(u())return d()})).then((()=>{a?l(t):p()}))):l(t)}))};return zp(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new Pp(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}const Np=console;const qp=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):Rp((()=>{n(o)}))},r=()=>{const t=e;e=[],t.length&&Rp((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||r()}return n},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class Mp{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lp(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:up?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Up extends Mp{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Np,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Tp(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(cp).catch(cp):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!dp(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(r)return this.abortSignalConsumed=!0,r.signal}})};s(i);const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(s(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=u.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(c=u.fetchOptions)?void 0:c.meta});const l=e=>{var t,n,o,a;(Dp(e)&&e.silent||this.dispatch({type:"error",error:e}),Dp(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Lp({fn:u.fetchFn,abort:null==r?void 0:r.abort.bind(r),onSuccess:e=>{var t,n,o,a;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,o;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:zp(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return Dp(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),qp.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class Bp extends sp{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const a=t.queryKey,r=null!=(o=t.queryHash)?o:gp(a,t);let i=this.get(r);return i||(i=new Up({cache:this,logger:e.getLogger(),queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(i)),i}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){qp.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=hp(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>mp(n,e)))}findAll(e,t){const[n]=hp(e,t);return Object.keys(n).length>0?this.queries.filter((e=>mp(n,e))):this.queries}notify(e){qp.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){qp.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){qp.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class Fp extends Mp{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Np,this.observers=[],this.state=e.state||Wp(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=Lp({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,o,a,r,i,s,u,c;if(!t){var l,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const m=await e();return await(null==(n=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,m,this.state.variables,this.state.context,this)),await(null==(a=(r=this.options).onSuccess)?void 0:a.call(r,m,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,m,null,this.state.variables,this.state.context,this)),await(null==(u=(c=this.options).onSettled)?void 0:u.call(c,m,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:m}),m}catch(e){try{var m,f,g,y,b,v,k,j;throw await(null==(m=(f=this.mutationCache.config).onError)?void 0:m.call(f,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(b=(v=this.mutationCache.config).onSettled)?void 0:b.call(v,void 0,e,this.state.variables,this.state.context,this)),await(null==(k=(j=this.options).onSettled)?void 0:k.call(j,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!zp(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),qp.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function Wp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Hp extends sp{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new Fp({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(o),o}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){qp.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>fp(e,t)))}findAll(e){return this.mutations.filter((t=>fp(e,t)))}notify(e){qp.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return qp.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(cp)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function Gp(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,a,r,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(o=e.fetchOptions)||null==(a=o.meta)?void 0:a.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),d="backward"===(null==u?void 0:u.direction),p=(null==(r=e.state.data)?void 0:r.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let m=h,f=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,o)=>(m=o?[t,...m]:[...m,t],o?[n,...e]:[...e,n]),b=(t,n,o,a)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const r={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=r,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{f=!0})),e.signal}});const s=g(r);return Promise.resolve(s).then((e=>y(t,o,e,a)))};let v;if(p.length)if(l){const t=void 0!==c,n=t?c:Vp(e.options,p);v=b(p,t,n)}else if(d){const t=void 0!==c,n=t?c:(k=e.options,j=p,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(j[0],j));v=b(p,t,n,!0)}else{m=[];const t=void 0===e.options.getNextPageParam;v=!s||!p[0]||s(p[0],0,p)?b([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)v=v.then((o=>{if(!s||!p[n]||s(p[n],n,p)){const a=t?h[n]:Vp(e.options,o);return b(o,t,a)}return Promise.resolve(y(o,h[n],p[n]))}))}else v=b([]);var k,j;const w=v.then((e=>({pages:e,pageParams:m})));return w}}}}function Vp(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class Kp extends sp{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),$p(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qp(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qp(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),jp(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&Jp(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const r=this.computeRefetchInterval();!a||this.currentQuery===o&&this.options.enabled===n.enabled&&r===this.currentRefetchInterval||this.updateRefetchInterval(r)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!jp(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(cp)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),up||this.currentResult.isStale||!lp(this.options.staleTime))return;const e=dp(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!up&&!1!==this.options.enabled&&lp(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Ip.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,a=this.currentResult,r=this.currentResultState,i=this.currentResultOptions,s=e!==n,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:m,fetchStatus:f,status:g}=l,y=!1,b=!1;if(t._optimisticResults){const a=this.hasListeners(),r=!a&&$p(e,t),i=a&&Jp(e,n,t,o);(r||i)&&(f=zp(e.options.networkMode)?"fetching":"paused",p||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,p=c.dataUpdatedAt,g=c.status,y=!0;else if(t.select&&void 0!==l.data)if(a&&l.data===(null==r?void 0:r.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=Tp(null==a?void 0:a.data,d,t),this.selectResult=d,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(g="success",d=Tp(null==a?void 0:a.data,e,t),b=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,m=Date.now(),g="error");const v="fetching"===f,k="loading"===g,j="error"===g;return{status:g,fetchStatus:f,isLoading:k,isSuccess:"success"===g,isError:j,isInitialLoading:k&&v,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:m,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>u.dataUpdateCount||l.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!k,isLoadingError:j&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:b,isPreviousData:y,isRefetchError:j&&0!==l.dataUpdatedAt,isStale:Yp(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,jp(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Dp(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){qp.batch((()=>{var t,n,o,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(a=this.options).onSettled)||o.call(a,this.currentResult.data,null);else if(e.onError){var r,i,s,u;null==(r=(i=this.options).onError)||r.call(i,this.currentResult.error),null==(s=(u=this.options).onSettled)||s.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function $p(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&Qp(e,t,t.refetchOnMount)}function Qp(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&Yp(e,t)}return!1}function Jp(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&Yp(e,n)}function Yp(e,t){return e.isStaleByTime(t.staleTime)}class Xp extends sp{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),jp(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){qp.batch((()=>{var t,n,o,a;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(o=(a=this.mutateOptions).onSettled)||o.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var r,i,s,u;null==(r=(i=this.mutateOptions).onError)||r.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(u=this.mutateOptions).onSettled)||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}var Zp,eh={exports:{}},th={};var nh,oh={};
208
208
  /**
209
209
  * @license React
210
210
  * use-sync-external-store-shim.development.js
@@ -213,7 +213,7 @@ function Vo(e){const t=Go.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
213
213
  *
214
214
  * This source code is licensed under the MIT license found in the
215
215
  * LICENSE file in the root directory of this source tree.
216
- */"production"===process.env.NODE_ENV?eh.exports=function(){if(Zp)return th;Zp=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,r=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),u=n({inst:{value:s,getSnapshot:t}}),c=u[0].inst,l=u[1];return a((function(){c.value=s,c.getSnapshot=t,i(c)&&l({inst:c})}),[e,s,t]),o((function(){return i(c)&&l({inst:c}),e((function(){i(c)&&l({inst:c})}))}),[e]),r(s),s};return th.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u,th}():eh.exports=(nh||(nh=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,r=t.useLayoutEffect,i=t.useDebugValue,u=!1,c=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){u||void 0===t.startTransition||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!c){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var h=(p=o({inst:{value:d,getSnapshot:l}}))[0].inst,m=p[1];return r((function(){h.value=d,h.getSnapshot=l,e(h)&&m({inst:h})}),[s,d,l]),a((function(){return e(h)&&m({inst:h}),s((function(){e(h)&&m({inst:h})}))}),[s]),i(d),d};oh.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),oh);var ah=eh.exports;const rh=ah.useSyncExternalStore,ih=i.createContext(void 0),sh=i.createContext(!1);function uh(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ih),window.ReactQueryClientContext):ih)}const ch=({context:e}={})=>{const t=i.useContext(uh(e,i.useContext(sh)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lh=({client:e,children:t,context:n,contextSharing:o=!1})=>{i.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=uh(n,o);return i.createElement(sh.Provider,{value:!n&&o},i.createElement(a.Provider,{value:e},t))},dh=i.createContext(!1);dh.Provider;const ph=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function hh(e,t){return"function"==typeof e?e(...t):!!e}function mh(e,t){const n=ch({context:e.context}),o=i.useContext(dh),a=i.useContext(ph),r=n.defaultQueryOptions(e);r._optimisticResults=o?"isRestoring":"optimistic",r.onError&&(r.onError=qp.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=qp.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=qp.batchCalls(r.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(r),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(r,a),(e=>{i.useEffect((()=>{e.clearReset()}),[e])})(a);const[s]=i.useState((()=>new t(n,r))),u=s.getOptimisticResult(r);if(rh(i.useCallback((e=>{const t=o?()=>{}:s.subscribe(qp.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),i.useEffect((()=>{s.setOptions(r,{listeners:!1})}),[r,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(r,u,o))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)})))(r,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&hh(n,[e.error,o]))({result:u,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return r.notifyOnChangeProps?u:s.trackResult(u)}function fh(e,t,n){return mh(pp(e,t,n),Kp)}function gh(e,t,n){const o=function(e,t,n){return Cp(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=ch({context:o.context}),[r]=i.useState((()=>new Xp(a,o)));i.useEffect((()=>{r.setOptions(o)}),[r,o]);const s=rh(i.useCallback((e=>r.subscribe(qp.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),u=i.useCallback(((e,t)=>{r.mutate(e,t).catch(yh)}),[r]);if(s.error&&hh(r.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function yh(){}var bh;function vh(e){return gh((function(e){var t=e.payload;return ip.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function kh(e){return gh((function(e){var t=e.code,n=e.accountCode;return ip.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function jh(e){return gh((function(e){var t=e.code,n=e.payload,o=e.accountCode;return ip.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function wh(){return gh((function(e){var t=e.name,n=e.principal;return ip.getInstance().postAccount(t,n)}))}function _h(){return gh((function(n){var o=e([bh.ACCOUNT],n.duplicate_order,!0);return ip.getInstance().duplicateAccount(t(t({},n),{duplicate_order:o}))}))}function Eh(){return gh((function(e){return ip.getInstance().retryDuplicateAccount(e)}))}function Ch(){return gh((function(e){var t=e.name,n=e.code,o=e.principal;return ip.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Sh(){return gh((function(e){var t=e.account_code;return ip.getInstance().putAccountPrincipal({account_code:t})}))}function Rh(){return gh((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return ip.getInstance().putAccountsUserMassive(t,n,o)}))}function Th(){return gh((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return ip.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Ih(){return gh(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xh(){return gh(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Oh(){return gh((function(e){return ip.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ah(){return gh(["post-connection"],(function(e){var t=e.payload;return ip.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function zh(){return gh(["new-post-connection-validate"],(function(){return ip.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ph(){return gh(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return ip.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Dh(){return gh((function(e){var t=e.payload;return ip.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Lh(){return gh((function(e){return ip.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Nh(){var e=this;return gh((function(t){var a=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().postNetworkTokensOnboarding(a)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})}function qh(){return gh(["patch-organizations"],(function(){return ip.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function Mh(){return gh((function(e){return ip.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function Uh(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().changePasswordV2(t).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function Bh(e){return gh((function(e){return ip.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Fh(){return gh((function(e){return ip.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function Wh(){return gh((function(e){return ip.getInstance().inviteUsersMassiveV2(e)}))}function Hh(){return gh((function(e){var t=e.userCode,n=e.organizationCode;return ip.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function Gh(){return gh((function(e){return ip.getInstance().createUserAuth0(e)}))}function Vh(){return gh((function(e){return ip.getInstance().postCall(e)}))}function Kh(){return gh((function(e){return ip.getInstance().changeLoginMethods(e)}))}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(bh||(bh={}));var $h=function(e){var t=localStorage.getItem(e),n=u(t&&JSON.parse(t)),o=n[0],a=n[1];return c((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o},Qh=function(){var e,t;return null===(t=null===(e=$h("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code},Jh=function(){var e,t=function(){var e=u("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return c((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}}().isTesting,n=null===(e=$h("account"))||void 0===e?void 0:e.value;return(t?null==n?void 0:n.account_code_testing:null==n?void 0:n.account_code_live)||(null==n?void 0:n.code)};function Yh(e){var n=Jh();return gh((function(e){return ip.getInstance().updateIsActiveCheckout(t(t({},e),{accountCode:n}))}),e)}function Xh(){return gh((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return ip.getInstance().createOperationTransaction(t,n,o,a)}))}function Zh(){return gh((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return ip.getInstance().uploadChargebacks(t,n,o,a)}))}function em(){return gh((function(e){var t=e.transactionCode,n=e.payload;return ip.getInstance().postProviderRawResponse(t,n)}))}function tm(){return gh((function(e){var t=e.paymentId,n=e.payload;return ip.getInstance().addToRiskList(t,n)}))}var nm=new Bp({}),om=new class{constructor(e={}){this.queryCache=e.queryCache||new Bp,this.mutationCache=e.mutationCache||new Hp,this.logger=e.logger||Np,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=Ip.subscribe((()=>{Ip.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Op.subscribe((()=>{Op.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]=hp(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 o=pp(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const r=pp(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return qp.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]=hp(e,t),o=this.queryCache;qp.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=hp(e,t,n),r=this.queryCache,i={type:"active",...o};return qp.batch((()=>(r.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(i,a))))}cancelQueries(e,t,n){const[o,a={}]=hp(e,t,n);void 0===a.revert&&(a.revert=!0);const r=qp.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(r).then(cp).catch(cp)}invalidateQueries(e,t,n){const[o,a]=hp(e,t,n);return qp.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=hp(e,t,n),r=qp.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let i=Promise.all(r).then(cp);return null!=a&&a.throwOnError||(i=i.catch(cp)),i}fetchQuery(e,t,n){const o=pp(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const r=this.queryCache.build(this,a);return r.isStaleByTime(a.staleTime)?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(cp).catch(cp)}fetchInfiniteQuery(e,t,n){const o=pp(e,t,n);return o.behavior=Gp(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(cp).catch(cp)}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=>yp(e)===yp(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>bp(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>bp(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=>yp(e)===yp(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>bp(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>bp(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=gp(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:nm});function am(){return gh((function(e){return ip.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function rm(){return gh((function(e){return ip.getInstance().createReconciliationsReportV3(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function im(){return gh((function(e){return ip.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function sm(){return gh((function(e){return ip.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function um(){return gh((function(e){return ip.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function cm(t){var a=this;return gh((function(){return n(a,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().createReportTemplate(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(t){return n(a,void 0,void 0,(function(){var n;return o(this,(function(o){switch(o.label){case 0:return[4,om.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=om.getQueryData(["GET/reports/templates"]),om.setQueryData(["GET/reports/templates"],(function(n){return e(e([],n,!0),[t],!1)})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){om.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){om.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function lm(e){return gh((function(){return ip.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function dm(){return gh((function(e){return ip.getInstance().deletePaymentsReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function pm(e,t,a){var r=this;return void 0===a&&(a=null),gh((function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().postSmartRoutingCreateWorkflow(e,t).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,n.sent()]}}))}))}),a)}function hm(e,t){var a=this,r=e.versionCode,i=e.accountCode,s=e.organizationCode,u=e.routingType,c=void 0===u?ll.DEFAULT_ROUTING_TYPE:u;return void 0===t&&(t=null),gh((function(){return n(a,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().postSmartRoutingPublishVersion(i,r,s,c).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),t)}function mm(e,t){var n=e.data,o=e.accountCode,a=e.routingType,r=void 0===a?ll.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),gh((function(){return ip.getInstance().putSmartRoutingUpdateWorkflow(o,n,r).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function fm(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),gh((function(){return ip.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function gm(e,t){var n=e.versionCode,o=e.accountCode,a=e.routingType,r=void 0===a?ll.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),gh((function(){return ip.getInstance().postSmartRoutingDuplicateVersion(o,String(n),r).then((function(e){return null==e?void 0:e.data}))}),t)}function ym(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),gh((function(){return ip.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function bm(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),gh((function(e){return void 0===e&&(e=null),ip.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function vm(e){var t=e.accountCode;return gh((function(e){return void 0===e&&(e=null),ip.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function km(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),gh((function(e){return void 0===e&&(e=!1),ip.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function jm(e,t){var n=e.code,o=e.name,a=e.accountCode,r=e.routingType,i=void 0===r?ll.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),gh((function(){return ip.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o},i).then((function(e){return null==e?void 0:e.data}))}),t)}function wm(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),gh((function(e){return ip.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function _m(e,t){return void 0===t&&(t=null),gh((function(t){return ip.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Em(e,n){return void 0===n&&(n={}),gh((function(t){var n=t.declinedGroupCode;return ip.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),t(t({},n),{useErrorBoundary:!1}))}function Cm(e,n){return void 0===n&&(n={}),gh((function(t){var n=t.payload;return ip.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),t(t({},n),{useErrorBoundary:!1}))}var Sm=function(e){return gh((function(t){return ip.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Rm=function(e){return gh((function(t){return ip.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Tm(){return gh((function(e){var t=e.payload;return ip.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Im(){return gh((function(e){var t=e.userCode,n=e.organizationCode;return ip.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function xm(){return gh((function(){return ip.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Om(){return gh((function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Am(){var e=this;return gh((function(t){var a=t.payload,r=t.id,i=t.accountCode;return n(e,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,ip.getInstance().editRoles({payload:a,id:r},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function zm(){return gh((function(e){return ip.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Pm(){return gh((function(e){return ip.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Dm(){return gh(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Lm(){return gh(["post-delete-payment-link"],(function(e){var t=e.code;return ip.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Nm(){return gh(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return ip.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function qm(){return gh(["post-subscription"],(function(e){return ip.getInstance().postSubscription(e).then((function(e){return null==e?void 0:e.data}))}))}function Mm(){return gh(["post-pause-subscription"],(function(e){var t=e.subscriptionCode;return ip.getInstance().postPauseSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function Um(){return gh(["post-resume-subscription"],(function(e){var t=e.subscriptionCode;return ip.getInstance().postResumeSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function Bm(){return gh(["post-cancel-subscription"],(function(e){var t=e.subscriptionCode;return ip.getInstance().postCancelSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function Fm(){return gh(["patch-subscription"],(function(e){var t=e.subscriptionCode,n=e.payload;return ip.getInstance().patchSubscription(t,n).then((function(e){return null==e?void 0:e.data}))}))}function Wm(){return gh(["post-reschedule-subscription"],(function(e){var t=e.subscriptionCode;return ip.getInstance().postRescheduleSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function Hm(){return gh(["post-list-subscriptions"],(function(e){return ip.getInstance().postListSubscriptions(e).then((function(e){return null==e?void 0:e.data}))}))}function Gm(){return gh((function(e){var t=e.payload;return ip.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function Vm(){return gh((function(e){return ip.getInstance().postUserThemeSettings(e)}))}function Km(){return gh((function(e){var t=e.payload,n=e.section;return ip.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var n=om.getQueryData(["fetch-profile"]);e.data&&om.setQueryData(["fetch-profile"],t(t({},n),{settings:e.data}))}})}function $m(e){return gh(["pinned-sections"],(function(e){var t=e.payload;return ip.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Qm(){return gh((function(e){var t=e.password,n=e.otp;return ip.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function Jm(){return gh((function(){return ip.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function Ym(){return gh((function(e){return ip.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function Xm(){return gh((function(e){return ip.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function Zm(){return gh((function(){return ip.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function ef(){return gh(["post-get-allowlist-items"],(function(e){var t=e.payload;return ip.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function tf(){return gh(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return ip.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function nf(){return gh(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return ip.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function of(){return gh(["patch-change-status-allowlist"],(function(e){var t=e.payload;return ip.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function af(){return gh(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return ip.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function rf(){return gh(["post-add-allowlist-items"],(function(e){var t=e.payload;return ip.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function sf(){return gh(["patch-allowlist"],(function(e){var t=e.payload;return ip.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uf(){return gh(["post-blacklist-multi-account"],(function(e){var t=e.payload;return ip.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cf(){return gh(["put-blacklist"],(function(e){return ip.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function lf(){return gh(["change-blacklist"],(function(e){return ip.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function df(){return gh(["change-blacklist-item"],(function(e){return ip.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function pf(){return gh(["post-blacklist-items"],(function(e){var t=e.payload;return ip.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function hf(){return gh(["delete-blacklist"],(function(e){var t=e.black_list_code;return ip.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function mf(e){var t=e.handleSetProgress;return gh(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return ip.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function ff(){return gh(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return ip.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function gf(){return gh(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return ip.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function yf(){return gh(["valiate-blacklist-items"],(function(e){return ip.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function bf(){return gh(["delete-allowlist-item"],(function(e){return ip.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function vf(){return gh(["validate-allowlist-items"],(function(e){return ip.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function kf(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=u(0),r=a[0],i=a[1],s=l({cancel:function(){return null}}),c=gh(["upload-file-chargeback",t],(function(e){var t=ip.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),a=t.promise,r=t.cancel;return s.current.cancel=r,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:r}}function jf(){return gh((function(e){return ip.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wf(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().batchRefundByFile({payload:t}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function _f(){var e=this;return gh((function(t){var a=t.batchRefundId,r=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().getBatchRefundProcessedFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ef(){var e=this;return gh((function(t){var a=t.batchRefundId,r=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().getBatchRefundUserFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Cf(){var e=l({cancel:function(){return null}}),t=gh(["upload-file"],(function(t){var n=ip.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Sf(){return gh((function(e){var t=e.payload,n=e.organizationCode;return ip.getInstance().updateMFAConfig(t,n)}))}function Rf(){return gh((function(e){var t=e.payload,n=e.organizationCode;return ip.getInstance().mfaExcludeUsers(t,n)}))}function Tf(e){return fh(["GET/scheduled-reports",e],(function(){return ip.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 If(){return gh((function(e){var t=e.payload;return ip.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function xf(){return gh((function(e){var t=e.reportCode,n=e.payload;return ip.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Of(){return gh((function(e){return ip.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Af(){return gh((function(e){return ip.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function zf(){return gh((function(e){return ip.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Pf(){return gh((function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Df(){return gh((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return ip.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Lf(){return gh((function(e){var t=e.payload;return ip.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Nf(){return gh((function(e){var t=e.payload,n=e.code;return ip.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function qf(){return gh((function(e){var t=e.code,n=e.password,o=e.otp,a=e.mfaToken;return ip.getInstance().getCustomizedApiKeysToken(t,n,o,a).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Mf(){return gh((function(e){var t=e.passwordOtp;return ip.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Uf(){return gh((function(e){var t=e.password;return ip.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Bf(){return gh((function(e){var t=e.code;return ip.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ff(){return gh((function(e){var t=e.payload,n=e.code,o=e.password;return ip.getInstance().patchApiKeysEditNote(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function Wf(){return gh((function(e){var t=e.payload,n=e.code,o=e.password;return ip.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function Hf(){return gh((function(e){var n=e.password,o=e.accountCode;return ip.getInstance().getDeveloperCredentials(n,o).then((function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}))}function Gf(){return gh((function(e){var t=e.password,n=e.accountCode,o=e.otp,a=e.mfaToken;return ip.getInstance().getDeveloperCredentials(t,n,o,a).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Vf(e){return gh((function(e){var t=e.payload;return ip.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function Kf(){return gh((function(e){var t=e.codes;return ip.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))}function $f(){return gh((function(e){var t=e.tab,n=e.payload;return ip.getInstance().postUnifiedExport(t,n).then((function(e){return null==e?void 0:e.data}))}))}function Qf(){return gh((function(e){return ip.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function Jf(){return gh((function(e){return ip.getInstance().postExportWebhooksLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return gh((function(e){return ip.getInstance().postExportDashboardLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function Xf(){return gh((function(e){return ip.getInstance().postExportMonitorsLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function Zf(t){var a=this;return gh((function(){return ip.getInstance().createReconciliationReportTemplate(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(t){return n(a,void 0,void 0,(function(){var n,a;return o(this,(function(o){switch(o.label){case 0:return[4,om.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return o.sent(),n=null===(a=om.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,om.setQueryData(["GET/reconciliation/reports/templates"],(function(n){return{templates:e(e([],n.templates,!0),[t],!1)}})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){om.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){om.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function eg(e){return gh((function(){return ip.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function tg(){return gh(["POST/reconciliation/alerts"],(function(e){return ip.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){om.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ng(){return gh(["DELETE/reconciliation/alerts"],(function(e){return ip.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){om.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function og(){return gh(["UPDATE/reconciliation/alerts"],(function(e){return ip.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){om.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ag(){return gh((function(e){var t=e.payload;return ip.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function rg(){return gh((function(e){return ip.getInstance().createSamlConfig(e)}))}function ig(){return gh((function(e){return ip.getInstance().updateSamlConfig(e)}))}function sg(){return gh((function(){return ip.getInstance().deleteSamlConfig()}))}function ug(e,n){return void 0===n&&(n={}),gh((function(t){return ip.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),t(t({},n),{useErrorBoundary:!1}))}function cg(e){return void 0===e&&(e={}),gh((function(e){return ip.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),t(t({},e),{useErrorBoundary:!1}))}function lg(){return gh((function(e){return ip.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function dg(){return gh((function(e){return ip.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function pg(){return gh((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,r=void 0===a?"":a;return ip.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:r}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function hg(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){var e,n,a,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,ip.getInstance().createChartGPTChart(t)];case 1:if(e=o.sent(),!(n=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}}))}))}),{useErrorBoundary:!1})}function mg(){return gh((function(e){return ip.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function fg(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){var e,n,a,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,ip.getInstance().createChartGPTChart(t)];case 1:if(e=o.sent(),!(n=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}}))}))}),{useErrorBoundary:!1})}function gg(e,t){var n=e.chartCode,o=ch();return gh((function(e){return ip.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,onSuccess:function(e){var a;o.invalidateQueries(["chart-feedback",n]),null===(a=null==t?void 0:t.onSuccess)||void 0===a||a.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})}function yg(){var e=this;return gh(["POST/template-reporting/report-templates"],(function(t){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().createTemplateReporting(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){om.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function bg(){var e=this;return gh(["POST/template-reporting/report-templates/clone"],(function(t){var a=t.templateId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().cloneReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){om.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function vg(){var e=this;return gh(["PATCH/template-reporting/report-templates/selection"],(function(t){var a=t.templateId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().updateTemplateSelection(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){om.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function kg(){var e=this;return gh(["PATCH/template-reporting/report-templates/status"],(function(t){var a=t.templateId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().changeTemplateStatus(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){om.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function jg(){var e=this;return gh(["DELETE/template-reporting/report-templates"],(function(t){var a=t.templateId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().deleteReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){om.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function wg(){var e=this;return gh(["POST/template-reporting/report-schedules"],(function(t){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().createReportSchedule(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){om.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function _g(){var e=this;return gh(["PATCH/template-reporting/report-schedules/disable"],(function(t){var a=t.scheduleId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().disableReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){om.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Eg(){var e=this;return gh(["DELETE/template-reporting/report-schedules"],(function(t){var a=t.scheduleId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().deleteReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){om.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Cg(){return gh((function(e){return ip.getInstance().postOrganizationConfigs(e)}))}function Sg(){return gh((function(e){return ip.getInstance().putOrganizationConfigsByAccount(e)}))}function Rg(){return gh(["create-installments-plan"],(function(e){var t=e.payload;return ip.getInstance().createInstallmentsPlan(t).then((function(e){return null==e?void 0:e.data}))}))}function Tg(){return gh(["update-installments-plan"],(function(e){var t=e.code,n=e.payload;return ip.getInstance().updateInstallmentsPlan(t,n).then((function(e){return null==e?void 0:e.data}))}))}function Ig(){return gh(["delete-installments-plan"],(function(e){var t=e.code;return ip.getInstance().deleteInstallmentsPlan(t).then((function(e){return null==e?void 0:e.data}))}))}var xg;function Og(e){var t=this;return fh(["fetch-payments-lazy",e],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.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 Ag(e){return fh(["fetch-payments-evaluated",e],(function(){return ip.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 zg(e){var t=this,a=e.paymentCode,r=e.enabled,i=void 0===r||r,s=ip.getInstance();return fh(["get-payment-v2",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data}))]}))}))}),{enabled:i,cacheTime:500,useErrorBoundary:!1})}function Pg(e){var t=this,a=e.payment_code,r=e.enabled,i=void 0===r||r,s=ip.getInstance();return fh(["get-payment-transaction-details-v2",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Dg(e){var t=this,a=e.transaction_code,r=e.enabled,i=void 0===r||r,s=ip.getInstance();return fh(["get-payment-transaction-raw-response",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Lg(e){var t=Qh();return fh(["payment-methods",e],(function(){return ip.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 Ng(){return fh({queryKey:["/payment-methods/providers"],queryFn:function(){return ip.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function qg(){return fh(["GET/catalog/card-brands"],(function(){return ip.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Mg(e,t){return void 0===e&&(e=!0),void 0===t&&(t=al.PAYMENTS),fh(["payment-filters",e,t],(function(){return ip.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Ug(){return fh(["payment-metrics-filters"],(function(){return ip.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Bg(e){var t=e.transaction_code,n=e.enabled;return fh(["payment-transaction-details",t],(function(){return ip.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Fg(e){var t=e.payment_code,n=e.enabled;return fh(["transaction-history",t],(function(){return ip.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Wg(e){var t=this;return fh(["POST/transactions",JSON.stringify(e)],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Hg(e){var t=this;return fh(["POST/fraud-transactions",JSON.stringify(e)],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.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 Gg(e){return fh(["GET/payout-detail",JSON.stringify(e)],(function(){var t=ip.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 Vg(e){return fh(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return ip.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 Kg(e){var t=Qh();return fh(["GET/payout-history-detail",JSON.stringify(e)],(function(){return ip.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 $g(e,t){var a=this,r=Qh();return fh(["GET/useGetProofOfCancel",r,e,t],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getProofOfCancel(e,r,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!t,cacheTime:0,useErrorBoundary:!1})}function Qg(e,t){var a=this,r=Qh();return fh(["GET/useGetProofOfPayment",r,e,t],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getProofOfPayment(e,r,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!t,cacheTime:0,useErrorBoundary:!1})}function Jg(e,t,a){var r=this,i=ip.getInstance();return fh(["send-payment-notification",e,t],(function(){return n(r,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,t)];case 1:return n=o.sent(),a.onSuccess(),[2,n.data];case 2:throw r=o.sent(),a.onError(),r;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function Yg(e){return fh(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=ip.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 Xg(e){var t=this;void 0===e&&(e=!0);var a=Qh();return fh(["getPayoutsFilters",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function Zg(e,t){var a=this;void 0===t&&(t=!0);var r=Qh();return fh(["getPayoutTimeline",e,r],(function(){return n(a,void 0,void 0,(function(){var t;return o(this,(function(n){return t=ip.getInstance(),e?[2,t.getPayoutTimeline(e,r).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]:[2]}))}))}),{enabled:t&&!!e&&!!r,cacheTime:500,useErrorBoundary:!1})}function ey(e){var n=e.password,o=e.accountCode,a=e.otp,r=e.mfaToken;return fh(["developers"],(function(){return ip.getInstance().getDeveloperCredentials(n,o,a,r).then((function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function ty(){return fh(["fetch-customized-api-keys-members"],(function(){return ip.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function ny(){return fh(["developers-get-allowed-ips"],(function(){return ip.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return t(t({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function oy(){return fh(["fetch-customized-api-keys-accounts"],(function(){return ip.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function ay(e){return fh(["fetch-customized-api-keys",e],(function(){return ip.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 ry(){return fh(["fetch-customized-api-keys-products"],(function(){return ip.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function iy(){return gh(["developers-patch-allowed-ips"],(function(e){return ip.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return t(t({},e),{isError:!0})}))}),{cacheTime:0})}function sy(){return fh(["fetch-organizations"],(function(){return ip.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function uy(){return fh(["fetch-all-organizations",Qh()],(function(){return ip.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function cy(e){var t=Qh();return fh(["organizations-provider-params",e],(function(e){var n=e.queryKey;return ip.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 ly(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return fh(["integration-params",t,o],(function(){return t.includes("undefined")?{}:ip.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function dy(e){var t=e.accountCode,n=e.organizationCode,o=Qh(),a=fh(["organizations-account-integrations",t,n],(function(){return ip.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function py(e){var t=e.accountCode,n=e.paymentMethod;return fh(["fetch-connections-by-payment-method",n,t],(function(){return ip.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function hy(){var e=this;return fh(["fetch-hash-pylon"],(function(){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function my(){return fh(["connections"],(function(){return ip.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function fy(){return fh(["dialogs"],(function(){return ip.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function gy(){return fh(["params-catalog"],(function(){return ip.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function yy(e){var t=e.accountCode,n=e.name;return fh(["webhooks",t,n],(function(){return ip.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function by(e){var t=e.accountCode,n=e.enabled;return fh(["webhooks-detail",t],(function(){return ip.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function vy(e){var t,n=Qh(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return fh({queryKey:["accounts",o],queryFn:function(){return ip.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function ky(e){return fh(["accountsV2",e],(function(){return ip.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function jy(e){return fh(["accountsV2-by-user",e],(function(){return e?ip.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 wy(e,t){var a=this;return fh({queryKey:["accounts-for-impersonation",e,t],queryFn:function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getAccountsForImpersonation(e).then((function(e){var n,o;return(null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.response)||void 0===o?void 0:o.map((function(e){return{label:e.name,value:t?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}})))||[]}))]}))}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function _y(e){return fh({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return ip.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function Ey(){return fh(["menu"],(function(){return ip.getInstance().getMenu().then((function(e){return Fd(e)?Qd:null==e?void 0:e.data})).catch((function(){return Qd}))}))}function Cy(){return fh(["/payment/statuses/style"],(function(){return ip.getInstance().useGetPaymentStatusesStyles().then((function(e){return Fd(e)?Wd:null==e?void 0:e.data})).catch((function(){return Wd}))}))}function Sy(){return fh(["/transaction/statuses/style"],(function(){return ip.getInstance().useGetTransactionStatusesStyles().then((function(e){return Fd(e)?Hd:null==e?void 0:e.data})).catch((function(){return Hd}))}),{cacheTime:36e5,useErrorBoundary:!1})}function Ry(){return fh(["/reconciliation/transaction/statuses/style"],(function(){return ip.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return Fd(e)?Gd:null==e?void 0:e.data})).catch((function(){return Gd}))}),{useErrorBoundary:!1})}function Ty(){return fh(["timezone-catalog"],(function(){return ip.getInstance().useGetTimeZoneCatalog().then((function(e){return Fd(e)?Vd:null==e?void 0:e.data})).catch((function(){return Vd}))}))}function Iy(){return fh(["/cms/audit-logs-filters"],(function(){return ip.getInstance().useGetAuditLogsFilters().then((function(e){return Fd(e)?Kd:null==e?void 0:e.data})).catch((function(){return Kd}))}))}function xy(){return fh(["/cms/static-contents"],(function(){return ip.getInstance().getDashboardStaticContents().then((function(e){var t,n;return Fd(e)?$d:(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 Oy(){return fh(["/cms/locales"],(function(){return ip.getInstance().getLocales().then((function(e){return Fd(e)?Jd:e.data})).catch((function(){return Jd}))}))}function Ay(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-methods",e,t],(function(){return ip.getInstance().getSmartRoutingMethods(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function zy(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-workflow",t,e,n],(function(){return ip.getInstance().getSmartRoutingWorkflow(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Py(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-condition-types",e,t,n],(function(){return ip.getInstance().getSmartRoutingConditionTypes(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Dy(e,t){return fh(["smart-routing-condition-payment-method",e,t],(function(){return ip.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 Ly(e,t){return fh(["smart-routing-condition-types-values",t,e],(function(){return ip.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function Ny(e){var t=e.accountCode,n=e.workflowVersionId,o=e.routingType,a=void 0===o?ll.DEFAULT_ROUTING_TYPE:o;return fh(["smart-routing-workflow-version",n,t,a],(function(){return ip.getInstance().getSmartRoutingWorkflowVersion(t,n,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function qy(e,t,n,o){return void 0===o&&(o=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-next-route",e,n,t,o],(function(){return ip.getInstance().getSmartRoutingNextSteps(e,t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function My(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-decline-groups",e,t],(function(){return ip.getInstance().getSmartRoutingDeclinedGroup(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Uy(e,t){return fh(["smart-routing-payment-route",e,t],(function(){return ip.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 By(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-simulate-condition-type-values",e,t],(function(){return ip.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Fy(e){var t=e.text,n=e.conditionType;return fh(["smart-routing-search-condition-values",t,n],(function(){return ip.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 Wy(){return fh(["smart-routing-conversion-rates"],(function(){return ip.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function Hy(){var e=this;return fh({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Gy(){var e=this;return fh({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Vy(e){return fh(["fetch-routing-monitors-templates",e],(function(){return ip.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ky(e,t){return fh(["fetch-routing-monitors-template",e],(function(){return ip.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 $y(e,n){var o=e.accountCode;return fh(["checkouts",o],(function(){return ip.getInstance().getCheckouts({accountCode:o}).then((function(e){return e.data}))}),t({cacheTime:0,enabled:Boolean(o),useErrorBoundary:!1},n))}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(xg||(xg={}));var Qy=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Jy=function(e,t){var n=e.paymentMethodType,o=e.type;return fh(Qy({paymentMethodType:n,type:o}),(function(){return ip.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Yy=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Xy=function(e,t){var n=e.paymentMethodType,o=e.type;return fh(Yy({paymentMethodType:n,type:o}),(function(){return ip.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Zy=function(e){return fh(["checkout-builder-country-data",e],(function(){return ip.getInstance().getCountryData({accountCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})};function eb(e){var t=e.accountCode;return fh(["styling-sdk-dynamic",t],(function(){return ip.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 tb(e){var t=e.accountCode;return fh(["styling-settings-v2",t],(function(){return ip.getInstance().getStylingSettingsV2({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function nb(){return gh((function(e){var t=e.accountCode,n=e.payload;return ip.getInstance().changeStylingSettings({accountCode:t,payload:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function ob(){return fh(["fetch-profile"],(function(){return ip.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 ab(){var e=this;return fh(["get-user-full"],(function(){return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().getUserFull()];case 1:return[2,e.sent().data]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function rb(e,t){return fh(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),r=o&&JSON.parse(o),i=a&&JSON.parse(a);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==r?void 0:r.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 ib(e){return fh(["email-verification",e],(function(){return ip.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function sb(){return fh({queryKey:["get-login-methods"],queryFn:function(){return ip.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function ub(){return fh(["fetch-impersonation-users"],(function(){return ip.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 cb(){return fh(["fetch-impersonation-enabled"],(function(){return ip.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function lb(e,t,a,r,i){var s=this;return void 0===a&&(a=1),void 0===r&&(r=10),fh(["get-users-to-impersonate",e,t,a,r,i],(function(){return n(s,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getUsersToImpersonate(e,t,a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function db(e){var t;return fh(["fetch-communications",e],(function(){return ip.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 pb(){return fh(["fetch-communications-filters"],(function(){return ip.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function hb(e,t){return fh(["fetch-communication-details",e],(function(){return ip.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function mb(e){return fh(["notifications-customer",e],(function(){return ip.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function fb(e){return fh(["validate-opsgenie-key",e],(function(){return ip.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function gb(){return fh(["notifications-merged"],(function(){return ip.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function yb(){return gh((function(e){return ip.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function bb(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){var e;return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().pathNotification(t)];case 1:return[2,null==(e=n.sent())?void 0:e.data]}}))}))}))}var vb={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function kb(){return fh(["reports"],(function(){return ip.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function jb(e){return void 0===e&&(e=!0),fh(["reports-multi-env"],(function(){return ip.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function wb(e,t,n){return void 0===t&&(t=!1),fh(["reports/".concat(e)],(function(){return ip.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function _b(e){return fh(["GET/reports/templates"],(function(){return ip.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Eb(t,a,r){var i=this;return fh(["GET/reports/columns/".concat(a,"/").concat(r)],(function(){return n(i,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().getReportColumns(a,r).then((function(t){return a===cl.ALL&&r===ul.PAYMENTS?e(e([],(null==t?void 0:t.data)||[],!0),[vb],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:t,useErrorBoundary:!1})}function Cb(e,t){var a=this,r=Qh();return fh(["getRefundPdf",e,r,t],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getRefundPdf(e,r,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!r,useErrorBoundary:!1})}function Sb(){var e=Qh();return fh(["teams-filters-members"],(function(){return ip.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Rb(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=Qh();return fh(["fetch-post-members-v2",t,n,o,a,r,i,s,u,c],(function(){return ip.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:a,roleId:r,statuses:i,roleIds:s,page:u,pageSize:c}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Tb(){return fh(["fetch-roles"],(function(){return ip.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ib(){return fh(["fetch-rolespermissions"],(function(){return ip.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function xb(){return fh(["fetch-permissions-catalog"],(function(){return ip.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ob(e){var t=e.exportCode,n=e.enabled;return fh(["user-export-status",t],(function(){return ip.getInstance().getUserExportStatus({exportCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})}function Ab(e){var t=e.page,n=void 0===t?0:t,o=e.pageSize,a=void 0===o?20:o,r=e.enabled;return fh(["user-exports-list",n,a],(function(){return ip.getInstance().listUserExports({page:n,pageSize:a}).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===r||r,useErrorBoundary:!1})}function zb(){var e=this,t=ch();return function(a){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,t.fetchQuery(["user-export-status",a],(function(){return ip.getInstance().getUserExportStatus({exportCode:a}).then((function(e){return null==e?void 0:e.data}))}))]}))}))}}function Pb(e){return fh(["data-report",e],(function(){return ip.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Db(e,t,n,o){void 0===n&&(n=!0);return fh(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return ip.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})}function Lb(e,t){return fh(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return ip.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 Nb(e){return fh(["get-insights-conversion-rate-fallback-metrics",e],(function(){return ip.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 qb(e,t,n){return void 0===n&&(n=!0),delete t.account_code,fh(["get-insights-volume-metrics",t,e],(function(){return ip.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Mb(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,fh(["get-insights-volume-metrics-v2",t,e,n],(function(){return ip.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Ub(e,t,n){return void 0===n&&(n=!0),delete t.account_code,fh(["get-insights-total-payment-fraud-metrics",t,e],(function(){return ip.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Bb(e,t,n){return void 0===n&&(n=!0),delete t.account_code,fh(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return ip.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Fb(e){return fh(["get-insights-overview",e],(function(){return ip.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 Wb(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return fh(["get-insights-overview-v3",e,t],(function(){return ip.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Hb(e){return fh(["get-insights-home-metrics",e],(function(){return ip.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 Gb(e){return fh(["get-insights-reports",e],(function(){return ip.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 Vb(e){return fh(["get-insights-reports-again",e],(function(){return ip.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 Kb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function $b(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-fraud-screening-conversion-rate",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsFraudScreeningConversionRate(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Qb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-3ds-volume-and-count-tx",t,e],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsights3dsVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Jb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsights3dsConversionRateAndEvolution(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Yb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-3ds-decline-reasons",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsights3dsDeclineReasons(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Xb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsights3dsFrictionlessVsChallenge(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Zb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ev(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function tv(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-win-rate",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksWinRate(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function nv(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-disputed",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksDisputed(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ov(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function av(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-reasons-distribution",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksReasonsDistribution(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rv(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-status-distribution",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksStatusDistribution(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function iv(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-by-card-brand",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksByCardBrand(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sv(e,t){return fh(["fetch-reconciliation-transaction",e],(function(){return ip.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function uv(e,t){return fh(["fetch-reconciliation-settlements",e],(function(){return ip.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function cv(e,t){return fh(["fetch-reconciliation-metrics",e],(function(){return ip.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function lv(){return fh(["GET-reconciliation-filters"],(function(){return ip.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function dv(e){return fh(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return ip.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function pv(){return fh(["GET/v1/reconciliation/active"],(function(){return ip.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{useErrorBoundary:!1})}function hv(e,t,n){return fh(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return ip.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 mv(e){return fh(["GET/reconciliation/reports/templates"],(function(){return ip.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function fv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/alerts/list",t,n],(function(){return ip.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function gv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/agenda/list",t,n],(function(){return ip.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function yv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/agenda/insights",t,n],(function(){return ip.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function bv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/sales/list",t,n],(function(){return ip.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function vv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/advancements/list",t,n],(function(){return ip.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function kv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/fees/list",t,n],(function(){return ip.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function jv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-conflicts-summary",t],(function(){return ip.getInstance().getReconciliationInsightsConflictsSummary(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function wv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-reconciled-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function _v(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-reconciled-list",t],(function(){return ip.getInstance().getReconciliationInsightsNotReconciledList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Ev(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-status-conflict-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Cv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-status-conflict-list",t],(function(){return ip.getInstance().getReconciliationInsightsStatusConflictList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Sv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-amount-conflict-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Rv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-amount-conflict-list",t],(function(){return ip.getInstance().getReconciliationInsightsAmountConflictList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Tv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-conflict-date-summary",t],(function(){return ip.getInstance().getReconciliationInsightsConflictDateSummary(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Iv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-conflict-date-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsConflictDateAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function xv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-conflict-date-list",t],(function(){return ip.getInstance().getReconciliationInsightsConflictDateList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Ov(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-incorrect-fees-summary",t,n],(function(){return ip.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function Av(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-incorrect-fees-aggregators",t,n],(function(){return ip.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function zv(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-incorrect-fees-list",t,n],(function(){return ip.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function Pv(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-fees-charged-summary",t,n],(function(){return ip.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function Dv(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-reconciled-summary",t,n],(function(){return ip.getInstance().getReconciliationInsightsReconciledSummary(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function Lv(e){var t=e.body,n=e.dateFilter,o=e.transactionType,a=e.enabled;return fh(["reconciliation-insights-reconciled-aggregators",t,n,o],(function(){return ip.getInstance().getReconciliationInsightsReconciledAggregators(t,n,o).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===a||a,useErrorBoundary:!1})}function Nv(e){var t=e.body,n=e.dateFilter,o=e.transactionType,a=e.enabled;return fh(["reconciliation-insights-reconciled-list",t,n,o],(function(){return ip.getInstance().getReconciliationInsightsReconciledList(t,n,o).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===a||a,useErrorBoundary:!1})}function qv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-confirm-summary",t],(function(){return ip.getInstance().getReconciliationInsightsNotConfirmSummary(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Mv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-confirm-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Uv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-confirm-list",t],(function(){return ip.getInstance().getReconciliationInsightsNotConfirmList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Bv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-amount-to-be-settled-summary",t],(function(){return ip.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Fv(e){var t=this,a=Object.values(e).filter(Boolean);return fh(["feature-flags",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Wv(e){var t=this,a=fh({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.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}),r=ch();return c((function(){r.setQueryData(["cached-feature-flags"],a)}),[a,r]),a}function Hv(e){var n,o,a=ch(),r=a.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.status)||"loading"===(null===(o=null==r?void 0:r.data)||void 0===o?void 0:o.status)),s=fh({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=a.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return t(t({},s),{isLoading:i})}function Gv(e){return fh(["events",e],(function(){return ip.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 Vv(e){return fh(["audit-monitor-event-detail",e],(function(){return ip.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 Kv(e){return fh(["api-logs",e],(function(){return ip.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function $v(e){var t=e.params;return fh(["webhook-logs",t],(function(){return ip.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Qv(e){return fh(["api-logs-detail",e],(function(){return ip.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Jv(e,t){return fh(["api-logs-by-transaction",e,t],(function(){return ip.getInstance().getApiLogsByTransactionCode(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function Yv(e,t){return void 0===t&&(t=!0),fh(["audit-exports-list",e],(function(){return ip.getInstance().getAuditExportsList(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,cacheTime:0,useErrorBoundary:!1})}function Xv(e,t,n){return void 0===t&&(t=!1),fh(["audit-export-download",e],(function(){return ip.getInstance().getAuditExportDownload(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})}function Zv(e){var t=e.tab,n=e.exportId,o=e.enabled,a=void 0!==o&&o,r=e.onSuccess;return fh(["unified-export-status",t,n],(function(){return ip.getInstance().getUnifiedExportStatus(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&a,cacheTime:0,useErrorBoundary:!1,onSuccess:r})}function ek(e){var t=e.tab,n=e.page,o=void 0===n?0:n,a=e.size,r=void 0===a?10:a,i=e.enabled;return fh(["unified-exports-list",t,o,r],(function(){return ip.getInstance().getUnifiedExportsList(t,o,r).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})}function tk(e,t){return fh(["fetch-payment-links",e,t],(function(){return ip.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function nk(e){return fh(["payment-link"],(function(){return ip.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function ok(e){return void 0===e&&(e=!0),fh(["countries",e],(function(){return ip.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function ak(e){var t=localStorage.getItem("lang")||"en",n=e||t;return fh(["countries-v2",n],(function(){return ip.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function rk(e){return fh(["timezone"],(function(){return ip.getInstance().getTimezone(e).then((function(e){return Fd(e)?Vd:null==e?void 0:e.data})).catch((function(){return Vd}))}),{enabled:!0,keepPreviousData:!0})}function ik(e,t){return void 0===t&&(t=!0),fh(["subscription",e],(function(){return ip.getInstance().getSubscriptionByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:500})}function sk(e,t,n,o){return void 0===o&&(o=!0),fh(["subscription-payments",e,t,n],(function(){return ip.getInstance().getSubscriptionPayments(e,t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&o,cacheTime:0})}function uk(e){return gh((function(e){var t=e.payload;return ip.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ck(e,t){return fh(["get-cofig-allow-list",e],(function(){return ip.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 lk(e,t){return void 0===t&&(t=!0),fh(["get-black-list",e],(function(){return ip.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&t})}function dk(e,t,n,o){var a;return fh(["post-black-list",e],(function(){return ip.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function pk(e,t,n){return fh(["get-block-list-summary",e,t,n],(function(){var o=ip.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function hk(e,t,n,o,a,r){return fh(["black-list-detail",e,t,o,a,r],(function(){return ip.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&r,cacheTime:0})}function mk(e,t,n){return fh(["allow-list-detail",e],(function(){return ip.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function fk(e,t){return void 0===t&&(t=!0),fh(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return ip.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:0})}function gk(e,t){var a=this;return void 0===e&&(e=26),void 0===t&&(t=0),fh(["batch-refunds",e,t],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getBatchRefunds(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function yk(e){return fh(["velocity-rules",e],(function(){var t=ip.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 bk(){return fh(["config-rules"],(function(){return ip.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function vk(e,t){var n=e.organizationCode;return fh(["mfa-excluded-users",n],(function(){return ip.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function kk(e,t){var n=e.organizationCode;return fh(["mfa-config",n],(function(){return ip.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function jk(e,t){return fh(["mfa-enforcement-status",e.accountCode],(function(){return ip.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function wk(e){return fh(["fetch-organization-saml-config",e],(function(){return ip.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function _k(e){return fh(["chartgpt-chart-execute",e],(function(){return ip.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function Ek(){return fh(["chartgpt-user-charts"],(function(){return ip.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Ck(){var e=this;return fh(["chartgpt-user-charts-with-results"],(function(){return n(e,void 0,void 0,(function(){var e,a,r,i=this;return o(this,(function(s){switch(s.label){case 0:return[4,(e=ip.getInstance()).getChartsByUser()];case 1:return a=s.sent(),r=(null==a?void 0:a.data)||[],[4,Promise.all(r.map((function(a){return n(i,void 0,void 0,(function(){var n,r,i,s,u,c,l,d;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e.executeChartGPTChart(a.code)];case 1:return n=o.sent(),[2,t(t({},a),{user_prompt:null!==(s=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:a.user_prompt,unit_to_display:null!==(c=null===(u=null==n?void 0:n.data)||void 0===u?void 0:u.unit_to_display)&&void 0!==c?c:a.unit_to_display,results:null!==(d=null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return r=o.sent(),console.error("Failed to execute chart ".concat(a.chart_id,":"),r),[2,t(t({},a),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function Sk(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["chartgpt-patch-and-execute",e,t],(function(){return n(r,void 0,void 0,(function(){var n,a,r,i,s;return o(this,(function(o){switch(o.label){case 0:return[4,(n=ip.getInstance()).patchChartGPTChart(e,t)];case 1:return a=o.sent(),r=null==a?void 0:a.data,[4,n.executeChartGPTChart(e)];case 2:return i=o.sent(),s=null==i?void 0:i.data,[2,{chart:r,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function Rk(e){var t=this,a=e.chartCode,r=e.enabled;return fh(["chart-feedback",a],(function(){return n(t,void 0,void 0,(function(){var e,t,n,r,i;return o(this,(function(o){switch(o.label){case 0:e=ip.getInstance(),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,e.getChartFeedback(a)];case 2:return t=o.sent(),(n=null==t?void 0:t.data)&&n.rating?[2,n]:[2,null];case 3:if(r=o.sent(),404===(null===(i=null==r?void 0:r.response)||void 0===i?void 0:i.status))return[2,null];throw r;case 4:return[2]}}))}))}),{enabled:(void 0===r||r)&&!!a,staleTime:3e5})}function Tk(){return fh(["languages"],(function(){return ip.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function Ik(){var e=localStorage.getItem("lang")||"en";return fh(["translations",e],(function(){return ip.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function xk(e){var t=this;return fh({queryKey:["network-tokens-onboarding",e],queryFn:function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,ip.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var Ok=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},Ak=function(e,t,n){if(!t||!n)return e||[];var o=function(e,t){var n=[],o=new Date(e),a=new Date(t);o.setUTCHours(0,0,0,0),a.setUTCHours(0,0,0,0);for(var r=new Date(o);r<=a;)n.push(r.toISOString()),r.setUTCDate(r.getUTCDate()+1);return n}(t,n),a=new Map;return null==e||e.forEach((function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];a.set(t,e.value)}})),o.map((function(e){var t=e.split("T")[0];return{date:e,value:a.get(t)||"0"}}))},zk=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var o=parseFloat(n.value||"0");return{distribution:n.rows.map((function(e){var t,n=100*parseFloat(e.value),a=Math.round(o*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:a,percentage:n,amount:a}})),total:o}},Pk=function(e,t,n){var o,a={};return null===(o=e.plots)||void 0===o||o.forEach((function(e){var o=Ak(e.rows,t,n),r=e.label;a[r]=o.map((function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:Ok(e.date||""),current_amount:100*parseFloat(e.value)}}))})),a},Dk=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:Ak(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Ok(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},Lk=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:Ak(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Ok(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},Nk=function(e,a){return fh(t({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",n)];case 1:return a=o.sent(),[2,(r=a.data,i=n.start_date,s=n.end_date,u=r.plots||[],c=u.find((function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label})),l=u.find((function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label})),d=u.find((function(e){return"CONVERSION_RATE_LABEL"===e.label})),p=Ak(null==c?void 0:c.rows,i,s),h=Ak(null==l?void 0:l.rows,i,s),m=Ak(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Ok(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==c?void 0:c.value)||"0")},conversion_rate:{distribution:m.map((function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}})),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Ok(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var r,i,s,u,c,l,d,p,h,m}))}))},enabled:!!e.organization_code,staleTime:3e5},a))},qk=function(e,a){return fh(t({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",n)];case 1:return a=o.sent(),[2,zk(a.data)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},a))},Mk=function(e,a){return fh(t({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",n)];case 1:return a=o.sent(),[2,Pk(a.data,n.start_date,n.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},a))},Uk=function(e,a){return fh(t({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",n)];case 1:return a=o.sent(),[2,Dk(a.data,n.start_date,n.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},a))},Bk=function(e,a){return fh(t({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",n)];case 1:return a=o.sent(),[2,Lk(a.data,n.start_date,n.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},a))};function Fk(e,t){var a=this;return fh(["POST/template-reporting/templates/search",e],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().searchReportTemplates(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:t,useErrorBoundary:!1})}function Wk(e,t,a){var r=this;return fh(["POST/template-reporting/template-by-id/search",e,t],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().searchReportTemplateById(e,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1})}function Hk(e,t){var a=this;return fh(["POST/template-reporting/schedules/search",e],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().searchReportSchedules(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:t,useErrorBoundary:!1})}function Gk(e,t,a){var r=this;return fh(["POST/template-reporting/schedule-by-id/search",e,t],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().searchReportScheduleById(e,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1})}function Vk(){return fh({queryKey:["organization-configs"],queryFn:function(){return ip.getInstance().getOrganizationConfigs().then((function(e){return null==e?void 0:e.data}))},cacheTime:0,useErrorBoundary:!1})}function Kk(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["get-recipients",e,t],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getRecipients(e,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&a,cacheTime:0,useErrorBoundary:!1})}function $k(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["get-recipient-by-id",e,t.recipient_id],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getRecipientById(e,t.recipient_id).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!t.recipient_id&&a,cacheTime:500,useErrorBoundary:!1})}function Qk(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["get-onboarding-detail",e,t.recipient_id,t.onboarding_id],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getOnboardingDetail(e,t.recipient_id,t.onboarding_id).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!t.recipient_id&&!!t.onboarding_id&&a,cacheTime:500,useErrorBoundary:!1})}function Jk(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["get-onboarding-timeline",e,t.onboarding_id],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getOnboardingTimeline(e,t.onboarding_id).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!t.onboarding_id&&a,cacheTime:500,useErrorBoundary:!1})}function Yk(e,t){return void 0===t&&(t=!0),fh(["installments-plans",e],(function(){return ip.getInstance().getInstallmentPlans().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})}function Xk(){return Xk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xk.apply(this,arguments)}
216
+ */"production"===process.env.NODE_ENV?eh.exports=function(){if(Zp)return th;Zp=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,r=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),u=n({inst:{value:s,getSnapshot:t}}),c=u[0].inst,l=u[1];return a((function(){c.value=s,c.getSnapshot=t,i(c)&&l({inst:c})}),[e,s,t]),o((function(){return i(c)&&l({inst:c}),e((function(){i(c)&&l({inst:c})}))}),[e]),r(s),s};return th.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u,th}():eh.exports=(nh||(nh=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,r=t.useLayoutEffect,i=t.useDebugValue,u=!1,c=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){u||void 0===t.startTransition||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!c){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var h=(p=o({inst:{value:d,getSnapshot:l}}))[0].inst,m=p[1];return r((function(){h.value=d,h.getSnapshot=l,e(h)&&m({inst:h})}),[s,d,l]),a((function(){return e(h)&&m({inst:h}),s((function(){e(h)&&m({inst:h})}))}),[s]),i(d),d};oh.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),oh);var ah=eh.exports;const rh=ah.useSyncExternalStore,ih=i.createContext(void 0),sh=i.createContext(!1);function uh(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ih),window.ReactQueryClientContext):ih)}const ch=({context:e}={})=>{const t=i.useContext(uh(e,i.useContext(sh)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lh=({client:e,children:t,context:n,contextSharing:o=!1})=>{i.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=uh(n,o);return i.createElement(sh.Provider,{value:!n&&o},i.createElement(a.Provider,{value:e},t))},dh=i.createContext(!1);dh.Provider;const ph=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function hh(e,t){return"function"==typeof e?e(...t):!!e}function mh(e,t){const n=ch({context:e.context}),o=i.useContext(dh),a=i.useContext(ph),r=n.defaultQueryOptions(e);r._optimisticResults=o?"isRestoring":"optimistic",r.onError&&(r.onError=qp.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=qp.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=qp.batchCalls(r.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(r),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(r,a),(e=>{i.useEffect((()=>{e.clearReset()}),[e])})(a);const[s]=i.useState((()=>new t(n,r))),u=s.getOptimisticResult(r);if(rh(i.useCallback((e=>{const t=o?()=>{}:s.subscribe(qp.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),i.useEffect((()=>{s.setOptions(r,{listeners:!1})}),[r,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(r,u,o))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)})))(r,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&hh(n,[e.error,o]))({result:u,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return r.notifyOnChangeProps?u:s.trackResult(u)}function fh(e,t,n){return mh(pp(e,t,n),Kp)}function gh(e,t,n){const o=function(e,t,n){return Cp(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=ch({context:o.context}),[r]=i.useState((()=>new Xp(a,o)));i.useEffect((()=>{r.setOptions(o)}),[r,o]);const s=rh(i.useCallback((e=>r.subscribe(qp.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),u=i.useCallback(((e,t)=>{r.mutate(e,t).catch(yh)}),[r]);if(s.error&&hh(r.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function yh(){}var bh;function vh(e){return gh((function(e){var t=e.payload;return ip.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function kh(e){return gh((function(e){var t=e.code,n=e.accountCode;return ip.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function jh(e){return gh((function(e){var t=e.code,n=e.payload,o=e.accountCode;return ip.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function wh(){return gh((function(e){var t=e.name,n=e.principal;return ip.getInstance().postAccount(t,n)}))}function _h(){return gh((function(n){var o=e([bh.ACCOUNT],n.duplicate_order,!0);return ip.getInstance().duplicateAccount(t(t({},n),{duplicate_order:o}))}))}function Eh(){return gh((function(e){return ip.getInstance().retryDuplicateAccount(e)}))}function Ch(){return gh((function(e){var t=e.name,n=e.code,o=e.principal;return ip.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Sh(){return gh((function(e){var t=e.account_code;return ip.getInstance().putAccountPrincipal({account_code:t})}))}function Rh(){return gh((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return ip.getInstance().putAccountsUserMassive(t,n,o)}))}function Th(){return gh((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return ip.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Ih(){return gh(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xh(){return gh(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Oh(){return gh((function(e){return ip.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ah(){return gh(["post-connection"],(function(e){var t=e.payload;return ip.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function zh(){return gh(["new-post-connection-validate"],(function(){return ip.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ph(){return gh(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return ip.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Dh(){return gh((function(e){var t=e.payload;return ip.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Lh(){return gh((function(e){return ip.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Nh(){var e=this;return gh((function(t){var a=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().postNetworkTokensOnboarding(a)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})}function qh(){return gh(["patch-organizations"],(function(){return ip.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function Mh(){return gh((function(e){return ip.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function Uh(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().changePasswordV2(t).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function Bh(e){return gh((function(e){return ip.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Fh(){return gh((function(e){return ip.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function Wh(){return gh((function(e){return ip.getInstance().inviteUsersMassiveV2(e)}))}function Hh(){return gh((function(e){var t=e.userCode,n=e.organizationCode;return ip.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function Gh(){return gh((function(e){return ip.getInstance().createUserAuth0(e)}))}function Vh(){return gh((function(e){return ip.getInstance().postCall(e)}))}function Kh(){return gh((function(e){return ip.getInstance().changeLoginMethods(e)}))}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(bh||(bh={}));var $h=function(){var e=u("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return c((function(){var e=function(e){"isTesting"===e.key&&n("ON"===e.newValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}}),[]),{isTesting:t}},Qh=function(e){var t=localStorage.getItem(e),n=u(t&&JSON.parse(t)),o=n[0],a=n[1];return c((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o},Jh=function(){var e,t;return null===(t=null===(e=Qh("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code},Yh=function(){var e,t=$h().isTesting,n=null===(e=Qh("account"))||void 0===e?void 0:e.value;return(t?null==n?void 0:n.account_code_testing:null==n?void 0:n.account_code_live)||(null==n?void 0:n.code)};function Xh(e){var n=Yh(),o=l(n);return o.current=n,gh((function(e){return ip.getInstance().updateIsActiveCheckout(t(t({},e),{accountCode:o.current}))}),e)}function Zh(){return gh((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return ip.getInstance().createOperationTransaction(t,n,o,a)}))}function em(){return gh((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return ip.getInstance().uploadChargebacks(t,n,o,a)}))}function tm(){return gh((function(e){var t=e.transactionCode,n=e.payload;return ip.getInstance().postProviderRawResponse(t,n)}))}function nm(){return gh((function(e){var t=e.paymentId,n=e.payload;return ip.getInstance().addToRiskList(t,n)}))}var om=new Bp({}),am=new class{constructor(e={}){this.queryCache=e.queryCache||new Bp,this.mutationCache=e.mutationCache||new Hp,this.logger=e.logger||Np,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=Ip.subscribe((()=>{Ip.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Op.subscribe((()=>{Op.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]=hp(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 o=pp(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const r=pp(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return qp.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]=hp(e,t),o=this.queryCache;qp.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=hp(e,t,n),r=this.queryCache,i={type:"active",...o};return qp.batch((()=>(r.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(i,a))))}cancelQueries(e,t,n){const[o,a={}]=hp(e,t,n);void 0===a.revert&&(a.revert=!0);const r=qp.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(r).then(cp).catch(cp)}invalidateQueries(e,t,n){const[o,a]=hp(e,t,n);return qp.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=hp(e,t,n),r=qp.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let i=Promise.all(r).then(cp);return null!=a&&a.throwOnError||(i=i.catch(cp)),i}fetchQuery(e,t,n){const o=pp(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const r=this.queryCache.build(this,a);return r.isStaleByTime(a.staleTime)?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(cp).catch(cp)}fetchInfiniteQuery(e,t,n){const o=pp(e,t,n);return o.behavior=Gp(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(cp).catch(cp)}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=>yp(e)===yp(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>bp(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>bp(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=>yp(e)===yp(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>bp(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>bp(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=gp(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:om});function rm(){return gh((function(e){return ip.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function im(){return gh((function(e){return ip.getInstance().createReconciliationsReportV3(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function sm(){return gh((function(e){return ip.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function um(){return gh((function(e){return ip.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function cm(){return gh((function(e){return ip.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function lm(t){var a=this;return gh((function(){return n(a,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().createReportTemplate(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(t){return n(a,void 0,void 0,(function(){var n;return o(this,(function(o){switch(o.label){case 0:return[4,am.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=am.getQueryData(["GET/reports/templates"]),am.setQueryData(["GET/reports/templates"],(function(n){return e(e([],n,!0),[t],!1)})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){am.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){am.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function dm(e){return gh((function(){return ip.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function pm(){return gh((function(e){return ip.getInstance().deletePaymentsReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function hm(e,t,a){var r=this;return void 0===a&&(a=null),gh((function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().postSmartRoutingCreateWorkflow(e,t).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,n.sent()]}}))}))}),a)}function mm(e,t){var a=this,r=e.versionCode,i=e.accountCode,s=e.organizationCode,u=e.routingType,c=void 0===u?ll.DEFAULT_ROUTING_TYPE:u;return void 0===t&&(t=null),gh((function(){return n(a,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().postSmartRoutingPublishVersion(i,r,s,c).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),t)}function fm(e,t){var n=e.data,o=e.accountCode,a=e.routingType,r=void 0===a?ll.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),gh((function(){return ip.getInstance().putSmartRoutingUpdateWorkflow(o,n,r).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function gm(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),gh((function(){return ip.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function ym(e,t){var n=e.versionCode,o=e.accountCode,a=e.routingType,r=void 0===a?ll.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),gh((function(){return ip.getInstance().postSmartRoutingDuplicateVersion(o,String(n),r).then((function(e){return null==e?void 0:e.data}))}),t)}function bm(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),gh((function(){return ip.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function vm(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),gh((function(e){return void 0===e&&(e=null),ip.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function km(e){var t=e.accountCode;return gh((function(e){return void 0===e&&(e=null),ip.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function jm(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),gh((function(e){return void 0===e&&(e=!1),ip.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function wm(e,t){var n=e.code,o=e.name,a=e.accountCode,r=e.routingType,i=void 0===r?ll.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),gh((function(){return ip.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o},i).then((function(e){return null==e?void 0:e.data}))}),t)}function _m(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),gh((function(e){return ip.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Em(e,t){return void 0===t&&(t=null),gh((function(t){return ip.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Cm(e,n){return void 0===n&&(n={}),gh((function(t){var n=t.declinedGroupCode;return ip.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),t(t({},n),{useErrorBoundary:!1}))}function Sm(e,n){return void 0===n&&(n={}),gh((function(t){var n=t.payload;return ip.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),t(t({},n),{useErrorBoundary:!1}))}var Rm=function(e){return gh((function(t){return ip.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Tm=function(e){return gh((function(t){return ip.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Im(){return gh((function(e){var t=e.payload;return ip.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function xm(){return gh((function(e){var t=e.userCode,n=e.organizationCode;return ip.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Om(){return gh((function(){return ip.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Am(){return gh((function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function zm(){var e=this;return gh((function(t){var a=t.payload,r=t.id,i=t.accountCode;return n(e,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,ip.getInstance().editRoles({payload:a,id:r},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Pm(){return gh((function(e){return ip.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Dm(){return gh((function(e){return ip.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Lm(){return gh(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Nm(){return gh(["post-delete-payment-link"],(function(e){var t=e.code;return ip.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function qm(){return gh(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return ip.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function Mm(){return gh(["post-subscription"],(function(e){return ip.getInstance().postSubscription(e).then((function(e){return null==e?void 0:e.data}))}))}function Um(){return gh(["post-pause-subscription"],(function(e){var t=e.subscriptionCode;return ip.getInstance().postPauseSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function Bm(){return gh(["post-resume-subscription"],(function(e){var t=e.subscriptionCode;return ip.getInstance().postResumeSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function Fm(){return gh(["post-cancel-subscription"],(function(e){var t=e.subscriptionCode;return ip.getInstance().postCancelSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function Wm(){return gh(["patch-subscription"],(function(e){var t=e.subscriptionCode,n=e.payload;return ip.getInstance().patchSubscription(t,n).then((function(e){return null==e?void 0:e.data}))}))}function Hm(){return gh(["post-reschedule-subscription"],(function(e){var t=e.subscriptionCode;return ip.getInstance().postRescheduleSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function Gm(){return gh(["post-list-subscriptions"],(function(e){return ip.getInstance().postListSubscriptions(e).then((function(e){return null==e?void 0:e.data}))}))}function Vm(){return gh((function(e){var t=e.payload;return ip.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function Km(){return gh((function(e){return ip.getInstance().postUserThemeSettings(e)}))}function $m(){return gh((function(e){var t=e.payload,n=e.section;return ip.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var n=am.getQueryData(["fetch-profile"]);e.data&&am.setQueryData(["fetch-profile"],t(t({},n),{settings:e.data}))}})}function Qm(e){return gh(["pinned-sections"],(function(e){var t=e.payload;return ip.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Jm(){return gh((function(e){var t=e.password,n=e.otp;return ip.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function Ym(){return gh((function(){return ip.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function Xm(){return gh((function(e){return ip.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function Zm(){return gh((function(e){return ip.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function ef(){return gh((function(){return ip.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function tf(){return gh(["post-get-allowlist-items"],(function(e){var t=e.payload;return ip.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function nf(){return gh(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return ip.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function of(){return gh(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return ip.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function af(){return gh(["patch-change-status-allowlist"],(function(e){var t=e.payload;return ip.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function rf(){return gh(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return ip.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function sf(){return gh(["post-add-allowlist-items"],(function(e){var t=e.payload;return ip.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uf(){return gh(["patch-allowlist"],(function(e){var t=e.payload;return ip.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cf(){return gh(["post-blacklist-multi-account"],(function(e){var t=e.payload;return ip.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function lf(){return gh(["put-blacklist"],(function(e){return ip.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function df(){return gh(["change-blacklist"],(function(e){return ip.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function pf(){return gh(["change-blacklist-item"],(function(e){return ip.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function hf(){return gh(["post-blacklist-items"],(function(e){var t=e.payload;return ip.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function mf(){return gh(["delete-blacklist"],(function(e){var t=e.black_list_code;return ip.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function ff(e){var t=e.handleSetProgress;return gh(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return ip.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function gf(){return gh(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return ip.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function yf(){return gh(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return ip.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function bf(){return gh(["valiate-blacklist-items"],(function(e){return ip.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function vf(){return gh(["delete-allowlist-item"],(function(e){return ip.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function kf(){return gh(["validate-allowlist-items"],(function(e){return ip.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function jf(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=u(0),r=a[0],i=a[1],s=l({cancel:function(){return null}}),c=gh(["upload-file-chargeback",t],(function(e){var t=ip.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),a=t.promise,r=t.cancel;return s.current.cancel=r,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:r}}function wf(){return gh((function(e){return ip.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _f(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().batchRefundByFile({payload:t}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ef(){var e=this;return gh((function(t){var a=t.batchRefundId,r=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().getBatchRefundProcessedFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Cf(){var e=this;return gh((function(t){var a=t.batchRefundId,r=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().getBatchRefundUserFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Sf(){var e=l({cancel:function(){return null}}),t=gh(["upload-file"],(function(t){var n=ip.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Rf(){return gh((function(e){var t=e.payload,n=e.organizationCode;return ip.getInstance().updateMFAConfig(t,n)}))}function Tf(){return gh((function(e){var t=e.payload,n=e.organizationCode;return ip.getInstance().mfaExcludeUsers(t,n)}))}function If(e){return fh(["GET/scheduled-reports",e],(function(){return ip.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 xf(){return gh((function(e){var t=e.payload;return ip.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function Of(){return gh((function(e){var t=e.reportCode,n=e.payload;return ip.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Af(){return gh((function(e){return ip.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function zf(){return gh((function(e){return ip.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Pf(){return gh((function(e){return ip.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Df(){return gh((function(e){var t=e.payload,n=e.accountCode;return ip.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Lf(){return gh((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return ip.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Nf(){return gh((function(e){var t=e.payload;return ip.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function qf(){return gh((function(e){var t=e.payload,n=e.code;return ip.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Mf(){return gh((function(e){var t=e.code,n=e.password,o=e.otp,a=e.mfaToken;return ip.getInstance().getCustomizedApiKeysToken(t,n,o,a).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Uf(){return gh((function(e){var t=e.passwordOtp;return ip.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Bf(){return gh((function(e){var t=e.password;return ip.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Ff(){return gh((function(e){var t=e.code;return ip.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Wf(){return gh((function(e){var t=e.payload,n=e.code,o=e.password;return ip.getInstance().patchApiKeysEditNote(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function Hf(){return gh((function(e){var t=e.payload,n=e.code,o=e.password;return ip.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function Gf(){return gh((function(e){var n=e.password,o=e.accountCode;return ip.getInstance().getDeveloperCredentials(n,o).then((function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}))}function Vf(){return gh((function(e){var t=e.password,n=e.accountCode,o=e.otp,a=e.mfaToken;return ip.getInstance().getDeveloperCredentials(t,n,o,a).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Kf(e){return gh((function(e){var t=e.payload;return ip.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function $f(){return gh((function(e){var t=e.codes;return ip.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))}function Qf(){return gh((function(e){var t=e.tab,n=e.payload;return ip.getInstance().postUnifiedExport(t,n).then((function(e){return null==e?void 0:e.data}))}))}function Jf(){return gh((function(e){return ip.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return gh((function(e){return ip.getInstance().postExportWebhooksLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function Xf(){return gh((function(e){return ip.getInstance().postExportDashboardLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function Zf(){return gh((function(e){return ip.getInstance().postExportMonitorsLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function eg(t){var a=this;return gh((function(){return ip.getInstance().createReconciliationReportTemplate(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(t){return n(a,void 0,void 0,(function(){var n,a;return o(this,(function(o){switch(o.label){case 0:return[4,am.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return o.sent(),n=null===(a=am.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,am.setQueryData(["GET/reconciliation/reports/templates"],(function(n){return{templates:e(e([],n.templates,!0),[t],!1)}})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){am.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){am.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function tg(e){return gh((function(){return ip.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function ng(){return gh(["POST/reconciliation/alerts"],(function(e){return ip.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){am.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function og(){return gh(["DELETE/reconciliation/alerts"],(function(e){return ip.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){am.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ag(){return gh(["UPDATE/reconciliation/alerts"],(function(e){return ip.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){am.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function rg(){return gh((function(e){var t=e.payload;return ip.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ig(){return gh((function(e){return ip.getInstance().createSamlConfig(e)}))}function sg(){return gh((function(e){return ip.getInstance().updateSamlConfig(e)}))}function ug(){return gh((function(){return ip.getInstance().deleteSamlConfig()}))}function cg(e,n){return void 0===n&&(n={}),gh((function(t){return ip.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),t(t({},n),{useErrorBoundary:!1}))}function lg(e){return void 0===e&&(e={}),gh((function(e){return ip.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),t(t({},e),{useErrorBoundary:!1}))}function dg(){return gh((function(e){return ip.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function pg(){return gh((function(e){return ip.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function hg(){return gh((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,r=void 0===a?"":a;return ip.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:r}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function mg(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){var e,n,a,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,ip.getInstance().createChartGPTChart(t)];case 1:if(e=o.sent(),!(n=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}}))}))}),{useErrorBoundary:!1})}function fg(){return gh((function(e){return ip.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function gg(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){var e,n,a,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,ip.getInstance().createChartGPTChart(t)];case 1:if(e=o.sent(),!(n=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}}))}))}),{useErrorBoundary:!1})}function yg(e,t){var n=e.chartCode,o=ch();return gh((function(e){return ip.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,onSuccess:function(e){var a;o.invalidateQueries(["chart-feedback",n]),null===(a=null==t?void 0:t.onSuccess)||void 0===a||a.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})}function bg(){var e=this;return gh(["POST/template-reporting/report-templates"],(function(t){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().createTemplateReporting(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){am.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function vg(){var e=this;return gh(["POST/template-reporting/report-templates/clone"],(function(t){var a=t.templateId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().cloneReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){am.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function kg(){var e=this;return gh(["PATCH/template-reporting/report-templates/selection"],(function(t){var a=t.templateId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().updateTemplateSelection(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){am.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function jg(){var e=this;return gh(["PATCH/template-reporting/report-templates/status"],(function(t){var a=t.templateId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().changeTemplateStatus(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){am.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function wg(){var e=this;return gh(["DELETE/template-reporting/report-templates"],(function(t){var a=t.templateId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().deleteReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){am.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function _g(){var e=this;return gh(["POST/template-reporting/report-schedules"],(function(t){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().createReportSchedule(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){am.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Eg(){var e=this;return gh(["PATCH/template-reporting/report-schedules/disable"],(function(t){var a=t.scheduleId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().disableReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){am.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Cg(){var e=this;return gh(["DELETE/template-reporting/report-schedules"],(function(t){var a=t.scheduleId,r=t.payload;return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().deleteReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){am.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Sg(){return gh((function(e){return ip.getInstance().postOrganizationConfigs(e)}))}function Rg(){return gh((function(e){return ip.getInstance().putOrganizationConfigsByAccount(e)}))}function Tg(){return gh(["create-installments-plan"],(function(e){var t=e.payload;return ip.getInstance().createInstallmentsPlan(t).then((function(e){return null==e?void 0:e.data}))}))}function Ig(){return gh(["update-installments-plan"],(function(e){var t=e.code,n=e.payload;return ip.getInstance().updateInstallmentsPlan(t,n).then((function(e){return null==e?void 0:e.data}))}))}function xg(){return gh(["delete-installments-plan"],(function(e){var t=e.code;return ip.getInstance().deleteInstallmentsPlan(t).then((function(e){return null==e?void 0:e.data}))}))}var Og;function Ag(e){var t=this;return fh(["fetch-payments-lazy",e],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.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 zg(e){return fh(["fetch-payments-evaluated",e],(function(){return ip.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 Pg(e){var t=this,a=e.paymentCode,r=e.enabled,i=void 0===r||r,s=ip.getInstance();return fh(["get-payment-v2",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data}))]}))}))}),{enabled:i,cacheTime:500,useErrorBoundary:!1})}function Dg(e){var t=this,a=e.payment_code,r=e.enabled,i=void 0===r||r,s=ip.getInstance();return fh(["get-payment-transaction-details-v2",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Lg(e){var t=this,a=e.transaction_code,r=e.enabled,i=void 0===r||r,s=ip.getInstance();return fh(["get-payment-transaction-raw-response",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Ng(e){var t=Jh();return fh(["payment-methods",e],(function(){return ip.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 qg(){return fh({queryKey:["/payment-methods/providers"],queryFn:function(){return ip.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function Mg(){return fh(["GET/catalog/card-brands"],(function(){return ip.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ug(e,t){return void 0===e&&(e=!0),void 0===t&&(t=al.PAYMENTS),fh(["payment-filters",e,t],(function(){return ip.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Bg(){return fh(["payment-metrics-filters"],(function(){return ip.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Fg(e){var t=e.transaction_code,n=e.enabled;return fh(["payment-transaction-details",t],(function(){return ip.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Wg(e){var t=e.payment_code,n=e.enabled;return fh(["transaction-history",t],(function(){return ip.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Hg(e){var t=this;return fh(["POST/transactions",JSON.stringify(e)],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Gg(e){var t=this;return fh(["POST/fraud-transactions",JSON.stringify(e)],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.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 Vg(e){return fh(["GET/payout-detail",JSON.stringify(e)],(function(){var t=ip.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 Kg(e){return fh(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return ip.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 $g(e){var t=Jh();return fh(["GET/payout-history-detail",JSON.stringify(e)],(function(){return ip.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 Qg(e,t){var a=this,r=Jh();return fh(["GET/useGetProofOfCancel",r,e,t],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getProofOfCancel(e,r,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!t,cacheTime:0,useErrorBoundary:!1})}function Jg(e,t){var a=this,r=Jh();return fh(["GET/useGetProofOfPayment",r,e,t],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getProofOfPayment(e,r,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!t,cacheTime:0,useErrorBoundary:!1})}function Yg(e,t,a){var r=this,i=ip.getInstance();return fh(["send-payment-notification",e,t],(function(){return n(r,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,t)];case 1:return n=o.sent(),a.onSuccess(),[2,n.data];case 2:throw r=o.sent(),a.onError(),r;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function Xg(e){return fh(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=ip.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 Zg(e){var t=this;void 0===e&&(e=!0);var a=Jh();return fh(["getPayoutsFilters",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function ey(e,t){var a=this;void 0===t&&(t=!0);var r=Jh();return fh(["getPayoutTimeline",e,r],(function(){return n(a,void 0,void 0,(function(){var t;return o(this,(function(n){return t=ip.getInstance(),e?[2,t.getPayoutTimeline(e,r).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]:[2]}))}))}),{enabled:t&&!!e&&!!r,cacheTime:500,useErrorBoundary:!1})}function ty(e){var n=e.password,o=e.accountCode,a=e.otp,r=e.mfaToken;return fh(["developers"],(function(){return ip.getInstance().getDeveloperCredentials(n,o,a,r).then((function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function ny(){return fh(["fetch-customized-api-keys-members"],(function(){return ip.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function oy(){return fh(["developers-get-allowed-ips"],(function(){return ip.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return t(t({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function ay(){return fh(["fetch-customized-api-keys-accounts"],(function(){return ip.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function ry(e){return fh(["fetch-customized-api-keys",e],(function(){return ip.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 iy(){return fh(["fetch-customized-api-keys-products"],(function(){return ip.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function sy(){return gh(["developers-patch-allowed-ips"],(function(e){return ip.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return t(t({},e),{isError:!0})}))}),{cacheTime:0})}function uy(){return fh(["fetch-organizations"],(function(){return ip.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function cy(){return fh(["fetch-all-organizations",Jh()],(function(){return ip.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function ly(e){var t=Jh();return fh(["organizations-provider-params",e],(function(e){var n=e.queryKey;return ip.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 dy(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return fh(["integration-params",t,o],(function(){return t.includes("undefined")?{}:ip.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function py(e){var t=e.accountCode,n=e.organizationCode,o=Jh(),a=fh(["organizations-account-integrations",t,n],(function(){return ip.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function hy(e){var t=e.accountCode,n=e.paymentMethod;return fh(["fetch-connections-by-payment-method",n,t],(function(){return ip.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function my(){var e=this;return fh(["fetch-hash-pylon"],(function(){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,ip.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function fy(){return fh(["connections"],(function(){return ip.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function gy(){return fh(["dialogs"],(function(){return ip.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function yy(){return fh(["params-catalog"],(function(){return ip.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function by(e){var t=e.accountCode,n=e.name;return fh(["webhooks",t,n],(function(){return ip.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function vy(e){var t=e.accountCode,n=e.enabled;return fh(["webhooks-detail",t],(function(){return ip.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function ky(e){var t,n=Jh(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return fh({queryKey:["accounts",o],queryFn:function(){return ip.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function jy(e){return fh(["accountsV2",e],(function(){return ip.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function wy(e){return fh(["accountsV2-by-user",e],(function(){return e?ip.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 _y(e,t){var a=this;return fh({queryKey:["accounts-for-impersonation",e,t],queryFn:function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getAccountsForImpersonation(e).then((function(e){var n,o;return(null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.response)||void 0===o?void 0:o.map((function(e){return{label:e.name,value:t?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}})))||[]}))]}))}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Ey(e){return fh({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return ip.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function Cy(){return fh(["menu"],(function(){return ip.getInstance().getMenu().then((function(e){return Fd(e)?Qd:null==e?void 0:e.data})).catch((function(){return Qd}))}))}function Sy(){return fh(["/payment/statuses/style"],(function(){return ip.getInstance().useGetPaymentStatusesStyles().then((function(e){return Fd(e)?Wd:null==e?void 0:e.data})).catch((function(){return Wd}))}))}function Ry(){return fh(["/transaction/statuses/style"],(function(){return ip.getInstance().useGetTransactionStatusesStyles().then((function(e){return Fd(e)?Hd:null==e?void 0:e.data})).catch((function(){return Hd}))}),{cacheTime:36e5,useErrorBoundary:!1})}function Ty(){return fh(["/reconciliation/transaction/statuses/style"],(function(){return ip.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return Fd(e)?Gd:null==e?void 0:e.data})).catch((function(){return Gd}))}),{useErrorBoundary:!1})}function Iy(){return fh(["timezone-catalog"],(function(){return ip.getInstance().useGetTimeZoneCatalog().then((function(e){return Fd(e)?Vd:null==e?void 0:e.data})).catch((function(){return Vd}))}))}function xy(){return fh(["/cms/audit-logs-filters"],(function(){return ip.getInstance().useGetAuditLogsFilters().then((function(e){return Fd(e)?Kd:null==e?void 0:e.data})).catch((function(){return Kd}))}))}function Oy(){return fh(["/cms/static-contents"],(function(){return ip.getInstance().getDashboardStaticContents().then((function(e){var t,n;return Fd(e)?$d:(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 Ay(){return fh(["/cms/locales"],(function(){return ip.getInstance().getLocales().then((function(e){return Fd(e)?Jd:e.data})).catch((function(){return Jd}))}))}function zy(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-methods",e,t],(function(){return ip.getInstance().getSmartRoutingMethods(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Py(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-workflow",t,e,n],(function(){return ip.getInstance().getSmartRoutingWorkflow(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Dy(e,t,n){return void 0===n&&(n=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-condition-types",e,t,n],(function(){return ip.getInstance().getSmartRoutingConditionTypes(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Ly(e,t){return fh(["smart-routing-condition-payment-method",e,t],(function(){return ip.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 Ny(e,t){return fh(["smart-routing-condition-types-values",t,e],(function(){return ip.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function qy(e){var t=e.accountCode,n=e.workflowVersionId,o=e.routingType,a=void 0===o?ll.DEFAULT_ROUTING_TYPE:o;return fh(["smart-routing-workflow-version",n,t,a],(function(){return ip.getInstance().getSmartRoutingWorkflowVersion(t,n,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function My(e,t,n,o){return void 0===o&&(o=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-next-route",e,n,t,o],(function(){return ip.getInstance().getSmartRoutingNextSteps(e,t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Uy(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-decline-groups",e,t],(function(){return ip.getInstance().getSmartRoutingDeclinedGroup(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function By(e,t){return fh(["smart-routing-payment-route",e,t],(function(){return ip.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 Fy(e,t){return void 0===t&&(t=ll.DEFAULT_ROUTING_TYPE),fh(["smart-routing-simulate-condition-type-values",e,t],(function(){return ip.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Wy(e){var t=e.text,n=e.conditionType;return fh(["smart-routing-search-condition-values",t,n],(function(){return ip.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 Hy(){return fh(["smart-routing-conversion-rates"],(function(){return ip.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function Gy(){var e=this;return fh({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Vy(){var e=this;return fh({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Ky(e){return fh(["fetch-routing-monitors-templates",e],(function(){return ip.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function $y(e,t){return fh(["fetch-routing-monitors-template",e],(function(){return ip.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 Qy(e,n){var o=e.accountCode;return fh(["checkouts",o],(function(){return ip.getInstance().getCheckouts({accountCode:o}).then((function(e){return e.data}))}),t({cacheTime:0,enabled:Boolean(o),useErrorBoundary:!1},n))}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(Og||(Og={}));var Jy=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Yy=function(e,t){var n=e.paymentMethodType,o=e.type;return fh(Jy({paymentMethodType:n,type:o}),(function(){return ip.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Xy=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Zy=function(e,t){var n=e.paymentMethodType,o=e.type;return fh(Xy({paymentMethodType:n,type:o}),(function(){return ip.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},eb=function(e){return fh(["checkout-builder-country-data",e],(function(){return ip.getInstance().getCountryData({accountCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})};function tb(e){var t=e.accountCode;return fh(["styling-sdk-dynamic",t],(function(){return ip.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 nb(e){var t=e.accountCode;return fh(["styling-settings-v2",t],(function(){return ip.getInstance().getStylingSettingsV2({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function ob(){return gh((function(e){var t=e.accountCode,n=e.payload;return ip.getInstance().changeStylingSettings({accountCode:t,payload:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function ab(){return fh(["fetch-profile"],(function(){return ip.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 rb(){var e=this;return fh(["get-user-full"],(function(){return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,ip.getInstance().getUserFull()];case 1:return[2,e.sent().data]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function ib(e,t){return fh(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),r=o&&JSON.parse(o),i=a&&JSON.parse(a);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==r?void 0:r.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 sb(e){return fh(["email-verification",e],(function(){return ip.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function ub(){return fh({queryKey:["get-login-methods"],queryFn:function(){return ip.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function cb(){return fh(["fetch-impersonation-users"],(function(){return ip.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 lb(){return fh(["fetch-impersonation-enabled"],(function(){return ip.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function db(e,t,a,r,i){var s=this;return void 0===a&&(a=1),void 0===r&&(r=10),fh(["get-users-to-impersonate",e,t,a,r,i],(function(){return n(s,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getUsersToImpersonate(e,t,a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function pb(e){var t;return fh(["fetch-communications",e],(function(){return ip.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 hb(){return fh(["fetch-communications-filters"],(function(){return ip.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function mb(e,t){return fh(["fetch-communication-details",e],(function(){return ip.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function fb(e){return fh(["notifications-customer",e],(function(){return ip.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function gb(e){return fh(["validate-opsgenie-key",e],(function(){return ip.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function yb(){return fh(["notifications-merged"],(function(){return ip.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function bb(){return gh((function(e){return ip.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function vb(){var e=this;return gh((function(t){return n(e,void 0,void 0,(function(){var e;return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().pathNotification(t)];case 1:return[2,null==(e=n.sent())?void 0:e.data]}}))}))}))}var kb={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function jb(){return fh(["reports"],(function(){return ip.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wb(e){return void 0===e&&(e=!0),fh(["reports-multi-env"],(function(){return ip.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function _b(e,t,n){return void 0===t&&(t=!1),fh(["reports/".concat(e)],(function(){return ip.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Eb(e){return fh(["GET/reports/templates"],(function(){return ip.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Cb(t,a,r){var i=this;return fh(["GET/reports/columns/".concat(a,"/").concat(r)],(function(){return n(i,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().getReportColumns(a,r).then((function(t){return a===cl.ALL&&r===ul.PAYMENTS?e(e([],(null==t?void 0:t.data)||[],!0),[kb],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:t,useErrorBoundary:!1})}function Sb(e,t){var a=this,r=Jh();return fh(["getRefundPdf",e,r,t],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getRefundPdf(e,r,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!r,useErrorBoundary:!1})}function Rb(){var e=Jh();return fh(["teams-filters-members"],(function(){return ip.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Tb(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=Jh();return fh(["fetch-post-members-v2",t,n,o,a,r,i,s,u,c],(function(){return ip.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:a,roleId:r,statuses:i,roleIds:s,page:u,pageSize:c}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Ib(){return fh(["fetch-roles"],(function(){return ip.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function xb(){return fh(["fetch-rolespermissions"],(function(){return ip.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Ob(){return fh(["fetch-permissions-catalog"],(function(){return ip.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ab(e){var t=e.exportCode,n=e.enabled;return fh(["user-export-status",t],(function(){return ip.getInstance().getUserExportStatus({exportCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})}function zb(e){var t=e.page,n=void 0===t?0:t,o=e.pageSize,a=void 0===o?20:o,r=e.enabled;return fh(["user-exports-list",n,a],(function(){return ip.getInstance().listUserExports({page:n,pageSize:a}).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===r||r,useErrorBoundary:!1})}function Pb(){var e=this,t=ch();return function(a){return n(e,void 0,void 0,(function(){return o(this,(function(e){return[2,t.fetchQuery(["user-export-status",a],(function(){return ip.getInstance().getUserExportStatus({exportCode:a}).then((function(e){return null==e?void 0:e.data}))}))]}))}))}}function Db(e){return fh(["data-report",e],(function(){return ip.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Lb(e,t,n,o){void 0===n&&(n=!0);return fh(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return ip.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})}function Nb(e,t){return fh(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return ip.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 qb(e){return fh(["get-insights-conversion-rate-fallback-metrics",e],(function(){return ip.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 Mb(e,t,n){return void 0===n&&(n=!0),delete t.account_code,fh(["get-insights-volume-metrics",t,e],(function(){return ip.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Ub(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,fh(["get-insights-volume-metrics-v2",t,e,n],(function(){return ip.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Bb(e,t,n){return void 0===n&&(n=!0),delete t.account_code,fh(["get-insights-total-payment-fraud-metrics",t,e],(function(){return ip.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Fb(e,t,n){return void 0===n&&(n=!0),delete t.account_code,fh(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return ip.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Wb(e){return fh(["get-insights-overview",e],(function(){return ip.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 Hb(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return fh(["get-insights-overview-v3",e,t],(function(){return ip.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Gb(e){return fh(["get-insights-home-metrics",e],(function(){return ip.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 Vb(e){return fh(["get-insights-reports",e],(function(){return ip.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 Kb(e){return fh(["get-insights-reports-again",e],(function(){return ip.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 $b(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Qb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-fraud-screening-conversion-rate",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsFraudScreeningConversionRate(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Jb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-3ds-volume-and-count-tx",t,e],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsights3dsVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Yb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsights3dsConversionRateAndEvolution(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Xb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-3ds-decline-reasons",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsights3dsDeclineReasons(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Zb(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsights3dsFrictionlessVsChallenge(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ev(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function tv(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function nv(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-win-rate",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksWinRate(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ov(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-disputed",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksDisputed(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function av(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rv(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-reasons-distribution",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksReasonsDistribution(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function iv(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-status-distribution",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksStatusDistribution(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sv(e,t,a){var r=this;return void 0===a&&(a={enabled:!0}),fh({queryKey:["post-insights-chargebacks-by-card-brand",e,t],queryFn:function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,ip.getInstance().getInsightsChargebacksByCardBrand(e,t)];case 1:return[2,n.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function uv(e,t){return fh(["fetch-reconciliation-transaction",e],(function(){return ip.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function cv(e,t){return fh(["fetch-reconciliation-settlements",e],(function(){return ip.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function lv(e,t){return fh(["fetch-reconciliation-metrics",e],(function(){return ip.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function dv(){return fh(["GET-reconciliation-filters"],(function(){return ip.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function pv(e){return fh(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return ip.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function hv(){return fh(["GET/v1/reconciliation/active"],(function(){return ip.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{useErrorBoundary:!1})}function mv(e,t,n){return fh(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return ip.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 fv(e){return fh(["GET/reconciliation/reports/templates"],(function(){return ip.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function gv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/alerts/list",t,n],(function(){return ip.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function yv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/agenda/list",t,n],(function(){return ip.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function bv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/agenda/insights",t,n],(function(){return ip.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function vv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/sales/list",t,n],(function(){return ip.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function kv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/advancements/list",t,n],(function(){return ip.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function jv(e){var t=e.body,n=e.params,o=e.enabled;return fh(["GET/reconciliation/fees/list",t,n],(function(){return ip.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function wv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-conflicts-summary",t],(function(){return ip.getInstance().getReconciliationInsightsConflictsSummary(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function _v(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-reconciled-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Ev(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-reconciled-list",t],(function(){return ip.getInstance().getReconciliationInsightsNotReconciledList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Cv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-status-conflict-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Sv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-status-conflict-list",t],(function(){return ip.getInstance().getReconciliationInsightsStatusConflictList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Rv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-amount-conflict-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Tv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-amount-conflict-list",t],(function(){return ip.getInstance().getReconciliationInsightsAmountConflictList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Iv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-conflict-date-summary",t],(function(){return ip.getInstance().getReconciliationInsightsConflictDateSummary(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function xv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-conflict-date-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsConflictDateAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Ov(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-conflict-date-list",t],(function(){return ip.getInstance().getReconciliationInsightsConflictDateList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Av(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-incorrect-fees-summary",t,n],(function(){return ip.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function zv(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-incorrect-fees-aggregators",t,n],(function(){return ip.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function Pv(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-incorrect-fees-list",t,n],(function(){return ip.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function Dv(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-fees-charged-summary",t,n],(function(){return ip.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function Lv(e){var t=e.body,n=e.dateFilter,o=e.enabled;return fh(["reconciliation-insights-reconciled-summary",t,n],(function(){return ip.getInstance().getReconciliationInsightsReconciledSummary(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===o||o,useErrorBoundary:!1})}function Nv(e){var t=e.body,n=e.dateFilter,o=e.transactionType,a=e.enabled;return fh(["reconciliation-insights-reconciled-aggregators",t,n,o],(function(){return ip.getInstance().getReconciliationInsightsReconciledAggregators(t,n,o).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===a||a,useErrorBoundary:!1})}function qv(e){var t=e.body,n=e.dateFilter,o=e.transactionType,a=e.enabled;return fh(["reconciliation-insights-reconciled-list",t,n,o],(function(){return ip.getInstance().getReconciliationInsightsReconciledList(t,n,o).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===a||a,useErrorBoundary:!1})}function Mv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-confirm-summary",t],(function(){return ip.getInstance().getReconciliationInsightsNotConfirmSummary(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Uv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-confirm-aggregators",t],(function(){return ip.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Bv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-not-confirm-list",t],(function(){return ip.getInstance().getReconciliationInsightsNotConfirmList(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Fv(e){var t=e.body,n=e.enabled;return fh(["reconciliation-insights-amount-to-be-settled-summary",t],(function(){return ip.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===n||n,useErrorBoundary:!1})}function Wv(e){var t=this,a=Object.values(e).filter(Boolean);return fh(["feature-flags",a],(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Hv(e){var t=this,a=fh({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.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}),r=ch();return c((function(){r.setQueryData(["cached-feature-flags"],a)}),[a,r]),a}function Gv(e){var n,o,a=ch(),r=a.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.status)||"loading"===(null===(o=null==r?void 0:r.data)||void 0===o?void 0:o.status)),s=fh({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=a.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return t(t({},s),{isLoading:i})}function Vv(e){return fh(["events",e],(function(){return ip.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 Kv(e){return fh(["audit-monitor-event-detail",e],(function(){return ip.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 $v(e){return fh(["api-logs",e],(function(){return ip.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Qv(e){var t=e.params;return fh(["webhook-logs",t],(function(){return ip.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Jv(e){return fh(["api-logs-detail",e],(function(){return ip.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Yv(e,t){return fh(["api-logs-by-transaction",e,t],(function(){return ip.getInstance().getApiLogsByTransactionCode(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function Xv(e,t){return void 0===t&&(t=!0),fh(["audit-exports-list",e],(function(){return ip.getInstance().getAuditExportsList(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,cacheTime:0,useErrorBoundary:!1})}function Zv(e,t,n){return void 0===t&&(t=!1),fh(["audit-export-download",e],(function(){return ip.getInstance().getAuditExportDownload(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})}function ek(e){var t=e.tab,n=e.exportId,o=e.enabled,a=void 0!==o&&o,r=e.onSuccess;return fh(["unified-export-status",t,n],(function(){return ip.getInstance().getUnifiedExportStatus(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&a,cacheTime:0,useErrorBoundary:!1,onSuccess:r})}function tk(e){var t=e.tab,n=e.page,o=void 0===n?0:n,a=e.size,r=void 0===a?10:a,i=e.enabled;return fh(["unified-exports-list",t,o,r],(function(){return ip.getInstance().getUnifiedExportsList(t,o,r).then((function(e){return null==e?void 0:e.data}))}),{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})}function nk(e,t){return fh(["fetch-payment-links",e,t],(function(){return ip.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function ok(e){return fh(["payment-link"],(function(){return ip.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function ak(e){return void 0===e&&(e=!0),fh(["countries",e],(function(){return ip.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function rk(e){var t=localStorage.getItem("lang")||"en",n=e||t;return fh(["countries-v2",n],(function(){return ip.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function ik(e){return fh(["timezone"],(function(){return ip.getInstance().getTimezone(e).then((function(e){return Fd(e)?Vd:null==e?void 0:e.data})).catch((function(){return Vd}))}),{enabled:!0,keepPreviousData:!0})}function sk(e,t){return void 0===t&&(t=!0),fh(["subscription",e],(function(){return ip.getInstance().getSubscriptionByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:500})}function uk(e,t,n,o){return void 0===o&&(o=!0),fh(["subscription-payments",e,t,n],(function(){return ip.getInstance().getSubscriptionPayments(e,t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&o,cacheTime:0})}function ck(e){return gh((function(e){var t=e.payload;return ip.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function lk(e,t){return fh(["get-cofig-allow-list",e],(function(){return ip.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 dk(e,t){return void 0===t&&(t=!0),fh(["get-black-list",e],(function(){return ip.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&t})}function pk(e,t,n,o){var a;return fh(["post-black-list",e],(function(){return ip.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function hk(e,t,n){return fh(["get-block-list-summary",e,t,n],(function(){var o=ip.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function mk(e,t,n,o,a,r){return fh(["black-list-detail",e,t,o,a,r],(function(){return ip.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&r,cacheTime:0})}function fk(e,t,n){return fh(["allow-list-detail",e],(function(){return ip.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function gk(e,t){return void 0===t&&(t=!0),fh(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return ip.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:0})}function yk(e,t){var a=this;return void 0===e&&(e=26),void 0===t&&(t=0),fh(["batch-refunds",e,t],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getBatchRefunds(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function bk(e){return fh(["velocity-rules",e],(function(){var t=ip.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 vk(){return fh(["config-rules"],(function(){return ip.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function kk(e,t){var n=e.organizationCode;return fh(["mfa-excluded-users",n],(function(){return ip.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function jk(e,t){var n=e.organizationCode;return fh(["mfa-config",n],(function(){return ip.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function wk(e,t){return fh(["mfa-enforcement-status",e.accountCode],(function(){return ip.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function _k(e){return fh(["fetch-organization-saml-config",e],(function(){return ip.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ek(e){return fh(["chartgpt-chart-execute",e],(function(){return ip.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function Ck(){return fh(["chartgpt-user-charts"],(function(){return ip.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Sk(){var e=this;return fh(["chartgpt-user-charts-with-results"],(function(){return n(e,void 0,void 0,(function(){var e,a,r,i=this;return o(this,(function(s){switch(s.label){case 0:return[4,(e=ip.getInstance()).getChartsByUser()];case 1:return a=s.sent(),r=(null==a?void 0:a.data)||[],[4,Promise.all(r.map((function(a){return n(i,void 0,void 0,(function(){var n,r,i,s,u,c,l,d;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e.executeChartGPTChart(a.code)];case 1:return n=o.sent(),[2,t(t({},a),{user_prompt:null!==(s=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:a.user_prompt,unit_to_display:null!==(c=null===(u=null==n?void 0:n.data)||void 0===u?void 0:u.unit_to_display)&&void 0!==c?c:a.unit_to_display,results:null!==(d=null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return r=o.sent(),console.error("Failed to execute chart ".concat(a.chart_id,":"),r),[2,t(t({},a),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function Rk(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["chartgpt-patch-and-execute",e,t],(function(){return n(r,void 0,void 0,(function(){var n,a,r,i,s;return o(this,(function(o){switch(o.label){case 0:return[4,(n=ip.getInstance()).patchChartGPTChart(e,t)];case 1:return a=o.sent(),r=null==a?void 0:a.data,[4,n.executeChartGPTChart(e)];case 2:return i=o.sent(),s=null==i?void 0:i.data,[2,{chart:r,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function Tk(e){var t=this,a=e.chartCode,r=e.enabled;return fh(["chart-feedback",a],(function(){return n(t,void 0,void 0,(function(){var e,t,n,r,i;return o(this,(function(o){switch(o.label){case 0:e=ip.getInstance(),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,e.getChartFeedback(a)];case 2:return t=o.sent(),(n=null==t?void 0:t.data)&&n.rating?[2,n]:[2,null];case 3:if(r=o.sent(),404===(null===(i=null==r?void 0:r.response)||void 0===i?void 0:i.status))return[2,null];throw r;case 4:return[2]}}))}))}),{enabled:(void 0===r||r)&&!!a,staleTime:3e5})}function Ik(){return fh(["languages"],(function(){return ip.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function xk(){var e=localStorage.getItem("lang")||"en";return fh(["translations",e],(function(){return ip.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function Ok(e){var t=this;return fh({queryKey:["network-tokens-onboarding",e],queryFn:function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,ip.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var Ak=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},zk=function(e,t,n){if(!t||!n)return e||[];var o=function(e,t){var n=[],o=new Date(e),a=new Date(t);o.setUTCHours(0,0,0,0),a.setUTCHours(0,0,0,0);for(var r=new Date(o);r<=a;)n.push(r.toISOString()),r.setUTCDate(r.getUTCDate()+1);return n}(t,n),a=new Map;return null==e||e.forEach((function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];a.set(t,e.value)}})),o.map((function(e){var t=e.split("T")[0];return{date:e,value:a.get(t)||"0"}}))},Pk=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var o=parseFloat(n.value||"0");return{distribution:n.rows.map((function(e){var t,n=100*parseFloat(e.value),a=Math.round(o*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:a,percentage:n,amount:a}})),total:o}},Dk=function(e,t,n){var o,a={};return null===(o=e.plots)||void 0===o||o.forEach((function(e){var o=zk(e.rows,t,n),r=e.label;a[r]=o.map((function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:Ak(e.date||""),current_amount:100*parseFloat(e.value)}}))})),a},Lk=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:zk(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Ak(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},Nk=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:zk(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Ak(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},qk=function(e,a){return fh(t({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",n)];case 1:return a=o.sent(),[2,(r=a.data,i=n.start_date,s=n.end_date,u=r.plots||[],c=u.find((function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label})),l=u.find((function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label})),d=u.find((function(e){return"CONVERSION_RATE_LABEL"===e.label})),p=zk(null==c?void 0:c.rows,i,s),h=zk(null==l?void 0:l.rows,i,s),m=zk(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Ak(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==c?void 0:c.value)||"0")},conversion_rate:{distribution:m.map((function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}})),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Ak(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var r,i,s,u,c,l,d,p,h,m}))}))},enabled:!!e.organization_code,staleTime:3e5},a))},Mk=function(e,a){return fh(t({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",n)];case 1:return a=o.sent(),[2,Pk(a.data)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},a))},Uk=function(e,a){return fh(t({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",n)];case 1:return a=o.sent(),[2,Dk(a.data,n.start_date,n.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},a))},Bk=function(e,a){return fh(t({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",n)];case 1:return a=o.sent(),[2,Lk(a.data,n.start_date,n.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},a))},Fk=function(e,a){return fh(t({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,(function(){var t,n,a;return o(this,(function(o){switch(o.label){case 0:return t=ip.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",n)];case 1:return a=o.sent(),[2,Nk(a.data,n.start_date,n.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},a))};function Wk(e,t){var a=this;return fh(["POST/template-reporting/templates/search",e],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().searchReportTemplates(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:t,useErrorBoundary:!1})}function Hk(e,t,a){var r=this;return fh(["POST/template-reporting/template-by-id/search",e,t],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().searchReportTemplateById(e,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1})}function Gk(e,t){var a=this;return fh(["POST/template-reporting/schedules/search",e],(function(){return n(a,void 0,void 0,(function(){return o(this,(function(t){return[2,ip.getInstance().searchReportSchedules(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:t,useErrorBoundary:!1})}function Vk(e,t,a){var r=this;return fh(["POST/template-reporting/schedule-by-id/search",e,t],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().searchReportScheduleById(e,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1})}function Kk(){return fh({queryKey:["organization-configs"],queryFn:function(){return ip.getInstance().getOrganizationConfigs().then((function(e){return null==e?void 0:e.data}))},cacheTime:0,useErrorBoundary:!1})}function $k(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["get-recipients",e,t],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getRecipients(e,t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&a,cacheTime:0,useErrorBoundary:!1})}function Qk(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["get-recipient-by-id",e,t.recipient_id],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getRecipientById(e,t.recipient_id).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!t.recipient_id&&a,cacheTime:500,useErrorBoundary:!1})}function Jk(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["get-onboarding-detail",e,t.recipient_id,t.onboarding_id],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getOnboardingDetail(e,t.recipient_id,t.onboarding_id).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!t.recipient_id&&!!t.onboarding_id&&a,cacheTime:500,useErrorBoundary:!1})}function Yk(e,t,a){var r=this;return void 0===a&&(a=!0),fh(["get-onboarding-timeline",e,t.onboarding_id],(function(){return n(r,void 0,void 0,(function(){return o(this,(function(n){return[2,ip.getInstance().getOnboardingTimeline(e,t.onboarding_id).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!t.onboarding_id&&a,cacheTime:500,useErrorBoundary:!1})}function Xk(e,t,n){return void 0===t&&(t=!0),fh(["installments-plans",e,n],(function(){return ip.getInstance().getInstallmentPlans(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})}function Zk(){return Zk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zk.apply(this,arguments)}
217
217
  /**
218
218
  * match-sorter-utils
219
219
  *
@@ -223,12 +223,12 @@ function Vo(e){const t=Go.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
223
223
  * LICENSE.md file in the root directory of this source tree.
224
224
  *
225
225
  * @license MIT
226
- */const Zk={"À":"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"},ej=Object.keys(Zk).join("|"),tj=new RegExp(ej,"g");
226
+ */const ej={"À":"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"},tj=Object.keys(ej).join("|"),nj=new RegExp(tj,"g");
227
227
  /**
228
228
  * @name match-sorter
229
229
  * @license MIT license.
230
230
  * @copyright (c) 2099 Kent C. Dodds
231
231
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
232
232
  */
233
- const nj=7,oj=6,aj=5,rj=4,ij=3,sj=2,uj=1,cj=0;function lj(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:uj,!n.accessors){const o=dj(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],r=fj(a),i=hj(e,a);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:r})}return n}(e,n.accessors),r={rankedValue:e,rank:cj,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let i=dj(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=uj?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>r.rank&&(r.rank=i,r.passed=!0,r.accessorIndex=e,r.accessorThreshold=c,r.rankedValue=o.itemValue)}return r}function dj(e,t,n){return e=pj(e,n),(t=pj(t,n)).length>e.length?cj:e===t?nj:(e=e.toLowerCase())===(t=t.toLowerCase())?oj:e.startsWith(t)?aj:e.includes(` ${t}`)?rj:e.includes(t)?ij:1===t.length?cj:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?sj:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,r=t.length;a<r;a++){if(t[a]===e)return n+=1,a+1}return-1}function r(e){const o=1/e,a=n/t.length;return uj+a*o}const i=a(t[0],e,0);if(i<0)return cj;o=i;for(let n=1,r=t.length;n<r;n++){o=a(t[n],e,o);if(!(o>-1))return cj}const s=o-i;return r(s)}(e,t)}function pj(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(tj,(e=>Zk[e]))),e}function hj(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const mj={maxRanking:1/0,minRanking:-1/0};function fj(e){return"function"==typeof e?mj:{...mj,...e}}function gj(e,t){const[n,o]=i.useState();i.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,i.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var yj,bj=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}(),vj=function(){function e(e){this.generateIdentifier=e,this.kv=new bj}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}(),kj=(yj=function(e,t){return yj=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])},yj(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}yj(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),jj=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return kj(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}(vj),wj=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function _j(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 o=n,a=0;a<o.length;a++){var r=o[a];if(t(r))return r}}function Ej(e,t){Object.entries(e).forEach((function(e){var n=wj(e,2),o=n[0],a=n[1];return t(a,o)}))}function Cj(e,t){return-1!==e.indexOf(t)}function Sj(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var Rj=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return _j(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),Tj=function(e){return void 0===e},Ij=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},xj=function(e){return Ij(e)&&0===Object.keys(e).length},Oj=function(e){return Array.isArray(e)},Aj=function(e){return e instanceof Map},zj=function(e){return e instanceof Set},Pj=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Dj=function(e){return"number"==typeof e&&isNaN(e)},Lj=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||Tj(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Pj(e)},Nj=function(e){return e.replace(/\./g,"\\.")},qj=function(e){return e.map(String).map(Nj).join(".")},Mj=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var r=n;return t.push(r),t},Uj=function(){return Uj=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Uj.apply(this,arguments)},Bj=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Fj=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Wj(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Hj=[Wj(Tj,"undefined",(function(){return null}),(function(){})),Wj((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)})),Wj((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),Wj((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})),Wj((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)})),Wj(zj,"set",(function(e){return Fj([],Bj(e.values()))}),(function(e){return new Set(e)})),Wj(Aj,"map",(function(e){return Fj([],Bj(e.entries()))}),(function(e){return new Map(e)})),Wj((function(e){return Dj(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return Dj(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),Wj((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),Wj((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function Gj(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Vj=Gj((function(e,t){return!!Pj(e)&&!!t.symbolRegistry.getIdentifier(e)}),(function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]}),(function(e){return e.description}),(function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o})),Kj=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),$j=Gj((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return Fj([],Bj(e))}),(function(e,t){var n=Kj[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Qj(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Jj=Gj(Qj,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Uj({},e);var o={};return n.forEach((function(t){o[t]=e[t]})),o}),(function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)})),Yj=Gj((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 o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)})),Xj=[Jj,Vj,Yj,$j],Zj=function(e,t){var n=Sj(Xj,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=Sj(Hj,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},ew={};Hj.forEach((function(e){ew[e.annotation]=e}));var tw=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function nw(e){if(Cj(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Cj(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Cj(e,"constructor"))throw new Error("constructor is not allowed as a property")}var ow=function(e,t,n){if(nw(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var r=t[a];if(Oj(o))o=o[+r];else if(Ij(o))o=o[r];else if(zj(o)){o=tw(o,i=+r)}else if(Aj(o)){if(a===t.length-2)break;var i=+r,s=0==+t[++a]?"key":"value",u=tw(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(Oj(o)?o[+c]=n(o[+c]):Ij(o)&&(o[c]=n(o[c])),zj(o)){var l=tw(o,+c),d=n(l);l!==d&&(o.delete(l),o.add(d))}if(Aj(o)){i=+t[t.length-2];var p=tw(o,i);switch(s=0==+c?"key":"value"){case"key":var h=n(p);o.set(h,o.get(p)),h!==p&&o.delete(p);break;case"value":o.set(p,n(o.get(p)))}}return e},aw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},rw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function iw(e,t,n){if(void 0===n&&(n=[]),e)if(Oj(e)){var o=aw(e,2),a=o[0],r=o[1];r&&Ej(r,(function(e,o){iw(e,t,rw(rw([],aw(n)),aw(Mj(o))))})),t(a,n)}else Ej(e,(function(e,o){return iw(e,t,rw(rw([],aw(n)),aw(Mj(o))))}))}function sw(e,t,n){return iw(t,(function(t,o){e=ow(e,o,(function(e){return function(e,t,n){if(!Oj(t)){var o=ew[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return Vj.untransform(e,t,n);case"class":return Jj.untransform(e,t,n);case"custom":return Yj.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 uw(e,t){function n(t,n){var o=function(e,t){nw(t);for(var n=0;n<t.length;n++){var o=t[n];if(zj(e))e=tw(e,+o);else if(Aj(e)){var a=+o,r=0==+t[++n]?"key":"value",i=tw(e,a);switch(r){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,Mj(n));t.map(Mj).forEach((function(t){e=ow(e,t,(function(){return o}))}))}if(Oj(t)){var o=aw(t,2),a=o[0],r=o[1];a.forEach((function(t){e=ow(e,Mj(t),(function(){return e}))})),r&&Ej(r,n)}else Ej(t,n);return e}var cw=function(e,t,n,o,a,r,i){var s;void 0===a&&(a=[]),void 0===r&&(r=[]),void 0===i&&(i=new Map);var u=Lj(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return Ij(e)||Oj(e)||Aj(e)||zj(e)||Qj(e,t)}(e,n)){var l=Zj(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,d),d}if(Cj(r,e))return{transformedValue:null};var p=Zj(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,m=Oj(h)?[]:{},f={};Ej(h,(function(s,u){var c=cw(s,t,n,o,rw(rw([],aw(a)),[u]),rw(rw([],aw(r)),[e]),i);m[u]=c.transformedValue,Oj(c.annotations)?f[u]=c.annotations:Ij(c.annotations)&&Ej(c.annotations,(function(e,t){f[Nj(u)+"."+t]=e}))}));var g=xj(f)?{transformedValue:m,annotations:p?[p.type]:void 0}:{transformedValue:m,annotations:p?[p.type,f]:f};return u||i.set(e,g),g};function lw(e){return Object.prototype.toString.call(e).slice(8,-1)}function dw(e){return"Array"===lw(e)}function pw(e,t={}){if(dw(e))return e.map((e=>pw(e,t)));if(!function(e){if("Object"!==lw(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,o)=>{if(dw(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const r={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=n),a&&"nonenumerable"===r&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,pw(e[o],t),e,t.nonenumerable),n}),{})}var hw=function(){return hw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},hw.apply(this,arguments)},mw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},fw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},gw=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new jj,this.symbolRegistry=new vj((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new Rj,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=cw(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=hw(hw({},o.meta),{values:n.annotations}));var a,r,i,s,u=(a=t,r=this.dedupe,i={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){r||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=aw(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(qj):i[qj(n)]=o.map(qj)}})),s?xj(i)?[s]:[s,i]:xj(i)?void 0:i);return u&&(o.meta=hw(hw({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=pw(t);return(null==n?void 0:n.values)&&(o=sw(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=uw(o,n.referentialEqualities)),o},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(hw({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,fw([],mw(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 yw={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},bw=i.createContext(yw);function vw({theme:e,...t}){return i.createElement(bw.Provider,Xk({value:e},t))}function kw({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function jw(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function ww(e,t,n={}){return i.forwardRef((({style:o,...a},r)=>{const s=i.useContext(bw),u=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=i.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return i.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,s):n}:e),{});return i.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...o,...u},ref:r})}))}const _w=(e,t=!1)=>{const{json:n}=gw.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Ew=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Cw=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Sw={"Status > Last Updated":(e,t)=>Ew(e)===Ew(t)?Cw(e,t):Ew(e)>Ew(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Cw},Rw=500,Tw={top:"bottom",bottom:"top",left:"right",right:"left"};function Iw(e){return["left","right"].includes(e)}function xw(e){return Tw[e]}function Ow(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function Aw(e="bottom"){const t=Iw(e),n=xw(e),o=Ow("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const zw=ww("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"}}),Pw=ww("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),Dw=ww("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"}))),Lw=ww("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),Nw=ww("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),qw=ww("code",{fontSize:".9em",color:"inherit",background:"inherit"}),Mw=ww("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),Uw=ww("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 Bw({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Fw=ww("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Ww=ww("span",{color:"white"}),Hw=ww("button",{cursor:"pointer",color:"white"}),Gw=ww("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),Vw=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(gw.stringify(e)).then((()=>{n("SuccessCopy"),setTimeout((()=>{n("NoCopy")}),1500)}),(e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout((()=>{n("NoCopy")}),1500)}))}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(Yw,null):"SuccessCopy"===t?i.createElement(Zw,null):i.createElement(Xw,null))},Kw=ww("span",((e,t)=>({color:t.danger}))),$w=ww("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Qw=ww("span",{color:"grey",fontSize:".7em"}),Jw=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Yw=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),Xw=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Zw=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const e_=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:r,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(Fw,{key:t},a.length?i.createElement(i.Fragment,null,i.createElement(Gw,{onClick:()=>c()},i.createElement(Jw,{expanded:s})," ",t," ",i.createElement(Qw,null,"iterable"===String(r).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),u?i.createElement(Vw,{value:n}):null,s?1===a.length?i.createElement($w,null,o.map(e)):i.createElement($w,null,a.map(((t,n)=>i.createElement("div",{key:n},i.createElement(Fw,null,i.createElement(Hw,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},i.createElement(Jw,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement($w,null,t.map(e)):null))))):null):i.createElement(i.Fragment,null,i.createElement(Ww,null,t,":")," ",i.createElement(Kw,null,_w(n))))};function t_({value:e,defaultExpanded:t,renderer:n=e_,pageSize:o=100,copyable:a=!1,...r}){const[s,u]=i.useState(Boolean(t)),c=i.useCallback((()=>u((e=>!e))),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map(((e,t)=>p({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,((e,t)=>p({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map((([e,t])=>p({label:e,value:t}))));const m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(d,o);return n({handleEntry:t=>i.createElement(t_,Xk({key:t.label,value:e,renderer:n,copyable:a},r,t)),type:l,subEntries:d,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:o,...r})}function n_(e){return i.createElement("svg",Xk({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const o_=(e,t,n=!1)=>ah.useSyncExternalStore(i.useCallback((t=>n?()=>{}:e.subscribe(qp.batchCalls(t))),[e,n]),t,t),a_=i.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:r,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:m,...f}=d,g=ch({context:r}),y=g.getQueryCache(),[b,v]=gj("reactQueryDevtoolsSortFn",Object.keys(Sw)[0]),[k,j]=gj("reactQueryDevtoolsFilter",""),[w,_]=gj("reactQueryDevtoolsBaseSort",1),E=i.useMemo((()=>Sw[b]),[b]),C=o_(y,(()=>y.getAll().length),!n),[S,R]=gj("reactQueryDevtoolsActiveQueryHash",""),T=i.useMemo((()=>{const e=y.getAll();if(0===C)return[];const t=k?e.filter((e=>lj(e.queryHash,k).passed)):[...e];return E?t.sort(((e,t)=>E(e,t)*w)):t}),[w,E,k,C,y]),[I,x]=i.useState(!1);return i.createElement(vw,{theme:yw},i.createElement(zw,Xk({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:Rw,position:"relative",...h.style}}),i.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+yw.backgroundAlt+" "+yw.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: "+yw.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+yw.gray+";\n border-radius: .5em;\n border: 3px solid "+yw.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:Aw(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+yw.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:yw.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(n_,{"aria-hidden":!0}),i.createElement(Bw,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(i_,{queryCache:y}),l&&u?i.createElement(Uw,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(Mw,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>j(e.target.value),onKeyDown:e=>{"Escape"===e.key&&j("")},style:{flex:"1",width:"100%"}}),i.createElement(Uw,{"aria-label":"Sort queries",value:b,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Sw).map((e=>i.createElement("option",{key:e,value:e},"Sort by ",e)))),i.createElement(Dw,{type:"button",onClick:()=>_((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(Dw,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(Dw,{type:"button",onClick:()=>{I?(Op.setOnline(void 0),x(!1),window.dispatchEvent(new Event("online"))):(Op.setOnline(!1),x(!0))},"aria-label":I?"Restore offline mock":"Mock offline behavior",title:I?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:I?yw.danger:"currentColor",fill:"none"},I?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(Bw,{text:I?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},T.map((e=>i.createElement(s_,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y}))))),S&&n?i.createElement(r_,{activeQueryHash:S,queryCache:y,queryClient:g,errorTypes:p}):null,c?i.createElement(Dw,Xk({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},f,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...f.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),r_=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,r;const s=o_(e,(()=>e.getAll().find((e=>e.queryHash===t)))),u=o_(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=o_(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,l=null!=(r=o_(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?r:0,p=d((()=>{if(s&&null!=u&&u.error){const e=o.find((e=>{var t;return e.initializer(s).toString()===(null==(t=u.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[s,null==u?void 0:u.error,o]);if(!s||!u)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),o=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:o}})};return i.createElement(Pw,null,i.createElement("div",{style:{padding:".5em",background:yw.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(qw,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},_w(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:kw({queryState:u,isStale:c,observerCount:l,theme:yw}),flexShrink:0}},jw(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(qw,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(qw,null,new Date(u.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:yw.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(Dw,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(u_)},disabled:"fetching"===u.fetchStatus,style:{background:yw.active}},"Refetch")," ",i.createElement(Dw,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:yw.warning,color:yw.inputTextColor}},"Invalidate")," ",i.createElement(Dw,{type:"button",onClick:()=>n.resetQueries(s),style:{background:yw.gray}},"Reset")," ",i.createElement(Dw,{type:"button",onClick:()=>n.removeQueries(s),style:{background:yw.danger}},"Remove")," ",i.createElement(Dw,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:yw.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===s.state.status?i.createElement(Dw,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:yw.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(Uw,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));h(t)}},i.createElement("option",{key:"",value:""}),o.map((e=>i.createElement("option",{key:e.name,value:e.name},e.name)))))),i.createElement("div",{style:{background:yw.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(t_,{label:"Data",value:u.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:yw.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(t_,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},i_=({queryCache:e})=>{const t=o_(e,(()=>e.getAll().filter((e=>"fresh"===jw(e))).length)),n=o_(e,(()=>e.getAll().filter((e=>"fetching"===jw(e))).length)),o=o_(e,(()=>e.getAll().filter((e=>"paused"===jw(e))).length)),a=o_(e,(()=>e.getAll().filter((e=>"stale"===jw(e))).length)),r=o_(e,(()=>e.getAll().filter((e=>"inactive"===jw(e))).length));return i.createElement(Lw,null,i.createElement(Nw,{style:{background:yw.success,opacity:t?1:.3}},"fresh ",i.createElement(qw,null,"(",t,")"))," ",i.createElement(Nw,{style:{background:yw.active,opacity:n?1:.3}},"fetching ",i.createElement(qw,null,"(",n,")"))," ",i.createElement(Nw,{style:{background:yw.paused,opacity:o?1:.3}},"paused ",i.createElement(qw,null,"(",o,")"))," ",i.createElement(Nw,{style:{background:yw.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",i.createElement(qw,null,"(",a,")"))," ",i.createElement(Nw,{style:{background:yw.gray,opacity:r?1:.3}},"inactive ",i.createElement(qw,null,"(",r,")")))},s_=i.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,r,s,u;const c=null!=(a=o_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",l=o_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),d=null!=(r=o_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&r,p=null!=(s=o_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&s,h=null!=(u=o_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?u:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+yw.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:kw({queryState:l,isStale:d,observerCount:h,theme:yw}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:yw.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(qw,{style:{padding:".5em"}},""+c)):null}));function u_(){}s_.displayName="QueryRow";const c_="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:r="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,m]=gj("reactQueryDevtoolsOpen",e),[f,g]=gj("reactQueryDevtoolsHeight",Rw),[y,b]=gj("reactQueryDevtoolsWidth",Rw),[v="bottom",k]=gj("reactQueryDevtoolsPanelPosition",c),[j,w]=i.useState(!1),[_,E]=i.useState(!1),C=function(){const e=i.useRef(!1),t=i.useCallback((()=>e.current),[]);return i.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();i.useEffect((()=>{w(null!=h&&h)}),[h,j,w]),i.useEffect((()=>{const e=p.current;if(e){const t=()=>{j&&(e.style.visibility="visible")},n=()=>{j||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[j]),i.useEffect((()=>{var e;if(j&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=Ow("padding",v),n=Iw(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:f)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[j,v,f,y]);const{style:S={},...R}=t,{style:T={},onClick:I,...x}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:r,panelStyle:i}){const s=xw(e),u=Ow("border",s),c=Iw(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[u]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...r?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:c?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:c?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...c?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:Rw}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Rw}}}({position:v,devtoolsTheme:yw,isOpen:j,height:f,width:y,isResizing:_,panelStyle:S});return C()?i.createElement(r,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(vw,{theme:yw},i.createElement(a_,Xk({ref:p,context:s,styleNonce:u,position:v,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:j,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=Iw(v);E(!0);const{height:o,width:a}=e.getBoundingClientRect(),r=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=a+("right"===v?r-e.clientX:e.clientX-r),b(s)):(s=o+("bottom"===v?i-e.clientY:e.clientY-i),g(s)),m(!(s<70))},c=()=>{_&&E(!1),document.removeEventListener("mousemove",u,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",u,!1),document.addEventListener("mouseup",c,!1)})(p.current,e),errorTypes:l}))),j?null:i.createElement("button",Xk({type:"button"},x,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==I||I(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"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...T}}),i.createElement(n_,{"aria-hidden":!0}),i.createElement(Bw,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var l_,d_={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function p_(e){var a=this,r=e.children,i=process.env.ENVIRONMENT,s=d((function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"}),[i]),l=u(!1),h=l[0],m=l[1],f=p((function(e){return n(a,void 0,void 0,(function(){var n,a,r,i,u;return o(this,(function(o){switch(o.label){case 0:return n=localStorage.getItem("headers"),a=n&&JSON.parse(n),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),u=i?JSON.parse(i).value:"",[4,ip.refreshInstance({headers:t(t({},a),{"X-Environment":r||s,"x-organization-code":u,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return o.sent(),[2]}}))}))}),[s]);c((function(){return addEventListener("ACCOUNT_CHANGED",f),function(){window.removeEventListener("ACCOUNT_CHANGED",f)}}),[f]);var g=p((function(e){return n(a,void 0,void 0,(function(){var n,a,r,i,u,c,l;return o(this,(function(o){switch(o.label){case 0:return n=localStorage.getItem("headers"),(a=n&&JSON.parse(n))?(r=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),u=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",c=r?JSON.parse(r).value:"",[4,ip.refreshInstance({headers:t(t({},a),{"X-Environment":e||s,"x-organization-code":c,"x-account-code":u,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:o.sent(),om.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),m(!0),o.label=2;case 2:return[2]}}))}))}),[s,m]);return c((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?g(n):"token"===t.key&&g(e)}})),g(e)}),[m,g]),h?React.createElement(lh,{client:om},r,React.createElement(c_,{initialIsOpen:!1})):React.createElement("div",{style:d_})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(l_||(l_={}));var h_=function(){var e=l(null),t=l(null),n=l(null),o=u(!1),a=o[0],r=o[1],i=u(null),s=i[0],d=i[1],h=u(null),m=h[0],f=h[1],g=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)}),[]),y=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),f(null);try{var o=new WebSocket("".concat(rp["WS_URL_".concat(rp.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=o,o.onopen=function(){r(!0);var e=localStorage.getItem("token");e&&o.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval((function(){o.readyState===WebSocket.OPEN?o.send(JSON.stringify({type:"ping"})):(g(),r(!1))}),3e4)},o.onmessage=function(e){try{var t=JSON.parse(e.data);d(t)}catch(e){f("Failed to parse server response")}},o.onerror=function(e){f("Connection error occurred"),r(!1)},o.onclose=function(e){r(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout((function(){y()}),5e3))}}catch(e){f("Failed to establish connection")}}),[]),b=p((function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))}),[]),v=p((function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))}),[]),k=p((function(){d(null)}),[]),j=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(r(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)}),[]);return c((function(){return y(),function(){g(),j()}}),[]),{subscribe:b,unsubscribe:v,disconnect:j,connect:y,clearChartData:k,isConnected:a,chartData:s,connectionError:m}},m_=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&m_&&function(){n(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:if(!Za())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,Ja.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{fl as AI,ap as Api,l_ as ApiErrorCodes,p_ as ApiProvider,ip as ApiSingleton,ml as Audit,sl as Cms,il as Country,dl as DataReport,bh as DuplicateSetting,Nd as FEEDBACK_ISSUE_OPTIONS,rl as Organization,gl as OrganizationConfig,al as PaymentFiltersSection,xg as PendingDuplicateAccountStatus,hl as ReconciliationAgendaInsight,pl as ReconciliationReportType,ul as ReportType,ol as SendPaymentNotification,ll as SmartRouting,cl as TemplateType,Qy as getQueryKeyGetNameAndIcon,Yy as getQueryKeyRequiredFields,nm as queryCache,om as queryClient,Hy as use3DSExemptions,ug as useAICreateWorkflow,tm as useAddToRiskList,Wv as useAllFeatureFlags,mk as useAllowListDetail,hk as useBlackListDetail,Hv as useCachedFeatureFlag,um as useCancelReport,Bm as useCancelSubscription,Uh as useChangePasswordV2,ff as useChangePaymentsWebhook,lf as useChangeStatusBlackList,df as useChangeStatusItemBlackList,nb as useChangeStylingSettings,kg as useChangeTemplateStatus,Zh as useChargebacksUpload,h_ as useChartAssistantSocket,_k as useChartExecute,bg as useCloneTemplate,hb as useCommunicationDetails,db as useCommunications,Nk as useCommunicationsByDay,qk as useCommunicationsBySubstatus,pb as useCommunicationsFilters,Mk as useCommunicationsSubstatusByDay,Ym as useConfirmedOtpMfa,sm as useCountRowsForReport,hg as useCreateAndExecuteChart,fg as useCreateAndExecuteChartWithTimezone,lg as useCreateChart,mg as useCreateChartWithTimezone,Rg as useCreateInstallmentsPlan,Rm as useCreateMonitorTemplate,Sm as useCreateMonitorThreshold,Xh as useCreateOperationTransaction,Dm as useCreatePaymentLinks,tg as useCreateReconciliationAlert,Zf as useCreateReconciliationReportTemplate,am as useCreateReconciliationsReportV2,rm as useCreateReconciliationsReportV3,cm as useCreateReportTemplate,im as useCreateReportV2,Om as useCreateRoles,rg as useCreateSamlConfig,wg as useCreateSchedule,If as useCreateScheduledReport,qm as useCreateSubscription,yg as useCreateTemplate,Gh as useCreateUserAuth0,pm as useCreateWorkflow,Th as useDeleteAccountsUserMassive,bf as useDeleteAllowlistItem,hf as useDeleteBlackListType,gf as useDeleteBlockListItem,dg as useDeleteChart,Bf as useDeleteCustomizedApiKeys,Ig as useDeleteInstallmentsPlan,Lm as useDeletePaymentLink,ng as useDeleteReconciliationAlert,dm as useDeleteReportTemplate,zm as useDeleteRoles,sg as useDeleteSamlConfig,Eg as useDeleteSchedule,Of as useDeleteScheduledReport,jg as useDeleteTemplate,Im as useDeleteUserTeamV2,fm as useDeleteVersion,kh as useDeleteWebhookV2,_g as useDisableSchedule,_h as useDuplicateAccount,gm as useDuplicateVersion,Nm as useEditPaymentLinks,Am as useEditRoles,ib as useEmailVerification,Rf as useExcludeUsers,Qf as useExportApiLogs,Yf as useExportDashboardLogs,Xf as useExportMonitorsLogs,Jf as useExportWebhooksLogs,Fv as useFeatureFlags,zb as useFetchUserExportDetail,uk as useFirebaseUserSubscribe,cg as useGenerateFeedback,vy as useGetAccounts,jy as useGetAccountsByUser,wy as useGetAccountsForImpersonation,ky as useGetAccountsV2,bk as useGetAllConfigRules,uy as useGetAllOrganizations,vv as useGetAllReconciliationsAdvancements,gv as useGetAllReconciliationsAgenda,fv as useGetAllReconciliationsAlerts,kv as useGetAllReconciliationsFees,bv as useGetAllReconciliationsSales,dv as useGetAllTableColumns,ny as useGetAllowedIps,Jv as useGetApiLogsByTransactionCode,Qv as useGetApiLogsDetailByPaymentCode,Gv as useGetAuditEvents,Xv as useGetAuditExportDownload,Yv as useGetAuditExportsList,Iy as useGetAuditLogsFilters,Vv as useGetAuditMonitorEventDetail,_f as useGetBatchRefundProcessedFileDownload,Ef as useGetBatchRefundUserFileDownload,gk as useGetBatchRefunds,lk as useGetBlackList,pk as useGetBlockListSummary,qg as useGetCardBrands,Rk as useGetChartFeedback,Ek as useGetChartsByUser,Ck as useGetChartsByUserWithResults,$y as useGetCheckouts,Af as useGetConditionalConfigRules,ck as useGetConfigAllowlist,my as useGetConnections,py as useGetConnectionsByPaymentMethod,ok as useGetCountriesConfigPaymentLink,ak as useGetCountriesConfigPaymentLinkV2,Zy as useGetCountryData,ey as useGetCredentials,Hf as useGetCredentialsMFA,ay as useGetCustomizedApiKeys,oy as useGetCustomizedApiKeysAccounts,ty as useGetCustomizedApiKeysMembers,ry as useGetCustomizedApiKeysProducts,qf as useGetCustomizedApiKeysToken,xy as useGetDashboardStaticContents,fy as useGetDialogs,wb as useGetDownloadReport,Jm as useGetEmailOtp,hy as useGetHashPylon,cb as useGetImpersonationEnabled,ub as useGetImpersonationUsers,Gb as useGetInsightsReport,Vb as useGetInsightsReportAgain,Yk as useGetInstallmentsPlans,dy as useGetIntegrationByAccountV2,ly as useGetIntegrationParams,Tk as useGetLanguages,Oy as useGetLocales,sb as useGetLoginMethods,kk as useGetMFAConfig,vk as useGetMFAExcludedUsers,jk as useGetMFAStatus,Ey as useGetMenu,gb as useGetMergedNotifications,Jy as useGetNameAndIcon,xk as useGetNetworkTokensOnboardingByOrganization,mb as useGetNotificationsCustomer,yb as useGetNotificationsNumberMutation,Qk as useGetOnboardingDetail,Jk as useGetOnboardingTimeline,sy as useGetOrganization,Vk as useGetOrganizationConfigs,Mg as useGetPaymentFilters,nk as useGetPaymentLinkByCode,tk as useGetPaymentLinks,Ng as useGetPaymentMethodsAndProviders,Ug as useGetPaymentMetricsFilters,Cy as useGetPaymentStatusesStyles,Bg as useGetPaymentTransactionsDetails,zg as useGetPaymentV2,Lg as useGetPaymentsMethodsByCountry,Gg as useGetPayoutDetail,Kg as useGetPayoutHistoryDetail,Zg as useGetPayoutTimeline,Vg as useGetPayoutTransactionDetail,_y as useGetPendingDuplicateAccounts,rb as useGetPermissions,xb as useGetPermissionsCatalog,ob as useGetProfile,$g as useGetProofOfCancel,Qg as useGetProofOfPayment,cy as useGetProviderParams,$k as useGetRecipientById,Kk as useGetRecipients,pv as useGetReconciliationActive,yv as useGetReconciliationAgendaInsightsByKey,lv as useGetReconciliationFilters,Sv as useGetReconciliationInsightsAmountConflictAggregators,Rv as useGetReconciliationInsightsAmountConflictList,Bv as useGetReconciliationInsightsAmountToBeSettledSummary,Iv as useGetReconciliationInsightsConflictDateAggregators,xv as useGetReconciliationInsightsConflictDateList,Tv as useGetReconciliationInsightsConflictDateSummary,jv as useGetReconciliationInsightsConflictsSummary,Pv as useGetReconciliationInsightsFeesChargedSummary,Av as useGetReconciliationInsightsIncorrectFeesAggregators,zv as useGetReconciliationInsightsIncorrectFeesList,Ov as useGetReconciliationInsightsIncorrectFeesSummary,Mv as useGetReconciliationInsightsNotConfirmAggregators,Uv as useGetReconciliationInsightsNotConfirmList,qv as useGetReconciliationInsightsNotConfirmSummary,wv as useGetReconciliationInsightsNotReconciledAggregators,_v as useGetReconciliationInsightsNotReconciledList,Lv as useGetReconciliationInsightsReconciledAggregators,Nv as useGetReconciliationInsightsReconciledList,Dv as useGetReconciliationInsightsReconciledSummary,Ev as useGetReconciliationInsightsStatusConflictAggregators,Cv as useGetReconciliationInsightsStatusConflictList,cv as useGetReconciliationMetrics,Ry as useGetReconciliationTransactionStatusesStyles,sv as useGetReconciliationTransactions,hv as useGetReconciliationsReportColumns,mv as useGetReconciliationsReportTemplates,Cb as useGetRefundPdf,Eb as useGetReportColumns,_b as useGetReportTemplates,kb as useGetReportsList,jb as useGetReportsListMultiEnv,Xy as useGetRequiredFields,Tb as useGetRoles,Ib as useGetRolesPermissions,Ky as useGetRoutingMonitorsTemplate,Vy as useGetRoutingMonitorsTemplates,zf as useGetRule,wk as useGetSamlConfig,Tf as useGetScheduledReportsList,uv as useGetSettlements,Dy as useGetSmartRoutingConditionPaymentMethod,Py as useGetSmartRoutingConditionTypes,Ly as useGetSmartRoutingConditionTypesValues,Pb as useGetSmartRoutingDataReport,My as useGetSmartRoutingDeclineGroups,Ay as useGetSmartRoutingMethods,qy as useGetSmartRoutingNextRoute,Uy as useGetSmartRoutingPaymentRoute,Fy as useGetSmartRoutingSearchConditionValues,By as useGetSmartRoutingSimulateConditionTypeValues,zy as useGetSmartRoutingWorkflow,Ny as useGetSmartRoutingWorkflowVersion,eb as useGetStylingSdkDynamic,tb as useGetStylingSettingsV2,ik as useGetSubscriptionByCode,sk as useGetSubscriptionPayments,Sb as useGetTeamsFiltersMembers,Ty as useGetTimeZoneCatalog,rk as useGetTimezonePaymentLink,Qm as useGetTokenValidation,Pg as useGetTransactionDetailsV2,Fg as useGetTransactionHistoryByPaymentCode,Dg as useGetTransactionRawResponse,Sy as useGetTransactionStatusesStyles,Ik as useGetTranslations,Zv as useGetUnifiedExportStatus,ek as useGetUnifiedExportsList,Ob as useGetUserExportStatus,ab as useGetUserFull,lb as useGetUsersToImpersonate,fb as useGetValidateOpsgenieKey,gy as useGetWebhookParamsV2,by as useGetWebhooksV2Detail,yy as useGetWebhooksV3,Jb as useInsights3dsConversionRateAndEvolution,Yb as useInsights3dsDeclineReasons,Xb as useInsights3dsFrictionlessVsChallenge,Qb as useInsights3dsVolumeAndCountTx,iv as useInsightsChargebacksByCardBrand,ov as useInsightsChargebacksByProviderAndCardBrand,nv as useInsightsChargebacksDisputed,av as useInsightsChargebacksReasonsDistribution,rv as useInsightsChargebacksStatusDistribution,ev as useInsightsChargebacksTotalRateAndEvolution,Zb as useInsightsChargebacksVolumeAndCountTx,tv as useInsightsChargebacksWinRate,Db as useInsightsConversionRateMetricsV2,Bb as useInsightsCustomerPaymentsAndFraudMetrics,Nb as useInsightsFallbackMetrics,$b as useInsightsFraudScreeningConversionRate,Kb as useInsightsFraudScreeningVolumeAndCountTx,Hb as useInsightsHomeMetrics,Fb as useInsightsOverviewMetrics,Wb as useInsightsOverviewMetricsV3,Ub as useInsightsTotalPaymentsAndFraudMetrics,qb as useInsightsVolumeMetrics,Mb as useInsightsVolumeMetricsV2,Fh as useInviteUsersMultiaccountMassive,Wh as useInviteUsersMultiaccountMassiveV2,Hm as useListSubscriptions,Ab as useListUserExports,Kh as useLoginMethods,Gy as useNetworkTokensOnboarding,zh as useNewPostConnectionValidate,Ch as usePatchAccountV2,rf as usePatchAddAllowlistItems,iy as usePatchAllowedIps,sf as usePatchAllowlist,Sk as usePatchAndExecuteChart,Ff as usePatchApiKeysEditNote,of as usePatchChangeStatusAllowlist,af as usePatchChangeStatusAllowlistItem,pg as usePatchChartName,Ph as usePatchConnection,Nf as usePathCreateCustomizedApiKeys,bb as usePathNotifications,Mm as usePauseSubscription,Xg as usePayoutsFilters,Yg as usePayoutsList,wh as usePostAccount,fk as usePostAllowlistMultiAccount,Wf as usePostApiKeysRoll,Kv as usePostApiLogs,Vf as usePostAuditMonitors,wf as usePostBatchRefundByFile,mf as usePostBlackListBatch,pf as usePostBlackListItems,uf as usePostBlackListMultiAccount,dk as usePostBlockList,Vh as usePostCall,xh as usePostChangeStatusConnection,Ah as usePostConnectionMultiAccount,nf as usePostCreateAllowlistMultiAccount,Lf as usePostCreateCustomizedApiKeys,ag as usePostCreateInsightsReport,Pf as usePostCreateRuleMultiAccount,Mf as usePostCredentialsValidatePassword,Uf as usePostCredentialsValidatePasswordRegularUser,Gf as usePostCredentialsWithOtpMfa,Dh as usePostDefaultRoutes,Df as usePostEditRule,Hg as usePostFraudTransactions,ef as usePostGetAllowlistItems,tf as usePostGetAllowlistMultiAccount,Rb as usePostMembersPaginatedV2,Nh as usePostNetworkTokensOnboarding,Cg as usePostOrganizationConfigs,Ag as usePostPaymentsEvaluated,Og as usePostPaymentsLazy,Tm as usePostSlackMessageChannel,Wg as usePostTransactions,Gm as usePostUserSettings,$m as usePostUserSettingsPinned,Km as usePostUserSettingsTables,Vm as usePostUserThemeSettings,Ih as usePostValideStatusConnection,yk as usePostVelocityRules,$v as usePostWebhookLogs,vh as usePostWebhookMultiAccount,Wy as useProviderConversionRatesData,em as useProviderRawResponse,hm as usePublishVersion,Sh as usePutAccountPrincipal,Rh as usePutAccountsUserMassive,cf as usePutBlackListType,Oh as usePutCosts,Sg as usePutOrganizationConfigsByAccount,Bk as useRecoveredPaymentsByDay,Uk as useRecoveredTPVByDay,Wm as useRescheduleSubscription,Kf as useResendWebhooks,Um as useResumeSubscription,Eh as useRetryDuplicateAccount,mm as useSaveVersion,Gk as useSearchScheduleById,Hk as useSearchSchedules,Wk as useSearchTemplateById,Fk as useSearchTemplates,Jg as useSendPaymentNotification,xm as useSetCustodian,vm as useSmartRoutingCreateDeclinedGroup,jm as useSmartRoutingEditWorkflowName,Cm as useSmartRoutingMultiAccountDeclinedGroupCreate,Em as useSmartRoutingRemoveDeclinedGroup,wm as useSmartRoutingSimulateTransaction,km as useSmartRoutingToggleFavorite,bm as useSmartRoutingUpdateDeclinedGroup,_m as useSmartRoutingUpdateMonitorRedistribution,Pm as useStartUserExport,gg as useSubmitChartFeedback,ym as useToggleMethod,Hh as useUnInviteUsersV2,$f as useUnifiedExportStart,Xm as useUnrollUserV2,Tg as useUpdateInstallmentsPlan,Yh as useUpdateIsActiveCheckout,Sf as useUpdateMFAConfig,qh as useUpdateOrganizationStatus,Bh as useUpdateProfile,og as useUpdateReconciliationAlert,eg as useUpdateReconciliationReportTemplate,lm as useUpdateReportTemplate,ig as useUpdateSamlConfig,xf as useUpdateScheduledReport,Fm as useUpdateSubscription,vg as useUpdateTemplateSelection,jh as useUpdateWebhookV2,kf as useUploadBatchRefundsFileV2,jf as useUploadBatchRefundsV2,Cf as useUploadFileS3ClientBatchRefunds,vf as useValiateAllowlistItems,yf as useValidateBlockListItems,Lh as useValidateCredentials,Mh as useValidateOrgName,Zm as useValidatePasswordStatus,Lb as useViewMoreMetrics};
233
+ const oj=7,aj=6,rj=5,ij=4,sj=3,uj=2,cj=1,lj=0;function dj(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:cj,!n.accessors){const o=pj(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],r=gj(a),i=mj(e,a);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:r})}return n}(e,n.accessors),r={rankedValue:e,rank:lj,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let i=pj(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=cj?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>r.rank&&(r.rank=i,r.passed=!0,r.accessorIndex=e,r.accessorThreshold=c,r.rankedValue=o.itemValue)}return r}function pj(e,t,n){return e=hj(e,n),(t=hj(t,n)).length>e.length?lj:e===t?oj:(e=e.toLowerCase())===(t=t.toLowerCase())?aj:e.startsWith(t)?rj:e.includes(` ${t}`)?ij:e.includes(t)?sj:1===t.length?lj:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?uj:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,r=t.length;a<r;a++){if(t[a]===e)return n+=1,a+1}return-1}function r(e){const o=1/e,a=n/t.length;return cj+a*o}const i=a(t[0],e,0);if(i<0)return lj;o=i;for(let n=1,r=t.length;n<r;n++){o=a(t[n],e,o);if(!(o>-1))return lj}const s=o-i;return r(s)}(e,t)}function hj(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(nj,(e=>ej[e]))),e}function mj(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const fj={maxRanking:1/0,minRanking:-1/0};function gj(e){return"function"==typeof e?fj:{...fj,...e}}function yj(e,t){const[n,o]=i.useState();i.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,i.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var bj,vj=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}(),kj=function(){function e(e){this.generateIdentifier=e,this.kv=new vj}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}(),jj=(bj=function(e,t){return bj=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])},bj(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}bj(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),wj=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return jj(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}(kj),_j=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function Ej(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 o=n,a=0;a<o.length;a++){var r=o[a];if(t(r))return r}}function Cj(e,t){Object.entries(e).forEach((function(e){var n=_j(e,2),o=n[0],a=n[1];return t(a,o)}))}function Sj(e,t){return-1!==e.indexOf(t)}function Rj(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var Tj=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Ej(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),Ij=function(e){return void 0===e},xj=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},Oj=function(e){return xj(e)&&0===Object.keys(e).length},Aj=function(e){return Array.isArray(e)},zj=function(e){return e instanceof Map},Pj=function(e){return e instanceof Set},Dj=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Lj=function(e){return"number"==typeof e&&isNaN(e)},Nj=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||Ij(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Dj(e)},qj=function(e){return e.replace(/\./g,"\\.")},Mj=function(e){return e.map(String).map(qj).join(".")},Uj=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var r=n;return t.push(r),t},Bj=function(){return Bj=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Bj.apply(this,arguments)},Fj=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Wj=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Hj(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Gj=[Hj(Ij,"undefined",(function(){return null}),(function(){})),Hj((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)})),Hj((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),Hj((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})),Hj((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)})),Hj(Pj,"set",(function(e){return Wj([],Fj(e.values()))}),(function(e){return new Set(e)})),Hj(zj,"map",(function(e){return Wj([],Fj(e.entries()))}),(function(e){return new Map(e)})),Hj((function(e){return Lj(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return Lj(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),Hj((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),Hj((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function Vj(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Kj=Vj((function(e,t){return!!Dj(e)&&!!t.symbolRegistry.getIdentifier(e)}),(function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]}),(function(e){return e.description}),(function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o})),$j=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Qj=Vj((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return Wj([],Fj(e))}),(function(e,t){var n=$j[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Jj(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Yj=Vj(Jj,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Bj({},e);var o={};return n.forEach((function(t){o[t]=e[t]})),o}),(function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)})),Xj=Vj((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 o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)})),Zj=[Yj,Kj,Xj,Qj],ew=function(e,t){var n=Rj(Zj,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=Rj(Gj,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},tw={};Gj.forEach((function(e){tw[e.annotation]=e}));var nw=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function ow(e){if(Sj(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Sj(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Sj(e,"constructor"))throw new Error("constructor is not allowed as a property")}var aw=function(e,t,n){if(ow(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var r=t[a];if(Aj(o))o=o[+r];else if(xj(o))o=o[r];else if(Pj(o)){o=nw(o,i=+r)}else if(zj(o)){if(a===t.length-2)break;var i=+r,s=0==+t[++a]?"key":"value",u=nw(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(Aj(o)?o[+c]=n(o[+c]):xj(o)&&(o[c]=n(o[c])),Pj(o)){var l=nw(o,+c),d=n(l);l!==d&&(o.delete(l),o.add(d))}if(zj(o)){i=+t[t.length-2];var p=nw(o,i);switch(s=0==+c?"key":"value"){case"key":var h=n(p);o.set(h,o.get(p)),h!==p&&o.delete(p);break;case"value":o.set(p,n(o.get(p)))}}return e},rw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},iw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function sw(e,t,n){if(void 0===n&&(n=[]),e)if(Aj(e)){var o=rw(e,2),a=o[0],r=o[1];r&&Cj(r,(function(e,o){sw(e,t,iw(iw([],rw(n)),rw(Uj(o))))})),t(a,n)}else Cj(e,(function(e,o){return sw(e,t,iw(iw([],rw(n)),rw(Uj(o))))}))}function uw(e,t,n){return sw(t,(function(t,o){e=aw(e,o,(function(e){return function(e,t,n){if(!Aj(t)){var o=tw[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return Kj.untransform(e,t,n);case"class":return Yj.untransform(e,t,n);case"custom":return Xj.untransform(e,t,n);case"typed-array":return Qj.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function cw(e,t){function n(t,n){var o=function(e,t){ow(t);for(var n=0;n<t.length;n++){var o=t[n];if(Pj(e))e=nw(e,+o);else if(zj(e)){var a=+o,r=0==+t[++n]?"key":"value",i=nw(e,a);switch(r){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,Uj(n));t.map(Uj).forEach((function(t){e=aw(e,t,(function(){return o}))}))}if(Aj(t)){var o=rw(t,2),a=o[0],r=o[1];a.forEach((function(t){e=aw(e,Uj(t),(function(){return e}))})),r&&Cj(r,n)}else Cj(t,n);return e}var lw=function(e,t,n,o,a,r,i){var s;void 0===a&&(a=[]),void 0===r&&(r=[]),void 0===i&&(i=new Map);var u=Nj(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return xj(e)||Aj(e)||zj(e)||Pj(e)||Jj(e,t)}(e,n)){var l=ew(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,d),d}if(Sj(r,e))return{transformedValue:null};var p=ew(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,m=Aj(h)?[]:{},f={};Cj(h,(function(s,u){var c=lw(s,t,n,o,iw(iw([],rw(a)),[u]),iw(iw([],rw(r)),[e]),i);m[u]=c.transformedValue,Aj(c.annotations)?f[u]=c.annotations:xj(c.annotations)&&Cj(c.annotations,(function(e,t){f[qj(u)+"."+t]=e}))}));var g=Oj(f)?{transformedValue:m,annotations:p?[p.type]:void 0}:{transformedValue:m,annotations:p?[p.type,f]:f};return u||i.set(e,g),g};function dw(e){return Object.prototype.toString.call(e).slice(8,-1)}function pw(e){return"Array"===dw(e)}function hw(e,t={}){if(pw(e))return e.map((e=>hw(e,t)));if(!function(e){if("Object"!==dw(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,o)=>{if(pw(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const r={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=n),a&&"nonenumerable"===r&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,hw(e[o],t),e,t.nonenumerable),n}),{})}var mw=function(){return mw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},mw.apply(this,arguments)},fw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},gw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},yw=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new wj,this.symbolRegistry=new kj((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new Tj,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=lw(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=mw(mw({},o.meta),{values:n.annotations}));var a,r,i,s,u=(a=t,r=this.dedupe,i={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){r||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=rw(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(Mj):i[Mj(n)]=o.map(Mj)}})),s?Oj(i)?[s]:[s,i]:Oj(i)?void 0:i);return u&&(o.meta=mw(mw({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=hw(t);return(null==n?void 0:n.values)&&(o=uw(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=cw(o,n.referentialEqualities)),o},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(mw({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,gw([],fw(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 bw={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},vw=i.createContext(bw);function kw({theme:e,...t}){return i.createElement(vw.Provider,Zk({value:e},t))}function jw({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function ww(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function _w(e,t,n={}){return i.forwardRef((({style:o,...a},r)=>{const s=i.useContext(vw),u=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=i.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return i.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,s):n}:e),{});return i.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...o,...u},ref:r})}))}const Ew=(e,t=!1)=>{const{json:n}=yw.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Cw=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Sw=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Rw={"Status > Last Updated":(e,t)=>Cw(e)===Cw(t)?Sw(e,t):Cw(e)>Cw(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Sw},Tw=500,Iw={top:"bottom",bottom:"top",left:"right",right:"left"};function xw(e){return["left","right"].includes(e)}function Ow(e){return Iw[e]}function Aw(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function zw(e="bottom"){const t=xw(e),n=Ow(e),o=Aw("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const Pw=_w("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"}}),Dw=_w("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),Lw=_w("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"}))),Nw=_w("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),qw=_w("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Mw=_w("code",{fontSize:".9em",color:"inherit",background:"inherit"}),Uw=_w("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),Bw=_w("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 Fw({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Ww=_w("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Hw=_w("span",{color:"white"}),Gw=_w("button",{cursor:"pointer",color:"white"}),Vw=_w("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),Kw=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(yw.stringify(e)).then((()=>{n("SuccessCopy"),setTimeout((()=>{n("NoCopy")}),1500)}),(e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout((()=>{n("NoCopy")}),1500)}))}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(Xw,null):"SuccessCopy"===t?i.createElement(e_,null):i.createElement(Zw,null))},$w=_w("span",((e,t)=>({color:t.danger}))),Qw=_w("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Jw=_w("span",{color:"grey",fontSize:".7em"}),Yw=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Xw=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),Zw=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),e_=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const t_=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:r,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(Ww,{key:t},a.length?i.createElement(i.Fragment,null,i.createElement(Vw,{onClick:()=>c()},i.createElement(Yw,{expanded:s})," ",t," ",i.createElement(Jw,null,"iterable"===String(r).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),u?i.createElement(Kw,{value:n}):null,s?1===a.length?i.createElement(Qw,null,o.map(e)):i.createElement(Qw,null,a.map(((t,n)=>i.createElement("div",{key:n},i.createElement(Ww,null,i.createElement(Gw,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},i.createElement(Yw,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(Qw,null,t.map(e)):null))))):null):i.createElement(i.Fragment,null,i.createElement(Hw,null,t,":")," ",i.createElement($w,null,Ew(n))))};function n_({value:e,defaultExpanded:t,renderer:n=t_,pageSize:o=100,copyable:a=!1,...r}){const[s,u]=i.useState(Boolean(t)),c=i.useCallback((()=>u((e=>!e))),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map(((e,t)=>p({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,((e,t)=>p({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map((([e,t])=>p({label:e,value:t}))));const m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(d,o);return n({handleEntry:t=>i.createElement(n_,Zk({key:t.label,value:e,renderer:n,copyable:a},r,t)),type:l,subEntries:d,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:o,...r})}function o_(e){return i.createElement("svg",Zk({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const a_=(e,t,n=!1)=>ah.useSyncExternalStore(i.useCallback((t=>n?()=>{}:e.subscribe(qp.batchCalls(t))),[e,n]),t,t),r_=i.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:r,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:m,...f}=d,g=ch({context:r}),y=g.getQueryCache(),[b,v]=yj("reactQueryDevtoolsSortFn",Object.keys(Rw)[0]),[k,j]=yj("reactQueryDevtoolsFilter",""),[w,_]=yj("reactQueryDevtoolsBaseSort",1),E=i.useMemo((()=>Rw[b]),[b]),C=a_(y,(()=>y.getAll().length),!n),[S,R]=yj("reactQueryDevtoolsActiveQueryHash",""),T=i.useMemo((()=>{const e=y.getAll();if(0===C)return[];const t=k?e.filter((e=>dj(e.queryHash,k).passed)):[...e];return E?t.sort(((e,t)=>E(e,t)*w)):t}),[w,E,k,C,y]),[I,x]=i.useState(!1);return i.createElement(kw,{theme:bw},i.createElement(Pw,Zk({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:Tw,position:"relative",...h.style}}),i.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+bw.backgroundAlt+" "+bw.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: "+bw.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+bw.gray+";\n border-radius: .5em;\n border: 3px solid "+bw.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:zw(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+bw.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:bw.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(o_,{"aria-hidden":!0}),i.createElement(Fw,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(s_,{queryCache:y}),l&&u?i.createElement(Bw,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(Uw,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>j(e.target.value),onKeyDown:e=>{"Escape"===e.key&&j("")},style:{flex:"1",width:"100%"}}),i.createElement(Bw,{"aria-label":"Sort queries",value:b,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Rw).map((e=>i.createElement("option",{key:e,value:e},"Sort by ",e)))),i.createElement(Lw,{type:"button",onClick:()=>_((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(Lw,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(Lw,{type:"button",onClick:()=>{I?(Op.setOnline(void 0),x(!1),window.dispatchEvent(new Event("online"))):(Op.setOnline(!1),x(!0))},"aria-label":I?"Restore offline mock":"Mock offline behavior",title:I?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:I?bw.danger:"currentColor",fill:"none"},I?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(Fw,{text:I?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},T.map((e=>i.createElement(u_,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y}))))),S&&n?i.createElement(i_,{activeQueryHash:S,queryCache:y,queryClient:g,errorTypes:p}):null,c?i.createElement(Lw,Zk({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},f,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...f.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),i_=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,r;const s=a_(e,(()=>e.getAll().find((e=>e.queryHash===t)))),u=a_(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=a_(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,l=null!=(r=a_(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?r:0,p=d((()=>{if(s&&null!=u&&u.error){const e=o.find((e=>{var t;return e.initializer(s).toString()===(null==(t=u.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[s,null==u?void 0:u.error,o]);if(!s||!u)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),o=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:o}})};return i.createElement(Dw,null,i.createElement("div",{style:{padding:".5em",background:bw.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(Mw,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Ew(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:jw({queryState:u,isStale:c,observerCount:l,theme:bw}),flexShrink:0}},ww(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(Mw,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(Mw,null,new Date(u.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:bw.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(Lw,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(c_)},disabled:"fetching"===u.fetchStatus,style:{background:bw.active}},"Refetch")," ",i.createElement(Lw,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:bw.warning,color:bw.inputTextColor}},"Invalidate")," ",i.createElement(Lw,{type:"button",onClick:()=>n.resetQueries(s),style:{background:bw.gray}},"Reset")," ",i.createElement(Lw,{type:"button",onClick:()=>n.removeQueries(s),style:{background:bw.danger}},"Remove")," ",i.createElement(Lw,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:bw.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===s.state.status?i.createElement(Lw,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:bw.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(Bw,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));h(t)}},i.createElement("option",{key:"",value:""}),o.map((e=>i.createElement("option",{key:e.name,value:e.name},e.name)))))),i.createElement("div",{style:{background:bw.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(n_,{label:"Data",value:u.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:bw.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(n_,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},s_=({queryCache:e})=>{const t=a_(e,(()=>e.getAll().filter((e=>"fresh"===ww(e))).length)),n=a_(e,(()=>e.getAll().filter((e=>"fetching"===ww(e))).length)),o=a_(e,(()=>e.getAll().filter((e=>"paused"===ww(e))).length)),a=a_(e,(()=>e.getAll().filter((e=>"stale"===ww(e))).length)),r=a_(e,(()=>e.getAll().filter((e=>"inactive"===ww(e))).length));return i.createElement(Nw,null,i.createElement(qw,{style:{background:bw.success,opacity:t?1:.3}},"fresh ",i.createElement(Mw,null,"(",t,")"))," ",i.createElement(qw,{style:{background:bw.active,opacity:n?1:.3}},"fetching ",i.createElement(Mw,null,"(",n,")"))," ",i.createElement(qw,{style:{background:bw.paused,opacity:o?1:.3}},"paused ",i.createElement(Mw,null,"(",o,")"))," ",i.createElement(qw,{style:{background:bw.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",i.createElement(Mw,null,"(",a,")"))," ",i.createElement(qw,{style:{background:bw.gray,opacity:r?1:.3}},"inactive ",i.createElement(Mw,null,"(",r,")")))},u_=i.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,r,s,u;const c=null!=(a=a_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",l=a_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),d=null!=(r=a_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&r,p=null!=(s=a_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&s,h=null!=(u=a_(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?u:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+bw.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:jw({queryState:l,isStale:d,observerCount:h,theme:bw}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:bw.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(Mw,{style:{padding:".5em"}},""+c)):null}));function c_(){}u_.displayName="QueryRow";const l_="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:r="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,m]=yj("reactQueryDevtoolsOpen",e),[f,g]=yj("reactQueryDevtoolsHeight",Tw),[y,b]=yj("reactQueryDevtoolsWidth",Tw),[v="bottom",k]=yj("reactQueryDevtoolsPanelPosition",c),[j,w]=i.useState(!1),[_,E]=i.useState(!1),C=function(){const e=i.useRef(!1),t=i.useCallback((()=>e.current),[]);return i.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();i.useEffect((()=>{w(null!=h&&h)}),[h,j,w]),i.useEffect((()=>{const e=p.current;if(e){const t=()=>{j&&(e.style.visibility="visible")},n=()=>{j||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[j]),i.useEffect((()=>{var e;if(j&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=Aw("padding",v),n=xw(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:f)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[j,v,f,y]);const{style:S={},...R}=t,{style:T={},onClick:I,...x}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:r,panelStyle:i}){const s=Ow(e),u=Aw("border",s),c=xw(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[u]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...r?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:c?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:c?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...c?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:Tw}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Tw}}}({position:v,devtoolsTheme:bw,isOpen:j,height:f,width:y,isResizing:_,panelStyle:S});return C()?i.createElement(r,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(kw,{theme:bw},i.createElement(r_,Zk({ref:p,context:s,styleNonce:u,position:v,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:j,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=xw(v);E(!0);const{height:o,width:a}=e.getBoundingClientRect(),r=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=a+("right"===v?r-e.clientX:e.clientX-r),b(s)):(s=o+("bottom"===v?i-e.clientY:e.clientY-i),g(s)),m(!(s<70))},c=()=>{_&&E(!1),document.removeEventListener("mousemove",u,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",u,!1),document.addEventListener("mouseup",c,!1)})(p.current,e),errorTypes:l}))),j?null:i.createElement("button",Zk({type:"button"},x,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==I||I(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"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...T}}),i.createElement(o_,{"aria-hidden":!0}),i.createElement(Fw,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var d_,p_={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function h_(e){var a=this,r=e.children,i=process.env.ENVIRONMENT,s=d((function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"}),[i]),l=u(!1),h=l[0],m=l[1],f=p((function(e){return n(a,void 0,void 0,(function(){var n,a,r,i,u;return o(this,(function(o){switch(o.label){case 0:return n=localStorage.getItem("headers"),a=n&&JSON.parse(n),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),u=i?JSON.parse(i).value:"",[4,ip.refreshInstance({headers:t(t({},a),{"X-Environment":r||s,"x-organization-code":u,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return o.sent(),[2]}}))}))}),[s]);c((function(){return addEventListener("ACCOUNT_CHANGED",f),function(){window.removeEventListener("ACCOUNT_CHANGED",f)}}),[f]);var g=p((function(e){return n(a,void 0,void 0,(function(){var n,a,r,i,u,c,l;return o(this,(function(o){switch(o.label){case 0:return n=localStorage.getItem("headers"),(a=n&&JSON.parse(n))?(r=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),u=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",c=r?JSON.parse(r).value:"",[4,ip.refreshInstance({headers:t(t({},a),{"X-Environment":e||s,"x-organization-code":c,"x-account-code":u,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:o.sent(),am.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),m(!0),o.label=2;case 2:return[2]}}))}))}),[s,m]);return c((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?g(n):"token"===t.key&&g(e)}})),g(e)}),[m,g]),h?React.createElement(lh,{client:am},r,React.createElement(l_,{initialIsOpen:!1})):React.createElement("div",{style:p_})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(d_||(d_={}));var m_=function(){var e=l(null),t=l(null),n=l(null),o=u(!1),a=o[0],r=o[1],i=u(null),s=i[0],d=i[1],h=u(null),m=h[0],f=h[1],g=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)}),[]),y=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),f(null);try{var o=new WebSocket("".concat(rp["WS_URL_".concat(rp.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=o,o.onopen=function(){r(!0);var e=localStorage.getItem("token");e&&o.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval((function(){o.readyState===WebSocket.OPEN?o.send(JSON.stringify({type:"ping"})):(g(),r(!1))}),3e4)},o.onmessage=function(e){try{var t=JSON.parse(e.data);d(t)}catch(e){f("Failed to parse server response")}},o.onerror=function(e){f("Connection error occurred"),r(!1)},o.onclose=function(e){r(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout((function(){y()}),5e3))}}catch(e){f("Failed to establish connection")}}),[]),b=p((function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))}),[]),v=p((function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))}),[]),k=p((function(){d(null)}),[]),j=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(r(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)}),[]);return c((function(){return y(),function(){g(),j()}}),[]),{subscribe:b,unsubscribe:v,disconnect:j,connect:y,clearChartData:k,isConnected:a,chartData:s,connectionError:m}},f_=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&f_&&function(){n(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:if(!Za())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,Ja.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{fl as AI,ap as Api,d_ as ApiErrorCodes,h_ as ApiProvider,ip as ApiSingleton,ml as Audit,sl as Cms,il as Country,dl as DataReport,bh as DuplicateSetting,Nd as FEEDBACK_ISSUE_OPTIONS,rl as Organization,gl as OrganizationConfig,al as PaymentFiltersSection,Og as PendingDuplicateAccountStatus,hl as ReconciliationAgendaInsight,pl as ReconciliationReportType,ul as ReportType,ol as SendPaymentNotification,ll as SmartRouting,cl as TemplateType,Jy as getQueryKeyGetNameAndIcon,Xy as getQueryKeyRequiredFields,om as queryCache,am as queryClient,Gy as use3DSExemptions,cg as useAICreateWorkflow,Yh as useAccountCode,nm as useAddToRiskList,Hv as useAllFeatureFlags,fk as useAllowListDetail,mk as useBlackListDetail,Gv as useCachedFeatureFlag,cm as useCancelReport,Fm as useCancelSubscription,Uh as useChangePasswordV2,gf as useChangePaymentsWebhook,df as useChangeStatusBlackList,pf as useChangeStatusItemBlackList,ob as useChangeStylingSettings,jg as useChangeTemplateStatus,em as useChargebacksUpload,m_ as useChartAssistantSocket,Ek as useChartExecute,vg as useCloneTemplate,mb as useCommunicationDetails,pb as useCommunications,qk as useCommunicationsByDay,Mk as useCommunicationsBySubstatus,hb as useCommunicationsFilters,Uk as useCommunicationsSubstatusByDay,Xm as useConfirmedOtpMfa,um as useCountRowsForReport,mg as useCreateAndExecuteChart,gg as useCreateAndExecuteChartWithTimezone,dg as useCreateChart,fg as useCreateChartWithTimezone,Tg as useCreateInstallmentsPlan,Tm as useCreateMonitorTemplate,Rm as useCreateMonitorThreshold,Zh as useCreateOperationTransaction,Lm as useCreatePaymentLinks,ng as useCreateReconciliationAlert,eg as useCreateReconciliationReportTemplate,rm as useCreateReconciliationsReportV2,im as useCreateReconciliationsReportV3,lm as useCreateReportTemplate,sm as useCreateReportV2,Am as useCreateRoles,ig as useCreateSamlConfig,_g as useCreateSchedule,xf as useCreateScheduledReport,Mm as useCreateSubscription,bg as useCreateTemplate,Gh as useCreateUserAuth0,hm as useCreateWorkflow,Th as useDeleteAccountsUserMassive,vf as useDeleteAllowlistItem,mf as useDeleteBlackListType,yf as useDeleteBlockListItem,pg as useDeleteChart,Ff as useDeleteCustomizedApiKeys,xg as useDeleteInstallmentsPlan,Nm as useDeletePaymentLink,og as useDeleteReconciliationAlert,pm as useDeleteReportTemplate,Pm as useDeleteRoles,ug as useDeleteSamlConfig,Cg as useDeleteSchedule,Af as useDeleteScheduledReport,wg as useDeleteTemplate,xm as useDeleteUserTeamV2,gm as useDeleteVersion,kh as useDeleteWebhookV2,Eg as useDisableSchedule,_h as useDuplicateAccount,ym as useDuplicateVersion,qm as useEditPaymentLinks,zm as useEditRoles,sb as useEmailVerification,Tf as useExcludeUsers,Jf as useExportApiLogs,Xf as useExportDashboardLogs,Zf as useExportMonitorsLogs,Yf as useExportWebhooksLogs,Wv as useFeatureFlags,Pb as useFetchUserExportDetail,ck as useFirebaseUserSubscribe,lg as useGenerateFeedback,ky as useGetAccounts,wy as useGetAccountsByUser,_y as useGetAccountsForImpersonation,jy as useGetAccountsV2,vk as useGetAllConfigRules,cy as useGetAllOrganizations,kv as useGetAllReconciliationsAdvancements,yv as useGetAllReconciliationsAgenda,gv as useGetAllReconciliationsAlerts,jv as useGetAllReconciliationsFees,vv as useGetAllReconciliationsSales,pv as useGetAllTableColumns,oy as useGetAllowedIps,Yv as useGetApiLogsByTransactionCode,Jv as useGetApiLogsDetailByPaymentCode,Vv as useGetAuditEvents,Zv as useGetAuditExportDownload,Xv as useGetAuditExportsList,xy as useGetAuditLogsFilters,Kv as useGetAuditMonitorEventDetail,Ef as useGetBatchRefundProcessedFileDownload,Cf as useGetBatchRefundUserFileDownload,yk as useGetBatchRefunds,dk as useGetBlackList,hk as useGetBlockListSummary,Mg as useGetCardBrands,Tk as useGetChartFeedback,Ck as useGetChartsByUser,Sk as useGetChartsByUserWithResults,Qy as useGetCheckouts,zf as useGetConditionalConfigRules,lk as useGetConfigAllowlist,fy as useGetConnections,hy as useGetConnectionsByPaymentMethod,ak as useGetCountriesConfigPaymentLink,rk as useGetCountriesConfigPaymentLinkV2,eb as useGetCountryData,ty as useGetCredentials,Gf as useGetCredentialsMFA,ry as useGetCustomizedApiKeys,ay as useGetCustomizedApiKeysAccounts,ny as useGetCustomizedApiKeysMembers,iy as useGetCustomizedApiKeysProducts,Mf as useGetCustomizedApiKeysToken,Oy as useGetDashboardStaticContents,gy as useGetDialogs,_b as useGetDownloadReport,Ym as useGetEmailOtp,my as useGetHashPylon,lb as useGetImpersonationEnabled,cb as useGetImpersonationUsers,Vb as useGetInsightsReport,Kb as useGetInsightsReportAgain,Xk as useGetInstallmentsPlans,py as useGetIntegrationByAccountV2,dy as useGetIntegrationParams,Ik as useGetLanguages,Ay as useGetLocales,ub as useGetLoginMethods,jk as useGetMFAConfig,kk as useGetMFAExcludedUsers,wk as useGetMFAStatus,Cy as useGetMenu,yb as useGetMergedNotifications,Yy as useGetNameAndIcon,Ok as useGetNetworkTokensOnboardingByOrganization,fb as useGetNotificationsCustomer,bb as useGetNotificationsNumberMutation,Jk as useGetOnboardingDetail,Yk as useGetOnboardingTimeline,uy as useGetOrganization,Kk as useGetOrganizationConfigs,Ug as useGetPaymentFilters,ok as useGetPaymentLinkByCode,nk as useGetPaymentLinks,qg as useGetPaymentMethodsAndProviders,Bg as useGetPaymentMetricsFilters,Sy as useGetPaymentStatusesStyles,Fg as useGetPaymentTransactionsDetails,Pg as useGetPaymentV2,Ng as useGetPaymentsMethodsByCountry,Vg as useGetPayoutDetail,$g as useGetPayoutHistoryDetail,ey as useGetPayoutTimeline,Kg as useGetPayoutTransactionDetail,Ey as useGetPendingDuplicateAccounts,ib as useGetPermissions,Ob as useGetPermissionsCatalog,ab as useGetProfile,Qg as useGetProofOfCancel,Jg as useGetProofOfPayment,ly as useGetProviderParams,Qk as useGetRecipientById,$k as useGetRecipients,hv as useGetReconciliationActive,bv as useGetReconciliationAgendaInsightsByKey,dv as useGetReconciliationFilters,Rv as useGetReconciliationInsightsAmountConflictAggregators,Tv as useGetReconciliationInsightsAmountConflictList,Fv as useGetReconciliationInsightsAmountToBeSettledSummary,xv as useGetReconciliationInsightsConflictDateAggregators,Ov as useGetReconciliationInsightsConflictDateList,Iv as useGetReconciliationInsightsConflictDateSummary,wv as useGetReconciliationInsightsConflictsSummary,Dv as useGetReconciliationInsightsFeesChargedSummary,zv as useGetReconciliationInsightsIncorrectFeesAggregators,Pv as useGetReconciliationInsightsIncorrectFeesList,Av as useGetReconciliationInsightsIncorrectFeesSummary,Uv as useGetReconciliationInsightsNotConfirmAggregators,Bv as useGetReconciliationInsightsNotConfirmList,Mv as useGetReconciliationInsightsNotConfirmSummary,_v as useGetReconciliationInsightsNotReconciledAggregators,Ev as useGetReconciliationInsightsNotReconciledList,Nv as useGetReconciliationInsightsReconciledAggregators,qv as useGetReconciliationInsightsReconciledList,Lv as useGetReconciliationInsightsReconciledSummary,Cv as useGetReconciliationInsightsStatusConflictAggregators,Sv as useGetReconciliationInsightsStatusConflictList,lv as useGetReconciliationMetrics,Ty as useGetReconciliationTransactionStatusesStyles,uv as useGetReconciliationTransactions,mv as useGetReconciliationsReportColumns,fv as useGetReconciliationsReportTemplates,Sb as useGetRefundPdf,Cb as useGetReportColumns,Eb as useGetReportTemplates,jb as useGetReportsList,wb as useGetReportsListMultiEnv,Zy as useGetRequiredFields,Ib as useGetRoles,xb as useGetRolesPermissions,$y as useGetRoutingMonitorsTemplate,Ky as useGetRoutingMonitorsTemplates,Pf as useGetRule,_k as useGetSamlConfig,If as useGetScheduledReportsList,cv as useGetSettlements,Ly as useGetSmartRoutingConditionPaymentMethod,Dy as useGetSmartRoutingConditionTypes,Ny as useGetSmartRoutingConditionTypesValues,Db as useGetSmartRoutingDataReport,Uy as useGetSmartRoutingDeclineGroups,zy as useGetSmartRoutingMethods,My as useGetSmartRoutingNextRoute,By as useGetSmartRoutingPaymentRoute,Wy as useGetSmartRoutingSearchConditionValues,Fy as useGetSmartRoutingSimulateConditionTypeValues,Py as useGetSmartRoutingWorkflow,qy as useGetSmartRoutingWorkflowVersion,tb as useGetStylingSdkDynamic,nb as useGetStylingSettingsV2,sk as useGetSubscriptionByCode,uk as useGetSubscriptionPayments,Rb as useGetTeamsFiltersMembers,Iy as useGetTimeZoneCatalog,ik as useGetTimezonePaymentLink,Jm as useGetTokenValidation,Dg as useGetTransactionDetailsV2,Wg as useGetTransactionHistoryByPaymentCode,Lg as useGetTransactionRawResponse,Ry as useGetTransactionStatusesStyles,xk as useGetTranslations,ek as useGetUnifiedExportStatus,tk as useGetUnifiedExportsList,Ab as useGetUserExportStatus,rb as useGetUserFull,db as useGetUsersToImpersonate,gb as useGetValidateOpsgenieKey,yy as useGetWebhookParamsV2,vy as useGetWebhooksV2Detail,by as useGetWebhooksV3,Yb as useInsights3dsConversionRateAndEvolution,Xb as useInsights3dsDeclineReasons,Zb as useInsights3dsFrictionlessVsChallenge,Jb as useInsights3dsVolumeAndCountTx,sv as useInsightsChargebacksByCardBrand,av as useInsightsChargebacksByProviderAndCardBrand,ov as useInsightsChargebacksDisputed,rv as useInsightsChargebacksReasonsDistribution,iv as useInsightsChargebacksStatusDistribution,tv as useInsightsChargebacksTotalRateAndEvolution,ev as useInsightsChargebacksVolumeAndCountTx,nv as useInsightsChargebacksWinRate,Lb as useInsightsConversionRateMetricsV2,Fb as useInsightsCustomerPaymentsAndFraudMetrics,qb as useInsightsFallbackMetrics,Qb as useInsightsFraudScreeningConversionRate,$b as useInsightsFraudScreeningVolumeAndCountTx,Gb as useInsightsHomeMetrics,Wb as useInsightsOverviewMetrics,Hb as useInsightsOverviewMetricsV3,Bb as useInsightsTotalPaymentsAndFraudMetrics,Mb as useInsightsVolumeMetrics,Ub as useInsightsVolumeMetricsV2,Fh as useInviteUsersMultiaccountMassive,Wh as useInviteUsersMultiaccountMassiveV2,$h as useIsTesting,Gm as useListSubscriptions,zb as useListUserExports,Qh as useLocalStorage,Kh as useLoginMethods,Vy as useNetworkTokensOnboarding,zh as useNewPostConnectionValidate,Jh as useOrganizationCode,Ch as usePatchAccountV2,sf as usePatchAddAllowlistItems,sy as usePatchAllowedIps,uf as usePatchAllowlist,Rk as usePatchAndExecuteChart,Wf as usePatchApiKeysEditNote,af as usePatchChangeStatusAllowlist,rf as usePatchChangeStatusAllowlistItem,hg as usePatchChartName,Ph as usePatchConnection,qf as usePathCreateCustomizedApiKeys,vb as usePathNotifications,Um as usePauseSubscription,Zg as usePayoutsFilters,Xg as usePayoutsList,wh as usePostAccount,gk as usePostAllowlistMultiAccount,Hf as usePostApiKeysRoll,$v as usePostApiLogs,Kf as usePostAuditMonitors,_f as usePostBatchRefundByFile,ff as usePostBlackListBatch,hf as usePostBlackListItems,cf as usePostBlackListMultiAccount,pk as usePostBlockList,Vh as usePostCall,xh as usePostChangeStatusConnection,Ah as usePostConnectionMultiAccount,of as usePostCreateAllowlistMultiAccount,Nf as usePostCreateCustomizedApiKeys,rg as usePostCreateInsightsReport,Df as usePostCreateRuleMultiAccount,Uf as usePostCredentialsValidatePassword,Bf as usePostCredentialsValidatePasswordRegularUser,Vf as usePostCredentialsWithOtpMfa,Dh as usePostDefaultRoutes,Lf as usePostEditRule,Gg as usePostFraudTransactions,tf as usePostGetAllowlistItems,nf as usePostGetAllowlistMultiAccount,Tb as usePostMembersPaginatedV2,Nh as usePostNetworkTokensOnboarding,Sg as usePostOrganizationConfigs,zg as usePostPaymentsEvaluated,Ag as usePostPaymentsLazy,Im as usePostSlackMessageChannel,Hg as usePostTransactions,Vm as usePostUserSettings,Qm as usePostUserSettingsPinned,$m as usePostUserSettingsTables,Km as usePostUserThemeSettings,Ih as usePostValideStatusConnection,bk as usePostVelocityRules,Qv as usePostWebhookLogs,vh as usePostWebhookMultiAccount,Hy as useProviderConversionRatesData,tm as useProviderRawResponse,mm as usePublishVersion,Sh as usePutAccountPrincipal,Rh as usePutAccountsUserMassive,lf as usePutBlackListType,Oh as usePutCosts,Rg as usePutOrganizationConfigsByAccount,Fk as useRecoveredPaymentsByDay,Bk as useRecoveredTPVByDay,Hm as useRescheduleSubscription,$f as useResendWebhooks,Bm as useResumeSubscription,Eh as useRetryDuplicateAccount,fm as useSaveVersion,Vk as useSearchScheduleById,Gk as useSearchSchedules,Hk as useSearchTemplateById,Wk as useSearchTemplates,Yg as useSendPaymentNotification,Om as useSetCustodian,km as useSmartRoutingCreateDeclinedGroup,wm as useSmartRoutingEditWorkflowName,Sm as useSmartRoutingMultiAccountDeclinedGroupCreate,Cm as useSmartRoutingRemoveDeclinedGroup,_m as useSmartRoutingSimulateTransaction,jm as useSmartRoutingToggleFavorite,vm as useSmartRoutingUpdateDeclinedGroup,Em as useSmartRoutingUpdateMonitorRedistribution,Dm as useStartUserExport,yg as useSubmitChartFeedback,bm as useToggleMethod,Hh as useUnInviteUsersV2,Qf as useUnifiedExportStart,Zm as useUnrollUserV2,Ig as useUpdateInstallmentsPlan,Xh as useUpdateIsActiveCheckout,Rf as useUpdateMFAConfig,qh as useUpdateOrganizationStatus,Bh as useUpdateProfile,ag as useUpdateReconciliationAlert,tg as useUpdateReconciliationReportTemplate,dm as useUpdateReportTemplate,sg as useUpdateSamlConfig,Of as useUpdateScheduledReport,Wm as useUpdateSubscription,kg as useUpdateTemplateSelection,jh as useUpdateWebhookV2,jf as useUploadBatchRefundsFileV2,wf as useUploadBatchRefundsV2,Sf as useUploadFileS3ClientBatchRefunds,kf as useValiateAllowlistItems,bf as useValidateBlockListItems,Lh as useValidateCredentials,Mh as useValidateOrgName,ef as useValidatePasswordStatus,Nb as useViewMoreMetrics};
234
234
  //# sourceMappingURL=index.js.map