@wyocrm/sdk 5.5.22 → 5.5.24
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.
- package/build/index.d.ts +77 -1
- package/build/index.js +1 -1
- package/build/index.js.LICENSE.txt +1 -1
- package/package.json +2 -2
package/build/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare module '@wyocrm/sdk/index' {
|
|
|
6
6
|
}
|
|
7
7
|
declare module '@wyocrm/sdk/services' {
|
|
8
8
|
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
9
|
-
import { ICustomerOptions, ICustomer, ITransaction, IOrder, ICouponItem, IApiResponse, IFileUploadRequest, ICharge, IObjectResponse, IQueryResponse, IMerchant, ITokenResponse, IUserInfo, IPasswordGrantRequest, IGoogleIdTokenRequest, IAppleIdTokenRequest, IWeixinCodeRequest, ICustomHeaders, IOtpRequest, Response, IUserDetail } from '@wyocrm/sdk/types';
|
|
9
|
+
import { ICustomerOptions, ICustomer, ITransaction, IOrder, ICouponItem, IApiResponse, IFileUploadRequest, ICharge, IObjectResponse, IQueryResponse, IMerchant, ITokenResponse, IUserInfo, IPasswordGrantRequest, IGoogleIdTokenRequest, IAppleIdTokenRequest, IWeixinCodeRequest, ICustomHeaders, IOtpRequest, Response, IUserDetail, Address, IPaymentSource, IChangePasswordRequest, IChangePhoneNumberRequest, ISubscribeRequest, IOtpSmsRequest } from '@wyocrm/sdk/types';
|
|
10
10
|
import { QueryBuilder } from '@litepos/autoquery';
|
|
11
11
|
export interface IServiceOptions {
|
|
12
12
|
merchantGuid?: string;
|
|
@@ -74,6 +74,31 @@ declare module '@wyocrm/sdk/services' {
|
|
|
74
74
|
sendOtp(merchantGuid: string, request: IOtpRequest, headers?: ICustomHeaders, axiosConfig?: AxiosRequestConfig): Promise<AxiosResponse<Response>>;
|
|
75
75
|
getUserDetail(merchantGuid: string, axiosConfig?: AxiosRequestConfig): Promise<AxiosResponse<IObjectResponse<IUserDetail>>>;
|
|
76
76
|
socialAccountExists(socialAccount: 'apple' | 'google' | 'weixin', code: string, axiosConfig?: AxiosRequestConfig): Promise<AxiosResponse<IObjectResponse<boolean>>>;
|
|
77
|
+
queryTransactions(merchantGuid: string, builder: QueryBuilder<ITransaction & {
|
|
78
|
+
IncludeJointMerchants?: boolean;
|
|
79
|
+
}>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<ITransaction>>;
|
|
80
|
+
getAccount(axiosConfig?: AxiosRequestConfig): Promise<ICustomer>;
|
|
81
|
+
updateAccount(data: Partial<ICustomer>, axiosConfig?: AxiosRequestConfig): Promise<ICustomer>;
|
|
82
|
+
uploadProfilePhoto(file: IFileUploadRequest, axiosConfig?: AxiosRequestConfig): Promise<ICustomer>;
|
|
83
|
+
changePassword(request: IChangePasswordRequest, axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
84
|
+
changePhoneNumberByOtp(request: IChangePhoneNumberRequest, axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
85
|
+
unsubscribe(request: ISubscribeRequest, axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
86
|
+
agreePdpa(axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
87
|
+
getAddresses(axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<Address[]>>;
|
|
88
|
+
createAddress(data: Partial<Address>, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<Address>>;
|
|
89
|
+
updateAddress(id: number, data: Partial<Address>, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<Address>>;
|
|
90
|
+
deleteAddress(id: number, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<Address>>;
|
|
91
|
+
getPaymentSources(axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<IPaymentSource[]>>;
|
|
92
|
+
createPaymentSource(data: Partial<IPaymentSource> & {
|
|
93
|
+
payment_method_code: string;
|
|
94
|
+
token: string;
|
|
95
|
+
}, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<IPaymentSource>>;
|
|
96
|
+
updatePaymentSource(data: {
|
|
97
|
+
id: number;
|
|
98
|
+
is_default: boolean;
|
|
99
|
+
}, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<IPaymentSource>>;
|
|
100
|
+
deletePaymentSource(id: number, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<IPaymentSource>>;
|
|
101
|
+
sendOtpSms(request: IOtpSmsRequest, axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
77
102
|
}
|
|
78
103
|
export class ClientService implements IClientService {
|
|
79
104
|
exchangePasswordGrant(request: IPasswordGrantRequest, headers?: ICustomHeaders, axiosConfig?: AxiosRequestConfig): Promise<ITokenResponse>;
|
|
@@ -84,6 +109,31 @@ declare module '@wyocrm/sdk/services' {
|
|
|
84
109
|
sendOtp(merchantGuid: string, request: IOtpRequest, headers?: ICustomHeaders, axiosConfig?: AxiosRequestConfig): Promise<AxiosResponse<Response>>;
|
|
85
110
|
getUserDetail(merchantGuid: string, axiosConfig?: AxiosRequestConfig): Promise<AxiosResponse<IObjectResponse<IUserDetail>>>;
|
|
86
111
|
socialAccountExists(socialAccount: 'apple' | 'google' | 'weixin', code: string, axiosConfig?: AxiosRequestConfig): Promise<AxiosResponse<IObjectResponse<boolean>>>;
|
|
112
|
+
queryTransactions(merchantGuid: string, builder: QueryBuilder<ITransaction & {
|
|
113
|
+
IncludeJointMerchants?: boolean;
|
|
114
|
+
}>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<ITransaction>>;
|
|
115
|
+
getAccount(axiosConfig?: AxiosRequestConfig): Promise<ICustomer>;
|
|
116
|
+
updateAccount(data: Partial<ICustomer>, axiosConfig?: AxiosRequestConfig): Promise<ICustomer>;
|
|
117
|
+
uploadProfilePhoto(file: IFileUploadRequest, axiosConfig?: AxiosRequestConfig): Promise<ICustomer>;
|
|
118
|
+
changePassword(request: IChangePasswordRequest, axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
119
|
+
changePhoneNumberByOtp(request: IChangePhoneNumberRequest, axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
120
|
+
unsubscribe(request: ISubscribeRequest, axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
121
|
+
agreePdpa(axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
122
|
+
getAddresses(axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<Address[]>>;
|
|
123
|
+
createAddress(data: Partial<Address>, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<Address>>;
|
|
124
|
+
updateAddress(id: number, data: Partial<Address>, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<Address>>;
|
|
125
|
+
deleteAddress(id: number, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<Address>>;
|
|
126
|
+
getPaymentSources(axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<IPaymentSource[]>>;
|
|
127
|
+
createPaymentSource(data: Partial<IPaymentSource> & {
|
|
128
|
+
payment_method_code: string;
|
|
129
|
+
token: string;
|
|
130
|
+
}, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<IPaymentSource>>;
|
|
131
|
+
updatePaymentSource(data: {
|
|
132
|
+
id: number;
|
|
133
|
+
is_default: boolean;
|
|
134
|
+
}, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<IPaymentSource>>;
|
|
135
|
+
deletePaymentSource(id: number, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<IPaymentSource>>;
|
|
136
|
+
sendOtpSms(request: IOtpSmsRequest, axiosConfig?: AxiosRequestConfig): Promise<Response>;
|
|
87
137
|
}
|
|
88
138
|
|
|
89
139
|
}
|
|
@@ -764,6 +814,32 @@ declare module '@wyocrm/sdk/types' {
|
|
|
764
814
|
Nov = "-11-",
|
|
765
815
|
Dec = "-12-"
|
|
766
816
|
}
|
|
817
|
+
export interface IPaymentSource {
|
|
818
|
+
id: number;
|
|
819
|
+
user_id: number;
|
|
820
|
+
payment_method_code: string;
|
|
821
|
+
provider_source_id?: string;
|
|
822
|
+
token?: string;
|
|
823
|
+
exp_month: number;
|
|
824
|
+
exp_year: number;
|
|
825
|
+
last4?: string;
|
|
826
|
+
is_default: boolean;
|
|
827
|
+
}
|
|
828
|
+
export interface IChangePasswordRequest {
|
|
829
|
+
current_password: string;
|
|
830
|
+
new_password: string;
|
|
831
|
+
}
|
|
832
|
+
export interface IChangePhoneNumberRequest {
|
|
833
|
+
new_phone_number: string;
|
|
834
|
+
otp: string;
|
|
835
|
+
}
|
|
836
|
+
export interface ISubscribeRequest {
|
|
837
|
+
topic: string;
|
|
838
|
+
channel: string;
|
|
839
|
+
}
|
|
840
|
+
export interface IOtpSmsRequest {
|
|
841
|
+
phone: string;
|
|
842
|
+
}
|
|
767
843
|
export {};
|
|
768
844
|
|
|
769
845
|
}
|
package/build/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
(function e(t,n){if(typeof exports==="object"&&typeof module==="object")module.exports=n();else if(typeof define==="function"&&define.amd)define([],n);else if(typeof exports==="object")exports["@xpos/core"]=n();else t["@xpos/core"]=n()})(self,()=>(()=>{"use strict";var e={};(()=>{e.d=(t,n)=>{for(var r in n){if(e.o(n,r)&&!e.o(t,r)){Object.defineProperty(t,r,{enumerable:true,get:n[r]})}}}})();(()=>{e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{e.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();var t={};e.r(t);e.d(t,{AdminServices:()=>Nn,ApiResponse:()=>E,Applying:()=>b,ApplyingType:()=>v,ChargeReferenceType:()=>T,ClientService:()=>Un,Configurator:()=>xn,Coupon:()=>_,CouponItem:()=>O,Customer:()=>u,CustomerOptions:()=>l,DayOperator:()=>d,FileExtension:()=>S,FileUploadRequest:()=>C,GrantType:()=>R,IResponseError:()=>w,Merchant:()=>P,MonthOperator:()=>p,MonthValues:()=>k,NumericOperators:()=>f,Order:()=>g,OrderStatus:()=>y,OtpRequest:()=>A,Preferences:()=>j,StringOperators:()=>h,TerminalServices:()=>kn,Transaction:()=>m,UserDetail:()=>x,createInstance:()=>gn});function n(e){"@babel/helpers - typeof";return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=c(e,"string");return"symbol"==n(t)?t:t+""}function c(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var u=i(function e(){o(this,e);s(this,"membership_id","");s(this,"license_id",0);s(this,"credit",0);s(this,"point",0);s(this,"transaction_total",0);s(this,"transaction_time",0);s(this,"tier",null);s(this,"tag_guids",null);s(this,"user_group_id",0);s(this,"user_group_name",null);s(this,"group_expires_at","");s(this,"error",null);s(this,"id",0);s(this,"ref_id","");s(this,"image_url",null);s(this,"stripe_token",null);s(this,"stripe_customer_id",null);s(this,"username","");s(this,"company",null);s(this,"ic",null);s(this,"display_name","");s(this,"full_name","");s(this,"birth_date",null);s(this,"gender",null);s(this,"address",null);s(this,"postcode",null);s(this,"note",null);s(this,"language",null);s(this,"time_zone",null);s(this,"created_at","");s(this,"updated_at","");s(this,"license_ids","");s(this,"security_stamp","");s(this,"phone_number","");s(this,"email",null);s(this,"email_confirmed",false);s(this,"phone_number_confirmed",false);s(this,"agree_pdpa_at",null)});var l=i(function e(){o(this,e);s(this,"ref_id","");s(this,"ic","");s(this,"display_name","");s(this,"image_url","");s(this,"birth_date","");s(this,"gender","");s(this,"language","en");s(this,"phone_number","");s(this,"email","")});var f=function(e){e[e["GreaterThan"]=0]="GreaterThan";e[e["GreaterThanOrEqualTo"]=1]="GreaterThanOrEqualTo";e[e["LessThan"]=2]="LessThan";e[e["LessThanOrEqualTo"]=3]="LessThanOrEqualTo";e[e["EqualTo"]=4]="EqualTo";e[e["NotEqualTo"]=5]="NotEqualTo";return e}({});var h=function(e){e[e["Contains"]=0]="Contains";e[e["NotContains"]=1]="NotContains";e[e["StartsWith"]=2]="StartsWith";e[e["EndsWith"]=3]="EndsWith";return e}({});var p=function(e){e["WithinAMonth"]="Contains";return e}({});var d=function(e){e["At"]="StartsWith";return e}({});var m=i(function e(){o(this,e);s(this,"id",0);s(this,"invoice_id",0);s(this,"type","");s(this,"primary_license_id",0);s(this,"license_id",0);s(this,"ref_id","");s(this,"user_id",0);s(this,"add_credit",0);s(this,"minus_credit",0);s(this,"add_point",0);s(this,"minus_point",0);s(this,"status","");s(this,"grand_total",0);s(this,"is_local",false);s(this,"closed_at","");s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[]);s(this,"used_credit",0);s(this,"expired_credit",0);s(this,"expired_at",null);s(this,"meta",{coupon_ids_to_redeem:[]})});var y=function(e){e["PayAtCounter"]="Pay At Counter";e["PlacingOrder"]="Placing Order";e["PreparingOrder"]="Preparing Order";e["DeliveringOrder"]="Delivering Order";e["Delivered"]="Delivered";e["PickingUp"]="Picking Up";e["PickedUp"]="Picked Up";e["SendingOrder"]="Sending Order";e["Sent"]="Sent";e["Cancelled"]="Cancelled";e["Confirmed"]="Confirmed";e["Expired"]="Expired";e["PendingPayment"]="Pending Payment";e["PaymentDeclined"]="Payment Declined";return e}({});var g=i(function e(){o(this,e);s(this,"id",0);s(this,"order_ref","");s(this,"table_id",0);s(this,"invoice_id",0);s(this,"call_num",0);s(this,"user_id",0);s(this,"license_id",0);s(this,"charge_id",0);s(this,"delivery_id",0);s(this,"order_type","");s(this,"payment_source_id",0);s(this,"status",y.Sent);s(this,"customer_name","");s(this,"customer_phone_number","");s(this,"meta",{placed_at:"",current_status:"",prepare_at:"",previous_status:"",deliver_at:"",delivered_at:""});s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[])});var w=i(function e(){o(this,e)});var v=function(e){e[e["ALL"]=1]="ALL";e[e["INCLUSIVE"]=2]="INCLUSIVE";e[e["EXCLUSIVE"]=3]="EXCLUSIVE";return e}({});var b=i(function e(){o(this,e);s(this,"applying_type",v.ALL);s(this,"applying_items",[])});var _=i(function e(){o(this,e);s(this,"guid","");s(this,"promo_code","");s(this,"is_multi_stores",false);s(this,"name","");s(this,"alias","");s(this,"description","");s(this,"description_alias","");s(this,"applying_plus",new b);s(this,"applying_user_tags",new b);s(this,"applying_user_groups",new b);s(this,"discount_calc_type",0);s(this,"discount_amount",0);s(this,"discount_percent",0);s(this,"duration",0);s(this,"usage_count",0);s(this,"usage_limit_per_invoice",0);s(this,"above_invoice_amount",0);s(this,"below_invoice_amount",0);s(this,"is_delivery_free",false);s(this,"is_individual_use",false);s(this,"price_in_points",0);s(this,"styles",null);s(this,"expired_at","");s(this,"auto_gen",false);s(this,"can_sell",false);s(this,"can_redeem",false);s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[])});var O=i(function e(){o(this,e);s(this,"guid","");s(this,"coupon",new _);s(this,"usage",null);s(this,"promo_code","");s(this,"is_expired",false);s(this,"is_redeemed",false);s(this,"is_generated",false);s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[])});var E=i(function e(){o(this,e);s(this,"errors",[])});var S=function(e){e["JPG"]="jpg";e["PNG"]="png";return e}({});var C=i(function e(){o(this,e);s(this,"name","");s(this,"base64","");s(this,"format",S.PNG)});var T=function(e){e[e["order"]=0]="order";e[e["invoice"]=1]="invoice";return e}({});var P=i(function e(){o(this,e);s(this,"id",0);s(this,"name","");s(this,"description","");s(this,"license_id",0);s(this,"address","");s(this,"phone_number","");s(this,"email","");s(this,"website","");s(this,"logo_url","");s(this,"business_hours","");s(this,"is_active",true);s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[])});var R=function(e){e["Password"]="password";e["RefreshToken"]="refresh_token";e["AuthorizationCode"]="authorization_code";e["ClientCredentials"]="client_credentials";e["GoogleIdToken"]="urn:ietf:params:oauth:grant-type:google_id_token";e["AppleIdToken"]="urn:ietf:params:oauth:grant-type:apple_id_token";e["WeixinCode"]="urn:ietf:params:oauth:grant-type:weixin_code";return e}({});var A=i(function e(){o(this,e);s(this,"phone_number","")});var j=i(function e(){o(this,e)});var x=i(function e(){o(this,e);s(this,"id",0);s(this,"license_id",0);s(this,"user_id",0);s(this,"alias","");s(this,"image_url","");s(this,"membership_id","");s(this,"credit",0);s(this,"point",0);s(this,"transaction_total",0);s(this,"transaction_time",0);s(this,"tag_guids",[]);s(this,"user_group_id",0);s(this,"user_group_name","");s(this,"group_expires_at","");s(this,"created_by_merchant_id",0);s(this,"is_delete",false);s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[]);s(this,"preferences",new j)});var k=function(e){e["Jan"]="-01-";e["Feb"]="-02-";e["Mar"]="-03-";e["Apr"]="-04-";e["May"]="-05-";e["Jun"]="-06-";e["Jul"]="-07-";e["Aug"]="-08-";e["Sep"]="-09-";e["Oct"]="-10-";e["Nov"]="-11-";e["Dec"]="-12-";return e}({});function N(e,t){return function n(){return e.apply(t,arguments)}}const{toString:U}=Object.prototype;const{getPrototypeOf:L}=Object;const D=(e=>t=>{const n=U.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null));const F=e=>{e=e.toLowerCase();return t=>D(t)===e};const B=e=>t=>typeof t===e;const{isArray:M}=Array;const H=B("undefined");function I(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G=F("ArrayBuffer");function q(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&G(e.buffer)}return t}const z=B("string");const W=B("function");const J=B("number");const V=e=>e!==null&&typeof e==="object";const K=e=>e===true||e===false;const $=e=>{if(D(e)!=="object"){return false}const t=L(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};const X=F("Date");const Z=F("File");const Q=F("Blob");const Y=F("FileList");const ee=e=>V(e)&&W(e.pipe);const te=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||W(e.append)&&((t=D(e))==="formdata"||t==="object"&&W(e.toString)&&e.toString()==="[object FormData]"))};const ne=F("URLSearchParams");const re=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let r;let i;if(typeof e!=="object"){e=[e]}if(M(e)){for(r=0,i=e.length;r<i;r++){t.call(null,e[r],r,e)}}else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e);const o=i.length;let s;for(r=0;r<o;r++){s=i[r];t.call(null,e[s],s,e)}}}function oe(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length;let i;while(r-- >0){i=n[r];if(t===i.toLowerCase()){return i}}return null}const se=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})();const ae=e=>!H(e)&&e!==se;function ce(){const{caseless:e}=ae(this)&&this||{};const t={};const n=(n,r)=>{const i=e&&oe(t,r)||r;if($(t[i])&&$(n)){t[i]=ce(t[i],n)}else if($(n)){t[i]=ce({},n)}else if(M(n)){t[i]=n.slice()}else{t[i]=n}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&ie(arguments[e],n)}return t}const ue=(e,t,n,{allOwnKeys:r}={})=>{ie(t,(t,r)=>{if(n&&W(t)){e[r]=N(t,n)}else{e[r]=t}},{allOwnKeys:r});return e};const le=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const fe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const he=(e,t,n,r)=>{let i;let o;let s;const a={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);o=i.length;while(o-- >0){s=i[o];if((!r||r(s,e,t))&&!a[s]){t[s]=e[s];a[s]=true}}e=n!==false&&L(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t};const pe=(e,t,n)=>{e=String(e);if(n===undefined||n>e.length){n=e.length}n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n};const de=e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!J(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const me=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&L(Uint8Array));const ye=(e,t)=>{const n=e&&e[Symbol.iterator];const r=n.call(e);let i;while((i=r.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}};const ge=(e,t)=>{let n;const r=[];while((n=e.exec(t))!==null){r.push(n)}return r};const we=F("HTMLFormElement");const ve=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function e(t,n,r){return n.toUpperCase()+r});const be=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const _e=F("RegExp");const Oe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const r={};ie(n,(n,i)=>{let o;if((o=t(n,i,e))!==false){r[i]=o||n}});Object.defineProperties(e,r)};const Ee=e=>{Oe(e,(t,n)=>{if(W(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const r=e[n];if(!W(r))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}})};const Se=(e,t)=>{const n={};const r=e=>{e.forEach(e=>{n[e]=true})};M(e)?r(e):r(String(e).split(t));return n};const Ce=()=>{};const Te=(e,t)=>{e=+e;return Number.isFinite(e)?e:t};const Pe="abcdefghijklmnopqrstuvwxyz";const Re="0123456789";const Ae={DIGIT:Re,ALPHA:Pe,ALPHA_DIGIT:Pe+Pe.toUpperCase()+Re};const je=(e=16,t=Ae.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--){n+=t[Math.random()*r|0]}return n};function xe(e){return!!(e&&W(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ke=e=>{const t=new Array(10);const n=(e,r)=>{if(V(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[r]=e;const i=M(e)?[]:{};ie(e,(e,t)=>{const o=n(e,r+1);!H(o)&&(i[t]=o)});t[r]=undefined;return i}}return e};return n(e,0)};const Ne=F("AsyncFunction");const Ue=e=>e&&(V(e)||W(e))&&W(e.then)&&W(e.catch);const Le={isArray:M,isArrayBuffer:G,isBuffer:I,isFormData:te,isArrayBufferView:q,isString:z,isNumber:J,isBoolean:K,isObject:V,isPlainObject:$,isUndefined:H,isDate:X,isFile:Z,isBlob:Q,isRegExp:_e,isFunction:W,isStream:ee,isURLSearchParams:ne,isTypedArray:me,isFileList:Y,forEach:ie,merge:ce,extend:ue,trim:re,stripBOM:le,inherits:fe,toFlatObject:he,kindOf:D,kindOfTest:F,endsWith:pe,toArray:de,forEachEntry:ye,matchAll:ge,isHTMLForm:we,hasOwnProperty:be,hasOwnProp:be,reduceDescriptors:Oe,freezeMethods:Ee,toObjectSet:Se,toCamelCase:ve,noop:Ce,toFiniteNumber:Te,findKey:oe,global:se,isContextDefined:ae,ALPHABET:Ae,generateString:je,isSpecCompliantForm:xe,toJSONObject:ke,isAsyncFn:Ne,isThenable:Ue};function De(e,t,n,r,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);n&&(this.config=n);r&&(this.request=r);i&&(this.response=i)}Le.inherits(De,Error,{toJSON:function e(){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:Le.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fe=De.prototype;const Be={};["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=>{Be[e]={value:e}});Object.defineProperties(De,Be);Object.defineProperty(Fe,"isAxiosError",{value:true});De.from=(e,t,n,r,i,o)=>{const s=Object.create(Fe);Le.toFlatObject(e,s,function e(t){return t!==Error.prototype},e=>e!=="isAxiosError");De.call(s,e.message,t,n,r,i);s.cause=e;s.name=e.name;o&&Object.assign(s,o);return s};const Me=De;const He=null;function Ie(e){return Le.isPlainObject(e)||Le.isArray(e)}function Ge(e){return Le.endsWith(e,"[]")?e.slice(0,-2):e}function qe(e,t,n){if(!e)return t;return e.concat(t).map(function e(t,r){t=Ge(t);return!n&&r?"["+t+"]":t}).join(n?".":"")}function ze(e){return Le.isArray(e)&&!e.some(Ie)}const We=Le.toFlatObject(Le,{},null,function e(t){return/^is[A-Z]/.test(t)});function Je(e,t,n){if(!Le.isObject(e)){throw new TypeError("target must be an object")}t=t||new(He||FormData);n=Le.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,function e(t,n){return!Le.isUndefined(n[t])});const r=n.metaTokens;const i=n.visitor||l;const o=n.dots;const s=n.indexes;const a=n.Blob||typeof Blob!=="undefined"&&Blob;const c=a&&Le.isSpecCompliantForm(t);if(!Le.isFunction(i)){throw new TypeError("visitor must be a function")}function u(e){if(e===null)return"";if(Le.isDate(e)){return e.toISOString()}if(!c&&Le.isBlob(e)){throw new Me("Blob is not supported. Use a Buffer instead.")}if(Le.isArrayBuffer(e)||Le.isTypedArray(e)){return c&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function l(e,n,i){let a=e;if(e&&!i&&typeof e==="object"){if(Le.endsWith(n,"{}")){n=r?n:n.slice(0,-2);e=JSON.stringify(e)}else if(Le.isArray(e)&&ze(e)||(Le.isFileList(e)||Le.endsWith(n,"[]"))&&(a=Le.toArray(e))){n=Ge(n);a.forEach(function e(r,i){!(Le.isUndefined(r)||r===null)&&t.append(s===true?qe([n],i,o):s===null?n:n+"[]",u(r))});return false}}if(Ie(e)){return true}t.append(qe(i,n,o),u(e));return false}const f=[];const h=Object.assign(We,{defaultVisitor:l,convertValue:u,isVisitable:Ie});function p(e,n){if(Le.isUndefined(e))return;if(f.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}f.push(e);Le.forEach(e,function e(r,o){const s=!(Le.isUndefined(r)||r===null)&&i.call(t,r,Le.isString(o)?o.trim():o,n,h);if(s===true){p(r,n?n.concat(o):[o])}});f.pop()}if(!Le.isObject(e)){throw new TypeError("data must be an object")}p(e);return t}const Ve=Je;function Ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function e(n){return t[n]})}function $e(e,t){this._pairs=[];e&&Ve(e,this,t)}const Xe=$e.prototype;Xe.append=function e(t,n){this._pairs.push([t,n])};Xe.toString=function e(t){const n=t?function(e){return t.call(this,e,Ke)}:Ke;return this._pairs.map(function e(t){return n(t[0])+"="+n(t[1])},"").join("&")};const Ze=$e;function Qe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ye(e,t,n){if(!t){return e}const r=n&&n.encode||Qe;const i=n&&n.serialize;let o;if(i){o=i(t,n)}else{o=Le.isURLSearchParams(t)?t.toString():new Ze(t,n).toString(r)}if(o){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class et{constructor(){this.handlers=[]}use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(e){if(this.handlers[e]){this.handlers[e]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(e){Le.forEach(this.handlers,function t(n){if(n!==null){e(n)}})}}const tt=et;const nt={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};const rt=typeof URLSearchParams!=="undefined"?URLSearchParams:Ze;const it=typeof FormData!=="undefined"?FormData:null;const ot=typeof Blob!=="undefined"?Blob:null;const st=(()=>{let e;if(typeof navigator!=="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"})();const at=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const ct={isBrowser:true,classes:{URLSearchParams:rt,FormData:it,Blob:ot},isStandardBrowserEnv:st,isStandardBrowserWebWorkerEnv:at,protocols:["http","https","file","blob","url","data"]};function ut(e,t){return Ve(e,new ct.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){if(ct.isNode&&Le.isBuffer(e)){this.append(t,e.toString("base64"));return false}return r.defaultVisitor.apply(this,arguments)}},t))}function lt(e){return Le.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ft(e){const t={};const n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++){o=n[r];t[o]=e[o]}return t}function ht(e){function t(e,n,r,i){let o=e[i++];const s=Number.isFinite(+o);const a=i>=e.length;o=!o&&Le.isArray(r)?r.length:o;if(a){if(Le.hasOwnProp(r,o)){r[o]=[r[o],n]}else{r[o]=n}return!s}if(!r[o]||!Le.isObject(r[o])){r[o]=[]}const c=t(e,n,r[o],i);if(c&&Le.isArray(r[o])){r[o]=ft(r[o])}return!s}if(Le.isFormData(e)&&Le.isFunction(e.entries)){const n={};Le.forEachEntry(e,(e,r)=>{t(lt(e),r,n,0)});return n}return null}const pt=ht;function dt(e,t,n){if(Le.isString(e)){try{(t||JSON.parse)(e);return Le.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const mt={transitional:nt,adapter:["xhr","http"],transformRequest:[function e(t,n){const r=n.getContentType()||"";const i=r.indexOf("application/json")>-1;const o=Le.isObject(t);if(o&&Le.isHTMLForm(t)){t=new FormData(t)}const s=Le.isFormData(t);if(s){if(!i){return t}return i?JSON.stringify(pt(t)):t}if(Le.isArrayBuffer(t)||Le.isBuffer(t)||Le.isStream(t)||Le.isFile(t)||Le.isBlob(t)){return t}if(Le.isArrayBufferView(t)){return t.buffer}if(Le.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){return ut(t,this.formSerializer).toString()}if((a=Le.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ve(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(o||i){n.setContentType("application/json",false);return dt(t)}return t}],transformResponse:[function e(t){const n=this.transitional||mt.transitional;const r=n&&n.forcedJSONParsing;const i=this.responseType==="json";if(t&&Le.isString(t)&&(r&&!this.responseType||i)){const e=n&&n.silentJSONParsing;const r=!e&&i;try{return JSON.parse(t)}catch(e){if(r){if(e.name==="SyntaxError"){throw Me.from(e,Me.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};Le.forEach(["delete","get","head","post","put","patch"],e=>{mt.headers[e]={}});const yt=mt;const gt=Le.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 wt=e=>{const t={};let n;let r;let i;e&&e.split("\n").forEach(function e(o){i=o.indexOf(":");n=o.substring(0,i).trim().toLowerCase();r=o.substring(i+1).trim();if(!n||t[n]&>[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(r)}else{t[n]=[r]}}else{t[n]=t[n]?t[n]+", "+r:r}});return t};const vt=Symbol("internals");function bt(e){return e&&String(e).trim().toLowerCase()}function _t(e){if(e===false||e==null){return e}return Le.isArray(e)?e.map(_t):String(e)}function Ot(e){const t=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e)){t[r[1]]=r[2]}return t}const Et=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function St(e,t,n,r,i){if(Le.isFunction(r)){return r.call(this,t,n)}if(i){t=n}if(!Le.isString(t))return;if(Le.isString(r)){return t.indexOf(r)!==-1}if(Le.isRegExp(r)){return r.test(t)}}function Ct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Tt(e,t){const n=Le.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:true})})}class Pt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=bt(t);if(!i){throw new Error("header name must be a non-empty string")}const o=Le.findKey(r,i);if(!o||r[o]===undefined||n===true||n===undefined&&r[o]!==false){r[o||t]=_t(e)}}const o=(e,t)=>Le.forEach(e,(e,n)=>i(e,n,t));if(Le.isPlainObject(e)||e instanceof this.constructor){o(e,t)}else if(Le.isString(e)&&(e=e.trim())&&!Et(e)){o(wt(e),t)}else{e!=null&&i(t,e,n)}return this}get(e,t){e=bt(e);if(e){const n=Le.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return Ot(e)}if(Le.isFunction(t)){return t.call(this,e,n)}if(Le.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=bt(e);if(e){const n=Le.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||St(this,this[n],n,t)))}return false}delete(e,t){const n=this;let r=false;function i(e){e=bt(e);if(e){const i=Le.findKey(n,e);if(i&&(!t||St(n,n[i],i,t))){delete n[i];r=true}}}if(Le.isArray(e)){e.forEach(i)}else{i(e)}return r}clear(e){const t=Object.keys(this);let n=t.length;let r=false;while(n--){const i=t[n];if(!e||St(this,this[i],i,e,true)){delete this[i];r=true}}return r}normalize(e){const t=this;const n={};Le.forEach(this,(r,i)=>{const o=Le.findKey(n,i);if(o){t[o]=_t(r);delete t[i];return}const s=e?Ct(i):String(i).trim();if(s!==i){delete t[i]}t[s]=_t(r);n[s]=true});return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);Le.forEach(this,(n,r)=>{n!=null&&n!==false&&(t[r]=e&&Le.isArray(n)?n.join(", "):n)});return t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}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);t.forEach(e=>n.set(e));return n}static accessor(e){const t=this[vt]=this[vt]={accessors:{}};const n=t.accessors;const r=this.prototype;function i(e){const t=bt(e);if(!n[t]){Tt(r,e);n[t]=true}}Le.isArray(e)?e.forEach(i):i(e);return this}}Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Le.reduceDescriptors(Pt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}});Le.freezeMethods(Pt);const Rt=Pt;function At(e,t){const n=this||yt;const r=t||n;const i=Rt.from(r.headers);let o=r.data;Le.forEach(e,function e(r){o=r.call(n,o,i.normalize(),t?t.status:undefined)});i.normalize();return o}function jt(e){return!!(e&&e.__CANCEL__)}function xt(e,t,n){Me.call(this,e==null?"canceled":e,Me.ERR_CANCELED,t,n);this.name="CanceledError"}Le.inherits(xt,Me,{__CANCEL__:true});const kt=xt;function Nt(e,t,n){const r=n.config.validateStatus;if(!n.status||!r||r(n.status)){e(n)}else{t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}const Ut=ct.isStandardBrowserEnv?function e(){return{write:function e(t,n,r,i,o,s){const a=[];a.push(t+"="+encodeURIComponent(n));if(Le.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(Le.isString(i)){a.push("path="+i)}if(Le.isString(o)){a.push("domain="+o)}if(s===true){a.push("secure")}document.cookie=a.join("; ")},read:function e(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function e(t){this.write(t,"",Date.now()-864e5)}}}():function e(){return{write:function e(){},read:function e(){return null},remove:function e(){}}}();function Lt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ft(e,t){if(e&&!Lt(t)){return Dt(e,t)}return t}const Bt=ct.isStandardBrowserEnv?function e(){const t=/(msie|trident)/i.test(navigator.userAgent);const n=document.createElement("a");let r;function i(e){let r=e;if(t){n.setAttribute("href",r);r=n.href}n.setAttribute("href",r);return{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}r=i(window.location.href);return function e(t){const n=Le.isString(t)?i(t):t;return n.protocol===r.protocol&&n.host===r.host}}():function e(){return function e(){return true}}();function Mt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ht(e,t){e=e||10;const n=new Array(e);const r=new Array(e);let i=0;let o=0;let s;t=t!==undefined?t:1e3;return function a(c){const u=Date.now();const l=r[o];if(!s){s=u}n[i]=c;r[i]=u;let f=o;let h=0;while(f!==i){h+=n[f++];f=f%e}i=(i+1)%e;if(i===o){o=(o+1)%e}if(u-s<t){return}const p=l&&u-l;return p?Math.round(h*1e3/p):undefined}}const It=Ht;function Gt(e,t){let n=0;const r=It(50,250);return i=>{const o=i.loaded;const s=i.lengthComputable?i.total:undefined;const a=o-n;const c=r(a);const u=o<=s;n=o;const l={loaded:o,total:s,progress:s?o/s:undefined,bytes:a,rate:c?c:undefined,estimated:c&&s&&u?(s-o)/c:undefined,event:i};l[t?"download":"upload"]=true;e(l)}}const qt=typeof XMLHttpRequest!=="undefined";const zt=qt&&function(e){return new Promise(function t(n,r){let i=e.data;const o=Rt.from(e.headers).normalize();const s=e.responseType;let a;function c(){if(e.cancelToken){e.cancelToken.unsubscribe(a)}if(e.signal){e.signal.removeEventListener("abort",a)}}let u;if(Le.isFormData(i)){if(ct.isStandardBrowserEnv||ct.isStandardBrowserWebWorkerEnv){o.setContentType(false)}else if(!o.getContentType(/^\s*multipart\/form-data/)){o.setContentType("multipart/form-data")}else if(Le.isString(u=o.getContentType())){o.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1"))}}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"";const n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const f=Ft(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ye(f,e.params,e.paramsSerializer),true);l.timeout=e.timeout;function h(){if(!l){return}const t=Rt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());const i=!s||s==="text"||s==="json"?l.responseText:l.response;const o={data:i,status:l.status,statusText:l.statusText,headers:t,config:e,request:l};Nt(function e(t){n(t);c()},function e(t){r(t);c()},o);l=null}if("onloadend"in l){l.onloadend=h}else{l.onreadystatechange=function e(){if(!l||l.readyState!==4){return}if(l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)){return}setTimeout(h)}}l.onabort=function t(){if(!l){return}r(new Me("Request aborted",Me.ECONNABORTED,e,l));l=null};l.onerror=function t(){r(new Me("Network Error",Me.ERR_NETWORK,e,l));l=null};l.ontimeout=function t(){let n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||nt;if(e.timeoutErrorMessage){n=e.timeoutErrorMessage}r(new Me(n,i.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,e,l));l=null};if(ct.isStandardBrowserEnv){const t=(e.withCredentials||Bt(f))&&e.xsrfCookieName&&Ut.read(e.xsrfCookieName);if(t){o.set(e.xsrfHeaderName,t)}}i===undefined&&o.setContentType(null);if("setRequestHeader"in l){Le.forEach(o.toJSON(),function e(t,n){l.setRequestHeader(n,t)})}if(!Le.isUndefined(e.withCredentials)){l.withCredentials=!!e.withCredentials}if(s&&s!=="json"){l.responseType=e.responseType}if(typeof e.onDownloadProgress==="function"){l.addEventListener("progress",Gt(e.onDownloadProgress,true))}if(typeof e.onUploadProgress==="function"&&l.upload){l.upload.addEventListener("progress",Gt(e.onUploadProgress))}if(e.cancelToken||e.signal){a=t=>{if(!l){return}r(!t||t.type?new kt(null,e,l):t);l.abort();l=null};e.cancelToken&&e.cancelToken.subscribe(a);if(e.signal){e.signal.aborted?a():e.signal.addEventListener("abort",a)}}const p=Mt(f);if(p&&ct.protocols.indexOf(p)===-1){r(new Me("Unsupported protocol "+p+":",Me.ERR_BAD_REQUEST,e));return}l.send(i||null)})};const Wt={http:He,xhr:zt};Le.forEach(Wt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Jt=e=>`- ${e}`;const Vt=e=>Le.isFunction(e)||e===null||e===false;const Kt={getAdapter:e=>{e=Le.isArray(e)?e:[e];const{length:t}=e;let n;let r;const i={};for(let o=0;o<t;o++){n=e[o];let t;r=n;if(!Vt(n)){r=Wt[(t=String(n)).toLowerCase()];if(r===undefined){throw new Me(`Unknown adapter '${t}'`)}}if(r){break}i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(Jt).join("\n"):" "+Jt(e[0]):"as no adapter specified";throw new Me(`There is no suitable adapter to dispatch the request `+n,"ERR_NOT_SUPPORT")}return r},adapters:Wt};function $t(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new kt(null,e)}}function Xt(e){$t(e);e.headers=Rt.from(e.headers);e.data=At.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Kt.getAdapter(e.adapter||yt.adapter);return t(e).then(function t(n){$t(e);n.data=At.call(e,e.transformResponse,n);n.headers=Rt.from(n.headers);return n},function t(n){if(!jt(n)){$t(e);if(n&&n.response){n.response.data=At.call(e,e.transformResponse,n.response);n.response.headers=Rt.from(n.response.headers)}}return Promise.reject(n)})}const Zt=e=>e instanceof Rt?e.toJSON():e;function Qt(e,t){t=t||{};const n={};function r(e,t,n){if(Le.isPlainObject(e)&&Le.isPlainObject(t)){return Le.merge.call({caseless:n},e,t)}else if(Le.isPlainObject(t)){return Le.merge({},t)}else if(Le.isArray(t)){return t.slice()}return t}function i(e,t,n){if(!Le.isUndefined(t)){return r(e,t,n)}else if(!Le.isUndefined(e)){return r(undefined,e,n)}}function o(e,t){if(!Le.isUndefined(t)){return r(undefined,t)}}function s(e,t){if(!Le.isUndefined(t)){return r(undefined,t)}else if(!Le.isUndefined(e)){return r(undefined,e)}}function a(n,i,o){if(o in t){return r(n,i)}else if(o in e){return r(undefined,n)}}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>i(Zt(e),Zt(t),true)};Le.forEach(Object.keys(Object.assign({},e,t)),function r(o){const s=c[o]||i;const u=s(e[o],t[o],o);Le.isUndefined(u)&&s!==a||(n[o]=u)});return n}const Yt="1.5.1";const en={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{en[e]=function n(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tn={};en.transitional=function e(t,n,r){function i(e,t){return"[Axios v"+Yt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(e,r,o)=>{if(t===false){throw new Me(i(r," has been removed"+(n?" in "+n:"")),Me.ERR_DEPRECATED)}if(n&&!tn[r]){tn[r]=true;console.warn(i(r," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,r,o):true}};function nn(e,t,n){if(typeof e!=="object"){throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE)}const r=Object.keys(e);let i=r.length;while(i-- >0){const o=r[i];const s=t[o];if(s){const t=e[o];const n=t===undefined||s(t,o,e);if(n!==true){throw new Me("option "+o+" must be "+n,Me.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new Me("Unknown option "+o,Me.ERR_BAD_OPTION)}}}const rn={assertOptions:nn,validators:en};const on=rn.validators;class sn{constructor(e){this.defaults=e;this.interceptors={request:new tt,response:new tt}}request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=Qt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;if(n!==undefined){rn.assertOptions(n,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean)},false)}if(r!=null){if(Le.isFunction(r)){t.paramsSerializer={serialize:r}}else{rn.assertOptions(r,{encode:on.function,serialize:on.function},true)}}t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&Le.merge(i.common,i[t.method]);i&&Le.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]});t.headers=Rt.concat(o,i);const s=[];let a=true;this.interceptors.request.forEach(function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}a=a&&n.synchronous;s.unshift(n.fulfilled,n.rejected)});const c=[];this.interceptors.response.forEach(function e(t){c.push(t.fulfilled,t.rejected)});let u;let l=0;let f;if(!a){const e=[Xt.bind(this),undefined];e.unshift.apply(e,s);e.push.apply(e,c);f=e.length;u=Promise.resolve(t);while(l<f){u=u.then(e[l++],e[l++])}return u}f=s.length;let h=t;l=0;while(l<f){const e=s[l++];const t=s[l++];try{h=e(h)}catch(e){t.call(this,e);break}}try{u=Xt.call(this,h)}catch(e){return Promise.reject(e)}l=0;f=c.length;while(l<f){u=u.then(c[l++],c[l++])}return u}getUri(e){e=Qt(this.defaults,e);const t=Ft(e.baseURL,e.url);return Ye(t,e.params,e.paramsSerializer)}}Le.forEach(["delete","get","head","options"],function e(t){sn.prototype[t]=function(e,n){return this.request(Qt(n||{},{method:t,url:e,data:(n||{}).data}))}});Le.forEach(["post","put","patch"],function e(t){function n(e){return function n(r,i,o){return this.request(Qt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}sn.prototype[t]=n();sn.prototype[t+"Form"]=n(true)});const an=sn;class cn{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise(function e(n){t=n});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null});this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e);t=e}).then(e);r.cancel=function e(){n.unsubscribe(t)};return r};e(function e(r,i,o){if(n.reason){return}n.reason=new kt(r,i,o);t(n.reason)})}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}static source(){let e;const t=new cn(function t(n){e=n});return{token:t,cancel:e}}}const un=cn;function ln(e){return function t(n){return e.apply(null,n)}}function fn(e){return Le.isObject(e)&&e.isAxiosError===true}const hn={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(hn).forEach(([e,t])=>{hn[t]=e});const pn=hn;function dn(e){const t=new an(e);const n=N(an.prototype.request,t);Le.extend(n,an.prototype,t,{allOwnKeys:true});Le.extend(n,t,null,{allOwnKeys:true});n.create=function t(n){return dn(Qt(e,n))};return n}const mn=dn(yt);mn.Axios=an;mn.CanceledError=kt;mn.CancelToken=un;mn.isCancel=jt;mn.VERSION=Yt;mn.toFormData=Ve;mn.AxiosError=Me;mn.Cancel=mn.CanceledError;mn.all=function e(t){return Promise.all(t)};mn.spread=ln;mn.isAxiosError=fn;mn.mergeConfig=Qt;mn.AxiosHeaders=Rt;mn.formToJSON=e=>pt(Le.isHTMLForm(e)?new FormData(e):e);mn.getAdapter=Kt.getAdapter;mn.HttpStatusCode=pn;mn.default=mn;const yn=mn;function gn(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:6e3;var i=yn.create({baseURL:e,timeout:r,headers:{" x-api-key":t,"x-device-uid":n}});i.interceptors.response.use(function(e){return e.data},function(e){return Promise.reject(e)});return i}function wn(e){"@babel/helpers - typeof";return wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wn(e)}function vn(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var c=r&&r.prototype instanceof a?r:a,u=Object.create(c.prototype);return bn(u,"_invoke",function(n,r,i){var o,a,c,u=0,l=i||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function t(n,r){return o=n,a=0,c=e,h.n=r,s}};function p(n,r){for(a=n,c=r,t=0;!f&&u&&!i&&t<l.length;t++){var i,o=l[t],p=h.p,d=o[2];n>3?(i=d===r)&&(c=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(a=0,h.v=r,h.n=o[1]):p<d&&(i=n<3||o[0]>r||r>d)&&(o[4]=n,o[5]=r,h.n=d,a=0))}if(i||n>1)return s;throw f=!0,r}return function(i,l,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,d),a=l,c=d;(t=a<2?e:c)||!f;){o||(a?a<3?(a>1&&(h.n=-1),p(a,c)):h.n=c:h.v=c);try{if(u=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=o["return"])&&t.call(o),a<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(f=h.n<0)?c:n.call(r,h))!==s)break}catch(t){o=e,a=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,i,o),!0),u}var s={};function a(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(bn(t={},r,function(){return this}),t),f=u.prototype=a.prototype=Object.create(l);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,bn(e,i,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,bn(f,"constructor",u),bn(u,"constructor",c),c.displayName="GeneratorFunction",bn(u,i,"GeneratorFunction"),bn(f),bn(f,i,"Generator"),bn(f,r,function(){return this}),bn(f,"toString",function(){return"[object Generator]"}),(vn=function e(){return{w:o,m:h}})()}function bn(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}bn=function e(t,n,r,o){function s(e,n){bn(t,e,function(t){return this._invoke(e,n,t)})}n?i?i(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(s("next",0),s("throw",1),s("return",2))},bn(e,t,n,r)}function _n(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function On(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){_n(o,r,i,s,a,"next",e)}function a(e){_n(o,r,i,s,a,"throw",e)}s(void 0)})}}function En(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?En(Object(n),!0).forEach(function(t){Rn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,An(r.key),r)}}function Pn(e,t,n){return t&&Tn(e.prototype,t),n&&Tn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rn(e,t,n){return(t=An(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function An(e){var t=jn(e,"string");return"symbol"==wn(t)?t:t+""}function jn(e,t){if("object"!=wn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var xn=function(){function e(){Cn(this,e)}return Pn(e,null,[{key:"initialize",value:function e(t){var n=Sn(Sn({},t.defaultHeaders),{},{"Content-Type":"application/json"});if(t.token){n["Authorization"]="Bearer ".concat(t.token)}else if(t.apiKey){n["x-api-key"]="".concat(t.apiKey)}this.httpClient=yn.create({baseURL:t.baseURL,headers:n});this.merchantGuid=t.merchantGuid;this.isInitialized=true}},{key:"getHttpClient",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this.isInitialized&&!t){throw new Error("HttpClient not initialized. Call Configurator.initialize() first.")}return this.httpClient}},{key:"getMerchantGuid",value:function e(){if(!this.merchantGuid){throw new Error("Merchant GUID not initialized. Call Configurator.initialize() first.")}return this.merchantGuid}}])}();Rn(xn,"isInitialized",false);var kn=function(){function e(){Cn(this,e)}return Pn(e,[{key:"uploadCustomerPhoto",value:function(){var e=On(vn().m(function e(t,n,r){var i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:i=xn.getHttpClient();o=xn.getMerchantGuid();s=Sn(Sn({},r),{},{method:"post",url:"/api/v1/terminal/merchants/".concat(o,"/customers/").concat(t,"/image"),data:n});e.p=1;e.n=2;return i(s);case 2:e.n=4;break;case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"createCustomer",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=Sn(Sn({},n),{},{method:"put",url:"/api/v1/terminal/merchants/".concat(i,"/customers/customer"),data:t});e.p=1;e.n=2;return r(o);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"updateCustomer",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=Sn(Sn({},n),{},{method:"post",url:"/api/v1/terminal/merchants/".concat(i,"/customers/customer"),data:t});e.p=1;e.n=2;return r(o);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"deleteCustomer",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=Sn(Sn({},n),{},{method:"delete",url:"/api/v1/terminal/merchants/".concat(i,"/customers/").concat(t)});e.p=1;e.n=2;return r(o);case 2:e.n=4;break;case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getCustomerById",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=Sn(Sn({},n),{},{method:"get",url:"/api/v1/terminal/merchants/".concat(i,"/customers/").concat(t)});e.p=1;e.n=2;return r(o);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getCouponsByCustomerId",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=Sn(Sn({},n),{},{method:"get",url:"/api/v1/terminal/merchants/".concat(i,"/customers/").concat(t,"/coupons")});e.p=1;e.n=2;return r(o);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"markCouponAsUsed",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=Sn(Sn({},n),{},{method:"put",url:"/api/v1/terminal/merchants/".concat(i,"/coupons/").concat(t,"/redeem"),data:{is_redeemed:true}});e.p=1;e.n=2;return r(o);case 2:e.n=4;break;case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"markCouponAsUnused",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=Sn(Sn({},n),{},{method:"put",url:"/api/v1/terminal/merchants/".concat(i,"/coupons/").concat(t,"/redeem"),data:{is_redeemed:false}});e.p=1;e.n=2;return r(o);case 2:e.n=4;break;case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"searchCustomers",value:function(){var e=On(vn().m(function e(t,n,r){var i,o,s,a,c,u;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:i=xn.getHttpClient();o=xn.getMerchantGuid();s=n.build();a=Sn(Sn({},r),{},{method:"get",url:"/sapi/terminal/merchants/".concat(o,"/customers"),params:Sn(Sn({},s),{},{SearchKeywords:t})});e.p=1;e.n=2;return i(a);case 2:c=e.v;return e.a(2,c.data);case 3:e.p=3;u=e.v;console.error(u);throw u;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"queryCustomers",value:function(){var e=On(vn().m(function e(t){var n,r,i,o,s,a,c,u=arguments,l;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:n=u.length>1&&u[1]!==undefined?u[1]:"";r=u.length>2?u[2]:undefined;i=xn.getHttpClient();o=xn.getMerchantGuid();s=t.build();a=Sn(Sn({},r),{},{method:"get",url:"/sapi/terminal/merchants/".concat(o,"/customers"),params:Sn(Sn({},s),n?{SearchKeywords:n}:{})});e.p=1;e.n=2;return i(a);case 2:c=e.v;return e.a(2,c.data);case 3:e.p=3;l=e.v;console.error(l);throw l;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryTransactions",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s,a,c;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=t.build();s=Sn(Sn({},n),{},{method:"get",url:"/sapi/terminal/merchants/".concat(i,"/transactions"),params:Sn({},o)});e.p=1;e.n=2;return r(s);case 2:a=e.v;return e.a(2,a.data);case 3:e.p=3;c=e.v;console.error(c);throw c;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"queryOrders",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s,a,c;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=t.build();s=Sn(Sn({},n),{},{method:"get",url:"/sapi/terminal/merchants/".concat(i,"/orders"),params:Sn({},o)});e.p=1;e.n=2;return r(s);case 2:a=e.v;return e.a(2,a.data);case 3:e.p=3;c=e.v;console.error(c);throw c;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"createCharge",value:function(){var e=On(vn().m(function e(t,n,r,i){var o,s,a,c,u,l,f,h=arguments,p;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:o=h.length>4&&h[4]!==undefined?h[4]:"PNOW";s=h.length>5?h[5]:undefined;a=xn.getHttpClient();c=xn.getMerchantGuid();u={amount:n,reference_type:T.invoice,reference_id:r,currency:"SGD",payment_method_code:o,provider_terminal_id:t,description:i};l=Sn(Sn({},s),{},{method:"put",url:"/api/v1/terminal/merchants/".concat(c,"/charges/charge"),data:u});e.p=1;e.n=2;return a(l);case 2:f=e.v;return e.a(2,f.data);case 3:e.p=3;p=e.v;console.error(p);throw p;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r,i){return e.apply(this,arguments)}return t}()},{key:"getCharge",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=Sn(Sn({},n),{},{method:"get",url:"/api/v1/terminal/merchants/".concat(i,"/charges/").concat(t)});e.p=1;e.n=2;return r(o);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"cancelCharge",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=xn.getMerchantGuid();o=Sn(Sn({},n),{},{method:"delete",url:"/api/v1/terminal/merchants/".concat(i,"/charges/").concat(t)});e.p=1;e.n=2;return r(o);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()}])}();var Nn=function(){function e(){Cn(this,e)}return Pn(e,[{key:"getMerchants",value:function(){var e=On(vn().m(function e(t){var n,r,i,o;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:n=xn.getHttpClient();r=Sn(Sn({},t),{},{method:"get",url:"/api/v1/admin/merchants"});e.p=1;e.n=2;return n(r);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;o=e.v;console.error(o);throw o;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"getMerchantByGuid",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=Sn(Sn({},n),{},{method:"get",url:"/api/v1/admin/merchants/".concat(t)});e.p=1;e.n=2;return r(i);case 2:o=e.v;return e.a(2,o.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()}])}();var Un=function(){function e(){Cn(this,e)}return Pn(e,[{key:"exchangePasswordGrant",value:function(){var e=On(vn().m(function e(t,n,r){var i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:i=xn.getHttpClient(true);o=Sn(Sn({},r),{},{method:"post",url:"/connect/token",data:new URLSearchParams(t).toString(),headers:Sn({"Content-Type":"application/x-www-form-urlencoded"},n)});e.p=1;e.n=2;return i(o);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"exchangeGoogleIdToken",value:function(){var e=On(vn().m(function e(t,n,r){var i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:i=xn.getHttpClient(true);o=Sn(Sn({},r),{},{method:"post",url:"/connect/token",data:new URLSearchParams(t).toString(),headers:Sn({"Content-Type":"application/x-www-form-urlencoded"},n)});e.p=1;e.n=2;return i(o);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"exchangeAppleIdToken",value:function(){var e=On(vn().m(function e(t,n,r){var i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:i=xn.getHttpClient(true);o=Sn(Sn({},r),{},{method:"post",url:"/connect/token",data:new URLSearchParams(t).toString(),headers:Sn({"Content-Type":"application/x-www-form-urlencoded"},n)});e.p=1;e.n=2;return i(o);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"exchangeWeixinCode",value:function(){var e=On(vn().m(function e(t,n,r){var i,o,s,a,c;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:i=xn.getHttpClient(true);o={grant_type:R.WeixinCode,assertion:t.assertion,username:t.username,password:t.password};s=Sn(Sn({},r),{},{method:"post",url:"/connect/token",data:new URLSearchParams(o).toString(),headers:Sn({"Content-Type":"application/x-www-form-urlencoded"},n)});e.p=1;e.n=2;return i(s);case 2:a=e.v;return e.a(2,a.data);case 3:e.p=3;c=e.v;console.error(c);throw c;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"getUserInfo",value:function(){var e=On(vn().m(function e(t){var n,r,i,o;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:n=xn.getHttpClient();r=Sn(Sn({},t),{},{method:"get",url:"/connect/userinfo"});e.p=1;e.n=2;return n(r);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;o=e.v;console.error(o);throw o;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"sendOtp",value:function(){var e=On(vn().m(function e(t,n,r,i){var o,s,a,c;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:o=xn.getHttpClient(true);s=Sn(Sn({},i),{},{method:"post",url:"/api/v2/".concat(t,"/otp"),data:n,headers:Sn({"Content-Type":"application/json"},r)});e.p=1;e.n=2;return o(s);case 2:a=e.v;return e.a(2,a);case 3:e.p=3;c=e.v;console.error(c);throw c;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r,i){return e.apply(this,arguments)}return t}()},{key:"getUserDetail",value:function(){var e=On(vn().m(function e(t,n){var r,i,o,s;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:r=xn.getHttpClient();i=Sn(Sn({},n),{},{method:"get",url:"/api/v5/merchants/".concat(t,"/account-detail")});e.p=1;e.n=2;return r(i);case 2:o=e.v;return e.a(2,o);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"socialAccountExists",value:function(){var e=On(vn().m(function e(t,n,r){var i,o,s,a;return vn().w(function(e){while(1)switch(e.p=e.n){case 0:i=xn.getHttpClient();o=Sn(Sn({},r),{},{method:"get",url:"/connect/external/exists/".concat(t,"/").concat(n),headers:Sn({api_key:"U75LbN2eCTHPcWNAaWBxvdLgH6xX9z9xPaqZQ3qYgJTZuFjZfD"},r===null||r===void 0?void 0:r.headers)});e.p=1;e.n=2;return i(o);case 2:s=e.v;return e.a(2,s);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()}])}();return t})());
|
|
2
|
+
(function e(t,n){if(typeof exports==="object"&&typeof module==="object")module.exports=n();else if(typeof define==="function"&&define.amd)define([],n);else if(typeof exports==="object")exports["@xpos/core"]=n();else t["@xpos/core"]=n()})(self,()=>(()=>{"use strict";var e={};(()=>{e.d=(t,n)=>{for(var r in n){if(e.o(n,r)&&!e.o(t,r)){Object.defineProperty(t,r,{enumerable:true,get:n[r]})}}}})();(()=>{e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{e.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();var t={};e.r(t);e.d(t,{AdminServices:()=>Nn,ApiResponse:()=>E,Applying:()=>b,ApplyingType:()=>w,ChargeReferenceType:()=>T,ClientService:()=>Un,Configurator:()=>kn,Coupon:()=>_,CouponItem:()=>O,Customer:()=>u,CustomerOptions:()=>l,DayOperator:()=>d,FileExtension:()=>S,FileUploadRequest:()=>C,GrantType:()=>A,IResponseError:()=>g,Merchant:()=>P,MonthOperator:()=>h,MonthValues:()=>x,NumericOperators:()=>f,Order:()=>v,OrderStatus:()=>y,OtpRequest:()=>R,Preferences:()=>j,StringOperators:()=>p,TerminalServices:()=>xn,Transaction:()=>m,UserDetail:()=>k,createInstance:()=>vn});function n(e){"@babel/helpers - typeof";return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=c(e,"string");return"symbol"==n(t)?t:t+""}function c(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var u=o(function e(){i(this,e);s(this,"membership_id","");s(this,"license_id",0);s(this,"credit",0);s(this,"point",0);s(this,"transaction_total",0);s(this,"transaction_time",0);s(this,"tier",null);s(this,"tag_guids",null);s(this,"user_group_id",0);s(this,"user_group_name",null);s(this,"group_expires_at","");s(this,"error",null);s(this,"id",0);s(this,"ref_id","");s(this,"image_url",null);s(this,"stripe_token",null);s(this,"stripe_customer_id",null);s(this,"username","");s(this,"company",null);s(this,"ic",null);s(this,"display_name","");s(this,"full_name","");s(this,"birth_date",null);s(this,"gender",null);s(this,"address",null);s(this,"postcode",null);s(this,"note",null);s(this,"language",null);s(this,"time_zone",null);s(this,"created_at","");s(this,"updated_at","");s(this,"license_ids","");s(this,"security_stamp","");s(this,"phone_number","");s(this,"email",null);s(this,"email_confirmed",false);s(this,"phone_number_confirmed",false);s(this,"agree_pdpa_at",null)});var l=o(function e(){i(this,e);s(this,"ref_id","");s(this,"ic","");s(this,"display_name","");s(this,"image_url","");s(this,"birth_date","");s(this,"gender","");s(this,"language","en");s(this,"phone_number","");s(this,"email","")});var f=function(e){e[e["GreaterThan"]=0]="GreaterThan";e[e["GreaterThanOrEqualTo"]=1]="GreaterThanOrEqualTo";e[e["LessThan"]=2]="LessThan";e[e["LessThanOrEqualTo"]=3]="LessThanOrEqualTo";e[e["EqualTo"]=4]="EqualTo";e[e["NotEqualTo"]=5]="NotEqualTo";return e}({});var p=function(e){e[e["Contains"]=0]="Contains";e[e["NotContains"]=1]="NotContains";e[e["StartsWith"]=2]="StartsWith";e[e["EndsWith"]=3]="EndsWith";return e}({});var h=function(e){e["WithinAMonth"]="Contains";return e}({});var d=function(e){e["At"]="StartsWith";return e}({});var m=o(function e(){i(this,e);s(this,"id",0);s(this,"invoice_id",0);s(this,"type","");s(this,"primary_license_id",0);s(this,"license_id",0);s(this,"ref_id","");s(this,"user_id",0);s(this,"add_credit",0);s(this,"minus_credit",0);s(this,"add_point",0);s(this,"minus_point",0);s(this,"status","");s(this,"grand_total",0);s(this,"is_local",false);s(this,"closed_at","");s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[]);s(this,"used_credit",0);s(this,"expired_credit",0);s(this,"expired_at",null);s(this,"meta",{coupon_ids_to_redeem:[]})});var y=function(e){e["PayAtCounter"]="Pay At Counter";e["PlacingOrder"]="Placing Order";e["PreparingOrder"]="Preparing Order";e["DeliveringOrder"]="Delivering Order";e["Delivered"]="Delivered";e["PickingUp"]="Picking Up";e["PickedUp"]="Picked Up";e["SendingOrder"]="Sending Order";e["Sent"]="Sent";e["Cancelled"]="Cancelled";e["Confirmed"]="Confirmed";e["Expired"]="Expired";e["PendingPayment"]="Pending Payment";e["PaymentDeclined"]="Payment Declined";return e}({});var v=o(function e(){i(this,e);s(this,"id",0);s(this,"order_ref","");s(this,"table_id",0);s(this,"invoice_id",0);s(this,"call_num",0);s(this,"user_id",0);s(this,"license_id",0);s(this,"charge_id",0);s(this,"delivery_id",0);s(this,"order_type","");s(this,"payment_source_id",0);s(this,"status",y.Sent);s(this,"customer_name","");s(this,"customer_phone_number","");s(this,"meta",{placed_at:"",current_status:"",prepare_at:"",previous_status:"",deliver_at:"",delivered_at:""});s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[])});var g=o(function e(){i(this,e)});var w=function(e){e[e["ALL"]=1]="ALL";e[e["INCLUSIVE"]=2]="INCLUSIVE";e[e["EXCLUSIVE"]=3]="EXCLUSIVE";return e}({});var b=o(function e(){i(this,e);s(this,"applying_type",w.ALL);s(this,"applying_items",[])});var _=o(function e(){i(this,e);s(this,"guid","");s(this,"promo_code","");s(this,"is_multi_stores",false);s(this,"name","");s(this,"alias","");s(this,"description","");s(this,"description_alias","");s(this,"applying_plus",new b);s(this,"applying_user_tags",new b);s(this,"applying_user_groups",new b);s(this,"discount_calc_type",0);s(this,"discount_amount",0);s(this,"discount_percent",0);s(this,"duration",0);s(this,"usage_count",0);s(this,"usage_limit_per_invoice",0);s(this,"above_invoice_amount",0);s(this,"below_invoice_amount",0);s(this,"is_delivery_free",false);s(this,"is_individual_use",false);s(this,"price_in_points",0);s(this,"styles",null);s(this,"expired_at","");s(this,"auto_gen",false);s(this,"can_sell",false);s(this,"can_redeem",false);s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[])});var O=o(function e(){i(this,e);s(this,"guid","");s(this,"coupon",new _);s(this,"usage",null);s(this,"promo_code","");s(this,"is_expired",false);s(this,"is_redeemed",false);s(this,"is_generated",false);s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[])});var E=o(function e(){i(this,e);s(this,"errors",[])});var S=function(e){e["JPG"]="jpg";e["PNG"]="png";return e}({});var C=o(function e(){i(this,e);s(this,"name","");s(this,"base64","");s(this,"format",S.PNG)});var T=function(e){e[e["order"]=0]="order";e[e["invoice"]=1]="invoice";return e}({});var P=o(function e(){i(this,e);s(this,"id",0);s(this,"name","");s(this,"description","");s(this,"license_id",0);s(this,"address","");s(this,"phone_number","");s(this,"email","");s(this,"website","");s(this,"logo_url","");s(this,"business_hours","");s(this,"is_active",true);s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[])});var A=function(e){e["Password"]="password";e["RefreshToken"]="refresh_token";e["AuthorizationCode"]="authorization_code";e["ClientCredentials"]="client_credentials";e["GoogleIdToken"]="urn:ietf:params:oauth:grant-type:google_id_token";e["AppleIdToken"]="urn:ietf:params:oauth:grant-type:apple_id_token";e["WeixinCode"]="urn:ietf:params:oauth:grant-type:weixin_code";return e}({});var R=o(function e(){i(this,e);s(this,"phone_number","")});var j=o(function e(){i(this,e)});var k=o(function e(){i(this,e);s(this,"id",0);s(this,"license_id",0);s(this,"user_id",0);s(this,"alias","");s(this,"image_url","");s(this,"membership_id","");s(this,"credit",0);s(this,"point",0);s(this,"transaction_total",0);s(this,"transaction_time",0);s(this,"tag_guids",[]);s(this,"user_group_id",0);s(this,"user_group_name","");s(this,"group_expires_at","");s(this,"created_by_merchant_id",0);s(this,"is_delete",false);s(this,"created_at","");s(this,"updated_at","");s(this,"errors",[]);s(this,"preferences",new j)});var x=function(e){e["Jan"]="-01-";e["Feb"]="-02-";e["Mar"]="-03-";e["Apr"]="-04-";e["May"]="-05-";e["Jun"]="-06-";e["Jul"]="-07-";e["Aug"]="-08-";e["Sep"]="-09-";e["Oct"]="-10-";e["Nov"]="-11-";e["Dec"]="-12-";return e}({});function N(e,t){return function n(){return e.apply(t,arguments)}}const{toString:U}=Object.prototype;const{getPrototypeOf:L}=Object;const D=(e=>t=>{const n=U.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null));const F=e=>{e=e.toLowerCase();return t=>D(t)===e};const H=e=>t=>typeof t===e;const{isArray:B}=Array;const M=H("undefined");function I(e){return e!==null&&!M(e)&&e.constructor!==null&&!M(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const q=F("ArrayBuffer");function G(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&q(e.buffer)}return t}const z=H("string");const W=H("function");const J=H("number");const V=e=>e!==null&&typeof e==="object";const K=e=>e===true||e===false;const $=e=>{if(D(e)!=="object"){return false}const t=L(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};const X=F("Date");const Z=F("File");const Q=F("Blob");const Y=F("FileList");const ee=e=>V(e)&&W(e.pipe);const te=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||W(e.append)&&((t=D(e))==="formdata"||t==="object"&&W(e.toString)&&e.toString()==="[object FormData]"))};const ne=F("URLSearchParams");const re=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oe(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let r;let o;if(typeof e!=="object"){e=[e]}if(B(e)){for(r=0,o=e.length;r<o;r++){t.call(null,e[r],r,e)}}else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e);const i=o.length;let s;for(r=0;r<i;r++){s=o[r];t.call(null,e[s],s,e)}}}function ie(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length;let o;while(r-- >0){o=n[r];if(t===o.toLowerCase()){return o}}return null}const se=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})();const ae=e=>!M(e)&&e!==se;function ce(){const{caseless:e}=ae(this)&&this||{};const t={};const n=(n,r)=>{const o=e&&ie(t,r)||r;if($(t[o])&&$(n)){t[o]=ce(t[o],n)}else if($(n)){t[o]=ce({},n)}else if(B(n)){t[o]=n.slice()}else{t[o]=n}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&oe(arguments[e],n)}return t}const ue=(e,t,n,{allOwnKeys:r}={})=>{oe(t,(t,r)=>{if(n&&W(t)){e[r]=N(t,n)}else{e[r]=t}},{allOwnKeys:r});return e};const le=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const fe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const pe=(e,t,n,r)=>{let o;let i;let s;const a={};t=t||{};if(e==null)return t;do{o=Object.getOwnPropertyNames(e);i=o.length;while(i-- >0){s=o[i];if((!r||r(s,e,t))&&!a[s]){t[s]=e[s];a[s]=true}}e=n!==false&&L(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t};const he=(e,t,n)=>{e=String(e);if(n===undefined||n>e.length){n=e.length}n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n};const de=e=>{if(!e)return null;if(B(e))return e;let t=e.length;if(!J(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const me=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&L(Uint8Array));const ye=(e,t)=>{const n=e&&e[Symbol.iterator];const r=n.call(e);let o;while((o=r.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}};const ve=(e,t)=>{let n;const r=[];while((n=e.exec(t))!==null){r.push(n)}return r};const ge=F("HTMLFormElement");const we=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function e(t,n,r){return n.toUpperCase()+r});const be=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const _e=F("RegExp");const Oe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const r={};oe(n,(n,o)=>{let i;if((i=t(n,o,e))!==false){r[o]=i||n}});Object.defineProperties(e,r)};const Ee=e=>{Oe(e,(t,n)=>{if(W(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const r=e[n];if(!W(r))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}})};const Se=(e,t)=>{const n={};const r=e=>{e.forEach(e=>{n[e]=true})};B(e)?r(e):r(String(e).split(t));return n};const Ce=()=>{};const Te=(e,t)=>{e=+e;return Number.isFinite(e)?e:t};const Pe="abcdefghijklmnopqrstuvwxyz";const Ae="0123456789";const Re={DIGIT:Ae,ALPHA:Pe,ALPHA_DIGIT:Pe+Pe.toUpperCase()+Ae};const je=(e=16,t=Re.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--){n+=t[Math.random()*r|0]}return n};function ke(e){return!!(e&&W(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xe=e=>{const t=new Array(10);const n=(e,r)=>{if(V(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[r]=e;const o=B(e)?[]:{};oe(e,(e,t)=>{const i=n(e,r+1);!M(i)&&(o[t]=i)});t[r]=undefined;return o}}return e};return n(e,0)};const Ne=F("AsyncFunction");const Ue=e=>e&&(V(e)||W(e))&&W(e.then)&&W(e.catch);const Le={isArray:B,isArrayBuffer:q,isBuffer:I,isFormData:te,isArrayBufferView:G,isString:z,isNumber:J,isBoolean:K,isObject:V,isPlainObject:$,isUndefined:M,isDate:X,isFile:Z,isBlob:Q,isRegExp:_e,isFunction:W,isStream:ee,isURLSearchParams:ne,isTypedArray:me,isFileList:Y,forEach:oe,merge:ce,extend:ue,trim:re,stripBOM:le,inherits:fe,toFlatObject:pe,kindOf:D,kindOfTest:F,endsWith:he,toArray:de,forEachEntry:ye,matchAll:ve,isHTMLForm:ge,hasOwnProperty:be,hasOwnProp:be,reduceDescriptors:Oe,freezeMethods:Ee,toObjectSet:Se,toCamelCase:we,noop:Ce,toFiniteNumber:Te,findKey:ie,global:se,isContextDefined:ae,ALPHABET:Re,generateString:je,isSpecCompliantForm:ke,toJSONObject:xe,isAsyncFn:Ne,isThenable:Ue};function De(e,t,n,r,o){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);n&&(this.config=n);r&&(this.request=r);o&&(this.response=o)}Le.inherits(De,Error,{toJSON:function e(){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:Le.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fe=De.prototype;const He={};["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=>{He[e]={value:e}});Object.defineProperties(De,He);Object.defineProperty(Fe,"isAxiosError",{value:true});De.from=(e,t,n,r,o,i)=>{const s=Object.create(Fe);Le.toFlatObject(e,s,function e(t){return t!==Error.prototype},e=>e!=="isAxiosError");De.call(s,e.message,t,n,r,o);s.cause=e;s.name=e.name;i&&Object.assign(s,i);return s};const Be=De;const Me=null;function Ie(e){return Le.isPlainObject(e)||Le.isArray(e)}function qe(e){return Le.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,n){if(!e)return t;return e.concat(t).map(function e(t,r){t=qe(t);return!n&&r?"["+t+"]":t}).join(n?".":"")}function ze(e){return Le.isArray(e)&&!e.some(Ie)}const We=Le.toFlatObject(Le,{},null,function e(t){return/^is[A-Z]/.test(t)});function Je(e,t,n){if(!Le.isObject(e)){throw new TypeError("target must be an object")}t=t||new(Me||FormData);n=Le.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,function e(t,n){return!Le.isUndefined(n[t])});const r=n.metaTokens;const o=n.visitor||l;const i=n.dots;const s=n.indexes;const a=n.Blob||typeof Blob!=="undefined"&&Blob;const c=a&&Le.isSpecCompliantForm(t);if(!Le.isFunction(o)){throw new TypeError("visitor must be a function")}function u(e){if(e===null)return"";if(Le.isDate(e)){return e.toISOString()}if(!c&&Le.isBlob(e)){throw new Be("Blob is not supported. Use a Buffer instead.")}if(Le.isArrayBuffer(e)||Le.isTypedArray(e)){return c&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function l(e,n,o){let a=e;if(e&&!o&&typeof e==="object"){if(Le.endsWith(n,"{}")){n=r?n:n.slice(0,-2);e=JSON.stringify(e)}else if(Le.isArray(e)&&ze(e)||(Le.isFileList(e)||Le.endsWith(n,"[]"))&&(a=Le.toArray(e))){n=qe(n);a.forEach(function e(r,o){!(Le.isUndefined(r)||r===null)&&t.append(s===true?Ge([n],o,i):s===null?n:n+"[]",u(r))});return false}}if(Ie(e)){return true}t.append(Ge(o,n,i),u(e));return false}const f=[];const p=Object.assign(We,{defaultVisitor:l,convertValue:u,isVisitable:Ie});function h(e,n){if(Le.isUndefined(e))return;if(f.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}f.push(e);Le.forEach(e,function e(r,i){const s=!(Le.isUndefined(r)||r===null)&&o.call(t,r,Le.isString(i)?i.trim():i,n,p);if(s===true){h(r,n?n.concat(i):[i])}});f.pop()}if(!Le.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}const Ve=Je;function Ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function e(n){return t[n]})}function $e(e,t){this._pairs=[];e&&Ve(e,this,t)}const Xe=$e.prototype;Xe.append=function e(t,n){this._pairs.push([t,n])};Xe.toString=function e(t){const n=t?function(e){return t.call(this,e,Ke)}:Ke;return this._pairs.map(function e(t){return n(t[0])+"="+n(t[1])},"").join("&")};const Ze=$e;function Qe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ye(e,t,n){if(!t){return e}const r=n&&n.encode||Qe;const o=n&&n.serialize;let i;if(o){i=o(t,n)}else{i=Le.isURLSearchParams(t)?t.toString():new Ze(t,n).toString(r)}if(i){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class et{constructor(){this.handlers=[]}use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(e){if(this.handlers[e]){this.handlers[e]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(e){Le.forEach(this.handlers,function t(n){if(n!==null){e(n)}})}}const tt=et;const nt={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};const rt=typeof URLSearchParams!=="undefined"?URLSearchParams:Ze;const ot=typeof FormData!=="undefined"?FormData:null;const it=typeof Blob!=="undefined"?Blob:null;const st=(()=>{let e;if(typeof navigator!=="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"})();const at=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const ct={isBrowser:true,classes:{URLSearchParams:rt,FormData:ot,Blob:it},isStandardBrowserEnv:st,isStandardBrowserWebWorkerEnv:at,protocols:["http","https","file","blob","url","data"]};function ut(e,t){return Ve(e,new ct.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){if(ct.isNode&&Le.isBuffer(e)){this.append(t,e.toString("base64"));return false}return r.defaultVisitor.apply(this,arguments)}},t))}function lt(e){return Le.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ft(e){const t={};const n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++){i=n[r];t[i]=e[i]}return t}function pt(e){function t(e,n,r,o){let i=e[o++];const s=Number.isFinite(+i);const a=o>=e.length;i=!i&&Le.isArray(r)?r.length:i;if(a){if(Le.hasOwnProp(r,i)){r[i]=[r[i],n]}else{r[i]=n}return!s}if(!r[i]||!Le.isObject(r[i])){r[i]=[]}const c=t(e,n,r[i],o);if(c&&Le.isArray(r[i])){r[i]=ft(r[i])}return!s}if(Le.isFormData(e)&&Le.isFunction(e.entries)){const n={};Le.forEachEntry(e,(e,r)=>{t(lt(e),r,n,0)});return n}return null}const ht=pt;function dt(e,t,n){if(Le.isString(e)){try{(t||JSON.parse)(e);return Le.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const mt={transitional:nt,adapter:["xhr","http"],transformRequest:[function e(t,n){const r=n.getContentType()||"";const o=r.indexOf("application/json")>-1;const i=Le.isObject(t);if(i&&Le.isHTMLForm(t)){t=new FormData(t)}const s=Le.isFormData(t);if(s){if(!o){return t}return o?JSON.stringify(ht(t)):t}if(Le.isArrayBuffer(t)||Le.isBuffer(t)||Le.isStream(t)||Le.isFile(t)||Le.isBlob(t)){return t}if(Le.isArrayBufferView(t)){return t.buffer}if(Le.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1){return ut(t,this.formSerializer).toString()}if((a=Le.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ve(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(i||o){n.setContentType("application/json",false);return dt(t)}return t}],transformResponse:[function e(t){const n=this.transitional||mt.transitional;const r=n&&n.forcedJSONParsing;const o=this.responseType==="json";if(t&&Le.isString(t)&&(r&&!this.responseType||o)){const e=n&&n.silentJSONParsing;const r=!e&&o;try{return JSON.parse(t)}catch(e){if(r){if(e.name==="SyntaxError"){throw Be.from(e,Be.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};Le.forEach(["delete","get","head","post","put","patch"],e=>{mt.headers[e]={}});const yt=mt;const vt=Le.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 gt=e=>{const t={};let n;let r;let o;e&&e.split("\n").forEach(function e(i){o=i.indexOf(":");n=i.substring(0,o).trim().toLowerCase();r=i.substring(o+1).trim();if(!n||t[n]&&vt[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(r)}else{t[n]=[r]}}else{t[n]=t[n]?t[n]+", "+r:r}});return t};const wt=Symbol("internals");function bt(e){return e&&String(e).trim().toLowerCase()}function _t(e){if(e===false||e==null){return e}return Le.isArray(e)?e.map(_t):String(e)}function Ot(e){const t=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e)){t[r[1]]=r[2]}return t}const Et=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function St(e,t,n,r,o){if(Le.isFunction(r)){return r.call(this,t,n)}if(o){t=n}if(!Le.isString(t))return;if(Le.isString(r)){return t.indexOf(r)!==-1}if(Le.isRegExp(r)){return r.test(t)}}function Ct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Tt(e,t){const n=Le.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:true})})}class Pt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=bt(t);if(!o){throw new Error("header name must be a non-empty string")}const i=Le.findKey(r,o);if(!i||r[i]===undefined||n===true||n===undefined&&r[i]!==false){r[i||t]=_t(e)}}const i=(e,t)=>Le.forEach(e,(e,n)=>o(e,n,t));if(Le.isPlainObject(e)||e instanceof this.constructor){i(e,t)}else if(Le.isString(e)&&(e=e.trim())&&!Et(e)){i(gt(e),t)}else{e!=null&&o(t,e,n)}return this}get(e,t){e=bt(e);if(e){const n=Le.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return Ot(e)}if(Le.isFunction(t)){return t.call(this,e,n)}if(Le.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=bt(e);if(e){const n=Le.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||St(this,this[n],n,t)))}return false}delete(e,t){const n=this;let r=false;function o(e){e=bt(e);if(e){const o=Le.findKey(n,e);if(o&&(!t||St(n,n[o],o,t))){delete n[o];r=true}}}if(Le.isArray(e)){e.forEach(o)}else{o(e)}return r}clear(e){const t=Object.keys(this);let n=t.length;let r=false;while(n--){const o=t[n];if(!e||St(this,this[o],o,e,true)){delete this[o];r=true}}return r}normalize(e){const t=this;const n={};Le.forEach(this,(r,o)=>{const i=Le.findKey(n,o);if(i){t[i]=_t(r);delete t[o];return}const s=e?Ct(o):String(o).trim();if(s!==o){delete t[o]}t[s]=_t(r);n[s]=true});return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);Le.forEach(this,(n,r)=>{n!=null&&n!==false&&(t[r]=e&&Le.isArray(n)?n.join(", "):n)});return t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}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);t.forEach(e=>n.set(e));return n}static accessor(e){const t=this[wt]=this[wt]={accessors:{}};const n=t.accessors;const r=this.prototype;function o(e){const t=bt(e);if(!n[t]){Tt(r,e);n[t]=true}}Le.isArray(e)?e.forEach(o):o(e);return this}}Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Le.reduceDescriptors(Pt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}});Le.freezeMethods(Pt);const At=Pt;function Rt(e,t){const n=this||yt;const r=t||n;const o=At.from(r.headers);let i=r.data;Le.forEach(e,function e(r){i=r.call(n,i,o.normalize(),t?t.status:undefined)});o.normalize();return i}function jt(e){return!!(e&&e.__CANCEL__)}function kt(e,t,n){Be.call(this,e==null?"canceled":e,Be.ERR_CANCELED,t,n);this.name="CanceledError"}Le.inherits(kt,Be,{__CANCEL__:true});const xt=kt;function Nt(e,t,n){const r=n.config.validateStatus;if(!n.status||!r||r(n.status)){e(n)}else{t(new Be("Request failed with status code "+n.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}const Ut=ct.isStandardBrowserEnv?function e(){return{write:function e(t,n,r,o,i,s){const a=[];a.push(t+"="+encodeURIComponent(n));if(Le.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(Le.isString(o)){a.push("path="+o)}if(Le.isString(i)){a.push("domain="+i)}if(s===true){a.push("secure")}document.cookie=a.join("; ")},read:function e(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function e(t){this.write(t,"",Date.now()-864e5)}}}():function e(){return{write:function e(){},read:function e(){return null},remove:function e(){}}}();function Lt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ft(e,t){if(e&&!Lt(t)){return Dt(e,t)}return t}const Ht=ct.isStandardBrowserEnv?function e(){const t=/(msie|trident)/i.test(navigator.userAgent);const n=document.createElement("a");let r;function o(e){let r=e;if(t){n.setAttribute("href",r);r=n.href}n.setAttribute("href",r);return{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}r=o(window.location.href);return function e(t){const n=Le.isString(t)?o(t):t;return n.protocol===r.protocol&&n.host===r.host}}():function e(){return function e(){return true}}();function Bt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Mt(e,t){e=e||10;const n=new Array(e);const r=new Array(e);let o=0;let i=0;let s;t=t!==undefined?t:1e3;return function a(c){const u=Date.now();const l=r[i];if(!s){s=u}n[o]=c;r[o]=u;let f=i;let p=0;while(f!==o){p+=n[f++];f=f%e}o=(o+1)%e;if(o===i){i=(i+1)%e}if(u-s<t){return}const h=l&&u-l;return h?Math.round(p*1e3/h):undefined}}const It=Mt;function qt(e,t){let n=0;const r=It(50,250);return o=>{const i=o.loaded;const s=o.lengthComputable?o.total:undefined;const a=i-n;const c=r(a);const u=i<=s;n=i;const l={loaded:i,total:s,progress:s?i/s:undefined,bytes:a,rate:c?c:undefined,estimated:c&&s&&u?(s-i)/c:undefined,event:o};l[t?"download":"upload"]=true;e(l)}}const Gt=typeof XMLHttpRequest!=="undefined";const zt=Gt&&function(e){return new Promise(function t(n,r){let o=e.data;const i=At.from(e.headers).normalize();const s=e.responseType;let a;function c(){if(e.cancelToken){e.cancelToken.unsubscribe(a)}if(e.signal){e.signal.removeEventListener("abort",a)}}let u;if(Le.isFormData(o)){if(ct.isStandardBrowserEnv||ct.isStandardBrowserWebWorkerEnv){i.setContentType(false)}else if(!i.getContentType(/^\s*multipart\/form-data/)){i.setContentType("multipart/form-data")}else if(Le.isString(u=i.getContentType())){i.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1"))}}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"";const n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const f=Ft(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ye(f,e.params,e.paramsSerializer),true);l.timeout=e.timeout;function p(){if(!l){return}const t=At.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());const o=!s||s==="text"||s==="json"?l.responseText:l.response;const i={data:o,status:l.status,statusText:l.statusText,headers:t,config:e,request:l};Nt(function e(t){n(t);c()},function e(t){r(t);c()},i);l=null}if("onloadend"in l){l.onloadend=p}else{l.onreadystatechange=function e(){if(!l||l.readyState!==4){return}if(l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)){return}setTimeout(p)}}l.onabort=function t(){if(!l){return}r(new Be("Request aborted",Be.ECONNABORTED,e,l));l=null};l.onerror=function t(){r(new Be("Network Error",Be.ERR_NETWORK,e,l));l=null};l.ontimeout=function t(){let n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||nt;if(e.timeoutErrorMessage){n=e.timeoutErrorMessage}r(new Be(n,o.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,e,l));l=null};if(ct.isStandardBrowserEnv){const t=(e.withCredentials||Ht(f))&&e.xsrfCookieName&&Ut.read(e.xsrfCookieName);if(t){i.set(e.xsrfHeaderName,t)}}o===undefined&&i.setContentType(null);if("setRequestHeader"in l){Le.forEach(i.toJSON(),function e(t,n){l.setRequestHeader(n,t)})}if(!Le.isUndefined(e.withCredentials)){l.withCredentials=!!e.withCredentials}if(s&&s!=="json"){l.responseType=e.responseType}if(typeof e.onDownloadProgress==="function"){l.addEventListener("progress",qt(e.onDownloadProgress,true))}if(typeof e.onUploadProgress==="function"&&l.upload){l.upload.addEventListener("progress",qt(e.onUploadProgress))}if(e.cancelToken||e.signal){a=t=>{if(!l){return}r(!t||t.type?new xt(null,e,l):t);l.abort();l=null};e.cancelToken&&e.cancelToken.subscribe(a);if(e.signal){e.signal.aborted?a():e.signal.addEventListener("abort",a)}}const h=Bt(f);if(h&&ct.protocols.indexOf(h)===-1){r(new Be("Unsupported protocol "+h+":",Be.ERR_BAD_REQUEST,e));return}l.send(o||null)})};const Wt={http:Me,xhr:zt};Le.forEach(Wt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Jt=e=>`- ${e}`;const Vt=e=>Le.isFunction(e)||e===null||e===false;const Kt={getAdapter:e=>{e=Le.isArray(e)?e:[e];const{length:t}=e;let n;let r;const o={};for(let i=0;i<t;i++){n=e[i];let t;r=n;if(!Vt(n)){r=Wt[(t=String(n)).toLowerCase()];if(r===undefined){throw new Be(`Unknown adapter '${t}'`)}}if(r){break}o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(Jt).join("\n"):" "+Jt(e[0]):"as no adapter specified";throw new Be(`There is no suitable adapter to dispatch the request `+n,"ERR_NOT_SUPPORT")}return r},adapters:Wt};function $t(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new xt(null,e)}}function Xt(e){$t(e);e.headers=At.from(e.headers);e.data=Rt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Kt.getAdapter(e.adapter||yt.adapter);return t(e).then(function t(n){$t(e);n.data=Rt.call(e,e.transformResponse,n);n.headers=At.from(n.headers);return n},function t(n){if(!jt(n)){$t(e);if(n&&n.response){n.response.data=Rt.call(e,e.transformResponse,n.response);n.response.headers=At.from(n.response.headers)}}return Promise.reject(n)})}const Zt=e=>e instanceof At?e.toJSON():e;function Qt(e,t){t=t||{};const n={};function r(e,t,n){if(Le.isPlainObject(e)&&Le.isPlainObject(t)){return Le.merge.call({caseless:n},e,t)}else if(Le.isPlainObject(t)){return Le.merge({},t)}else if(Le.isArray(t)){return t.slice()}return t}function o(e,t,n){if(!Le.isUndefined(t)){return r(e,t,n)}else if(!Le.isUndefined(e)){return r(undefined,e,n)}}function i(e,t){if(!Le.isUndefined(t)){return r(undefined,t)}}function s(e,t){if(!Le.isUndefined(t)){return r(undefined,t)}else if(!Le.isUndefined(e)){return r(undefined,e)}}function a(n,o,i){if(i in t){return r(n,o)}else if(i in e){return r(undefined,n)}}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(Zt(e),Zt(t),true)};Le.forEach(Object.keys(Object.assign({},e,t)),function r(i){const s=c[i]||o;const u=s(e[i],t[i],i);Le.isUndefined(u)&&s!==a||(n[i]=u)});return n}const Yt="1.5.1";const en={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{en[e]=function n(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tn={};en.transitional=function e(t,n,r){function o(e,t){return"[Axios v"+Yt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(e,r,i)=>{if(t===false){throw new Be(o(r," has been removed"+(n?" in "+n:"")),Be.ERR_DEPRECATED)}if(n&&!tn[r]){tn[r]=true;console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,r,i):true}};function nn(e,t,n){if(typeof e!=="object"){throw new Be("options must be an object",Be.ERR_BAD_OPTION_VALUE)}const r=Object.keys(e);let o=r.length;while(o-- >0){const i=r[o];const s=t[i];if(s){const t=e[i];const n=t===undefined||s(t,i,e);if(n!==true){throw new Be("option "+i+" must be "+n,Be.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new Be("Unknown option "+i,Be.ERR_BAD_OPTION)}}}const rn={assertOptions:nn,validators:en};const on=rn.validators;class sn{constructor(e){this.defaults=e;this.interceptors={request:new tt,response:new tt}}request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=Qt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;if(n!==undefined){rn.assertOptions(n,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean)},false)}if(r!=null){if(Le.isFunction(r)){t.paramsSerializer={serialize:r}}else{rn.assertOptions(r,{encode:on.function,serialize:on.function},true)}}t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Le.merge(o.common,o[t.method]);o&&Le.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]});t.headers=At.concat(i,o);const s=[];let a=true;this.interceptors.request.forEach(function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}a=a&&n.synchronous;s.unshift(n.fulfilled,n.rejected)});const c=[];this.interceptors.response.forEach(function e(t){c.push(t.fulfilled,t.rejected)});let u;let l=0;let f;if(!a){const e=[Xt.bind(this),undefined];e.unshift.apply(e,s);e.push.apply(e,c);f=e.length;u=Promise.resolve(t);while(l<f){u=u.then(e[l++],e[l++])}return u}f=s.length;let p=t;l=0;while(l<f){const e=s[l++];const t=s[l++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=Xt.call(this,p)}catch(e){return Promise.reject(e)}l=0;f=c.length;while(l<f){u=u.then(c[l++],c[l++])}return u}getUri(e){e=Qt(this.defaults,e);const t=Ft(e.baseURL,e.url);return Ye(t,e.params,e.paramsSerializer)}}Le.forEach(["delete","get","head","options"],function e(t){sn.prototype[t]=function(e,n){return this.request(Qt(n||{},{method:t,url:e,data:(n||{}).data}))}});Le.forEach(["post","put","patch"],function e(t){function n(e){return function n(r,o,i){return this.request(Qt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}sn.prototype[t]=n();sn.prototype[t+"Form"]=n(true)});const an=sn;class cn{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise(function e(n){t=n});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null});this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e);t=e}).then(e);r.cancel=function e(){n.unsubscribe(t)};return r};e(function e(r,o,i){if(n.reason){return}n.reason=new xt(r,o,i);t(n.reason)})}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}static source(){let e;const t=new cn(function t(n){e=n});return{token:t,cancel:e}}}const un=cn;function ln(e){return function t(n){return e.apply(null,n)}}function fn(e){return Le.isObject(e)&&e.isAxiosError===true}const pn={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(pn).forEach(([e,t])=>{pn[t]=e});const hn=pn;function dn(e){const t=new an(e);const n=N(an.prototype.request,t);Le.extend(n,an.prototype,t,{allOwnKeys:true});Le.extend(n,t,null,{allOwnKeys:true});n.create=function t(n){return dn(Qt(e,n))};return n}const mn=dn(yt);mn.Axios=an;mn.CanceledError=xt;mn.CancelToken=un;mn.isCancel=jt;mn.VERSION=Yt;mn.toFormData=Ve;mn.AxiosError=Be;mn.Cancel=mn.CanceledError;mn.all=function e(t){return Promise.all(t)};mn.spread=ln;mn.isAxiosError=fn;mn.mergeConfig=Qt;mn.AxiosHeaders=At;mn.formToJSON=e=>ht(Le.isHTMLForm(e)?new FormData(e):e);mn.getAdapter=Kt.getAdapter;mn.HttpStatusCode=hn;mn.default=mn;const yn=mn;function vn(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:6e3;var o=yn.create({baseURL:e,timeout:r,headers:{" x-api-key":t,"x-device-uid":n}});o.interceptors.response.use(function(e){return e.data},function(e){return Promise.reject(e)});return o}function gn(e){"@babel/helpers - typeof";return gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gn(e)}function wn(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof a?r:a,u=Object.create(c.prototype);return bn(u,"_invoke",function(n,r,o){var i,a,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function t(n,r){return i=n,a=0,c=e,p.n=r,s}};function h(n,r){for(a=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],h=p.p,d=i[2];n>3?(o=d===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(a=0,p.v=r,p.n=i[1]):h<d&&(o=n<3||i[0]>r||r>d)&&(i[4]=n,i[5]=r,p.n=d,a=0))}if(o||n>1)return s;throw f=!0,r}return function(o,l,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,c=d;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,c)):p.n=c:p.v=c);try{if(u=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i["return"])&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==s)break}catch(t){i=e,a=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var s={};function a(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(bn(t={},r,function(){return this}),t),f=u.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,bn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,bn(f,"constructor",u),bn(u,"constructor",c),c.displayName="GeneratorFunction",bn(u,o,"GeneratorFunction"),bn(f),bn(f,o,"Generator"),bn(f,r,function(){return this}),bn(f,"toString",function(){return"[object Generator]"}),(wn=function e(){return{w:i,m:p}})()}function bn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}bn=function e(t,n,r,i){function s(e,n){bn(t,e,function(t){return this._invoke(e,n,t)})}n?o?o(t,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[n]=r:(s("next",0),s("throw",1),s("return",2))},bn(e,t,n,r)}function _n(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function On(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){_n(i,r,o,s,a,"next",e)}function a(e){_n(i,r,o,s,a,"throw",e)}s(void 0)})}}function En(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?En(Object(n),!0).forEach(function(t){An(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rn(r.key),r)}}function Pn(e,t,n){return t&&Tn(e.prototype,t),n&&Tn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function An(e,t,n){return(t=Rn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rn(e){var t=jn(e,"string");return"symbol"==gn(t)?t:t+""}function jn(e,t){if("object"!=gn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var kn=function(){function e(){Cn(this,e)}return Pn(e,null,[{key:"initialize",value:function e(t){var n=Sn(Sn({},t.defaultHeaders),{},{"Content-Type":"application/json"});if(t.token){n["Authorization"]="Bearer ".concat(t.token)}else if(t.apiKey){n["x-api-key"]="".concat(t.apiKey)}this.httpClient=yn.create({baseURL:t.baseURL,headers:n});this.merchantGuid=t.merchantGuid;this.isInitialized=true}},{key:"getHttpClient",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this.isInitialized&&!t){throw new Error("HttpClient not initialized. Call Configurator.initialize() first.")}return this.httpClient}},{key:"getMerchantGuid",value:function e(){if(!this.merchantGuid){throw new Error("Merchant GUID not initialized. Call Configurator.initialize() first.")}return this.merchantGuid}}])}();An(kn,"isInitialized",false);var xn=function(){function e(){Cn(this,e)}return Pn(e,[{key:"uploadCustomerPhoto",value:function(){var e=On(wn().m(function e(t,n,r){var o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:o=kn.getHttpClient();i=kn.getMerchantGuid();s=Sn(Sn({},r),{},{method:"post",url:"/api/v1/terminal/merchants/".concat(i,"/customers/").concat(t,"/image"),data:n});e.p=1;e.n=2;return o(s);case 2:e.n=4;break;case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"createCustomer",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=Sn(Sn({},n),{},{method:"put",url:"/api/v1/terminal/merchants/".concat(o,"/customers/customer"),data:t});e.p=1;e.n=2;return r(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"updateCustomer",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=Sn(Sn({},n),{},{method:"post",url:"/api/v1/terminal/merchants/".concat(o,"/customers/customer"),data:t});e.p=1;e.n=2;return r(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"deleteCustomer",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=Sn(Sn({},n),{},{method:"delete",url:"/api/v1/terminal/merchants/".concat(o,"/customers/").concat(t)});e.p=1;e.n=2;return r(i);case 2:e.n=4;break;case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getCustomerById",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=Sn(Sn({},n),{},{method:"get",url:"/api/v1/terminal/merchants/".concat(o,"/customers/").concat(t)});e.p=1;e.n=2;return r(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getCouponsByCustomerId",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=Sn(Sn({},n),{},{method:"get",url:"/api/v1/terminal/merchants/".concat(o,"/customers/").concat(t,"/coupons")});e.p=1;e.n=2;return r(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"markCouponAsUsed",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=Sn(Sn({},n),{},{method:"put",url:"/api/v1/terminal/merchants/".concat(o,"/coupons/").concat(t,"/redeem"),data:{is_redeemed:true}});e.p=1;e.n=2;return r(i);case 2:e.n=4;break;case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"markCouponAsUnused",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=Sn(Sn({},n),{},{method:"put",url:"/api/v1/terminal/merchants/".concat(o,"/coupons/").concat(t,"/redeem"),data:{is_redeemed:false}});e.p=1;e.n=2;return r(i);case 2:e.n=4;break;case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"searchCustomers",value:function(){var e=On(wn().m(function e(t,n,r){var o,i,s,a,c,u;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:o=kn.getHttpClient();i=kn.getMerchantGuid();s=n.build();a=Sn(Sn({},r),{},{method:"get",url:"/sapi/terminal/merchants/".concat(i,"/customers"),params:Sn(Sn({},s),{},{SearchKeywords:t})});e.p=1;e.n=2;return o(a);case 2:c=e.v;return e.a(2,c.data);case 3:e.p=3;u=e.v;console.error(u);throw u;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"queryCustomers",value:function(){var e=On(wn().m(function e(t){var n,r,o,i,s,a,c,u=arguments,l;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:n=u.length>1&&u[1]!==undefined?u[1]:"";r=u.length>2?u[2]:undefined;o=kn.getHttpClient();i=kn.getMerchantGuid();s=t.build();a=Sn(Sn({},r),{},{method:"get",url:"/sapi/terminal/merchants/".concat(i,"/customers"),params:Sn(Sn({},s),n?{SearchKeywords:n}:{})});e.p=1;e.n=2;return o(a);case 2:c=e.v;return e.a(2,c.data);case 3:e.p=3;l=e.v;console.error(l);throw l;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryTransactions",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s,a,c;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=t.build();s=Sn(Sn({},n),{},{method:"get",url:"/sapi/terminal/merchants/".concat(o,"/transactions"),params:Sn({},i)});e.p=1;e.n=2;return r(s);case 2:a=e.v;return e.a(2,a.data);case 3:e.p=3;c=e.v;console.error(c);throw c;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"queryOrders",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s,a,c;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=t.build();s=Sn(Sn({},n),{},{method:"get",url:"/sapi/terminal/merchants/".concat(o,"/orders"),params:Sn({},i)});e.p=1;e.n=2;return r(s);case 2:a=e.v;return e.a(2,a.data);case 3:e.p=3;c=e.v;console.error(c);throw c;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"createCharge",value:function(){var e=On(wn().m(function e(t,n,r,o){var i,s,a,c,u,l,f,p=arguments,h;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:i=p.length>4&&p[4]!==undefined?p[4]:"PNOW";s=p.length>5?p[5]:undefined;a=kn.getHttpClient();c=kn.getMerchantGuid();u={amount:n,reference_type:T.invoice,reference_id:r,currency:"SGD",payment_method_code:i,provider_terminal_id:t,description:o};l=Sn(Sn({},s),{},{method:"put",url:"/api/v1/terminal/merchants/".concat(c,"/charges/charge"),data:u});e.p=1;e.n=2;return a(l);case 2:f=e.v;return e.a(2,f.data);case 3:e.p=3;h=e.v;console.error(h);throw h;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r,o){return e.apply(this,arguments)}return t}()},{key:"getCharge",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=Sn(Sn({},n),{},{method:"get",url:"/api/v1/terminal/merchants/".concat(o,"/charges/").concat(t)});e.p=1;e.n=2;return r(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"cancelCharge",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=kn.getMerchantGuid();i=Sn(Sn({},n),{},{method:"delete",url:"/api/v1/terminal/merchants/".concat(o,"/charges/").concat(t)});e.p=1;e.n=2;return r(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()}])}();var Nn=function(){function e(){Cn(this,e)}return Pn(e,[{key:"getMerchants",value:function(){var e=On(wn().m(function e(t){var n,r,o,i;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:n=kn.getHttpClient();r=Sn(Sn({},t),{},{method:"get",url:"/api/v1/admin/merchants"});e.p=1;e.n=2;return n(r);case 2:o=e.v;return e.a(2,o.data);case 3:e.p=3;i=e.v;console.error(i);throw i;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"getMerchantByGuid",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"get",url:"/api/v1/admin/merchants/".concat(t)});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()}])}();var Un=function(){function e(){Cn(this,e)}return Pn(e,[{key:"exchangePasswordGrant",value:function(){var e=On(wn().m(function e(t,n,r){var o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:o=kn.getHttpClient(true);i=Sn(Sn({},r),{},{method:"post",url:"/connect/token",data:new URLSearchParams(t).toString(),headers:Sn({"Content-Type":"application/x-www-form-urlencoded"},n)});e.p=1;e.n=2;return o(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"exchangeGoogleIdToken",value:function(){var e=On(wn().m(function e(t,n,r){var o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:o=kn.getHttpClient(true);i=Sn(Sn({},r),{},{method:"post",url:"/connect/token",data:new URLSearchParams(t).toString(),headers:Sn({"Content-Type":"application/x-www-form-urlencoded"},n)});e.p=1;e.n=2;return o(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"exchangeAppleIdToken",value:function(){var e=On(wn().m(function e(t,n,r){var o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:o=kn.getHttpClient(true);i=Sn(Sn({},r),{},{method:"post",url:"/connect/token",data:new URLSearchParams(t).toString(),headers:Sn({"Content-Type":"application/x-www-form-urlencoded"},n)});e.p=1;e.n=2;return o(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"exchangeWeixinCode",value:function(){var e=On(wn().m(function e(t,n,r){var o,i,s,a,c;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:o=kn.getHttpClient(true);i={grant_type:A.WeixinCode,assertion:t.assertion,username:t.username,password:t.password};s=Sn(Sn({},r),{},{method:"post",url:"/connect/token",data:new URLSearchParams(i).toString(),headers:Sn({"Content-Type":"application/x-www-form-urlencoded"},n)});e.p=1;e.n=2;return o(s);case 2:a=e.v;return e.a(2,a.data);case 3:e.p=3;c=e.v;console.error(c);throw c;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"getUserInfo",value:function(){var e=On(wn().m(function e(t){var n,r,o,i;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:n=kn.getHttpClient();r=Sn(Sn({},t),{},{method:"get",url:"/connect/userinfo"});e.p=1;e.n=2;return n(r);case 2:o=e.v;return e.a(2,o.data);case 3:e.p=3;i=e.v;console.error(i);throw i;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"sendOtp",value:function(){var e=On(wn().m(function e(t,n,r,o){var i,s,a,c;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:i=kn.getHttpClient(true);s=Sn(Sn({},o),{},{method:"post",url:"/api/v2/".concat(t,"/otp"),data:n,headers:Sn({"Content-Type":"application/json"},r)});e.p=1;e.n=2;return i(s);case 2:a=e.v;return e.a(2,a);case 3:e.p=3;c=e.v;console.error(c);throw c;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r,o){return e.apply(this,arguments)}return t}()},{key:"getUserDetail",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"get",url:"/api/v5/merchants/".concat(t,"/account-detail")});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"socialAccountExists",value:function(){var e=On(wn().m(function e(t,n,r){var o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:o=kn.getHttpClient();i=Sn(Sn({},r),{},{method:"get",url:"/connect/external/exists/".concat(t,"/").concat(n),headers:Sn({api_key:"U75LbN2eCTHPcWNAaWBxvdLgH6xX9z9xPaqZQ3qYgJTZuFjZfD"},r===null||r===void 0?void 0:r.headers)});e.p=1;e.n=2;return o(i);case 2:s=e.v;return e.a(2,s);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"queryTransactions",value:function(){var e=On(wn().m(function e(t,n,r){var o,i,s,a,c;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:o=kn.getHttpClient();i=n.build();s=Sn(Sn({},r),{},{method:"get",url:"/sapi/client/merchants/".concat(t,"/transactions"),params:i});e.p=1;e.n=2;return o(s);case 2:a=e.v;return e.a(2,a.data);case 3:e.p=3;c=e.v;console.error(c);throw c;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"getAccount",value:function(){var e=On(wn().m(function e(t){var n,r,o,i;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:n=kn.getHttpClient();r=Sn(Sn({},t),{},{method:"get",url:"/api/v1/accounts/account"});e.p=1;e.n=2;return n(r);case 2:o=e.v;return e.a(2,o.data);case 3:e.p=3;i=e.v;console.error(i);throw i;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"updateAccount",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"post",url:"/api/v1/accounts/account",data:t});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"uploadProfilePhoto",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"post",url:"/api/v1/accounts/account/profile-photo",data:t});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"changePassword",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"post",url:"/api/v1/accounts/account/password-change",data:t});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"changePhoneNumberByOtp",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"post",url:"/api/v1/accounts/account/change-phone-number-by-otp",data:t});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"unsubscribe",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"post",url:"/api/v1/accounts/account/unsubscribe",data:t});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"agreePdpa",value:function(){var e=On(wn().m(function e(t){var n,r,o,i;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:n=kn.getHttpClient();r=Sn(Sn({},t),{},{method:"post",url:"/api/v1/accounts/account/agree-pdpa"});e.p=1;e.n=2;return n(r);case 2:o=e.v;return e.a(2,o.data);case 3:e.p=3;i=e.v;console.error(i);throw i;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAddresses",value:function(){var e=On(wn().m(function e(t){var n,r,o,i;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:n=kn.getHttpClient();r=Sn(Sn({},t),{},{method:"get",url:"/api/v1/addresses"});e.p=1;e.n=2;return n(r);case 2:o=e.v;return e.a(2,o.data);case 3:e.p=3;i=e.v;console.error(i);throw i;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"createAddress",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"put",url:"/api/v1/addresses/address",data:t});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"updateAddress",value:function(){var e=On(wn().m(function e(t,n,r){var o,i,s,a;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:o=kn.getHttpClient();i=Sn(Sn({},r),{},{method:"put",url:"/api/v1/addresses/".concat(t),data:n});e.p=1;e.n=2;return o(i);case 2:s=e.v;return e.a(2,s.data);case 3:e.p=3;a=e.v;console.error(a);throw a;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"deleteAddress",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"delete",url:"/api/v1/addresses/".concat(t)});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getPaymentSources",value:function(){var e=On(wn().m(function e(t){var n,r,o,i;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:n=kn.getHttpClient();r=Sn(Sn({},t),{},{method:"get",url:"/api/v1/payment/sources"});e.p=1;e.n=2;return n(r);case 2:o=e.v;return e.a(2,o.data);case 3:e.p=3;i=e.v;console.error(i);throw i;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"createPaymentSource",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"post",url:"/api/v1/payment/sources/source",data:t});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"updatePaymentSource",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"put",url:"/api/v1/payment/sources/source",data:t});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"deletePaymentSource",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient();o=Sn(Sn({},n),{},{method:"delete",url:"/api/v1/payment/sources/".concat(t)});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"sendOtpSms",value:function(){var e=On(wn().m(function e(t,n){var r,o,i,s;return wn().w(function(e){while(1)switch(e.p=e.n){case 0:r=kn.getHttpClient(true);o=Sn(Sn({},n),{},{method:"post",url:"/api/v1/oauth/otp/sms",data:t});e.p=1;e.n=2;return r(o);case 2:i=e.v;return e.a(2,i.data);case 3:e.p=3;s=e.v;console.error(s);throw s;case 4:return e.a(2)}},e,null,[[1,3]])}));function t(t,n){return e.apply(this,arguments)}return t}()}])}();return t})());
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wyocrm/sdk",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.24",
|
|
4
4
|
"description": "wyo sdk",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"webpack-dev-server": "4.13.3"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@litepos/autoquery": "5.0.
|
|
76
|
+
"@litepos/autoquery": "5.0.6",
|
|
77
77
|
"axios": "1.5.1"
|
|
78
78
|
},
|
|
79
79
|
"files": [
|