@obb871001/api-integration-sdk 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(v,ue){typeof exports=="object"&&typeof module<"u"?ue(exports,require("@tanstack/react-query"),require("react")):typeof define=="function"&&define.amd?define(["exports","@tanstack/react-query","react"],ue):(v=typeof globalThis<"u"?globalThis:v||self,ue(v.ApiIntegrationSDK={},v.ReactQuery,v.React))})(this,(function(v,ue,le){"use strict";const xt=le.createContext(null),Pt=()=>{const e=le.useContext(xt);if(!e)throw new Error("useAxios must be used inside <ApiProvider>");return e.client};var fe={exports:{}},Z={};/**
1
+ (function(l,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("@tanstack/react-query"),require("react")):typeof define=="function"&&define.amd?define(["exports","@tanstack/react-query","react"],R):(l=typeof globalThis<"u"?globalThis:l||self,R(l.ApiIntegrationSDK={},l.ReactQuery,l.React))})(this,(function(l,R,k){"use strict";const $=k.createContext(null),U=()=>{const s=k.useContext($);if(!s)throw new Error("useAxios must be used inside <ApiProvider>");return s.client};var p={exports:{}},i={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ve;function Ct(){if(ve)return Z;ve=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,i){var o=null;if(i!==void 0&&(o=""+i),s.key!==void 0&&(o=""+s.key),"key"in s){i={};for(var c in s)c!=="key"&&(i[c]=s[c])}else i=s;return s=i.ref,{$$typeof:e,type:n,key:o,ref:s!==void 0?s:null,props:i}}return Z.Fragment=t,Z.jsx=r,Z.jsxs=r,Z}var ee={};/**
9
+ */var w;function q(){if(w)return i;w=1;var s=Symbol.for("react.transitional.element"),b=Symbol.for("react.fragment");function d(m,o,u){var _=null;if(u!==void 0&&(_=""+u),o.key!==void 0&&(_=""+o.key),"key"in o){u={};for(var E in o)E!=="key"&&(u[E]=o[E])}else u=o;return o=u.ref,{$$typeof:s,type:m,key:_,ref:o!==void 0?o:null,props:u}}return i.Fragment=b,i.jsx=d,i.jsxs=d,i}var f={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,9 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var qe;function Nt(){return qe||(qe=1,process.env.NODE_ENV!=="production"&&(function(){function e(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===Te?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case h:return"Fragment";case k:return"Profiler";case O:return"StrictMode";case q:return"Suspense";case F:return"SuspenseList";case ge:return"Activity"}if(typeof u=="object")switch(typeof u.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),u.$$typeof){case b:return"Portal";case P:return u.displayName||"Context";case A:return(u._context.displayName||"Context")+".Consumer";case j:var y=u.render;return u=u.displayName,u||(u=y.displayName||y.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case ie:return y=u.displayName||null,y!==null?y:e(u.type)||"Memo";case M:y=u._payload,u=u._init;try{return e(u(y))}catch{}}return null}function t(u){return""+u}function r(u){try{t(u);var y=!1}catch{y=!0}if(y){y=console;var R=y.error,S=typeof Symbol=="function"&&Symbol.toStringTag&&u[Symbol.toStringTag]||u.constructor.name||"Object";return R.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S),t(u)}}function n(u){if(u===h)return"<>";if(typeof u=="object"&&u!==null&&u.$$typeof===M)return"<...>";try{var y=e(u);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function s(){var u=H.A;return u===null?null:u.getOwner()}function i(){return Error("react-stack-top-frame")}function o(u){if($.call(u,"key")){var y=Object.getOwnPropertyDescriptor(u,"key").get;if(y&&y.isReactWarning)return!1}return u.key!==void 0}function c(u,y){function R(){U||(U=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}R.isReactWarning=!0,Object.defineProperty(u,"key",{get:R,configurable:!0})}function p(){var u=e(this.type);return ae[u]||(ae[u]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),u=this.props.ref,u!==void 0?u:null}function f(u,y,R,S,W,De){var _=R.ref;return u={$$typeof:d,type:u,key:y,props:R,_owner:S},(_!==void 0?_:null)!==null?Object.defineProperty(u,"ref",{enumerable:!1,get:p}):Object.defineProperty(u,"ref",{enumerable:!1,value:null}),u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(u,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(u,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(u,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:De}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}function l(u,y,R,S,W,De){var _=y.children;if(_!==void 0)if(S)if(I(_)){for(S=0;S<_.length;S++)m(_[S]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if($.call(y,"key")){_=e(u);var Q=Object.keys(y).filter(function(nn){return nn!=="key"});S=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",Oe[_+S]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var h;function J(){return h||(h=1,process.env.NODE_ENV!=="production"&&(function(){function s(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case B:return"Profiler";case Q:return"StrictMode";case ee:return"Suspense";case re:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case X:return"Portal";case Z:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case K:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return r=e.displayName||null,r!==null?r:s(e.type)||"Memo";case y:r=e._payload,e=e._init;try{return s(e(r))}catch{}}return null}function b(e){return""+e}function d(e){try{b(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),b(e)}}function m(e){if(e===A)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===y)return"<...>";try{var r=s(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function o(){var e=O.A;return e===null?null:e.getOwner()}function u(){return Error("react-stack-top-frame")}function _(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function E(e,r){function t(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function z(){var e=s(this.type);return F[e]||(F[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function G(e,r,t,n,T,x){var a=t.ref;return e={$$typeof:Y,type:e,key:r,props:t,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:z}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:x}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e,r,t,n,T,x){var a=r.children;if(a!==void 0)if(n)if(oe(a)){for(n=0;n<a.length;n++)N(a[n]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(a);if(I.call(r,"key")){a=s(e);var c=Object.keys(r).filter(function(se){return se!=="key"});n=0<c.length?"{key: someKey, "+c.join(": ..., ")+": ...}":"{key: someKey}",W[a+n]||(c=0<c.length?"{"+c.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,S,_,Q,_),Oe[_+S]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),o(y)&&(r(y.key),_=""+y.key),"key"in y){R={};for(var Be in y)Be!=="key"&&(R[Be]=y[Be])}else R=y;return _&&c(R,typeof u=="function"?u.displayName||u.name||"Unknown":u),f(u,_,R,s(),W,De)}function m(u){w(u)?u._store&&(u._store.validated=1):typeof u=="object"&&u!==null&&u.$$typeof===M&&(u._payload.status==="fulfilled"?w(u._payload.value)&&u._payload.value._store&&(u._payload.value._store.validated=1):u._store&&(u._store.validated=1))}function w(u){return typeof u=="object"&&u!==null&&u.$$typeof===d}var T=le,d=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),P=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),Te=Symbol.for("react.client.reference"),H=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,I=Array.isArray,G=console.createTask?console.createTask:function(){return null};T={react_stack_bottom_frame:function(u){return u()}};var U,ae={},D=T.react_stack_bottom_frame.bind(T,i)(),ce=G(n(i)),Oe={};ee.Fragment=h,ee.jsx=function(u,y,R){var S=1e4>H.recentlyCreatedOwnerStacks++;return l(u,y,R,!1,S?Error("react-stack-top-frame"):D,S?G(n(u)):ce)},ee.jsxs=function(u,y,R){var S=1e4>H.recentlyCreatedOwnerStacks++;return l(u,y,R,!0,S?Error("react-stack-top-frame"):D,S?G(n(u)):ce)}})()),ee}var Ie;function kt(){return Ie||(Ie=1,process.env.NODE_ENV==="production"?fe.exports=Ct():fe.exports=Nt()),fe.exports}var Ft=kt();function Me(e,t){return function(){return e.apply(t,arguments)}}const{toString:jt}=Object.prototype,{getPrototypeOf:Ae}=Object,{iterator:de,toStringTag:He}=Symbol,pe=(e=>t=>{const r=jt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),L=e=>(e=e.toLowerCase(),t=>pe(t)===e),he=e=>t=>typeof t===e,{isArray:Y}=Array,K=he("undefined");function te(e){return e!==null&&!K(e)&&e.constructor!==null&&!K(e.constructor)&&C(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $e=L("ArrayBuffer");function Ut(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$e(e.buffer),t}const Lt=he("string"),C=he("function"),ze=he("number"),re=e=>e!==null&&typeof e=="object",Dt=e=>e===!0||e===!1,me=e=>{if(pe(e)!=="object")return!1;const t=Ae(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(He in e)&&!(de in e)},Bt=e=>{if(!re(e)||te(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},vt=L("Date"),qt=L("File"),It=L("Blob"),Mt=L("FileList"),Ht=e=>re(e)&&C(e.pipe),$t=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||C(e.append)&&((t=pe(e))==="formdata"||t==="object"&&C(e.toString)&&e.toString()==="[object FormData]"))},zt=L("URLSearchParams"),[Jt,Vt,Wt,Yt]=["ReadableStream","Request","Response","Headers"].map(L),Kt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ne(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Y(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(te(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(n=0;n<o;n++)c=i[n],t.call(null,e[c],c,e)}}function Je(e,t){if(te(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ve=e=>!K(e)&&e!==z;function _e(){const{caseless:e,skipUndefined:t}=Ve(this)&&this||{},r={},n=(s,i)=>{const o=e&&Je(r,i)||i;me(r[o])&&me(s)?r[o]=_e(r[o],s):me(s)?r[o]=_e({},s):Y(s)?r[o]=s.slice():(!t||!K(s))&&(r[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&ne(arguments[s],n);return r}const Xt=(e,t,r,{allOwnKeys:n}={})=>(ne(t,(s,i)=>{r&&C(s)?e[i]=Me(s,r):e[i]=s},{allOwnKeys:n}),e),Gt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Qt=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Zt=(e,t,r,n)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!n||n(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=r!==!1&&Ae(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},er=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},tr=e=>{if(!e)return null;if(Y(e))return e;let t=e.length;if(!ze(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},rr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ae(Uint8Array)),nr=(e,t)=>{const n=(e&&e[de]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},sr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},or=L("HTMLFormElement"),ir=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),We=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ar=L("RegExp"),Ye=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ne(r,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(n[i]=o||s)}),Object.defineProperties(e,n)},cr=e=>{Ye(e,(t,r)=>{if(C(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(C(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ur=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return Y(e)?n(e):n(String(e).split(t)),r},lr=()=>{},fr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function dr(e){return!!(e&&C(e.append)&&e[He]==="FormData"&&e[de])}const pr=e=>{const t=new Array(10),r=(n,s)=>{if(re(n)){if(t.indexOf(n)>=0)return;if(te(n))return n;if(!("toJSON"in n)){t[s]=n;const i=Y(n)?[]:{};return ne(n,(o,c)=>{const p=r(o,s+1);!K(p)&&(i[c]=p)}),t[s]=void 0,i}}return n};return r(e,0)},hr=L("AsyncFunction"),mr=e=>e&&(re(e)||C(e))&&C(e.then)&&C(e.catch),Ke=((e,t)=>e?setImmediate:t?((r,n)=>(z.addEventListener("message",({source:s,data:i})=>{s===z&&i===r&&n.length&&n.shift()()},!1),s=>{n.push(s),z.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",C(z.postMessage)),br=typeof queueMicrotask<"u"?queueMicrotask.bind(z):typeof process<"u"&&process.nextTick||Ke,a={isArray:Y,isArrayBuffer:$e,isBuffer:te,isFormData:$t,isArrayBufferView:Ut,isString:Lt,isNumber:ze,isBoolean:Dt,isObject:re,isPlainObject:me,isEmptyObject:Bt,isReadableStream:Jt,isRequest:Vt,isResponse:Wt,isHeaders:Yt,isUndefined:K,isDate:vt,isFile:qt,isBlob:It,isRegExp:ar,isFunction:C,isStream:Ht,isURLSearchParams:zt,isTypedArray:rr,isFileList:Mt,forEach:ne,merge:_e,extend:Xt,trim:Kt,stripBOM:Gt,inherits:Qt,toFlatObject:Zt,kindOf:pe,kindOfTest:L,endsWith:er,toArray:tr,forEachEntry:nr,matchAll:sr,isHTMLForm:or,hasOwnProperty:We,hasOwnProp:We,reduceDescriptors:Ye,freezeMethods:cr,toObjectSet:ur,toCamelCase:ir,noop:lr,toFiniteNumber:fr,findKey:Je,global:z,isContextDefined:Ve,isSpecCompliantForm:dr,toJSONObject:pr,isAsyncFn:hr,isThenable:mr,setImmediate:Ke,asap:br,isIterable:e=>e!=null&&C(e[de])};function E(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(E,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Xe=E.prototype,Ge={};["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=>{Ge[e]={value:e}}),Object.defineProperties(E,Ge),Object.defineProperty(Xe,"isAxiosError",{value:!0}),E.from=(e,t,r,n,s,i)=>{const o=Object.create(Xe);a.toFlatObject(e,o,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const c=e&&e.message?e.message:"Error",p=t==null&&e?e.code:t;return E.call(o,c,p,r,n,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const yr=null;function xe(e){return a.isPlainObject(e)||a.isArray(e)}function Qe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ze(e,t,r){return e?e.concat(t).map(function(s,i){return s=Qe(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function Er(e){return a.isArray(e)&&!e.some(xe)}const wr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function be(e,t,r){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=a.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,h){return!a.isUndefined(h[b])});const n=r.metaTokens,s=r.visitor||l,i=r.dots,o=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!p&&a.isBlob(d))throw new E("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?p&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,b,h){let O=d;if(d&&!h&&typeof d=="object"){if(a.endsWith(b,"{}"))b=n?b:b.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&Er(d)||(a.isFileList(d)||a.endsWith(b,"[]"))&&(O=a.toArray(d)))return b=Qe(b),O.forEach(function(A,P){!(a.isUndefined(A)||A===null)&&t.append(o===!0?Ze([b],P,i):o===null?b:b+"[]",f(A))}),!1}return xe(d)?!0:(t.append(Ze(h,b,i),f(d)),!1)}const m=[],w=Object.assign(wr,{defaultVisitor:l,convertValue:f,isVisitable:xe});function T(d,b){if(!a.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(d),a.forEach(d,function(O,k){(!(a.isUndefined(O)||O===null)&&s.call(t,O,a.isString(k)?k.trim():k,b,w))===!0&&T(O,b?b.concat(k):[k])}),m.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return T(e),t}function et(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Pe(e,t){this._pairs=[],e&&be(e,this,t)}const tt=Pe.prototype;tt.append=function(t,r){this._pairs.push([t,r])},tt.toString=function(t){const r=t?function(n){return t.call(this,n,et)}:et;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function Rr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rt(e,t,r){if(!t)return e;const n=r&&r.encode||Rr;a.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let i;if(s?i=s(t,r):i=a.isURLSearchParams(t)?t.toString():new Pe(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class nt{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(n){n!==null&&t(n)})}}const st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Pe,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ce=typeof window<"u"&&typeof document<"u",Ne=typeof navigator=="object"&&navigator||void 0,gr=Ce&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0),Tr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Or=Ce&&window.location.href||"http://localhost",x={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ce,hasStandardBrowserEnv:gr,hasStandardBrowserWebWorkerEnv:Tr,navigator:Ne,origin:Or},Symbol.toStringTag,{value:"Module"})),...Sr};function Ar(e,t){return be(e,new x.classes.URLSearchParams,{visitor:function(r,n,s,i){return x.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function _r(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xr(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}function ot(e){function t(r,n,s,i){let o=r[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),p=i>=r.length;return o=!o&&a.isArray(s)?s.length:o,p?(a.hasOwnProp(s,o)?s[o]=[s[o],n]:s[o]=n,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(r,n,s[o],i)&&a.isArray(s[o])&&(s[o]=xr(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const r={};return a.forEachEntry(e,(n,s)=>{t(_r(n),s,r,0)}),r}return null}function Pr(e,t,r){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const se={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ot(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ar(t,this.formSerializer).toString();if((c=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return be(c?{"files[]":t}:t,p&&new p,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),Pr(t)):t}],transformResponse:[function(t){const r=this.transitional||se.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||s)){const o=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?E.from(c,E.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{se.headers[e]={}});const Cr=a.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"]),Nr=e=>{const t={};let r,n,s;return e&&e.split(`
23
- `).forEach(function(o){s=o.indexOf(":"),r=o.substring(0,s).trim().toLowerCase(),n=o.substring(s+1).trim(),!(!r||t[r]&&Cr[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},it=Symbol("internals");function oe(e){return e&&String(e).trim().toLowerCase()}function ye(e){return e===!1||e==null?e:a.isArray(e)?e.map(ye):String(e)}function kr(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Fr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ke(e,t,r,n,s){if(a.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!a.isString(t)){if(a.isString(n))return t.indexOf(n)!==-1;if(a.isRegExp(n))return n.test(t)}}function jr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ur(e,t){const r=a.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,o){return this[n].call(this,t,s,i,o)},configurable:!0})})}let N=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(c,p,f){const l=oe(p);if(!l)throw new Error("header name must be a non-empty string");const m=a.findKey(s,l);(!m||s[m]===void 0||f===!0||f===void 0&&s[m]!==!1)&&(s[m||p]=ye(c))}const o=(c,p)=>a.forEach(c,(f,l)=>i(f,l,p));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(a.isString(t)&&(t=t.trim())&&!Fr(t))o(Nr(t),r);else if(a.isObject(t)&&a.isIterable(t)){let c={},p,f;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[f=l[0]]=(p=c[f])?a.isArray(p)?[...p,l[1]]:[p,l[1]]:l[1]}o(c,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=oe(t),t){const n=a.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return kr(s);if(a.isFunction(r))return r.call(this,s,n);if(a.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=oe(t),t){const n=a.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ke(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(o){if(o=oe(o),o){const c=a.findKey(n,o);c&&(!r||ke(n,n[c],c,r))&&(delete n[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||ke(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return a.forEach(this,(s,i)=>{const o=a.findKey(n,i);if(o){r[o]=ye(s),delete r[i];return}const c=t?jr(i):String(i).trim();c!==i&&delete r[i],r[c]=ye(s),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return a.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&a.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
24
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[it]=this[it]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=oe(o);n[c]||(Ur(s,o),n[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};N.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(N.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),a.freezeMethods(N);function Fe(e,t){const r=this||se,n=t||r,s=N.from(n.headers);let i=n.data;return a.forEach(e,function(c){i=c.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function at(e){return!!(e&&e.__CANCEL__)}function X(e,t,r){E.call(this,e??"canceled",E.ERR_CANCELED,t,r),this.name="CanceledError"}a.inherits(X,E,{__CANCEL__:!0});function ct(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new E("Request failed with status code "+r.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Lr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dr(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(p){const f=Date.now(),l=n[i];o||(o=f),r[s]=p,n[s]=f;let m=i,w=0;for(;m!==s;)w+=r[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const T=l&&f-l;return T?Math.round(w*1e3/T):void 0}}function Br(e,t){let r=0,n=1e3/t,s,i;const o=(f,l=Date.now())=>{r=l,s=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const l=Date.now(),m=l-r;m>=n?o(f,l):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},n-m)))},()=>s&&o(s)]}const Ee=(e,t,r=3)=>{let n=0;const s=Dr(50,250);return Br(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,p=o-n,f=s(p),l=o<=c;n=o;const m={loaded:o,total:c,progress:c?o/c:void 0,bytes:p,rate:f||void 0,estimated:f&&c&&l?(c-o)/f:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},r)},ut=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},lt=e=>(...t)=>a.asap(()=>e(...t)),vr=x.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,x.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(x.origin),x.navigator&&/(msie|trident)/i.test(x.navigator.userAgent)):()=>!0,qr=x.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const o=[e+"="+encodeURIComponent(t)];a.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),a.isString(n)&&o.push("path="+n),a.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ir(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ft(e,t,r){let n=!Ir(t);return e&&(n||r==!1)?Mr(e,t):t}const dt=e=>e instanceof N?{...e}:e;function J(e,t){t=t||{};const r={};function n(f,l,m,w){return a.isPlainObject(f)&&a.isPlainObject(l)?a.merge.call({caseless:w},f,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(f,l,m,w){if(a.isUndefined(l)){if(!a.isUndefined(f))return n(void 0,f,m,w)}else return n(f,l,m,w)}function i(f,l){if(!a.isUndefined(l))return n(void 0,l)}function o(f,l){if(a.isUndefined(l)){if(!a.isUndefined(f))return n(void 0,f)}else return n(void 0,l)}function c(f,l,m){if(m in t)return n(f,l);if(m in e)return n(void 0,f)}const p={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(f,l,m)=>s(dt(f),dt(l),m,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const m=p[l]||s,w=m(e[l],t[l],l);a.isUndefined(w)&&m!==c||(r[l]=w)}),r}const pt=e=>{const t=J({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=N.from(o),t.url=rt(ft(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(r)){if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(r.getHeaders)){const p=r.getHeaders(),f=["content-type","content-length"];Object.entries(p).forEach(([l,m])=>{f.includes(l.toLowerCase())&&o.set(l,m)})}}if(x.hasStandardBrowserEnv&&(n&&a.isFunction(n)&&(n=n(t)),n||n!==!1&&vr(t.url))){const p=s&&i&&qr.read(i);p&&o.set(s,p)}return t},Hr=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const s=pt(e);let i=s.data;const o=N.from(s.headers).normalize();let{responseType:c,onUploadProgress:p,onDownloadProgress:f}=s,l,m,w,T,d;function b(){T&&T(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function O(){if(!h)return;const A=N.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),j={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:A,config:e,request:h};ct(function(F){r(F),b()},function(F){n(F),b()},j),h=null}"onloadend"in h?h.onloadend=O:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(O)},h.onabort=function(){h&&(n(new E("Request aborted",E.ECONNABORTED,e,h)),h=null)},h.onerror=function(P){const j=P&&P.message?P.message:"Network Error",q=new E(j,E.ERR_NETWORK,e,h);q.event=P||null,n(q),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const j=s.transitional||st;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),n(new E(P,j.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,e,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&a.forEach(o.toJSON(),function(P,j){h.setRequestHeader(j,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),f&&([w,d]=Ee(f,!0),h.addEventListener("progress",w)),p&&h.upload&&([m,T]=Ee(p),h.upload.addEventListener("progress",m),h.upload.addEventListener("loadend",T)),(s.cancelToken||s.signal)&&(l=A=>{h&&(n(!A||A.type?new X(null,e,h):A),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const k=Lr(s.url);if(k&&x.protocols.indexOf(k)===-1){n(new E("Unsupported protocol "+k+":",E.ERR_BAD_REQUEST,e));return}h.send(i||null)})},$r=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const i=function(f){if(!s){s=!0,c();const l=f instanceof Error?f:this.reason;n.abort(l instanceof E?l:new X(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:p}=n;return p.unsubscribe=()=>a.asap(c),p}},zr=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Jr=async function*(e,t){for await(const r of Vr(e))yield*zr(r,t)},Vr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},ht=(e,t,r,n)=>{const s=Jr(e,t);let i=0,o,c=p=>{o||(o=!0,n&&n(p))};return new ReadableStream({async pull(p){try{const{done:f,value:l}=await s.next();if(f){c(),p.close();return}let m=l.byteLength;if(r){let w=i+=m;r(w)}p.enqueue(new Uint8Array(l))}catch(f){throw c(f),f}},cancel(p){return c(p),s.return()}},{highWaterMark:2})},mt=64*1024,{isFunction:we}=a,Wr=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:bt,TextEncoder:yt}=a.global,Et=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Yr=e=>{e=a.merge.call({skipUndefined:!0},Wr,e);const{fetch:t,Request:r,Response:n}=e,s=t?we(t):typeof fetch=="function",i=we(r),o=we(n);if(!s)return!1;const c=s&&we(bt),p=s&&(typeof yt=="function"?(d=>b=>d.encode(b))(new yt):async d=>new Uint8Array(await new r(d).arrayBuffer())),f=i&&c&&Et(()=>{let d=!1;const b=new r(x.origin,{body:new bt,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!b}),l=o&&c&&Et(()=>a.isReadableStream(new n("").body)),m={stream:l&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!m[d]&&(m[d]=(b,h)=>{let O=b&&b[d];if(O)return O.call(b);throw new E(`Response type '${d}' is not supported`,E.ERR_NOT_SUPPORT,h)})});const w=async d=>{if(d==null)return 0;if(a.isBlob(d))return d.size;if(a.isSpecCompliantForm(d))return(await new r(x.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(a.isArrayBufferView(d)||a.isArrayBuffer(d))return d.byteLength;if(a.isURLSearchParams(d)&&(d=d+""),a.isString(d))return(await p(d)).byteLength},T=async(d,b)=>{const h=a.toFiniteNumber(d.getContentLength());return h??w(b)};return async d=>{let{url:b,method:h,data:O,signal:k,cancelToken:A,timeout:P,onDownloadProgress:j,onUploadProgress:q,responseType:F,headers:ie,withCredentials:M="same-origin",fetchOptions:ge}=pt(d),Te=t||fetch;F=F?(F+"").toLowerCase():"text";let H=$r([k,A&&A.toAbortSignal()],P),$=null;const I=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let G;try{if(q&&f&&h!=="get"&&h!=="head"&&(G=await T(ie,O))!==0){let u=new r(b,{method:"POST",body:O,duplex:"half"}),y;if(a.isFormData(O)&&(y=u.headers.get("content-type"))&&ie.setContentType(y),u.body){const[R,S]=ut(G,Ee(lt(q)));O=ht(u.body,mt,R,S)}}a.isString(M)||(M=M?"include":"omit");const U=i&&"credentials"in r.prototype,ae={...ge,signal:H,method:h.toUpperCase(),headers:ie.normalize().toJSON(),body:O,duplex:"half",credentials:U?M:void 0};$=i&&new r(b,ae);let D=await(i?Te($,ge):Te(b,ae));const ce=l&&(F==="stream"||F==="response");if(l&&(j||ce&&I)){const u={};["status","statusText","headers"].forEach(W=>{u[W]=D[W]});const y=a.toFiniteNumber(D.headers.get("content-length")),[R,S]=j&&ut(y,Ee(lt(j),!0))||[];D=new n(ht(D.body,mt,R,()=>{S&&S(),I&&I()}),u)}F=F||"text";let Oe=await m[a.findKey(m,F)||"text"](D,d);return!ce&&I&&I(),await new Promise((u,y)=>{ct(u,y,{data:Oe,headers:N.from(D.headers),status:D.status,statusText:D.statusText,config:d,request:$})})}catch(U){throw I&&I(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,d,$),{cause:U.cause||U}):E.from(U,U&&U.code,d,$)}}},Kr=new Map,wt=e=>{let t=e?e.env:{};const{fetch:r,Request:n,Response:s}=t,i=[n,s,r];let o=i.length,c=o,p,f,l=Kr;for(;c--;)p=i[c],f=l.get(p),f===void 0&&l.set(p,f=c?new Map:Yr(t)),l=f;return f};wt();const je={http:yr,xhr:Hr,fetch:{get:wt}};a.forEach(je,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rt=e=>`- ${e}`,Xr=e=>a.isFunction(e)||e===null||e===!1,St={getAdapter:(e,t)=>{e=a.isArray(e)?e:[e];const{length:r}=e;let n,s;const i={};for(let o=0;o<r;o++){n=e[o];let c;if(s=n,!Xr(n)&&(s=je[(c=String(n)).toLowerCase()],s===void 0))throw new E(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;i[c||"#"+o]=s}if(!s){const o=Object.entries(i).map(([p,f])=>`adapter ${p} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=r?o.length>1?`since :
25
- `+o.map(Rt).join(`
26
- `):" "+Rt(o[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:je};function Ue(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new X(null,e)}function gt(e){return Ue(e),e.headers=N.from(e.headers),e.data=Fe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),St.getAdapter(e.adapter||se.adapter,e)(e).then(function(n){return Ue(e),n.data=Fe.call(e,e.transformResponse,n),n.headers=N.from(n.headers),n},function(n){return at(n)||(Ue(e),n&&n.response&&(n.response.data=Fe.call(e,e.transformResponse,n.response),n.response.headers=N.from(n.response.headers))),Promise.reject(n)})}const Tt="1.12.2",Re={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Re[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ot={};Re.transitional=function(t,r,n){function s(i,o){return"[Axios v"+Tt+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,c)=>{if(t===!1)throw new E(s(o," has been removed"+(r?" in "+r:"")),E.ERR_DEPRECATED);return r&&!Ot[o]&&(Ot[o]=!0,console.warn(s(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,c):!0}},Re.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Gr(e,t,r){if(typeof e!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const c=e[i],p=c===void 0||o(c,i,e);if(p!==!0)throw new E("option "+i+" must be "+p,E.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new E("Unknown option "+i,E.ERR_BAD_OPTION)}}const Se={assertOptions:Gr,validators:Re},B=Se.validators;let V=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nt,response:new nt}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
27
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=J(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&Se.assertOptions(n,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),s!=null&&(a.isFunction(s)?r.paramsSerializer={serialize:s}:Se.assertOptions(s,{encode:B.function,serialize:B.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Se.assertOptions(r,{baseUrl:B.spelling("baseURL"),withXsrfToken:B.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[r.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=N.concat(o,i);const c=[];let p=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(p=p&&b.synchronous,c.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let l,m=0,w;if(!p){const d=[gt.bind(this),void 0];for(d.unshift(...c),d.push(...f),w=d.length,l=Promise.resolve(r);m<w;)l=l.then(d[m++],d[m++]);return l}w=c.length;let T=r;for(;m<w;){const d=c[m++],b=c[m++];try{T=d(T)}catch(h){b.call(this,h);break}}try{l=gt.call(this,T)}catch(d){return Promise.reject(d)}for(m=0,w=f.length;m<w;)l=l.then(f[m++],f[m++]);return l}getUri(t){t=J(this.defaults,t);const r=ft(t.baseURL,t.url,t.allowAbsoluteUrls);return rt(r,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){V.prototype[t]=function(r,n){return this.request(J(n||{},{method:t,url:r,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,c){return this.request(J(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}V.prototype[t]=r(),V.prototype[t+"Form"]=r(!0)});let Qr=class _t{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{n.subscribe(c),i=c}).then(s);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,c){n.reason||(n.reason=new X(i,o,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new _t(function(s){t=s}),cancel:t}}};function Zr(e){return function(r){return e.apply(null,r)}}function en(e){return a.isObject(e)&&e.isAxiosError===!0}const Le={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(Le).forEach(([e,t])=>{Le[t]=e});function At(e){const t=new V(e),r=Me(V.prototype.request,t);return a.extend(r,V.prototype,t,{allOwnKeys:!0}),a.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return At(J(e,s))},r}const g=At(se);g.Axios=V,g.CanceledError=X,g.CancelToken=Qr,g.isCancel=at,g.VERSION=Tt,g.toFormData=be,g.AxiosError=E,g.Cancel=g.CanceledError,g.all=function(t){return Promise.all(t)},g.spread=Zr,g.isAxiosError=en,g.mergeConfig=J,g.AxiosHeaders=N,g.formToJSON=e=>ot(a.isHTMLForm(e)?new FormData(e):e),g.getAdapter=St.getAdapter,g.HttpStatusCode=Le,g.default=g;const{Axios:fn,AxiosError:dn,CanceledError:pn,isCancel:hn,CancelToken:mn,VERSION:bn,all:yn,Cancel:En,isAxiosError:wn,spread:Rn,toFormData:Sn,AxiosHeaders:gn,HttpStatusCode:Tn,formToJSON:On,getAdapter:An,mergeConfig:_n}=g;function tn({baseURL:e,getToken:t,timeoutMs:r=15e3,axiosInstance:n,currency:s,lng:i,onError:o}={}){const c=n??g.create({baseURL:e,timeout:r,headers:{"Content-Type":"application/json"}});return c.interceptors.request.use(async p=>{if(t){const f=await t();f&&(p.headers=p.headers||{},p.headers.Authorization=`Bearer ${f}`)}return p}),c.interceptors.request.use(p=>{p.headers.Currency=s,p.headers["currency-code"]=s,p.headers.lang=i}),c.interceptors.response.use(p=>p,p=>o?o(p,{instance:c}):Promise.reject(p)),c}function rn({children:e,...t}){const r=le.useMemo(()=>tn(t),[t]);return Ft.jsx(ApiCtx.Provider,{value:{client:r},children:e})}v.ApiProvider=rn,v.useAxios=Pt,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})}));
22
+ <%s key={someKey} {...props} />`,n,a,c,a),W[a+n]=!0)}if(a=null,t!==void 0&&(d(t),a=""+t),_(r)&&(d(r.key),a=""+r.key),"key"in r){t={};for(var P in r)P!=="key"&&(t[P]=r[P])}else t=r;return a&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),G(e,a,t,o(),T,x)}function N(e){C(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===y&&(e._payload.status==="fulfilled"?C(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function C(e){return typeof e=="object"&&e!==null&&e.$$typeof===Y}var v=k,Y=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),O=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,oe=Array.isArray,S=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var D,F={},M=v.react_stack_bottom_frame.bind(v,u)(),L=S(m(u)),W={};f.Fragment=A,f.jsx=function(e,r,t){var n=1e4>O.recentlyCreatedOwnerStacks++;return g(e,r,t,!1,n?Error("react-stack-top-frame"):M,n?S(m(e)):L)},f.jsxs=function(e,r,t){var n=1e4>O.recentlyCreatedOwnerStacks++;return g(e,r,t,!0,n?Error("react-stack-top-frame"):M,n?S(m(e)):L)}})()),f}var j;function V(){return j||(j=1,process.env.NODE_ENV==="production"?p.exports=q():p.exports=J()),p.exports}V(),l.useAxios=U,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));