UNPKG

@elghandour/fetchify

Version:
5 lines (4 loc) 38.7 kB
(function(h,re){typeof exports=="object"&&typeof module<"u"?re(exports):typeof define=="function"&&define.amd?define(["exports"],re):(h=typeof globalThis<"u"?globalThis:h||self,re(h.Fetchify={}))})(this,function(h){"use strict";function re(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function _r(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){if(this instanceof n){var a=[null];a.push.apply(a,arguments);var o=Function.bind.apply(e,a);return new o}return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),t}var Mr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,t);if(f.value!==a||f.enumerable!==!0)return!1}return!0},ke=typeof Symbol<"u"&&Symbol,Dr=Mr,Cr=function(){return typeof ke!="function"||typeof Symbol!="function"||typeof ke("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Dr()},Br="Function.prototype.bind called on incompatible ",Se=Array.prototype.slice,Ur=Object.prototype.toString,Wr="[object Function]",Lr=function(e){var t=this;if(typeof t!="function"||Ur.call(t)!==Wr)throw new TypeError(Br+t);for(var n=Se.call(arguments,1),a,o=function(){if(this instanceof a){var y=t.apply(this,n.concat(Se.call(arguments)));return Object(y)===y?y:this}else return t.apply(e,n.concat(Se.call(arguments)))},f=Math.max(0,t.length-n.length),i=[],c=0;c<f;c++)i.push("$"+c);if(a=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var l=function(){};l.prototype=t.prototype,a.prototype=new l,l.prototype=null}return a},Gr=Lr,be=Function.prototype.bind||Gr,Hr=be,kr=Hr.call(Function.call,Object.prototype.hasOwnProperty),v,W=SyntaxError,ze=Function,L=TypeError,Ae=function(r){try{return ze('"use strict"; return ('+r+").constructor;")()}catch{}},C=Object.getOwnPropertyDescriptor;if(C)try{C({},"")}catch{C=null}var Oe=function(){throw new L},zr=C?function(){try{return arguments.callee,Oe}catch{try{return C(arguments,"callee").get}catch{return Oe}}}():Oe,G=Cr(),T=Object.getPrototypeOf||function(r){return r.__proto__},H={},Vr=typeof Uint8Array>"u"?v:T(Uint8Array),k={"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":G?T([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":ze,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G?T(T([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G?v:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G?v:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G?T(""[Symbol.iterator]()):v,"%Symbol%":G?Symbol:v,"%SyntaxError%":W,"%ThrowTypeError%":zr,"%TypedArray%":Vr,"%TypeError%":L,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet},qr=function r(e){var t;if(e==="%AsyncFunction%")t=Ae("async function () {}");else if(e==="%GeneratorFunction%")t=Ae("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Ae("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&(t=T(a.prototype))}return k[e]=t,t},Ve={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},te=be,ce=kr,Qr=te.call(Function.call,Array.prototype.concat),jr=te.call(Function.apply,Array.prototype.splice),qe=te.call(Function.call,String.prototype.replace),ue=te.call(Function.call,String.prototype.slice),Jr=te.call(Function.call,RegExp.prototype.exec),Kr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Yr=/\\(\\)?/g,Xr=function(e){var t=ue(e,0,1),n=ue(e,-1);if(t==="%"&&n!=="%")throw new W("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new W("invalid intrinsic syntax, expected opening `%`");var a=[];return qe(e,Kr,function(o,f,i,c){a[a.length]=i?qe(c,Yr,"$1"):f||o}),a},Zr=function(e,t){var n=e,a;if(ce(Ve,n)&&(a=Ve[n],n="%"+a[0]+"%"),ce(k,n)){var o=k[n];if(o===H&&(o=qr(n)),typeof o>"u"&&!t)throw new L("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new W("intrinsic "+e+" does not exist!")},we=function(e,t){if(typeof e!="string"||e.length===0)throw new L("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new L('"allowMissing" argument must be a boolean');if(Jr(/^%?[^%]*%?$/,e)===null)throw new W("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Xr(e),a=n.length>0?n[0]:"",o=Zr("%"+a+"%",t),f=o.name,i=o.value,c=!1,l=o.alias;l&&(a=l[0],jr(n,Qr([0,1],l)));for(var y=1,p=!0;y<n.length;y+=1){var s=n[y],d=ue(s,0,1),u=ue(s,-1);if((d==='"'||d==="'"||d==="`"||u==='"'||u==="'"||u==="`")&&d!==u)throw new W("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(c=!0),a+="."+s,f="%"+a+"%",ce(k,f))i=k[f];else if(i!=null){if(!(s in i)){if(!t)throw new L("base intrinsic for "+e+" exists, but the property is not available.");return}if(C&&y+1>=n.length){var m=C(i,s);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?i=m.get:i=i[s]}else p=ce(i,s),i=i[s];p&&!c&&(k[f]=i)}}return i},Qe={exports:{}};(function(r){var e=be,t=we,n=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),o=t("%Reflect.apply%",!0)||e.call(a,n),f=t("%Object.getOwnPropertyDescriptor%",!0),i=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(i)try{i({},"a",{value:1})}catch{i=null}r.exports=function(p){var s=o(e,a,arguments);if(f&&i){var d=f(s,"length");d.configurable&&i(s,"length",{value:1+c(0,p.length-(arguments.length-1))})}return s};var l=function(){return o(e,n,arguments)};i?i(r.exports,"apply",{value:l}):r.exports.apply=l})(Qe);var et=Qe.exports,je=we,Je=et,rt=Je(je("String.prototype.indexOf")),tt=function(e,t){var n=je(e,!!t);return typeof n=="function"&&rt(e,".prototype.")>-1?Je(n):n};const nt=_r(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Pe=typeof Map=="function"&&Map.prototype,Ee=Object.getOwnPropertyDescriptor&&Pe?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ye=Pe&&Ee&&typeof Ee.get=="function"?Ee.get:null,ot=Pe&&Map.prototype.forEach,$e=typeof Set=="function"&&Set.prototype,Fe=Object.getOwnPropertyDescriptor&&$e?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,pe=$e&&Fe&&typeof Fe.get=="function"?Fe.get:null,at=$e&&Set.prototype.forEach,it=typeof WeakMap=="function"&&WeakMap.prototype,ne=it?WeakMap.prototype.has:null,ft=typeof WeakSet=="function"&&WeakSet.prototype,oe=ft?WeakSet.prototype.has:null,lt=typeof WeakRef=="function"&&WeakRef.prototype,Ke=lt?WeakRef.prototype.deref:null,ct=Boolean.prototype.valueOf,ut=Object.prototype.toString,yt=Function.prototype.toString,pt=String.prototype.match,Ie=String.prototype.slice,R=String.prototype.replace,st=String.prototype.toUpperCase,Ye=String.prototype.toLowerCase,Xe=RegExp.prototype.test,Ze=Array.prototype.concat,P=Array.prototype.join,dt=Array.prototype.slice,er=Math.floor,Te=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,z=typeof Symbol=="function"&&typeof Symbol.iterator=="object",A=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===z||"symbol")?Symbol.toStringTag:null,rr=Object.prototype.propertyIsEnumerable,tr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function nr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Xe.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-er(-r):er(r);if(n!==r){var a=String(n),o=Ie.call(e,a.length+1);return R.call(a,t,"$&_")+"."+R.call(R.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return R.call(e,t,"$&_")}var Ne=nt,or=Ne.custom,ar=lr(or)?or:null,vt=function r(e,t,n,a){var o=t||{};if(x(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(x(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=x(o,"customInspect")?o.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(x(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(x(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ur(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return i?nr(e,c):c}if(typeof e=="bigint"){var l=String(e)+"n";return i?nr(e,l):l}var y=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return _e(e)?"[Array]":"[Object]";var p=_t(o,n);if(typeof a>"u")a=[];else if(cr(a,e)>=0)return"[Circular]";function s(I,Z,he){if(Z&&(a=dt.call(a),a.push(Z)),he){var ee={depth:o.depth};return x(o,"quoteStyle")&&(ee.quoteStyle=o.quoteStyle),r(I,ee,n+1,a)}return r(I,o,n+1,a)}if(typeof e=="function"&&!fr(e)){var d=Pt(e),u=se(e,s);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(u.length>0?" { "+P.call(u,", ")+" }":"")}if(lr(e)){var m=z?R.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):xe.call(e);return typeof e=="object"&&!z?ae(m):m}if(Rt(e)){for(var b="<"+Ye.call(String(e.nodeName)),g=e.attributes||[],F=0;F<g.length;F++)b+=" "+g[F].name+"="+ir(mt(g[F].value),"double",o);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+="</"+Ye.call(String(e.nodeName))+">",b}if(_e(e)){if(e.length===0)return"[]";var M=se(e,s);return p&&!Nt(M)?"["+De(M,p)+"]":"[ "+P.call(M,", ")+" ]"}if(ht(e)){var K=se(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!rr.call(e,"cause")?"{ ["+String(e)+"] "+P.call(Ze.call("[cause]: "+s(e.cause),K),", ")+" }":K.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(K,", ")+" }"}if(typeof e=="object"&&f){if(ar&&typeof e[ar]=="function"&&Ne)return Ne(e,{depth:y-n});if(f!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Et(e)){var fe=[];return ot.call(e,function(I,Z){fe.push(s(Z,e,!0)+" => "+s(I,e))}),yr("Map",ye.call(e),fe,p)}if(It(e)){var ge=[];return at.call(e,function(I){ge.push(s(I,e))}),yr("Set",pe.call(e),ge,p)}if($t(e))return Me("WeakMap");if(Tt(e))return Me("WeakSet");if(Ft(e))return Me("WeakRef");if(bt(e))return ae(s(Number(e)));if(Ot(e))return ae(s(Te.call(e)));if(At(e))return ae(ct.call(e));if(St(e))return ae(s(String(e)));if(!gt(e)&&!fr(e)){var U=se(e,s),D=tr?tr(e)===Object.prototype:e instanceof Object||e.constructor===Object,Y=e instanceof Object?"":"null prototype",X=!D&&A&&Object(e)===e&&A in e?Ie.call(N(e),8,-1):Y?"Object":"",le=D||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",w=le+(X||Y?"["+P.call(Ze.call([],X||[],Y||[]),": ")+"] ":"");return U.length===0?w+"{}":p?w+"{"+De(U,p)+"}":w+"{ "+P.call(U,", ")+" }"}return String(e)};function ir(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function mt(r){return R.call(String(r),/"/g,"&quot;")}function _e(r){return N(r)==="[object Array]"&&(!A||!(typeof r=="object"&&A in r))}function gt(r){return N(r)==="[object Date]"&&(!A||!(typeof r=="object"&&A in r))}function fr(r){return N(r)==="[object RegExp]"&&(!A||!(typeof r=="object"&&A in r))}function ht(r){return N(r)==="[object Error]"&&(!A||!(typeof r=="object"&&A in r))}function St(r){return N(r)==="[object String]"&&(!A||!(typeof r=="object"&&A in r))}function bt(r){return N(r)==="[object Number]"&&(!A||!(typeof r=="object"&&A in r))}function At(r){return N(r)==="[object Boolean]"&&(!A||!(typeof r=="object"&&A in r))}function lr(r){if(z)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!xe)return!1;try{return xe.call(r),!0}catch{}return!1}function Ot(r){if(!r||typeof r!="object"||!Te)return!1;try{return Te.call(r),!0}catch{}return!1}var wt=Object.prototype.hasOwnProperty||function(r){return r in this};function x(r,e){return wt.call(r,e)}function N(r){return ut.call(r)}function Pt(r){if(r.name)return r.name;var e=pt.call(yt.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function cr(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function Et(r){if(!ye||!r||typeof r!="object")return!1;try{ye.call(r);try{pe.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function $t(r){if(!ne||!r||typeof r!="object")return!1;try{ne.call(r,ne);try{oe.call(r,oe)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function Ft(r){if(!Ke||!r||typeof r!="object")return!1;try{return Ke.call(r),!0}catch{}return!1}function It(r){if(!pe||!r||typeof r!="object")return!1;try{pe.call(r);try{ye.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function Tt(r){if(!oe||!r||typeof r!="object")return!1;try{oe.call(r,oe);try{ne.call(r,ne)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function Rt(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function ur(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return ur(Ie.call(r,0,e.maxStringLength),e)+n}var a=R.call(R.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,xt);return ir(a,"single",e)}function xt(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+st.call(e.toString(16))}function ae(r){return"Object("+r+")"}function Me(r){return r+" { ? }"}function yr(r,e,t,n){var a=n?De(t,n):P.call(t,", ");return r+" ("+e+") {"+a+"}"}function Nt(r){for(var e=0;e<r.length;e++)if(cr(r[e],` `)>=0)return!1;return!0}function _t(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=P.call(Array(r.indent+1)," ");else return null;return{base:t,prev:P.call(Array(e+1),t)}}function De(r,e){if(r.length===0)return"";var t=` `+e.prev+e.base;return t+P.call(r,","+t)+` `+e.prev}function se(r,e){var t=_e(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=x(r,a)?e(r[a],r):""}var o=typeof Re=="function"?Re(r):[],f;if(z){f={};for(var i=0;i<o.length;i++)f["$"+o[i]]=o[i]}for(var c in r)x(r,c)&&(t&&String(Number(c))===c&&c<r.length||z&&f["$"+c]instanceof Symbol||(Xe.call(/[^\w$]/,c)?n.push(e(c,r)+": "+e(r[c],r)):n.push(c+": "+e(r[c],r))));if(typeof Re=="function")for(var l=0;l<o.length;l++)rr.call(r,o[l])&&n.push("["+e(o[l])+"]: "+e(r[o[l]],r));return n}var Ce=we,V=tt,Mt=vt,Dt=Ce("%TypeError%"),de=Ce("%WeakMap%",!0),ve=Ce("%Map%",!0),Ct=V("WeakMap.prototype.get",!0),Bt=V("WeakMap.prototype.set",!0),Ut=V("WeakMap.prototype.has",!0),Wt=V("Map.prototype.get",!0),Lt=V("Map.prototype.set",!0),Gt=V("Map.prototype.has",!0),Be=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},Ht=function(r,e){var t=Be(r,e);return t&&t.value},kt=function(r,e,t){var n=Be(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},zt=function(r,e){return!!Be(r,e)},Vt=function(){var e,t,n,a={assert:function(o){if(!a.has(o))throw new Dt("Side channel does not contain "+Mt(o))},get:function(o){if(de&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ct(e,o)}else if(ve){if(t)return Wt(t,o)}else if(n)return Ht(n,o)},has:function(o){if(de&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ut(e,o)}else if(ve){if(t)return Gt(t,o)}else if(n)return zt(n,o);return!1},set:function(o,f){de&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new de),Bt(e,o,f)):ve?(t||(t=new ve),Lt(t,o,f)):(n||(n={key:{},next:null}),kt(n,o,f))}};return a},qt=String.prototype.replace,Qt=/%20/g,Ue={RFC1738:"RFC1738",RFC3986:"RFC3986"},We={default:Ue.RFC3986,formatters:{RFC1738:function(r){return qt.call(r,Qt,"+")},RFC3986:function(r){return String(r)}},RFC1738:Ue.RFC1738,RFC3986:Ue.RFC3986},jt=We,Le=Object.prototype.hasOwnProperty,B=Array.isArray,E=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),Jt=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(B(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);t.obj[t.prop]=a}}},pr=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},Kt=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(B(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Le.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var a=e;return B(e)&&!B(t)&&(a=pr(e,n)),B(e)&&B(t)?(t.forEach(function(o,f){if(Le.call(e,f)){var i=e[f];i&&typeof i=="object"&&o&&typeof o=="object"?e[f]=r(i,o,n):e.push(o)}else e[f]=o}),e):Object.keys(t).reduce(function(o,f){var i=t[f];return Le.call(o,f)?o[f]=r(o[f],i,n):o[f]=i,o},a)},Yt=function(e,t){return Object.keys(t).reduce(function(n,a){return n[a]=t[a],n},e)},Xt=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Zt=function(e,t,n,a,o){if(e.length===0)return e;var f=e;if(typeof e=="symbol"?f=Symbol.prototype.toString.call(e):typeof e!="string"&&(f=String(e)),n==="iso-8859-1")return escape(f).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var i="",c=0;c<f.length;++c){var l=f.charCodeAt(c);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===jt.RFC1738&&(l===40||l===41)){i+=f.charAt(c);continue}if(l<128){i=i+E[l];continue}if(l<2048){i=i+(E[192|l>>6]+E[128|l&63]);continue}if(l<55296||l>=57344){i=i+(E[224|l>>12]+E[128|l>>6&63]+E[128|l&63]);continue}c+=1,l=65536+((l&1023)<<10|f.charCodeAt(c)&1023),i+=E[240|l>>18]+E[128|l>>12&63]+E[128|l>>6&63]+E[128|l&63]}return i},en=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var o=t[a],f=o.obj[o.prop],i=Object.keys(f),c=0;c<i.length;++c){var l=i[c],y=f[l];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(t.push({obj:f,prop:l}),n.push(y))}return Jt(t),e},rn=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},tn=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},nn=function(e,t){return[].concat(e,t)},on=function(e,t){if(B(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},sr={arrayToObject:pr,assign:Yt,combine:nn,compact:en,decode:Xt,encode:Zt,isBuffer:tn,isRegExp:rn,maybeMap:on,merge:Kt},dr=Vt,me=sr,ie=We,an=Object.prototype.hasOwnProperty,vr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},$=Array.isArray,fn=Array.prototype.push,mr=function(r,e){fn.apply(r,$(e)?e:[e])},ln=Date.prototype.toISOString,gr=ie.default,O={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:me.encode,encodeValuesOnly:!1,format:gr,formatter:ie.formatters[gr],indices:!1,serializeDate:function(e){return ln.call(e)},skipNulls:!1,strictNullHandling:!1},cn=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ge={},un=function r(e,t,n,a,o,f,i,c,l,y,p,s,d,u,m,b){for(var g=e,F=b,M=0,K=!1;(F=F.get(Ge))!==void 0&&!K;){var fe=F.get(e);if(M+=1,typeof fe<"u"){if(fe===M)throw new RangeError("Cyclic object value");K=!0}typeof F.get(Ge)>"u"&&(M=0)}if(typeof c=="function"?g=c(t,g):g instanceof Date?g=p(g):n==="comma"&&$(g)&&(g=me.maybeMap(g,function(ee){return ee instanceof Date?p(ee):ee})),g===null){if(o)return i&&!u?i(t,O.encoder,m,"key",s):t;g=""}if(cn(g)||me.isBuffer(g)){if(i){var ge=u?t:i(t,O.encoder,m,"key",s);return[d(ge)+"="+d(i(g,O.encoder,m,"value",s))]}return[d(t)+"="+d(String(g))]}var U=[];if(typeof g>"u")return U;var D;if(n==="comma"&&$(g))u&&i&&(g=me.maybeMap(g,i)),D=[{value:g.length>0?g.join(",")||null:void 0}];else if($(c))D=c;else{var Y=Object.keys(g);D=l?Y.sort(l):Y}for(var X=a&&$(g)&&g.length===1?t+"[]":t,le=0;le<D.length;++le){var w=D[le],I=typeof w=="object"&&typeof w.value<"u"?w.value:g[w];if(!(f&&I===null)){var Z=$(g)?typeof n=="function"?n(X,w):X:X+(y?"."+w:"["+w+"]");b.set(e,M);var he=dr();he.set(Ge,b),mr(U,r(I,Z,n,a,o,f,n==="comma"&&u&&$(g)?null:i,c,l,y,p,s,d,u,m,he))}}return U},yn=function(e){if(!e)return O;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||O.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ie.default;if(typeof e.format<"u"){if(!an.call(ie.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=ie.formatters[n],o=O.filter;return(typeof e.filter=="function"||$(e.filter))&&(o=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:O.addQueryPrefix,allowDots:typeof e.allowDots>"u"?O.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:O.charsetSentinel,delimiter:typeof e.delimiter>"u"?O.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:O.encode,encoder:typeof e.encoder=="function"?e.encoder:O.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:O.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:O.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:O.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:O.strictNullHandling}},pn=function(r,e){var t=r,n=yn(e),a,o;typeof n.filter=="function"?(o=n.filter,t=o("",t)):$(n.filter)&&(o=n.filter,a=o);var f=[];if(typeof t!="object"||t===null)return"";var i;e&&e.arrayFormat in vr?i=e.arrayFormat:e&&"indices"in e?i=e.indices?"indices":"repeat":i="indices";var c=vr[i];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=c==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var y=dr(),p=0;p<a.length;++p){var s=a[p];n.skipNulls&&t[s]===null||mr(f,un(t[s],s,c,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,y))}var d=f.join(n.delimiter),u=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?u+="utf8=%26%2310003%3B&":u+="utf8=%E2%9C%93&"),d.length>0?u+d:""},q=sr,He=Object.prototype.hasOwnProperty,sn=Array.isArray,S={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:q.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},dn=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},hr=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},vn="utf8=%26%2310003%3B",mn="utf8=%E2%9C%93",gn=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,f=a.split(t.delimiter,o),i=-1,c,l=t.charset;if(t.charsetSentinel)for(c=0;c<f.length;++c)f[c].indexOf("utf8=")===0&&(f[c]===mn?l="utf-8":f[c]===vn&&(l="iso-8859-1"),i=c,c=f.length);for(c=0;c<f.length;++c)if(c!==i){var y=f[c],p=y.indexOf("]="),s=p===-1?y.indexOf("="):p+1,d,u;s===-1?(d=t.decoder(y,S.decoder,l,"key"),u=t.strictNullHandling?null:""):(d=t.decoder(y.slice(0,s),S.decoder,l,"key"),u=q.maybeMap(hr(y.slice(s+1),t),function(m){return t.decoder(m,S.decoder,l,"value")})),u&&t.interpretNumericEntities&&l==="iso-8859-1"&&(u=dn(u)),y.indexOf("[]=")>-1&&(u=sn(u)?[u]:u),He.call(n,d)?n[d]=q.combine(n[d],u):n[d]=u}return n},hn=function(r,e,t,n){for(var a=n?e:hr(e,t),o=r.length-1;o>=0;--o){var f,i=r[o];if(i==="[]"&&t.parseArrays)f=[].concat(a);else{f=t.plainObjects?Object.create(null):{};var c=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,l=parseInt(c,10);!t.parseArrays&&c===""?f={0:a}:!isNaN(l)&&i!==c&&String(l)===c&&l>=0&&t.parseArrays&&l<=t.arrayLimit?(f=[],f[l]=a):c!=="__proto__"&&(f[c]=a)}a=f}return a},Sn=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,f=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,c=n.depth>0&&f.exec(o),l=c?o.slice(0,c.index):o,y=[];if(l){if(!n.plainObjects&&He.call(Object.prototype,l)&&!n.allowPrototypes)return;y.push(l)}for(var p=0;n.depth>0&&(c=i.exec(o))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&He.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(c[1])}return c&&y.push("["+o.slice(c.index)+"]"),hn(y,t,n,a)}},bn=function(e){if(!e)return S;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?S.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?S.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:S.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:S.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:S.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:S.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:S.comma,decoder:typeof e.decoder=="function"?e.decoder:S.decoder,delimiter:typeof e.delimiter=="string"||q.isRegExp(e.delimiter)?e.delimiter:S.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:S.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:S.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:S.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:S.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:S.strictNullHandling}},An=function(r,e){var t=bn(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?gn(r,t):r,a=t.plainObjects?Object.create(null):{},o=Object.keys(n),f=0;f<o.length;++f){var i=o[f],c=Sn(i,n[i],t,typeof r=="string");a=q.merge(a,c,t)}return t.allowSparse===!0?a:q.compact(a)},On=pn,wn=An,Pn=We,En={formats:Pn,parse:wn,stringify:On};const Sr=re(En),$n=()=>typeof window=="object",br=r=>r&&typeof r=="object"&&!Array.isArray(Array),Fn=r=>{if(!br(r))throw Error("type should be object!");return!Object.keys(r).length};function Ar(r){return r==null?!1:!!(typeof r=="string"||typeof r=="bigint"||typeof r=="number"||typeof r=="boolean"||Array.isArray(r)&&r.length)}function In(r){if(!br(r)||Fn(r))return"";let e="?";return Object.keys(r).forEach((n,a)=>{if(!Ar(r[n]))return;a!==0&&(e+="&"),Array.isArray(r[n])?r[n].forEach((f,i)=>{Ar(f)&&(i!==0&&(e+="&"),e+=`${encodeURIComponent(n)}=${encodeURIComponent(f)}`)}):e+=`${encodeURIComponent(n)}=${encodeURIComponent(r[n])}`}),e}function Or(r){const e=[];return r.replace(/(\{+)([^}]+)(}+)/g,(t,n,a,o)=>(n.length===o.length&&e.push(a),a)),e}function Tn(r,e){let t=r;return Or(r).forEach(a=>{e[a]&&(t=t.replace(`{${a}}`,e[a]))}),t}function Rn(){}const xn=["json","text","blob","arrayBuffer","formData"];function wr(r={}){let e=r;return{set:function(i){e=i},getAll:function(){return e},update:function(i){e={...e,...i}},remove:function(i){typeof i=="string"&&delete e[i]}}}function Pr(r={}){let e=r;return{set:function(i){e=i},getAll:function(){return e},update:function(i){e={...e,...i}},remove:function(i){typeof i=="string"&&delete e[i]}}}const Er=wr(),$r=Pr(),_={request:void 0,response:void 0};function Nn({request:r,response:e}){r&&(_.request=r),e&&(_.response=e)}function _n(r,e,t={}){const n=Sr.stringify(t,{skipNulls:!0});return e.startsWith("http")?e:`${r}${e.startsWith("/")?"":"/"}${e}${n?"?"+Sr.stringify(t,{skipNulls:!0,arrayFormat:"repeat"}):""}`}async function Q(r,e,{params:t={},configs:n={},body:a,headers:o={},responseType:f="json",meta:i={},requestInterceptor:c=void 0,responseInterceptor:l=void 0}){let y={},p,s,d,u={headers:{...$r.getAll(),...o},configs:{...Er.getAll(),...n},params:t,body:a,path:e,responseType:f,meta:i,type:r};_.request&&!c&&(u={...u,...await _.request(u)}),c&&(u={...u,...await c(u)}),y.method=u.type,u.body&&u.type&&u.type!=="GET"&&(u.body instanceof FormData||typeof u.body=="string"||u.body instanceof ArrayBuffer||u.body instanceof Int8Array||u.body instanceof Uint8Array||u.body instanceof Uint8ClampedArray||u.body instanceof Int16Array||u.body instanceof Uint16Array||u.body instanceof Int32Array||u.body instanceof Uint32Array||u.body instanceof Float32Array||u.body instanceof Float64Array||u.body instanceof BigInt64Array||u.body instanceof BigUint64Array||u.body instanceof DataView||u.body instanceof Blob||u.body instanceof File||u.body instanceof Uint8Array||u.body instanceof URLSearchParams?y.body=u.body:y.body=u.body&&JSON.stringify(u.body)),Object.keys(u.headers).forEach(m=>{const b=u.headers;b[m]===void 0&&typeof b[m]>"u"&&delete b[m]}),s=_n(u.configs.baseURL,u.path,u.params),y={...y,...u.configs,headers:u.headers};try{d=await fetch(s,y);const m=u.type==="HEAD"||d.status===204;let b={};if(m||(b=await d[xn.includes(u.responseType)?u.responseType:"json"]()),!d.ok)throw p={meta:u.meta,response:d,error:{...b}},p;return p={data:b,response:d,meta:u.meta},_.response&&!l?_.response(p,y,u):l?l(p,y,u):p}catch(m){const g=m instanceof Error&&!("response"in m)?{error:{name:m.name,message:m.message},meta:u.meta}:m;return _.response?_.response(g,y,u):g}}function j(){return new AbortController}function J(r,e){return typeof r!="number"?void 0:setTimeout(()=>{e.abort()},r)}async function Fr(r,{params:e,configs:t={},headers:n,responseType:a,meta:o={},timeout:f,requestInterceptor:i=void 0,responseInterceptor:c=void 0}={},l){const y=j();y instanceof AbortController&&(t.signal=y.signal),l&&l(y);const p=J(f,y),{data:s,response:d,error:u}=await Q("GET",r,{params:e,configs:t,headers:n,responseType:a,meta:o,requestInterceptor:i,responseInterceptor:c});return clearTimeout(p),{data:s,response:d,error:u,meta:o}}async function Ir(r,{params:e,configs:t={},headers:n,meta:a={},timeout:o,requestInterceptor:f=void 0,responseInterceptor:i=void 0}={},c){const l=j();l instanceof AbortController&&(t.signal=l.signal),c&&c(l);const y=J(o,l),{data:p,response:s,error:d}=await Q("HEAD",r,{params:e,configs:t,headers:n,meta:a,requestInterceptor:f,responseInterceptor:i});return clearTimeout(y),{data:p,response:s,error:d,meta:a}}async function Tr(r,{body:e={},params:t,configs:n={},headers:a={},responseType:o,meta:f={},timeout:i,requestInterceptor:c=void 0,responseInterceptor:l=void 0}={},y){const p=j();p instanceof AbortController&&(n.signal=p.signal),y&&y(p);const s=J(i,p),{data:d,response:u,error:m}=await Q("POST",r,{params:t,configs:n,body:e,headers:a,responseType:o,meta:f,requestInterceptor:c,responseInterceptor:l});return clearTimeout(s),{data:d,response:u,error:m,meta:f}}async function Rr(r,{body:e={},params:t,configs:n={},headers:a={},responseType:o,meta:f={},timeout:i,requestInterceptor:c=void 0,responseInterceptor:l=void 0}={},y){const p=j();p instanceof AbortController&&(n.signal=p.signal),y&&y(p);const s=J(i,p),{data:d,response:u,error:m}=await Q("PUT",r,{params:t,configs:n,body:e,headers:a,responseType:o,meta:f,requestInterceptor:c,responseInterceptor:l});return clearTimeout(s),{data:d,response:u,error:m,meta:f}}async function xr(r,{body:e={},params:t,configs:n={},headers:a={},responseType:o,meta:f={},timeout:i,requestInterceptor:c=void 0,responseInterceptor:l=void 0}={},y){const p=j();p instanceof AbortController&&(n.signal=p.signal),y&&y(p);const s=J(i,p),{data:d,response:u,error:m}=await Q("DELETE",r,{params:t,configs:n,body:e,headers:a,responseType:o,meta:f,requestInterceptor:c,responseInterceptor:l});return clearTimeout(s),{data:d,response:u,error:m,meta:f}}async function Nr(r,{body:e={},params:t,configs:n={},headers:a={},responseType:o,meta:f={},timeout:i,requestInterceptor:c=void 0,responseInterceptor:l=void 0}={},y){const p=j();p instanceof AbortController&&(n.signal=p.signal),y&&y(p);const s=J(i,p),{data:d,response:u,error:m}=await Q("PATCH",r,{params:t,configs:n,body:e,headers:a,responseType:o,meta:f,requestInterceptor:c,responseInterceptor:l});return clearTimeout(s),{data:d,response:u,error:m,meta:f}}const Mn={POST:Tr,GET:Fr,DELETE:xr,PUT:Rr,PATCH:Nr,HEAD:Ir};h.DELETE=xr,h.GET=Fr,h.HEAD=Ir,h.PATCH=Nr,h.POST=Tr,h.PUT=Rr,h.default=Mn,h.defineConfigs=wr,h.defineHeaders=Pr,h.getParamsFromString=Or,h.globalConfigs=Er,h.globalHeaders=$r,h.isBrowser=$n,h.nop=Rn,h.replaceParamsInString=Tn,h.serializeObject=In,h.setInterceptors=Nn,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});