@yuno-payments/dashboard-api-mfe 0.42.7 → 0.42.8

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 No(e){const t=Lo.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Mo(){return No(document.cookie)}function qo(e){const t=e.headers.get("cookie"),n=t?No(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?Mo():{}}case"include":return Mo();default:return{}}}(e);for(const t in o)e.headers.append("cookie",Lo.serialize(t,o[t]));const r=Y.getCookiesSync(e.url),a=Object.fromEntries(r.map((e=>[e.key,e.value])));for(const t of r)e.headers.append("cookie",t.toString());return{...o,...a,...n}}var Uo=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Uo||{});class Bo extends h{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(Ft(t)===t)return;const n=function(e){return new URL(`/${e}`,"http://localhost").searchParams}(t);n.forEach(((e,t)=>{})),c.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:Vt(new URL(e.request.url),this.info.path,e.resolutionContext?.baseUrl),cookies:qo(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=m(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||xo[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),r=(a=o.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(c.formatMessage(`${Ht()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${r}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Fo(e){return(t,n,o={})=>new Bo(e,t,n,o)}const Go={all:Fo(/.+/),head:Fo(Uo.HEAD),get:Fo(Uo.GET),post:Fo(Uo.POST),put:Fo(Uo.PUT),delete:Fo(Uo.DELETE),patch:Fo(Uo.PATCH),options:Fo(Uo.OPTIONS)},Vo=Symbol("bodyType");class Wo extends zt{[Vo]=null;constructor(e,t){const n=ze(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,Pe,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=Ae.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static text(e,t){const n=ze(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 Wo(e,n)}static json(e,t){const n=ze(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 Wo(o,n)}static xml(e,t){const n=ze(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new Wo(e,n)}static html(e,t){const n=ze(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new Wo(e,n)}static arrayBuffer(e,t){const n=ze(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 Wo(e,n)}static formData(e,t){return new Wo(e,ze(t))}}s("undefined"!=typeof URL,c.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 Ho,Ko={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},$o={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:{}},Qo={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:{}},Jo={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:{}},Xo=[{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:""}],Yo={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}]},Zo=[Go.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",(function(){return Wo.json(Ko)})),Go.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",(function(){return Wo.json($o)})),Go.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",(function(){return Wo.json(Qo)})),Go.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",(function(){return Wo.json(Jo)})),Go.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",(function(){return Wo.json(Xo)})),Go.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",(function(){return Wo.json(Yo)}))],er={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}}},tr={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}}},nr={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"}(Ho||(Ho={}));var or={sales_volume_metric_group:nr.sales_volume_metric_group,total_payments:nr.total_payments},rr=Go.get("/api/insights/overview-metrics",(function(){return Wo.json(or)})),ar=[Go.get("/api/v3/insights/overview-metrics/".concat(Ho.GENERAL),(function(){return Wo.json({sales_volume_metric_group:or.sales_volume_metric_group})})),Go.get("/api/v3/insights/overview-metrics/".concat(Ho.LATENCY),(function(){return Wo.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})})),Go.get("/api/v3/insights/overview-metrics/".concat(Ho.STATUS),(function(){return Wo.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})})),Go.get("/api/v3/insights/overview-metrics/".concat(Ho.SUBSCRIPTIONS),(function(){return Wo.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})}))],ir=e.__spreadArray([rr],ar,!0),sr=e.__spreadArray([Go.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",(function(){return Wo.json(er)})),Go.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",(function(){return Wo.json(tr)})),Go.get("*/dialogs",(function(){return Wo.json({})})),Go.get("*/accounts/webhooks/:accountCode",(function(){return Wo.json({})})),Go.get("*/accounts/webhooks/params-catalog",(function(){return Wo.json({})})),Go.get("*/accounts/webhooks-v2/:accountCode",(function(){return Wo.json({})}))],ir,!0),ur=e.__spreadArray(e.__spreadArray([],Zo,!0),sr,!0),cr=function(...e){return new So(...e)}.apply(void 0,ur),lr="MSW_ENABLED";function pr(e){e?(localStorage.setItem(lr,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(lr),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function dr(){return"true"===localStorage.getItem(lr)}function hr(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return pr(!0)},window.disableMSW=function(){return pr(!1)},window.isMSWEnabled=dr);const{toString:mr}=Object.prototype,{getPrototypeOf:fr}=Object,{iterator:gr,toStringTag:yr}=Symbol,br=(kr=Object.create(null),e=>{const t=mr.call(e);return kr[t]||(kr[t]=t.slice(8,-1).toLowerCase())});var kr;const vr=e=>(e=e.toLowerCase(),t=>br(t)===e),wr=e=>t=>typeof t===e,{isArray:jr}=Array,_r=wr("undefined");function Er(e){return null!==e&&!_r(e)&&null!==e.constructor&&!_r(e.constructor)&&xr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cr=vr("ArrayBuffer");const Sr=wr("string"),xr=wr("function"),Rr=wr("number"),Tr=e=>null!==e&&"object"==typeof e,Ir=e=>{if("object"!==br(e))return!1;const t=fr(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||yr in e||gr in e)},Ar=vr("Date"),Or=vr("File"),Pr=vr("Blob"),zr=vr("FileList"),Dr=vr("URLSearchParams"),[Lr,Nr,Mr,qr]=["ReadableStream","Request","Response","Headers"].map(vr);function Ur(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),jr(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{if(Er(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let i;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function Br(e,t){if(Er(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Fr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Gr=e=>!_r(e)&&e!==Fr;const Vr=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&fr(Uint8Array)),Wr=vr("HTMLFormElement"),Hr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kr=vr("RegExp"),$r=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ur(n,((n,r)=>{let a;!1!==(a=t(n,r,e))&&(o[r]=a||n)})),Object.defineProperties(e,o)};const Qr=vr("AsyncFunction"),Jr=(Xr="function"==typeof setImmediate,Yr=xr(Fr.postMessage),Xr?setImmediate:Yr?(Zr=`axios@${Math.random()}`,ea=[],Fr.addEventListener("message",(({source:e,data:t})=>{e===Fr&&t===Zr&&ea.length&&ea.shift()()}),!1),e=>{ea.push(e),Fr.postMessage(Zr,"*")}):e=>setTimeout(e));var Xr,Yr,Zr,ea;const ta="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Fr):"undefined"!=typeof process&&process.nextTick||Jr;var na={isArray:jr,isArrayBuffer:Cr,isBuffer:Er,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||xr(e.append)&&("formdata"===(t=br(e))||"object"===t&&xr(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Cr(e.buffer),t},isString:Sr,isNumber:Rr,isBoolean:e=>!0===e||!1===e,isObject:Tr,isPlainObject:Ir,isEmptyObject:e=>{if(!Tr(e)||Er(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Lr,isRequest:Nr,isResponse:Mr,isHeaders:qr,isUndefined:_r,isDate:Ar,isFile:Or,isBlob:Pr,isRegExp:Kr,isFunction:xr,isStream:e=>Tr(e)&&xr(e.pipe),isURLSearchParams:Dr,isTypedArray:Vr,isFileList:zr,forEach:Ur,merge:function e(){const{caseless:t,skipUndefined:n}=Gr(this)&&this||{},o={},r=(r,a)=>{const i=t&&Br(o,a)||a;Ir(o[i])&&Ir(r)?o[i]=e(o[i],r):Ir(r)?o[i]=e({},r):jr(r)?o[i]=r.slice():n&&_r(r)||(o[i]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ur(arguments[e],r);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(Ur(t,((t,o)=>{n&&xr(t)?e[o]=hr(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 r,a,i;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)i=r[a],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&fr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:br,kindOfTest:vr,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(jr(e))return e;let t=e.length;if(!Rr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[gr]).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:Wr,hasOwnProperty:Hr,hasOwnProp:Hr,reduceDescriptors:$r,freezeMethods:e=>{$r(e,((t,n)=>{if(xr(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];xr(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 jr(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:Br,global:Fr,isContextDefined:Gr,isSpecCompliantForm:function(e){return!!(e&&xr(e.append)&&"FormData"===e[yr]&&e[gr])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(Tr(e)){if(t.indexOf(e)>=0)return;if(Er(e))return e;if(!("toJSON"in e)){t[o]=e;const r=jr(e)?[]:{};return Ur(e,((e,t)=>{const a=n(e,o+1);!_r(a)&&(r[t]=a)})),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:Qr,isThenable:e=>e&&(Tr(e)||xr(e))&&xr(e.then)&&xr(e.catch),setImmediate:Jr,asap:ta,isIterable:e=>null!=e&&xr(e[gr])};function oa(e,t,n,o,r){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),r&&(this.response=r,this.status=r.status?r.status:null)}na.inherits(oa,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:na.toJSONObject(this.config),code:this.code,status:this.status}}});const ra=oa.prototype,aa={};["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=>{aa[e]={value:e}})),Object.defineProperties(oa,aa),Object.defineProperty(ra,"isAxiosError",{value:!0}),oa.from=(e,t,n,o,r,a)=>{const i=Object.create(ra);na.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const s=e&&e.message?e.message:"Error",u=null==t&&e?e.code:t;return oa.call(i,s,u,n,o,r),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};function ia(e){return na.isPlainObject(e)||na.isArray(e)}function sa(e){return na.endsWith(e,"[]")?e.slice(0,-2):e}function ua(e,t,n){return e?e.concat(t).map((function(e,t){return e=sa(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ca=na.toFlatObject(na,{},null,(function(e){return/^is[A-Z]/.test(e)}));function la(e,t,n){if(!na.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=na.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!na.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&na.isSpecCompliantForm(t);if(!na.isFunction(r))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(na.isDate(e))return e.toISOString();if(na.isBoolean(e))return e.toString();if(!s&&na.isBlob(e))throw new oa("Blob is not supported. Use a Buffer instead.");return na.isArrayBuffer(e)||na.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(na.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(na.isArray(e)&&function(e){return na.isArray(e)&&!e.some(ia)}(e)||(na.isFileList(e)||na.endsWith(n,"[]"))&&(s=na.toArray(e)))return n=sa(n),s.forEach((function(e,o){!na.isUndefined(e)&&null!==e&&t.append(!0===i?ua([n],o,a):null===i?n:n+"[]",u(e))})),!1;return!!ia(e)||(t.append(ua(r,n,a),u(e)),!1)}const l=[],p=Object.assign(ca,{defaultVisitor:c,convertValue:u,isVisitable:ia});if(!na.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!na.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),na.forEach(n,(function(n,a){!0===(!(na.isUndefined(n)||null===n)&&r.call(t,n,na.isString(a)?a.trim():a,o,p))&&e(n,o?o.concat(a):[a])})),l.pop()}}(e),t}function pa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function da(e,t){this._pairs=[],e&&la(e,this,t)}const ha=da.prototype;function ma(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function fa(e,t,n){if(!t)return e;const o=n&&n.encode||ma;na.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let a;if(a=r?r(t,n):na.isURLSearchParams(t)?t.toString():new da(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}ha.append=function(e,t){this._pairs.push([e,t])},ha.toString=function(e){const t=e?function(t){return e.call(this,t,pa)}:pa;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ga=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){na.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ya={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ba={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:da,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ka="undefined"!=typeof window&&"undefined"!=typeof document,va="object"==typeof navigator&&navigator||void 0,wa=ka&&(!va||["ReactNative","NativeScript","NS"].indexOf(va.product)<0),ja="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_a=ka&&window.location.href||"http://localhost";var Ea={...Object.freeze({__proto__:null,hasBrowserEnv:ka,hasStandardBrowserEnv:wa,hasStandardBrowserWebWorkerEnv:ja,navigator:va,origin:_a}),...ba};function Ca(e){function t(e,n,o,r){let a=e[r++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=r>=e.length;if(a=!a&&na.isArray(o)?o.length:a,s)return na.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!i;o[a]&&na.isObject(o[a])||(o[a]=[]);return t(e,n,o[a],r)&&na.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let a;for(o=0;o<r;o++)a=n[o],t[a]=e[a];return t}(o[a])),!i}if(na.isFormData(e)&&na.isFunction(e.entries)){const n={};return na.forEachEntry(e,((e,o)=>{t(function(e){return na.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const Sa={transitional:ya,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=na.isObject(e);r&&na.isHTMLForm(e)&&(e=new FormData(e));if(na.isFormData(e))return o?JSON.stringify(Ca(e)):e;if(na.isArrayBuffer(e)||na.isBuffer(e)||na.isStream(e)||na.isFile(e)||na.isBlob(e)||na.isReadableStream(e))return e;if(na.isArrayBufferView(e))return e.buffer;if(na.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return la(e,new Ea.classes.URLSearchParams,{visitor:function(e,t,n,o){return Ea.isNode&&na.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=na.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return la(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(na.isString(e))try{return(t||JSON.parse)(e),na.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Sa.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(na.isResponse(e)||na.isReadableStream(e))return e;if(e&&na.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw oa.from(e,oa.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:Ea.classes.FormData,Blob:Ea.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};na.forEach(["delete","get","head","post","put","patch"],(e=>{Sa.headers[e]={}}));var xa=Sa;const Ra=na.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 Ta=Symbol("internals");function Ia(e){return e&&String(e).trim().toLowerCase()}function Aa(e){return!1===e||null==e?e:na.isArray(e)?e.map(Aa):String(e)}function Oa(e,t,n,o,r){return na.isFunction(o)?o.call(this,t,n):(r&&(t=n),na.isString(t)?na.isString(o)?-1!==t.indexOf(o):na.isRegExp(o)?o.test(t):void 0:void 0)}class Pa{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Ia(t);if(!r)throw new Error("header name must be a non-empty string");const a=na.findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||t]=Aa(e))}const a=(e,t)=>na.forEach(e,((e,n)=>r(e,n,t)));if(na.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(na.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&Ra[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(na.isObject(e)&&na.isIterable(e)){let n,o,r={};for(const t of e){if(!na.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?na.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=Ia(e)){const n=na.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(na.isFunction(t))return t.call(this,e,n);if(na.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ia(e)){const n=na.findKey(this,e);return!(!n||void 0===this[n]||t&&!Oa(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=Ia(e)){const r=na.findKey(n,e);!r||t&&!Oa(0,n[r],r,t)||(delete n[r],o=!0)}}return na.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!Oa(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return na.forEach(this,((o,r)=>{const a=na.findKey(n,r);if(a)return t[a]=Aa(o),void delete t[r];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();i!==r&&delete t[r],t[i]=Aa(o),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return na.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&na.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[Ta]=this[Ta]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Ia(e);t[o]||(!function(e,t){const n=na.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[o]=!0)}return na.isArray(e)?e.forEach(o):o(e),this}}Pa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),na.reduceDescriptors(Pa.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),na.freezeMethods(Pa);var za=Pa;function Da(e,t){const n=this||xa,o=t||n,r=za.from(o.headers);let a=o.data;return na.forEach(e,(function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)})),r.normalize(),a}function La(e){return!(!e||!e.__CANCEL__)}function Na(e,t,n){oa.call(this,null==e?"canceled":e,oa.ERR_CANCELED,t,n),this.name="CanceledError"}function Ma(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new oa("Request failed with status code "+n.status,[oa.ERR_BAD_REQUEST,oa.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}na.inherits(Na,oa,{__CANCEL__:!0});const qa=(e,t,n=3)=>{let o=0;const r=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=o[i];r||(r=u),n[a]=s,o[a]=u;let l=i,p=0;for(;l!==a;)p+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-r<t)return;const d=c&&u-c;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,o,r=0,a=1e3/t;const i=(t,a=Date.now())=>{r=a,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=a?i(e,t):(n=e,o||(o=setTimeout((()=>{o=null,i(n)}),a-s)))},()=>n&&i(n)]}((n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-o,u=r(s);o=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&a<=i?(i-a)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Ua=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Ba=e=>(...t)=>na.asap((()=>e(...t)));var Fa=Ea.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ea.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ea.origin),Ea.navigator&&/(msie|trident)/i.test(Ea.navigator.userAgent)):()=>!0,Ga=Ea.hasStandardBrowserEnv?{write(e,t,n,o,r,a){const i=[e+"="+encodeURIComponent(t)];na.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),na.isString(o)&&i.push("path="+o),na.isString(r)&&i.push("domain="+r),!0===a&&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 Va(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 Wa=e=>e instanceof za?{...e}:e;function Ha(e,t){t=t||{};const n={};function o(e,t,n,o){return na.isPlainObject(e)&&na.isPlainObject(t)?na.merge.call({caseless:o},e,t):na.isPlainObject(t)?na.merge({},t):na.isArray(t)?t.slice():t}function r(e,t,n,r){return na.isUndefined(t)?na.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function a(e,t){if(!na.isUndefined(t))return o(void 0,t)}function i(e,t){return na.isUndefined(t)?na.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,a){return a in t?o(n,r):a in e?o(void 0,n):void 0}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>r(Wa(e),Wa(t),0,!0)};return na.forEach(Object.keys({...e,...t}),(function(o){const a=u[o]||r,i=a(e[o],t[o],o);na.isUndefined(i)&&a!==s||(n[o]=i)})),n}var Ka=e=>{const t=Ha({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=za.from(i),t.url=fa(Va(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),na.isFormData(n))if(Ea.hasStandardBrowserEnv||Ea.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(na.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)}))}if(Ea.hasStandardBrowserEnv&&(o&&na.isFunction(o)&&(o=o(t)),o||!1!==o&&Fa(t.url))){const e=r&&a&&Ga.read(a);e&&i.set(r,e)}return t};var $a="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=Ka(e);let r=o.data;const a=za.from(o.headers).normalize();let i,s,u,c,l,{responseType:p,onUploadProgress:d,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=za.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Ma((function(e){t(e),m()}),(function(e){n(e),m()}),{data:p&&"text"!==p&&"json"!==p?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 oa("Request aborted",oa.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const o=new oa(t&&t.message?t.message:"Network Error",oa.ERR_NETWORK,e,f);o.event=t||null,n(o),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||ya;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new oa(t,r.clarifyTimeoutError?oa.ETIMEDOUT:oa.ECONNABORTED,e,f)),f=null},void 0===r&&a.setContentType(null),"setRequestHeader"in f&&na.forEach(a.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),na.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),p&&"json"!==p&&(f.responseType=o.responseType),h&&([u,l]=qa(h,!0),f.addEventListener("progress",u)),d&&f.upload&&([s,c]=qa(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{f&&(n(!t||t.type?new Na(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===Ea.protocols.indexOf(y)?n(new oa("Unsupported protocol "+y+":",oa.ERR_BAD_REQUEST,e)):f.send(r||null)}))};var Qa=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const r=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof oa?t:new Na(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,r(new oa(`timeout ${t} of ms exceeded`,oa.ETIMEDOUT))}),t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)})),e=null)};e.forEach((e=>e.addEventListener("abort",r)));const{signal:s}=o;return s.unsubscribe=()=>na.asap(i),s}};const Ja=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Xa=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()}},Ya=(e,t,n,o)=>{const r=async function*(e,t){for await(const n of Xa(e))yield*Ja(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return s(),void e.close();let a=o.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},{isFunction:Za}=na,ei=(({Request:e,Response:t})=>({Request:e,Response:t}))(na.global),{ReadableStream:ti,TextEncoder:ni}=na.global,oi=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ri=e=>{e=na.merge.call({skipUndefined:!0},ei,e);const{fetch:t,Request:n,Response:o}=e,r=t?Za(t):"function"==typeof fetch,a=Za(n),i=Za(o);if(!r)return!1;const s=r&&Za(ti),u=r&&("function"==typeof ni?(e=>t=>e.encode(t))(new ni):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=a&&s&&oi((()=>{let e=!1;const t=new n(Ea.origin,{body:new ti,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),l=i&&s&&oi((()=>na.isReadableStream(new o("").body))),p={stream:l&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new oa(`Response type '${e}' is not supported`,oa.ERR_NOT_SUPPORT,n)})}));const d=async(e,t)=>{const o=na.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(na.isBlob(e))return e.size;if(na.isSpecCompliantForm(e)){const t=new n(Ea.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return na.isArrayBufferView(e)||na.isArrayBuffer(e)?e.byteLength:(na.isURLSearchParams(e)&&(e+=""),na.isString(e)?(await u(e)).byteLength:void 0)})(t):o};return async e=>{let{url:r,method:i,data:s,signal:u,cancelToken:h,timeout:m,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:b,withCredentials:k="same-origin",fetchOptions:v}=Ka(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let j=Qa([u,h&&h.toAbortSignal()],m),_=null;const E=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let C;try{if(g&&c&&"get"!==i&&"head"!==i&&0!==(C=await d(b,s))){let e,t=new n(r,{method:"POST",body:s,duplex:"half"});if(na.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Ua(C,qa(Ba(g)));s=Ya(t.body,65536,e,n)}}na.isString(k)||(k=k?"include":"omit");const t=a&&"credentials"in n.prototype,u={...v,signal:j,method:i.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?k:void 0};_=a&&new n(r,u);let h=await(a?w(_,v):w(r,u));const m=l&&("stream"===y||"response"===y);if(l&&(f||m&&E)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=h[t]}));const t=na.toFiniteNumber(h.headers.get("content-length")),[n,r]=f&&Ua(t,qa(Ba(f),!0))||[];h=new o(Ya(h.body,65536,n,(()=>{r&&r(),E&&E()})),e)}y=y||"text";let S=await p[na.findKey(p,y)||"text"](h,e);return!m&&E&&E(),await new Promise(((t,n)=>{Ma(t,n,{data:S,headers:za.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:_})}))}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new oa("Network Error",oa.ERR_NETWORK,e,_),{cause:t.cause||t});throw oa.from(t,t&&t.code,e,_)}}},ai=new Map,ii=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:r}=t,a=[o,r,n];let i,s,u=a.length,c=ai;for(;u--;)i=a[u],s=c.get(i),void 0===s&&c.set(i,s=u?new Map:ri(t)),c=s;return s};ii();const si={http:null,xhr:$a,fetch:{get:ii}};na.forEach(si,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ui=e=>`- ${e}`,ci=e=>na.isFunction(e)||null===e||!1===e;var li=(e,t)=>{e=na.isArray(e)?e:[e];const{length:n}=e;let o,r;const a={};for(let i=0;i<n;i++){let n;if(o=e[i],r=o,!ci(o)&&(r=si[(n=String(o)).toLowerCase()],void 0===r))throw new oa(`Unknown adapter '${n}'`);if(r&&(na.isFunction(r)||(r=r.get(t))))break;a[n||"#"+i]=r}if(!r){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 oa("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(ui).join("\n"):" "+ui(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function pi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Na(null,e)}function di(e){pi(e),e.headers=za.from(e.headers),e.data=Da.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return li(e.adapter||xa.adapter,e)(e).then((function(t){return pi(e),t.data=Da.call(e,e.transformResponse,t),t.headers=za.from(t.headers),t}),(function(t){return La(t)||(pi(e),t&&t.response&&(t.response.data=Da.call(e,e.transformResponse,t.response),t.response.headers=za.from(t.response.headers))),Promise.reject(t)}))}const hi="1.12.2",mi={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{mi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const fi={};mi.transitional=function(e,t,n){function o(e,t){return"[Axios v"+hi+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new oa(o(r," has been removed"+(t?" in "+t:"")),oa.ERR_DEPRECATED);return t&&!fi[r]&&(fi[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},mi.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var gi={assertOptions:function(e,t,n){if("object"!=typeof e)throw new oa("options must be an object",oa.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new oa("option "+a+" must be "+n,oa.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new oa("Unknown option "+a,oa.ERR_BAD_OPTION)}},validators:mi};const yi=gi.validators;let bi=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ga,response:new ga}}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=Ha(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&gi.assertOptions(n,{silentJSONParsing:yi.transitional(yi.boolean),forcedJSONParsing:yi.transitional(yi.boolean),clarifyTimeoutError:yi.transitional(yi.boolean)},!1),null!=o&&(na.isFunction(o)?t.paramsSerializer={serialize:o}:gi.assertOptions(o,{encode:yi.function,serialize:yi.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),gi.assertOptions(t,{baseUrl:yi.spelling("baseURL"),withXsrfToken:yi.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&na.merge(r.common,r[t.method]);r&&na.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=za.concat(a,r);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,p=0;if(!s){const e=[di.bind(this),void 0];for(e.unshift(...i),e.push(...u),l=e.length,c=Promise.resolve(t);p<l;)c=c.then(e[p++],e[p++]);return c}l=i.length;let d=t;for(;p<l;){const e=i[p++],t=i[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=di.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=u.length;p<l;)c=c.then(u[p++],u[p++]);return c}getUri(e){return fa(Va((e=Ha(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};na.forEach(["delete","get","head","options"],(function(e){bi.prototype[e]=function(t,n){return this.request(Ha(n||{},{method:e,url:t,data:(n||{}).data}))}})),na.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,r){return this.request(Ha(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}bi.prototype[e]=t(),bi.prototype[e+"Form"]=t(!0)}));var ki=bi;class vi{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,r){n.reason||(n.reason=new Na(e,o,r),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 vi((function(t){e=t})),cancel:e}}}var wi=vi;const ji={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(ji).forEach((([e,t])=>{ji[t]=e}));var _i=ji;const Ei=function e(t){const n=new ki(t),o=hr(ki.prototype.request,n);return na.extend(o,ki.prototype,n,{allOwnKeys:!0}),na.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ha(t,n))},o}(xa);Ei.Axios=ki,Ei.CanceledError=Na,Ei.CancelToken=wi,Ei.isCancel=La,Ei.VERSION=hi,Ei.toFormData=la,Ei.AxiosError=oa,Ei.Cancel=Ei.CanceledError,Ei.all=function(e){return Promise.all(e)},Ei.spread=function(e){return function(t){return e.apply(null,t)}},Ei.isAxiosError=function(e){return na.isObject(e)&&!0===e.isAxiosError},Ei.mergeConfig=Ha,Ei.AxiosHeaders=za,Ei.formToJSON=e=>Ca(na.isHTMLForm(e)?new FormData(e):e),Ei.getAdapter=li,Ei.HttpStatusCode=_i,Ei.default=Ei;var Ci=Ei,Si=function(e){var t=[];return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];if(Array.isArray(o)){var r=o.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(r))}else null!=o&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o))))})),t.join("&")},xi=function(t){function n(n){var o,r,a,i,s=this;return(s=t.call(this,n)||this).token="",null===(r=null===(o=s.instance)||void 0===o?void 0:o.interceptors)||void 0===r||r.request.use((function(t){return e.__assign(e.__assign({},t),{defaults:{headers:e.__assign(e.__assign({},t.headers),{Authorization:"Bearer ".concat(s.getToken())})}})}),(function(e){return Promise.reject(e)})),null===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.response.use((function(t){return e.__assign({},t)}),(function(e){return Promise.reject(e)})),s}return e.__extends(n,t),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=Ci.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=Ci.create(e)})),Ri="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ti(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 Ii=TypeError,Ai=Ti(Object.freeze({__proto__:null,default:{}})),Oi="function"==typeof Map&&Map.prototype,Pi=Object.getOwnPropertyDescriptor&&Oi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,zi=Oi&&Pi&&"function"==typeof Pi.get?Pi.get:null,Di=Oi&&Map.prototype.forEach,Li="function"==typeof Set&&Set.prototype,Ni=Object.getOwnPropertyDescriptor&&Li?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Mi=Li&&Ni&&"function"==typeof Ni.get?Ni.get:null,qi=Li&&Set.prototype.forEach,Ui="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Bi="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Fi="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Gi=Boolean.prototype.valueOf,Vi=Object.prototype.toString,Wi=Function.prototype.toString,Hi=String.prototype.match,Ki=String.prototype.slice,$i=String.prototype.replace,Qi=String.prototype.toUpperCase,Ji=String.prototype.toLowerCase,Xi=RegExp.prototype.test,Yi=Array.prototype.concat,Zi=Array.prototype.join,es=Array.prototype.slice,ts=Math.floor,ns="function"==typeof BigInt?BigInt.prototype.valueOf:null,os=Object.getOwnPropertySymbols,rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,as="function"==typeof Symbol&&"object"==typeof Symbol.iterator,is="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===as||"symbol")?Symbol.toStringTag:null,ss=Object.prototype.propertyIsEnumerable,us=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function cs(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Xi.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-ts(-e):ts(e);if(o!==e){var r=String(o),a=Ki.call(t,r.length+1);return $i.call(r,n,"$&_")+"."+$i.call($i.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $i.call(t,n,"$&_")}var ls=Ai,ps=ls.custom,ds=ws(ps)?ps:null,hs={__proto__:null,double:'"',single:"'"},ms={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},fs=function e(t,n,o,r){var a=n||{};if(_s(a,"quoteStyle")&&!_s(hs,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_s(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!_s(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_s(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_s(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Ss(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return s?cs(t,u):u}if("bigint"==typeof t){var c=String(t)+"n";return s?cs(t,c):c}var l=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return ks(t)?"[Array]":"[Object]";var p=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Zi.call(Array(e.indent+1)," ")}return{base:n,prev:Zi.call(Array(t+1),n)}}(a,o);if(void 0===r)r=[];else if(Cs(r,t)>=0)return"[Circular]";function d(t,n,i){if(n&&(r=es.call(r)).push(n),i){var s={depth:a.depth};return _s(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,r)}return e(t,a,o+1,r)}if("function"==typeof t&&!vs(t)){var h=function(e){if(e.name)return e.name;var t=Hi.call(Wi.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),m=Os(t,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Zi.call(m,", ")+" }":"")}if(ws(t)){var f=as?$i.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):rs.call(t);return"object"!=typeof t||as?f:Rs(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="<"+Ji.call(String(t.nodeName)),y=t.attributes||[],b=0;b<y.length;b++)g+=" "+y[b].name+"="+gs(ys(y[b].value),"double",a);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Ji.call(String(t.nodeName))+">"}if(ks(t)){if(0===t.length)return"[]";var k=Os(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(Cs(e[t],"\n")>=0)return!1;return!0}(k)?"["+As(k,p)+"]":"[ "+Zi.call(k,", ")+" ]"}if(function(e){return"[object Error]"===Es(e)&&bs(e)}(t)){var v=Os(t,d);return"cause"in Error.prototype||!("cause"in t)||ss.call(t,"cause")?0===v.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Zi.call(v,", ")+" }":"{ ["+String(t)+"] "+Zi.call(Yi.call("[cause]: "+d(t.cause),v),", ")+" }"}if("object"==typeof t&&i){if(ds&&"function"==typeof t[ds]&&ls)return ls(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!zi||!e||"object"!=typeof e)return!1;try{zi.call(e);try{Mi.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var w=[];return Di&&Di.call(t,(function(e,n){w.push(d(n,t,!0)+" => "+d(e,t))})),Is("Map",zi.call(t),w,p)}if(function(e){if(!Mi||!e||"object"!=typeof e)return!1;try{Mi.call(e);try{zi.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var j=[];return qi&&qi.call(t,(function(e){j.push(d(e,t))})),Is("Set",Mi.call(t),j,p)}if(function(e){if(!Ui||!e||"object"!=typeof e)return!1;try{Ui.call(e,Ui);try{Bi.call(e,Bi)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Ts("WeakMap");if(function(e){if(!Bi||!e||"object"!=typeof e)return!1;try{Bi.call(e,Bi);try{Ui.call(e,Ui)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Ts("WeakSet");if(function(e){if(!Fi||!e||"object"!=typeof e)return!1;try{return Fi.call(e),!0}catch(e){}return!1}(t))return Ts("WeakRef");if(function(e){return"[object Number]"===Es(e)&&bs(e)}(t))return Rs(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!ns)return!1;try{return ns.call(e),!0}catch(e){}return!1}(t))return Rs(d(ns.call(t)));if(function(e){return"[object Boolean]"===Es(e)&&bs(e)}(t))return Rs(Gi.call(t));if(function(e){return"[object String]"===Es(e)&&bs(e)}(t))return Rs(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Ri&&t===Ri)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Es(e)&&bs(e)}(t)&&!vs(t)){var _=Os(t,d),E=us?us(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&is&&Object(t)===t&&is in t?Ki.call(Es(t),8,-1):C?"Object":"",x=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+Zi.call(Yi.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?x+"{}":p?x+"{"+As(_,p)+"}":x+"{ "+Zi.call(_,", ")+" }"}return String(t)};function gs(e,t,n){var o=n.quoteStyle||t,r=hs[o];return r+e+r}function ys(e){return $i.call(String(e),/"/g,"&quot;")}function bs(e){return!is||!("object"==typeof e&&(is in e||void 0!==e[is]))}function ks(e){return"[object Array]"===Es(e)&&bs(e)}function vs(e){return"[object RegExp]"===Es(e)&&bs(e)}function ws(e){if(as)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!rs)return!1;try{return rs.call(e),!0}catch(e){}return!1}var js=Object.prototype.hasOwnProperty||function(e){return e in this};function _s(e,t){return js.call(e,t)}function Es(e){return Vi.call(e)}function Cs(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 Ss(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Ss(Ki.call(e,0,t.maxStringLength),t)+o}var r=ms[t.quoteStyle||"single"];return r.lastIndex=0,gs($i.call($i.call(e,r,"\\$1"),/[\x00-\x1f]/g,xs),"single",t)}function xs(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":"")+Qi.call(t.toString(16))}function Rs(e){return"Object("+e+")"}function Ts(e){return e+" { ? }"}function Is(e,t,n,o){return e+" ("+t+") {"+(o?As(n,o):Zi.call(n,", "))+"}"}function As(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Zi.call(e,","+n)+"\n"+t.prev}function Os(e,t){var n=ks(e),o=[];if(n){o.length=e.length;for(var r=0;r<e.length;r++)o[r]=_s(e,r)?t(e[r],e):""}var a,i="function"==typeof os?os(e):[];if(as){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var u in e)_s(e,u)&&(n&&String(Number(u))===u&&u<e.length||as&&a["$"+u]instanceof Symbol||(Xi.call(/[^\w$]/,u)?o.push(t(u,e)+": "+t(e[u],e)):o.push(u+": "+t(e[u],e))));if("function"==typeof os)for(var c=0;c<i.length;c++)ss.call(e,i[c])&&o.push("["+t(i[c])+"]: "+t(e[i[c]],e));return o}var Ps=fs,zs=Ii,Ds=function(e,t,n){for(var o,r=e;null!=(o=r.next);r=o)if(o.key===t)return r.next=o.next,n||(o.next=e.next,e.next=o),o},Ls=Object,Ns=Error,Ms=EvalError,qs=RangeError,Us=ReferenceError,Bs=SyntaxError,Fs=URIError,Gs=Math.abs,Vs=Math.floor,Ws=Math.max,Hs=Math.min,Ks=Math.pow,$s=Math.round,Qs=Number.isNaN||function(e){return e!=e},Js=Object.getOwnPropertyDescriptor;if(Js)try{Js([],"length")}catch(e){Js=null}var Xs=Js,Ys=Object.defineProperty||!1;if(Ys)try{Ys({},"a",{value:1})}catch(e){Ys=!1}var Zs,eu,tu,nu,ou,ru,au,iu,su,uu,cu,lu,pu,du,hu,mu,fu=Ys;function gu(){return ru?ou:(ru=1,ou="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function yu(){return iu?au:(iu=1,au=Ls.getPrototypeOf||null)}function bu(){if(uu)return su;uu=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 r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};return su=function(o){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var a,i=function(e,t){for(var n=[],o=t||0,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments,1),s=t(0,r.length-i.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(a=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 a){var e=r.apply(this,n(i,arguments));return Object(e)===e?e:this}return r.apply(o,n(i,arguments))})),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},su}function ku(){if(lu)return cu;lu=1;var e=bu();return cu=Function.prototype.bind||e}function vu(){return du?pu:(du=1,pu=Function.prototype.call)}function wu(){return mu?hu:(mu=1,hu=Function.prototype.apply)}var ju,_u,Eu,Cu,Su,xu,Ru,Tu="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Iu=ku(),Au=wu(),Ou=vu(),Pu=Tu||Iu.call(Ou,Au),zu=ku(),Du=Ii,Lu=vu(),Nu=Pu,Mu=function(e){if(e.length<1||"function"!=typeof e[0])throw new Du("a function is required");return Nu(zu,Lu,e)};var qu=Ls,Uu=Ns,Bu=Ms,Fu=qs,Gu=Us,Vu=Bs,Wu=Ii,Hu=Fs,Ku=Gs,$u=Vs,Qu=Ws,Ju=Hs,Xu=Ks,Yu=$s,Zu=function(e){return Qs(e)||0===e?e:e<0?-1:1},ec=Function,tc=function(e){try{return ec('"use strict"; return ('+e+").constructor;")()}catch(e){}},nc=Xs,oc=fu,rc=function(){throw new Wu},ac=nc?function(){try{return rc}catch(e){try{return nc(arguments,"callee").get}catch(e){return rc}}}():rc,ic=function(){if(nu)return tu;nu=1;var e="undefined"!=typeof Symbol&&Symbol,t=eu?Zs:(eu=1,Zs=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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return tu=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),sc=function(){if(Cu)return Eu;Cu=1;var e=gu(),t=yu(),n=function(){if(_u)return ju;_u=1;var e,t=Mu,n=Xs;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__"),r=Object,a=r.getPrototypeOf;return ju=o&&"function"==typeof o.get?t([o.get]):"function"==typeof a&&function(e){return a(null==e?e:r(e))}}();return Eu=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}(),uc=yu(),cc=gu(),lc=wu(),pc=vu(),dc={},hc="undefined"!=typeof Uint8Array&&sc?sc(Uint8Array):Ru,mc={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Ru:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Ru:ArrayBuffer,"%ArrayIteratorPrototype%":ic&&sc?sc([][Symbol.iterator]()):Ru,"%AsyncFromSyncIteratorPrototype%":Ru,"%AsyncFunction%":dc,"%AsyncGenerator%":dc,"%AsyncGeneratorFunction%":dc,"%AsyncIteratorPrototype%":dc,"%Atomics%":"undefined"==typeof Atomics?Ru:Atomics,"%BigInt%":"undefined"==typeof BigInt?Ru:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Ru:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Ru:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Ru:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Uu,"%eval%":eval,"%EvalError%":Bu,"%Float16Array%":"undefined"==typeof Float16Array?Ru:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Ru:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Ru:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Ru:FinalizationRegistry,"%Function%":ec,"%GeneratorFunction%":dc,"%Int8Array%":"undefined"==typeof Int8Array?Ru:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Ru:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Ru:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ic&&sc?sc(sc([][Symbol.iterator]())):Ru,"%JSON%":"object"==typeof JSON?JSON:Ru,"%Map%":"undefined"==typeof Map?Ru:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&ic&&sc?sc((new Map)[Symbol.iterator]()):Ru,"%Math%":Math,"%Number%":Number,"%Object%":qu,"%Object.getOwnPropertyDescriptor%":nc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Ru:Promise,"%Proxy%":"undefined"==typeof Proxy?Ru:Proxy,"%RangeError%":Fu,"%ReferenceError%":Gu,"%Reflect%":"undefined"==typeof Reflect?Ru:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Ru:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&ic&&sc?sc((new Set)[Symbol.iterator]()):Ru,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Ru:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ic&&sc?sc(""[Symbol.iterator]()):Ru,"%Symbol%":ic?Symbol:Ru,"%SyntaxError%":Vu,"%ThrowTypeError%":ac,"%TypedArray%":hc,"%TypeError%":Wu,"%Uint8Array%":"undefined"==typeof Uint8Array?Ru:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Ru:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Ru:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Ru:Uint32Array,"%URIError%":Hu,"%WeakMap%":"undefined"==typeof WeakMap?Ru:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Ru:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Ru:WeakSet,"%Function.prototype.call%":pc,"%Function.prototype.apply%":lc,"%Object.defineProperty%":oc,"%Object.getPrototypeOf%":uc,"%Math.abs%":Ku,"%Math.floor%":$u,"%Math.max%":Qu,"%Math.min%":Ju,"%Math.pow%":Xu,"%Math.round%":Yu,"%Math.sign%":Zu,"%Reflect.getPrototypeOf%":cc};if(sc)try{null.error}catch(e){var fc=sc(sc(e));mc["%Error.prototype%"]=fc}var gc,yc,bc,kc,vc,wc,jc,_c,Ec,Cc,Sc,xc,Rc,Tc,Ic,Ac,Oc,Pc,zc,Dc,Lc,Nc,Mc,qc,Uc=function e(t){var n;if("%AsyncFunction%"===t)n=tc("async function () {}");else if("%GeneratorFunction%"===t)n=tc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=tc("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&sc&&(n=sc(r.prototype))}return mc[t]=n,n},Bc={__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"]},Fc=ku(),Gc=function(){if(xu)return Su;xu=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=ku();return Su=n.call(e,t)}(),Vc=Fc.call(pc,Array.prototype.concat),Wc=Fc.call(lc,Array.prototype.splice),Hc=Fc.call(pc,String.prototype.replace),Kc=Fc.call(pc,String.prototype.slice),$c=Fc.call(pc,RegExp.prototype.exec),Qc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Jc=/\\(\\)?/g,Xc=function(e,t){var n,o=e;if(Gc(Bc,o)&&(o="%"+(n=Bc[o])[0]+"%"),Gc(mc,o)){var r=mc[o];if(r===dc&&(r=Uc(o)),void 0===r&&!t)throw new Wu("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new Vu("intrinsic "+e+" does not exist!")},Yc=function(e,t){if("string"!=typeof e||0===e.length)throw new Wu("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Wu('"allowMissing" argument must be a boolean');if(null===$c(/^%?[^%]*%?$/,e))throw new Vu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Kc(e,0,1),n=Kc(e,-1);if("%"===t&&"%"!==n)throw new Vu("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Vu("invalid intrinsic syntax, expected opening `%`");var o=[];return Hc(e,Qc,(function(e,t,n,r){o[o.length]=n?Hc(r,Jc,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",r=Xc("%"+o+"%",t),a=r.name,i=r.value,s=!1,u=r.alias;u&&(o=u[0],Wc(n,Vc([0,1],u)));for(var c=1,l=!0;c<n.length;c+=1){var p=n[c],d=Kc(p,0,1),h=Kc(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new Vu("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Gc(mc,a="%"+(o+="."+p)+"%"))i=mc[a];else if(null!=i){if(!(p in i)){if(!t)throw new Wu("base intrinsic for "+e+" exists, but the property is not available.");return}if(nc&&c+1>=n.length){var m=nc(i,p);i=(l=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:i[p]}else l=Gc(i,p),i=i[p];l&&!s&&(mc[a]=i)}}return i},Zc=Yc,el=Mu,tl=el([Zc("%String.prototype.indexOf%")]),nl=function(e,t){var n=Zc(e,!!t);return"function"==typeof n&&tl(e,".prototype.")>-1?el([n]):n},ol=nl,rl=fs,al=Ii,il=Yc("%Map%",!0),sl=ol("Map.prototype.get",!0),ul=ol("Map.prototype.set",!0),cl=ol("Map.prototype.has",!0),ll=ol("Map.prototype.delete",!0),pl=ol("Map.prototype.size",!0),dl=!!il&&function(){var e,t={assert:function(e){if(!t.has(e))throw new al("Side channel does not contain "+rl(e))},delete:function(t){if(e){var n=ll(e,t);return 0===pl(e)&&(e=void 0),n}return!1},get:function(t){if(e)return sl(e,t)},has:function(t){return!!e&&cl(e,t)},set:function(t,n){e||(e=new il),ul(e,t,n)}};return t},hl=nl,ml=fs,fl=dl,gl=Ii,yl=Yc("%WeakMap%",!0),bl=hl("WeakMap.prototype.get",!0),kl=hl("WeakMap.prototype.set",!0),vl=hl("WeakMap.prototype.has",!0),wl=hl("WeakMap.prototype.delete",!0),jl=Ii,_l=fs,El=(yl?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new gl("Side channel does not contain "+ml(e))},delete:function(n){if(yl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return wl(e,n)}else if(fl&&t)return t.delete(n);return!1},get:function(n){return yl&&n&&("object"==typeof n||"function"==typeof n)&&e?bl(e,n):t&&t.get(n)},has:function(n){return yl&&n&&("object"==typeof n||"function"==typeof n)&&e?vl(e,n):!!t&&t.has(n)},set:function(n,o){yl&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new yl),kl(e,n,o)):fl&&(t||(t=fl()),t.set(n,o))}};return n}:fl)||dl||function(){var e,t={assert:function(e){if(!t.has(e))throw new zs("Side channel does not contain "+Ps(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Ds(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=Ds(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Ds(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Ds(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},Cl=String.prototype.replace,Sl=/%20/g,xl="RFC3986",Rl={default:xl,formatters:{RFC1738:function(e){return Cl.call(e,Sl,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:xl},Tl=Rl,Il=Object.prototype.hasOwnProperty,Al=Array.isArray,Ol=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Pl=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},zl=1024,Dl={arrayToObject:Pl,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 r=t[o],a=r.obj[r.prop],i=Object.keys(a),s=0;s<i.length;++s){var u=i[s],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Al(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&o.push(n[r]);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,r){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<a.length;s+=zl){for(var u=a.length>=zl?a.slice(s,s+zl):a,c=[],l=0;l<u.length;++l){var p=u.charCodeAt(l);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||r===Tl.RFC1738&&(40===p||41===p)?c[c.length]=u.charAt(l):p<128?c[c.length]=Ol[p]:p<2048?c[c.length]=Ol[192|p>>6]+Ol[128|63&p]:p<55296||p>=57344?c[c.length]=Ol[224|p>>12]+Ol[128|p>>6&63]+Ol[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(l)),c[c.length]=Ol[240|p>>18]+Ol[128|p>>12&63]+Ol[128|p>>6&63]+Ol[128|63&p])}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(Al(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(Al(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!Il.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return Al(t)&&!Al(n)&&(r=Pl(t,o)),Al(t)&&Al(n)?(n.forEach((function(n,r){if(Il.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,o):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var a=n[r];return Il.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,t}),r)}},Ll=function(){var e,t={assert:function(e){if(!t.has(e))throw new jl("Side channel does not contain "+_l(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=El()),e.set(t,n)}};return t},Nl=Dl,Ml=Rl,ql=Object.prototype.hasOwnProperty,Ul={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Bl=Array.isArray,Fl=Array.prototype.push,Gl=function(e,t){Fl.apply(e,Bl(t)?t:[t])},Vl=Date.prototype.toISOString,Wl=Ml.default,Hl={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Nl.encode,encodeValuesOnly:!1,format:Wl,formatter:Ml.formatters[Wl],indices:!1,serializeDate:function(e){return Vl.call(e)},skipNulls:!1,strictNullHandling:!1},Kl={},$l=function e(t,n,o,r,a,i,s,u,c,l,p,d,h,m,f,g,y,b){for(var k,v=t,w=b,j=0,_=!1;void 0!==(w=w.get(Kl))&&!_;){var E=w.get(t);if(j+=1,void 0!==E){if(E===j)throw new RangeError("Cyclic object value");_=!0}void 0===w.get(Kl)&&(j=0)}if("function"==typeof l?v=l(n,v):v instanceof Date?v=h(v):"comma"===o&&Bl(v)&&(v=Nl.maybeMap(v,(function(e){return e instanceof Date?h(e):e}))),null===v){if(i)return c&&!g?c(n,Hl.encoder,y,"key",m):n;v=""}if("string"==typeof(k=v)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||Nl.isBuffer(v))return c?[f(g?n:c(n,Hl.encoder,y,"key",m))+"="+f(c(v,Hl.encoder,y,"value",m))]:[f(n)+"="+f(String(v))];var C,S=[];if(void 0===v)return S;if("comma"===o&&Bl(v))g&&c&&(v=Nl.maybeMap(v,c)),C=[{value:v.length>0?v.join(",")||null:void 0}];else if(Bl(l))C=l;else{var x=Object.keys(v);C=p?x.sort(p):x}var R=u?n.replace(/\./g,"%2E"):n,T=r&&Bl(v)&&1===v.length?R+"[]":R;if(a&&Bl(v)&&0===v.length)return T+"[]";for(var I=0;I<C.length;++I){var A=C[I],O="object"==typeof A&&void 0!==A.value?A.value:v[A];if(!s||null!==O){var P=d&&u?A.replace(/\./g,"%2E"):A,z=Bl(v)?"function"==typeof o?o(T,P):T:T+(d?"."+P:"["+P+"]");b.set(t,j);var D=Ll();D.set(Kl,b),Gl(S,e(O,z,o,r,a,i,s,u,"comma"===o&&g&&Bl(v)?null:c,l,p,d,h,m,f,g,y,D))}}return S},Ql=Dl,Jl=Object.prototype.hasOwnProperty,Xl=Array.isArray,Yl={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Ql.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Zl=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},ep=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},tp=function(e,t,n,o){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(r),s=i?r.slice(0,i.index):r,u=[];if(s){if(!n.plainObjects&&Jl.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var c=0;n.depth>0&&null!==(i=a.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&Jl.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("["+r.slice(i.index)+"]")}return function(e,t,n,o){for(var r=o?t:ep(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===r||n.strictNullHandling&&null===r)?[]:[].concat(r);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]=r:"__proto__"!==c&&(i[c]=r):i={0:r}}r=i}return r}(u,t,n,o)}},np=function(e,t){var n,o=e,r=function(e){if(!e)return Hl;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||Hl.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=Ml.default;if(void 0!==e.format){if(!ql.call(Ml.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,r=Ml.formatters[n],a=Hl.filter;if(("function"==typeof e.filter||Bl(e.filter))&&(a=e.filter),o=e.arrayFormat in Ul?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Hl.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||Hl.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Hl.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Hl.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Hl.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Hl.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Hl.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Hl.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Hl.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Hl.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Hl.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Hl.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Hl.strictNullHandling}}(t);"function"==typeof r.filter?o=(0,r.filter)("",o):Bl(r.filter)&&(n=r.filter);var a=[];if("object"!=typeof o||null===o)return"";var i=Ul[r.arrayFormat],s="comma"===i&&r.commaRoundTrip;n||(n=Object.keys(o)),r.sort&&n.sort(r.sort);for(var u=Ll(),c=0;c<n.length;++c){var l=n[c];r.skipNulls&&null===o[l]||Gl(a,$l(o[l],l,i,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var p=a.join(r.delimiter),d=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},op=function(e,t){var n=function(e){if(!e)return Yl;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?Yl.charset:e.charset,n=void 0===e.duplicates?Yl.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||Yl.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Yl.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Yl.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Yl.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Yl.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Yl.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Yl.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Yl.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Yl.decoder,delimiter:"string"==typeof e.delimiter||Ql.isRegExp(e.delimiter)?e.delimiter:Yl.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Yl.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Yl.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Yl.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Yl.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Yl.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Yl.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 r,a=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,a),s=-1,u=t.charset;if(t.charsetSentinel)for(r=0;r<i.length;++r)0===i[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[r]?u="utf-8":"utf8=%26%2310003%3B"===i[r]&&(u="iso-8859-1"),s=r,r=i.length);for(r=0;r<i.length;++r)if(r!==s){var c,l,p=i[r],d=p.indexOf("]="),h=-1===d?p.indexOf("="):d+1;-1===h?(c=t.decoder(p,Yl.decoder,u,"key"),l=t.strictNullHandling?null:""):(c=t.decoder(p.slice(0,h),Yl.decoder,u,"key"),l=Ql.maybeMap(ep(p.slice(h+1),t),(function(e){return t.decoder(e,Yl.decoder,u,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=Zl(l)),p.indexOf("[]=")>-1&&(l=Xl(l)?[l]:l);var m=Jl.call(n,c);m&&"combine"===t.duplicates?n[c]=Ql.combine(n[c],l):m&&"last"!==t.duplicates||(n[c]=l)}return n}(e,n):e,r=n.plainObjects?Object.create(null):{},a=Object.keys(o),i=0;i<a.length;++i){var s=a[i],u=tp(s,o[s],n,"string"==typeof e);r=Ql.merge(r,u,n)}return!0===n.allowSparse?r:Ql.compact(r)},rp={formats:Rl,parse:op,stringify:np},ap={withCredentials:!0,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 rp.stringify(e,{indices:!1})}};exports.SendPaymentNotification=void 0,gc=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(yc=gc.NotificationStatus||(gc.NotificationStatus={})).SETTLED="SETTLED",yc.NOT_SETTLED="NOT_SETTLED",(bc=gc.NotificationReason||(gc.NotificationReason={})).REFUNDED="REFUNDED",bc.RESOLVED="RESOLVED",bc.CANCELLED="CANCELLED",bc.SERVICE_SUSPENDED="SERVICE_SUSPENDED",bc.ORDER_STOPPED="ORDER_STOPPED",bc.DISMISS="DISMISS",exports.PaymentFiltersSection=void 0,(kc=exports.PaymentFiltersSection||(exports.PaymentFiltersSection={})).PAYMENTS="payments",kc.INSIGHTS="insights",exports.Organization=void 0,vc=exports.Organization||(exports.Organization={}),(wc=vc.CustomClaims||(vc.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",wc.USER_CODE="https://dashboard.dev.y.uno/user_code",wc.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,jc=exports.Country||(exports.Country={}),(_c=jc.CountryCode||(jc.CountryCode={})).COLOMBIA="CO",_c.MEXICO="MX",_c.BRAZIL="BR",_c.ARGENTINA="AR",_c.CHILE="CL",_c.PERU="PE",_c.URUGUAY="UR",_c.ECUADOR="EC",exports.Cms=void 0,Ec=exports.Cms||(exports.Cms={}),(Cc=Ec.Locale||(Ec.Locale={})).EN="en",Cc.ES="es",Cc.PT="pt",(Sc=Ec.Target||(Ec.Target={})).BLANK="_blank",Sc.PARENT="_parent",Sc.SELF="_self",Sc.TOP="_top",exports.ReportType=void 0,(xc=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",xc.TRANSACTIONS="TRANSACTIONS",xc.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",xc.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(Rc=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",Rc.DEFAULT="DEFAULT",Rc.CUSTOM="CUSTOM",exports.SmartRouting=void 0,Tc=exports.SmartRouting||(exports.SmartRouting={}),(Ic=Tc.StepType||(Tc.StepType={})).FRAUD="FRAUD",Ic.PAYMENT="PAYMENT",Ic.THREE_D_SECURE="THREE_D_SECURE",Ic.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(Ac=Tc.DeclineGroupType||(Tc.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",Ac.MAC_CODE="MAC_CODE",exports.DataReport=void 0,Oc=exports.DataReport||(exports.DataReport={}),(Pc=Oc.InsightsVolumeMetricsV2Path||(Oc.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",Pc.APPROVED_PAYMENTS="approved-payments",Pc.PAYMENT_METHODS="payment-methods",Pc.PROVIDERS="providers",Pc.COUNTRIES="countries",Pc.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",Pc.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(Oc.OverviewMetricType||(Oc.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(zc=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",zc.SETTLEMENTS="SETTLEMENTS",zc.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",zc.AGENDA="AGENDA",zc.SALES_CONCILIATION="SALES_CONCILIATION",zc.FEES="FEES",zc.ADVANCEMENTS="ADVANCEMENTS",zc.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",zc.SETTLEMENTS_FEES="SETTLEMENTS_FEES",zc.CASHFLOW="CASHFLOW",zc.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS",exports.ReconciliationAgendaInsight=void 0,(Dc=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",Dc.DAILY="AGENDA_DAILY_DISTRIBUTION",Dc.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",Dc.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION",exports.AI=void 0,Lc=exports.AI||(exports.AI={}),(Nc=Lc.AIGenerateStatus||(Lc.AIGenerateStatus={})).ACCEPTED="ACCEPTED",Nc.REFUSED="REFUSED",Nc.FRONT_FAILED="FRONT_FAILED",exports.OrganizationConfig=void 0,Mc=exports.OrganizationConfig||(exports.OrganizationConfig={}),(qc=Mc.ConfigType||(Mc.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",qc.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",qc.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN";var ip=["PAUSED","ACTIVE"],sp={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},up="DELETED",cp={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},lp=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},pp=[{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"}],dp=[{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"}],hp=[{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"}],mp=[{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:""}}],fp=[{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"}],gp={docs_url:"https://docs.y.uno/reference/api-reference-overview"},yp={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}]},bp=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const kp=[];for(let e=0;e<256;++e)kp.push((e+256).toString(16).slice(1));let vp;const wp=new Uint8Array(16);var jp={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _p(e,t,n){if(jp.randomUUID&&!t&&!e)return jp.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!vp){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");vp=crypto.getRandomValues.bind(crypto)}return vp(wp)}();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(kp[e[t+0]]+kp[e[t+1]]+kp[e[t+2]]+kp[e[t+3]]+"-"+kp[e[t+4]]+kp[e[t+5]]+"-"+kp[e[t+6]]+kp[e[t+7]]+"-"+kp[e[t+8]]+kp[e[t+9]]+"-"+kp[e[t+10]]+kp[e[t+11]]+kp[e[t+12]]+kp[e[t+13]]+kp[e[t+14]]+kp[e[t+15]]).toLowerCase()}(o)}var Ep=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function Cp(e){return e&&0!==e.length?{metadata_filters:e.map((function(e){return{key:e.field,conditional:e.type,values:e.values}}))}:{}}var Sp=function(t){function n(n){var o=n?e.__assign(e.__assign({},ap),n):ap;return t.call(this,o)||this}return e.__extends(n,t),n.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},n.prototype.updateReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.put("/v1/reconciliation/reports/templates",o)},n.prototype.createReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.post("/v1/reconciliation/reports/templates",o)},n.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})},n.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})},n.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})},n.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},n.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},n.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},n.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},n.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},n.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},n.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},n.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},n.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},n.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},n.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},n.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},n.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},n.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},n.prototype.postPaymentsLazy=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return r.start_date||(r.start_date=new Date),r.end_date||(r.end_date=new Date),this.post("/payments/lazy",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Cp(o)),{params:r})},n.prototype.postPayouts=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return r.start_date||(r.start_date=new Date),r.end_date||(r.end_date=new Date),this.post("/payouts",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Cp(o)),{params:r})},n.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},n.prototype.postPaymentsEvaluated=function(t){t.account_code;var n=e.__rest(t,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/evaluated",n)},n.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},n.prototype.postTransactions=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return this.post("/v2/transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Cp(o)),{params:r})},n.prototype.postFraudTransactions=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return this.post("/fraud-transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Cp(o)),{params:r})},n.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},n.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})},n.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},n.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,r=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),r?{}:{headers:a})},n.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},n.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},n.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},n.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},n.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},n.prototype.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},n.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":_p()}})},n.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},n.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},n.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{headers:{"x-password":e}})},n.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},n.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},n.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},n.prototype.getAllOrganization=function(){return this.get("/organizations/all")},n.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),r={"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:r})},n.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})},n.prototype.putCosts=function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.put("/connections/costs",{costs:[t]})]}))}))},n.prototype.updateOrganizationStatus=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.patch("/organizations/status")]}))}))},n.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},n.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},n.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},n.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}}:{})},n.prototype.getConnectionsByPaymentMethod=function(t,n){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n))]}))}))},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},n.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==up)return delete t.status,this.delete(o,{data:t});Object.values(ip).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(sp[t.status]),delete t.status);var r={"x-account-code":n};return this.post(o,t,{headers:r})},n.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},n.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},n.prototype.patchConnection=function(t){var n,o=t.payload,r=t.connectionCode,a=localStorage.getItem("account"),i=a?null===(n=JSON.parse(a).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(r),e.__assign({account_code:i},o))},n.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},n.prototype.getDialogs=function(){return this.get("/dialogs")},n.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},n.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}})},n.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},n.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},n.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},n.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},n.prototype.getMenu=function(){return this.get("/cms/menu")},n.prototype.postWebhookLogs=function(t){var n=t.payload,o=n.account_code,r=e.__rest(n,["account_code"]),a={account_codes:o};return this.post("/v2/webhooks/organization",a,{params:r,paramsSerializer:Si})},n.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},n.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:Si})},n.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:Si})},n.prototype.postApiLogs=function(t){var n=t.payload,o=n.account_code,r=e.__rest(n,["account_code"]),a={account_codes:o};return this.post("/v2/api-logs/organization",a,{params:r,paramsSerializer:Si})},n.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},n.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},n.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},n.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},n.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},n.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},n.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},n.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},n.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},n.prototype.getLocales=function(){return this.get("/cms/locales")},n.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},n.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},n.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},n.prototype.postSmartRoutingPublishVersion=function(e,t,n){var o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},n.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},n.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},n.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},n.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},n.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},n.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},n.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},n.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},n.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},n.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},n.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},n.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},n.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},n.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},n.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},n.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},n.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},n.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},n.prototype.getInsightsMetricsConversionRateV2=function(t,n){var o=t.account_code,r=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=Ep(o);return r&&(s.connection_name=r.split(",")),a&&(s=e.__assign(e.__assign({},s),Cp(a))),this.post("/insights/conversion-rate/".concat(n),s,{params:i})},n.prototype.getInsightsMetricsConversionRateViewMore=function(t,n){var o=t.account_code,r=t.metadata,a=e.__rest(t,["account_code","metadata"]),i=Ep(o);return r&&(i=e.__assign(e.__assign({},i),Cp(r))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),i,{params:a})},n.prototype.getInsightFallbackMetrics=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]),a=Ep(n);return o&&(a=e.__assign(e.__assign({},a),Cp(o))),this.post("/insights/conversion-rate/fallback",a,{params:r})},n.prototype.getInsightsMetricsVolume=function(t,n){var o=n.connection_name,r=n.metadata,a=e.__rest(n,["connection_name","metadata"]),i={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),r&&(i=e.__assign(e.__assign({},i),Cp(r))),this.post("/insights/volume/metrics",i,{params:a})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,o){var r=o.connection_name,a=o.metadata,i=e.__rest(o,["connection_name","metadata"]),s={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return r&&(s=e.__assign(e.__assign({},s),{connection_name:null==r?void 0:r.split(",")})),a&&(s=e.__assign(e.__assign({},s),Cp(a))),this.post("/insights/volume/".concat(n),s,{params:i})},n.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},n.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},n.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},n.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},n.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},n.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},n.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},n.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},n.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},n.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},n.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},n.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.getInsightOverview=function(t){var n=t.account_code,o=t.connection_name,r=t.metadata,a=e.__rest(t,["account_code","connection_name","metadata"]),i=Ep(n);return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),r&&(i=e.__assign(e.__assign({},i),Cp(r))),this.post("/insights/overview",i,{params:a})},n.prototype.getInsightOverviewV3=function(t,n){var o=t.account_code,r=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=Ep(o);return r&&(s=e.__assign(e.__assign({},s),{connection_name:null==r?void 0:r.split(",")})),a&&(s=e.__assign(e.__assign({},s),Cp(a))),this.post("/insights/overview/".concat(n),s,{params:i})},n.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},n.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})},n.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})},n.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},n.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},n.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},n.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},n.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},n.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},n.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},n.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},n.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},n.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,r=e.payload,a={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",r,{headers:a})},n.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},n.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},n.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/reports/create",e)},n.prototype.createReportV2=function(e){return this.post("/reports",e)},n.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},n.prototype.reportsList=function(){return this.get("/reports")},n.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},n.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},n.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},n.prototype.getReportTemplates=function(){return this.get("/reports/templates")},n.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},n.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},n.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},n.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},n.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},n.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},n.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},n.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},n.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},n.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},n.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},n.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},n.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},n.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})},n.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})},n.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})},n.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},n.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},n.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},n.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},n.prototype.getProfile=function(){return this.get("/user")},n.prototype.getUserFull=function(){return this.get("/user-full")},n.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},n.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},n.prototype.getUsersToImpersonate=function(t,n,o,r,a){void 0===o&&(o=1),void 0===r&&(r=10);var i=e.__assign({account_codes:n||[],page:o,page_size:r},a&&{search_value:a});return this.post("/impersonation/user/organization/".concat(t,"/users-to-impersonate"),i)},n.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},n.prototype.updateProfile=function(e){return this.patch("/user",e)},n.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},n.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},n.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},n.prototype.getAccountsV2=function(){return this.get("/accounts-user")},n.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},n.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})},n.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})},n.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},n.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},n.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},n.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},n.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},n.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}})},n.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},n.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},n.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},n.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},n.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},n.prototype.pathNotification=function(e){return this.patch("/notifications",e)},n.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},n.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},n.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,r=e.status,a=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:r,role_id:a,statuses:i,role_ids:s,page:u,page_size:c},{headers:l})},n.prototype.getRoles=function(){return this.get("/teams/roles")},n.prototype.setCustodian=function(){return this.post("/teams/custodian")},n.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},n.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},n.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}})},n.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},n.prototype.getFeatureFlagId=function(t){var n=t.name,o=e.__rest(t,["name"]);return this.post("/feature-flags/evaluate",{name:n,parameters:o})},n.prototype.getFeatureFlagIdAll=function(t){var n=t.accountCode;return e.__awaiter(this,void 0,void 0,(function(){var t,o;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.get("/feature-flags/names",n?{headers:{"x-account-code":n}}:{})];case 1:return t=e.sent(),o={},t.data.feature_flag_names.forEach((function(e){o[e]=!0})),[2,{data:o,status:200,statusText:"OK",headers:{},config:{}}]}}))}))},n.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},n.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},n.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},n.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},n.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},n.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},n.prototype.getAuditEvents=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return this.post("v2/events/organization",{account_codes:n},{params:o,paramsSerializer:Si})},n.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},n.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},n.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},n.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)},n.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},n.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},n.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},n.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},n.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},n.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},n.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},n.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},n.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},n.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},n.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},n.prototype.getInstallmentPlans=function(e){return this.get("/v1/installments-plans",{headers:{"x-account-code":e}})},n.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},n.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},n.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},n.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},n.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},n.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},n.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},n.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},n.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},n.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},n.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},n.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},n.prototype.postBlockList=function(e,t,n,o){var r={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",r)},n.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}}:{})},n.prototype.getBlacklistDetail=function(e,t,n,o,r){void 0===n&&(n=26),void 0===o&&(o=null),void 0===r&&(r=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return r&&(null==r?void 0:r.length)>0&&(a+="&search=".concat(r)),this.get(a,o?{headers:{"x-account-code":o}}:{})},n.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}}:{})},n.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}})},n.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},n.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},n.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}})},n.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})},n.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}})},n.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})},n.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}})},n.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}})},n.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},n.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},n.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},n.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},n.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},n.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,r=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){r(e.total?Math.round(100*e.loaded/e.total):0)}})},n.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},n.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}})},n.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}})},n.prototype.getVelocityRules=function(t){return this.post("/yuno-fraud-screening-int/velocity-rules-list",e.__assign({},t))},n.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})},n.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()}}},n.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()}}},n.prototype.batchRefundByFile=function(t){var n=t.payload;return this.post("/batch-refund-by-file",e.__assign({},n))},n.prototype.uploadBatchRefundsV2=function(t){var n=t.payload;return this.post("/batch-refunds",e.__assign({},n))},n.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},n.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})},n.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})},n.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},n.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},n.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},n.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},n.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},n.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},n.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},n.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}})},n.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},n.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},n.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},n.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},n.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},n.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},n.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},n.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},n.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},n.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},n.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},n.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},n.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},n.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(cp[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(cp[null==e?void 0:e.type],"/export");return this.post(t,e)},n.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},n.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},n.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},n.prototype.getSamlConfig=function(){return this.get("/saml-config")},n.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},n.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},n.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},n.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},n.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},n.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},n.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},n.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},n.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},n.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},n.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},n.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},n.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},n.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},n.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},n.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},n.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},n.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},n.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},n.prototype.getLanguages=function(){return this.get("/languages")},n.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},n.prototype.getCommunications=function(e){return this.post("/communications",e)},n.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},n.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},n}(xi),xp={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},Rp=function(t){function n(e){return t.call(this,e)||this}return e.__extends(n,t),n.refreshInstance=function(t){var o;return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:xp["BFF_URL_".concat(xp.ENVIRONMENT)]})),null===(o=this.classInstance.instance.interceptors)||void 0===o||o.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},n.getInstance=function(t){var o,r;if(this.classInstance){var a=localStorage.getItem("account");if(a){var i=null===(r=null===(o=JSON.parse(a))||void 0===o?void 0:o.value)||void 0===r?void 0:r.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||xp["BFF_URL_".concat(xp.ENVIRONMENT)]})),this.classInstance},n.setMode=function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return this.classInstance.instance.interceptors.request.use((function(e){return e.headers&&(e.headers["X-Environment"]=t),e}),(function(e){return Promise.reject(e)})),[2]}))}))},n}(Sp);class Tp{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 Ip="undefined"==typeof window||"Deno"in window;function Ap(){}function Op(e){return"number"==typeof e&&e>=0&&e!==1/0}function Pp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zp(e,t,n){return Kp(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Dp(e,t,n){return Kp(e)?[{...t,queryKey:e},n]:[e||{},t]}function Lp(e,t){const{type:n="all",exact:o,fetchStatus:r,predicate:a,queryKey:i,stale:s}=e;if(Kp(i))if(o){if(t.queryHash!==Mp(i,t.options))return!1}else if(!Up(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===r||r===t.state.fetchStatus)&&!(a&&!a(t)))}function Np(e,t){const{exact:n,fetching:o,predicate:r,mutationKey:a}=e;if(Kp(a)){if(!t.options.mutationKey)return!1;if(n){if(qp(t.options.mutationKey)!==qp(a))return!1}else if(!Up(t.options.mutationKey,a))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(r&&!r(t))}function Mp(e,t){return((null==t?void 0:t.queryKeyHashFn)||qp)(e)}function qp(e){return JSON.stringify(e,((e,t)=>Wp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Up(e,t){return Bp(e,t)}function Bp(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Bp(e[n],t[n]))))}function Fp(e,t){if(e===t)return e;const n=Vp(e)&&Vp(t);if(n||Wp(e)&&Wp(t)){const o=n?e.length:Object.keys(e).length,r=n?t:Object.keys(t),a=r.length,i=n?[]:{};let s=0;for(let o=0;o<a;o++){const a=n?o:r[o];i[a]=Fp(e[a],t[a]),i[a]===e[a]&&s++}return o===a&&s===o?e:i}return t}function Gp(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Vp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wp(e){if(!Hp(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Hp(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Hp(e){return"[object Object]"===Object.prototype.toString.call(e)}function Kp(e){return Array.isArray(e)}function $p(e){return new Promise((t=>{setTimeout(t,e)}))}function Qp(e){$p(0).then(e)}function Jp(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Fp(e,t):t}const Xp=new class extends Tp{constructor(){super(),this.setup=e=>{if(!Ip&&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)}},Yp=["online","offline"];const Zp=new class extends Tp{constructor(){super(),this.setup=e=>{if(!Ip&&window.addEventListener){const t=()=>e();return Yp.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Yp.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 ed(e){return Math.min(1e3*2**e,3e4)}function td(e){return"online"!==(null!=e?e:"online")||Zp.isOnline()}class nd{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function od(e){return e instanceof nd}function rd(e){let t,n,o,r=!1,a=0,i=!1;const s=new Promise(((e,t)=>{n=e,o=t})),u=()=>!Xp.isFocused()||"always"!==e.networkMode&&!Zp.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))},p=()=>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()})),d=()=>{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:ed,h="function"==typeof c?c(a,t):c,m=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!r&&m?(a++,null==e.onFail||e.onFail(a,t),$p(h).then((()=>{if(u())return p()})).then((()=>{r?l(t):d()}))):l(t)}))};return td(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{i||(l(new nd(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1}}}const ad=console;const id=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const r=o=>{t?e.push(o):Qp((()=>{n(o)}))},a=()=>{const t=e;e=[],t.length&&Qp((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{r((()=>{e(...t)}))},schedule:r,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class sd{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Op(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Ip?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ud extends sd{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||ad,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=Jp(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(Ap).catch(Ap):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||!Pp(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 r;return null==(r=this.retryer)||r.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const 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,r;(od(e)&&e.silent||this.dispatch({type:"error",error:e}),od(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(r=this.cache.config).onSettled)||o.call(r,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=rd({fn:u.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,o,r;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=(r=this.cache.config).onSettled)||o.call(r,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:td(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 r=e.error;return od(r)&&r.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),id.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class cd extends Tp{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const r=t.queryKey,a=null!=(o=t.queryHash)?o:Mp(r,t);let i=this.get(a);return i||(i=new ud({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),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(){id.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Dp(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>Lp(n,e)))}findAll(e,t){const[n]=Dp(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Lp(n,e))):this.queries}notify(e){id.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){id.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){id.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class ld extends sd{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||ad,this.observers=[],this.state=e.state||pd(),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=rd({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,r,a,i,s,u,c;if(!t){var l,p,d,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(p=this.mutationCache.config).onMutate)?void 0:l.call(p,this.state.variables,this));const e=await(null==(d=(h=this.options).onMutate)?void 0:d.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==(r=(a=this.options).onSuccess)?void 0:r.call(a,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,k,v,w;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=(k=this.mutationCache.config).onSettled)?void 0:b.call(k,void 0,e,this.state.variables,this.state.context,this)),await(null==(v=(w=this.options).onSettled)?void 0:v.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!td(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),id.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function pd(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class dd extends Tp{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new ld({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(){id.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=>Np(e,t)))}findAll(e){return this.mutations.filter((t=>Np(e,t)))}notify(e){id.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 id.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Ap)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function hd(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,r,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(o=e.fetchOptions)||null==(r=o.meta)?void 0:r.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),p="backward"===(null==u?void 0:u.direction),d=(null==(a=e.state.data)?void 0:a.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,r)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{f=!0})),e.signal}});const s=g(a);return Promise.resolve(s).then((e=>y(t,o,e,r)))};let k;if(d.length)if(l){const t=void 0!==c,n=t?c:md(e.options,d);k=b(d,t,n)}else if(p){const t=void 0!==c,n=t?c:(v=e.options,w=d,null==v.getPreviousPageParam?void 0:v.getPreviousPageParam(w[0],w));k=b(d,t,n,!0)}else{m=[];const t=void 0===e.options.getNextPageParam;k=!s||!d[0]||s(d[0],0,d)?b([],t,h[0]):Promise.resolve(y([],h[0],d[0]));for(let n=1;n<d.length;n++)k=k.then((o=>{if(!s||!d[n]||s(d[n],n,d)){const r=t?h[n]:md(e.options,o);return b(o,t,r)}return Promise.resolve(y(o,h[n],d[n]))}))}else k=b([]);var v,w;const j=k.then((e=>({pages:e,pageParams:m})));return j}}}}function md(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class fd extends Tp{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),gd(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yd(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yd(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"),Gp(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 r=this.hasListeners();r&&bd(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!r||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!r||this.currentQuery===o&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Gp(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(Ap)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Ip||this.currentResult.isStale||!Op(this.options.staleTime))return;const e=Pp(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,!Ip&&!1!==this.options.enabled&&Op(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Xp.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,r=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:l}=e;let p,{dataUpdatedAt:d,error:h,errorUpdatedAt:m,fetchStatus:f,status:g}=l,y=!1,b=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&gd(e,t),i=r&&bd(e,n,t,o);(a||i)&&(f=td(e.options.networkMode)?"fetching":"paused",d||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)p=c.data,d=c.dataUpdatedAt,g=c.status,y=!0;else if(t.select&&void 0!==l.data)if(r&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)p=this.selectResult;else try{this.selectFn=t.select,p=t.select(l.data),p=Jp(null==r?void 0:r.data,p,t),this.selectResult=p,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else p=l.data;if(void 0!==t.placeholderData&&void 0===p&&"loading"===g){let e;if(null!=r&&r.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=r.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",p=Jp(null==r?void 0:r.data,e,t),b=!0)}this.selectError&&(h=this.selectError,p=this.selectResult,m=Date.now(),g="error");const k="fetching"===f,v="loading"===g,w="error"===g;return{status:g,fetchStatus:f,isLoading:v,isSuccess:"success"===g,isError:w,isInitialLoading:v&&k,data:p,dataUpdatedAt:d,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:k,isRefetching:k&&!v,isLoadingError:w&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:b,isPreviousData:y,isRefetchError:w&&0!==l.dataUpdatedAt,isStale:kd(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,Gp(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||od(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){id.batch((()=>{var t,n,o,r;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(r=this.options).onSettled)||o.call(r,this.currentResult.data,null);else if(e.onError){var a,i,s,u;null==(a=(i=this.options).onError)||a.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 gd(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&&yd(e,t,t.refetchOnMount)}function yd(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&kd(e,t)}return!1}function bd(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&kd(e,n)}function kd(e,t){return e.isStaleByTime(t.staleTime)}class vd extends Tp{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),Gp(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){id.batch((()=>{var t,n,o,r;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=(r=this.mutateOptions).onSettled)||o.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,u;null==(a=(i=this.mutateOptions).onError)||a.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 wd,jd={exports:{}},_d={};var Ed,Cd={};
207
+ function No(e){const t=Lo.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Mo(){return No(document.cookie)}function qo(e){const t=e.headers.get("cookie"),n=t?No(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?Mo():{}}case"include":return Mo();default:return{}}}(e);for(const t in o)e.headers.append("cookie",Lo.serialize(t,o[t]));const r=Y.getCookiesSync(e.url),a=Object.fromEntries(r.map((e=>[e.key,e.value])));for(const t of r)e.headers.append("cookie",t.toString());return{...o,...a,...n}}var Uo=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Uo||{});class Bo extends h{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(Ft(t)===t)return;const n=function(e){return new URL(`/${e}`,"http://localhost").searchParams}(t);n.forEach(((e,t)=>{})),c.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:Vt(new URL(e.request.url),this.info.path,e.resolutionContext?.baseUrl),cookies:qo(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=m(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||xo[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),r=(a=o.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(c.formatMessage(`${Ht()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${r}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Fo(e){return(t,n,o={})=>new Bo(e,t,n,o)}const Go={all:Fo(/.+/),head:Fo(Uo.HEAD),get:Fo(Uo.GET),post:Fo(Uo.POST),put:Fo(Uo.PUT),delete:Fo(Uo.DELETE),patch:Fo(Uo.PATCH),options:Fo(Uo.OPTIONS)},Vo=Symbol("bodyType");class Wo extends zt{[Vo]=null;constructor(e,t){const n=ze(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,Pe,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=Ae.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static text(e,t){const n=ze(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 Wo(e,n)}static json(e,t){const n=ze(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 Wo(o,n)}static xml(e,t){const n=ze(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new Wo(e,n)}static html(e,t){const n=ze(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new Wo(e,n)}static arrayBuffer(e,t){const n=ze(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 Wo(e,n)}static formData(e,t){return new Wo(e,ze(t))}}s("undefined"!=typeof URL,c.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 Ho,Ko={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},$o={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:{}},Qo={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:{}},Jo={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:{}},Xo=[{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:""}],Yo={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}]},Zo=[Go.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",(function(){return Wo.json(Ko)})),Go.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",(function(){return Wo.json($o)})),Go.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",(function(){return Wo.json(Qo)})),Go.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",(function(){return Wo.json(Jo)})),Go.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",(function(){return Wo.json(Xo)})),Go.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",(function(){return Wo.json(Yo)}))],er={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}}},tr={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}}},nr={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"}(Ho||(Ho={}));var or={sales_volume_metric_group:nr.sales_volume_metric_group,total_payments:nr.total_payments},rr=Go.get("/api/insights/overview-metrics",(function(){return Wo.json(or)})),ar=[Go.get("/api/v3/insights/overview-metrics/".concat(Ho.GENERAL),(function(){return Wo.json({sales_volume_metric_group:or.sales_volume_metric_group})})),Go.get("/api/v3/insights/overview-metrics/".concat(Ho.LATENCY),(function(){return Wo.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})})),Go.get("/api/v3/insights/overview-metrics/".concat(Ho.STATUS),(function(){return Wo.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})})),Go.get("/api/v3/insights/overview-metrics/".concat(Ho.SUBSCRIPTIONS),(function(){return Wo.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})}))],ir=e.__spreadArray([rr],ar,!0),sr=e.__spreadArray([Go.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",(function(){return Wo.json(er)})),Go.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",(function(){return Wo.json(tr)})),Go.get("*/dialogs",(function(){return Wo.json({})})),Go.get("*/accounts/webhooks/:accountCode",(function(){return Wo.json({})})),Go.get("*/accounts/webhooks/params-catalog",(function(){return Wo.json({})})),Go.get("*/accounts/webhooks-v2/:accountCode",(function(){return Wo.json({})}))],ir,!0),ur=e.__spreadArray(e.__spreadArray([],Zo,!0),sr,!0),cr=function(...e){return new So(...e)}.apply(void 0,ur),lr="MSW_ENABLED";function pr(e){e?(localStorage.setItem(lr,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(lr),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function dr(){return"true"===localStorage.getItem(lr)}function hr(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return pr(!0)},window.disableMSW=function(){return pr(!1)},window.isMSWEnabled=dr);const{toString:mr}=Object.prototype,{getPrototypeOf:fr}=Object,{iterator:gr,toStringTag:yr}=Symbol,br=(kr=Object.create(null),e=>{const t=mr.call(e);return kr[t]||(kr[t]=t.slice(8,-1).toLowerCase())});var kr;const vr=e=>(e=e.toLowerCase(),t=>br(t)===e),wr=e=>t=>typeof t===e,{isArray:jr}=Array,_r=wr("undefined");function Er(e){return null!==e&&!_r(e)&&null!==e.constructor&&!_r(e.constructor)&&xr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cr=vr("ArrayBuffer");const Sr=wr("string"),xr=wr("function"),Rr=wr("number"),Tr=e=>null!==e&&"object"==typeof e,Ir=e=>{if("object"!==br(e))return!1;const t=fr(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||yr in e||gr in e)},Ar=vr("Date"),Or=vr("File"),Pr=vr("Blob"),zr=vr("FileList"),Dr=vr("URLSearchParams"),[Lr,Nr,Mr,qr]=["ReadableStream","Request","Response","Headers"].map(vr);function Ur(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),jr(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{if(Er(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let i;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function Br(e,t){if(Er(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Fr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Gr=e=>!_r(e)&&e!==Fr;const Vr=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&fr(Uint8Array)),Wr=vr("HTMLFormElement"),Hr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kr=vr("RegExp"),$r=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ur(n,((n,r)=>{let a;!1!==(a=t(n,r,e))&&(o[r]=a||n)})),Object.defineProperties(e,o)};const Qr=vr("AsyncFunction"),Jr=(Xr="function"==typeof setImmediate,Yr=xr(Fr.postMessage),Xr?setImmediate:Yr?(Zr=`axios@${Math.random()}`,ea=[],Fr.addEventListener("message",(({source:e,data:t})=>{e===Fr&&t===Zr&&ea.length&&ea.shift()()}),!1),e=>{ea.push(e),Fr.postMessage(Zr,"*")}):e=>setTimeout(e));var Xr,Yr,Zr,ea;const ta="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Fr):"undefined"!=typeof process&&process.nextTick||Jr;var na={isArray:jr,isArrayBuffer:Cr,isBuffer:Er,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||xr(e.append)&&("formdata"===(t=br(e))||"object"===t&&xr(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Cr(e.buffer),t},isString:Sr,isNumber:Rr,isBoolean:e=>!0===e||!1===e,isObject:Tr,isPlainObject:Ir,isEmptyObject:e=>{if(!Tr(e)||Er(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Lr,isRequest:Nr,isResponse:Mr,isHeaders:qr,isUndefined:_r,isDate:Ar,isFile:Or,isBlob:Pr,isRegExp:Kr,isFunction:xr,isStream:e=>Tr(e)&&xr(e.pipe),isURLSearchParams:Dr,isTypedArray:Vr,isFileList:zr,forEach:Ur,merge:function e(){const{caseless:t,skipUndefined:n}=Gr(this)&&this||{},o={},r=(r,a)=>{const i=t&&Br(o,a)||a;Ir(o[i])&&Ir(r)?o[i]=e(o[i],r):Ir(r)?o[i]=e({},r):jr(r)?o[i]=r.slice():n&&_r(r)||(o[i]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ur(arguments[e],r);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(Ur(t,((t,o)=>{n&&xr(t)?e[o]=hr(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 r,a,i;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)i=r[a],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&fr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:br,kindOfTest:vr,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(jr(e))return e;let t=e.length;if(!Rr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[gr]).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:Wr,hasOwnProperty:Hr,hasOwnProp:Hr,reduceDescriptors:$r,freezeMethods:e=>{$r(e,((t,n)=>{if(xr(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];xr(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 jr(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:Br,global:Fr,isContextDefined:Gr,isSpecCompliantForm:function(e){return!!(e&&xr(e.append)&&"FormData"===e[yr]&&e[gr])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(Tr(e)){if(t.indexOf(e)>=0)return;if(Er(e))return e;if(!("toJSON"in e)){t[o]=e;const r=jr(e)?[]:{};return Ur(e,((e,t)=>{const a=n(e,o+1);!_r(a)&&(r[t]=a)})),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:Qr,isThenable:e=>e&&(Tr(e)||xr(e))&&xr(e.then)&&xr(e.catch),setImmediate:Jr,asap:ta,isIterable:e=>null!=e&&xr(e[gr])};function oa(e,t,n,o,r){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),r&&(this.response=r,this.status=r.status?r.status:null)}na.inherits(oa,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:na.toJSONObject(this.config),code:this.code,status:this.status}}});const ra=oa.prototype,aa={};["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=>{aa[e]={value:e}})),Object.defineProperties(oa,aa),Object.defineProperty(ra,"isAxiosError",{value:!0}),oa.from=(e,t,n,o,r,a)=>{const i=Object.create(ra);na.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const s=e&&e.message?e.message:"Error",u=null==t&&e?e.code:t;return oa.call(i,s,u,n,o,r),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};function ia(e){return na.isPlainObject(e)||na.isArray(e)}function sa(e){return na.endsWith(e,"[]")?e.slice(0,-2):e}function ua(e,t,n){return e?e.concat(t).map((function(e,t){return e=sa(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ca=na.toFlatObject(na,{},null,(function(e){return/^is[A-Z]/.test(e)}));function la(e,t,n){if(!na.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=na.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!na.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&na.isSpecCompliantForm(t);if(!na.isFunction(r))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(na.isDate(e))return e.toISOString();if(na.isBoolean(e))return e.toString();if(!s&&na.isBlob(e))throw new oa("Blob is not supported. Use a Buffer instead.");return na.isArrayBuffer(e)||na.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(na.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(na.isArray(e)&&function(e){return na.isArray(e)&&!e.some(ia)}(e)||(na.isFileList(e)||na.endsWith(n,"[]"))&&(s=na.toArray(e)))return n=sa(n),s.forEach((function(e,o){!na.isUndefined(e)&&null!==e&&t.append(!0===i?ua([n],o,a):null===i?n:n+"[]",u(e))})),!1;return!!ia(e)||(t.append(ua(r,n,a),u(e)),!1)}const l=[],p=Object.assign(ca,{defaultVisitor:c,convertValue:u,isVisitable:ia});if(!na.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!na.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),na.forEach(n,(function(n,a){!0===(!(na.isUndefined(n)||null===n)&&r.call(t,n,na.isString(a)?a.trim():a,o,p))&&e(n,o?o.concat(a):[a])})),l.pop()}}(e),t}function pa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function da(e,t){this._pairs=[],e&&la(e,this,t)}const ha=da.prototype;function ma(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function fa(e,t,n){if(!t)return e;const o=n&&n.encode||ma;na.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let a;if(a=r?r(t,n):na.isURLSearchParams(t)?t.toString():new da(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}ha.append=function(e,t){this._pairs.push([e,t])},ha.toString=function(e){const t=e?function(t){return e.call(this,t,pa)}:pa;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ga=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){na.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ya={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ba={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:da,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ka="undefined"!=typeof window&&"undefined"!=typeof document,va="object"==typeof navigator&&navigator||void 0,wa=ka&&(!va||["ReactNative","NativeScript","NS"].indexOf(va.product)<0),ja="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_a=ka&&window.location.href||"http://localhost";var Ea={...Object.freeze({__proto__:null,hasBrowserEnv:ka,hasStandardBrowserEnv:wa,hasStandardBrowserWebWorkerEnv:ja,navigator:va,origin:_a}),...ba};function Ca(e){function t(e,n,o,r){let a=e[r++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=r>=e.length;if(a=!a&&na.isArray(o)?o.length:a,s)return na.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!i;o[a]&&na.isObject(o[a])||(o[a]=[]);return t(e,n,o[a],r)&&na.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let a;for(o=0;o<r;o++)a=n[o],t[a]=e[a];return t}(o[a])),!i}if(na.isFormData(e)&&na.isFunction(e.entries)){const n={};return na.forEachEntry(e,((e,o)=>{t(function(e){return na.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const Sa={transitional:ya,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=na.isObject(e);r&&na.isHTMLForm(e)&&(e=new FormData(e));if(na.isFormData(e))return o?JSON.stringify(Ca(e)):e;if(na.isArrayBuffer(e)||na.isBuffer(e)||na.isStream(e)||na.isFile(e)||na.isBlob(e)||na.isReadableStream(e))return e;if(na.isArrayBufferView(e))return e.buffer;if(na.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return la(e,new Ea.classes.URLSearchParams,{visitor:function(e,t,n,o){return Ea.isNode&&na.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=na.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return la(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(na.isString(e))try{return(t||JSON.parse)(e),na.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Sa.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(na.isResponse(e)||na.isReadableStream(e))return e;if(e&&na.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw oa.from(e,oa.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:Ea.classes.FormData,Blob:Ea.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};na.forEach(["delete","get","head","post","put","patch"],(e=>{Sa.headers[e]={}}));var xa=Sa;const Ra=na.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 Ta=Symbol("internals");function Ia(e){return e&&String(e).trim().toLowerCase()}function Aa(e){return!1===e||null==e?e:na.isArray(e)?e.map(Aa):String(e)}function Oa(e,t,n,o,r){return na.isFunction(o)?o.call(this,t,n):(r&&(t=n),na.isString(t)?na.isString(o)?-1!==t.indexOf(o):na.isRegExp(o)?o.test(t):void 0:void 0)}class Pa{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Ia(t);if(!r)throw new Error("header name must be a non-empty string");const a=na.findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||t]=Aa(e))}const a=(e,t)=>na.forEach(e,((e,n)=>r(e,n,t)));if(na.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(na.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&Ra[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(na.isObject(e)&&na.isIterable(e)){let n,o,r={};for(const t of e){if(!na.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?na.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=Ia(e)){const n=na.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(na.isFunction(t))return t.call(this,e,n);if(na.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ia(e)){const n=na.findKey(this,e);return!(!n||void 0===this[n]||t&&!Oa(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=Ia(e)){const r=na.findKey(n,e);!r||t&&!Oa(0,n[r],r,t)||(delete n[r],o=!0)}}return na.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!Oa(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return na.forEach(this,((o,r)=>{const a=na.findKey(n,r);if(a)return t[a]=Aa(o),void delete t[r];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();i!==r&&delete t[r],t[i]=Aa(o),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return na.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&na.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[Ta]=this[Ta]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Ia(e);t[o]||(!function(e,t){const n=na.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[o]=!0)}return na.isArray(e)?e.forEach(o):o(e),this}}Pa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),na.reduceDescriptors(Pa.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),na.freezeMethods(Pa);var za=Pa;function Da(e,t){const n=this||xa,o=t||n,r=za.from(o.headers);let a=o.data;return na.forEach(e,(function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)})),r.normalize(),a}function La(e){return!(!e||!e.__CANCEL__)}function Na(e,t,n){oa.call(this,null==e?"canceled":e,oa.ERR_CANCELED,t,n),this.name="CanceledError"}function Ma(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new oa("Request failed with status code "+n.status,[oa.ERR_BAD_REQUEST,oa.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}na.inherits(Na,oa,{__CANCEL__:!0});const qa=(e,t,n=3)=>{let o=0;const r=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=o[i];r||(r=u),n[a]=s,o[a]=u;let l=i,p=0;for(;l!==a;)p+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-r<t)return;const d=c&&u-c;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,o,r=0,a=1e3/t;const i=(t,a=Date.now())=>{r=a,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=a?i(e,t):(n=e,o||(o=setTimeout((()=>{o=null,i(n)}),a-s)))},()=>n&&i(n)]}((n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-o,u=r(s);o=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&a<=i?(i-a)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Ua=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Ba=e=>(...t)=>na.asap((()=>e(...t)));var Fa=Ea.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ea.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ea.origin),Ea.navigator&&/(msie|trident)/i.test(Ea.navigator.userAgent)):()=>!0,Ga=Ea.hasStandardBrowserEnv?{write(e,t,n,o,r,a){const i=[e+"="+encodeURIComponent(t)];na.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),na.isString(o)&&i.push("path="+o),na.isString(r)&&i.push("domain="+r),!0===a&&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 Va(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 Wa=e=>e instanceof za?{...e}:e;function Ha(e,t){t=t||{};const n={};function o(e,t,n,o){return na.isPlainObject(e)&&na.isPlainObject(t)?na.merge.call({caseless:o},e,t):na.isPlainObject(t)?na.merge({},t):na.isArray(t)?t.slice():t}function r(e,t,n,r){return na.isUndefined(t)?na.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function a(e,t){if(!na.isUndefined(t))return o(void 0,t)}function i(e,t){return na.isUndefined(t)?na.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,a){return a in t?o(n,r):a in e?o(void 0,n):void 0}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>r(Wa(e),Wa(t),0,!0)};return na.forEach(Object.keys({...e,...t}),(function(o){const a=u[o]||r,i=a(e[o],t[o],o);na.isUndefined(i)&&a!==s||(n[o]=i)})),n}var Ka=e=>{const t=Ha({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=za.from(i),t.url=fa(Va(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),na.isFormData(n))if(Ea.hasStandardBrowserEnv||Ea.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(na.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)}))}if(Ea.hasStandardBrowserEnv&&(o&&na.isFunction(o)&&(o=o(t)),o||!1!==o&&Fa(t.url))){const e=r&&a&&Ga.read(a);e&&i.set(r,e)}return t};var $a="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=Ka(e);let r=o.data;const a=za.from(o.headers).normalize();let i,s,u,c,l,{responseType:p,onUploadProgress:d,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=za.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Ma((function(e){t(e),m()}),(function(e){n(e),m()}),{data:p&&"text"!==p&&"json"!==p?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 oa("Request aborted",oa.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const o=new oa(t&&t.message?t.message:"Network Error",oa.ERR_NETWORK,e,f);o.event=t||null,n(o),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||ya;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new oa(t,r.clarifyTimeoutError?oa.ETIMEDOUT:oa.ECONNABORTED,e,f)),f=null},void 0===r&&a.setContentType(null),"setRequestHeader"in f&&na.forEach(a.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),na.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),p&&"json"!==p&&(f.responseType=o.responseType),h&&([u,l]=qa(h,!0),f.addEventListener("progress",u)),d&&f.upload&&([s,c]=qa(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{f&&(n(!t||t.type?new Na(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===Ea.protocols.indexOf(y)?n(new oa("Unsupported protocol "+y+":",oa.ERR_BAD_REQUEST,e)):f.send(r||null)}))};var Qa=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const r=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof oa?t:new Na(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,r(new oa(`timeout ${t} of ms exceeded`,oa.ETIMEDOUT))}),t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)})),e=null)};e.forEach((e=>e.addEventListener("abort",r)));const{signal:s}=o;return s.unsubscribe=()=>na.asap(i),s}};const Ja=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Xa=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()}},Ya=(e,t,n,o)=>{const r=async function*(e,t){for await(const n of Xa(e))yield*Ja(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return s(),void e.close();let a=o.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},{isFunction:Za}=na,ei=(({Request:e,Response:t})=>({Request:e,Response:t}))(na.global),{ReadableStream:ti,TextEncoder:ni}=na.global,oi=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ri=e=>{e=na.merge.call({skipUndefined:!0},ei,e);const{fetch:t,Request:n,Response:o}=e,r=t?Za(t):"function"==typeof fetch,a=Za(n),i=Za(o);if(!r)return!1;const s=r&&Za(ti),u=r&&("function"==typeof ni?(e=>t=>e.encode(t))(new ni):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=a&&s&&oi((()=>{let e=!1;const t=new n(Ea.origin,{body:new ti,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),l=i&&s&&oi((()=>na.isReadableStream(new o("").body))),p={stream:l&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new oa(`Response type '${e}' is not supported`,oa.ERR_NOT_SUPPORT,n)})}));const d=async(e,t)=>{const o=na.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(na.isBlob(e))return e.size;if(na.isSpecCompliantForm(e)){const t=new n(Ea.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return na.isArrayBufferView(e)||na.isArrayBuffer(e)?e.byteLength:(na.isURLSearchParams(e)&&(e+=""),na.isString(e)?(await u(e)).byteLength:void 0)})(t):o};return async e=>{let{url:r,method:i,data:s,signal:u,cancelToken:h,timeout:m,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:b,withCredentials:k="same-origin",fetchOptions:v}=Ka(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let j=Qa([u,h&&h.toAbortSignal()],m),_=null;const E=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let C;try{if(g&&c&&"get"!==i&&"head"!==i&&0!==(C=await d(b,s))){let e,t=new n(r,{method:"POST",body:s,duplex:"half"});if(na.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Ua(C,qa(Ba(g)));s=Ya(t.body,65536,e,n)}}na.isString(k)||(k=k?"include":"omit");const t=a&&"credentials"in n.prototype,u={...v,signal:j,method:i.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?k:void 0};_=a&&new n(r,u);let h=await(a?w(_,v):w(r,u));const m=l&&("stream"===y||"response"===y);if(l&&(f||m&&E)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=h[t]}));const t=na.toFiniteNumber(h.headers.get("content-length")),[n,r]=f&&Ua(t,qa(Ba(f),!0))||[];h=new o(Ya(h.body,65536,n,(()=>{r&&r(),E&&E()})),e)}y=y||"text";let S=await p[na.findKey(p,y)||"text"](h,e);return!m&&E&&E(),await new Promise(((t,n)=>{Ma(t,n,{data:S,headers:za.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:_})}))}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new oa("Network Error",oa.ERR_NETWORK,e,_),{cause:t.cause||t});throw oa.from(t,t&&t.code,e,_)}}},ai=new Map,ii=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:r}=t,a=[o,r,n];let i,s,u=a.length,c=ai;for(;u--;)i=a[u],s=c.get(i),void 0===s&&c.set(i,s=u?new Map:ri(t)),c=s;return s};ii();const si={http:null,xhr:$a,fetch:{get:ii}};na.forEach(si,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ui=e=>`- ${e}`,ci=e=>na.isFunction(e)||null===e||!1===e;var li=(e,t)=>{e=na.isArray(e)?e:[e];const{length:n}=e;let o,r;const a={};for(let i=0;i<n;i++){let n;if(o=e[i],r=o,!ci(o)&&(r=si[(n=String(o)).toLowerCase()],void 0===r))throw new oa(`Unknown adapter '${n}'`);if(r&&(na.isFunction(r)||(r=r.get(t))))break;a[n||"#"+i]=r}if(!r){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 oa("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(ui).join("\n"):" "+ui(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function pi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Na(null,e)}function di(e){pi(e),e.headers=za.from(e.headers),e.data=Da.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return li(e.adapter||xa.adapter,e)(e).then((function(t){return pi(e),t.data=Da.call(e,e.transformResponse,t),t.headers=za.from(t.headers),t}),(function(t){return La(t)||(pi(e),t&&t.response&&(t.response.data=Da.call(e,e.transformResponse,t.response),t.response.headers=za.from(t.response.headers))),Promise.reject(t)}))}const hi="1.12.2",mi={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{mi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const fi={};mi.transitional=function(e,t,n){function o(e,t){return"[Axios v"+hi+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new oa(o(r," has been removed"+(t?" in "+t:"")),oa.ERR_DEPRECATED);return t&&!fi[r]&&(fi[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},mi.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var gi={assertOptions:function(e,t,n){if("object"!=typeof e)throw new oa("options must be an object",oa.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new oa("option "+a+" must be "+n,oa.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new oa("Unknown option "+a,oa.ERR_BAD_OPTION)}},validators:mi};const yi=gi.validators;let bi=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ga,response:new ga}}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=Ha(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&gi.assertOptions(n,{silentJSONParsing:yi.transitional(yi.boolean),forcedJSONParsing:yi.transitional(yi.boolean),clarifyTimeoutError:yi.transitional(yi.boolean)},!1),null!=o&&(na.isFunction(o)?t.paramsSerializer={serialize:o}:gi.assertOptions(o,{encode:yi.function,serialize:yi.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),gi.assertOptions(t,{baseUrl:yi.spelling("baseURL"),withXsrfToken:yi.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&na.merge(r.common,r[t.method]);r&&na.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=za.concat(a,r);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,p=0;if(!s){const e=[di.bind(this),void 0];for(e.unshift(...i),e.push(...u),l=e.length,c=Promise.resolve(t);p<l;)c=c.then(e[p++],e[p++]);return c}l=i.length;let d=t;for(;p<l;){const e=i[p++],t=i[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=di.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=u.length;p<l;)c=c.then(u[p++],u[p++]);return c}getUri(e){return fa(Va((e=Ha(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};na.forEach(["delete","get","head","options"],(function(e){bi.prototype[e]=function(t,n){return this.request(Ha(n||{},{method:e,url:t,data:(n||{}).data}))}})),na.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,r){return this.request(Ha(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}bi.prototype[e]=t(),bi.prototype[e+"Form"]=t(!0)}));var ki=bi;class vi{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,r){n.reason||(n.reason=new Na(e,o,r),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 vi((function(t){e=t})),cancel:e}}}var wi=vi;const ji={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(ji).forEach((([e,t])=>{ji[t]=e}));var _i=ji;const Ei=function e(t){const n=new ki(t),o=hr(ki.prototype.request,n);return na.extend(o,ki.prototype,n,{allOwnKeys:!0}),na.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ha(t,n))},o}(xa);Ei.Axios=ki,Ei.CanceledError=Na,Ei.CancelToken=wi,Ei.isCancel=La,Ei.VERSION=hi,Ei.toFormData=la,Ei.AxiosError=oa,Ei.Cancel=Ei.CanceledError,Ei.all=function(e){return Promise.all(e)},Ei.spread=function(e){return function(t){return e.apply(null,t)}},Ei.isAxiosError=function(e){return na.isObject(e)&&!0===e.isAxiosError},Ei.mergeConfig=Ha,Ei.AxiosHeaders=za,Ei.formToJSON=e=>Ca(na.isHTMLForm(e)?new FormData(e):e),Ei.getAdapter=li,Ei.HttpStatusCode=_i,Ei.default=Ei;var Ci=Ei,Si=function(e){var t=[];return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];if(Array.isArray(o)){var r=o.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(r))}else null!=o&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o))))})),t.join("&")},xi=function(t){function n(n){var o,r,a,i,s=this;return(s=t.call(this,n)||this).token="",null===(r=null===(o=s.instance)||void 0===o?void 0:o.interceptors)||void 0===r||r.request.use((function(t){return e.__assign(e.__assign({},t),{defaults:{headers:e.__assign(e.__assign({},t.headers),{Authorization:"Bearer ".concat(s.getToken())})}})}),(function(e){return Promise.reject(e)})),null===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.response.use((function(t){return e.__assign({},t)}),(function(e){return Promise.reject(e)})),s}return e.__extends(n,t),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=Ci.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=Ci.create(e)})),Ri="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ti(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 Ii=TypeError,Ai=Ti(Object.freeze({__proto__:null,default:{}})),Oi="function"==typeof Map&&Map.prototype,Pi=Object.getOwnPropertyDescriptor&&Oi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,zi=Oi&&Pi&&"function"==typeof Pi.get?Pi.get:null,Di=Oi&&Map.prototype.forEach,Li="function"==typeof Set&&Set.prototype,Ni=Object.getOwnPropertyDescriptor&&Li?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Mi=Li&&Ni&&"function"==typeof Ni.get?Ni.get:null,qi=Li&&Set.prototype.forEach,Ui="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Bi="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Fi="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Gi=Boolean.prototype.valueOf,Vi=Object.prototype.toString,Wi=Function.prototype.toString,Hi=String.prototype.match,Ki=String.prototype.slice,$i=String.prototype.replace,Qi=String.prototype.toUpperCase,Ji=String.prototype.toLowerCase,Xi=RegExp.prototype.test,Yi=Array.prototype.concat,Zi=Array.prototype.join,es=Array.prototype.slice,ts=Math.floor,ns="function"==typeof BigInt?BigInt.prototype.valueOf:null,os=Object.getOwnPropertySymbols,rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,as="function"==typeof Symbol&&"object"==typeof Symbol.iterator,is="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===as||"symbol")?Symbol.toStringTag:null,ss=Object.prototype.propertyIsEnumerable,us=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function cs(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Xi.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-ts(-e):ts(e);if(o!==e){var r=String(o),a=Ki.call(t,r.length+1);return $i.call(r,n,"$&_")+"."+$i.call($i.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $i.call(t,n,"$&_")}var ls=Ai,ps=ls.custom,ds=ws(ps)?ps:null,hs={__proto__:null,double:'"',single:"'"},ms={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},fs=function e(t,n,o,r){var a=n||{};if(_s(a,"quoteStyle")&&!_s(hs,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_s(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!_s(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_s(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_s(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Ss(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return s?cs(t,u):u}if("bigint"==typeof t){var c=String(t)+"n";return s?cs(t,c):c}var l=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return ks(t)?"[Array]":"[Object]";var p=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Zi.call(Array(e.indent+1)," ")}return{base:n,prev:Zi.call(Array(t+1),n)}}(a,o);if(void 0===r)r=[];else if(Cs(r,t)>=0)return"[Circular]";function d(t,n,i){if(n&&(r=es.call(r)).push(n),i){var s={depth:a.depth};return _s(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,r)}return e(t,a,o+1,r)}if("function"==typeof t&&!vs(t)){var h=function(e){if(e.name)return e.name;var t=Hi.call(Wi.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),m=Os(t,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Zi.call(m,", ")+" }":"")}if(ws(t)){var f=as?$i.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):rs.call(t);return"object"!=typeof t||as?f:Rs(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="<"+Ji.call(String(t.nodeName)),y=t.attributes||[],b=0;b<y.length;b++)g+=" "+y[b].name+"="+gs(ys(y[b].value),"double",a);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Ji.call(String(t.nodeName))+">"}if(ks(t)){if(0===t.length)return"[]";var k=Os(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(Cs(e[t],"\n")>=0)return!1;return!0}(k)?"["+As(k,p)+"]":"[ "+Zi.call(k,", ")+" ]"}if(function(e){return"[object Error]"===Es(e)&&bs(e)}(t)){var v=Os(t,d);return"cause"in Error.prototype||!("cause"in t)||ss.call(t,"cause")?0===v.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Zi.call(v,", ")+" }":"{ ["+String(t)+"] "+Zi.call(Yi.call("[cause]: "+d(t.cause),v),", ")+" }"}if("object"==typeof t&&i){if(ds&&"function"==typeof t[ds]&&ls)return ls(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!zi||!e||"object"!=typeof e)return!1;try{zi.call(e);try{Mi.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var w=[];return Di&&Di.call(t,(function(e,n){w.push(d(n,t,!0)+" => "+d(e,t))})),Is("Map",zi.call(t),w,p)}if(function(e){if(!Mi||!e||"object"!=typeof e)return!1;try{Mi.call(e);try{zi.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var j=[];return qi&&qi.call(t,(function(e){j.push(d(e,t))})),Is("Set",Mi.call(t),j,p)}if(function(e){if(!Ui||!e||"object"!=typeof e)return!1;try{Ui.call(e,Ui);try{Bi.call(e,Bi)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Ts("WeakMap");if(function(e){if(!Bi||!e||"object"!=typeof e)return!1;try{Bi.call(e,Bi);try{Ui.call(e,Ui)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Ts("WeakSet");if(function(e){if(!Fi||!e||"object"!=typeof e)return!1;try{return Fi.call(e),!0}catch(e){}return!1}(t))return Ts("WeakRef");if(function(e){return"[object Number]"===Es(e)&&bs(e)}(t))return Rs(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!ns)return!1;try{return ns.call(e),!0}catch(e){}return!1}(t))return Rs(d(ns.call(t)));if(function(e){return"[object Boolean]"===Es(e)&&bs(e)}(t))return Rs(Gi.call(t));if(function(e){return"[object String]"===Es(e)&&bs(e)}(t))return Rs(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Ri&&t===Ri)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Es(e)&&bs(e)}(t)&&!vs(t)){var _=Os(t,d),E=us?us(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&is&&Object(t)===t&&is in t?Ki.call(Es(t),8,-1):C?"Object":"",x=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+Zi.call(Yi.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?x+"{}":p?x+"{"+As(_,p)+"}":x+"{ "+Zi.call(_,", ")+" }"}return String(t)};function gs(e,t,n){var o=n.quoteStyle||t,r=hs[o];return r+e+r}function ys(e){return $i.call(String(e),/"/g,"&quot;")}function bs(e){return!is||!("object"==typeof e&&(is in e||void 0!==e[is]))}function ks(e){return"[object Array]"===Es(e)&&bs(e)}function vs(e){return"[object RegExp]"===Es(e)&&bs(e)}function ws(e){if(as)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!rs)return!1;try{return rs.call(e),!0}catch(e){}return!1}var js=Object.prototype.hasOwnProperty||function(e){return e in this};function _s(e,t){return js.call(e,t)}function Es(e){return Vi.call(e)}function Cs(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 Ss(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Ss(Ki.call(e,0,t.maxStringLength),t)+o}var r=ms[t.quoteStyle||"single"];return r.lastIndex=0,gs($i.call($i.call(e,r,"\\$1"),/[\x00-\x1f]/g,xs),"single",t)}function xs(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":"")+Qi.call(t.toString(16))}function Rs(e){return"Object("+e+")"}function Ts(e){return e+" { ? }"}function Is(e,t,n,o){return e+" ("+t+") {"+(o?As(n,o):Zi.call(n,", "))+"}"}function As(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Zi.call(e,","+n)+"\n"+t.prev}function Os(e,t){var n=ks(e),o=[];if(n){o.length=e.length;for(var r=0;r<e.length;r++)o[r]=_s(e,r)?t(e[r],e):""}var a,i="function"==typeof os?os(e):[];if(as){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var u in e)_s(e,u)&&(n&&String(Number(u))===u&&u<e.length||as&&a["$"+u]instanceof Symbol||(Xi.call(/[^\w$]/,u)?o.push(t(u,e)+": "+t(e[u],e)):o.push(u+": "+t(e[u],e))));if("function"==typeof os)for(var c=0;c<i.length;c++)ss.call(e,i[c])&&o.push("["+t(i[c])+"]: "+t(e[i[c]],e));return o}var Ps=fs,zs=Ii,Ds=function(e,t,n){for(var o,r=e;null!=(o=r.next);r=o)if(o.key===t)return r.next=o.next,n||(o.next=e.next,e.next=o),o},Ls=Object,Ns=Error,Ms=EvalError,qs=RangeError,Us=ReferenceError,Bs=SyntaxError,Fs=URIError,Gs=Math.abs,Vs=Math.floor,Ws=Math.max,Hs=Math.min,Ks=Math.pow,$s=Math.round,Qs=Number.isNaN||function(e){return e!=e},Js=Object.getOwnPropertyDescriptor;if(Js)try{Js([],"length")}catch(e){Js=null}var Xs=Js,Ys=Object.defineProperty||!1;if(Ys)try{Ys({},"a",{value:1})}catch(e){Ys=!1}var Zs,eu,tu,nu,ou,ru,au,iu,su,uu,cu,lu,pu,du,hu,mu,fu=Ys;function gu(){return ru?ou:(ru=1,ou="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function yu(){return iu?au:(iu=1,au=Ls.getPrototypeOf||null)}function bu(){if(uu)return su;uu=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 r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};return su=function(o){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var a,i=function(e,t){for(var n=[],o=t||0,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments,1),s=t(0,r.length-i.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(a=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 a){var e=r.apply(this,n(i,arguments));return Object(e)===e?e:this}return r.apply(o,n(i,arguments))})),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},su}function ku(){if(lu)return cu;lu=1;var e=bu();return cu=Function.prototype.bind||e}function vu(){return du?pu:(du=1,pu=Function.prototype.call)}function wu(){return mu?hu:(mu=1,hu=Function.prototype.apply)}var ju,_u,Eu,Cu,Su,xu,Ru,Tu="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Iu=ku(),Au=wu(),Ou=vu(),Pu=Tu||Iu.call(Ou,Au),zu=ku(),Du=Ii,Lu=vu(),Nu=Pu,Mu=function(e){if(e.length<1||"function"!=typeof e[0])throw new Du("a function is required");return Nu(zu,Lu,e)};var qu=Ls,Uu=Ns,Bu=Ms,Fu=qs,Gu=Us,Vu=Bs,Wu=Ii,Hu=Fs,Ku=Gs,$u=Vs,Qu=Ws,Ju=Hs,Xu=Ks,Yu=$s,Zu=function(e){return Qs(e)||0===e?e:e<0?-1:1},ec=Function,tc=function(e){try{return ec('"use strict"; return ('+e+").constructor;")()}catch(e){}},nc=Xs,oc=fu,rc=function(){throw new Wu},ac=nc?function(){try{return rc}catch(e){try{return nc(arguments,"callee").get}catch(e){return rc}}}():rc,ic=function(){if(nu)return tu;nu=1;var e="undefined"!=typeof Symbol&&Symbol,t=eu?Zs:(eu=1,Zs=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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return tu=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),sc=function(){if(Cu)return Eu;Cu=1;var e=gu(),t=yu(),n=function(){if(_u)return ju;_u=1;var e,t=Mu,n=Xs;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__"),r=Object,a=r.getPrototypeOf;return ju=o&&"function"==typeof o.get?t([o.get]):"function"==typeof a&&function(e){return a(null==e?e:r(e))}}();return Eu=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}(),uc=yu(),cc=gu(),lc=wu(),pc=vu(),dc={},hc="undefined"!=typeof Uint8Array&&sc?sc(Uint8Array):Ru,mc={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Ru:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Ru:ArrayBuffer,"%ArrayIteratorPrototype%":ic&&sc?sc([][Symbol.iterator]()):Ru,"%AsyncFromSyncIteratorPrototype%":Ru,"%AsyncFunction%":dc,"%AsyncGenerator%":dc,"%AsyncGeneratorFunction%":dc,"%AsyncIteratorPrototype%":dc,"%Atomics%":"undefined"==typeof Atomics?Ru:Atomics,"%BigInt%":"undefined"==typeof BigInt?Ru:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Ru:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Ru:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Ru:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Uu,"%eval%":eval,"%EvalError%":Bu,"%Float16Array%":"undefined"==typeof Float16Array?Ru:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Ru:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Ru:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Ru:FinalizationRegistry,"%Function%":ec,"%GeneratorFunction%":dc,"%Int8Array%":"undefined"==typeof Int8Array?Ru:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Ru:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Ru:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ic&&sc?sc(sc([][Symbol.iterator]())):Ru,"%JSON%":"object"==typeof JSON?JSON:Ru,"%Map%":"undefined"==typeof Map?Ru:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&ic&&sc?sc((new Map)[Symbol.iterator]()):Ru,"%Math%":Math,"%Number%":Number,"%Object%":qu,"%Object.getOwnPropertyDescriptor%":nc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Ru:Promise,"%Proxy%":"undefined"==typeof Proxy?Ru:Proxy,"%RangeError%":Fu,"%ReferenceError%":Gu,"%Reflect%":"undefined"==typeof Reflect?Ru:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Ru:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&ic&&sc?sc((new Set)[Symbol.iterator]()):Ru,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Ru:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ic&&sc?sc(""[Symbol.iterator]()):Ru,"%Symbol%":ic?Symbol:Ru,"%SyntaxError%":Vu,"%ThrowTypeError%":ac,"%TypedArray%":hc,"%TypeError%":Wu,"%Uint8Array%":"undefined"==typeof Uint8Array?Ru:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Ru:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Ru:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Ru:Uint32Array,"%URIError%":Hu,"%WeakMap%":"undefined"==typeof WeakMap?Ru:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Ru:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Ru:WeakSet,"%Function.prototype.call%":pc,"%Function.prototype.apply%":lc,"%Object.defineProperty%":oc,"%Object.getPrototypeOf%":uc,"%Math.abs%":Ku,"%Math.floor%":$u,"%Math.max%":Qu,"%Math.min%":Ju,"%Math.pow%":Xu,"%Math.round%":Yu,"%Math.sign%":Zu,"%Reflect.getPrototypeOf%":cc};if(sc)try{null.error}catch(e){var fc=sc(sc(e));mc["%Error.prototype%"]=fc}var gc,yc,bc,kc,vc,wc,jc,_c,Ec,Cc,Sc,xc,Rc,Tc,Ic,Ac,Oc,Pc,zc,Dc,Lc,Nc,Mc,qc,Uc=function e(t){var n;if("%AsyncFunction%"===t)n=tc("async function () {}");else if("%GeneratorFunction%"===t)n=tc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=tc("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&sc&&(n=sc(r.prototype))}return mc[t]=n,n},Bc={__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"]},Fc=ku(),Gc=function(){if(xu)return Su;xu=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=ku();return Su=n.call(e,t)}(),Vc=Fc.call(pc,Array.prototype.concat),Wc=Fc.call(lc,Array.prototype.splice),Hc=Fc.call(pc,String.prototype.replace),Kc=Fc.call(pc,String.prototype.slice),$c=Fc.call(pc,RegExp.prototype.exec),Qc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Jc=/\\(\\)?/g,Xc=function(e,t){var n,o=e;if(Gc(Bc,o)&&(o="%"+(n=Bc[o])[0]+"%"),Gc(mc,o)){var r=mc[o];if(r===dc&&(r=Uc(o)),void 0===r&&!t)throw new Wu("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new Vu("intrinsic "+e+" does not exist!")},Yc=function(e,t){if("string"!=typeof e||0===e.length)throw new Wu("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Wu('"allowMissing" argument must be a boolean');if(null===$c(/^%?[^%]*%?$/,e))throw new Vu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Kc(e,0,1),n=Kc(e,-1);if("%"===t&&"%"!==n)throw new Vu("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Vu("invalid intrinsic syntax, expected opening `%`");var o=[];return Hc(e,Qc,(function(e,t,n,r){o[o.length]=n?Hc(r,Jc,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",r=Xc("%"+o+"%",t),a=r.name,i=r.value,s=!1,u=r.alias;u&&(o=u[0],Wc(n,Vc([0,1],u)));for(var c=1,l=!0;c<n.length;c+=1){var p=n[c],d=Kc(p,0,1),h=Kc(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new Vu("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Gc(mc,a="%"+(o+="."+p)+"%"))i=mc[a];else if(null!=i){if(!(p in i)){if(!t)throw new Wu("base intrinsic for "+e+" exists, but the property is not available.");return}if(nc&&c+1>=n.length){var m=nc(i,p);i=(l=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:i[p]}else l=Gc(i,p),i=i[p];l&&!s&&(mc[a]=i)}}return i},Zc=Yc,el=Mu,tl=el([Zc("%String.prototype.indexOf%")]),nl=function(e,t){var n=Zc(e,!!t);return"function"==typeof n&&tl(e,".prototype.")>-1?el([n]):n},ol=nl,rl=fs,al=Ii,il=Yc("%Map%",!0),sl=ol("Map.prototype.get",!0),ul=ol("Map.prototype.set",!0),cl=ol("Map.prototype.has",!0),ll=ol("Map.prototype.delete",!0),pl=ol("Map.prototype.size",!0),dl=!!il&&function(){var e,t={assert:function(e){if(!t.has(e))throw new al("Side channel does not contain "+rl(e))},delete:function(t){if(e){var n=ll(e,t);return 0===pl(e)&&(e=void 0),n}return!1},get:function(t){if(e)return sl(e,t)},has:function(t){return!!e&&cl(e,t)},set:function(t,n){e||(e=new il),ul(e,t,n)}};return t},hl=nl,ml=fs,fl=dl,gl=Ii,yl=Yc("%WeakMap%",!0),bl=hl("WeakMap.prototype.get",!0),kl=hl("WeakMap.prototype.set",!0),vl=hl("WeakMap.prototype.has",!0),wl=hl("WeakMap.prototype.delete",!0),jl=Ii,_l=fs,El=(yl?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new gl("Side channel does not contain "+ml(e))},delete:function(n){if(yl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return wl(e,n)}else if(fl&&t)return t.delete(n);return!1},get:function(n){return yl&&n&&("object"==typeof n||"function"==typeof n)&&e?bl(e,n):t&&t.get(n)},has:function(n){return yl&&n&&("object"==typeof n||"function"==typeof n)&&e?vl(e,n):!!t&&t.has(n)},set:function(n,o){yl&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new yl),kl(e,n,o)):fl&&(t||(t=fl()),t.set(n,o))}};return n}:fl)||dl||function(){var e,t={assert:function(e){if(!t.has(e))throw new zs("Side channel does not contain "+Ps(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Ds(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=Ds(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Ds(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Ds(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},Cl=String.prototype.replace,Sl=/%20/g,xl="RFC3986",Rl={default:xl,formatters:{RFC1738:function(e){return Cl.call(e,Sl,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:xl},Tl=Rl,Il=Object.prototype.hasOwnProperty,Al=Array.isArray,Ol=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Pl=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},zl=1024,Dl={arrayToObject:Pl,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 r=t[o],a=r.obj[r.prop],i=Object.keys(a),s=0;s<i.length;++s){var u=i[s],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Al(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&o.push(n[r]);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,r){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<a.length;s+=zl){for(var u=a.length>=zl?a.slice(s,s+zl):a,c=[],l=0;l<u.length;++l){var p=u.charCodeAt(l);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||r===Tl.RFC1738&&(40===p||41===p)?c[c.length]=u.charAt(l):p<128?c[c.length]=Ol[p]:p<2048?c[c.length]=Ol[192|p>>6]+Ol[128|63&p]:p<55296||p>=57344?c[c.length]=Ol[224|p>>12]+Ol[128|p>>6&63]+Ol[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(l)),c[c.length]=Ol[240|p>>18]+Ol[128|p>>12&63]+Ol[128|p>>6&63]+Ol[128|63&p])}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(Al(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(Al(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!Il.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return Al(t)&&!Al(n)&&(r=Pl(t,o)),Al(t)&&Al(n)?(n.forEach((function(n,r){if(Il.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,o):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var a=n[r];return Il.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,t}),r)}},Ll=function(){var e,t={assert:function(e){if(!t.has(e))throw new jl("Side channel does not contain "+_l(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=El()),e.set(t,n)}};return t},Nl=Dl,Ml=Rl,ql=Object.prototype.hasOwnProperty,Ul={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Bl=Array.isArray,Fl=Array.prototype.push,Gl=function(e,t){Fl.apply(e,Bl(t)?t:[t])},Vl=Date.prototype.toISOString,Wl=Ml.default,Hl={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Nl.encode,encodeValuesOnly:!1,format:Wl,formatter:Ml.formatters[Wl],indices:!1,serializeDate:function(e){return Vl.call(e)},skipNulls:!1,strictNullHandling:!1},Kl={},$l=function e(t,n,o,r,a,i,s,u,c,l,p,d,h,m,f,g,y,b){for(var k,v=t,w=b,j=0,_=!1;void 0!==(w=w.get(Kl))&&!_;){var E=w.get(t);if(j+=1,void 0!==E){if(E===j)throw new RangeError("Cyclic object value");_=!0}void 0===w.get(Kl)&&(j=0)}if("function"==typeof l?v=l(n,v):v instanceof Date?v=h(v):"comma"===o&&Bl(v)&&(v=Nl.maybeMap(v,(function(e){return e instanceof Date?h(e):e}))),null===v){if(i)return c&&!g?c(n,Hl.encoder,y,"key",m):n;v=""}if("string"==typeof(k=v)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||Nl.isBuffer(v))return c?[f(g?n:c(n,Hl.encoder,y,"key",m))+"="+f(c(v,Hl.encoder,y,"value",m))]:[f(n)+"="+f(String(v))];var C,S=[];if(void 0===v)return S;if("comma"===o&&Bl(v))g&&c&&(v=Nl.maybeMap(v,c)),C=[{value:v.length>0?v.join(",")||null:void 0}];else if(Bl(l))C=l;else{var x=Object.keys(v);C=p?x.sort(p):x}var R=u?n.replace(/\./g,"%2E"):n,T=r&&Bl(v)&&1===v.length?R+"[]":R;if(a&&Bl(v)&&0===v.length)return T+"[]";for(var I=0;I<C.length;++I){var A=C[I],O="object"==typeof A&&void 0!==A.value?A.value:v[A];if(!s||null!==O){var P=d&&u?A.replace(/\./g,"%2E"):A,z=Bl(v)?"function"==typeof o?o(T,P):T:T+(d?"."+P:"["+P+"]");b.set(t,j);var D=Ll();D.set(Kl,b),Gl(S,e(O,z,o,r,a,i,s,u,"comma"===o&&g&&Bl(v)?null:c,l,p,d,h,m,f,g,y,D))}}return S},Ql=Dl,Jl=Object.prototype.hasOwnProperty,Xl=Array.isArray,Yl={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Ql.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Zl=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},ep=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},tp=function(e,t,n,o){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(r),s=i?r.slice(0,i.index):r,u=[];if(s){if(!n.plainObjects&&Jl.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var c=0;n.depth>0&&null!==(i=a.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&Jl.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("["+r.slice(i.index)+"]")}return function(e,t,n,o){for(var r=o?t:ep(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===r||n.strictNullHandling&&null===r)?[]:[].concat(r);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]=r:"__proto__"!==c&&(i[c]=r):i={0:r}}r=i}return r}(u,t,n,o)}},np=function(e,t){var n,o=e,r=function(e){if(!e)return Hl;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||Hl.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=Ml.default;if(void 0!==e.format){if(!ql.call(Ml.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,r=Ml.formatters[n],a=Hl.filter;if(("function"==typeof e.filter||Bl(e.filter))&&(a=e.filter),o=e.arrayFormat in Ul?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Hl.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||Hl.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Hl.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Hl.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Hl.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Hl.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Hl.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Hl.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Hl.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Hl.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Hl.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Hl.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Hl.strictNullHandling}}(t);"function"==typeof r.filter?o=(0,r.filter)("",o):Bl(r.filter)&&(n=r.filter);var a=[];if("object"!=typeof o||null===o)return"";var i=Ul[r.arrayFormat],s="comma"===i&&r.commaRoundTrip;n||(n=Object.keys(o)),r.sort&&n.sort(r.sort);for(var u=Ll(),c=0;c<n.length;++c){var l=n[c];r.skipNulls&&null===o[l]||Gl(a,$l(o[l],l,i,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var p=a.join(r.delimiter),d=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},op=function(e,t){var n=function(e){if(!e)return Yl;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?Yl.charset:e.charset,n=void 0===e.duplicates?Yl.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||Yl.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Yl.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Yl.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Yl.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Yl.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Yl.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Yl.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Yl.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Yl.decoder,delimiter:"string"==typeof e.delimiter||Ql.isRegExp(e.delimiter)?e.delimiter:Yl.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Yl.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Yl.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Yl.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Yl.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Yl.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Yl.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 r,a=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,a),s=-1,u=t.charset;if(t.charsetSentinel)for(r=0;r<i.length;++r)0===i[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[r]?u="utf-8":"utf8=%26%2310003%3B"===i[r]&&(u="iso-8859-1"),s=r,r=i.length);for(r=0;r<i.length;++r)if(r!==s){var c,l,p=i[r],d=p.indexOf("]="),h=-1===d?p.indexOf("="):d+1;-1===h?(c=t.decoder(p,Yl.decoder,u,"key"),l=t.strictNullHandling?null:""):(c=t.decoder(p.slice(0,h),Yl.decoder,u,"key"),l=Ql.maybeMap(ep(p.slice(h+1),t),(function(e){return t.decoder(e,Yl.decoder,u,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=Zl(l)),p.indexOf("[]=")>-1&&(l=Xl(l)?[l]:l);var m=Jl.call(n,c);m&&"combine"===t.duplicates?n[c]=Ql.combine(n[c],l):m&&"last"!==t.duplicates||(n[c]=l)}return n}(e,n):e,r=n.plainObjects?Object.create(null):{},a=Object.keys(o),i=0;i<a.length;++i){var s=a[i],u=tp(s,o[s],n,"string"==typeof e);r=Ql.merge(r,u,n)}return!0===n.allowSparse?r:Ql.compact(r)},rp={formats:Rl,parse:op,stringify:np},ap={withCredentials:!0,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 rp.stringify(e,{indices:!1})}};exports.SendPaymentNotification=void 0,gc=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(yc=gc.NotificationStatus||(gc.NotificationStatus={})).SETTLED="SETTLED",yc.NOT_SETTLED="NOT_SETTLED",(bc=gc.NotificationReason||(gc.NotificationReason={})).REFUNDED="REFUNDED",bc.RESOLVED="RESOLVED",bc.CANCELLED="CANCELLED",bc.SERVICE_SUSPENDED="SERVICE_SUSPENDED",bc.ORDER_STOPPED="ORDER_STOPPED",bc.DISMISS="DISMISS",exports.PaymentFiltersSection=void 0,(kc=exports.PaymentFiltersSection||(exports.PaymentFiltersSection={})).PAYMENTS="payments",kc.INSIGHTS="insights",exports.Organization=void 0,vc=exports.Organization||(exports.Organization={}),(wc=vc.CustomClaims||(vc.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",wc.USER_CODE="https://dashboard.dev.y.uno/user_code",wc.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,jc=exports.Country||(exports.Country={}),(_c=jc.CountryCode||(jc.CountryCode={})).COLOMBIA="CO",_c.MEXICO="MX",_c.BRAZIL="BR",_c.ARGENTINA="AR",_c.CHILE="CL",_c.PERU="PE",_c.URUGUAY="UR",_c.ECUADOR="EC",exports.Cms=void 0,Ec=exports.Cms||(exports.Cms={}),(Cc=Ec.Locale||(Ec.Locale={})).EN="en",Cc.ES="es",Cc.PT="pt",(Sc=Ec.Target||(Ec.Target={})).BLANK="_blank",Sc.PARENT="_parent",Sc.SELF="_self",Sc.TOP="_top",exports.ReportType=void 0,(xc=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",xc.TRANSACTIONS="TRANSACTIONS",xc.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",xc.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(Rc=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",Rc.DEFAULT="DEFAULT",Rc.CUSTOM="CUSTOM",exports.SmartRouting=void 0,Tc=exports.SmartRouting||(exports.SmartRouting={}),(Ic=Tc.StepType||(Tc.StepType={})).FRAUD="FRAUD",Ic.PAYMENT="PAYMENT",Ic.THREE_D_SECURE="THREE_D_SECURE",Ic.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(Ac=Tc.DeclineGroupType||(Tc.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",Ac.MAC_CODE="MAC_CODE",exports.DataReport=void 0,Oc=exports.DataReport||(exports.DataReport={}),(Pc=Oc.InsightsVolumeMetricsV2Path||(Oc.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",Pc.APPROVED_PAYMENTS="approved-payments",Pc.PAYMENT_METHODS="payment-methods",Pc.PROVIDERS="providers",Pc.COUNTRIES="countries",Pc.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",Pc.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(Oc.OverviewMetricType||(Oc.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(zc=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",zc.SETTLEMENTS="SETTLEMENTS",zc.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",zc.AGENDA="AGENDA",zc.SALES_CONCILIATION="SALES_CONCILIATION",zc.FEES="FEES",zc.ADVANCEMENTS="ADVANCEMENTS",zc.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",zc.SETTLEMENTS_FEES="SETTLEMENTS_FEES",zc.CASHFLOW="CASHFLOW",zc.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS",exports.ReconciliationAgendaInsight=void 0,(Dc=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",Dc.DAILY="AGENDA_DAILY_DISTRIBUTION",Dc.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",Dc.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION",exports.AI=void 0,Lc=exports.AI||(exports.AI={}),(Nc=Lc.AIGenerateStatus||(Lc.AIGenerateStatus={})).ACCEPTED="ACCEPTED",Nc.REFUSED="REFUSED",Nc.FRONT_FAILED="FRONT_FAILED",exports.OrganizationConfig=void 0,Mc=exports.OrganizationConfig||(exports.OrganizationConfig={}),(qc=Mc.ConfigType||(Mc.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",qc.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",qc.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN";var ip=["PAUSED","ACTIVE"],sp={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},up="DELETED",cp={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},lp=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},pp=[{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"}],dp=[{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"}],hp=[{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"}],mp=[{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:""}}],fp=[{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"}],gp={docs_url:"https://docs.y.uno/reference/api-reference-overview"},yp={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}]},bp=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const kp=[];for(let e=0;e<256;++e)kp.push((e+256).toString(16).slice(1));let vp;const wp=new Uint8Array(16);var jp={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _p(e,t,n){if(jp.randomUUID&&!t&&!e)return jp.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!vp){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");vp=crypto.getRandomValues.bind(crypto)}return vp(wp)}();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(kp[e[t+0]]+kp[e[t+1]]+kp[e[t+2]]+kp[e[t+3]]+"-"+kp[e[t+4]]+kp[e[t+5]]+"-"+kp[e[t+6]]+kp[e[t+7]]+"-"+kp[e[t+8]]+kp[e[t+9]]+"-"+kp[e[t+10]]+kp[e[t+11]]+kp[e[t+12]]+kp[e[t+13]]+kp[e[t+14]]+kp[e[t+15]]).toLowerCase()}(o)}var Ep=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function Cp(e){return e&&0!==e.length?{metadata_filters:e.map((function(e){return{key:e.field,conditional:e.type,values:e.values}}))}:{}}var Sp=function(t){function n(n){var o=n?e.__assign(e.__assign({},ap),n):ap;return t.call(this,o)||this}return e.__extends(n,t),n.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},n.prototype.updateReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.put("/v1/reconciliation/reports/templates",o)},n.prototype.createReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.post("/v1/reconciliation/reports/templates",o)},n.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})},n.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})},n.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})},n.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},n.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},n.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},n.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},n.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},n.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},n.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},n.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},n.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},n.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},n.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},n.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},n.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},n.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},n.prototype.postPaymentsLazy=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return r.start_date||(r.start_date=new Date),r.end_date||(r.end_date=new Date),this.post("/payments/lazy",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Cp(o)),{params:r})},n.prototype.postPayouts=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return r.start_date||(r.start_date=new Date),r.end_date||(r.end_date=new Date),this.post("/payouts",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Cp(o)),{params:r})},n.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},n.prototype.postPaymentsEvaluated=function(t){t.account_code;var n=e.__rest(t,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/evaluated",n)},n.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},n.prototype.postTransactions=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return this.post("/v2/transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Cp(o)),{params:r})},n.prototype.postFraudTransactions=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return this.post("/fraud-transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Cp(o)),{params:r})},n.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},n.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})},n.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},n.prototype.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},n.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,r=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),r?{}:{headers:a})},n.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},n.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},n.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},n.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},n.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},n.prototype.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},n.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":_p()}})},n.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},n.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},n.prototype.getDeveloperCredentials=function(e,t,n,o){var r={};return e&&(r["x-password"]=e),t&&(r["x-account-code"]=t),n&&(r["x-otp"]=n),o&&(r["x-mfa-token"]=o),this.get("/v2/developers/credentials",{headers:r})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{headers:{"x-password":e}})},n.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},n.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},n.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},n.prototype.getAllOrganization=function(){return this.get("/organizations/all")},n.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),r={"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:r})},n.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})},n.prototype.putCosts=function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.put("/connections/costs",{costs:[t]})]}))}))},n.prototype.updateOrganizationStatus=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.patch("/organizations/status")]}))}))},n.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},n.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},n.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},n.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}}:{})},n.prototype.getConnectionsByPaymentMethod=function(t,n){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n))]}))}))},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},n.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==up)return delete t.status,this.delete(o,{data:t});Object.values(ip).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(sp[t.status]),delete t.status);var r={"x-account-code":n};return this.post(o,t,{headers:r})},n.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},n.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},n.prototype.patchConnection=function(t){var n,o=t.payload,r=t.connectionCode,a=localStorage.getItem("account"),i=a?null===(n=JSON.parse(a).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(r),e.__assign({account_code:i},o))},n.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},n.prototype.getDialogs=function(){return this.get("/dialogs")},n.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},n.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}})},n.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},n.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},n.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},n.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},n.prototype.getMenu=function(){return this.get("/cms/menu")},n.prototype.postWebhookLogs=function(t){var n=t.payload,o=n.account_code,r=e.__rest(n,["account_code"]),a={account_codes:o};return this.post("/v2/webhooks/organization",a,{params:r,paramsSerializer:Si})},n.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},n.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:Si})},n.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:Si})},n.prototype.postApiLogs=function(t){var n=t.payload,o=n.account_code,r=e.__rest(n,["account_code"]),a={account_codes:o};return this.post("/v2/api-logs/organization",a,{params:r,paramsSerializer:Si})},n.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},n.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},n.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},n.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},n.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},n.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},n.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},n.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},n.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},n.prototype.getLocales=function(){return this.get("/cms/locales")},n.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},n.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},n.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},n.prototype.postSmartRoutingPublishVersion=function(e,t,n){var o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},n.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},n.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},n.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},n.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},n.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},n.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},n.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},n.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},n.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},n.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},n.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},n.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},n.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},n.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},n.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},n.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},n.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},n.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},n.prototype.getInsightsMetricsConversionRateV2=function(t,n){var o=t.account_code,r=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=Ep(o);return r&&(s.connection_name=r.split(",")),a&&(s=e.__assign(e.__assign({},s),Cp(a))),this.post("/insights/conversion-rate/".concat(n),s,{params:i})},n.prototype.getInsightsMetricsConversionRateViewMore=function(t,n){var o=t.account_code,r=t.metadata,a=e.__rest(t,["account_code","metadata"]),i=Ep(o);return r&&(i=e.__assign(e.__assign({},i),Cp(r))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),i,{params:a})},n.prototype.getInsightFallbackMetrics=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]),a=Ep(n);return o&&(a=e.__assign(e.__assign({},a),Cp(o))),this.post("/insights/conversion-rate/fallback",a,{params:r})},n.prototype.getInsightsMetricsVolume=function(t,n){var o=n.connection_name,r=n.metadata,a=e.__rest(n,["connection_name","metadata"]),i={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),r&&(i=e.__assign(e.__assign({},i),Cp(r))),this.post("/insights/volume/metrics",i,{params:a})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,o){var r=o.connection_name,a=o.metadata,i=e.__rest(o,["connection_name","metadata"]),s={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return r&&(s=e.__assign(e.__assign({},s),{connection_name:null==r?void 0:r.split(",")})),a&&(s=e.__assign(e.__assign({},s),Cp(a))),this.post("/insights/volume/".concat(n),s,{params:i})},n.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},n.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},n.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},n.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},n.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},n.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},n.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},n.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},n.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},n.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},n.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},n.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.getInsightOverview=function(t){var n=t.account_code,o=t.connection_name,r=t.metadata,a=e.__rest(t,["account_code","connection_name","metadata"]),i=Ep(n);return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),r&&(i=e.__assign(e.__assign({},i),Cp(r))),this.post("/insights/overview",i,{params:a})},n.prototype.getInsightOverviewV3=function(t,n){var o=t.account_code,r=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=Ep(o);return r&&(s=e.__assign(e.__assign({},s),{connection_name:null==r?void 0:r.split(",")})),a&&(s=e.__assign(e.__assign({},s),Cp(a))),this.post("/insights/overview/".concat(n),s,{params:i})},n.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},n.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})},n.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})},n.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},n.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},n.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},n.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},n.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},n.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},n.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},n.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},n.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},n.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,r=e.payload,a={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",r,{headers:a})},n.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},n.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},n.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/reports/create",e)},n.prototype.createReportV2=function(e){return this.post("/reports",e)},n.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},n.prototype.reportsList=function(){return this.get("/reports")},n.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},n.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},n.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},n.prototype.getReportTemplates=function(){return this.get("/reports/templates")},n.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},n.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},n.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},n.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},n.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},n.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},n.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},n.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},n.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},n.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},n.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},n.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},n.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},n.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})},n.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})},n.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})},n.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},n.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},n.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},n.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},n.prototype.getProfile=function(){return this.get("/user")},n.prototype.getUserFull=function(){return this.get("/user-full")},n.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},n.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},n.prototype.getUsersToImpersonate=function(t,n,o,r,a){void 0===o&&(o=1),void 0===r&&(r=10);var i=e.__assign({account_codes:n||[],page:o,page_size:r},a&&{search_value:a});return this.post("/impersonation/user/organization/".concat(t,"/users-to-impersonate"),i)},n.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},n.prototype.updateProfile=function(e){return this.patch("/user",e)},n.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},n.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},n.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},n.prototype.getAccountsV2=function(){return this.get("/accounts-user")},n.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},n.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})},n.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})},n.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},n.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},n.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},n.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},n.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},n.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}})},n.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},n.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},n.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},n.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},n.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},n.prototype.pathNotification=function(e){return this.patch("/notifications",e)},n.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},n.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},n.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,r=e.status,a=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:r,role_id:a,statuses:i,role_ids:s,page:u,page_size:c},{headers:l})},n.prototype.getRoles=function(){return this.get("/teams/roles")},n.prototype.setCustodian=function(){return this.post("/teams/custodian")},n.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},n.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},n.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}})},n.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},n.prototype.getFeatureFlagId=function(t){var n=t.name,o=e.__rest(t,["name"]);return this.post("/feature-flags/evaluate",{name:n,parameters:o})},n.prototype.getFeatureFlagIdAll=function(t){var n=t.accountCode;return e.__awaiter(this,void 0,void 0,(function(){var t,o;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.get("/feature-flags/names",n?{headers:{"x-account-code":n}}:{})];case 1:return t=e.sent(),o={},t.data.feature_flag_names.forEach((function(e){o[e]=!0})),[2,{data:o,status:200,statusText:"OK",headers:{},config:{}}]}}))}))},n.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},n.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},n.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},n.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},n.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},n.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},n.prototype.getAuditEvents=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return this.post("v2/events/organization",{account_codes:n},{params:o,paramsSerializer:Si})},n.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},n.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},n.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},n.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)},n.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},n.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},n.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},n.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},n.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},n.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},n.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},n.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},n.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},n.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},n.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},n.prototype.getInstallmentPlans=function(e){return this.get("/v1/installments-plans",{headers:{"x-account-code":e}})},n.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},n.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},n.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},n.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},n.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},n.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},n.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},n.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},n.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},n.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},n.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},n.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},n.prototype.postBlockList=function(e,t,n,o){var r={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",r)},n.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}}:{})},n.prototype.getBlacklistDetail=function(e,t,n,o,r){void 0===n&&(n=26),void 0===o&&(o=null),void 0===r&&(r=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return r&&(null==r?void 0:r.length)>0&&(a+="&search=".concat(r)),this.get(a,o?{headers:{"x-account-code":o}}:{})},n.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}}:{})},n.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}})},n.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},n.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},n.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}})},n.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})},n.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}})},n.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})},n.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}})},n.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}})},n.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},n.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},n.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},n.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},n.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},n.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,r=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){r(e.total?Math.round(100*e.loaded/e.total):0)}})},n.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},n.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}})},n.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}})},n.prototype.getVelocityRules=function(t){return this.post("/yuno-fraud-screening-int/velocity-rules-list",e.__assign({},t))},n.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})},n.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()}}},n.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()}}},n.prototype.batchRefundByFile=function(t){var n=t.payload;return this.post("/batch-refund-by-file",e.__assign({},n))},n.prototype.uploadBatchRefundsV2=function(t){var n=t.payload;return this.post("/batch-refunds",e.__assign({},n))},n.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},n.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})},n.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})},n.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},n.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},n.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},n.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},n.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},n.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},n.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},n.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}})},n.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},n.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},n.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},n.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},n.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},n.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},n.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},n.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},n.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},n.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},n.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},n.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},n.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},n.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(cp[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(cp[null==e?void 0:e.type],"/export");return this.post(t,e)},n.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},n.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},n.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},n.prototype.getSamlConfig=function(){return this.get("/saml-config")},n.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},n.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},n.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},n.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},n.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},n.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},n.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},n.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},n.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},n.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},n.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},n.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},n.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},n.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},n.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},n.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},n.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},n.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},n.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},n.prototype.getLanguages=function(){return this.get("/languages")},n.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},n.prototype.getCommunications=function(e){return this.post("/communications",e)},n.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},n.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},n}(xi),xp={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},Rp=function(t){function n(e){return t.call(this,e)||this}return e.__extends(n,t),n.refreshInstance=function(t){var o;return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:xp["BFF_URL_".concat(xp.ENVIRONMENT)]})),null===(o=this.classInstance.instance.interceptors)||void 0===o||o.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},n.getInstance=function(t){var o,r;if(this.classInstance){var a=localStorage.getItem("account");if(a){var i=null===(r=null===(o=JSON.parse(a))||void 0===o?void 0:o.value)||void 0===r?void 0:r.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||xp["BFF_URL_".concat(xp.ENVIRONMENT)]})),this.classInstance},n.setMode=function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return this.classInstance.instance.interceptors.request.use((function(e){return e.headers&&(e.headers["X-Environment"]=t),e}),(function(e){return Promise.reject(e)})),[2]}))}))},n}(Sp);class Tp{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 Ip="undefined"==typeof window||"Deno"in window;function Ap(){}function Op(e){return"number"==typeof e&&e>=0&&e!==1/0}function Pp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zp(e,t,n){return Kp(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Dp(e,t,n){return Kp(e)?[{...t,queryKey:e},n]:[e||{},t]}function Lp(e,t){const{type:n="all",exact:o,fetchStatus:r,predicate:a,queryKey:i,stale:s}=e;if(Kp(i))if(o){if(t.queryHash!==Mp(i,t.options))return!1}else if(!Up(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===r||r===t.state.fetchStatus)&&!(a&&!a(t)))}function Np(e,t){const{exact:n,fetching:o,predicate:r,mutationKey:a}=e;if(Kp(a)){if(!t.options.mutationKey)return!1;if(n){if(qp(t.options.mutationKey)!==qp(a))return!1}else if(!Up(t.options.mutationKey,a))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(r&&!r(t))}function Mp(e,t){return((null==t?void 0:t.queryKeyHashFn)||qp)(e)}function qp(e){return JSON.stringify(e,((e,t)=>Wp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Up(e,t){return Bp(e,t)}function Bp(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Bp(e[n],t[n]))))}function Fp(e,t){if(e===t)return e;const n=Vp(e)&&Vp(t);if(n||Wp(e)&&Wp(t)){const o=n?e.length:Object.keys(e).length,r=n?t:Object.keys(t),a=r.length,i=n?[]:{};let s=0;for(let o=0;o<a;o++){const a=n?o:r[o];i[a]=Fp(e[a],t[a]),i[a]===e[a]&&s++}return o===a&&s===o?e:i}return t}function Gp(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Vp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wp(e){if(!Hp(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Hp(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Hp(e){return"[object Object]"===Object.prototype.toString.call(e)}function Kp(e){return Array.isArray(e)}function $p(e){return new Promise((t=>{setTimeout(t,e)}))}function Qp(e){$p(0).then(e)}function Jp(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Fp(e,t):t}const Xp=new class extends Tp{constructor(){super(),this.setup=e=>{if(!Ip&&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)}},Yp=["online","offline"];const Zp=new class extends Tp{constructor(){super(),this.setup=e=>{if(!Ip&&window.addEventListener){const t=()=>e();return Yp.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Yp.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 ed(e){return Math.min(1e3*2**e,3e4)}function td(e){return"online"!==(null!=e?e:"online")||Zp.isOnline()}class nd{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function od(e){return e instanceof nd}function rd(e){let t,n,o,r=!1,a=0,i=!1;const s=new Promise(((e,t)=>{n=e,o=t})),u=()=>!Xp.isFocused()||"always"!==e.networkMode&&!Zp.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))},p=()=>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()})),d=()=>{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:ed,h="function"==typeof c?c(a,t):c,m=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!r&&m?(a++,null==e.onFail||e.onFail(a,t),$p(h).then((()=>{if(u())return p()})).then((()=>{r?l(t):d()}))):l(t)}))};return td(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{i||(l(new nd(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1}}}const ad=console;const id=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const r=o=>{t?e.push(o):Qp((()=>{n(o)}))},a=()=>{const t=e;e=[],t.length&&Qp((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{r((()=>{e(...t)}))},schedule:r,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class sd{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Op(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Ip?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ud extends sd{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||ad,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=Jp(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(Ap).catch(Ap):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||!Pp(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 r;return null==(r=this.retryer)||r.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const 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,r;(od(e)&&e.silent||this.dispatch({type:"error",error:e}),od(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(r=this.cache.config).onSettled)||o.call(r,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=rd({fn:u.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,o,r;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=(r=this.cache.config).onSettled)||o.call(r,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:td(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 r=e.error;return od(r)&&r.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),id.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class cd extends Tp{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const r=t.queryKey,a=null!=(o=t.queryHash)?o:Mp(r,t);let i=this.get(a);return i||(i=new ud({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),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(){id.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Dp(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>Lp(n,e)))}findAll(e,t){const[n]=Dp(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Lp(n,e))):this.queries}notify(e){id.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){id.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){id.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class ld extends sd{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||ad,this.observers=[],this.state=e.state||pd(),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=rd({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,r,a,i,s,u,c;if(!t){var l,p,d,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(p=this.mutationCache.config).onMutate)?void 0:l.call(p,this.state.variables,this));const e=await(null==(d=(h=this.options).onMutate)?void 0:d.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==(r=(a=this.options).onSuccess)?void 0:r.call(a,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,k,v,w;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=(k=this.mutationCache.config).onSettled)?void 0:b.call(k,void 0,e,this.state.variables,this.state.context,this)),await(null==(v=(w=this.options).onSettled)?void 0:v.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!td(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),id.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function pd(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class dd extends Tp{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new ld({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(){id.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=>Np(e,t)))}findAll(e){return this.mutations.filter((t=>Np(e,t)))}notify(e){id.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 id.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Ap)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function hd(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,r,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(o=e.fetchOptions)||null==(r=o.meta)?void 0:r.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),p="backward"===(null==u?void 0:u.direction),d=(null==(a=e.state.data)?void 0:a.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,r)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{f=!0})),e.signal}});const s=g(a);return Promise.resolve(s).then((e=>y(t,o,e,r)))};let k;if(d.length)if(l){const t=void 0!==c,n=t?c:md(e.options,d);k=b(d,t,n)}else if(p){const t=void 0!==c,n=t?c:(v=e.options,w=d,null==v.getPreviousPageParam?void 0:v.getPreviousPageParam(w[0],w));k=b(d,t,n,!0)}else{m=[];const t=void 0===e.options.getNextPageParam;k=!s||!d[0]||s(d[0],0,d)?b([],t,h[0]):Promise.resolve(y([],h[0],d[0]));for(let n=1;n<d.length;n++)k=k.then((o=>{if(!s||!d[n]||s(d[n],n,d)){const r=t?h[n]:md(e.options,o);return b(o,t,r)}return Promise.resolve(y(o,h[n],d[n]))}))}else k=b([]);var v,w;const j=k.then((e=>({pages:e,pageParams:m})));return j}}}}function md(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class fd extends Tp{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),gd(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yd(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yd(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"),Gp(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 r=this.hasListeners();r&&bd(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!r||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!r||this.currentQuery===o&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Gp(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(Ap)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Ip||this.currentResult.isStale||!Op(this.options.staleTime))return;const e=Pp(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,!Ip&&!1!==this.options.enabled&&Op(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Xp.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,r=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:l}=e;let p,{dataUpdatedAt:d,error:h,errorUpdatedAt:m,fetchStatus:f,status:g}=l,y=!1,b=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&gd(e,t),i=r&&bd(e,n,t,o);(a||i)&&(f=td(e.options.networkMode)?"fetching":"paused",d||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)p=c.data,d=c.dataUpdatedAt,g=c.status,y=!0;else if(t.select&&void 0!==l.data)if(r&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)p=this.selectResult;else try{this.selectFn=t.select,p=t.select(l.data),p=Jp(null==r?void 0:r.data,p,t),this.selectResult=p,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else p=l.data;if(void 0!==t.placeholderData&&void 0===p&&"loading"===g){let e;if(null!=r&&r.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=r.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",p=Jp(null==r?void 0:r.data,e,t),b=!0)}this.selectError&&(h=this.selectError,p=this.selectResult,m=Date.now(),g="error");const k="fetching"===f,v="loading"===g,w="error"===g;return{status:g,fetchStatus:f,isLoading:v,isSuccess:"success"===g,isError:w,isInitialLoading:v&&k,data:p,dataUpdatedAt:d,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:k,isRefetching:k&&!v,isLoadingError:w&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:b,isPreviousData:y,isRefetchError:w&&0!==l.dataUpdatedAt,isStale:kd(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,Gp(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||od(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){id.batch((()=>{var t,n,o,r;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(r=this.options).onSettled)||o.call(r,this.currentResult.data,null);else if(e.onError){var a,i,s,u;null==(a=(i=this.options).onError)||a.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 gd(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&&yd(e,t,t.refetchOnMount)}function yd(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&kd(e,t)}return!1}function bd(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&kd(e,n)}function kd(e,t){return e.isStaleByTime(t.staleTime)}class vd extends Tp{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),Gp(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){id.batch((()=>{var t,n,o,r;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=(r=this.mutateOptions).onSettled)||o.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,u;null==(a=(i=this.mutateOptions).onError)||a.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 wd,jd={exports:{}},_d={};var Ed,Cd={};
208
208
  /**
209
209
  * @license React
210
210
  * use-sync-external-store-shim.development.js
@@ -230,5 +230,5 @@ function No(e){const t=Lo.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
230
230
  * @copyright (c) 2099 Kent C. Dodds
231
231
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
232
232
  */
233
- const rh=7,ah=6,ih=5,sh=4,uh=3,ch=2,lh=1,ph=0;function dh(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:lh,!n.accessors){const o=hh(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const r=function(e,t){const n=[];for(let o=0,r=t.length;o<r;o++){const r=t[o],a=yh(r),i=fh(e,r);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:ph,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<r.length;e++){const o=r[e];let i=hh(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=lh?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=c,a.rankedValue=o.itemValue)}return a}function hh(e,t,n){return e=mh(e,n),(t=mh(t,n)).length>e.length?ph:e===t?rh:(e=e.toLowerCase())===(t=t.toLowerCase())?ah:e.startsWith(t)?ih:e.includes(` ${t}`)?sh:e.includes(t)?uh:1===t.length?ph:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?ch:function(e,t){let n=0,o=0;function r(e,t,o){for(let r=o,a=t.length;r<a;r++){if(t[r]===e)return n+=1,r+1}return-1}function a(e){const o=1/e,r=n/t.length;return lh+r*o}const i=r(t[0],e,0);if(i<0)return ph;o=i;for(let n=1,a=t.length;n<a;n++){o=r(t[n],e,o);if(!(o>-1))return ph}const s=o-i;return a(s)}(e,t)}function mh(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(oh,(e=>th[e]))),e}function fh(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 gh={maxRanking:1/0,minRanking:-1/0};function yh(e){return"function"==typeof e?gh:{...gh,...e}}function bh(e,t){const[n,r]=o.useState();o.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,o.useCallback((t=>{r((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var kh,vh=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}(),wh=function(){function e(e){this.generateIdentifier=e,this.kv=new vh}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}(),jh=(kh=function(e,t){return kh=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])},kh(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}kh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_h=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return jh(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}(wh),Eh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i};function Ch(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,r=0;r<o.length;r++){var a=o[r];if(t(a))return a}}function Sh(e,t){Object.entries(e).forEach((function(e){var n=Eh(e,2),o=n[0],r=n[1];return t(r,o)}))}function xh(e,t){return-1!==e.indexOf(t)}function Rh(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var Th=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Ch(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),Ih=function(e){return void 0===e},Ah=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},Oh=function(e){return Ah(e)&&0===Object.keys(e).length},Ph=function(e){return Array.isArray(e)},zh=function(e){return e instanceof Map},Dh=function(e){return e instanceof Set},Lh=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Nh=function(e){return"number"==typeof e&&isNaN(e)},Mh=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||Ih(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Lh(e)},qh=function(e){return e.replace(/\./g,"\\.")},Uh=function(e){return e.map(String).map(qh).join(".")},Bh=function(e){for(var t=[],n="",o=0;o<e.length;o++){var r=e.charAt(o);if("\\"===r&&"."===e.charAt(o+1))n+=".",o++;else"."===r?(t.push(n),n=""):n+=r}var a=n;return t.push(a),t},Fh=function(){return Fh=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Fh.apply(this,arguments)},Gh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},Vh=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e};function Wh(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Hh=[Wh(Ih,"undefined",(function(){return null}),(function(){})),Wh((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)})),Wh((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),Wh((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})),Wh((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)})),Wh(Dh,"set",(function(e){return Vh([],Gh(e.values()))}),(function(e){return new Set(e)})),Wh(zh,"map",(function(e){return Vh([],Gh(e.entries()))}),(function(e){return new Map(e)})),Wh((function(e){return Nh(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return Nh(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),Wh((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),Wh((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function Kh(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var $h=Kh((function(e,t){return!!Lh(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})),Qh=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Jh=Kh((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return Vh([],Gh(e))}),(function(e,t){var n=Qh[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Xh(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Yh=Kh(Xh,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Fh({},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)})),Zh=Kh((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)})),em=[Yh,$h,Zh,Jh],tm=function(e,t){var n=Rh(em,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=Rh(Hh,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},nm={};Hh.forEach((function(e){nm[e.annotation]=e}));var om=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function rm(e){if(xh(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(xh(e,"prototype"))throw new Error("prototype is not allowed as a property");if(xh(e,"constructor"))throw new Error("constructor is not allowed as a property")}var am=function(e,t,n){if(rm(t),0===t.length)return n(e);for(var o=e,r=0;r<t.length-1;r++){var a=t[r];if(Ph(o))o=o[+a];else if(Ah(o))o=o[a];else if(Dh(o)){o=om(o,i=+a)}else if(zh(o)){if(r===t.length-2)break;var i=+a,s=0==+t[++r]?"key":"value",u=om(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(Ph(o)?o[+c]=n(o[+c]):Ah(o)&&(o[c]=n(o[c])),Dh(o)){var l=om(o,+c),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(zh(o)){i=+t[t.length-2];var d=om(o,i);switch(s=0==+c?"key":"value"){case"key":var h=n(d);o.set(h,o.get(d)),h!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},im=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},sm=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e};function um(e,t,n){if(void 0===n&&(n=[]),e)if(Ph(e)){var o=im(e,2),r=o[0],a=o[1];a&&Sh(a,(function(e,o){um(e,t,sm(sm([],im(n)),im(Bh(o))))})),t(r,n)}else Sh(e,(function(e,o){return um(e,t,sm(sm([],im(n)),im(Bh(o))))}))}function cm(e,t,n){return um(t,(function(t,o){e=am(e,o,(function(e){return function(e,t,n){if(!Ph(t)){var o=nm[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return $h.untransform(e,t,n);case"class":return Yh.untransform(e,t,n);case"custom":return Zh.untransform(e,t,n);case"typed-array":return Jh.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function lm(e,t){function n(t,n){var o=function(e,t){rm(t);for(var n=0;n<t.length;n++){var o=t[n];if(Dh(e))e=om(e,+o);else if(zh(e)){var r=+o,a=0==+t[++n]?"key":"value",i=om(e,r);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,Bh(n));t.map(Bh).forEach((function(t){e=am(e,t,(function(){return o}))}))}if(Ph(t)){var o=im(t,2),r=o[0],a=o[1];r.forEach((function(t){e=am(e,Bh(t),(function(){return e}))})),a&&Sh(a,n)}else Sh(t,n);return e}var pm=function(e,t,n,o,r,a,i){var s;void 0===r&&(r=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var u=Mh(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,r,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return Ah(e)||Ph(e)||zh(e)||Dh(e)||Xh(e,t)}(e,n)){var l=tm(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,p),p}if(xh(a,e))return{transformedValue:null};var d=tm(e,n),h=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,m=Ph(h)?[]:{},f={};Sh(h,(function(s,u){var c=pm(s,t,n,o,sm(sm([],im(r)),[u]),sm(sm([],im(a)),[e]),i);m[u]=c.transformedValue,Ph(c.annotations)?f[u]=c.annotations:Ah(c.annotations)&&Sh(c.annotations,(function(e,t){f[qh(u)+"."+t]=e}))}));var g=Oh(f)?{transformedValue:m,annotations:d?[d.type]:void 0}:{transformedValue:m,annotations:d?[d.type,f]:f};return u||i.set(e,g),g};function dm(e){return Object.prototype.toString.call(e).slice(8,-1)}function hm(e){return"Array"===dm(e)}function mm(e,t={}){if(hm(e))return e.map((e=>mm(e,t)));if(!function(e){if("Object"!==dm(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(hm(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,r){const a={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),r&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,mm(e[o],t),e,t.nonenumerable),n}),{})}var fm=function(){return fm=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},fm.apply(this,arguments)},gm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},ym=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e},bm=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new _h,this.symbolRegistry=new wh((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new Th,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=pm(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=fm(fm({},o.meta),{values:n.annotations}));var r,a,i,s,u=(r=t,a=this.dedupe,i={},s=void 0,r.forEach((function(e){if(!(e.length<=1)){a||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=im(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(Uh):i[Uh(n)]=o.map(Uh)}})),s?Oh(i)?[s]:[s,i]:Oh(i)?void 0:i);return u&&(o.meta=fm(fm({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=mm(t);return(null==n?void 0:n.values)&&(o=cm(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=lm(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(fm({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,ym([],gm(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 km={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},vm=o.createContext(km);function wm({theme:e,...t}){return o.createElement(vm.Provider,eh({value:e},t))}function jm({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 _m(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Em(e,t,n={}){return o.forwardRef((({style:r,...a},i)=>{const s=o.useContext(vm),u=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=o.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return o.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 o.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...r,...u},ref:i})}))}const Cm=(e,t=!1)=>{const{json:n}=bm.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Sm=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,xm=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Rm={"Status > Last Updated":(e,t)=>Sm(e)===Sm(t)?xm(e,t):Sm(e)>Sm(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":xm},Tm=500,Im={top:"bottom",bottom:"top",left:"right",right:"left"};function Am(e){return["left","right"].includes(e)}function Om(e){return Im[e]}function Pm(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function zm(e="bottom"){const t=Am(e),n=Om(e),o=Pm("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 Dm=Em("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"}}),Lm=Em("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),Nm=Em("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"}))),Mm=Em("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),qm=Em("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Um=Em("code",{fontSize:".9em",color:"inherit",background:"inherit"}),Bm=Em("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),Fm=Em("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 Gm({text:e}){return o.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Vm=Em("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Wm=Em("span",{color:"white"}),Hm=Em("button",{cursor:"pointer",color:"white"}),Km=Em("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),$m=({value:e})=>{const[t,n]=o.useState("NoCopy");return o.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(bm.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?o.createElement(Zm,null):"SuccessCopy"===t?o.createElement(tf,null):o.createElement(ef,null))},Qm=Em("span",((e,t)=>({color:t.danger}))),Jm=Em("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Xm=Em("span",{color:"grey",fontSize:".7em"}),Ym=({expanded:e,style:t={}})=>o.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Zm=()=>o.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},o.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"}),o.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"}))),ef=()=>o.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},o.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"})),o.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),tf=()=>o.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},o.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},o.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 nf=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:a=[],type:i,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[p,d]=o.useState([]);return o.createElement(Vm,{key:t},a.length?o.createElement(o.Fragment,null,o.createElement(Km,{onClick:()=>c()},o.createElement(Ym,{expanded:s})," ",t," ",o.createElement(Xm,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),u?o.createElement($m,{value:n}):null,s?1===a.length?o.createElement(Jm,null,r.map(e)):o.createElement(Jm,null,a.map(((t,n)=>o.createElement("div",{key:n},o.createElement(Vm,null,o.createElement(Hm,{onClick:()=>d((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},o.createElement(Ym,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),p.includes(n)?o.createElement(Jm,null,t.map(e)):null))))):null):o.createElement(o.Fragment,null,o.createElement(Wm,null,t,":")," ",o.createElement(Qm,null,Cm(n))))};function of({value:e,defaultExpanded:t,renderer:n=nf,pageSize:r=100,copyable:a=!1,...i}){const[s,u]=o.useState(Boolean(t)),c=o.useCallback((()=>u((e=>!e))),[]);let l=typeof e,p=[];const d=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",p=e.map(((e,t)=>d({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",p=Array.from(e,((e,t)=>d({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(l="object",p=Object.entries(e).map((([e,t])=>d({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}(p,r);return n({handleEntry:t=>o.createElement(of,eh({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:l,subEntries:p,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:r,...i})}function rf(e){return o.createElement("svg",eh({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),o.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-33.000000, 0.000000)"},o.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) "}),o.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"}),o.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 af=(e,t,n=!1)=>Sd.useSyncExternalStore(o.useCallback((t=>n?()=>{}:e.subscribe(id.batchCalls(t))),[e,n]),t,t),sf=o.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:a,context:i,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:p={},errorTypes:d=[],...h}=e,{onClick:m,...f}=p,g=Ad({context:i}),y=g.getQueryCache(),[b,k]=bh("reactQueryDevtoolsSortFn",Object.keys(Rm)[0]),[v,w]=bh("reactQueryDevtoolsFilter",""),[j,_]=bh("reactQueryDevtoolsBaseSort",1),E=o.useMemo((()=>Rm[b]),[b]),C=af(y,(()=>y.getAll().length),!n),[S,x]=bh("reactQueryDevtoolsActiveQueryHash",""),R=o.useMemo((()=>{const e=y.getAll();if(0===C)return[];const t=v?e.filter((e=>dh(e.queryHash,v).passed)):[...e];return E?t.sort(((e,t)=>E(e,t)*j)):t}),[j,E,v,C,y]),[T,I]=o.useState(!1);return o.createElement(wm,{theme:km},o.createElement(Dm,eh({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:Tm,position:"relative",...h.style}}),o.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+km.backgroundAlt+" "+km.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: "+km.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+km.gray+";\n border-radius: .5em;\n border: 3px solid "+km.backgroundAlt+";\n }\n "}}),o.createElement("div",{style:zm(l),onMouseDown:s}),n&&o.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+km.grayAlt,display:"flex",flexDirection:"column"}},o.createElement("div",{style:{padding:".5em",background:km.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},o.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"}},o.createElement(rf,{"aria-hidden":!0}),o.createElement(Gm,{text:"Close React Query Devtools"})),o.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},o.createElement(cf,{queryCache:y}),l&&u?o.createElement(Fm,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},o.createElement("option",{value:"left"},"Left"),o.createElement("option",{value:"right"},"Right"),o.createElement("option",{value:"top"},"Top"),o.createElement("option",{value:"bottom"},"Bottom")):null),o.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},o.createElement(Bm,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=v?v:"",onChange:e=>w(e.target.value),onKeyDown:e=>{"Escape"===e.key&&w("")},style:{flex:"1",width:"100%"}}),o.createElement(Fm,{"aria-label":"Sort queries",value:b,onChange:e=>k(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Rm).map((e=>o.createElement("option",{key:e,value:e},"Sort by ",e)))),o.createElement(Nm,{type:"button",onClick:()=>_((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===j?"⬆ Asc":"⬇ Desc"),o.createElement(Nm,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),o.createElement(Nm,{type:"button",onClick:()=>{T?(Zp.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Zp.setOnline(!1),I(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?km.danger:"currentColor",fill:"none"},T?o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.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"}),o.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"}),o.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),o.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),o.createElement(Gm,{text:T?"Restore offline mock":"Mock offline behavior"}))))),o.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>o.createElement(lf,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:x,key:e.queryHash,queryCache:y}))))),S&&n?o.createElement(uf,{activeQueryHash:S,queryCache:y,queryClient:g,errorTypes:d}):null,c?o.createElement(Nm,eh({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))})),uf=({queryCache:e,activeQueryHash:n,queryClient:r,errorTypes:a})=>{var i,s;const u=af(e,(()=>e.getAll().find((e=>e.queryHash===n)))),c=af(e,(()=>{var t;return null==(t=e.getAll().find((e=>e.queryHash===n)))?void 0:t.state})),l=null!=(i=af(e,(()=>{var t;return null==(t=e.getAll().find((e=>e.queryHash===n)))?void 0:t.isStale()})))&&i,p=null!=(s=af(e,(()=>{var t;return null==(t=e.getAll().find((e=>e.queryHash===n)))?void 0:t.getObserversCount()})))?s:0,d=t.useMemo((()=>{if(u&&null!=c&&c.error){const e=a.find((e=>{var t;return e.initializer(u).toString()===(null==(t=c.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[u,null==c?void 0:c.error,a]);if(!u||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(u))?t:new Error("Unknown error from devtools"),o=u.options;u.setState({status:"error",error:n,fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:o}})};return o.createElement(Lm,null,o.createElement("div",{style:{padding:".5em",background:km.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),o.createElement("div",{style:{padding:".5em"}},o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},o.createElement(Um,{style:{lineHeight:"1.8em"}},o.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Cm(u.queryKey,!0))),o.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:jm({queryState:c,isStale:l,observerCount:p,theme:km}),flexShrink:0}},_m(u))),o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",o.createElement(Um,null,p)),o.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",o.createElement(Um,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),o.createElement("div",{style:{background:km.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),o.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},o.createElement(Nm,{type:"button",onClick:()=>{const e=null==u?void 0:u.fetch();null==e||e.catch(pf)},disabled:"fetching"===c.fetchStatus,style:{background:km.active}},"Refetch")," ",o.createElement(Nm,{type:"button",onClick:()=>r.invalidateQueries(u),style:{background:km.warning,color:km.inputTextColor}},"Invalidate")," ",o.createElement(Nm,{type:"button",onClick:()=>r.resetQueries(u),style:{background:km.gray}},"Reset")," ",o.createElement(Nm,{type:"button",onClick:()=>r.removeQueries(u),style:{background:km.danger}},"Remove")," ",o.createElement(Nm,{type:"button",onClick:()=>{var e;if("fetching"!==u.state.fetchStatus||void 0!==(null==(e=u.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===u.state.data)u.fetch(u.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=u.options;u.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),u.setState({data:void 0,status:"loading",fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:km.paused}},"loading"===u.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===u.state.status?o.createElement(Nm,{type:"button",onClick:()=>{u.state.error?r.resetQueries(u):h()},style:{background:km.danger}},"error"===u.state.status?"Restore":"Trigger"," error"):o.createElement("label",null,"Trigger error:",o.createElement(Fm,{value:null!=d?d:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find((t=>t.name===e.target.value));h(t)}},o.createElement("option",{key:"",value:""}),a.map((e=>o.createElement("option",{key:e.name,value:e.name},e.name)))))),o.createElement("div",{style:{background:km.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(of,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),o.createElement("div",{style:{background:km.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(of,{label:"Query",value:u,defaultExpanded:{queryKey:!0}})))},cf=({queryCache:e})=>{const t=af(e,(()=>e.getAll().filter((e=>"fresh"===_m(e))).length)),n=af(e,(()=>e.getAll().filter((e=>"fetching"===_m(e))).length)),r=af(e,(()=>e.getAll().filter((e=>"paused"===_m(e))).length)),a=af(e,(()=>e.getAll().filter((e=>"stale"===_m(e))).length)),i=af(e,(()=>e.getAll().filter((e=>"inactive"===_m(e))).length));return o.createElement(Mm,null,o.createElement(qm,{style:{background:km.success,opacity:t?1:.3}},"fresh ",o.createElement(Um,null,"(",t,")"))," ",o.createElement(qm,{style:{background:km.active,opacity:n?1:.3}},"fetching ",o.createElement(Um,null,"(",n,")"))," ",o.createElement(qm,{style:{background:km.paused,opacity:r?1:.3}},"paused ",o.createElement(Um,null,"(",r,")"))," ",o.createElement(qm,{style:{background:km.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",o.createElement(Um,null,"(",a,")"))," ",o.createElement(qm,{style:{background:km.gray,opacity:i?1:.3}},"inactive ",o.createElement(Um,null,"(",i,")")))},lf=o.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var a,i,s,u;const c=null!=(a=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash})))?a:"",l=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.state})),p=null!=(i=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()})))&&i,d=null!=(s=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()})))&&s,h=null!=(u=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()})))?u:0;return l?o.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+km.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},o.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:jm({queryState:l,isStale:p,observerCount:h,theme:km}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:p?"0":"0 0 10px black",color:p?"black":"white"}},h),d?o.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:km.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,o.createElement(Um,{style:{padding:".5em"}},""+c)):null}));function pf(){}lf.displayName="QueryRow";const df="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:a="bottom-left",containerElement:i="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const p=o.useRef(null),d=o.useRef(null),[h,m]=bh("reactQueryDevtoolsOpen",e),[f,g]=bh("reactQueryDevtoolsHeight",Tm),[y,b]=bh("reactQueryDevtoolsWidth",Tm),[k="bottom",v]=bh("reactQueryDevtoolsPanelPosition",c),[w,j]=o.useState(!1),[_,E]=o.useState(!1),C=function(){const e=o.useRef(!1),t=o.useCallback((()=>e.current),[]);return o.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();o.useEffect((()=>{j(null!=h&&h)}),[h,w,j]),o.useEffect((()=>{const e=d.current;if(e){const t=()=>{w&&(e.style.visibility="visible")},n=()=>{w||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[w]),o.useEffect((()=>{var e;if(w&&null!=(e=p.current)&&e.parentElement){const{parentElement:e}=p.current,t=Pm("padding",k),n=Am(k),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:r})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:r}))(e.style),r=()=>{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(r(),"undefined"!=typeof window)return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[w,k,f,y]);const{style:S={},...x}=t,{style:R={},onClick:T,...I}=r,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:r,isResizing:a,panelStyle:i}){const s=Om(e),u=Pm("border",s),c=Am(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:r?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...r?{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:Tm}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Tm}}}({position:k,devtoolsTheme:km,isOpen:w,height:f,width:y,isResizing:_,panelStyle:S});return C()?o.createElement(i,{ref:p,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},o.createElement(wm,{theme:km},o.createElement(sf,eh({ref:d,context:s,styleNonce:u,position:k,onPositionChange:v,showCloseButton:!0,closeButtonProps:n},x,{style:A,isOpen:w,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=Am(k);E(!0);const{height:o,width:r}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=r+("right"===k?a-e.clientX:e.clientX-a),b(s)):(s=o+("bottom"===k?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)})(d.current,e),errorTypes:l}))),w?null:o.createElement("button",eh({type:"button"},I,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),o.createElement(rf,{"aria-hidden":!0}),o.createElement(Gm,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var hf,mf={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(hf=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",hf.ETIMEDOUT="ETIMEDOUT",hf.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var ff=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&ff&&function(){e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:if(!dr())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,cr.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return e.sent(),[3,4];case 3:return t=e.sent(),console.error("Error starting MSW:",t),[3,4];case 4:return[2]}}))}))}(),exports.Api=Sp,exports.ApiProvider=function(n){var o=this,r=n.children,a=process.env.ENVIRONMENT,i=t.useMemo((function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"}),[a]),s=t.useState(!1),u=s[0],c=s[1],l=t.useCallback((function(t){return e.__awaiter(o,void 0,void 0,(function(){var n,o,r,a,s;return e.__generator(this,(function(u){switch(u.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",a=localStorage.getItem("x-organization-code"),s=a?JSON.parse(a).value:"",[4,Rp.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":r||i,"x-organization-code":s,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return u.sent(),[2]}}))}))}),[i]);t.useEffect((function(){return addEventListener("ACCOUNT_CHANGED",l),function(){window.removeEventListener("ACCOUNT_CHANGED",l)}}),[l]);var p=t.useCallback((function(t){return e.__awaiter(o,void 0,void 0,(function(){var n,o,r,a,s,u,l;return e.__generator(this,(function(p){switch(p.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(r=localStorage.getItem("x-organization-code"),a=localStorage.getItem("account"),s=a?null===(l=JSON.parse(a).value)||void 0===l?void 0:l.code:"",u=r?JSON.parse(r).value:"",[4,Rp.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":t||i,"x-organization-code":u,"x-account-code":s,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:p.sent(),Fd.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),c(!0),p.label=2;case 2:return[2]}}))}))}),[i,c]);return t.useEffect((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?p(n):"token"===t.key&&p(e)}})),p(e)}),[c,p]),u?React.createElement(Od,{client:Fd},r,React.createElement(df,{initialIsOpen:!1})):React.createElement("div",{style:mf})},exports.ApiSingleton=Rp,exports.getQueryKeyGetNameAndIcon=Wd,exports.getQueryKeyRequiredFields=Hd,exports.queryCache=Bd,exports.queryClient=Fd,exports.use3DSExemptions=function(){var t=this;return Nd({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})},exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),Md((function(e){return Rp.getInstance().generateAIWorkflowRoutes(t,e).then((function(e){return null==e?void 0:e.data}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAllFeatureFlags=function(n){var o=this,r=Nd({queryKey:["all-feature-flags",Object.values(n).filter(Boolean)],queryFn:function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getFeatureFlagIdAll({accountCode:n.account_code}).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!n.account_code&&!!n.organization_code&&!!n.email,cacheTime:9e5,useErrorBoundary:!1}),a=Ad();return t.useEffect((function(){a.setQueryData(["cached-feature-flags"],r)}),[r,a]),r},exports.useAllowListDetail=function(e,t,n){return Nd(["allow-list-detail",e],(function(){return Rp.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})},exports.useBlackListDetail=function(e,t,n,o,r,a){return Nd(["black-list-detail",e,t,o,r,a],(function(){return Rp.getInstance().getBlacklistDetail(e,t,n,o,r).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&a,cacheTime:0})},exports.useCachedFeatureFlag=function(t){var n,o,r=Ad(),a=r.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(o=null==a?void 0:a.data)||void 0===o?void 0:o.status)),s=Nd({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(e){var n;return{result:null===(n=null==e?void 0:e.data)||void 0===n?void 0:n[t]}},initialData:function(){var e=r.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return e.__assign(e.__assign({},s),{isLoading:i})},exports.useCancelReport=function(){return Md((function(e){return Rp.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCancelSubscription=function(){return Md(["post-cancel-subscription"],(function(e){var t=e.subscriptionCode;return Rp.getInstance().postCancelSubscription(t).then((function(e){return null==e?void 0:e.data}))}))},exports.useChangePasswordV2=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().changePasswordV2(n).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))},exports.useChangePaymentsWebhook=function(){return Md(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Rp.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeStatusBlackList=function(){return Md(["change-blacklist"],(function(e){return Rp.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeStatusItemBlackList=function(){return Md(["change-blacklist-item"],(function(e){return Rp.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeStylingSettings=function(){return Md((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,r=e.payload;return Rp.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:r}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.useChangeTemplateStatus=function(){var t=this;return Md(["PATCH/template-reporting/report-templates/status"],(function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().changeTemplateStatus(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useChargebacksUpload=function(){return Md((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,r=e.handleSetProgress;return Rp.getInstance().uploadChargebacks(t,n,o,r)}))},exports.useChartAssistantSocket=function(){var e=t.useRef(null),n=t.useRef(null),o=t.useRef(null),r=t.useState(!1),a=r[0],i=r[1],s=t.useState(null),u=s[0],c=s[1],l=t.useState(null),p=l[0],d=l[1],h=t.useCallback((function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null)}),[]),m=t.useCallback((function(){if("undefined"==typeof window||"dashboard.dev.y.uno"!==window.location.hostname){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null),d(null);try{var t=new WebSocket("".concat(xp["WS_URL_".concat(xp.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=t,t.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&t.send(JSON.stringify({type:"auth",token:e})),n.current=setInterval((function(){t.readyState===WebSocket.OPEN?t.send(JSON.stringify({type:"ping"})):(h(),i(!1))}),3e4)},t.onmessage=function(e){try{var t=JSON.parse(e.data);c(t)}catch(e){d("Failed to parse server response")}},t.onerror=function(e){d("Connection error occurred"),i(!1)},t.onclose=function(e){i(!1),h(),e.wasClean||1e3===e.code||(o.current=setTimeout((function(){m()}),5e3))}}catch(e){d("Failed to establish connection")}}}),[]),f=t.useCallback((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}))}),[]),g=t.useCallback((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}))}),[]),y=t.useCallback((function(){c(null)}),[]),b=t.useCallback((function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)}),[]);return t.useEffect((function(){return m(),function(){h(),b()}}),[]),{subscribe:f,unsubscribe:g,disconnect:b,connect:m,clearChartData:y,isConnected:a,chartData:u,connectionError:p}},exports.useChartExecute=function(e){return Nd(["chartgpt-chart-execute",e],(function(){return Rp.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})},exports.useCloneTemplate=function(){var t=this;return Md(["POST/template-reporting/report-templates/clone"],(function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().cloneReportTemplate(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCommunicationDetails=function(e,t){return Nd(["fetch-communication-details",e],(function(){return Rp.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})},exports.useCommunications=function(e){var t;return Nd(["fetch-communications",e],(function(){return Rp.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})},exports.useCommunicationsByDay=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-communications-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-day",o)];case 1:return r=e.sent(),[2,(a=r.data,i=o.start_date,s=o.end_date,u=a.plots||[],c=u.find((function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label})),l=u.find((function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label})),p=u.find((function(e){return"CONVERSION_RATE_LABEL"===e.label})),d=Qd(null==c?void 0:c.rows,i,s),h=Qd(null==l?void 0:l.rows,i,s),m=Qd(null==p?void 0:p.rows,i,s),{communications:{distribution:d.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:$d(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==p?void 0:p.value)||"0")},completed_communications:{distribution:h.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:$d(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,u,c,l,p,d,h,m}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsBySubstatus=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-communications-by-substatus",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-substatus",o)];case 1:return r=e.sent(),[2,Jd(r.data)]}}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsFilters=function(){return Nd(["fetch-communications-filters"],(function(){return Rp.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useCommunicationsSubstatusByDay=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-communications-substatus-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-substatus-by-day",o)];case 1:return r=e.sent(),[2,Xd(r.data,o.start_date,o.end_date)]}}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useConfirmedOtpMfa=function(){return Md((function(e){return Rp.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCountRowsForReport=function(){return Md((function(e){return Rp.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useCreateAndExecuteChart=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t,o,r,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(a=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:o}]}}))}))}),{useErrorBoundary:!1})},exports.useCreateAndExecuteChartWithTimezone=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t,o,r,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(a=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:o}]}}))}))}),{useErrorBoundary:!1})},exports.useCreateChart=function(){return Md((function(e){return Rp.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateChartWithTimezone=function(){return Md((function(e){return Rp.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateMonitorTemplate=function(e){return Md((function(t){return Rp.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))},exports.useCreateMonitorThreshold=function(e){return Md((function(t){return Rp.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},exports.useCreateOperationTransaction=function(){return Md((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,r=e.action;return Rp.getInstance().createOperationTransaction(t,n,o,r)}))},exports.useCreatePaymentLinks=function(){return Md(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateReconciliationAlert=function(){return Md(["POST/reconciliation/alerts"],(function(e){return Rp.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){Fd.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return Md((function(){return Rp.getInstance().createReconciliationReportTemplate(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(t){return e.__awaiter(n,void 0,void 0,(function(){var n,o;return e.__generator(this,(function(r){switch(r.label){case 0:return[4,Fd.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Fd.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Fd.setQueryData(["GET/reconciliation/reports/templates"],(function(n){return{templates:e.__spreadArray(e.__spreadArray([],n.templates,!0),[t],!1)}})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){Fd.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Fd.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return Md((function(e){return Rp.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateReconciliationsReportV3=function(){return Md((function(e){return Rp.getInstance().createReconciliationsReportV3(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateReportTemplate=function(t){var n=this;return Md((function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().createReportTemplate(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(t){return e.__awaiter(n,void 0,void 0,(function(){var n;return e.__generator(this,(function(o){switch(o.label){case 0:return[4,Fd.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=Fd.getQueryData(["GET/reports/templates"]),Fd.setQueryData(["GET/reports/templates"],(function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){Fd.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Fd.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return Md((function(e){return Rp.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateRoles=function(){return Md((function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateSamlConfig=function(){return Md((function(e){return Rp.getInstance().createSamlConfig(e)}))},exports.useCreateSchedule=function(){var t=this;return Md(["POST/template-reporting/report-schedules"],(function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().createReportSchedule(n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useCreateScheduledReport=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))},exports.useCreateSubscription=function(){return Md(["post-subscription"],(function(e){return Rp.getInstance().postSubscription(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateTemplate=function(){var t=this;return Md(["POST/template-reporting/report-templates"],(function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().createTemplateReporting(n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCreateUserAuth0=function(){return Md((function(e){return Rp.getInstance().createUserAuth0(e)}))},exports.useCreateWorkflow=function(t,n,o){var r=this;return void 0===o&&(o=null),Md((function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().postSmartRoutingCreateWorkflow(t,n).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)},exports.useDeleteAccountsUserMassive=function(){return Md((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Rp.getInstance().deleteAccountsUserMassive(t,n,o)}))},exports.useDeleteAllowlistItem=function(){return Md(["delete-allowlist-item"],(function(e){return Rp.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useDeleteBlackListType=function(){return Md(["delete-blacklist"],(function(e){var t=e.black_list_code;return Rp.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteBlockListItem=function(){return Md(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Rp.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}))}))},exports.useDeleteChart=function(){return Md((function(e){return Rp.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useDeleteCustomizedApiKeys=function(){return Md((function(e){var t=e.code;return Rp.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useDeletePaymentLink=function(){return Md(["post-delete-payment-link"],(function(e){var t=e.code;return Rp.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteReconciliationAlert=function(){return Md(["DELETE/reconciliation/alerts"],(function(e){return Rp.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){Fd.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteRoles=function(){return Md((function(e){return Rp.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteSamlConfig=function(){return Md((function(){return Rp.getInstance().deleteSamlConfig()}))},exports.useDeleteSchedule=function(){var t=this;return Md(["DELETE/template-reporting/report-schedules"],(function(n){var o=n.scheduleId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().deleteReportSchedule(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDeleteScheduledReport=function(){return Md((function(e){return Rp.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteTemplate=function(){var t=this;return Md(["DELETE/template-reporting/report-templates"],(function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().deleteReportTemplate(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useDeleteUserTeamV2=function(){return Md((function(e){var t=e.userCode,n=e.organizationCode;return Rp.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useDeleteWebhookV2=function(e){return Md((function(e){var t=e.code,n=e.accountCode;return Rp.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDisableSchedule=function(){var t=this;return Md(["PATCH/template-reporting/report-schedules/disable"],(function(n){var o=n.scheduleId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().disableReportSchedule(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDuplicateAccount=function(){return Md((function(t){var n=e.__spreadArray([exports.DuplicateSetting.ACCOUNT],t.duplicate_order,!0);return Rp.getInstance().duplicateAccount(e.__assign(e.__assign({},t),{duplicate_order:n}))}))},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useEditPaymentLinks=function(){return Md(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Rp.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))},exports.useEditRoles=function(){var t=this;return Md((function(n){var o=n.payload,r=n.id,a=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().editRoles({payload:o,id:r},a)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}),{useErrorBoundary:!1})},exports.useEmailVerification=function(e){return Nd(["email-verification",e],(function(){return Rp.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useExcludeUsers=function(){return Md((function(e){var t=e.payload,n=e.organizationCode;return Rp.getInstance().mfaExcludeUsers(t,n)}))},exports.useExportApiLogs=function(){return Md((function(e){return Rp.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useExportWebhooksLogs=function(){return Md((function(e){return Rp.getInstance().postExportWebhooksLogs(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useFeatureFlags=function(t){var n=this,o=Object.values(t).filter(Boolean);return Nd(["feature-flags",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getFeatureFlagId(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o.length>1,useErrorBoundary:!1})},exports.useFirebaseUserSubscribe=function(e){return Md((function(e){var t=e.payload;return Rp.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGenerateFeedback=function(t){return void 0===t&&(t={}),Md((function(e){return Rp.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),e.__assign(e.__assign({},t),{useErrorBoundary:!1}))},exports.useGetAccounts=function(e){var t,n=Vd(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Nd({queryKey:["accounts",o],queryFn:function(){return Rp.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})},exports.useGetAccountsByUser=function(e){return Nd(["accountsV2-by-user",e],(function(){return e?Rp.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})},exports.useGetAccountsForImpersonation=function(t,n){var o=this;return Nd({queryKey:["accounts-for-impersonation",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getAccountsForImpersonation(t).then((function(e){var t,o;return(null===(o=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===o?void 0:o.map((function(e){return{label:e.name,value:n?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}})))||[]}))]}))}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetAccountsV2=function(e){return Nd(["accountsV2",e],(function(){return Rp.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})},exports.useGetAllConfigRules=function(){return Nd(["config-rules"],(function(){return Rp.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})},exports.useGetAllOrganizations=function(){return Nd(["fetch-all-organizations",Vd()],(function(){return Rp.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetAllReconciliationsAdvancements=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/advancements/list",t,n],(function(){return Rp.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAgenda=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/agenda/list",t,n],(function(){return Rp.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAlerts=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/alerts/list",t,n],(function(){return Rp.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsFees=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/fees/list",t,n],(function(){return Rp.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsSales=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/sales/list",t,n],(function(){return Rp.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(e){return Nd(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Rp.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetAllowedIps=function(){return Nd(["developers-get-allowed-ips"],(function(){return Rp.getInstance().getAllowedIps().then((function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null})).catch((function(t){return e.__assign(e.__assign({},t),{isError:!0})}))}),{enabled:!1,cacheTime:0})},exports.useGetApiLogsDetailByPaymentCode=function(e){return Nd(["api-logs-detail",e],(function(){return Rp.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})},exports.useGetAuditEvents=function(e){return Nd(["events",e],(function(){return Rp.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})},exports.useGetAuditLogsFilters=function(){return Nd(["/cms/audit-logs-filters"],(function(){return Rp.getInstance().useGetAuditLogsFilters().then((function(e){return lp(e)?fp:null==e?void 0:e.data})).catch((function(){return fp}))}))},exports.useGetAuditMonitorEventDetail=function(e){return Nd(["audit-monitor-event-detail",e],(function(){return Rp.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})},exports.useGetBatchRefundProcessedFileDownload=function(){var t=this;return Md((function(n){var o=n.batchRefundId,r=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getBatchRefundProcessedFileDownload(o,r,a).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.useGetBatchRefundUserFileDownload=function(){var t=this;return Md((function(n){var o=n.batchRefundId,r=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getBatchRefundUserFileDownload(o,r,a).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.useGetBatchRefunds=function(t,n){var o=this;return void 0===t&&(t=26),void 0===n&&(n=0),Nd(["batch-refunds",t,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getBatchRefunds(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})},exports.useGetBlackList=function(e){return Nd(["get-black-list",e],(function(){return Rp.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})},exports.useGetBlockListSummary=function(e,t,n){return Nd(["get-block-list-summary",e,t,n],(function(){var o=Rp.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})},exports.useGetCardBrands=function(){return Nd(["GET/catalog/card-brands"],(function(){return Rp.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetChartsByUser=function(){return Nd(["chartgpt-user-charts"],(function(){return Rp.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})},exports.useGetChartsByUserWithResults=function(){var t=this;return Nd(["chartgpt-user-charts-with-results"],(function(){return e.__awaiter(t,void 0,void 0,(function(){var t,n,o,r=this;return e.__generator(this,(function(a){switch(a.label){case 0:return[4,(t=Rp.getInstance()).getChartsByUser()];case 1:return n=a.sent(),o=(null==n?void 0:n.data)||[],[4,Promise.all(o.map((function(n){return e.__awaiter(r,void 0,void 0,(function(){var o,r,a,i,s,u,c,l;return e.__generator(this,(function(p){switch(p.label){case 0:return p.trys.push([0,2,,3]),[4,t.executeChartGPTChart(n.code)];case 1:return o=p.sent(),[2,e.__assign(e.__assign({},n),{user_prompt:null!==(i=null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.user_prompt)&&void 0!==i?i:n.user_prompt,unit_to_display:null!==(u=null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.unit_to_display)&&void 0!==u?u:n.unit_to_display,results:null!==(l=null===(c=null==o?void 0:o.data)||void 0===c?void 0:c.results)&&void 0!==l?l:[]})];case 2:return r=p.sent(),console.error("Failed to execute chart ".concat(n.chart_id,":"),r),[2,e.__assign(e.__assign({},n),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,a.sent()]}}))}))}))},exports.useGetCheckoutTemplate=function(e){var t=e.accountCode;return Nd(["checkouts-template"],(function(){return Rp.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})},exports.useGetCheckouts=function(e){var t=e.accountCode;return Nd(["checkouts",t],(function(){return Rp.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})},exports.useGetConditionalConfigRules=function(){return Md((function(e){return Rp.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetConfigAllowlist=function(e,t){return Nd(["get-cofig-allow-list",e],(function(){return Rp.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})},exports.useGetConnections=function(){return Nd(["connections"],(function(){return Rp.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useGetConnectionsByPaymentMethod=function(e){var t=e.accountCode,n=e.paymentMethod;return Nd(["fetch-connections-by-payment-method",n,t],(function(){return Rp.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetCountriesConfigPaymentLink=function(e){return void 0===e&&(e=!0),Nd(["countries",e],(function(){return Rp.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})},exports.useGetCountriesConfigPaymentLinkV2=function(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Nd(["countries-v2",n],(function(){return Rp.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})},exports.useGetCredentials=function(t){var n=t.password,o=t.accountCode;return Nd(["developers"],(function(){return Rp.getInstance().getDeveloperCredentials(n,o).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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})},exports.useGetCredentialsMFA=function(){return Md((function(t){var n=t.password,o=t.accountCode;return Rp.getInstance().getDeveloperCredentials(n,o).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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}}))}))},exports.useGetCustomizedApiKeys=function(e){return Nd(["fetch-customized-api-keys",e],(function(){return Rp.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)})},exports.useGetCustomizedApiKeysAccounts=function(){return Nd(["fetch-customized-api-keys-accounts"],(function(){return Rp.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetCustomizedApiKeysMembers=function(){return Nd(["fetch-customized-api-keys-members"],(function(){return Rp.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetCustomizedApiKeysProducts=function(){return Nd(["fetch-customized-api-keys-products"],(function(){return Rp.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})},exports.useGetCustomizedApiKeysToken=function(){return Md((function(e){var t=e.code,n=e.password;return Rp.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))},exports.useGetDashboardStaticContents=function(){return Nd(["/cms/static-contents"],(function(){return Rp.getInstance().getDashboardStaticContents().then((function(e){var t,n;return lp(e)?gp:(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})},exports.useGetDialogs=function(){return Nd(["dialogs"],(function(){return Rp.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})},exports.useGetDownloadReport=function(e,t,n){return void 0===t&&(t=!1),Nd(["reports/".concat(e)],(function(){return Rp.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})},exports.useGetEmailOtp=function(){return Md((function(){return Rp.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetHashPylon=function(){var t=this;return Nd(["fetch-hash-pylon"],(function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetImpersonationEnabled=function(){return Nd(["fetch-impersonation-enabled"],(function(){return Rp.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useGetImpersonationUsers=function(){return Nd(["fetch-impersonation-users"],(function(){return Rp.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})},exports.useGetInsightsReport=function(e){return Nd(["get-insights-reports",e],(function(){return Rp.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})},exports.useGetInsightsReportAgain=function(e){return Nd(["get-insights-reports-again",e],(function(){return Rp.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})},exports.useGetInstallmentPlans=function(e){return Nd(["installments-plans",e],(function(){return Rp.getInstance().getInstallmentPlans(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,o=Vd();return Nd(["organizations-account-integrations",t,n],(function(){return Rp.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1})},exports.useGetIntegrationParams=function(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Nd(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Rp.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})},exports.useGetLanguages=function(){return Nd(["languages"],(function(){return Rp.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})},exports.useGetLocales=function(){return Nd(["/cms/locales"],(function(){return Rp.getInstance().getLocales().then((function(e){return lp(e)?bp:e.data})).catch((function(){return bp}))}))},exports.useGetLoginMethods=function(){return Nd({queryKey:["get-login-methods"],queryFn:function(){return Rp.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})},exports.useGetMFAConfig=function(e,t){var n=e.organizationCode;return Nd(["mfa-config",n],(function(){return Rp.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMFAExcludedUsers=function(e,t){var n=e.organizationCode;return Nd(["mfa-excluded-users",n],(function(){return Rp.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMFAStatus=function(e,t){return Nd(["mfa-enforcement-status",e.accountCode],(function(){return Rp.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMenu=function(){return Nd(["menu"],(function(){return Rp.getInstance().getMenu().then((function(e){return lp(e)?yp:null==e?void 0:e.data})).catch((function(){return yp}))}))},exports.useGetMergedNotifications=function(){return Nd(["notifications-merged"],(function(){return Rp.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})},exports.useGetNameAndIcon=function(e,t){var n=e.paymentMethodType,o=e.type;return Nd(Wd({paymentMethodType:n,type:o}),(function(){return Rp.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useGetNetworkTokensOnboardingByOrganization=function(t){var n=this;return Nd({queryKey:["network-tokens-onboarding",t],queryFn:function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getNetworkTokensOnboardingByOrganization(t)];case 1:return[2,e.sent().data]}}))}))},enabled:!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetNotificationsCustomer=function(e){return Nd(["notifications-customer",e],(function(){return Rp.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})},exports.useGetNotificationsNumberMutation=function(){return Md((function(e){return Rp.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetOrganization=function(){return Nd(["fetch-organizations"],(function(){return Rp.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetOrganizationConfigs=function(){return Nd({queryKey:["organization-configs"],queryFn:function(){return Rp.getInstance().getOrganizationConfigs().then((function(e){return null==e?void 0:e.data}))},cacheTime:0,useErrorBoundary:!1})},exports.useGetPaymentFilters=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=exports.PaymentFiltersSection.PAYMENTS),Nd(["payment-filters",e,t],(function(){return Rp.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})},exports.useGetPaymentLinkByCode=function(e){return Nd(["payment-link"],(function(){return Rp.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetPaymentLinks=function(e,t){return Nd(["fetch-payment-links",e,t],(function(){return Rp.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})},exports.useGetPaymentMethodsAndProviders=function(){return Nd({queryKey:["/payment-methods/providers"],queryFn:function(){return Rp.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})},exports.useGetPaymentMetricsFilters=function(){return Nd(["payment-metrics-filters"],(function(){return Rp.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetPaymentStatusesStyles=function(){return Nd(["/payment/statuses/style"],(function(){return Rp.getInstance().useGetPaymentStatusesStyles().then((function(e){return lp(e)?pp:null==e?void 0:e.data})).catch((function(){return pp}))}))},exports.useGetPaymentTransactionsDetails=function(e){var t=e.transaction_code,n=e.enabled;return Nd(["payment-transaction-details",t],(function(){return Rp.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetPaymentV2=function(t){var n=this,o=t.paymentCode,r=t.enabled,a=void 0===r||r,i=Rp.getInstance();return Nd(["get-payment-v2",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,i.getPaymentV2(o).then((function(e){return e.data}))]}))}))}),{enabled:a,cacheTime:500,useErrorBoundary:!1})},exports.useGetPaymentsMethodsByCountry=function(e){var t=Vd();return Nd(["payment-methods",e],(function(){return Rp.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})},exports.useGetPayoutDetail=function(e){return Nd(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Rp.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})},exports.useGetPayoutHistoryDetail=function(e){var t=Vd();return Nd(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Rp.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})},exports.useGetPayoutTransactionDetail=function(e){return Nd(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Rp.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})},exports.useGetPendingDuplicateAccounts=function(e){return Nd({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Rp.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})},exports.useGetPermissions=function(e,t){return Nd(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),r=localStorage.getItem("user"),a=o&&JSON.parse(o),i=r&&JSON.parse(r);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))},exports.useGetPermissionsCatalog=function(){return Nd(["fetch-permissions-catalog"],(function(){return Rp.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useGetProfile=function(){return Nd(["fetch-profile"],(function(){return Rp.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})},exports.useGetProofOfCancel=function(t,n){var o=this,r=Vd();return Nd(["GET/useGetProofOfCancel",r,t,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getProofOfCancel(t,r,n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t&&!!r&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProofOfPayment=function(t,n){var o=this,r=Vd();return Nd(["GET/useGetProofOfPayment",r,t,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getProofOfPayment(t,r,n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t&&!!r&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=Vd();return Nd(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Rp.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})},exports.useGetReconciliationActive=function(){return Nd(["GET/v1/reconciliation/active"],(function(){return Rp.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/agenda/insights",t,n],(function(){return Rp.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return Nd(["GET-reconciliation-filters"],(function(){return Rp.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(e,t){return Nd(["fetch-reconciliation-metrics",e],(function(){return Rp.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})},exports.useGetReconciliationTransactionStatusesStyles=function(){return Nd(["/reconciliation/transaction/statuses/style"],(function(){return Rp.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return lp(e)?hp:null==e?void 0:e.data})).catch((function(){return hp}))}))},exports.useGetReconciliationTransactions=function(e,t){return Nd(["fetch-reconciliation-transaction",e],(function(){return Rp.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useGetReconciliationsReportColumns=function(e,t,n){return Nd(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Rp.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetReconciliationsReportTemplates=function(e){return Nd(["GET/reconciliation/reports/templates"],(function(){return Rp.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetRefundPdf=function(t,n){var o=this,r=Vd();return Nd(["getRefundPdf",t,r,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getRefundPdf(t,r,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!t&&!!r,useErrorBoundary:!1})},exports.useGetReportColumns=function(t,n,o){var r=this;return Nd(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(t){return[2,Rp.getInstance().getReportColumns(n,o).then((function(t){return n===exports.TemplateType.ALL&&o===exports.ReportType.PAYMENTS?e.__spreadArray(e.__spreadArray([],null==t?void 0:t.data,!0),[Kd],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(e){return Nd(["GET/reports/templates"],(function(){return Rp.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetReportsList=function(){return Nd(["reports"],(function(){return Rp.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(e){return void 0===e&&(e=!0),Nd(["reports-multi-env"],(function(){return Rp.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})},exports.useGetRequiredFields=function(e,t){var n=e.paymentMethodType,o=e.type;return Nd(Hd({paymentMethodType:n,type:o}),(function(){return Rp.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useGetRoles=function(){return Nd(["fetch-roles"],(function(){return Rp.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetRolesPermissions=function(){return Nd(["fetch-rolespermissions"],(function(){return Rp.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetRoutingMonitorsTemplate=function(e,t){return Nd(["fetch-routing-monitors-template",e],(function(){return Rp.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})},exports.useGetRoutingMonitorsTemplates=function(e){return Nd(["fetch-routing-monitors-templates",e],(function(){return Rp.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetRule=function(){return Md((function(e){return Rp.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetSamlConfig=function(e){return Nd(["fetch-organization-saml-config",e],(function(){return Rp.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetScheduledReportsList=function(e){return Nd(["GET/scheduled-reports",e],(function(){return Rp.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetSettlements=function(e,t){return Nd(["fetch-reconciliation-settlements",e],(function(){return Rp.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useGetSmartRoutingConditionPaymentMethod=function(e,t){return Nd(["smart-routing-condition-payment-method",e,t],(function(){return Rp.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})},exports.useGetSmartRoutingConditionTypes=function(e,t){return Nd(["smart-routing-condition-types",e,t],(function(){return Rp.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})},exports.useGetSmartRoutingConditionTypesValues=function(e,t){return Nd(["smart-routing-condition-types-values",t,e],(function(){return Rp.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingDataReport=function(e){return Nd(["data-report",e],(function(){return Rp.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingDeclineGroups=function(e){return Nd(["smart-routing-decline-groups",e],(function(){return Rp.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingMethods=function(e){return Nd(["smart-routing-methods",e],(function(){return Rp.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingNextRoute=function(e,t,n){return Nd(["smart-routing-next-route",e,n,t],(function(){return Rp.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetSmartRoutingPaymentRoute=function(e,t){return Nd(["smart-routing-payment-route",e,t],(function(){return Rp.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})},exports.useGetSmartRoutingSearchConditionValues=function(e){var t=e.text,n=e.conditionType;return Nd(["smart-routing-search-condition-values",t,n],(function(){return Rp.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})},exports.useGetSmartRoutingSimulateConditionTypeValues=function(e){return Nd(["smart-routing-simulate-condition-type-values",e],(function(){return Rp.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingWorkflow=function(e,t){return Nd(["smart-routing-workflow",t,e],(function(){return Rp.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})},exports.useGetSmartRoutingWorkflowVersion=function(e){var t=e.accountCode,n=e.workflowVersionId;return Nd(["smart-routing-workflow-version",n,t],(function(){return Rp.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})},exports.useGetStylingSdkDynamic=function(e){var t=e.accountCode;return Nd(["styling-sdk-dynamic",t],(function(){return Rp.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})},exports.useGetStylingSettings=function(e){var t=e.accountCode;return Nd(["styling-settings",t],(function(){return Rp.getInstance().getStylingSettings({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Nd(["styling-settings-v2",t],(function(){return Rp.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetStylingTheme=function(e){var t=e.accountCode;return Nd(["styling-theme",t],(function(){return Rp.getInstance().getStylingTheme({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetSubscriptionByCode=function(e,t){return void 0===t&&(t=!0),Nd(["subscription",e],(function(){return Rp.getInstance().getSubscriptionByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:500})},exports.useGetSubscriptionPayments=function(e,t,n,o){return void 0===o&&(o=!0),Nd(["subscription-payments",e,t,n],(function(){return Rp.getInstance().getSubscriptionPayments(e,t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&o,cacheTime:0})},exports.useGetTeamsFiltersMembers=function(){var e=Vd();return Nd(["teams-filters-members"],(function(){return Rp.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})},exports.useGetTimeZoneCatalog=function(){return Nd(["timezone-catalog"],(function(){return Rp.getInstance().useGetTimeZoneCatalog().then((function(e){return lp(e)?mp:null==e?void 0:e.data})).catch((function(){return mp}))}))},exports.useGetTimezonePaymentLink=function(e){return Nd(["timezone"],(function(){return Rp.getInstance().getTimezone(e).then((function(e){return lp(e)?mp:null==e?void 0:e.data})).catch((function(){return mp}))}),{enabled:!0,keepPreviousData:!0})},exports.useGetTokenValidation=function(){return Md((function(e){var t=e.password,n=e.otp;return Rp.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetTransactionDetailsV2=function(t){var n=this,o=t.payment_code,r=t.enabled,a=void 0===r||r,i=Rp.getInstance();return Nd(["get-payment-transaction-details-v2",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,i.getTransactionDetailsV2({payment_code:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!o&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionHistoryByPaymentCode=function(e){var t=e.payment_code,n=e.enabled;return Nd(["transaction-history",t],(function(){return Rp.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetTransactionRawResponse=function(t){var n=this,o=t.transaction_code,r=t.enabled,a=void 0===r||r,i=Rp.getInstance();return Nd(["get-payment-transaction-raw-response",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,i.getTransactionRawResponse({transaction_code:o})]}))}))}),{enabled:!!o&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionStatusesStyles=function(){return Nd(["/transaction/statuses/style"],(function(){return Rp.getInstance().useGetTransactionStatusesStyles().then((function(e){return lp(e)?dp:null==e?void 0:e.data})).catch((function(){return dp}))}),{cacheTime:36e5,useErrorBoundary:!1})},exports.useGetTranslations=function(){var e=localStorage.getItem("lang")||"en";return Nd(["translations",e],(function(){return Rp.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})},exports.useGetUserFull=function(){var t=this;return Nd(["get-user-full"],(function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getUserFull()];case 1:return[2,e.sent().data]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetUsersToImpersonate=function(t,n,o,r,a){var i=this;return void 0===o&&(o=1),void 0===r&&(r=10),Nd(["get-users-to-impersonate",t,n,o,r,a],(function(){return e.__awaiter(i,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getUsersToImpersonate(t,n,o,r,a).then((function(e){return null==e?void 0:e.data}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetValidateOpsgenieKey=function(e){return Nd(["validate-opsgenie-key",e],(function(){return Rp.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})},exports.useGetWebhookParamsV2=function(){return Nd(["params-catalog"],(function(){return Rp.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetWebhooksV2Detail=function(e){var t=e.accountCode,n=e.enabled;return Nd(["webhooks-detail",t],(function(){return Rp.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})},exports.useGetWebhooksV3=function(e){var t=e.accountCode,n=e.name;return Nd(["webhooks",t,n],(function(){return Rp.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useInsights3dsConversionRateAndEvolution=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsights3dsConversionRateAndEvolution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsDeclineReasons=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsights3dsDeclineReasons(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsFrictionlessVsChallenge=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsights3dsFrictionlessVsChallenge(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsVolumeAndCountTx=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsights3dsVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByCardBrand=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksByCardBrand(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByProviderAndCardBrand=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksByProviderAndCardBrand(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksDisputed=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksDisputed(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksReasonsDistribution=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksReasonsDistribution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksStatusDistribution=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksStatusDistribution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksTotalRateAndEvolution=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-total-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksTotalRateAndEvolution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksVolumeAndCountTx=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksWinRate=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksWinRate(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsConversionRateMetricsV2=function(e,t,n,o){var r,a;void 0===n&&(n=!0);var i=null!==(r=null==o?void 0:o.staleTime)&&void 0!==r?r:3e5,s=null!==(a=null==o?void 0:o.cacheTime)&&void 0!==a?a:3e5;return Nd(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Rp.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:i,cacheTime:s,useErrorBoundary:!1,retry:1})},exports.useInsightsCustomerPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Nd(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Rp.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFallbackMetrics=function(e){return Nd(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Rp.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningConversionRate=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsFraudScreeningConversionRate(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningVolumeAndCountTx=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsFraudScreeningVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsHomeMetrics=function(e){return Nd(["get-insights-home-metrics",e],(function(){return Rp.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})},exports.useInsightsOverviewMetrics=function(e){return Nd(["get-insights-overview",e],(function(){return Rp.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})},exports.useInsightsOverviewMetricsV3=function(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Nd(["get-insights-overview-v3",e,t],(function(){return Rp.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})},exports.useInsightsTotalPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Nd(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Rp.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Nd(["get-insights-volume-metrics",t,e],(function(){return Rp.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetricsV2=function(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Nd(["get-insights-volume-metrics-v2",t,e,n],(function(){return Rp.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})},exports.useInviteUsersMultiaccountMassive=function(){return Md((function(e){return Rp.getInstance().inviteUsersMassive(e,e.organizationCode)}))},exports.useIsTesting=function(){var e=t.useState("ON"===localStorage.getItem("isTesting")),n=e[0],o=e[1];return t.useEffect((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&o("ON"===e.newValue)}))}),[]),{isTesting:n}},exports.useListSubscriptions=function(){return Md(["post-list-subscriptions"],(function(e){return Rp.getInstance().postListSubscriptions(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useLoginMethods=function(){return Md((function(e){return Rp.getInstance().changeLoginMethods(e)}))},exports.useNetworkTokensOnboarding=function(){var t=this;return Nd({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})},exports.useNewPostConnectionValidate=function(){return Md(["new-post-connection-validate"],(function(){return Rp.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.usePatchAccountV2=function(){return Md((function(e){var t=e.name,n=e.code,o=e.principal;return Rp.getInstance().patchAccountV2({name:t,code:n,principal:o})}))},exports.usePatchAddAllowlistItems=function(){return Md(["post-add-allowlist-items"],(function(e){var t=e.payload;return Rp.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchAllowedIps=function(){return Md(["developers-patch-allowed-ips"],(function(t){return Rp.getInstance().patchAllowedIps(t).then((function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null})).catch((function(t){return e.__assign(e.__assign({},t),{isError:!0})}))}),{cacheTime:0})},exports.usePatchAllowlist=function(){return Md(["patch-allowlist"],(function(e){var t=e.payload;return Rp.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchAndExecuteChart=function(t,n,o){var r=this;return void 0===o&&(o=!0),Nd(["chartgpt-patch-and-execute",t,n],(function(){return e.__awaiter(r,void 0,void 0,(function(){var o,r,a,i,s;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,(o=Rp.getInstance()).patchChartGPTChart(t,n)];case 1:return r=e.sent(),a=null==r?void 0:r.data,[4,o.executeChartGPTChart(t)];case 2:return i=e.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}}))}))}),{enabled:o&&!!t,retry:!1})},exports.usePatchApiKeysEditNote=function(){return Md((function(e){var t=e.payload,n=e.code;return Rp.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.usePatchChangeStatusAllowlist=function(){return Md(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Rp.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchChangeStatusAllowlistItem=function(){return Md(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Rp.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchChartName=function(){return Md((function(e){var t=e.chart_id,n=e.type,o=e.name,r=e.user_prompt,a=void 0===r?"":r;return Rp.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:a}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.usePatchConnection=function(){return Md(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Rp.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePathCreateCustomizedApiKeys=function(){return Md((function(e){var t=e.payload,n=e.code;return Rp.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePathNotifications=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}))},exports.usePauseSubscription=function(){return Md(["post-pause-subscription"],(function(e){var t=e.subscriptionCode;return Rp.getInstance().postPauseSubscription(t).then((function(e){return null==e?void 0:e.data}))}))},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var o=Vd();return Nd(["getPayoutsFilters",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getPayoutsFilters(o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:t&&!!o})},exports.usePayoutsList=function(e){return Nd(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Rp.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})},exports.usePostAccount=function(){return Md((function(e){var t=e.name,n=e.principal;return Rp.getInstance().postAccount(t,n)}))},exports.usePostAllowlistMultiAccount=function(e){return Nd(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Rp.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.usePostApiKeysRoll=function(){return Md((function(e){var t=e.payload,n=e.code,o=e.password;return Rp.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.usePostApiLogs=function(e){return Nd(["api-logs",e],(function(){return Rp.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostAuditMonitors=function(e){return Md((function(e){var t=e.payload;return Rp.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().batchRefundByFile({payload:n}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.usePostBlackListBatch=function(e){var t=e.handleSetProgress;return Md(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,r=e.file;return Rp.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:r,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostBlackListItems=function(){return Md(["post-blacklist-items"],(function(e){var t=e.payload;return Rp.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostBlackListMultiAccount=function(){return Md(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Rp.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostBlockList=function(e,t,n,o){var r;return Nd(["post-black-list",e],(function(){return Rp.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===(r=e[0])||void 0===r?void 0:r.length)>0&&null!==t,useErrorBoundary:!1})},exports.usePostCall=function(){return Md((function(e){return Rp.getInstance().postCall(e)}))},exports.usePostChangeStatusConnection=function(){return Md(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.usePostConnectionMultiAccount=function(){return Md(["post-connection"],(function(e){var t=e.payload;return Rp.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostCreateAllowlistMultiAccount=function(){return Md(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Rp.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateCustomizedApiKeys=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateInsightsReport=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateRuleMultiAccount=function(){return Md((function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCredentialsValidatePassword=function(){return Md((function(e){var t=e.passwordOtp;return Rp.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))},exports.usePostCredentialsValidatePasswordRegularUser=function(){return Md((function(e){var t=e.password;return Rp.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.usePostDefaultRoutes=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.usePostEditRule=function(){return Md((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Rp.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostFraudTransactions=function(t){var n=this;return Nd(["POST/fraud-transactions",JSON.stringify(t)],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().postFraudTransactions(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostGetAllowlistItems=function(){return Md(["post-get-allowlist-items"],(function(e){var t=e.payload;return Rp.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostGetAllowlistMultiAccount=function(){return Md(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Rp.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,r=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=Vd();return Nd(["fetch-post-members-v2",t,n,o,r,a,i,s,u,c],(function(){return Rp.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:r,roleId:a,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})},exports.usePostNetworkTokensOnboarding=function(){var t=this;return Md((function(n){var o=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})},exports.usePostOrganizationConfigs=function(){return Md((function(e){return Rp.getInstance().postOrganizationConfigs(e)}))},exports.usePostPaymentsEvaluated=function(e){return Nd(["fetch-payments-evaluated",e],(function(){return Rp.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostPaymentsLazy=function(t){var n=this;return Nd(["fetch-payments-lazy",t],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().postPaymentsLazy(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostSlackMessageChannel=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostTransactions=function(t){var n=this;return Nd(["POST/transactions",JSON.stringify(t)],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().postTransactions(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t,cacheTime:0,useErrorBoundary:!1})},exports.usePostUserSettings=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})},exports.usePostUserSettingsPinned=function(e){return Md(["pinned-sections"],(function(e){var t=e.payload;return Rp.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})},exports.usePostUserSettingsTables=function(){return Md((function(e){var t=e.payload,n=e.section;return Rp.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(t){var n=Fd.getQueryData(["fetch-profile"]);t.data&&Fd.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return Md((function(e){return Rp.getInstance().postUserThemeSettings(e)}))},exports.usePostValideStatusConnection=function(){return Md(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostVelocityRules=function(e){return Nd(["velocity-rules",e],(function(){var t=Rp.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})},exports.usePostWebhookLogs=function(e){var t=e.params;return Nd(["webhook-logs",t],(function(){return Rp.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostWebhookMultiAccount=function(e){return Md((function(e){var t=e.payload;return Rp.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){return Nd(["smart-routing-conversion-rates"],(function(){return Rp.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})},exports.useProviderRawResponse=function(){return Md((function(e){var t=e.transactionCode,n=e.payload;return Rp.getInstance().postProviderRawResponse(t,n)}))},exports.usePublishVersion=function(t,n){var o=this,r=t.versionCode,a=t.accountCode,i=t.organizationCode;return void 0===n&&(n=null),Md((function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().postSmartRoutingPublishVersion(a,r,i).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),n)},exports.usePutAccountPrincipal=function(){return Md((function(e){var t=e.account_code;return Rp.getInstance().putAccountPrincipal({account_code:t})}))},exports.usePutAccountsUserMassive=function(){return Md((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Rp.getInstance().putAccountsUserMassive(t,n,o)}))},exports.usePutBlackListType=function(){return Md(["put-blacklist"],(function(e){return Rp.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePutCosts=function(){return Md((function(e){return Rp.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.usePutOrganizationConfigsByAccount=function(){return Md((function(e){return Rp.getInstance().putOrganizationConfigsByAccount(e)}))},exports.useRecoveredPaymentsByDay=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-recovered-payments-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-payments-by-day",o)];case 1:return r=e.sent(),[2,Zd(r.data,o.start_date,o.end_date)]}}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRecoveredTPVByDay=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-recovered-tpv-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-tpv-by-day",o)];case 1:return r=e.sent(),[2,Yd(r.data,o.start_date,o.end_date)]}}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRescheduleSubscription=function(){return Md(["post-reschedule-subscription"],(function(e){var t=e.subscriptionCode;return Rp.getInstance().postRescheduleSubscription(t).then((function(e){return null==e?void 0:e.data}))}))},exports.useResendWebhooks=function(){return Md((function(e){var t=e.codes;return Rp.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useResumeSubscription=function(){return Md(["post-resume-subscription"],(function(e){var t=e.subscriptionCode;return Rp.getInstance().postResumeSubscription(t).then((function(e){return null==e?void 0:e.data}))}))},exports.useRetryDuplicateAccount=function(){return Md((function(e){return Rp.getInstance().retryDuplicateAccount(e)}))},exports.useSaveVersion=function(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)},exports.useSearchScheduleById=function(t,n,o){var r=this;return Nd(["POST/template-reporting/schedule-by-id/search",t,n],(function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().searchReportScheduleById(t,n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o&&!!t,useErrorBoundary:!1,cacheTime:0})},exports.useSearchSchedules=function(t,n){var o=this;return Nd(["POST/template-reporting/schedules/search",t],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().searchReportSchedules(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:n,useErrorBoundary:!1,cacheTime:0})},exports.useSearchTemplateById=function(t,n,o){var r=this;return Nd(["POST/template-reporting/template-by-id/search",t,n],(function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().searchReportTemplateById(t,n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o&&!!t,useErrorBoundary:!1,cacheTime:0})},exports.useSearchTemplates=function(t,n){var o=this;return Nd(["POST/template-reporting/templates/search",t],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().searchReportTemplates(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:n,useErrorBoundary:!1,cacheTime:0})},exports.useSendPaymentNotification=function(t,n,o){var r=this,a=Rp.getInstance();return Nd(["send-payment-notification",t,n],(function(){return e.__awaiter(r,void 0,void 0,(function(){var r,i;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a.sendPaymentNotification(t,n)];case 1:return r=e.sent(),o.onSuccess(),[2,r.data];case 2:throw i=e.sent(),o.onError(),i;case 3:return[2]}}))}))}),{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return Md((function(){return Rp.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))},exports.useSmartRoutingCreateDeclinedGroup=function(e){var t=e.accountCode;return Md((function(e){return void 0===e&&(e=null),Rp.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)},exports.useSmartRoutingEditWorkflowName=function(e,t){var n=e.code,o=e.name,r=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().putSmartRoutingUpdateWorkflowName(r,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),Md((function(e){var n=e.payload;return Rp.getInstance().multiAccountDeclinedGroupCreate(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingRemoveDeclinedGroup=function(t,n){return void 0===n&&(n={}),Md((function(e){var n=e.declinedGroupCode;return Rp.getInstance().removeDeclinedGroup(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingSimulateTransaction=function(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Md((function(e){return Rp.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Md((function(e){return void 0===e&&(e=!1),Rp.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateDeclinedGroup=function(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Md((function(e){return void 0===e&&(e=null),Rp.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateMonitorRedistribution=function(e,t){return void 0===t&&(t=null),Md((function(t){return Rp.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,o=e.active,r=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().putSmartRoutingToggleMethod(r,n,o).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useUnInviteUsersV2=function(){return Md((function(e){var t=e.userCode,n=e.organizationCode;return Rp.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))},exports.useUnrollUserV2=function(){return Md((function(e){return Rp.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateCheckoutTemplate=function(){return Md((function(e){var t=e.accountCode,n=e.template;return Rp.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateIsActiveCheckout=function(e){return Md((function(e){return Rp.getInstance().updateIsActiveCheckout(e)}),e)},exports.useUpdateMFAConfig=function(){return Md((function(e){var t=e.payload,n=e.organizationCode;return Rp.getInstance().updateMFAConfig(t,n)}))},exports.useUpdateOrganizationStatus=function(){return Md(["patch-organizations"],(function(){return Rp.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateProfile=function(e){return Md((function(e){return Rp.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateReconciliationAlert=function(){return Md(["UPDATE/reconciliation/alerts"],(function(e){return Rp.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){Fd.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(e){return Md((function(){return Rp.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useUpdateReportTemplate=function(e){return Md((function(){return Rp.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateSamlConfig=function(){return Md((function(e){return Rp.getInstance().updateSamlConfig(e)}))},exports.useUpdateScheduledReport=function(){return Md((function(e){var t=e.reportCode,n=e.payload;return Rp.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useUpdateStylingTheme=function(){return Md((function(e){var t=e.accountCode,n=e.theme;return Rp.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateSubscription=function(){return Md(["patch-subscription"],(function(e){var t=e.subscriptionCode,n=e.payload;return Rp.getInstance().patchSubscription(t,n).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateTemplateSelection=function(){var t=this;return Md(["PATCH/template-reporting/report-templates/selection"],(function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().updateTemplateSelection(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useUpdateWebhookV2=function(e){return Md((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Rp.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFileV2=function(e){var n=e.fileName,o=e.onSuccess,r=e.onError,a=t.useState(0),i=a[0],s=a[1],u=t.useRef({cancel:function(){return null}}),c=Md(["upload-file-chargeback",n],(function(e){var t=Rp.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:s}),n=t.promise,a=t.cancel;return u.current.cancel=a,n.then((function(e){return null==o||o(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==r||r(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:u.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return Md((function(e){return Rp.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=t.useRef({cancel:function(){return null}}),n=Md(["upload-file"],(function(t){var n=Rp.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,r=n.cancel;return e.current.cancel=r,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:n,cancelRequest:e.current.cancel}},exports.useValiateAllowlistItems=function(){return Md(["validate-allowlist-items"],(function(e){return Rp.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.useValidateBlockListItems=function(){return Md(["valiate-blacklist-items"],(function(e){return Rp.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useValidateCredentials=function(){return Md((function(e){return Rp.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.useValidateOrgName=function(){return Md((function(e){return Rp.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useValidatePasswordStatus=function(){return Md((function(){return Rp.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))},exports.useViewMoreMetrics=function(e,t){return Nd(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Rp.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})};
233
+ const rh=7,ah=6,ih=5,sh=4,uh=3,ch=2,lh=1,ph=0;function dh(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:lh,!n.accessors){const o=hh(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const r=function(e,t){const n=[];for(let o=0,r=t.length;o<r;o++){const r=t[o],a=yh(r),i=fh(e,r);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:ph,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<r.length;e++){const o=r[e];let i=hh(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=lh?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=c,a.rankedValue=o.itemValue)}return a}function hh(e,t,n){return e=mh(e,n),(t=mh(t,n)).length>e.length?ph:e===t?rh:(e=e.toLowerCase())===(t=t.toLowerCase())?ah:e.startsWith(t)?ih:e.includes(` ${t}`)?sh:e.includes(t)?uh:1===t.length?ph:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?ch:function(e,t){let n=0,o=0;function r(e,t,o){for(let r=o,a=t.length;r<a;r++){if(t[r]===e)return n+=1,r+1}return-1}function a(e){const o=1/e,r=n/t.length;return lh+r*o}const i=r(t[0],e,0);if(i<0)return ph;o=i;for(let n=1,a=t.length;n<a;n++){o=r(t[n],e,o);if(!(o>-1))return ph}const s=o-i;return a(s)}(e,t)}function mh(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(oh,(e=>th[e]))),e}function fh(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 gh={maxRanking:1/0,minRanking:-1/0};function yh(e){return"function"==typeof e?gh:{...gh,...e}}function bh(e,t){const[n,r]=o.useState();o.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,o.useCallback((t=>{r((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var kh,vh=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}(),wh=function(){function e(e){this.generateIdentifier=e,this.kv=new vh}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}(),jh=(kh=function(e,t){return kh=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])},kh(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}kh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_h=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return jh(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}(wh),Eh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i};function Ch(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,r=0;r<o.length;r++){var a=o[r];if(t(a))return a}}function Sh(e,t){Object.entries(e).forEach((function(e){var n=Eh(e,2),o=n[0],r=n[1];return t(r,o)}))}function xh(e,t){return-1!==e.indexOf(t)}function Rh(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var Th=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Ch(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),Ih=function(e){return void 0===e},Ah=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},Oh=function(e){return Ah(e)&&0===Object.keys(e).length},Ph=function(e){return Array.isArray(e)},zh=function(e){return e instanceof Map},Dh=function(e){return e instanceof Set},Lh=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Nh=function(e){return"number"==typeof e&&isNaN(e)},Mh=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||Ih(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Lh(e)},qh=function(e){return e.replace(/\./g,"\\.")},Uh=function(e){return e.map(String).map(qh).join(".")},Bh=function(e){for(var t=[],n="",o=0;o<e.length;o++){var r=e.charAt(o);if("\\"===r&&"."===e.charAt(o+1))n+=".",o++;else"."===r?(t.push(n),n=""):n+=r}var a=n;return t.push(a),t},Fh=function(){return Fh=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Fh.apply(this,arguments)},Gh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},Vh=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e};function Wh(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Hh=[Wh(Ih,"undefined",(function(){return null}),(function(){})),Wh((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)})),Wh((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),Wh((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})),Wh((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)})),Wh(Dh,"set",(function(e){return Vh([],Gh(e.values()))}),(function(e){return new Set(e)})),Wh(zh,"map",(function(e){return Vh([],Gh(e.entries()))}),(function(e){return new Map(e)})),Wh((function(e){return Nh(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return Nh(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),Wh((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),Wh((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function Kh(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var $h=Kh((function(e,t){return!!Lh(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})),Qh=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Jh=Kh((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return Vh([],Gh(e))}),(function(e,t){var n=Qh[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Xh(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Yh=Kh(Xh,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Fh({},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)})),Zh=Kh((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)})),em=[Yh,$h,Zh,Jh],tm=function(e,t){var n=Rh(em,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=Rh(Hh,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},nm={};Hh.forEach((function(e){nm[e.annotation]=e}));var om=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function rm(e){if(xh(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(xh(e,"prototype"))throw new Error("prototype is not allowed as a property");if(xh(e,"constructor"))throw new Error("constructor is not allowed as a property")}var am=function(e,t,n){if(rm(t),0===t.length)return n(e);for(var o=e,r=0;r<t.length-1;r++){var a=t[r];if(Ph(o))o=o[+a];else if(Ah(o))o=o[a];else if(Dh(o)){o=om(o,i=+a)}else if(zh(o)){if(r===t.length-2)break;var i=+a,s=0==+t[++r]?"key":"value",u=om(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(Ph(o)?o[+c]=n(o[+c]):Ah(o)&&(o[c]=n(o[c])),Dh(o)){var l=om(o,+c),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(zh(o)){i=+t[t.length-2];var d=om(o,i);switch(s=0==+c?"key":"value"){case"key":var h=n(d);o.set(h,o.get(d)),h!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},im=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},sm=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e};function um(e,t,n){if(void 0===n&&(n=[]),e)if(Ph(e)){var o=im(e,2),r=o[0],a=o[1];a&&Sh(a,(function(e,o){um(e,t,sm(sm([],im(n)),im(Bh(o))))})),t(r,n)}else Sh(e,(function(e,o){return um(e,t,sm(sm([],im(n)),im(Bh(o))))}))}function cm(e,t,n){return um(t,(function(t,o){e=am(e,o,(function(e){return function(e,t,n){if(!Ph(t)){var o=nm[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return $h.untransform(e,t,n);case"class":return Yh.untransform(e,t,n);case"custom":return Zh.untransform(e,t,n);case"typed-array":return Jh.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function lm(e,t){function n(t,n){var o=function(e,t){rm(t);for(var n=0;n<t.length;n++){var o=t[n];if(Dh(e))e=om(e,+o);else if(zh(e)){var r=+o,a=0==+t[++n]?"key":"value",i=om(e,r);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,Bh(n));t.map(Bh).forEach((function(t){e=am(e,t,(function(){return o}))}))}if(Ph(t)){var o=im(t,2),r=o[0],a=o[1];r.forEach((function(t){e=am(e,Bh(t),(function(){return e}))})),a&&Sh(a,n)}else Sh(t,n);return e}var pm=function(e,t,n,o,r,a,i){var s;void 0===r&&(r=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var u=Mh(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,r,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return Ah(e)||Ph(e)||zh(e)||Dh(e)||Xh(e,t)}(e,n)){var l=tm(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,p),p}if(xh(a,e))return{transformedValue:null};var d=tm(e,n),h=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,m=Ph(h)?[]:{},f={};Sh(h,(function(s,u){var c=pm(s,t,n,o,sm(sm([],im(r)),[u]),sm(sm([],im(a)),[e]),i);m[u]=c.transformedValue,Ph(c.annotations)?f[u]=c.annotations:Ah(c.annotations)&&Sh(c.annotations,(function(e,t){f[qh(u)+"."+t]=e}))}));var g=Oh(f)?{transformedValue:m,annotations:d?[d.type]:void 0}:{transformedValue:m,annotations:d?[d.type,f]:f};return u||i.set(e,g),g};function dm(e){return Object.prototype.toString.call(e).slice(8,-1)}function hm(e){return"Array"===dm(e)}function mm(e,t={}){if(hm(e))return e.map((e=>mm(e,t)));if(!function(e){if("Object"!==dm(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(hm(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,r){const a={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),r&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,mm(e[o],t),e,t.nonenumerable),n}),{})}var fm=function(){return fm=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},fm.apply(this,arguments)},gm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},ym=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e},bm=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new _h,this.symbolRegistry=new wh((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new Th,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=pm(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=fm(fm({},o.meta),{values:n.annotations}));var r,a,i,s,u=(r=t,a=this.dedupe,i={},s=void 0,r.forEach((function(e){if(!(e.length<=1)){a||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=im(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(Uh):i[Uh(n)]=o.map(Uh)}})),s?Oh(i)?[s]:[s,i]:Oh(i)?void 0:i);return u&&(o.meta=fm(fm({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=mm(t);return(null==n?void 0:n.values)&&(o=cm(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=lm(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(fm({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,ym([],gm(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 km={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},vm=o.createContext(km);function wm({theme:e,...t}){return o.createElement(vm.Provider,eh({value:e},t))}function jm({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 _m(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Em(e,t,n={}){return o.forwardRef((({style:r,...a},i)=>{const s=o.useContext(vm),u=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=o.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return o.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 o.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...r,...u},ref:i})}))}const Cm=(e,t=!1)=>{const{json:n}=bm.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Sm=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,xm=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Rm={"Status > Last Updated":(e,t)=>Sm(e)===Sm(t)?xm(e,t):Sm(e)>Sm(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":xm},Tm=500,Im={top:"bottom",bottom:"top",left:"right",right:"left"};function Am(e){return["left","right"].includes(e)}function Om(e){return Im[e]}function Pm(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function zm(e="bottom"){const t=Am(e),n=Om(e),o=Pm("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 Dm=Em("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"}}),Lm=Em("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),Nm=Em("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"}))),Mm=Em("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),qm=Em("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Um=Em("code",{fontSize:".9em",color:"inherit",background:"inherit"}),Bm=Em("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),Fm=Em("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 Gm({text:e}){return o.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Vm=Em("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Wm=Em("span",{color:"white"}),Hm=Em("button",{cursor:"pointer",color:"white"}),Km=Em("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),$m=({value:e})=>{const[t,n]=o.useState("NoCopy");return o.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(bm.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?o.createElement(Zm,null):"SuccessCopy"===t?o.createElement(tf,null):o.createElement(ef,null))},Qm=Em("span",((e,t)=>({color:t.danger}))),Jm=Em("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Xm=Em("span",{color:"grey",fontSize:".7em"}),Ym=({expanded:e,style:t={}})=>o.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Zm=()=>o.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},o.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"}),o.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"}))),ef=()=>o.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},o.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"})),o.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),tf=()=>o.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},o.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},o.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 nf=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:a=[],type:i,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[p,d]=o.useState([]);return o.createElement(Vm,{key:t},a.length?o.createElement(o.Fragment,null,o.createElement(Km,{onClick:()=>c()},o.createElement(Ym,{expanded:s})," ",t," ",o.createElement(Xm,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),u?o.createElement($m,{value:n}):null,s?1===a.length?o.createElement(Jm,null,r.map(e)):o.createElement(Jm,null,a.map(((t,n)=>o.createElement("div",{key:n},o.createElement(Vm,null,o.createElement(Hm,{onClick:()=>d((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},o.createElement(Ym,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),p.includes(n)?o.createElement(Jm,null,t.map(e)):null))))):null):o.createElement(o.Fragment,null,o.createElement(Wm,null,t,":")," ",o.createElement(Qm,null,Cm(n))))};function of({value:e,defaultExpanded:t,renderer:n=nf,pageSize:r=100,copyable:a=!1,...i}){const[s,u]=o.useState(Boolean(t)),c=o.useCallback((()=>u((e=>!e))),[]);let l=typeof e,p=[];const d=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",p=e.map(((e,t)=>d({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",p=Array.from(e,((e,t)=>d({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(l="object",p=Object.entries(e).map((([e,t])=>d({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}(p,r);return n({handleEntry:t=>o.createElement(of,eh({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:l,subEntries:p,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:r,...i})}function rf(e){return o.createElement("svg",eh({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),o.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-33.000000, 0.000000)"},o.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) "}),o.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"}),o.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 af=(e,t,n=!1)=>Sd.useSyncExternalStore(o.useCallback((t=>n?()=>{}:e.subscribe(id.batchCalls(t))),[e,n]),t,t),sf=o.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:a,context:i,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:p={},errorTypes:d=[],...h}=e,{onClick:m,...f}=p,g=Ad({context:i}),y=g.getQueryCache(),[b,k]=bh("reactQueryDevtoolsSortFn",Object.keys(Rm)[0]),[v,w]=bh("reactQueryDevtoolsFilter",""),[j,_]=bh("reactQueryDevtoolsBaseSort",1),E=o.useMemo((()=>Rm[b]),[b]),C=af(y,(()=>y.getAll().length),!n),[S,x]=bh("reactQueryDevtoolsActiveQueryHash",""),R=o.useMemo((()=>{const e=y.getAll();if(0===C)return[];const t=v?e.filter((e=>dh(e.queryHash,v).passed)):[...e];return E?t.sort(((e,t)=>E(e,t)*j)):t}),[j,E,v,C,y]),[T,I]=o.useState(!1);return o.createElement(wm,{theme:km},o.createElement(Dm,eh({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:Tm,position:"relative",...h.style}}),o.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+km.backgroundAlt+" "+km.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: "+km.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+km.gray+";\n border-radius: .5em;\n border: 3px solid "+km.backgroundAlt+";\n }\n "}}),o.createElement("div",{style:zm(l),onMouseDown:s}),n&&o.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+km.grayAlt,display:"flex",flexDirection:"column"}},o.createElement("div",{style:{padding:".5em",background:km.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},o.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"}},o.createElement(rf,{"aria-hidden":!0}),o.createElement(Gm,{text:"Close React Query Devtools"})),o.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},o.createElement(cf,{queryCache:y}),l&&u?o.createElement(Fm,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},o.createElement("option",{value:"left"},"Left"),o.createElement("option",{value:"right"},"Right"),o.createElement("option",{value:"top"},"Top"),o.createElement("option",{value:"bottom"},"Bottom")):null),o.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},o.createElement(Bm,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=v?v:"",onChange:e=>w(e.target.value),onKeyDown:e=>{"Escape"===e.key&&w("")},style:{flex:"1",width:"100%"}}),o.createElement(Fm,{"aria-label":"Sort queries",value:b,onChange:e=>k(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Rm).map((e=>o.createElement("option",{key:e,value:e},"Sort by ",e)))),o.createElement(Nm,{type:"button",onClick:()=>_((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===j?"⬆ Asc":"⬇ Desc"),o.createElement(Nm,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),o.createElement(Nm,{type:"button",onClick:()=>{T?(Zp.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Zp.setOnline(!1),I(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?km.danger:"currentColor",fill:"none"},T?o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.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"}),o.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"}),o.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),o.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),o.createElement(Gm,{text:T?"Restore offline mock":"Mock offline behavior"}))))),o.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>o.createElement(lf,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:x,key:e.queryHash,queryCache:y}))))),S&&n?o.createElement(uf,{activeQueryHash:S,queryCache:y,queryClient:g,errorTypes:d}):null,c?o.createElement(Nm,eh({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))})),uf=({queryCache:e,activeQueryHash:n,queryClient:r,errorTypes:a})=>{var i,s;const u=af(e,(()=>e.getAll().find((e=>e.queryHash===n)))),c=af(e,(()=>{var t;return null==(t=e.getAll().find((e=>e.queryHash===n)))?void 0:t.state})),l=null!=(i=af(e,(()=>{var t;return null==(t=e.getAll().find((e=>e.queryHash===n)))?void 0:t.isStale()})))&&i,p=null!=(s=af(e,(()=>{var t;return null==(t=e.getAll().find((e=>e.queryHash===n)))?void 0:t.getObserversCount()})))?s:0,d=t.useMemo((()=>{if(u&&null!=c&&c.error){const e=a.find((e=>{var t;return e.initializer(u).toString()===(null==(t=c.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[u,null==c?void 0:c.error,a]);if(!u||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(u))?t:new Error("Unknown error from devtools"),o=u.options;u.setState({status:"error",error:n,fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:o}})};return o.createElement(Lm,null,o.createElement("div",{style:{padding:".5em",background:km.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),o.createElement("div",{style:{padding:".5em"}},o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},o.createElement(Um,{style:{lineHeight:"1.8em"}},o.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Cm(u.queryKey,!0))),o.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:jm({queryState:c,isStale:l,observerCount:p,theme:km}),flexShrink:0}},_m(u))),o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",o.createElement(Um,null,p)),o.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",o.createElement(Um,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),o.createElement("div",{style:{background:km.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),o.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},o.createElement(Nm,{type:"button",onClick:()=>{const e=null==u?void 0:u.fetch();null==e||e.catch(pf)},disabled:"fetching"===c.fetchStatus,style:{background:km.active}},"Refetch")," ",o.createElement(Nm,{type:"button",onClick:()=>r.invalidateQueries(u),style:{background:km.warning,color:km.inputTextColor}},"Invalidate")," ",o.createElement(Nm,{type:"button",onClick:()=>r.resetQueries(u),style:{background:km.gray}},"Reset")," ",o.createElement(Nm,{type:"button",onClick:()=>r.removeQueries(u),style:{background:km.danger}},"Remove")," ",o.createElement(Nm,{type:"button",onClick:()=>{var e;if("fetching"!==u.state.fetchStatus||void 0!==(null==(e=u.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===u.state.data)u.fetch(u.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=u.options;u.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),u.setState({data:void 0,status:"loading",fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:km.paused}},"loading"===u.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===u.state.status?o.createElement(Nm,{type:"button",onClick:()=>{u.state.error?r.resetQueries(u):h()},style:{background:km.danger}},"error"===u.state.status?"Restore":"Trigger"," error"):o.createElement("label",null,"Trigger error:",o.createElement(Fm,{value:null!=d?d:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find((t=>t.name===e.target.value));h(t)}},o.createElement("option",{key:"",value:""}),a.map((e=>o.createElement("option",{key:e.name,value:e.name},e.name)))))),o.createElement("div",{style:{background:km.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(of,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),o.createElement("div",{style:{background:km.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(of,{label:"Query",value:u,defaultExpanded:{queryKey:!0}})))},cf=({queryCache:e})=>{const t=af(e,(()=>e.getAll().filter((e=>"fresh"===_m(e))).length)),n=af(e,(()=>e.getAll().filter((e=>"fetching"===_m(e))).length)),r=af(e,(()=>e.getAll().filter((e=>"paused"===_m(e))).length)),a=af(e,(()=>e.getAll().filter((e=>"stale"===_m(e))).length)),i=af(e,(()=>e.getAll().filter((e=>"inactive"===_m(e))).length));return o.createElement(Mm,null,o.createElement(qm,{style:{background:km.success,opacity:t?1:.3}},"fresh ",o.createElement(Um,null,"(",t,")"))," ",o.createElement(qm,{style:{background:km.active,opacity:n?1:.3}},"fetching ",o.createElement(Um,null,"(",n,")"))," ",o.createElement(qm,{style:{background:km.paused,opacity:r?1:.3}},"paused ",o.createElement(Um,null,"(",r,")"))," ",o.createElement(qm,{style:{background:km.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",o.createElement(Um,null,"(",a,")"))," ",o.createElement(qm,{style:{background:km.gray,opacity:i?1:.3}},"inactive ",o.createElement(Um,null,"(",i,")")))},lf=o.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var a,i,s,u;const c=null!=(a=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash})))?a:"",l=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.state})),p=null!=(i=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()})))&&i,d=null!=(s=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()})))&&s,h=null!=(u=af(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()})))?u:0;return l?o.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+km.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},o.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:jm({queryState:l,isStale:p,observerCount:h,theme:km}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:p?"0":"0 0 10px black",color:p?"black":"white"}},h),d?o.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:km.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,o.createElement(Um,{style:{padding:".5em"}},""+c)):null}));function pf(){}lf.displayName="QueryRow";const df="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:a="bottom-left",containerElement:i="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const p=o.useRef(null),d=o.useRef(null),[h,m]=bh("reactQueryDevtoolsOpen",e),[f,g]=bh("reactQueryDevtoolsHeight",Tm),[y,b]=bh("reactQueryDevtoolsWidth",Tm),[k="bottom",v]=bh("reactQueryDevtoolsPanelPosition",c),[w,j]=o.useState(!1),[_,E]=o.useState(!1),C=function(){const e=o.useRef(!1),t=o.useCallback((()=>e.current),[]);return o.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();o.useEffect((()=>{j(null!=h&&h)}),[h,w,j]),o.useEffect((()=>{const e=d.current;if(e){const t=()=>{w&&(e.style.visibility="visible")},n=()=>{w||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[w]),o.useEffect((()=>{var e;if(w&&null!=(e=p.current)&&e.parentElement){const{parentElement:e}=p.current,t=Pm("padding",k),n=Am(k),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:r})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:r}))(e.style),r=()=>{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(r(),"undefined"!=typeof window)return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[w,k,f,y]);const{style:S={},...x}=t,{style:R={},onClick:T,...I}=r,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:r,isResizing:a,panelStyle:i}){const s=Om(e),u=Pm("border",s),c=Am(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:r?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...r?{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:Tm}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Tm}}}({position:k,devtoolsTheme:km,isOpen:w,height:f,width:y,isResizing:_,panelStyle:S});return C()?o.createElement(i,{ref:p,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},o.createElement(wm,{theme:km},o.createElement(sf,eh({ref:d,context:s,styleNonce:u,position:k,onPositionChange:v,showCloseButton:!0,closeButtonProps:n},x,{style:A,isOpen:w,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=Am(k);E(!0);const{height:o,width:r}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=r+("right"===k?a-e.clientX:e.clientX-a),b(s)):(s=o+("bottom"===k?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)})(d.current,e),errorTypes:l}))),w?null:o.createElement("button",eh({type:"button"},I,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),o.createElement(rf,{"aria-hidden":!0}),o.createElement(Gm,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var hf,mf={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(hf=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",hf.ETIMEDOUT="ETIMEDOUT",hf.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var ff=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&ff&&function(){e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:if(!dr())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,cr.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return e.sent(),[3,4];case 3:return t=e.sent(),console.error("Error starting MSW:",t),[3,4];case 4:return[2]}}))}))}(),exports.Api=Sp,exports.ApiProvider=function(n){var o=this,r=n.children,a=process.env.ENVIRONMENT,i=t.useMemo((function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"}),[a]),s=t.useState(!1),u=s[0],c=s[1],l=t.useCallback((function(t){return e.__awaiter(o,void 0,void 0,(function(){var n,o,r,a,s;return e.__generator(this,(function(u){switch(u.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",a=localStorage.getItem("x-organization-code"),s=a?JSON.parse(a).value:"",[4,Rp.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":r||i,"x-organization-code":s,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return u.sent(),[2]}}))}))}),[i]);t.useEffect((function(){return addEventListener("ACCOUNT_CHANGED",l),function(){window.removeEventListener("ACCOUNT_CHANGED",l)}}),[l]);var p=t.useCallback((function(t){return e.__awaiter(o,void 0,void 0,(function(){var n,o,r,a,s,u,l;return e.__generator(this,(function(p){switch(p.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(r=localStorage.getItem("x-organization-code"),a=localStorage.getItem("account"),s=a?null===(l=JSON.parse(a).value)||void 0===l?void 0:l.code:"",u=r?JSON.parse(r).value:"",[4,Rp.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":t||i,"x-organization-code":u,"x-account-code":s,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:p.sent(),Fd.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),c(!0),p.label=2;case 2:return[2]}}))}))}),[i,c]);return t.useEffect((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?p(n):"token"===t.key&&p(e)}})),p(e)}),[c,p]),u?React.createElement(Od,{client:Fd},r,React.createElement(df,{initialIsOpen:!1})):React.createElement("div",{style:mf})},exports.ApiSingleton=Rp,exports.getQueryKeyGetNameAndIcon=Wd,exports.getQueryKeyRequiredFields=Hd,exports.queryCache=Bd,exports.queryClient=Fd,exports.use3DSExemptions=function(){var t=this;return Nd({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})},exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),Md((function(e){return Rp.getInstance().generateAIWorkflowRoutes(t,e).then((function(e){return null==e?void 0:e.data}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAllFeatureFlags=function(n){var o=this,r=Nd({queryKey:["all-feature-flags",Object.values(n).filter(Boolean)],queryFn:function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getFeatureFlagIdAll({accountCode:n.account_code}).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!n.account_code&&!!n.organization_code&&!!n.email,cacheTime:9e5,useErrorBoundary:!1}),a=Ad();return t.useEffect((function(){a.setQueryData(["cached-feature-flags"],r)}),[r,a]),r},exports.useAllowListDetail=function(e,t,n){return Nd(["allow-list-detail",e],(function(){return Rp.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})},exports.useBlackListDetail=function(e,t,n,o,r,a){return Nd(["black-list-detail",e,t,o,r,a],(function(){return Rp.getInstance().getBlacklistDetail(e,t,n,o,r).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&a,cacheTime:0})},exports.useCachedFeatureFlag=function(t){var n,o,r=Ad(),a=r.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(o=null==a?void 0:a.data)||void 0===o?void 0:o.status)),s=Nd({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(e){var n;return{result:null===(n=null==e?void 0:e.data)||void 0===n?void 0:n[t]}},initialData:function(){var e=r.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return e.__assign(e.__assign({},s),{isLoading:i})},exports.useCancelReport=function(){return Md((function(e){return Rp.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCancelSubscription=function(){return Md(["post-cancel-subscription"],(function(e){var t=e.subscriptionCode;return Rp.getInstance().postCancelSubscription(t).then((function(e){return null==e?void 0:e.data}))}))},exports.useChangePasswordV2=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().changePasswordV2(n).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))},exports.useChangePaymentsWebhook=function(){return Md(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Rp.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeStatusBlackList=function(){return Md(["change-blacklist"],(function(e){return Rp.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeStatusItemBlackList=function(){return Md(["change-blacklist-item"],(function(e){return Rp.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeStylingSettings=function(){return Md((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,r=e.payload;return Rp.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:r}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.useChangeTemplateStatus=function(){var t=this;return Md(["PATCH/template-reporting/report-templates/status"],(function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().changeTemplateStatus(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useChargebacksUpload=function(){return Md((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,r=e.handleSetProgress;return Rp.getInstance().uploadChargebacks(t,n,o,r)}))},exports.useChartAssistantSocket=function(){var e=t.useRef(null),n=t.useRef(null),o=t.useRef(null),r=t.useState(!1),a=r[0],i=r[1],s=t.useState(null),u=s[0],c=s[1],l=t.useState(null),p=l[0],d=l[1],h=t.useCallback((function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null)}),[]),m=t.useCallback((function(){if("undefined"==typeof window||"dashboard.dev.y.uno"!==window.location.hostname){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null),d(null);try{var t=new WebSocket("".concat(xp["WS_URL_".concat(xp.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=t,t.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&t.send(JSON.stringify({type:"auth",token:e})),n.current=setInterval((function(){t.readyState===WebSocket.OPEN?t.send(JSON.stringify({type:"ping"})):(h(),i(!1))}),3e4)},t.onmessage=function(e){try{var t=JSON.parse(e.data);c(t)}catch(e){d("Failed to parse server response")}},t.onerror=function(e){d("Connection error occurred"),i(!1)},t.onclose=function(e){i(!1),h(),e.wasClean||1e3===e.code||(o.current=setTimeout((function(){m()}),5e3))}}catch(e){d("Failed to establish connection")}}}),[]),f=t.useCallback((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}))}),[]),g=t.useCallback((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}))}),[]),y=t.useCallback((function(){c(null)}),[]),b=t.useCallback((function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)}),[]);return t.useEffect((function(){return m(),function(){h(),b()}}),[]),{subscribe:f,unsubscribe:g,disconnect:b,connect:m,clearChartData:y,isConnected:a,chartData:u,connectionError:p}},exports.useChartExecute=function(e){return Nd(["chartgpt-chart-execute",e],(function(){return Rp.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})},exports.useCloneTemplate=function(){var t=this;return Md(["POST/template-reporting/report-templates/clone"],(function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().cloneReportTemplate(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCommunicationDetails=function(e,t){return Nd(["fetch-communication-details",e],(function(){return Rp.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})},exports.useCommunications=function(e){var t;return Nd(["fetch-communications",e],(function(){return Rp.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})},exports.useCommunicationsByDay=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-communications-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-day",o)];case 1:return r=e.sent(),[2,(a=r.data,i=o.start_date,s=o.end_date,u=a.plots||[],c=u.find((function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label})),l=u.find((function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label})),p=u.find((function(e){return"CONVERSION_RATE_LABEL"===e.label})),d=Qd(null==c?void 0:c.rows,i,s),h=Qd(null==l?void 0:l.rows,i,s),m=Qd(null==p?void 0:p.rows,i,s),{communications:{distribution:d.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:$d(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==p?void 0:p.value)||"0")},completed_communications:{distribution:h.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:$d(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,u,c,l,p,d,h,m}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsBySubstatus=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-communications-by-substatus",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-substatus",o)];case 1:return r=e.sent(),[2,Jd(r.data)]}}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsFilters=function(){return Nd(["fetch-communications-filters"],(function(){return Rp.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useCommunicationsSubstatusByDay=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-communications-substatus-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-substatus-by-day",o)];case 1:return r=e.sent(),[2,Xd(r.data,o.start_date,o.end_date)]}}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useConfirmedOtpMfa=function(){return Md((function(e){return Rp.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCountRowsForReport=function(){return Md((function(e){return Rp.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useCreateAndExecuteChart=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t,o,r,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(a=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:o}]}}))}))}),{useErrorBoundary:!1})},exports.useCreateAndExecuteChartWithTimezone=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t,o,r,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(a=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:o}]}}))}))}),{useErrorBoundary:!1})},exports.useCreateChart=function(){return Md((function(e){return Rp.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateChartWithTimezone=function(){return Md((function(e){return Rp.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateMonitorTemplate=function(e){return Md((function(t){return Rp.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))},exports.useCreateMonitorThreshold=function(e){return Md((function(t){return Rp.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},exports.useCreateOperationTransaction=function(){return Md((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,r=e.action;return Rp.getInstance().createOperationTransaction(t,n,o,r)}))},exports.useCreatePaymentLinks=function(){return Md(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateReconciliationAlert=function(){return Md(["POST/reconciliation/alerts"],(function(e){return Rp.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){Fd.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return Md((function(){return Rp.getInstance().createReconciliationReportTemplate(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(t){return e.__awaiter(n,void 0,void 0,(function(){var n,o;return e.__generator(this,(function(r){switch(r.label){case 0:return[4,Fd.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Fd.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Fd.setQueryData(["GET/reconciliation/reports/templates"],(function(n){return{templates:e.__spreadArray(e.__spreadArray([],n.templates,!0),[t],!1)}})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){Fd.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Fd.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return Md((function(e){return Rp.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateReconciliationsReportV3=function(){return Md((function(e){return Rp.getInstance().createReconciliationsReportV3(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateReportTemplate=function(t){var n=this;return Md((function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().createReportTemplate(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(t){return e.__awaiter(n,void 0,void 0,(function(){var n;return e.__generator(this,(function(o){switch(o.label){case 0:return[4,Fd.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=Fd.getQueryData(["GET/reports/templates"]),Fd.setQueryData(["GET/reports/templates"],(function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){Fd.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Fd.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return Md((function(e){return Rp.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateRoles=function(){return Md((function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateSamlConfig=function(){return Md((function(e){return Rp.getInstance().createSamlConfig(e)}))},exports.useCreateSchedule=function(){var t=this;return Md(["POST/template-reporting/report-schedules"],(function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().createReportSchedule(n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useCreateScheduledReport=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))},exports.useCreateSubscription=function(){return Md(["post-subscription"],(function(e){return Rp.getInstance().postSubscription(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateTemplate=function(){var t=this;return Md(["POST/template-reporting/report-templates"],(function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().createTemplateReporting(n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCreateUserAuth0=function(){return Md((function(e){return Rp.getInstance().createUserAuth0(e)}))},exports.useCreateWorkflow=function(t,n,o){var r=this;return void 0===o&&(o=null),Md((function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().postSmartRoutingCreateWorkflow(t,n).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)},exports.useDeleteAccountsUserMassive=function(){return Md((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Rp.getInstance().deleteAccountsUserMassive(t,n,o)}))},exports.useDeleteAllowlistItem=function(){return Md(["delete-allowlist-item"],(function(e){return Rp.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useDeleteBlackListType=function(){return Md(["delete-blacklist"],(function(e){var t=e.black_list_code;return Rp.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteBlockListItem=function(){return Md(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Rp.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}))}))},exports.useDeleteChart=function(){return Md((function(e){return Rp.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useDeleteCustomizedApiKeys=function(){return Md((function(e){var t=e.code;return Rp.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useDeletePaymentLink=function(){return Md(["post-delete-payment-link"],(function(e){var t=e.code;return Rp.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteReconciliationAlert=function(){return Md(["DELETE/reconciliation/alerts"],(function(e){return Rp.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){Fd.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteRoles=function(){return Md((function(e){return Rp.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteSamlConfig=function(){return Md((function(){return Rp.getInstance().deleteSamlConfig()}))},exports.useDeleteSchedule=function(){var t=this;return Md(["DELETE/template-reporting/report-schedules"],(function(n){var o=n.scheduleId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().deleteReportSchedule(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDeleteScheduledReport=function(){return Md((function(e){return Rp.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteTemplate=function(){var t=this;return Md(["DELETE/template-reporting/report-templates"],(function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().deleteReportTemplate(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useDeleteUserTeamV2=function(){return Md((function(e){var t=e.userCode,n=e.organizationCode;return Rp.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useDeleteWebhookV2=function(e){return Md((function(e){var t=e.code,n=e.accountCode;return Rp.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDisableSchedule=function(){var t=this;return Md(["PATCH/template-reporting/report-schedules/disable"],(function(n){var o=n.scheduleId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().disableReportSchedule(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDuplicateAccount=function(){return Md((function(t){var n=e.__spreadArray([exports.DuplicateSetting.ACCOUNT],t.duplicate_order,!0);return Rp.getInstance().duplicateAccount(e.__assign(e.__assign({},t),{duplicate_order:n}))}))},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useEditPaymentLinks=function(){return Md(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Rp.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))},exports.useEditRoles=function(){var t=this;return Md((function(n){var o=n.payload,r=n.id,a=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().editRoles({payload:o,id:r},a)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}),{useErrorBoundary:!1})},exports.useEmailVerification=function(e){return Nd(["email-verification",e],(function(){return Rp.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useExcludeUsers=function(){return Md((function(e){var t=e.payload,n=e.organizationCode;return Rp.getInstance().mfaExcludeUsers(t,n)}))},exports.useExportApiLogs=function(){return Md((function(e){return Rp.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useExportWebhooksLogs=function(){return Md((function(e){return Rp.getInstance().postExportWebhooksLogs(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useFeatureFlags=function(t){var n=this,o=Object.values(t).filter(Boolean);return Nd(["feature-flags",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getFeatureFlagId(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o.length>1,useErrorBoundary:!1})},exports.useFirebaseUserSubscribe=function(e){return Md((function(e){var t=e.payload;return Rp.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGenerateFeedback=function(t){return void 0===t&&(t={}),Md((function(e){return Rp.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),e.__assign(e.__assign({},t),{useErrorBoundary:!1}))},exports.useGetAccounts=function(e){var t,n=Vd(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Nd({queryKey:["accounts",o],queryFn:function(){return Rp.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})},exports.useGetAccountsByUser=function(e){return Nd(["accountsV2-by-user",e],(function(){return e?Rp.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})},exports.useGetAccountsForImpersonation=function(t,n){var o=this;return Nd({queryKey:["accounts-for-impersonation",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getAccountsForImpersonation(t).then((function(e){var t,o;return(null===(o=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===o?void 0:o.map((function(e){return{label:e.name,value:n?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}})))||[]}))]}))}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetAccountsV2=function(e){return Nd(["accountsV2",e],(function(){return Rp.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})},exports.useGetAllConfigRules=function(){return Nd(["config-rules"],(function(){return Rp.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})},exports.useGetAllOrganizations=function(){return Nd(["fetch-all-organizations",Vd()],(function(){return Rp.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetAllReconciliationsAdvancements=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/advancements/list",t,n],(function(){return Rp.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAgenda=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/agenda/list",t,n],(function(){return Rp.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAlerts=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/alerts/list",t,n],(function(){return Rp.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsFees=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/fees/list",t,n],(function(){return Rp.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsSales=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/sales/list",t,n],(function(){return Rp.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(e){return Nd(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Rp.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetAllowedIps=function(){return Nd(["developers-get-allowed-ips"],(function(){return Rp.getInstance().getAllowedIps().then((function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null})).catch((function(t){return e.__assign(e.__assign({},t),{isError:!0})}))}),{enabled:!1,cacheTime:0})},exports.useGetApiLogsDetailByPaymentCode=function(e){return Nd(["api-logs-detail",e],(function(){return Rp.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})},exports.useGetAuditEvents=function(e){return Nd(["events",e],(function(){return Rp.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})},exports.useGetAuditLogsFilters=function(){return Nd(["/cms/audit-logs-filters"],(function(){return Rp.getInstance().useGetAuditLogsFilters().then((function(e){return lp(e)?fp:null==e?void 0:e.data})).catch((function(){return fp}))}))},exports.useGetAuditMonitorEventDetail=function(e){return Nd(["audit-monitor-event-detail",e],(function(){return Rp.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})},exports.useGetBatchRefundProcessedFileDownload=function(){var t=this;return Md((function(n){var o=n.batchRefundId,r=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getBatchRefundProcessedFileDownload(o,r,a).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.useGetBatchRefundUserFileDownload=function(){var t=this;return Md((function(n){var o=n.batchRefundId,r=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getBatchRefundUserFileDownload(o,r,a).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.useGetBatchRefunds=function(t,n){var o=this;return void 0===t&&(t=26),void 0===n&&(n=0),Nd(["batch-refunds",t,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getBatchRefunds(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})},exports.useGetBlackList=function(e){return Nd(["get-black-list",e],(function(){return Rp.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})},exports.useGetBlockListSummary=function(e,t,n){return Nd(["get-block-list-summary",e,t,n],(function(){var o=Rp.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})},exports.useGetCardBrands=function(){return Nd(["GET/catalog/card-brands"],(function(){return Rp.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetChartsByUser=function(){return Nd(["chartgpt-user-charts"],(function(){return Rp.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})},exports.useGetChartsByUserWithResults=function(){var t=this;return Nd(["chartgpt-user-charts-with-results"],(function(){return e.__awaiter(t,void 0,void 0,(function(){var t,n,o,r=this;return e.__generator(this,(function(a){switch(a.label){case 0:return[4,(t=Rp.getInstance()).getChartsByUser()];case 1:return n=a.sent(),o=(null==n?void 0:n.data)||[],[4,Promise.all(o.map((function(n){return e.__awaiter(r,void 0,void 0,(function(){var o,r,a,i,s,u,c,l;return e.__generator(this,(function(p){switch(p.label){case 0:return p.trys.push([0,2,,3]),[4,t.executeChartGPTChart(n.code)];case 1:return o=p.sent(),[2,e.__assign(e.__assign({},n),{user_prompt:null!==(i=null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.user_prompt)&&void 0!==i?i:n.user_prompt,unit_to_display:null!==(u=null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.unit_to_display)&&void 0!==u?u:n.unit_to_display,results:null!==(l=null===(c=null==o?void 0:o.data)||void 0===c?void 0:c.results)&&void 0!==l?l:[]})];case 2:return r=p.sent(),console.error("Failed to execute chart ".concat(n.chart_id,":"),r),[2,e.__assign(e.__assign({},n),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,a.sent()]}}))}))}))},exports.useGetCheckoutTemplate=function(e){var t=e.accountCode;return Nd(["checkouts-template"],(function(){return Rp.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})},exports.useGetCheckouts=function(e){var t=e.accountCode;return Nd(["checkouts",t],(function(){return Rp.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})},exports.useGetConditionalConfigRules=function(){return Md((function(e){return Rp.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetConfigAllowlist=function(e,t){return Nd(["get-cofig-allow-list",e],(function(){return Rp.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})},exports.useGetConnections=function(){return Nd(["connections"],(function(){return Rp.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useGetConnectionsByPaymentMethod=function(e){var t=e.accountCode,n=e.paymentMethod;return Nd(["fetch-connections-by-payment-method",n,t],(function(){return Rp.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetCountriesConfigPaymentLink=function(e){return void 0===e&&(e=!0),Nd(["countries",e],(function(){return Rp.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})},exports.useGetCountriesConfigPaymentLinkV2=function(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Nd(["countries-v2",n],(function(){return Rp.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})},exports.useGetCredentials=function(t){var n=t.password,o=t.accountCode,r=t.otp,a=t.mfaToken;return Nd(["developers"],(function(){return Rp.getInstance().getDeveloperCredentials(n,o,r,a).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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})},exports.useGetCredentialsMFA=function(){return Md((function(t){var n=t.password,o=t.accountCode;return Rp.getInstance().getDeveloperCredentials(n,o).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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}}))}))},exports.useGetCustomizedApiKeys=function(e){return Nd(["fetch-customized-api-keys",e],(function(){return Rp.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)})},exports.useGetCustomizedApiKeysAccounts=function(){return Nd(["fetch-customized-api-keys-accounts"],(function(){return Rp.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetCustomizedApiKeysMembers=function(){return Nd(["fetch-customized-api-keys-members"],(function(){return Rp.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetCustomizedApiKeysProducts=function(){return Nd(["fetch-customized-api-keys-products"],(function(){return Rp.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})},exports.useGetCustomizedApiKeysToken=function(){return Md((function(e){var t=e.code,n=e.password;return Rp.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))},exports.useGetDashboardStaticContents=function(){return Nd(["/cms/static-contents"],(function(){return Rp.getInstance().getDashboardStaticContents().then((function(e){var t,n;return lp(e)?gp:(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})},exports.useGetDialogs=function(){return Nd(["dialogs"],(function(){return Rp.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})},exports.useGetDownloadReport=function(e,t,n){return void 0===t&&(t=!1),Nd(["reports/".concat(e)],(function(){return Rp.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})},exports.useGetEmailOtp=function(){return Md((function(){return Rp.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetHashPylon=function(){var t=this;return Nd(["fetch-hash-pylon"],(function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetImpersonationEnabled=function(){return Nd(["fetch-impersonation-enabled"],(function(){return Rp.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useGetImpersonationUsers=function(){return Nd(["fetch-impersonation-users"],(function(){return Rp.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})},exports.useGetInsightsReport=function(e){return Nd(["get-insights-reports",e],(function(){return Rp.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})},exports.useGetInsightsReportAgain=function(e){return Nd(["get-insights-reports-again",e],(function(){return Rp.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})},exports.useGetInstallmentPlans=function(e){return Nd(["installments-plans",e],(function(){return Rp.getInstance().getInstallmentPlans(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,o=Vd();return Nd(["organizations-account-integrations",t,n],(function(){return Rp.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1})},exports.useGetIntegrationParams=function(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Nd(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Rp.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})},exports.useGetLanguages=function(){return Nd(["languages"],(function(){return Rp.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})},exports.useGetLocales=function(){return Nd(["/cms/locales"],(function(){return Rp.getInstance().getLocales().then((function(e){return lp(e)?bp:e.data})).catch((function(){return bp}))}))},exports.useGetLoginMethods=function(){return Nd({queryKey:["get-login-methods"],queryFn:function(){return Rp.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})},exports.useGetMFAConfig=function(e,t){var n=e.organizationCode;return Nd(["mfa-config",n],(function(){return Rp.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMFAExcludedUsers=function(e,t){var n=e.organizationCode;return Nd(["mfa-excluded-users",n],(function(){return Rp.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMFAStatus=function(e,t){return Nd(["mfa-enforcement-status",e.accountCode],(function(){return Rp.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMenu=function(){return Nd(["menu"],(function(){return Rp.getInstance().getMenu().then((function(e){return lp(e)?yp:null==e?void 0:e.data})).catch((function(){return yp}))}))},exports.useGetMergedNotifications=function(){return Nd(["notifications-merged"],(function(){return Rp.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})},exports.useGetNameAndIcon=function(e,t){var n=e.paymentMethodType,o=e.type;return Nd(Wd({paymentMethodType:n,type:o}),(function(){return Rp.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useGetNetworkTokensOnboardingByOrganization=function(t){var n=this;return Nd({queryKey:["network-tokens-onboarding",t],queryFn:function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getNetworkTokensOnboardingByOrganization(t)];case 1:return[2,e.sent().data]}}))}))},enabled:!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetNotificationsCustomer=function(e){return Nd(["notifications-customer",e],(function(){return Rp.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})},exports.useGetNotificationsNumberMutation=function(){return Md((function(e){return Rp.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetOrganization=function(){return Nd(["fetch-organizations"],(function(){return Rp.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetOrganizationConfigs=function(){return Nd({queryKey:["organization-configs"],queryFn:function(){return Rp.getInstance().getOrganizationConfigs().then((function(e){return null==e?void 0:e.data}))},cacheTime:0,useErrorBoundary:!1})},exports.useGetPaymentFilters=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=exports.PaymentFiltersSection.PAYMENTS),Nd(["payment-filters",e,t],(function(){return Rp.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})},exports.useGetPaymentLinkByCode=function(e){return Nd(["payment-link"],(function(){return Rp.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetPaymentLinks=function(e,t){return Nd(["fetch-payment-links",e,t],(function(){return Rp.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})},exports.useGetPaymentMethodsAndProviders=function(){return Nd({queryKey:["/payment-methods/providers"],queryFn:function(){return Rp.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})},exports.useGetPaymentMetricsFilters=function(){return Nd(["payment-metrics-filters"],(function(){return Rp.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetPaymentStatusesStyles=function(){return Nd(["/payment/statuses/style"],(function(){return Rp.getInstance().useGetPaymentStatusesStyles().then((function(e){return lp(e)?pp:null==e?void 0:e.data})).catch((function(){return pp}))}))},exports.useGetPaymentTransactionsDetails=function(e){var t=e.transaction_code,n=e.enabled;return Nd(["payment-transaction-details",t],(function(){return Rp.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetPaymentV2=function(t){var n=this,o=t.paymentCode,r=t.enabled,a=void 0===r||r,i=Rp.getInstance();return Nd(["get-payment-v2",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,i.getPaymentV2(o).then((function(e){return e.data}))]}))}))}),{enabled:a,cacheTime:500,useErrorBoundary:!1})},exports.useGetPaymentsMethodsByCountry=function(e){var t=Vd();return Nd(["payment-methods",e],(function(){return Rp.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})},exports.useGetPayoutDetail=function(e){return Nd(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Rp.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})},exports.useGetPayoutHistoryDetail=function(e){var t=Vd();return Nd(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Rp.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})},exports.useGetPayoutTimeline=function(t,n){var o=this;void 0===n&&(n=!0);var r=Vd();return Nd(["getPayoutTimeline",t,r],(function(){return e.__awaiter(o,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){return n=Rp.getInstance(),t?[2,n.getPayoutTimeline(t,r).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]:[2]}))}))}),{enabled:n&&!!t&&!!r,cacheTime:500,useErrorBoundary:!1})},exports.useGetPayoutTransactionDetail=function(e){return Nd(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Rp.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})},exports.useGetPendingDuplicateAccounts=function(e){return Nd({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Rp.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})},exports.useGetPermissions=function(e,t){return Nd(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),r=localStorage.getItem("user"),a=o&&JSON.parse(o),i=r&&JSON.parse(r);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))},exports.useGetPermissionsCatalog=function(){return Nd(["fetch-permissions-catalog"],(function(){return Rp.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useGetProfile=function(){return Nd(["fetch-profile"],(function(){return Rp.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})},exports.useGetProofOfCancel=function(t,n){var o=this,r=Vd();return Nd(["GET/useGetProofOfCancel",r,t,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getProofOfCancel(t,r,n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t&&!!r&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProofOfPayment=function(t,n){var o=this,r=Vd();return Nd(["GET/useGetProofOfPayment",r,t,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getProofOfPayment(t,r,n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t&&!!r&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=Vd();return Nd(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Rp.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})},exports.useGetReconciliationActive=function(){return Nd(["GET/v1/reconciliation/active"],(function(){return Rp.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,o=e.enabled;return Nd(["GET/reconciliation/agenda/insights",t,n],(function(){return Rp.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return Nd(["GET-reconciliation-filters"],(function(){return Rp.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(e,t){return Nd(["fetch-reconciliation-metrics",e],(function(){return Rp.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})},exports.useGetReconciliationTransactionStatusesStyles=function(){return Nd(["/reconciliation/transaction/statuses/style"],(function(){return Rp.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return lp(e)?hp:null==e?void 0:e.data})).catch((function(){return hp}))}))},exports.useGetReconciliationTransactions=function(e,t){return Nd(["fetch-reconciliation-transaction",e],(function(){return Rp.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useGetReconciliationsReportColumns=function(e,t,n){return Nd(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Rp.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetReconciliationsReportTemplates=function(e){return Nd(["GET/reconciliation/reports/templates"],(function(){return Rp.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetRefundPdf=function(t,n){var o=this,r=Vd();return Nd(["getRefundPdf",t,r,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getRefundPdf(t,r,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!t&&!!r,useErrorBoundary:!1})},exports.useGetReportColumns=function(t,n,o){var r=this;return Nd(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(t){return[2,Rp.getInstance().getReportColumns(n,o).then((function(t){return n===exports.TemplateType.ALL&&o===exports.ReportType.PAYMENTS?e.__spreadArray(e.__spreadArray([],null==t?void 0:t.data,!0),[Kd],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(e){return Nd(["GET/reports/templates"],(function(){return Rp.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetReportsList=function(){return Nd(["reports"],(function(){return Rp.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(e){return void 0===e&&(e=!0),Nd(["reports-multi-env"],(function(){return Rp.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})},exports.useGetRequiredFields=function(e,t){var n=e.paymentMethodType,o=e.type;return Nd(Hd({paymentMethodType:n,type:o}),(function(){return Rp.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useGetRoles=function(){return Nd(["fetch-roles"],(function(){return Rp.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetRolesPermissions=function(){return Nd(["fetch-rolespermissions"],(function(){return Rp.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetRoutingMonitorsTemplate=function(e,t){return Nd(["fetch-routing-monitors-template",e],(function(){return Rp.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})},exports.useGetRoutingMonitorsTemplates=function(e){return Nd(["fetch-routing-monitors-templates",e],(function(){return Rp.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetRule=function(){return Md((function(e){return Rp.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetSamlConfig=function(e){return Nd(["fetch-organization-saml-config",e],(function(){return Rp.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetScheduledReportsList=function(e){return Nd(["GET/scheduled-reports",e],(function(){return Rp.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetSettlements=function(e,t){return Nd(["fetch-reconciliation-settlements",e],(function(){return Rp.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useGetSmartRoutingConditionPaymentMethod=function(e,t){return Nd(["smart-routing-condition-payment-method",e,t],(function(){return Rp.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})},exports.useGetSmartRoutingConditionTypes=function(e,t){return Nd(["smart-routing-condition-types",e,t],(function(){return Rp.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})},exports.useGetSmartRoutingConditionTypesValues=function(e,t){return Nd(["smart-routing-condition-types-values",t,e],(function(){return Rp.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingDataReport=function(e){return Nd(["data-report",e],(function(){return Rp.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingDeclineGroups=function(e){return Nd(["smart-routing-decline-groups",e],(function(){return Rp.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingMethods=function(e){return Nd(["smart-routing-methods",e],(function(){return Rp.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingNextRoute=function(e,t,n){return Nd(["smart-routing-next-route",e,n,t],(function(){return Rp.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetSmartRoutingPaymentRoute=function(e,t){return Nd(["smart-routing-payment-route",e,t],(function(){return Rp.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})},exports.useGetSmartRoutingSearchConditionValues=function(e){var t=e.text,n=e.conditionType;return Nd(["smart-routing-search-condition-values",t,n],(function(){return Rp.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})},exports.useGetSmartRoutingSimulateConditionTypeValues=function(e){return Nd(["smart-routing-simulate-condition-type-values",e],(function(){return Rp.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingWorkflow=function(e,t){return Nd(["smart-routing-workflow",t,e],(function(){return Rp.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})},exports.useGetSmartRoutingWorkflowVersion=function(e){var t=e.accountCode,n=e.workflowVersionId;return Nd(["smart-routing-workflow-version",n,t],(function(){return Rp.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})},exports.useGetStylingSdkDynamic=function(e){var t=e.accountCode;return Nd(["styling-sdk-dynamic",t],(function(){return Rp.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})},exports.useGetStylingSettings=function(e){var t=e.accountCode;return Nd(["styling-settings",t],(function(){return Rp.getInstance().getStylingSettings({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Nd(["styling-settings-v2",t],(function(){return Rp.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetStylingTheme=function(e){var t=e.accountCode;return Nd(["styling-theme",t],(function(){return Rp.getInstance().getStylingTheme({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetSubscriptionByCode=function(e,t){return void 0===t&&(t=!0),Nd(["subscription",e],(function(){return Rp.getInstance().getSubscriptionByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:500})},exports.useGetSubscriptionPayments=function(e,t,n,o){return void 0===o&&(o=!0),Nd(["subscription-payments",e,t,n],(function(){return Rp.getInstance().getSubscriptionPayments(e,t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&o,cacheTime:0})},exports.useGetTeamsFiltersMembers=function(){var e=Vd();return Nd(["teams-filters-members"],(function(){return Rp.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})},exports.useGetTimeZoneCatalog=function(){return Nd(["timezone-catalog"],(function(){return Rp.getInstance().useGetTimeZoneCatalog().then((function(e){return lp(e)?mp:null==e?void 0:e.data})).catch((function(){return mp}))}))},exports.useGetTimezonePaymentLink=function(e){return Nd(["timezone"],(function(){return Rp.getInstance().getTimezone(e).then((function(e){return lp(e)?mp:null==e?void 0:e.data})).catch((function(){return mp}))}),{enabled:!0,keepPreviousData:!0})},exports.useGetTokenValidation=function(){return Md((function(e){var t=e.password,n=e.otp;return Rp.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetTransactionDetailsV2=function(t){var n=this,o=t.payment_code,r=t.enabled,a=void 0===r||r,i=Rp.getInstance();return Nd(["get-payment-transaction-details-v2",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,i.getTransactionDetailsV2({payment_code:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!o&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionHistoryByPaymentCode=function(e){var t=e.payment_code,n=e.enabled;return Nd(["transaction-history",t],(function(){return Rp.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetTransactionRawResponse=function(t){var n=this,o=t.transaction_code,r=t.enabled,a=void 0===r||r,i=Rp.getInstance();return Nd(["get-payment-transaction-raw-response",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,i.getTransactionRawResponse({transaction_code:o})]}))}))}),{enabled:!!o&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionStatusesStyles=function(){return Nd(["/transaction/statuses/style"],(function(){return Rp.getInstance().useGetTransactionStatusesStyles().then((function(e){return lp(e)?dp:null==e?void 0:e.data})).catch((function(){return dp}))}),{cacheTime:36e5,useErrorBoundary:!1})},exports.useGetTranslations=function(){var e=localStorage.getItem("lang")||"en";return Nd(["translations",e],(function(){return Rp.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})},exports.useGetUserFull=function(){var t=this;return Nd(["get-user-full"],(function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getUserFull()];case 1:return[2,e.sent().data]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetUsersToImpersonate=function(t,n,o,r,a){var i=this;return void 0===o&&(o=1),void 0===r&&(r=10),Nd(["get-users-to-impersonate",t,n,o,r,a],(function(){return e.__awaiter(i,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getUsersToImpersonate(t,n,o,r,a).then((function(e){return null==e?void 0:e.data}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetValidateOpsgenieKey=function(e){return Nd(["validate-opsgenie-key",e],(function(){return Rp.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})},exports.useGetWebhookParamsV2=function(){return Nd(["params-catalog"],(function(){return Rp.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetWebhooksV2Detail=function(e){var t=e.accountCode,n=e.enabled;return Nd(["webhooks-detail",t],(function(){return Rp.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})},exports.useGetWebhooksV3=function(e){var t=e.accountCode,n=e.name;return Nd(["webhooks",t,n],(function(){return Rp.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useInsights3dsConversionRateAndEvolution=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsights3dsConversionRateAndEvolution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsDeclineReasons=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsights3dsDeclineReasons(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsFrictionlessVsChallenge=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsights3dsFrictionlessVsChallenge(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsVolumeAndCountTx=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsights3dsVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByCardBrand=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksByCardBrand(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByProviderAndCardBrand=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksByProviderAndCardBrand(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksDisputed=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksDisputed(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksReasonsDistribution=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksReasonsDistribution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksStatusDistribution=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksStatusDistribution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksTotalRateAndEvolution=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-total-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksTotalRateAndEvolution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksVolumeAndCountTx=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksWinRate=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsChargebacksWinRate(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsConversionRateMetricsV2=function(e,t,n,o){return void 0===n&&(n=!0),Nd(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Rp.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})},exports.useInsightsCustomerPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Nd(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Rp.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFallbackMetrics=function(e){return Nd(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Rp.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningConversionRate=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsFraudScreeningConversionRate(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningVolumeAndCountTx=function(t,n,o){var r=this;return void 0===o&&(o={enabled:!0}),Nd({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getInsightsFraudScreeningVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsHomeMetrics=function(e){return Nd(["get-insights-home-metrics",e],(function(){return Rp.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})},exports.useInsightsOverviewMetrics=function(e){return Nd(["get-insights-overview",e],(function(){return Rp.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})},exports.useInsightsOverviewMetricsV3=function(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Nd(["get-insights-overview-v3",e,t],(function(){return Rp.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})},exports.useInsightsTotalPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Nd(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Rp.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Nd(["get-insights-volume-metrics",t,e],(function(){return Rp.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetricsV2=function(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Nd(["get-insights-volume-metrics-v2",t,e,n],(function(){return Rp.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})},exports.useInviteUsersMultiaccountMassive=function(){return Md((function(e){return Rp.getInstance().inviteUsersMassive(e,e.organizationCode)}))},exports.useIsTesting=function(){var e=t.useState("ON"===localStorage.getItem("isTesting")),n=e[0],o=e[1];return t.useEffect((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&o("ON"===e.newValue)}))}),[]),{isTesting:n}},exports.useListSubscriptions=function(){return Md(["post-list-subscriptions"],(function(e){return Rp.getInstance().postListSubscriptions(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useLoginMethods=function(){return Md((function(e){return Rp.getInstance().changeLoginMethods(e)}))},exports.useNetworkTokensOnboarding=function(){var t=this;return Nd({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})},exports.useNewPostConnectionValidate=function(){return Md(["new-post-connection-validate"],(function(){return Rp.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.usePatchAccountV2=function(){return Md((function(e){var t=e.name,n=e.code,o=e.principal;return Rp.getInstance().patchAccountV2({name:t,code:n,principal:o})}))},exports.usePatchAddAllowlistItems=function(){return Md(["post-add-allowlist-items"],(function(e){var t=e.payload;return Rp.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchAllowedIps=function(){return Md(["developers-patch-allowed-ips"],(function(t){return Rp.getInstance().patchAllowedIps(t).then((function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null})).catch((function(t){return e.__assign(e.__assign({},t),{isError:!0})}))}),{cacheTime:0})},exports.usePatchAllowlist=function(){return Md(["patch-allowlist"],(function(e){var t=e.payload;return Rp.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchAndExecuteChart=function(t,n,o){var r=this;return void 0===o&&(o=!0),Nd(["chartgpt-patch-and-execute",t,n],(function(){return e.__awaiter(r,void 0,void 0,(function(){var o,r,a,i,s;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,(o=Rp.getInstance()).patchChartGPTChart(t,n)];case 1:return r=e.sent(),a=null==r?void 0:r.data,[4,o.executeChartGPTChart(t)];case 2:return i=e.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}}))}))}),{enabled:o&&!!t,retry:!1})},exports.usePatchApiKeysEditNote=function(){return Md((function(e){var t=e.payload,n=e.code;return Rp.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.usePatchChangeStatusAllowlist=function(){return Md(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Rp.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchChangeStatusAllowlistItem=function(){return Md(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Rp.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchChartName=function(){return Md((function(e){var t=e.chart_id,n=e.type,o=e.name,r=e.user_prompt,a=void 0===r?"":r;return Rp.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:a}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.usePatchConnection=function(){return Md(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Rp.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePathCreateCustomizedApiKeys=function(){return Md((function(e){var t=e.payload,n=e.code;return Rp.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePathNotifications=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}))},exports.usePauseSubscription=function(){return Md(["post-pause-subscription"],(function(e){var t=e.subscriptionCode;return Rp.getInstance().postPauseSubscription(t).then((function(e){return null==e?void 0:e.data}))}))},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var o=Vd();return Nd(["getPayoutsFilters",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().getPayoutsFilters(o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:t&&!!o})},exports.usePayoutsList=function(e){return Nd(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Rp.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})},exports.usePostAccount=function(){return Md((function(e){var t=e.name,n=e.principal;return Rp.getInstance().postAccount(t,n)}))},exports.usePostAllowlistMultiAccount=function(e){return Nd(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Rp.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.usePostApiKeysRoll=function(){return Md((function(e){var t=e.payload,n=e.code,o=e.password;return Rp.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.usePostApiLogs=function(e){return Nd(["api-logs",e],(function(){return Rp.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostAuditMonitors=function(e){return Md((function(e){var t=e.payload;return Rp.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return Md((function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().batchRefundByFile({payload:n}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.usePostBlackListBatch=function(e){var t=e.handleSetProgress;return Md(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,r=e.file;return Rp.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:r,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostBlackListItems=function(){return Md(["post-blacklist-items"],(function(e){var t=e.payload;return Rp.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostBlackListMultiAccount=function(){return Md(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Rp.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostBlockList=function(e,t,n,o){var r;return Nd(["post-black-list",e],(function(){return Rp.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===(r=e[0])||void 0===r?void 0:r.length)>0&&null!==t,useErrorBoundary:!1})},exports.usePostCall=function(){return Md((function(e){return Rp.getInstance().postCall(e)}))},exports.usePostChangeStatusConnection=function(){return Md(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.usePostConnectionMultiAccount=function(){return Md(["post-connection"],(function(e){var t=e.payload;return Rp.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostCreateAllowlistMultiAccount=function(){return Md(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Rp.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateCustomizedApiKeys=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateInsightsReport=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateRuleMultiAccount=function(){return Md((function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCredentialsValidatePassword=function(){return Md((function(e){var t=e.passwordOtp;return Rp.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))},exports.usePostCredentialsValidatePasswordRegularUser=function(){return Md((function(e){var t=e.password;return Rp.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.usePostCredentialsWithOtpMfa=function(){return Md((function(e){var t=e.password,n=e.accountCode,o=e.otp,r=e.mfaToken;return Rp.getInstance().getDeveloperCredentials(t,n,o,r).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))},exports.usePostDefaultRoutes=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.usePostEditRule=function(){return Md((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Rp.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostFraudTransactions=function(t){var n=this;return Nd(["POST/fraud-transactions",JSON.stringify(t)],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().postFraudTransactions(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostGetAllowlistItems=function(){return Md(["post-get-allowlist-items"],(function(e){var t=e.payload;return Rp.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostGetAllowlistMultiAccount=function(){return Md(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Rp.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,r=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=Vd();return Nd(["fetch-post-members-v2",t,n,o,r,a,i,s,u,c],(function(){return Rp.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:r,roleId:a,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})},exports.usePostNetworkTokensOnboarding=function(){var t=this;return Md((function(n){var o=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})},exports.usePostOrganizationConfigs=function(){return Md((function(e){return Rp.getInstance().postOrganizationConfigs(e)}))},exports.usePostPaymentsEvaluated=function(e){return Nd(["fetch-payments-evaluated",e],(function(){return Rp.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostPaymentsLazy=function(t){var n=this;return Nd(["fetch-payments-lazy",t],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().postPaymentsLazy(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostSlackMessageChannel=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostTransactions=function(t){var n=this;return Nd(["POST/transactions",JSON.stringify(t)],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().postTransactions(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!t,cacheTime:0,useErrorBoundary:!1})},exports.usePostUserSettings=function(){return Md((function(e){var t=e.payload;return Rp.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})},exports.usePostUserSettingsPinned=function(e){return Md(["pinned-sections"],(function(e){var t=e.payload;return Rp.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})},exports.usePostUserSettingsTables=function(){return Md((function(e){var t=e.payload,n=e.section;return Rp.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(t){var n=Fd.getQueryData(["fetch-profile"]);t.data&&Fd.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return Md((function(e){return Rp.getInstance().postUserThemeSettings(e)}))},exports.usePostValideStatusConnection=function(){return Md(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Rp.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostVelocityRules=function(e){return Nd(["velocity-rules",e],(function(){var t=Rp.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})},exports.usePostWebhookLogs=function(e){var t=e.params;return Nd(["webhook-logs",t],(function(){return Rp.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostWebhookMultiAccount=function(e){return Md((function(e){var t=e.payload;return Rp.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){return Nd(["smart-routing-conversion-rates"],(function(){return Rp.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})},exports.useProviderRawResponse=function(){return Md((function(e){var t=e.transactionCode,n=e.payload;return Rp.getInstance().postProviderRawResponse(t,n)}))},exports.usePublishVersion=function(t,n){var o=this,r=t.versionCode,a=t.accountCode,i=t.organizationCode;return void 0===n&&(n=null),Md((function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Rp.getInstance().postSmartRoutingPublishVersion(a,r,i).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),n)},exports.usePutAccountPrincipal=function(){return Md((function(e){var t=e.account_code;return Rp.getInstance().putAccountPrincipal({account_code:t})}))},exports.usePutAccountsUserMassive=function(){return Md((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Rp.getInstance().putAccountsUserMassive(t,n,o)}))},exports.usePutBlackListType=function(){return Md(["put-blacklist"],(function(e){return Rp.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePutCosts=function(){return Md((function(e){return Rp.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.usePutOrganizationConfigsByAccount=function(){return Md((function(e){return Rp.getInstance().putOrganizationConfigsByAccount(e)}))},exports.useRecoveredPaymentsByDay=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-recovered-payments-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-payments-by-day",o)];case 1:return r=e.sent(),[2,Zd(r.data,o.start_date,o.end_date)]}}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRecoveredTPVByDay=function(t,n){return Nd(e.__assign({queryKey:["smart-recovery-recovered-tpv-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,(function(){var n,o,r;return e.__generator(this,(function(e){switch(e.label){case 0:return n=Rp.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-tpv-by-day",o)];case 1:return r=e.sent(),[2,Yd(r.data,o.start_date,o.end_date)]}}))}))},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRescheduleSubscription=function(){return Md(["post-reschedule-subscription"],(function(e){var t=e.subscriptionCode;return Rp.getInstance().postRescheduleSubscription(t).then((function(e){return null==e?void 0:e.data}))}))},exports.useResendWebhooks=function(){return Md((function(e){var t=e.codes;return Rp.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useResumeSubscription=function(){return Md(["post-resume-subscription"],(function(e){var t=e.subscriptionCode;return Rp.getInstance().postResumeSubscription(t).then((function(e){return null==e?void 0:e.data}))}))},exports.useRetryDuplicateAccount=function(){return Md((function(e){return Rp.getInstance().retryDuplicateAccount(e)}))},exports.useSaveVersion=function(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)},exports.useSearchScheduleById=function(t,n,o){var r=this;return Nd(["POST/template-reporting/schedule-by-id/search",t,n],(function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().searchReportScheduleById(t,n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o&&!!t,useErrorBoundary:!1,cacheTime:0})},exports.useSearchSchedules=function(t,n){var o=this;return Nd(["POST/template-reporting/schedules/search",t],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().searchReportSchedules(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:n,useErrorBoundary:!1,cacheTime:0})},exports.useSearchTemplateById=function(t,n,o){var r=this;return Nd(["POST/template-reporting/template-by-id/search",t,n],(function(){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().searchReportTemplateById(t,n).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o&&!!t,useErrorBoundary:!1,cacheTime:0})},exports.useSearchTemplates=function(t,n){var o=this;return Nd(["POST/template-reporting/templates/search",t],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().searchReportTemplates(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:n,useErrorBoundary:!1,cacheTime:0})},exports.useSendPaymentNotification=function(t,n,o){var r=this,a=Rp.getInstance();return Nd(["send-payment-notification",t,n],(function(){return e.__awaiter(r,void 0,void 0,(function(){var r,i;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a.sendPaymentNotification(t,n)];case 1:return r=e.sent(),o.onSuccess(),[2,r.data];case 2:throw i=e.sent(),o.onError(),i;case 3:return[2]}}))}))}),{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return Md((function(){return Rp.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))},exports.useSmartRoutingCreateDeclinedGroup=function(e){var t=e.accountCode;return Md((function(e){return void 0===e&&(e=null),Rp.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)},exports.useSmartRoutingEditWorkflowName=function(e,t){var n=e.code,o=e.name,r=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().putSmartRoutingUpdateWorkflowName(r,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),Md((function(e){var n=e.payload;return Rp.getInstance().multiAccountDeclinedGroupCreate(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingRemoveDeclinedGroup=function(t,n){return void 0===n&&(n={}),Md((function(e){var n=e.declinedGroupCode;return Rp.getInstance().removeDeclinedGroup(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingSimulateTransaction=function(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Md((function(e){return Rp.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Md((function(e){return void 0===e&&(e=!1),Rp.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateDeclinedGroup=function(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Md((function(e){return void 0===e&&(e=null),Rp.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateMonitorRedistribution=function(e,t){return void 0===t&&(t=null),Md((function(t){return Rp.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,o=e.active,r=e.accountCode;return void 0===t&&(t=null),Md((function(){return Rp.getInstance().putSmartRoutingToggleMethod(r,n,o).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useUnInviteUsersV2=function(){return Md((function(e){var t=e.userCode,n=e.organizationCode;return Rp.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))},exports.useUnrollUserV2=function(){return Md((function(e){return Rp.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateCheckoutTemplate=function(){return Md((function(e){var t=e.accountCode,n=e.template;return Rp.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateIsActiveCheckout=function(e){return Md((function(e){return Rp.getInstance().updateIsActiveCheckout(e)}),e)},exports.useUpdateMFAConfig=function(){return Md((function(e){var t=e.payload,n=e.organizationCode;return Rp.getInstance().updateMFAConfig(t,n)}))},exports.useUpdateOrganizationStatus=function(){return Md(["patch-organizations"],(function(){return Rp.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateProfile=function(e){return Md((function(e){return Rp.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateReconciliationAlert=function(){return Md(["UPDATE/reconciliation/alerts"],(function(e){return Rp.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){Fd.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(e){return Md((function(){return Rp.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useUpdateReportTemplate=function(e){return Md((function(){return Rp.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateSamlConfig=function(){return Md((function(e){return Rp.getInstance().updateSamlConfig(e)}))},exports.useUpdateScheduledReport=function(){return Md((function(e){var t=e.reportCode,n=e.payload;return Rp.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useUpdateStylingTheme=function(){return Md((function(e){var t=e.accountCode,n=e.theme;return Rp.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateSubscription=function(){return Md(["patch-subscription"],(function(e){var t=e.subscriptionCode,n=e.payload;return Rp.getInstance().patchSubscription(t,n).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateTemplateSelection=function(){var t=this;return Md(["PATCH/template-reporting/report-templates/selection"],(function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,Rp.getInstance().updateTemplateSelection(o,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){Fd.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useUpdateWebhookV2=function(e){return Md((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Rp.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFileV2=function(e){var n=e.fileName,o=e.onSuccess,r=e.onError,a=t.useState(0),i=a[0],s=a[1],u=t.useRef({cancel:function(){return null}}),c=Md(["upload-file-chargeback",n],(function(e){var t=Rp.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:s}),n=t.promise,a=t.cancel;return u.current.cancel=a,n.then((function(e){return null==o||o(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==r||r(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:u.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return Md((function(e){return Rp.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=t.useRef({cancel:function(){return null}}),n=Md(["upload-file"],(function(t){var n=Rp.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,r=n.cancel;return e.current.cancel=r,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:n,cancelRequest:e.current.cancel}},exports.useValiateAllowlistItems=function(){return Md(["validate-allowlist-items"],(function(e){return Rp.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.useValidateBlockListItems=function(){return Md(["valiate-blacklist-items"],(function(e){return Rp.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useValidateCredentials=function(){return Md((function(e){return Rp.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.useValidateOrgName=function(){return Md((function(e){return Rp.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useValidatePasswordStatus=function(){return Md((function(){return Rp.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))},exports.useViewMoreMetrics=function(e,t){return Nd(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Rp.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})};
234
234
  //# sourceMappingURL=index.js.map