express-honeypots
Version:
This repository contains a collection of honeypots for the Express framework to prevent automated scanning.
1 lines • 841 kB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{88612:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(84531),t)},84531:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.store=t.PERSISTENCY_KEY=void 0;const i=n(69328);function o(){try{if(null==localStorage)return!1;const e=t.PERSISTENCY_KEY+"_test";return localStorage.setItem(e,"test"),localStorage.getItem(e),localStorage.removeItem(e),!0}catch(e){return!1}}t.PERSISTENCY_KEY="MSW_COOKIE_STORE";t.store=new class{constructor(){this.store=new Map}add(e,t){if("omit"===e.credentials)return;const n=new URL(e.url),o=t.headers.get("set-cookie");if(!o)return;const a=Date.now(),s=i.parse(o).map((e=>{var{maxAge:t}=e,n=r(e,["maxAge"]);return Object.assign(Object.assign({},n),{expires:void 0===t?n.expires:new Date(a+1e3*t),maxAge:t})})),u=this.store.get(n.origin)||new Map;s.forEach((e=>{this.store.set(n.origin,u.set(e.name,e))}))}get(e){this.deleteExpiredCookies();const t=new URL(e.url),n=this.store.get(t.origin)||new Map;switch(e.credentials){case"include":if("undefined"===typeof document)return n;return i.parse(document.cookie).forEach((e=>{n.set(e.name,e)})),n;case"same-origin":return n;default:return new Map}}getAll(){return this.deleteExpiredCookies(),this.store}deleteAll(e){const t=new URL(e.url);this.store.delete(t.origin)}clear(){this.store.clear()}hydrate(){if(!o())return;const e=localStorage.getItem(t.PERSISTENCY_KEY);if(e)try{JSON.parse(e).forEach((([e,t])=>{this.store.set(e,new Map(t.map((e=>{var[t,n]=e,{expires:i}=n,o=r(n,["expires"]);return[t,void 0===i?o:Object.assign(Object.assign({},o),{expires:new Date(i)})]}))))}))}catch(n){console.warn(`\n[virtual-cookie] Failed to parse a stored cookie from the localStorage (key "${t.PERSISTENCY_KEY}").\n\nStored value:\n${localStorage.getItem(t.PERSISTENCY_KEY)}\n\nThrown exception:\n${n}\n\nInvalid value has been removed from localStorage to prevent subsequent failed parsing attempts.`),localStorage.removeItem(t.PERSISTENCY_KEY)}}persist(){if(!o())return;const e=Array.from(this.store.entries()).map((([e,t])=>[e,Array.from(t.entries())]));localStorage.setItem(t.PERSISTENCY_KEY,JSON.stringify(e))}deleteExpiredCookies(){const e=Date.now();this.store.forEach(((t,n)=>{t.forEach((({expires:n,name:r})=>{void 0!==n&&n.getTime()<=e&&t.delete(r)})),0===t.size&&this.store.delete(n)}))}}},29142:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BatchInterceptor=void 0;var o=function(e){function t(n){var r=this;return t.symbol=Symbol(n.name),(r=e.call(this,t.symbol)||this).interceptors=n.interceptors,r}return r(t,e),t.prototype.setup=function(){var e,t,n=this.log.extend("setup");n("applying all %d interceptors...",this.interceptors.length);var r=function(e){n('applying "%s" interceptor...',e.constructor.name),e.apply(),n("adding interceptor dispose subscription"),o.subscriptions.push((function(){return e.dispose()}))},o=this;try{for(var a=i(this.interceptors),s=a.next();!s.done;s=a.next()){r(s.value)}}catch(u){e={error:u}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},t.prototype.on=function(e,t){this.interceptors.forEach((function(n){n.on(e,t)}))},t}(n(9250).Interceptor);t.BatchInterceptor=o},63016:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.InteractiveIsomorphicRequest=void 0;var i=n(48987),o=n(69887),a=n(22215),s=function(e){function t(t){var n=e.call(this,t)||this;return n.respondWith=a.createLazyCallback({maxCalls:1,maxCallsCallback:function(){i.invariant(!1,'Failed to respond to "%s %s" request: the "request" event has already been responded to.',n.method,n.url.href)}}),n}return r(t,e),t}(o.IsomorphicRequest);t.InteractiveIsomorphicRequest=s},9250:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Interceptor=t.InterceptorReadyState=t.deleteGlobalSymbol=t.getGlobalSymbol=void 0;var i,o=n(11227),a=n(11646),s=n(67467);function u(e){return globalThis[e]||void 0}function c(e){delete globalThis[e]}t.getGlobalSymbol=u,t.deleteGlobalSymbol=c,function(e){e.IDLE="IDLE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED"}(i=t.InterceptorReadyState||(t.InterceptorReadyState={}));var l=function(){function e(e){this.symbol=e,this.readyState=i.IDLE,this.emitter=new a.AsyncEventEmitter,this.subscriptions=[],this.log=o.debug(e.description),this.emitter.setMaxListeners(0),this.log("constructing the interceptor...")}return e.prototype.checkEnvironment=function(){return!0},e.prototype.apply=function(){var e=this,t=this.log.extend("apply");if(t("applying the interceptor..."),this.readyState!==i.APPLIED)if(this.checkEnvironment()){this.readyState=i.APPLYING,this.emitter.activate(),t("activated the emiter!",this.emitter.readyState);var n=this.getInstance();if(n)return t("found a running instance, reusing..."),this.on=function(r,i){t('proxying the "%s" listener',r),n.emitter.addListener(r,i),e.subscriptions.push((function(){n.emitter.removeListener(r,i),t('removed proxied "%s" listener!',r)}))},void s.nextTick((function(){e.readyState=i.APPLIED}));t("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),s.nextTick((function(){e.readyState=i.APPLIED}))}else t("the interceptor cannot be applied in this environment!");else t("intercepted already applied!")},e.prototype.setup=function(){},e.prototype.on=function(e,t){var n=this.log.extend("on");this.readyState!==i.DISPOSING&&this.readyState!==i.DISPOSED?(n('adding "%s" event listener:',e,t.name),this.emitter.on(e,t)):n("cannot listen to events, already disposed!")},e.prototype.dispose=function(){var e,t,n=this,o=this.log.extend("dispose");if(this.readyState!==i.DISPOSED)if(o("disposing the interceptor..."),this.readyState=i.DISPOSING,this.getInstance()){if(this.clearInstance(),o("global symbol deleted:",u(this.symbol)),this.subscriptions.length>0){o("disposing of %d subscriptions...",this.subscriptions.length);try{for(var a=r(this.subscriptions),c=a.next();!c.done;c=a.next()){(0,c.value)()}}catch(l){e={error:l}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this.subscriptions=[],o("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.deactivate(),o("destroyed the listener!"),s.nextTick((function(){n.readyState=i.DISPOSED}))}else o("no interceptors running, skipping dispose...");else o("cannot dispose, already disposed!")},e.prototype.getInstance=function(){var e,t=u(this.symbol);return this.log("retrieved global instance:",null===(e=null===t||void 0===t?void 0:t.constructor)||void 0===e?void 0:e.name),t},e.prototype.setInstance=function(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.log("set global instance!",this.symbol.description)},e.prototype.clearInstance=function(){c(this.symbol),this.log("cleared global instance!",this.symbol.description)},e}();t.Interceptor=l},69887:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.IsomorphicRequest=void 0;var o=n(48943),a=n(48987),s=n(2015),u=n(8949),c=function(){function e(t,n){void 0===n&&(n={});var r=new ArrayBuffer(0);if(this._bodyUsed=!1,t instanceof e)return this.id=t.id,this.url=t.url,this.method=t.method,this.headers=t.headers,this.credentials=t.credentials,void(this._body=t._body||r);this.id=u.uuidv4(),this.url=t,this.method=n.method||"GET",this.headers=new o.Headers(n.headers),this.credentials=n.credentials||"same-origin",this._body=n.body||r}return Object.defineProperty(e.prototype,"bodyUsed",{get:function(){return this._bodyUsed},enumerable:!1,configurable:!0}),e.prototype.text=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return a.invariant(!this.bodyUsed,'Failed to execute "text" on "IsomorphicRequest": body buffer already read'),this._bodyUsed=!0,[2,s.decodeBuffer(this._body)]}))}))},e.prototype.json=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){return a.invariant(!this.bodyUsed,'Failed to execute "json" on "IsomorphicRequest": body buffer already read'),this._bodyUsed=!0,e=s.decodeBuffer(this._body),[2,JSON.parse(e)]}))}))},e.prototype.arrayBuffer=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return a.invariant(!this.bodyUsed,'Failed to execute "arrayBuffer" on "IsomorphicRequest": body buffer already read'),this._bodyUsed=!0,[2,this._body]}))}))},e.prototype.clone=function(){return new e(this)},e}();t.IsomorphicRequest=c},70572:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_PATCHED_MODULE=void 0,t.IS_PATCHED_MODULE=Symbol("isPatchedModule")},62247:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBuffer=t.encodeBuffer=t.getCleanUrl=void 0,i(n(70572),t),i(n(9250),t),i(n(29142),t),i(n(69887),t),i(n(63016),t);var o=n(47941);Object.defineProperty(t,"getCleanUrl",{enumerable:!0,get:function(){return o.getCleanUrl}});var a=n(2015);Object.defineProperty(t,"encodeBuffer",{enumerable:!0,get:function(){return a.encodeBuffer}}),Object.defineProperty(t,"decodeBuffer",{enumerable:!0,get:function(){return a.decodeBuffer}})},7551:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.createXMLHttpRequestOverride=void 0;var s=n(80864),u=n(48943),c=n(3969),l=n(76523),f=n(32464),d=n(98566),p=n(7245),h=n(69887),m=n(2015),g=n(63016);t.createXMLHttpRequestOverride=function(e){var t,n=e.XMLHttpRequest,y=e.emitter,v=e.log;return t=function(){function e(){this._events=[],this.log=v,this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.onreadystatechange=null,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this.url="",this.method="GET",this.readyState=this.UNSENT,this.withCredentials=!1,this.status=200,this.statusText="OK",this.response="",this.responseType="text",this.responseText="",this.responseXML=null,this.responseURL="",this.upload={},this.timeout=0,this._requestHeaders=new u.Headers,this._responseHeaders=new u.Headers}return e.prototype.setReadyState=function(e){e!==this.readyState&&(this.log("readyState change %d -> %d",this.readyState,e),this.readyState=e,e!==this.UNSENT&&(this.log("triggering readystate change..."),this.trigger("readystatechange")))},e.prototype.trigger=function(e,t){var n,r;this.log('trigger "%s" (%d)',e,this.readyState),this.log('resolve listener for event "%s"',e);var i=this["on"+e];null===i||void 0===i||i.call(this,p.createEvent(this,e,t));try{for(var a=o(this._events),s=a.next();!s.done;s=a.next()){var u=s.value;u.name===e&&(v('calling mock event listener "%s" (%d)',e,this.readyState),u.listener.call(this,p.createEvent(this,e,t)))}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return this},e.prototype.reset=function(){this.log("reset"),this.setReadyState(this.UNSENT),this.status=200,this.statusText="OK",this.response=null,this.responseText=null,this.responseXML=null,this._requestHeaders=new u.Headers,this._responseHeaders=new u.Headers},e.prototype.open=function(e,t,n,o,a){return void 0===n&&(n=!0),r(this,void 0,void 0,(function(){return i(this,(function(r){return this.log=this.log.extend("request "+e+" "+t),this.log("open",{method:e,url:t,async:n,user:o,password:a}),this.reset(),this.setReadyState(this.OPENED),"undefined"===typeof t?(this.url=e,this.method="GET"):(this.url=t,this.method=e,this.async=n,this.user=o,this.password=a),[2]}))}))},e.prototype.send=function(e){var t,o,c=this;this.log("send %s %s",this.method,this.url),t="string"===typeof e?m.encodeBuffer(e):e||new ArrayBuffer(0);try{o=new URL(this.url)}catch(v){o=new URL(this.url,window.location.href)}this.log("request headers",this._requestHeaders);var l=new h.IsomorphicRequest(o,{body:t,method:this.method,headers:this._requestHeaders,credentials:this.withCredentials?"include":"omit"}),p=new g.InteractiveIsomorphicRequest(l);this.log('emitting the "request" event for %d listener(s)...',y.listenerCount("request")),y.emit("request",p),this.log("awaiting mocked response..."),Promise.resolve(s.until((function(){return r(c,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return[4,y.untilIdle("request",(function(e){return a(e.args,1)[0].id===p.id}))];case 1:return n.sent(),this.log("all request listeners have been resolved!"),[4,p.respondWith.invoked()];case 2:return e=a.apply(void 0,[n.sent(),1]),t=e[0],this.log("event.respondWith called with:",t),[2,t]}}))}))}))).then((function(t){var r,i,o=a(t,2),s=o[0],p=o[1];if(s)return c.log("middleware function threw an exception!",s),c.trigger("error"),void c.abort();if(p){if(c.log("received mocked response",p),c.trigger("loadstart"),c.status=null!==(r=p.status)&&void 0!==r?r:200,c.statusText=p.statusText||"OK",c._responseHeaders=p.headers?u.objectToHeaders(p.headers):new u.Headers,c.log("set response status",c.status,c.statusText),c.log("set response headers",c._responseHeaders),c.setReadyState(c.HEADERS_RECEIVED),c.log("response type",c.responseType),c.response=c.getResponseBody(p.body),c.responseURL=c.url,c.responseText=p.body||"",c.responseXML=c.getResponseXML(),c.log("set response body",c.response),p.body&&c.response){c.setReadyState(c.LOADING);var h=d.bufferFrom(p.body);c.trigger("progress",{loaded:h.length,total:h.length})}c.setReadyState(c.DONE),c.trigger("load"),c.trigger("loadend"),y.emit("response",l,f.toIsoResponse(p))}else{c.log("no mocked response received!");var m=new n;c.log("opening an original request %s %s",c.method,c.url),m.open(c.method,c.url,null===(i=c.async)||void 0===i||i,c.user,c.password),m.addEventListener("load",(function(){c.log('original "onload"'),c.status=m.status,c.statusText=m.statusText,c.responseURL=m.responseURL,c.responseType=m.responseType,c.response=m.response,c.responseText=m.responseText,c.responseXML=m.responseXML,c.log("set mock request readyState to DONE"),c.setReadyState(c.DONE),c.log("received original response",c.status,c.statusText),c.log("original response body:",c.response);var e=m.getAllResponseHeaders();c.log("original response headers:\n",e),c._responseHeaders=u.stringToHeaders(e),c.log("original response headers (normalized)",c._responseHeaders),c.log("original response finished"),y.emit("response",l,{status:m.status,statusText:m.statusText,headers:c._responseHeaders,body:m.response})})),c.propagateCallbacks(m),c.propagateListeners(m),c.propagateHeaders(m,c._requestHeaders),c.async&&(m.timeout=c.timeout),c.log("send",e),m.send(e)}}))},e.prototype.abort=function(){this.log("abort"),this.readyState>this.UNSENT&&this.readyState<this.DONE&&(this.setReadyState(this.UNSENT),this.trigger("abort"))},e.prototype.dispatchEvent=function(){return!1},e.prototype.setRequestHeader=function(e,t){this.log('set request header "%s" to "%s"',e,t),this._requestHeaders.append(e,t)},e.prototype.getResponseHeader=function(e){if(this.log('get response header "%s"',e),this.readyState<this.HEADERS_RECEIVED)return this.log("cannot return a header: headers not received (state: %s)",this.readyState),null;var t=this._responseHeaders.get(e);return this.log('resolved response header "%s" to "%s"',e,t,this._responseHeaders),t},e.prototype.getAllResponseHeaders=function(){return this.log("get all response headers"),this.readyState<this.HEADERS_RECEIVED?(this.log("cannot return headers: headers not received (state: %s)",this.readyState),""):u.headersToString(this._responseHeaders)},e.prototype.addEventListener=function(e,t){this.log("addEventListener",e,t),this._events.push({name:e,listener:t})},e.prototype.removeEventListener=function(e,t){this.log("removeEventListener",e,t),this._events=this._events.filter((function(n){return n.name!==e&&n.listener!==t}))},e.prototype.overrideMimeType=function(){},e.prototype.getResponseBody=function(e){var t=null!==e&&void 0!==e?e:"";switch(this.log("coerced response body to",t),this.responseType){case"json":return this.log("resolving response body as JSON"),l.parseJson(t);case"blob":var n=this.getResponseHeader("content-type")||"text/plain";return this.log("resolving response body as Blob",{type:n}),new Blob([t],{type:n});case"arraybuffer":return this.log("resolving response body as ArrayBuffer"),d.bufferFrom(t);default:return t}},e.prototype.getResponseXML=function(){var e=this.getResponseHeader("Content-Type");return"application/xml"===e||"text/xml"===e?(new c.DOMParser).parseFromString(this.responseText,e):null},e.prototype.propagateCallbacks=function(e){var t,n;this.log("propagating request callbacks to the original request");try{for(var r=o(["abort","onerror","ontimeout","onload","onloadstart","onloadend","onprogress","onreadystatechange"]),i=r.next();!i.done;i=r.next()){var a=i.value,s=this[a];s&&(e[a]=this[a],this.log('propagated the "%s" callback',a,s))}}catch(u){t={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}e.onabort=this.abort,e.onerror=this.onerror,e.ontimeout=this.ontimeout,e.onload=this.onload,e.onloadstart=this.onloadstart,e.onloadend=this.onloadend,e.onprogress=this.onprogress,e.onreadystatechange=this.onreadystatechange},e.prototype.propagateListeners=function(e){this.log("propagating request listeners (%d) to the original request",this._events.length,this._events),this._events.forEach((function(t){var n=t.name,r=t.listener;e.addEventListener(n,r)}))},e.prototype.propagateHeaders=function(e,t){var n=this;this.log("propagating request headers to the original request",t),Object.entries(t.raw()).forEach((function(t){var r=a(t,2),i=r[0],o=r[1];n.log('setting "%s" (%s) header on the original request',i,o),e.setRequestHeader(i,o)}))},e}(),t.UNSENT=0,t.OPENED=1,t.HEADERS_RECEIVED=2,t.LOADING=3,t.DONE=4,t}},76237:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.XMLHttpRequestInterceptor=void 0;var i=n(48987),o=n(70572),a=n(9250),s=n(7551),u=function(e){function t(){return e.call(this,t.symbol)||this}return r(t,e),t.prototype.checkEnvironment=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.XMLHttpRequest},t.prototype.setup=function(){var e=this.log.extend("setup");e('patching "XMLHttpRequest" module...');var t=window.XMLHttpRequest;i.invariant(!t[o.IS_PATCHED_MODULE],'Failed to patch the "XMLHttpRequest" module: already patched.'),window.XMLHttpRequest=s.createXMLHttpRequestOverride({XMLHttpRequest:t,emitter:this.emitter,log:this.log}),e('native "XMLHttpRequest" module patched!',window.XMLHttpRequest.name),Object.defineProperty(window.XMLHttpRequest,o.IS_PATCHED_MODULE,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push((function(){Object.defineProperty(window.XMLHttpRequest,o.IS_PATCHED_MODULE,{value:void 0}),window.XMLHttpRequest=t,e('native "XMLHttpRequest" module restored!',window.XMLHttpRequest.name)}))},t.symbol=Symbol("xhr"),t}(a.Interceptor);t.XMLHttpRequestInterceptor=u},53261:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventPolyfill=void 0;var n=function(){function e(e,t){this.AT_TARGET=0,this.BUBBLING_PHASE=0,this.CAPTURING_PHASE=0,this.NONE=0,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=(null===t||void 0===t?void 0:t.target)||null,this.currentTarget=(null===t||void 0===t?void 0:t.currentTarget)||null,this.timeStamp=Date.now()}return e.prototype.composedPath=function(){return[]},e.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n},e.prototype.preventDefault=function(){this.defaultPrevented=!0},e.prototype.stopPropagation=function(){},e.prototype.stopImmediatePropagation=function(){},e}();t.EventPolyfill=n},68534:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressEventPolyfill=void 0;var i=function(e){function t(t,n){var r=e.call(this,t)||this;return r.lengthComputable=(null===n||void 0===n?void 0:n.lengthComputable)||!1,r.composed=(null===n||void 0===n?void 0:n.composed)||!1,r.loaded=(null===n||void 0===n?void 0:n.loaded)||0,r.total=(null===n||void 0===n?void 0:n.total)||0,r}return r(t,e),t}(n(53261).EventPolyfill);t.ProgressEventPolyfill=i},98566:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferFrom=void 0,t.bufferFrom=function(e){var t=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})),n=new Uint8Array(t.length);return Array.prototype.forEach.call(t,(function(e,t){n[t]=e.charCodeAt(0)})),n}},7245:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEvent=void 0;var r=n(53261),i=n(68534),o="undefined"!==typeof ProgressEvent;t.createEvent=function(e,t,n){var a=o?ProgressEvent:i.ProgressEventPolyfill;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new a(t,{lengthComputable:!0,loaded:(null===n||void 0===n?void 0:n.loaded)||0,total:(null===n||void 0===n?void 0:n.total)||0}):new r.EventPolyfill(t,{target:e,currentTarget:e})}},45344:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},s=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.FetchInterceptor=void 0;var u=n(48943),c=n(48987),l=n(80864),f=n(69887),d=n(70572),p=n(9250),h=n(32464),m=n(63016),g=function(e){function t(){return e.call(this,t.symbol)||this}return r(t,e),t.prototype.checkEnvironment=function(){return"undefined"!==typeof globalThis&&"undefined"!==typeof globalThis.fetch},t.prototype.setup=function(){var e=this,t=globalThis.fetch;c.invariant(!t[d.IS_PATCHED_MODULE],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=function(n,r){return o(e,void 0,void 0,(function(){var e,c,d,p,g,v,b,w,x,_,E,S,T,I=this;return a(this,(function(k){switch(k.label){case 0:return e=new Request(n,r),c="string"===typeof n?n:n.url,d=e.method,this.log("[%s] %s",d,c),[4,e.clone().arrayBuffer()];case 1:return p=k.sent(),g=new URL(c,"undefined"!==typeof location?location.origin:void 0),v=new f.IsomorphicRequest(g,{body:p,method:d,headers:new u.Headers(e.headers),credentials:e.credentials}),b=new m.InteractiveIsomorphicRequest(v),this.log("isomorphic request",b),this.log('emitting the "request" event for %d listener(s)...',this.emitter.listenerCount("request")),this.emitter.emit("request",b),this.log("awaiting for the mocked response..."),[4,l.until((function(){return o(I,void 0,void 0,(function(){var e,t;return a(this,(function(n){switch(n.label){case 0:return[4,this.emitter.untilIdle("request",(function(e){return s(e.args,1)[0].id===b.id}))];case 1:return n.sent(),this.log("all request listeners have been resolved!"),[4,b.respondWith.invoked()];case 2:return e=s.apply(void 0,[n.sent(),1]),t=e[0],this.log("event.respondWith called with:",t),[2,t]}}))}))}))];case 2:return w=s.apply(void 0,[k.sent(),2]),x=w[0],_=w[1],x?(console.error(e.method+" "+e.url+" net::ERR_FAILED"),E=Object.assign(new TypeError("Failed to fetch"),{cause:x}),[2,Promise.reject(E)]):_?(this.log("received mocked response:",_),S=h.toIsoResponse(_),this.log("derived isomorphic response:",S),this.emitter.emit("response",b,S),T=new Response(_.body,i(i({},S),{headers:u.flattenHeadersObject(_.headers||{})})),Object.defineProperty(T,"url",{writable:!1,enumerable:!0,configurable:!1,value:b.url.href}),[2,T]):(this.log("no mocked response received!"),[2,t(e).then((function(e){return o(I,void 0,void 0,(function(){var t,n,r,i;return a(this,(function(o){switch(o.label){case 0:return t=e.clone(),this.log("original fetch performed",t),r=(n=this.emitter).emit,i=["response",b],[4,y(t)];case 1:return r.apply(n,i.concat([o.sent()])),[2,e]}}))}))}))])}}))}))},Object.defineProperty(globalThis.fetch,d.IS_PATCHED_MODULE,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push((function(){Object.defineProperty(globalThis.fetch,d.IS_PATCHED_MODULE,{value:void 0}),globalThis.fetch=t,e.log('restored native "globalThis.fetch"!',globalThis.fetch.name)}))},t.symbol=Symbol("fetch"),t}(p.Interceptor);function y(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return t={status:e.status,statusText:e.statusText,headers:u.objectToHeaders(u.headersToObject(e.headers))},[4,e.text()];case 1:return[2,(t.body=n.sent(),t)]}}))}))}t.FetchInterceptor=g},11646:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncEventEmitter=t.AsyncEventEmitterReadyState=void 0;var u,c=n(11227),l=n(38255),f=n(67467);!function(e){e.ACTIVE="ACTIVE",e.DEACTIVATED="DEACTIVATED"}(u=t.AsyncEventEmitterReadyState||(t.AsyncEventEmitterReadyState={}));var d=function(e){function t(){var t=e.call(this)||this;return t.log=c.debug("async-event-emitter"),t.queue=new Map,t.readyState=u.ACTIVE,t}return r(t,e),t.prototype.on=function(t,n){var r=this,c=this.log.extend("on");return c('adding "%s" listener...',t),this.readyState===u.DEACTIVATED?(c("the emitter is destroyed, skipping!"),this):e.prototype.on.call(this,t,(function(){for(var e=[],u=0;u<arguments.length;u++)e[u]=arguments[u];return i(r,void 0,void 0,(function(){var r,u=this;return o(this,(function(l){return r=this.openListenerQueue(t),c('awaiting the "%s" listener...',t),r.push({args:e,done:new Promise((function(r,l){return i(u,void 0,void 0,(function(){var i;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,n.apply(void 0,s([],a(e)))];case 1:return o.sent(),r(),c('"%s" listener has resolved!',t),[3,3];case 2:return i=o.sent(),c('"%s" listener has rejected!',i),l(i),[3,3];case 3:return[2]}}))}))}))}),[2]}))}))}))},t.prototype.emit=function(t){for(var n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=this.log.extend("emit");return o('emitting "%s" event...',t),this.readyState===u.DEACTIVATED?(o("the emitter is destroyed, skipping!"),!1):(this.openListenerQueue(t),o('appending a one-time cleanup "%s" listener...',t),this.once(t,(function(){f.nextTick((function(){n.queue.delete(t),o('cleaned up "%s" listeners queue!',t)}))})),e.prototype.emit.apply(this,s([t],a(r))))},t.prototype.untilIdle=function(e,t){return void 0===t&&(t=function(){return!0}),i(this,void 0,void 0,(function(){var n,r=this;return o(this,(function(i){switch(i.label){case 0:return n=this.queue.get(e)||[],[4,Promise.all(n.filter(t).map((function(e){return e.done}))).finally((function(){r.queue.delete(e)}))];case 1:return i.sent(),[2]}}))}))},t.prototype.openListenerQueue=function(e){var t=this.log.extend("openListenerQueue");t('opening "%s" listeners queue...',e);var n=this.queue.get(e);return n?(t("returning an exising queue:",n),n):(t("no queue found, creating one..."),this.queue.set(e,[]),[])},t.prototype.removeAllListeners=function(t){var n=this.log.extend("removeAllListeners");return n("event:",t),t?(this.queue.delete(t),n('cleared the "%s" listeners queue!',t,this.queue.get(t))):(this.queue.clear(),n("cleared the listeners queue!",this.queue)),e.prototype.removeAllListeners.call(this,t)},t.prototype.activate=function(){var e=this.log.extend("activate");this.readyState=u.ACTIVE,e("set state to:",this.readyState)},t.prototype.deactivate=function(){var e=this.log.extend("deactivate");e("removing all listeners..."),this.removeAllListeners(),this.readyState=u.DEACTIVATED,e("set state to:",this.readyState)},t}(l.StrictEventEmitter);t.AsyncEventEmitter=d},2015:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrayBuffer=t.decodeBuffer=t.encodeBuffer=void 0;var r=n(47259);function i(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}t.encodeBuffer=function(e){return i((new r.TextEncoder).encode(e))},t.decodeBuffer=function(e,t){return new r.TextDecoder(t).decode(e)},t.getArrayBuffer=i},22215:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createLazyCallback=void 0,t.createLazyCallback=function(e){var t=this;void 0===e&&(e={});var i,o,a=0,s=new Promise((function(e){o=e})).finally((function(){clearTimeout(i)})),u=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.maxCalls&&a>=e.maxCalls&&(null===(t=e.maxCallsCallback)||void 0===t||t.call(e)),o(n),a++};return u.invoked=function(){return n(t,void 0,void 0,(function(){return r(this,(function(e){return i=setTimeout((function(){o([])}),0),[2,s]}))}))},u}},47941:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCleanUrl=void 0,t.getCleanUrl=function(e,t){return void 0===t&&(t=!0),[t&&e.origin,e.pathname].filter(Boolean).join("")}},67467:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTickAsync=t.nextTick=void 0,t.nextTick=function(e){setTimeout(e,0)},t.nextTickAsync=function(e){return new Promise((function(t){setTimeout((function(){t(e())}),0)}))}},76523:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJson=void 0,t.parseJson=function(e){try{return JSON.parse(e)}catch(t){return null}}},32464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toIsoResponse=void 0;var r=n(48943);t.toIsoResponse=function(e){var t;return{status:null!==(t=e.status)&&void 0!==t?t:200,statusText:e.statusText||"OK",headers:r.objectToHeaders(e.headers||{}),body:e.body}}},8949:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=void 0,t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},48943:function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var o,a,s=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,p=function(e,t,n,r){if(t&&"object"===typeof t||"function"===typeof t){var i=!0,o=!1,a=void 0;try{for(var s,f=function(){var i=s.value;d.call(e,i)||i===n||u(e,i,{get:function(){return t[i]},enumerable:!(r=c(t,i))||r.enumerable})},p=l(t)[Symbol.iterator]();!(i=(s=p.next()).done);i=!0)f()}catch(h){o=!0,a=h}finally{try{i||null==p.return||p.return()}finally{if(o)throw a}}}return e},h=(o={"node_modules/set-cookie-parser/lib/set-cookie.js":function(e,t){"use strict";var n=function(e){return"string"===typeof e&&!!e.trim()},r=function(e,t){var r=e.split(";").filter(n),o=r.shift(),s=i(o),u=s.name,c=s.value;t=t?Object.assign({},a,t):a;try{c=t.decodeValues?decodeURIComponent(c):c}catch(f){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+c+"'. Set options.decodeValues to false to disable this feature.",f)}var l={name:u,value:c};return r.forEach((function(e){var t=e.split("="),n=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"===n?l.expires=new Date(r):"max-age"===n?l.maxAge=parseInt(r,10):"secure"===n?l.secure=!0:"httponly"===n?l.httpOnly=!0:"samesite"===n?l.sameSite=r:l[n]=r})),l},i=function(e){var t="",n="",r=e.split("=");return r.length>1?(t=r.shift(),n=r.join("=")):n=e,{name:t,value:n}},o=function(e,t){if(t=t?Object.assign({},a,t):a,!e)return t.map?{}:[];if(e.headers)if("function"===typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var i=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];i||!e.headers.cookie||t.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=i}return Array.isArray(e)||(e=[e]),(t=t?Object.assign({},a,t):a).map?e.filter(n).reduce((function(e,n){var i=r(n,t);return e[i.name]=i,e}),{}):e.filter(n).map((function(e){return r(e,t)}))},a={decodeValues:!0,map:!1,silent:!1};t.exports=o,t.exports.parse=o,t.exports.parseString=r,t.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!==typeof e)return[];var t,n,r,i,o,a=[],s=0;function u(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,o=!1;u();)if(","===(n=e.charAt(s))){for(r=s,s+=1,u(),i=s;s<e.length&&"="!==(n=e.charAt(s))&&";"!==n&&","!==n;)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=i,a.push(e.substring(t,r)),t=s):s=r+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}}},function(){return a||(0,o[l(o)[0]])((a={exports:{}}).exports,a),a.exports}),m={};!function(e,t){for(var n in t)u(e,n,{get:t[n],enumerable:!0})}(m,{Headers:function(){return N},flattenHeadersList:function(){return F},flattenHeadersObject:function(){return U},headersToList:function(){return C},headersToObject:function(){return P},headersToString:function(){return j},listToHeaders:function(){return L},objectToHeaders:function(){return R},reduceHeadersObject:function(){return M},stringToHeaders:function(){return D}}),e.exports=function(e){return p(u({},"__esModule",{value:!0}),e)}(m);var g=function(e,t,n){return n=null!=e?s(f(e)):{},p(!t&&e&&e.__esModule?n:u(n,"default",{value:e,enumerable:!0}),e)}(h()),y=/[^a-z0-9\-#$%&'*+.^_`|~]/i;function v(e){if(y.test(e)||""===e.trim())throw new TypeError("Invalid character in header field name");return e.trim().toLowerCase()}var b=[String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(9),String.fromCharCode(32)],w=new RegExp("(^[".concat(b.join(""),"]|$[").concat(b.join(""),"])"),"g");function x(e){return e.replace(w,"")}function _(e){if("string"!==typeof e)return!1;if(0===e.length)return!1;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n>127||!E(n))return!1}return!0}function E(e){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(e)}function S(e){if("string"!==typeof e)return!1;if(e.trim()!==e)return!1;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(0===n||10===n||13===n)return!1}return!0}var T,I,k=Symbol("normalizedHeaders"),O=Symbol("rawHeaderNames"),N=function(){"use strict";function e(t){var n,i,o,a=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this[T]={},this[I]=new Map,["Headers","HeadersPolyfill"].includes(null===(n=t)||void 0===n?void 0:n.constructor.name)||(i=t,null!=(o=N)&&"undefined"!==typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](i):i instanceof o))?t.forEach((function(e,t){a.append(t,e)}),this):Array.isArray(t)?t.forEach((function(e){var t=r(e,2),n=t[0],i=t[1];a.append(n,Array.isArray(i)?i.jo