UNPKG

leereq

Version:

能自动取消重复请求的axios封装

1 lines 249 kB
import util from"util";import stream from"stream";import path from"path";import http from"http";import https from"https";import url from"url";import fs from"fs";import assert from"assert";import tty from"tty";import os from"os";import zlib from"zlib";import EventEmitter from"events";var shams=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"!=typeof Symbol.iterator){var e={},a=Symbol("test"),i=Object(a);if("string"==typeof a)return!1;if("[object Symbol]"!==Object.prototype.toString.call(a))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(a in e[a]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==a)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,a))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){i=Object.getOwnPropertyDescriptor(e,a);if(42!==i.value||!0!==i.enumerable)return!1}}return!0},origSymbol="undefined"!=typeof Symbol&&Symbol,hasSymbols$1=function(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&shams()},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation=function(a){var i=this;if("function"!=typeof i||toStr$1.call(i)!==funcType)throw new TypeError(ERROR_MESSAGE+i);for(var n,e,o=slice.call(arguments,1),s=Math.max(0,i.length-o.length),t=[],r=0;r<s;r++)t.push("$"+r);return n=Function("binder","return function ("+t.join(",")+"){ return binder.apply(this,arguments); }")(function(){var e;return this instanceof n?(e=i.apply(this,o.concat(slice.call(arguments))),Object(e)===e?e:this):i.apply(a,o.concat(slice.call(arguments)))}),i.prototype&&((e=function(){}).prototype=i.prototype,n.prototype=new e,e.prototype=null),n},functionBind=Function.prototype.bind||implementation,src$1=functionBind.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function(e){try{return $Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch(e){$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(e){try{return $gOPD(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function(e){return e.__proto__},needsEval={},TypedArray="undefined"==typeof Uint8Array?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":"undefined"==typeof AggregateError?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":"undefined"==typeof Atomics?undefined$1:Atomics,"%BigInt%":"undefined"==typeof BigInt?undefined$1:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?undefined$1:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?undefined$1:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":"undefined"==typeof Int8Array?undefined$1:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?undefined$1:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":"object"==typeof JSON?JSON:undefined$1,"%Map%":"undefined"==typeof Map?undefined$1:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&hasSymbols?getProto((new Map)[Symbol.iterator]()):undefined$1,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?undefined$1:Promise,"%Proxy%":"undefined"==typeof Proxy?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?undefined$1:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&hasSymbols?getProto((new Set)[Symbol.iterator]()):undefined$1,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":"undefined"==typeof Uint8Array?undefined$1:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?undefined$1:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?undefined$1:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?undefined$1:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?undefined$1:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?undefined$1:WeakSet},doEval=function e(a){var i,n;return"%AsyncFunction%"===a?i=getEvalledConstructor("async function () {}"):"%GeneratorFunction%"===a?i=getEvalledConstructor("function* () {}"):"%AsyncGeneratorFunction%"===a?i=getEvalledConstructor("async function* () {}"):"%AsyncGenerator%"===a?(n=e("%AsyncGeneratorFunction%"))&&(i=n.prototype):"%AsyncIteratorPrototype%"===a&&(n=e("%AsyncGenerator%"))&&(i=getProto(n.prototype)),INTRINSICS[a]=i},LEGACY_ALIASES={"%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"]},$concat$1=functionBind.call(Function.call,Array.prototype.concat),$spliceApply=functionBind.call(Function.apply,Array.prototype.splice),$replace$1=functionBind.call(Function.call,String.prototype.replace),$strSlice=functionBind.call(Function.call,String.prototype.slice),$exec=functionBind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(e){var a=$strSlice(e,0,1),i=$strSlice(e,-1);if("%"===a&&"%"!==i)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==a)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var o=[];return $replace$1(e,rePropName,function(e,a,i,n){o[o.length]=i?$replace$1(n,reEscapeChar,"$1"):a||e}),o},getBaseIntrinsic=function(e,a){var i,n=e;if(src$1(LEGACY_ALIASES,n)&&(n="%"+(i=LEGACY_ALIASES[n])[0]+"%"),src$1(INTRINSICS,n)){var o=INTRINSICS[n];if(void 0!==(o=o===needsEval?doEval(n):o)||a)return{alias:i,name:n,value:o};throw new $TypeError$1("intrinsic "+e+" exists, but is not available. Please file an issue!")}throw new $SyntaxError("intrinsic "+e+" does not exist!")},getIntrinsic=function(e,a){if("string"!=typeof e||0===e.length)throw new $TypeError$1("intrinsic name must be a non-empty string");if(1<arguments.length&&"boolean"!=typeof a)throw new $TypeError$1('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,e))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=stringToPath(e),n=0<i.length?i[0]:"",o=getBaseIntrinsic("%"+n+"%",a),s=(o.name,o.value),t=!1,o=o.alias;o&&(n=o[0],$spliceApply(i,$concat$1([0,1],o)));for(var r=1,c=!0;r<i.length;r+=1){var p=i[r],l=$strSlice(p,0,1),u=$strSlice(p,-1);if(('"'===l||"'"===l||"`"===l||'"'===u||"'"===u||"`"===u)&&l!==u)throw new $SyntaxError("property names with quotes must have matching quotes");if("constructor"!==p&&c||(t=!0),src$1(INTRINSICS,l="%"+(n+="."+p)+"%"))s=INTRINSICS[l];else if(null!=s){if(!(p in s)){if(a)return;throw new $TypeError$1("base intrinsic for "+e+" exists, but the property is not available.")}s=$gOPD&&r+1>=i.length?(c=!!(u=$gOPD(s,p)))&&"get"in u&&!("originalValue"in u.get)?u.get:s[p]:(c=src$1(s,p),s[p]),c&&!t&&(INTRINSICS[l]=s)}}return s};function createCommonjsModule(e,a){return e(a={exports:{}},a.exports),a.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var callBind=createCommonjsModule(function(e){var a=getIntrinsic("%Function.prototype.apply%"),i=getIntrinsic("%Function.prototype.call%"),n=getIntrinsic("%Reflect.apply%",!0)||functionBind.call(i,a),o=getIntrinsic("%Object.getOwnPropertyDescriptor%",!0),s=getIntrinsic("%Object.defineProperty%",!0),t=getIntrinsic("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var a=n(functionBind,i,arguments);return o&&s&&o(a,"length").configurable&&s(a,"length",{value:1+t(0,e.length-(arguments.length-1))}),a};function r(){return n(functionBind,a,arguments)}s?s(e.exports,"apply",{value:r}):e.exports.apply=r}),$indexOf=(callBind.apply,callBind(getIntrinsic("String.prototype.indexOf"))),callBound=function(e,a){a=getIntrinsic(e,!!a);return"function"==typeof a&&-1<$indexOf(e,".prototype.")?callBind(a):a},util_inspect=util.inspect,utilInspect=util_inspect,hasMap="function"==typeof Map&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&"function"==typeof mapSizeDescriptor.get?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet="function"==typeof Set&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&"function"==typeof setSizeDescriptor.get?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap="function"==typeof WeakMap&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet="function"==typeof WeakSet&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef="function"==typeof WeakRef&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf="function"==typeof BigInt?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,hasShammedSymbols="function"==typeof Symbol&&"object"==typeof Symbol.iterator,toStringTag="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=("function"==typeof Reflect?Reflect:Object).getPrototypeOf||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,a){if(e===1/0||e===-1/0||e!=e||e&&-1e3<e&&e<1e3||$test.call(/e/,a))return a;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-$floor(-e):$floor(e);if(n!==e)return e=String(n),n=$slice.call(a,e.length+1),$replace.call(e,i,"$&_")+"."+$replace.call($replace.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}return $replace.call(a,i,"$&_")}var inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function n(i,e,o,s){var t=e||{};if(has$3(t,"quoteStyle")&&"single"!==t.quoteStyle&&"double"!==t.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(t,"maxStringLength")&&("number"==typeof t.maxStringLength?t.maxStringLength<0&&t.maxStringLength!==1/0:null!==t.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');e=!has$3(t,"customInspect")||t.customInspect;if("boolean"!=typeof e&&"symbol"!==e)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(t,"indent")&&null!==t.indent&&"\t"!==t.indent&&!(parseInt(t.indent,10)===t.indent&&0<t.indent))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(t,"numericSeparator")&&"boolean"!=typeof t.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=t.numericSeparator;if(void 0===i)return"undefined";if(null===i)return"null";if("boolean"==typeof i)return i?"true":"false";if("string"==typeof i)return inspectString(i,t);if("number"==typeof i)return 0===i?0<1/0/i?"0":"-0":(u=String(i),a?addNumericSeparator(i,u):u);if("bigint"==typeof i)return u=String(i)+"n",a?addNumericSeparator(i,u):u;a=void 0===t.depth?5:t.depth;if(a<=(o=void 0===o?0:o)&&0<a&&"object"==typeof i)return isArray$4(i)?"[Array]":"[Object]";var r,c,p,l,u=getIndent(t,o);if(void 0===s)s=[];else if(0<=indexOf(s,i))return"[Circular]";function d(e,a,i){return a&&(s=$arrSlice.call(s)).push(a),i?(a={depth:t.depth},has$3(t,"quoteStyle")&&(a.quoteStyle=t.quoteStyle),n(e,a,o+1,s)):n(e,t,o+1,s)}if("function"==typeof i&&!isRegExp$2(i))return"[Function"+((p=nameOf(i))?": "+p:" (anonymous)")+"]"+(0<(p=arrObjKeys(i,d)).length?" { "+$join.call(p,", ")+" }":"");if(isSymbol(i))return p=hasShammedSymbols?$replace.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(i),"object"!=typeof i||hasShammedSymbols?p:markBoxed(p);if(isElement(i)){for(var m="<"+$toLowerCase.call(String(i.nodeName)),f=i.attributes||[],x=0;x<f.length;x++)m+=" "+f[x].name+"="+wrapQuotes(quote(f[x].value),"double",t);return m+=">",i.childNodes&&i.childNodes.length&&(m+="..."),m+="</"+$toLowerCase.call(String(i.nodeName))+">"}if(isArray$4(i))return 0===i.length?"[]":(p=arrObjKeys(i,d),u&&!singleLineValues(p)?"["+indentedJoin(p,u)+"]":"[ "+$join.call(p,", ")+" ]");if(isError(i))return p=arrObjKeys(i,d),"cause"in Error.prototype||!("cause"in i)||isEnumerable.call(i,"cause")?0===p.length?"["+String(i)+"]":"{ ["+String(i)+"] "+$join.call(p,", ")+" }":"{ ["+String(i)+"] "+$join.call($concat.call("[cause]: "+d(i.cause),p),", ")+" }";if("object"==typeof i&&e){if(inspectSymbol&&"function"==typeof i[inspectSymbol]&&utilInspect)return utilInspect(i,{depth:a-o});if("symbol"!==e&&"function"==typeof i.inspect)return i.inspect()}return isMap(i)?(r=[],mapForEach.call(i,function(e,a){r.push(d(a,i,!0)+" => "+d(e,i))}),collectionOf("Map",mapSize.call(i),r,u)):isSet(i)?(c=[],setForEach.call(i,function(e){c.push(d(e,i))}),collectionOf("Set",setSize.call(i),c,u)):isWeakMap(i)?weakCollectionOf("WeakMap"):isWeakSet(i)?weakCollectionOf("WeakSet"):isWeakRef(i)?weakCollectionOf("WeakRef"):isNumber$1(i)?markBoxed(d(Number(i))):isBigInt(i)?markBoxed(d(bigIntValueOf.call(i))):isBoolean$1(i)?markBoxed(booleanValueOf.call(i)):isString$2(i)?markBoxed(d(String(i))):isDate$1(i)||isRegExp$2(i)?String(i):(p=arrObjKeys(i,d),a=gPO?gPO(i)===Object.prototype:i instanceof Object||i.constructor===Object,e=i instanceof Object?"":"null prototype",l=!a&&toStringTag&&Object(i)===i&&toStringTag in i?$slice.call(toStr(i),8,-1):e?"Object":"",a=(!a&&"function"==typeof i.constructor&&i.constructor.name?i.constructor.name+" ":"")+(l||e?"["+$join.call($concat.call([],l||[],e||[]),": ")+"] ":""),0===p.length?a+"{}":u?a+"{"+indentedJoin(p,u)+"}":a+"{ "+$join.call(p,", ")+" }")};function wrapQuotes(e,a,i){i="double"===(i.quoteStyle||a)?'"':"'";return i+e+i}function quote(e){return $replace.call(String(e),/"/g,"&quot;")}function isArray$4(e){return!("[object Array]"!==toStr(e)||toStringTag&&"object"==typeof e&&toStringTag in e)}function isDate$1(e){return!("[object Date]"!==toStr(e)||toStringTag&&"object"==typeof e&&toStringTag in e)}function isRegExp$2(e){return!("[object RegExp]"!==toStr(e)||toStringTag&&"object"==typeof e&&toStringTag in e)}function isError(e){return!("[object Error]"!==toStr(e)||toStringTag&&"object"==typeof e&&toStringTag in e)}function isString$2(e){return!("[object String]"!==toStr(e)||toStringTag&&"object"==typeof e&&toStringTag in e)}function isNumber$1(e){return!("[object Number]"!==toStr(e)||toStringTag&&"object"==typeof e&&toStringTag in e)}function isBoolean$1(e){return!("[object Boolean]"!==toStr(e)||toStringTag&&"object"==typeof e&&toStringTag in e)}function isSymbol(e){if(hasShammedSymbols)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(e&&"object"==typeof e&&symToString)try{return symToString.call(e),!0}catch(e){}return!1}function isBigInt(e){if(e&&"object"==typeof e&&bigIntValueOf)try{return bigIntValueOf.call(e),!0}catch(e){}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(e){return e in this};function has$3(e,a){return hasOwn.call(e,a)}function toStr(e){return objectToString.call(e)}function nameOf(e){return e.name||((e=$match.call(functionToString.call(e),/^function\s*([\w$]+)/))?e[1]:null)}function indexOf(e,a){if(e.indexOf)return e.indexOf(a);for(var i=0,n=e.length;i<n;i++)if(e[i]===a)return i;return-1}function isMap(e){if(mapSize&&e&&"object"==typeof e)try{mapSize.call(e);try{setSize.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}function isWeakMap(e){if(weakMapHas&&e&&"object"==typeof e)try{weakMapHas.call(e,weakMapHas);try{weakSetHas.call(e,weakSetHas)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}function isWeakRef(e){if(weakRefDeref&&e&&"object"==typeof e)try{return weakRefDeref.call(e),!0}catch(e){}return!1}function isSet(e){if(setSize&&e&&"object"==typeof e)try{setSize.call(e);try{mapSize.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}function isWeakSet(e){if(weakSetHas&&e&&"object"==typeof e)try{weakSetHas.call(e,weakSetHas);try{weakMapHas.call(e,weakMapHas)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}function isElement(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}function inspectString(e,a){var i;return e.length>a.maxStringLength?(i="... "+(i=e.length-a.maxStringLength)+" more character"+(1<i?"s":""),inspectString($slice.call(e,0,a.maxStringLength),a)+i):wrapQuotes($replace.call($replace.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",a)}function lowbyte(e){var e=e.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return a?"\\"+a:"\\x"+(e<16?"0":"")+$toUpperCase.call(e.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,a,i,n){return e+" ("+a+") {"+(n?indentedJoin(i,n):$join.call(i,", "))+"}"}function singleLineValues(e){for(var a=0;a<e.length;a++)if(0<=indexOf(e[a],"\n"))return!1;return!0}function getIndent(e,a){var i;if("\t"===e.indent)i="\t";else{if(!("number"==typeof e.indent&&0<e.indent))return null;i=$join.call(Array(e.indent+1)," ")}return{base:i,prev:$join.call(Array(a+1),i)}}function indentedJoin(e,a){var i;return 0===e.length?"":(i="\n"+a.prev+a.base)+$join.call(e,","+i)+"\n"+a.prev}function arrObjKeys(e,a){var i=isArray$4(e),n=[];if(i){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=has$3(e,o)?a(e[o],e):""}var s,t="function"==typeof gOPS?gOPS(e):[];if(hasShammedSymbols)for(var r={},c=0;c<t.length;c++)r["$"+t[c]]=t[c];for(s in e)!has$3(e,s)||i&&String(Number(s))===s&&s<e.length||hasShammedSymbols&&r["$"+s]instanceof Symbol||($test.call(/[^\w$]/,s)?n.push(a(s,e)+": "+a(e[s],e)):n.push(s+": "+a(e[s],e)));if("function"==typeof gOPS)for(var p=0;p<t.length;p++)isEnumerable.call(e,t[p])&&n.push("["+a(t[p])+"]: "+a(e[t[p]],e));return n}var inspect=objectInspect,$TypeError=getIntrinsic("%TypeError%"),$WeakMap=getIntrinsic("%WeakMap%",!0),$Map=getIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(e,a){for(var i,n=e;null!==(i=n.next);n=i)if(i.key===a)return n.next=i.next,i.next=e.next,e.next=i},listGet=function(e,a){e=listGetNode(e,a);return e&&e.value},listSet=function(e,a,i){var n=listGetNode(e,a);n?n.value=i:e.next={key:a,next:e.next,value:i}},listHas=function(e,a){return!!listGetNode(e,a)},sideChannel=function(){var i,n,o,a={assert:function(e){if(!a.has(e))throw new $TypeError("Side channel does not contain "+inspect(e))},get:function(e){if($WeakMap&&e&&("object"==typeof e||"function"==typeof e)){if(i)return $weakMapGet(i,e)}else if($Map){if(n)return $mapGet(n,e)}else if(o)return listGet(o,e)},has:function(e){if($WeakMap&&e&&("object"==typeof e||"function"==typeof e)){if(i)return $weakMapHas(i,e)}else if($Map){if(n)return $mapHas(n,e)}else if(o)return listHas(o,e);return!1},set:function(e,a){$WeakMap&&e&&("object"==typeof e||"function"==typeof e)?(i=i||new $WeakMap,$weakMapSet(i,e,a)):$Map?(n=n||new $Map,$mapSet(n,e,a)):listSet(o=o||{key:{},next:null},e,a)}};return a},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats={default:Format.RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},has$2=Object.prototype.hasOwnProperty,isArray$3=Array.isArray,hexTable=function(){for(var e=[],a=0;a<256;++a)e.push("%"+((a<16?"0":"")+a.toString(16)).toUpperCase());return e}(),compactQueue=function(e){for(;1<e.length;){var a=e.pop(),i=a.obj[a.prop];if(isArray$3(i)){for(var n=[],o=0;o<i.length;++o)void 0!==i[o]&&n.push(i[o]);a.obj[a.prop]=n}}},arrayToObject$1=function(e,a){for(var i=a&&a.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(i[n]=e[n]);return i},merge$1=function n(o,s,t){if(!s)return o;if("object"!=typeof s){if(isArray$3(o))o.push(s);else{if(!o||"object"!=typeof o)return[o,s];(t&&(t.plainObjects||t.allowPrototypes)||!has$2.call(Object.prototype,s))&&(o[s]=!0)}return o}var e;return o&&"object"==typeof o?(isArray$3(e=o)&&!isArray$3(s)&&(e=arrayToObject$1(o,t)),isArray$3(o)&&isArray$3(s)?(s.forEach(function(e,a){var i;has$2.call(o,a)?(i=o[a])&&"object"==typeof i&&e&&"object"==typeof e?o[a]=n(i,e,t):o.push(e):o[a]=e}),o):Object.keys(s).reduce(function(e,a){var i=s[a];return has$2.call(e,a)?e[a]=n(e[a],i,t):e[a]=i,e},e)):[o].concat(s)},assign=function(e,i){return Object.keys(i).reduce(function(e,a){return e[a]=i[a],e},e)},decode=function(a,e,i){a=a.replace(/\+/g," ");if("iso-8859-1"===i)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(e){return a}},encode$2=function(e,a,i,n,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===i)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var t="",r=0;r<s.length;++r){var c=s.charCodeAt(r);45===c||46===c||95===c||126===c||48<=c&&c<=57||65<=c&&c<=90||97<=c&&c<=122||o===formats.RFC1738&&(40===c||41===c)?t+=s.charAt(r):c<128?t+=hexTable[c]:c<2048?t+=hexTable[192|c>>6]+hexTable[128|63&c]:c<55296||57344<=c?t+=hexTable[224|c>>12]+hexTable[128|c>>6&63]+hexTable[128|63&c]:(r+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(r)),t+=hexTable[240|c>>18]+hexTable[128|c>>12&63]+hexTable[128|c>>6&63]+hexTable[128|63&c])}return t},compact=function(e){for(var a=[{obj:{o:e},prop:"o"}],i=[],n=0;n<a.length;++n)for(var o=a[n],s=o.obj[o.prop],t=Object.keys(s),r=0;r<t.length;++r){var c=t[r],p=s[c];"object"==typeof p&&null!==p&&-1===i.indexOf(p)&&(a.push({obj:s,prop:c}),i.push(p))}return compactQueue(a),e},isRegExp$1=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},isBuffer$2=function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},combine=function(e,a){return[].concat(e,a)},maybeMap=function(e,a){if(isArray$3(e)){for(var i=[],n=0;n<e.length;n+=1)i.push(a(e[n]));return i}return a(e)},utils$1={arrayToObject:arrayToObject$1,assign:assign,combine:combine,compact:compact,decode:decode,encode:encode$2,isBuffer:isBuffer$2,isRegExp:isRegExp$1,maybeMap:maybeMap,merge:merge$1},has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,a){return e+"["+a+"]"},repeat:function(e){return e}},isArray$2=Array.isArray,split=String.prototype.split,push=Array.prototype.push,pushToArray=function(e,a){push.apply(e,isArray$2(a)?a:[a])},toISO=Date.prototype.toISOString,defaultFormat=formats.default,defaults$3={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$1.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:!1,serializeDate:function(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},sentinel={},stringify=function e(a,i,n,o,s,t,r,c,p,l,u,d,m,f,x,v){for(var h=a,b=v,g=0,y=!1;void 0!==(b=b.get(sentinel))&&!y;){var w=b.get(a);if(g+=1,void 0!==w){if(w===g)throw new RangeError("Cyclic object value");y=!0}void 0===b.get(sentinel)&&(g=0)}if("function"==typeof c?h=c(i,h):h instanceof Date?h=u(h):"comma"===n&&isArray$2(h)&&(h=utils$1.maybeMap(h,function(e){return e instanceof Date?u(e):e})),null===h){if(s)return r&&!f?r(i,defaults$3.encoder,x,"key",d):i;h=""}if(isNonNullishPrimitive(h)||utils$1.isBuffer(h)){if(r){var S=f?i:r(i,defaults$3.encoder,x,"key",d);if("comma"===n&&f){for(var k=split.call(String(h),","),j="",E=0;E<k.length;++E)j+=(0===E?"":",")+m(r(k[E],defaults$3.encoder,x,"value",d));return[m(S)+(o&&isArray$2(h)&&1===k.length?"[]":"")+"="+j]}return[m(S)+"="+m(r(h,defaults$3.encoder,x,"value",d))]}return[m(i)+"="+m(String(h))]}var O=[];if(void 0!==h)for(var A="comma"===n&&isArray$2(h)?[{value:0<h.length?h.join(",")||null:void 0}]:isArray$2(c)?c:(S=Object.keys(h),p?S.sort(p):S),A,_=o&&isArray$2(h)&&1===h.length?i+"[]":i,R=0;R<A.length;++R){var C,$=A[R],T="object"==typeof $&&void 0!==$.value?$.value:h[$];t&&null===T||($=isArray$2(h)?"function"==typeof n?n(_,$):_:_+(l?"."+$:"["+$+"]"),v.set(a,g),(C=sideChannel()).set(sentinel,v),pushToArray(O,e(T,$,n,o,s,t,r,c,p,l,u,d,m,f,x,C)))}return O},normalizeStringifyOptions=function(e){if(!e)return defaults$3;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var a=e.charset||defaults$3.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=formats.default;if(void 0!==e.format){if(!has$1.call(formats.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var n=formats.formatters[i],o=defaults$3.filter;return"function"!=typeof e.filter&&!isArray$2(e.filter)||(o=e.filter),{addQueryPrefix:("boolean"==typeof e.addQueryPrefix?e:defaults$3).addQueryPrefix,allowDots:void 0===e.allowDots?defaults$3.allowDots:!!e.allowDots,charset:a,charsetSentinel:("boolean"==typeof e.charsetSentinel?e:defaults$3).charsetSentinel,delimiter:(void 0===e.delimiter?defaults$3:e).delimiter,encode:("boolean"==typeof e.encode?e:defaults$3).encode,encoder:("function"==typeof e.encoder?e:defaults$3).encoder,encodeValuesOnly:("boolean"==typeof e.encodeValuesOnly?e:defaults$3).encodeValuesOnly,filter:o,format:i,formatter:n,serializeDate:("function"==typeof e.serializeDate?e:defaults$3).serializeDate,skipNulls:("boolean"==typeof e.skipNulls?e:defaults$3).skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:("boolean"==typeof e.strictNullHandling?e:defaults$3).strictNullHandling}},stringify_1=function(e,a){var i=e,n=normalizeStringifyOptions(a),o=("function"==typeof n.filter?i=(0,n.filter)("",i):isArray$2(n.filter)&&(r=n.filter),[]);if("object"!=typeof i||null===i)return"";var e=a&&a.arrayFormat in arrayPrefixGenerators?a.arrayFormat:!(a&&"indices"in a)||a.indices?"indices":"repeat",s=arrayPrefixGenerators[e];if(a&&"commaRoundTrip"in a&&"boolean"!=typeof a.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var t="comma"===s&&a&&a.commaRoundTrip,r=r||Object.keys(i);n.sort&&r.sort(n.sort);for(var c=sideChannel(),p=0;p<r.length;++p){var l=r[p];n.skipNulls&&null===i[l]||pushToArray(o,stringify(i[l],l,s,t,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,c))}e=o.join(n.delimiter),a=!0===n.addQueryPrefix?"?":"";return n.charsetSentinel&&("iso-8859-1"===n.charset?a+="utf8=%26%2310003%3B&":a+="utf8=%E2%9C%93&"),0<e.length?a+e:""},has=Object.prototype.hasOwnProperty,isArray$1=Array.isArray,defaults$2={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$1.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(e,a){return String.fromCharCode(parseInt(a,10))})},parseArrayValue=function(e,a){return e&&"string"==typeof e&&a.comma&&-1<e.indexOf(",")?e.split(","):e},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(e,a){var i,n,o,s,t={},e=a.ignoreQueryPrefix?e.replace(/^\?/,""):e,r=a.parameterLimit===1/0?void 0:a.parameterLimit,c=e.split(a.delimiter,r),p=-1,l=a.charset;if(a.charsetSentinel)for(i=0;i<c.length;++i)0===c[i].indexOf("utf8=")&&(c[i]===charsetSentinel?l="utf-8":c[i]===isoSentinel&&(l="iso-8859-1"),p=i,i=c.length);for(i=0;i<c.length;++i)i!==p&&((s=-1===(s=-1===(s=(n=c[i]).indexOf("]="))?n.indexOf("="):s+1)?(o=a.decoder(n,defaults$2.decoder,l,"key"),a.strictNullHandling?null:""):(o=a.decoder(n.slice(0,s),defaults$2.decoder,l,"key"),utils$1.maybeMap(parseArrayValue(n.slice(s+1),a),function(e){return a.decoder(e,defaults$2.decoder,l,"value")})))&&a.interpretNumericEntities&&"iso-8859-1"===l&&(s=interpretNumericEntities(s)),-1<n.indexOf("[]=")&&(s=isArray$1(s)?[s]:s),has.call(t,o)?t[o]=utils$1.combine(t[o],s):t[o]=s);return t},parseObject=function(e,a,i,n){for(var o=n?a:parseArrayValue(a,i),s=e.length-1;0<=s;--s){var t,r,c,p=e[s];"[]"===p&&i.parseArrays?t=[].concat(o):(t=i.plainObjects?Object.create(null):{},r="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,c=parseInt(r,10),i.parseArrays||""!==r?!isNaN(c)&&p!==r&&String(c)===r&&0<=c&&i.parseArrays&&c<=i.arrayLimit?(t=[])[c]=o:"__proto__"!==r&&(t[r]=o):t={0:o}),o=t}return o},parseKeys=function(e,a,i,n){if(e){var o=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,t=0<i.depth&&/(\[[^[\]]*])/.exec(o),e=t?o.slice(0,t.index):o,r=[];if(e){if(!i.plainObjects&&has.call(Object.prototype,e)&&!i.allowPrototypes)return;r.push(e)}for(var c=0;0<i.depth&&null!==(t=s.exec(o))&&c<i.depth;){if(c+=1,!i.plainObjects&&has.call(Object.prototype,t[1].slice(1,-1))&&!i.allowPrototypes)return;r.push(t[1])}return t&&r.push("["+o.slice(t.index)+"]"),parseObject(r,a,i,n)}},normalizeParseOptions=function(e){if(!e)return defaults$2;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=(void 0===e.charset?defaults$2:e).charset;return{allowDots:void 0===e.allowDots?defaults$2.allowDots:!!e.allowDots,allowPrototypes:("boolean"==typeof e.allowPrototypes?e:defaults$2).allowPrototypes,allowSparse:("boolean"==typeof e.allowSparse?e:defaults$2).allowSparse,arrayLimit:("number"==typeof e.arrayLimit?e:defaults$2).arrayLimit,charset:a,charsetSentinel:("boolean"==typeof e.charsetSentinel?e:defaults$2).charsetSentinel,comma:("boolean"==typeof e.comma?e:defaults$2).comma,decoder:("function"==typeof e.decoder?e:defaults$2).decoder,delimiter:("string"==typeof e.delimiter||utils$1.isRegExp(e.delimiter)?e:defaults$2).delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:defaults$2.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:("boolean"==typeof e.interpretNumericEntities?e:defaults$2).interpretNumericEntities,parameterLimit:("number"==typeof e.parameterLimit?e:defaults$2).parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:("boolean"==typeof e.plainObjects?e:defaults$2).plainObjects,strictNullHandling:("boolean"==typeof e.strictNullHandling?e:defaults$2).strictNullHandling}},parse$1=function(e,a){var i=normalizeParseOptions(a);if(""===e||null==e)return i.plainObjects?Object.create(null):{};for(var n="string"==typeof e?parseValues(e,i):e,o=i.plainObjects?Object.create(null):{},s=Object.keys(n),t=0;t<s.length;++t)var r=s[t],r=parseKeys(r,n[r],i,"string"==typeof e),o=utils$1.merge(o,r,i);return!0===i.allowSparse?o:utils$1.compact(o)},lib={formats:formats,parse:parse$1,stringify:stringify_1};function bind(e,a){return function(){return e.apply(a,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(a=>e=>{e=toString.call(e);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=a=>(a=a.toLowerCase(),e=>kindOf(e)===a),typeOfTest=a=>e=>typeof e===a,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let a;return a="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer)}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isBoolean=e=>!0===e||!1===e,isPlainObject=e=>{var a;return"object"===kindOf(e)&&!(null!==(a=getPrototypeOf(e))&&a!==Object.prototype&&null!==Object.getPrototypeOf(a)||Symbol.toStringTag in e||Symbol.iterator in e)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction$1(e.pipe),isFormData=e=>{var a="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||toString.call(e)===a||isFunction$1(e.toString)&&e.toString()===a)},isURLSearchParams=kindOfTest("URLSearchParams"),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(a,i,{allOwnKeys:n=!1}={}){if(null!=a){let e;var o;if("object"!=typeof a&&(a=[a]),isArray(a))for(e=0,o=a.length;e<o;e++)i.call(null,a[e],e,a);else{var s,t=n?Object.getOwnPropertyNames(a):Object.keys(a),r=t.length;for(e=0;e<r;e++)s=t[e],i.call(null,a[s],s,a)}}}function findKey(e,a){a=a.toLowerCase();var i,n=Object.keys(e);let o=n.length;for(;0<o--;)if(a===(i=n[o]).toLowerCase())return i;return null}const _global="undefined"==typeof self?"undefined"==typeof global?void 0:global:self,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const i=(isContextDefined(this)&&this||{})["caseless"],n={};var o=(e,a)=>{a=i&&findKey(n,a)||a;isPlainObject(n[a])&&isPlainObject(e)?n[a]=merge(n[a],e):isPlainObject(e)?n[a]=merge({},e):isArray(e)?n[a]=e.slice():n[a]=e};for(let e=0,a=arguments.length;e<a;e++)arguments[e]&&forEach(arguments[e],o);return n}const extend=(i,e,n,{allOwnKeys:a}={})=>(forEach(e,(e,a)=>{n&&isFunction$1(e)?i[a]=bind(e,n):i[a]=e},{allOwnKeys:a}),i),stripBOM=e=>e=65279===e.charCodeAt(0)?e.slice(1):e,inherits=(e,a,i,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject=(e,a,i,n)=>{var o,s;let t;var r={};if(a=a||{},null!=e)do{for(o=Object.getOwnPropertyNames(e),t=o.length;0<t--;)s=o[t],n&&!n(s,e,a)||r[s]||(a[s]=e[s],r[s]=!0)}while((e=!1!==i&&getPrototypeOf(e))&&(!i||i(e,a))&&e!==Object.prototype);return a},endsWith=(e,a,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=a.length;e=e.indexOf(a,i);return-1!==e&&e===i},toArray=e=>{if(!e)return null;if(isArray(e))return e;let a=e.length;if(!isNumber(a))return null;for(var i=new Array(a);0<a--;)i[a]=e[a];return i},isTypedArray=(a=>e=>a&&e instanceof a)("undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array)),forEachEntry=(e,a)=>{for(var i=(e&&e[Symbol.iterator]).call(e);(n=i.next())&&!n.done;){var n=n.value;a.call(e,n[0],n[1])}},matchAll=(e,a)=>{for(var i,n=[];null!==(i=e.exec(a));)n.push(i);return n},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(e,a,i){return a.toUpperCase()+i}),hasOwnProperty=(({hasOwnProperty:i})=>(e,a)=>i.call(e,a))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(i,n)=>{var e=Object.getOwnPropertyDescriptors(i);const o={};forEach(e,(e,a)=>{!1!==n(e,a,i)&&(o[a]=e)}),Object.defineProperties(i,o)},freezeMethods=n=>{reduceDescriptors(n,(e,a)=>{if(isFunction$1(n)&&-1!==["arguments","caller","callee"].indexOf(a))return!1;var i=n[a];isFunction$1(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")}))})},toObjectSet=(e,a)=>{const i={};var n=e=>{e.forEach(e=>{i[e]=!0})};return isArray(e)?n(e):n(String(e).split(a)),i},noop$1=()=>{},toFiniteNumber=(e,a)=>(e=+e,Number.isFinite(e)?e:a),toJSONObject=e=>{const a=new Array(10),o=(e,i)=>{if(isObject(e)){if(0<=a.indexOf(e))return;if(!("toJSON"in e)){a[i]=e;const n=isArray(e)?[]:{};return forEach(e,(e,a)=>{e=o(e,i+1);isUndefined(e)||(n[a]=e)}),a[i]=void 0,n}}return e};return o(e,0)};var utils={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString$1,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop$1,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,toJSONObject:toJSONObject};function AxiosError(e,a,i,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",a&&(this.code=a),i&&(this.config=i),n&&(this.request=n),o&&(this.response=o)}utils.inherits(AxiosError,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:utils.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["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=>{descriptors[e]={value:e}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(e,a,i,n,o,s)=>{var t=Object.create(prototype$1);return utils.toFlatObject(e,t,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),AxiosError.call(t,e.message,a,i,n,o),t.cause=e,t.name=e.name,s&&Object.assign(t,s),t};var Stream$2=stream.Stream,delayed_stream=DelayedStream;function DelayedStream(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}util.inherits(DelayedStream,Stream$2),DelayedStream.create=function(e,a){var i,n=new this;for(i in a=a||{})n[i]=a[i];var o=(n.source=e).emit;return e.emit=function(){return n._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(DelayedStream.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},DelayedStream.prototype.resume=function(){this._released||this.release(),this.source.resume()},DelayedStream.prototype.pause=function(){this.source.pause()},DelayedStream.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},DelayedStream.prototype.pipe=function(){var e=Stream$2.prototype.pipe.apply(this,arguments);return this.resume(),e},DelayedStream.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){var e;this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize||(this._maxDataSizeExceeded=!0,e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.",this.emit("error",new Error(e)))};var Stream$1=stream.Stream,combined_stream=CombinedStream;function CombinedStream(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}util.inherits(CombinedStream,Stream$1),CombinedStream.create=function(e){var a,i=new this;for(a in e=e||{})i[a]=e[a];return i},CombinedStream.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},CombinedStream.prototype.append=function(e){var a;return CombinedStream.isStreamLike(e)&&(e instanceof delayed_stream||(a=delayed_stream.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams}),e.on("data",this._checkDataSize.bind(this)),e=a),this._handleErrors(e),this.pauseStreams)&&e.pause(),this._streams.push(e),this},CombinedStream.prototype.pipe=function(e,a){return Stream$1.prototype.pipe.call(this,e,a),this.resume(),e},CombinedStream.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{for(;this._pendingNext=!1,this._realGetNext(),this._pendingNext;);}finally{this._insideLoop=!1}}},CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();void 0===e?this.end():"function"!=typeof e?this._pipeNext(e):e(function(e){CombinedStream.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this))},CombinedStream.prototype._pipeNext=function(e){this._currentStream=e,CombinedStream.isStreamLike(e)?(e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1})):(this.write(e),this._getNext())},CombinedStream.prototype._handleErrors=function(e){var a=this;e.on("error",function(e){a._emitError(e)})},CombinedStream.prototype.write=function(e){this.emit("data",e)},CombinedStream.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},CombinedStream.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},CombinedStream.prototype.end=function(){this._reset(),this.emit("end")},CombinedStream.prototype.destroy=function(){this._reset(),this.emit("close")},CombinedStream.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},CombinedStream.prototype._checkDataSize=function(){var e;this._updateDataSize(),this.dataSize<=this.maxDataSize||(e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.",this._emitError(new Error(e)))},CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var a=this;this._streams.forEach(function(e){e.dataSize&&(a.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},CombinedStream.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var db={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},