Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

superagent

Package Overview
Dependencies
Maintainers
8
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superagent - npm Package Compare versions

Comparing version 7.1.6 to 8.0.0

2

dist/superagent.min.js

@@ -1,1 +0,1 @@

!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).superagent=t()}}((function(){var t={exports:{}};function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length},t=t.exports;var r;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r=u,u.default=u,u.stable=l,u.stableStringify=l;var n=[],i=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function u(t,e,r,u){var c;void 0===u&&(u=a()),function t(e,r,n,i,a,u,c){var l;if(u+=1,"object"==o(e)&&null!==e){for(l=0;l<i.length;l++)if(i[l]===e)return void s("[Circular]",e,r,a);if(void 0!==c.depthLimit&&u>c.depthLimit)return void s("[...]",e,r,a);if(void 0!==c.edgesLimit&&n+1>c.edgesLimit)return void s("[...]",e,r,a);if(i.push(e),Array.isArray(e))for(l=0;l<e.length;l++)t(e[l],l,l,i,e,u,c);else{var p=Object.keys(e);for(l=0;l<p.length;l++){var f=p[l];t(e[f],f,l,i,e,u,c)}}i.pop()}}(t,"",0,[],void 0,0,u);try{c=0===i.length?JSON.stringify(t,e,r):JSON.stringify(t,p(e),r)}catch(f){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function s(t,e,r,o){var a=Object.getOwnPropertyDescriptor(o,r);void 0!==a.get?a.configurable?(Object.defineProperty(o,r,{value:t}),n.push([o,r,e,a])):i.push([e,r,t]):(o[r]=t,n.push([o,r,e]))}function c(t,e){return t<e?-1:t>e?1:0}function l(t,e,r,u){void 0===u&&(u=a());var l,f=function t(e,r,i,a,u,l,p){var f;if(l+=1,"object"==o(e)&&null!==e){for(f=0;f<a.length;f++)if(a[f]===e)return void s("[Circular]",e,r,u);try{if("function"==typeof e.toJSON)return}catch(m){return}if(void 0!==p.depthLimit&&l>p.depthLimit)return void s("[...]",e,r,u);if(void 0!==p.edgesLimit&&i+1>p.edgesLimit)return void s("[...]",e,r,u);if(a.push(e),Array.isArray(e))for(f=0;f<e.length;f++)t(e[f],f,f,a,e,l,p);else{var y={},h=Object.keys(e).sort(c);for(f=0;f<h.length;f++){var d=h[f];t(e[d],d,f,a,e,l,p),y[d]=e[d]}if(void 0===u)return y;n.push([u,r,e]),u[r]=y}a.pop()}}(t,"",0,[],void 0,0,u)||t;try{l=0===i.length?JSON.stringify(f,e,r):JSON.stringify(f,p(e),r)}catch(h){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var y=n.pop();4===y.length?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return l}function p(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(i.length>0)for(var o=0;o<i.length;o++){var n=i[o];if(n[1]===e&&n[0]===r){r=n[2],i.splice(o,1);break}}return t.call(this,e,r)}}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var h="undefined"!=typeof Symbol&&Symbol,d=Array.prototype.slice,m=Object.prototype.toString,b=Function.prototype.bind||function(t){var e=this;if("function"!=typeof e||"[object Function]"!==m.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,o=d.call(arguments,1),n=Math.max(0,e.length-o.length),i=[],a=0;a<n;a++)i.push("$"+a);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=e.apply(this,o.concat(d.call(arguments)));return Object(n)===n?n:this}return e.apply(t,o.concat(d.call(arguments)))})),e.prototype){var u=function(){};u.prototype=e.prototype,r.prototype=new u,u.prototype=null}return r},v=b.call(Function.call,Object.prototype.hasOwnProperty);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var S=SyntaxError,w=Function,_=TypeError,A=function(t){try{return w('"use strict"; return ('+t+").constructor;")()}catch(e){}},O=Object.getOwnPropertyDescriptor;if(O)try{O({},"")}catch(Or){O=null}var E,j=function(){throw new _},T=O?function(){try{return j}catch(t){try{return O(arguments,"callee").get}catch(e){return j}}}():j,P="function"==typeof h&&"function"==typeof Symbol&&"symbol"==y(h("foo"))&&"symbol"==y(Symbol("bar"))&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==f(Symbol.iterator))return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}(),x=Object.getPrototypeOf||function(t){return t.__proto__},k={},R="undefined"==typeof Uint8Array?void 0:x(Uint8Array),I={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":P?x([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":k,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P?x(x([][Symbol.iterator]())):void 0,"%JSON%":"object"==("undefined"==typeof JSON?"undefined":g(JSON))?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P?x((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P?x((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P?x(""[Symbol.iterator]()):void 0,"%Symbol%":P?Symbol:void 0,"%SyntaxError%":S,"%ThrowTypeError%":T,"%TypedArray%":R,"%TypeError%":_,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},C={"%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"]},N=b.call(Function.call,Array.prototype.concat),F=b.call(Function.apply,Array.prototype.splice),D=b.call(Function.call,String.prototype.replace),U=b.call(Function.call,String.prototype.slice),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,q=function(t,e){var r,o=t;if(v(C,o)&&(o="%"+(r=C[o])[0]+"%"),v(I,o)){var n=I[o];if(n===k&&(n=function t(e){var r;if("%AsyncFunction%"===e)r=A("async function () {}");else if("%GeneratorFunction%"===e)r=A("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=A("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(r=x(n.prototype))}return I[e]=r,r}(o)),void 0===n&&!e)throw new _("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new S("intrinsic "+t+" does not exist!")},B=function(t,e){if("string"!=typeof t||0===t.length)throw new _("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new _('"allowMissing" argument must be a boolean');var r=function(t){var e=U(t,0,1),r=U(t,-1);if("%"===e&&"%"!==r)throw new S("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new S("invalid intrinsic syntax, expected opening `%`");var o=[];return D(t,M,(function(t,e,r,n){o[o.length]=r?D(n,L,"$1"):e||t})),o}(t),o=r.length>0?r[0]:"",n=q("%"+o+"%",e),i=n.name,a=n.value,u=!1,s=n.alias;s&&(o=s[0],F(r,N([0,1],s)));for(var c=1,l=!0;c<r.length;c+=1){var p=r[c],f=U(p,0,1),y=U(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===y||"'"===y||"`"===y)&&f!==y)throw new S("property names with quotes must have matching quotes");if("constructor"!==p&&l||(u=!0),v(I,i="%"+(o+="."+p)+"%"))a=I[i];else if(null!=a){if(!(p in a)){if(!e)throw new _("base intrinsic for "+t+" exists, but the property is not available.");return}if(O&&c+1>=r.length){var h=O(a,p);a=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[p]}else l=v(a,p),a=a[p];l&&!u&&(I[i]=a)}}return a},W=B("%Function.prototype.apply%"),H=B("%Function.prototype.call%"),z=B("%Reflect.apply%",!0)||b.call(H,W),$=B("%Object.getOwnPropertyDescriptor%",!0),G=B("%Object.defineProperty%",!0),J=B("%Math.max%");if(G)try{G({},"a",{value:1})}catch(Or){G=null}E=function(t){var e=z(b,H,arguments);return $&&G&&$(e,"length").configurable&&G(e,"length",{value:1+J(0,t.length-(arguments.length-1))}),e};var V=function(){return z(b,W,arguments)};G?G(E,"apply",{value:V}):E.apply=V;var Q=E(B("String.prototype.indexOf")),X=function(t,e){var r=B(t,!!e);return"function"==typeof r&&Q(t,".prototype.")>-1?E(r):r},K={};function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Z="function"==typeof Map&&Map.prototype,tt=Object.getOwnPropertyDescriptor&&Z?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,et=Z&&tt&&"function"==typeof tt.get?tt.get:null,rt=Z&&Map.prototype.forEach,ot="function"==typeof Set&&Set.prototype,nt=Object.getOwnPropertyDescriptor&&ot?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,it=ot&&nt&&"function"==typeof nt.get?nt.get:null,at=ot&&Set.prototype.forEach,ut="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,st="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,ct="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,lt=Boolean.prototype.valueOf,pt=Object.prototype.toString,ft=Function.prototype.toString,yt=String.prototype.match,ht=String.prototype.slice,dt=String.prototype.replace,mt=String.prototype.toUpperCase,bt=String.prototype.toLowerCase,vt=RegExp.prototype.test,gt=Array.prototype.concat,St=Array.prototype.join,wt=Array.prototype.slice,_t=Math.floor,At="function"==typeof BigInt?BigInt.prototype.valueOf:null,Ot=Object.getOwnPropertySymbols,Et="function"==typeof Symbol&&"symbol"==Y(Symbol.iterator)?Symbol.prototype.toString:null,jt="function"==typeof Symbol&&"object"==Y(Symbol.iterator),Tt="function"==typeof Symbol&&Symbol.toStringTag&&(Y(Symbol.toStringTag),1)?Symbol.toStringTag:null,Pt=Object.prototype.propertyIsEnumerable,xt=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function kt(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||vt.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-_t(-t):_t(t);if(o!==t){var n=String(o),i=ht.call(e,n.length+1);return dt.call(n,r,"$&_")+"."+dt.call(dt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return dt.call(e,r,"$&_")}var Rt=K.custom,It=Ut(Rt)?Rt:null;function Ct(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function Nt(t){return dt.call(String(t),/"/g,"&quot;")}function Ft(t){return!("[object Array]"!==qt(t)||Tt&&"object"==Y(t)&&Tt in t)}function Dt(t){return!("[object RegExp]"!==qt(t)||Tt&&"object"==Y(t)&&Tt in t)}function Ut(t){if(jt)return t&&"object"==Y(t)&&t instanceof Symbol;if("symbol"==Y(t))return!0;if(!t||"object"!=Y(t)||!Et)return!1;try{return Et.call(t),!0}catch(Or){}return!1}var Mt=Object.prototype.hasOwnProperty||function(t){return t in this};function Lt(t,e){return Mt.call(t,e)}function qt(t){return pt.call(t)}function Bt(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function Wt(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+mt.call(e.toString(16))}function Ht(t){return"Object("+t+")"}function zt(t){return t+" { ? }"}function $t(t,e,r,o){return t+" ("+e+") {"+(o?Gt(r,o):St.call(r,", "))+"}"}function Gt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+St.call(t,","+r)+"\n"+e.prev}function Jt(t,e){var r=Ft(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Lt(t,n)?e(t[n],t):""}var i,a="function"==typeof Ot?Ot(t):[];if(jt){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var s in t)Lt(t,s)&&(r&&String(Number(s))===s&&s<t.length||jt&&i["$"+s]instanceof Symbol||(vt.call(/[^\w$]/,s)?o.push(e(s,t)+": "+e(t[s],t)):o.push(s+": "+e(t[s],t))));if("function"==typeof Ot)for(var c=0;c<a.length;c++)Pt.call(t,a[c])&&o.push("["+e(a[c])+"]: "+e(t[a[c]],t));return o}function Vt(t){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Qt=B("%TypeError%"),Xt=B("%WeakMap%",!0),Kt=B("%Map%",!0),Yt=X("WeakMap.prototype.get",!0),Zt=X("WeakMap.prototype.set",!0),te=X("WeakMap.prototype.has",!0),ee=X("Map.prototype.get",!0),re=X("Map.prototype.set",!0),oe=X("Map.prototype.has",!0),ne=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r},ie=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new Qt("Side channel does not contain "+function t(e,r,o,n){var i=r||{};if(Lt(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Lt(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!Lt(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Lt(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Lt(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength,n="... "+o+" more character"+(o>1?"s":"");return t(ht.call(e,0,r.maxStringLength),r)+n}return Ct(dt.call(dt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Wt),"single",r)}(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var s=String(e);return u?kt(e,s):s}if("bigint"==typeof e){var c=String(e)+"n";return u?kt(e,c):c}var l=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==Y(e))return Ft(e)?"[Array]":"[Object]";var p,f=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=St.call(Array(t.indent+1)," ")}return{base:r,prev:St.call(Array(e+1),r)}}(i,o);if(void 0===n)n=[];else if(Bt(n,e)>=0)return"[Circular]";function y(e,r,a){if(r&&(n=wt.call(n)).push(r),a){var u={depth:i.depth};return Lt(i,"quoteStyle")&&(u.quoteStyle=i.quoteStyle),t(e,u,o+1,n)}return t(e,i,o+1,n)}if("function"==typeof e&&!Dt(e)){var h=function(t){if(t.name)return t.name;var e=yt.call(ft.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),d=Jt(e,y);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(d.length>0?" { "+St.call(d,", ")+" }":"")}if(Ut(e)){var m=jt?dt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Et.call(e);return"object"!=Y(e)||jt?m:Ht(m)}if((p=e)&&"object"==Y(p)&&("undefined"!=typeof HTMLElement&&p instanceof HTMLElement||"string"==typeof p.nodeName&&"function"==typeof p.getAttribute)){for(var b="<"+bt.call(String(e.nodeName)),v=e.attributes||[],g=0;g<v.length;g++)b+=" "+v[g].name+"="+Ct(Nt(v[g].value),"double",i);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+"</"+bt.call(String(e.nodeName))+">"}if(Ft(e)){if(0===e.length)return"[]";var S=Jt(e,y);return f&&!function(t){for(var e=0;e<t.length;e++)if(Bt(t[e],"\n")>=0)return!1;return!0}(S)?"["+Gt(S,f)+"]":"[ "+St.call(S,", ")+" ]"}if(function(t){return!("[object Error]"!==qt(t)||Tt&&"object"==Y(t)&&Tt in t)}(e)){var w=Jt(e,y);return"cause"in Error.prototype||!("cause"in e)||Pt.call(e,"cause")?0===w.length?"["+String(e)+"]":"{ ["+String(e)+"] "+St.call(w,", ")+" }":"{ ["+String(e)+"] "+St.call(gt.call("[cause]: "+y(e.cause),w),", ")+" }"}if("object"==Y(e)&&a){if(It&&"function"==typeof e[It]&&K)return K(e,{depth:l-o});if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!et||!t||"object"!=Y(t))return!1;try{et.call(t);try{it.call(t)}catch(b){return!0}return t instanceof Map}catch(Or){}return!1}(e)){var _=[];return rt.call(e,(function(t,r){_.push(y(r,e,!0)+" => "+y(t,e))})),$t("Map",et.call(e),_,f)}if(function(t){if(!it||!t||"object"!=Y(t))return!1;try{it.call(t);try{et.call(t)}catch(e){return!0}return t instanceof Set}catch(Or){}return!1}(e)){var A=[];return at.call(e,(function(t){A.push(y(t,e))})),$t("Set",it.call(e),A,f)}if(function(t){if(!ut||!t||"object"!=Y(t))return!1;try{ut.call(t,ut);try{st.call(t,st)}catch(b){return!0}return t instanceof WeakMap}catch(Or){}return!1}(e))return zt("WeakMap");if(function(t){if(!st||!t||"object"!=Y(t))return!1;try{st.call(t,st);try{ut.call(t,ut)}catch(b){return!0}return t instanceof WeakSet}catch(Or){}return!1}(e))return zt("WeakSet");if(function(t){if(!ct||!t||"object"!=Y(t))return!1;try{return ct.call(t),!0}catch(Or){}return!1}(e))return zt("WeakRef");if(function(t){return!("[object Number]"!==qt(t)||Tt&&"object"==Y(t)&&Tt in t)}(e))return Ht(y(Number(e)));if(function(t){if(!t||"object"!=Y(t)||!At)return!1;try{return At.call(t),!0}catch(Or){}return!1}(e))return Ht(y(At.call(e)));if(function(t){return!("[object Boolean]"!==qt(t)||Tt&&"object"==Y(t)&&Tt in t)}(e))return Ht(lt.call(e));if(function(t){return!("[object String]"!==qt(t)||Tt&&"object"==Y(t)&&Tt in t)}(e))return Ht(y(String(e)));if(!function(t){return!("[object Date]"!==qt(t)||Tt&&"object"==Y(t)&&Tt in t)}(e)&&!Dt(e)){var O=Jt(e,y),E=xt?xt(e)===Object.prototype:e instanceof Object||e.constructor===Object,j=e instanceof Object?"":"null prototype",T=!E&&Tt&&Object(e)===e&&Tt in e?ht.call(qt(e),8,-1):j?"Object":"",P=(E||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(T||j?"["+St.call(gt.call([],T||[],j||[]),": ")+"] ":"");return 0===O.length?P+"{}":f?P+"{"+Gt(O,f)+"}":P+"{ "+St.call(O,", ")+" }"}return String(e)}(t))},get:function(o){if(Xt&&o&&("object"==Vt(o)||"function"==typeof o)){if(t)return Yt(t,o)}else if(Kt){if(e)return ee(e,o)}else if(r)return function(t,e){var r=ne(t,e);return r&&r.value}(r,o)},has:function(o){if(Xt&&o&&("object"==Vt(o)||"function"==typeof o)){if(t)return te(t,o)}else if(Kt){if(e)return oe(e,o)}else if(r)return function(t,e){return!!ne(t,e)}(r,o);return!1},set:function(o,n){Xt&&o&&("object"==Vt(o)||"function"==typeof o)?(t||(t=new Xt),Zt(t,o,n)):Kt?(e||(e=new Kt),re(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=ne(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o},ae=String.prototype.replace,ue=/%20/g,se={default:"RFC3986",formatters:{RFC1738:function(t){return ae.call(t,ue,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:"RFC3986"};function ce(t){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var le=Object.prototype.hasOwnProperty,pe=Array.isArray,fe=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),ye={combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],i=n.obj[n.prop],a=Object.keys(i),u=0;u<a.length;++u){var s=a[u],c=i[s];"object"==ce(c)&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:s}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(pe(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(Or){return o}},encode:function(t,e,r,o,n){if(0===t.length)return t;var i=t;if("symbol"==ce(t)?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",u=0;u<i.length;++u){var s=i.charCodeAt(u);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||n===se.RFC1738&&(40===s||41===s)?a+=i.charAt(u):s<128?a+=fe[s]:s<2048?a+=fe[192|s>>6]+fe[128|63&s]:s<55296||s>=57344?a+=fe[224|s>>12]+fe[128|s>>6&63]+fe[128|63&s]:(u+=1,s=65536+((1023&s)<<10|1023&i.charCodeAt(u)),a+=fe[240|s>>18]+fe[128|s>>12&63]+fe[128|s>>6&63]+fe[128|63&s])}return a},isBuffer:function(t){return!(!t||"object"!=ce(t)||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(pe(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=ce(r)){if(pe(e))e.push(r);else{if(!e||"object"!=ce(e))return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!le.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=ce(e))return[e].concat(r);var n=e;return pe(e)&&!pe(r)&&(n=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r}(e,o)),pe(e)&&pe(r)?(r.forEach((function(r,n){if(le.call(e,n)){var i=e[n];i&&"object"==ce(i)&&r&&"object"==ce(r)?e[n]=t(i,r,o):e.push(r)}else e[n]=r})),e):Object.keys(r).reduce((function(e,n){var i=r[n];return le.call(e,n)?e[n]=t(e[n],i,o):e[n]=i,e}),n)}};function he(t){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var de=Object.prototype.hasOwnProperty,me={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},be=Array.isArray,ve=String.prototype.split,ge=Array.prototype.push,Se=function(t,e){ge.apply(t,be(e)?e:[e])},we=Date.prototype.toISOString,_e=se.default,Ae={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:ye.encode,encodeValuesOnly:!1,format:_e,formatter:se.formatters[_e],indices:!1,serializeDate:function(t){return we.call(t)},skipNulls:!1,strictNullHandling:!1},Oe={},Ee=function t(e,r,o,n,i,a,u,s,c,l,p,f,y,h,d){for(var m,b=e,v=d,g=0,S=!1;void 0!==(v=v.get(Oe))&&!S;){var w=v.get(e);if(g+=1,void 0!==w){if(w===g)throw new RangeError("Cyclic object value");S=!0}void 0===v.get(Oe)&&(g=0)}if("function"==typeof u?b=u(r,b):b instanceof Date?b=l(b):"comma"===o&&be(b)&&(b=ye.maybeMap(b,(function(t){return t instanceof Date?l(t):t}))),null===b){if(n)return a&&!y?a(r,Ae.encoder,h,"key",p):r;b=""}if("string"==typeof(m=b)||"number"==typeof m||"boolean"==typeof m||"symbol"==he(m)||"bigint"==typeof m||ye.isBuffer(b)){if(a){var _=y?r:a(r,Ae.encoder,h,"key",p);if("comma"===o&&y){for(var A=ve.call(String(b),","),O="",E=0;E<A.length;++E)O+=(0===E?"":",")+f(a(A[E],Ae.encoder,h,"value",p));return[f(_)+"="+O]}return[f(_)+"="+f(a(b,Ae.encoder,h,"value",p))]}return[f(r)+"="+f(String(b))]}var j,T=[];if(void 0===b)return T;if("comma"===o&&be(b))j=[{value:b.length>0?b.join(",")||null:void 0}];else if(be(u))j=u;else{var P=Object.keys(b);j=s?P.sort(s):P}for(var x=0;x<j.length;++x){var k=j[x],R="object"==he(k)&&void 0!==k.value?k.value:b[k];if(!i||null!==R){var I=be(b)?"function"==typeof o?o(r,k):r:r+(c?"."+k:"["+k+"]");d.set(e,g);var C=ie();C.set(Oe,d),Se(T,t(R,I,o,n,i,a,u,s,c,l,p,f,y,h,C))}}return T},je=(Object.prototype.hasOwnProperty,Array.isArray,{stringify:function(t,e){var r,o=t,n=function(t){if(!t)return Ae;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||Ae.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=se.default;if(void 0!==t.format){if(!de.call(se.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=se.formatters[r],n=Ae.filter;return("function"==typeof t.filter||be(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:Ae.addQueryPrefix,allowDots:void 0===t.allowDots?Ae.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:Ae.charsetSentinel,delimiter:void 0===t.delimiter?Ae.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:Ae.encode,encoder:"function"==typeof t.encoder?t.encoder:Ae.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:Ae.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:Ae.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:Ae.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:Ae.strictNullHandling}}(e);"function"==typeof n.filter?o=(0,n.filter)("",o):be(n.filter)&&(r=n.filter);var i,a=[];if("object"!=he(o)||null===o)return"";i=e&&e.arrayFormat in me?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var u=me[i];r||(r=Object.keys(o)),n.sort&&r.sort(n.sort);for(var s=ie(),c=0;c<r.length;++c){var l=r[c];n.skipNulls&&null===o[l]||Se(a,Ee(o[l],l,u,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,s))}var p=a.join(n.delimiter),f=!0===n.addQueryPrefix?"?":"";return n.charsetSentinel&&("iso-8859-1"===n.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),p.length>0?f+p:""}}),Te={};function Pe(t){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xe(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return ke(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ke(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}Te.type=function(t){return t.split(/ *; */).shift()},Te.params=function(t){var e,r={},o=xe(t.split(/ *; */));try{for(o.s();!(e=o.n()).done;){var n=e.value.split(/ *= */),i=n.shift(),a=n.shift();i&&a&&(r[i]=a)}}catch(u){o.e(u)}finally{o.f()}return r},Te.parseLinks=function(t){var e,r={},o=xe(t.split(/ *, */));try{for(o.s();!(e=o.n()).done;){var n=e.value.split(/ *; */),i=n[0].slice(1,-1);r[n[1].split(/ *= */)[1].slice(1,-1)]=i}}catch(a){o.e(a)}finally{o.f()}return r},Te.isObject=function(t){return null!==t&&"object"==Pe(t)},Te.hasOwn=Object.hasOwn||function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(t),e)},Te.mixin=function(t,e){for(var r in e)Te.hasOwn(e,r)&&(t[r]=e[r])};var Re,Ie,Ce,Ne=Re={};function Fe(){throw new Error("setTimeout has not been defined")}function De(){throw new Error("clearTimeout has not been defined")}function Ue(t){if(Ie===setTimeout)return setTimeout(t,0);if((Ie===Fe||!Ie)&&setTimeout)return Ie=setTimeout,setTimeout(t,0);try{return Ie(t,0)}catch(Or){try{return Ie.call(null,t,0)}catch(Or){return Ie.call(this,t,0)}}}!function(){try{Ie="function"==typeof setTimeout?setTimeout:Fe}catch(Or){Ie=Fe}try{Ce="function"==typeof clearTimeout?clearTimeout:De}catch(Or){Ce=De}}();var Me,Le=[],qe=!1,Be=-1;function We(){qe&&Me&&(qe=!1,Me.length?Le=Me.concat(Le):Be=-1,Le.length&&He())}function He(){if(!qe){var t=Ue(We);qe=!0;for(var e=Le.length;e;){for(Me=Le,Le=[];++Be<e;)Me&&Me[Be].run();Be=-1,e=Le.length}Me=null,qe=!1,function(t){if(Ce===clearTimeout)return clearTimeout(t);if((Ce===De||!Ce)&&clearTimeout)return Ce=clearTimeout,clearTimeout(t);try{Ce(t)}catch(Or){try{return Ce.call(null,t)}catch(Or){return Ce.call(this,t)}}}(t)}}function ze(t,e){this.fun=t,this.array=e}function $e(){}Ne.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Le.push(new ze(t,e)),1!==Le.length||qe||Ue(He)},ze.prototype.run=function(){this.fun.apply(null,this.array)},Ne.title="browser",Ne.browser=!0,Ne.env={},Ne.argv=[],Ne.version="",Ne.versions={},Ne.on=$e,Ne.addListener=$e,Ne.once=$e,Ne.off=$e,Ne.removeListener=$e,Ne.removeAllListeners=$e,Ne.emit=$e,Ne.prependListener=$e,Ne.prependOnceListener=$e,Ne.listeners=function(t){return[]},Ne.binding=function(t){throw new Error("process.binding is not supported")},Ne.cwd=function(){return"/"},Ne.chdir=function(t){throw new Error("process.chdir is not supported")},Ne.umask=function(){return 0};var Ge={};(function(t){(function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=Te.isObject,o=Te.hasOwn;function n(){}Ge=n,n.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},n.prototype.parse=function(t){return this._parser=t,this},n.prototype.responseType=function(t){return this._responseType=t,this},n.prototype.serialize=function(t){return this._serializer=t,this},n.prototype.timeout=function(t){if(!t||"object"!=e(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var r in t)if(o(t,r))switch(r){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",r)}return this},n.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var i=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),a=new Set([408,413,429,500,502,503,504,521,522,524]);n.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(o){console.error(o)}if(e&&e.status&&a.has(e.status))return!0;if(t){if(t.code&&i.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},n.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},n.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){o.on("abort",(function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}})),o.end((function(r,o){r?e(r):t(o)}))}))}return this._fullfilledPromise.then(t,e)},n.prototype.catch=function(t){return this.then(void 0,t)},n.prototype.use=function(t){return t(this),this},n.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},n.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},n.prototype.get=function(t){return this._header[t.toLowerCase()]},n.prototype.getHeader=n.prototype.get,n.prototype.set=function(t,e){if(r(t)){for(var n in t)o(t,n)&&this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},n.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},n.prototype.field=function(t,e,n){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(r(t)){for(var i in t)o(t,i)&&this.field(i,t[i]);return this}if(Array.isArray(e)){for(var a in e)o(e,a)&&this.field(t,e[a]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),n?this._getFormData().append(t,e,n):this._getFormData().append(t,e),this},n.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(K.gte(t.version,"v13.0.0")&&K.lt(t.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");K.gte(t.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},n.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(o("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},n.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},n.prototype.redirects=function(t){return this._maxRedirects=t,this},n.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},n.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},n.prototype.send=function(t){var e=r(t),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&r(this._data))for(var i in t)o(t,i)&&(this._data[i]=t[i]);else"string"==typeof t?(n||this.type("form"),(n=this._header["content-type"])&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},n.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},n.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},n.prototype._appendQueryString=function(){console.warn("Unsupported")},n.prototype._timeoutError=function(t,e,r){if(!this._aborted){var o=new Error("".concat(t+e,"ms exceeded"));o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)}},n.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}}).call(this)}).call(this,Re);var Je;function Ve(){}Je=Ve,Ve.prototype.get=function(t){return this.header[t.toLowerCase()]},Ve.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=Te.type(e);var r=Te.params(e);for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(this[o]=r[o]);this.links={};try{t.link&&(this.links=Te.parseLinks(t.link))}catch(n){}},Ve.prototype._setStatusProperties=function(t){var e=Math.trunc(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t};var Qe={};function Xe(t){return function(t){if(Array.isArray(t))return Ye(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ke(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ke(t,e){if(t){if("string"==typeof t)return Ye(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ye(t,e):void 0}}function Ye(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function Ze(){this._defaults=[]}for(var tr=function(){var t=rr[er];Ze.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return this._defaults.push({fn:t,args:r}),this}},er=0,rr=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];er<rr.length;er++)tr();Ze.prototype._setDefaults=function(t){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Ke(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(this._defaults);try{for(r.s();!(e=r.n()).done;){var o=e.value;t[o.fn].apply(t,Xe(o.args))}}catch(n){r.e(n)}finally{r.f()}},Qe=Ze;var or,nr={};function ir(t){return(ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ar(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return ur(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ur(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function ur(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}"undefined"!=typeof window?or=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),or=void 0):or=self;var sr=Te.isObject,cr=Te.mixin,lr=Te.hasOwn;function pr(){}var fr=nr=nr=function(t,e){return"function"==typeof e?new nr.Request("GET",t).end(e):1===arguments.length?new nr.Request("GET",t):new nr.Request(t,e)};nr.Request=gr,fr.getXHR=function(){if(or.XMLHttpRequest&&(!or.location||"file:"!==or.location.protocol))return new XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};var yr="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function hr(t){if(!sr(t))return t;var e=[];for(var r in t)lr(t,r)&&dr(e,r,t[r]);return e.join("&")}function dr(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r)){var o,n=ar(r);try{for(n.s();!(o=n.n()).done;){dr(t,e,o.value)}}catch(a){n.e(a)}finally{n.f()}}else if(sr(r))for(var i in r)lr(r,i)&&dr(t,"".concat(e,"[").concat(i,"]"),r[i]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function mr(t){for(var e,r,o={},n=t.split("&"),i=0,a=n.length;i<a;++i)-1===(r=(e=n[i]).indexOf("="))?o[decodeURIComponent(e)]="":o[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return o}function br(t){return/[/+]json($|[^-\w])/i.test(t)}function vr(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,o,n,i=t.split(/\r?\n/),a={},u=0,s=i.length;u<s;++u)-1!==(e=(r=i[u]).indexOf(":"))&&(o=r.slice(0,e).toLowerCase(),n=yr(r.slice(e+1)),a[o]=n);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function gr(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,o=null;try{o=new vr(r)}catch(n){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=n,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(n){t=n}t?(t.original=e,t.response=o,t.status=t.status||o.status,r.callback(t,o)):r.callback(null,o)}))}fr.serializeObject=hr,fr.parseString=mr,fr.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},fr.serialize={"application/x-www-form-urlencoded":je.stringify,"application/json":r},fr.parse={"application/x-www-form-urlencoded":mr,"application/json":JSON.parse},cr(vr.prototype,Je.prototype),vr.prototype._parseBody=function(t){var e=fr.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&br(this.type)&&(e=fr.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},vr.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,o="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},fr.Response=vr,t(gr.prototype),cr(gr.prototype,Ge.prototype),gr.prototype.type=function(t){return this.set("Content-Type",fr.types[t]||t),this},gr.prototype.accept=function(t){return this.set("Accept",fr.types[t]||t),this},gr.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"==ir(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var o=r.encoder?r.encoder:function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,o)},gr.prototype.query=function(t){return"string"!=typeof t&&(t=hr(t)),t&&this._query.push(t),this},gr.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},gr.prototype._getFormData=function(){return this._formData||(this._formData=new or.FormData),this._formData},gr.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},gr.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},gr.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},gr.prototype.ca=gr.prototype.agent,gr.prototype.buffer=gr.prototype.ca,gr.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},gr.prototype.pipe=gr.prototype.write,gr.prototype._isHost=function(t){return t&&"object"==ir(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},gr.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||pr,this._finalizeQueryString(),this._end()},gr.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},gr.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=fr.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",(function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var o;try{o=e.status}catch(n){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}}));var o=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(u){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(s){return this.callback(s)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var n=this._header["content-type"],i=this._serializer||fr.serialize[n?n.split(";")[0]:""];!i&&br(n)&&(i=fr.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!==this.header[a]&&lr(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},fr.agent=function(){return new Qe};for(var Sr=function(){var t=_r[wr];Qe.prototype[t.toLowerCase()]=function(e,r){var o=new fr.Request(t,e);return this._setDefaults(o),r&&o.end(r),o}},wr=0,_r=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];wr<_r.length;wr++)Sr();function Ar(t,e,r){var o=fr("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}return Qe.prototype.del=Qe.prototype.delete,fr.get=function(t,e,r){var o=fr("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},fr.head=function(t,e,r){var o=fr("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},fr.options=function(t,e,r){var o=fr("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},fr.del=Ar,fr.delete=Ar,fr.patch=function(t,e,r){var o=fr("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},fr.post=function(t,e,r){var o=fr("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},fr.put=function(t,e,r){var o=fr("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},nr}));
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).superagent=t()}}((function(){var t={exports:{}};function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length},t=t.exports;var r;r=a,a.default=a,a.stable=c,a.stableStringify=c;var o=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(t,e,r,a){var u;void 0===a&&(a=i()),function t(e,r,o,n,i,a,u){var c;if(a+=1,"object"==typeof e&&null!==e){for(c=0;c<n.length;c++)if(n[c]===e)return void s("[Circular]",e,r,i);if(void 0!==u.depthLimit&&a>u.depthLimit)return void s("[...]",e,r,i);if(void 0!==u.edgesLimit&&o+1>u.edgesLimit)return void s("[...]",e,r,i);if(n.push(e),Array.isArray(e))for(c=0;c<e.length;c++)t(e[c],c,c,n,e,a,u);else{var p=Object.keys(e);for(c=0;c<p.length;c++){var l=p[c];t(e[l],l,c,n,e,a,u)}}n.pop()}}(t,"",0,[],void 0,0,a);try{u=0===n.length?JSON.stringify(t,e,r):JSON.stringify(t,p(e),r)}catch(l){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var c=o.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return u}function s(t,e,r,i){var a=Object.getOwnPropertyDescriptor(i,r);void 0!==a.get?a.configurable?(Object.defineProperty(i,r,{value:t}),o.push([i,r,e,a])):n.push([e,r,t]):(i[r]=t,o.push([i,r,e]))}function u(t,e){return t<e?-1:t>e?1:0}function c(t,e,r,a){void 0===a&&(a=i());var c,l=function t(e,r,n,i,a,c,p){var l;if(c+=1,"object"==typeof e&&null!==e){for(l=0;l<i.length;l++)if(i[l]===e)return void s("[Circular]",e,r,a);try{if("function"==typeof e.toJSON)return}catch(d){return}if(void 0!==p.depthLimit&&c>p.depthLimit)return void s("[...]",e,r,a);if(void 0!==p.edgesLimit&&n+1>p.edgesLimit)return void s("[...]",e,r,a);if(i.push(e),Array.isArray(e))for(l=0;l<e.length;l++)t(e[l],l,l,i,e,c,p);else{var f={},y=Object.keys(e).sort(u);for(l=0;l<y.length;l++){var h=y[l];t(e[h],h,l,i,e,c,p),f[h]=e[h]}if(void 0===a)return f;o.push([a,r,e]),a[r]=f}i.pop()}}(t,"",0,[],void 0,0,a)||t;try{c=0===n.length?JSON.stringify(l,e,r):JSON.stringify(l,p(e),r)}catch(y){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var f=o.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return c}function p(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===e&&i[0]===r){r=i[2],n.splice(o,1);break}}return t.call(this,e,r)}}var l="undefined"!=typeof Symbol&&Symbol,f=Array.prototype.slice,y=Object.prototype.toString,h=Function.prototype.bind||function(t){var e=this;if("function"!=typeof e||"[object Function]"!==y.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,o=f.call(arguments,1),n=Math.max(0,e.length-o.length),i=[],a=0;a<n;a++)i.push("$"+a);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=e.apply(this,o.concat(f.call(arguments)));return Object(n)===n?n:this}return e.apply(t,o.concat(f.call(arguments)))})),e.prototype){var s=function(){};s.prototype=e.prototype,r.prototype=new s,s.prototype=null}return r},d=h.call(Function.call,Object.prototype.hasOwnProperty),m=SyntaxError,b=Function,g=TypeError,v=function(t){try{return b('"use strict"; return ('+t+").constructor;")()}catch(e){}},w=Object.getOwnPropertyDescriptor;if(w)try{w({},"")}catch(rr){w=null}var _,S=function(){throw new g},A=w?function(){try{return S}catch(t){try{return w(arguments,"callee").get}catch(e){return S}}}():S,E="function"==typeof l&&"function"==typeof Symbol&&"symbol"==typeof l("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}(),O=Object.getPrototypeOf||function(t){return t.__proto__},j={},T="undefined"==typeof Uint8Array?void 0:O(Uint8Array),P={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":E?O([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":j,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E?O(O([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E?O((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E?O((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E?O(""[Symbol.iterator]()):void 0,"%Symbol%":E?Symbol:void 0,"%SyntaxError%":m,"%ThrowTypeError%":A,"%TypedArray%":T,"%TypeError%":g,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},x={"%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"]},k=h.call(Function.call,Array.prototype.concat),R=h.call(Function.apply,Array.prototype.splice),C=h.call(Function.call,String.prototype.replace),I=h.call(Function.call,String.prototype.slice),F=h.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,U=function(t,e){var r,o=t;if(d(x,o)&&(o="%"+(r=x[o])[0]+"%"),d(P,o)){var n=P[o];if(n===j&&(n=function t(e){var r;if("%AsyncFunction%"===e)r=v("async function () {}");else if("%GeneratorFunction%"===e)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=v("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(r=O(n.prototype))}return P[e]=r,r}(o)),void 0===n&&!e)throw new g("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new m("intrinsic "+t+" does not exist!")},M=function(t,e){if("string"!=typeof t||0===t.length)throw new g("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new g('"allowMissing" argument must be a boolean');if(null===F(/^%?[^%]*%?$/g,t))throw new m("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=I(t,0,1),r=I(t,-1);if("%"===e&&"%"!==r)throw new m("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new m("invalid intrinsic syntax, expected opening `%`");var o=[];return C(t,N,(function(t,e,r,n){o[o.length]=r?C(n,D,"$1"):e||t})),o}(t),o=r.length>0?r[0]:"",n=U("%"+o+"%",e),i=n.name,a=n.value,s=!1,u=n.alias;u&&(o=u[0],R(r,k([0,1],u)));for(var c=1,p=!0;c<r.length;c+=1){var l=r[c],f=I(l,0,1),y=I(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===y||"'"===y||"`"===y)&&f!==y)throw new m("property names with quotes must have matching quotes");if("constructor"!==l&&p||(s=!0),d(P,i="%"+(o+="."+l)+"%"))a=P[i];else if(null!=a){if(!(l in a)){if(!e)throw new g("base intrinsic for "+t+" exists, but the property is not available.");return}if(w&&c+1>=r.length){var h=w(a,l);a=(p=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[l]}else p=d(a,l),a=a[l];p&&!s&&(P[i]=a)}}return a},L=M("%Function.prototype.apply%"),q=M("%Function.prototype.call%"),B=M("%Reflect.apply%",!0)||h.call(q,L),W=M("%Object.getOwnPropertyDescriptor%",!0),H=M("%Object.defineProperty%",!0),z=M("%Math.max%");if(H)try{H({},"a",{value:1})}catch(rr){H=null}_=function(t){var e=B(h,q,arguments);return W&&H&&W(e,"length").configurable&&H(e,"length",{value:1+z(0,t.length-(arguments.length-1))}),e};var G=function(){return B(h,L,arguments)};H?H(_,"apply",{value:G}):_.apply=G;var $=_(M("String.prototype.indexOf")),J=function(t,e){var r=M(t,!!e);return"function"==typeof r&&$(t,".prototype.")>-1?_(r):r},V={},Q="function"==typeof Map&&Map.prototype,X=Object.getOwnPropertyDescriptor&&Q?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,K=Q&&X&&"function"==typeof X.get?X.get:null,Y=Q&&Map.prototype.forEach,Z="function"==typeof Set&&Set.prototype,tt=Object.getOwnPropertyDescriptor&&Z?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,et=Z&&tt&&"function"==typeof tt.get?tt.get:null,rt=Z&&Set.prototype.forEach,ot="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,nt="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,it="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,at=Boolean.prototype.valueOf,st=Object.prototype.toString,ut=Function.prototype.toString,ct=String.prototype.match,pt=String.prototype.slice,lt=String.prototype.replace,ft=String.prototype.toUpperCase,yt=String.prototype.toLowerCase,ht=RegExp.prototype.test,dt=Array.prototype.concat,mt=Array.prototype.join,bt=Array.prototype.slice,gt=Math.floor,vt="function"==typeof BigInt?BigInt.prototype.valueOf:null,wt=Object.getOwnPropertySymbols,_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,St="function"==typeof Symbol&&"object"==typeof Symbol.iterator,At="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,Et=Object.prototype.propertyIsEnumerable,Ot=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function jt(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||ht.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-gt(-t):gt(t);if(o!==t){var n=String(o),i=pt.call(e,n.length+1);return lt.call(n,r,"$&_")+"."+lt.call(lt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return lt.call(e,r,"$&_")}var Tt=V.custom,Pt=It(Tt)?Tt:null;function xt(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function kt(t){return lt.call(String(t),/"/g,"&quot;")}function Rt(t){return!("[object Array]"!==Dt(t)||At&&"object"==typeof t&&At in t)}function Ct(t){return!("[object RegExp]"!==Dt(t)||At&&"object"==typeof t&&At in t)}function It(t){if(St)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!_t)return!1;try{return _t.call(t),!0}catch(rr){}return!1}var Ft=Object.prototype.hasOwnProperty||function(t){return t in this};function Nt(t,e){return Ft.call(t,e)}function Dt(t){return st.call(t)}function Ut(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function Mt(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+ft.call(e.toString(16))}function Lt(t){return"Object("+t+")"}function qt(t){return t+" { ? }"}function Bt(t,e,r,o){return t+" ("+e+") {"+(o?Wt(r,o):mt.call(r,", "))+"}"}function Wt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+mt.call(t,","+r)+"\n"+e.prev}function Ht(t,e){var r=Rt(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Nt(t,n)?e(t[n],t):""}var i,a="function"==typeof wt?wt(t):[];if(St){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)Nt(t,u)&&(r&&String(Number(u))===u&&u<t.length||St&&i["$"+u]instanceof Symbol||(ht.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if("function"==typeof wt)for(var c=0;c<a.length;c++)Et.call(t,a[c])&&o.push("["+e(a[c])+"]: "+e(t[a[c]],t));return o}var zt=M("%TypeError%"),Gt=M("%WeakMap%",!0),$t=M("%Map%",!0),Jt=J("WeakMap.prototype.get",!0),Vt=J("WeakMap.prototype.set",!0),Qt=J("WeakMap.prototype.has",!0),Xt=J("Map.prototype.get",!0),Kt=J("Map.prototype.set",!0),Yt=J("Map.prototype.has",!0),Zt=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r},te=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new zt("Side channel does not contain "+function t(e,r,o,n){var i=r||{};if(Nt(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Nt(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!Nt(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Nt(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Nt(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength,n="... "+o+" more character"+(o>1?"s":"");return t(pt.call(e,0,r.maxStringLength),r)+n}return xt(lt.call(lt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Mt),"single",r)}(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var u=String(e);return s?jt(e,u):u}if("bigint"==typeof e){var c=String(e)+"n";return s?jt(e,c):c}var p=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=p&&p>0&&"object"==typeof e)return Rt(e)?"[Array]":"[Object]";var l,f=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=mt.call(Array(t.indent+1)," ")}return{base:r,prev:mt.call(Array(e+1),r)}}(i,o);if(void 0===n)n=[];else if(Ut(n,e)>=0)return"[Circular]";function y(e,r,a){if(r&&(n=bt.call(n)).push(r),a){var s={depth:i.depth};return Nt(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),t(e,s,o+1,n)}return t(e,i,o+1,n)}if("function"==typeof e&&!Ct(e)){var h=function(t){if(t.name)return t.name;var e=ct.call(ut.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),d=Ht(e,y);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(d.length>0?" { "+mt.call(d,", ")+" }":"")}if(It(e)){var m=St?lt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):_t.call(e);return"object"!=typeof e||St?m:Lt(m)}if((l=e)&&"object"==typeof l&&("undefined"!=typeof HTMLElement&&l instanceof HTMLElement||"string"==typeof l.nodeName&&"function"==typeof l.getAttribute)){for(var b="<"+yt.call(String(e.nodeName)),g=e.attributes||[],v=0;v<g.length;v++)b+=" "+g[v].name+"="+xt(kt(g[v].value),"double",i);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+"</"+yt.call(String(e.nodeName))+">"}if(Rt(e)){if(0===e.length)return"[]";var w=Ht(e,y);return f&&!function(t){for(var e=0;e<t.length;e++)if(Ut(t[e],"\n")>=0)return!1;return!0}(w)?"["+Wt(w,f)+"]":"[ "+mt.call(w,", ")+" ]"}if(function(t){return!("[object Error]"!==Dt(t)||At&&"object"==typeof t&&At in t)}(e)){var _=Ht(e,y);return"cause"in Error.prototype||!("cause"in e)||Et.call(e,"cause")?0===_.length?"["+String(e)+"]":"{ ["+String(e)+"] "+mt.call(_,", ")+" }":"{ ["+String(e)+"] "+mt.call(dt.call("[cause]: "+y(e.cause),_),", ")+" }"}if("object"==typeof e&&a){if(Pt&&"function"==typeof e[Pt]&&V)return V(e,{depth:p-o});if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!K||!t||"object"!=typeof t)return!1;try{K.call(t);try{et.call(t)}catch(b){return!0}return t instanceof Map}catch(rr){}return!1}(e)){var S=[];return Y.call(e,(function(t,r){S.push(y(r,e,!0)+" => "+y(t,e))})),Bt("Map",K.call(e),S,f)}if(function(t){if(!et||!t||"object"!=typeof t)return!1;try{et.call(t);try{K.call(t)}catch(e){return!0}return t instanceof Set}catch(rr){}return!1}(e)){var A=[];return rt.call(e,(function(t){A.push(y(t,e))})),Bt("Set",et.call(e),A,f)}if(function(t){if(!ot||!t||"object"!=typeof t)return!1;try{ot.call(t,ot);try{nt.call(t,nt)}catch(b){return!0}return t instanceof WeakMap}catch(rr){}return!1}(e))return qt("WeakMap");if(function(t){if(!nt||!t||"object"!=typeof t)return!1;try{nt.call(t,nt);try{ot.call(t,ot)}catch(b){return!0}return t instanceof WeakSet}catch(rr){}return!1}(e))return qt("WeakSet");if(function(t){if(!it||!t||"object"!=typeof t)return!1;try{return it.call(t),!0}catch(rr){}return!1}(e))return qt("WeakRef");if(function(t){return!("[object Number]"!==Dt(t)||At&&"object"==typeof t&&At in t)}(e))return Lt(y(Number(e)));if(function(t){if(!t||"object"!=typeof t||!vt)return!1;try{return vt.call(t),!0}catch(rr){}return!1}(e))return Lt(y(vt.call(e)));if(function(t){return!("[object Boolean]"!==Dt(t)||At&&"object"==typeof t&&At in t)}(e))return Lt(at.call(e));if(function(t){return!("[object String]"!==Dt(t)||At&&"object"==typeof t&&At in t)}(e))return Lt(y(String(e)));if(!function(t){return!("[object Date]"!==Dt(t)||At&&"object"==typeof t&&At in t)}(e)&&!Ct(e)){var E=Ht(e,y),O=Ot?Ot(e)===Object.prototype:e instanceof Object||e.constructor===Object,j=e instanceof Object?"":"null prototype",T=!O&&At&&Object(e)===e&&At in e?pt.call(Dt(e),8,-1):j?"Object":"",P=(O||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(T||j?"["+mt.call(dt.call([],T||[],j||[]),": ")+"] ":"");return 0===E.length?P+"{}":f?P+"{"+Wt(E,f)+"}":P+"{ "+mt.call(E,", ")+" }"}return String(e)}(t))},get:function(o){if(Gt&&o&&("object"==typeof o||"function"==typeof o)){if(t)return Jt(t,o)}else if($t){if(e)return Xt(e,o)}else if(r)return function(t,e){var r=Zt(t,e);return r&&r.value}(r,o)},has:function(o){if(Gt&&o&&("object"==typeof o||"function"==typeof o)){if(t)return Qt(t,o)}else if($t){if(e)return Yt(e,o)}else if(r)return function(t,e){return!!Zt(t,e)}(r,o);return!1},set:function(o,n){Gt&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new Gt),Vt(t,o,n)):$t?(e||(e=new $t),Kt(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=Zt(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o},ee=String.prototype.replace,re=/%20/g,oe={default:"RFC3986",formatters:{RFC1738:function(t){return ee.call(t,re,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:"RFC3986"},ne=Object.prototype.hasOwnProperty,ie=Array.isArray,ae=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),se={combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],i=n.obj[n.prop],a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],c=i[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:u}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(ie(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(rr){return o}},encode:function(t,e,r,o,n){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var u=i.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||n===oe.RFC1738&&(40===u||41===u)?a+=i.charAt(s):u<128?a+=ae[u]:u<2048?a+=ae[192|u>>6]+ae[128|63&u]:u<55296||u>=57344?a+=ae[224|u>>12]+ae[128|u>>6&63]+ae[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(s)),a+=ae[240|u>>18]+ae[128|u>>12&63]+ae[128|u>>6&63]+ae[128|63&u])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(ie(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(ie(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!ne.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var n=e;return ie(e)&&!ie(r)&&(n=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r}(e,o)),ie(e)&&ie(r)?(r.forEach((function(r,n){if(ne.call(e,n)){var i=e[n];i&&"object"==typeof i&&r&&"object"==typeof r?e[n]=t(i,r,o):e.push(r)}else e[n]=r})),e):Object.keys(r).reduce((function(e,n){var i=r[n];return ne.call(e,n)?e[n]=t(e[n],i,o):e[n]=i,e}),n)}},ue=Object.prototype.hasOwnProperty,ce={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},pe=Array.isArray,le=String.prototype.split,fe=Array.prototype.push,ye=function(t,e){fe.apply(t,pe(e)?e:[e])},he=Date.prototype.toISOString,de=oe.default,me={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:se.encode,encodeValuesOnly:!1,format:de,formatter:oe.formatters[de],indices:!1,serializeDate:function(t){return he.call(t)},skipNulls:!1,strictNullHandling:!1},be={},ge=function t(e,r,o,n,i,a,s,u,c,p,l,f,y,h,d){for(var m,b=e,g=d,v=0,w=!1;void 0!==(g=g.get(be))&&!w;){var _=g.get(e);if(v+=1,void 0!==_){if(_===v)throw new RangeError("Cyclic object value");w=!0}void 0===g.get(be)&&(v=0)}if("function"==typeof s?b=s(r,b):b instanceof Date?b=p(b):"comma"===o&&pe(b)&&(b=se.maybeMap(b,(function(t){return t instanceof Date?p(t):t}))),null===b){if(n)return a&&!y?a(r,me.encoder,h,"key",l):r;b=""}if("string"==typeof(m=b)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||se.isBuffer(b)){if(a){var S=y?r:a(r,me.encoder,h,"key",l);if("comma"===o&&y){for(var A=le.call(String(b),","),E="",O=0;O<A.length;++O)E+=(0===O?"":",")+f(a(A[O],me.encoder,h,"value",l));return[f(S)+(pe(b)&&1===A.length?"[]":"")+"="+E]}return[f(S)+"="+f(a(b,me.encoder,h,"value",l))]}return[f(r)+"="+f(String(b))]}var j,T=[];if(void 0===b)return T;if("comma"===o&&pe(b))j=[{value:b.length>0?b.join(",")||null:void 0}];else if(pe(s))j=s;else{var P=Object.keys(b);j=u?P.sort(u):P}for(var x="comma"===o&&pe(b)&&1===b.length?r+"[]":r,k=0;k<j.length;++k){var R=j[k],C="object"==typeof R&&void 0!==R.value?R.value:b[R];if(!i||null!==C){var I=pe(b)?"function"==typeof o?o(x,R):x:x+(c?"."+R:"["+R+"]");d.set(e,v);var F=te();F.set(be,d),ye(T,t(C,I,o,n,i,a,s,u,c,p,l,f,y,h,F))}}return T},ve=(Object.prototype.hasOwnProperty,Array.isArray,{stringify:function(t,e){var r,o=t,n=function(t){if(!t)return me;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||me.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=oe.default;if(void 0!==t.format){if(!ue.call(oe.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=oe.formatters[r],n=me.filter;return("function"==typeof t.filter||pe(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:me.addQueryPrefix,allowDots:void 0===t.allowDots?me.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:me.charsetSentinel,delimiter:void 0===t.delimiter?me.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:me.encode,encoder:"function"==typeof t.encoder?t.encoder:me.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:me.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:me.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:me.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:me.strictNullHandling}}(e);"function"==typeof n.filter?o=(0,n.filter)("",o):pe(n.filter)&&(r=n.filter);var i,a=[];if("object"!=typeof o||null===o)return"";i=e&&e.arrayFormat in ce?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var s=ce[i];r||(r=Object.keys(o)),n.sort&&r.sort(n.sort);for(var u=te(),c=0;c<r.length;++c){var p=r[c];n.skipNulls&&null===o[p]||ye(a,ge(o[p],p,s,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,u))}var l=a.join(n.delimiter),f=!0===n.addQueryPrefix?"?":"";return n.charsetSentinel&&("iso-8859-1"===n.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),l.length>0?f+l:""}}),we={type:t=>t.split(/ *; */).shift(),params:t=>{const e={};for(const r of t.split(/ *; */)){const t=r.split(/ *= */),o=t.shift(),n=t.shift();o&&n&&(e[o]=n)}return e},parseLinks:t=>{const e={};for(const r of t.split(/ *, */)){const t=r.split(/ *; */),o=t[0].slice(1,-1);e[t[1].split(/ *= */)[1].slice(1,-1)]=o}return e},isObject:t=>null!==t&&"object"==typeof t};we.hasOwn=Object.hasOwn||function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(t),e)},we.mixin=(t,e)=>{for(const r in e)we.hasOwn(e,r)&&(t[r]=e[r])};var _e,Se,Ae,Ee=_e={};function Oe(){throw new Error("setTimeout has not been defined")}function je(){throw new Error("clearTimeout has not been defined")}function Te(t){if(Se===setTimeout)return setTimeout(t,0);if((Se===Oe||!Se)&&setTimeout)return Se=setTimeout,setTimeout(t,0);try{return Se(t,0)}catch(rr){try{return Se.call(null,t,0)}catch(rr){return Se.call(this,t,0)}}}!function(){try{Se="function"==typeof setTimeout?setTimeout:Oe}catch(rr){Se=Oe}try{Ae="function"==typeof clearTimeout?clearTimeout:je}catch(rr){Ae=je}}();var Pe,xe=[],ke=!1,Re=-1;function Ce(){ke&&Pe&&(ke=!1,Pe.length?xe=Pe.concat(xe):Re=-1,xe.length&&Ie())}function Ie(){if(!ke){var t=Te(Ce);ke=!0;for(var e=xe.length;e;){for(Pe=xe,xe=[];++Re<e;)Pe&&Pe[Re].run();Re=-1,e=xe.length}Pe=null,ke=!1,function(t){if(Ae===clearTimeout)return clearTimeout(t);if((Ae===je||!Ae)&&clearTimeout)return Ae=clearTimeout,clearTimeout(t);try{Ae(t)}catch(rr){try{return Ae.call(null,t)}catch(rr){return Ae.call(this,t)}}}(t)}}function Fe(t,e){this.fun=t,this.array=e}function Ne(){}Ee.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];xe.push(new Fe(t,e)),1!==xe.length||ke||Te(Ie)},Fe.prototype.run=function(){this.fun.apply(null,this.array)},Ee.title="browser",Ee.browser=!0,Ee.env={},Ee.argv=[],Ee.version="",Ee.versions={},Ee.on=Ne,Ee.addListener=Ne,Ee.once=Ne,Ee.off=Ne,Ee.removeListener=Ne,Ee.removeAllListeners=Ne,Ee.emit=Ne,Ee.prependListener=Ne,Ee.prependOnceListener=Ne,Ee.listeners=function(t){return[]},Ee.binding=function(t){throw new Error("process.binding is not supported")},Ee.cwd=function(){return"/"},Ee.chdir=function(t){throw new Error("process.chdir is not supported")},Ee.umask=function(){return 0};var De={};(function(t){(function(){"use strict";const{isObject:e,hasOwn:r}=we;function o(){}De=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(t){return this._parser=t,this},o.prototype.responseType=function(t){return this._responseType=t,this},o.prototype.serialize=function(t){return this._serializer=t,this},o.prototype.timeout=function(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(const e in t)if(r(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},o.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};const n=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),i=new Set([408,413,429,500,502,503,504,521,522,524]);o.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(r){console.error(r)}if(e&&e.status&&i.has(e.status))return!0;if(t){if(t.code&&n.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(t,e){if(!this._fullfilledPromise){const t=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((e,r)=>{t.on("abort",()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void r(this.timedoutError);const t=new Error("Aborted");t.code="ABORTED",t.status=this.status,t.method=this.method,t.url=this.url,r(t)}),t.end((t,o)=>{t?r(t):e(o)})})}return this._fullfilledPromise.then(t,e)},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.use=function(t){return t(this),this},o.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},o.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},o.prototype.get=function(t){return this._header[t.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(t,o){if(e(t)){for(const e in t)r(t,e)&&this.set(e,t[e]);return this}return this._header[t.toLowerCase()]=o,this.header[t]=o,this},o.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},o.prototype.field=function(t,o,n){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(e(t)){for(const e in t)r(t,e)&&this.field(e,t[e]);return this}if(Array.isArray(o)){for(const e in o)r(o,e)&&this.field(t,o[e]);return this}if(null==o)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof o&&(o=String(o)),n?this._getFormData().append(t,o,n):this._getFormData().append(t,o),this},o.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(V.gte(t.version,"v13.0.0")&&V.lt(t.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");V.gte(t.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},o.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(o("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},o.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},o.prototype.redirects=function(t){return this._maxRedirects=t,this},o.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(t){const o=e(t);let n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(o&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(o&&e(this._data))for(const e in t)r(t,e)&&(this._data[e]=t[e]);else"string"==typeof t?(n||this.type("form"),(n=this._header["content-type"])&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!o||this._isHost(t)||n||this.type("json"),this},o.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},o.prototype._finalizeQueryString=function(){const t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){const t=this.url.indexOf("?");if(t>=0){const e=this.url.slice(t+1).split("&");"function"==typeof this._sort?e.sort(this._sort):e.sort(),this.url=this.url.slice(0,t)+"?"+e.join("&")}}},o.prototype._appendQueryString=()=>{console.warn("Unsupported")},o.prototype._timeoutError=function(t,e,r){if(this._aborted)return;const o=new Error("".concat(t+e,"ms exceeded"));o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)},o.prototype._setTimeouts=function(){const t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(()=>{t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(()=>{t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}}).call(this)}).call(this,_e);var Ue;function Me(){}Ue=Me,Me.prototype.get=function(t){return this.header[t.toLowerCase()]},Me.prototype._setHeaderProperties=function(t){const e=t["content-type"]||"";this.type=we.type(e);const r=we.params(e);for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=we.parseLinks(t.link))}catch(o){}},Me.prototype._setStatusProperties=function(t){const e=Math.trunc(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t};var Le={};function qe(){this._defaults=[]}for(const or of["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"])qe.prototype[or]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this._defaults.push({fn:or,args:e}),this};qe.prototype._setDefaults=function(t){for(const e of this._defaults)t[e.fn](...e.args)},Le=qe;var Be={};let We;"undefined"!=typeof window?We=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),We=void 0):We=self;const{isObject:He,mixin:ze,hasOwn:Ge}=we;function $e(){}const Je=Be=Be=function(t,e){return"function"==typeof e?new Be.Request("GET",t).end(e):1===arguments.length?new Be.Request("GET",t):new Be.Request(t,e)};Be.Request=tr,Je.getXHR=()=>{if(We.XMLHttpRequest)return new We.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const Ve="".trim?t=>t.trim():t=>t.replace(/(^\s*|\s*$)/g,"");function Qe(t){if(!He(t))return t;const e=[];for(const r in t)Ge(t,r)&&Xe(e,r,t[r]);return e.join("&")}function Xe(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))for(const o of r)Xe(t,e,o);else if(He(r))for(const o in r)Ge(r,o)&&Xe(t,"".concat(e,"[").concat(o,"]"),r[o]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function Ke(t){const e={},r=t.split("&");let o,n;for(let i=0,a=r.length;i<a;++i)-1===(n=(o=r[i]).indexOf("="))?e[decodeURIComponent(o)]="":e[decodeURIComponent(o.slice(0,n))]=decodeURIComponent(o.slice(n+1));return e}function Ye(t){return/[/+]json($|[^-\w])/i.test(t)}function Ze(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let{status:e}=this.xhr;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){const e=t.split(/\r?\n/),r={};let o,n,i,a;for(let s=0,u=e.length;s<u;++s)-1!==(o=(n=e[s]).indexOf(":"))&&(i=n.slice(0,o).toLowerCase(),a=Ve(n.slice(o+1)),r[i]=a);return r}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function tr(t,e){const r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",()=>{let t,e=null,o=null;try{o=new Ze(r)}catch(n){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=n,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(n){t=n}t?(t.original=e,t.response=o,t.status=t.status||o.status,r.callback(t,o)):r.callback(null,o)})}Je.serializeObject=Qe,Je.parseString=Ke,Je.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},Je.serialize={"application/x-www-form-urlencoded":ve.stringify,"application/json":r},Je.parse={"application/x-www-form-urlencoded":Ke,"application/json":JSON.parse},ze(Ze.prototype,Ue.prototype),Ze.prototype._parseBody=function(t){let e=Je.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&Ye(this.type)&&(e=Je.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},Ze.prototype.toError=function(){const{req:t}=this,{method:e}=t,{url:r}=t,o="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},Je.Response=Ze,t(tr.prototype),ze(tr.prototype,De.prototype),tr.prototype.type=function(t){return this.set("Content-Type",Je.types[t]||t),this},tr.prototype.accept=function(t){return this.set("Accept",Je.types[t]||t),this},tr.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"==typeof e&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});const o=r.encoder?r.encoder:t=>{if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,o)},tr.prototype.query=function(t){return"string"!=typeof t&&(t=Qe(t)),t&&this._query.push(t),this},tr.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},tr.prototype._getFormData=function(){return this._formData||(this._formData=new We.FormData),this._formData},tr.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();const r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},tr.prototype.crossDomainError=function(){const t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},tr.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},tr.prototype.ca=tr.prototype.agent,tr.prototype.buffer=tr.prototype.ca,tr.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},tr.prototype.pipe=tr.prototype.write,tr.prototype._isHost=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},tr.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||$e,this._finalizeQueryString(),this._end()},tr.prototype._setUploadTimeout=function(){const t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(()=>{t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},tr.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const t=this;this.xhr=Je.getXHR();const{xhr:e}=this;let r=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",()=>{const{readyState:r}=e;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4!==r)return;let o;try{o=e.status}catch(n){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")});const o=(e,r)=>{r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(n){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(n){return this.callback(n)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){const t=this._header["content-type"];let e=this._serializer||Je.serialize[t?t.split(";")[0]:""];!e&&Ye(t)&&(e=Je.serialize["application/json"]),e&&(r=e(r))}for(const i in this.header)null!==this.header[i]&&Ge(this.header,i)&&e.setRequestHeader(i,this.header[i]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},Je.agent=()=>new Le;for(const or of["GET","POST","OPTIONS","PATCH","PUT","DELETE"])Le.prototype[or.toLowerCase()]=function(t,e){const r=new Je.Request(or,t);return this._setDefaults(r),e&&r.end(e),r};function er(t,e,r){const o=Je("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}return Le.prototype.del=Le.prototype.delete,Je.get=(t,e,r)=>{const o=Je("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},Je.head=(t,e,r)=>{const o=Je("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},Je.options=(t,e,r)=>{const o=Je("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Je.del=er,Je.delete=er,Je.patch=(t,e,r)=>{const o=Je("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Je.post=(t,e,r)=>{const o=Je("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Je.put=(t,e,r)=>{const o=Je("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Be}));
"use strict";
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

@@ -15,3 +7,3 @@

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }

@@ -22,4 +14,4 @@ function Agent() {

var _loop = function _loop() {
var fn = _arr[_i];
for (var _i = 0, _arr = ['use', 'on', 'once', 'set', 'query', 'type', 'accept', 'auth', 'withCredentials', 'sortQuery', 'retry', 'ok', 'redirects', 'timeout', 'buffer', 'serialize', 'parse', 'ca', 'key', 'pfx', 'cert', 'disableTLSCerts']; _i < _arr.length; _i++) {
const fn = _arr[_i];

@@ -33,4 +25,4 @@ // Default setting for all requests from this agent

this._defaults.push({
fn: fn,
args: args
fn,
args
});

@@ -40,6 +32,2 @@

};
};
for (var _i = 0, _arr = ['use', 'on', 'once', 'set', 'query', 'type', 'accept', 'auth', 'withCredentials', 'sortQuery', 'retry', 'ok', 'redirects', 'timeout', 'buffer', 'serialize', 'parse', 'ca', 'key', 'pfx', 'cert', 'disableTLSCerts']; _i < _arr.length; _i++) {
_loop();
}

@@ -53,4 +41,4 @@

for (_iterator.s(); !(_step = _iterator.n()).done;) {
var def = _step.value;
request[def.fn].apply(request, _toConsumableArray(def.args));
const def = _step.value;
request[def.fn](...def.args);
}

@@ -65,2 +53,2 @@ } catch (err) {

module.exports = Agent;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJBZ2VudCIsIl9kZWZhdWx0cyIsImZuIiwicHJvdG90eXBlIiwiYXJncyIsInB1c2giLCJfc2V0RGVmYXVsdHMiLCJyZXF1ZXN0IiwiZGVmIiwibW9kdWxlIiwiZXhwb3J0cyJdLCJzb3VyY2VzIjpbIi4uL3NyYy9hZ2VudC1iYXNlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIEFnZW50KCkge1xuICB0aGlzLl9kZWZhdWx0cyA9IFtdO1xufVxuXG5mb3IgKGNvbnN0IGZuIG9mIFtcbiAgJ3VzZScsXG4gICdvbicsXG4gICdvbmNlJyxcbiAgJ3NldCcsXG4gICdxdWVyeScsXG4gICd0eXBlJyxcbiAgJ2FjY2VwdCcsXG4gICdhdXRoJyxcbiAgJ3dpdGhDcmVkZW50aWFscycsXG4gICdzb3J0UXVlcnknLFxuICAncmV0cnknLFxuICAnb2snLFxuICAncmVkaXJlY3RzJyxcbiAgJ3RpbWVvdXQnLFxuICAnYnVmZmVyJyxcbiAgJ3NlcmlhbGl6ZScsXG4gICdwYXJzZScsXG4gICdjYScsXG4gICdrZXknLFxuICAncGZ4JyxcbiAgJ2NlcnQnLFxuICAnZGlzYWJsZVRMU0NlcnRzJ1xuXSkge1xuICAvLyBEZWZhdWx0IHNldHRpbmcgZm9yIGFsbCByZXF1ZXN0cyBmcm9tIHRoaXMgYWdlbnRcbiAgQWdlbnQucHJvdG90eXBlW2ZuXSA9IGZ1bmN0aW9uICguLi5hcmdzKSB7XG4gICAgdGhpcy5fZGVmYXVsdHMucHVzaCh7IGZuLCBhcmdzIH0pO1xuICAgIHJldHVybiB0aGlzO1xuICB9O1xuf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SxJQUFmLENBQW9CO01BQUVILEVBQUY7TUFBTUU7SUFBTixDQUFwQjs7SUFDQSxPQUFPLElBQVA7RUFDRCxDQUhEO0FBSUQ7O0FBRURKLEtBQUssQ0FBQ0csU0FBTixDQUFnQkcsWUFBaEIsR0FBK0IsVUFBVUMsT0FBVixFQUFtQjtFQUFBLDJDQUM5QixLQUFLTixTQUR5QjtFQUFBOztFQUFBO0lBQ2hELG9EQUFrQztNQUFBLE1BQXZCTyxHQUF1QjtNQUNoQ0QsT0FBTyxDQUFDQyxHQUFHLENBQUNOLEVBQUwsQ0FBUCxDQUFnQixHQUFHTSxHQUFHLENBQUNKLElBQXZCO0lBQ0Q7RUFIK0M7SUFBQTtFQUFBO0lBQUE7RUFBQTtBQUlqRCxDQUpEOztBQU1BSyxNQUFNLENBQUNDLE9BQVAsR0FBaUJWLEtBQWpCIn0=

@@ -7,3 +7,3 @@ "use strict";

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }

@@ -14,16 +14,16 @@ /**

// eslint-disable-next-line node/no-deprecated-api
var _require = require('url'),
parse = _require.parse;
const _require = require('url'),
parse = _require.parse;
var _require2 = require('cookiejar'),
CookieJar = _require2.CookieJar;
const _require2 = require('cookiejar'),
CookieJar = _require2.CookieJar;
var _require3 = require('cookiejar'),
CookieAccessInfo = _require3.CookieAccessInfo;
const _require3 = require('cookiejar'),
CookieAccessInfo = _require3.CookieAccessInfo;
var methods = require('methods');
const methods = require('methods');
var request = require('../..');
const request = require('../..');
var AgentBase = require('../agent-base');
const AgentBase = require('../agent-base');
/**

@@ -82,3 +82,3 @@ * Expose `Agent`.

Agent.prototype._saveCookies = function (res) {
var cookies = res.headers['set-cookie'];
const cookies = res.headers['set-cookie'];
if (cookies) this.jar.setCookies(cookies);

@@ -95,5 +95,5 @@ };

Agent.prototype._attachCookies = function (request_) {
var url = parse(request_.url);
var access = new CookieAccessInfo(url.hostname, url.pathname, url.protocol === 'https:');
var cookies = this.jar.getCookies(access).toValueString();
const url = parse(request_.url);
const access = new CookieAccessInfo(url.hostname, url.pathname, url.protocol === 'https:');
const cookies = this.jar.getCookies(access).toValueString();
request_.cookies = cookies;

@@ -106,8 +106,8 @@ };

try {
var _loop = function _loop() {
var name = _step.value;
var method = name.toUpperCase();
for (_iterator.s(); !(_step = _iterator.n()).done;) {
const name = _step.value;
const method = name.toUpperCase();
Agent.prototype[name] = function (url, fn) {
var request_ = new request.Request(method, url);
const request_ = new request.Request(method, url);
request_.on('response', this._saveCookies.bind(this));

@@ -127,6 +127,2 @@ request_.on('redirect', this._saveCookies.bind(this));

};
};
for (_iterator.s(); !(_step = _iterator.n()).done;) {
_loop();
}

@@ -140,2 +136,2 @@ } catch (err) {

Agent.prototype.del = Agent.prototype.delete;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJyZXF1aXJlIiwicGFyc2UiLCJDb29raWVKYXIiLCJDb29raWVBY2Nlc3NJbmZvIiwibWV0aG9kcyIsInJlcXVlc3QiLCJBZ2VudEJhc2UiLCJtb2R1bGUiLCJleHBvcnRzIiwiQWdlbnQiLCJvcHRpb25zIiwiY2FsbCIsImphciIsImNhIiwia2V5IiwicGZ4IiwiY2VydCIsInJlamVjdFVuYXV0aG9yaXplZCIsImRpc2FibGVUTFNDZXJ0cyIsInByb3RvdHlwZSIsIk9iamVjdCIsImNyZWF0ZSIsIl9zYXZlQ29va2llcyIsInJlcyIsImNvb2tpZXMiLCJoZWFkZXJzIiwic2V0Q29va2llcyIsIl9hdHRhY2hDb29raWVzIiwicmVxdWVzdF8iLCJ1cmwiLCJhY2Nlc3MiLCJob3N0bmFtZSIsInBhdGhuYW1lIiwicHJvdG9jb2wiLCJnZXR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QUMxQixNQUFNQyxNQUFNLEdBQUdELElBQUksQ0FBQ0UsV0FBTCxFQUFmOztJQUNBN0IsS0FBSyxDQUFDVSxTQUFOLENBQWdCaUIsSUFBaEIsSUFBd0IsVUFBVVAsR0FBVixFQUFlVSxFQUFmLEVBQW1CO01BQ3pDLE1BQU1YLFFBQVEsR0FBRyxJQUFJdkIsT0FBTyxDQUFDbUMsT0FBWixDQUFvQkgsTUFBcEIsRUFBNEJSLEdBQTVCLENBQWpCO01BRUFELFFBQVEsQ0FBQ2EsRUFBVCxDQUFZLFVBQVosRUFBd0IsS0FBS25CLFlBQUwsQ0FBa0JvQixJQUFsQixDQUF1QixJQUF2QixDQUF4QjtNQUNBZCxRQUFRLENBQUNhLEVBQVQsQ0FBWSxVQUFaLEVBQXdCLEtBQUtuQixZQUFMLENBQWtCb0IsSUFBbEIsQ0FBdUIsSUFBdkIsQ0FBeEI7TUFDQWQsUUFBUSxDQUFDYSxFQUFULENBQVksVUFBWixFQUF3QixLQUFLZCxjQUFMLENBQW9CZSxJQUFwQixDQUF5QixJQUF6QixFQUErQmQsUUFBL0IsQ0FBeEI7O01BQ0EsS0FBS2UsWUFBTCxDQUFrQmYsUUFBbEI7O01BQ0EsS0FBS0QsY0FBTCxDQUFvQkMsUUFBcEI7O01BRUEsSUFBSVcsRUFBSixFQUFRO1FBQ05YLFFBQVEsQ0FBQ2dCLEdBQVQsQ0FBYUwsRUFBYjtNQUNEOztNQUVELE9BQU9YLFFBQVA7SUFDRCxDQWREO0VBZUQ7Ozs7Ozs7QUFFRG5CLEtBQUssQ0FBQ1UsU0FBTixDQUFnQjBCLEdBQWhCLEdBQXNCcEMsS0FBSyxDQUFDVSxTQUFOLENBQWdCMkIsTUFBdEMifQ==

@@ -9,34 +9,35 @@ "use strict";

var Stream = require('stream');
const Stream = require('stream');
var util = require('util');
const util = require('util');
var net = require('net');
const net = require('net');
var tls = require('tls'); // eslint-disable-next-line node/no-deprecated-api
const tls = require('tls'); // eslint-disable-next-line node/no-deprecated-api
var _require = require('url'),
parse = _require.parse;
const _require = require('url'),
parse = _require.parse;
var process = require('process');
const process = require('process');
var semverGte = require('semver/functions/gte');
const semverGte = require('semver/functions/gte');
var http2;
let http2;
if (semverGte(process.version, 'v10.10.0')) http2 = require('http2');else throw new Error('superagent: this version of Node.js does not support http2');
var _http2$constants = http2.constants,
HTTP2_HEADER_PATH = _http2$constants.HTTP2_HEADER_PATH,
HTTP2_HEADER_STATUS = _http2$constants.HTTP2_HEADER_STATUS,
HTTP2_HEADER_METHOD = _http2$constants.HTTP2_HEADER_METHOD,
HTTP2_HEADER_AUTHORITY = _http2$constants.HTTP2_HEADER_AUTHORITY,
HTTP2_HEADER_HOST = _http2$constants.HTTP2_HEADER_HOST,
HTTP2_HEADER_SET_COOKIE = _http2$constants.HTTP2_HEADER_SET_COOKIE,
NGHTTP2_CANCEL = _http2$constants.NGHTTP2_CANCEL;
const _http2$constants = http2.constants,
HTTP2_HEADER_PATH = _http2$constants.HTTP2_HEADER_PATH,
HTTP2_HEADER_STATUS = _http2$constants.HTTP2_HEADER_STATUS,
HTTP2_HEADER_METHOD = _http2$constants.HTTP2_HEADER_METHOD,
HTTP2_HEADER_AUTHORITY = _http2$constants.HTTP2_HEADER_AUTHORITY,
HTTP2_HEADER_HOST = _http2$constants.HTTP2_HEADER_HOST,
HTTP2_HEADER_SET_COOKIE = _http2$constants.HTTP2_HEADER_SET_COOKIE,
NGHTTP2_CANCEL = _http2$constants.NGHTTP2_CANCEL;
function setProtocol(protocol) {
return {
request: function request(options) {
request(options) {
return new Request(protocol, options);
}
};

@@ -46,9 +47,7 @@ }

function Request(protocol, options) {
var _this = this;
Stream.call(this);
var defaultPort = protocol === 'https:' ? 443 : 80;
var defaultHost = 'localhost';
var port = options.port || defaultPort;
var host = options.host || defaultHost;
const defaultPort = protocol === 'https:' ? 443 : 80;
const defaultHost = 'localhost';
const port = options.port || defaultPort;
const host = options.host || defaultHost;
delete options.port;

@@ -63,3 +62,3 @@ delete options.host;

var sessionOptions = _objectSpread({}, options);
const sessionOptions = _objectSpread({}, options);

@@ -72,7 +71,5 @@ if (options.socketPath) {

this._headers = {};
var session = http2.connect("".concat(protocol, "//").concat(host, ":").concat(port), sessionOptions);
const session = http2.connect("".concat(protocol, "//").concat(host, ":").concat(port), sessionOptions);
this.setHeader('host', "".concat(host, ":").concat(port));
session.on('error', function (error) {
return _this.emit('error', error);
});
session.on('error', error => this.emit('error', error));
this.session = session;

@@ -110,5 +107,2 @@ }

Request.prototype.getFrame = function () {
var _method,
_this2 = this;
if (this.frame) {

@@ -118,25 +112,21 @@ return this.frame;

var method = (_method = {}, _defineProperty(_method, HTTP2_HEADER_PATH, this.path), _defineProperty(_method, HTTP2_HEADER_METHOD, this.method), _method);
var headers = this.mapToHttp2Header(this._headers);
const method = {
[HTTP2_HEADER_PATH]: this.path,
[HTTP2_HEADER_METHOD]: this.method
};
let headers = this.mapToHttp2Header(this._headers);
headers = Object.assign(headers, method);
var frame = this.session.request(headers); // eslint-disable-next-line no-unused-vars
const frame = this.session.request(headers); // eslint-disable-next-line no-unused-vars
frame.once('response', function (headers, flags) {
headers = _this2.mapToHttpHeader(headers);
frame.once('response', (headers, flags) => {
headers = this.mapToHttpHeader(headers);
frame.headers = headers;
frame.statusCode = headers[HTTP2_HEADER_STATUS];
frame.status = frame.statusCode;
_this2.emit('response', frame);
this.emit('response', frame);
});
this._headerSent = true;
frame.once('drain', function () {
return _this2.emit('drain');
});
frame.on('error', function (error) {
return _this2.emit('error', error);
});
frame.on('close', function () {
return _this2.session.close();
});
frame.once('drain', () => this.emit('drain'));
frame.on('error', error => this.emit('error', error));
frame.on('close', () => this.session.close());
this.frame = frame;

@@ -147,8 +137,8 @@ return frame;

Request.prototype.mapToHttpHeader = function (headers) {
var keys = Object.keys(headers);
var http2Headers = {};
const keys = Object.keys(headers);
const http2Headers = {};
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
var key = _keys[_i];
var value = headers[key];
let key = _keys[_i];
let value = headers[key];
key = key.toLowerCase();

@@ -172,8 +162,8 @@

Request.prototype.mapToHttp2Header = function (headers) {
var keys = Object.keys(headers);
var http2Headers = {};
const keys = Object.keys(headers);
const http2Headers = {};
for (var _i2 = 0, _keys2 = keys; _i2 < _keys2.length; _i2++) {
var key = _keys2[_i2];
var value = headers[key];
let key = _keys2[_i2];
let value = headers[key];
key = key.toLowerCase();

@@ -206,3 +196,3 @@

Request.prototype.write = function (data, encoding) {
var frame = this.getFrame();
const frame = this.getFrame();
return frame.write(data, encoding);

@@ -212,3 +202,3 @@ };

Request.prototype.pipe = function (stream, options) {
var frame = this.getFrame();
const frame = this.getFrame();
return frame.pipe(stream, options);

@@ -218,3 +208,3 @@ };

Request.prototype.end = function (data) {
var frame = this.getFrame();
const frame = this.getFrame();
frame.end(data);

@@ -225,3 +215,3 @@ }; // eslint-disable-next-line no-unused-vars

Request.prototype.abort = function (data) {
var frame = this.getFrame();
const frame = this.getFrame();
frame.close(NGHTTP2_CANCEL);

@@ -232,2 +222,2 @@ this.session.destroy();

exports.setProtocol = setProtocol;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJTdHJlYW0iLCJyZXF1aXJlIiwidXRpbCIsIm5ldCIsInRscyIsInBhcnNlIiwicHJvY2VzcyIsInNlbXZlckd0ZSIsImh0dHAyIiwidmVyc2lvbiIsIkVycm9yIiwiY29uc3RhbnRzIiwiSFRUUDJfSEVBREVSX1BBVEgiLCJIVFRQMl9IRUFERVJfU1RBVFVTIiwiSFRUUDJfSEVBREVSX01FVEhPRCIsIkhUVFAyX0hFQURFUl9BVVRIT1JJVFkiLCJIVFRQMl9IRUFERVJfSE9TVCIsIkhUVFAyX0hFQURFUl9TRVRfQ09PS0lFIiwiTkdIVFRQMl9DQU5DRUwiLCJzZXRQcm90b2NvbCIsInByb3RvY29sIiwicmVxdWVzdCIsIm9wdGlvbnMiLCJSZXF1ZXN0IiwiY2FsbCIsImRlZmF1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a0JtQyxHQUFsQixHQUF3QixVQUFVSixJQUFWLEVBQWdCO0VBQ3RDLE1BQU12QixLQUFLLEdBQUcsS0FBS0QsUUFBTCxFQUFkO0VBQ0FDLEtBQUssQ0FBQzJCLEdBQU4sQ0FBVUosSUFBVjtBQUNELENBSEQsQyxDQUtBOzs7QUFDQXBELE9BQU8sQ0FBQ3FCLFNBQVIsQ0FBa0JvQyxLQUFsQixHQUEwQixVQUFVTCxJQUFWLEVBQWdCO0VBQ3hDLE1BQU12QixLQUFLLEdBQUcsS0FBS0QsUUFBTCxFQUFkO0VBQ0FDLEtBQUssQ0FBQ1csS0FBTixDQUFZN0MsY0FBWjtFQUNBLEtBQUttQixPQUFMLENBQWE0QyxPQUFiO0FBQ0QsQ0FKRDs7QUFNQUMsT0FBTyxDQUFDL0QsV0FBUixHQUFzQkEsV0FBdEIifQ==
"use strict";
module.exports = function (res, fn) {
var data = []; // Binary data needs binary storage
module.exports = (res, fn) => {
const data = []; // Binary data needs binary storage
res.on('data', function (chunk) {
res.on('data', chunk => {
data.push(chunk);
});
res.on('end', function () {
res.on('end', () => {
fn(null, Buffer.concat(data));
});
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwicmVzIiwiZm4iLCJkYXRhIiwib24iLCJjaHVuayIsInB1c2giLCJCdWZmZXIiLCJjb25jYXQiXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbm9kZS9wYXJzZXJzL2ltYWdlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKHJlcywgZm4pID0+IHtcbiAgY29uc3QgZGF0YSA9IFtdOyAvLyBCaW5hcnkgZGF0YSBuZWVkcyBiaW5hcnkgc3RvcmFnZVxuXG4gIHJlcy5vbignZGF0YScsIChjaHVuaykgPT4ge1xuICAgIGRhdGEucHVzaChjaHVuayk7XG4gIH0pO1xuICByZXMub24oJ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Sk7XG59O1xuIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxNQUFNLENBQUNDLE9BQVAsR0FBaUIsQ0FBQ0MsR0FBRCxFQUFNQyxFQUFOLEtBQWE7RUFDNUIsTUFBTUMsSUFBSSxHQUFHLEVBQWIsQ0FENEIsQ0FDWDs7RUFFakJGLEdBQUcsQ0FBQ0csRUFBSixDQUFPLE1BQVAsRUFBZ0JDLEtBQUQsSUFBVztJQUN4QkYsSUFBSSxDQUFDRyxJQUFMLENBQVVELEtBQVY7RUFDRCxDQUZEO0VBR0FKLEdBQUcsQ0FBQ0csRUFBSixDQUFPLEtBQVAsRUFBYyxNQUFNO0lBQ2xCRixFQUFFLENBQUMsSUFBRCxFQUFPSyxNQUFNLENBQUNDLE1BQVAsQ0FBY0wsSUFBZCxDQUFQLENBQUY7RUFDRCxDQUZEO0FBR0QsQ0FURCJ9

@@ -8,3 +8,3 @@ "use strict";

var binary = require('./image');
const binary = require('./image');

@@ -14,2 +14,2 @@ exports['application/octet-stream'] = binary;

exports.image = binary;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJleHBvcnRzIiwicmVxdWlyZSIsInRleHQiLCJiaW5hcnkiLCJpbWFnZSJdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL3BhcnNlcnMvaW5kZXguanMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0c1snYXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVkJ10gPSByZXF1aXJlKCcuL3VybGVuY29kZWQnKTtcbmV4cG9ydHNbJ2FwcGxpY2F0aW9uL2pzb24nXSA9IHJlcXVpcmUoJy4vanNvbicpO1xuZXhwb3J0cy50ZXh0ID0gcmVxdWlyZSgnLi90ZXh0Jyk7XG5cbmV4cG9ydHNbJ2FwcGxpY2F0aW9uL2pzb24tc2VxJ10gPSBleHBvcnRzLnRleHQ7XG5cbmNvbnN0IGJpbmFyeSA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mUoJy4vanNvbicpO1xuZXhwb3J0cy50ZXh0ID0gcmVxdWlyZSgnLi90ZXh0Jyk7XG5cbmV4cG9ydHNbJ2FwcGxpY2F0aW9uL2pzb24tc2VxJ10gPSBleHBvcnRzLnRleHQ7XG5cbmNvbnN0IGJpbmFyeSA9IHJlcXVpcmUoJy4vaW1hZ2UnKTtcblxuZXhwb3J0c1snYXBwbGljYXRpb24vb2N0ZXQtc3RyZWFtJ10gPSBiaW5hcnk7XG5leHBvcnRzWydhcHBsaWNhdGlvbi9wZGYnXSA9IGJpbmFyeTtcbmV4cG9ydHMuaW1hZ2UgPSBiaW5hcnk7XG4iXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU8sQ0FBQyxtQ0FBRCxDQUFQLEdBQStDQyxPQUFPLENBQUMsY0FBRCxDQUF0RDtBQUNBRCxPQUFPLENBQUMsa0JBQUQsQ0FBUCxHQUE4QkMsT0FBTyxDQUFDLFFBQUQsQ0FBckM7QUFDQUQsT0FBTyxDQUFDRSxJQUFSLEdBQWVELE9BQU8sQ0FBQyxRQUFELENBQXRCO0FBRUFELE9BQU8sQ0FBQyxzQkFBRCxDQUFQLEdBQWtDQSxPQUFPLENBQUNFLElBQTFDOztBQUVBLE1BQU1DLE1BQU0sR0FBR0YsT0FBTyxDQUFDLFNBQUQsQ0FBdEI7O0FBRUFELE9BQU8sQ0FBQywwQkFBRCxDQUFQLEdBQXNDRyxNQUF0QztBQUNBSCxPQUFPLENBQUMsaUJBQUQsQ0FBUCxHQUE2QkcsTUFBN0I7QUFDQUgsT0FBTyxDQUFDSSxLQUFSLEdBQWdCRCxNQUFoQiJ9

@@ -6,8 +6,8 @@ "use strict";

res.setEncoding('utf8');
res.on('data', function (chunk) {
res.on('data', chunk => {
res.text += chunk;
});
res.on('end', function () {
var body;
var error;
res.on('end', () => {
let body;
let error;

@@ -27,2 +27,2 @@ try {

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lc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FYO0VBQ0FGLEdBQUcsQ0FBQ0csV0FBSixDQUFnQixNQUFoQjtFQUNBSCxHQUFHLENBQUNJLEVBQUosQ0FBTyxNQUFQLEVBQWdCQyxLQUFELElBQVc7SUFDeEJMLEdBQUcsQ0FBQ0UsSUFBSixJQUFZRyxLQUFaO0VBQ0QsQ0FGRDtFQUdBTCxHQUFHLENBQUNJLEVBQUosQ0FBTyxLQUFQLEVBQWMsTUFBTTtJQUNsQixJQUFJRSxJQUFKO0lBQ0EsSUFBSUMsS0FBSjs7SUFDQSxJQUFJO01BQ0ZELElBQUksR0FBR04sR0FBRyxDQUFDRSxJQUFKLElBQVlNLElBQUksQ0FBQ0MsS0FBTCxDQUFXVCxHQUFHLENBQUNFLElBQWYsQ0FBbkI7SUFDRCxDQUZELENBRUUsT0FBT1EsR0FBUCxFQUFZO01BQ1pILEtBQUssR0FBR0csR0FBUixDQURZLENBRVo7O01BQ0FILEtBQUssQ0FBQ0ksV0FBTixHQUFvQlgsR0FBRyxDQUFDRSxJQUFKLElBQVksSUFBaEMsQ0FIWSxDQUlaOztNQUNBSyxLQUFLLENBQUNLLFVBQU4sR0FBbUJaLEdBQUcsQ0FBQ1ksVUFBdkI7SUFDRCxDQVJELFNBUVU7TUFDUlgsRUFBRSxDQUFDTSxLQUFELEVBQVFELElBQVIsQ0FBRjtJQUNEO0VBQ0YsQ0FkRDtBQWVELENBckJEIn0=
"use strict";
module.exports = function (res, fn) {
module.exports = (res, fn) => {
res.text = '';
res.setEncoding('utf8');
res.on('data', function (chunk) {
res.on('data', chunk => {
res.text += chunk;

@@ -11,2 +11,2 @@ });

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwicmVzIiwiZm4iLCJ0ZXh0Iiwic2V0RW5jb2RpbmciLCJvbiIsImNodW5rIl0sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL25vZGUvcGFyc2Vycy90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TtcbiAgcmVzLm9uKCdlbmQnLCBmbik7XG59O1xuIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxNQUFNLENBQUNDLE9BQVAsR0FBaUIsQ0FBQ0MsR0FBRCxFQUFNQyxFQUFOLEtBQWE7RUFDNUJELEdBQUcsQ0FBQ0UsSUFBSixHQUFXLEVBQVg7RUFDQUYsR0FBRyxDQUFDRyxXQUFKLENBQWdCLE1BQWhCO0VBQ0FILEdBQUcsQ0FBQ0ksRUFBSixDQUFPLE1BQVAsRUFBZ0JDLEtBQUQsSUFBVztJQUN4QkwsR0FBRyxDQUFDRSxJQUFKLElBQVlHLEtBQVo7RUFDRCxDQUZEO0VBR0FMLEdBQUcsQ0FBQ0ksRUFBSixDQUFPLEtBQVAsRUFBY0gsRUFBZDtBQUNELENBUEQifQ==

@@ -6,11 +6,11 @@ "use strict";

*/
var qs = require('qs');
const qs = require('qs');
module.exports = function (res, fn) {
module.exports = (res, fn) => {
res.text = '';
res.setEncoding('ascii');
res.on('data', function (chunk) {
res.on('data', chunk => {
res.text += chunk;
});
res.on('end', function () {
res.on('end', () => {
try {

@@ -23,2 +23,2 @@ fn(null, qs.parse(res.text));

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJxcyIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwicmVzIiwiZm4iLCJ0ZXh0Iiwic2V0RW5jb2RpbmciLCJvbiIsImNodW5rIiwicGFyc2UiLCJlcnIiXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbm9kZS9wYXJzZXJzL3VybGVuY29kZWQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBNb2R1bGUgZGVwZW5kZW5jaWVzLlxuICovXG5cbmNvbnN0IHFzID0gcmVxdWlyZSgncXMnKTtcblxubW9kdWxlLmV4cG9ydHMgPSAocmVzLCBmbikgPT4ge1xuICByZXMudGV4dCA9ICcnO1xuICByZXMu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FBUCxFQUFjLE1BQU07SUFDbEIsSUFBSTtNQUNGSCxFQUFFLENBQUMsSUFBRCxFQUFPTCxFQUFFLENBQUNVLEtBQUgsQ0FBU04sR0FBRyxDQUFDRSxJQUFiLENBQVAsQ0FBRjtJQUNELENBRkQsQ0FFRSxPQUFPSyxHQUFQLEVBQVk7TUFDWk4sRUFBRSxDQUFDTSxHQUFELENBQUY7SUFDRDtFQUNGLENBTkQ7QUFPRCxDQWJEIn0=

@@ -6,10 +6,10 @@ "use strict";

*/
var util = require('util');
const util = require('util');
var Stream = require('stream');
const Stream = require('stream');
var ResponseBase = require('../response-base');
const ResponseBase = require('../response-base');
var _require = require('../utils'),
mixin = _require.mixin;
const _require = require('../utils'),
mixin = _require.mixin;
/**

@@ -38,3 +38,3 @@ * Expose `Response`.

this.res = request.res;
var res = this.res;
const res = this.res;
this.request = request;

@@ -62,8 +62,10 @@ this.req = request.req;

Object.defineProperty(Response.prototype, 'body', {
get: function get() {
get() {
return this._body !== undefined ? this._body : this.res.body !== undefined ? this.res.body : {};
},
set: function set(value) {
set(value) {
this._body = value;
}
});

@@ -108,7 +110,7 @@ /**

Response.prototype.toError = function () {
var req = this.req;
var method = req.method;
var path = req.path;
var message = "cannot ".concat(method, " ").concat(path, " (").concat(this.status, ")");
var error = new Error(message);
const req = this.req;
const method = req.method;
const path = req.path;
const message = "cannot ".concat(method, " ").concat(path, " (").concat(this.status, ")");
const error = new Error(message);
error.status = this.status;

@@ -141,2 +143,2 @@ error.text = this.text;

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJ1dGlsIiwicmVxdWlyZSIsIlN0cmVhbSIsIlJlc3BvbnNlQmFzZSIsIm1peGluIiwibW9kdWxlIiwiZXhwb3J0cyIsIlJlc3BvbnNlIiwicmVxdWVzdCIsImNhbGwiLCJyZXMiLCJyZXEiLCJ0ZXh0IiwiZmlsZXMiLCJidWZmZXJlZCIsIl9yZXNCdWZmZXJ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JQUFSO0VBRUEsTUFBTUMsT0FBTyxvQkFBYUYsTUFBYixjQUF1QkMsSUFBdkIsZUFBZ0MsS0FBS0UsTUFBckMsTUFBYjtFQUNBLE1BQU1QLEtBQUssR0FBRyxJQUFJUSxLQUFKLENBQVVGLE9BQVYsQ0FBZDtFQUNBTixLQUFLLENBQUNPLE1BQU4sR0FBZSxLQUFLQSxNQUFwQjtFQUNBUCxLQUFLLENBQUN4QixJQUFOLEdBQWEsS0FBS0EsSUFBbEI7RUFDQXdCLEtBQUssQ0FBQ0ksTUFBTixHQUFlQSxNQUFmO0VBQ0FKLEtBQUssQ0FBQ0ssSUFBTixHQUFhQSxJQUFiO0VBRUEsT0FBT0wsS0FBUDtBQUNELENBYkQ7O0FBZUE3QixRQUFRLENBQUNvQixTQUFULENBQW1Ca0IsbUJBQW5CLEdBQXlDLFVBQVVGLE1BQVYsRUFBa0I7RUFDekRHLE9BQU8sQ0FBQ0MsSUFBUixDQUFhLDJEQUFiO0VBQ0EsT0FBTyxLQUFLN0Isb0JBQUwsQ0FBMEJ5QixNQUExQixDQUFQO0FBQ0QsQ0FIRDtBQUtBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUFwQyxRQUFRLENBQUNvQixTQUFULENBQW1CcUIsTUFBbkIsR0FBNEIsWUFBWTtFQUN0QyxPQUFPO0lBQ0xyQyxHQUFHLEVBQUUsS0FBS0gsT0FBTCxDQUFhd0MsTUFBYixFQURBO0lBRUwvQixNQUFNLEVBQUUsS0FBS0EsTUFGUjtJQUdMMEIsTUFBTSxFQUFFLEtBQUtBLE1BSFI7SUFJTC9CLElBQUksRUFBRSxLQUFLQTtFQUpOLENBQVA7QUFNRCxDQVBEIn0=

@@ -6,8 +6,8 @@ "use strict";

*/
var _require = require('string_decoder'),
StringDecoder = _require.StringDecoder;
const _require = require('string_decoder'),
StringDecoder = _require.StringDecoder;
var Stream = require('stream');
const Stream = require('stream');
var zlib = require('zlib');
const zlib = require('zlib');
/**

@@ -22,9 +22,9 @@ * Buffers response data events and re-emits when they're unzipped.

exports.unzip = function (request, res) {
var unzip = zlib.createUnzip();
var stream = new Stream();
var decoder; // make node responseOnEnd() happy
exports.unzip = (request, res) => {
const unzip = zlib.createUnzip();
const stream = new Stream();
let decoder; // make node responseOnEnd() happy
stream.req = request;
unzip.on('error', function (error) {
unzip.on('error', error => {
if (error && error.code === 'Z_BUF_ERROR') {

@@ -41,3 +41,3 @@ // unexpected end of file is ignored by browsers and curl

res.setEncoding = function (type) {
res.setEncoding = type => {
decoder = new StringDecoder(type);

@@ -47,5 +47,5 @@ }; // decode upon decompressing with captured encoding

unzip.on('data', function (buf) {
unzip.on('data', buf => {
if (decoder) {
var string_ = decoder.write(buf);
const string_ = decoder.write(buf);
if (string_.length > 0) stream.emit('data', string_);

@@ -56,7 +56,7 @@ } else {

});
unzip.on('end', function () {
unzip.on('end', () => {
stream.emit('end');
}); // override `on` to capture data listeners
var _on = res.on;
const _on = res.on;

@@ -77,2 +77,2 @@ res.on = function (type, fn) {

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJyZXF1aXJlIiwiU3RyaW5nRGVjb2RlciIsIlN0cmVhbSIsInpsaWIiLCJleHBvcnRzIiwidW56aXAiLCJyZXF1ZXN0IiwicmVzIiwiY3JlYXRlVW56aXAiLCJzdHJlYW0iLCJkZWNvZGVyIiwicmVxIiwib24iLCJlcnJvciIsImNvZGUiLCJlbWl0IiwicGlwZSIsInNldEVuY29kaW5nIiwidHlwZSIsImJ1ZiIsInN0cmluZ18iLCJ3cml0ZSIsImxlbmd0aCIsIl9vbiIsImZuIiwiYmluZCIsImNhbGwiXSwic291cmNlcyI6WyIuLi8uLi9zcmMvbm9kZS91bnppcC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIE1vZHVsZSBkZXBlbmRlbmNpZXMuXG4gKi9cblxuY29uc3QgeyBTdHJpbmdEZWNvZGVyIH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ENBQVksS0FBWjtFQUNELENBRkQsRUFwQ2dDLENBd0NoQzs7RUFDQSxNQUFNUSxHQUFHLEdBQUdoQixHQUFHLENBQUNLLEVBQWhCOztFQUNBTCxHQUFHLENBQUNLLEVBQUosR0FBUyxVQUFVTSxJQUFWLEVBQWdCTSxFQUFoQixFQUFvQjtJQUMzQixJQUFJTixJQUFJLEtBQUssTUFBVCxJQUFtQkEsSUFBSSxLQUFLLEtBQWhDLEVBQXVDO01BQ3JDVCxNQUFNLENBQUNHLEVBQVAsQ0FBVU0sSUFBVixFQUFnQk0sRUFBRSxDQUFDQyxJQUFILENBQVFsQixHQUFSLENBQWhCO0lBQ0QsQ0FGRCxNQUVPLElBQUlXLElBQUksS0FBSyxPQUFiLEVBQXNCO01BQzNCVCxNQUFNLENBQUNHLEVBQVAsQ0FBVU0sSUFBVixFQUFnQk0sRUFBRSxDQUFDQyxJQUFILENBQVFsQixHQUFSLENBQWhCOztNQUNBZ0IsR0FBRyxDQUFDRyxJQUFKLENBQVNuQixHQUFULEVBQWNXLElBQWQsRUFBb0JNLEVBQXBCO0lBQ0QsQ0FITSxNQUdBO01BQ0xELEdBQUcsQ0FBQ0csSUFBSixDQUFTbkIsR0FBVCxFQUFjVyxJQUFkLEVBQW9CTSxFQUFwQjtJQUNEOztJQUVELE9BQU8sSUFBUDtFQUNELENBWEQ7QUFZRCxDQXRERCJ9

@@ -6,3 +6,3 @@ "use strict";

*/
var utils = require('./utils');
const utils = require('./utils');
/**

@@ -50,8 +50,8 @@ * Expose `ResponseBase`.

// content-type
var ct = header['content-type'] || '';
const ct = header['content-type'] || '';
this.type = utils.type(ct); // params
var parameters = utils.params(ct);
const parameters = utils.params(ct);
for (var key in parameters) {
for (const key in parameters) {
if (Object.prototype.hasOwnProperty.call(parameters, key)) this[key] = parameters[key];

@@ -66,3 +66,3 @@ }

}
} catch (_unused) {// ignore
} catch (err) {// ignore
}

@@ -93,3 +93,3 @@ };

ResponseBase.prototype._setStatusProperties = function (status) {
var type = Math.trunc(status / 100); // status / class
const type = Math.trunc(status / 100); // status / class

@@ -117,2 +117,2 @@ this.statusCode = status;

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJ1dGlscyIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiUmVzcG9uc2VCYXNlIiwicHJvdG90eXBlIiwiZ2V0IiwiZmllbGQiLCJoZWFkZXIiLCJ0b0xvd2VyQ2FzZSIsIl9zZXRIZWFkZXJQcm9wZXJ0aWVzIiwiY3QiLCJ0eXBlIiwicGFyYW1ldGVycyIsInBhcmFtcyIsImtleSIsIk9iamVjdCIsImhhc093blByb3BlcnR5IiwiY2FsbCIsImxpbmtzIiwibGluayIsInBhcnNlTGlua3MiLCJfc2V0U3RhdHVzUHJvcGVydGllcyIsInN0YXR1cyIsIk1hdGgiLCJ0cnVuYyIsInN0YXR1c0NvZGUiLCJzdGF0dXNUeXBlIiwiaW5mbyIsIm9rIiwicmVkaXJlY3QiLCJjbGllbnRFcnJvciIsInNlcnZlckVycm9yIiwiZXJyb3IiLCJ0b0Vycm9yIiwiY3JlYXRlZCIsImFjY2VwdGVkIiwibm9Db250ZW50IiwiYmFkUmVxdWVzdCIsInVuYXV0aG9yaXplZCIsIm5vdEFjY2VwdGFibGUiLCJmb3JiaWRkZW4iLCJub3RGb3VuZCIsInVucHJvY2Vzc2FibGVFbnRpdHkiXSwic291cmNlcyI6WyIuLi9zcmMvcmVzcG9uc2UtYmFzZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIE1vZHVsZSBkZXBlbmRlbmNpZXMuXG4gKi9cblxuY29uc3QgdXRpbHMgPSByZXF1aXJlKCcuL3V0aWxzJyk7XG5cbi8qKlxuICogRXhwb3NlIGBSZXNwb25zZUJhc2VgLlxuICovXG5cbm1vZHVsZS5leHBvcnRzID0gUmVzcG9uc2VCYXNlO1xuXG4vKipcbiAqIEluaXRpYWxpemUgYSB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BSSxLQUFLLENBQVQsSUFBY0EsSUFBSSxLQUFLLENBQXZCLEdBQTJCLEtBQUt1QixPQUFMLEVBQTNCLEdBQTRDLEtBQXpELENBZDhELENBZ0I5RDs7RUFDQSxLQUFLQyxPQUFMLEdBQWVaLE1BQU0sS0FBSyxHQUExQjtFQUNBLEtBQUthLFFBQUwsR0FBZ0JiLE1BQU0sS0FBSyxHQUEzQjtFQUNBLEtBQUtjLFNBQUwsR0FBaUJkLE1BQU0sS0FBSyxHQUE1QjtFQUNBLEtBQUtlLFVBQUwsR0FBa0JmLE1BQU0sS0FBSyxHQUE3QjtFQUNBLEtBQUtnQixZQUFMLEdBQW9CaEIsTUFBTSxLQUFLLEdBQS9CO0VBQ0EsS0FBS2lCLGFBQUwsR0FBcUJqQixNQUFNLEtBQUssR0FBaEM7RUFDQSxLQUFLa0IsU0FBTCxHQUFpQmxCLE1BQU0sS0FBSyxHQUE1QjtFQUNBLEtBQUttQixRQUFMLEdBQWdCbkIsTUFBTSxLQUFLLEdBQTNCO0VBQ0EsS0FBS29CLG1CQUFMLEdBQTJCcEIsTUFBTSxLQUFLLEdBQXRDO0FBQ0QsQ0ExQkQifQ==
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

@@ -9,3 +7,3 @@

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }

@@ -19,5 +17,3 @@ /**

*/
exports.type = function (string_) {
return string_.split(/ *; */).shift();
};
exports.type = string_ => string_.split(/ *; */).shift();
/**

@@ -32,4 +28,4 @@ * Return header field parameters.

exports.params = function (value) {
var object = {};
exports.params = value => {
const object = {};

@@ -41,9 +37,7 @@ var _iterator = _createForOfIteratorHelper(value.split(/ *; */)),

for (_iterator.s(); !(_step = _iterator.n()).done;) {
var string_ = _step.value;
var parts = string_.split(/ *= */);
var key = parts.shift();
var _value = parts.shift();
if (key && _value) object[key] = _value;
const string_ = _step.value;
const parts = string_.split(/ *= */);
const key = parts.shift();
const value = parts.shift();
if (key && value) object[key] = value;
}

@@ -67,4 +61,4 @@ } catch (err) {

exports.parseLinks = function (value) {
var object = {};
exports.parseLinks = value => {
const object = {};

@@ -76,6 +70,6 @@ var _iterator2 = _createForOfIteratorHelper(value.split(/ *, */)),

for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
var string_ = _step2.value;
var parts = string_.split(/ *; */);
var url = parts[0].slice(1, -1);
var rel = parts[1].split(/ *= */)[1].slice(1, -1);
const string_ = _step2.value;
const parts = string_.split(/ *; */);
const url = parts[0].slice(1, -1);
const rel = parts[1].split(/ *= */)[1].slice(1, -1);
object[rel] = url;

@@ -100,3 +94,3 @@ }

exports.cleanHeader = function (header, changesOrigin) {
exports.cleanHeader = (header, changesOrigin) => {
delete header['content-type'];

@@ -123,4 +117,4 @@ delete header['content-length'];

exports.isObject = function (object) {
return object !== null && _typeof(object) === 'object';
exports.isObject = object => {
return object !== null && typeof object === 'object';
};

@@ -143,4 +137,4 @@ /**

exports.mixin = function (target, source) {
for (var key in source) {
exports.mixin = (target, source) => {
for (const key in source) {
if (exports.hasOwn(source, key)) {

@@ -151,2 +145,2 @@ target[key] = source[key];

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJleHBvcnRzIiwidHlwZSIsInN0cmluZ18iLCJzcGxpdCIsInNoaWZ0IiwicGFyYW1zIiwidmFsdWUiLCJvYmplY3QiLCJwYXJ0cyIsImtleSIsInBhcnNlTGlua3MiLCJ1cmwiLCJzbGljZSIsInJlbCIsImNsZWFuSGVhZGVyIiwiaGVhZGVyIiwiY2hhbmdlc09yaWdpbiIsImhvc3QiLCJhdXRob3JpemF0aW9uIiwiY29va2llIiwiaXNPYmplY3QiLCJoYXNPd24iLCJPYmplY3QiLCJwcm9wZXJ0eSIsIlR5cGVFcnJvciIsInByb3RvdHlwZSIsImhhc093blByb3BlcnR5IiwiY2FsbCIsIm1peGluIiwidGFyZ2V0Iiwic291cmNlIl0sInNvdXJjZXMiOlsiLi4vc3JjL3V0aWxzLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogUmV0dXJuIHRoZSBtaW1lIHR5cGUgZm9yIHRoZSBnaXZlbiBgc3RyYC5cbiAqXG4gKiBAcGFyYW0ge1N0cmluZ30gc3RyXG4gKiBAcmV0dXJuIHtTdHJpbmd9XG4gKiBAYXBpIHByaXZhdGVcbiAqL1xuXG5leHBvcnRzLnR5cGUgPSAoc3RyaW5nXykgPT4gc3RyaW5nXy5zcGxpdCgvICo7ICovKS5zaGlmdCgpO1xuXG4vKipcbiAqIFJldHVybiBoZWFkZXIgZmllbGQgcGFyYW1ldGVycy5cbiAqXG4gKiBAcGFyYW0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E1BQVQsS0FBb0I7RUFDbEMsS0FBSyxNQUFNckIsR0FBWCxJQUFrQnFCLE1BQWxCLEVBQTBCO0lBQ3hCLElBQUk5QixPQUFPLENBQUNxQixNQUFSLENBQWVTLE1BQWYsRUFBdUJyQixHQUF2QixDQUFKLEVBQWlDO01BQy9Cb0IsTUFBTSxDQUFDcEIsR0FBRCxDQUFOLEdBQWNxQixNQUFNLENBQUNyQixHQUFELENBQXBCO0lBQ0Q7RUFDRjtBQUNGLENBTkQifQ==
{
"name": "superagent",
"description": "elegant & feature rich browser / node HTTP with a fluent API",
"version": "7.1.6",
"version": "8.0.0",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -36,4 +36,4 @@ "browser": {

"@babel/cli": "^7.17.10",
"@babel/core": "^7.18.2",
"@babel/plugin-transform-runtime": "^7.18.2",
"@babel/core": "^7.18.5",
"@babel/plugin-transform-runtime": "^7.18.5",
"@babel/preset-env": "^7.18.2",

@@ -51,4 +51,4 @@ "@babel/runtime": "^7.18.3",

"cross-env": "^7.0.3",
"eslint": "^8.16.0",
"eslint-config-xo-lass": "^1.0.6",
"eslint": "^8.18.0",
"eslint-config-xo-lass": "^2.0.1",
"eslint-plugin-compat": "^4.0.2",

@@ -61,3 +61,3 @@ "eslint-plugin-node": "^11.1.0",

"husky": "^8.0.1",
"lint-staged": "^12.5.0",
"lint-staged": "^13.0.2",
"marked": "^2.0.0",

@@ -68,3 +68,3 @@ "mocha": "6.2.2",

"remark-cli": "^10.0.1",
"remark-preset-github": "^4.0.2",
"remark-preset-github": "^4.0.4",
"rimraf": "^3.0.2",

@@ -71,0 +71,0 @@ "should": "^13.2.3",

@@ -75,3 +75,3 @@ # superagent

**The browser-ready, minified version of `superagent` is only 6 KB (minified and gzipped)!**
**The browser-ready, minified version of `superagent` is only 50 KB (minified and gzipped).**

@@ -87,3 +87,3 @@ Browser-ready versions of this module are available via [jsdelivr][], [unpkg][], and also in the `node_modules/superagent/dist` folder in downloads of the `superagent` package.

```html
<script src="https://polyfill.io/v3/polyfill.min.js?features=Array.from,Promise,Symbol,Object.setPrototypeOf,Object.getOwnPropertySymbols,Set,Math.trunc,BigInt,Map,Reflect,WeakMap,WeakRef,WeakSet,BigInt,Map,Reflect,WeakMap,WeakRef,WeakSet"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
<script src="https://cdn.jsdelivr.net/npm/superagent"></script>

@@ -125,34 +125,33 @@ <!-- if you wish to use unpkg.com instead: -->

```sh
and_chr 71
and_ff 64
and_qq 1.2
and_uc 11.8
android 67
android 4.4.3-4.4.4
baidu 7.12
bb 10
bb 7
chrome 73
chrome 72
chrome 71
edge 18
edge 17
firefox 66
firefox 65
ie 11
ie 10
ie 9
ie_mob 11
ie_mob 10
ios_saf 12.0-12.1
ios_saf 11.3-11.4
and_chr 102
and_ff 101
and_qq 10.4
and_uc 12.12
android 101
chrome 103
chrome 102
chrome 101
chrome 100
edge 103
edge 102
edge 101
firefox 101
firefox 100
firefox 91
ios_saf 15.5
ios_saf 15.4
ios_saf 15.2-15.3
ios_saf 15.0-15.1
ios_saf 14.5-14.8
ios_saf 14.0-14.4
ios_saf 12.2-12.5
kaios 2.5
op_mini all
op_mob 46
op_mob 12.1
opera 58
opera 57
safari 12
safari 11.1
samsung 8.2
samsung 7.2-7.4
op_mob 64
opera 86
opera 85
safari 15.5
safari 15.4
samsung 17.0
samsung 16.0
```

@@ -165,7 +164,7 @@

```html
<script src="https://polyfill.io/v3/polyfill.min.js?features=Array.from,Promise,Symbol,Object.setPrototypeOf,Object.getOwnPropertySymbols,Set,Math.trunc,BigInt,Map,Reflect,WeakMap,WeakRef,WeakSet"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
```
* IE 9-10 requires a polyfill for `Promise`, `Array.from`, `Symbol`, `Object.getOwnPropertySymbols`, and `Object.setPrototypeOf`
* IE 9 requires a polyfill for `window.FormData` (we recommend [formdata-polyfill][]), `Set`, `Math.trunc`, `BigInt`, `Map`, `Reflect`, `WeakMap`, `WeakRef`, and `WeakSet`
* WeakRef is not supported in Opera 85, iOS Safari 12.2-12.5
* BigInt is not supported in iOS Safari 12.2-12.5

@@ -268,4 +267,2 @@

[formdata-polyfill]: https://www.npmjs.com/package/formdata-polyfill
[jsdelivr]: https://www.jsdelivr.com/

@@ -272,0 +269,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc