@mablhq/mabl-cli 2.61.14 → 2.61.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/socketTunnel/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! Copyright © 2025 mabl Inc. All rights reserved. - License information can be found in LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(function(){try{return require("bufferutil")}catch(e){}}(),function(){try{return require("utf-8-validate")}catch(e){}}()):"function"==typeof define&&define.amd?define(["bufferutil","utf-8-validate"],t):"object"==typeof exports?exports.socketTunnel=t(function(){try{return require("bufferutil")}catch(e){}}(),function(){try{return require("utf-8-validate")}catch(e){}}()):e.socketTunnel=t(e.bufferutil,e["utf-8-validate"])}(global,((e,t)=>(()=>{var s={486:(e,t,s)=>{var n={};e.exports=n,n.themes={};var i=s(3837),o=n.styles=s(5074),r=Object.defineProperties,a=new RegExp(/[\r\n]+/g);n.supportsColor=s(7399).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};n.stylize=function(e,t){if(!n.enabled)return e+"";var s=o[t];return!s&&t in n?n[t](e):s.open+e+s.close};var c=/[|\\{}()[\]^$+*?.]/g;function l(e){var t=function e(){return h.apply(e,arguments)};return t._styles=e,t.__proto__=d,t}var p,u=(p={},o.grey=o.gray,Object.keys(o).forEach((function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(c,"\\$&")}(o[e].close),"g"),p[e]={get:function(){return l(this._styles.concat(e))}}})),p),d=r((function(){}),u);function h(){var e=Array.prototype.slice.call(arguments).map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!n.enabled||!e)return e;for(var t=-1!=e.indexOf("\n"),s=this._styles,r=s.length;r--;){var c=o[s[r]];e=c.open+e.replace(c.closeRe,c.open)+c.close,t&&(e=e.replace(a,(function(e){return c.close+e+c.open})))}return e}n.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){n[t]=function(s){if("object"==typeof e[t]){var i=s;for(var o in e[t])i=n[e[t][o]](i);return i}return n[e[t]](s)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var f=function(e,t){var s=t.split("");return(s=s.map(e)).join("")};for(var m in n.trap=s(6240),n.zalgo=s(5704),n.maps={},n.maps.america=s(9998)(n),n.maps.zebra=s(1886)(n),n.maps.rainbow=s(5563)(n),n.maps.random=s(557)(n),n.maps)!function(e){n[e]=function(t){return f(n.maps[e],t)}}(m);r(n,function(){var e={};return Object.keys(u).forEach((function(t){e[t]={get:function(){return l([t])}}})),e}())},6240:e=>{e.exports=function(e,t){var s="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],i=Math.floor(Math.random()*t.length);s+=void 0!==n[e]?n[e][i]:e})),s}},5704:e=>{e.exports=function(e,t){e=e||" he is here ";var s={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(s.up,s.down,s.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter((function(s){t=s===e})),t}return function(e,t){var n,r,a="";for(r in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(r)){switch(a+=e[r],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var c=["up","mid","down"];for(var l in c)for(var p=c[l],u=0;u<=n[p];u++)t[p]&&(a+=s[p][i(s[p].length)])}return a}(e,t)}},9998:e=>{e.exports=function(e){return function(t,s,n){if(" "===t)return t;switch(s%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},5563:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(s,n,i){return" "===s?s:e[t[n++%t.length]](s)}}},557:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(s,n,i){return" "===s?s:e[t[Math.round(Math.random()*(t.length-2))]](s)}}},1886:e=>{e.exports=function(e){return function(t,s,n){return s%2==0?t:e.inverse(t)}}},5074:e=>{var t={};e.exports=t;var s={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(s).forEach((function(e){var n=s[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},6400:e=>{"use strict";e.exports=function(e,t){var s=(t=t||process.argv||[]).indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(n+e);return-1!==i&&(-1===s||i<s)}},7399:(e,t,s)=>{"use strict";var n=s(2037),i=s(6400),o=process.env,r=void 0;function a(e){var t=function(e){if(!1===r)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==r)return 0;var t=r?1:0;if("win32"===process.platform){var s=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in o}))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?r=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(r=!0),"FORCE_COLOR"in o&&(r=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},7112:(e,t,s)=>{var n=s(486);e.exports=n},8092:e=>{var t=[],s=[],n=function(){};function i(e){return!~t.indexOf(e)&&(t.push(e),!0)}function o(e){n=e}function r(e){for(var s=[],n=0;n<t.length;n++)if(t[n].async)s.push(t[n]);else if(t[n](e))return!0;return!!s.length&&new Promise((function(t){Promise.all(s.map((function(t){return t(e)}))).then((function(e){t(e.some(Boolean))}))}))}function a(e){return!~s.indexOf(e)&&(s.push(e),!0)}function c(){n.apply(n,arguments)}function l(e){for(var t=0;t<s.length;t++)e=s[t].apply(s[t],arguments);return e}function p(e,t){var s=Object.prototype.hasOwnProperty;for(var n in t)s.call(t,n)&&(e[n]=t[n]);return e}function u(e){return e.enabled=!1,e.modify=a,e.set=o,e.use=i,p((function(){return!1}),e)}function d(e){return e.enabled=!0,e.modify=a,e.set=o,e.use=i,p((function(){var t=Array.prototype.slice.call(arguments,0);return c.call(c,e,l(t,e)),!0}),e)}e.exports=function(e){return e.introduce=p,e.enabled=r,e.process=l,e.modify=a,e.write=c,e.nope=u,e.yep=d,e.set=o,e.use=i,e}},1577:(e,t,s)=>{e.exports=s(8036)},8036:(e,t,s)=>{var n=s(8092)((function e(t,s){return(s=s||{}).namespace=t,s.prod=!0,s.dev=!1,s.force||e.force?e.yep(s):e.nope(s)}));e.exports=n},2715:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DestroyableServer=void 0;const n=s(1808);class i extends n.Server{constructor(e,t,s){super(t,s),this.logger=e,this.sockets=new Set,this.on("connection",(e=>{this.sockets.add(e),e.once("close",(()=>this.sockets.delete(e)))}))}async destroy(){const e=this.closeAsync(),t=[...this.sockets];if(t.length){this.logger.info(`Destroying ${t.length} existing connections...`);try{await Promise.allSettled(t.map(this.destroySocket))}catch(e){this.logger.error("Error destroying one or more existing connections:",e)}this.sockets.clear(),this.logger.info(`Finished destroying ${t.length} existing connections.`)}await e}closeAsync(){return new Promise(((e,t)=>this.close((s=>{s?t(s):e()}))))}async destroySocket(e){await new Promise(((t,s)=>{e.destroy(),e.once("close",(()=>t())),e.once("error",(e=>s(e)))})),this.sockets.delete(e)}}t.DestroyableServer=i},5221:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketTunnelClient=void 0;const n=s(8398),i=s(8712),o=s(6655),r=s(155),a=s(7864),c=s(2715),l=s(7629);t.SocketTunnelClient=class{constructor(e,t){var s,n,i,r;this.tunnelUrl=e,this.sessionId=(0,o.nanoid)(),this.logger=null!==(s=null==t?void 0:t.logger)&&void 0!==s?s:(0,l.createDefaultLogger)("SocketTunnelClient"),this.bindAddress=t.localAddress,this.bindPort=null!==(n=t.localPort)&&void 0!==n?n:t.remotePort,this.connectionTracing=null!==(i=t.connectionTracing)&&void 0!==i&&i,this.connectTimeoutMillis=null!==(r=t.connectTimeoutMillis)&&void 0!==r?r:a.DefaultConnectionTimeoutMillis,this.forwardingServer=new c.DestroyableServer(this.logger),this.proxy=t.proxy,this.remoteHost=t.remoteHost,this.remotePort=t.remotePort,this.tunnel=this.initializeTunnel(t)}boundAddress(){var e;const t=null===(e=this.forwardingServer.address())||void 0===e?void 0:e.address;return"::"===t||"0.0.0.0"===t||"::1"===t||(null==t?void 0:t.startsWith("127."))||"localhost"===t?"localhost":t}boundPort(){var e;return null===(e=this.forwardingServer.address())||void 0===e?void 0:e.port}async connect(){this.logger.info(`Connecting to tunnel ${this.tunnelUrl} with session ID ${this.sessionId}${this.proxy?` via proxy ${this.proxy.host}:${this.proxy.port}`:""}`),await this.openTunnelConnection(),await this.startForwarding(),this.logger.info(`Connection established to tunnel ${this.tunnelUrl} with session ID ${this.sessionId}`)}async disconnect(){await this.stopForwarding(),await this.closeTunnelConnection(),this.logger.info(`Connection to tunnel ${this.tunnelUrl} with session ID ${this.sessionId} closed`)}isConnected(){return this.tunnel.connected}initializeTunnel(e){var t;const s={},n={},o={"User-Agent":null!==(t=null==e?void 0:e.userAgent)&&void 0!==t?t:a.DefaultUserAgent},c=!(!0===(null==e?void 0:e.insecure));(null==e?void 0:e.httpAuthorization)&&(o.Authorization=this.generateAuthorizationHeader(e.httpAuthorization)),(null==e?void 0:e.tunnelAuthorization)&&(s.auth=async t=>{const s="function"==typeof e.tunnelAuthorization?await e.tunnelAuthorization():e.tunnelAuthorization;t(null!=s?s:{})}),(null==e?void 0:e.proxy)&&(n.agent=this.getAgent(this.tunnelUrl,e.proxy,c)),n.path=new URL(this.tunnelUrl).pathname;const l=new URL(`/?${r.SessionIdKey}=${this.sessionId}`,this.tunnelUrl).toString();return(0,i.io)(l,{...s,...n,autoConnect:!1,extraHeaders:o,rejectUnauthorized:c,transports:["websocket","polling","webtransport"]})}generateAuthorizationHeader(e){switch(e.type){case"basic":return`Basic ${Buffer.from(`${e.username}:${e.password}`).toString("base64")}`;case"bearer":return`Bearer ${e.bearerToken}`}}getAgent(e,{credentials:t,host:s,port:i},o){let r="http://";if(t){const{username:e,password:s}=t;r+=`${e}:${s}@`}r+=`${s}:${i}`;const a={rejectUnauthorized:o},c=new URL(e).protocol;return"https:"===c||"wss:"===c?new n.HttpsProxyAgent({proxy:r,proxyRequestOptions:a,rejectUnauthorized:o}):new n.HttpProxyAgent({proxy:r,proxyRequestOptions:a})}openTunnelConnection(){return new Promise(((e,t)=>{if(this.isConnected()){const e=Error(`Client already connected to tunnel ${this.tunnelUrl} with session ID ${this.sessionId}`);t(e)}else this.tunnel.once("connect_error",(e=>{if("TransportError"!==e.type)t(e);else{const s=e.description.error;t(s)}})),this.tunnel.on("connect",e),this.tunnel.on("disconnect",(e=>this.logger.info(`Disconnected from server ${this.tunnelUrl} : ${e}`))),this.tunnel.connect()}))}closeTunnelConnection(){return new Promise((e=>{if(!this.isConnected())return this.logger.warn("Attempted to close a tunnel connection on an already closed tunnel"),void e();this.tunnel.disconnect(),this.tunnel.disconnected?e():this.tunnel.once("disconnect",(t=>e()))}))}async startForwarding(){var e;this.logger.info(`Opening port forwarder at ${null!==(e=this.bindAddress)&&void 0!==e?e:"*"}:${this.bindPort}`),await new Promise(((e,t)=>{this.forwardingServer.once("error",(e=>t(e))),this.forwardingServer.listen(this.bindPort,this.bindAddress,e)})),this.forwardingServer.on("connection",(async e=>{var t,s,n;const i=`${this.boundAddress()}:${this.boundPort()}`,o=`${null!==(t=e.remoteAddress)&&void 0!==t?t:""}:${e.remotePort}`;if(this.logger.info(`Received new connection from ${o} => ${i}`),!this.isConnected())return this.logger.info(`Rejecting connection from ${o} => ${i} because tunnel is not connected`),void e.destroy();let a;try{const t=await this.sendConnectRequest();if(!t.success){const s=new Error(t.error);return this.logger.info(`Tunnel ${this.tunnel.id} with session ID ${this.sessionId} failed to establish connection to ${null!==(n=this.remoteHost)&&void 0!==n?n:""}:${this.remotePort} : ${s}`),void e.destroy()}this.logger.info(`Tunnel ${this.tunnel.id} with session ID ${this.sessionId} successfully connected to ${null!==(s=this.remoteHost)&&void 0!==s?s:""}:${this.remotePort} with connection id ${t.connectionId}`),a=t.connectionId}catch(t){return this.logger.info(`Failed to send connect request to tunnel ${this.tunnel.id} with session ID ${this.sessionId}: ${t}`),void e.destroy()}this.tunnel.on(r.ConnectionDataMessage,((t,s)=>{t===a&&(this.connectionTracing&&this.logger.debug(`Writing ${s.byteLength} bytes from tunnel ${this.tunnel.id} with session ID ${this.sessionId} on connection ${a} to client ${o}`),e.write(s))})),this.tunnel.on(r.ConnectionCloseMessage,(t=>{t===a&&(this.connectionTracing&&this.logger.debug(`Closing connection ${a} on tunnel ${this.tunnel.id} with session ID ${this.sessionId}`),e.destroy())})),e.on("data",(e=>{this.connectionTracing&&this.logger.debug(`Sending ${e.byteLength} bytes from client ${o} to tunnel ${this.tunnel.id} with session ID ${this.sessionId} on connection ${a}`),this.tunnel.emit(r.ConnectionDataMessage,a,e)})),e.on("close",(e=>{this.logger.info(`Connection from ${o} => ${i} closed`),this.tunnel.emit(r.ConnectionCloseMessage,a)})),e.on("error",(t=>{this.logger.error(`Error on connection from ${o} => ${i}`,t),e.destroy()}))})),this.logger.info(`Port forwarder listening at ${this.boundAddress()}:${this.boundPort()}`)}async sendConnectRequest(){var e,t;const s=null!==(e=this.connectTimeoutMillis)&&void 0!==e?e:a.DefaultConnectionTimeoutMillis,n={remoteHost:this.remoteHost,remotePort:this.remotePort,timeoutMillis:s};this.logger.info(`Sending connect request for remote server at ${null!==(t=n.remoteHost)&&void 0!==t?t:""}:${n.remotePort} with session ID ${this.sessionId} via tunnel ${this.tunnel.id} with timeout ${s}ms`),this.tunnel.emit(r.ConnectRequestMessage,n);return await(0,l.withTimeout)(new Promise((e=>this.tunnel.once(r.ConnectResponseMessage,(t=>e(t))))),s)}async stopForwarding(){const e=this.boundAddress(),t=this.boundPort();this.forwardingServer.listening&&(this.logger.info(`Closing port forwarder at ${e}:${t}`),await this.forwardingServer.destroy(),this.logger.info(`Port forwarder at ${e}:${t} closed`))}}},7864:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultUserAgent=t.DefaultConnectionTimeoutMillis=void 0,t.DefaultConnectionTimeoutMillis=1e4,t.DefaultUserAgent="Socket Tunnel Client"},6185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},155:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionDataMessage=t.ConnectionCloseMessage=t.ConnectResponseMessage=t.ConnectRequestMessage=t.SessionIdKey=t.SessionIdError=t.AuthorizationError=t.ConnectionError=void 0;class s extends Error{constructor(e,t,s){super(t,s),this.data={},this.data.type=e}}t.ConnectionError=s;t.AuthorizationError=class extends s{constructor(e,t){super("authorization",null!=e?e:"Credentials are missing or invalid",t)}static isAuthorizationError(e){var t;return"authorization"===(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.type)}};t.SessionIdError=class extends s{constructor(e,t){super("session_id",null!=e?e:"Session ID is missing or invalid",t)}static isSessionIdError(e){var t;return"session_id"===(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.type)}},t.SessionIdKey="session",t.ConnectRequestMessage="tunnel::connect::request",t.ConnectResponseMessage="tunnel::connect::response",t.ConnectionCloseMessage="tunnel::close",t.ConnectionDataMessage="tunnel::data"},7629:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultLogger=t.withTimeout=void 0;const n=s(5222);t.withTimeout=async function(e,t){let s;const n=new Promise(((e,n)=>{s=globalThis.setTimeout((()=>n(new Error(`Timed out after ${t}ms`))),t)})),i=await Promise.race([n,e]);return globalThis.clearTimeout(s),i},t.createDefaultLogger=function(e){const{Console:t}=n.transports,{combine:s,timestamp:i,printf:o}=n.format,r=s(i(),o((({level:e,message:t,timestamp:s})=>`${s} [${e}]: ${t}`)));return(0,n.createLogger)({defaultMeta:{service:e},format:n.format.printf((e=>e.message)),level:"debug",transports:[new t({format:r,level:"debug"})]})}},9050:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var i=Object.getOwnPropertyDescriptor(t,s);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,i)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),i=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.SessionIdError=t.ConnectionError=t.AuthorizationError=void 0,i(s(5221),t),i(s(6185),t);var o=s(155);Object.defineProperty(t,"AuthorizationError",{enumerable:!0,get:function(){return o.AuthorizationError}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return o.ConnectionError}}),Object.defineProperty(t,"SessionIdError",{enumerable:!0,get:function(){return o.SessionIdError}}),i(s(3958),t),i(s(6563),t),i(s(3346),t),i(s(7557),t),i(s(3118),t)},3958:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AllowedConnectHostFilter=void 0;const n=s(4676);t.AllowedConnectHostFilter=class{constructor(e){if(this.allowedHostExpressions=null!=e?e:n.DefaultAllowedConnectHostExpressions,!this.allowedHostExpressions.length)throw new Error("At least one allowed connect host expression must be specified")}hostIsAllowed(e){return!!this.allowedHostExpressions.find((t=>e.match(t)))}}},6563:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketTunnelServer=void 0;const n=s(1808),i=s(3685),o=s(6655),r=s(2625),a=s(3958),c=s(155),l=s(4676),p=s(7629);t.SocketTunnelServer=class{constructor(e){var t,s,n,i,o,r;this.connections=new Map,this.sessions=new Map,this.sessionDisconnectTimes=new Map,this.cleanup=this.cleanup.bind(this),this.openConnection=this.openConnection.bind(this),this.closeConnection=this.closeConnection.bind(this),this.sendConnectionDataToRemoteHost=this.sendConnectionDataToRemoteHost.bind(this),this.address=null==e?void 0:e.address,this.allowedConnectHostFilter=new a.AllowedConnectHostFilter(null==e?void 0:e.allowedConnectHosts),this.connectionTracing=null!==(t=null==e?void 0:e.connectionTracing)&&void 0!==t?t:l.DefaultConnectionTracking,this.destroySessionOnDisconnect=null!==(s=null==e?void 0:e.destroySessionOnDisconnect)&&void 0!==s?s:l.DefaultDestroySessionOnDisconnect,this.httpAuthorizer=null==e?void 0:e.httpAuthorizer,this.port=null!==(n=null==e?void 0:e.port)&&void 0!==n?n:l.DefaultBindPort,this.replacementRules=null!==(i=null==e?void 0:e.replacementRules)&&void 0!==i?i:[],this.sessionReconnectGracePeriodSeconds=null!==(o=null==e?void 0:e.sessionReconnectGracePeriodSeconds)&&void 0!==o?o:l.DefaultTunnelReconnectGracePeriodSeconds,this.tunnelAuthorizer=null==e?void 0:e.tunnelAuthorizer,this.httpServer=this.initializeHttpServer(),this.tunnel=this.initializeTunnel(e),this.logger=null!==(r=null==e?void 0:e.logger)&&void 0!==r?r:(0,p.createDefaultLogger)("SocketTunnelServer")}initializeHttpServer(){const e=(0,i.createServer)();return e.on("request",(async(e,t)=>{await this.isHttpRequestAuthorized(e)||(t.writeHead(401),t.end())})),e.on("upgrade",(async(e,t)=>{await this.isHttpRequestAuthorized(e)||(t.write("HTTP/1.1 401 Unauthorized\r\nConnection: Close\r\n\r\n"),t.destroy())})),e}initializeTunnel(e){var t;const s=new r.Server({allowRequest:async(e,t)=>{try{t(null,await this.isHttpRequestAuthorized(e))}catch(e){t(`${e}`,!1)}},path:null!==(t=null==e?void 0:e.path)&&void 0!==t?t:l.DefaultPath});return s.use((async(e,t)=>{var s;const n=e.handshake.query[c.SessionIdKey];if(!n||"string"!=typeof n)return this.logger.info(`Received ${n?"invalid":"missing"} session id from client ${e.client.conn.remoteAddress}: '${JSON.stringify(n,void 0,0)}'`),t(new c.SessionIdError);try{if(!await this.isTunnelSessionAuthorized(e.handshake.auth,n)){const i=Object.keys(null!==(s=e.handshake.auth)&&void 0!==s?s:{}).length>0;return this.logger.info(`Received ${i?"invalid":"missing"} tunnel credentials from client ${e.client.conn.remoteAddress} with session ID ${n}`),t(new c.AuthorizationError)}}catch(e){return t(new c.AuthorizationError(`Error occurred while authorizing tunnel session: ${e}`,{cause:e}))}const i=this.sessionDisconnectTimes.get(n);i?(this.logger.info(`Session ${n} reconnected with new client ${e.id} (old client disconnected at ${new Date(i).toUTCString()})`),this.sessionDisconnectTimes.delete(n)):this.logger.info(`Received new tunnel connection ${e.id} from ${e.client.conn.remoteAddress} with session ID ${n}`),this.sessions.set(n,e),e.on("disconnecting",(t=>{this.logger.info(`Tunnel connection ${e.id} from ${e.client.conn.remoteAddress} with session ID ${n} disconnected: ${t}`),this.destroySessionOnDisconnect&&"ping timeout"!==t?this.destroySession(n):(this.sessions.delete(n),this.sessionDisconnectTimes.set(n,Date.now()))})),e.on(c.ConnectRequestMessage,(t=>this.openConnection(n,t,e))),e.on(c.ConnectionCloseMessage,(e=>this.closeConnection(n,e,!1))),e.on(c.ConnectionDataMessage,((t,s)=>this.sendConnectionDataToRemoteHost(e,n,t,s))),t()})),s}async isHttpRequestAuthorized(e){if(!this.httpAuthorizer)return!0;const t=await this.httpAuthorizer.isAuthorized(e),s=!!e.headers.upgrade,n=!!e.headers.authorization;return this.logger.info(`HTTP ${e.method}${s?" (upgrade)":""} request ${e.url} from ${e.socket.remoteAddress} is ${t?"authorized":"NOT authorized"}${n?"":" (no authorization header)"}`),t}async isTunnelSessionAuthorized(e,t){if(!this.tunnelAuthorizer)return!0;const s=await this.tunnelAuthorizer.isAuthorized(e,t);return this.logger.info(`Tunnel session ${t} is ${s?"authorized":"NOT authorized"}`),s}boundPort(){var e;return null===(e=this.httpServer.address())||void 0===e?void 0:e.port}async start(){var e;if(this.cleanupTimer)throw new Error("Server already running");await new Promise(((e,t)=>{this.httpServer.listen(this.port,this.address).once("listening",e).once("error",t)})),this.tunnel.attach(this.httpServer),this.cleanupTimer=globalThis.setInterval(this.cleanup,l.CleanupTimerPeriodMillis),this.logger.info(`Tunnel Server listening on ${null!==(e=this.address)&&void 0!==e?e:"*"}:${this.boundPort()}`)}async stop(){var e;if(!this.cleanupTimer)throw new Error("Server already stopped");await new Promise(((e,t)=>this.httpServer.close((s=>{if(s)return t(s);e()}))));for(const t in this.connections.keys())for(const s in null===(e=this.connections.get(t))||void 0===e?void 0:e.keys())this.closeConnection(t,s,!0);this.connections.clear(),this.sessions.forEach(((e,t)=>{this.logger.info(`Closing tunnel ${e.id} from ${e.conn.remoteAddress} for session ${t}`),e.disconnect(!0)})),this.sessions.clear(),globalThis.clearInterval(this.cleanupTimer),this.cleanupTimer=void 0}async openConnection(e,t,s){var i;const r=(0,o.nanoid)();this.logger.info(`Generated connection ID ${r} for connect request`,t);const a=null!==(i=t.remoteHost)&&void 0!==i?i:l.DefaultConnectHost;if(!this.allowedConnectHostFilter.hostIsAllowed(a)){const e=`Rejecting request ${r} to connect to host not in allowed list: ${a}`;this.logger.info(e);const t={connectionId:r,error:e,success:!1};return void s.emit(c.ConnectResponseMessage,t)}const{host:u,port:d}=this.resolveConnectDestination(t);this.logger.info(`Resolved connection destination: ${u}:${d}`);const h=new n.Socket;try{await(0,p.withTimeout)(new Promise(((n,i)=>{h.once("connect",n),h.once("error",(e=>i(e))),h.once("timeout",(()=>i(new Error(`Timed out connecting to ${u}:${d}`)))),this.logger.info(`Connecting to ${u}:${d} with timeout ${t.timeoutMillis}ms on connection ${r} in session ${e} for tunnel ${s.id}`),h.connect({host:u,keepAlive:!0,noDelay:!0,port:d})})),t.timeoutMillis),h.on("data",(t=>{const s=this.sessions.get(e);s?(this.connectionTracing&&this.logger.debug(`Sending ${t.byteLength} bytes from ${u}:${d} to tunnel ${s.id} on connection ${r} in session ${e}`),s.emit(c.ConnectionDataMessage,r,t)):this.connectionTracing&&this.logger.info(`Dropping ${t.byteLength} bytes from ${u}:${d} because no active tunnel connection exists for session ${e}`)})),h.on("close",(()=>{this.sessions.get(e)?this.closeConnection(e,r,!0):this.connectionTracing&&this.logger.info(`Unable to send close message for connection ${r} because no active tunnel connection exists for session ${e}`)}));let n=this.connections.get(e);n||(n=new Map,this.connections.set(e,n)),n.set(r,h);const i={connectionId:r,success:!0};s.emit(c.ConnectResponseMessage,i),this.logger.info(`Successfully connected to ${u}:${d} with connection ID ${r} in session ${e} for tunnel ${s.id}`)}catch(e){this.logger.info(`Error connecting to ${u}:${d} : ${e}`),h.destroy();const t={connectionId:r,error:null==e?void 0:e.toString(),success:!1};s.emit(c.ConnectResponseMessage,t)}}resolveConnectDestination(e){var t;const s={host:null!==(t=e.remoteHost)&&void 0!==t?t:l.DefaultConnectHost,port:e.remotePort};for(const e of this.replacementRules)if(e.matches(s)){this.logger.info(`Replacement rule [${e.description}] matched [${s.host}:${s.port}`),e.replaceAddress&&(s.host=e.replaceAddress),e.replacePort&&(s.port=e.replacePort);break}return s}destroySession(e){var t;null===(t=this.connections.get(e))||void 0===t||t.forEach(((t,s)=>this.closeConnection(e,s,!1))),this.connections.delete(e);this.sessions.get(e)&&this.sessions.delete(e)}closeConnection(e,t,s){var n;const i=this.connections.get(e);if(!i)return;const o=i.get(t);o&&(this.logger.info(`Closing connection ${t} in session ${e}`),o.destroy(),i.delete(t),0===i.size&&this.connections.delete(e),s&&(null===(n=this.sessions.get(e))||void 0===n||n.emit(c.ConnectionCloseMessage,t)))}sendConnectionDataToRemoteHost(e,t,s,n){const i=this.connections.get(t);if(!i)return this.connectionTracing&&this.logger.info(`Received request to send data on connection ${s} in unknown session ${t}`),void this.closeConnection(t,s,!0);const o=i.get(s);if(!o)return this.connectionTracing&&this.logger.info(`Received request to send data on unknown connection ${s}`),void this.closeConnection(t,s,!0);this.connectionTracing&&this.logger.debug(`Writing ${n.byteLength} bytes from tunnel ${e.id} on connection ${s} to ${o.remoteAddress}:${o.remotePort}`),o.write(n)}cleanup(){const e=Date.now();this.sessionDisconnectTimes.forEach(((t,s)=>{if(this.sessions.get(s))return void this.sessionDisconnectTimes.delete(s);if(this.sessionReconnectGracePeriodSeconds<0)return;const n=t+1e3*this.sessionReconnectGracePeriodSeconds;e>n&&(this.logger.info(`Session ${s} which disconnected at ${new Date(t).toUTCString()} has expired after ${this.sessionReconnectGracePeriodSeconds}s with no reconnect`),this.destroySession(s),this.sessionDisconnectTimes.delete(s))}))}}},7557:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleHttpAuthorizer=void 0;const n=s(5994),i={basic:/^Basic ([^\s]+)/i,bearer:/^Bearer ([^\s]+)/i},o=/^([^\s:]+):([^\s:]+)/;t.SimpleHttpAuthorizer=class{constructor(e){this.authorization=e}async isAuthorized(e){const t=this.extractAuthorization(e.headers.authorization);return(0,n.authorizationMatches)(this.authorization,t)}extractAuthorization(e){var t;if(!e)return;const s=null===(t=i[this.authorization.type].exec(e))||void 0===t?void 0:t[1];if(s)switch(this.authorization.type){case"basic":return this.extractBasicAuthorization(s);case"bearer":return this.extractBearerAuthorization(s)}}extractBasicAuthorization(e){const t=Buffer.from(e,"base64").toString("utf-8"),s=o.exec(t);if(!s)return;const[,n,i]=s;return{password:i,type:"basic",username:n}}extractBearerAuthorization(e){return{bearerToken:e,type:"bearer"}}}},3118:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleTunnelAuthorizer=void 0;const n=s(5994);t.SimpleTunnelAuthorizer=class{constructor(e){this.authorization=e}async isAuthorized(e,t){return(0,n.authorizationMatches)(this.authorization,e)}}},5994:(e,t)=>{"use strict";function s(e){return JSON.stringify(e,void 0,0)}Object.defineProperty(t,"__esModule",{value:!0}),t.authorizationMatches=void 0,t.authorizationMatches=function(e,t){return!!t&&s(e)===s(t)}},4676:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultPath=t.DefaultConnectionTracking=t.DefaultDestroySessionOnDisconnect=t.DefaultTunnelReconnectGracePeriodSeconds=t.CleanupTimerPeriodMillis=t.DefaultAllowedConnectHostExpressions=t.Ipv4OctetRe=t.DefaultConnectHost=t.DefaultBindPort=void 0,t.DefaultBindPort=8080,t.DefaultConnectHost="localhost",t.Ipv4OctetRe=/25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?/,t.DefaultAllowedConnectHostExpressions=[/^localhost$/i,new RegExp(`^(127)\\.(${t.Ipv4OctetRe.source})\\.(${t.Ipv4OctetRe.source})\\.(${t.Ipv4OctetRe.source})$`),/^::1$/],t.CleanupTimerPeriodMillis=6e4,t.DefaultTunnelReconnectGracePeriodSeconds=3600,t.DefaultDestroySessionOnDisconnect=!1,t.DefaultConnectionTracking=!1,t.DefaultPath="/"},3346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},181:(e,t,s)=>{"use strict";var n=s(9442),i=s(4345);function o(e){if(!(this instanceof o))return new o(e);this.headers=e.headers,this.negotiator=new n(e)}function r(e){return-1===e.indexOf("/")?i.lookup(e):e}function a(e){return"string"==typeof e}e.exports=o,o.prototype.type=o.prototype.types=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var s=0;s<t.length;s++)t[s]=arguments[s]}if(!t||0===t.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return t[0];var n=t.map(r),i=this.negotiator.mediaTypes(n.filter(a))[0];return!!i&&t[n.indexOf(i)]},o.prototype.encoding=o.prototype.encodings=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var s=0;s<t.length;s++)t[s]=arguments[s]}return t&&0!==t.length?this.negotiator.encodings(t)[0]||!1:this.negotiator.encodings()},o.prototype.charset=o.prototype.charsets=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var s=0;s<t.length;s++)t[s]=arguments[s]}return t&&0!==t.length?this.negotiator.charsets(t)[0]||!1:this.negotiator.charsets()},o.prototype.lang=o.prototype.langs=o.prototype.language=o.prototype.languages=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var s=0;s<t.length;s++)t[s]=arguments[s]}return t&&0!==t.length?this.negotiator.languages(t)[0]||!1:this.negotiator.languages()}},81:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.isAsync)(e))return function(...t){const s=t.pop();return a(e.apply(this,t),s)};return(0,n.default)((function(t,s){var n;try{n=e.apply(this,t)}catch(e){return s(e)}if(n&&"function"==typeof n.then)return a(n,s);s(null,n)}))};var n=r(s(8321)),i=r(s(9571)),o=s(2080);function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.then((e=>{c(t,null,e)}),(e=>{c(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function c(e,t,s){try{e(t,s)}catch(e){(0,i.default)((e=>{throw e}),e)}}e.exports=t.default},6122:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(s(4796)),i=p(s(6307)),o=p(s(3475)),r=p(s(7826)),a=p(s(6978)),c=p(s(2080)),l=p(s(3129));function p(e){return e&&e.__esModule?e:{default:e}}function u(e,t,s){s=(0,r.default)(s);var n=0,o=0,{length:c}=e,l=!1;function p(e,t){!1===e&&(l=!0),!0!==l&&(e?s(e):++o!==c&&t!==i.default||s(null))}for(0===c&&s(null);n<c;n++)t(e[n],n,(0,a.default)(p))}function d(e,t,s){return(0,o.default)(e,1/0,t,s)}t.default=(0,l.default)((function(e,t,s){return((0,n.default)(e)?u:d)(e,(0,c.default)(t),s)}),3),e.exports=t.default},3475:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(s(9500)),i=r(s(2080)),o=r(s(3129));function r(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,s,o){return(0,n.default)(t)(e,(0,i.default)(s),o)}),4),e.exports=t.default},3457:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(s(3475)),i=o(s(3129));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,s){return(0,n.default)(e,1,t,s)}),3),e.exports=t.default},5305:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(s(6122)),i=a(s(9617)),o=a(s(2080)),r=a(s(3129));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)((function(e,t,s){return(0,n.default)(e,(0,i.default)((0,o.default)(t)),s)}),3),e.exports=t.default},3611:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,s,n){let i=!1,r=!1,a=!1,c=0,l=0;function p(){c>=t||a||i||(a=!0,e.next().then((({value:e,done:t})=>{if(!r&&!i){if(a=!1,t)return i=!0,void(c<=0&&n(null));c++,s(e,l,u),l++,p()}})).catch(d))}function u(e,t){if(c-=1,!r)return e?d(e):!1===e?(i=!0,void(r=!0)):t===o.default||i&&c<=0?(i=!0,n(null)):void p()}function d(e){r||(a=!1,i=!0,n(e))}p()};var n,i=s(6307),o=(n=i)&&n.__esModule?n:{default:n};e.exports=t.default},3129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t||(t=e.length);if(!t)throw new Error("arity is undefined");return function(...s){return"function"==typeof s[t-1]?e.apply(this,s):new Promise(((n,i)=>{s[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])},e.apply(this,s)}))}},e.exports=t.default},6307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={},e.exports=t.default},9500:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(s(7826)),i=l(s(2836)),o=l(s(6978)),r=s(2080),a=l(s(3611)),c=l(s(6307));function l(e){return e&&e.__esModule?e:{default:e}}t.default=e=>(t,s,l)=>{if(l=(0,n.default)(l),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return l(null);if((0,r.isAsyncGenerator)(t))return(0,a.default)(t,e,s,l);if((0,r.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,s,l);var p=(0,i.default)(t),u=!1,d=!1,h=0,f=!1;function m(e,t){if(!d)if(h-=1,e)u=!0,l(e);else if(!1===e)u=!0,d=!0;else{if(t===c.default||u&&h<=0)return u=!0,l(null);f||g()}}function g(){for(f=!0;h<e&&!u;){var t=p();if(null===t)return u=!0,void(h<=0&&l(null));h+=1,s(t.value,t.key,(0,o.default)(m))}f=!1}g()},e.exports=t.default},7558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()},e.exports=t.default},8321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){var s=t.pop();return e.call(this,t,s)}},e.exports=t.default},4796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0},e.exports=t.default},2836:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e))return function(e){var t=-1,s=e.length;return function(){return++t<s?{value:e[t],key:t}:null}}(e);var t=(0,i.default)(e);return t?function(e){var t=-1;return function(){var s=e.next();return s.done?null:(t++,{value:s.value,key:t})}}(t):(s=e,o=s?Object.keys(s):[],r=-1,a=o.length,function e(){var t=o[++r];return"__proto__"===t?e():r<a?{value:s[t],key:t}:null});var s,o,r,a};var n=o(s(4796)),i=o(s(7558));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(...t){if(null!==e){var s=e;e=null,s.apply(this,t)}}return Object.assign(t,e),t},e.exports=t.default},6978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var s=e;e=null,s.apply(this,t)}},e.exports=t.default},5350:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(s(4796)),i=r(s(2080)),o=r(s(3129));function r(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)(((e,t,s)=>{var o=(0,n.default)(t)?[]:{};e(t,((e,t,s)=>{(0,i.default)(e)(((e,...n)=>{n.length<2&&([n]=n),o[t]=n,s(e)}))}),(e=>s(e,o)))}),3),e.exports=t.default},9571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=r,t.wrap=a;var s,n=t.hasQueueMicrotask="function"==typeof queueMicrotask&&queueMicrotask,i=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,o=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function r(e){setTimeout(e,0)}function a(e){return(t,...s)=>e((()=>t(...s)))}s=n?queueMicrotask:i?setImmediate:o?process.nextTick:r,t.default=a(s)},9617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,s,n)=>e(t,n)},e.exports=t.default},2080:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var n,i=s(81),o=(n=i)&&n.__esModule?n:{default:n};function r(e){return"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){if("function"!=typeof e)throw new Error("expected a function");return r(e)?(0,o.default)(e):e},t.isAsync=r,t.isAsyncGenerator=function(e){return"AsyncGenerator"===e[Symbol.toStringTag]},t.isAsyncIterable=function(e){return"function"==typeof e[Symbol.asyncIterator]}},7476:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(i.default,e,t)};var n=o(s(5350)),i=o(s(3457));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9916:(e,t,s)=>{var n=s(6113),i=function(){};i.prototype.getRandomBytes=function(e){var t=4096,s=this;if((e=e||12)>t)return n.randomBytes(e);var i=parseInt(t/e),o=parseInt(.85*i);if(!o)return n.randomBytes(e);if(null==this.bytesBufferIndex&&(this.bytesBufferIndex=-1),this.bytesBufferIndex==i&&(this.bytesBuffer=null,this.bytesBufferIndex=-1),(-1==this.bytesBufferIndex||this.bytesBufferIndex>o)&&(this.isGeneratingBytes||(this.isGeneratingBytes=!0,n.randomBytes(t,(function(e,t){s.bytesBuffer=t,s.bytesBufferIndex=0,s.isGeneratingBytes=!1}))),-1==this.bytesBufferIndex))return n.randomBytes(e);var r=this.bytesBuffer.slice(e*this.bytesBufferIndex,e*(this.bytesBufferIndex+1));return this.bytesBufferIndex++,r},i.prototype.generateId=function(){var e=Buffer.alloc(15);return e.writeInt32BE?(this.sequenceNumber=this.sequenceNumber+1|0,e.writeInt32BE(this.sequenceNumber,11),n.randomBytes?this.getRandomBytes(12).copy(e):[0,4,8].forEach((function(t){e.writeInt32BE(Math.random()*Math.pow(2,32)|0,t)})),e.toString("base64").replace(/\//g,"_").replace(/\+/g,"-")):Math.abs(Math.random()*Math.random()*Date.now()|0).toString()+Math.abs(Math.random()*Math.random()*Date.now()|0).toString()},e.exports=new i},2507:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},r=e.split(";"),a=i.decode||s,c=0;c<r.length;c++){var l=r[c],p=l.indexOf("=");if(!(p<0)){var u=l.substring(0,p).trim();if(null==n[u]){var d=l.substring(p+1,l.length).trim();'"'===d[0]&&(d=d.slice(1,-1)),n[u]=o(d,a)}}}return n},t.serialize=function(e,t,s){var o=s||{},r=o.encode||n;if("function"!=typeof r)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var a=r(t);if(a&&!i.test(a))throw new TypeError("argument val is invalid");var c=e+"="+a;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(c+="; HttpOnly");o.secure&&(c+="; Secure");if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var s=decodeURIComponent,n=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o(e,t){try{return t(e)}catch(t){return e}}},9920:(e,t,s)=>{!function(){"use strict";var t=s(1538),n=s(9548),i={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function o(e){return"string"==typeof e||e instanceof String}function r(e,t){if(Array.isArray(t)){for(var s=0;s<t.length;++s)if(r(e,t[s]))return!0;return!1}return o(t)?e===t:t instanceof RegExp?t.test(e):!!t}function a(e,t){var s,n=t.headers.origin,i=[];return e.origin&&"*"!==e.origin?o(e.origin)?(i.push([{key:"Access-Control-Allow-Origin",value:e.origin}]),i.push([{key:"Vary",value:"Origin"}])):(s=r(n,e.origin),i.push([{key:"Access-Control-Allow-Origin",value:!!s&&n}]),i.push([{key:"Vary",value:"Origin"}])):i.push([{key:"Access-Control-Allow-Origin",value:"*"}]),i}function c(e){return!0===e.credentials?{key:"Access-Control-Allow-Credentials",value:"true"}:null}function l(e){var t=e.exposedHeaders;return t?(t.join&&(t=t.join(",")),t&&t.length?{key:"Access-Control-Expose-Headers",value:t}:null):null}function p(e,t){for(var s=0,i=e.length;s<i;s++){var o=e[s];o&&(Array.isArray(o)?p(o,t):"Vary"===o.key&&o.value?n(t,o.value):o.value&&t.setHeader(o.key,o.value))}}e.exports=function(e){var s=null;return s="function"==typeof e?e:function(t,s){s(null,e)},function(e,n,o){s(e,(function(s,r){if(s)o(s);else{var u=t({},i,r),d=null;u.origin&&"function"==typeof u.origin?d=u.origin:u.origin&&(d=function(e,t){t(null,u.origin)}),d?d(e.headers.origin,(function(t,s){t||!s?o(t):(u.origin=s,function(e,t,s,n){var i=[];"OPTIONS"===(t.method&&t.method.toUpperCase&&t.method.toUpperCase())?(i.push(a(e,t)),i.push(c(e)),i.push(function(e){var t=e.methods;return t.join&&(t=e.methods.join(",")),{key:"Access-Control-Allow-Methods",value:t}}(e)),i.push(function(e,t){var s=e.allowedHeaders||e.headers,n=[];return s?s.join&&(s=s.join(",")):(s=t.headers["access-control-request-headers"],n.push([{key:"Vary",value:"Access-Control-Request-Headers"}])),s&&s.length&&n.push([{key:"Access-Control-Allow-Headers",value:s}]),n}(e,t)),i.push(function(e){var t=("number"==typeof e.maxAge||e.maxAge)&&e.maxAge.toString();return t&&t.length?{key:"Access-Control-Max-Age",value:t}:null}(e)),i.push(l(e)),p(i,s),e.preflightContinue?n():(s.statusCode=e.optionsSuccessStatus,s.setHeader("Content-Length","0"),s.end())):(i.push(a(e,t)),i.push(c(e)),i.push(l(e)),p(i,s),n())}(u,e,n,o))})):o()}}))}}}()},9936:(e,t,s)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;t.splice(1,0,s,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,s)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=s(8165)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8165:(e,t,s)=>{e.exports=function(e){function t(e){let s,i,o,r=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(s||i);n.diff=o,n.prev=s,n.curr=i,s=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((s,i)=>{if("%%"===s)return"%";r++;const o=t.formatters[i];if("function"==typeof o){const t=e[r];s=o.call(n,t),e.splice(r,1),r--}return s})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{r=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,s){const n=t(this.namespace+(void 0===s?":":s)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let s;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(s=0;s<i;s++)n[s]&&("-"===(e=n[s].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let s,n;for(s=0,n=t.skips.length;s<n;s++)if(t.skips[s].test(e))return!1;for(s=0,n=t.names.length;s<n;s++)if(t.names[s].test(e))return!0;return!1},t.humanize=s(2739),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((s=>{t[s]=e[s]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let s=0;for(let t=0;t<e.length;t++)s=(s<<5)-s+e.charCodeAt(t),s|=0;return t.colors[Math.abs(s)%t.colors.length]},t.enable(t.load()),t}},9229:(e,t,s)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=s(9936):e.exports=s(8259)},8259:(e,t,s)=>{const n=s(6224),i=s(3837);t.init=function(e){e.inspectOpts={};const s=Object.keys(t.inspectOpts);for(let n=0;n<s.length;n++)e.inspectOpts[s[n]]=t.inspectOpts[s[n]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(s){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${n} [0m`;s[0]=o+s[0].split("\n").join("\n"+o),s.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else s[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+s[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=s(7318);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const s=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[s]=n,e}),{}),e.exports=s(8165)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},5743:(e,t,s)=>{"use strict";s.r(t),s.d(t,{assign:()=>p,default:()=>j,defaultI18n:()=>f,format:()=>C,parse:()=>R,setGlobalDateI18n:()=>g,setGlobalDateMasks:()=>O});var n=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",o="\\d\\d",r="[^\\s]+",a=/\[([^]*?)\]/gm;function c(e,t){for(var s=[],n=0,i=e.length;n<i;n++)s.push(e[n].substr(0,t));return s}var l=function(e){return function(t,s){var n=s[e].map((function(e){return e.toLowerCase()})),i=n.indexOf(t.toLowerCase());return i>-1?i:null}};function p(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];for(var n=0,i=t;n<i.length;n++){var o=i[n];for(var r in o)e[r]=o[r]}return e}var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],h=c(d,3),f={dayNamesShort:c(u,3),dayNames:u,monthNamesShort:h,monthNames:d,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10?1:0)*e%10]}},m=p({},f),g=function(e){return m=p(m,e)},v=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},b=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},x={D:function(e){return String(e.getDate())},DD:function(e){return b(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return b(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return b(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return b(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return b(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return b(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return b(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return b(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return b(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return b(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return b(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+b(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+b(Math.floor(Math.abs(t)/60),2)+":"+b(Math.abs(t)%60,2)}},y=function(e){return+e-1},w=[null,i],_=[null,r],k=["isPm",r,function(e,t){var s=e.toLowerCase();return s===t.amPm[0]?0:s===t.amPm[1]?1:null}],S=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var s=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?s:-s}return 0}],E={D:["day",i],DD:["day",o],Do:["day",i+r,function(e){return parseInt(e,10)}],M:["month",i,y],MM:["month",o,y],YY:["year",o,function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",i,void 0,"isPm"],hh:["hour",o,void 0,"isPm"],H:["hour",i],HH:["hour",o],m:["minute",i],mm:["minute",o],s:["second",i],ss:["second",o],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",o,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:w,dd:w,ddd:_,dddd:_,MMM:["month",r,l("monthNamesShort")],MMMM:["month",r,l("monthNames")],a:k,A:k,ZZ:S,Z:S},T={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},O=function(e){return p(T,e)},C=function(e,t,s){if(void 0===t&&(t=T.default),void 0===s&&(s={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=T[t]||t;var i=[];t=t.replace(a,(function(e,t){return i.push(t),"@@@"}));var o=p(p({},m),s);return(t=t.replace(n,(function(t){return x[t](e,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function R(e,t,s){if(void 0===s&&(s={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=T[t]||t,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],r=[],c=t.replace(a,(function(e,t){return r.push(v(t)),"@@@"})),l={},u={};c=v(c).replace(n,(function(e){var t=E[e],s=t[0],n=t[1],i=t[3];if(l[s])throw new Error("Invalid format. "+s+" specified twice in format");return l[s]=!0,i&&(u[i]=!0),o.push(t),"("+n+")"})),Object.keys(u).forEach((function(e){if(!l[e])throw new Error("Invalid format. "+e+" is required in specified format")})),c=c.replace(/@@@/g,(function(){return r.shift()}));var d=e.match(new RegExp(c,"i"));if(!d)return null;for(var h,f=p(p({},m),s),g=1;g<d.length;g++){var b=o[g-1],x=b[0],y=b[2],w=y?y(d[g],f):+d[g];if(null==w)return null;i[x]=w}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){h=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var _=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],k=(g=0,_.length);g<k;g++)if(l[_[g][0]]&&i[_[g][0]]!==h[_[g][1]]())return null}else if(h=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return h}const j={format:C,parse:R,defaultI18n:f,setGlobalDateI18n:g,setGlobalDateMasks:O}},9112:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){if("string"==typeof e.displayName&&e.constructor.name)return e.displayName;if("string"==typeof e.name&&e.name)return e.name;if("object"==typeof e&&e.constructor&&"string"==typeof e.constructor.name)return e.constructor.name;var s=e.toString(),n=t.call(e).slice(8,-1);return(s="Function"===n?s.substring(s.indexOf("(")+1,s.indexOf(")")):n)||"anonymous"}},602:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const s=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(s+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},8398:(e,t,s)=>{"use strict";const n=s(5687),i=s(3685),{URL:o}=s(7310);class r extends i.Agent{constructor(e){const{proxy:t,proxyRequestOptions:s,...n}=e;super(n),this.proxy="string"==typeof t?new o(t):t,this.proxyRequestOptions=s||{}}createConnection(e,t){const s={...this.proxyRequestOptions,method:"CONNECT",host:this.proxy.hostname,port:this.proxy.port,path:`${e.host}:${e.port}`,setHost:!1,headers:{...this.proxyRequestOptions.headers,connection:this.keepAlive?"keep-alive":"close",host:`${e.host}:${e.port}`},agent:!1,timeout:e.timeout||0};if(this.proxy.username||this.proxy.password){const e=Buffer.from(`${decodeURIComponent(this.proxy.username||"")}:${decodeURIComponent(this.proxy.password||"")}`).toString("base64");s.headers["proxy-authorization"]=`Basic ${e}`}"https:"===this.proxy.protocol&&(s.servername=this.proxy.hostname);const o=("http:"===this.proxy.protocol?i:n).request(s);o.once("connect",((e,s,n)=>{o.removeAllListeners(),s.removeAllListeners(),200===e.statusCode?t(null,s):(s.destroy(),t(new Error(`Bad response: ${e.statusCode}`),null))})),o.once("timeout",(()=>{o.destroy(new Error("Proxy timeout"))})),o.once("error",(e=>{o.removeAllListeners(),t(e,null)})),o.end()}}class a extends n.Agent{constructor(e){const{proxy:t,proxyRequestOptions:s,...n}=e;super(n),this.proxy="string"==typeof t?new o(t):t,this.proxyRequestOptions=s||{}}createConnection(e,t){const s={...this.proxyRequestOptions,method:"CONNECT",host:this.proxy.hostname,port:this.proxy.port,path:`${e.host}:${e.port}`,setHost:!1,headers:{...this.proxyRequestOptions.headers,connection:this.keepAlive?"keep-alive":"close",host:`${e.host}:${e.port}`},agent:!1,timeout:e.timeout||0};if(this.proxy.username||this.proxy.password){const e=Buffer.from(`${decodeURIComponent(this.proxy.username||"")}:${decodeURIComponent(this.proxy.password||"")}`).toString("base64");s.headers["proxy-authorization"]=`Basic ${e}`}"https:"===this.proxy.protocol&&(s.servername=this.proxy.hostname);const o=("http:"===this.proxy.protocol?i:n).request(s);o.once("connect",((s,n,i)=>{if(o.removeAllListeners(),n.removeAllListeners(),200===s.statusCode){const s=super.createConnection({...e,socket:n});t(null,s)}else n.destroy(),t(new Error(`Bad response: ${s.statusCode}`),null)})),o.once("timeout",(()=>{o.destroy(new Error("Proxy timeout"))})),o.once("error",(e=>{o.removeAllListeners(),t(e,null)})),o.end()}}e.exports={HttpProxyAgent:r,HttpsProxyAgent:a}},2591:(e,t,s)=>{try{var n=s(3837);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=s(9118)}},9118:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var s=function(){};s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e}}},8549:e=>{"use strict";const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform,e.exports=t},2435:(e,t,s)=>{"use strict";const n=s(3020);e.exports=n((e=>(e.message=`\t${e.message}`,e)))},7980:(e,t,s)=>{"use strict";const{Colorizer:n}=s(2862),{Padder:i}=s(5449),{configs:o,MESSAGE:r}=s(8029);class a{constructor(e={}){e.levels||(e.levels=o.cli.levels),this.colorizer=new n(e),this.padder=new i(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[r]=`${e.level}:${e.message}`,e}}e.exports=e=>new a(e),e.exports.Format=a},2862:(e,t,s)=>{"use strict";const n=s(7112),{LEVEL:i,MESSAGE:o}=s(8029);n.enabled=!0;const r=/\s+/;class a{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){const t=Object.keys(e).reduce(((t,s)=>(t[s]=r.test(e[s])?e[s].split(r):e[s],t)),{});return a.allColors=Object.assign({},a.allColors||{},t),a.allColors}addColors(e){return a.addColors(e)}colorize(e,t,s){if(void 0===s&&(s=t),!Array.isArray(a.allColors[e]))return n[a.allColors[e]](s);for(let t=0,i=a.allColors[e].length;t<i;t++)s=n[a.allColors[e][t]](s);return s}transform(e,t){return t.all&&"string"==typeof e[o]&&(e[o]=this.colorize(e[i],e.level,e[o])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[i],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[i],e.level,e.message)),e}}e.exports=e=>new a(e),e.exports.Colorizer=e.exports.Format=a},822:(e,t,s)=>{"use strict";const n=s(3020);function i(e){if(e.every(o))return t=>{let s=t;for(let t=0;t<e.length;t++)if(s=e[t].transform(s,e[t].options),!s)return!1;return s}}function o(e){if("function"!=typeof e.transform)throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join("\n"));return!0}e.exports=(...e)=>{const t=n(i(e)),s=t();return s.Format=t.Format,s},e.exports.cascade=i},1813:(e,t,s)=>{"use strict";const n=s(3020),{LEVEL:i,MESSAGE:o}=s(8029);e.exports=n(((e,{stack:t,cause:s})=>{if(e instanceof Error){const n=Object.assign({},e,{level:e.level,[i]:e[i]||e.level,message:e.message,[o]:e[o]||e.message});return t&&(n.stack=e.stack),s&&(n.cause=e.cause),n}if(!(e.message instanceof Error))return e;const n=e.message;return Object.assign(e,n),e.message=n.message,e[o]=n.message,t&&(e.stack=n.stack),s&&(e.cause=n.cause),e}))},3020:e=>{"use strict";class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${e.toString().split("\n")[0]}\n`),Error.captureStackTrace(this,t)}}e.exports=e=>{if(e.length>2)throw new t(e);function s(e={}){this.options=e}function n(e){return new s(e)}return s.prototype.transform=e,n.Format=s,n}},3886:(e,t,s)=>{"use strict";const n=t.format=s(3020);function i(e,t){Object.defineProperty(n,e,{get:()=>t(),configurable:!0})}t.levels=s(1024),i("align",(function(){return s(2435)})),i("errors",(function(){return s(1813)})),i("cli",(function(){return s(7980)})),i("combine",(function(){return s(822)})),i("colorize",(function(){return s(2862)})),i("json",(function(){return s(3005)})),i("label",(function(){return s(9585)})),i("logstash",(function(){return s(3203)})),i("metadata",(function(){return s(3364)})),i("ms",(function(){return s(6871)})),i("padLevels",(function(){return s(5449)})),i("prettyPrint",(function(){return s(4794)})),i("printf",(function(){return s(2042)})),i("simple",(function(){return s(3596)})),i("splat",(function(){return s(5614)})),i("timestamp",(function(){return s(271)})),i("uncolorize",(function(){return s(8975)}))},3005:(e,t,s)=>{"use strict";const n=s(3020),{MESSAGE:i}=s(8029),o=s(6948);function r(e,t){return"bigint"==typeof t?t.toString():t}e.exports=n(((e,t)=>{const s=o.configure(t);return e[i]=s(e,t.replacer||r,t.space),e}))},9585:(e,t,s)=>{"use strict";const n=s(3020);e.exports=n(((e,t)=>t.message?(e.message=`[${t.label}] ${e.message}`,e):(e.label=t.label,e)))},1024:(e,t,s)=>{"use strict";const{Colorizer:n}=s(2862);e.exports=e=>(n.addColors(e.colors||e),e)},3203:(e,t,s)=>{"use strict";const n=s(3020),{MESSAGE:i}=s(8029),o=s(6948);e.exports=n((e=>{const t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e}))},3364:(e,t,s)=>{"use strict";const n=s(3020);e.exports=n(((e,t={})=>{let s="metadata";t.key&&(s=t.key);let n=[];return t.fillExcept||t.fillWith||(n.push("level"),n.push("message")),t.fillExcept&&(n=t.fillExcept),n.length>0?function(e,t,s){const n=t.reduce(((t,s)=>(t[s]=e[s],delete e[s],t)),{}),i=Object.keys(e).reduce(((t,s)=>(t[s]=e[s],delete e[s],t)),{});return Object.assign(e,n,{[s]:i}),e}(e,n,s):t.fillWith?function(e,t,s){return e[s]=t.reduce(((t,s)=>(t[s]=e[s],delete e[s],t)),{}),e}(e,t.fillWith,s):e}))},6871:function(e,t,s){"use strict";const n=s(3020),i=s(2739);e.exports=n((e=>{const t=+new Date;return this.diff=t-(this.prevTime||t),this.prevTime=t,e.ms=`+${i(this.diff)}`,e}))},5449:(e,t,s)=>{"use strict";const{configs:n,LEVEL:i,MESSAGE:o}=s(8029);class r{constructor(e={levels:n.npm.levels}){this.paddings=r.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){const t=Object.keys(e).map((e=>e.length));return Math.max(...t)}static paddingForLevel(e,t,s){const n=s+1-e.length,i=Math.floor(n/t.length);return`${t}${t.repeat(i)}`.slice(0,n)}static paddingForLevels(e,t=" "){const s=r.getLongestLevel(e);return Object.keys(e).reduce(((e,n)=>(e[n]=r.paddingForLevel(n,t,s),e)),{})}transform(e,t){return e.message=`${this.paddings[e[i]]}${e.message}`,e[o]&&(e[o]=`${this.paddings[e[i]]}${e[o]}`),e}}e.exports=e=>new r(e),e.exports.Padder=e.exports.Format=r},4794:(e,t,s)=>{"use strict";const n=s(3837).inspect,i=s(3020),{LEVEL:o,MESSAGE:r,SPLAT:a}=s(8029);e.exports=i(((e,t={})=>{const s=Object.assign({},e);return delete s[o],delete s[r],delete s[a],e[r]=n(s,!1,t.depth||null,t.colorize),e}))},2042:(e,t,s)=>{"use strict";const{MESSAGE:n}=s(8029);class i{constructor(e){this.template=e}transform(e){return e[n]=this.template(e),e}}e.exports=e=>new i(e),e.exports.Printf=e.exports.Format=i},3596:(e,t,s)=>{"use strict";const n=s(3020),{MESSAGE:i}=s(8029),o=s(6948);e.exports=n((e=>{const t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),s=e.padding&&e.padding[e.level]||"";return e[i]="{}"!==t?`${e.level}:${s} ${e.message} ${t}`:`${e.level}:${s} ${e.message}`,e}))},5614:(e,t,s)=>{"use strict";const n=s(3837),{SPLAT:i}=s(8029),o=/%[scdjifoO%]/g,r=/%%/g;class a{constructor(e){this.options=e}_splat(e,t){const s=e.message,o=e[i]||e.splat||[],a=s.match(r),c=a&&a.length||0,l=t.length-c-o.length,p=l<0?o.splice(l,-1*l):[],u=p.length;if(u)for(let t=0;t<u;t++)Object.assign(e,p[t]);return e.message=n.format(s,...o),e}transform(e){const t=e.message,s=e[i]||e.splat;if(!s||!s.length)return e;const n=t&&t.match&&t.match(o);if(!n&&(s||s.length)){const t=s.length>1?s.splice(0):s,n=t.length;if(n)for(let s=0;s<n;s++)Object.assign(e,t[s]);return e}return n?this._splat(e,n):e}}e.exports=e=>new a(e)},271:(e,t,s)=>{"use strict";const n=s(5743),i=s(3020);e.exports=i(((e,t={})=>(t.format&&(e.timestamp="function"==typeof t.format?t.format():n.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e)))},8975:(e,t,s)=>{"use strict";const n=s(7112),i=s(3020),{MESSAGE:o}=s(8029);e.exports=i(((e,t)=>(!1!==t.level&&(e.level=n.strip(e.level)),!1!==t.message&&(e.message=n.strip(String(e.message))),!1!==t.raw&&e[o]&&(e[o]=n.strip(String(e[o]))),e)))},8437:(e,t,s)=>{e.exports=s(9601)},4345:(e,t,s)=>{"use strict";var n,i,o,r=s(8437),a=s(1017).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),s=t&&r[t[1].toLowerCase()];return s&&s.charset?s.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var s=-1===e.indexOf("/")?t.lookup(e):e;if(!s)return!1;if(-1===s.indexOf("charset")){var n=t.charset(s);n&&(s+="; charset="+n.toLowerCase())}return s},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var s=c.exec(e),n=s&&t.extensions[s[1].toLowerCase()];if(!n||!n.length)return!1;return n[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var s=a("x."+e).toLowerCase().substr(1);if(!s)return!1;return t.types[s]||!1},t.types=Object.create(null),n=t.extensions,i=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(r).forEach((function(e){var t=r[e],s=t.extensions;if(s&&s.length){n[e]=s;for(var a=0;a<s.length;a++){var c=s[a];if(i[c]){var l=o.indexOf(r[i[c]].source),p=o.indexOf(t.source);if("application/octet-stream"!==i[c]&&(l>p||l===p&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))},2739:e=>{var t=1e3,s=60*t,n=60*s,i=24*n,o=7*i,r=365.25*i;function a(e,t,s,n){var i=t>=1.5*s;return Math.round(e/s)+" "+n+(i?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*s;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=n)return a(e,o,n,"hour");if(o>=s)return a(e,o,s,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=n)return Math.round(e/n)+"h";if(o>=s)return Math.round(e/s)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9442:(e,t,s)=>{"use strict";var n=s(8664),i=s(5039),o=s(7190),r=s(527);function a(e){if(!(this instanceof a))return new a(e);this.request=e}e.exports=a,e.exports.Negotiator=a,a.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},a.prototype.charsets=function(e){return n(this.request.headers["accept-charset"],e)},a.prototype.encoding=function(e){var t=this.encodings(e);return t&&t[0]},a.prototype.encodings=function(e){return i(this.request.headers["accept-encoding"],e)},a.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},a.prototype.languages=function(e){return o(this.request.headers["accept-language"],e)},a.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},a.prototype.mediaTypes=function(e){return r(this.request.headers.accept,e)},a.prototype.preferredCharset=a.prototype.charset,a.prototype.preferredCharsets=a.prototype.charsets,a.prototype.preferredEncoding=a.prototype.encoding,a.prototype.preferredEncodings=a.prototype.encodings,a.prototype.preferredLanguage=a.prototype.language,a.prototype.preferredLanguages=a.prototype.languages,a.prototype.preferredMediaType=a.prototype.mediaType,a.prototype.preferredMediaTypes=a.prototype.mediaTypes},8664:e=>{"use strict";e.exports=i,e.exports.preferredCharsets=i;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function s(e,s){var n=t.exec(e);if(!n)return null;var i=n[1],o=1;if(n[2])for(var r=n[2].split(";"),a=0;a<r.length;a++){var c=r[a].trim().split("=");if("q"===c[0]){o=parseFloat(c[1]);break}}return{charset:i,q:o,i:s}}function n(e,t,s){var n=0;if(t.charset.toLowerCase()===e.toLowerCase())n|=1;else if("*"!==t.charset)return null;return{i:s,o:t.i,q:t.q,s:n}}function i(e,t){var i=function(e){for(var t=e.split(","),n=0,i=0;n<t.length;n++){var o=s(t[n].trim(),n);o&&(t[i++]=o)}return t.length=i,t}(void 0===e?"*":e||"");if(!t)return i.filter(a).sort(o).map(r);var c=t.map((function(e,t){return function(e,t,s){for(var i={o:-1,q:0,s:0},o=0;o<t.length;o++){var r=n(e,t[o],s);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}(e,i,t)}));return c.filter(a).sort(o).map((function(e){return t[c.indexOf(e)]}))}function o(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function r(e){return e.charset}function a(e){return e.q>0}},5039:e=>{"use strict";e.exports=i,e.exports.preferredEncodings=i;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function s(e,s){var n=t.exec(e);if(!n)return null;var i=n[1],o=1;if(n[2])for(var r=n[2].split(";"),a=0;a<r.length;a++){var c=r[a].trim().split("=");if("q"===c[0]){o=parseFloat(c[1]);break}}return{encoding:i,q:o,i:s}}function n(e,t,s){var n=0;if(t.encoding.toLowerCase()===e.toLowerCase())n|=1;else if("*"!==t.encoding)return null;return{i:s,o:t.i,q:t.q,s:n}}function i(e,t){var i=function(e){for(var t=e.split(","),i=!1,o=1,r=0,a=0;r<t.length;r++){var c=s(t[r].trim(),r);c&&(t[a++]=c,i=i||n("identity",c),o=Math.min(o,c.q||1))}return i||(t[a++]={encoding:"identity",q:o,i:r}),t.length=a,t}(e||"");if(!t)return i.filter(a).sort(o).map(r);var c=t.map((function(e,t){return function(e,t,s){for(var i={o:-1,q:0,s:0},o=0;o<t.length;o++){var r=n(e,t[o],s);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}(e,i,t)}));return c.filter(a).sort(o).map((function(e){return t[c.indexOf(e)]}))}function o(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function r(e){return e.encoding}function a(e){return e.q>0}},7190:e=>{"use strict";e.exports=i,e.exports.preferredLanguages=i;var t=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function s(e,s){var n=t.exec(e);if(!n)return null;var i=n[1],o=n[2],r=i;o&&(r+="-"+o);var a=1;if(n[3])for(var c=n[3].split(";"),l=0;l<c.length;l++){var p=c[l].split("=");"q"===p[0]&&(a=parseFloat(p[1]))}return{prefix:i,suffix:o,q:a,i:s,full:r}}function n(e,t,n){var i=s(e);if(!i)return null;var o=0;if(t.full.toLowerCase()===i.full.toLowerCase())o|=4;else if(t.prefix.toLowerCase()===i.full.toLowerCase())o|=2;else if(t.full.toLowerCase()===i.prefix.toLowerCase())o|=1;else if("*"!==t.full)return null;return{i:n,o:t.i,q:t.q,s:o}}function i(e,t){var i=function(e){for(var t=e.split(","),n=0,i=0;n<t.length;n++){var o=s(t[n].trim(),n);o&&(t[i++]=o)}return t.length=i,t}(void 0===e?"*":e||"");if(!t)return i.filter(a).sort(o).map(r);var c=t.map((function(e,t){return function(e,t,s){for(var i={o:-1,q:0,s:0},o=0;o<t.length;o++){var r=n(e,t[o],s);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}(e,i,t)}));return c.filter(a).sort(o).map((function(e){return t[c.indexOf(e)]}))}function o(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function r(e){return e.full}function a(e){return e.q>0}},527:e=>{"use strict";e.exports=o,e.exports.preferredMediaTypes=o;var t=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function s(e){for(var t=function(e){for(var t=e.split(","),s=1,n=0;s<t.length;s++)l(t[n])%2==0?t[++n]=t[s]:t[n]+=","+t[s];return t.length=n+1,t}(e),s=0,i=0;s<t.length;s++){var o=n(t[s].trim(),s);o&&(t[i++]=o)}return t.length=i,t}function n(e,s){var n=t.exec(e);if(!n)return null;var i=Object.create(null),o=1,r=n[2],a=n[1];if(n[3])for(var c=function(e){for(var t=e.split(";"),s=1,n=0;s<t.length;s++)l(t[n])%2==0?t[++n]=t[s]:t[n]+=";"+t[s];t.length=n+1;for(s=0;s<t.length;s++)t[s]=t[s].trim();return t}(n[3]).map(p),u=0;u<c.length;u++){var d=c[u],h=d[0].toLowerCase(),f=d[1],m=f&&'"'===f[0]&&'"'===f[f.length-1]?f.substr(1,f.length-2):f;if("q"===h){o=parseFloat(m);break}i[h]=m}return{type:a,subtype:r,params:i,q:o,i:s}}function i(e,t,s){var i=n(e),o=0;if(!i)return null;if(t.type.toLowerCase()==i.type.toLowerCase())o|=4;else if("*"!=t.type)return null;if(t.subtype.toLowerCase()==i.subtype.toLowerCase())o|=2;else if("*"!=t.subtype)return null;var r=Object.keys(t.params);if(r.length>0){if(!r.every((function(e){return"*"==t.params[e]||(t.params[e]||"").toLowerCase()==(i.params[e]||"").toLowerCase()})))return null;o|=1}return{i:s,o:t.i,q:t.q,s:o}}function o(e,t){var n=s(void 0===e?"*/*":e||"");if(!t)return n.filter(c).sort(r).map(a);var o=t.map((function(e,t){return function(e,t,s){for(var n={o:-1,q:0,s:0},o=0;o<t.length;o++){var r=i(e,t[o],s);r&&(n.s-r.s||n.q-r.q||n.o-r.o)<0&&(n=r)}return n}(e,n,t)}));return o.filter(c).sort(r).map((function(e){return t[o.indexOf(e)]}))}function r(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function a(e){return e.type+"/"+e.subtype}function c(e){return e.q>0}function l(e){for(var t=0,s=0;-1!==(s=e.indexOf('"',s));)t++,s++;return t}function p(e){var t,s,n=e.indexOf("=");return-1===n?t=e:(t=e.substr(0,n),s=e.substr(n+1)),[t,s]}},1538:e=>{"use strict";var t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},s=0;s<10;s++)t["_"+String.fromCharCode(s)]=s;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,r,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in o=Object(arguments[c]))s.call(o,l)&&(a[l]=o[l]);if(t){r=t(o);for(var p=0;p<r.length;p++)n.call(o,r[p])&&(a[r[p]]=o[r[p]])}}return a}},3918:(e,t,s)=>{"use strict";var n=s(9112);e.exports=function(e){var t,s=0;function i(){return s||(s=1,t=e.apply(this,arguments),e=null),t}return i.displayName=n(e),i}},1743:e=>{"use strict";const t={};function s(e,s,n){n||(n=Error);class i extends n{constructor(e,t,n){super(function(e,t,n){return"string"==typeof s?s:s(e,t,n)}(e,t,n))}}i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){const s=e.length;return e=e.map((e=>String(e))),s>2?`one of ${t} ${e.slice(0,s-1).join(", ")}, or `+e[s-1]:2===s?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}s("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),s("ERR_INVALID_ARG_TYPE",(function(e,t,s){let i;var o,r;let a;if("string"==typeof t&&(o="not ",t.substr(!r||r<0?0:+r,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,s){return(void 0===s||s>e.length)&&(s=e.length),e.substring(s-t.length,s)===t}(e," argument"))a=`The ${e} ${i} ${n(t,"type")}`;else{const s=function(e,t,s){return"number"!=typeof s&&(s=0),!(s+t.length>e.length)&&-1!==e.indexOf(t,s)}(e,".")?"property":"argument";a=`The "${e}" ${s} ${i} ${n(t,"type")}`}return a+=". Received type "+typeof s,a}),TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},7664:(e,t,s)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var s in e)t.push(s);return t};e.exports=l;var i=s(5170),o=s(3327);s(2591)(l,i);for(var r=n(o.prototype),a=0;a<r.length;a++){var c=r[a];l.prototype[c]||(l.prototype[c]=o.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||process.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},3163:(e,t,s)=>{"use strict";e.exports=i;var n=s(2057);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}s(2591)(i,n),i.prototype._transform=function(e,t,s){s(null,e)}},5170:(e,t,s)=>{"use strict";var n;e.exports=S,S.ReadableState=k;s(2361).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=s(5103),r=s(4300).Buffer,a=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,l=s(3837);c=l&&l.debuglog?l.debuglog("stream"):function(){};var p,u,d,h=s(3551),f=s(7866),m=s(7703).getHighWaterMark,g=s(1743).q,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,x=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;s(2591)(S,o);var w=f.errorOrDestroy,_=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||s(7664),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=s(2682).s),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function S(e){if(n=n||s(7664),!(this instanceof S))return new S(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function E(e,t,s,n,i){c("readableAddChunk",t);var o,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var s=t.decoder.end();s&&s.length&&(t.buffer.push(s),t.length+=t.objectMode?1:s.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,l);else if(i||(o=function(e,t){var s;n=t,r.isBuffer(n)||n instanceof a||"string"==typeof t||void 0===t||e.objectMode||(s=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return s}(l,t)),o)w(e,o);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===r.prototype||(t=function(e){return r.from(e)}(t)),n)l.endEmitted?w(e,new y):T(e,l,t,!0);else if(l.ended)w(e,new b);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!s?(t=l.decoder.write(t),l.objectMode||0!==t.length?T(e,l,t,!1):A(e,l)):T(e,l,t,!1)}else n||(l.reading=!1,A(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function T(e,t,s,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",s)):(t.length+=t.objectMode?1:s.length,n?t.buffer.unshift(s):t.buffer.push(s),t.needReadable&&R(e)),A(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var s,n=this._readableState;return n.objectMode?s=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=r.from(e,t),t=""),s=!0),E(this,e,t,!1,s)},S.prototype.unshift=function(e){return E(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){p||(p=s(2682).s);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function C(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function R(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(j,e))}function j(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function A(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var s=t.length;if(c("maybeReadMore read 0"),e.read(0),s===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){c("readable nexttick read 0"),e.read(0)}function D(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function q(e,t){return 0===t.length?null:(t.objectMode?s=t.buffer.shift():!e||e>=t.length?(s=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):s=t.buffer.consume(e,t.decoder),s);var s}function I(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(B,t,e))}function B(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var s=t._writableState;(!s||s.autoDestroy&&s.finished)&&t.destroy()}}function $(e,t){for(var s=0,n=e.length;s<n;s++)if(e[s]===t)return s;return-1}S.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,s=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):R(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=C(s,t))),null===(n=e>0?q(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),s!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){w(this,new x("_read()"))},S.prototype.pipe=function(e,t){var s=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?a:m;function r(t,i){c("onunpipe"),t===s&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",f),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",r),s.removeListener("end",a),s.removeListener("end",m),s.removeListener("data",u),p=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function a(){c("onend"),e.end()}n.endEmitted?process.nextTick(o):s.once("end",o),e.on("unpipe",r);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(s);e.on("drain",l);var p=!1;function u(t){c("ondata");var i=e.write(t);c("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==$(n.pipes,e))&&!p&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),s.pause())}function d(t){c("onerror",t),m(),e.removeListener("error",d),0===i(e,"error")&&w(e,t)}function h(){e.removeListener("finish",f),m()}function f(){c("onfinish"),e.removeListener("close",h),m()}function m(){c("unpipe"),s.unpipe(e)}return s.on("data",u),function(e,t,s){if("function"==typeof e.prependListener)return e.prependListener(t,s);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(s):e._events[t]=[s,e._events[t]]:e.on(t,s)}(e,"error",d),e.once("close",h),e.once("finish",f),e.emit("pipe",s),n.flowing||(c("pipe resume"),s.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,s={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,s)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var r=$(t.pipes,e);return-1===r||(t.pipes.splice(r,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,s)),this},S.prototype.on=function(e,t){var s=o.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?R(this):n.reading||process.nextTick(N,this))),s},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var s=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(M,this),s},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(M,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(D,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,s=this._readableState,n=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),s.decoder&&!s.ended){var e=s.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),s.decoder&&(i=s.decoder.write(i)),s.objectMode&&null==i)||(s.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=s(4587)),u(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=q,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===d&&(d=s(531)),d(S,e,t)})},2057:(e,t,s)=>{"use strict";e.exports=p;var n=s(1743).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,r=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=s(7664);function l(e,t){var s=this._transformState;s.transforming=!1;var n=s.writecb;if(null===n)return this.emit("error",new o);s.writechunk=null,s.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function p(e){if(!(this instanceof p))return new p(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function u(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,s){d(e,t,s)}))}function d(e,t,s){if(t)return e.emit("error",t);if(null!=s&&e.push(s),e._writableState.length)throw new a;if(e._transformState.transforming)throw new r;return e.push(null)}s(2591)(p,c),p.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},p.prototype._transform=function(e,t,s){s(new i("_transform()"))},p.prototype._write=function(e,t,s){var n=this._transformState;if(n.writecb=s,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},p.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},p.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},3327:(e,t,s)=>{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,s){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(s),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=S,S.WritableState=k;var o={deprecate:s(9615)},r=s(5103),a=s(4300).Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,p=s(7866),u=s(7703).getHighWaterMark,d=s(1743).q,h=d.ERR_INVALID_ARG_TYPE,f=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,x=d.ERR_STREAM_WRITE_AFTER_END,y=d.ERR_UNKNOWN_ENCODING,w=p.errorOrDestroy;function _(){}function k(e,t,o){i=i||s(7664),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=u(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=!1===e.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var s=e._writableState,n=s.sync,i=s.writecb;if("function"!=typeof i)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(s),t)!function(e,t,s,n,i){--t.pendingcb,s?(process.nextTick(i,n),process.nextTick(j,e,t),e._writableState.errorEmitted=!0,w(e,n)):(i(n),e._writableState.errorEmitted=!0,w(e,n),j(e,t))}(e,s,n,t,i);else{var o=C(s)||e.destroyed;o||s.corked||s.bufferProcessing||!s.bufferedRequest||O(e,s),n?process.nextTick(T,e,s,o,i):T(e,s,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function S(e){var t=this instanceof(i=i||s(7664));if(!t&&!l.call(S,this))return new S(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function E(e,t,s,n,i,o,r){t.writelen=n,t.writecb=r,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):s?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,s,n){s||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var s=t.bufferedRequest;if(e._writev&&s&&s.next){var i=t.bufferedRequestCount,o=new Array(i),r=t.corkedRequestsFree;r.entry=s;for(var a=0,c=!0;s;)o[a]=s,s.isBuf||(c=!1),s=s.next,a+=1;o.allBuffers=c,E(e,t,!0,t.length,o,"",r.finish),t.pendingcb++,t.lastBufferedRequest=null,r.next?(t.corkedRequestsFree=r.next,r.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;s;){var l=s.chunk,p=s.encoding,u=s.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,p,u),s=s.next,t.bufferedRequestCount--,t.writing)break}null===s&&(t.lastBufferedRequest=null)}t.bufferedRequest=s,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final((function(s){t.pendingcb--,s&&w(e,s),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var s=C(t);if(s&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(R,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return s}s(2591)(S,r),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===S&&(e&&e._writableState instanceof k)}})):l=function(e){return e instanceof this},S.prototype.pipe=function(){w(this,new g)},S.prototype.write=function(e,t,s){var n,i=this._writableState,o=!1,r=!i.objectMode&&(n=e,a.isBuffer(n)||n instanceof c);return r&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(s=t,t=null),r?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof s&&(s=_),i.ending?function(e,t){var s=new x;w(e,s),process.nextTick(t,s)}(this,s):(r||function(e,t,s,n){var i;return null===s?i=new b:"string"==typeof s||t.objectMode||(i=new h("chunk",["string","Buffer"],s)),!i||(w(e,i),process.nextTick(n,i),!1)}(this,i,e,s))&&(i.pendingcb++,o=function(e,t,s,n,i,o){if(!s){var r=function(e,t,s){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,s));return t}(t,n,i);n!==r&&(s=!0,i="buffer",n=r)}var c=t.objectMode?1:n.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:s,callback:o,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,c,n,i,o);return l}(this,i,r,e,t,s)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,s){s(new f("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,s){var n=this._writableState;return"function"==typeof e?(s=e,e=null,t=null):"function"==typeof t&&(s=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,s){t.ending=!0,j(e,t),s&&(t.finished?process.nextTick(s):e.once("finish",s));t.ended=!0,e.writable=!1}(this,n,s),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)}},4587:(e,t,s)=>{"use strict";var n;function i(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var o=s(3495),r=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),p=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function f(e){var t=e[r];if(null!==t){var s=e[d].read();null!==s&&(e[p]=null,e[r]=null,e[a]=null,t(h(s,!1)))}}function m(e){process.nextTick(f,e)}var g=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(t,s){process.nextTick((function(){e[c]?s(e[c]):t(h(void 0,!0))}))}));var s,n=this[p];if(n)s=new Promise(function(e,t){return function(s,n){e.then((function(){t[l]?s(h(void 0,!0)):t[u](s,n)}),n)}}(n,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(h(i,!1));s=new Promise(this[u])}return this[p]=s,s}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,s){e[d].destroy(null,(function(e){e?s(e):t(h(void 0,!0))}))}))})),n),g);e.exports=function(e){var t,s=Object.create(v,(i(t={},d,{value:e,writable:!0}),i(t,r,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,u,{value:function(e,t){var n=s[d].read();n?(s[p]=null,s[r]=null,s[a]=null,e(h(n,!1))):(s[r]=e,s[a]=t)},writable:!0}),t));return s[p]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=s[a];return null!==t&&(s[p]=null,s[r]=null,s[a]=null,t(e)),void(s[c]=e)}var n=s[r];null!==n&&(s[p]=null,s[r]=null,s[a]=null,n(h(void 0,!0))),s[l]=!0})),e.on("readable",m.bind(null,s)),s}},3551:(e,t,s)=>{"use strict";function n(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function i(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?n(Object(s),!0).forEach((function(t){o(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function o(e,t,s){return(t=a(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var c=s(4300).Buffer,l=s(3837).inspect,p=l&&l.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,s,n;return t=e,(s=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,s=""+t.data;t=t.next;)s+=e+t.data;return s}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,s,n,i=c.allocUnsafe(e>>>0),o=this.head,r=0;o;)t=o.data,s=i,n=r,c.prototype.copy.call(t,s,n),r+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var s;return e<this.head.data.length?(s=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):s=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),s}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,s=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++s,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++s}return this.length-=s,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),s=this.head,n=1;for(s.data.copy(t),e-=s.data.length;s=s.next;){var i=s.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=i.slice(o));break}++n}return this.length-=n,t}},{key:p,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&r(t.prototype,s),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},7866:e=>{"use strict";function t(e,t){n(e,t),s(e)}function s(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,r=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return r||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(s,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(s,o),i(e)):process.nextTick(s,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var s=e._readableState,n=e._writableState;s&&s.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},3495:(e,t,s)=>{"use strict";var n=s(1743).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,s,o){if("function"==typeof s)return e(t,null,s);s||(s={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var s=arguments.length,n=new Array(s),i=0;i<s;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var r=s.readable||!1!==s.readable&&t.readable,a=s.writable||!1!==s.writable&&t.writable,c=function(){t.writable||p()},l=t._writableState&&t._writableState.finished,p=function(){a=!1,l=!0,r||o.call(t)},u=t._readableState&&t._readableState.endEmitted,d=function(){r=!1,u=!0,a||o.call(t)},h=function(e){o.call(t,e)},f=function(){var e;return r&&!u?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",p)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",p),t.on("abort",f),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",p),!1!==s.error&&t.on("error",h),t.on("close",f),function(){t.removeListener("complete",p),t.removeListener("abort",f),t.removeListener("request",m),t.req&&t.req.removeListener("finish",p),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",p),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",f)}}},531:(e,t,s)=>{"use strict";function n(e,t,s,n,i,o,r){try{var a=e[o](r),c=a.value}catch(e){return void s(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function o(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var r=s(1743).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,s){var a;if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new r("iterable",["Iterable"],t);a=t[Symbol.iterator]()}var c=new e(function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?i(Object(s),!0).forEach((function(t){o(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({objectMode:!0},s)),l=!1;function p(){return u.apply(this,arguments)}function u(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?c.push(null):c.push(yield t)?p():l=!1}catch(e){c.destroy(e)}},u=function(){var t=this,s=arguments;return new Promise((function(i,o){var r=e.apply(t,s);function a(e){n(r,i,o,a,c,"next",e)}function c(e){n(r,i,o,a,c,"throw",e)}a(void 0)}))},u.apply(this,arguments)}return c._read=function(){l||(l=!0,p())},c}},4805:(e,t,s)=>{"use strict";var n;var i=s(1743).q,o=i.ERR_MISSING_ARGS,r=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var p,u=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var d=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=s(3495)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);a=!0,o()}));var c=!1;return function(t){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new r("pipe"))}}(e,o,i>0,(function(e){p||(p=e),e&&d.forEach(c),o||(d.forEach(c),u(p))}))}));return t.reduce(l)}},7703:(e,t,s)=>{"use strict";var n=s(1743).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,s,i){var o=function(e,t,s){return null!=e.highWaterMark?e.highWaterMark:t?e[s]:null}(t,i,s);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?s:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},5103:(e,t,s)=>{e.exports=s(2781)},6928:(e,t,s)=>{var n=s(2781);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=s(5170)).Stream=n||t,t.Readable=t,t.Writable=s(3327),t.Duplex=s(7664),t.Transform=s(2057),t.PassThrough=s(3163),t.finished=s(3495),t.pipeline=s(4805))},7578:(e,t,s)=>{var n=s(4300),i=n.Buffer;function o(e,t){for(var s in e)t[s]=e[s]}function r(e,t,s){return i(e,t,s)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=r),r.prototype=Object.create(i.prototype),o(i,r),r.from=function(e,t,s){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,s)},r.alloc=function(e,t,s){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof s?n.fill(t,s):n.fill(t):n.fill(0),n},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},6948:(e,t)=>{"use strict";const{hasOwnProperty:s}=Object.prototype,n=d();n.configure=d,n.stringify=n,n.default=n,t.stringify=n,t.configure=d,e.exports=n;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(e){return e.length<5e3&&!i.test(e)?`"${e}"`:JSON.stringify(e)}function r(e,t){if(e.length>200||t)return e.sort(t);for(let t=1;t<e.length;t++){const s=e[t];let n=t;for(;0!==n&&e[n-1]>s;)e[n]=e[n-1],n--;e[n]=s}return e}const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(e){return void 0!==a.call(e)&&0!==e.length}function l(e,t,s){e.length<s&&(s=e.length);const n=","===t?"":" ";let i=`"0":${n}${e[0]}`;for(let o=1;o<s;o++)i+=`${t}"${o}":${n}${e[o]}`;return i}function p(e,t){let n;if(s.call(e,t)){if(n=e[t],"number"!=typeof n)throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${t}" argument must be an integer`);if(n<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return void 0===n?1/0:n}function u(e){return 1===e?"1 item":`${e} items`}function d(e){const t=function(e){if(s.call(e,"strict")){const t=e.strict;if("boolean"!=typeof t)throw new TypeError('The "strict" argument must be of type boolean');if(t)return e=>{let t="Object can not safely be stringified. Received type "+typeof e;throw"function"!=typeof e&&(t+=` (${e.toString()})`),new Error(t)}}}(e={...e});t&&(void 0===e.bigint&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));const n=function(e){if(s.call(e,"circularValue")){const t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),i=function(e,t){let n;if(s.call(e,t)&&(n=e[t],"boolean"!=typeof n))throw new TypeError(`The "${t}" argument must be of type boolean`);return void 0===n||n}(e,"bigint"),a=function(e){let t;if(s.call(e,"deterministic")&&(t=e.deterministic,"boolean"!=typeof t&&"function"!=typeof t))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return void 0===t||t}(e),d="function"==typeof a?a:void 0,h=p(e,"maximumDepth"),f=p(e,"maximumBreadth");function m(e,s,l,p,g,v){let b=s[e];switch("object"==typeof b&&null!==b&&"function"==typeof b.toJSON&&(b=b.toJSON(e)),b=p.call(s,e,b),typeof b){case"string":return o(b);case"object":{if(null===b)return"null";if(-1!==l.indexOf(b))return n;let e="",t=",";const s=v;if(Array.isArray(b)){if(0===b.length)return"[]";if(h<l.length+1)return'"[Array]"';l.push(b),""!==g&&(e+=`\n${v+=g}`,t=`,\n${v}`);const n=Math.min(b.length,f);let i=0;for(;i<n-1;i++){const s=m(String(i),b,l,p,g,v);e+=void 0!==s?s:"null",e+=t}const o=m(String(i),b,l,p,g,v);if(e+=void 0!==o?o:"null",b.length-1>f){e+=`${t}"... ${u(b.length-f-1)} not stringified"`}return""!==g&&(e+=`\n${s}`),l.pop(),`[${e}]`}let i=Object.keys(b);const x=i.length;if(0===x)return"{}";if(h<l.length+1)return'"[Object]"';let y="",w="";""!==g&&(t=`,\n${v+=g}`,y=" ");const _=Math.min(x,f);a&&!c(b)&&(i=r(i,d)),l.push(b);for(let s=0;s<_;s++){const n=i[s],r=m(n,b,l,p,g,v);void 0!==r&&(e+=`${w}${o(n)}:${y}${r}`,w=t)}if(x>f){e+=`${w}"...":${y}"${u(x-f)} not stringified"`,w=t}return""!==g&&w.length>1&&(e=`\n${v}${e}\n${s}`),l.pop(),`{${e}}`}case"number":return isFinite(b)?String(b):t?t(b):"null";case"boolean":return!0===b?"true":"false";case"undefined":return;case"bigint":if(i)return String(b);default:return t?t(b):void 0}}function g(e,s,r,a,c,l){switch("object"==typeof s&&null!==s&&"function"==typeof s.toJSON&&(s=s.toJSON(e)),typeof s){case"string":return o(s);case"object":{if(null===s)return"null";if(-1!==r.indexOf(s))return n;const e=l;let t="",i=",";if(Array.isArray(s)){if(0===s.length)return"[]";if(h<r.length+1)return'"[Array]"';r.push(s),""!==c&&(t+=`\n${l+=c}`,i=`,\n${l}`);const n=Math.min(s.length,f);let o=0;for(;o<n-1;o++){const e=g(String(o),s[o],r,a,c,l);t+=void 0!==e?e:"null",t+=i}const p=g(String(o),s[o],r,a,c,l);if(t+=void 0!==p?p:"null",s.length-1>f){t+=`${i}"... ${u(s.length-f-1)} not stringified"`}return""!==c&&(t+=`\n${e}`),r.pop(),`[${t}]`}r.push(s);let p="";""!==c&&(i=`,\n${l+=c}`,p=" ");let d="";for(const e of a){const n=g(e,s[e],r,a,c,l);void 0!==n&&(t+=`${d}${o(e)}:${p}${n}`,d=i)}return""!==c&&d.length>1&&(t=`\n${l}${t}\n${e}`),r.pop(),`{${t}}`}case"number":return isFinite(s)?String(s):t?t(s):"null";case"boolean":return!0===s?"true":"false";case"undefined":return;case"bigint":if(i)return String(s);default:return t?t(s):void 0}}function v(e,s,p,m,g){switch(typeof s){case"string":return o(s);case"object":{if(null===s)return"null";if("function"==typeof s.toJSON){if("object"!=typeof(s=s.toJSON(e)))return v(e,s,p,m,g);if(null===s)return"null"}if(-1!==p.indexOf(s))return n;const t=g;if(Array.isArray(s)){if(0===s.length)return"[]";if(h<p.length+1)return'"[Array]"';p.push(s);let e=`\n${g+=m}`;const n=`,\n${g}`,i=Math.min(s.length,f);let o=0;for(;o<i-1;o++){const t=v(String(o),s[o],p,m,g);e+=void 0!==t?t:"null",e+=n}const r=v(String(o),s[o],p,m,g);if(e+=void 0!==r?r:"null",s.length-1>f){e+=`${n}"... ${u(s.length-f-1)} not stringified"`}return e+=`\n${t}`,p.pop(),`[${e}]`}let i=Object.keys(s);const b=i.length;if(0===b)return"{}";if(h<p.length+1)return'"[Object]"';const x=`,\n${g+=m}`;let y="",w="",_=Math.min(b,f);c(s)&&(y+=l(s,x,f),i=i.slice(s.length),_-=s.length,w=x),a&&(i=r(i,d)),p.push(s);for(let e=0;e<_;e++){const t=i[e],n=v(t,s[t],p,m,g);void 0!==n&&(y+=`${w}${o(t)}: ${n}`,w=x)}if(b>f){y+=`${w}"...": "${u(b-f)} not stringified"`,w=x}return""!==w&&(y=`\n${g}${y}\n${t}`),p.pop(),`{${y}}`}case"number":return isFinite(s)?String(s):t?t(s):"null";case"boolean":return!0===s?"true":"false";case"undefined":return;case"bigint":if(i)return String(s);default:return t?t(s):void 0}}function b(e,s,p){switch(typeof s){case"string":return o(s);case"object":{if(null===s)return"null";if("function"==typeof s.toJSON){if("object"!=typeof(s=s.toJSON(e)))return b(e,s,p);if(null===s)return"null"}if(-1!==p.indexOf(s))return n;let t="";const i=void 0!==s.length;if(i&&Array.isArray(s)){if(0===s.length)return"[]";if(h<p.length+1)return'"[Array]"';p.push(s);const e=Math.min(s.length,f);let n=0;for(;n<e-1;n++){const e=b(String(n),s[n],p);t+=void 0!==e?e:"null",t+=","}const i=b(String(n),s[n],p);if(t+=void 0!==i?i:"null",s.length-1>f){t+=`,"... ${u(s.length-f-1)} not stringified"`}return p.pop(),`[${t}]`}let m=Object.keys(s);const g=m.length;if(0===g)return"{}";if(h<p.length+1)return'"[Object]"';let v="",x=Math.min(g,f);i&&c(s)&&(t+=l(s,",",f),m=m.slice(s.length),x-=s.length,v=","),a&&(m=r(m,d)),p.push(s);for(let e=0;e<x;e++){const n=m[e],i=b(n,s[n],p);void 0!==i&&(t+=`${v}${o(n)}:${i}`,v=",")}if(g>f){t+=`${v}"...":"${u(g-f)} not stringified"`}return p.pop(),`{${t}}`}case"number":return isFinite(s)?String(s):t?t(s):"null";case"boolean":return!0===s?"true":"false";case"undefined":return;case"bigint":if(i)return String(s);default:return t?t(s):void 0}}return function(e,t,s){if(arguments.length>1){let n="";if("number"==typeof s?n=" ".repeat(Math.min(s,10)):"string"==typeof s&&(n=s.slice(0,10)),null!=t){if("function"==typeof t)return m("",{"":e},[],t,n,"");if(Array.isArray(t))return g("",e,[],function(e){const t=new Set;for(const s of e)"string"!=typeof s&&"number"!=typeof s||t.add(String(s));return t}(t),n,"")}if(0!==n.length)return v("",e,[],n,"")}return b("",e,[])}}},3498:function(e,t,s){"use strict";var n=this&&this.__rest||function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(s[n[i]]=e[n[i]])}return s};Object.defineProperty(t,"__esModule",{value:!0}),t.ClusterAdapterWithHeartbeat=t.ClusterAdapter=t.MessageType=void 0;const i=s(8912),o=s(9229),r=s(6113),a=(0,o.debug)("socket.io-adapter"),c=5e3;function l(){return(0,r.randomBytes)(8).toString("hex")}var p;function u(e){return{rooms:[...e.rooms],except:[...e.except],flags:e.flags}}function d(e){return{rooms:new Set(e.rooms),except:new Set(e.except),flags:e.flags}}!function(e){e[e.INITIAL_HEARTBEAT=1]="INITIAL_HEARTBEAT",e[e.HEARTBEAT=2]="HEARTBEAT",e[e.BROADCAST=3]="BROADCAST",e[e.SOCKETS_JOIN=4]="SOCKETS_JOIN",e[e.SOCKETS_LEAVE=5]="SOCKETS_LEAVE",e[e.DISCONNECT_SOCKETS=6]="DISCONNECT_SOCKETS",e[e.FETCH_SOCKETS=7]="FETCH_SOCKETS",e[e.FETCH_SOCKETS_RESPONSE=8]="FETCH_SOCKETS_RESPONSE",e[e.SERVER_SIDE_EMIT=9]="SERVER_SIDE_EMIT",e[e.SERVER_SIDE_EMIT_RESPONSE=10]="SERVER_SIDE_EMIT_RESPONSE",e[e.BROADCAST_CLIENT_COUNT=11]="BROADCAST_CLIENT_COUNT",e[e.BROADCAST_ACK=12]="BROADCAST_ACK",e[e.ADAPTER_CLOSE=13]="ADAPTER_CLOSE"}(p=t.MessageType||(t.MessageType={}));class h extends i.Adapter{constructor(e){super(e),this.requests=new Map,this.ackRequests=new Map,this.uid=l()}onMessage(e,t){if(e.uid===this.uid)return a("[%s] ignore message from self",this.uid);switch(a("[%s] new event of type %d from %s",this.uid,e.type,e.uid),e.type){case p.BROADCAST:if(void 0!==e.data.requestId)super.broadcastWithAck(e.data.packet,d(e.data.opts),(t=>{a("[%s] waiting for %d client acknowledgements",this.uid,t),this.publishResponse(e.uid,{type:p.BROADCAST_CLIENT_COUNT,data:{requestId:e.data.requestId,clientCount:t}})}),(t=>{a("[%s] received acknowledgement with value %j",this.uid,t),this.publishResponse(e.uid,{type:p.BROADCAST_ACK,data:{requestId:e.data.requestId,packet:t}})}));else{const s=e.data.packet,n=d(e.data.opts);this.addOffsetIfNecessary(s,n,t),super.broadcast(s,n)}break;case p.SOCKETS_JOIN:super.addSockets(d(e.data.opts),e.data.rooms);break;case p.SOCKETS_LEAVE:super.delSockets(d(e.data.opts),e.data.rooms);break;case p.DISCONNECT_SOCKETS:super.disconnectSockets(d(e.data.opts),e.data.close);break;case p.FETCH_SOCKETS:a("[%s] calling fetchSockets with opts %j",this.uid,e.data.opts),super.fetchSockets(d(e.data.opts)).then((t=>{this.publishResponse(e.uid,{type:p.FETCH_SOCKETS_RESPONSE,data:{requestId:e.data.requestId,sockets:t.map((e=>{const t=e.handshake,{sessionStore:s}=t,i=n(t,["sessionStore"]);return{id:e.id,handshake:i,rooms:[...e.rooms],data:e.data}}))}})}));break;case p.SERVER_SIDE_EMIT:{const t=e.data.packet;if(!(void 0!==e.data.requestId))return void this.nsp._onServerSideEmit(t);let s=!1;const n=t=>{s||(s=!0,a("[%s] calling acknowledgement with %j",this.uid,t),this.publishResponse(e.uid,{type:p.SERVER_SIDE_EMIT_RESPONSE,data:{requestId:e.data.requestId,packet:t}}))};this.nsp._onServerSideEmit([...t,n]);break}case p.BROADCAST_CLIENT_COUNT:case p.BROADCAST_ACK:case p.FETCH_SOCKETS_RESPONSE:case p.SERVER_SIDE_EMIT_RESPONSE:this.onResponse(e);break;default:a("[%s] unknown message type: %s",this.uid,e.type)}}onResponse(e){var t,s;const n=e.data.requestId;switch(a("[%s] received response %s to request %s",this.uid,e.type,n),e.type){case p.BROADCAST_CLIENT_COUNT:null===(t=this.ackRequests.get(n))||void 0===t||t.clientCountCallback(e.data.clientCount);break;case p.BROADCAST_ACK:null===(s=this.ackRequests.get(n))||void 0===s||s.ack(e.data.packet);break;case p.FETCH_SOCKETS_RESPONSE:{const t=this.requests.get(n);if(!t)return;t.current++,e.data.sockets.forEach((e=>t.responses.push(e))),t.current===t.expected&&(clearTimeout(t.timeout),t.resolve(t.responses),this.requests.delete(n));break}case p.SERVER_SIDE_EMIT_RESPONSE:{const t=this.requests.get(n);if(!t)return;t.current++,t.responses.push(e.data.packet),t.current===t.expected&&(clearTimeout(t.timeout),t.resolve(null,t.responses),this.requests.delete(n));break}default:a("[%s] unknown response type: %s",this.uid,e.type)}}async broadcast(e,t){var s;if(!(null===(s=t.flags)||void 0===s?void 0:s.local))try{const s=await this.publishAndReturnOffset({type:p.BROADCAST,data:{packet:e,opts:u(t)}});this.addOffsetIfNecessary(e,t,s)}catch(e){return a("[%s] error while broadcasting message: %s",this.uid,e.message)}super.broadcast(e,t)}addOffsetIfNecessary(e,t,s){var n;if(!this.nsp.server.opts.connectionStateRecovery)return;const i=2===e.type,o=void 0===e.id,r=void 0===(null===(n=t.flags)||void 0===n?void 0:n.volatile);i&&o&&r&&e.data.push(s)}broadcastWithAck(e,t,s,n){var i;if(!(null===(i=null==t?void 0:t.flags)||void 0===i?void 0:i.local)){const i=l();this.ackRequests.set(i,{clientCountCallback:s,ack:n}),this.publish({type:p.BROADCAST,data:{packet:e,requestId:i,opts:u(t)}}),setTimeout((()=>{this.ackRequests.delete(i)}),t.flags.timeout)}super.broadcastWithAck(e,t,s,n)}async addSockets(e,t){var s;if(!(null===(s=e.flags)||void 0===s?void 0:s.local))try{await this.publishAndReturnOffset({type:p.SOCKETS_JOIN,data:{opts:u(e),rooms:t}})}catch(e){a("[%s] error while publishing message: %s",this.uid,e.message)}super.addSockets(e,t)}async delSockets(e,t){var s;if(!(null===(s=e.flags)||void 0===s?void 0:s.local))try{await this.publishAndReturnOffset({type:p.SOCKETS_LEAVE,data:{opts:u(e),rooms:t}})}catch(e){a("[%s] error while publishing message: %s",this.uid,e.message)}super.delSockets(e,t)}async disconnectSockets(e,t){var s;if(!(null===(s=e.flags)||void 0===s?void 0:s.local))try{await this.publishAndReturnOffset({type:p.DISCONNECT_SOCKETS,data:{opts:u(e),close:t}})}catch(e){a("[%s] error while publishing message: %s",this.uid,e.message)}super.disconnectSockets(e,t)}async fetchSockets(e){var t;const[s,n]=await Promise.all([super.fetchSockets(e),this.serverCount()]),i=n-1;if((null===(t=e.flags)||void 0===t?void 0:t.local)||i<=0)return s;const o=l();return new Promise(((t,n)=>{const r=setTimeout((()=>{const e=this.requests.get(o);e&&(n(new Error(`timeout reached: only ${e.current} responses received out of ${e.expected}`)),this.requests.delete(o))}),e.flags.timeout||c),a={type:p.FETCH_SOCKETS,resolve:t,timeout:r,current:0,expected:i,responses:s};this.requests.set(o,a),this.publish({type:p.FETCH_SOCKETS,data:{opts:u(e),requestId:o}})}))}async serverSideEmit(e){if(!("function"==typeof e[e.length-1]))return this.publish({type:p.SERVER_SIDE_EMIT,data:{packet:e}});const t=e.pop(),s=await this.serverCount()-1;if(a('[%s] waiting for %d responses to "serverSideEmit" request',this.uid,s),s<=0)return t(null,[]);const n=l(),i=setTimeout((()=>{const e=this.requests.get(n);e&&(t(new Error(`timeout reached: only ${e.current} responses received out of ${e.expected}`),e.responses),this.requests.delete(n))}),c),o={type:p.SERVER_SIDE_EMIT,resolve:t,timeout:i,current:0,expected:s,responses:[]};this.requests.set(n,o),this.publish({type:p.SERVER_SIDE_EMIT,data:{requestId:n,packet:e}})}publish(e){this.publishAndReturnOffset(e).catch((e=>{a("[%s] error while publishing message: %s",this.uid,e)}))}publishAndReturnOffset(e){return e.uid=this.uid,e.nsp=this.nsp.name,this.doPublish(e)}publishResponse(e,t){t.uid=this.uid,t.nsp=this.nsp.name,this.doPublishResponse(e,t).catch((e=>{a("[%s] error while publishing response: %s",this.uid,e)}))}}t.ClusterAdapter=h;t.ClusterAdapterWithHeartbeat=class extends h{constructor(e,t){super(e),this.nodesMap=new Map,this.customRequests=new Map,this._opts=Object.assign({heartbeatInterval:5e3,heartbeatTimeout:1e4},t),this.cleanupTimer=setInterval((()=>{const e=Date.now();this.nodesMap.forEach(((t,s)=>{e-t>this._opts.heartbeatTimeout&&(a("[%s] node %s seems down",this.uid,s),this.removeNode(s))}))}),1e3)}init(){this.publish({type:p.INITIAL_HEARTBEAT})}scheduleHeartbeat(){this.heartbeatTimer?this.heartbeatTimer.refresh():this.heartbeatTimer=setTimeout((()=>{this.publish({type:p.HEARTBEAT})}),this._opts.heartbeatInterval)}close(){this.publish({type:p.ADAPTER_CLOSE}),clearTimeout(this.heartbeatTimer),this.cleanupTimer&&clearInterval(this.cleanupTimer)}onMessage(e,t){if(e.uid===this.uid)return a("[%s] ignore message from self",this.uid);switch(e.uid&&"emitter"!==e.uid&&this.nodesMap.set(e.uid,Date.now()),a("[%s] new event of type %d from %s",this.uid,e.type,e.uid),e.type){case p.INITIAL_HEARTBEAT:this.publish({type:p.HEARTBEAT});break;case p.HEARTBEAT:break;case p.ADAPTER_CLOSE:this.removeNode(e.uid);break;default:super.onMessage(e,t)}}serverCount(){return Promise.resolve(1+this.nodesMap.size)}publish(e){return this.scheduleHeartbeat(),super.publish(e)}async serverSideEmit(e){if(!("function"==typeof e[e.length-1]))return this.publish({type:p.SERVER_SIDE_EMIT,data:{packet:e}});const t=e.pop(),s=this.nodesMap.size;if(a('[%s] waiting for %d responses to "serverSideEmit" request',this.uid,s),s<=0)return t(null,[]);const n=l(),i=setTimeout((()=>{const e=this.customRequests.get(n);e&&(t(new Error(`timeout reached: missing ${e.missingUids.size} responses`),e.responses),this.customRequests.delete(n))}),c),o={type:p.SERVER_SIDE_EMIT,resolve:t,timeout:i,missingUids:new Set([...this.nodesMap.keys()]),responses:[]};this.customRequests.set(n,o),this.publish({type:p.SERVER_SIDE_EMIT,data:{requestId:n,packet:e}})}async fetchSockets(e){var t;const[s,n]=await Promise.all([super.fetchSockets({rooms:e.rooms,except:e.except,flags:{local:!0}}),this.serverCount()]),i=n-1;if((null===(t=e.flags)||void 0===t?void 0:t.local)||i<=0)return s;const o=l();return new Promise(((t,n)=>{const i=setTimeout((()=>{const e=this.customRequests.get(o);e&&(n(new Error(`timeout reached: missing ${e.missingUids.size} responses`)),this.customRequests.delete(o))}),e.flags.timeout||c),r={type:p.FETCH_SOCKETS,resolve:t,timeout:i,missingUids:new Set([...this.nodesMap.keys()]),responses:s};this.customRequests.set(o,r),this.publish({type:p.FETCH_SOCKETS,data:{opts:u(e),requestId:o}})}))}onResponse(e){const t=e.data.requestId;switch(a("[%s] received response %s to request %s",this.uid,e.type,t),e.type){case p.FETCH_SOCKETS_RESPONSE:{const s=this.customRequests.get(t);if(!s)return;e.data.sockets.forEach((e=>s.responses.push(e))),s.missingUids.delete(e.uid),0===s.missingUids.size&&(clearTimeout(s.timeout),s.resolve(s.responses),this.customRequests.delete(t));break}case p.SERVER_SIDE_EMIT_RESPONSE:{const s=this.customRequests.get(t);if(!s)return;s.responses.push(e.data.packet),s.missingUids.delete(e.uid),0===s.missingUids.size&&(clearTimeout(s.timeout),s.resolve(null,s.responses),this.customRequests.delete(t));break}default:super.onResponse(e)}}removeNode(e){this.customRequests.forEach(((t,s)=>{t.missingUids.delete(e),0===t.missingUids.size&&(clearTimeout(t.timeout),t.type===p.FETCH_SOCKETS?t.resolve(t.responses):t.type===p.SERVER_SIDE_EMIT&&t.resolve(null,t.responses),this.customRequests.delete(s))})),this.nodesMap.delete(e)}}},5815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let i,o=0,r=0;function a(e){let t="";do{t=s[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}for(t.encode=a,t.decode=function(e){let t=0;for(r=0;r<e.length;r++)t=64*t+n[e.charAt(r)];return t},t.yeast=function(){const e=a(+new Date);return e!==i?(o=0,i=e):e+"."+a(o++)};r<64;r++)n[s[r]]=r},8912:(e,t,s)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SessionAwareAdapter=t.Adapter=void 0;const i=s(2361),o=s(5815),r=s(5940),a="function"==typeof(null===(n=null==r?void 0:r.Sender)||void 0===n?void 0:n.frame);class c extends i.EventEmitter{constructor(e){super(),this.nsp=e,this.rooms=new Map,this.sids=new Map,this.encoder=e.server.encoder}init(){}close(){}serverCount(){return Promise.resolve(1)}addAll(e,t){this.sids.has(e)||this.sids.set(e,new Set);for(const s of t)this.sids.get(e).add(s),this.rooms.has(s)||(this.rooms.set(s,new Set),this.emit("create-room",s)),this.rooms.get(s).has(e)||(this.rooms.get(s).add(e),this.emit("join-room",s,e))}del(e,t){this.sids.has(e)&&this.sids.get(e).delete(t),this._del(t,e)}_del(e,t){const s=this.rooms.get(e);if(null!=s){s.delete(t)&&this.emit("leave-room",e,t),0===s.size&&this.rooms.delete(e)&&this.emit("delete-room",e)}}delAll(e){if(this.sids.has(e)){for(const t of this.sids.get(e))this._del(t,e);this.sids.delete(e)}}broadcast(e,t){const s=t.flags||{},n={preEncoded:!0,volatile:s.volatile,compress:s.compress};e.nsp=this.nsp.name;const i=this._encode(e,n);this.apply(t,(t=>{"function"==typeof t.notifyOutgoingListeners&&t.notifyOutgoingListeners(e),t.client.writeToEngine(i,n)}))}broadcastWithAck(e,t,s,n){const i=t.flags||{},o={preEncoded:!0,volatile:i.volatile,compress:i.compress};e.nsp=this.nsp.name,e.id=this.nsp._ids++;const r=this._encode(e,o);let a=0;this.apply(t,(t=>{a++,t.acks.set(e.id,n),"function"==typeof t.notifyOutgoingListeners&&t.notifyOutgoingListeners(e),t.client.writeToEngine(r,o)})),s(a)}_encode(e,t){const s=this.encoder.encode(e);if(a&&1===s.length&&"string"==typeof s[0]){const e=Buffer.from("4"+s[0]);t.wsPreEncodedFrame=r.Sender.frame(e,{readOnly:!1,mask:!1,rsv1:!1,opcode:1,fin:!0})}return s}sockets(e){const t=new Set;return this.apply({rooms:e},(e=>{t.add(e.id)})),Promise.resolve(t)}socketRooms(e){return this.sids.get(e)}fetchSockets(e){const t=[];return this.apply(e,(e=>{t.push(e)})),Promise.resolve(t)}addSockets(e,t){this.apply(e,(e=>{e.join(t)}))}delSockets(e,t){this.apply(e,(e=>{t.forEach((t=>e.leave(t)))}))}disconnectSockets(e,t){this.apply(e,(e=>{e.disconnect(t)}))}apply(e,t){const s=e.rooms,n=this.computeExceptSids(e.except);if(s.size){const e=new Set;for(const i of s)if(this.rooms.has(i))for(const s of this.rooms.get(i)){if(e.has(s)||n.has(s))continue;const i=this.nsp.sockets.get(s);i&&(t(i),e.add(s))}}else for(const[e]of this.sids){if(n.has(e))continue;const s=this.nsp.sockets.get(e);s&&t(s)}}computeExceptSids(e){const t=new Set;if(e&&e.size>0)for(const s of e)this.rooms.has(s)&&this.rooms.get(s).forEach((e=>t.add(e)));return t}serverSideEmit(e){console.warn("this adapter does not support the serverSideEmit() functionality")}persistSession(e){}restoreSession(e,t){return null}}t.Adapter=c;function l(e,t){const s=0===t.rooms.size||e.some((e=>t.rooms.has(e))),n=e.every((e=>!t.except.has(e)));return s&&n}t.SessionAwareAdapter=class extends c{constructor(e){super(e),this.nsp=e,this.sessions=new Map,this.packets=[],this.maxDisconnectionDuration=e.server.opts.connectionStateRecovery.maxDisconnectionDuration;setInterval((()=>{const e=Date.now()-this.maxDisconnectionDuration;this.sessions.forEach(((t,s)=>{t.disconnectedAt<e&&this.sessions.delete(s)}));for(let t=this.packets.length-1;t>=0;t--){if(this.packets[t].emittedAt<e){this.packets.splice(0,t+1);break}}}),6e4).unref()}persistSession(e){e.disconnectedAt=Date.now(),this.sessions.set(e.pid,e)}restoreSession(e,t){const s=this.sessions.get(e);if(!s)return null;if(s.disconnectedAt+this.maxDisconnectionDuration<Date.now())return this.sessions.delete(e),null;const n=this.packets.findIndex((e=>e.id===t));if(-1===n)return null;const i=[];for(let e=n+1;e<this.packets.length;e++){const t=this.packets[e];l(s.rooms,t.opts)&&i.push(t.data)}return Promise.resolve(Object.assign(Object.assign({},s),{missedPackets:i}))}broadcast(e,t){var s;const n=2===e.type,i=void 0===e.id,r=void 0===(null===(s=t.flags)||void 0===s?void 0:s.volatile);if(n&&i&&r){const s=(0,o.yeast)();e.data.push(s),this.packets.push({id:s,opts:t,data:e.data,emittedAt:Date.now()})}super.broadcast(e,t)}}},9098:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageType=t.ClusterAdapterWithHeartbeat=t.ClusterAdapter=t.SessionAwareAdapter=t.Adapter=void 0;var n=s(8912);Object.defineProperty(t,"Adapter",{enumerable:!0,get:function(){return n.Adapter}}),Object.defineProperty(t,"SessionAwareAdapter",{enumerable:!0,get:function(){return n.SessionAwareAdapter}});var i=s(3498);Object.defineProperty(t,"ClusterAdapter",{enumerable:!0,get:function(){return i.ClusterAdapter}}),Object.defineProperty(t,"ClusterAdapterWithHeartbeat",{enumerable:!0,get:function(){return i.ClusterAdapterWithHeartbeat}}),Object.defineProperty(t,"MessageType",{enumerable:!0,get:function(){return i.MessageType}})},8784:(e,t)=>{function s(e){for(var t in e)this[t]=e[t]}t.get=function(e){var s=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.captureStackTrace(n,e||t.get);var o=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=s,o},t.parse=function(e){if(!e.stack)return[];var t=this;return e.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var s=e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(s){var n=null,i=null,o=null,r=null,a=null,c="native"===s[5];if(s[1]){var l=(o=s[1]).lastIndexOf(".");if("."==o[l-1]&&l--,l>0){n=o.substr(0,l),i=o.substr(l+1);var p=n.indexOf(".Module");p>0&&(o=o.substr(p+1),n=n.substr(0,p))}r=null}i&&(r=n,a=i),"<anonymous>"===i&&(a=null,o=null);var u={fileName:s[2]||null,lineNumber:parseInt(s[3],10)||null,functionName:o,typeName:r,methodName:a,columnNumber:parseInt(s[4],10)||null,native:c};return t._createParsedCallSite(u)}})).filter((function(e){return!!e}))};["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach((function(e){s.prototype[e]=null,s.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),["topLevel","eval","native","constructor"].forEach((function(e){s.prototype[e]=!1,s.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),t._createParsedCallSite=function(e){return new s(e)}},2682:(e,t,s)=>{"use strict";var n=s(7578).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=p,this.end=u,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function r(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,s=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==s?s:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var s=e.toString("utf16le",t);if(s){var n=s.charCodeAt(s.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,s)}return t}function p(e,t){var s=(e.length-t)%3;return 0===s?e.toString("base64",t):(this.lastNeed=3-s,this.lastTotal=3,1===s?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-s))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,s;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<e.length?t?t+this.text(e,s):this.text(e,s):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var s=function(e,t,s){var n=t.length-1;if(n<s)return 0;var i=r(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<s||-2===i)return 0;if(i=r(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<s||-2===i)return 0;if(i=r(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=s;var n=e.length-(s-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},7318:(e,t,s)=>{"use strict";const n=s(2037),i=s(602),o=process.env;let r;function a(e){const t=function(e){if(!1===r)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==r)return 0;const t=r?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?r=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(r=!0),"FORCE_COLOR"in o&&(r=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},71:(e,t)=>{"use strict";t.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},t.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}},5831:(e,t,s)=>{"use strict";Object.defineProperty(t,"cli",{value:s(71)}),Object.defineProperty(t,"npm",{value:s(451)}),Object.defineProperty(t,"syslog",{value:s(9365)})},451:(e,t)=>{"use strict";t.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},t.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}},9365:(e,t)=>{"use strict";t.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},t.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}},8029:(e,t,s)=>{"use strict";Object.defineProperty(t,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(t,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(t,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(t,"configs",{value:s(5831)})},9615:(e,t,s)=>{e.exports=s(3837).deprecate},9548:e=>{"use strict";e.exports=function(e,t){if(!e||!e.getHeader||!e.setHeader)throw new TypeError("res argument is required");var n=e.getHeader("Vary")||"",i=Array.isArray(n)?n.join(", "):String(n);(n=s(i,t))&&e.setHeader("Vary",n)},e.exports.append=s;var t=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function s(e,s){if("string"!=typeof e)throw new TypeError("header argument is required");if(!s)throw new TypeError("field argument is required");for(var i=Array.isArray(s)?s:n(String(s)),o=0;o<i.length;o++)if(!t.test(i[o]))throw new TypeError("field argument contains an invalid header name");if("*"===e)return e;var r=e,a=n(e.toLowerCase());if(-1!==i.indexOf("*")||-1!==a.indexOf("*"))return"*";for(var c=0;c<i.length;c++){var l=i[c].toLowerCase();-1===a.indexOf(l)&&(a.push(l),r=r?r+", "+i[c]:i[c])}return r}function n(e){for(var t=0,s=[],n=0,i=0,o=e.length;i<o;i++)switch(e.charCodeAt(i)){case 32:n===t&&(n=t=i+1);break;case 44:s.push(e.substring(n,t)),n=t=i+1;break;default:t=i+1}return s.push(e.substring(n,t)),s}},3565:(e,t,s)=>{"use strict";e.exports=s(7426),e.exports.LegacyTransportStream=s(9804)},9804:(e,t,s)=>{"use strict";const n=s(3837),{LEVEL:i}=s(8029),o=s(7426),r=e.exports=function(e={}){if(o.call(this,e),!e.transport||"function"!=typeof e.transport.log)throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(e){this.emit("error",e,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(r,o),r.prototype._write=function(e,t,s){if(this.silent||!0===e.exception&&!this.handleExceptions)return s(null);(!this.level||this.levels[this.level]>=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),s(null)},r.prototype._writev=function(e,t){for(let t=0;t<e.length;t++)this._accept(e[t])&&(this.transport.log(e[t].chunk[i],e[t].chunk.message,e[t].chunk,this._nop),e[t].callback());return t(null)},r.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join("\n"))},r.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},7426:(e,t,s)=>{"use strict";const n=s(3837),i=s(3327),{LEVEL:o}=s(8029),r=e.exports=function(e={}){i.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",(e=>{this.levels=e.levels,this.parent=e})),this.once("unpipe",(e=>{e===this.parent&&(this.parent=null,this.close&&this.close())}))};n.inherits(r,i),r.prototype._write=function(e,t,s){if(this.silent||!0===e.exception&&!this.handleExceptions)return s(null);const n=this.level||this.parent&&this.parent.level;if(!n||this.levels[n]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,s);let t,n;try{n=this.format.transform(Object.assign({},e),this.format.options)}catch(e){t=e}if(t||!n){if(s(),t)throw t;return}return this.log(n,s)}return this._writableState.sync=!1,s(null)},r.prototype._writev=function(e,t){if(this.logv){const s=e.filter(this._accept,this);return s.length?this.logv(s,t):t(null)}for(let s=0;s<e.length;s++){if(!this._accept(e[s]))continue;if(e[s].chunk&&!this.format){this.log(e[s].chunk,e[s].callback);continue}let n,i;try{i=this.format.transform(Object.assign({},e[s].chunk),this.format.options)}catch(e){n=e}if(n||!i){if(e[s].callback(),n)throw t(null),n}else this.log(i,e[s].callback)}return t(null)},r.prototype._accept=function(e){const t=e.chunk;if(this.silent)return!1;const s=this.level||this.parent&&this.parent.level;return!(!0!==t.exception&&s&&!(this.levels[s]>=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},r.prototype._nop=function(){}},5222:(e,t,s)=>{"use strict";const n=s(3886),{warn:i}=s(9034);t.version=s(1298).version,t.transports=s(3141),t.config=s(9691),t.addColors=n.levels,t.format=n.format,t.createLogger=s(7812),t.Logger=s(2738),t.ExceptionHandler=s(3708),t.RejectionHandler=s(6940),t.Container=s(5829),t.Transport=s(3565),t.loggers=new t.Container;const o=t.createLogger();Object.keys(t.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach((e=>t[e]=(...t)=>o[e](...t))),Object.defineProperty(t,"level",{get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(t,"exceptions",{get:()=>o.exceptions}),Object.defineProperty(t,"rejections",{get:()=>o.rejections}),["exitOnError"].forEach((e=>{Object.defineProperty(t,e,{get:()=>o[e],set(t){o[e]=t}})})),Object.defineProperty(t,"default",{get:()=>({exceptionHandlers:o.exceptionHandlers,rejectionHandlers:o.rejectionHandlers,transports:o.transports})}),i.deprecated(t,"setLevels"),i.forFunctions(t,"useFormat",["cli"]),i.forProperties(t,"useFormat",["padLevels","stripColors"]),i.forFunctions(t,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(t,"deprecated",["emitErrs","levelLength"])},9034:(e,t,s)=>{"use strict";const{format:n}=s(3837);t.warn={deprecated:e=>()=>{throw new Error(n("{ %s } was removed in winston@3.0.0.",e))},useFormat:e=>()=>{throw new Error([n("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join("\n"))},forFunctions(e,s,n){n.forEach((n=>{e[n]=t.warn[s](n)}))},forProperties(e,s,n){n.forEach((n=>{const i=t.warn[s](n);Object.defineProperty(e,n,{get:i,set:i})}))}}},9691:(e,t,s)=>{"use strict";const n=s(3886),{configs:i}=s(8029);t.cli=n.levels(i.cli),t.npm=n.levels(i.npm),t.syslog=n.levels(i.syslog),t.addColors=n.levels},5829:(e,t,s)=>{"use strict";const n=s(7812);e.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){const s=(t=Object.assign({},t||this.options)).transports||this.options.transports;t.transports=s?Array.isArray(s)?s.slice():[s]:[];const i=n(t);i.on("close",(()=>this._delete(e))),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,t){return this.add(e,t)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach(((e,t)=>this._removeLogger(t)))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}},7812:(e,t,s)=>{"use strict";const{LEVEL:n}=s(8029),i=s(9691),o=s(2738),r=s(1577)("winston:create-logger");e.exports=function(e={}){e.levels=e.levels||i.npm.levels;class t extends o{constructor(e){super(e)}}const s=new t(e);return Object.keys(e.levels).forEach((function(e){r('Define prototype method for "%s"',e),"log"!==e?(t.prototype[e]=function(...t){const i=this||s;if(1===t.length){const[o]=t,r=o&&o.message&&o||{message:o};return r.level=r[n]=e,i._addDefaultMeta(r),i.write(r),this||s}return 0===t.length?(i.log(e,""),i):i.log(e,...t)},t.prototype[function(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}(e)]=function(){return(this||s).isLevelEnabled(e)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')})),s}},3708:(e,t,s)=>{"use strict";const n=s(2037),i=s(5305),o=s(1577)("winston:exception"),r=s(3918),a=s(8784),c=s(7377);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach((e=>{if(Array.isArray(e))return e.forEach((e=>this._addHandler(e)));this._addHandler(e)})),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((e=>this.logger.unpipe(e))))}getAllInfo(e){let t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,exception:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:n.loadavg(),uptime:n.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map((e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()})))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;const t=new c(e);this.handlers.set(e,t),this.logger.pipe(t)}}_uncaughtException(e){const t=this.getAllInfo(e),s=this._getExceptionHandlers();let n,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function c(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(n&&clearTimeout(n),process.exit(1))}if(!s.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1),!s||0===s.length)return process.nextTick(c);i(s,((e,t)=>{const s=r(t),n=e.transport||e;function i(e){return()=>{o(e),s()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(()=>a&&c())),this.logger.log(t),a&&(n=setTimeout(c,3e3))}_getExceptionHandlers(){return this.logger.transports.filter((e=>(e.transport||e).handleExceptions))}}},7377:(e,t,s)=>{"use strict";const{Writable:n}=s(6928);e.exports=class extends n{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,s){return e.exception?this.transport.log(e,s):(s(),!0)}}},2738:(e,t,s)=>{"use strict";const{Stream:n,Transform:i}=s(6928),o=s(5305),{LEVEL:r,SPLAT:a}=s(8029),c=s(8549),l=s(3708),p=s(6940),u=s(9804),d=s(887),{warn:h}=s(9034),f=s(9691),m=/%[scdjifoO%]/g;class g extends i{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){const t=this;return Object.create(t,{write:{value:function(s){const n=Object.assign({},e,s);s instanceof Error&&(n.stack=s.stack,n.message=s.message),t.write(n)}}})}configure({silent:e,format:t,defaultMeta:n,levels:i,level:o="info",exitOnError:r=!0,transports:a,colors:c,emitErrs:u,formatters:d,padLevels:h,rewriters:m,stripColors:g,exceptionHandlers:v,rejectionHandlers:b}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||s(3005)(),this.defaultMeta=n||null,this.levels=i||this.levels||f.npm.levels,this.level=o,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new l(this),this.rejections=new p(this),this.profilers={},this.exitOnError=r,a&&(a=Array.isArray(a)?a:[a]).forEach((e=>this.add(e))),c||u||d||h||m||g)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"));v&&this.exceptions.handle(v),b&&this.rejections.handle(b)}isLevelEnabled(e){const t=v(this.levels,e);if(null===t)return!1;const s=v(this.levels,this.level);if(null===s)return!1;if(!this.transports||0===this.transports.length)return s>=t;return-1!==this.transports.findIndex((e=>{let n=v(this.levels,e.level);return null===n&&(n=s),n>=t}))}log(e,t,...s){if(1===arguments.length)return e[r]=e.level,this._addDefaultMeta(e),this.write(e),this;if(2===arguments.length)return t&&"object"==typeof t?(t[r]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(t={[r]:e,level:e,message:t},this._addDefaultMeta(t),this.write(t),this);const[n]=s;if("object"==typeof n&&null!==n){if(!(t&&t.match&&t.match(m))){const i=Object.assign({},this.defaultMeta,n,{[r]:e,[a]:s,level:e,message:t});return n.message&&(i.message=`${i.message} ${n.message}`),n.stack&&(i.stack=n.stack),this.write(i),this}}return this.write(Object.assign({},this.defaultMeta,{[r]:e,[a]:s,level:e,message:t})),this}_transform(e,t,s){if(this.silent)return s();e[r]||(e[r]=e.level),this.levels[e[r]]||0===this.levels[e[r]]||console.error("[winston] Unknown logger level: %s",e[r]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,s()}}_final(e){const t=this.transports.slice();o(t,((e,t)=>{if(!e||e.finished)return setImmediate(t);e.once("finish",t),e.end()}),e)}add(e){const t=!c(e)||e.log.length>2?new u({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let t=e;return(!c(e)||e.log.length>2)&&(t=this.transports.filter((t=>t.transport===e))[0]),t&&this.unpipe(t),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){h.deprecated("setLevels")}query(e,t){"function"==typeof e&&(t=e,e={}),e=e||{};const s={},n=Object.assign({},e.query||{});o(this.transports.filter((e=>!!e.query)),(function(t,i){!function(t,s){e.query&&"function"==typeof t.formatQuery&&(e.query=t.formatQuery(n)),t.query(e,((n,i)=>{if(n)return s(n);"function"==typeof t.formatResults&&(i=t.formatResults(i,e.format)),s(null,i)}))}(t,((e,n)=>{i&&((n=e||n)&&(s[t.name]=n),i()),i=null}))}),(()=>t(null,s)))}stream(e={}){const t=new n,s=[];return t._streams=s,t.destroy=()=>{let e=s.length;for(;e--;)s[e].destroy()},this.transports.filter((e=>!!e.stream)).forEach((n=>{const i=n.stream(e);i&&(s.push(i),i.on("log",(e=>{e.transport=e.transport||[],e.transport.push(n.name),t.emit("log",e)})),i.on("error",(e=>{e.transport=e.transport||[],e.transport.push(n.name),t.emit("error",e)})))})),t}startTimer(){return new d(this)}profile(e,...t){const s=Date.now();if(this.profilers[e]){const n=this.profilers[e];delete this.profilers[e],"function"==typeof t[t.length-2]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());const i="object"==typeof t[t.length-1]?t.pop():{};return i.level=i.level||"info",i.durationMs=s-n,i.message=i.message||e,this.write(i)}return this.profilers[e]=s,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"))}_onEvent(e,t){t["__winston"+e]||(t["__winston"+e]=function(s){"error"!==e||this.transports.includes(t)||this.add(t),this.emit(e,s,t)}.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}}function v(e,t){const s=e[t];return s||0===s?s:null}Object.defineProperty(g.prototype,"transports",{configurable:!1,enumerable:!0,get(){const{pipes:e}=this._readableState;return Array.isArray(e)?e:[e].filter(Boolean)}}),e.exports=g},887:(e,t,s)=>{"use strict";e.exports=class{constructor(e){const t=s(2738);if("object"!=typeof e||Array.isArray(e)||!(e instanceof t))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){"function"==typeof e[e.length-1]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());const t="object"==typeof e[e.length-1]?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}}},6940:(e,t,s)=>{"use strict";const n=s(2037),i=s(5305),o=s(1577)("winston:rejection"),r=s(3918),a=s(8784),c=s(8469);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach((e=>{if(Array.isArray(e))return e.forEach((e=>this._addHandler(e)));this._addHandler(e)})),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((e=>this.logger.unpipe(e))))}getAllInfo(e){let t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,rejection:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:n.loadavg(),uptime:n.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map((e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()})))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;const t=new c(e);this.handlers.set(e,t),this.logger.pipe(t)}}_unhandledRejection(e){const t=this.getAllInfo(e),s=this._getRejectionHandlers();let n,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function c(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(n&&clearTimeout(n),process.exit(1))}if(!s.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1),!s||0===s.length)return process.nextTick(c);i(s,((e,t)=>{const s=r(t),n=e.transport||e;function i(e){return()=>{o(e),s()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(()=>a&&c())),this.logger.log(t),a&&(n=setTimeout(c,3e3))}_getRejectionHandlers(){return this.logger.transports.filter((e=>(e.transport||e).handleRejections))}}},8469:(e,t,s)=>{"use strict";const{Writable:n}=s(6928);e.exports=class extends n{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,t,s){return e.rejection?this.transport.log(e,s):(s(),!0)}}},8430:(e,t,s)=>{"use strict";const n=s(7147),{StringDecoder:i}=s(1576),{Stream:o}=s(6928);function r(){}e.exports=(e,t)=>{const s=Buffer.alloc(65536),a=new i("utf8"),c=new o;let l="",p=0,u=0;return-1===e.start&&delete e.start,c.readable=!0,c.destroy=()=>{c.destroyed=!0,c.emit("end"),c.emit("close")},n.open(e.file,"a+","0644",((i,o)=>{if(i)return t?t(i):c.emit("error",i),void c.destroy();!function i(){if(!c.destroyed)return n.read(o,s,0,s.length,p,((n,o)=>{if(n)return t?t(n):c.emit("error",n),void c.destroy();if(!o)return l&&((null==e.start||u>e.start)&&(t?t(null,l):c.emit("line",l)),u++,l=""),setTimeout(i,1e3);let r=a.write(s.slice(0,o));t||c.emit("data",r),r=(l+r).split(/\n+/);const d=r.length-1;let h=0;for(;h<d;h++)(null==e.start||u>e.start)&&(t?t(null,r[h]):c.emit("line",r[h])),u++;return l=r[d],p+=o,i()}));n.close(o,r)}()})),t?c.destroy:c}},5427:(e,t,s)=>{"use strict";const n=s(2037),{LEVEL:i,MESSAGE:o}=s(8029),r=s(3565);e.exports=class extends r{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol="string"==typeof e.eol?e.eol:n.EOL,this.setMaxListeners(30)}log(e,t){return setImmediate((()=>this.emit("logged",e))),this.stderrLevels[e[i]]?(console._stderr?console._stderr.write(`${e[o]}${this.eol}`):console.error(e[o]),void(t&&t())):this.consoleWarnLevels[e[i]]?(console._stderr?console._stderr.write(`${e[o]}${this.eol}`):console.warn(e[o]),void(t&&t())):(console._stdout?console._stdout.write(`${e[o]}${this.eol}`):console.log(e[o]),void(t&&t()))}_stringArrayToSet(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce(((e,s)=>{if("string"!=typeof s)throw new Error(t);return e[s]=!0,e}),{})}}},7672:(e,t,s)=>{"use strict";const n=s(7147),i=s(1017),o=s(7476),r=s(9796),{MESSAGE:a}=s(8029),{Stream:c,PassThrough:l}=s(6928),p=s(3565),u=s(1577)("winston:file"),d=s(2037),h=s(8430);e.exports=class extends p{constructor(e={}){function t(t,...s){s.slice(1).forEach((s=>{if(e[s])throw new Error(`Cannot set ${s} and ${t} together`)}))}if(super(e),this.name=e.name||"file",this._stream=new l,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)t("filename or dirname","stream"),this._basename=this.filename=e.filename?i.basename(e.filename):"winston.log",this.dirname=e.dirname||i.dirname(e.filename),this.options=e.options||{flags:"a"};else{if(!e.stream)throw new Error("Cannot log to file without filename or stream.");console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),t("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=i.dirname(this._dest.path)}this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol="string"==typeof e.eol?e.eol:d.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",(()=>{this._stream.once("finish",(()=>this.emit("finish"))),setImmediate((()=>this._stream.end()))})):(this._stream.once("finish",(()=>this.emit("finish"))),setImmediate((()=>this._stream.end()))))}log(e,t=()=>{}){if(this.silent)return t(),!0;if(this._drain)return void this._stream.once("drain",(()=>{this._drain=!1,this.log(e,t)}));if(this._rotate)return void this._stream.once("rotate",(()=>{this._rotate=!1,this.log(e,t)}));if(this.lazy){if(!this._fileExist)return this._opening||this.open(),void this.once("open",(()=>{this._fileExist=!0,this.log(e,t)}));if(this._needsNewFile(this._pendingSize))return void this._dest.once("close",(()=>{this._opening||this.open(),this.once("open",(()=>{this.log(e,t)}))}))}const s=`${e[a]}${this.eol}`,n=Buffer.byteLength(s);this._pendingSize+=n,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);const i=this._stream.write(s,function(){this._size+=n,this._pendingSize-=n,u("logged %s %s",this._size,s),this.emit("logged",e),this._rotate||this._opening||this._needsNewFile()&&(this.lazy?this._endStream((()=>{this.emit("fileclosed")})):(this._rotate=!0,this._endStream((()=>this._rotateFile()))))}.bind(this));return i?t():(this._drain=!0,this._stream.once("drain",(()=>{this._drain=!1,t()}))),u("written",i,this._drain),this.finishIfEnding(),i}query(e,t){"function"==typeof e&&(t=e,e={}),e=function(e){e=e||{},e.rows=e.rows||e.limit||10,e.start=e.start||0,e.until=e.until||new Date,"object"!=typeof e.until&&(e.until=new Date(e.until));e.from=e.from||e.until-864e5,"object"!=typeof e.from&&(e.from=new Date(e.from));return e.order=e.order||"desc",e}(e);const s=i.join(this.dirname,this.filename);let o="",r=[],a=0;const c=n.createReadStream(s,{encoding:"utf8"});function l(t,s){try{const s=JSON.parse(t);(function(t){if(!t)return;if("object"!=typeof t)return;const s=new Date(t.timestamp);if(e.from&&s<e.from||e.until&&s>e.until||e.level&&e.level!==t.level)return;return!0})(s)&&function(t){if(e.rows&&r.length>=e.rows&&"desc"!==e.order)return void(c.readable&&c.destroy());e.fields&&(t=e.fields.reduce(((e,s)=>(e[s]=t[s],e)),{}));"desc"===e.order&&r.length>=e.rows&&r.shift();r.push(t)}(s)}catch(e){s||c.emit("error",e)}}c.on("error",(e=>{if(c.readable&&c.destroy(),t)return"ENOENT"!==e.code?t(e):t(null,r)})),c.on("data",(t=>{const s=(t=(o+t).split(/\n+/)).length-1;let n=0;for(;n<s;n++)(!e.start||a>=e.start)&&l(t[n]),a++;o=t[s]})),c.on("close",(()=>{o&&l(o,!0),"desc"===e.order&&(r=r.reverse()),t&&t(null,r)}))}stream(e={}){const t=i.join(this.dirname,this.filename),s=new c,n={file:t,start:e.start};return s.destroy=h(n,((e,t)=>{if(e)return s.emit("error",e);try{s.emit("data",t),t=JSON.parse(t),s.emit("log",t)}catch(e){s.emit("error",e)}})),s}open(){this.filename&&(this._opening||(this._opening=!0,this.stat(((e,t)=>{if(e)return this.emit("error",e);u("stat done: %s { size: %s }",this.filename,t),this._size=t,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",(()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1}))}))))}stat(e){const t=this._getFile(),s=i.join(this.dirname,t);n.stat(s,((n,i)=>n&&"ENOENT"===n.code?(u("ENOENT ok",s),this.filename=t,e(null,0)):n?(u(`err ${n.code} ${s}`),e(n)):!i||this._needsNewFile(i.size)?this._incFile((()=>this.stat(e))):(this.filename=t,void e(null,i.size))))}close(e){this._stream&&this._stream.end((()=>{e&&e(),this.emit("flush"),this.emit("closed")}))}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile((()=>this.open()))}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end((()=>{this._cleanupStream(this._dest),e()}))):e()}_createStream(e){const t=i.join(this.dirname,this.filename);u("create stream start",t,this.options);const s=n.createWriteStream(t,this.options).on("error",(e=>u(e))).on("close",(()=>u("close",s.path,s.bytesWritten))).on("open",(()=>{u("file open ok",t),this.emit("open",t),e.pipe(s),this.rotatedWhileOpening&&(this._stream=new l,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(s),e.end())}));return u("create stream ok",t),s}_incFile(e){u("_incFile",this.filename);const t=i.extname(this._basename),s=i.basename(this._basename,t),n=[];this.zippedArchive&&n.push(function(e){const n=this._created>0&&!this.tailable?this._created:"";this._compressFile(i.join(this.dirname,`${s}${n}${t}`),i.join(this.dirname,`${s}${n}${t}.gz`),e)}.bind(this)),n.push(function(e){this.tailable?this._checkMaxFilesTailable(t,s,e):(this._created+=1,this._checkMaxFilesIncrementing(t,s,e))}.bind(this)),o(n,e)}_getFile(){const e=i.extname(this._basename),t=i.basename(this._basename,e),s=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${t}${s}${e}`:`${t}${e}`}_checkMaxFilesIncrementing(e,t,s){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(s);const o=this._created-this.maxFiles,r=`${t}${0!==o?o:""}${e}${this.zippedArchive?".gz":""}`,a=i.join(this.dirname,r);n.unlink(a,s)}_checkMaxFilesTailable(e,t,s){const r=[];if(!this.maxFiles)return;const a=this.zippedArchive?".gz":"";for(let s=this.maxFiles-1;s>1;s--)r.push(function(s,o){let r=`${t}${s-1}${e}${a}`;const c=i.join(this.dirname,r);n.exists(c,(l=>{if(!l)return o(null);r=`${t}${s}${e}${a}`,n.rename(c,i.join(this.dirname,r),o)}))}.bind(this,s));o(r,(()=>{n.rename(i.join(this.dirname,`${t}${e}${a}`),i.join(this.dirname,`${t}1${e}${a}`),s)}))}_compressFile(e,t,s){n.access(e,n.F_OK,(i=>{if(i)return s();var o=r.createGzip(),a=n.createReadStream(e),c=n.createWriteStream(t);c.on("finish",(()=>{n.unlink(e,s)})),a.pipe(o).pipe(c)}))}_createLogDirIfNotExist(e){n.existsSync(e)||n.mkdirSync(e,{recursive:!0})}}},1151:(e,t,s)=>{"use strict";const n=s(3685),i=s(5687),{Stream:o}=s(6928),r=s(3565),{configure:a}=s(6948);e.exports=class extends r{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,t){this._request(e,null,null,((t,s)=>{s&&200!==s.statusCode&&(t=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),t?this.emit("warn",t):this.emit("logged",e)})),t&&setImmediate(t)}query(e,t){"function"==typeof e&&(t=e,e={});const s=(e={method:"query",params:this.normalizeQuery(e)}).params.auth||null;delete e.params.auth;const n=e.params.path||null;delete e.params.path,this._request(e,s,n,((e,s,n)=>{if(s&&200!==s.statusCode&&(e=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),e)return t(e);if("string"==typeof n)try{n=JSON.parse(n)}catch(e){return t(e)}t(null,n)}))}stream(e={}){const t=new o,s=(e={method:"stream",params:e}).params.path||null;delete e.params.path;const n=e.params.auth||null;delete e.params.auth;let i="";const r=this._request(e,n,s);return t.destroy=()=>r.destroy(),r.on("data",(e=>{const s=(e=(i+e).split(/\n+/)).length-1;let n=0;for(;n<s;n++)try{t.emit("log",JSON.parse(e[n]))}catch(e){t.emit("error",e)}i=e[s]})),r.on("error",(e=>t.emit("error",e))),t}_request(e,t,s,n){e=e||{},t=t||this.auth,s=s||this.path||"",this.batch?this._doBatch(e,n,t,s):this._doRequest(e,n,t,s)}_doBatch(e,t,s,n){if(this.batchOptions.push(e),1===this.batchOptions.length){const e=this;this.batchCallback=t,this.batchTimeoutID=setTimeout((function(){e.batchTimeoutID=-1,e._doBatchRequest(e.batchCallback,s,n)}),this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,s,n)}_doBatchRequest(e,t,s){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);const n=this.batchOptions.slice();this.batchOptions=[],this._doRequest(n,e,t,s)}_doRequest(e,t,s,o){const r=Object.assign({},this.headers);s&&s.bearer&&(r.Authorization=`Bearer ${s.bearer}`);const c=(this.ssl?i:n).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${o.replace(/^\//,"")}`,headers:r,auth:s&&s.username&&s.password?`${s.username}:${s.password}`:"",agent:this.agent});c.on("error",t),c.on("response",(e=>e.on("end",(()=>t(null,e))).resume()));const l=a({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});c.end(Buffer.from(l(e,this.options.replacer),"utf8"))}}},3141:(e,t,s)=>{"use strict";Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:()=>s(5427)}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:()=>s(7672)}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:()=>s(1151)}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:()=>s(8079)})},8079:(e,t,s)=>{"use strict";const n=s(8549),{MESSAGE:i}=s(8029),o=s(2037),r=s(3565);e.exports=class extends r{constructor(e={}){if(super(e),!e.stream||!n(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol="string"==typeof e.eol?e.eol:o.EOL}log(e,t){if(setImmediate((()=>this.emit("logged",e))),this.isObjectMode)return this._stream.write(e),void(t&&t());this._stream.write(`${e[i]}${this.eol}`),t&&t()}}},5940:(e,t,s)=>{"use strict";const n=s(5770);n.createWebSocketStream=s(6371),n.Server=s(249),n.Receiver=s(2505),n.Sender=s(2831),n.WebSocket=n,n.WebSocketServer=n.Server,e.exports=n},7390:(e,t,s)=>{"use strict";const{EMPTY_BUFFER:n}=s(612),i=Buffer[Symbol.species];function o(e,t,s,n,i){for(let o=0;o<i;o++)s[n+o]=e[o]^t[3&o]}function r(e,t){for(let s=0;s<e.length;s++)e[s]^=t[3&s]}if(e.exports={concat:function(e,t){if(0===e.length)return n;if(1===e.length)return e[0];const s=Buffer.allocUnsafe(t);let o=0;for(let t=0;t<e.length;t++){const n=e[t];s.set(n,o),o+=n.length}return o<t?new i(s.buffer,s.byteOffset,o):s},mask:o,toArrayBuffer:function(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(t){if(e.readOnly=!0,Buffer.isBuffer(t))return t;let s;return t instanceof ArrayBuffer?s=new i(t):ArrayBuffer.isView(t)?s=new i(t.buffer,t.byteOffset,t.byteLength):(s=Buffer.from(t),e.readOnly=!1),s},unmask:r},!process.env.WS_NO_BUFFER_UTIL)try{const t=s(797);e.exports.mask=function(e,s,n,i,r){r<48?o(e,s,n,i,r):t.mask(e,s,n,i,r)},e.exports.unmask=function(e,s){e.length<32?r(e,s):t.unmask(e,s)}}catch(e){}},612:e=>{"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},2789:(e,t,s)=>{"use strict";const{kForOnEventAttribute:n,kListener:i}=s(612),o=Symbol("kCode"),r=Symbol("kData"),a=Symbol("kError"),c=Symbol("kMessage"),l=Symbol("kReason"),p=Symbol("kTarget"),u=Symbol("kType"),d=Symbol("kWasClean");class h{constructor(e){this[p]=null,this[u]=e}get target(){return this[p]}get type(){return this[u]}}Object.defineProperty(h.prototype,"target",{enumerable:!0}),Object.defineProperty(h.prototype,"type",{enumerable:!0});class f extends h{constructor(e,t={}){super(e),this[o]=void 0===t.code?0:t.code,this[l]=void 0===t.reason?"":t.reason,this[d]=void 0!==t.wasClean&&t.wasClean}get code(){return this[o]}get reason(){return this[l]}get wasClean(){return this[d]}}Object.defineProperty(f.prototype,"code",{enumerable:!0}),Object.defineProperty(f.prototype,"reason",{enumerable:!0}),Object.defineProperty(f.prototype,"wasClean",{enumerable:!0});class m extends h{constructor(e,t={}){super(e),this[a]=void 0===t.error?null:t.error,this[c]=void 0===t.message?"":t.message}get error(){return this[a]}get message(){return this[c]}}Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});class g extends h{constructor(e,t={}){super(e),this[r]=void 0===t.data?null:t.data}get data(){return this[r]}}Object.defineProperty(g.prototype,"data",{enumerable:!0});const v={addEventListener(e,t,s={}){for(const o of this.listeners(e))if(!s[n]&&o[i]===t&&!o[n])return;let o;if("message"===e)o=function(e,s){const n=new g("message",{data:s?e:e.toString()});n[p]=this,b(t,this,n)};else if("close"===e)o=function(e,s){const n=new f("close",{code:e,reason:s.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});n[p]=this,b(t,this,n)};else if("error"===e)o=function(e){const s=new m("error",{error:e,message:e.message});s[p]=this,b(t,this,s)};else{if("open"!==e)return;o=function(){const e=new h("open");e[p]=this,b(t,this,e)}}o[n]=!!s[n],o[i]=t,s.once?this.once(e,o):this.on(e,o)},removeEventListener(e,t){for(const s of this.listeners(e))if(s[i]===t&&!s[n]){this.removeListener(e,s);break}}};function b(e,t,s){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,s):e.call(t,s)}e.exports={CloseEvent:f,ErrorEvent:m,Event:h,EventTarget:v,MessageEvent:g}},8242:(e,t,s)=>{"use strict";const{tokenChars:n}=s(8909);function i(e,t,s){void 0===e[t]?e[t]=[s]:e[t].push(s)}e.exports={format:function(e){return Object.keys(e).map((t=>{let s=e[t];return Array.isArray(s)||(s=[s]),s.map((e=>[t].concat(Object.keys(e).map((t=>{let s=e[t];return Array.isArray(s)||(s=[s]),s.map((e=>!0===e?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")},parse:function(e){const t=Object.create(null);let s,o,r=Object.create(null),a=!1,c=!1,l=!1,p=-1,u=-1,d=-1,h=0;for(;h<e.length;h++)if(u=e.charCodeAt(h),void 0===s)if(-1===d&&1===n[u])-1===p&&(p=h);else if(0===h||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${h}`);{if(-1===p)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h);const n=e.slice(p,d);44===u?(i(t,n,r),r=Object.create(null)):s=n,p=d=-1}}else-1===d&&-1!==p&&(d=h);else if(void 0===o)if(-1===d&&1===n[u])-1===p&&(p=h);else if(32===u||9===u)-1===d&&-1!==p&&(d=h);else if(59===u||44===u){if(-1===p)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h),i(r,e.slice(p,d),!0),44===u&&(i(t,s,r),r=Object.create(null),s=void 0),p=d=-1}else{if(61!==u||-1===p||-1!==d)throw new SyntaxError(`Unexpected character at index ${h}`);o=e.slice(p,h),p=d=-1}else if(c){if(1!==n[u])throw new SyntaxError(`Unexpected character at index ${h}`);-1===p?p=h:a||(a=!0),c=!1}else if(l)if(1===n[u])-1===p&&(p=h);else if(34===u&&-1!==p)l=!1,d=h;else{if(92!==u)throw new SyntaxError(`Unexpected character at index ${h}`);c=!0}else if(34===u&&61===e.charCodeAt(h-1))l=!0;else if(-1===d&&1===n[u])-1===p&&(p=h);else if(-1===p||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${h}`);{if(-1===p)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h);let n=e.slice(p,d);a&&(n=n.replace(/\\/g,""),a=!1),i(r,o,n),44===u&&(i(t,s,r),r=Object.create(null),s=void 0),o=void 0,p=d=-1}}else-1===d&&(d=h);if(-1===p||l||32===u||9===u)throw new SyntaxError("Unexpected end of input");-1===d&&(d=h);const f=e.slice(p,d);return void 0===s?i(t,f,r):(void 0===o?i(r,f,!0):i(r,o,a?f.replace(/\\/g,""):f),i(t,s,r)),t}}},9792:e=>{"use strict";const t=Symbol("kDone"),s=Symbol("kRun");e.exports=class{constructor(e){this[t]=()=>{this.pending--,this[s]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[s]()}[s](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[t])}}}},1122:(e,t,s)=>{"use strict";const n=s(9796),i=s(7390),o=s(9792),{kStatusCode:r}=s(612),a=Buffer[Symbol.species],c=Buffer.from([0,0,255,255]),l=Symbol("permessage-deflate"),p=Symbol("total-length"),u=Symbol("callback"),d=Symbol("buffers"),h=Symbol("error");let f;function m(e){this[d].push(e),this[p]+=e.length}function g(e){this[p]+=e.length,this[l]._maxPayload<1||this[p]<=this[l]._maxPayload?this[d].push(e):(this[h]=new RangeError("Max payload size exceeded"),this[h].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[h][r]=1009,this.removeListener("data",g),this.reset())}function v(e){this[l]._inflate=null,e[r]=1007,this[u](e)}e.exports=class{constructor(e,t,s){if(this._maxPayload=0|s,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!f){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;f=new o(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[u];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,s=e.find((e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits)));if(!s)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(s.server_no_context_takeover=!0),t.clientNoContextTakeover&&(s.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(s.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?s.client_max_window_bits=t.clientMaxWindowBits:!0!==s.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete s.client_max_window_bits,s}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach((e=>{Object.keys(e).forEach((t=>{let s=e[t];if(s.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(s=s[0],"client_max_window_bits"===t){if(!0!==s){const e=+s;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${s}`);s=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${s}`)}else if("server_max_window_bits"===t){const e=+s;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${s}`);s=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==s)throw new TypeError(`Invalid value for parameter "${t}": ${s}`)}e[t]=s}))})),e}decompress(e,t,s){f.add((n=>{this._decompress(e,t,((e,t)=>{n(),s(e,t)}))}))}compress(e,t,s){f.add((n=>{this._compress(e,t,((e,t)=>{n(),s(e,t)}))}))}_decompress(e,t,s){const o=this._isServer?"client":"server";if(!this._inflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[l]=this,this._inflate[p]=0,this._inflate[d]=[],this._inflate.on("error",v),this._inflate.on("data",g)}this._inflate[u]=s,this._inflate.write(e),t&&this._inflate.write(c),this._inflate.flush((()=>{const e=this._inflate[h];if(e)return this._inflate.close(),this._inflate=null,void s(e);const n=i.concat(this._inflate[d],this._inflate[p]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[p]=0,this._inflate[d]=[],t&&this.params[`${o}_no_context_takeover`]&&this._inflate.reset()),s(null,n)}))}_compress(e,t,s){const o=this._isServer?"server":"client";if(!this._deflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[p]=0,this._deflate[d]=[],this._deflate.on("data",m)}this._deflate[u]=s,this._deflate.write(e),this._deflate.flush(n.Z_SYNC_FLUSH,(()=>{if(!this._deflate)return;let e=i.concat(this._deflate[d],this._deflate[p]);t&&(e=new a(e.buffer,e.byteOffset,e.length-4)),this._deflate[u]=null,this._deflate[p]=0,this._deflate[d]=[],t&&this.params[`${o}_no_context_takeover`]&&this._deflate.reset(),s(null,e)}))}}},2505:(e,t,s)=>{"use strict";const{Writable:n}=s(2781),i=s(1122),{BINARY_TYPES:o,EMPTY_BUFFER:r,kStatusCode:a,kWebSocket:c}=s(612),{concat:l,toArrayBuffer:p,unmask:u}=s(7390),{isValidStatusCode:d,isValidUTF8:h}=s(8909),f=Buffer[Symbol.species];e.exports=class extends n{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||o[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[c]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,s){if(8===this._opcode&&0==this._state)return s();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(s)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=new f(t.buffer,t.byteOffset+e,t.length-e),new f(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const s=this._buffers[0],n=t.length-e;e>=s.length?t.set(this._buffers.shift(),n):(t.set(new Uint8Array(s.buffer,s.byteOffset,e),n),this._buffers[0]=new f(s.buffer,s.byteOffset+e,s.length-e)),e-=s.length}while(e>0);return t}startLoop(e){this._loop=!0;do{switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2)return void(this._loop=!1);const t=this.consume(2);if(48&t[0]){return void e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}const s=!(64&~t[0]);if(!s||this._extensions[i.extensionName]){if(this._fin=!(128&~t[0]),this._opcode=15&t[0],this._payloadLength=127&t[1],0===this._opcode){if(s){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=s}else{if(!(this._opcode>7&&this._opcode<11)){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(s){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~t[1]),this._isServer){if(!this._masked){return void e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}else{e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8)return void(this._loop=!1);const t=this.consume(8),s=t.readUInt32BE(0);if(s>Math.pow(2,21)-1){e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}else this._payloadLength=s*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}else this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=r;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&u(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,t){this._extensions[i.extensionName].decompress(e,this._fin,((e,s)=>{if(e)return t(e);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void t(e)}this._fragments.push(s)}this.dataMessage(t),0===this._state&&this.startLoop(t)}))}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,s=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let n;n="nodebuffer"===this._binaryType?l(s,t):"arraybuffer"===this._binaryType?p(l(s,t)):s,this._allowSynchronousEvents?(this.emit("message",n,!0),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",n,!0),this._state=0,this.startLoop(e)})))}else{const n=l(s,t);if(!this._skipUTF8Validation&&!h(n)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",n,!1),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",n,!1),this._state=0,this.startLoop(e)})))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate((()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)})));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,r),this.end();else{const s=e.readUInt16BE(0);if(!d(s)){const e=this.createError(RangeError,`invalid status code ${s}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const n=new f(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!h(n)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",s,n),this.end()}this._state=0}}createError(e,t,s,n,i){this._loop=!1,this._errored=!0;const o=new e(s?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=i,o[a]=n,o}}},2831:(e,t,s)=>{"use strict";const{Duplex:n}=s(2781),{randomFillSync:i}=s(6113),o=s(1122),{EMPTY_BUFFER:r}=s(612),{isValidStatusCode:a}=s(8909),{mask:c,toBuffer:l}=s(7390),p=Symbol("kByteLength"),u=Buffer.alloc(4),d=8192;let h,f=d;class m{constructor(e,t,s){this._extensions=t||{},s&&(this._generateMask=s,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){let s,n,o=!1,r=2,a=!1;t.mask&&(s=t.maskBuffer||u,t.generateMask?t.generateMask(s):(f===d&&(void 0===h&&(h=Buffer.alloc(d)),i(h,0,d),f=0),s[0]=h[f++],s[1]=h[f++],s[2]=h[f++],s[3]=h[f++]),a=!(s[0]|s[1]|s[2]|s[3]),r=6),"string"==typeof e?n=t.mask&&!a||void 0===t[p]?(e=Buffer.from(e)).length:t[p]:(n=e.length,o=t.mask&&t.readOnly&&!a);let l=n;n>=65536?(r+=8,l=127):n>125&&(r+=2,l=126);const m=Buffer.allocUnsafe(o?n+r:r);return m[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(m[0]|=64),m[1]=l,126===l?m.writeUInt16BE(n,2):127===l&&(m[2]=m[3]=0,m.writeUIntBE(n,4,6)),t.mask?(m[1]|=128,m[r-4]=s[0],m[r-3]=s[1],m[r-2]=s[2],m[r-1]=s[3],a?[m,e]:o?(c(e,s,m,r,n),[m]):(c(e,s,e,0,n),[m,e])):[m,e]}close(e,t,s,n){let i;if(void 0===e)i=r;else{if("number"!=typeof e||!a(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const s=Buffer.byteLength(t);if(s>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+s),i.writeUInt16BE(e,0),"string"==typeof t?i.write(t,2):i.set(t,2)}else i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0)}const o={[p]:i.length,fin:!0,generateMask:this._generateMask,mask:s,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,i,!1,o,n]):this.sendFrame(m.frame(i,o),n)}ping(e,t,s){let n,i;if("string"==typeof e?(n=Buffer.byteLength(e),i=!1):(n=(e=l(e)).length,i=l.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[p]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,o,s]):this.sendFrame(m.frame(e,o),s)}pong(e,t,s){let n,i;if("string"==typeof e?(n=Buffer.byteLength(e),i=!1):(n=(e=l(e)).length,i=l.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[p]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,o,s]):this.sendFrame(m.frame(e,o),s)}send(e,t,s){const n=this._extensions[o.extensionName];let i,r,a=t.binary?2:1,c=t.compress;if("string"==typeof e?(i=Buffer.byteLength(e),r=!1):(i=(e=l(e)).length,r=l.readOnly),this._firstFragment?(this._firstFragment=!1,c&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(c=i>=n._threshold),this._compress=c):(c=!1,a=0),t.fin&&(this._firstFragment=!0),n){const n={[p]:i,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:r,rsv1:c};this._deflating?this.enqueue([this.dispatch,e,this._compress,n,s]):this.dispatch(e,this._compress,n,s)}else this.sendFrame(m.frame(e,{[p]:i,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:r,rsv1:!1}),s)}dispatch(e,t,s,n){if(!t)return void this.sendFrame(m.frame(e,s),n);const i=this._extensions[o.extensionName];this._bufferedBytes+=s[p],this._deflating=!0,i.compress(e,s.fin,((e,t)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");"function"==typeof n&&n(e);for(let t=0;t<this._queue.length;t++){const s=this._queue[t],n=s[s.length-1];"function"==typeof n&&n(e)}}else this._bufferedBytes-=s[p],this._deflating=!1,s.readOnly=!1,this.sendFrame(m.frame(t,s),n),this.dequeue()}))}dequeue(){for(;!this._deflating&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][p],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][p],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}e.exports=m},6371:(e,t,s)=>{"use strict";const{Duplex:n}=s(2781);function i(e){e.emit("close")}function o(){!this.destroyed&&this._writableState.finished&&this.destroy()}function r(e){this.removeListener("error",r),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}e.exports=function(e,t){let s=!0;const a=new n({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",(function(t,s){const n=!s&&a._readableState.objectMode?t.toString():t;a.push(n)||e.pause()})),e.once("error",(function(e){a.destroyed||(s=!1,a.destroy(e))})),e.once("close",(function(){a.destroyed||a.push(null)})),a._destroy=function(t,n){if(e.readyState===e.CLOSED)return n(t),void process.nextTick(i,a);let o=!1;e.once("error",(function(e){o=!0,n(e)})),e.once("close",(function(){o||n(t),process.nextTick(i,a)})),s&&e.terminate()},a._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),a._readableState.endEmitted&&a.destroy()):(e._socket.once("finish",(function(){t()})),e.close())):e.once("open",(function(){a._final(t)}))},a._read=function(){e.isPaused&&e.resume()},a._write=function(t,s,n){e.readyState!==e.CONNECTING?e.send(t,n):e.once("open",(function(){a._write(t,s,n)}))},a.on("end",o),a.on("error",r),a}},8880:(e,t,s)=>{"use strict";const{tokenChars:n}=s(8909);e.exports={parse:function(e){const t=new Set;let s=-1,i=-1,o=0;for(;o<e.length;o++){const r=e.charCodeAt(o);if(-1===i&&1===n[r])-1===s&&(s=o);else if(0===o||32!==r&&9!==r){if(44!==r)throw new SyntaxError(`Unexpected character at index ${o}`);{if(-1===s)throw new SyntaxError(`Unexpected character at index ${o}`);-1===i&&(i=o);const n=e.slice(s,i);if(t.has(n))throw new SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),s=i=-1}}else-1===i&&-1!==s&&(i=o)}if(-1===s||-1!==i)throw new SyntaxError("Unexpected end of input");const r=e.slice(s,o);if(t.has(r))throw new SyntaxError(`The "${r}" subprotocol is duplicated`);return t.add(r),t}}},8909:(e,t,s)=>{"use strict";const{isUtf8:n}=s(4300);function i(e){const t=e.length;let s=0;for(;s<t;)if(128&e[s])if(192==(224&e[s])){if(s+1===t||128!=(192&e[s+1])||192==(254&e[s]))return!1;s+=2}else if(224==(240&e[s])){if(s+2>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||224===e[s]&&128==(224&e[s+1])||237===e[s]&&160==(224&e[s+1]))return!1;s+=3}else{if(240!=(248&e[s]))return!1;if(s+3>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||128!=(192&e[s+3])||240===e[s]&&128==(240&e[s+1])||244===e[s]&&e[s+1]>143||e[s]>244)return!1;s+=4}else s++;return!0}if(e.exports={isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:i,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},n)e.exports.isValidUTF8=function(e){return e.length<24?i(e):n(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const t=s(367);e.exports.isValidUTF8=function(e){return e.length<32?i(e):t(e)}}catch(e){}},249:(e,t,s)=>{"use strict";const n=s(2361),i=s(3685),{Duplex:o}=s(2781),{createHash:r}=s(6113),a=s(8242),c=s(1122),l=s(8880),p=s(5770),{GUID:u,kWebSocket:d}=s(612),h=/^[+/0-9A-Za-z]{22}==$/;function f(e){e._state=2,e.emit("close")}function m(){this.destroy()}function g(e,t,s,n){s=s||i.STATUS_CODES[t],n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(s),...n},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(n).map((e=>`${e}: ${n[e]}`)).join("\r\n")+"\r\n\r\n"+s)}function v(e,t,s,n,i){if(e.listenerCount("wsClientError")){const n=new Error(i);Error.captureStackTrace(n,v),e.emit("wsClientError",n,s,t)}else g(s,n,i)}e.exports=class extends n{constructor(e,t){if(super(),null==(e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:p,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=i.createServer(((e,t)=>{const s=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),t.end(s)})),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const s of Object.keys(t))e.on(s,t[s]);return function(){for(const s of Object.keys(t))e.removeListener(s,t[s])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,s,n)=>{this.handleUpgrade(t,s,n,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state)return e&&this.once("close",(()=>{e(new Error("The server is not running"))})),void process.nextTick(f,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(f,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close((()=>{f(this)}))}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,s,n){t.on("error",m);const i=e.headers["sec-websocket-key"],o=e.headers.upgrade,r=+e.headers["sec-websocket-version"];if("GET"!==e.method){return void v(this,e,t,405,"Invalid HTTP method")}if(void 0===o||"websocket"!==o.toLowerCase()){return void v(this,e,t,400,"Invalid Upgrade header")}if(void 0===i||!h.test(i)){return void v(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header")}if(8!==r&&13!==r){return void v(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header")}if(!this.shouldHandle(e))return void g(t,400);const p=e.headers["sec-websocket-protocol"];let u=new Set;if(void 0!==p)try{u=l.parse(p)}catch(s){return void v(this,e,t,400,"Invalid Sec-WebSocket-Protocol header")}const d=e.headers["sec-websocket-extensions"],f={};if(this.options.perMessageDeflate&&void 0!==d){const s=new c(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const e=a.parse(d);e[c.extensionName]&&(s.accept(e[c.extensionName]),f[c.extensionName]=s)}catch(s){return void v(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const o={origin:e.headers[""+(8===r?"sec-websocket-origin":"origin")],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(o,((o,r,a,c)=>{if(!o)return g(t,r||401,a,c);this.completeUpgrade(f,i,u,e,t,s,n)}));if(!this.options.verifyClient(o))return g(t,401)}this.completeUpgrade(f,i,u,e,t,s,n)}completeUpgrade(e,t,s,n,i,o,l){if(!i.readable||!i.writable)return i.destroy();if(i[d])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return g(i,503);const p=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${r("sha1").update(t+u).digest("base64")}`],h=new this.options.WebSocket(null,void 0,this.options);if(s.size){const e=this.options.handleProtocols?this.options.handleProtocols(s,n):s.values().next().value;e&&(p.push(`Sec-WebSocket-Protocol: ${e}`),h._protocol=e)}if(e[c.extensionName]){const t=e[c.extensionName].params,s=a.format({[c.extensionName]:[t]});p.push(`Sec-WebSocket-Extensions: ${s}`),h._extensions=e}this.emit("headers",p,n),i.write(p.concat("\r\n").join("\r\n")),i.removeListener("error",m),h.setSocket(i,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(h),h.on("close",(()=>{this.clients.delete(h),this._shouldEmitClose&&!this.clients.size&&process.nextTick(f,this)}))),l(h,n)}}},5770:(e,t,s)=>{"use strict";const n=s(2361),i=s(5687),o=s(3685),r=s(1808),a=s(4404),{randomBytes:c,createHash:l}=s(6113),{Duplex:p,Readable:u}=s(2781),{URL:d}=s(7310),h=s(1122),f=s(2505),m=s(2831),{BINARY_TYPES:g,EMPTY_BUFFER:v,GUID:b,kForOnEventAttribute:x,kListener:y,kStatusCode:w,kWebSocket:_,NOOP:k}=s(612),{EventTarget:{addEventListener:S,removeEventListener:E}}=s(2789),{format:T,parse:O}=s(8242),{toBuffer:C}=s(7390),R=Symbol("kAborted"),j=[8,13],A=["CONNECTING","OPEN","CLOSING","CLOSED"],P=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class M extends n{constructor(e,t,s){super(),this._binaryType=g[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=v,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=M.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(s=t,t=[]):t=[t]),N(this,e,t,s)):(this._autoPong=s.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){g.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,s){const n=new f({allowSynchronousEvents:s.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation});this._sender=new m(e,this._extensions,s.generateMask),this._receiver=n,this._socket=e,n[_]=this,e[_]=this,n.on("conclude",$),n.on("drain",F),n.on("error",U),n.on("message",H),n.on("ping",W),n.on("pong",V),e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Y),e.on("data",K),e.on("end",J),e.on("error",Q),this._readyState=M.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=M.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[h.extensionName]&&this._extensions[h.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=M.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==M.CLOSED)if(this.readyState!==M.CONNECTING)this.readyState!==M.CLOSING?(this._readyState=M.CLOSING,this._sender.close(e,t,!this._isServer,(e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())})),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();else{const e="WebSocket was closed before the connection was established";I(this,this._req,e)}}pause(){this.readyState!==M.CONNECTING&&this.readyState!==M.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,s){if(this.readyState===M.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(s=e,e=t=void 0):"function"==typeof t&&(s=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===M.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||v,t,s)):B(this,e,s)}pong(e,t,s){if(this.readyState===M.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(s=e,e=t=void 0):"function"==typeof t&&(s=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===M.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||v,t,s)):B(this,e,s)}resume(){this.readyState!==M.CONNECTING&&this.readyState!==M.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,s){if(this.readyState===M.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(s=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==M.OPEN)return void B(this,e,s);const n={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[h.extensionName]||(n.compress=!1),this._sender.send(e||v,n,s)}terminate(){if(this.readyState!==M.CLOSED)if(this.readyState!==M.CONNECTING)this._socket&&(this._readyState=M.CLOSING,this._socket.destroy());else{const e="WebSocket was closed before the connection was established";I(this,this._req,e)}}}function N(e,t,s,n){const r={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:j[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...n,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=r.autoPong,!j.includes(r.protocolVersion))throw new RangeError(`Unsupported protocol version: ${r.protocolVersion} (supported versions: ${j.join(", ")})`);let a;if(t instanceof d)a=t;else try{a=new d(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===a.protocol?a.protocol="ws:":"https:"===a.protocol&&(a.protocol="wss:"),e._url=a.href;const p="wss:"===a.protocol,u="ws+unix:"===a.protocol;let f;if("ws:"===a.protocol||p||u?u&&!a.pathname?f="The URL's pathname is empty":a.hash&&(f="The URL contains a fragment identifier"):f='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"',f){const t=new SyntaxError(f);if(0===e._redirects)throw t;return void D(e,t)}const m=p?443:80,g=c(16).toString("base64"),v=p?i.request:o.request,x=new Set;let y,w;if(r.createConnection=r.createConnection||(p?q:L),r.defaultPort=r.defaultPort||m,r.port=a.port||m,r.host=a.hostname.startsWith("[")?a.hostname.slice(1,-1):a.hostname,r.headers={...r.headers,"Sec-WebSocket-Version":r.protocolVersion,"Sec-WebSocket-Key":g,Connection:"Upgrade",Upgrade:"websocket"},r.path=a.pathname+a.search,r.timeout=r.handshakeTimeout,r.perMessageDeflate&&(y=new h(!0!==r.perMessageDeflate?r.perMessageDeflate:{},!1,r.maxPayload),r.headers["Sec-WebSocket-Extensions"]=T({[h.extensionName]:y.offer()})),s.length){for(const e of s){if("string"!=typeof e||!P.test(e)||x.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");x.add(e)}r.headers["Sec-WebSocket-Protocol"]=s.join(",")}if(r.origin&&(r.protocolVersion<13?r.headers["Sec-WebSocket-Origin"]=r.origin:r.headers.Origin=r.origin),(a.username||a.password)&&(r.auth=`${a.username}:${a.password}`),u){const e=r.path.split(":");r.socketPath=e[0],r.path=e[1]}if(r.followRedirects){if(0===e._redirects){e._originalIpc=u,e._originalSecure=p,e._originalHostOrSocketPath=u?r.socketPath:a.host;const t=n&&n.headers;if(n={...n,headers:{}},t)for(const[e,s]of Object.entries(t))n.headers[e.toLowerCase()]=s}else if(0===e.listenerCount("redirect")){const t=u?!!e._originalIpc&&r.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&a.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!p)&&(delete r.headers.authorization,delete r.headers.cookie,t||delete r.headers.host,r.auth=void 0)}r.auth&&!n.headers.authorization&&(n.headers.authorization="Basic "+Buffer.from(r.auth).toString("base64")),w=e._req=v(r),e._redirects&&e.emit("redirect",e.url,w)}else w=e._req=v(r);r.timeout&&w.on("timeout",(()=>{I(e,w,"Opening handshake has timed out")})),w.on("error",(t=>{null===w||w[R]||(w=e._req=null,D(e,t))})),w.on("response",(i=>{const o=i.headers.location,a=i.statusCode;if(o&&r.followRedirects&&a>=300&&a<400){if(++e._redirects>r.maxRedirects)return void I(e,w,"Maximum redirects exceeded");let i;w.abort();try{i=new d(o,t)}catch(t){const s=new SyntaxError(`Invalid URL: ${o}`);return void D(e,s)}N(e,i,s,n)}else e.emit("unexpected-response",w,i)||I(e,w,`Unexpected server response: ${i.statusCode}`)})),w.on("upgrade",((t,s,n)=>{if(e.emit("upgrade",t),e.readyState!==M.CONNECTING)return;w=e._req=null;const i=t.headers.upgrade;if(void 0===i||"websocket"!==i.toLowerCase())return void I(e,s,"Invalid Upgrade header");const o=l("sha1").update(g+b).digest("base64");if(t.headers["sec-websocket-accept"]!==o)return void I(e,s,"Invalid Sec-WebSocket-Accept header");const a=t.headers["sec-websocket-protocol"];let c;if(void 0!==a?x.size?x.has(a)||(c="Server sent an invalid subprotocol"):c="Server sent a subprotocol but none was requested":x.size&&(c="Server sent no subprotocol"),c)return void I(e,s,c);a&&(e._protocol=a);const p=t.headers["sec-websocket-extensions"];if(void 0!==p){if(!y){return void I(e,s,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=O(p)}catch(t){return void I(e,s,"Invalid Sec-WebSocket-Extensions header")}const n=Object.keys(t);if(1!==n.length||n[0]!==h.extensionName){return void I(e,s,"Server indicated an extension that was not requested")}try{y.accept(t[h.extensionName])}catch(t){return void I(e,s,"Invalid Sec-WebSocket-Extensions header")}e._extensions[h.extensionName]=y}e.setSocket(s,n,{allowSynchronousEvents:r.allowSynchronousEvents,generateMask:r.generateMask,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation})})),r.finishRequest?r.finishRequest(w,e):w.end()}function D(e,t){e._readyState=M.CLOSING,e.emit("error",t),e.emitClose()}function L(e){return e.path=e.socketPath,r.connect(e)}function q(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=r.isIP(e.host)?"":e.host),a.connect(e)}function I(e,t,s){e._readyState=M.CLOSING;const n=new Error(s);Error.captureStackTrace(n,I),t.setHeader?(t[R]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(D,e,n)):(t.destroy(n),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function B(e,t,s){if(t){const s=C(t).length;e._socket?e._sender._bufferedBytes+=s:e._bufferedAmount+=s}if(s){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${A[e.readyState]})`);process.nextTick(s,t)}}function $(e,t){const s=this[_];s._closeFrameReceived=!0,s._closeMessage=t,s._closeCode=e,void 0!==s._socket[_]&&(s._socket.removeListener("data",K),process.nextTick(G,s._socket),1005===e?s.close():s.close(e,t))}function F(){const e=this[_];e.isPaused||e._socket.resume()}function U(e){const t=this[_];void 0!==t._socket[_]&&(t._socket.removeListener("data",K),process.nextTick(G,t._socket),t.close(e[w])),t.emit("error",e)}function z(){this[_].emitClose()}function H(e,t){this[_].emit("message",e,t)}function W(e){const t=this[_];t._autoPong&&t.pong(e,!this._isServer,k),t.emit("ping",e)}function V(e){this[_].emit("pong",e)}function G(e){e.resume()}function Y(){const e=this[_];let t;this.removeListener("close",Y),this.removeListener("data",K),this.removeListener("end",J),e._readyState=M.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[_]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",z),e._receiver.on("finish",z))}function K(e){this[_]._receiver.write(e)||this.pause()}function J(){const e=this[_];e._readyState=M.CLOSING,e._receiver.end(),this.end()}function Q(){const e=this[_];this.removeListener("error",Q),this.on("error",k),e&&(e._readyState=M.CLOSING,this.destroy())}Object.defineProperty(M,"CONNECTING",{enumerable:!0,value:A.indexOf("CONNECTING")}),Object.defineProperty(M.prototype,"CONNECTING",{enumerable:!0,value:A.indexOf("CONNECTING")}),Object.defineProperty(M,"OPEN",{enumerable:!0,value:A.indexOf("OPEN")}),Object.defineProperty(M.prototype,"OPEN",{enumerable:!0,value:A.indexOf("OPEN")}),Object.defineProperty(M,"CLOSING",{enumerable:!0,value:A.indexOf("CLOSING")}),Object.defineProperty(M.prototype,"CLOSING",{enumerable:!0,value:A.indexOf("CLOSING")}),Object.defineProperty(M,"CLOSED",{enumerable:!0,value:A.indexOf("CLOSED")}),Object.defineProperty(M.prototype,"CLOSED",{enumerable:!0,value:A.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(M.prototype,e,{enumerable:!0})})),["open","error","close","message"].forEach((e=>{Object.defineProperty(M.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[x])return t[y];return null},set(t){for(const t of this.listeners(e))if(t[x]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[x]:!0})}})})),M.prototype.addEventListener=S,M.prototype.removeEventListener=E,e.exports=M},2353:(e,t,s)=>{var n=s(7147),i=s(7310),o=s(2081).spawn;function r(e){"use strict";e=e||{};var t,r,a=this,c=s(3685),l=s(5687),p={},u=!1,d={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},h=Object.assign({},d),f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],m=["TRACE","TRACK","CONNECT"],g=!1,v=!1,b=!1,x={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null;this.open=function(e,t,s,n,i){if(this.abort(),v=!1,b=!1,!function(e){return e&&-1===m.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");p={method:e,url:t.toString(),async:"boolean"!=typeof s||s,user:n||null,password:i||null},y(this.OPENED)},this.setDisableHeaderCheck=function(e){u=e},this.setRequestHeader=function(e,t){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(!function(e){return u||e&&-1===f.indexOf(e.toLowerCase())}(e))return console.warn('Refused to set unsafe header "'+e+'"'),!1;if(g)throw new Error("INVALID_STATE_ERR: send flag is true");return h[e]=t,!0},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&r.headers[e.toLowerCase()]&&!v?r.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||v)return"";var e="";for(var t in r.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+r.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&h[e]?h[e]:""},this.send=function(s){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(g)throw new Error("INVALID_STATE_ERR: send has already been called");var u,d=!1,f=!1,m=i.parse(p.url);switch(m.protocol){case"https:":d=!0;case"http:":u=m.hostname;break;case"file:":f=!0;break;case void 0:case"":u="localhost";break;default:throw new Error("Protocol not supported.")}if(f){if("GET"!==p.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(p.async)n.readFile(unescape(m.pathname),"utf8",(function(e,t){e?a.handleError(e,e.errno||-1):(a.status=200,a.responseText=t,y(a.DONE))}));else try{this.responseText=n.readFileSync(unescape(m.pathname),"utf8"),this.status=200,y(a.DONE)}catch(e){this.handleError(e,e.errno||-1)}}else{var b=m.port||(d?443:80),x=m.pathname+(m.search?m.search:"");if(h.Host=u,d&&443===b||80===b||(h.Host+=":"+m.port),p.user){void 0===p.password&&(p.password="");var w=new Buffer(p.user+":"+p.password);h.Authorization="Basic "+w.toString("base64")}"GET"===p.method||"HEAD"===p.method?s=null:s?(h["Content-Length"]=Buffer.isBuffer(s)?s.length:Buffer.byteLength(s),h["Content-Type"]||(h["Content-Type"]="text/plain;charset=UTF-8")):"POST"===p.method&&(h["Content-Length"]=0);var _=e.agent||!1,k={host:u,port:b,path:x,method:p.method,headers:h,agent:_};if(d&&(k.pfx=e.pfx,k.key=e.key,k.passphrase=e.passphrase,k.cert=e.cert,k.ca=e.ca,k.ciphers=e.ciphers,k.rejectUnauthorized=!1!==e.rejectUnauthorized),v=!1,p.async){var S=d?l.request:c.request;g=!0,a.dispatchEvent("readystatechange");var E=function(s){if(302===(r=s).statusCode||303===r.statusCode||307===r.statusCode){p.url=r.headers.location;var n=i.parse(p.url);u=n.hostname;var o={hostname:n.hostname,port:n.port,path:n.path,method:303===r.statusCode?"GET":p.method,headers:h};return d&&(o.pfx=e.pfx,o.key=e.key,o.passphrase=e.passphrase,o.cert=e.cert,o.ca=e.ca,o.ciphers=e.ciphers,o.rejectUnauthorized=!1!==e.rejectUnauthorized),void(t=S(o,E).on("error",T)).end()}r&&r.setEncoding&&r.setEncoding("utf8"),y(a.HEADERS_RECEIVED),a.status=r.statusCode,r.on("data",(function(e){e&&(a.responseText+=e),g&&y(a.LOADING)})),r.on("end",(function(){g&&(g=!1,y(a.DONE))})),r.on("error",(function(e){a.handleError(e)}))},T=function(e){a.handleError(e)};t=S(k,E).on("error",T),e.autoUnref&&t.on("socket",(e=>{e.unref()})),s&&t.write(s),t.end(),a.dispatchEvent("loadstart")}else{var O=".node-xmlhttprequest-content-"+process.pid,C=".node-xmlhttprequest-sync-"+process.pid;n.writeFileSync(C,"","utf8");for(var R="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(d?"s":"")+".request;var options = "+JSON.stringify(k)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+O+"', 'NODE-XMLHTTPREQUEST-STATUS:' + response.statusCode + ',' + responseText, 'utf8');fs.unlinkSync('"+C+"');});response.on('error', function(error) {fs.writeFileSync('"+O+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+C+"');});}).on('error', function(error) {fs.writeFileSync('"+O+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+C+"');});"+(s?"req.write('"+JSON.stringify(s).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",j=o(process.argv[0],["-e",R]);n.existsSync(C););if(a.responseText=n.readFileSync(O,"utf8"),j.stdin.end(),n.unlinkSync(O),a.responseText.match(/^NODE-XMLHTTPREQUEST-ERROR:/)){var A=a.responseText.replace(/^NODE-XMLHTTPREQUEST-ERROR:/,"");a.handleError(A,503)}else a.status=a.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:([0-9]*),.*/,"$1"),a.responseText=a.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:[0-9]*,(.*)/,"$1"),y(a.DONE)}}},this.handleError=function(e,t){this.status=t||0,this.statusText=e,this.responseText=e.stack,v=!0,y(this.DONE)},this.abort=function(){t&&(t.abort(),t=null),h=Object.assign({},d),this.responseText="",this.responseXML="",v=b=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!g||this.readyState===this.DONE||(g=!1,y(this.DONE)),this.readyState=this.UNSENT},this.addEventListener=function(e,t){e in x||(x[e]=[]),x[e].push(t)},this.removeEventListener=function(e,t){e in x&&(x[e]=x[e].filter((function(e){return e!==t})))},this.dispatchEvent=function(e){if("function"==typeof a["on"+e]&&(this.readyState===this.DONE?setImmediate((function(){a["on"+e]()})):a["on"+e]()),e in x)for(let t=0,s=x[e].length;t<s;t++)this.readyState===this.DONE?setImmediate((function(){x[e][t].call(a)})):x[e][t].call(a)};var y=function(e){if(!(a.readyState===e||a.readyState===a.UNSENT&&b)&&(a.readyState=e,(p.async||a.readyState<a.OPENED||a.readyState===a.DONE)&&a.dispatchEvent("readystatechange"),a.readyState===a.DONE)){let e;e=b?"abort":v?"error":"load",a.dispatchEvent(e),a.dispatchEvent("loadend")}}}e.exports=r,r.XMLHttpRequest=r},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},797:t=>{"use strict";if(void 0===e){var s=new Error("Cannot find module 'bufferutil'");throw s.code="MODULE_NOT_FOUND",s}t.exports=e},367:e=>{"use strict";if(void 0===t){var s=new Error("Cannot find module 'utf-8-validate'");throw s.code="MODULE_NOT_FOUND",s}e.exports=t},3588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=function(e){let t="";for(let s in e)e.hasOwnProperty(s)&&(t.length&&(t+="&"),t+=encodeURIComponent(s)+"="+encodeURIComponent(e[s]));return t},t.decode=function(e){let t={},s=e.split("&");for(let e=0,n=s.length;e<n;e++){let n=s[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}},8154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const s=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.parse=function(e){if(e.length>2e3)throw"URI too long";const t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));let r=s.exec(e||""),a={},c=14;for(;c--;)a[n[c]]=r[c]||"";return-1!=i&&-1!=o&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const s=/\/{2,9}/g,n=t.replace(s,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,a.path),a.queryKey=function(e,t){const s={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(s[t]=n)})),s}(0,a.query),a}},4615:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let i,o=0,r=0;function a(e){let t="";do{t=s[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}for(t.encode=a,t.decode=function(e){let t=0;for(r=0;r<e.length;r++)t=64*t+n[e.charAt(r)];return t},t.yeast=function(){const e=a(+new Date);return e!==i?(o=0,i=e):e+"."+a(o++)};r<64;r++)n[s[r]]=r},6003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalThisShim=void 0,t.globalThisShim=global},6133:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.TransportError=t.Transport=t.protocol=t.Socket=void 0;const n=s(3161);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var i=s(2902);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return i.Transport}}),Object.defineProperty(t,"TransportError",{enumerable:!0,get:function(){return i.TransportError}});var o=s(5431);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return o.transports}});var r=s(3634);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return r.installTimerFunctions}});var a=s(8154);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}});var c=s(9587);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return c.nextTick}})},3161:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=s(5431),o=s(3634),r=s(3588),a=s(8154),c=n(s(9229)),l=s(4529),p=s(5371),u=s(9587),d=(0,c.default)("engine.io-client:socket");class h extends l.Emitter{constructor(e,t={}){super(),this.binaryType=u.defaultBinaryType,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,a.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,a.parse)(t.host).host),(0,o.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,r.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){d('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=p.protocol,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return d("options: %j",s),new i.transports[e](s)}open(){let e;if(this.opts.rememberUpgrade&&h.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return d("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){d("setting transport %s",e.name),this.transport&&(d("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){d('probing transport "%s"',e);let t=this.createTransport(e),s=!1;h.priorWebsocketSuccess=!1;const n=()=>{s||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!s)if("pong"===n.type&&"probe"===n.data){if(d('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;h.priorWebsocketSuccess="websocket"===t.name,d('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{s||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{d('probe transport "%s" failed',e);const s=new Error("probe error");s.transport=t.name,this.emitReserved("upgradeError",s)}})))};function i(){s||(s=!0,l(),t.close(),t=null)}const o=s=>{const n=new Error("probe error: "+s);n.transport=t.name,i(),d('probe transport "%s" failed because of error: %s',e,s),this.emitReserved("upgradeError",n)};function r(){o("transport closed")}function a(){o("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),i())}const l=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",r),this.off("close",a),this.off("upgrading",c)};t.once("open",n),t.once("error",o),t.once("close",r),this.once("close",a),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{s||t.open()}),200):t.open()}onOpen(){if(d("socket open"),this.readyState="open",h.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){d("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(d('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}else d('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();d("flushing %d packets in socket",e.length),this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const s=this.writeBuffer[t].data;if(s&&(e+=(0,o.byteLength)(s)),t>0&&e>this.maxPayload)return d("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return d("payload size is %d (max: %d)",e,this.maxPayload),this.writeBuffer}write(e,t,s){return this.sendPacket("message",e,t,s),this}send(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof s&&(n=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;const i={type:e,data:t,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),d("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?s():e()})):this.upgrading?s():e()),this}onError(e){d("socket error %j",e),h.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(d('socket close with reason: "%s"',e),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const n=e.length;for(;s<n;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}t.Socket=h,h.protocol=p.protocol},2902:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=t.TransportError=void 0;const i=s(5371),o=s(4529),r=s(3634),a=n(s(9229)),c=s(3588),l=(0,a.default)("engine.io-client:transport");class p extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}t.TransportError=p;class u extends o.Emitter{constructor(e){super(),this.writable=!1,(0,r.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,s){return super.emitReserved("error",new p(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):l("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,i.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=(0,c.encode)(e);return t.length?"?"+t:""}}t.Transport=u},5431:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=s(159),i=s(90),o=s(942);t.transports={websocket:i.WS,webtransport:o.WT,polling:n.Polling}},159:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=t.Polling=void 0;const i=s(2902),o=n(s(9229)),r=s(4615),a=s(5371),c=s(899),l=s(4529),p=s(3634),u=s(6003),d=(0,o.default)("engine.io-client:polling");function h(){}const f=null!=new c.XHR({xdomain:!1}).responseType;class m extends i.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let s=location.port;s||(s=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||s!==e.port}const t=e&&e.forceBase64;this.supportsBinary=f&&!t,this.opts.withCredentials&&(this.cookieJar=(0,c.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{d("paused"),this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(d("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){d("pre-pause polling complete"),--e||t()}))),this.writable||(d("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){d("pre-pause writing complete"),--e||t()})))}else t()}poll(){d("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){d("polling got data %s",e);(0,a.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():d('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{d("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(d("transport open - closing"),e()):(d("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,a.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new g(this.uri(),e)}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){d("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.Polling=m;class g extends l.Emitter{constructor(e,t){super(),(0,p.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=(0,p.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const s=this.xhr=new c.XHR(t);try{d("xhr open %s: %s",this.method,this.uri),s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&s.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{s.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var e;3===s.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(s)),4===s.readyState&&(200===s.status||1223===s.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof s.status?s.status:0)}),0))},d("xhr data %s",this.data),s.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=g.requestsCount++,g.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=h,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete g.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(t.Request=g,g.requestsCount=0,g.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",v);else if("function"==typeof addEventListener){const e="onpagehide"in u.globalThisShim?"pagehide":"unload";addEventListener(e,v,!1)}function v(){for(let e in g.requests)g.requests.hasOwnProperty(e)&&g.requests[e].abort()}},9587:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=void 0;const i=n(s(5940));t.WebSocket=i.default,t.usingBrowserWebSocket=!1,t.defaultBinaryType="nodebuffer",t.nextTick=process.nextTick},90:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const i=s(2902),o=s(4615),r=s(3634),a=s(9587),c=n(s(9229)),l=s(5371),p=(0,c.default)("engine.io-client:websocket"),u="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class d extends i.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=u?{}:(0,r.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=a.usingBrowserWebSocket&&!u?t?new a.WebSocket(e,t):new a.WebSocket(e):new a.WebSocket(e,t,s)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],n=t===e.length-1;(0,l.encodePacket)(s,this.supportsBinary,(e=>{const t={};if(!a.usingBrowserWebSocket&&(s.options&&(t.compress=s.options.compress),this.opts.perMessageDeflate)){("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1)}try{a.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){p("websocket closed before onclose event")}n&&(0,a.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.yeast)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!a.WebSocket}}t.WS=d},942:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WT=void 0;const i=s(2902),o=s(9587),r=s(5371),a=(0,n(s(9229)).default)("engine.io-client:webtransport");class c extends i.Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{a("transport closed gracefully"),this.onClose()})).catch((e=>{a("transport closed due to %s",e),this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=(0,r.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),n=(0,r.createPacketEncoderStream)();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();const i=()=>{s.read().then((({done:e,value:t})=>{e?a("session is closed"):(a("received chunk: %o",t),this.onPacket(t),i())})).catch((e=>{a("an error occurred while reading: %s",e)}))};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],n=t===e.length-1;this.writer.write(s).then((()=>{n&&(0,o.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}t.WT=c},899:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var i=Object.getOwnPropertyDescriptor(t,s);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,i)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&n(t,e,s);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CookieJar=t.parse=t.createCookieJar=t.XHR=void 0;const r=o(s(2353));function a(e){const t=e.split("; "),s=t[0].indexOf("=");if(-1===s)return;const n=t[0].substring(0,s).trim();if(!n.length)return;let i=t[0].substring(s+1).trim();34===i.charCodeAt(0)&&(i=i.slice(1,-1));const o={name:n,value:i};for(let e=1;e<t.length;e++){const s=t[e].split("=");if(2!==s.length)continue;const n=s[0].trim(),i=s[1].trim();switch(n){case"Expires":o.expires=new Date(i);break;case"Max-Age":const e=new Date;e.setUTCSeconds(e.getUTCSeconds()+parseInt(i,10)),o.expires=e}}return o}t.XHR=r.default||r,t.createCookieJar=function(){return new c},t.parse=a;class c{constructor(){this.cookies=new Map}parseCookies(e){const t=e.getResponseHeader("set-cookie");t&&t.forEach((e=>{const t=a(e);t&&this.cookies.set(t.name,t)}))}addCookies(e){const t=[];this.cookies.forEach(((e,s)=>{var n;(null===(n=e.expires)||void 0===n?void 0:n.getTime())<Date.now()?this.cookies.delete(s):t.push(`${s}=${e.value}`)})),t.length&&(e.setDisableHeaderCheck(!0),e.setRequestHeader("cookie",t.join("; ")))}}t.CookieJar=c},3634:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=s(6003);t.pick=function(e,...t){return t.reduce(((t,s)=>(e.hasOwnProperty(s)&&(t[s]=e[s]),t)),{})};const i=n.globalThisShim.setTimeout,o=n.globalThisShim.clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=i.bind(n.globalThisShim),e.clearTimeoutFn=o.bind(n.globalThisShim)):(e.setTimeoutFn=n.globalThisShim.setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=n.globalThisShim.clearTimeout.bind(n.globalThisShim))};t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,s=0;for(let n=0,i=e.length;n<i;n++)t=e.charCodeAt(n),t<128?s+=1:t<2048?s+=2:t<55296||t>=57344?s+=3:(n++,s+=4);return s}(e):Math.ceil(1.33*(e.byteLength||e.size))}},2390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const s=Object.create(null);t.PACKET_TYPES=s,s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(s).forEach((e=>{n[s[e]]=e}));t.ERROR_PACKET={type:"error",data:"parser error"}},3776:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePacket=void 0;const n=s(2390);t.decodePacket=(e,t)=>{if("string"!=typeof e)return{type:"message",data:i(e,t)};const s=e.charAt(0);if("b"===s){const s=Buffer.from(e.substring(1),"base64");return{type:"message",data:i(s,t)}}return n.PACKET_TYPES_REVERSE[s]?e.length>1?{type:n.PACKET_TYPES_REVERSE[s],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[s]}:n.ERROR_PACKET};const i=(e,t)=>"arraybuffer"===t?e instanceof ArrayBuffer?e:Buffer.isBuffer(e)?e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):e.buffer:Buffer.isBuffer(e)?e:Buffer.from(e)},1044:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacket=void 0,t.encodePacketToBinary=function(e,s){if(e.data instanceof ArrayBuffer||ArrayBuffer.isView(e.data))return s(i(e.data,!1));(0,t.encodePacket)(e,!0,(e=>{o||(o=new TextEncoder),s(o.encode(e))}))};const n=s(2390);t.encodePacket=({type:e,data:t},s,o)=>t instanceof ArrayBuffer||ArrayBuffer.isView(t)?o(s?t:"b"+i(t,!0).toString("base64")):o(n.PACKET_TYPES[e]+(t||""));const i=(e,t)=>Buffer.isBuffer(e)||e instanceof Uint8Array&&!t?e:e instanceof ArrayBuffer?Buffer.from(e):Buffer.from(e.buffer,e.byteOffset,e.byteLength);let o},5371:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0,t.createPacketEncoderStream=function(){return new TransformStream({transform(e,t){(0,n.encodePacketToBinary)(e,(s=>{const n=s.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(s)}))}})},t.createPacketDecoderStream=function(e,t){a||(a=new TextDecoder);const s=[];let n=0,r=-1,p=!1;return new TransformStream({transform(u,d){for(s.push(u);;){if(0===n){if(c(s)<1)break;const e=l(s,1);p=!(128&~e[0]),r=127&e[0],n=r<126?3:126===r?1:2}else if(1===n){if(c(s)<2)break;const e=l(s,2);r=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(c(s)<8)break;const e=l(s,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){d.enqueue(o.ERROR_PACKET);break}r=i*Math.pow(2,32)+t.getUint32(4),n=3}else{if(c(s)<r)break;const e=l(s,r);d.enqueue((0,i.decodePacket)(p?e:a.decode(e),t)),n=0}if(0===r||r>e){d.enqueue(o.ERROR_PACKET);break}}}})};const n=s(1044);Object.defineProperty(t,"encodePacket",{enumerable:!0,get:function(){return n.encodePacket}});const i=s(3776);Object.defineProperty(t,"decodePacket",{enumerable:!0,get:function(){return i.decodePacket}});const o=s(2390),r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const s=e.length,i=new Array(s);let o=0;e.forEach(((e,a)=>{(0,n.encodePacket)(e,!1,(e=>{i[a]=e,++o===s&&t(i.join(r))}))}))};let a;function c(e){return e.reduce(((e,t)=>e+t.length),0)}function l(e,t){if(e[0].length===t)return e.shift();const s=new Uint8Array(t);let n=0;for(let i=0;i<t;i++)s[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),s}t.decodePayload=(e,t)=>{const s=e.split(r),n=[];for(let e=0;e<s.length;e++){const o=(0,i.decodePacket)(s[e],t);if(n.push(o),"error"===o.type)break}return n},t.protocol=4},442:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.protocol=t.Transport=t.Socket=t.uServer=t.parser=t.attach=t.listen=t.transports=t.Server=void 0;const n=s(3685),i=s(9870);Object.defineProperty(t,"Server",{enumerable:!0,get:function(){return i.Server}});const o=s(7541);t.transports=o.default;const r=s(5371);t.parser=r;var a=s(9239);Object.defineProperty(t,"uServer",{enumerable:!0,get:function(){return a.uServer}});var c=s(8959);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return c.Socket}});var l=s(9983);function p(e,t){const s=new i.Server(t);return s.attach(e,t),s}Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return l.Transport}}),t.protocol=r.protocol,t.listen=function(e,t,s){"function"==typeof t&&(s=t,t={});const i=(0,n.createServer)((function(e,t){t.writeHead(501),t.end("Not Implemented")})),o=p(i,t);return o.httpServer=i,i.listen(e,s),o},t.attach=p},8938:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayloadAsBinary=t.encodePayloadAsBinary=t.decodePayload=t.encodePayload=t.decodeBase64Packet=t.decodePacket=t.encodeBase64Packet=t.encodePacket=t.packets=t.protocol=void 0;var n=s(3546);t.protocol=3;t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6};var i=Object.keys(t.packets),o={type:"error",data:"parser error"};const r=Buffer.concat([]);function a(e,s,i,o){if("function"==typeof s&&(o=s,s=null),"function"==typeof i&&(o=i,i=null),Buffer.isBuffer(e.data))return c(e,s,o);if(e.data&&(e.data.buffer||e.data)instanceof ArrayBuffer)return c({type:e.type,data:m(e.data)},s,o);var r=t.packets[e.type];return void 0!==e.data&&(r+=i?n.encode(String(e.data),{strict:!1}):String(e.data)),o(""+r)}function c(e,s,n){if(!s)return l(e,n);var i=e.data,o=Buffer.allocUnsafe(1);return o[0]=t.packets[e.type],n(Buffer.concat([o,i]))}function l(e,s){var n=Buffer.isBuffer(e.data)?e.data:m(e.data),i="b"+t.packets[e.type];return s(i+=n.toString("base64"))}function p(e,t,s){if(void 0===e)return o;var r;if("string"==typeof e)return"b"===(r=e.charAt(0))?u(e.slice(1),t):s&&!1===(e=function(e){try{e=n.decode(e,{strict:!1})}catch(e){return!1}return e}(e))?o:Number(r)==r&&i[r]?e.length>1?{type:i[r],data:e.slice(1)}:{type:i[r]}:o;if("arraybuffer"===t){var a=new Uint8Array(e);return r=a[0],{type:i[r],data:a.buffer.slice(1)}}return e instanceof ArrayBuffer&&(e=m(e)),r=e[0],{type:i[r],data:e.slice(1)}}function u(e,t){var s=i[e.charAt(0)],n=Buffer.from(e.slice(1),"base64");if("arraybuffer"===t){for(var o=new Uint8Array(n.length),r=0;r<o.length;r++)o[r]=n[r];n=o.buffer}return{type:s,data:n}}function d(e,t,s){const n=new Array(e.length);let i=0;for(let o=0;o<e.length;o++)t(e[o],((t,r)=>{n[o]=r,++i===e.length&&s(null,n)}))}function h(e){for(var t="",s=0,n=e.length;s<n;s++)t+=String.fromCharCode(e[s]);return t}function f(e){for(var t=Buffer.allocUnsafe(e.length),s=0,n=e.length;s<n;s++)t.writeUInt8(e.charCodeAt(s),s);return t}function m(e){var t=e.byteLength||e.length,s=e.byteOffset||0;return Buffer.from(e.buffer||e,s,t)}function g(e,t){if(!e.length)return t(r);d(e,v,(function(e,s){return t(Buffer.concat(s))}))}function v(e,t){a(e,!0,!0,(function(e){var s,n=""+e.length;if("string"==typeof e){(s=Buffer.allocUnsafe(n.length+2))[0]=0;for(var i=0;i<n.length;i++)s[i+1]=parseInt(n[i],10);return s[s.length-1]=255,t(null,Buffer.concat([s,f(e)]))}for((s=Buffer.allocUnsafe(n.length+2))[0]=1,i=0;i<n.length;i++)s[i+1]=parseInt(n[i],10);s[s.length-1]=255,t(null,Buffer.concat([s,e]))}))}function b(e,t,s){"function"==typeof t&&(s=t,t=null);for(var n,i=e,r=[];i.length>0;){var a="",c=0===i[0];for(n=1;255!==i[n];n++){if(a.length>310)return s(o,0,1);a+=""+i[n]}i=i.slice(a.length+1);var l=parseInt(a,10),u=i.slice(1,l+1);c&&(u=h(u)),r.push(u),i=i.slice(l+1)}var d=r.length;for(n=0;n<d;n++){s(p(r[n],t,!0),n,d)}}t.encodePacket=a,t.encodeBase64Packet=l,t.decodePacket=p,t.decodeBase64Packet=u,t.encodePayload=function(e,t,s){if("function"==typeof t&&(s=t,t=null),t&&(e=>{for(const t of e)if(t.data instanceof ArrayBuffer||ArrayBuffer.isView(t.data))return!0;return!1})(e))return g(e,s);if(!e.length)return s("0:");d(e,(function(e,s){a(e,t,!1,(function(e){s(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return s(t.join(""))}))},t.decodePayload=function(e,t,s){if("string"!=typeof e)return b(e,t,s);if("function"==typeof t&&(s=t,t=null),""===e)return s(o,0,1);for(var n,i,r,a="",c=0,l=e.length;c<l;c++){var u=e.charAt(c);if(":"===u){if(""===a||a!=(n=Number(a)))return s(o,0,1);if(a!=(i=e.slice(c+1,c+1+n)).length)return s(o,0,1);if(i.length){if(r=p(i,t,!1),o.type===r.type&&o.data===r.data)return s(o,0,1);if(!1===s(r,c+n,l))return}c+=n,a=""}else a+=u}return""!==a?s(o,0,1):void 0},t.encodePayloadAsBinary=g,t.decodePayloadAsBinary=b},3546:e=>{var t,s,n,i=String.fromCharCode;function o(e){for(var t,s,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(s=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&s)+65536):(n.push(t),i--):n.push(t);return n}function r(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function a(e,t){return i(e>>t&63|128)}function c(e,t){if(!(4294967168&e))return i(e);var s="";return 4294965248&e?4294901760&e?4292870144&e||(s=i(e>>18&7|240),s+=a(e,12),s+=a(e,6)):(r(e,t)||(e=65533),s=i(e>>12&15|224),s+=a(e,6)):s=i(e>>6&31|192),s+=i(63&e|128)}function l(){if(n>=s)throw Error("Invalid byte index");var e=255&t[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function p(e){var i,o;if(n>s)throw Error("Invalid byte index");if(n==s)return!1;if(i=255&t[n],n++,!(128&i))return i;if(192==(224&i)){if((o=(31&i)<<6|l())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&i)){if((o=(15&i)<<12|l()<<6|l())>=2048)return r(o,e)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&i)&&(o=(7&i)<<18|l()<<12|l()<<6|l())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var s=!1!==(t=t||{}).strict,n=o(e),i=n.length,r=-1,a="";++r<i;)a+=c(n[r],s);return a},decode:function(e,r){var a=!1!==(r=r||{}).strict;t=o(e),s=t.length,n=0;for(var c,l=[];!1!==(c=p(a));)l.push(c);return function(e){for(var t,s=e.length,n=-1,o="";++n<s;)(t=e[n])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(l)}}},9870:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=t.BaseServer=void 0;const n=s(3477),i=s(7310),o=s(9916),r=s(7541),a=s(2361),c=s(8959),l=s(9229),p=s(2507),u=s(5940),d=s(3176),h=s(5371),f=(0,l.default)("engine"),m=Symbol("responseHeaders");class g extends a.EventEmitter{constructor(e={}){super(),this.middlewares=[],this.clients={},this.clientsCount=0,this.opts=Object.assign({wsEngine:u.Server,pingTimeout:2e4,pingInterval:25e3,upgradeTimeout:1e4,maxHttpBufferSize:1e6,transports:["polling","websocket"],allowUpgrades:!0,httpCompression:{threshold:1024},cors:!1,allowEIO3:!1},e),e.cookie&&(this.opts.cookie=Object.assign({name:"io",path:"/",httpOnly:!1!==e.cookie.path,sameSite:"lax"},e.cookie)),this.opts.cors&&this.use(s(9920)(this.opts.cors)),e.perMessageDeflate&&(this.opts.perMessageDeflate=Object.assign({threshold:1024},e.perMessageDeflate)),this.init()}_computePath(e){let t=(e.path||"/engine.io").replace(/\/$/,"");return!1!==e.addTrailingSlash&&(t+="/"),t}upgrades(e){return this.opts.allowUpgrades&&r.default[e].upgradesTo||[]}verify(e,t,s){const n=e._query.transport;if(!~this.opts.transports.indexOf(n)||"webtransport"===n)return f('unknown transport "%s"',n),s(b.errors.UNKNOWN_TRANSPORT,{transport:n});if(function(e){if((e+="").length<1)return!1;if(!w[e.charCodeAt(0)])return f('invalid header, index 0, char "%s"',e.charCodeAt(0)),!0;if(e.length<2)return!1;if(!w[e.charCodeAt(1)])return f('invalid header, index 1, char "%s"',e.charCodeAt(1)),!0;if(e.length<3)return!1;if(!w[e.charCodeAt(2)])return f('invalid header, index 2, char "%s"',e.charCodeAt(2)),!0;if(e.length<4)return!1;if(!w[e.charCodeAt(3)])return f('invalid header, index 3, char "%s"',e.charCodeAt(3)),!0;for(let t=4;t<e.length;++t)if(!w[e.charCodeAt(t)])return f('invalid header, index "%i", char "%s"',t,e.charCodeAt(t)),!0;return!1}(e.headers.origin)){const t=e.headers.origin;return e.headers.origin=null,f("origin header invalid"),s(b.errors.BAD_REQUEST,{name:"INVALID_ORIGIN",origin:t})}const i=e._query.sid;if(!i)return"GET"!==e.method?s(b.errors.BAD_HANDSHAKE_METHOD,{method:e.method}):"websocket"!==n||t?this.opts.allowRequest?this.opts.allowRequest(e,((e,t)=>{if(!t)return s(b.errors.FORBIDDEN,{message:e});s()})):s():(f("invalid transport upgrade"),s(b.errors.BAD_REQUEST,{name:"TRANSPORT_HANDSHAKE_ERROR"}));{if(!this.clients.hasOwnProperty(i))return f('unknown sid "%s"',i),s(b.errors.UNKNOWN_SID,{sid:i});const e=this.clients[i].transport.name;if(!t&&e!==n)return f("bad request: unexpected transport without upgrade"),s(b.errors.BAD_REQUEST,{name:"TRANSPORT_MISMATCH",transport:n,previousTransport:e})}s()}use(e){this.middlewares.push(e)}_applyMiddlewares(e,t,s){if(0===this.middlewares.length)return f("no middleware to apply, skipping"),s();const n=i=>{f("applying middleware n°%d",i+1),this.middlewares[i](e,t,(e=>{if(e)return s(e);i+1<this.middlewares.length?n(i+1):s()}))};n(0)}close(){f("closing all open clients");for(let e in this.clients)this.clients.hasOwnProperty(e)&&this.clients[e].close(!0);return this.cleanup(),this}generateId(e){return o.generateId()}async handshake(e,t,s){const n="4"===t._query.EIO?4:3;if(3===n&&!this.opts.allowEIO3)return f("unsupported protocol version"),this.emit("connection_error",{req:t,code:b.errors.UNSUPPORTED_PROTOCOL_VERSION,message:b.errorMessages[b.errors.UNSUPPORTED_PROTOCOL_VERSION],context:{protocol:n}}),void s(b.errors.UNSUPPORTED_PROTOCOL_VERSION);let i;try{i=await this.generateId(t)}catch(e){return f("error while generating an id"),this.emit("connection_error",{req:t,code:b.errors.BAD_REQUEST,message:b.errorMessages[b.errors.BAD_REQUEST],context:{name:"ID_GENERATION_ERROR",error:e}}),void s(b.errors.BAD_REQUEST)}f('handshaking client "%s"',i);try{var o=this.createTransport(e,t);"polling"===e?(o.maxHttpBufferSize=this.opts.maxHttpBufferSize,o.httpCompression=this.opts.httpCompression):"websocket"===e&&(o.perMessageDeflate=this.opts.perMessageDeflate)}catch(n){return f('error handshaking to transport "%s"',e),this.emit("connection_error",{req:t,code:b.errors.BAD_REQUEST,message:b.errorMessages[b.errors.BAD_REQUEST],context:{name:"TRANSPORT_HANDSHAKE_ERROR",error:n}}),void s(b.errors.BAD_REQUEST)}const r=new c.Socket(i,this,o,t,n);return o.on("headers",((e,t)=>{!t._query.sid&&(this.opts.cookie&&(e["Set-Cookie"]=[(0,p.serialize)(this.opts.cookie.name,i,this.opts.cookie)]),this.emit("initial_headers",e,t)),this.emit("headers",e,t)})),o.onRequest(t),this.clients[i]=r,this.clientsCount++,r.once("close",(()=>{delete this.clients[i],this.clientsCount--})),this.emit("connection",r),o}async onWebTransportSession(e){const t=setTimeout((()=>{f("the client failed to establish a bidirectional stream in the given period"),e.close()}),this.opts.upgradeTimeout),s=e.incomingBidirectionalStreams.getReader(),n=await s.read();if(n.done)return void f("session is closed");const i=n.value,r=(0,h.createPacketDecoderStream)(this.opts.maxHttpBufferSize,"nodebuffer"),a=i.readable.pipeThrough(r).getReader(),{value:l,done:p}=await a.read();if(p)return void f("stream is closed");if(clearTimeout(t),"open"!==l.type)return f("invalid WebTransport handshake"),e.close();if(void 0===l.data){const t=new d.WebTransport(e,i,a),s=o.generateId();f('handshaking client "%s" (WebTransport)',s);const n=new c.Socket(s,this,t,null,4);return this.clients[s]=n,this.clientsCount++,n.once("close",(()=>{delete this.clients[s],this.clientsCount--})),void this.emit("connection",n)}const u=function(e){try{const t=JSON.parse(e);if("string"==typeof t.sid)return t.sid}catch(e){}}(l.data);if(!u)return f("invalid WebTransport handshake"),e.close();const m=this.clients[u];if(m)if(m.upgrading)f("transport has already been trying to upgrade"),e.close();else if(m.upgraded)f("transport had already been upgraded"),e.close();else{f("upgrading existing transport");const t=new d.WebTransport(e,i,a);m.maybeUpgrade(t)}else f("upgrade attempt for closed client"),e.close()}}t.BaseServer=g,g.errors={UNKNOWN_TRANSPORT:0,UNKNOWN_SID:1,BAD_HANDSHAKE_METHOD:2,BAD_REQUEST:3,FORBIDDEN:4,UNSUPPORTED_PROTOCOL_VERSION:5},g.errorMessages={0:"Transport unknown",1:"Session ID unknown",2:"Bad handshake method",3:"Bad request",4:"Forbidden",5:"Unsupported protocol version"};class v{constructor(e,t){this.req=e,this.socket=t,e[m]={}}setHeader(e,t){this.req[m][e]=t}getHeader(e){return this.req[m][e]}removeHeader(e){delete this.req[m][e]}write(){}writeHead(){}end(){this.socket.destroy()}}class b extends g{init(){~this.opts.transports.indexOf("websocket")&&(this.ws&&this.ws.close(),this.ws=new this.opts.wsEngine({noServer:!0,clientTracking:!1,perMessageDeflate:this.opts.perMessageDeflate,maxPayload:this.opts.maxHttpBufferSize}),"function"==typeof this.ws.on&&this.ws.on("headers",((e,t)=>{const s=t[m]||{};delete t[m];!t._query.sid&&this.emit("initial_headers",s,t),this.emit("headers",s,t),f("writing headers: %j",s),Object.keys(s).forEach((t=>{e.push(`${t}: ${s[t]}`)}))})))}cleanup(){this.ws&&(f("closing webSocketServer"),this.ws.close())}prepare(e){e._query||(e._query=~e.url.indexOf("?")?n.parse((0,i.parse)(e.url).query):{})}createTransport(e,t){return new r.default[e](t)}handleRequest(e,t){f('handling "%s" http request "%s"',e.method,e.url),this.prepare(e),e.res=t;const s=(s,n)=>{if(void 0!==s)return this.emit("connection_error",{req:e,code:s,message:b.errorMessages[s],context:n}),void x(t,s,n);if(e._query.sid)f("setting new request for existing client"),this.clients[e._query.sid].transport.onRequest(e);else{const s=(e,s)=>x(t,e,s);this.handshake(e._query.transport,e,s)}};this._applyMiddlewares(e,t,(t=>{t?s(b.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(e,!1,s)}))}handleUpgrade(e,t,s){this.prepare(e);const n=new v(e,t),i=(i,o)=>{if(void 0!==i)return this.emit("connection_error",{req:e,code:i,message:b.errorMessages[i],context:o}),void y(t,i,o);const r=Buffer.from(s);s=null,n.writeHead(),this.ws.handleUpgrade(e,t,r,(s=>{this.onWebSocket(e,t,s)}))};this._applyMiddlewares(e,n,(t=>{t?i(b.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(e,!0,i)}))}onWebSocket(e,t,s){if(s.on("error",i),void 0!==r.default[e._query.transport]&&!r.default[e._query.transport].prototype.handlesUpgrades)return f("transport doesnt handle upgraded requests"),void s.close();const n=e._query.sid;if(e.websocket=s,n){const t=this.clients[n];if(t)if(t.upgrading)f("transport has already been trying to upgrade"),s.close();else if(t.upgraded)f("transport had already been upgraded"),s.close();else{f("upgrading existing transport"),s.removeListener("error",i);const n=this.createTransport(e._query.transport,e);n.perMessageDeflate=this.opts.perMessageDeflate,t.maybeUpgrade(n)}else f("upgrade attempt for closed client"),s.close()}else{const s=(e,s)=>y(t,e,s);this.handshake(e._query.transport,e,s)}function i(){f("websocket error before upgrade")}}attach(e,t={}){const s=this._computePath(t),n=t.destroyUpgradeTimeout||1e3;function i(e){return s===e.url.slice(0,s.length)}const o=e.listeners("request").slice(0);e.removeAllListeners("request"),e.on("close",this.close.bind(this)),e.on("listening",this.init.bind(this)),e.on("request",((t,n)=>{if(i(t))f('intercepting request for path "%s"',s),this.handleRequest(t,n);else{let s=0;const i=o.length;for(;s<i;s++)o[s].call(e,t,n)}})),~this.opts.transports.indexOf("websocket")&&e.on("upgrade",((e,s,o)=>{i(e)?this.handleUpgrade(e,s,o):!1!==t.destroyUpgrade&&setTimeout((function(){if(s.writable&&s.bytesWritten<=0)return s.on("error",(e=>{f("error while destroying upgrade: %s",e.message)})),s.end()}),n)}))}}function x(e,t,s){const n=t===b.errors.FORBIDDEN?403:400,i=s&&s.message?s.message:b.errorMessages[t];e.writeHead(n,{"Content-Type":"application/json"}),e.end(JSON.stringify({code:t,message:i}))}function y(e,t,s={}){if(e.on("error",(()=>{f("ignoring error from closed connection")})),e.writable){const n=s.message||b.errorMessages[t],i=Buffer.byteLength(n);e.write("HTTP/1.1 400 Bad Request\r\nConnection: close\r\nContent-type: text/html\r\nContent-Length: "+i+"\r\n\r\n"+n)}e.destroy()}t.Server=b;const w=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]},8959:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const n=s(2361),i=s(9229),o=s(9512),r=(0,i.default)("engine:socket");class a extends n.EventEmitter{constructor(e,t,s,n,i){super(),this._readyState="opening",this.upgrading=!1,this.upgraded=!1,this.writeBuffer=[],this.packetsFn=[],this.sentCallbackFn=[],this.cleanupFn=[],this.id=e,this.server=t,this.request=n,this.protocol=i,n&&(n.websocket&&n.websocket._socket?this.remoteAddress=n.websocket._socket.remoteAddress:this.remoteAddress=n.connection.remoteAddress),this.pingTimeoutTimer=null,this.pingIntervalTimer=null,this.setTransport(s),this.onOpen()}get readyState(){return this._readyState}set readyState(e){r("readyState updated from %s to %s",this._readyState,e),this._readyState=e}onOpen(){this.readyState="open",this.transport.sid=this.id,this.sendPacket("open",JSON.stringify({sid:this.id,upgrades:this.getAvailableUpgrades(),pingInterval:this.server.opts.pingInterval,pingTimeout:this.server.opts.pingTimeout,maxPayload:this.server.opts.maxHttpBufferSize})),this.server.opts.initialPacket&&this.sendPacket("message",this.server.opts.initialPacket),this.emit("open"),3===this.protocol?this.resetPingTimeout(this.server.opts.pingInterval+this.server.opts.pingTimeout):this.schedulePing()}onPacket(e){if("open"!==this.readyState)return r("packet received with closed socket");switch(r(`received packet ${e.type}`),this.emit("packet",e),this.resetPingTimeout(this.server.opts.pingInterval+this.server.opts.pingTimeout),e.type){case"ping":if(3!==this.transport.protocol)return void this.onError("invalid heartbeat direction");r("got ping"),this.sendPacket("pong"),this.emit("heartbeat");break;case"pong":if(3===this.transport.protocol)return void this.onError("invalid heartbeat direction");r("got pong"),this.pingIntervalTimer.refresh(),this.emit("heartbeat");break;case"error":this.onClose("parse error");break;case"message":this.emit("data",e.data),this.emit("message",e.data)}}onError(e){r("transport error"),this.onClose("transport error",e)}schedulePing(){this.pingIntervalTimer=(0,o.setTimeout)((()=>{r("writing ping packet - expecting pong within %sms",this.server.opts.pingTimeout),this.sendPacket("ping"),this.resetPingTimeout(this.server.opts.pingTimeout)}),this.server.opts.pingInterval)}resetPingTimeout(e){(0,o.clearTimeout)(this.pingTimeoutTimer),this.pingTimeoutTimer=(0,o.setTimeout)((()=>{"closed"!==this.readyState&&this.onClose("ping timeout")}),e)}setTransport(e){const t=this.onError.bind(this),s=this.onPacket.bind(this),n=this.flush.bind(this),i=this.onClose.bind(this,"transport close");this.transport=e,this.transport.once("error",t),this.transport.on("packet",s),this.transport.on("drain",n),this.transport.once("close",i),this.setupSendCallback(),this.cleanupFn.push((function(){e.removeListener("error",t),e.removeListener("packet",s),e.removeListener("drain",n),e.removeListener("close",i)}))}maybeUpgrade(e){r('might upgrade socket transport from "%s" to "%s"',this.transport.name,e.name),this.upgrading=!0;const t=(0,o.setTimeout)((()=>{r("client did not complete upgrade - closing transport"),a(),"open"===e.readyState&&e.close()}),this.server.opts.upgradeTimeout);let s;const n=t=>{"ping"===t.type&&"probe"===t.data?(r("got probe ping packet, sending pong"),e.send([{type:"pong",data:"probe"}]),this.emit("upgrading",e),clearInterval(s),s=setInterval(i,100)):"upgrade"===t.type&&"closed"!==this.readyState?(r("got upgrade packet - upgrading"),a(),this.transport.discard(),this.upgraded=!0,this.clearTransport(),this.setTransport(e),this.emit("upgrade",e),this.flush(),"closing"===this.readyState&&e.close((()=>{this.onClose("forced close")}))):(a(),e.close())},i=()=>{"polling"===this.transport.name&&this.transport.writable&&(r("writing a noop packet to polling for fast upgrade"),this.transport.send([{type:"noop"}]))},a=()=>{this.upgrading=!1,clearInterval(s),(0,o.clearTimeout)(t),e.removeListener("packet",n),e.removeListener("close",l),e.removeListener("error",c),this.removeListener("close",p)},c=t=>{r("client did not complete upgrade - %s",t),a(),e.close(),e=null},l=()=>{c("transport closed")},p=()=>{c("socket closed")};e.on("packet",n),e.once("close",l),e.once("error",c),this.once("close",p)}clearTransport(){let e;const t=this.cleanupFn.length;for(let s=0;s<t;s++)e=this.cleanupFn.shift(),e();this.transport.on("error",(function(){r("error triggered by discarded transport")})),this.transport.close(),(0,o.clearTimeout)(this.pingTimeoutTimer)}onClose(e,t){"closed"!==this.readyState&&(this.readyState="closed",(0,o.clearTimeout)(this.pingIntervalTimer),(0,o.clearTimeout)(this.pingTimeoutTimer),process.nextTick((()=>{this.writeBuffer=[]})),this.packetsFn=[],this.sentCallbackFn=[],this.clearTransport(),this.emit("close",e,t))}setupSendCallback(){const e=()=>{if(this.sentCallbackFn.length>0){const e=this.sentCallbackFn.splice(0,1)[0];if("function"==typeof e)r("executing send callback"),e(this.transport);else if(Array.isArray(e)){r("executing batch send callback");const t=e.length;let s=0;for(;s<t;s++)"function"==typeof e[s]&&e[s](this.transport)}}};this.transport.on("drain",e),this.cleanupFn.push((()=>{this.transport.removeListener("drain",e)}))}send(e,t,s){return this.sendPacket("message",e,t,s),this}write(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s={},n){if("function"==typeof s&&(n=s,s={}),"closing"!==this.readyState&&"closed"!==this.readyState){r('sending packet "%s" (%s)',e,t),s.compress=!1!==s.compress;const i={type:e,options:s};t&&(i.data=t),this.emit("packetCreate",i),this.writeBuffer.push(i),n&&this.packetsFn.push(n),this.flush()}}flush(){if("closed"!==this.readyState&&this.transport.writable&&this.writeBuffer.length){r("flushing buffer to transport"),this.emit("flush",this.writeBuffer),this.server.emit("flush",this,this.writeBuffer);const e=this.writeBuffer;this.writeBuffer=[],this.transport.supportsFraming?this.sentCallbackFn.push.apply(this.sentCallbackFn,this.packetsFn):this.sentCallbackFn.push(this.packetsFn),this.packetsFn=[],this.transport.send(e),this.emit("drain"),this.server.emit("drain",this)}}getAvailableUpgrades(){const e=[],t=this.server.upgrades(this.transport.name);let s=0;const n=t.length;for(;s<n;++s){const n=t[s];-1!==this.server.opts.transports.indexOf(n)&&e.push(n)}return e}close(e){if("open"===this.readyState){if(this.readyState="closing",this.writeBuffer.length)return r("there are %d remaining packets in the buffer, waiting for the 'drain' event",this.writeBuffer.length),void this.once("drain",(()=>{r("all packets have been sent, closing the transport"),this.closeTransport(e)}));r("the buffer is empty, closing the transport right away",e),this.closeTransport(e)}}closeTransport(e){r("closing the transport (discard? %s)",e),e&&this.transport.discard(),this.transport.close(this.onClose.bind(this,"forced close"))}}t.Socket=a},9983:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=void 0;const n=s(2361),i=s(5371),o=s(8938),r=(0,s(9229).default)("engine:transport");function a(){}class c extends n.EventEmitter{constructor(e){super(),this.writable=!1,this._readyState="open",this.discarded=!1,this.protocol="4"===e._query.EIO?4:3,this.parser=4===this.protocol?i:o,this.supportsBinary=!(e._query&&e._query.b64)}get readyState(){return this._readyState}set readyState(e){r("readyState updated from %s to %s (%s)",this._readyState,e,this.name),this._readyState=e}discard(){this.discarded=!0}onRequest(e){r("setting request"),this.req=e}close(e){"closed"!==this.readyState&&"closing"!==this.readyState&&(this.readyState="closing",this.doClose(e||a))}onError(e,t){if(this.listeners("error").length){const s=new Error(e);s.type="TransportError",s.description=t,this.emit("error",s)}else r("ignored transport error %s (%s)",e,t)}onPacket(e){this.emit("packet",e)}onData(e){this.onPacket(this.parser.decodePacket(e))}onClose(){this.readyState="closed",this.emit("close")}}t.Transport=c},6374:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=s(6970),i=s(9843);t.default={polling:n.Polling,websocket:i.WebSocket}},6970:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Polling=void 0;const n=s(9983),i=s(9796),o=s(181),r=(0,s(9229).default)("engine:polling"),a={gzip:i.createGzip,deflate:i.createDeflate};class c extends n.Transport{constructor(e){super(e),this.closeTimeout=3e4}get name(){return"polling"}get supportsFraming(){return!1}onRequest(e){const t=e.res;e.res=null,"get"===e.getMethod()?this.onPollRequest(e,t):"post"===e.getMethod()?this.onDataRequest(e,t):(t.writeStatus("500 Internal Server Error"),t.end())}onPollRequest(e,t){if(this.req)return r("request overlap"),this.onError("overlap from client"),t.writeStatus("500 Internal Server Error"),void t.end();r("setting request"),this.req=e,this.res=t;e.cleanup=()=>{this.req=this.res=null},t.onAborted((()=>{this.writable=!1,this.onError("poll connection closed prematurely")})),this.writable=!0,this.emit("drain"),this.writable&&this.shouldClose&&(r("triggering empty send to append close packet"),this.send([{type:"noop"}]))}onDataRequest(e,t){if(this.dataReq)return this.onError("data request overlap from client"),t.writeStatus("500 Internal Server Error"),void t.end();const s=Number(e.headers["content-length"]);if(!s)return this.onError("content-length header required"),void t.writeStatus("411 Length Required").end();if(s>this.maxHttpBufferSize)return this.onError("payload too large"),void t.writeStatus("413 Payload Too Large").end();if("application/octet-stream"===e.headers["content-type"]&&4===this.protocol)return this.onError("invalid content");let n;this.dataReq=e,this.dataRes=t;let i=0;const o={"Content-Type":"text/html"};this.headers(e,o);for(let e in o)t.writeHeader(e,String(o[e]));const r=e=>{this.onData(e.toString()),this.onDataRequestCleanup(),t.cork((()=>{t.end("ok")}))};t.onAborted((()=>{this.onDataRequestCleanup(),this.onError("data request connection closed prematurely")})),t.onData(((e,o)=>{const a=i+e.byteLength;if(a>s)return this.onError("content-length mismatch"),void t.close();if(!n){if(o)return void r(Buffer.from(e));n=Buffer.allocUnsafe(s)}if(Buffer.from(e).copy(n,i),o)return a!=s?(this.onError("content-length mismatch"),t.writeStatus("400 Content-Length Mismatch").end(),void this.onDataRequestCleanup()):void r(n);i=a}))}onDataRequestCleanup(){this.dataReq=this.dataRes=null}onData(e){r('received "%s"',e);const t=e=>{if("close"===e.type)return r("got xhr close packet"),this.onClose(),!1;this.onPacket(e)};3===this.protocol?this.parser.decodePayload(e,t):this.parser.decodePayload(e).forEach(t)}onClose(){this.writable&&this.send([{type:"noop"}]),super.onClose()}send(e){this.writable=!1,this.shouldClose&&(r("appending close packet to payload"),e.push({type:"close"}),this.shouldClose(),this.shouldClose=null);const t=t=>{const s=e.some((e=>e.options&&e.options.compress));this.write(t,{compress:s})};3===this.protocol?this.parser.encodePayload(e,this.supportsBinary,t):this.parser.encodePayload(e,t)}write(e,t){r('writing "%s"',e),this.doWrite(e,t,(()=>{this.req.cleanup()}))}doWrite(e,t,s){const n="string"==typeof e,i={"Content-Type":n?"text/plain; charset=UTF-8":"application/octet-stream"},r=e=>{this.headers(this.req,i),this.res.cork((()=>{Object.keys(i).forEach((e=>{this.res.writeHeader(e,String(i[e]))})),this.res.end(e)})),s()};if(!this.httpCompression||!t.compress)return void r(e);if((n?Buffer.byteLength(e):e.length)<this.httpCompression.threshold)return void r(e);const a=o(this.req).encodings(["gzip","deflate"]);a?this.compress(e,a,((e,t)=>{if(e)return this.res.writeStatus("500 Internal Server Error"),this.res.end(),void s(e);i["Content-Encoding"]=a,r(t)})):r(e)}compress(e,t,s){r("compressing");const n=[];let i=0;a[t](this.httpCompression).on("error",s).on("data",(function(e){n.push(e),i+=e.length})).on("end",(function(){s(null,Buffer.concat(n,i))})).end(e)}doClose(e){let t;r("closing");const s=()=>{clearTimeout(t),e(),this.onClose()};this.writable?(r("transport writable - closing right away"),this.send([{type:"close"}]),s()):this.discarded?(r("transport discarded - closing right away"),s()):(r("transport not writable - buffering orderly close"),this.shouldClose=s,t=setTimeout(s,this.closeTimeout))}headers(e,t){t=t||{};const s=e.headers["user-agent"];return s&&(~s.indexOf(";MSIE")||~s.indexOf("Trident/"))&&(t["X-XSS-Protection"]="0"),t["cache-control"]="no-store",this.emit("headers",t,e),t}}t.Polling=c},9843:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const n=s(9983),i=(0,s(9229).default)("engine:ws");class o extends n.Transport{constructor(e){super(e),this.writable=!1,this.perMessageDeflate=null}get name(){return"websocket"}get handlesUpgrades(){return!0}get supportsFraming(){return!0}send(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],n=t+1===e.length,o=e=>{const t="string"!=typeof e,s=this.perMessageDeflate&&Buffer.byteLength(e)>this.perMessageDeflate.threshold;i('writing "%s"',e),this.socket.send(e,t,s),n&&(this.writable=!0,this.emit("drain"))};s.options&&"string"==typeof s.options.wsPreEncoded?o(s.options.wsPreEncoded):this.parser.encodePacket(s,this.supportsBinary,o)}}doClose(e){i("closing"),e&&e(),this.socket.end()}}t.WebSocket=o},7541:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=s(1963),i=s(3434),o=s(7087),r=s(3176);function a(e){return"string"==typeof e._query.j?new i.JSONP(e):new n.Polling(e)}t.default={polling:a,websocket:o.WebSocket,webtransport:r.WebTransport},a.upgradesTo=["websocket","webtransport"]},3434:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONP=void 0;const n=s(1963),i=s(3477),o=/\\\\n/g,r=/(\\)?\\n/g;class a extends n.Polling{constructor(e){super(e),this.head="___eio["+(e._query.j||"").replace(/[^0-9]/g,"")+"](",this.foot=");"}onData(e){"string"==typeof(e=i.parse(e).d)&&(e=e.replace(r,(function(e,t){return t?e:"\n"})),super.onData(e.replace(o,"\\n")))}doWrite(e,t,s){const n=JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");e=this.head+n+this.foot,super.doWrite(e,t,s)}}t.JSONP=a},1963:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Polling=void 0;const n=s(9983),i=s(9796),o=s(181),r=(0,s(9229).default)("engine:polling"),a={gzip:i.createGzip,deflate:i.createDeflate};class c extends n.Transport{constructor(e){super(e),this.closeTimeout=3e4}get name(){return"polling"}get supportsFraming(){return!1}onRequest(e){const t=e.res;e.res=null,"GET"===e.method?this.onPollRequest(e,t):"POST"===e.method?this.onDataRequest(e,t):(t.writeHead(500),t.end())}onPollRequest(e,t){if(this.req)return r("request overlap"),this.onError("overlap from client"),t.writeHead(400),void t.end();r("setting request"),this.req=e,this.res=t;const s=()=>{this.onError("poll connection closed prematurely")};e.cleanup=()=>{e.removeListener("close",s),this.req=this.res=null},e.on("close",s),this.writable=!0,this.emit("drain"),this.writable&&this.shouldClose&&(r("triggering empty send to append close packet"),this.send([{type:"noop"}]))}onDataRequest(e,t){if(this.dataReq)return this.onError("data request overlap from client"),t.writeHead(400),void t.end();const s="application/octet-stream"===e.headers["content-type"];if(s&&4===this.protocol)return this.onError("invalid content");this.dataReq=e,this.dataRes=t;let n=s?Buffer.concat([]):"";const i=()=>{e.removeListener("data",r),e.removeListener("end",a),e.removeListener("close",o),this.dataReq=this.dataRes=n=null},o=()=>{i(),this.onError("data request connection closed prematurely")},r=e=>{let o;s?(n=Buffer.concat([n,e]),o=n.length):(n+=e,o=Buffer.byteLength(n)),o>this.maxHttpBufferSize&&(t.writeHead(413).end(),i())},a=()=>{this.onData(n);t.writeHead(200,this.headers(e,{"Content-Type":"text/html","Content-Length":2})),t.end("ok"),i()};e.on("close",o),s||e.setEncoding("utf8"),e.on("data",r),e.on("end",a)}onData(e){r('received "%s"',e);const t=e=>{if("close"===e.type)return r("got xhr close packet"),this.onClose(),!1;this.onPacket(e)};3===this.protocol?this.parser.decodePayload(e,t):this.parser.decodePayload(e).forEach(t)}onClose(){this.writable&&this.send([{type:"noop"}]),super.onClose()}send(e){this.writable=!1,this.shouldClose&&(r("appending close packet to payload"),e.push({type:"close"}),this.shouldClose(),this.shouldClose=null);const t=t=>{const s=e.some((e=>e.options&&e.options.compress));this.write(t,{compress:s})};3===this.protocol?this.parser.encodePayload(e,this.supportsBinary,t):this.parser.encodePayload(e,t)}write(e,t){r('writing "%s"',e),this.doWrite(e,t,(()=>{this.req.cleanup()}))}doWrite(e,t,s){const n="string"==typeof e,i={"Content-Type":n?"text/plain; charset=UTF-8":"application/octet-stream"},r=e=>{i["Content-Length"]="string"==typeof e?Buffer.byteLength(e):e.length,this.res.writeHead(200,this.headers(this.req,i)),this.res.end(e),s()};if(!this.httpCompression||!t.compress)return void r(e);if((n?Buffer.byteLength(e):e.length)<this.httpCompression.threshold)return void r(e);const a=o(this.req).encodings(["gzip","deflate"]);a?this.compress(e,a,((e,t)=>{if(e)return this.res.writeHead(500),this.res.end(),void s(e);i["Content-Encoding"]=a,r(t)})):r(e)}compress(e,t,s){r("compressing");const n=[];let i=0;a[t](this.httpCompression).on("error",s).on("data",(function(e){n.push(e),i+=e.length})).on("end",(function(){s(null,Buffer.concat(n,i))})).end(e)}doClose(e){let t;r("closing"),this.dataReq&&(r("aborting ongoing data request"),this.dataReq.destroy());const s=()=>{clearTimeout(t),e(),this.onClose()};this.writable?(r("transport writable - closing right away"),this.send([{type:"close"}]),s()):this.discarded?(r("transport discarded - closing right away"),s()):(r("transport not writable - buffering orderly close"),this.shouldClose=s,t=setTimeout(s,this.closeTimeout))}headers(e,t){t=t||{};const s=e.headers["user-agent"];return s&&(~s.indexOf(";MSIE")||~s.indexOf("Trident/"))&&(t["X-XSS-Protection"]="0"),t["cache-control"]="no-store",this.emit("headers",t,e),t}}t.Polling=c},7087:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const n=s(9983),i=(0,s(9229).default)("engine:ws");class o extends n.Transport{constructor(e){super(e),this.socket=e.websocket,this.socket.on("message",((e,t)=>{const s=t?e:e.toString();i('received "%s"',s),super.onData(s)})),this.socket.once("close",this.onClose.bind(this)),this.socket.on("error",this.onError.bind(this)),this.writable=!0,this.perMessageDeflate=null}get name(){return"websocket"}get handlesUpgrades(){return!0}get supportsFraming(){return!0}send(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],n=t+1===e.length,o={};s.options&&(o.compress=s.options.compress);const r=e=>{if(e)return this.onError("write error",e.stack);n&&(this.writable=!0,this.emit("drain"))},a=e=>{if(this.perMessageDeflate){("string"==typeof e?Buffer.byteLength(e):e.length)<this.perMessageDeflate.threshold&&(o.compress=!1)}i('writing "%s"',e),this.socket.send(e,o,r)};s.options&&"string"==typeof s.options.wsPreEncoded?a(s.options.wsPreEncoded):this._canSendPreEncodedFrame(s)?this.socket._sender.sendFrame(s.options.wsPreEncodedFrame,r):this.parser.encodePacket(s,this.supportsBinary,a)}}_canSendPreEncodedFrame(e){var t,s,n;return!this.perMessageDeflate&&"function"==typeof(null===(s=null===(t=this.socket)||void 0===t?void 0:t._sender)||void 0===s?void 0:s.sendFrame)&&void 0!==(null===(n=e.options)||void 0===n?void 0:n.wsPreEncodedFrame)}doClose(e){i("closing"),this.socket.close(),e&&e()}}t.WebSocket=o},3176:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebTransport=void 0;const n=s(9983),i=s(9229),o=s(5371),r=(0,i.default)("engine:webtransport");class a extends n.Transport{constructor(e,t,s){super({_query:{EIO:"4"}}),this.session=e;const n=(0,o.createPacketEncoderStream)();n.readable.pipeTo(t.writable).catch((()=>{r("the stream was closed")})),this.writer=n.writable.getWriter(),(async()=>{try{for(;;){const{value:e,done:t}=await s.read();if(t){r("session is closed");break}r("received chunk: %o",e),this.onPacket(e)}}catch(e){r("error while reading: %s",e.message)}})(),e.closed.then((()=>this.onClose())),this.writable=!0}get name(){return"webtransport"}get supportsFraming(){return!0}async send(e){this.writable=!1;try{for(let t=0;t<e.length;t++){const s=e[t];await this.writer.write(s)}}catch(e){r("error while writing: %s",e.message)}this.writable=!0,this.emit("drain")}doClose(e){r("closing WebTransport session"),this.session.close(),e&&e()}}t.WebTransport=a},9239:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uServer=void 0;const n=s(9229),i=s(9870),o=s(6374),r=(0,n.default)("engine:uws");class a extends i.BaseServer{init(){}cleanup(){}prepare(e,t){e.method=e.getMethod().toUpperCase(),e.url=e.getUrl();const s=new URLSearchParams(e.getQuery());e._query=Object.fromEntries(s.entries()),e.headers={},e.forEach(((t,s)=>{e.headers[t]=s})),e.connection={remoteAddress:Buffer.from(t.getRemoteAddressAsText()).toString()},t.onAborted((()=>{r("response has been aborted")}))}createTransport(e,t){return new o.default[e](t)}attach(e,t={}){const s=this._computePath(t);e.any(s,this.handleRequest.bind(this)).ws(s,{compression:t.compression,idleTimeout:t.idleTimeout,maxBackpressure:t.maxBackpressure,maxPayloadLength:this.opts.maxHttpBufferSize,upgrade:this.handleUpgrade.bind(this),open:e=>{const t=e.getUserData().transport;t.socket=e,t.writable=!0,t.emit("drain")},message:(e,t,s)=>{e.getUserData().transport.onData(s?t:Buffer.from(t).toString())},close:(e,t,s)=>{e.getUserData().transport.onClose(t,s)}})}_applyMiddlewares(e,t,s){if(0===this.middlewares.length)return s();e.res=new c(t),super._applyMiddlewares(e,e.res,(t=>{e.res.writeHead(),s(t)}))}handleRequest(e,t){r('handling "%s" http request "%s"',t.getMethod(),t.getUrl()),this.prepare(t,e),t.res=e;const s=(s,n)=>{if(void 0!==s)return this.emit("connection_error",{req:t,code:s,message:i.Server.errorMessages[s],context:n}),void this.abortRequest(t.res,s,n);if(t._query.sid)r("setting new request for existing client"),this.clients[t._query.sid].transport.onRequest(t);else{const s=(t,s)=>this.abortRequest(e,t,s);this.handshake(t._query.transport,t,s)}};this._applyMiddlewares(t,e,(e=>{e?s(i.Server.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(t,!1,s)}))}handleUpgrade(e,t,s){r("on upgrade"),this.prepare(t,e),t.res=e;const n=async(n,o)=>{if(void 0!==n)return this.emit("connection_error",{req:t,code:n,message:i.Server.errorMessages[n],context:o}),void this.abortRequest(e,n,o);const a=t._query.sid;let c;if(a){const s=this.clients[a];s?s.upgrading?(r("transport has already been trying to upgrade"),e.close()):s.upgraded?(r("transport had already been upgraded"),e.close()):(r("upgrading existing transport"),c=this.createTransport(t._query.transport,t),s.maybeUpgrade(c)):(r("upgrade attempt for closed client"),e.close())}else if(c=await this.handshake(t._query.transport,t,((t,s)=>this.abortRequest(e,t,s))),!c)return;t.res.writeStatus("101 Switching Protocols"),e.upgrade({transport:c},t.getHeader("sec-websocket-key"),t.getHeader("sec-websocket-protocol"),t.getHeader("sec-websocket-extensions"),s)};this._applyMiddlewares(t,e,(e=>{e?n(i.Server.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(t,!0,n)}))}abortRequest(e,t,s){const n=t===i.Server.errors.FORBIDDEN?"403 Forbidden":"400 Bad Request",o=s&&s.message?s.message:i.Server.errorMessages[t];e.writeStatus(n),e.writeHeader("Content-Type","application/json"),e.end(JSON.stringify({code:t,message:o}))}}t.uServer=a;class c{constructor(e){this.res=e,this.statusWritten=!1,this.headers=[],this.isAborted=!1}set statusCode(e){e&&this.writeStatus(200===e?"200 OK":"204 No Content")}writeHead(e){this.statusCode=e}setHeader(e,t){Array.isArray(t)?t.forEach((t=>{this.writeHeader(e,t)})):this.writeHeader(e,t)}removeHeader(){}getHeader(){}writeStatus(e){if(!this.isAborted)return this.res.writeStatus(e),this.statusWritten=!0,this.writeBufferedHeaders(),this}writeHeader(e,t){this.isAborted||"Content-Length"!==e&&(this.statusWritten?this.res.writeHeader(e,t):this.headers.push([e,t]))}writeBufferedHeaders(){this.headers.forEach((([e,t])=>{this.res.writeHeader(e,t)}))}end(e){this.isAborted||this.res.cork((()=>{this.statusWritten||this.writeBufferedHeaders(),this.res.end(e)}))}onData(e){this.isAborted||this.res.onData(e)}onAborted(e){this.isAborted||this.res.onAborted((()=>{this.isAborted=!0,e()}))}cork(e){this.isAborted||this.res.cork(e)}}},6655:e=>{e.exports={nanoid:(e=21)=>{let t="",s=e;for(;s--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(s=t)=>{let n="",i=s;for(;i--;)n+=e[Math.random()*e.length|0];return n}}},7587:(e,t)=>{"use strict";function s(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=void 0,t.Backoff=s,s.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),s=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+s:e-s}return 0|Math.min(e,this.max)},s.prototype.reset=function(){this.attempts=0},s.prototype.setMin=function(e){this.ms=e},s.prototype.setMax=function(e){this.max=e},s.prototype.setJitter=function(e){this.jitter=e}},8712:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const i=s(9631),o=s(2035);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const r=s(6560);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return r.Socket}});const a=n(s(9229)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const s=i.url(e,t.path||"/socket.io"),n=s.source,r=s.id,l=s.path,p=c[r]&&l in c[r].nsps;let u;return t.forceNew||t["force new connection"]||!1===t.multiplex||p?(a("ignoring socket cache for %s",n),u=new o.Manager(n,t)):(c[r]||(a("new io instance for %s",n),c[r]=new o.Manager(n,t)),u=c[r]),s.query&&!t.query&&(t.query=s.queryKey),u.socket(s.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:o.Manager,Socket:r.Socket,io:l,connect:l});var p=s(4815);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return p.protocol}}),e.exports=l},2035:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&n(t,e,s);return i(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const a=s(6133),c=s(6560),l=o(s(4815)),p=s(3004),u=s(7587),d=s(4529),h=r(s(9229)).default("socket.io-client:manager");class f extends d.Emitter{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,a.installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=t.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new u.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=p.on(t,"open",(function(){s.onopen(),e&&e()})),i=t=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=p.on(t,"error",i);if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e);const s=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(p.on(e,"ping",this.onping.bind(this)),p.on(e,"data",this.ondata.bind(this)),p.on(e,"error",this.onerror.bind(this)),p.on(e,"close",this.onclose.bind(this)),p.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){a.nextTick((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){h("error",e),this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new c.Socket(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return void h("socket %s is still active, skipping close",e)}this._close()}_packet(e){h("writing packet %j",e);const t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){h("cleanup"),this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){h("closed due to %s",e),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();h("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const s=this.setTimeoutFn((()=>{e.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(h("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(h("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=f},3004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,s){return e.on(t,s),function(){e.off(t,s)}}},6560:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=s(4815),o=s(3004),r=s(4529),a=n(s(9229)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends r.Emitter{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[o.on(e,"open",this.onopen.bind(this)),o.on(e,"packet",this.onpacket.bind(this)),o.on(e,"error",this.onerror.bind(this)),o.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(c.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const s={type:i.PacketType.EVENT,data:t,options:{}};if(s.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++;a("emitting packet with ack id %d",e);const n=t.pop();this._registerAckCallback(e,n),s.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!n||!this.connected)?a("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s),this.flags={},this}_registerAckCallback(e,t){var s;const n=null!==(s=this.flags.timeout)&&void 0!==s?s:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const i=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&(a("removing packet with ack id %d from the buffer",e),this.sendBuffer.splice(t,1));a("event with ack id %d has timed out after %d ms",e,n),t.call(this,new Error("operation has timed out"))}),n);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const s=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((n,i)=>{t.push(((e,t)=>s?e?i(e):n(t):n(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(s!==this._queue[0])return;return null!==e?s.tryCount>this._opts.retries&&(a("packet [%d] is discarded after %d tries",s.id,s.tryCount),this._queue.shift(),t&&t(e)):(a("packet [%d] was successfully sent",s.id),this._queue.shift(),t&&t(null,...n)),s.pending=!1,this._drainQueue()})),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(a("draining queue"),!this.connected||0===this._queue.length)return;const t=this._queue[0];!t.pending||e?(t.pending=!0,t.tryCount++,a("sending packet [%d] (try n°%d)",t.id,t.tryCount),this.flags=t.flags,this.emit.apply(this,t.args)):a("packet [%d] has already been sent and is waiting for an ack",t.id)}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){a("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:i.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){a("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case i.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case i.PacketType.EVENT:case i.PacketType.BINARY_EVENT:this.onevent(e);break;case i.PacketType.ACK:case i.PacketType.BINARY_ACK:this.onack(e);break;case i.PacketType.DISCONNECT:this.ondisconnect();break;case i.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];a("emitting event %j",t),null!=e.id&&(a("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...n){s||(s=!0,a("sending ack %j",n),t.packet({type:i.PacketType.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(a("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):a("bad ack %s",e.id)}onconnect(e,t){a("socket connected with id %s",e),this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:i.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}t.Socket=l},9631:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;const i=s(6133),o=n(s(9229)).default("socket.io-client:url");t.url=function(e,t="",s){let n=e;s=s||"undefined"!=typeof location&&location,null==e&&(e=s.protocol+"//"+s.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?s.protocol+e:s.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==s?s.protocol+"//"+e:"https://"+e),o("parse %s",e),n=i.parse(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const r=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+r+":"+n.port+t,n.href=n.protocol+"://"+r+(s&&s.port===n.port?"":":"+n.port),n}},9182:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=s(9485);function i(e,t){if(!e)return e;if((0,n.isBinary)(e)){const s={_placeholder:!0,num:t.length};return t.push(e),s}if(Array.isArray(e)){const s=new Array(e.length);for(let n=0;n<e.length;n++)s[n]=i(e[n],t);return s}if("object"==typeof e&&!(e instanceof Date)){const s={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(s[n]=i(e[n],t));return s}return e}function o(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let s=0;s<e.length;s++)e[s]=o(e[s],t);else if("object"==typeof e)for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=o(e[s],t));return e}t.deconstructPacket=function(e){const t=[],s=e.data,n=e;return n.data=i(s,t),n.attachments=t.length,{packet:n,buffers:t}},t.reconstructPacket=function(e,t){return e.data=o(e.data,t),delete e.attachments,e}},4815:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=s(4529),i=s(9182),o=s(9485),r=(0,s(9229).default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var c;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(c=t.PacketType||(t.PacketType={}));function l(e){return"[object Object]"===Object.prototype.toString.call(e)}t.Encoder=class{constructor(e){this.replacer=e}encode(e){return r("encoding packet %j",e),e.type!==c.EVENT&&e.type!==c.ACK||!(0,o.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==c.BINARY_EVENT&&e.type!==c.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),r("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=(0,i.deconstructPacket)(e),s=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(s),n}};class p extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===c.BINARY_EVENT;s||t.type===c.BINARY_ACK?(t.type=s?c.EVENT:c.ACK,this.reconstructor=new u(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,o.isBinary)(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(void 0===c[s.type])throw new Error("unknown packet type "+s.type);if(s.type===c.BINARY_EVENT||s.type===c.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");s.attachments=Number(i)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}s.nsp=e.substring(n,t)}else s.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const s=e.charAt(t);if(null==s||Number(s)!=s){--t;break}if(t===e.length)break}s.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!p.isPayloadValid(s.type,n))throw new Error("invalid payload");s.data=n}return r("decoded %s as %j",e,s),s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case c.CONNECT:return l(t);case c.DISCONNECT:return void 0===t;case c.CONNECT_ERROR:return"string"==typeof t||l(t);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===a.indexOf(t[0]));case c.ACK:case c.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}t.Decoder=p;class u{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=(0,i.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},9485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const s="function"==typeof ArrayBuffer,n=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),o="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function r(e){return s&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||i&&e instanceof Blob||o&&e instanceof File}t.isBinary=r,t.hasBinary=function e(t,s){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let s=0,n=t.length;s<n;s++)if(e(t[s]))return!0;return!1}if(r(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e(t[s]))return!0;return!1}},3558:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteSocket=t.BroadcastOperator=void 0;const n=s(2898),i=s(4815);class o{constructor(e,t=new Set,s=new Set,n={}){this.adapter=e,this.rooms=t,this.exceptRooms=s,this.flags=n}to(e){const t=new Set(this.rooms);return Array.isArray(e)?e.forEach((e=>t.add(e))):t.add(e),new o(this.adapter,t,this.exceptRooms,this.flags)}in(e){return this.to(e)}except(e){const t=new Set(this.exceptRooms);return Array.isArray(e)?e.forEach((e=>t.add(e))):t.add(e),new o(this.adapter,this.rooms,t,this.flags)}compress(e){const t=Object.assign({},this.flags,{compress:e});return new o(this.adapter,this.rooms,this.exceptRooms,t)}get volatile(){const e=Object.assign({},this.flags,{volatile:!0});return new o(this.adapter,this.rooms,this.exceptRooms,e)}get local(){const e=Object.assign({},this.flags,{local:!0});return new o(this.adapter,this.rooms,this.exceptRooms,e)}timeout(e){const t=Object.assign({},this.flags,{timeout:e});return new o(this.adapter,this.rooms,this.exceptRooms,t)}emit(e,...t){if(n.RESERVED_EVENTS.has(e))throw new Error(`"${String(e)}" is a reserved event name`);const s=[e,...t],o={type:i.PacketType.EVENT,data:s};if(!("function"==typeof s[s.length-1]))return this.adapter.broadcast(o,{rooms:this.rooms,except:this.exceptRooms,flags:this.flags}),!0;const r=s.pop();let a=!1,c=[];const l=setTimeout((()=>{a=!0,r.apply(this,[new Error("operation has timed out"),this.flags.expectSingleResponse?null:c])}),this.flags.timeout);let p=-1,u=0,d=0;const h=()=>{a||p!==u||c.length!==d||(clearTimeout(l),r.apply(this,[null,this.flags.expectSingleResponse?c[0]:c]))};return this.adapter.broadcastWithAck(o,{rooms:this.rooms,except:this.exceptRooms,flags:this.flags},(e=>{d+=e,u++,h()}),(e=>{c.push(e),h()})),this.adapter.serverCount().then((e=>{p=e,h()})),!0}emitWithAck(e,...t){return new Promise(((s,n)=>{t.push(((e,t)=>e?(e.responses=t,n(e)):s(t))),this.emit(e,...t)}))}allSockets(){if(!this.adapter)throw new Error("No adapter for this namespace, are you trying to get the list of clients of a dynamic namespace?");return this.adapter.sockets(this.rooms)}fetchSockets(){return this.adapter.fetchSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags}).then((e=>e.map((e=>e instanceof n.Socket?e:new r(this.adapter,e)))))}socketsJoin(e){this.adapter.addSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},Array.isArray(e)?e:[e])}socketsLeave(e){this.adapter.delSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},Array.isArray(e)?e:[e])}disconnectSockets(e=!1){this.adapter.disconnectSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},e)}}t.BroadcastOperator=o;class r{constructor(e,t){this.id=t.id,this.handshake=t.handshake,this.rooms=new Set(t.rooms),this.data=t.data,this.operator=new o(e,new Set([this.id]),new Set,{expectSingleResponse:!0})}timeout(e){return this.operator.timeout(e)}emit(e,...t){return this.operator.emit(e,...t)}join(e){return this.operator.socketsJoin(e)}leave(e){return this.operator.socketsLeave(e)}disconnect(e=!1){return this.operator.disconnectSockets(e),this}}t.RemoteSocket=r},7269:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const n=s(4815),i=s(9229),o=s(7310),r=i("socket.io:client");t.Client=class{constructor(e,t){this.sockets=new Map,this.nsps=new Map,this.server=e,this.conn=t,this.encoder=e.encoder,this.decoder=new e._parser.Decoder,this.id=t.id,this.setup()}get request(){return this.conn.request}setup(){this.onclose=this.onclose.bind(this),this.ondata=this.ondata.bind(this),this.onerror=this.onerror.bind(this),this.ondecoded=this.ondecoded.bind(this),this.decoder.on("decoded",this.ondecoded),this.conn.on("data",this.ondata),this.conn.on("error",this.onerror),this.conn.on("close",this.onclose),this.connectTimeout=setTimeout((()=>{0===this.nsps.size?(r("no namespace joined yet, close the client"),this.close()):r("the client has already joined a namespace, nothing to do")}),this.server._connectTimeout)}connect(e,t={}){if(this.server._nsps.has(e))return r("connecting to namespace %s",e),this.doConnect(e,t);this.server._checkNamespace(e,t,(s=>{s?this.doConnect(e,t):(r("creation of namespace %s was denied",e),this._packet({type:n.PacketType.CONNECT_ERROR,nsp:e,data:{message:"Invalid namespace"}}))}))}doConnect(e,t){const s=this.server.of(e);s._add(this,t,(e=>{this.sockets.set(e.id,e),this.nsps.set(s.name,e),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0)}))}_disconnect(){for(const e of this.sockets.values())e.disconnect();this.sockets.clear(),this.close()}_remove(e){if(this.sockets.has(e.id)){const t=this.sockets.get(e.id).nsp.name;this.sockets.delete(e.id),this.nsps.delete(t)}else r("ignoring remove for %s",e.id)}close(){"open"===this.conn.readyState&&(r("forcing transport close"),this.conn.close(),this.onclose("forced server close"))}_packet(e,t={}){if("open"!==this.conn.readyState)return void r("ignoring packet write %j",e);const s=t.preEncoded?e:this.encoder.encode(e);this.writeToEngine(s,t)}writeToEngine(e,t){if(t.volatile&&!this.conn.transport.writable)return void r("volatile packet is discarded since the transport is not currently writable");const s=Array.isArray(e)?e:[e];for(const e of s)this.conn.write(e,t)}ondata(e){try{this.decoder.add(e)}catch(e){r("invalid packet format"),this.onerror(e)}}ondecoded(e){let t,s;if(3===this.conn.protocol){const n=o.parse(e.nsp,!0);t=n.pathname,s=n.query}else t=e.nsp,s=e.data;const i=this.nsps.get(t);i||e.type!==n.PacketType.CONNECT?i&&e.type!==n.PacketType.CONNECT&&e.type!==n.PacketType.CONNECT_ERROR?process.nextTick((function(){i._onpacket(e)})):(r("invalid state (packet type: %s)",e.type),this.close()):this.connect(t,s)}onerror(e){for(const t of this.sockets.values())t._onerror(e);this.conn.close()}onclose(e,t){r("client close with reason %s",e),this.destroy();for(const s of this.sockets.values())s._onclose(e,t);this.sockets.clear(),this.decoder.destroy()}destroy(){this.conn.removeListener("data",this.ondata),this.conn.removeListener("error",this.onerror),this.conn.removeListener("close",this.onclose),this.decoder.removeListener("decoded",this.ondecoded),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0)}}},2625:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var i=Object.getOwnPropertyDescriptor(t,s);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,i)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&n(t,e,s);return i(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Namespace=t.Socket=t.Server=void 0;const a=s(3685),c=s(7147),l=s(9796),p=s(181),u=s(2781),d=s(1017),h=s(442),f=s(7269),m=s(2361),g=s(3929);Object.defineProperty(t,"Namespace",{enumerable:!0,get:function(){return g.Namespace}});const v=s(5268),b=s(9098),x=o(s(4815)),y=r(s(9229)),w=s(2898);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return w.Socket}});const _=s(12),k=s(7117),S=r(s(9920)),E=(0,y.default)("socket.io:server"),T=s(1751).i8,O=/\.map/;class C extends _.StrictEventEmitter{constructor(e,t={}){super(),this._nsps=new Map,this.parentNsps=new Map,this.parentNamespacesFromRegExp=new Map,"object"==typeof e&&e instanceof Object&&!e.listen&&(t=e,e=void 0),this.path(t.path||"/socket.io"),this.connectTimeout(t.connectTimeout||45e3),this.serveClient(!1!==t.serveClient),this._parser=t.parser||x,this.encoder=new this._parser.Encoder,this.opts=t,t.connectionStateRecovery?(t.connectionStateRecovery=Object.assign({maxDisconnectionDuration:12e4,skipMiddlewares:!0},t.connectionStateRecovery),this.adapter(t.adapter||b.SessionAwareAdapter)):this.adapter(t.adapter||b.Adapter),t.cleanupEmptyChildNamespaces=!!t.cleanupEmptyChildNamespaces,this.sockets=this.of("/"),(e||"number"==typeof e)&&this.attach(e),this.opts.cors&&(this._corsMiddleware=(0,S.default)(this.opts.cors))}get _opts(){return this.opts}serveClient(e){return arguments.length?(this._serveClient=e,this):this._serveClient}_checkNamespace(e,t,s){if(0===this.parentNsps.size)return s(!1);const n=this.parentNsps.keys(),i=()=>{const o=n.next();if(o.done)return s(!1);o.value(e,t,((t,n)=>{if(t||!n)return i();if(this._nsps.has(e))return E("dynamic namespace %s already exists",e),s(this._nsps.get(e));const r=this.parentNsps.get(o.value).createChild(e);E("dynamic namespace %s was created",e),s(r)}))};i()}path(e){if(!arguments.length)return this._path;this._path=e.replace(/\/$/,"");const t=this._path.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return this.clientPathRegex=new RegExp("^"+t+"/socket\\.io(\\.msgpack|\\.esm)?(\\.min)?\\.js(\\.map)?(?:\\?|$)"),this}connectTimeout(e){return void 0===e?this._connectTimeout:(this._connectTimeout=e,this)}adapter(e){if(!arguments.length)return this._adapter;this._adapter=e;for(const e of this._nsps.values())e._initAdapter();return this}listen(e,t={}){return this.attach(e,t)}attach(e,t={}){if("function"==typeof e){throw new Error("You are trying to attach socket.io to an express request handler function. Please pass a http.Server instance.")}if(Number(e)==e&&(e=Number(e)),"number"==typeof e){E("creating http server and binding to %d",e);const t=e;(e=a.createServer(((e,t)=>{t.writeHead(404),t.end()}))).listen(t)}return Object.assign(t,this.opts),t.path=t.path||this._path,this.initEngine(e,t),this}attachApp(e,t={}){Object.assign(t,this.opts),t.path=t.path||this._path,E("creating uWebSockets.js-based engine with opts %j",t);const s=new h.uServer(t);s.attach(e,t),this.bind(s),this._serveClient&&e.get(`${this._path}/*`,((e,t)=>{if(!this.clientPathRegex.test(t.getUrl()))return void t.setYield(!0);const s=t.getUrl().replace(this._path,"").replace(/\?.*$/,"").replace(/^\//,""),n=O.test(s),i=n?"map":"source",o='"'+T+'"',r="W/"+o,a=t.getHeader("if-none-match");if(a&&(o===a||r===a))return E("serve client %s 304",i),e.writeStatus("304 Not Modified"),void e.end();E("serve client %s",i),e.writeHeader("cache-control","public, max-age=0"),e.writeHeader("content-type","application/"+(n?"json":"javascript")+"; charset=utf-8"),e.writeHeader("etag",o);const c=d.join(__dirname,"../client-dist/",s);(0,k.serveFile)(e,c)})),(0,k.patchAdapter)(e)}initEngine(e,t){E("creating engine.io instance with opts %j",t),this.eio=(0,h.attach)(e,t),this._serveClient&&this.attachServe(e),this.httpServer=e,this.bind(this.eio)}attachServe(e){E("attaching client serving req handler");const t=e.listeners("request").slice(0);e.removeAllListeners("request"),e.on("request",((s,n)=>{if(this.clientPathRegex.test(s.url))this._corsMiddleware?this._corsMiddleware(s,n,(()=>{this.serve(s,n)})):this.serve(s,n);else for(let i=0;i<t.length;i++)t[i].call(e,s,n)}))}serve(e,t){const s=e.url.replace(this._path,"").replace(/\?.*$/,""),n=O.test(s),i=n?"map":"source",o='"'+T+'"',r="W/"+o,a=e.headers["if-none-match"];if(a&&(o===a||r===a))return E("serve client %s 304",i),t.writeHead(304),void t.end();E("serve client %s",i),t.setHeader("Cache-Control","public, max-age=0"),t.setHeader("Content-Type","application/"+(n?"json":"javascript")+"; charset=utf-8"),t.setHeader("ETag",o),C.sendFile(s,e,t)}static sendFile(e,t,s){const n=(0,c.createReadStream)(d.join(__dirname,"../client-dist/",e)),i=e=>{e&&s.end()};switch(p(t).encodings(["br","gzip","deflate"])){case"br":s.writeHead(200,{"content-encoding":"br"}),n.pipe((0,l.createBrotliCompress)()).pipe(s),(0,u.pipeline)(n,(0,l.createBrotliCompress)(),s,i);break;case"gzip":s.writeHead(200,{"content-encoding":"gzip"}),(0,u.pipeline)(n,(0,l.createGzip)(),s,i);break;case"deflate":s.writeHead(200,{"content-encoding":"deflate"}),(0,u.pipeline)(n,(0,l.createDeflate)(),s,i);break;default:s.writeHead(200),(0,u.pipeline)(n,s,i)}}bind(e){return this.engine=e,this.engine.on("connection",this.onconnection.bind(this)),this}onconnection(e){E("incoming connection with id %s",e.id);const t=new f.Client(this,e);return 3===e.protocol&&t.connect("/"),this}of(e,t){if("function"==typeof e||e instanceof RegExp){const s=new v.ParentNamespace(this);return E("initializing parent namespace %s",s.name),"function"==typeof e?this.parentNsps.set(e,s):(this.parentNsps.set(((t,s,n)=>n(null,e.test(t))),s),this.parentNamespacesFromRegExp.set(e,s)),t&&s.on("connect",t),s}"/"!==String(e)[0]&&(e="/"+e);let s=this._nsps.get(e);if(!s){for(const[t,s]of this.parentNamespacesFromRegExp)if(t.test(e))return E("attaching namespace %s to parent namespace %s",e,t),s.createChild(e);E("initializing namespace %s",e),s=new g.Namespace(this,e),this._nsps.set(e,s),"/"!==e&&this.sockets.emitReserved("new_namespace",s)}return t&&s.on("connect",t),s}close(e){for(const e of this.sockets.sockets.values())e._onclose("server shutting down");this.engine.close(),(0,k.restoreAdapter)(),this.httpServer?this.httpServer.close(e):e&&e()}use(e){return this.sockets.use(e),this}to(e){return this.sockets.to(e)}in(e){return this.sockets.in(e)}except(e){return this.sockets.except(e)}send(...e){return this.sockets.emit("message",...e),this}write(...e){return this.sockets.emit("message",...e),this}serverSideEmit(e,...t){return this.sockets.serverSideEmit(e,...t)}serverSideEmitWithAck(e,...t){return this.sockets.serverSideEmitWithAck(e,...t)}allSockets(){return this.sockets.allSockets()}compress(e){return this.sockets.compress(e)}get volatile(){return this.sockets.volatile}get local(){return this.sockets.local}timeout(e){return this.sockets.timeout(e)}fetchSockets(){return this.sockets.fetchSockets()}socketsJoin(e){return this.sockets.socketsJoin(e)}socketsLeave(e){return this.sockets.socketsLeave(e)}disconnectSockets(e=!1){return this.sockets.disconnectSockets(e)}}t.Server=C;Object.keys(m.EventEmitter.prototype).filter((function(e){return"function"==typeof m.EventEmitter.prototype[e]})).forEach((function(e){C.prototype[e]=function(){return this.sockets[e].apply(this.sockets,arguments)}})),e.exports=(e,t)=>new C(e,t),e.exports.Server=C,e.exports.Namespace=g.Namespace,e.exports.Socket=w.Socket;s(2898)},3929:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Namespace=t.RESERVED_EVENTS=void 0;const i=s(2898),o=s(12),r=n(s(9229)),a=s(3558),c=(0,r.default)("socket.io:namespace");t.RESERVED_EVENTS=new Set(["connect","connection","new_namespace"]);class l extends o.StrictEventEmitter{constructor(e,t){super(),this.sockets=new Map,this._fns=[],this._ids=0,this.server=e,this.name=t,this._initAdapter()}_initAdapter(){this.adapter=new(this.server.adapter())(this)}use(e){return this._fns.push(e),this}run(e,t){const s=this._fns.slice(0);if(!s.length)return t(null);!function n(i){s[i](e,(function(e){return e?t(e):s[i+1]?void n(i+1):t(null)}))}(0)}to(e){return new a.BroadcastOperator(this.adapter).to(e)}in(e){return new a.BroadcastOperator(this.adapter).in(e)}except(e){return new a.BroadcastOperator(this.adapter).except(e)}async _add(e,t,s){var n;c("adding socket to nsp %s",this.name);const i=await this._createSocket(e,t);if((null===(n=this.server.opts.connectionStateRecovery)||void 0===n?void 0:n.skipMiddlewares)&&i.recovered&&"open"===e.conn.readyState)return this._doConnect(i,s);this.run(i,(t=>{process.nextTick((()=>"open"!==e.conn.readyState?(c("next called after client was closed - ignoring socket"),void i._cleanup()):t?(c("middleware error, sending CONNECT_ERROR packet to the client"),i._cleanup(),3===e.conn.protocol?i._error(t.data||t.message):i._error({message:t.message,data:t.data})):void this._doConnect(i,s)))}))}async _createSocket(e,t){const s=t.pid,n=t.offset;if(this.server.opts.connectionStateRecovery&&"string"==typeof s&&"string"==typeof n){let o;try{o=await this.adapter.restoreSession(s,n)}catch(e){c("error while restoring session: %s",e)}if(o)return c("connection state recovered for sid %s",o.sid),new i.Socket(this,e,t,o)}return new i.Socket(this,e,t)}_doConnect(e,t){this.sockets.set(e.id,e),e._onconnect(),t&&t(e),this.emitReserved("connect",e),this.emitReserved("connection",e)}_remove(e){this.sockets.has(e.id)?this.sockets.delete(e.id):c("ignoring remove for %s",e.id)}emit(e,...t){return new a.BroadcastOperator(this.adapter).emit(e,...t)}send(...e){return this.emit("message",...e),this}write(...e){return this.emit("message",...e),this}serverSideEmit(e,...s){if(t.RESERVED_EVENTS.has(e))throw new Error(`"${String(e)}" is a reserved event name`);return s.unshift(e),this.adapter.serverSideEmit(s),!0}serverSideEmitWithAck(e,...t){return new Promise(((s,n)=>{t.push(((e,t)=>e?(e.responses=t,n(e)):s(t))),this.serverSideEmit(e,...t)}))}_onServerSideEmit(e){super.emitUntyped.apply(this,e)}allSockets(){return new a.BroadcastOperator(this.adapter).allSockets()}compress(e){return new a.BroadcastOperator(this.adapter).compress(e)}get volatile(){return new a.BroadcastOperator(this.adapter).volatile}get local(){return new a.BroadcastOperator(this.adapter).local}timeout(e){return new a.BroadcastOperator(this.adapter).timeout(e)}fetchSockets(){return new a.BroadcastOperator(this.adapter).fetchSockets()}socketsJoin(e){return new a.BroadcastOperator(this.adapter).socketsJoin(e)}socketsLeave(e){return new a.BroadcastOperator(this.adapter).socketsLeave(e)}disconnectSockets(e=!1){return new a.BroadcastOperator(this.adapter).disconnectSockets(e)}}t.Namespace=l},5268:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParentNamespace=void 0;const i=s(3929),o=(0,n(s(9229)).default)("socket.io:parent-namespace");class r extends i.Namespace{constructor(e){super(e,"/_"+r.count++),this.children=new Set}_initAdapter(){this.adapter={broadcast:(e,t)=>{this.children.forEach((s=>{s.adapter.broadcast(e,t)}))}}}emit(e,...t){return this.children.forEach((s=>{s.emit(e,...t)})),!0}createChild(e){o("creating child namespace %s",e);const t=new i.Namespace(this.server,e);if(t._fns=this._fns.slice(0),this.listeners("connect").forEach((e=>t.on("connect",e))),this.listeners("connection").forEach((e=>t.on("connection",e))),this.children.add(t),this.server._opts.cleanupEmptyChildNamespaces){const s=t._remove;t._remove=n=>{s.call(t,n),0===t.sockets.size&&(o("closing child namespace %s",e),t.adapter.close(),this.server._nsps.delete(t.name),this.children.delete(t))}}return this.server._nsps.set(e,t),this.server.sockets.emitReserved("new_namespace",t),t}fetchSockets(){throw new Error("fetchSockets() is not supported on parent namespaces")}}t.ParentNamespace=r,r.count=0},2898:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.RESERVED_EVENTS=void 0;const i=s(4815),o=n(s(9229)),r=s(12),a=n(s(9916)),c=s(3558),l=(0,o.default)("socket.io:socket"),p=new Set(["transport error","transport close","forced close","ping timeout","server shutting down","forced server close"]);function u(){}t.RESERVED_EVENTS=new Set(["connect","connect_error","disconnect","disconnecting","newListener","removeListener"]);class d extends r.StrictEventEmitter{constructor(e,t,s,n){super(),this.nsp=e,this.client=t,this.recovered=!1,this.data={},this.connected=!1,this.acks=new Map,this.fns=[],this.flags={},this.server=e.server,this.adapter=this.nsp.adapter,n?(this.id=n.sid,this.pid=n.pid,n.rooms.forEach((e=>this.join(e))),this.data=n.data,n.missedPackets.forEach((e=>{this.packet({type:i.PacketType.EVENT,data:e})})),this.recovered=!0):(3===t.conn.protocol?this.id="/"!==e.name?e.name+"#"+t.id:t.id:this.id=a.default.generateId(),this.server._opts.connectionStateRecovery&&(this.pid=a.default.generateId())),this.handshake=this.buildHandshake(s),this.on("error",u)}buildHandshake(e){var t,s,n,i;return{headers:(null===(t=this.request)||void 0===t?void 0:t.headers)||{},time:new Date+"",address:this.conn.remoteAddress,xdomain:!!(null===(s=this.request)||void 0===s?void 0:s.headers.origin),secure:!this.request||!!this.request.connection.encrypted,issued:+new Date,url:null===(n=this.request)||void 0===n?void 0:n.url,query:(null===(i=this.request)||void 0===i?void 0:i._query)||{},auth:e}}emit(e,...s){if(t.RESERVED_EVENTS.has(e))throw new Error(`"${String(e)}" is a reserved event name`);const n=[e,...s],o={type:i.PacketType.EVENT,data:n};if("function"==typeof n[n.length-1]){const e=this.nsp._ids++;l("emitting packet with ack id %d",e),this.registerAckCallback(e,n.pop()),o.id=e}const r=Object.assign({},this.flags);return this.flags={},this.nsp.server.opts.connectionStateRecovery?this.adapter.broadcast(o,{rooms:new Set([this.id]),except:new Set,flags:r}):(this.notifyOutgoingListeners(o),this.packet(o,r)),!0}emitWithAck(e,...t){const s=void 0!==this.flags.timeout;return new Promise(((n,i)=>{t.push(((e,t)=>s?e?i(e):n(t):n(e))),this.emit(e,...t)}))}registerAckCallback(e,t){const s=this.flags.timeout;if(void 0===s)return void this.acks.set(e,t);const n=setTimeout((()=>{l("event with ack id %d has timed out after %d ms",e,s),this.acks.delete(e),t.call(this,new Error("operation has timed out"))}),s);this.acks.set(e,((...e)=>{clearTimeout(n),t.apply(this,[null,...e])}))}to(e){return this.newBroadcastOperator().to(e)}in(e){return this.newBroadcastOperator().in(e)}except(e){return this.newBroadcastOperator().except(e)}send(...e){return this.emit("message",...e),this}write(...e){return this.emit("message",...e),this}packet(e,t={}){e.nsp=this.nsp.name,t.compress=!1!==t.compress,this.client._packet(e,t)}join(e){return l("join room %s",e),this.adapter.addAll(this.id,new Set(Array.isArray(e)?e:[e]))}leave(e){return l("leave room %s",e),this.adapter.del(this.id,e)}leaveAll(){this.adapter.delAll(this.id)}_onconnect(){l("socket connected - writing packet"),this.connected=!0,this.join(this.id),3===this.conn.protocol?this.packet({type:i.PacketType.CONNECT}):this.packet({type:i.PacketType.CONNECT,data:{sid:this.id,pid:this.pid}})}_onpacket(e){switch(l("got packet %j",e),e.type){case i.PacketType.EVENT:case i.PacketType.BINARY_EVENT:this.onevent(e);break;case i.PacketType.ACK:case i.PacketType.BINARY_ACK:this.onack(e);break;case i.PacketType.DISCONNECT:this.ondisconnect()}}onevent(e){const t=e.data||[];if(l("emitting event %j",t),null!=e.id&&(l("attaching ack callback to event"),t.push(this.ack(e.id))),this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}this.dispatch(t)}ack(e){const t=this;let s=!1;return function(){if(s)return;const n=Array.prototype.slice.call(arguments);l("sending ack %j",n),t.packet({id:e,type:i.PacketType.ACK,data:n}),s=!0}}onack(e){const t=this.acks.get(e.id);"function"==typeof t?(l("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),this.acks.delete(e.id)):l("bad ack %s",e.id)}ondisconnect(){l("got disconnect packet"),this._onclose("client namespace disconnect")}_onerror(e){this.emitReserved("error",e)}_onclose(e,t){if(!this.connected)return this;l("closing socket - reason %s",e),this.emitReserved("disconnecting",e,t),this.server._opts.connectionStateRecovery&&p.has(e)&&(l("connection state recovery is enabled for sid %s",this.id),this.adapter.persistSession({sid:this.id,pid:this.pid,rooms:[...this.rooms],data:this.data})),this._cleanup(),this.client._remove(this),this.connected=!1,this.emitReserved("disconnect",e,t)}_cleanup(){this.leaveAll(),this.nsp._remove(this),this.join=u}_error(e){this.packet({type:i.PacketType.CONNECT_ERROR,data:e})}disconnect(e=!1){return this.connected?(e?this.client._disconnect():(this.packet({type:i.PacketType.DISCONNECT}),this._onclose("server namespace disconnect")),this):this}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}get broadcast(){return this.newBroadcastOperator()}get local(){return this.newBroadcastOperator().local}timeout(e){return this.flags.timeout=e,this}dispatch(e){l("dispatching an event %j",e),this.run(e,(t=>{process.nextTick((()=>{if(t)return this._onerror(t);this.connected?super.emitUntyped.apply(this,e):l("ignore packet received after disconnection")}))}))}use(e){return this.fns.push(e),this}run(e,t){const s=this.fns.slice(0);if(!s.length)return t(null);!function n(i){s[i](e,(function(e){return e?t(e):s[i+1]?void n(i+1):t(null)}))}(0)}get disconnected(){return!this.connected}get request(){return this.client.request}get conn(){return this.client.conn}get rooms(){return this.adapter.socketRooms(this.id)||new Set}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}newBroadcastOperator(){const e=Object.assign({},this.flags);return this.flags={},new c.BroadcastOperator(this.adapter,new Set,new Set([this.id]),e)}}t.Socket=d},12:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StrictEventEmitter=void 0;const n=s(2361);class i extends n.EventEmitter{on(e,t){return super.on(e,t)}once(e,t){return super.once(e,t)}emit(e,...t){return super.emit(e,...t)}emitReserved(e,...t){return super.emit(e,...t)}emitUntyped(e,...t){return super.emit(e,...t)}listeners(e){return super.listeners(e)}}t.StrictEventEmitter=i},7117:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.serveFile=t.restoreAdapter=t.patchAdapter=void 0;const i=s(9098),o=s(7147),r=(0,n(s(9229)).default)("socket.io:adapter-uws"),{addAll:a,del:c,broadcast:l}=i.Adapter.prototype;function p(e,t,s,n){const i=t.conn.id,o=t.conn.transport.socket;s&&(r("subscribe connection %s to topic %s",i,e),o.subscribe(e)),n.forEach((t=>{const s=`${e}${t}`;r("subscribe connection %s to topic %s",i,s),o.subscribe(s)}))}t.patchAdapter=function(e){i.Adapter.prototype.addAll=function(e,t){const s=!this.sids.has(e);a.call(this,e,t);const n=this.nsp.sockets.get(e);n&&("websocket"!==n.conn.transport.name?s&&n.conn.on("upgrade",(()=>{const t=this.sids.get(e);t&&p(this.nsp.name,n,s,t)})):p(this.nsp.name,n,s,t))},i.Adapter.prototype.del=function(e,t){c.call(this,e,t);const s=this.nsp.sockets.get(e);if(s&&"websocket"===s.conn.transport.name){const e=s.conn.id,n=s.conn.transport.socket,i=`${this.nsp.name}${t}`;r("unsubscribe connection %s from topic %s",e,i),n.unsubscribe(i)}},i.Adapter.prototype.broadcast=function(t,s){if(!(s.rooms.size<=1&&0===s.except.size))return void l.call(this,t,s);const n=s.flags||{},i={preEncoded:!0,volatile:n.volatile,compress:n.compress};t.nsp=this.nsp.name;const o=this.encoder.encode(t),a=0===s.rooms.size?this.nsp.name:`${this.nsp.name}${s.rooms.keys().next().value}`;r("fast publish to %s",a),o.forEach((t=>{const s="string"!=typeof t;e.publish(a,s?t:"4"+t,s)})),this.apply(s,(e=>{"websocket"!==e.conn.transport.name&&e.client.writeToEngine(o,i)}))}},t.restoreAdapter=function(){i.Adapter.prototype.addAll=a,i.Adapter.prototype.del=c,i.Adapter.prototype.broadcast=l};t.serveFile=function(e,t){const{size:s}=(0,o.statSync)(t),n=(0,o.createReadStream)(t),i=()=>!n.destroyed&&n.destroy();e.onAborted(i),n.on("data",(t=>{const i=(e=>{const{buffer:t,byteOffset:s,byteLength:n}=e;return t.slice(s,s+n)})(t),o=e.getWriteOffset(),[r,a]=e.tryEnd(i,s);a||r||(n.pause(),e.onWritable((t=>{const[r,a]=e.tryEnd(i.slice(t-o),s);return!a&&r&&n.resume(),r})))})).on("error",(e=>{throw i(),e})).on("end",i)}},4529:(e,t,s)=>{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}s.r(t),s.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function s(){this.off(e,s),t.apply(this,arguments)}return s.fn=t,this.on(e,s),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((s=n[i])===t||s.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),s=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(s){n=0;for(var i=(s=s.slice(0)).length;n<i;++n)s[n].apply(this,t)}return this},n.prototype.emitReserved=n.prototype.emit,n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},9601:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},1751:e=>{"use strict";e.exports={i8:"4.7.4"}},1298:e=>{"use strict";e.exports={version:"3.13.0"}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return s[e].call(o.exports,o,o.exports,i),o.exports}i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.SocketTunnelClient=e.SessionIdError=e.ConnectionError=e.AuthorizationError=void 0;var t=i(9050);Object.defineProperty(e,"AuthorizationError",{enumerable:!0,get:function(){return t.AuthorizationError}}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:function(){return t.ConnectionError}}),Object.defineProperty(e,"SessionIdError",{enumerable:!0,get:function(){return t.SessionIdError}}),Object.defineProperty(e,"SocketTunnelClient",{enumerable:!0,get:function(){return t.SocketTunnelClient}})})(),o})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(function(){try{return require("bufferutil")}catch(e){}}(),function(){try{return require("utf-8-validate")}catch(e){}}()):"function"==typeof define&&define.amd?define(["bufferutil","utf-8-validate"],t):"object"==typeof exports?exports.socketTunnel=t(function(){try{return require("bufferutil")}catch(e){}}(),function(){try{return require("utf-8-validate")}catch(e){}}()):e.socketTunnel=t(e.bufferutil,e["utf-8-validate"])}(global,((e,t)=>(()=>{var s={486:(e,t,s)=>{var n={};e.exports=n,n.themes={};var i=s(3837),o=n.styles=s(5074),r=Object.defineProperties,a=new RegExp(/[\r\n]+/g);n.supportsColor=s(7399).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};n.stylize=function(e,t){if(!n.enabled)return e+"";var s=o[t];return!s&&t in n?n[t](e):s.open+e+s.close};var c=/[|\\{}()[\]^$+*?.]/g;function l(e){var t=function e(){return h.apply(e,arguments)};return t._styles=e,t.__proto__=d,t}var p,u=(p={},o.grey=o.gray,Object.keys(o).forEach((function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(c,"\\$&")}(o[e].close),"g"),p[e]={get:function(){return l(this._styles.concat(e))}}})),p),d=r((function(){}),u);function h(){var e=Array.prototype.slice.call(arguments).map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!n.enabled||!e)return e;for(var t=-1!=e.indexOf("\n"),s=this._styles,r=s.length;r--;){var c=o[s[r]];e=c.open+e.replace(c.closeRe,c.open)+c.close,t&&(e=e.replace(a,(function(e){return c.close+e+c.open})))}return e}n.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){n[t]=function(s){if("object"==typeof e[t]){var i=s;for(var o in e[t])i=n[e[t][o]](i);return i}return n[e[t]](s)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var f=function(e,t){var s=t.split("");return(s=s.map(e)).join("")};for(var m in n.trap=s(6240),n.zalgo=s(5704),n.maps={},n.maps.america=s(9998)(n),n.maps.zebra=s(1886)(n),n.maps.rainbow=s(5563)(n),n.maps.random=s(557)(n),n.maps)!function(e){n[e]=function(t){return f(n.maps[e],t)}}(m);r(n,function(){var e={};return Object.keys(u).forEach((function(t){e[t]={get:function(){return l([t])}}})),e}())},6240:e=>{e.exports=function(e,t){var s="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],i=Math.floor(Math.random()*t.length);s+=void 0!==n[e]?n[e][i]:e})),s}},5704:e=>{e.exports=function(e,t){e=e||" he is here ";var s={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(s.up,s.down,s.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter((function(s){t=s===e})),t}return function(e,t){var n,r,a="";for(r in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(r)){switch(a+=e[r],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var c=["up","mid","down"];for(var l in c)for(var p=c[l],u=0;u<=n[p];u++)t[p]&&(a+=s[p][i(s[p].length)])}return a}(e,t)}},9998:e=>{e.exports=function(e){return function(t,s,n){if(" "===t)return t;switch(s%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},5563:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(s,n,i){return" "===s?s:e[t[n++%t.length]](s)}}},557:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(s,n,i){return" "===s?s:e[t[Math.round(Math.random()*(t.length-2))]](s)}}},1886:e=>{e.exports=function(e){return function(t,s,n){return s%2==0?t:e.inverse(t)}}},5074:e=>{var t={};e.exports=t;var s={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(s).forEach((function(e){var n=s[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},6400:e=>{"use strict";e.exports=function(e,t){var s=(t=t||process.argv||[]).indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(n+e);return-1!==i&&(-1===s||i<s)}},7399:(e,t,s)=>{"use strict";var n=s(2037),i=s(6400),o=process.env,r=void 0;function a(e){var t=function(e){if(!1===r)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==r)return 0;var t=r?1:0;if("win32"===process.platform){var s=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in o}))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?r=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(r=!0),"FORCE_COLOR"in o&&(r=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},7112:(e,t,s)=>{var n=s(486);e.exports=n},8092:e=>{var t=[],s=[],n=function(){};function i(e){return!~t.indexOf(e)&&(t.push(e),!0)}function o(e){n=e}function r(e){for(var s=[],n=0;n<t.length;n++)if(t[n].async)s.push(t[n]);else if(t[n](e))return!0;return!!s.length&&new Promise((function(t){Promise.all(s.map((function(t){return t(e)}))).then((function(e){t(e.some(Boolean))}))}))}function a(e){return!~s.indexOf(e)&&(s.push(e),!0)}function c(){n.apply(n,arguments)}function l(e){for(var t=0;t<s.length;t++)e=s[t].apply(s[t],arguments);return e}function p(e,t){var s=Object.prototype.hasOwnProperty;for(var n in t)s.call(t,n)&&(e[n]=t[n]);return e}function u(e){return e.enabled=!1,e.modify=a,e.set=o,e.use=i,p((function(){return!1}),e)}function d(e){return e.enabled=!0,e.modify=a,e.set=o,e.use=i,p((function(){var t=Array.prototype.slice.call(arguments,0);return c.call(c,e,l(t,e)),!0}),e)}e.exports=function(e){return e.introduce=p,e.enabled=r,e.process=l,e.modify=a,e.write=c,e.nope=u,e.yep=d,e.set=o,e.use=i,e}},1577:(e,t,s)=>{e.exports=s(8036)},8036:(e,t,s)=>{var n=s(8092)((function e(t,s){return(s=s||{}).namespace=t,s.prod=!0,s.dev=!1,s.force||e.force?e.yep(s):e.nope(s)}));e.exports=n},2238:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DestroyableServer=void 0;const n=s(1808);class i extends n.Server{constructor(e,t,s){super(t,s),this.logger=e,this.sockets=new Set,this.on("connection",(e=>{this.sockets.add(e),e.once("close",(()=>this.sockets.delete(e)))}))}async destroy(){const e=this.closeAsync(),t=[...this.sockets];if(t.length){this.logger.info(`Destroying ${t.length} existing connections...`);try{await Promise.allSettled(t.map(this.destroySocket))}catch(e){this.logger.error("Error destroying one or more existing connections:",e)}this.sockets.clear(),this.logger.info(`Finished destroying ${t.length} existing connections.`)}await e}closeAsync(){return new Promise(((e,t)=>this.close((s=>{s?t(s):e()}))))}async destroySocket(e){await new Promise(((t,s)=>{e.destroy(),e.once("close",(()=>t())),e.once("error",(e=>s(e)))})),this.sockets.delete(e)}}t.DestroyableServer=i},5233:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketTunnelClient=void 0;const n=s(8398),i=s(8172),o=s(5664),r=s(6358),a=s(3327),c=s(2238),l=s(5057);t.SocketTunnelClient=class{constructor(e,t){var s,n,i,r;this.tunnelUrl=e,this.sessionId=(0,o.nanoid)(),this.logger=null!==(s=null==t?void 0:t.logger)&&void 0!==s?s:(0,l.createDefaultLogger)("SocketTunnelClient"),this.bindAddress=t.localAddress,this.bindPort=null!==(n=t.localPort)&&void 0!==n?n:t.remotePort,this.connectionTracing=null!==(i=t.connectionTracing)&&void 0!==i&&i,this.connectTimeoutMillis=null!==(r=t.connectTimeoutMillis)&&void 0!==r?r:a.DefaultConnectionTimeoutMillis,this.forwardingServer=new c.DestroyableServer(this.logger),this.onError=t.onError,this.proxy=t.proxy,this.remoteHost=t.remoteHost,this.remotePort=t.remotePort,this.tunnel=this.initializeTunnel(t)}boundAddress(){var e;const t=null===(e=this.forwardingServer.address())||void 0===e?void 0:e.address;return"::"===t||"0.0.0.0"===t||"::1"===t||(null==t?void 0:t.startsWith("127."))||"localhost"===t?"localhost":t}boundPort(){var e;return null===(e=this.forwardingServer.address())||void 0===e?void 0:e.port}async connect(){this.logger.info(`Connecting to tunnel ${this.tunnelUrl} with session ID ${this.sessionId}${this.proxy?` via proxy ${this.proxy.host}:${this.proxy.port}`:""}`),await this.openTunnelConnection(),await this.startForwarding(),this.logger.info(`Connection established to tunnel ${this.tunnelUrl} with session ID ${this.sessionId}`)}async disconnect(){await this.stopForwarding(),await this.closeTunnelConnection(),this.logger.info(`Connection to tunnel ${this.tunnelUrl} with session ID ${this.sessionId} closed`)}isConnected(){return this.tunnel.connected}initializeTunnel(e){var t;const s={},n={},o={"User-Agent":null!==(t=null==e?void 0:e.userAgent)&&void 0!==t?t:a.DefaultUserAgent},c=!(!0===(null==e?void 0:e.insecure));(null==e?void 0:e.httpAuthorization)&&(o.Authorization=this.generateAuthorizationHeader(e.httpAuthorization)),(null==e?void 0:e.tunnelAuthorization)&&(s.auth=async t=>{const s="function"==typeof e.tunnelAuthorization?await e.tunnelAuthorization():e.tunnelAuthorization;t(null!=s?s:{})}),(null==e?void 0:e.proxy)&&(n.agent=this.getAgent(this.tunnelUrl,e.proxy,c)),n.path=new URL(this.tunnelUrl).pathname;const l=new URL(`/?${r.SessionIdKey}=${this.sessionId}`,this.tunnelUrl).toString();return(0,i.io)(l,{...s,...n,autoConnect:!1,extraHeaders:o,rejectUnauthorized:c,transports:["websocket","polling","webtransport"]})}generateAuthorizationHeader(e){switch(e.type){case"basic":return`Basic ${Buffer.from(`${e.username}:${e.password}`).toString("base64")}`;case"bearer":return`Bearer ${e.bearerToken}`}}getAgent(e,{credentials:t,host:s,port:i},o){let r="http://";if(t){const{username:e,password:s}=t;r+=`${e}:${s}@`}r+=`${s}:${i}`;const a={rejectUnauthorized:o},c=new URL(e).protocol;return"https:"===c||"wss:"===c?new n.HttpsProxyAgent({proxy:r,proxyRequestOptions:a,rejectUnauthorized:o}):new n.HttpProxyAgent({proxy:r,proxyRequestOptions:a})}openTunnelConnection(){return new Promise(((e,t)=>{if(this.isConnected()){const e=Error(`Client already connected to tunnel ${this.tunnelUrl} with session ID ${this.sessionId}`);t(e)}else this.tunnel.once("connect_error",(e=>{if("TransportError"!==e.type)t(e);else{const s=e.description.error;t(s)}})),this.tunnel.on("connect",e),this.tunnel.on("disconnect",(e=>this.logger.info(`Disconnected from server ${this.tunnelUrl} : ${e}`))),this.tunnel.connect()}))}closeTunnelConnection(){return new Promise((e=>{if(!this.isConnected())return this.logger.warn("Attempted to close a tunnel connection on an already closed tunnel"),void e();this.tunnel.disconnect(),this.tunnel.disconnected?e():this.tunnel.once("disconnect",(t=>e()))}))}async startForwarding(){var e;this.logger.info(`Opening port forwarder at ${null!==(e=this.bindAddress)&&void 0!==e?e:"*"}:${this.bindPort} for session ID ${this.sessionId}`),await new Promise(((e,t)=>{this.forwardingServer.once("error",(e=>t(e))),this.forwardingServer.listen(this.bindPort,this.bindAddress,e)})),this.forwardingServer.on("connection",(async e=>{var t,s,n,i,o;const a=`${this.boundAddress()}:${this.boundPort()}`,c=`${null!==(t=e.remoteAddress)&&void 0!==t?t:""}:${e.remotePort}`;if(this.logger.info(`Received new connection from ${c} => ${a}`),!this.isConnected())return this.logger.info(`Rejecting connection from ${c} => ${a} because tunnel is not connected`),void e.destroy();let l;try{const t=await this.sendConnectRequest();if(!t.success){const s=new Error(t.error);return this.logger.info(`Tunnel ${this.tunnel.id} with session ID ${this.sessionId} failed to establish connection to ${null!==(n=this.remoteHost)&&void 0!==n?n:""}:${this.remotePort} : ${s}`),e.destroy(),void(null===(i=this.onError)||void 0===i||i.call(this,s))}this.logger.info(`Tunnel ${this.tunnel.id} with session ID ${this.sessionId} successfully connected to ${null!==(s=this.remoteHost)&&void 0!==s?s:""}:${this.remotePort} with connection id ${t.connectionId}`),l=t.connectionId}catch(t){return this.logger.info(`Failed to send connect request to tunnel ${this.tunnel.id} with session ID ${this.sessionId}: ${t}`),e.destroy(),void(null===(o=this.onError)||void 0===o||o.call(this,t))}this.tunnel.on(r.ConnectionDataMessage,((t,s)=>{t===l&&(this.connectionTracing&&this.logger.debug(`Writing ${s.byteLength} bytes from tunnel ${this.tunnel.id} with session ID ${this.sessionId} on connection ${l} to client ${c}`),e.write(s))})),this.tunnel.on(r.ConnectionCloseMessage,(t=>{t===l&&(this.logger.info(`Peer closed connection ${l} on tunnel ${this.tunnel.id} with session ID ${this.sessionId}`),e.destroy())})),e.on("data",(e=>{this.connectionTracing&&this.logger.debug(`Sending ${e.byteLength} bytes from client ${c} to tunnel ${this.tunnel.id} with session ID ${this.sessionId} on connection ${l}`),this.tunnel.emit(r.ConnectionDataMessage,l,e)})),e.on("close",(e=>{this.logger.info(`Connection from ${c} => ${a} closed`),this.tunnel.emit(r.ConnectionCloseMessage,l)})),e.on("error",(t=>{var s;this.logger.error(`Error on connection from ${c} => ${a}`,t),e.destroy(),null===(s=this.onError)||void 0===s||s.call(this,t)}))})),this.logger.info(`Port forwarder listening at ${this.boundAddress()}:${this.boundPort()} with session ID ${this.sessionId}`)}async sendConnectRequest(){var e,t;const s=null!==(e=this.connectTimeoutMillis)&&void 0!==e?e:a.DefaultConnectionTimeoutMillis,n={remoteHost:this.remoteHost,remotePort:this.remotePort,timeoutMillis:s};this.logger.info(`Sending connect request for remote server at ${null!==(t=n.remoteHost)&&void 0!==t?t:"<default host>"}:${n.remotePort} with session ID ${this.sessionId} via tunnel ${this.tunnel.id} with timeout ${s}ms`),this.tunnel.emit(r.ConnectRequestMessage,n);return await(0,l.withTimeout)(new Promise((e=>this.tunnel.once(r.ConnectResponseMessage,(t=>e(t))))),s)}async stopForwarding(){const e=this.boundAddress(),t=this.boundPort();this.forwardingServer.listening&&(this.logger.info(`Closing port forwarder for session ${this.sessionId} at ${e}:${t}`),await this.forwardingServer.destroy(),this.logger.info(`Port forwarder for session ${this.sessionId} at ${e}:${t} closed`))}}},3327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultUserAgent=t.DefaultConnectionTimeoutMillis=void 0,t.DefaultConnectionTimeoutMillis=1e4,t.DefaultUserAgent="Socket Tunnel Client"},98:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionDataMessage=t.ConnectionCloseMessage=t.ConnectResponseMessage=t.ConnectRequestMessage=t.SessionIdKey=t.SessionIdError=t.AuthorizationError=t.ConnectionError=void 0;class s extends Error{constructor(e,t,s){super(t,s),this.data={},this.data.type=e}}t.ConnectionError=s;t.AuthorizationError=class extends s{constructor(e,t){super("authorization",null!=e?e:"Credentials are missing or invalid",t)}static isAuthorizationError(e){var t;return"authorization"===(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.type)}};t.SessionIdError=class extends s{constructor(e,t){super("session_id",null!=e?e:"Session ID is missing or invalid",t)}static isSessionIdError(e){var t;return"session_id"===(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.type)}},t.SessionIdKey="session",t.ConnectRequestMessage="tunnel::connect::request",t.ConnectResponseMessage="tunnel::connect::response",t.ConnectionCloseMessage="tunnel::close",t.ConnectionDataMessage="tunnel::data"},5057:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=async function(e,t){let s;const n=new Promise(((e,n)=>{s=globalThis.setTimeout((()=>n(new Error(`Timed out after ${t}ms`))),t)})),i=await Promise.race([n,e]);return globalThis.clearTimeout(s),i},t.createDefaultLogger=function(e){const{Console:t}=n.transports,{combine:s,timestamp:i,printf:o}=n.format,r=s(i(),o((({level:e,message:t,timestamp:s})=>`${s} [${e}]: ${t}`)));return(0,n.createLogger)({defaultMeta:{service:e},format:n.format.printf((e=>e.message)),level:"debug",transports:[new t({format:r,level:"debug"})]})};const n=s(5222)},5913:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var i=Object.getOwnPropertyDescriptor(t,s);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,i)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),i=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.SessionIdError=t.ConnectionError=t.AuthorizationError=void 0,i(s(5233),t),i(s(98),t);var o=s(6358);Object.defineProperty(t,"AuthorizationError",{enumerable:!0,get:function(){return o.AuthorizationError}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return o.ConnectionError}}),Object.defineProperty(t,"SessionIdError",{enumerable:!0,get:function(){return o.SessionIdError}}),i(s(3217),t),i(s(4985),t),i(s(5210),t),i(s(3116),t),i(s(8097),t)},3217:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AllowedConnectHostFilter=void 0;const n=s(5283);t.AllowedConnectHostFilter=class{constructor(e){if(this.allowedHostExpressions=null!=e?e:n.DefaultAllowedConnectHostExpressions,!this.allowedHostExpressions.length)throw new Error("At least one allowed connect host expression must be specified")}hostIsAllowed(e){return!!this.allowedHostExpressions.find((t=>e.match(t)))}}},4985:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketTunnelServer=void 0;const n=s(1808),i=s(3685),o=s(5664),r=s(145),a=s(3217),c=s(6358),l=s(5283),p=s(5057);t.SocketTunnelServer=class{constructor(e){var t,s,n,i,o,r;this.connections=new Map,this.sessions=new Map,this.sessionDisconnectTimes=new Map,this.cleanup=this.cleanup.bind(this),this.openConnection=this.openConnection.bind(this),this.closeConnection=this.closeConnection.bind(this),this.sendConnectionDataToRemoteHost=this.sendConnectionDataToRemoteHost.bind(this),this.address=null==e?void 0:e.address,this.allowedConnectHostFilter=new a.AllowedConnectHostFilter(null==e?void 0:e.allowedConnectHosts),this.connectionTracing=null!==(t=null==e?void 0:e.connectionTracing)&&void 0!==t?t:l.DefaultConnectionTracking,this.destroySessionOnDisconnect=null!==(s=null==e?void 0:e.destroySessionOnDisconnect)&&void 0!==s?s:l.DefaultDestroySessionOnDisconnect,this.httpAuthorizer=null==e?void 0:e.httpAuthorizer,this.port=null!==(n=null==e?void 0:e.port)&&void 0!==n?n:l.DefaultBindPort,this.replacementRules=null!==(i=null==e?void 0:e.replacementRules)&&void 0!==i?i:[],this.sessionReconnectGracePeriodSeconds=null!==(o=null==e?void 0:e.sessionReconnectGracePeriodSeconds)&&void 0!==o?o:l.DefaultTunnelReconnectGracePeriodSeconds,this.tunnelAuthorizer=null==e?void 0:e.tunnelAuthorizer,this.httpServer=this.initializeHttpServer(),this.tunnel=this.initializeTunnel(e),this.logger=null!==(r=null==e?void 0:e.logger)&&void 0!==r?r:(0,p.createDefaultLogger)("SocketTunnelServer")}initializeHttpServer(){const e=(0,i.createServer)();return e.on("request",(async(e,t)=>{await this.isHttpRequestAuthorized(e)||(t.writeHead(401),t.end())})),e.on("upgrade",(async(e,t)=>{await this.isHttpRequestAuthorized(e)||(t.write("HTTP/1.1 401 Unauthorized\r\nConnection: Close\r\n\r\n"),t.destroy())})),e}initializeTunnel(e){var t;const s=new r.Server({allowRequest:async(e,t)=>{try{t(null,await this.isHttpRequestAuthorized(e))}catch(e){t(`${e}`,!1)}},path:null!==(t=null==e?void 0:e.path)&&void 0!==t?t:l.DefaultPath});return s.use((async(e,t)=>{var s;const n=e.handshake.query[c.SessionIdKey];if(!n||"string"!=typeof n)return this.logger.info(`Received ${n?"invalid":"missing"} session id from client ${e.client.conn.remoteAddress}: '${JSON.stringify(n,void 0,0)}'`),t(new c.SessionIdError);try{if(!await this.isTunnelSessionAuthorized(e.handshake.auth,n)){const i=Object.keys(null!==(s=e.handshake.auth)&&void 0!==s?s:{}).length>0;return this.logger.info(`Received ${i?"invalid":"missing"} tunnel credentials from client ${e.client.conn.remoteAddress} with session ID ${n}`),t(new c.AuthorizationError)}}catch(e){return t(new c.AuthorizationError(`Error occurred while authorizing tunnel session: ${e}`,{cause:e}))}const i=this.sessionDisconnectTimes.get(n);i?(this.logger.info(`Session ${n} reconnected with new client ${e.id} (old client disconnected at ${new Date(i).toUTCString()})`),this.sessionDisconnectTimes.delete(n)):this.logger.info(`Received new tunnel connection ${e.id} from ${e.client.conn.remoteAddress} with session ID ${n}`),this.sessions.set(n,e),e.on("disconnecting",(t=>{this.logger.info(`Tunnel connection ${e.id} from ${e.client.conn.remoteAddress} with session ID ${n} disconnected: ${t}`),this.destroySessionOnDisconnect&&"ping timeout"!==t?this.destroySession(n):(this.sessions.delete(n),this.sessionDisconnectTimes.set(n,Date.now()))})),e.on(c.ConnectRequestMessage,(t=>this.openConnection(n,t,e))),e.on(c.ConnectionCloseMessage,(e=>this.closeConnection(n,e,!1))),e.on(c.ConnectionDataMessage,((t,s)=>this.sendConnectionDataToRemoteHost(e,n,t,s))),t()})),s}async isHttpRequestAuthorized(e){if(!this.httpAuthorizer)return!0;const t=await this.httpAuthorizer.isAuthorized(e),s=!!e.headers.upgrade,n=!!e.headers.authorization;return this.logger.info(`HTTP ${e.method}${s?" (upgrade)":""} request ${e.url} from ${e.socket.remoteAddress} is ${t?"authorized":"NOT authorized"}${n?"":" (no authorization header)"}`),t}async isTunnelSessionAuthorized(e,t){if(!this.tunnelAuthorizer)return!0;const s=await this.tunnelAuthorizer.isAuthorized(e,t);return this.logger.info(`Tunnel session ${t} is ${s?"authorized":"NOT authorized"}`),s}boundPort(){var e;return null===(e=this.httpServer.address())||void 0===e?void 0:e.port}async start(){var e;if(this.cleanupTimer)throw new Error("Server already running");await new Promise(((e,t)=>{this.httpServer.listen(this.port,this.address).once("listening",e).once("error",t)})),this.tunnel.attach(this.httpServer),this.cleanupTimer=globalThis.setInterval(this.cleanup,l.CleanupTimerPeriodMillis),this.logger.info(`Tunnel Server listening on ${null!==(e=this.address)&&void 0!==e?e:"*"}:${this.boundPort()}`)}async stop(){var e;if(!this.cleanupTimer)throw new Error("Server already stopped");await new Promise(((e,t)=>this.httpServer.close((s=>{if(s)return t(s);e()}))));for(const t in this.connections.keys())for(const s in null===(e=this.connections.get(t))||void 0===e?void 0:e.keys())this.closeConnection(t,s,!0);this.connections.clear(),this.sessions.forEach(((e,t)=>{this.logger.info(`Closing tunnel ${e.id} from ${e.conn.remoteAddress} for session ${t}`),e.disconnect(!0)})),this.sessions.clear(),globalThis.clearInterval(this.cleanupTimer),this.cleanupTimer=void 0}async openConnection(e,t,s){var i;const r=(0,o.nanoid)();this.logger.info(`Generated connection ID ${r} for connect request: ${JSON.stringify(t)}`);const a=null!==(i=t.remoteHost)&&void 0!==i?i:l.DefaultConnectHost;if(!this.allowedConnectHostFilter.hostIsAllowed(a)){const e=`Rejecting request ${r} to connect to host not in allowed list: ${a}`;this.logger.info(e);const t={connectionId:r,error:e,success:!1};return void s.emit(c.ConnectResponseMessage,t)}const{host:u,port:d}=this.resolveConnectDestination(t);this.logger.info(`Resolved connection destination ${u}:${d} for connection ${r} in session ${e}`);const h=new n.Socket;try{await(0,p.withTimeout)(new Promise(((n,i)=>{h.once("connect",n),h.once("error",(e=>i(e))),h.once("timeout",(()=>i(new Error(`Timed out connecting to ${u}:${d}`)))),this.logger.info(`Connecting to ${u}:${d} with timeout ${t.timeoutMillis}ms on connection ${r} in session ${e} for tunnel ${s.id}`),h.connect({host:u,keepAlive:!0,noDelay:!0,port:d})})),t.timeoutMillis),h.on("data",(t=>{const s=this.sessions.get(e);s?(this.connectionTracing&&this.logger.debug(`Sending ${t.byteLength} bytes from ${u}:${d} to tunnel ${s.id} on connection ${r} in session ${e}`),s.emit(c.ConnectionDataMessage,r,t)):this.connectionTracing&&this.logger.info(`Dropping ${t.byteLength} bytes from ${u}:${d} because no active tunnel connection exists for session ${e}`)})),h.on("close",(()=>{this.sessions.get(e)?this.closeConnection(e,r,!0):this.connectionTracing&&this.logger.info(`Unable to send close message for connection ${r} because no active tunnel connection exists for session ${e}`)}));let n=this.connections.get(e);n||(n=new Map,this.connections.set(e,n)),n.set(r,h);const i={connectionId:r,success:!0};s.emit(c.ConnectResponseMessage,i),this.logger.info(`Successfully established connection ${h.localAddress}:${h.localPort} => ${h.remoteAddress}:${h.remotePort} with connection ID ${r} in session ${e} for tunnel ${s.id}`)}catch(e){this.logger.info(`Error connecting to ${u}:${d} : ${e}`),h.destroy();const t={connectionId:r,error:null==e?void 0:e.toString(),success:!1};s.emit(c.ConnectResponseMessage,t)}}resolveConnectDestination(e){var t;const s={host:null!==(t=e.remoteHost)&&void 0!==t?t:l.DefaultConnectHost,port:e.remotePort};for(const e of this.replacementRules)if(e.matches(s)){this.logger.info(`Replacement rule [${e.description}] matched [${s.host}:${s.port}]`),e.replaceAddress&&(s.host=e.replaceAddress),e.replacePort&&(s.port=e.replacePort);break}return s}destroySession(e){var t;null===(t=this.connections.get(e))||void 0===t||t.forEach(((t,s)=>this.closeConnection(e,s,!1))),this.connections.delete(e);this.sessions.get(e)&&this.sessions.delete(e)}closeConnection(e,t,s){var n;const i=this.connections.get(e);if(!i)return;const o=i.get(t);o&&(this.logger.info(`Closing connection ${o.localAddress}:${o.localPort} => ${o.remoteAddress}:${o.remotePort} with id ${t} in session ${e}`),o.destroy(),i.delete(t),0===i.size&&this.connections.delete(e),s&&(null===(n=this.sessions.get(e))||void 0===n||n.emit(c.ConnectionCloseMessage,t)))}sendConnectionDataToRemoteHost(e,t,s,n){const i=this.connections.get(t);if(!i)return this.connectionTracing&&this.logger.info(`Received request to send data on connection ${s} in unknown session ${t}`),void this.closeConnection(t,s,!0);const o=i.get(s);if(!o)return this.connectionTracing&&this.logger.info(`Received request to send data on unknown connection ${s}`),void this.closeConnection(t,s,!0);this.connectionTracing&&this.logger.debug(`Writing ${n.byteLength} bytes from tunnel ${e.id} on connection ${s} to ${o.remoteAddress}:${o.remotePort}`),o.write(n)}cleanup(){const e=Date.now();this.sessionDisconnectTimes.forEach(((t,s)=>{if(this.sessions.get(s))return void this.sessionDisconnectTimes.delete(s);if(this.sessionReconnectGracePeriodSeconds<0)return;const n=t+1e3*this.sessionReconnectGracePeriodSeconds;e>n&&(this.logger.info(`Session ${s} which disconnected at ${new Date(t).toUTCString()} has expired after ${this.sessionReconnectGracePeriodSeconds}s with no reconnect`),this.destroySession(s),this.sessionDisconnectTimes.delete(s))}))}}},3116:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleHttpAuthorizer=void 0;const n=s(5409),i={basic:/^Basic ([^\s]+)/i,bearer:/^Bearer ([^\s]+)/i},o=/^([^\s:]+):([^\s:]+)/;t.SimpleHttpAuthorizer=class{constructor(e){this.authorization=e}async isAuthorized(e){const t=this.extractAuthorization(e.headers.authorization);return(0,n.authorizationMatches)(this.authorization,t)}extractAuthorization(e){var t;if(!e)return;const s=null===(t=i[this.authorization.type].exec(e))||void 0===t?void 0:t[1];if(s)switch(this.authorization.type){case"basic":return this.extractBasicAuthorization(s);case"bearer":return this.extractBearerAuthorization(s)}}extractBasicAuthorization(e){const t=Buffer.from(e,"base64").toString("utf-8"),s=o.exec(t);if(!s)return;const[,n,i]=s;return{password:i,type:"basic",username:n}}extractBearerAuthorization(e){return{bearerToken:e,type:"bearer"}}}},8097:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleTunnelAuthorizer=void 0;const n=s(5409);t.SimpleTunnelAuthorizer=class{constructor(e){this.authorization=e}async isAuthorized(e,t){return(0,n.authorizationMatches)(this.authorization,e)}}},5409:(e,t)=>{"use strict";function s(e){return JSON.stringify(e,void 0,0)}Object.defineProperty(t,"__esModule",{value:!0}),t.authorizationMatches=function(e,t){if(!t)return!1;return s(e)===s(t)}},5283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultPath=t.DefaultConnectionTracking=t.DefaultDestroySessionOnDisconnect=t.DefaultTunnelReconnectGracePeriodSeconds=t.CleanupTimerPeriodMillis=t.DefaultAllowedConnectHostExpressions=t.Ipv4OctetRe=t.DefaultConnectHost=t.DefaultBindPort=void 0,t.DefaultBindPort=8080,t.DefaultConnectHost="localhost",t.Ipv4OctetRe=/25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?/,t.DefaultAllowedConnectHostExpressions=[/^localhost$/i,new RegExp(`^(127)\\.(${t.Ipv4OctetRe.source})\\.(${t.Ipv4OctetRe.source})\\.(${t.Ipv4OctetRe.source})$`),/^::1$/],t.CleanupTimerPeriodMillis=6e4,t.DefaultTunnelReconnectGracePeriodSeconds=3600,t.DefaultDestroySessionOnDisconnect=!1,t.DefaultConnectionTracking=!1,t.DefaultPath="/"},5210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},181:(e,t,s)=>{"use strict";var n=s(9442),i=s(4345);function o(e){if(!(this instanceof o))return new o(e);this.headers=e.headers,this.negotiator=new n(e)}function r(e){return-1===e.indexOf("/")?i.lookup(e):e}function a(e){return"string"==typeof e}e.exports=o,o.prototype.type=o.prototype.types=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var s=0;s<t.length;s++)t[s]=arguments[s]}if(!t||0===t.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return t[0];var n=t.map(r),i=this.negotiator.mediaTypes(n.filter(a))[0];return!!i&&t[n.indexOf(i)]},o.prototype.encoding=o.prototype.encodings=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var s=0;s<t.length;s++)t[s]=arguments[s]}return t&&0!==t.length?this.negotiator.encodings(t)[0]||!1:this.negotiator.encodings()},o.prototype.charset=o.prototype.charsets=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var s=0;s<t.length;s++)t[s]=arguments[s]}return t&&0!==t.length?this.negotiator.charsets(t)[0]||!1:this.negotiator.charsets()},o.prototype.lang=o.prototype.langs=o.prototype.language=o.prototype.languages=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var s=0;s<t.length;s++)t[s]=arguments[s]}return t&&0!==t.length?this.negotiator.languages(t)[0]||!1:this.negotiator.languages()}},81:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.isAsync)(e))return function(...t){const s=t.pop();return a(e.apply(this,t),s)};return(0,n.default)((function(t,s){var n;try{n=e.apply(this,t)}catch(e){return s(e)}if(n&&"function"==typeof n.then)return a(n,s);s(null,n)}))};var n=r(s(8321)),i=r(s(9571)),o=s(2080);function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.then((e=>{c(t,null,e)}),(e=>{c(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function c(e,t,s){try{e(t,s)}catch(e){(0,i.default)((e=>{throw e}),e)}}e.exports=t.default},6122:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(s(4796)),i=p(s(6307)),o=p(s(3475)),r=p(s(7826)),a=p(s(6978)),c=p(s(2080)),l=p(s(3129));function p(e){return e&&e.__esModule?e:{default:e}}function u(e,t,s){s=(0,r.default)(s);var n=0,o=0,{length:c}=e,l=!1;function p(e,t){!1===e&&(l=!0),!0!==l&&(e?s(e):++o!==c&&t!==i.default||s(null))}for(0===c&&s(null);n<c;n++)t(e[n],n,(0,a.default)(p))}function d(e,t,s){return(0,o.default)(e,1/0,t,s)}t.default=(0,l.default)((function(e,t,s){return((0,n.default)(e)?u:d)(e,(0,c.default)(t),s)}),3),e.exports=t.default},3475:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(s(9500)),i=r(s(2080)),o=r(s(3129));function r(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,s,o){return(0,n.default)(t)(e,(0,i.default)(s),o)}),4),e.exports=t.default},3457:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(s(3475)),i=o(s(3129));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,s){return(0,n.default)(e,1,t,s)}),3),e.exports=t.default},5305:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(s(6122)),i=a(s(9617)),o=a(s(2080)),r=a(s(3129));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)((function(e,t,s){return(0,n.default)(e,(0,i.default)((0,o.default)(t)),s)}),3),e.exports=t.default},3611:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,s,n){let i=!1,r=!1,a=!1,c=0,l=0;function p(){c>=t||a||i||(a=!0,e.next().then((({value:e,done:t})=>{if(!r&&!i){if(a=!1,t)return i=!0,void(c<=0&&n(null));c++,s(e,l,u),l++,p()}})).catch(d))}function u(e,t){if(c-=1,!r)return e?d(e):!1===e?(i=!0,void(r=!0)):t===o.default||i&&c<=0?(i=!0,n(null)):void p()}function d(e){r||(a=!1,i=!0,n(e))}p()};var n,i=s(6307),o=(n=i)&&n.__esModule?n:{default:n};e.exports=t.default},3129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t||(t=e.length);if(!t)throw new Error("arity is undefined");return function(...s){return"function"==typeof s[t-1]?e.apply(this,s):new Promise(((n,i)=>{s[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])},e.apply(this,s)}))}},e.exports=t.default},6307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={},e.exports=t.default},9500:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(s(7826)),i=l(s(2836)),o=l(s(6978)),r=s(2080),a=l(s(3611)),c=l(s(6307));function l(e){return e&&e.__esModule?e:{default:e}}t.default=e=>(t,s,l)=>{if(l=(0,n.default)(l),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return l(null);if((0,r.isAsyncGenerator)(t))return(0,a.default)(t,e,s,l);if((0,r.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,s,l);var p=(0,i.default)(t),u=!1,d=!1,h=0,f=!1;function m(e,t){if(!d)if(h-=1,e)u=!0,l(e);else if(!1===e)u=!0,d=!0;else{if(t===c.default||u&&h<=0)return u=!0,l(null);f||g()}}function g(){for(f=!0;h<e&&!u;){var t=p();if(null===t)return u=!0,void(h<=0&&l(null));h+=1,s(t.value,t.key,(0,o.default)(m))}f=!1}g()},e.exports=t.default},7558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()},e.exports=t.default},8321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){var s=t.pop();return e.call(this,t,s)}},e.exports=t.default},4796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0},e.exports=t.default},2836:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e))return function(e){var t=-1,s=e.length;return function(){return++t<s?{value:e[t],key:t}:null}}(e);var t=(0,i.default)(e);return t?function(e){var t=-1;return function(){var s=e.next();return s.done?null:(t++,{value:s.value,key:t})}}(t):(s=e,o=s?Object.keys(s):[],r=-1,a=o.length,function e(){var t=o[++r];return"__proto__"===t?e():r<a?{value:s[t],key:t}:null});var s,o,r,a};var n=o(s(4796)),i=o(s(7558));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(...t){if(null!==e){var s=e;e=null,s.apply(this,t)}}return Object.assign(t,e),t},e.exports=t.default},6978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var s=e;e=null,s.apply(this,t)}},e.exports=t.default},5350:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(s(4796)),i=r(s(2080)),o=r(s(3129));function r(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)(((e,t,s)=>{var o=(0,n.default)(t)?[]:{};e(t,((e,t,s)=>{(0,i.default)(e)(((e,...n)=>{n.length<2&&([n]=n),o[t]=n,s(e)}))}),(e=>s(e,o)))}),3),e.exports=t.default},9571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=r,t.wrap=a;var s,n=t.hasQueueMicrotask="function"==typeof queueMicrotask&&queueMicrotask,i=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,o=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function r(e){setTimeout(e,0)}function a(e){return(t,...s)=>e((()=>t(...s)))}s=n?queueMicrotask:i?setImmediate:o?process.nextTick:r,t.default=a(s)},9617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,s,n)=>e(t,n)},e.exports=t.default},2080:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var n,i=s(81),o=(n=i)&&n.__esModule?n:{default:n};function r(e){return"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){if("function"!=typeof e)throw new Error("expected a function");return r(e)?(0,o.default)(e):e},t.isAsync=r,t.isAsyncGenerator=function(e){return"AsyncGenerator"===e[Symbol.toStringTag]},t.isAsyncIterable=function(e){return"function"==typeof e[Symbol.asyncIterator]}},7476:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(i.default,e,t)};var n=o(s(5350)),i=o(s(3457));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9916:(e,t,s)=>{var n=s(6113),i=function(){};i.prototype.getRandomBytes=function(e){var t=4096,s=this;if((e=e||12)>t)return n.randomBytes(e);var i=parseInt(t/e),o=parseInt(.85*i);if(!o)return n.randomBytes(e);if(null==this.bytesBufferIndex&&(this.bytesBufferIndex=-1),this.bytesBufferIndex==i&&(this.bytesBuffer=null,this.bytesBufferIndex=-1),(-1==this.bytesBufferIndex||this.bytesBufferIndex>o)&&(this.isGeneratingBytes||(this.isGeneratingBytes=!0,n.randomBytes(t,(function(e,t){s.bytesBuffer=t,s.bytesBufferIndex=0,s.isGeneratingBytes=!1}))),-1==this.bytesBufferIndex))return n.randomBytes(e);var r=this.bytesBuffer.slice(e*this.bytesBufferIndex,e*(this.bytesBufferIndex+1));return this.bytesBufferIndex++,r},i.prototype.generateId=function(){var e=Buffer.alloc(15);return e.writeInt32BE?(this.sequenceNumber=this.sequenceNumber+1|0,e.writeInt32BE(this.sequenceNumber,11),n.randomBytes?this.getRandomBytes(12).copy(e):[0,4,8].forEach((function(t){e.writeInt32BE(Math.random()*Math.pow(2,32)|0,t)})),e.toString("base64").replace(/\//g,"_").replace(/\+/g,"-")):Math.abs(Math.random()*Math.random()*Date.now()|0).toString()+Math.abs(Math.random()*Math.random()*Date.now()|0).toString()},e.exports=new i},4360:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var s={},i=e.length;if(i<2)return s;var o=t&&t.decode||p,r=0,a=0,d=0;do{if(-1===(a=e.indexOf("=",r)))break;if(-1===(d=e.indexOf(";",r)))d=i;else if(a>d){r=e.lastIndexOf(";",a-1)+1;continue}var h=c(e,r,a),f=l(e,a,h),m=e.slice(h,f);if(!n.call(s,m)){var g=c(e,a+1,d),v=l(e,d,g);34===e.charCodeAt(g)&&34===e.charCodeAt(v-1)&&(g++,v--);var b=e.slice(g,v);s[m]=u(b,o)}r=d+1}while(r<i);return s},t.serialize=function(e,t,n){var c=n&&n.encode||encodeURIComponent;if("function"!=typeof c)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var l=c(t);if(!o.test(l))throw new TypeError("argument val is invalid");var p=e+"="+l;if(!n)return p;if(null!=n.maxAge){var u=Math.floor(n.maxAge);if(!isFinite(u))throw new TypeError("option maxAge is invalid");p+="; Max-Age="+u}if(n.domain){if(!r.test(n.domain))throw new TypeError("option domain is invalid");p+="; Domain="+n.domain}if(n.path){if(!a.test(n.path))throw new TypeError("option path is invalid");p+="; Path="+n.path}if(n.expires){var d=n.expires;if(!function(e){return"[object Date]"===s.call(e)}(d)||isNaN(d.valueOf()))throw new TypeError("option expires is invalid");p+="; Expires="+d.toUTCString()}n.httpOnly&&(p+="; HttpOnly");n.secure&&(p+="; Secure");n.partitioned&&(p+="; Partitioned");if(n.priority){switch("string"==typeof n.priority?n.priority.toLowerCase():n.priority){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"strict":p+="; SameSite=Strict";break;case"none":p+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return p};var s=Object.prototype.toString,n=Object.prototype.hasOwnProperty,i=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function c(e,t,s){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<s);return s}function l(e,t,s){for(;t>s;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return s}function p(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function u(e,t){try{return t(e)}catch(t){return e}}},9920:(e,t,s)=>{!function(){"use strict";var t=s(1538),n=s(9548),i={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function o(e){return"string"==typeof e||e instanceof String}function r(e,t){if(Array.isArray(t)){for(var s=0;s<t.length;++s)if(r(e,t[s]))return!0;return!1}return o(t)?e===t:t instanceof RegExp?t.test(e):!!t}function a(e,t){var s,n=t.headers.origin,i=[];return e.origin&&"*"!==e.origin?o(e.origin)?(i.push([{key:"Access-Control-Allow-Origin",value:e.origin}]),i.push([{key:"Vary",value:"Origin"}])):(s=r(n,e.origin),i.push([{key:"Access-Control-Allow-Origin",value:!!s&&n}]),i.push([{key:"Vary",value:"Origin"}])):i.push([{key:"Access-Control-Allow-Origin",value:"*"}]),i}function c(e){return!0===e.credentials?{key:"Access-Control-Allow-Credentials",value:"true"}:null}function l(e){var t=e.exposedHeaders;return t?(t.join&&(t=t.join(",")),t&&t.length?{key:"Access-Control-Expose-Headers",value:t}:null):null}function p(e,t){for(var s=0,i=e.length;s<i;s++){var o=e[s];o&&(Array.isArray(o)?p(o,t):"Vary"===o.key&&o.value?n(t,o.value):o.value&&t.setHeader(o.key,o.value))}}e.exports=function(e){var s=null;return s="function"==typeof e?e:function(t,s){s(null,e)},function(e,n,o){s(e,(function(s,r){if(s)o(s);else{var u=t({},i,r),d=null;u.origin&&"function"==typeof u.origin?d=u.origin:u.origin&&(d=function(e,t){t(null,u.origin)}),d?d(e.headers.origin,(function(t,s){t||!s?o(t):(u.origin=s,function(e,t,s,n){var i=[];"OPTIONS"===(t.method&&t.method.toUpperCase&&t.method.toUpperCase())?(i.push(a(e,t)),i.push(c(e)),i.push(function(e){var t=e.methods;return t.join&&(t=e.methods.join(",")),{key:"Access-Control-Allow-Methods",value:t}}(e)),i.push(function(e,t){var s=e.allowedHeaders||e.headers,n=[];return s?s.join&&(s=s.join(",")):(s=t.headers["access-control-request-headers"],n.push([{key:"Vary",value:"Access-Control-Request-Headers"}])),s&&s.length&&n.push([{key:"Access-Control-Allow-Headers",value:s}]),n}(e,t)),i.push(function(e){var t=("number"==typeof e.maxAge||e.maxAge)&&e.maxAge.toString();return t&&t.length?{key:"Access-Control-Max-Age",value:t}:null}(e)),i.push(l(e)),p(i,s),e.preflightContinue?n():(s.statusCode=e.optionsSuccessStatus,s.setHeader("Content-Length","0"),s.end())):(i.push(a(e,t)),i.push(c(e)),i.push(l(e)),p(i,s),n())}(u,e,n,o))})):o()}}))}}}()},9936:(e,t,s)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;t.splice(1,0,s,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,s)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=s(8165)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8165:(e,t,s)=>{e.exports=function(e){function t(e){let s,i,o,r=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(s||i);n.diff=o,n.prev=s,n.curr=i,s=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((s,i)=>{if("%%"===s)return"%";r++;const o=t.formatters[i];if("function"==typeof o){const t=e[r];s=o.call(n,t),e.splice(r,1),r--}return s})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{r=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,s){const n=t(this.namespace+(void 0===s?":":s)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let s;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(s=0;s<i;s++)n[s]&&("-"===(e=n[s].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let s,n;for(s=0,n=t.skips.length;s<n;s++)if(t.skips[s].test(e))return!1;for(s=0,n=t.names.length;s<n;s++)if(t.names[s].test(e))return!0;return!1},t.humanize=s(2739),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((s=>{t[s]=e[s]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let s=0;for(let t=0;t<e.length;t++)s=(s<<5)-s+e.charCodeAt(t),s|=0;return t.colors[Math.abs(s)%t.colors.length]},t.enable(t.load()),t}},9229:(e,t,s)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=s(9936):e.exports=s(8259)},8259:(e,t,s)=>{const n=s(6224),i=s(3837);t.init=function(e){e.inspectOpts={};const s=Object.keys(t.inspectOpts);for(let n=0;n<s.length;n++)e.inspectOpts[s[n]]=t.inspectOpts[s[n]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(s){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${n} [0m`;s[0]=o+s[0].split("\n").join("\n"+o),s.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else s[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+s[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=s(7318);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const s=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[s]=n,e}),{}),e.exports=s(8165)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},5743:(e,t,s)=>{"use strict";s.r(t),s.d(t,{assign:()=>p,default:()=>j,defaultI18n:()=>f,format:()=>C,parse:()=>R,setGlobalDateI18n:()=>g,setGlobalDateMasks:()=>O});var n=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",o="\\d\\d",r="[^\\s]+",a=/\[([^]*?)\]/gm;function c(e,t){for(var s=[],n=0,i=e.length;n<i;n++)s.push(e[n].substr(0,t));return s}var l=function(e){return function(t,s){var n=s[e].map((function(e){return e.toLowerCase()})),i=n.indexOf(t.toLowerCase());return i>-1?i:null}};function p(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];for(var n=0,i=t;n<i.length;n++){var o=i[n];for(var r in o)e[r]=o[r]}return e}var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],h=c(d,3),f={dayNamesShort:c(u,3),dayNames:u,monthNamesShort:h,monthNames:d,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10?1:0)*e%10]}},m=p({},f),g=function(e){return m=p(m,e)},v=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},b=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},x={D:function(e){return String(e.getDate())},DD:function(e){return b(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return b(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return b(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return b(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return b(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return b(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return b(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return b(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return b(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return b(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return b(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+b(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+b(Math.floor(Math.abs(t)/60),2)+":"+b(Math.abs(t)%60,2)}},y=function(e){return+e-1},w=[null,i],_=[null,r],k=["isPm",r,function(e,t){var s=e.toLowerCase();return s===t.amPm[0]?0:s===t.amPm[1]?1:null}],S=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var s=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?s:-s}return 0}],E={D:["day",i],DD:["day",o],Do:["day",i+r,function(e){return parseInt(e,10)}],M:["month",i,y],MM:["month",o,y],YY:["year",o,function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",i,void 0,"isPm"],hh:["hour",o,void 0,"isPm"],H:["hour",i],HH:["hour",o],m:["minute",i],mm:["minute",o],s:["second",i],ss:["second",o],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",o,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:w,dd:w,ddd:_,dddd:_,MMM:["month",r,l("monthNamesShort")],MMMM:["month",r,l("monthNames")],a:k,A:k,ZZ:S,Z:S},T={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},O=function(e){return p(T,e)},C=function(e,t,s){if(void 0===t&&(t=T.default),void 0===s&&(s={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=T[t]||t;var i=[];t=t.replace(a,(function(e,t){return i.push(t),"@@@"}));var o=p(p({},m),s);return(t=t.replace(n,(function(t){return x[t](e,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function R(e,t,s){if(void 0===s&&(s={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=T[t]||t,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],r=[],c=t.replace(a,(function(e,t){return r.push(v(t)),"@@@"})),l={},u={};c=v(c).replace(n,(function(e){var t=E[e],s=t[0],n=t[1],i=t[3];if(l[s])throw new Error("Invalid format. "+s+" specified twice in format");return l[s]=!0,i&&(u[i]=!0),o.push(t),"("+n+")"})),Object.keys(u).forEach((function(e){if(!l[e])throw new Error("Invalid format. "+e+" is required in specified format")})),c=c.replace(/@@@/g,(function(){return r.shift()}));var d=e.match(new RegExp(c,"i"));if(!d)return null;for(var h,f=p(p({},m),s),g=1;g<d.length;g++){var b=o[g-1],x=b[0],y=b[2],w=y?y(d[g],f):+d[g];if(null==w)return null;i[x]=w}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){h=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var _=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],k=(g=0,_.length);g<k;g++)if(l[_[g][0]]&&i[_[g][0]]!==h[_[g][1]]())return null}else if(h=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return h}const j={format:C,parse:R,defaultI18n:f,setGlobalDateI18n:g,setGlobalDateMasks:O}},9112:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){if("string"==typeof e.displayName&&e.constructor.name)return e.displayName;if("string"==typeof e.name&&e.name)return e.name;if("object"==typeof e&&e.constructor&&"string"==typeof e.constructor.name)return e.constructor.name;var s=e.toString(),n=t.call(e).slice(8,-1);return(s="Function"===n?s.substring(s.indexOf("(")+1,s.indexOf(")")):n)||"anonymous"}},602:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const s=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(s+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},8398:(e,t,s)=>{"use strict";const n=s(5687),i=s(3685),{URL:o}=s(7310);class r extends i.Agent{constructor(e){const{proxy:t,proxyRequestOptions:s,...n}=e;super(n),this.proxy="string"==typeof t?new o(t):t,this.proxyRequestOptions=s||{}}createConnection(e,t){const s={...this.proxyRequestOptions,method:"CONNECT",host:this.proxy.hostname,port:this.proxy.port,path:`${e.host}:${e.port}`,setHost:!1,headers:{...this.proxyRequestOptions.headers,connection:this.keepAlive?"keep-alive":"close",host:`${e.host}:${e.port}`},agent:!1,timeout:e.timeout||0};if(this.proxy.username||this.proxy.password){const e=Buffer.from(`${decodeURIComponent(this.proxy.username||"")}:${decodeURIComponent(this.proxy.password||"")}`).toString("base64");s.headers["proxy-authorization"]=`Basic ${e}`}"https:"===this.proxy.protocol&&(s.servername=this.proxy.hostname);const o=("http:"===this.proxy.protocol?i:n).request(s);o.once("connect",((e,s,n)=>{o.removeAllListeners(),s.removeAllListeners(),200===e.statusCode?t(null,s):(s.destroy(),t(new Error(`Bad response: ${e.statusCode}`),null))})),o.once("timeout",(()=>{o.destroy(new Error("Proxy timeout"))})),o.once("error",(e=>{o.removeAllListeners(),t(e,null)})),o.end()}}class a extends n.Agent{constructor(e){const{proxy:t,proxyRequestOptions:s,...n}=e;super(n),this.proxy="string"==typeof t?new o(t):t,this.proxyRequestOptions=s||{}}createConnection(e,t){const s={...this.proxyRequestOptions,method:"CONNECT",host:this.proxy.hostname,port:this.proxy.port,path:`${e.host}:${e.port}`,setHost:!1,headers:{...this.proxyRequestOptions.headers,connection:this.keepAlive?"keep-alive":"close",host:`${e.host}:${e.port}`},agent:!1,timeout:e.timeout||0};if(this.proxy.username||this.proxy.password){const e=Buffer.from(`${decodeURIComponent(this.proxy.username||"")}:${decodeURIComponent(this.proxy.password||"")}`).toString("base64");s.headers["proxy-authorization"]=`Basic ${e}`}"https:"===this.proxy.protocol&&(s.servername=this.proxy.hostname);const o=("http:"===this.proxy.protocol?i:n).request(s);o.once("connect",((s,n,i)=>{if(o.removeAllListeners(),n.removeAllListeners(),200===s.statusCode){const s=super.createConnection({...e,socket:n});t(null,s)}else n.destroy(),t(new Error(`Bad response: ${s.statusCode}`),null)})),o.once("timeout",(()=>{o.destroy(new Error("Proxy timeout"))})),o.once("error",(e=>{o.removeAllListeners(),t(e,null)})),o.end()}}e.exports={HttpProxyAgent:r,HttpsProxyAgent:a}},2591:(e,t,s)=>{try{var n=s(3837);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=s(9118)}},9118:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var s=function(){};s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e}}},8549:e=>{"use strict";const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform,e.exports=t},2435:(e,t,s)=>{"use strict";const n=s(3020);e.exports=n((e=>(e.message=`\t${e.message}`,e)))},7980:(e,t,s)=>{"use strict";const{Colorizer:n}=s(2862),{Padder:i}=s(5449),{configs:o,MESSAGE:r}=s(8029);class a{constructor(e={}){e.levels||(e.levels=o.cli.levels),this.colorizer=new n(e),this.padder=new i(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[r]=`${e.level}:${e.message}`,e}}e.exports=e=>new a(e),e.exports.Format=a},2862:(e,t,s)=>{"use strict";const n=s(7112),{LEVEL:i,MESSAGE:o}=s(8029);n.enabled=!0;const r=/\s+/;class a{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){const t=Object.keys(e).reduce(((t,s)=>(t[s]=r.test(e[s])?e[s].split(r):e[s],t)),{});return a.allColors=Object.assign({},a.allColors||{},t),a.allColors}addColors(e){return a.addColors(e)}colorize(e,t,s){if(void 0===s&&(s=t),!Array.isArray(a.allColors[e]))return n[a.allColors[e]](s);for(let t=0,i=a.allColors[e].length;t<i;t++)s=n[a.allColors[e][t]](s);return s}transform(e,t){return t.all&&"string"==typeof e[o]&&(e[o]=this.colorize(e[i],e.level,e[o])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[i],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[i],e.level,e.message)),e}}e.exports=e=>new a(e),e.exports.Colorizer=e.exports.Format=a},822:(e,t,s)=>{"use strict";const n=s(3020);function i(e){if(e.every(o))return t=>{let s=t;for(let t=0;t<e.length;t++)if(s=e[t].transform(s,e[t].options),!s)return!1;return s}}function o(e){if("function"!=typeof e.transform)throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join("\n"));return!0}e.exports=(...e)=>{const t=n(i(e)),s=t();return s.Format=t.Format,s},e.exports.cascade=i},1813:(e,t,s)=>{"use strict";const n=s(3020),{LEVEL:i,MESSAGE:o}=s(8029);e.exports=n(((e,{stack:t,cause:s})=>{if(e instanceof Error){const n=Object.assign({},e,{level:e.level,[i]:e[i]||e.level,message:e.message,[o]:e[o]||e.message});return t&&(n.stack=e.stack),s&&(n.cause=e.cause),n}if(!(e.message instanceof Error))return e;const n=e.message;return Object.assign(e,n),e.message=n.message,e[o]=n.message,t&&(e.stack=n.stack),s&&(e.cause=n.cause),e}))},3020:e=>{"use strict";class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${e.toString().split("\n")[0]}\n`),Error.captureStackTrace(this,t)}}e.exports=e=>{if(e.length>2)throw new t(e);function s(e={}){this.options=e}function n(e){return new s(e)}return s.prototype.transform=e,n.Format=s,n}},3886:(e,t,s)=>{"use strict";const n=t.format=s(3020);function i(e,t){Object.defineProperty(n,e,{get:()=>t(),configurable:!0})}t.levels=s(1024),i("align",(function(){return s(2435)})),i("errors",(function(){return s(1813)})),i("cli",(function(){return s(7980)})),i("combine",(function(){return s(822)})),i("colorize",(function(){return s(2862)})),i("json",(function(){return s(3005)})),i("label",(function(){return s(9585)})),i("logstash",(function(){return s(3203)})),i("metadata",(function(){return s(3364)})),i("ms",(function(){return s(6871)})),i("padLevels",(function(){return s(5449)})),i("prettyPrint",(function(){return s(4794)})),i("printf",(function(){return s(2042)})),i("simple",(function(){return s(3596)})),i("splat",(function(){return s(5614)})),i("timestamp",(function(){return s(271)})),i("uncolorize",(function(){return s(8975)}))},3005:(e,t,s)=>{"use strict";const n=s(3020),{MESSAGE:i}=s(8029),o=s(6948);function r(e,t){return"bigint"==typeof t?t.toString():t}e.exports=n(((e,t)=>{const s=o.configure(t);return e[i]=s(e,t.replacer||r,t.space),e}))},9585:(e,t,s)=>{"use strict";const n=s(3020);e.exports=n(((e,t)=>t.message?(e.message=`[${t.label}] ${e.message}`,e):(e.label=t.label,e)))},1024:(e,t,s)=>{"use strict";const{Colorizer:n}=s(2862);e.exports=e=>(n.addColors(e.colors||e),e)},3203:(e,t,s)=>{"use strict";const n=s(3020),{MESSAGE:i}=s(8029),o=s(6948);e.exports=n((e=>{const t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e}))},3364:(e,t,s)=>{"use strict";const n=s(3020);e.exports=n(((e,t={})=>{let s="metadata";t.key&&(s=t.key);let n=[];return t.fillExcept||t.fillWith||(n.push("level"),n.push("message")),t.fillExcept&&(n=t.fillExcept),n.length>0?function(e,t,s){const n=t.reduce(((t,s)=>(t[s]=e[s],delete e[s],t)),{}),i=Object.keys(e).reduce(((t,s)=>(t[s]=e[s],delete e[s],t)),{});return Object.assign(e,n,{[s]:i}),e}(e,n,s):t.fillWith?function(e,t,s){return e[s]=t.reduce(((t,s)=>(t[s]=e[s],delete e[s],t)),{}),e}(e,t.fillWith,s):e}))},6871:function(e,t,s){"use strict";const n=s(3020),i=s(2739);e.exports=n((e=>{const t=+new Date;return this.diff=t-(this.prevTime||t),this.prevTime=t,e.ms=`+${i(this.diff)}`,e}))},5449:(e,t,s)=>{"use strict";const{configs:n,LEVEL:i,MESSAGE:o}=s(8029);class r{constructor(e={levels:n.npm.levels}){this.paddings=r.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){const t=Object.keys(e).map((e=>e.length));return Math.max(...t)}static paddingForLevel(e,t,s){const n=s+1-e.length,i=Math.floor(n/t.length);return`${t}${t.repeat(i)}`.slice(0,n)}static paddingForLevels(e,t=" "){const s=r.getLongestLevel(e);return Object.keys(e).reduce(((e,n)=>(e[n]=r.paddingForLevel(n,t,s),e)),{})}transform(e,t){return e.message=`${this.paddings[e[i]]}${e.message}`,e[o]&&(e[o]=`${this.paddings[e[i]]}${e[o]}`),e}}e.exports=e=>new r(e),e.exports.Padder=e.exports.Format=r},4794:(e,t,s)=>{"use strict";const n=s(3837).inspect,i=s(3020),{LEVEL:o,MESSAGE:r,SPLAT:a}=s(8029);e.exports=i(((e,t={})=>{const s=Object.assign({},e);return delete s[o],delete s[r],delete s[a],e[r]=n(s,!1,t.depth||null,t.colorize),e}))},2042:(e,t,s)=>{"use strict";const{MESSAGE:n}=s(8029);class i{constructor(e){this.template=e}transform(e){return e[n]=this.template(e),e}}e.exports=e=>new i(e),e.exports.Printf=e.exports.Format=i},3596:(e,t,s)=>{"use strict";const n=s(3020),{MESSAGE:i}=s(8029),o=s(6948);e.exports=n((e=>{const t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),s=e.padding&&e.padding[e.level]||"";return e[i]="{}"!==t?`${e.level}:${s} ${e.message} ${t}`:`${e.level}:${s} ${e.message}`,e}))},5614:(e,t,s)=>{"use strict";const n=s(3837),{SPLAT:i}=s(8029),o=/%[scdjifoO%]/g,r=/%%/g;class a{constructor(e){this.options=e}_splat(e,t){const s=e.message,o=e[i]||e.splat||[],a=s.match(r),c=a&&a.length||0,l=t.length-c-o.length,p=l<0?o.splice(l,-1*l):[],u=p.length;if(u)for(let t=0;t<u;t++)Object.assign(e,p[t]);return e.message=n.format(s,...o),e}transform(e){const t=e.message,s=e[i]||e.splat;if(!s||!s.length)return e;const n=t&&t.match&&t.match(o);if(!n&&(s||s.length)){const t=s.length>1?s.splice(0):s,n=t.length;if(n)for(let s=0;s<n;s++)Object.assign(e,t[s]);return e}return n?this._splat(e,n):e}}e.exports=e=>new a(e)},271:(e,t,s)=>{"use strict";const n=s(5743),i=s(3020);e.exports=i(((e,t={})=>(t.format&&(e.timestamp="function"==typeof t.format?t.format():n.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e)))},8975:(e,t,s)=>{"use strict";const n=s(7112),i=s(3020),{MESSAGE:o}=s(8029);e.exports=i(((e,t)=>(!1!==t.level&&(e.level=n.strip(e.level)),!1!==t.message&&(e.message=n.strip(String(e.message))),!1!==t.raw&&e[o]&&(e[o]=n.strip(String(e[o]))),e)))},8437:(e,t,s)=>{e.exports=s(9601)},4345:(e,t,s)=>{"use strict";var n,i,o,r=s(8437),a=s(1017).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),s=t&&r[t[1].toLowerCase()];return s&&s.charset?s.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var s=-1===e.indexOf("/")?t.lookup(e):e;if(!s)return!1;if(-1===s.indexOf("charset")){var n=t.charset(s);n&&(s+="; charset="+n.toLowerCase())}return s},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var s=c.exec(e),n=s&&t.extensions[s[1].toLowerCase()];if(!n||!n.length)return!1;return n[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var s=a("x."+e).toLowerCase().substr(1);if(!s)return!1;return t.types[s]||!1},t.types=Object.create(null),n=t.extensions,i=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(r).forEach((function(e){var t=r[e],s=t.extensions;if(s&&s.length){n[e]=s;for(var a=0;a<s.length;a++){var c=s[a];if(i[c]){var l=o.indexOf(r[i[c]].source),p=o.indexOf(t.source);if("application/octet-stream"!==i[c]&&(l>p||l===p&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))},2739:e=>{var t=1e3,s=60*t,n=60*s,i=24*n,o=7*i,r=365.25*i;function a(e,t,s,n){var i=t>=1.5*s;return Math.round(e/s)+" "+n+(i?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*s;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=n)return a(e,o,n,"hour");if(o>=s)return a(e,o,s,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=n)return Math.round(e/n)+"h";if(o>=s)return Math.round(e/s)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9442:(e,t,s)=>{"use strict";var n=s(8664),i=s(5039),o=s(7190),r=s(527);function a(e){if(!(this instanceof a))return new a(e);this.request=e}e.exports=a,e.exports.Negotiator=a,a.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},a.prototype.charsets=function(e){return n(this.request.headers["accept-charset"],e)},a.prototype.encoding=function(e){var t=this.encodings(e);return t&&t[0]},a.prototype.encodings=function(e){return i(this.request.headers["accept-encoding"],e)},a.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},a.prototype.languages=function(e){return o(this.request.headers["accept-language"],e)},a.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},a.prototype.mediaTypes=function(e){return r(this.request.headers.accept,e)},a.prototype.preferredCharset=a.prototype.charset,a.prototype.preferredCharsets=a.prototype.charsets,a.prototype.preferredEncoding=a.prototype.encoding,a.prototype.preferredEncodings=a.prototype.encodings,a.prototype.preferredLanguage=a.prototype.language,a.prototype.preferredLanguages=a.prototype.languages,a.prototype.preferredMediaType=a.prototype.mediaType,a.prototype.preferredMediaTypes=a.prototype.mediaTypes},8664:e=>{"use strict";e.exports=i,e.exports.preferredCharsets=i;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function s(e,s){var n=t.exec(e);if(!n)return null;var i=n[1],o=1;if(n[2])for(var r=n[2].split(";"),a=0;a<r.length;a++){var c=r[a].trim().split("=");if("q"===c[0]){o=parseFloat(c[1]);break}}return{charset:i,q:o,i:s}}function n(e,t,s){var n=0;if(t.charset.toLowerCase()===e.toLowerCase())n|=1;else if("*"!==t.charset)return null;return{i:s,o:t.i,q:t.q,s:n}}function i(e,t){var i=function(e){for(var t=e.split(","),n=0,i=0;n<t.length;n++){var o=s(t[n].trim(),n);o&&(t[i++]=o)}return t.length=i,t}(void 0===e?"*":e||"");if(!t)return i.filter(a).sort(o).map(r);var c=t.map((function(e,t){return function(e,t,s){for(var i={o:-1,q:0,s:0},o=0;o<t.length;o++){var r=n(e,t[o],s);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}(e,i,t)}));return c.filter(a).sort(o).map((function(e){return t[c.indexOf(e)]}))}function o(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function r(e){return e.charset}function a(e){return e.q>0}},5039:e=>{"use strict";e.exports=i,e.exports.preferredEncodings=i;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function s(e,s){var n=t.exec(e);if(!n)return null;var i=n[1],o=1;if(n[2])for(var r=n[2].split(";"),a=0;a<r.length;a++){var c=r[a].trim().split("=");if("q"===c[0]){o=parseFloat(c[1]);break}}return{encoding:i,q:o,i:s}}function n(e,t,s){var n=0;if(t.encoding.toLowerCase()===e.toLowerCase())n|=1;else if("*"!==t.encoding)return null;return{i:s,o:t.i,q:t.q,s:n}}function i(e,t){var i=function(e){for(var t=e.split(","),i=!1,o=1,r=0,a=0;r<t.length;r++){var c=s(t[r].trim(),r);c&&(t[a++]=c,i=i||n("identity",c),o=Math.min(o,c.q||1))}return i||(t[a++]={encoding:"identity",q:o,i:r}),t.length=a,t}(e||"");if(!t)return i.filter(a).sort(o).map(r);var c=t.map((function(e,t){return function(e,t,s){for(var i={o:-1,q:0,s:0},o=0;o<t.length;o++){var r=n(e,t[o],s);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}(e,i,t)}));return c.filter(a).sort(o).map((function(e){return t[c.indexOf(e)]}))}function o(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function r(e){return e.encoding}function a(e){return e.q>0}},7190:e=>{"use strict";e.exports=i,e.exports.preferredLanguages=i;var t=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function s(e,s){var n=t.exec(e);if(!n)return null;var i=n[1],o=n[2],r=i;o&&(r+="-"+o);var a=1;if(n[3])for(var c=n[3].split(";"),l=0;l<c.length;l++){var p=c[l].split("=");"q"===p[0]&&(a=parseFloat(p[1]))}return{prefix:i,suffix:o,q:a,i:s,full:r}}function n(e,t,n){var i=s(e);if(!i)return null;var o=0;if(t.full.toLowerCase()===i.full.toLowerCase())o|=4;else if(t.prefix.toLowerCase()===i.full.toLowerCase())o|=2;else if(t.full.toLowerCase()===i.prefix.toLowerCase())o|=1;else if("*"!==t.full)return null;return{i:n,o:t.i,q:t.q,s:o}}function i(e,t){var i=function(e){for(var t=e.split(","),n=0,i=0;n<t.length;n++){var o=s(t[n].trim(),n);o&&(t[i++]=o)}return t.length=i,t}(void 0===e?"*":e||"");if(!t)return i.filter(a).sort(o).map(r);var c=t.map((function(e,t){return function(e,t,s){for(var i={o:-1,q:0,s:0},o=0;o<t.length;o++){var r=n(e,t[o],s);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}(e,i,t)}));return c.filter(a).sort(o).map((function(e){return t[c.indexOf(e)]}))}function o(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function r(e){return e.full}function a(e){return e.q>0}},527:e=>{"use strict";e.exports=o,e.exports.preferredMediaTypes=o;var t=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function s(e){for(var t=function(e){for(var t=e.split(","),s=1,n=0;s<t.length;s++)l(t[n])%2==0?t[++n]=t[s]:t[n]+=","+t[s];return t.length=n+1,t}(e),s=0,i=0;s<t.length;s++){var o=n(t[s].trim(),s);o&&(t[i++]=o)}return t.length=i,t}function n(e,s){var n=t.exec(e);if(!n)return null;var i=Object.create(null),o=1,r=n[2],a=n[1];if(n[3])for(var c=function(e){for(var t=e.split(";"),s=1,n=0;s<t.length;s++)l(t[n])%2==0?t[++n]=t[s]:t[n]+=";"+t[s];t.length=n+1;for(s=0;s<t.length;s++)t[s]=t[s].trim();return t}(n[3]).map(p),u=0;u<c.length;u++){var d=c[u],h=d[0].toLowerCase(),f=d[1],m=f&&'"'===f[0]&&'"'===f[f.length-1]?f.substr(1,f.length-2):f;if("q"===h){o=parseFloat(m);break}i[h]=m}return{type:a,subtype:r,params:i,q:o,i:s}}function i(e,t,s){var i=n(e),o=0;if(!i)return null;if(t.type.toLowerCase()==i.type.toLowerCase())o|=4;else if("*"!=t.type)return null;if(t.subtype.toLowerCase()==i.subtype.toLowerCase())o|=2;else if("*"!=t.subtype)return null;var r=Object.keys(t.params);if(r.length>0){if(!r.every((function(e){return"*"==t.params[e]||(t.params[e]||"").toLowerCase()==(i.params[e]||"").toLowerCase()})))return null;o|=1}return{i:s,o:t.i,q:t.q,s:o}}function o(e,t){var n=s(void 0===e?"*/*":e||"");if(!t)return n.filter(c).sort(r).map(a);var o=t.map((function(e,t){return function(e,t,s){for(var n={o:-1,q:0,s:0},o=0;o<t.length;o++){var r=i(e,t[o],s);r&&(n.s-r.s||n.q-r.q||n.o-r.o)<0&&(n=r)}return n}(e,n,t)}));return o.filter(c).sort(r).map((function(e){return t[o.indexOf(e)]}))}function r(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function a(e){return e.type+"/"+e.subtype}function c(e){return e.q>0}function l(e){for(var t=0,s=0;-1!==(s=e.indexOf('"',s));)t++,s++;return t}function p(e){var t,s,n=e.indexOf("=");return-1===n?t=e:(t=e.substr(0,n),s=e.substr(n+1)),[t,s]}},1538:e=>{"use strict";var t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},s=0;s<10;s++)t["_"+String.fromCharCode(s)]=s;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,r,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in o=Object(arguments[c]))s.call(o,l)&&(a[l]=o[l]);if(t){r=t(o);for(var p=0;p<r.length;p++)n.call(o,r[p])&&(a[r[p]]=o[r[p]])}}return a}},3918:(e,t,s)=>{"use strict";var n=s(9112);e.exports=function(e){var t,s=0;function i(){return s||(s=1,t=e.apply(this,arguments),e=null),t}return i.displayName=n(e),i}},1743:e=>{"use strict";const t={};function s(e,s,n){n||(n=Error);class i extends n{constructor(e,t,n){super(function(e,t,n){return"string"==typeof s?s:s(e,t,n)}(e,t,n))}}i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){const s=e.length;return e=e.map((e=>String(e))),s>2?`one of ${t} ${e.slice(0,s-1).join(", ")}, or `+e[s-1]:2===s?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}s("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),s("ERR_INVALID_ARG_TYPE",(function(e,t,s){let i;var o,r;let a;if("string"==typeof t&&(o="not ",t.substr(!r||r<0?0:+r,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,s){return(void 0===s||s>e.length)&&(s=e.length),e.substring(s-t.length,s)===t}(e," argument"))a=`The ${e} ${i} ${n(t,"type")}`;else{const s=function(e,t,s){return"number"!=typeof s&&(s=0),!(s+t.length>e.length)&&-1!==e.indexOf(t,s)}(e,".")?"property":"argument";a=`The "${e}" ${s} ${i} ${n(t,"type")}`}return a+=". Received type "+typeof s,a}),TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},7664:(e,t,s)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var s in e)t.push(s);return t};e.exports=l;var i=s(5170),o=s(328);s(2591)(l,i);for(var r=n(o.prototype),a=0;a<r.length;a++){var c=r[a];l.prototype[c]||(l.prototype[c]=o.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||process.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},3163:(e,t,s)=>{"use strict";e.exports=i;var n=s(2057);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}s(2591)(i,n),i.prototype._transform=function(e,t,s){s(null,e)}},5170:(e,t,s)=>{"use strict";var n;e.exports=S,S.ReadableState=k;s(2361).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=s(5103),r=s(4300).Buffer,a=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,l=s(3837);c=l&&l.debuglog?l.debuglog("stream"):function(){};var p,u,d,h=s(3551),f=s(7866),m=s(7703).getHighWaterMark,g=s(1743).q,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,x=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;s(2591)(S,o);var w=f.errorOrDestroy,_=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||s(7664),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=s(2682).s),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function S(e){if(n=n||s(7664),!(this instanceof S))return new S(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function E(e,t,s,n,i){c("readableAddChunk",t);var o,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var s=t.decoder.end();s&&s.length&&(t.buffer.push(s),t.length+=t.objectMode?1:s.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,l);else if(i||(o=function(e,t){var s;n=t,r.isBuffer(n)||n instanceof a||"string"==typeof t||void 0===t||e.objectMode||(s=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return s}(l,t)),o)w(e,o);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===r.prototype||(t=function(e){return r.from(e)}(t)),n)l.endEmitted?w(e,new y):T(e,l,t,!0);else if(l.ended)w(e,new b);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!s?(t=l.decoder.write(t),l.objectMode||0!==t.length?T(e,l,t,!1):A(e,l)):T(e,l,t,!1)}else n||(l.reading=!1,A(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function T(e,t,s,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",s)):(t.length+=t.objectMode?1:s.length,n?t.buffer.unshift(s):t.buffer.push(s),t.needReadable&&R(e)),A(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var s,n=this._readableState;return n.objectMode?s=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=r.from(e,t),t=""),s=!0),E(this,e,t,!1,s)},S.prototype.unshift=function(e){return E(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){p||(p=s(2682).s);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function C(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function R(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(j,e))}function j(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function A(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var s=t.length;if(c("maybeReadMore read 0"),e.read(0),s===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){c("readable nexttick read 0"),e.read(0)}function D(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function q(e,t){return 0===t.length?null:(t.objectMode?s=t.buffer.shift():!e||e>=t.length?(s=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):s=t.buffer.consume(e,t.decoder),s);var s}function I(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(B,t,e))}function B(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var s=t._writableState;(!s||s.autoDestroy&&s.finished)&&t.destroy()}}function $(e,t){for(var s=0,n=e.length;s<n;s++)if(e[s]===t)return s;return-1}S.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,s=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):R(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=C(s,t))),null===(n=e>0?q(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),s!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){w(this,new x("_read()"))},S.prototype.pipe=function(e,t){var s=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?a:m;function r(t,i){c("onunpipe"),t===s&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",f),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",r),s.removeListener("end",a),s.removeListener("end",m),s.removeListener("data",u),p=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function a(){c("onend"),e.end()}n.endEmitted?process.nextTick(o):s.once("end",o),e.on("unpipe",r);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(s);e.on("drain",l);var p=!1;function u(t){c("ondata");var i=e.write(t);c("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==$(n.pipes,e))&&!p&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),s.pause())}function d(t){c("onerror",t),m(),e.removeListener("error",d),0===i(e,"error")&&w(e,t)}function h(){e.removeListener("finish",f),m()}function f(){c("onfinish"),e.removeListener("close",h),m()}function m(){c("unpipe"),s.unpipe(e)}return s.on("data",u),function(e,t,s){if("function"==typeof e.prependListener)return e.prependListener(t,s);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(s):e._events[t]=[s,e._events[t]]:e.on(t,s)}(e,"error",d),e.once("close",h),e.once("finish",f),e.emit("pipe",s),n.flowing||(c("pipe resume"),s.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,s={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,s)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var r=$(t.pipes,e);return-1===r||(t.pipes.splice(r,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,s)),this},S.prototype.on=function(e,t){var s=o.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?R(this):n.reading||process.nextTick(N,this))),s},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var s=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(M,this),s},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(M,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(D,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,s=this._readableState,n=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),s.decoder&&!s.ended){var e=s.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),s.decoder&&(i=s.decoder.write(i)),s.objectMode&&null==i)||(s.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=s(4587)),u(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=q,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===d&&(d=s(531)),d(S,e,t)})},2057:(e,t,s)=>{"use strict";e.exports=p;var n=s(1743).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,r=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=s(7664);function l(e,t){var s=this._transformState;s.transforming=!1;var n=s.writecb;if(null===n)return this.emit("error",new o);s.writechunk=null,s.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function p(e){if(!(this instanceof p))return new p(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function u(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,s){d(e,t,s)}))}function d(e,t,s){if(t)return e.emit("error",t);if(null!=s&&e.push(s),e._writableState.length)throw new a;if(e._transformState.transforming)throw new r;return e.push(null)}s(2591)(p,c),p.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},p.prototype._transform=function(e,t,s){s(new i("_transform()"))},p.prototype._write=function(e,t,s){var n=this._transformState;if(n.writecb=s,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},p.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},p.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},328:(e,t,s)=>{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,s){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(s),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=S,S.WritableState=k;var o={deprecate:s(9615)},r=s(5103),a=s(4300).Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,p=s(7866),u=s(7703).getHighWaterMark,d=s(1743).q,h=d.ERR_INVALID_ARG_TYPE,f=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,x=d.ERR_STREAM_WRITE_AFTER_END,y=d.ERR_UNKNOWN_ENCODING,w=p.errorOrDestroy;function _(){}function k(e,t,o){i=i||s(7664),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=u(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=!1===e.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var s=e._writableState,n=s.sync,i=s.writecb;if("function"!=typeof i)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(s),t)!function(e,t,s,n,i){--t.pendingcb,s?(process.nextTick(i,n),process.nextTick(j,e,t),e._writableState.errorEmitted=!0,w(e,n)):(i(n),e._writableState.errorEmitted=!0,w(e,n),j(e,t))}(e,s,n,t,i);else{var o=C(s)||e.destroyed;o||s.corked||s.bufferProcessing||!s.bufferedRequest||O(e,s),n?process.nextTick(T,e,s,o,i):T(e,s,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function S(e){var t=this instanceof(i=i||s(7664));if(!t&&!l.call(S,this))return new S(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function E(e,t,s,n,i,o,r){t.writelen=n,t.writecb=r,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):s?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,s,n){s||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var s=t.bufferedRequest;if(e._writev&&s&&s.next){var i=t.bufferedRequestCount,o=new Array(i),r=t.corkedRequestsFree;r.entry=s;for(var a=0,c=!0;s;)o[a]=s,s.isBuf||(c=!1),s=s.next,a+=1;o.allBuffers=c,E(e,t,!0,t.length,o,"",r.finish),t.pendingcb++,t.lastBufferedRequest=null,r.next?(t.corkedRequestsFree=r.next,r.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;s;){var l=s.chunk,p=s.encoding,u=s.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,p,u),s=s.next,t.bufferedRequestCount--,t.writing)break}null===s&&(t.lastBufferedRequest=null)}t.bufferedRequest=s,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final((function(s){t.pendingcb--,s&&w(e,s),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var s=C(t);if(s&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(R,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return s}s(2591)(S,r),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===S&&(e&&e._writableState instanceof k)}})):l=function(e){return e instanceof this},S.prototype.pipe=function(){w(this,new g)},S.prototype.write=function(e,t,s){var n,i=this._writableState,o=!1,r=!i.objectMode&&(n=e,a.isBuffer(n)||n instanceof c);return r&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(s=t,t=null),r?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof s&&(s=_),i.ending?function(e,t){var s=new x;w(e,s),process.nextTick(t,s)}(this,s):(r||function(e,t,s,n){var i;return null===s?i=new b:"string"==typeof s||t.objectMode||(i=new h("chunk",["string","Buffer"],s)),!i||(w(e,i),process.nextTick(n,i),!1)}(this,i,e,s))&&(i.pendingcb++,o=function(e,t,s,n,i,o){if(!s){var r=function(e,t,s){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,s));return t}(t,n,i);n!==r&&(s=!0,i="buffer",n=r)}var c=t.objectMode?1:n.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:s,callback:o,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,c,n,i,o);return l}(this,i,r,e,t,s)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,s){s(new f("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,s){var n=this._writableState;return"function"==typeof e?(s=e,e=null,t=null):"function"==typeof t&&(s=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,s){t.ending=!0,j(e,t),s&&(t.finished?process.nextTick(s):e.once("finish",s));t.ended=!0,e.writable=!1}(this,n,s),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)}},4587:(e,t,s)=>{"use strict";var n;function i(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var o=s(3495),r=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),p=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function f(e){var t=e[r];if(null!==t){var s=e[d].read();null!==s&&(e[p]=null,e[r]=null,e[a]=null,t(h(s,!1)))}}function m(e){process.nextTick(f,e)}var g=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(t,s){process.nextTick((function(){e[c]?s(e[c]):t(h(void 0,!0))}))}));var s,n=this[p];if(n)s=new Promise(function(e,t){return function(s,n){e.then((function(){t[l]?s(h(void 0,!0)):t[u](s,n)}),n)}}(n,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(h(i,!1));s=new Promise(this[u])}return this[p]=s,s}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,s){e[d].destroy(null,(function(e){e?s(e):t(h(void 0,!0))}))}))})),n),g);e.exports=function(e){var t,s=Object.create(v,(i(t={},d,{value:e,writable:!0}),i(t,r,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,u,{value:function(e,t){var n=s[d].read();n?(s[p]=null,s[r]=null,s[a]=null,e(h(n,!1))):(s[r]=e,s[a]=t)},writable:!0}),t));return s[p]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=s[a];return null!==t&&(s[p]=null,s[r]=null,s[a]=null,t(e)),void(s[c]=e)}var n=s[r];null!==n&&(s[p]=null,s[r]=null,s[a]=null,n(h(void 0,!0))),s[l]=!0})),e.on("readable",m.bind(null,s)),s}},3551:(e,t,s)=>{"use strict";function n(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function i(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?n(Object(s),!0).forEach((function(t){o(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function o(e,t,s){return(t=a(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var c=s(4300).Buffer,l=s(3837).inspect,p=l&&l.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,s,n;return t=e,(s=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,s=""+t.data;t=t.next;)s+=e+t.data;return s}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,s,n,i=c.allocUnsafe(e>>>0),o=this.head,r=0;o;)t=o.data,s=i,n=r,c.prototype.copy.call(t,s,n),r+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var s;return e<this.head.data.length?(s=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):s=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),s}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,s=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++s,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++s}return this.length-=s,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),s=this.head,n=1;for(s.data.copy(t),e-=s.data.length;s=s.next;){var i=s.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=i.slice(o));break}++n}return this.length-=n,t}},{key:p,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&r(t.prototype,s),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},7866:e=>{"use strict";function t(e,t){n(e,t),s(e)}function s(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,r=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return r||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(s,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(s,o),i(e)):process.nextTick(s,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var s=e._readableState,n=e._writableState;s&&s.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},3495:(e,t,s)=>{"use strict";var n=s(1743).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,s,o){if("function"==typeof s)return e(t,null,s);s||(s={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var s=arguments.length,n=new Array(s),i=0;i<s;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var r=s.readable||!1!==s.readable&&t.readable,a=s.writable||!1!==s.writable&&t.writable,c=function(){t.writable||p()},l=t._writableState&&t._writableState.finished,p=function(){a=!1,l=!0,r||o.call(t)},u=t._readableState&&t._readableState.endEmitted,d=function(){r=!1,u=!0,a||o.call(t)},h=function(e){o.call(t,e)},f=function(){var e;return r&&!u?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",p)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",p),t.on("abort",f),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",p),!1!==s.error&&t.on("error",h),t.on("close",f),function(){t.removeListener("complete",p),t.removeListener("abort",f),t.removeListener("request",m),t.req&&t.req.removeListener("finish",p),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",p),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",f)}}},531:(e,t,s)=>{"use strict";function n(e,t,s,n,i,o,r){try{var a=e[o](r),c=a.value}catch(e){return void s(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function o(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var r=s(1743).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,s){var a;if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new r("iterable",["Iterable"],t);a=t[Symbol.iterator]()}var c=new e(function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?i(Object(s),!0).forEach((function(t){o(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({objectMode:!0},s)),l=!1;function p(){return u.apply(this,arguments)}function u(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?c.push(null):c.push(yield t)?p():l=!1}catch(e){c.destroy(e)}},u=function(){var t=this,s=arguments;return new Promise((function(i,o){var r=e.apply(t,s);function a(e){n(r,i,o,a,c,"next",e)}function c(e){n(r,i,o,a,c,"throw",e)}a(void 0)}))},u.apply(this,arguments)}return c._read=function(){l||(l=!0,p())},c}},4805:(e,t,s)=>{"use strict";var n;var i=s(1743).q,o=i.ERR_MISSING_ARGS,r=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var p,u=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var d=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=s(3495)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);a=!0,o()}));var c=!1;return function(t){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new r("pipe"))}}(e,o,i>0,(function(e){p||(p=e),e&&d.forEach(c),o||(d.forEach(c),u(p))}))}));return t.reduce(l)}},7703:(e,t,s)=>{"use strict";var n=s(1743).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,s,i){var o=function(e,t,s){return null!=e.highWaterMark?e.highWaterMark:t?e[s]:null}(t,i,s);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?s:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},5103:(e,t,s)=>{e.exports=s(2781)},6928:(e,t,s)=>{var n=s(2781);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=s(5170)).Stream=n||t,t.Readable=t,t.Writable=s(328),t.Duplex=s(7664),t.Transform=s(2057),t.PassThrough=s(3163),t.finished=s(3495),t.pipeline=s(4805))},7578:(e,t,s)=>{var n=s(4300),i=n.Buffer;function o(e,t){for(var s in e)t[s]=e[s]}function r(e,t,s){return i(e,t,s)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=r),r.prototype=Object.create(i.prototype),o(i,r),r.from=function(e,t,s){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,s)},r.alloc=function(e,t,s){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof s?n.fill(t,s):n.fill(t):n.fill(0),n},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},6948:(e,t)=>{"use strict";const{hasOwnProperty:s}=Object.prototype,n=d();n.configure=d,n.stringify=n,n.default=n,t.stringify=n,t.configure=d,e.exports=n;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(e){return e.length<5e3&&!i.test(e)?`"${e}"`:JSON.stringify(e)}function r(e,t){if(e.length>200||t)return e.sort(t);for(let t=1;t<e.length;t++){const s=e[t];let n=t;for(;0!==n&&e[n-1]>s;)e[n]=e[n-1],n--;e[n]=s}return e}const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(e){return void 0!==a.call(e)&&0!==e.length}function l(e,t,s){e.length<s&&(s=e.length);const n=","===t?"":" ";let i=`"0":${n}${e[0]}`;for(let o=1;o<s;o++)i+=`${t}"${o}":${n}${e[o]}`;return i}function p(e,t){let n;if(s.call(e,t)){if(n=e[t],"number"!=typeof n)throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${t}" argument must be an integer`);if(n<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return void 0===n?1/0:n}function u(e){return 1===e?"1 item":`${e} items`}function d(e){const t=function(e){if(s.call(e,"strict")){const t=e.strict;if("boolean"!=typeof t)throw new TypeError('The "strict" argument must be of type boolean');if(t)return e=>{let t="Object can not safely be stringified. Received type "+typeof e;throw"function"!=typeof e&&(t+=` (${e.toString()})`),new Error(t)}}}(e={...e});t&&(void 0===e.bigint&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));const n=function(e){if(s.call(e,"circularValue")){const t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),i=function(e,t){let n;if(s.call(e,t)&&(n=e[t],"boolean"!=typeof n))throw new TypeError(`The "${t}" argument must be of type boolean`);return void 0===n||n}(e,"bigint"),a=function(e){let t;if(s.call(e,"deterministic")&&(t=e.deterministic,"boolean"!=typeof t&&"function"!=typeof t))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return void 0===t||t}(e),d="function"==typeof a?a:void 0,h=p(e,"maximumDepth"),f=p(e,"maximumBreadth");function m(e,s,l,p,g,v){let b=s[e];switch("object"==typeof b&&null!==b&&"function"==typeof b.toJSON&&(b=b.toJSON(e)),b=p.call(s,e,b),typeof b){case"string":return o(b);case"object":{if(null===b)return"null";if(-1!==l.indexOf(b))return n;let e="",t=",";const s=v;if(Array.isArray(b)){if(0===b.length)return"[]";if(h<l.length+1)return'"[Array]"';l.push(b),""!==g&&(e+=`\n${v+=g}`,t=`,\n${v}`);const n=Math.min(b.length,f);let i=0;for(;i<n-1;i++){const s=m(String(i),b,l,p,g,v);e+=void 0!==s?s:"null",e+=t}const o=m(String(i),b,l,p,g,v);if(e+=void 0!==o?o:"null",b.length-1>f){e+=`${t}"... ${u(b.length-f-1)} not stringified"`}return""!==g&&(e+=`\n${s}`),l.pop(),`[${e}]`}let i=Object.keys(b);const x=i.length;if(0===x)return"{}";if(h<l.length+1)return'"[Object]"';let y="",w="";""!==g&&(t=`,\n${v+=g}`,y=" ");const _=Math.min(x,f);a&&!c(b)&&(i=r(i,d)),l.push(b);for(let s=0;s<_;s++){const n=i[s],r=m(n,b,l,p,g,v);void 0!==r&&(e+=`${w}${o(n)}:${y}${r}`,w=t)}if(x>f){e+=`${w}"...":${y}"${u(x-f)} not stringified"`,w=t}return""!==g&&w.length>1&&(e=`\n${v}${e}\n${s}`),l.pop(),`{${e}}`}case"number":return isFinite(b)?String(b):t?t(b):"null";case"boolean":return!0===b?"true":"false";case"undefined":return;case"bigint":if(i)return String(b);default:return t?t(b):void 0}}function g(e,s,r,a,c,l){switch("object"==typeof s&&null!==s&&"function"==typeof s.toJSON&&(s=s.toJSON(e)),typeof s){case"string":return o(s);case"object":{if(null===s)return"null";if(-1!==r.indexOf(s))return n;const e=l;let t="",i=",";if(Array.isArray(s)){if(0===s.length)return"[]";if(h<r.length+1)return'"[Array]"';r.push(s),""!==c&&(t+=`\n${l+=c}`,i=`,\n${l}`);const n=Math.min(s.length,f);let o=0;for(;o<n-1;o++){const e=g(String(o),s[o],r,a,c,l);t+=void 0!==e?e:"null",t+=i}const p=g(String(o),s[o],r,a,c,l);if(t+=void 0!==p?p:"null",s.length-1>f){t+=`${i}"... ${u(s.length-f-1)} not stringified"`}return""!==c&&(t+=`\n${e}`),r.pop(),`[${t}]`}r.push(s);let p="";""!==c&&(i=`,\n${l+=c}`,p=" ");let d="";for(const e of a){const n=g(e,s[e],r,a,c,l);void 0!==n&&(t+=`${d}${o(e)}:${p}${n}`,d=i)}return""!==c&&d.length>1&&(t=`\n${l}${t}\n${e}`),r.pop(),`{${t}}`}case"number":return isFinite(s)?String(s):t?t(s):"null";case"boolean":return!0===s?"true":"false";case"undefined":return;case"bigint":if(i)return String(s);default:return t?t(s):void 0}}function v(e,s,p,m,g){switch(typeof s){case"string":return o(s);case"object":{if(null===s)return"null";if("function"==typeof s.toJSON){if("object"!=typeof(s=s.toJSON(e)))return v(e,s,p,m,g);if(null===s)return"null"}if(-1!==p.indexOf(s))return n;const t=g;if(Array.isArray(s)){if(0===s.length)return"[]";if(h<p.length+1)return'"[Array]"';p.push(s);let e=`\n${g+=m}`;const n=`,\n${g}`,i=Math.min(s.length,f);let o=0;for(;o<i-1;o++){const t=v(String(o),s[o],p,m,g);e+=void 0!==t?t:"null",e+=n}const r=v(String(o),s[o],p,m,g);if(e+=void 0!==r?r:"null",s.length-1>f){e+=`${n}"... ${u(s.length-f-1)} not stringified"`}return e+=`\n${t}`,p.pop(),`[${e}]`}let i=Object.keys(s);const b=i.length;if(0===b)return"{}";if(h<p.length+1)return'"[Object]"';const x=`,\n${g+=m}`;let y="",w="",_=Math.min(b,f);c(s)&&(y+=l(s,x,f),i=i.slice(s.length),_-=s.length,w=x),a&&(i=r(i,d)),p.push(s);for(let e=0;e<_;e++){const t=i[e],n=v(t,s[t],p,m,g);void 0!==n&&(y+=`${w}${o(t)}: ${n}`,w=x)}if(b>f){y+=`${w}"...": "${u(b-f)} not stringified"`,w=x}return""!==w&&(y=`\n${g}${y}\n${t}`),p.pop(),`{${y}}`}case"number":return isFinite(s)?String(s):t?t(s):"null";case"boolean":return!0===s?"true":"false";case"undefined":return;case"bigint":if(i)return String(s);default:return t?t(s):void 0}}function b(e,s,p){switch(typeof s){case"string":return o(s);case"object":{if(null===s)return"null";if("function"==typeof s.toJSON){if("object"!=typeof(s=s.toJSON(e)))return b(e,s,p);if(null===s)return"null"}if(-1!==p.indexOf(s))return n;let t="";const i=void 0!==s.length;if(i&&Array.isArray(s)){if(0===s.length)return"[]";if(h<p.length+1)return'"[Array]"';p.push(s);const e=Math.min(s.length,f);let n=0;for(;n<e-1;n++){const e=b(String(n),s[n],p);t+=void 0!==e?e:"null",t+=","}const i=b(String(n),s[n],p);if(t+=void 0!==i?i:"null",s.length-1>f){t+=`,"... ${u(s.length-f-1)} not stringified"`}return p.pop(),`[${t}]`}let m=Object.keys(s);const g=m.length;if(0===g)return"{}";if(h<p.length+1)return'"[Object]"';let v="",x=Math.min(g,f);i&&c(s)&&(t+=l(s,",",f),m=m.slice(s.length),x-=s.length,v=","),a&&(m=r(m,d)),p.push(s);for(let e=0;e<x;e++){const n=m[e],i=b(n,s[n],p);void 0!==i&&(t+=`${v}${o(n)}:${i}`,v=",")}if(g>f){t+=`${v}"...":"${u(g-f)} not stringified"`}return p.pop(),`{${t}}`}case"number":return isFinite(s)?String(s):t?t(s):"null";case"boolean":return!0===s?"true":"false";case"undefined":return;case"bigint":if(i)return String(s);default:return t?t(s):void 0}}return function(e,t,s){if(arguments.length>1){let n="";if("number"==typeof s?n=" ".repeat(Math.min(s,10)):"string"==typeof s&&(n=s.slice(0,10)),null!=t){if("function"==typeof t)return m("",{"":e},[],t,n,"");if(Array.isArray(t))return g("",e,[],function(e){const t=new Set;for(const s of e)"string"!=typeof s&&"number"!=typeof s||t.add(String(s));return t}(t),n,"")}if(0!==n.length)return v("",e,[],n,"")}return b("",e,[])}}},3498:function(e,t,s){"use strict";var n=this&&this.__rest||function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(s[n[i]]=e[n[i]])}return s};Object.defineProperty(t,"__esModule",{value:!0}),t.ClusterAdapterWithHeartbeat=t.ClusterAdapter=t.MessageType=void 0;const i=s(8912),o=s(9229),r=s(6113),a=(0,o.debug)("socket.io-adapter"),c=5e3;function l(){return(0,r.randomBytes)(8).toString("hex")}var p;function u(e){return{rooms:[...e.rooms],except:[...e.except],flags:e.flags}}function d(e){return{rooms:new Set(e.rooms),except:new Set(e.except),flags:e.flags}}!function(e){e[e.INITIAL_HEARTBEAT=1]="INITIAL_HEARTBEAT",e[e.HEARTBEAT=2]="HEARTBEAT",e[e.BROADCAST=3]="BROADCAST",e[e.SOCKETS_JOIN=4]="SOCKETS_JOIN",e[e.SOCKETS_LEAVE=5]="SOCKETS_LEAVE",e[e.DISCONNECT_SOCKETS=6]="DISCONNECT_SOCKETS",e[e.FETCH_SOCKETS=7]="FETCH_SOCKETS",e[e.FETCH_SOCKETS_RESPONSE=8]="FETCH_SOCKETS_RESPONSE",e[e.SERVER_SIDE_EMIT=9]="SERVER_SIDE_EMIT",e[e.SERVER_SIDE_EMIT_RESPONSE=10]="SERVER_SIDE_EMIT_RESPONSE",e[e.BROADCAST_CLIENT_COUNT=11]="BROADCAST_CLIENT_COUNT",e[e.BROADCAST_ACK=12]="BROADCAST_ACK",e[e.ADAPTER_CLOSE=13]="ADAPTER_CLOSE"}(p=t.MessageType||(t.MessageType={}));class h extends i.Adapter{constructor(e){super(e),this.requests=new Map,this.ackRequests=new Map,this.uid=l()}onMessage(e,t){if(e.uid===this.uid)return a("[%s] ignore message from self",this.uid);switch(a("[%s] new event of type %d from %s",this.uid,e.type,e.uid),e.type){case p.BROADCAST:if(void 0!==e.data.requestId)super.broadcastWithAck(e.data.packet,d(e.data.opts),(t=>{a("[%s] waiting for %d client acknowledgements",this.uid,t),this.publishResponse(e.uid,{type:p.BROADCAST_CLIENT_COUNT,data:{requestId:e.data.requestId,clientCount:t}})}),(t=>{a("[%s] received acknowledgement with value %j",this.uid,t),this.publishResponse(e.uid,{type:p.BROADCAST_ACK,data:{requestId:e.data.requestId,packet:t}})}));else{const s=e.data.packet,n=d(e.data.opts);this.addOffsetIfNecessary(s,n,t),super.broadcast(s,n)}break;case p.SOCKETS_JOIN:super.addSockets(d(e.data.opts),e.data.rooms);break;case p.SOCKETS_LEAVE:super.delSockets(d(e.data.opts),e.data.rooms);break;case p.DISCONNECT_SOCKETS:super.disconnectSockets(d(e.data.opts),e.data.close);break;case p.FETCH_SOCKETS:a("[%s] calling fetchSockets with opts %j",this.uid,e.data.opts),super.fetchSockets(d(e.data.opts)).then((t=>{this.publishResponse(e.uid,{type:p.FETCH_SOCKETS_RESPONSE,data:{requestId:e.data.requestId,sockets:t.map((e=>{const t=e.handshake,{sessionStore:s}=t,i=n(t,["sessionStore"]);return{id:e.id,handshake:i,rooms:[...e.rooms],data:e.data}}))}})}));break;case p.SERVER_SIDE_EMIT:{const t=e.data.packet;if(!(void 0!==e.data.requestId))return void this.nsp._onServerSideEmit(t);let s=!1;const n=t=>{s||(s=!0,a("[%s] calling acknowledgement with %j",this.uid,t),this.publishResponse(e.uid,{type:p.SERVER_SIDE_EMIT_RESPONSE,data:{requestId:e.data.requestId,packet:t}}))};this.nsp._onServerSideEmit([...t,n]);break}case p.BROADCAST_CLIENT_COUNT:case p.BROADCAST_ACK:case p.FETCH_SOCKETS_RESPONSE:case p.SERVER_SIDE_EMIT_RESPONSE:this.onResponse(e);break;default:a("[%s] unknown message type: %s",this.uid,e.type)}}onResponse(e){var t,s;const n=e.data.requestId;switch(a("[%s] received response %s to request %s",this.uid,e.type,n),e.type){case p.BROADCAST_CLIENT_COUNT:null===(t=this.ackRequests.get(n))||void 0===t||t.clientCountCallback(e.data.clientCount);break;case p.BROADCAST_ACK:null===(s=this.ackRequests.get(n))||void 0===s||s.ack(e.data.packet);break;case p.FETCH_SOCKETS_RESPONSE:{const t=this.requests.get(n);if(!t)return;t.current++,e.data.sockets.forEach((e=>t.responses.push(e))),t.current===t.expected&&(clearTimeout(t.timeout),t.resolve(t.responses),this.requests.delete(n));break}case p.SERVER_SIDE_EMIT_RESPONSE:{const t=this.requests.get(n);if(!t)return;t.current++,t.responses.push(e.data.packet),t.current===t.expected&&(clearTimeout(t.timeout),t.resolve(null,t.responses),this.requests.delete(n));break}default:a("[%s] unknown response type: %s",this.uid,e.type)}}async broadcast(e,t){var s;if(!(null===(s=t.flags)||void 0===s?void 0:s.local))try{const s=await this.publishAndReturnOffset({type:p.BROADCAST,data:{packet:e,opts:u(t)}});this.addOffsetIfNecessary(e,t,s)}catch(e){return a("[%s] error while broadcasting message: %s",this.uid,e.message)}super.broadcast(e,t)}addOffsetIfNecessary(e,t,s){var n;if(!this.nsp.server.opts.connectionStateRecovery)return;const i=2===e.type,o=void 0===e.id,r=void 0===(null===(n=t.flags)||void 0===n?void 0:n.volatile);i&&o&&r&&e.data.push(s)}broadcastWithAck(e,t,s,n){var i;if(!(null===(i=null==t?void 0:t.flags)||void 0===i?void 0:i.local)){const i=l();this.ackRequests.set(i,{clientCountCallback:s,ack:n}),this.publish({type:p.BROADCAST,data:{packet:e,requestId:i,opts:u(t)}}),setTimeout((()=>{this.ackRequests.delete(i)}),t.flags.timeout)}super.broadcastWithAck(e,t,s,n)}async addSockets(e,t){var s;if(!(null===(s=e.flags)||void 0===s?void 0:s.local))try{await this.publishAndReturnOffset({type:p.SOCKETS_JOIN,data:{opts:u(e),rooms:t}})}catch(e){a("[%s] error while publishing message: %s",this.uid,e.message)}super.addSockets(e,t)}async delSockets(e,t){var s;if(!(null===(s=e.flags)||void 0===s?void 0:s.local))try{await this.publishAndReturnOffset({type:p.SOCKETS_LEAVE,data:{opts:u(e),rooms:t}})}catch(e){a("[%s] error while publishing message: %s",this.uid,e.message)}super.delSockets(e,t)}async disconnectSockets(e,t){var s;if(!(null===(s=e.flags)||void 0===s?void 0:s.local))try{await this.publishAndReturnOffset({type:p.DISCONNECT_SOCKETS,data:{opts:u(e),close:t}})}catch(e){a("[%s] error while publishing message: %s",this.uid,e.message)}super.disconnectSockets(e,t)}async fetchSockets(e){var t;const[s,n]=await Promise.all([super.fetchSockets(e),this.serverCount()]),i=n-1;if((null===(t=e.flags)||void 0===t?void 0:t.local)||i<=0)return s;const o=l();return new Promise(((t,n)=>{const r=setTimeout((()=>{const e=this.requests.get(o);e&&(n(new Error(`timeout reached: only ${e.current} responses received out of ${e.expected}`)),this.requests.delete(o))}),e.flags.timeout||c),a={type:p.FETCH_SOCKETS,resolve:t,timeout:r,current:0,expected:i,responses:s};this.requests.set(o,a),this.publish({type:p.FETCH_SOCKETS,data:{opts:u(e),requestId:o}})}))}async serverSideEmit(e){if(!("function"==typeof e[e.length-1]))return this.publish({type:p.SERVER_SIDE_EMIT,data:{packet:e}});const t=e.pop(),s=await this.serverCount()-1;if(a('[%s] waiting for %d responses to "serverSideEmit" request',this.uid,s),s<=0)return t(null,[]);const n=l(),i=setTimeout((()=>{const e=this.requests.get(n);e&&(t(new Error(`timeout reached: only ${e.current} responses received out of ${e.expected}`),e.responses),this.requests.delete(n))}),c),o={type:p.SERVER_SIDE_EMIT,resolve:t,timeout:i,current:0,expected:s,responses:[]};this.requests.set(n,o),this.publish({type:p.SERVER_SIDE_EMIT,data:{requestId:n,packet:e}})}publish(e){this.publishAndReturnOffset(e).catch((e=>{a("[%s] error while publishing message: %s",this.uid,e)}))}publishAndReturnOffset(e){return e.uid=this.uid,e.nsp=this.nsp.name,this.doPublish(e)}publishResponse(e,t){t.uid=this.uid,t.nsp=this.nsp.name,this.doPublishResponse(e,t).catch((e=>{a("[%s] error while publishing response: %s",this.uid,e)}))}}t.ClusterAdapter=h;t.ClusterAdapterWithHeartbeat=class extends h{constructor(e,t){super(e),this.nodesMap=new Map,this.customRequests=new Map,this._opts=Object.assign({heartbeatInterval:5e3,heartbeatTimeout:1e4},t),this.cleanupTimer=setInterval((()=>{const e=Date.now();this.nodesMap.forEach(((t,s)=>{e-t>this._opts.heartbeatTimeout&&(a("[%s] node %s seems down",this.uid,s),this.removeNode(s))}))}),1e3)}init(){this.publish({type:p.INITIAL_HEARTBEAT})}scheduleHeartbeat(){this.heartbeatTimer?this.heartbeatTimer.refresh():this.heartbeatTimer=setTimeout((()=>{this.publish({type:p.HEARTBEAT})}),this._opts.heartbeatInterval)}close(){this.publish({type:p.ADAPTER_CLOSE}),clearTimeout(this.heartbeatTimer),this.cleanupTimer&&clearInterval(this.cleanupTimer)}onMessage(e,t){if(e.uid===this.uid)return a("[%s] ignore message from self",this.uid);switch(e.uid&&"emitter"!==e.uid&&this.nodesMap.set(e.uid,Date.now()),a("[%s] new event of type %d from %s",this.uid,e.type,e.uid),e.type){case p.INITIAL_HEARTBEAT:this.publish({type:p.HEARTBEAT});break;case p.HEARTBEAT:break;case p.ADAPTER_CLOSE:this.removeNode(e.uid);break;default:super.onMessage(e,t)}}serverCount(){return Promise.resolve(1+this.nodesMap.size)}publish(e){return this.scheduleHeartbeat(),super.publish(e)}async serverSideEmit(e){if(!("function"==typeof e[e.length-1]))return this.publish({type:p.SERVER_SIDE_EMIT,data:{packet:e}});const t=e.pop(),s=this.nodesMap.size;if(a('[%s] waiting for %d responses to "serverSideEmit" request',this.uid,s),s<=0)return t(null,[]);const n=l(),i=setTimeout((()=>{const e=this.customRequests.get(n);e&&(t(new Error(`timeout reached: missing ${e.missingUids.size} responses`),e.responses),this.customRequests.delete(n))}),c),o={type:p.SERVER_SIDE_EMIT,resolve:t,timeout:i,missingUids:new Set([...this.nodesMap.keys()]),responses:[]};this.customRequests.set(n,o),this.publish({type:p.SERVER_SIDE_EMIT,data:{requestId:n,packet:e}})}async fetchSockets(e){var t;const[s,n]=await Promise.all([super.fetchSockets({rooms:e.rooms,except:e.except,flags:{local:!0}}),this.serverCount()]),i=n-1;if((null===(t=e.flags)||void 0===t?void 0:t.local)||i<=0)return s;const o=l();return new Promise(((t,n)=>{const i=setTimeout((()=>{const e=this.customRequests.get(o);e&&(n(new Error(`timeout reached: missing ${e.missingUids.size} responses`)),this.customRequests.delete(o))}),e.flags.timeout||c),r={type:p.FETCH_SOCKETS,resolve:t,timeout:i,missingUids:new Set([...this.nodesMap.keys()]),responses:s};this.customRequests.set(o,r),this.publish({type:p.FETCH_SOCKETS,data:{opts:u(e),requestId:o}})}))}onResponse(e){const t=e.data.requestId;switch(a("[%s] received response %s to request %s",this.uid,e.type,t),e.type){case p.FETCH_SOCKETS_RESPONSE:{const s=this.customRequests.get(t);if(!s)return;e.data.sockets.forEach((e=>s.responses.push(e))),s.missingUids.delete(e.uid),0===s.missingUids.size&&(clearTimeout(s.timeout),s.resolve(s.responses),this.customRequests.delete(t));break}case p.SERVER_SIDE_EMIT_RESPONSE:{const s=this.customRequests.get(t);if(!s)return;s.responses.push(e.data.packet),s.missingUids.delete(e.uid),0===s.missingUids.size&&(clearTimeout(s.timeout),s.resolve(null,s.responses),this.customRequests.delete(t));break}default:super.onResponse(e)}}removeNode(e){this.customRequests.forEach(((t,s)=>{t.missingUids.delete(e),0===t.missingUids.size&&(clearTimeout(t.timeout),t.type===p.FETCH_SOCKETS?t.resolve(t.responses):t.type===p.SERVER_SIDE_EMIT&&t.resolve(null,t.responses),this.customRequests.delete(s))})),this.nodesMap.delete(e)}}},5815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let i,o=0,r=0;function a(e){let t="";do{t=s[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}for(t.encode=a,t.decode=function(e){let t=0;for(r=0;r<e.length;r++)t=64*t+n[e.charAt(r)];return t},t.yeast=function(){const e=a(+new Date);return e!==i?(o=0,i=e):e+"."+a(o++)};r<64;r++)n[s[r]]=r},8912:(e,t,s)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SessionAwareAdapter=t.Adapter=void 0;const i=s(2361),o=s(5815),r=s(5940),a="function"==typeof(null===(n=null==r?void 0:r.Sender)||void 0===n?void 0:n.frame);class c extends i.EventEmitter{constructor(e){super(),this.nsp=e,this.rooms=new Map,this.sids=new Map,this.encoder=e.server.encoder}init(){}close(){}serverCount(){return Promise.resolve(1)}addAll(e,t){this.sids.has(e)||this.sids.set(e,new Set);for(const s of t)this.sids.get(e).add(s),this.rooms.has(s)||(this.rooms.set(s,new Set),this.emit("create-room",s)),this.rooms.get(s).has(e)||(this.rooms.get(s).add(e),this.emit("join-room",s,e))}del(e,t){this.sids.has(e)&&this.sids.get(e).delete(t),this._del(t,e)}_del(e,t){const s=this.rooms.get(e);if(null!=s){s.delete(t)&&this.emit("leave-room",e,t),0===s.size&&this.rooms.delete(e)&&this.emit("delete-room",e)}}delAll(e){if(this.sids.has(e)){for(const t of this.sids.get(e))this._del(t,e);this.sids.delete(e)}}broadcast(e,t){const s=t.flags||{},n={preEncoded:!0,volatile:s.volatile,compress:s.compress};e.nsp=this.nsp.name;const i=this._encode(e,n);this.apply(t,(t=>{"function"==typeof t.notifyOutgoingListeners&&t.notifyOutgoingListeners(e),t.client.writeToEngine(i,n)}))}broadcastWithAck(e,t,s,n){const i=t.flags||{},o={preEncoded:!0,volatile:i.volatile,compress:i.compress};e.nsp=this.nsp.name,e.id=this.nsp._ids++;const r=this._encode(e,o);let a=0;this.apply(t,(t=>{a++,t.acks.set(e.id,n),"function"==typeof t.notifyOutgoingListeners&&t.notifyOutgoingListeners(e),t.client.writeToEngine(r,o)})),s(a)}_encode(e,t){const s=this.encoder.encode(e);if(a&&1===s.length&&"string"==typeof s[0]){const e=Buffer.from("4"+s[0]);t.wsPreEncodedFrame=r.Sender.frame(e,{readOnly:!1,mask:!1,rsv1:!1,opcode:1,fin:!0})}return s}sockets(e){const t=new Set;return this.apply({rooms:e},(e=>{t.add(e.id)})),Promise.resolve(t)}socketRooms(e){return this.sids.get(e)}fetchSockets(e){const t=[];return this.apply(e,(e=>{t.push(e)})),Promise.resolve(t)}addSockets(e,t){this.apply(e,(e=>{e.join(t)}))}delSockets(e,t){this.apply(e,(e=>{t.forEach((t=>e.leave(t)))}))}disconnectSockets(e,t){this.apply(e,(e=>{e.disconnect(t)}))}apply(e,t){const s=e.rooms,n=this.computeExceptSids(e.except);if(s.size){const e=new Set;for(const i of s)if(this.rooms.has(i))for(const s of this.rooms.get(i)){if(e.has(s)||n.has(s))continue;const i=this.nsp.sockets.get(s);i&&(t(i),e.add(s))}}else for(const[e]of this.sids){if(n.has(e))continue;const s=this.nsp.sockets.get(e);s&&t(s)}}computeExceptSids(e){const t=new Set;if(e&&e.size>0)for(const s of e)this.rooms.has(s)&&this.rooms.get(s).forEach((e=>t.add(e)));return t}serverSideEmit(e){console.warn("this adapter does not support the serverSideEmit() functionality")}persistSession(e){}restoreSession(e,t){return null}}t.Adapter=c;function l(e,t){const s=0===t.rooms.size||e.some((e=>t.rooms.has(e))),n=e.every((e=>!t.except.has(e)));return s&&n}t.SessionAwareAdapter=class extends c{constructor(e){super(e),this.nsp=e,this.sessions=new Map,this.packets=[],this.maxDisconnectionDuration=e.server.opts.connectionStateRecovery.maxDisconnectionDuration;setInterval((()=>{const e=Date.now()-this.maxDisconnectionDuration;this.sessions.forEach(((t,s)=>{t.disconnectedAt<e&&this.sessions.delete(s)}));for(let t=this.packets.length-1;t>=0;t--){if(this.packets[t].emittedAt<e){this.packets.splice(0,t+1);break}}}),6e4).unref()}persistSession(e){e.disconnectedAt=Date.now(),this.sessions.set(e.pid,e)}restoreSession(e,t){const s=this.sessions.get(e);if(!s)return null;if(s.disconnectedAt+this.maxDisconnectionDuration<Date.now())return this.sessions.delete(e),null;const n=this.packets.findIndex((e=>e.id===t));if(-1===n)return null;const i=[];for(let e=n+1;e<this.packets.length;e++){const t=this.packets[e];l(s.rooms,t.opts)&&i.push(t.data)}return Promise.resolve(Object.assign(Object.assign({},s),{missedPackets:i}))}broadcast(e,t){var s;const n=2===e.type,i=void 0===e.id,r=void 0===(null===(s=t.flags)||void 0===s?void 0:s.volatile);if(n&&i&&r){const s=(0,o.yeast)();e.data.push(s),this.packets.push({id:s,opts:t,data:e.data,emittedAt:Date.now()})}super.broadcast(e,t)}}},9098:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageType=t.ClusterAdapterWithHeartbeat=t.ClusterAdapter=t.SessionAwareAdapter=t.Adapter=void 0;var n=s(8912);Object.defineProperty(t,"Adapter",{enumerable:!0,get:function(){return n.Adapter}}),Object.defineProperty(t,"SessionAwareAdapter",{enumerable:!0,get:function(){return n.SessionAwareAdapter}});var i=s(3498);Object.defineProperty(t,"ClusterAdapter",{enumerable:!0,get:function(){return i.ClusterAdapter}}),Object.defineProperty(t,"ClusterAdapterWithHeartbeat",{enumerable:!0,get:function(){return i.ClusterAdapterWithHeartbeat}}),Object.defineProperty(t,"MessageType",{enumerable:!0,get:function(){return i.MessageType}})},8784:(e,t)=>{function s(e){for(var t in e)this[t]=e[t]}t.get=function(e){var s=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.captureStackTrace(n,e||t.get);var o=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=s,o},t.parse=function(e){if(!e.stack)return[];var t=this;return e.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var s=e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(s){var n=null,i=null,o=null,r=null,a=null,c="native"===s[5];if(s[1]){var l=(o=s[1]).lastIndexOf(".");if("."==o[l-1]&&l--,l>0){n=o.substr(0,l),i=o.substr(l+1);var p=n.indexOf(".Module");p>0&&(o=o.substr(p+1),n=n.substr(0,p))}r=null}i&&(r=n,a=i),"<anonymous>"===i&&(a=null,o=null);var u={fileName:s[2]||null,lineNumber:parseInt(s[3],10)||null,functionName:o,typeName:r,methodName:a,columnNumber:parseInt(s[4],10)||null,native:c};return t._createParsedCallSite(u)}})).filter((function(e){return!!e}))};["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach((function(e){s.prototype[e]=null,s.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),["topLevel","eval","native","constructor"].forEach((function(e){s.prototype[e]=!1,s.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),t._createParsedCallSite=function(e){return new s(e)}},2682:(e,t,s)=>{"use strict";var n=s(7578).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=p,this.end=u,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function r(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,s=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==s?s:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var s=e.toString("utf16le",t);if(s){var n=s.charCodeAt(s.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,s)}return t}function p(e,t){var s=(e.length-t)%3;return 0===s?e.toString("base64",t):(this.lastNeed=3-s,this.lastTotal=3,1===s?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-s))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,s;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<e.length?t?t+this.text(e,s):this.text(e,s):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var s=function(e,t,s){var n=t.length-1;if(n<s)return 0;var i=r(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<s||-2===i)return 0;if(i=r(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<s||-2===i)return 0;if(i=r(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=s;var n=e.length-(s-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},7318:(e,t,s)=>{"use strict";const n=s(2037),i=s(602),o=process.env;let r;function a(e){const t=function(e){if(!1===r)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==r)return 0;const t=r?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?r=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(r=!0),"FORCE_COLOR"in o&&(r=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},71:(e,t)=>{"use strict";t.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},t.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}},5831:(e,t,s)=>{"use strict";Object.defineProperty(t,"cli",{value:s(71)}),Object.defineProperty(t,"npm",{value:s(451)}),Object.defineProperty(t,"syslog",{value:s(9365)})},451:(e,t)=>{"use strict";t.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},t.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}},9365:(e,t)=>{"use strict";t.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},t.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}},8029:(e,t,s)=>{"use strict";Object.defineProperty(t,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(t,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(t,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(t,"configs",{value:s(5831)})},9615:(e,t,s)=>{e.exports=s(3837).deprecate},9548:e=>{"use strict";e.exports=function(e,t){if(!e||!e.getHeader||!e.setHeader)throw new TypeError("res argument is required");var n=e.getHeader("Vary")||"",i=Array.isArray(n)?n.join(", "):String(n);(n=s(i,t))&&e.setHeader("Vary",n)},e.exports.append=s;var t=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function s(e,s){if("string"!=typeof e)throw new TypeError("header argument is required");if(!s)throw new TypeError("field argument is required");for(var i=Array.isArray(s)?s:n(String(s)),o=0;o<i.length;o++)if(!t.test(i[o]))throw new TypeError("field argument contains an invalid header name");if("*"===e)return e;var r=e,a=n(e.toLowerCase());if(-1!==i.indexOf("*")||-1!==a.indexOf("*"))return"*";for(var c=0;c<i.length;c++){var l=i[c].toLowerCase();-1===a.indexOf(l)&&(a.push(l),r=r?r+", "+i[c]:i[c])}return r}function n(e){for(var t=0,s=[],n=0,i=0,o=e.length;i<o;i++)switch(e.charCodeAt(i)){case 32:n===t&&(n=t=i+1);break;case 44:s.push(e.substring(n,t)),n=t=i+1;break;default:t=i+1}return s.push(e.substring(n,t)),s}},3565:(e,t,s)=>{"use strict";e.exports=s(7426),e.exports.LegacyTransportStream=s(9804)},9804:(e,t,s)=>{"use strict";const n=s(3837),{LEVEL:i}=s(8029),o=s(7426),r=e.exports=function(e={}){if(o.call(this,e),!e.transport||"function"!=typeof e.transport.log)throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(e){this.emit("error",e,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(r,o),r.prototype._write=function(e,t,s){if(this.silent||!0===e.exception&&!this.handleExceptions)return s(null);(!this.level||this.levels[this.level]>=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),s(null)},r.prototype._writev=function(e,t){for(let t=0;t<e.length;t++)this._accept(e[t])&&(this.transport.log(e[t].chunk[i],e[t].chunk.message,e[t].chunk,this._nop),e[t].callback());return t(null)},r.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join("\n"))},r.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},7426:(e,t,s)=>{"use strict";const n=s(3837),i=s(328),{LEVEL:o}=s(8029),r=e.exports=function(e={}){i.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",(e=>{this.levels=e.levels,this.parent=e})),this.once("unpipe",(e=>{e===this.parent&&(this.parent=null,this.close&&this.close())}))};n.inherits(r,i),r.prototype._write=function(e,t,s){if(this.silent||!0===e.exception&&!this.handleExceptions)return s(null);const n=this.level||this.parent&&this.parent.level;if(!n||this.levels[n]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,s);let t,n;try{n=this.format.transform(Object.assign({},e),this.format.options)}catch(e){t=e}if(t||!n){if(s(),t)throw t;return}return this.log(n,s)}return this._writableState.sync=!1,s(null)},r.prototype._writev=function(e,t){if(this.logv){const s=e.filter(this._accept,this);return s.length?this.logv(s,t):t(null)}for(let s=0;s<e.length;s++){if(!this._accept(e[s]))continue;if(e[s].chunk&&!this.format){this.log(e[s].chunk,e[s].callback);continue}let n,i;try{i=this.format.transform(Object.assign({},e[s].chunk),this.format.options)}catch(e){n=e}if(n||!i){if(e[s].callback(),n)throw t(null),n}else this.log(i,e[s].callback)}return t(null)},r.prototype._accept=function(e){const t=e.chunk;if(this.silent)return!1;const s=this.level||this.parent&&this.parent.level;return!(!0!==t.exception&&s&&!(this.levels[s]>=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},r.prototype._nop=function(){}},5222:(e,t,s)=>{"use strict";const n=s(3886),{warn:i}=s(9034);t.version=s(1298).version,t.transports=s(3141),t.config=s(9691),t.addColors=n.levels,t.format=n.format,t.createLogger=s(7812),t.Logger=s(2738),t.ExceptionHandler=s(3708),t.RejectionHandler=s(6940),t.Container=s(5829),t.Transport=s(3565),t.loggers=new t.Container;const o=t.createLogger();Object.keys(t.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach((e=>t[e]=(...t)=>o[e](...t))),Object.defineProperty(t,"level",{get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(t,"exceptions",{get:()=>o.exceptions}),Object.defineProperty(t,"rejections",{get:()=>o.rejections}),["exitOnError"].forEach((e=>{Object.defineProperty(t,e,{get:()=>o[e],set(t){o[e]=t}})})),Object.defineProperty(t,"default",{get:()=>({exceptionHandlers:o.exceptionHandlers,rejectionHandlers:o.rejectionHandlers,transports:o.transports})}),i.deprecated(t,"setLevels"),i.forFunctions(t,"useFormat",["cli"]),i.forProperties(t,"useFormat",["padLevels","stripColors"]),i.forFunctions(t,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(t,"deprecated",["emitErrs","levelLength"])},9034:(e,t,s)=>{"use strict";const{format:n}=s(3837);t.warn={deprecated:e=>()=>{throw new Error(n("{ %s } was removed in winston@3.0.0.",e))},useFormat:e=>()=>{throw new Error([n("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join("\n"))},forFunctions(e,s,n){n.forEach((n=>{e[n]=t.warn[s](n)}))},forProperties(e,s,n){n.forEach((n=>{const i=t.warn[s](n);Object.defineProperty(e,n,{get:i,set:i})}))}}},9691:(e,t,s)=>{"use strict";const n=s(3886),{configs:i}=s(8029);t.cli=n.levels(i.cli),t.npm=n.levels(i.npm),t.syslog=n.levels(i.syslog),t.addColors=n.levels},5829:(e,t,s)=>{"use strict";const n=s(7812);e.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){const s=(t=Object.assign({},t||this.options)).transports||this.options.transports;t.transports=s?Array.isArray(s)?s.slice():[s]:[];const i=n(t);i.on("close",(()=>this._delete(e))),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,t){return this.add(e,t)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach(((e,t)=>this._removeLogger(t)))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}},7812:(e,t,s)=>{"use strict";const{LEVEL:n}=s(8029),i=s(9691),o=s(2738),r=s(1577)("winston:create-logger");e.exports=function(e={}){e.levels=e.levels||i.npm.levels;class t extends o{constructor(e){super(e)}}const s=new t(e);return Object.keys(e.levels).forEach((function(e){r('Define prototype method for "%s"',e),"log"!==e?(t.prototype[e]=function(...t){const i=this||s;if(1===t.length){const[o]=t,r=o&&o.message&&o||{message:o};return r.level=r[n]=e,i._addDefaultMeta(r),i.write(r),this||s}return 0===t.length?(i.log(e,""),i):i.log(e,...t)},t.prototype[function(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}(e)]=function(){return(this||s).isLevelEnabled(e)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')})),s}},3708:(e,t,s)=>{"use strict";const n=s(2037),i=s(5305),o=s(1577)("winston:exception"),r=s(3918),a=s(8784),c=s(7377);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach((e=>{if(Array.isArray(e))return e.forEach((e=>this._addHandler(e)));this._addHandler(e)})),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((e=>this.logger.unpipe(e))))}getAllInfo(e){let t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,exception:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:n.loadavg(),uptime:n.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map((e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()})))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;const t=new c(e);this.handlers.set(e,t),this.logger.pipe(t)}}_uncaughtException(e){const t=this.getAllInfo(e),s=this._getExceptionHandlers();let n,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function c(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(n&&clearTimeout(n),process.exit(1))}if(!s.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1),!s||0===s.length)return process.nextTick(c);i(s,((e,t)=>{const s=r(t),n=e.transport||e;function i(e){return()=>{o(e),s()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(()=>a&&c())),this.logger.log(t),a&&(n=setTimeout(c,3e3))}_getExceptionHandlers(){return this.logger.transports.filter((e=>(e.transport||e).handleExceptions))}}},7377:(e,t,s)=>{"use strict";const{Writable:n}=s(6928);e.exports=class extends n{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,s){return e.exception?this.transport.log(e,s):(s(),!0)}}},2738:(e,t,s)=>{"use strict";const{Stream:n,Transform:i}=s(6928),o=s(5305),{LEVEL:r,SPLAT:a}=s(8029),c=s(8549),l=s(3708),p=s(6940),u=s(9804),d=s(887),{warn:h}=s(9034),f=s(9691),m=/%[scdjifoO%]/g;class g extends i{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){const t=this;return Object.create(t,{write:{value:function(s){const n=Object.assign({},e,s);s instanceof Error&&(n.stack=s.stack,n.message=s.message),t.write(n)}}})}configure({silent:e,format:t,defaultMeta:n,levels:i,level:o="info",exitOnError:r=!0,transports:a,colors:c,emitErrs:u,formatters:d,padLevels:h,rewriters:m,stripColors:g,exceptionHandlers:v,rejectionHandlers:b}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||s(3005)(),this.defaultMeta=n||null,this.levels=i||this.levels||f.npm.levels,this.level=o,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new l(this),this.rejections=new p(this),this.profilers={},this.exitOnError=r,a&&(a=Array.isArray(a)?a:[a]).forEach((e=>this.add(e))),c||u||d||h||m||g)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"));v&&this.exceptions.handle(v),b&&this.rejections.handle(b)}isLevelEnabled(e){const t=v(this.levels,e);if(null===t)return!1;const s=v(this.levels,this.level);if(null===s)return!1;if(!this.transports||0===this.transports.length)return s>=t;return-1!==this.transports.findIndex((e=>{let n=v(this.levels,e.level);return null===n&&(n=s),n>=t}))}log(e,t,...s){if(1===arguments.length)return e[r]=e.level,this._addDefaultMeta(e),this.write(e),this;if(2===arguments.length)return t&&"object"==typeof t?(t[r]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(t={[r]:e,level:e,message:t},this._addDefaultMeta(t),this.write(t),this);const[n]=s;if("object"==typeof n&&null!==n){if(!(t&&t.match&&t.match(m))){const i=Object.assign({},this.defaultMeta,n,{[r]:e,[a]:s,level:e,message:t});return n.message&&(i.message=`${i.message} ${n.message}`),n.stack&&(i.stack=n.stack),this.write(i),this}}return this.write(Object.assign({},this.defaultMeta,{[r]:e,[a]:s,level:e,message:t})),this}_transform(e,t,s){if(this.silent)return s();e[r]||(e[r]=e.level),this.levels[e[r]]||0===this.levels[e[r]]||console.error("[winston] Unknown logger level: %s",e[r]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,s()}}_final(e){const t=this.transports.slice();o(t,((e,t)=>{if(!e||e.finished)return setImmediate(t);e.once("finish",t),e.end()}),e)}add(e){const t=!c(e)||e.log.length>2?new u({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let t=e;return(!c(e)||e.log.length>2)&&(t=this.transports.filter((t=>t.transport===e))[0]),t&&this.unpipe(t),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){h.deprecated("setLevels")}query(e,t){"function"==typeof e&&(t=e,e={}),e=e||{};const s={},n=Object.assign({},e.query||{});o(this.transports.filter((e=>!!e.query)),(function(t,i){!function(t,s){e.query&&"function"==typeof t.formatQuery&&(e.query=t.formatQuery(n)),t.query(e,((n,i)=>{if(n)return s(n);"function"==typeof t.formatResults&&(i=t.formatResults(i,e.format)),s(null,i)}))}(t,((e,n)=>{i&&((n=e||n)&&(s[t.name]=n),i()),i=null}))}),(()=>t(null,s)))}stream(e={}){const t=new n,s=[];return t._streams=s,t.destroy=()=>{let e=s.length;for(;e--;)s[e].destroy()},this.transports.filter((e=>!!e.stream)).forEach((n=>{const i=n.stream(e);i&&(s.push(i),i.on("log",(e=>{e.transport=e.transport||[],e.transport.push(n.name),t.emit("log",e)})),i.on("error",(e=>{e.transport=e.transport||[],e.transport.push(n.name),t.emit("error",e)})))})),t}startTimer(){return new d(this)}profile(e,...t){const s=Date.now();if(this.profilers[e]){const n=this.profilers[e];delete this.profilers[e],"function"==typeof t[t.length-2]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());const i="object"==typeof t[t.length-1]?t.pop():{};return i.level=i.level||"info",i.durationMs=s-n,i.message=i.message||e,this.write(i)}return this.profilers[e]=s,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"))}_onEvent(e,t){t["__winston"+e]||(t["__winston"+e]=function(s){"error"!==e||this.transports.includes(t)||this.add(t),this.emit(e,s,t)}.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}}function v(e,t){const s=e[t];return s||0===s?s:null}Object.defineProperty(g.prototype,"transports",{configurable:!1,enumerable:!0,get(){const{pipes:e}=this._readableState;return Array.isArray(e)?e:[e].filter(Boolean)}}),e.exports=g},887:(e,t,s)=>{"use strict";e.exports=class{constructor(e){const t=s(2738);if("object"!=typeof e||Array.isArray(e)||!(e instanceof t))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){"function"==typeof e[e.length-1]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());const t="object"==typeof e[e.length-1]?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}}},6940:(e,t,s)=>{"use strict";const n=s(2037),i=s(5305),o=s(1577)("winston:rejection"),r=s(3918),a=s(8784),c=s(8469);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach((e=>{if(Array.isArray(e))return e.forEach((e=>this._addHandler(e)));this._addHandler(e)})),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((e=>this.logger.unpipe(e))))}getAllInfo(e){let t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,rejection:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:n.loadavg(),uptime:n.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map((e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()})))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;const t=new c(e);this.handlers.set(e,t),this.logger.pipe(t)}}_unhandledRejection(e){const t=this.getAllInfo(e),s=this._getRejectionHandlers();let n,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function c(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(n&&clearTimeout(n),process.exit(1))}if(!s.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1),!s||0===s.length)return process.nextTick(c);i(s,((e,t)=>{const s=r(t),n=e.transport||e;function i(e){return()=>{o(e),s()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(()=>a&&c())),this.logger.log(t),a&&(n=setTimeout(c,3e3))}_getRejectionHandlers(){return this.logger.transports.filter((e=>(e.transport||e).handleRejections))}}},8469:(e,t,s)=>{"use strict";const{Writable:n}=s(6928);e.exports=class extends n{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,t,s){return e.rejection?this.transport.log(e,s):(s(),!0)}}},8430:(e,t,s)=>{"use strict";const n=s(7147),{StringDecoder:i}=s(1576),{Stream:o}=s(6928);function r(){}e.exports=(e,t)=>{const s=Buffer.alloc(65536),a=new i("utf8"),c=new o;let l="",p=0,u=0;return-1===e.start&&delete e.start,c.readable=!0,c.destroy=()=>{c.destroyed=!0,c.emit("end"),c.emit("close")},n.open(e.file,"a+","0644",((i,o)=>{if(i)return t?t(i):c.emit("error",i),void c.destroy();!function i(){if(!c.destroyed)return n.read(o,s,0,s.length,p,((n,o)=>{if(n)return t?t(n):c.emit("error",n),void c.destroy();if(!o)return l&&((null==e.start||u>e.start)&&(t?t(null,l):c.emit("line",l)),u++,l=""),setTimeout(i,1e3);let r=a.write(s.slice(0,o));t||c.emit("data",r),r=(l+r).split(/\n+/);const d=r.length-1;let h=0;for(;h<d;h++)(null==e.start||u>e.start)&&(t?t(null,r[h]):c.emit("line",r[h])),u++;return l=r[d],p+=o,i()}));n.close(o,r)}()})),t?c.destroy:c}},5427:(e,t,s)=>{"use strict";const n=s(2037),{LEVEL:i,MESSAGE:o}=s(8029),r=s(3565);e.exports=class extends r{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol="string"==typeof e.eol?e.eol:n.EOL,this.setMaxListeners(30)}log(e,t){return setImmediate((()=>this.emit("logged",e))),this.stderrLevels[e[i]]?(console._stderr?console._stderr.write(`${e[o]}${this.eol}`):console.error(e[o]),void(t&&t())):this.consoleWarnLevels[e[i]]?(console._stderr?console._stderr.write(`${e[o]}${this.eol}`):console.warn(e[o]),void(t&&t())):(console._stdout?console._stdout.write(`${e[o]}${this.eol}`):console.log(e[o]),void(t&&t()))}_stringArrayToSet(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce(((e,s)=>{if("string"!=typeof s)throw new Error(t);return e[s]=!0,e}),{})}}},7672:(e,t,s)=>{"use strict";const n=s(7147),i=s(1017),o=s(7476),r=s(9796),{MESSAGE:a}=s(8029),{Stream:c,PassThrough:l}=s(6928),p=s(3565),u=s(1577)("winston:file"),d=s(2037),h=s(8430);e.exports=class extends p{constructor(e={}){function t(t,...s){s.slice(1).forEach((s=>{if(e[s])throw new Error(`Cannot set ${s} and ${t} together`)}))}if(super(e),this.name=e.name||"file",this._stream=new l,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)t("filename or dirname","stream"),this._basename=this.filename=e.filename?i.basename(e.filename):"winston.log",this.dirname=e.dirname||i.dirname(e.filename),this.options=e.options||{flags:"a"};else{if(!e.stream)throw new Error("Cannot log to file without filename or stream.");console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),t("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=i.dirname(this._dest.path)}this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol="string"==typeof e.eol?e.eol:d.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",(()=>{this._stream.once("finish",(()=>this.emit("finish"))),setImmediate((()=>this._stream.end()))})):(this._stream.once("finish",(()=>this.emit("finish"))),setImmediate((()=>this._stream.end()))))}log(e,t=()=>{}){if(this.silent)return t(),!0;if(this._drain)return void this._stream.once("drain",(()=>{this._drain=!1,this.log(e,t)}));if(this._rotate)return void this._stream.once("rotate",(()=>{this._rotate=!1,this.log(e,t)}));if(this.lazy){if(!this._fileExist)return this._opening||this.open(),void this.once("open",(()=>{this._fileExist=!0,this.log(e,t)}));if(this._needsNewFile(this._pendingSize))return void this._dest.once("close",(()=>{this._opening||this.open(),this.once("open",(()=>{this.log(e,t)}))}))}const s=`${e[a]}${this.eol}`,n=Buffer.byteLength(s);this._pendingSize+=n,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);const i=this._stream.write(s,function(){this._size+=n,this._pendingSize-=n,u("logged %s %s",this._size,s),this.emit("logged",e),this._rotate||this._opening||this._needsNewFile()&&(this.lazy?this._endStream((()=>{this.emit("fileclosed")})):(this._rotate=!0,this._endStream((()=>this._rotateFile()))))}.bind(this));return i?t():(this._drain=!0,this._stream.once("drain",(()=>{this._drain=!1,t()}))),u("written",i,this._drain),this.finishIfEnding(),i}query(e,t){"function"==typeof e&&(t=e,e={}),e=function(e){e=e||{},e.rows=e.rows||e.limit||10,e.start=e.start||0,e.until=e.until||new Date,"object"!=typeof e.until&&(e.until=new Date(e.until));e.from=e.from||e.until-864e5,"object"!=typeof e.from&&(e.from=new Date(e.from));return e.order=e.order||"desc",e}(e);const s=i.join(this.dirname,this.filename);let o="",r=[],a=0;const c=n.createReadStream(s,{encoding:"utf8"});function l(t,s){try{const s=JSON.parse(t);(function(t){if(!t)return;if("object"!=typeof t)return;const s=new Date(t.timestamp);if(e.from&&s<e.from||e.until&&s>e.until||e.level&&e.level!==t.level)return;return!0})(s)&&function(t){if(e.rows&&r.length>=e.rows&&"desc"!==e.order)return void(c.readable&&c.destroy());e.fields&&(t=e.fields.reduce(((e,s)=>(e[s]=t[s],e)),{}));"desc"===e.order&&r.length>=e.rows&&r.shift();r.push(t)}(s)}catch(e){s||c.emit("error",e)}}c.on("error",(e=>{if(c.readable&&c.destroy(),t)return"ENOENT"!==e.code?t(e):t(null,r)})),c.on("data",(t=>{const s=(t=(o+t).split(/\n+/)).length-1;let n=0;for(;n<s;n++)(!e.start||a>=e.start)&&l(t[n]),a++;o=t[s]})),c.on("close",(()=>{o&&l(o,!0),"desc"===e.order&&(r=r.reverse()),t&&t(null,r)}))}stream(e={}){const t=i.join(this.dirname,this.filename),s=new c,n={file:t,start:e.start};return s.destroy=h(n,((e,t)=>{if(e)return s.emit("error",e);try{s.emit("data",t),t=JSON.parse(t),s.emit("log",t)}catch(e){s.emit("error",e)}})),s}open(){this.filename&&(this._opening||(this._opening=!0,this.stat(((e,t)=>{if(e)return this.emit("error",e);u("stat done: %s { size: %s }",this.filename,t),this._size=t,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",(()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1}))}))))}stat(e){const t=this._getFile(),s=i.join(this.dirname,t);n.stat(s,((n,i)=>n&&"ENOENT"===n.code?(u("ENOENT ok",s),this.filename=t,e(null,0)):n?(u(`err ${n.code} ${s}`),e(n)):!i||this._needsNewFile(i.size)?this._incFile((()=>this.stat(e))):(this.filename=t,void e(null,i.size))))}close(e){this._stream&&this._stream.end((()=>{e&&e(),this.emit("flush"),this.emit("closed")}))}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile((()=>this.open()))}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end((()=>{this._cleanupStream(this._dest),e()}))):e()}_createStream(e){const t=i.join(this.dirname,this.filename);u("create stream start",t,this.options);const s=n.createWriteStream(t,this.options).on("error",(e=>u(e))).on("close",(()=>u("close",s.path,s.bytesWritten))).on("open",(()=>{u("file open ok",t),this.emit("open",t),e.pipe(s),this.rotatedWhileOpening&&(this._stream=new l,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(s),e.end())}));return u("create stream ok",t),s}_incFile(e){u("_incFile",this.filename);const t=i.extname(this._basename),s=i.basename(this._basename,t),n=[];this.zippedArchive&&n.push(function(e){const n=this._created>0&&!this.tailable?this._created:"";this._compressFile(i.join(this.dirname,`${s}${n}${t}`),i.join(this.dirname,`${s}${n}${t}.gz`),e)}.bind(this)),n.push(function(e){this.tailable?this._checkMaxFilesTailable(t,s,e):(this._created+=1,this._checkMaxFilesIncrementing(t,s,e))}.bind(this)),o(n,e)}_getFile(){const e=i.extname(this._basename),t=i.basename(this._basename,e),s=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${t}${s}${e}`:`${t}${e}`}_checkMaxFilesIncrementing(e,t,s){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(s);const o=this._created-this.maxFiles,r=`${t}${0!==o?o:""}${e}${this.zippedArchive?".gz":""}`,a=i.join(this.dirname,r);n.unlink(a,s)}_checkMaxFilesTailable(e,t,s){const r=[];if(!this.maxFiles)return;const a=this.zippedArchive?".gz":"";for(let s=this.maxFiles-1;s>1;s--)r.push(function(s,o){let r=`${t}${s-1}${e}${a}`;const c=i.join(this.dirname,r);n.exists(c,(l=>{if(!l)return o(null);r=`${t}${s}${e}${a}`,n.rename(c,i.join(this.dirname,r),o)}))}.bind(this,s));o(r,(()=>{n.rename(i.join(this.dirname,`${t}${e}${a}`),i.join(this.dirname,`${t}1${e}${a}`),s)}))}_compressFile(e,t,s){n.access(e,n.F_OK,(i=>{if(i)return s();var o=r.createGzip(),a=n.createReadStream(e),c=n.createWriteStream(t);c.on("finish",(()=>{n.unlink(e,s)})),a.pipe(o).pipe(c)}))}_createLogDirIfNotExist(e){n.existsSync(e)||n.mkdirSync(e,{recursive:!0})}}},1151:(e,t,s)=>{"use strict";const n=s(3685),i=s(5687),{Stream:o}=s(6928),r=s(3565),{configure:a}=s(6948);e.exports=class extends r{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,t){this._request(e,null,null,((t,s)=>{s&&200!==s.statusCode&&(t=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),t?this.emit("warn",t):this.emit("logged",e)})),t&&setImmediate(t)}query(e,t){"function"==typeof e&&(t=e,e={});const s=(e={method:"query",params:this.normalizeQuery(e)}).params.auth||null;delete e.params.auth;const n=e.params.path||null;delete e.params.path,this._request(e,s,n,((e,s,n)=>{if(s&&200!==s.statusCode&&(e=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),e)return t(e);if("string"==typeof n)try{n=JSON.parse(n)}catch(e){return t(e)}t(null,n)}))}stream(e={}){const t=new o,s=(e={method:"stream",params:e}).params.path||null;delete e.params.path;const n=e.params.auth||null;delete e.params.auth;let i="";const r=this._request(e,n,s);return t.destroy=()=>r.destroy(),r.on("data",(e=>{const s=(e=(i+e).split(/\n+/)).length-1;let n=0;for(;n<s;n++)try{t.emit("log",JSON.parse(e[n]))}catch(e){t.emit("error",e)}i=e[s]})),r.on("error",(e=>t.emit("error",e))),t}_request(e,t,s,n){e=e||{},t=t||this.auth,s=s||this.path||"",this.batch?this._doBatch(e,n,t,s):this._doRequest(e,n,t,s)}_doBatch(e,t,s,n){if(this.batchOptions.push(e),1===this.batchOptions.length){const e=this;this.batchCallback=t,this.batchTimeoutID=setTimeout((function(){e.batchTimeoutID=-1,e._doBatchRequest(e.batchCallback,s,n)}),this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,s,n)}_doBatchRequest(e,t,s){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);const n=this.batchOptions.slice();this.batchOptions=[],this._doRequest(n,e,t,s)}_doRequest(e,t,s,o){const r=Object.assign({},this.headers);s&&s.bearer&&(r.Authorization=`Bearer ${s.bearer}`);const c=(this.ssl?i:n).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${o.replace(/^\//,"")}`,headers:r,auth:s&&s.username&&s.password?`${s.username}:${s.password}`:"",agent:this.agent});c.on("error",t),c.on("response",(e=>e.on("end",(()=>t(null,e))).resume()));const l=a({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});c.end(Buffer.from(l(e,this.options.replacer),"utf8"))}}},3141:(e,t,s)=>{"use strict";Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:()=>s(5427)}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:()=>s(7672)}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:()=>s(1151)}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:()=>s(8079)})},8079:(e,t,s)=>{"use strict";const n=s(8549),{MESSAGE:i}=s(8029),o=s(2037),r=s(3565);e.exports=class extends r{constructor(e={}){if(super(e),!e.stream||!n(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol="string"==typeof e.eol?e.eol:o.EOL}log(e,t){if(setImmediate((()=>this.emit("logged",e))),this.isObjectMode)return this._stream.write(e),void(t&&t());this._stream.write(`${e[i]}${this.eol}`),t&&t()}}},5940:(e,t,s)=>{"use strict";const n=s(5770);n.createWebSocketStream=s(6371),n.Server=s(249),n.Receiver=s(2505),n.Sender=s(2831),n.WebSocket=n,n.WebSocketServer=n.Server,e.exports=n},7390:(e,t,s)=>{"use strict";const{EMPTY_BUFFER:n}=s(612),i=Buffer[Symbol.species];function o(e,t,s,n,i){for(let o=0;o<i;o++)s[n+o]=e[o]^t[3&o]}function r(e,t){for(let s=0;s<e.length;s++)e[s]^=t[3&s]}if(e.exports={concat:function(e,t){if(0===e.length)return n;if(1===e.length)return e[0];const s=Buffer.allocUnsafe(t);let o=0;for(let t=0;t<e.length;t++){const n=e[t];s.set(n,o),o+=n.length}return o<t?new i(s.buffer,s.byteOffset,o):s},mask:o,toArrayBuffer:function(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(t){if(e.readOnly=!0,Buffer.isBuffer(t))return t;let s;return t instanceof ArrayBuffer?s=new i(t):ArrayBuffer.isView(t)?s=new i(t.buffer,t.byteOffset,t.byteLength):(s=Buffer.from(t),e.readOnly=!1),s},unmask:r},!process.env.WS_NO_BUFFER_UTIL)try{const t=s(797);e.exports.mask=function(e,s,n,i,r){r<48?o(e,s,n,i,r):t.mask(e,s,n,i,r)},e.exports.unmask=function(e,s){e.length<32?r(e,s):t.unmask(e,s)}}catch(e){}},612:e=>{"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},2789:(e,t,s)=>{"use strict";const{kForOnEventAttribute:n,kListener:i}=s(612),o=Symbol("kCode"),r=Symbol("kData"),a=Symbol("kError"),c=Symbol("kMessage"),l=Symbol("kReason"),p=Symbol("kTarget"),u=Symbol("kType"),d=Symbol("kWasClean");class h{constructor(e){this[p]=null,this[u]=e}get target(){return this[p]}get type(){return this[u]}}Object.defineProperty(h.prototype,"target",{enumerable:!0}),Object.defineProperty(h.prototype,"type",{enumerable:!0});class f extends h{constructor(e,t={}){super(e),this[o]=void 0===t.code?0:t.code,this[l]=void 0===t.reason?"":t.reason,this[d]=void 0!==t.wasClean&&t.wasClean}get code(){return this[o]}get reason(){return this[l]}get wasClean(){return this[d]}}Object.defineProperty(f.prototype,"code",{enumerable:!0}),Object.defineProperty(f.prototype,"reason",{enumerable:!0}),Object.defineProperty(f.prototype,"wasClean",{enumerable:!0});class m extends h{constructor(e,t={}){super(e),this[a]=void 0===t.error?null:t.error,this[c]=void 0===t.message?"":t.message}get error(){return this[a]}get message(){return this[c]}}Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});class g extends h{constructor(e,t={}){super(e),this[r]=void 0===t.data?null:t.data}get data(){return this[r]}}Object.defineProperty(g.prototype,"data",{enumerable:!0});const v={addEventListener(e,t,s={}){for(const o of this.listeners(e))if(!s[n]&&o[i]===t&&!o[n])return;let o;if("message"===e)o=function(e,s){const n=new g("message",{data:s?e:e.toString()});n[p]=this,b(t,this,n)};else if("close"===e)o=function(e,s){const n=new f("close",{code:e,reason:s.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});n[p]=this,b(t,this,n)};else if("error"===e)o=function(e){const s=new m("error",{error:e,message:e.message});s[p]=this,b(t,this,s)};else{if("open"!==e)return;o=function(){const e=new h("open");e[p]=this,b(t,this,e)}}o[n]=!!s[n],o[i]=t,s.once?this.once(e,o):this.on(e,o)},removeEventListener(e,t){for(const s of this.listeners(e))if(s[i]===t&&!s[n]){this.removeListener(e,s);break}}};function b(e,t,s){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,s):e.call(t,s)}e.exports={CloseEvent:f,ErrorEvent:m,Event:h,EventTarget:v,MessageEvent:g}},8242:(e,t,s)=>{"use strict";const{tokenChars:n}=s(8909);function i(e,t,s){void 0===e[t]?e[t]=[s]:e[t].push(s)}e.exports={format:function(e){return Object.keys(e).map((t=>{let s=e[t];return Array.isArray(s)||(s=[s]),s.map((e=>[t].concat(Object.keys(e).map((t=>{let s=e[t];return Array.isArray(s)||(s=[s]),s.map((e=>!0===e?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")},parse:function(e){const t=Object.create(null);let s,o,r=Object.create(null),a=!1,c=!1,l=!1,p=-1,u=-1,d=-1,h=0;for(;h<e.length;h++)if(u=e.charCodeAt(h),void 0===s)if(-1===d&&1===n[u])-1===p&&(p=h);else if(0===h||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${h}`);{if(-1===p)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h);const n=e.slice(p,d);44===u?(i(t,n,r),r=Object.create(null)):s=n,p=d=-1}}else-1===d&&-1!==p&&(d=h);else if(void 0===o)if(-1===d&&1===n[u])-1===p&&(p=h);else if(32===u||9===u)-1===d&&-1!==p&&(d=h);else if(59===u||44===u){if(-1===p)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h),i(r,e.slice(p,d),!0),44===u&&(i(t,s,r),r=Object.create(null),s=void 0),p=d=-1}else{if(61!==u||-1===p||-1!==d)throw new SyntaxError(`Unexpected character at index ${h}`);o=e.slice(p,h),p=d=-1}else if(c){if(1!==n[u])throw new SyntaxError(`Unexpected character at index ${h}`);-1===p?p=h:a||(a=!0),c=!1}else if(l)if(1===n[u])-1===p&&(p=h);else if(34===u&&-1!==p)l=!1,d=h;else{if(92!==u)throw new SyntaxError(`Unexpected character at index ${h}`);c=!0}else if(34===u&&61===e.charCodeAt(h-1))l=!0;else if(-1===d&&1===n[u])-1===p&&(p=h);else if(-1===p||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${h}`);{if(-1===p)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h);let n=e.slice(p,d);a&&(n=n.replace(/\\/g,""),a=!1),i(r,o,n),44===u&&(i(t,s,r),r=Object.create(null),s=void 0),o=void 0,p=d=-1}}else-1===d&&(d=h);if(-1===p||l||32===u||9===u)throw new SyntaxError("Unexpected end of input");-1===d&&(d=h);const f=e.slice(p,d);return void 0===s?i(t,f,r):(void 0===o?i(r,f,!0):i(r,o,a?f.replace(/\\/g,""):f),i(t,s,r)),t}}},9792:e=>{"use strict";const t=Symbol("kDone"),s=Symbol("kRun");e.exports=class{constructor(e){this[t]=()=>{this.pending--,this[s]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[s]()}[s](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[t])}}}},1122:(e,t,s)=>{"use strict";const n=s(9796),i=s(7390),o=s(9792),{kStatusCode:r}=s(612),a=Buffer[Symbol.species],c=Buffer.from([0,0,255,255]),l=Symbol("permessage-deflate"),p=Symbol("total-length"),u=Symbol("callback"),d=Symbol("buffers"),h=Symbol("error");let f;function m(e){this[d].push(e),this[p]+=e.length}function g(e){this[p]+=e.length,this[l]._maxPayload<1||this[p]<=this[l]._maxPayload?this[d].push(e):(this[h]=new RangeError("Max payload size exceeded"),this[h].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[h][r]=1009,this.removeListener("data",g),this.reset())}function v(e){this[l]._inflate=null,e[r]=1007,this[u](e)}e.exports=class{constructor(e,t,s){if(this._maxPayload=0|s,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!f){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;f=new o(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[u];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,s=e.find((e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits)));if(!s)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(s.server_no_context_takeover=!0),t.clientNoContextTakeover&&(s.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(s.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?s.client_max_window_bits=t.clientMaxWindowBits:!0!==s.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete s.client_max_window_bits,s}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach((e=>{Object.keys(e).forEach((t=>{let s=e[t];if(s.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(s=s[0],"client_max_window_bits"===t){if(!0!==s){const e=+s;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${s}`);s=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${s}`)}else if("server_max_window_bits"===t){const e=+s;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${s}`);s=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==s)throw new TypeError(`Invalid value for parameter "${t}": ${s}`)}e[t]=s}))})),e}decompress(e,t,s){f.add((n=>{this._decompress(e,t,((e,t)=>{n(),s(e,t)}))}))}compress(e,t,s){f.add((n=>{this._compress(e,t,((e,t)=>{n(),s(e,t)}))}))}_decompress(e,t,s){const o=this._isServer?"client":"server";if(!this._inflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[l]=this,this._inflate[p]=0,this._inflate[d]=[],this._inflate.on("error",v),this._inflate.on("data",g)}this._inflate[u]=s,this._inflate.write(e),t&&this._inflate.write(c),this._inflate.flush((()=>{const e=this._inflate[h];if(e)return this._inflate.close(),this._inflate=null,void s(e);const n=i.concat(this._inflate[d],this._inflate[p]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[p]=0,this._inflate[d]=[],t&&this.params[`${o}_no_context_takeover`]&&this._inflate.reset()),s(null,n)}))}_compress(e,t,s){const o=this._isServer?"server":"client";if(!this._deflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[p]=0,this._deflate[d]=[],this._deflate.on("data",m)}this._deflate[u]=s,this._deflate.write(e),this._deflate.flush(n.Z_SYNC_FLUSH,(()=>{if(!this._deflate)return;let e=i.concat(this._deflate[d],this._deflate[p]);t&&(e=new a(e.buffer,e.byteOffset,e.length-4)),this._deflate[u]=null,this._deflate[p]=0,this._deflate[d]=[],t&&this.params[`${o}_no_context_takeover`]&&this._deflate.reset(),s(null,e)}))}}},2505:(e,t,s)=>{"use strict";const{Writable:n}=s(2781),i=s(1122),{BINARY_TYPES:o,EMPTY_BUFFER:r,kStatusCode:a,kWebSocket:c}=s(612),{concat:l,toArrayBuffer:p,unmask:u}=s(7390),{isValidStatusCode:d,isValidUTF8:h}=s(8909),f=Buffer[Symbol.species];e.exports=class extends n{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||o[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[c]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,s){if(8===this._opcode&&0==this._state)return s();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(s)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=new f(t.buffer,t.byteOffset+e,t.length-e),new f(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const s=this._buffers[0],n=t.length-e;e>=s.length?t.set(this._buffers.shift(),n):(t.set(new Uint8Array(s.buffer,s.byteOffset,e),n),this._buffers[0]=new f(s.buffer,s.byteOffset+e,s.length-e)),e-=s.length}while(e>0);return t}startLoop(e){this._loop=!0;do{switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2)return void(this._loop=!1);const t=this.consume(2);if(48&t[0]){return void e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}const s=!(64&~t[0]);if(!s||this._extensions[i.extensionName]){if(this._fin=!(128&~t[0]),this._opcode=15&t[0],this._payloadLength=127&t[1],0===this._opcode){if(s){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=s}else{if(!(this._opcode>7&&this._opcode<11)){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(s){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~t[1]),this._isServer){if(!this._masked){return void e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}else{e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8)return void(this._loop=!1);const t=this.consume(8),s=t.readUInt32BE(0);if(s>Math.pow(2,21)-1){e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}else this._payloadLength=s*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}else this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=r;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&u(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,t){this._extensions[i.extensionName].decompress(e,this._fin,((e,s)=>{if(e)return t(e);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void t(e)}this._fragments.push(s)}this.dataMessage(t),0===this._state&&this.startLoop(t)}))}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,s=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let n;n="nodebuffer"===this._binaryType?l(s,t):"arraybuffer"===this._binaryType?p(l(s,t)):s,this._allowSynchronousEvents?(this.emit("message",n,!0),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",n,!0),this._state=0,this.startLoop(e)})))}else{const n=l(s,t);if(!this._skipUTF8Validation&&!h(n)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",n,!1),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",n,!1),this._state=0,this.startLoop(e)})))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate((()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)})));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,r),this.end();else{const s=e.readUInt16BE(0);if(!d(s)){const e=this.createError(RangeError,`invalid status code ${s}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const n=new f(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!h(n)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",s,n),this.end()}this._state=0}}createError(e,t,s,n,i){this._loop=!1,this._errored=!0;const o=new e(s?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=i,o[a]=n,o}}},2831:(e,t,s)=>{"use strict";const{Duplex:n}=s(2781),{randomFillSync:i}=s(6113),o=s(1122),{EMPTY_BUFFER:r}=s(612),{isValidStatusCode:a}=s(8909),{mask:c,toBuffer:l}=s(7390),p=Symbol("kByteLength"),u=Buffer.alloc(4),d=8192;let h,f=d;class m{constructor(e,t,s){this._extensions=t||{},s&&(this._generateMask=s,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){let s,n,o=!1,r=2,a=!1;t.mask&&(s=t.maskBuffer||u,t.generateMask?t.generateMask(s):(f===d&&(void 0===h&&(h=Buffer.alloc(d)),i(h,0,d),f=0),s[0]=h[f++],s[1]=h[f++],s[2]=h[f++],s[3]=h[f++]),a=!(s[0]|s[1]|s[2]|s[3]),r=6),"string"==typeof e?n=t.mask&&!a||void 0===t[p]?(e=Buffer.from(e)).length:t[p]:(n=e.length,o=t.mask&&t.readOnly&&!a);let l=n;n>=65536?(r+=8,l=127):n>125&&(r+=2,l=126);const m=Buffer.allocUnsafe(o?n+r:r);return m[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(m[0]|=64),m[1]=l,126===l?m.writeUInt16BE(n,2):127===l&&(m[2]=m[3]=0,m.writeUIntBE(n,4,6)),t.mask?(m[1]|=128,m[r-4]=s[0],m[r-3]=s[1],m[r-2]=s[2],m[r-1]=s[3],a?[m,e]:o?(c(e,s,m,r,n),[m]):(c(e,s,e,0,n),[m,e])):[m,e]}close(e,t,s,n){let i;if(void 0===e)i=r;else{if("number"!=typeof e||!a(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const s=Buffer.byteLength(t);if(s>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+s),i.writeUInt16BE(e,0),"string"==typeof t?i.write(t,2):i.set(t,2)}else i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0)}const o={[p]:i.length,fin:!0,generateMask:this._generateMask,mask:s,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,i,!1,o,n]):this.sendFrame(m.frame(i,o),n)}ping(e,t,s){let n,i;if("string"==typeof e?(n=Buffer.byteLength(e),i=!1):(n=(e=l(e)).length,i=l.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[p]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,o,s]):this.sendFrame(m.frame(e,o),s)}pong(e,t,s){let n,i;if("string"==typeof e?(n=Buffer.byteLength(e),i=!1):(n=(e=l(e)).length,i=l.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[p]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,o,s]):this.sendFrame(m.frame(e,o),s)}send(e,t,s){const n=this._extensions[o.extensionName];let i,r,a=t.binary?2:1,c=t.compress;if("string"==typeof e?(i=Buffer.byteLength(e),r=!1):(i=(e=l(e)).length,r=l.readOnly),this._firstFragment?(this._firstFragment=!1,c&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(c=i>=n._threshold),this._compress=c):(c=!1,a=0),t.fin&&(this._firstFragment=!0),n){const n={[p]:i,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:r,rsv1:c};this._deflating?this.enqueue([this.dispatch,e,this._compress,n,s]):this.dispatch(e,this._compress,n,s)}else this.sendFrame(m.frame(e,{[p]:i,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:r,rsv1:!1}),s)}dispatch(e,t,s,n){if(!t)return void this.sendFrame(m.frame(e,s),n);const i=this._extensions[o.extensionName];this._bufferedBytes+=s[p],this._deflating=!0,i.compress(e,s.fin,((e,t)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");"function"==typeof n&&n(e);for(let t=0;t<this._queue.length;t++){const s=this._queue[t],n=s[s.length-1];"function"==typeof n&&n(e)}}else this._bufferedBytes-=s[p],this._deflating=!1,s.readOnly=!1,this.sendFrame(m.frame(t,s),n),this.dequeue()}))}dequeue(){for(;!this._deflating&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][p],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][p],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}e.exports=m},6371:(e,t,s)=>{"use strict";const{Duplex:n}=s(2781);function i(e){e.emit("close")}function o(){!this.destroyed&&this._writableState.finished&&this.destroy()}function r(e){this.removeListener("error",r),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}e.exports=function(e,t){let s=!0;const a=new n({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",(function(t,s){const n=!s&&a._readableState.objectMode?t.toString():t;a.push(n)||e.pause()})),e.once("error",(function(e){a.destroyed||(s=!1,a.destroy(e))})),e.once("close",(function(){a.destroyed||a.push(null)})),a._destroy=function(t,n){if(e.readyState===e.CLOSED)return n(t),void process.nextTick(i,a);let o=!1;e.once("error",(function(e){o=!0,n(e)})),e.once("close",(function(){o||n(t),process.nextTick(i,a)})),s&&e.terminate()},a._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),a._readableState.endEmitted&&a.destroy()):(e._socket.once("finish",(function(){t()})),e.close())):e.once("open",(function(){a._final(t)}))},a._read=function(){e.isPaused&&e.resume()},a._write=function(t,s,n){e.readyState!==e.CONNECTING?e.send(t,n):e.once("open",(function(){a._write(t,s,n)}))},a.on("end",o),a.on("error",r),a}},8880:(e,t,s)=>{"use strict";const{tokenChars:n}=s(8909);e.exports={parse:function(e){const t=new Set;let s=-1,i=-1,o=0;for(;o<e.length;o++){const r=e.charCodeAt(o);if(-1===i&&1===n[r])-1===s&&(s=o);else if(0===o||32!==r&&9!==r){if(44!==r)throw new SyntaxError(`Unexpected character at index ${o}`);{if(-1===s)throw new SyntaxError(`Unexpected character at index ${o}`);-1===i&&(i=o);const n=e.slice(s,i);if(t.has(n))throw new SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),s=i=-1}}else-1===i&&-1!==s&&(i=o)}if(-1===s||-1!==i)throw new SyntaxError("Unexpected end of input");const r=e.slice(s,o);if(t.has(r))throw new SyntaxError(`The "${r}" subprotocol is duplicated`);return t.add(r),t}}},8909:(e,t,s)=>{"use strict";const{isUtf8:n}=s(4300);function i(e){const t=e.length;let s=0;for(;s<t;)if(128&e[s])if(192==(224&e[s])){if(s+1===t||128!=(192&e[s+1])||192==(254&e[s]))return!1;s+=2}else if(224==(240&e[s])){if(s+2>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||224===e[s]&&128==(224&e[s+1])||237===e[s]&&160==(224&e[s+1]))return!1;s+=3}else{if(240!=(248&e[s]))return!1;if(s+3>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||128!=(192&e[s+3])||240===e[s]&&128==(240&e[s+1])||244===e[s]&&e[s+1]>143||e[s]>244)return!1;s+=4}else s++;return!0}if(e.exports={isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:i,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},n)e.exports.isValidUTF8=function(e){return e.length<24?i(e):n(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const t=s(367);e.exports.isValidUTF8=function(e){return e.length<32?i(e):t(e)}}catch(e){}},249:(e,t,s)=>{"use strict";const n=s(2361),i=s(3685),{Duplex:o}=s(2781),{createHash:r}=s(6113),a=s(8242),c=s(1122),l=s(8880),p=s(5770),{GUID:u,kWebSocket:d}=s(612),h=/^[+/0-9A-Za-z]{22}==$/;function f(e){e._state=2,e.emit("close")}function m(){this.destroy()}function g(e,t,s,n){s=s||i.STATUS_CODES[t],n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(s),...n},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(n).map((e=>`${e}: ${n[e]}`)).join("\r\n")+"\r\n\r\n"+s)}function v(e,t,s,n,i){if(e.listenerCount("wsClientError")){const n=new Error(i);Error.captureStackTrace(n,v),e.emit("wsClientError",n,s,t)}else g(s,n,i)}e.exports=class extends n{constructor(e,t){if(super(),null==(e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:p,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=i.createServer(((e,t)=>{const s=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),t.end(s)})),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const s of Object.keys(t))e.on(s,t[s]);return function(){for(const s of Object.keys(t))e.removeListener(s,t[s])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,s,n)=>{this.handleUpgrade(t,s,n,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state)return e&&this.once("close",(()=>{e(new Error("The server is not running"))})),void process.nextTick(f,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(f,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close((()=>{f(this)}))}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,s,n){t.on("error",m);const i=e.headers["sec-websocket-key"],o=e.headers.upgrade,r=+e.headers["sec-websocket-version"];if("GET"!==e.method){return void v(this,e,t,405,"Invalid HTTP method")}if(void 0===o||"websocket"!==o.toLowerCase()){return void v(this,e,t,400,"Invalid Upgrade header")}if(void 0===i||!h.test(i)){return void v(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header")}if(8!==r&&13!==r){return void v(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header")}if(!this.shouldHandle(e))return void g(t,400);const p=e.headers["sec-websocket-protocol"];let u=new Set;if(void 0!==p)try{u=l.parse(p)}catch(s){return void v(this,e,t,400,"Invalid Sec-WebSocket-Protocol header")}const d=e.headers["sec-websocket-extensions"],f={};if(this.options.perMessageDeflate&&void 0!==d){const s=new c(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const e=a.parse(d);e[c.extensionName]&&(s.accept(e[c.extensionName]),f[c.extensionName]=s)}catch(s){return void v(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const o={origin:e.headers[""+(8===r?"sec-websocket-origin":"origin")],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(o,((o,r,a,c)=>{if(!o)return g(t,r||401,a,c);this.completeUpgrade(f,i,u,e,t,s,n)}));if(!this.options.verifyClient(o))return g(t,401)}this.completeUpgrade(f,i,u,e,t,s,n)}completeUpgrade(e,t,s,n,i,o,l){if(!i.readable||!i.writable)return i.destroy();if(i[d])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return g(i,503);const p=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${r("sha1").update(t+u).digest("base64")}`],h=new this.options.WebSocket(null,void 0,this.options);if(s.size){const e=this.options.handleProtocols?this.options.handleProtocols(s,n):s.values().next().value;e&&(p.push(`Sec-WebSocket-Protocol: ${e}`),h._protocol=e)}if(e[c.extensionName]){const t=e[c.extensionName].params,s=a.format({[c.extensionName]:[t]});p.push(`Sec-WebSocket-Extensions: ${s}`),h._extensions=e}this.emit("headers",p,n),i.write(p.concat("\r\n").join("\r\n")),i.removeListener("error",m),h.setSocket(i,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(h),h.on("close",(()=>{this.clients.delete(h),this._shouldEmitClose&&!this.clients.size&&process.nextTick(f,this)}))),l(h,n)}}},5770:(e,t,s)=>{"use strict";const n=s(2361),i=s(5687),o=s(3685),r=s(1808),a=s(4404),{randomBytes:c,createHash:l}=s(6113),{Duplex:p,Readable:u}=s(2781),{URL:d}=s(7310),h=s(1122),f=s(2505),m=s(2831),{BINARY_TYPES:g,EMPTY_BUFFER:v,GUID:b,kForOnEventAttribute:x,kListener:y,kStatusCode:w,kWebSocket:_,NOOP:k}=s(612),{EventTarget:{addEventListener:S,removeEventListener:E}}=s(2789),{format:T,parse:O}=s(8242),{toBuffer:C}=s(7390),R=Symbol("kAborted"),j=[8,13],A=["CONNECTING","OPEN","CLOSING","CLOSED"],P=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class M extends n{constructor(e,t,s){super(),this._binaryType=g[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=v,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=M.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(s=t,t=[]):t=[t]),N(this,e,t,s)):(this._autoPong=s.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){g.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,s){const n=new f({allowSynchronousEvents:s.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation});this._sender=new m(e,this._extensions,s.generateMask),this._receiver=n,this._socket=e,n[_]=this,e[_]=this,n.on("conclude",$),n.on("drain",F),n.on("error",U),n.on("message",H),n.on("ping",W),n.on("pong",V),e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Y),e.on("data",K),e.on("end",J),e.on("error",X),this._readyState=M.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=M.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[h.extensionName]&&this._extensions[h.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=M.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==M.CLOSED)if(this.readyState!==M.CONNECTING)this.readyState!==M.CLOSING?(this._readyState=M.CLOSING,this._sender.close(e,t,!this._isServer,(e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())})),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();else{const e="WebSocket was closed before the connection was established";I(this,this._req,e)}}pause(){this.readyState!==M.CONNECTING&&this.readyState!==M.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,s){if(this.readyState===M.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(s=e,e=t=void 0):"function"==typeof t&&(s=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===M.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||v,t,s)):B(this,e,s)}pong(e,t,s){if(this.readyState===M.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(s=e,e=t=void 0):"function"==typeof t&&(s=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===M.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||v,t,s)):B(this,e,s)}resume(){this.readyState!==M.CONNECTING&&this.readyState!==M.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,s){if(this.readyState===M.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(s=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==M.OPEN)return void B(this,e,s);const n={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[h.extensionName]||(n.compress=!1),this._sender.send(e||v,n,s)}terminate(){if(this.readyState!==M.CLOSED)if(this.readyState!==M.CONNECTING)this._socket&&(this._readyState=M.CLOSING,this._socket.destroy());else{const e="WebSocket was closed before the connection was established";I(this,this._req,e)}}}function N(e,t,s,n){const r={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:j[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...n,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=r.autoPong,!j.includes(r.protocolVersion))throw new RangeError(`Unsupported protocol version: ${r.protocolVersion} (supported versions: ${j.join(", ")})`);let a;if(t instanceof d)a=t;else try{a=new d(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===a.protocol?a.protocol="ws:":"https:"===a.protocol&&(a.protocol="wss:"),e._url=a.href;const p="wss:"===a.protocol,u="ws+unix:"===a.protocol;let f;if("ws:"===a.protocol||p||u?u&&!a.pathname?f="The URL's pathname is empty":a.hash&&(f="The URL contains a fragment identifier"):f='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"',f){const t=new SyntaxError(f);if(0===e._redirects)throw t;return void D(e,t)}const m=p?443:80,g=c(16).toString("base64"),v=p?i.request:o.request,x=new Set;let y,w;if(r.createConnection=r.createConnection||(p?q:L),r.defaultPort=r.defaultPort||m,r.port=a.port||m,r.host=a.hostname.startsWith("[")?a.hostname.slice(1,-1):a.hostname,r.headers={...r.headers,"Sec-WebSocket-Version":r.protocolVersion,"Sec-WebSocket-Key":g,Connection:"Upgrade",Upgrade:"websocket"},r.path=a.pathname+a.search,r.timeout=r.handshakeTimeout,r.perMessageDeflate&&(y=new h(!0!==r.perMessageDeflate?r.perMessageDeflate:{},!1,r.maxPayload),r.headers["Sec-WebSocket-Extensions"]=T({[h.extensionName]:y.offer()})),s.length){for(const e of s){if("string"!=typeof e||!P.test(e)||x.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");x.add(e)}r.headers["Sec-WebSocket-Protocol"]=s.join(",")}if(r.origin&&(r.protocolVersion<13?r.headers["Sec-WebSocket-Origin"]=r.origin:r.headers.Origin=r.origin),(a.username||a.password)&&(r.auth=`${a.username}:${a.password}`),u){const e=r.path.split(":");r.socketPath=e[0],r.path=e[1]}if(r.followRedirects){if(0===e._redirects){e._originalIpc=u,e._originalSecure=p,e._originalHostOrSocketPath=u?r.socketPath:a.host;const t=n&&n.headers;if(n={...n,headers:{}},t)for(const[e,s]of Object.entries(t))n.headers[e.toLowerCase()]=s}else if(0===e.listenerCount("redirect")){const t=u?!!e._originalIpc&&r.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&a.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!p)&&(delete r.headers.authorization,delete r.headers.cookie,t||delete r.headers.host,r.auth=void 0)}r.auth&&!n.headers.authorization&&(n.headers.authorization="Basic "+Buffer.from(r.auth).toString("base64")),w=e._req=v(r),e._redirects&&e.emit("redirect",e.url,w)}else w=e._req=v(r);r.timeout&&w.on("timeout",(()=>{I(e,w,"Opening handshake has timed out")})),w.on("error",(t=>{null===w||w[R]||(w=e._req=null,D(e,t))})),w.on("response",(i=>{const o=i.headers.location,a=i.statusCode;if(o&&r.followRedirects&&a>=300&&a<400){if(++e._redirects>r.maxRedirects)return void I(e,w,"Maximum redirects exceeded");let i;w.abort();try{i=new d(o,t)}catch(t){const s=new SyntaxError(`Invalid URL: ${o}`);return void D(e,s)}N(e,i,s,n)}else e.emit("unexpected-response",w,i)||I(e,w,`Unexpected server response: ${i.statusCode}`)})),w.on("upgrade",((t,s,n)=>{if(e.emit("upgrade",t),e.readyState!==M.CONNECTING)return;w=e._req=null;const i=t.headers.upgrade;if(void 0===i||"websocket"!==i.toLowerCase())return void I(e,s,"Invalid Upgrade header");const o=l("sha1").update(g+b).digest("base64");if(t.headers["sec-websocket-accept"]!==o)return void I(e,s,"Invalid Sec-WebSocket-Accept header");const a=t.headers["sec-websocket-protocol"];let c;if(void 0!==a?x.size?x.has(a)||(c="Server sent an invalid subprotocol"):c="Server sent a subprotocol but none was requested":x.size&&(c="Server sent no subprotocol"),c)return void I(e,s,c);a&&(e._protocol=a);const p=t.headers["sec-websocket-extensions"];if(void 0!==p){if(!y){return void I(e,s,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=O(p)}catch(t){return void I(e,s,"Invalid Sec-WebSocket-Extensions header")}const n=Object.keys(t);if(1!==n.length||n[0]!==h.extensionName){return void I(e,s,"Server indicated an extension that was not requested")}try{y.accept(t[h.extensionName])}catch(t){return void I(e,s,"Invalid Sec-WebSocket-Extensions header")}e._extensions[h.extensionName]=y}e.setSocket(s,n,{allowSynchronousEvents:r.allowSynchronousEvents,generateMask:r.generateMask,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation})})),r.finishRequest?r.finishRequest(w,e):w.end()}function D(e,t){e._readyState=M.CLOSING,e.emit("error",t),e.emitClose()}function L(e){return e.path=e.socketPath,r.connect(e)}function q(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=r.isIP(e.host)?"":e.host),a.connect(e)}function I(e,t,s){e._readyState=M.CLOSING;const n=new Error(s);Error.captureStackTrace(n,I),t.setHeader?(t[R]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(D,e,n)):(t.destroy(n),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function B(e,t,s){if(t){const s=C(t).length;e._socket?e._sender._bufferedBytes+=s:e._bufferedAmount+=s}if(s){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${A[e.readyState]})`);process.nextTick(s,t)}}function $(e,t){const s=this[_];s._closeFrameReceived=!0,s._closeMessage=t,s._closeCode=e,void 0!==s._socket[_]&&(s._socket.removeListener("data",K),process.nextTick(G,s._socket),1005===e?s.close():s.close(e,t))}function F(){const e=this[_];e.isPaused||e._socket.resume()}function U(e){const t=this[_];void 0!==t._socket[_]&&(t._socket.removeListener("data",K),process.nextTick(G,t._socket),t.close(e[w])),t.emit("error",e)}function z(){this[_].emitClose()}function H(e,t){this[_].emit("message",e,t)}function W(e){const t=this[_];t._autoPong&&t.pong(e,!this._isServer,k),t.emit("ping",e)}function V(e){this[_].emit("pong",e)}function G(e){e.resume()}function Y(){const e=this[_];let t;this.removeListener("close",Y),this.removeListener("data",K),this.removeListener("end",J),e._readyState=M.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[_]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",z),e._receiver.on("finish",z))}function K(e){this[_]._receiver.write(e)||this.pause()}function J(){const e=this[_];e._readyState=M.CLOSING,e._receiver.end(),this.end()}function X(){const e=this[_];this.removeListener("error",X),this.on("error",k),e&&(e._readyState=M.CLOSING,this.destroy())}Object.defineProperty(M,"CONNECTING",{enumerable:!0,value:A.indexOf("CONNECTING")}),Object.defineProperty(M.prototype,"CONNECTING",{enumerable:!0,value:A.indexOf("CONNECTING")}),Object.defineProperty(M,"OPEN",{enumerable:!0,value:A.indexOf("OPEN")}),Object.defineProperty(M.prototype,"OPEN",{enumerable:!0,value:A.indexOf("OPEN")}),Object.defineProperty(M,"CLOSING",{enumerable:!0,value:A.indexOf("CLOSING")}),Object.defineProperty(M.prototype,"CLOSING",{enumerable:!0,value:A.indexOf("CLOSING")}),Object.defineProperty(M,"CLOSED",{enumerable:!0,value:A.indexOf("CLOSED")}),Object.defineProperty(M.prototype,"CLOSED",{enumerable:!0,value:A.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(M.prototype,e,{enumerable:!0})})),["open","error","close","message"].forEach((e=>{Object.defineProperty(M.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[x])return t[y];return null},set(t){for(const t of this.listeners(e))if(t[x]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[x]:!0})}})})),M.prototype.addEventListener=S,M.prototype.removeEventListener=E,e.exports=M},1757:(e,t,s)=>{var n=s(7147),i=s(7310),o=s(2081).spawn;function r(e){"use strict";e=e||{};var t,r,a=this,c=s(3685),l=s(5687),p={},u=!1,d={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},h=Object.assign({},d),f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],m=["TRACE","TRACK","CONNECT"],g=!1,v=!1,b=!1,x={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.response=Buffer.alloc(0),this.status=null,this.statusText=null;this.open=function(e,t,s,n,i){if(this.abort(),v=!1,b=!1,!function(e){return e&&-1===m.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");p={method:e,url:t.toString(),async:"boolean"!=typeof s||s,user:n||null,password:i||null},y(this.OPENED)},this.setDisableHeaderCheck=function(e){u=e},this.setRequestHeader=function(e,t){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(!function(e){return u||e&&-1===f.indexOf(e.toLowerCase())}(e))return console.warn('Refused to set unsafe header "'+e+'"'),!1;if(g)throw new Error("INVALID_STATE_ERR: send flag is true");return h[e]=t,!0},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&r.headers[e.toLowerCase()]&&!v?r.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||v)return"";var e="";for(var t in r.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+r.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&h[e]?h[e]:""},this.send=function(s){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(g)throw new Error("INVALID_STATE_ERR: send has already been called");var u,d=!1,f=!1,m=i.parse(p.url);switch(m.protocol){case"https:":d=!0;case"http:":u=m.hostname;break;case"file:":f=!0;break;case void 0:case"":u="localhost";break;default:throw new Error("Protocol not supported.")}if(f){if("GET"!==p.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(p.async)n.readFile(unescape(m.pathname),(function(e,t){e?a.handleError(e,e.errno||-1):(a.status=200,a.responseText=t.toString("utf8"),a.response=t,y(a.DONE))}));else try{this.response=n.readFileSync(unescape(m.pathname)),this.responseText=this.response.toString("utf8"),this.status=200,y(a.DONE)}catch(e){this.handleError(e,e.errno||-1)}}else{var b=m.port||(d?443:80),x=m.pathname+(m.search?m.search:"");if(h.Host=u,d&&443===b||80===b||(h.Host+=":"+m.port),p.user){void 0===p.password&&(p.password="");var w=new Buffer(p.user+":"+p.password);h.Authorization="Basic "+w.toString("base64")}if("GET"===p.method||"HEAD"===p.method)s=null;else if(s){h["Content-Length"]=Buffer.isBuffer(s)?s.length:Buffer.byteLength(s),Object.keys(h).some((function(e){return"content-type"===e.toLowerCase()}))||(h["Content-Type"]="text/plain;charset=UTF-8")}else"POST"===p.method&&(h["Content-Length"]=0);var _=e.agent||!1,k={host:u,port:b,path:x,method:p.method,headers:h,agent:_};if(d&&(k.pfx=e.pfx,k.key=e.key,k.passphrase=e.passphrase,k.cert=e.cert,k.ca=e.ca,k.ciphers=e.ciphers,k.rejectUnauthorized=!1!==e.rejectUnauthorized),v=!1,p.async){var S=d?l.request:c.request;g=!0,a.dispatchEvent("readystatechange");var E=function(s){if(302===(r=s).statusCode||303===r.statusCode||307===r.statusCode){p.url=r.headers.location;var n=i.parse(p.url);u=n.hostname;var o={hostname:n.hostname,port:n.port,path:n.path,method:303===r.statusCode?"GET":p.method,headers:h};return d&&(o.pfx=e.pfx,o.key=e.key,o.passphrase=e.passphrase,o.cert=e.cert,o.ca=e.ca,o.ciphers=e.ciphers,o.rejectUnauthorized=!1!==e.rejectUnauthorized),void(t=S(o,E).on("error",T)).end()}y(a.HEADERS_RECEIVED),a.status=r.statusCode,r.on("data",(function(e){if(e){var t=Buffer.from(e);a.response=Buffer.concat([a.response,t])}g&&y(a.LOADING)})),r.on("end",(function(){g&&(g=!1,y(a.DONE),a.responseText=a.response.toString("utf8"))})),r.on("error",(function(e){a.handleError(e)}))},T=function(e){if(t.reusedSocket&&"ECONNRESET"===e.code)return S(k,E).on("error",T);a.handleError(e)};t=S(k,E).on("error",T),e.autoUnref&&t.on("socket",(e=>{e.unref()})),s&&t.write(s),t.end(),a.dispatchEvent("loadstart")}else{var O=".node-xmlhttprequest-content-"+process.pid,C=".node-xmlhttprequest-sync-"+process.pid;n.writeFileSync(C,"","utf8");for(var R="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(d?"s":"")+".request;var options = "+JSON.stringify(k)+";var responseText = '';var responseData = Buffer.alloc(0);var req = doRequest(options, function(response) {response.on('data', function(chunk) { var data = Buffer.from(chunk); responseText += data.toString('utf8'); responseData = Buffer.concat([responseData, data]);});response.on('end', function() {fs.writeFileSync('"+O+"', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText, data: responseData.toString('base64')}}), 'utf8');fs.unlinkSync('"+C+"');});response.on('error', function(error) {fs.writeFileSync('"+O+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+C+"');});}).on('error', function(error) {fs.writeFileSync('"+O+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+C+"');});"+(s?"req.write('"+JSON.stringify(s).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",j=o(process.argv[0],["-e",R]);n.existsSync(C););if(a.responseText=n.readFileSync(O,"utf8"),j.stdin.end(),n.unlinkSync(O),a.responseText.match(/^NODE-XMLHTTPREQUEST-ERROR:/)){var A=JSON.parse(a.responseText.replace(/^NODE-XMLHTTPREQUEST-ERROR:/,""));a.handleError(A,503)}else{a.status=a.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:([0-9]*),.*/,"$1");var P=JSON.parse(a.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:[0-9]*,(.*)/,"$1"));r={statusCode:a.status,headers:P.data.headers},a.responseText=P.data.text,a.response=Buffer.from(P.data.data,"base64"),y(a.DONE,!0)}}}},this.handleError=function(e,t){this.status=t||0,this.statusText=e,this.responseText=e.stack,v=!0,y(this.DONE)},this.abort=function(){t&&(t.abort(),t=null),h=Object.assign({},d),this.responseText="",this.responseXML="",this.response=Buffer.alloc(0),v=b=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!g||this.readyState===this.DONE||(g=!1,y(this.DONE)),this.readyState=this.UNSENT},this.addEventListener=function(e,t){e in x||(x[e]=[]),x[e].push(t)},this.removeEventListener=function(e,t){e in x&&(x[e]=x[e].filter((function(e){return e!==t})))},this.dispatchEvent=function(e){if("function"==typeof a["on"+e]&&(this.readyState===this.DONE&&p.async?setTimeout((function(){a["on"+e]()}),0):a["on"+e]()),e in x)for(let t=0,s=x[e].length;t<s;t++)this.readyState===this.DONE?setTimeout((function(){x[e][t].call(a)}),0):x[e][t].call(a)};var y=function(e){if(!(a.readyState===e||a.readyState===a.UNSENT&&b)&&(a.readyState=e,(p.async||a.readyState<a.OPENED||a.readyState===a.DONE)&&a.dispatchEvent("readystatechange"),a.readyState===a.DONE)){let e;e=b?"abort":v?"error":"load",a.dispatchEvent(e),a.dispatchEvent("loadend")}}}e.exports=r,r.XMLHttpRequest=r},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},797:t=>{"use strict";if(void 0===e){var s=new Error("Cannot find module 'bufferutil'");throw s.code="MODULE_NOT_FOUND",s}t.exports=e},367:e=>{"use strict";if(void 0===t){var s=new Error("Cannot find module 'utf-8-validate'");throw s.code="MODULE_NOT_FOUND",s}e.exports=t},4303:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let s=!1;try{s="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=s},6292:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode=function(e){let t="";for(let s in e)e.hasOwnProperty(s)&&(t.length&&(t+="&"),t+=encodeURIComponent(s)+"="+encodeURIComponent(e[s]));return t},t.decode=function(e){let t={},s=e.split("&");for(let e=0,n=s.length;e<n;e++){let n=s[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}},3361:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){if(e.length>8e3)throw"URI too long";const t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));let r=s.exec(e||""),a={},c=14;for(;c--;)a[n[c]]=r[c]||"";-1!=i&&-1!=o&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0);return a.pathNames=function(e,t){const s=t.replace(/\/{2,9}/g,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||s.splice(0,1);"/"==t.slice(-1)&&s.splice(s.length-1,1);return s}(0,a.path),a.queryKey=function(e,t){const s={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(s[t]=n)})),s}(0,a.query),a};const s=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]},3262:(e,t)=>{"use strict";function s(e){const t=e.split("; "),s=t[0].indexOf("=");if(-1===s)return;const n=t[0].substring(0,s).trim();if(!n.length)return;let i=t[0].substring(s+1).trim();34===i.charCodeAt(0)&&(i=i.slice(1,-1));const o={name:n,value:i};for(let e=1;e<t.length;e++){const s=t[e].split("=");if(2!==s.length)continue;const n=s[0].trim(),i=s[1].trim();switch(n){case"Expires":o.expires=new Date(i);break;case"Max-Age":const e=new Date;e.setUTCSeconds(e.getUTCSeconds()+parseInt(i,10)),o.expires=e}}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.CookieJar=t.defaultBinaryType=t.globalThisShim=t.nextTick=void 0,t.createCookieJar=function(){return new n},t.parse=s,t.nextTick=process.nextTick,t.globalThisShim=global,t.defaultBinaryType="nodebuffer";class n{constructor(){this._cookies=new Map}parseCookies(e){e&&e.forEach((e=>{const t=s(e);t&&this._cookies.set(t.name,t)}))}get cookies(){const e=Date.now();return this._cookies.forEach(((t,s)=>{var n;(null===(n=t.expires)||void 0===n?void 0:n.getTime())<e&&this._cookies.delete(s)})),this._cookies.entries()}addCookies(e){const t=[];for(const[e,s]of this.cookies)t.push(`${e}=${s.value}`);t.length&&(e.setDisableHeaderCheck(!0),e.setRequestHeader("cookie",t.join("; ")))}appendCookies(e){for(const[t,s]of this.cookies)e.append("cookie",`${t}=${s.value}`)}}t.CookieJar=n},3530:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebTransport=t.WebSocket=t.NodeWebSocket=t.XHR=t.NodeXHR=t.Fetch=t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.TransportError=t.Transport=t.protocol=t.SocketWithUpgrade=t.SocketWithoutUpgrade=t.Socket=void 0;const n=s(4275);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}});var i=s(4275);Object.defineProperty(t,"SocketWithoutUpgrade",{enumerable:!0,get:function(){return i.SocketWithoutUpgrade}}),Object.defineProperty(t,"SocketWithUpgrade",{enumerable:!0,get:function(){return i.SocketWithUpgrade}}),t.protocol=n.Socket.protocol;var o=s(8047);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return o.Transport}}),Object.defineProperty(t,"TransportError",{enumerable:!0,get:function(){return o.TransportError}});var r=s(6455);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var a=s(2417);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return a.installTimerFunctions}});var c=s(3361);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return c.parse}});var l=s(3262);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return l.nextTick}});var p=s(1259);Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return p.Fetch}});var u=s(8290);Object.defineProperty(t,"NodeXHR",{enumerable:!0,get:function(){return u.XHR}});var d=s(9609);Object.defineProperty(t,"XHR",{enumerable:!0,get:function(){return d.XHR}});var h=s(1349);Object.defineProperty(t,"NodeWebSocket",{enumerable:!0,get:function(){return h.WS}});var f=s(6410);Object.defineProperty(t,"WebSocket",{enumerable:!0,get:function(){return f.WS}});var m=s(2132);Object.defineProperty(t,"WebTransport",{enumerable:!0,get:function(){return m.WT}})},4275:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.SocketWithUpgrade=t.SocketWithoutUpgrade=void 0;const i=s(6455),o=s(2417),r=s(6292),a=s(3361),c=s(4529),l=s(5371),p=s(3262),u=(0,n(s(9229)).default)("engine.io-client:socket"),d="function"==typeof addEventListener&&"function"==typeof removeEventListener,h=[];d&&addEventListener("offline",(()=>{u("closing %d connection(s) because the network was lost",h.length),h.forEach((e=>e()))}),!1);class f extends c.Emitter{constructor(e,t){if(super(),this.binaryType=p.defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const s=(0,a.parse)(e);t.hostname=s.host,t.secure="https"===s.protocol||"wss"===s.protocol,t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=(0,a.parse)(t.host).host);(0,o.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,r.decode)(this.opts.query)),d&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(u("adding listener for the 'offline' event"),this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},h.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=(0,p.createCookieJar)()),this._open()}createTransport(e){u('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=l.protocol,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return u("options: %j",s),new this._transportsByName[e](s)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&f.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){u("setting transport %s",e.name),this.transport&&(u("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){u("socket open"),this.readyState="open",f.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(u('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}else u('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();u("flushing %d packets in socket",e.length),this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const s=this.writeBuffer[t].data;if(s&&(e+=(0,o.byteLength)(s)),t>0&&e>this._maxPayload)return u("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return u("payload size is %d (max: %d)",e,this._maxPayload),this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(u("throttled timer detected, scheduling connection close"),this._pingTimeoutTime=0,(0,p.nextTick)((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof s&&(n=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;const i={type:e,data:t,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this._onClose("forced close"),u("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?s():e()})):this.upgrading?s():e()),this}_onError(e){if(u("socket error %j",e),f.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return u("trying next transport"),this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(u('socket close with reason: "%s"',e),this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),d&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=h.indexOf(this._offlineEventListener);-1!==e&&(u("removing listener for the 'offline' event"),h.splice(e,1))}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}t.SocketWithoutUpgrade=f,f.protocol=l.protocol;class m extends f{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade){u("starting upgrade probes");for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}}_probe(e){u('probing transport "%s"',e);let t=this.createTransport(e),s=!1;f.priorWebsocketSuccess=!1;const n=()=>{s||(u('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!s)if("pong"===n.type&&"probe"===n.data){if(u('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;f.priorWebsocketSuccess="websocket"===t.name,u('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{s||"closed"!==this.readyState&&(u("changing transport and sending upgrade packet"),l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{u('probe transport "%s" failed',e);const s=new Error("probe error");s.transport=t.name,this.emitReserved("upgradeError",s)}})))};function i(){s||(s=!0,l(),t.close(),t=null)}const o=s=>{const n=new Error("probe error: "+s);n.transport=t.name,i(),u('probe transport "%s" failed because of error: %s',e,s),this.emitReserved("upgradeError",n)};function r(){o("transport closed")}function a(){o("socket closed")}function c(e){t&&e.name!==t.name&&(u('"%s" works - aborting "%s"',e.name,t.name),i())}const l=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",r),this.off("close",a),this.off("upgrading",c)};t.once("open",n),t.once("error",o),t.once("close",r),this.once("close",a),this.once("upgrading",c),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{s||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}t.SocketWithUpgrade=m;t.Socket=class extends m{constructor(e,t={}){const s="object"==typeof e?e:t;(!s.transports||s.transports&&"string"==typeof s.transports[0])&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map((e=>i.transports[e])).filter((e=>!!e))),super(e,s)}}},8047:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=t.TransportError=void 0;const i=s(5371),o=s(4529),r=s(2417),a=s(6292),c=(0,n(s(9229)).default)("engine.io-client:transport");class l extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}t.TransportError=l;class p extends o.Emitter{constructor(e){super(),this.writable=!1,(0,r.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new l(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):c("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,i.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=(0,a.encode)(e);return t.length?"?"+t:""}}t.Transport=p},6455:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=s(8290),i=s(1349),o=s(2132);t.transports={websocket:i.WS,webtransport:o.WT,polling:n.XHR}},1259:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Fetch=void 0;const n=s(9320);class i extends n.Polling{doPoll(){this._fetch().then((e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then((e=>this.onData(e)))})).catch((e=>{this.onError("fetch read error",e)}))}doWrite(e,t){this._fetch(e).then((e=>{if(!e.ok)return this.onError("fetch write error",e.status,e);t()})).catch((e=>{this.onError("fetch write error",e)}))}_fetch(e){var t;const s=void 0!==e,n=new Headers(this.opts.extraHeaders);return s&&n.set("content-type","text/plain;charset=UTF-8"),null===(t=this.socket._cookieJar)||void 0===t||t.appendCookies(n),fetch(this.uri(),{method:s?"POST":"GET",body:s?e:null,headers:n,credentials:this.opts.withCredentials?"include":"omit"}).then((e=>{var t;return null===(t=this.socket._cookieJar)||void 0===t||t.parseCookies(e.headers.getSetCookie()),e}))}}t.Fetch=i},9609:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=t.Request=t.BaseXHR=void 0;const i=s(9320),o=s(4529),r=s(2417),a=s(3262),c=s(4303),l=(0,n(s(9229)).default)("engine.io-client:polling");function p(){}class u extends i.Polling{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let s=location.port;s||(s=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){l("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.BaseXHR=u;class d extends o.Emitter{constructor(e,t,s){super(),this.createRequest=e,(0,r.installTimerFunctions)(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=void 0!==s.data?s.data:null,this._create()}_create(){var e;const t=(0,r.pick)(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{l("xhr open %s: %s",this._method,this._uri),s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&s.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(e){}if("POST"===this._method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{s.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var e;3===s.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(s.getResponseHeader("set-cookie"))),4===s.readyState&&(200===s.status||1223===s.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"==typeof s.status?s.status:0)}),0))},l("xhr data %s",this._data),s.send(this._data)}catch(e){return void this.setTimeoutFn((()=>{this._onError(e)}),0)}"undefined"!=typeof document&&(this._index=d.requestsCount++,d.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=p,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete d.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(t.Request=d,d.requestsCount=0,d.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",h);else if("function"==typeof addEventListener){const e="onpagehide"in a.globalThisShim?"pagehide":"unload";addEventListener(e,h,!1)}function h(){for(let e in d.requests)d.requests.hasOwnProperty(e)&&d.requests[e].abort()}const f=function(){const e=m({xdomain:!1});return e&&null!==e.responseType}();function m(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||c.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(a.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}t.XHR=class extends u{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=f&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new d(m,this.uri(),e)}}},8290:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var i=Object.getOwnPropertyDescriptor(t,s);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,i)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&n(t,e,s);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const r=o(s(1757)),a=s(9609),c=r.default||r;class l extends a.BaseXHR{request(e={}){var t;return Object.assign(e,{xd:this.xd,cookieJar:null===(t=this.socket)||void 0===t?void 0:t._cookieJar},this.opts),new a.Request((e=>new c(e)),this.uri(),e)}}t.XHR=l},9320:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Polling=void 0;const i=s(8047),o=s(2417),r=s(5371),a=(0,n(s(9229)).default)("engine.io-client:polling");class c extends i.Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{a("paused"),this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(a("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){a("pre-pause polling complete"),--e||t()}))),this.writable||(a("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){a("pre-pause writing complete"),--e||t()})))}else t()}_poll(){a("polling"),this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){a("polling got data %s",e);(0,r.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this._poll():a('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{a("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(a("transport open - closing"),e()):(a("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,r.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.randomString)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}t.Polling=c},6410:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=t.BaseWS=void 0;const i=s(8047),o=s(2417),r=s(5371),a=s(3262),c=(0,n(s(9229)).default)("engine.io-client:websocket"),l="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class p extends i.Transport{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=l?{}:(0,o.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],n=t===e.length-1;(0,r.encodePacket)(s,this.supportsBinary,(e=>{try{this.doWrite(s,e)}catch(e){c("websocket closed before onclose event")}n&&(0,a.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.randomString)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}t.BaseWS=p;const u=a.globalThisShim.WebSocket||a.globalThisShim.MozWebSocket;t.WS=class extends p{createSocket(e,t,s){return l?new u(e,t,s):t?new u(e,t):new u(e)}doWrite(e,t){this.ws.send(t)}}},1349:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var i=Object.getOwnPropertyDescriptor(t,s);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,i)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&n(t,e,s);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const r=o(s(5940)),a=s(6410);class c extends a.BaseWS{createSocket(e,t,s){var n;if(null===(n=this.socket)||void 0===n?void 0:n._cookieJar){s.headers=s.headers||{},s.headers.cookie="string"==typeof s.headers.cookie?[s.headers.cookie]:s.headers.cookie||[];for(const[e,t]of this.socket._cookieJar.cookies)s.headers.cookie.push(`${e}=${t.value}`)}return new r.WebSocket(e,t,s)}doWrite(e,t){const s={};if(e.options&&(s.compress=e.options.compress),this.opts.perMessageDeflate){("string"==typeof t?Buffer.byteLength(t):t.length)<this.opts.perMessageDeflate.threshold&&(s.compress=!1)}this.ws.send(t,s)}}t.WS=c},2132:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WT=void 0;const i=s(8047),o=s(3262),r=s(5371),a=(0,n(s(9229)).default)("engine.io-client:webtransport");class c extends i.Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then((()=>{a("transport closed gracefully"),this.onClose()})).catch((e=>{a("transport closed due to %s",e),this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=(0,r.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),n=(0,r.createPacketEncoderStream)();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();const i=()=>{s.read().then((({done:e,value:t})=>{e?a("session is closed"):(a("received chunk: %o",t),this.onPacket(t),i())})).catch((e=>{a("an error occurred while reading: %s",e)}))};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],n=t===e.length-1;this._writer.write(s).then((()=>{n&&(0,o.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}}t.WT=c},2417:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pick=function(e,...t){return t.reduce(((t,s)=>(e.hasOwnProperty(s)&&(t[s]=e[s]),t)),{})},t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=i.bind(n.globalThisShim),e.clearTimeoutFn=o.bind(n.globalThisShim)):(e.setTimeoutFn=n.globalThisShim.setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=n.globalThisShim.clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){if("string"==typeof e)return function(e){let t=0,s=0;for(let n=0,i=e.length;n<i;n++)t=e.charCodeAt(n),t<128?s+=1:t<2048?s+=2:t<55296||t>=57344?s+=3:(n++,s+=4);return s}(e);return Math.ceil((e.byteLength||e.size)*r)},t.randomString=function(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)};const n=s(3262);const i=n.globalThisShim.setTimeout,o=n.globalThisShim.clearTimeout;const r=1.33},2390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const s=Object.create(null);t.PACKET_TYPES=s,s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(s).forEach((e=>{n[s[e]]=e}));t.ERROR_PACKET={type:"error",data:"parser error"}},3776:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePacket=void 0;const n=s(2390);t.decodePacket=(e,t)=>{if("string"!=typeof e)return{type:"message",data:i(e,t)};const s=e.charAt(0);if("b"===s){const s=Buffer.from(e.substring(1),"base64");return{type:"message",data:i(s,t)}}return n.PACKET_TYPES_REVERSE[s]?e.length>1?{type:n.PACKET_TYPES_REVERSE[s],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[s]}:n.ERROR_PACKET};const i=(e,t)=>"arraybuffer"===t?e instanceof ArrayBuffer?e:Buffer.isBuffer(e)?e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):e.buffer:Buffer.isBuffer(e)?e:Buffer.from(e)},1044:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacket=void 0,t.encodePacketToBinary=function(e,s){if(e.data instanceof ArrayBuffer||ArrayBuffer.isView(e.data))return s(i(e.data,!1));(0,t.encodePacket)(e,!0,(e=>{o||(o=new TextEncoder),s(o.encode(e))}))};const n=s(2390);t.encodePacket=({type:e,data:t},s,o)=>t instanceof ArrayBuffer||ArrayBuffer.isView(t)?o(s?t:"b"+i(t,!0).toString("base64")):o(n.PACKET_TYPES[e]+(t||""));const i=(e,t)=>Buffer.isBuffer(e)||e instanceof Uint8Array&&!t?e:e instanceof ArrayBuffer?Buffer.from(e):Buffer.from(e.buffer,e.byteOffset,e.byteLength);let o},5371:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0,t.createPacketEncoderStream=function(){return new TransformStream({transform(e,t){(0,n.encodePacketToBinary)(e,(s=>{const n=s.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(s)}))}})},t.createPacketDecoderStream=function(e,t){a||(a=new TextDecoder);const s=[];let n=0,r=-1,p=!1;return new TransformStream({transform(u,d){for(s.push(u);;){if(0===n){if(c(s)<1)break;const e=l(s,1);p=!(128&~e[0]),r=127&e[0],n=r<126?3:126===r?1:2}else if(1===n){if(c(s)<2)break;const e=l(s,2);r=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(c(s)<8)break;const e=l(s,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){d.enqueue(o.ERROR_PACKET);break}r=i*Math.pow(2,32)+t.getUint32(4),n=3}else{if(c(s)<r)break;const e=l(s,r);d.enqueue((0,i.decodePacket)(p?e:a.decode(e),t)),n=0}if(0===r||r>e){d.enqueue(o.ERROR_PACKET);break}}}})};const n=s(1044);Object.defineProperty(t,"encodePacket",{enumerable:!0,get:function(){return n.encodePacket}});const i=s(3776);Object.defineProperty(t,"decodePacket",{enumerable:!0,get:function(){return i.decodePacket}});const o=s(2390),r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const s=e.length,i=new Array(s);let o=0;e.forEach(((e,a)=>{(0,n.encodePacket)(e,!1,(e=>{i[a]=e,++o===s&&t(i.join(r))}))}))};let a;function c(e){return e.reduce(((e,t)=>e+t.length),0)}function l(e,t){if(e[0].length===t)return e.shift();const s=new Uint8Array(t);let n=0;for(let i=0;i<t;i++)s[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),s}t.decodePayload=(e,t)=>{const s=e.split(r),n=[];for(let e=0;e<s.length;e++){const o=(0,i.decodePacket)(s[e],t);if(n.push(o),"error"===o.type)break}return n},t.protocol=4},3830:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.protocol=t.Transport=t.Socket=t.uServer=t.parser=t.transports=t.Server=void 0,t.listen=function(e,t,s){"function"==typeof t&&(s=t,t={});const i=(0,n.createServer)((function(e,t){t.writeHead(501),t.end("Not Implemented")})),o=p(i,t);return o.httpServer=i,i.listen(e,s),o},t.attach=p;const n=s(3685),i=s(4771);Object.defineProperty(t,"Server",{enumerable:!0,get:function(){return i.Server}});const o=s(8565);t.transports=o.default;const r=s(5371);t.parser=r;var a=s(558);Object.defineProperty(t,"uServer",{enumerable:!0,get:function(){return a.uServer}});var c=s(3158);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return c.Socket}});var l=s(8498);function p(e,t){const s=new i.Server(t);return s.attach(e,t),s}Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return l.Transport}}),t.protocol=r.protocol},8955:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packets=t.protocol=void 0,t.encodePacket=c,t.encodeBase64Packet=p,t.decodePacket=u,t.decodeBase64Packet=d,t.encodePayload=function(e,t,s){"function"==typeof t&&(s=t,t=null);if(t&&i(e))return v(e,s);if(!e.length)return s("0:");h(e,(function(e,s){c(e,t,!1,(function(e){s(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return s(t.join(""))}))},t.decodePayload=function(e,t,s){if("string"!=typeof e)return x(e,t,s);"function"==typeof t&&(s=t,t=null);if(""===e)return s(r,0,1);for(var n,i,o,a="",c=0,l=e.length;c<l;c++){var p=e.charAt(c);if(":"===p){if(""===a||a!=(n=Number(a)))return s(r,0,1);if(a!=(i=e.slice(c+1,c+1+n)).length)return s(r,0,1);if(i.length){if(o=u(i,t,!1),r.type===o.type&&r.data===o.data)return s(r,0,1);if(!1===s(o,c+n,l))return}c+=n,a=""}else a+=p}if(""!==a)return s(r,0,1)},t.encodePayloadAsBinary=v,t.decodePayloadAsBinary=x;var n=s(8699);t.protocol=3;const i=e=>{for(const t of e)if(t.data instanceof ArrayBuffer||ArrayBuffer.isView(t.data))return!0;return!1};t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6};var o=Object.keys(t.packets),r={type:"error",data:"parser error"};const a=Buffer.concat([]);function c(e,s,i,o){if("function"==typeof s&&(o=s,s=null),"function"==typeof i&&(o=i,i=null),Buffer.isBuffer(e.data))return l(e,s,o);if(e.data&&(e.data.buffer||e.data)instanceof ArrayBuffer)return l({type:e.type,data:g(e.data)},s,o);var r=t.packets[e.type];return void 0!==e.data&&(r+=i?n.encode(String(e.data),{strict:!1}):String(e.data)),o(""+r)}function l(e,s,n){if(!s)return p(e,n);var i=e.data,o=Buffer.allocUnsafe(1);return o[0]=t.packets[e.type],n(Buffer.concat([o,i]))}function p(e,s){var n=Buffer.isBuffer(e.data)?e.data:g(e.data),i="b"+t.packets[e.type];return s(i+=n.toString("base64"))}function u(e,t,s){if(void 0===e)return r;var i;if("string"==typeof e)return"b"===(i=e.charAt(0))?d(e.slice(1),t):s&&!1===(e=function(e){try{e=n.decode(e,{strict:!1})}catch(e){return!1}return e}(e))?r:Number(i)==i&&o[i]?e.length>1?{type:o[i],data:e.slice(1)}:{type:o[i]}:r;if("arraybuffer"===t){var a=new Uint8Array(e);return i=a[0],{type:o[i],data:a.buffer.slice(1)}}return e instanceof ArrayBuffer&&(e=g(e)),i=e[0],{type:o[i],data:e.slice(1)}}function d(e,t){var s=o[e.charAt(0)],n=Buffer.from(e.slice(1),"base64");if("arraybuffer"===t){for(var i=new Uint8Array(n.length),r=0;r<i.length;r++)i[r]=n[r];n=i.buffer}return{type:s,data:n}}function h(e,t,s){const n=new Array(e.length);let i=0;for(let o=0;o<e.length;o++)t(e[o],((t,r)=>{n[o]=r,++i===e.length&&s(null,n)}))}function f(e){for(var t="",s=0,n=e.length;s<n;s++)t+=String.fromCharCode(e[s]);return t}function m(e){for(var t=Buffer.allocUnsafe(e.length),s=0,n=e.length;s<n;s++)t.writeUInt8(e.charCodeAt(s),s);return t}function g(e){var t=e.byteLength||e.length,s=e.byteOffset||0;return Buffer.from(e.buffer||e,s,t)}function v(e,t){if(!e.length)return t(a);h(e,b,(function(e,s){return t(Buffer.concat(s))}))}function b(e,t){c(e,!0,!0,(function(e){var s,n=""+e.length;if("string"==typeof e){(s=Buffer.allocUnsafe(n.length+2))[0]=0;for(var i=0;i<n.length;i++)s[i+1]=parseInt(n[i],10);return s[s.length-1]=255,t(null,Buffer.concat([s,m(e)]))}for((s=Buffer.allocUnsafe(n.length+2))[0]=1,i=0;i<n.length;i++)s[i+1]=parseInt(n[i],10);s[s.length-1]=255,t(null,Buffer.concat([s,e]))}))}function x(e,t,s){"function"==typeof t&&(s=t,t=null);for(var n,i=e,o=[];i.length>0;){var a="",c=0===i[0];for(n=1;255!==i[n];n++){if(a.length>310)return s(r,0,1);a+=""+i[n]}i=i.slice(a.length+1);var l=parseInt(a,10),p=i.slice(1,l+1);c&&(p=f(p)),o.push(p),i=i.slice(l+1)}var d=o.length;for(n=0;n<d;n++){s(u(o[n],t,!0),n,d)}}},8699:e=>{var t,s,n,i=String.fromCharCode;function o(e){for(var t,s,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(s=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&s)+65536):(n.push(t),i--):n.push(t);return n}function r(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function a(e,t){return i(e>>t&63|128)}function c(e,t){if(!(4294967168&e))return i(e);var s="";return 4294965248&e?4294901760&e?4292870144&e||(s=i(e>>18&7|240),s+=a(e,12),s+=a(e,6)):(r(e,t)||(e=65533),s=i(e>>12&15|224),s+=a(e,6)):s=i(e>>6&31|192),s+=i(63&e|128)}function l(){if(n>=s)throw Error("Invalid byte index");var e=255&t[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function p(e){var i,o;if(n>s)throw Error("Invalid byte index");if(n==s)return!1;if(i=255&t[n],n++,!(128&i))return i;if(192==(224&i)){if((o=(31&i)<<6|l())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&i)){if((o=(15&i)<<12|l()<<6|l())>=2048)return r(o,e)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&i)&&(o=(7&i)<<18|l()<<12|l()<<6|l())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var s=!1!==(t=t||{}).strict,n=o(e),i=n.length,r=-1,a="";++r<i;)a+=c(n[r],s);return a},decode:function(e,r){var a=!1!==(r=r||{}).strict;t=o(e),s=t.length,n=0;for(var c,l=[];!1!==(c=p(a));)l.push(c);return function(e){for(var t,s=e.length,n=-1,o="";++n<s;)(t=e[n])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(l)}}},4771:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=t.BaseServer=void 0;const n=s(3477),i=s(7310),o=s(9916),r=s(8565),a=s(2361),c=s(3158),l=s(9229),p=s(4360),u=s(5940),d=s(8936),h=s(5371),f=(0,l.default)("engine"),m=Symbol("responseHeaders");class g extends a.EventEmitter{constructor(e={}){super(),this.middlewares=[],this.clients={},this.clientsCount=0,this.opts=Object.assign({wsEngine:u.Server,pingTimeout:2e4,pingInterval:25e3,upgradeTimeout:1e4,maxHttpBufferSize:1e6,transports:["polling","websocket"],allowUpgrades:!0,httpCompression:{threshold:1024},cors:!1,allowEIO3:!1},e),e.cookie&&(this.opts.cookie=Object.assign({name:"io",path:"/",httpOnly:!1!==e.cookie.path,sameSite:"lax"},e.cookie)),this.opts.cors&&this.use(s(9920)(this.opts.cors)),e.perMessageDeflate&&(this.opts.perMessageDeflate=Object.assign({threshold:1024},e.perMessageDeflate)),this.init()}_computePath(e){let t=(e.path||"/engine.io").replace(/\/$/,"");return!1!==e.addTrailingSlash&&(t+="/"),t}upgrades(e){return this.opts.allowUpgrades&&r.default[e].upgradesTo||[]}verify(e,t,s){const n=e._query.transport;if(!~this.opts.transports.indexOf(n)||"webtransport"===n)return f('unknown transport "%s"',n),s(b.errors.UNKNOWN_TRANSPORT,{transport:n});if(function(e){if((e+="").length<1)return!1;if(!w[e.charCodeAt(0)])return f('invalid header, index 0, char "%s"',e.charCodeAt(0)),!0;if(e.length<2)return!1;if(!w[e.charCodeAt(1)])return f('invalid header, index 1, char "%s"',e.charCodeAt(1)),!0;if(e.length<3)return!1;if(!w[e.charCodeAt(2)])return f('invalid header, index 2, char "%s"',e.charCodeAt(2)),!0;if(e.length<4)return!1;if(!w[e.charCodeAt(3)])return f('invalid header, index 3, char "%s"',e.charCodeAt(3)),!0;for(let t=4;t<e.length;++t)if(!w[e.charCodeAt(t)])return f('invalid header, index "%i", char "%s"',t,e.charCodeAt(t)),!0;return!1}(e.headers.origin)){const t=e.headers.origin;return e.headers.origin=null,f("origin header invalid"),s(b.errors.BAD_REQUEST,{name:"INVALID_ORIGIN",origin:t})}const i=e._query.sid;if(!i)return"GET"!==e.method?s(b.errors.BAD_HANDSHAKE_METHOD,{method:e.method}):"websocket"!==n||t?this.opts.allowRequest?this.opts.allowRequest(e,((e,t)=>{if(!t)return s(b.errors.FORBIDDEN,{message:e});s()})):s():(f("invalid transport upgrade"),s(b.errors.BAD_REQUEST,{name:"TRANSPORT_HANDSHAKE_ERROR"}));{if(!this.clients.hasOwnProperty(i))return f('unknown sid "%s"',i),s(b.errors.UNKNOWN_SID,{sid:i});const e=this.clients[i].transport.name;if(!t&&e!==n)return f("bad request: unexpected transport without upgrade"),s(b.errors.BAD_REQUEST,{name:"TRANSPORT_MISMATCH",transport:n,previousTransport:e})}s()}use(e){this.middlewares.push(e)}_applyMiddlewares(e,t,s){if(0===this.middlewares.length)return f("no middleware to apply, skipping"),s();const n=i=>{f("applying middleware n°%d",i+1),this.middlewares[i](e,t,(e=>{if(e)return s(e);i+1<this.middlewares.length?n(i+1):s()}))};n(0)}close(){f("closing all open clients");for(let e in this.clients)this.clients.hasOwnProperty(e)&&this.clients[e].close(!0);return this.cleanup(),this}generateId(e){return o.generateId()}async handshake(e,t,s){const n="4"===t._query.EIO?4:3;if(3===n&&!this.opts.allowEIO3)return f("unsupported protocol version"),this.emit("connection_error",{req:t,code:b.errors.UNSUPPORTED_PROTOCOL_VERSION,message:b.errorMessages[b.errors.UNSUPPORTED_PROTOCOL_VERSION],context:{protocol:n}}),void s(b.errors.UNSUPPORTED_PROTOCOL_VERSION);let i;try{i=await this.generateId(t)}catch(e){return f("error while generating an id"),this.emit("connection_error",{req:t,code:b.errors.BAD_REQUEST,message:b.errorMessages[b.errors.BAD_REQUEST],context:{name:"ID_GENERATION_ERROR",error:e}}),void s(b.errors.BAD_REQUEST)}f('handshaking client "%s"',i);try{var o=this.createTransport(e,t);"polling"===e?(o.maxHttpBufferSize=this.opts.maxHttpBufferSize,o.httpCompression=this.opts.httpCompression):"websocket"===e&&(o.perMessageDeflate=this.opts.perMessageDeflate)}catch(n){return f('error handshaking to transport "%s"',e),this.emit("connection_error",{req:t,code:b.errors.BAD_REQUEST,message:b.errorMessages[b.errors.BAD_REQUEST],context:{name:"TRANSPORT_HANDSHAKE_ERROR",error:n}}),void s(b.errors.BAD_REQUEST)}const r=new c.Socket(i,this,o,t,n);return o.on("headers",((e,t)=>{!t._query.sid&&(this.opts.cookie&&(e["Set-Cookie"]=[(0,p.serialize)(this.opts.cookie.name,i,this.opts.cookie)]),this.emit("initial_headers",e,t)),this.emit("headers",e,t)})),o.onRequest(t),this.clients[i]=r,this.clientsCount++,r.once("close",(()=>{delete this.clients[i],this.clientsCount--})),this.emit("connection",r),o}async onWebTransportSession(e){const t=setTimeout((()=>{f("the client failed to establish a bidirectional stream in the given period"),e.close()}),this.opts.upgradeTimeout),s=e.incomingBidirectionalStreams.getReader(),n=await s.read();if(n.done)return void f("session is closed");const i=n.value,r=(0,h.createPacketDecoderStream)(this.opts.maxHttpBufferSize,"nodebuffer"),a=i.readable.pipeThrough(r).getReader(),{value:l,done:p}=await a.read();if(p)return void f("stream is closed");if(clearTimeout(t),"open"!==l.type)return f("invalid WebTransport handshake"),e.close();if(void 0===l.data){const t=new d.WebTransport(e,i,a),s=o.generateId();f('handshaking client "%s" (WebTransport)',s);const n=new c.Socket(s,this,t,null,4);return this.clients[s]=n,this.clientsCount++,n.once("close",(()=>{delete this.clients[s],this.clientsCount--})),void this.emit("connection",n)}const u=function(e){try{const t=JSON.parse(e);if("string"==typeof t.sid)return t.sid}catch(e){}}(l.data);if(!u)return f("invalid WebTransport handshake"),e.close();const m=this.clients[u];if(m)if(m.upgrading)f("transport has already been trying to upgrade"),e.close();else if(m.upgraded)f("transport had already been upgraded"),e.close();else{f("upgrading existing transport");const t=new d.WebTransport(e,i,a);m._maybeUpgrade(t)}else f("upgrade attempt for closed client"),e.close()}}t.BaseServer=g,g.errors={UNKNOWN_TRANSPORT:0,UNKNOWN_SID:1,BAD_HANDSHAKE_METHOD:2,BAD_REQUEST:3,FORBIDDEN:4,UNSUPPORTED_PROTOCOL_VERSION:5},g.errorMessages={0:"Transport unknown",1:"Session ID unknown",2:"Bad handshake method",3:"Bad request",4:"Forbidden",5:"Unsupported protocol version"};class v{constructor(e,t){this.req=e,this.socket=t,e[m]={}}setHeader(e,t){this.req[m][e]=t}getHeader(e){return this.req[m][e]}removeHeader(e){delete this.req[m][e]}write(){}writeHead(){}end(){this.socket.destroy()}}class b extends g{init(){~this.opts.transports.indexOf("websocket")&&(this.ws&&this.ws.close(),this.ws=new this.opts.wsEngine({noServer:!0,clientTracking:!1,perMessageDeflate:this.opts.perMessageDeflate,maxPayload:this.opts.maxHttpBufferSize}),"function"==typeof this.ws.on&&this.ws.on("headers",((e,t)=>{const s=t[m]||{};delete t[m];!t._query.sid&&this.emit("initial_headers",s,t),this.emit("headers",s,t),f("writing headers: %j",s),Object.keys(s).forEach((t=>{e.push(`${t}: ${s[t]}`)}))})))}cleanup(){this.ws&&(f("closing webSocketServer"),this.ws.close())}prepare(e){e._query||(e._query=~e.url.indexOf("?")?n.parse((0,i.parse)(e.url).query):{})}createTransport(e,t){return new r.default[e](t)}handleRequest(e,t){f('handling "%s" http request "%s"',e.method,e.url),this.prepare(e),e.res=t;const s=(s,n)=>{if(void 0!==s)return this.emit("connection_error",{req:e,code:s,message:b.errorMessages[s],context:n}),void x(t,s,n);if(e._query.sid)f("setting new request for existing client"),this.clients[e._query.sid].transport.onRequest(e);else{const s=(e,s)=>x(t,e,s);this.handshake(e._query.transport,e,s)}};this._applyMiddlewares(e,t,(t=>{t?s(b.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(e,!1,s)}))}handleUpgrade(e,t,s){this.prepare(e);const n=new v(e,t),i=(i,o)=>{if(void 0!==i)return this.emit("connection_error",{req:e,code:i,message:b.errorMessages[i],context:o}),void y(t,i,o);const r=Buffer.from(s);s=null,n.writeHead(),this.ws.handleUpgrade(e,t,r,(s=>{this.onWebSocket(e,t,s)}))};this._applyMiddlewares(e,n,(t=>{t?i(b.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(e,!0,i)}))}onWebSocket(e,t,s){if(s.on("error",i),void 0!==r.default[e._query.transport]&&!r.default[e._query.transport].prototype.handlesUpgrades)return f("transport doesnt handle upgraded requests"),void s.close();const n=e._query.sid;if(e.websocket=s,n){const t=this.clients[n];if(t)if(t.upgrading)f("transport has already been trying to upgrade"),s.close();else if(t.upgraded)f("transport had already been upgraded"),s.close();else{f("upgrading existing transport"),s.removeListener("error",i);const n=this.createTransport(e._query.transport,e);n.perMessageDeflate=this.opts.perMessageDeflate,t._maybeUpgrade(n)}else f("upgrade attempt for closed client"),s.close()}else{const s=(e,s)=>y(t,e,s);this.handshake(e._query.transport,e,s)}function i(){f("websocket error before upgrade")}}attach(e,t={}){const s=this._computePath(t),n=t.destroyUpgradeTimeout||1e3;function i(e){return s===e.url.slice(0,s.length)}const o=e.listeners("request").slice(0);e.removeAllListeners("request"),e.on("close",this.close.bind(this)),e.on("listening",this.init.bind(this)),e.on("request",((t,n)=>{if(i(t))f('intercepting request for path "%s"',s),this.handleRequest(t,n);else{let s=0;const i=o.length;for(;s<i;s++)o[s].call(e,t,n)}})),~this.opts.transports.indexOf("websocket")&&e.on("upgrade",((e,s,o)=>{i(e)?this.handleUpgrade(e,s,o):!1!==t.destroyUpgrade&&setTimeout((function(){if(s.writable&&s.bytesWritten<=0)return s.on("error",(e=>{f("error while destroying upgrade: %s",e.message)})),s.end()}),n)}))}}function x(e,t,s){const n=t===b.errors.FORBIDDEN?403:400,i=s&&s.message?s.message:b.errorMessages[t];e.writeHead(n,{"Content-Type":"application/json"}),e.end(JSON.stringify({code:t,message:i}))}function y(e,t,s={}){if(e.on("error",(()=>{f("ignoring error from closed connection")})),e.writable){const n=s.message||b.errorMessages[t],i=Buffer.byteLength(n);e.write("HTTP/1.1 400 Bad Request\r\nConnection: close\r\nContent-type: text/html\r\nContent-Length: "+i+"\r\n\r\n"+n)}e.destroy()}t.Server=b;const w=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]},3158:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const n=s(2361),i=s(9229),o=s(9512),r=(0,i.default)("engine:socket");class a extends n.EventEmitter{get readyState(){return this._readyState}set readyState(e){r("readyState updated from %s to %s",this._readyState,e),this._readyState=e}constructor(e,t,s,n,i){super(),this._readyState="opening",this.upgrading=!1,this.upgraded=!1,this.writeBuffer=[],this.packetsFn=[],this.sentCallbackFn=[],this.cleanupFn=[],this.id=e,this.server=t,this.request=n,this.protocol=i,n&&(n.websocket&&n.websocket._socket?this.remoteAddress=n.websocket._socket.remoteAddress:this.remoteAddress=n.connection.remoteAddress),this.pingTimeoutTimer=null,this.pingIntervalTimer=null,this.setTransport(s),this.onOpen()}onOpen(){this.readyState="open",this.transport.sid=this.id,this.sendPacket("open",JSON.stringify({sid:this.id,upgrades:this.getAvailableUpgrades(),pingInterval:this.server.opts.pingInterval,pingTimeout:this.server.opts.pingTimeout,maxPayload:this.server.opts.maxHttpBufferSize})),this.server.opts.initialPacket&&this.sendPacket("message",this.server.opts.initialPacket),this.emit("open"),3===this.protocol?this.resetPingTimeout():this.schedulePing()}onPacket(e){if("open"!==this.readyState)return r("packet received with closed socket");switch(r(`received packet ${e.type}`),this.emit("packet",e),e.type){case"ping":if(3!==this.transport.protocol)return void this.onError(new Error("invalid heartbeat direction"));r("got ping"),this.pingTimeoutTimer.refresh(),this.sendPacket("pong"),this.emit("heartbeat");break;case"pong":if(3===this.transport.protocol)return void this.onError(new Error("invalid heartbeat direction"));r("got pong"),(0,o.clearTimeout)(this.pingTimeoutTimer),this.pingIntervalTimer.refresh(),this.emit("heartbeat");break;case"error":this.onClose("parse error");break;case"message":this.emit("data",e.data),this.emit("message",e.data)}}onError(e){r("transport error"),this.onClose("transport error",e)}schedulePing(){this.pingIntervalTimer=(0,o.setTimeout)((()=>{r("writing ping packet - expecting pong within %sms",this.server.opts.pingTimeout),this.sendPacket("ping"),this.resetPingTimeout()}),this.server.opts.pingInterval)}resetPingTimeout(){(0,o.clearTimeout)(this.pingTimeoutTimer),this.pingTimeoutTimer=(0,o.setTimeout)((()=>{"closed"!==this.readyState&&this.onClose("ping timeout")}),3===this.protocol?this.server.opts.pingInterval+this.server.opts.pingTimeout:this.server.opts.pingTimeout)}setTransport(e){const t=this.onError.bind(this),s=()=>this.flush(),n=this.onPacket.bind(this),i=this.onDrain.bind(this),o=this.onClose.bind(this,"transport close");this.transport=e,this.transport.once("error",t),this.transport.on("ready",s),this.transport.on("packet",n),this.transport.on("drain",i),this.transport.once("close",o),this.cleanupFn.push((function(){e.removeListener("error",t),e.removeListener("ready",s),e.removeListener("packet",n),e.removeListener("drain",i),e.removeListener("close",o)}))}onDrain(){if(this.sentCallbackFn.length>0){r("executing batch send callback");const e=this.sentCallbackFn.shift();if(e)for(let t=0;t<e.length;t++)e[t](this.transport)}}_maybeUpgrade(e){r('might upgrade socket transport from "%s" to "%s"',this.transport.name,e.name),this.upgrading=!0;const t=(0,o.setTimeout)((()=>{r("client did not complete upgrade - closing transport"),a(),"open"===e.readyState&&e.close()}),this.server.opts.upgradeTimeout);let s;const n=t=>{"ping"===t.type&&"probe"===t.data?(r("got probe ping packet, sending pong"),e.send([{type:"pong",data:"probe"}]),this.emit("upgrading",e),clearInterval(s),s=setInterval(i,100)):"upgrade"===t.type&&"closed"!==this.readyState?(r("got upgrade packet - upgrading"),a(),this.transport.discard(),this.upgraded=!0,this.clearTransport(),this.setTransport(e),this.emit("upgrade",e),this.flush(),"closing"===this.readyState&&e.close((()=>{this.onClose("forced close")}))):(a(),e.close())},i=()=>{"polling"===this.transport.name&&this.transport.writable&&(r("writing a noop packet to polling for fast upgrade"),this.transport.send([{type:"noop"}]))},a=()=>{this.upgrading=!1,clearInterval(s),(0,o.clearTimeout)(t),e.removeListener("packet",n),e.removeListener("close",l),e.removeListener("error",c),this.removeListener("close",p)},c=t=>{r("client did not complete upgrade - %s",t),a(),e.close(),e=null},l=()=>{c("transport closed")},p=()=>{c("socket closed")};e.on("packet",n),e.once("close",l),e.once("error",c),this.once("close",p)}clearTransport(){let e;const t=this.cleanupFn.length;for(let s=0;s<t;s++)e=this.cleanupFn.shift(),e();this.transport.on("error",(function(){r("error triggered by discarded transport")})),this.transport.close(),(0,o.clearTimeout)(this.pingTimeoutTimer)}onClose(e,t){"closed"!==this.readyState&&(this.readyState="closed",(0,o.clearTimeout)(this.pingIntervalTimer),(0,o.clearTimeout)(this.pingTimeoutTimer),process.nextTick((()=>{this.writeBuffer=[]})),this.packetsFn=[],this.sentCallbackFn=[],this.clearTransport(),this.emit("close",e,t))}send(e,t,s){return this.sendPacket("message",e,t,s),this}write(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s={},n){if("function"==typeof s&&(n=s,s={}),"closing"!==this.readyState&&"closed"!==this.readyState){r('sending packet "%s" (%s)',e,t),s.compress=!1!==s.compress;const i={type:e,options:s};t&&(i.data=t),this.emit("packetCreate",i),this.writeBuffer.push(i),"function"==typeof n&&this.packetsFn.push(n),this.flush()}}flush(){if("closed"!==this.readyState&&this.transport.writable&&this.writeBuffer.length){r("flushing buffer to transport"),this.emit("flush",this.writeBuffer),this.server.emit("flush",this,this.writeBuffer);const e=this.writeBuffer;this.writeBuffer=[],this.packetsFn.length?(this.sentCallbackFn.push(this.packetsFn),this.packetsFn=[]):this.sentCallbackFn.push(null),this.transport.send(e),this.emit("drain"),this.server.emit("drain",this)}}getAvailableUpgrades(){const e=[],t=this.server.upgrades(this.transport.name);for(let s=0;s<t.length;++s){const n=t[s];-1!==this.server.opts.transports.indexOf(n)&&e.push(n)}return e}close(e){if(e&&("open"===this.readyState||"closing"===this.readyState))return this.closeTransport(e);if("open"===this.readyState){if(this.readyState="closing",this.writeBuffer.length)return r("there are %d remaining packets in the buffer, waiting for the 'drain' event",this.writeBuffer.length),void this.once("drain",(()=>{r("all packets have been sent, closing the transport"),this.closeTransport(e)}));r("the buffer is empty, closing the transport right away"),this.closeTransport(e)}}closeTransport(e){r("closing the transport (discard? %s)",!!e),e&&this.transport.discard(),this.transport.close(this.onClose.bind(this,"forced close"))}}t.Socket=a},8498:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=void 0;const n=s(2361),i=s(5371),o=s(8955),r=(0,s(9229).default)("engine:transport");function a(){}class c extends n.EventEmitter{get readyState(){return this._readyState}set readyState(e){r("readyState updated from %s to %s (%s)",this._readyState,e,this.name),this._readyState=e}constructor(e){super(),this.writable=!1,this._readyState="open",this.discarded=!1,this.protocol="4"===e._query.EIO?4:3,this.parser=4===this.protocol?i:o,this.supportsBinary=!(e._query&&e._query.b64)}discard(){this.discarded=!0}onRequest(e){}close(e){"closed"!==this.readyState&&"closing"!==this.readyState&&(this.readyState="closing",this.doClose(e||a))}onError(e,t){if(this.listeners("error").length){const s=new Error(e);s.type="TransportError",s.description=t,this.emit("error",s)}else r("ignored transport error %s (%s)",e,t)}onPacket(e){this.emit("packet",e)}onData(e){this.onPacket(this.parser.decodePacket(e))}onClose(){this.readyState="closed",this.emit("close")}}t.Transport=c},3973:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=s(3555),i=s(7232);t.default={polling:n.Polling,websocket:i.WebSocket}},3555:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Polling=void 0;const n=s(8498),i=s(9796),o=s(181),r=(0,s(9229).default)("engine:polling"),a={gzip:i.createGzip,deflate:i.createDeflate};class c extends n.Transport{constructor(e){super(e),this.closeTimeout=3e4}get name(){return"polling"}onRequest(e){const t=e.res;e.res=null,"get"===e.getMethod()?this.onPollRequest(e,t):"post"===e.getMethod()?this.onDataRequest(e,t):(t.writeStatus("500 Internal Server Error"),t.end())}onPollRequest(e,t){if(this.req)return r("request overlap"),this.onError("overlap from client"),t.writeStatus("500 Internal Server Error"),void t.end();r("setting request"),this.req=e,this.res=t;e.cleanup=()=>{this.req=this.res=null},t.onAborted((()=>{this.writable=!1,this.onError("poll connection closed prematurely")})),this.writable=!0,this.emit("ready"),this.writable&&this.shouldClose&&(r("triggering empty send to append close packet"),this.send([{type:"noop"}]))}onDataRequest(e,t){if(this.dataReq)return this.onError("data request overlap from client"),t.writeStatus("500 Internal Server Error"),void t.end();const s=Number(e.headers["content-length"]);if(!s)return this.onError("content-length header required"),void t.writeStatus("411 Length Required").end();if(s>this.maxHttpBufferSize)return this.onError("payload too large"),void t.writeStatus("413 Payload Too Large").end();if("application/octet-stream"===e.headers["content-type"]&&4===this.protocol)return this.onError("invalid content");let n;this.dataReq=e,this.dataRes=t;let i=0;const o={"Content-Type":"text/html"};this.headers(e,o);for(let e in o)t.writeHeader(e,String(o[e]));const r=e=>{this.onData(e.toString()),this.onDataRequestCleanup(),t.cork((()=>{t.end("ok")}))};t.onAborted((()=>{this.onDataRequestCleanup(),this.onError("data request connection closed prematurely")})),t.onData(((e,o)=>{const a=i+e.byteLength;if(a>s)return this.onError("content-length mismatch"),void t.close();if(!n){if(o)return void r(Buffer.from(e));n=Buffer.allocUnsafe(s)}if(Buffer.from(e).copy(n,i),o)return a!=s?(this.onError("content-length mismatch"),t.writeStatus("400 Content-Length Mismatch").end(),void this.onDataRequestCleanup()):void r(n);i=a}))}onDataRequestCleanup(){this.dataReq=this.dataRes=null}onData(e){r('received "%s"',e);const t=e=>{if("close"===e.type)return r("got xhr close packet"),this.onClose(),!1;this.onPacket(e)};3===this.protocol?this.parser.decodePayload(e,t):this.parser.decodePayload(e).forEach(t)}onClose(){this.writable&&this.send([{type:"noop"}]),super.onClose()}send(e){this.writable=!1,this.shouldClose&&(r("appending close packet to payload"),e.push({type:"close"}),this.shouldClose(),this.shouldClose=null);const t=t=>{const s=e.some((e=>e.options&&e.options.compress));this.write(t,{compress:s})};3===this.protocol?this.parser.encodePayload(e,this.supportsBinary,t):this.parser.encodePayload(e,t)}write(e,t){r('writing "%s"',e),this.doWrite(e,t,(()=>{this.req.cleanup(),this.emit("drain")}))}doWrite(e,t,s){const n="string"==typeof e,i={"Content-Type":n?"text/plain; charset=UTF-8":"application/octet-stream"},r=e=>{this.headers(this.req,i),this.res.cork((()=>{Object.keys(i).forEach((e=>{this.res.writeHeader(e,String(i[e]))})),this.res.end(e)})),s()};if(!this.httpCompression||!t.compress)return void r(e);if((n?Buffer.byteLength(e):e.length)<this.httpCompression.threshold)return void r(e);const a=o(this.req).encodings(["gzip","deflate"]);a?this.compress(e,a,((e,t)=>{if(e)return this.res.writeStatus("500 Internal Server Error"),this.res.end(),void s(e);i["Content-Encoding"]=a,r(t)})):r(e)}compress(e,t,s){r("compressing");const n=[];let i=0;a[t](this.httpCompression).on("error",s).on("data",(function(e){n.push(e),i+=e.length})).on("end",(function(){s(null,Buffer.concat(n,i))})).end(e)}doClose(e){let t;r("closing");const s=()=>{clearTimeout(t),e(),this.onClose()};this.writable?(r("transport writable - closing right away"),this.send([{type:"close"}]),s()):this.discarded?(r("transport discarded - closing right away"),s()):(r("transport not writable - buffering orderly close"),this.shouldClose=s,t=setTimeout(s,this.closeTimeout))}headers(e,t){t=t||{};const s=e.headers["user-agent"];return s&&(~s.indexOf(";MSIE")||~s.indexOf("Trident/"))&&(t["X-XSS-Protection"]="0"),t["cache-control"]="no-store",this.emit("headers",t,e),t}}t.Polling=c},7232:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const n=s(8498),i=(0,s(9229).default)("engine:ws");class o extends n.Transport{constructor(e){super(e),this.writable=!1,this.perMessageDeflate=null}get name(){return"websocket"}get handlesUpgrades(){return!0}send(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],n=t+1===e.length,o=e=>{const t="string"!=typeof e,s=this.perMessageDeflate&&Buffer.byteLength(e)>this.perMessageDeflate.threshold;i('writing "%s"',e),this.socket.send(e,t,s),n&&(this.emit("drain"),this.writable=!0,this.emit("ready"))};s.options&&"string"==typeof s.options.wsPreEncoded?o(s.options.wsPreEncoded):this.parser.encodePacket(s,this.supportsBinary,o)}}doClose(e){i("closing"),e&&e(),this.socket.end()}}t.WebSocket=o},8565:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=s(7092),i=s(8348),o=s(8230),r=s(8936);function a(e){return"string"==typeof e._query.j?new i.JSONP(e):new n.Polling(e)}t.default={polling:a,websocket:o.WebSocket,webtransport:r.WebTransport},a.upgradesTo=["websocket","webtransport"]},8348:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONP=void 0;const n=s(7092),i=s(3477),o=/\\\\n/g,r=/(\\)?\\n/g;class a extends n.Polling{constructor(e){super(e),this.head="___eio["+(e._query.j||"").replace(/[^0-9]/g,"")+"](",this.foot=");"}onData(e){"string"==typeof(e=i.parse(e).d)&&(e=e.replace(r,(function(e,t){return t?e:"\n"})),super.onData(e.replace(o,"\\n")))}doWrite(e,t,s){const n=JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");e=this.head+n+this.foot,super.doWrite(e,t,s)}}t.JSONP=a},7092:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Polling=void 0;const n=s(8498),i=s(9796),o=s(181),r=(0,s(9229).default)("engine:polling"),a={gzip:i.createGzip,deflate:i.createDeflate};class c extends n.Transport{constructor(e){super(e),this.closeTimeout=3e4}get name(){return"polling"}onRequest(e){const t=e.res;e.res=null,"GET"===e.method?this.onPollRequest(e,t):"POST"===e.method?this.onDataRequest(e,t):(t.writeHead(500),t.end())}onPollRequest(e,t){if(this.req)return r("request overlap"),this.onError("overlap from client"),t.writeHead(400),void t.end();r("setting request"),this.req=e,this.res=t;const s=()=>{this.onError("poll connection closed prematurely")};e.cleanup=()=>{e.removeListener("close",s),this.req=this.res=null},e.on("close",s),this.writable=!0,this.emit("ready"),this.writable&&this.shouldClose&&(r("triggering empty send to append close packet"),this.send([{type:"noop"}]))}onDataRequest(e,t){if(this.dataReq)return this.onError("data request overlap from client"),t.writeHead(400),void t.end();const s="application/octet-stream"===e.headers["content-type"];if(s&&4===this.protocol)return this.onError("invalid content");this.dataReq=e,this.dataRes=t;let n=s?Buffer.concat([]):"";const i=()=>{e.removeListener("data",r),e.removeListener("end",a),e.removeListener("close",o),this.dataReq=this.dataRes=n=null},o=()=>{i(),this.onError("data request connection closed prematurely")},r=e=>{let o;s?(n=Buffer.concat([n,e]),o=n.length):(n+=e,o=Buffer.byteLength(n)),o>this.maxHttpBufferSize&&(t.writeHead(413).end(),i())},a=()=>{this.onData(n);t.writeHead(200,this.headers(e,{"Content-Type":"text/html","Content-Length":"2"})),t.end("ok"),i()};e.on("close",o),s||e.setEncoding("utf8"),e.on("data",r),e.on("end",a)}onData(e){r('received "%s"',e);const t=e=>{if("close"===e.type)return r("got xhr close packet"),this.onClose(),!1;this.onPacket(e)};3===this.protocol?this.parser.decodePayload(e,t):this.parser.decodePayload(e).forEach(t)}onClose(){this.writable&&this.send([{type:"noop"}]),super.onClose()}send(e){this.writable=!1,this.shouldClose&&(r("appending close packet to payload"),e.push({type:"close"}),this.shouldClose(),this.shouldClose=null);const t=t=>{const s=e.some((e=>e.options&&e.options.compress));this.write(t,{compress:s})};3===this.protocol?this.parser.encodePayload(e,this.supportsBinary,t):this.parser.encodePayload(e,t)}write(e,t){r('writing "%s"',e),this.doWrite(e,t,(()=>{this.req.cleanup(),this.emit("drain")}))}doWrite(e,t,s){const n="string"==typeof e,i={"Content-Type":n?"text/plain; charset=UTF-8":"application/octet-stream"},r=e=>{i["Content-Length"]="string"==typeof e?Buffer.byteLength(e):e.length,this.res.writeHead(200,this.headers(this.req,i)),this.res.end(e),s()};if(!this.httpCompression||!t.compress)return void r(e);if((n?Buffer.byteLength(e):e.length)<this.httpCompression.threshold)return void r(e);const a=o(this.req).encodings(["gzip","deflate"]);a?this.compress(e,a,((e,t)=>{if(e)return this.res.writeHead(500),this.res.end(),void s(e);i["Content-Encoding"]=a,r(t)})):r(e)}compress(e,t,s){r("compressing");const n=[];let i=0;a[t](this.httpCompression).on("error",s).on("data",(function(e){n.push(e),i+=e.length})).on("end",(function(){s(null,Buffer.concat(n,i))})).end(e)}doClose(e){let t;r("closing"),this.dataReq&&(r("aborting ongoing data request"),this.dataReq.destroy());const s=()=>{clearTimeout(t),e(),this.onClose()};this.writable?(r("transport writable - closing right away"),this.send([{type:"close"}]),s()):this.discarded?(r("transport discarded - closing right away"),s()):(r("transport not writable - buffering orderly close"),this.shouldClose=s,t=setTimeout(s,this.closeTimeout))}headers(e,t={}){const s=e.headers["user-agent"];return s&&(~s.indexOf(";MSIE")||~s.indexOf("Trident/"))&&(t["X-XSS-Protection"]="0"),t["cache-control"]="no-store",this.emit("headers",t,e),t}}t.Polling=c},8230:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const n=s(8498),i=(0,s(9229).default)("engine:ws");class o extends n.Transport{constructor(e){super(e),this._doSend=e=>{this.socket.send(e,this._onSent)},this._doSendLast=e=>{this.socket.send(e,this._onSentLast)},this._onSent=e=>{e&&this.onError("write error",e.stack)},this._onSentLast=e=>{e?this.onError("write error",e.stack):(this.emit("drain"),this.writable=!0,this.emit("ready"))},this.socket=e.websocket,this.socket.on("message",((e,t)=>{const s=t?e:e.toString();i('received "%s"',s),super.onData(s)})),this.socket.once("close",this.onClose.bind(this)),this.socket.on("error",this.onError.bind(this)),this.writable=!0,this.perMessageDeflate=null}get name(){return"websocket"}get handlesUpgrades(){return!0}send(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],n=t+1===e.length;this._canSendPreEncodedFrame(s)?this.socket._sender.sendFrame(s.options.wsPreEncodedFrame,n?this._onSentLast:this._onSent):this.parser.encodePacket(s,this.supportsBinary,n?this._doSendLast:this._doSend)}}_canSendPreEncodedFrame(e){var t,s,n;return!this.perMessageDeflate&&"function"==typeof(null===(s=null===(t=this.socket)||void 0===t?void 0:t._sender)||void 0===s?void 0:s.sendFrame)&&void 0!==(null===(n=e.options)||void 0===n?void 0:n.wsPreEncodedFrame)}doClose(e){i("closing"),this.socket.close(),e&&e()}}t.WebSocket=o},8936:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebTransport=void 0;const n=s(8498),i=s(9229),o=s(5371),r=(0,i.default)("engine:webtransport");class a extends n.Transport{constructor(e,t,s){super({_query:{EIO:"4"}}),this.session=e;const n=(0,o.createPacketEncoderStream)();n.readable.pipeTo(t.writable).catch((()=>{r("the stream was closed")})),this.writer=n.writable.getWriter(),(async()=>{try{for(;;){const{value:e,done:t}=await s.read();if(t){r("session is closed");break}r("received chunk: %o",e),this.onPacket(e)}}catch(e){r("error while reading: %s",e.message)}})(),e.closed.then((()=>this.onClose())),this.writable=!0}get name(){return"webtransport"}async send(e){this.writable=!1;try{for(let t=0;t<e.length;t++){const s=e[t];await this.writer.write(s)}}catch(e){r("error while writing: %s",e.message)}this.emit("drain"),this.writable=!0,this.emit("ready")}doClose(e){r("closing WebTransport session"),this.session.close(),e&&e()}}t.WebTransport=a},558:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uServer=void 0;const n=s(9229),i=s(4771),o=s(3973),r=(0,n.default)("engine:uws");class a extends i.BaseServer{init(){}cleanup(){}prepare(e,t){e.method=e.getMethod().toUpperCase(),e.url=e.getUrl();const s=new URLSearchParams(e.getQuery());e._query=Object.fromEntries(s.entries()),e.headers={},e.forEach(((t,s)=>{e.headers[t]=s})),e.connection={remoteAddress:Buffer.from(t.getRemoteAddressAsText()).toString()},t.onAborted((()=>{r("response has been aborted")}))}createTransport(e,t){return new o.default[e](t)}attach(e,t={}){const s=this._computePath(t);e.any(s,this.handleRequest.bind(this)).ws(s,{compression:t.compression,idleTimeout:t.idleTimeout,maxBackpressure:t.maxBackpressure,maxPayloadLength:this.opts.maxHttpBufferSize,upgrade:this.handleUpgrade.bind(this),open:e=>{const t=e.getUserData().transport;t.socket=e,t.writable=!0,t.emit("ready")},message:(e,t,s)=>{e.getUserData().transport.onData(s?t:Buffer.from(t).toString())},close:(e,t,s)=>{e.getUserData().transport.onClose(t,s)}})}_applyMiddlewares(e,t,s){if(0===this.middlewares.length)return s();e.res=new c(t),super._applyMiddlewares(e,e.res,(t=>{e.res.writeHead(),s(t)}))}handleRequest(e,t){r('handling "%s" http request "%s"',t.getMethod(),t.getUrl()),this.prepare(t,e),t.res=e;const s=(s,n)=>{if(void 0!==s)return this.emit("connection_error",{req:t,code:s,message:i.Server.errorMessages[s],context:n}),void this.abortRequest(t.res,s,n);if(t._query.sid)r("setting new request for existing client"),this.clients[t._query.sid].transport.onRequest(t);else{const s=(t,s)=>this.abortRequest(e,t,s);this.handshake(t._query.transport,t,s)}};this._applyMiddlewares(t,e,(e=>{e?s(i.Server.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(t,!1,s)}))}handleUpgrade(e,t,s){r("on upgrade"),this.prepare(t,e),t.res=e;const n=async(n,o)=>{if(void 0!==n)return this.emit("connection_error",{req:t,code:n,message:i.Server.errorMessages[n],context:o}),void this.abortRequest(e,n,o);const a=t._query.sid;let c;if(a){const s=this.clients[a];if(!s)return r("upgrade attempt for closed client"),e.close();if(s.upgrading)return r("transport has already been trying to upgrade"),e.close();if(s.upgraded)return r("transport had already been upgraded"),e.close();r("upgrading existing transport"),c=this.createTransport(t._query.transport,t),s._maybeUpgrade(c)}else if(c=await this.handshake(t._query.transport,t,((t,s)=>this.abortRequest(e,t,s))),!c)return;t.res.writeStatus("101 Switching Protocols"),e.upgrade({transport:c},t.getHeader("sec-websocket-key"),t.getHeader("sec-websocket-protocol"),t.getHeader("sec-websocket-extensions"),s)};this._applyMiddlewares(t,e,(e=>{e?n(i.Server.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(t,!0,n)}))}abortRequest(e,t,s){const n=t===i.Server.errors.FORBIDDEN?"403 Forbidden":"400 Bad Request",o=s&&s.message?s.message:i.Server.errorMessages[t];e.writeStatus(n),e.writeHeader("Content-Type","application/json"),e.end(JSON.stringify({code:t,message:o}))}}t.uServer=a;class c{constructor(e){this.res=e,this.statusWritten=!1,this.headers=[],this.isAborted=!1}set statusCode(e){e&&this.writeStatus(200===e?"200 OK":"204 No Content")}writeHead(e){this.statusCode=e}setHeader(e,t){Array.isArray(t)?t.forEach((t=>{this.writeHeader(e,t)})):this.writeHeader(e,t)}removeHeader(){}getHeader(){}writeStatus(e){if(!this.isAborted)return this.res.writeStatus(e),this.statusWritten=!0,this.writeBufferedHeaders(),this}writeHeader(e,t){this.isAborted||"Content-Length"!==e&&(this.statusWritten?this.res.writeHeader(e,t):this.headers.push([e,t]))}writeBufferedHeaders(){this.headers.forEach((([e,t])=>{this.res.writeHeader(e,t)}))}end(e){this.isAborted||this.res.cork((()=>{this.statusWritten||this.writeBufferedHeaders(),this.res.end(e)}))}onData(e){this.isAborted||this.res.onData(e)}onAborted(e){this.isAborted||this.res.onAborted((()=>{this.isAborted=!0,e()}))}cork(e){this.isAborted||this.res.cork(e)}}},5664:e=>{e.exports={nanoid:(e=21)=>{let t="",s=0|e;for(;s--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(s=t)=>{let n="",i=0|s;for(;i--;)n+=e[Math.random()*e.length|0];return n}}},7903:(e,t)=>{"use strict";function s(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=s,s.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),s=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+s:e-s}return 0|Math.min(e,this.max)},s.prototype.reset=function(){this.attempts=0},s.prototype.setMin=function(e){this.ms=e},s.prototype.setMax=function(e){this.max=e},s.prototype.setJitter=function(e){this.jitter=e}},8172:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebTransport=t.WebSocket=t.NodeWebSocket=t.XHR=t.NodeXHR=t.Fetch=t.Socket=t.Manager=t.protocol=void 0,t.io=l,t.connect=l,t.default=l;const i=s(1957),o=s(5457);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const r=s(2176);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return r.Socket}});const a=(0,n(s(9229)).default)("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const s=(0,i.url)(e,t.path||"/socket.io"),n=s.source,r=s.id,l=s.path,p=c[r]&&l in c[r].nsps;let u;return t.forceNew||t["force new connection"]||!1===t.multiplex||p?(a("ignoring socket cache for %s",n),u=new o.Manager(n,t)):(c[r]||(a("new io instance for %s",n),c[r]=new o.Manager(n,t)),u=c[r]),s.query&&!t.query&&(t.query=s.queryKey),u.socket(s.path,t)}Object.assign(l,{Manager:o.Manager,Socket:r.Socket,io:l,connect:l});var p=s(4815);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return p.protocol}});var u=s(3530);Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return u.Fetch}}),Object.defineProperty(t,"NodeXHR",{enumerable:!0,get:function(){return u.NodeXHR}}),Object.defineProperty(t,"XHR",{enumerable:!0,get:function(){return u.XHR}}),Object.defineProperty(t,"NodeWebSocket",{enumerable:!0,get:function(){return u.NodeWebSocket}}),Object.defineProperty(t,"WebSocket",{enumerable:!0,get:function(){return u.WebSocket}}),Object.defineProperty(t,"WebTransport",{enumerable:!0,get:function(){return u.WebTransport}}),e.exports=l},5457:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var i=Object.getOwnPropertyDescriptor(t,s);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,i)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&n(t,e,s);return i(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const a=s(3530),c=s(2176),l=o(s(4815)),p=s(5557),u=s(7903),d=s(4529),h=(0,r(s(9229)).default)("socket.io-client:manager");class f extends d.Emitter{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,(0,a.installTimerFunctions)(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=t.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new u.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=(0,p.on)(t,"open",(function(){s.onopen(),e&&e()})),i=t=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=(0,p.on)(t,"error",i);if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e);const s=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push((0,p.on)(e,"ping",this.onping.bind(this)),(0,p.on)(e,"data",this.ondata.bind(this)),(0,p.on)(e,"error",this.onerror.bind(this)),(0,p.on)(e,"close",this.onclose.bind(this)),(0,p.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){(0,a.nextTick)((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){h("error",e),this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new c.Socket(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return void h("socket %s is still active, skipping close",e)}this._close()}_packet(e){h("writing packet %j",e);const t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){h("cleanup"),this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;h("closed due to %s",e),this.cleanup(),null===(s=this.engine)||void 0===s||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();h("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const s=this.setTimeoutFn((()=>{e.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(h("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(h("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=f},5557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=function(e,t,s){return e.on(t,s),function(){e.off(t,s)}}},2176:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=s(4815),o=s(5557),r=s(4529),a=(0,n(s(9229)).default)("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends r.Emitter{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[(0,o.on)(e,"open",this.onopen.bind(this)),(0,o.on)(e,"packet",this.onpacket.bind(this)),(0,o.on)(e,"error",this.onerror.bind(this)),(0,o.on)(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,n,o;if(c.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const r={type:i.PacketType.EVENT,data:t,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++;a("emitting packet with ack id %d",e);const s=t.pop();this._registerAckCallback(e,s),r.id=e}const l=null===(n=null===(s=this.io.engine)||void 0===s?void 0:s.transport)||void 0===n?void 0:n.writable,p=this.connected&&!(null===(o=this.io.engine)||void 0===o?void 0:o._hasPingExpired());return this.flags.volatile&&!l?a("discard packet as the transport is not currently writable"):p?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r),this.flags={},this}_registerAckCallback(e,t){var s;const n=null!==(s=this.flags.timeout)&&void 0!==s?s:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const i=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&(a("removing packet with ack id %d from the buffer",e),this.sendBuffer.splice(t,1));a("event with ack id %d has timed out after %d ms",e,n),t.call(this,new Error("operation has timed out"))}),n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise(((s,n)=>{const i=(e,t)=>e?n(e):s(t);i.withError=!0,t.push(i),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(s!==this._queue[0])return;return null!==e?s.tryCount>this._opts.retries&&(a("packet [%d] is discarded after %d tries",s.id,s.tryCount),this._queue.shift(),t&&t(e)):(a("packet [%d] was successfully sent",s.id),this._queue.shift(),t&&t(null,...n)),s.pending=!1,this._drainQueue()})),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(a("draining queue"),!this.connected||0===this._queue.length)return;const t=this._queue[0];!t.pending||e?(t.pending=!0,t.tryCount++,a("sending packet [%d] (try n°%d)",t.id,t.tryCount),this.flags=t.flags,this.emit.apply(this,t.args)):a("packet [%d] has already been sent and is waiting for an ack",t.id)}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){a("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:i.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){a("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case i.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case i.PacketType.EVENT:case i.PacketType.BINARY_EVENT:this.onevent(e);break;case i.PacketType.ACK:case i.PacketType.BINARY_ACK:this.onack(e);break;case i.PacketType.DISCONNECT:this.ondisconnect();break;case i.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];a("emitting event %j",t),null!=e.id&&(a("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...n){s||(s=!0,a("sending ack %j",n),t.packet({type:i.PacketType.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(delete this.acks[e.id],a("calling ack %s with %j",e.id,e.data),t.withError&&e.data.unshift(null),t.apply(this,e.data)):a("bad ack %s",e.id)}onconnect(e,t){a("socket connected with id %s",e),this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:i.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}t.Socket=l},1957:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.url=function(e,t="",s){let n=e;s=s||"undefined"!=typeof location&&location,null==e&&(e=s.protocol+"//"+s.host);"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?s.protocol+e:s.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==s?s.protocol+"//"+e:"https://"+e),o("parse %s",e),n=(0,i.parse)(e));n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443"));n.path=n.path||"/";const r=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+r+":"+n.port+t,n.href=n.protocol+"://"+r+(s&&s.port===n.port?"":":"+n.port),n};const i=s(3530),o=(0,n(s(9229)).default)("socket.io-client:url")},9182:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=s(9485);function i(e,t){if(!e)return e;if((0,n.isBinary)(e)){const s={_placeholder:!0,num:t.length};return t.push(e),s}if(Array.isArray(e)){const s=new Array(e.length);for(let n=0;n<e.length;n++)s[n]=i(e[n],t);return s}if("object"==typeof e&&!(e instanceof Date)){const s={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(s[n]=i(e[n],t));return s}return e}function o(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let s=0;s<e.length;s++)e[s]=o(e[s],t);else if("object"==typeof e)for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=o(e[s],t));return e}t.deconstructPacket=function(e){const t=[],s=e.data,n=e;return n.data=i(s,t),n.attachments=t.length,{packet:n,buffers:t}},t.reconstructPacket=function(e,t){return e.data=o(e.data,t),delete e.attachments,e}},4815:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=s(4529),i=s(9182),o=s(9485),r=(0,s(9229).default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var c;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(c=t.PacketType||(t.PacketType={}));function l(e){return"[object Object]"===Object.prototype.toString.call(e)}t.Encoder=class{constructor(e){this.replacer=e}encode(e){return r("encoding packet %j",e),e.type!==c.EVENT&&e.type!==c.ACK||!(0,o.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==c.BINARY_EVENT&&e.type!==c.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),r("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=(0,i.deconstructPacket)(e),s=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(s),n}};class p extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===c.BINARY_EVENT;s||t.type===c.BINARY_ACK?(t.type=s?c.EVENT:c.ACK,this.reconstructor=new u(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,o.isBinary)(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(void 0===c[s.type])throw new Error("unknown packet type "+s.type);if(s.type===c.BINARY_EVENT||s.type===c.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");s.attachments=Number(i)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}s.nsp=e.substring(n,t)}else s.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const s=e.charAt(t);if(null==s||Number(s)!=s){--t;break}if(t===e.length)break}s.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!p.isPayloadValid(s.type,n))throw new Error("invalid payload");s.data=n}return r("decoded %s as %j",e,s),s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case c.CONNECT:return l(t);case c.DISCONNECT:return void 0===t;case c.CONNECT_ERROR:return"string"==typeof t||l(t);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===a.indexOf(t[0]));case c.ACK:case c.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}t.Decoder=p;class u{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=(0,i.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},9485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const s="function"==typeof ArrayBuffer,n=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),o="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function r(e){return s&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||i&&e instanceof Blob||o&&e instanceof File}t.isBinary=r,t.hasBinary=function e(t,s){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let s=0,n=t.length;s<n;s++)if(e(t[s]))return!0;return!1}if(r(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e(t[s]))return!0;return!1}},743:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteSocket=t.BroadcastOperator=void 0;const n=s(8958),i=s(4815);class o{constructor(e,t=new Set,s=new Set,n={}){this.adapter=e,this.rooms=t,this.exceptRooms=s,this.flags=n}to(e){const t=new Set(this.rooms);return Array.isArray(e)?e.forEach((e=>t.add(e))):t.add(e),new o(this.adapter,t,this.exceptRooms,this.flags)}in(e){return this.to(e)}except(e){const t=new Set(this.exceptRooms);return Array.isArray(e)?e.forEach((e=>t.add(e))):t.add(e),new o(this.adapter,this.rooms,t,this.flags)}compress(e){const t=Object.assign({},this.flags,{compress:e});return new o(this.adapter,this.rooms,this.exceptRooms,t)}get volatile(){const e=Object.assign({},this.flags,{volatile:!0});return new o(this.adapter,this.rooms,this.exceptRooms,e)}get local(){const e=Object.assign({},this.flags,{local:!0});return new o(this.adapter,this.rooms,this.exceptRooms,e)}timeout(e){const t=Object.assign({},this.flags,{timeout:e});return new o(this.adapter,this.rooms,this.exceptRooms,t)}emit(e,...t){if(n.RESERVED_EVENTS.has(e))throw new Error(`"${String(e)}" is a reserved event name`);const s=[e,...t],o={type:i.PacketType.EVENT,data:s};if(!("function"==typeof s[s.length-1]))return this.adapter.broadcast(o,{rooms:this.rooms,except:this.exceptRooms,flags:this.flags}),!0;const r=s.pop();let a=!1,c=[];const l=setTimeout((()=>{a=!0,r.apply(this,[new Error("operation has timed out"),this.flags.expectSingleResponse?null:c])}),this.flags.timeout);let p=-1,u=0,d=0;const h=()=>{a||p!==u||c.length!==d||(clearTimeout(l),r.apply(this,[null,this.flags.expectSingleResponse?c[0]:c]))};return this.adapter.broadcastWithAck(o,{rooms:this.rooms,except:this.exceptRooms,flags:this.flags},(e=>{d+=e,u++,h()}),(e=>{c.push(e),h()})),this.adapter.serverCount().then((e=>{p=e,h()})),!0}emitWithAck(e,...t){return new Promise(((s,n)=>{t.push(((e,t)=>e?(e.responses=t,n(e)):s(t))),this.emit(e,...t)}))}allSockets(){if(!this.adapter)throw new Error("No adapter for this namespace, are you trying to get the list of clients of a dynamic namespace?");return this.adapter.sockets(this.rooms)}fetchSockets(){return this.adapter.fetchSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags}).then((e=>e.map((e=>e.server?e:new r(this.adapter,e)))))}socketsJoin(e){this.adapter.addSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},Array.isArray(e)?e:[e])}socketsLeave(e){this.adapter.delSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},Array.isArray(e)?e:[e])}disconnectSockets(e=!1){this.adapter.disconnectSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},e)}}t.BroadcastOperator=o;class r{constructor(e,t){this.id=t.id,this.handshake=t.handshake,this.rooms=new Set(t.rooms),this.data=t.data,this.operator=new o(e,new Set([this.id]),new Set,{expectSingleResponse:!0})}timeout(e){return this.operator.timeout(e)}emit(e,...t){return this.operator.emit(e,...t)}join(e){return this.operator.socketsJoin(e)}leave(e){return this.operator.socketsLeave(e)}disconnect(e=!1){return this.operator.disconnectSockets(e),this}}t.RemoteSocket=r},9447:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const n=s(4815),i=s(9229),o=s(7310),r=i("socket.io:client");t.Client=class{constructor(e,t){this.sockets=new Map,this.nsps=new Map,this.server=e,this.conn=t,this.encoder=e.encoder,this.decoder=new e._parser.Decoder,this.id=t.id,this.setup()}get request(){return this.conn.request}setup(){this.onclose=this.onclose.bind(this),this.ondata=this.ondata.bind(this),this.onerror=this.onerror.bind(this),this.ondecoded=this.ondecoded.bind(this),this.decoder.on("decoded",this.ondecoded),this.conn.on("data",this.ondata),this.conn.on("error",this.onerror),this.conn.on("close",this.onclose),this.connectTimeout=setTimeout((()=>{0===this.nsps.size?(r("no namespace joined yet, close the client"),this.close()):r("the client has already joined a namespace, nothing to do")}),this.server._connectTimeout)}connect(e,t={}){if(this.server._nsps.has(e))return r("connecting to namespace %s",e),this.doConnect(e,t);this.server._checkNamespace(e,t,(s=>{s?this.doConnect(e,t):(r("creation of namespace %s was denied",e),this._packet({type:n.PacketType.CONNECT_ERROR,nsp:e,data:{message:"Invalid namespace"}}))}))}doConnect(e,t){const s=this.server.of(e);s._add(this,t,(e=>{this.sockets.set(e.id,e),this.nsps.set(s.name,e),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0)}))}_disconnect(){for(const e of this.sockets.values())e.disconnect();this.sockets.clear(),this.close()}_remove(e){if(this.sockets.has(e.id)){const t=this.sockets.get(e.id).nsp.name;this.sockets.delete(e.id),this.nsps.delete(t)}else r("ignoring remove for %s",e.id)}close(){"open"===this.conn.readyState&&(r("forcing transport close"),this.conn.close(),this.onclose("forced server close"))}_packet(e,t={}){if("open"!==this.conn.readyState)return void r("ignoring packet write %j",e);const s=t.preEncoded?e:this.encoder.encode(e);this.writeToEngine(s,t)}writeToEngine(e,t){if(t.volatile&&!this.conn.transport.writable)return void r("volatile packet is discarded since the transport is not currently writable");const s=Array.isArray(e)?e:[e];for(const e of s)this.conn.write(e,t)}ondata(e){try{this.decoder.add(e)}catch(e){r("invalid packet format"),this.onerror(e)}}ondecoded(e){let t,s;if(3===this.conn.protocol){const n=o.parse(e.nsp,!0);t=n.pathname,s=n.query}else t=e.nsp,s=e.data;const i=this.nsps.get(t);i||e.type!==n.PacketType.CONNECT?i&&e.type!==n.PacketType.CONNECT&&e.type!==n.PacketType.CONNECT_ERROR?process.nextTick((function(){i._onpacket(e)})):(r("invalid state (packet type: %s)",e.type),this.close()):this.connect(t,s)}onerror(e){for(const t of this.sockets.values())t._onerror(e);this.conn.close()}onclose(e,t){r("client close with reason %s",e),this.destroy();for(const s of this.sockets.values())s._onclose(e,t);this.sockets.clear(),this.decoder.destroy()}destroy(){this.conn.removeListener("data",this.ondata),this.conn.removeListener("error",this.onerror),this.conn.removeListener("close",this.onclose),this.decoder.removeListener("decoded",this.ondecoded),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0)}}},145:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var i=Object.getOwnPropertyDescriptor(t,s);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,i)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&n(t,e,s);return i(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Namespace=t.Socket=t.Server=void 0;const a=s(3685),c=s(7147),l=s(9796),p=s(181),u=s(2781),d=s(1017),h=s(3830),f=s(9447),m=s(2361),g=s(2471);Object.defineProperty(t,"Namespace",{enumerable:!0,get:function(){return g.Namespace}});const v=s(5511),b=s(9098),x=o(s(4815)),y=r(s(9229)),w=s(7700);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return w.Socket}});const _=s(1012),k=s(2409),S=r(s(9920)),E=(0,y.default)("socket.io:server"),T=s(717).i8,O=/\.map/;class C extends _.StrictEventEmitter{constructor(e,t={}){super(),this._nsps=new Map,this.parentNsps=new Map,this.parentNamespacesFromRegExp=new Map,"object"==typeof e&&e instanceof Object&&!e.listen&&(t=e,e=void 0),this.path(t.path||"/socket.io"),this.connectTimeout(t.connectTimeout||45e3),this.serveClient(!1!==t.serveClient),this._parser=t.parser||x,this.encoder=new this._parser.Encoder,this.opts=t,t.connectionStateRecovery?(t.connectionStateRecovery=Object.assign({maxDisconnectionDuration:12e4,skipMiddlewares:!0},t.connectionStateRecovery),this.adapter(t.adapter||b.SessionAwareAdapter)):this.adapter(t.adapter||b.Adapter),t.cleanupEmptyChildNamespaces=!!t.cleanupEmptyChildNamespaces,this.sockets=this.of("/"),(e||"number"==typeof e)&&this.attach(e),this.opts.cors&&(this._corsMiddleware=(0,S.default)(this.opts.cors))}get _opts(){return this.opts}serveClient(e){return arguments.length?(this._serveClient=e,this):this._serveClient}_checkNamespace(e,t,s){if(0===this.parentNsps.size)return s(!1);const n=this.parentNsps.keys(),i=()=>{const o=n.next();if(o.done)return s(!1);o.value(e,t,((t,n)=>{if(t||!n)return i();if(this._nsps.has(e))return E("dynamic namespace %s already exists",e),s(this._nsps.get(e));const r=this.parentNsps.get(o.value).createChild(e);E("dynamic namespace %s was created",e),s(r)}))};i()}path(e){if(!arguments.length)return this._path;this._path=e.replace(/\/$/,"");const t=this._path.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return this.clientPathRegex=new RegExp("^"+t+"/socket\\.io(\\.msgpack|\\.esm)?(\\.min)?\\.js(\\.map)?(?:\\?|$)"),this}connectTimeout(e){return void 0===e?this._connectTimeout:(this._connectTimeout=e,this)}adapter(e){if(!arguments.length)return this._adapter;this._adapter=e;for(const e of this._nsps.values())e._initAdapter();return this}listen(e,t={}){return this.attach(e,t)}attach(e,t={}){if("function"==typeof e){throw new Error("You are trying to attach socket.io to an express request handler function. Please pass a http.Server instance.")}if(Number(e)==e&&(e=Number(e)),"number"==typeof e){E("creating http server and binding to %d",e);const t=e;(e=a.createServer(((e,t)=>{t.writeHead(404),t.end()}))).listen(t)}return Object.assign(t,this.opts),t.path=t.path||this._path,this.initEngine(e,t),this}attachApp(e,t={}){Object.assign(t,this.opts),t.path=t.path||this._path,E("creating uWebSockets.js-based engine with opts %j",t);const s=new h.uServer(t);s.attach(e,t),this.bind(s),this._serveClient&&e.get(`${this._path}/*`,((e,t)=>{if(!this.clientPathRegex.test(t.getUrl()))return void t.setYield(!0);const s=t.getUrl().replace(this._path,"").replace(/\?.*$/,"").replace(/^\//,""),n=O.test(s),i=n?"map":"source",o='"'+T+'"',r="W/"+o,a=t.getHeader("if-none-match");if(a&&(o===a||r===a))return E("serve client %s 304",i),e.writeStatus("304 Not Modified"),void e.end();E("serve client %s",i),e.writeHeader("cache-control","public, max-age=0"),e.writeHeader("content-type","application/"+(n?"json":"javascript")+"; charset=utf-8"),e.writeHeader("etag",o);const c=d.join(__dirname,"../client-dist/",s);(0,k.serveFile)(e,c)})),(0,k.patchAdapter)(e)}initEngine(e,t){E("creating engine.io instance with opts %j",t),this.eio=(0,h.attach)(e,t),this._serveClient&&this.attachServe(e),this.httpServer=e,this.bind(this.eio)}attachServe(e){E("attaching client serving req handler");const t=e.listeners("request").slice(0);e.removeAllListeners("request"),e.on("request",((s,n)=>{if(this.clientPathRegex.test(s.url))this._corsMiddleware?this._corsMiddleware(s,n,(()=>{this.serve(s,n)})):this.serve(s,n);else for(let i=0;i<t.length;i++)t[i].call(e,s,n)}))}serve(e,t){const s=e.url.replace(this._path,"").replace(/\?.*$/,""),n=O.test(s),i=n?"map":"source",o='"'+T+'"',r="W/"+o,a=e.headers["if-none-match"];if(a&&(o===a||r===a))return E("serve client %s 304",i),t.writeHead(304),void t.end();E("serve client %s",i),t.setHeader("Cache-Control","public, max-age=0"),t.setHeader("Content-Type","application/"+(n?"json":"javascript")+"; charset=utf-8"),t.setHeader("ETag",o),C.sendFile(s,e,t)}static sendFile(e,t,s){const n=(0,c.createReadStream)(d.join(__dirname,"../client-dist/",e)),i=e=>{e&&s.end()};switch(p(t).encodings(["br","gzip","deflate"])){case"br":s.writeHead(200,{"content-encoding":"br"}),(0,u.pipeline)(n,(0,l.createBrotliCompress)(),s,i);break;case"gzip":s.writeHead(200,{"content-encoding":"gzip"}),(0,u.pipeline)(n,(0,l.createGzip)(),s,i);break;case"deflate":s.writeHead(200,{"content-encoding":"deflate"}),(0,u.pipeline)(n,(0,l.createDeflate)(),s,i);break;default:s.writeHead(200),(0,u.pipeline)(n,s,i)}}bind(e){return this.engine=e,this.engine.on("connection",this.onconnection.bind(this)),this}onconnection(e){E("incoming connection with id %s",e.id);const t=new f.Client(this,e);return 3===e.protocol&&t.connect("/"),this}of(e,t){if("function"==typeof e||e instanceof RegExp){const s=new v.ParentNamespace(this);return E("initializing parent namespace %s",s.name),"function"==typeof e?this.parentNsps.set(e,s):(this.parentNsps.set(((t,s,n)=>n(null,e.test(t))),s),this.parentNamespacesFromRegExp.set(e,s)),t&&s.on("connect",t),s}"/"!==String(e)[0]&&(e="/"+e);let s=this._nsps.get(e);if(!s){for(const[t,s]of this.parentNamespacesFromRegExp)if(t.test(e))return E("attaching namespace %s to parent namespace %s",e,t),s.createChild(e);E("initializing namespace %s",e),s=new g.Namespace(this,e),this._nsps.set(e,s),"/"!==e&&this.sockets.emitReserved("new_namespace",s)}return t&&s.on("connect",t),s}async close(e){await Promise.allSettled([...this._nsps.values()].map((async e=>{e.sockets.forEach((e=>{e._onclose("server shutting down")})),await e.adapter.close()}))),this.engine.close(),(0,k.restoreAdapter)(),this.httpServer?this.httpServer.close(e):e&&e()}use(e){return this.sockets.use(e),this}to(e){return this.sockets.to(e)}in(e){return this.sockets.in(e)}except(e){return this.sockets.except(e)}send(...e){return this.sockets.emit("message",...e),this}write(...e){return this.sockets.emit("message",...e),this}serverSideEmit(e,...t){return this.sockets.serverSideEmit(e,...t)}serverSideEmitWithAck(e,...t){return this.sockets.serverSideEmitWithAck(e,...t)}allSockets(){return this.sockets.allSockets()}compress(e){return this.sockets.compress(e)}get volatile(){return this.sockets.volatile}get local(){return this.sockets.local}timeout(e){return this.sockets.timeout(e)}fetchSockets(){return this.sockets.fetchSockets()}socketsJoin(e){return this.sockets.socketsJoin(e)}socketsLeave(e){return this.sockets.socketsLeave(e)}disconnectSockets(e=!1){return this.sockets.disconnectSockets(e)}}t.Server=C;Object.keys(m.EventEmitter.prototype).filter((function(e){return"function"==typeof m.EventEmitter.prototype[e]})).forEach((function(e){C.prototype[e]=function(){return this.sockets[e].apply(this.sockets,arguments)}})),e.exports=(e,t)=>new C(e,t),e.exports.Server=C,e.exports.Namespace=g.Namespace,e.exports.Socket=w.Socket},2471:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Namespace=t.RESERVED_EVENTS=void 0;const i=s(7700),o=s(1012),r=n(s(9229)),a=s(743),c=(0,r.default)("socket.io:namespace");t.RESERVED_EVENTS=new Set(["connect","connection","new_namespace"]);class l extends o.StrictEventEmitter{constructor(e,t){super(),this.sockets=new Map,this._preConnectSockets=new Map,this._fns=[],this._ids=0,this.server=e,this.name=t,this._initAdapter()}_initAdapter(){this.adapter=new(this.server.adapter())(this)}use(e){return this._fns.push(e),this}run(e,t){if(!this._fns.length)return t();const s=this._fns.slice(0);!function n(i){s[i](e,(e=>e?t(e):s[i+1]?void n(i+1):t()))}(0)}to(e){return new a.BroadcastOperator(this.adapter).to(e)}in(e){return new a.BroadcastOperator(this.adapter).in(e)}except(e){return new a.BroadcastOperator(this.adapter).except(e)}async _add(e,t,s){var n;c("adding socket to nsp %s",this.name);const i=await this._createSocket(e,t);if(this._preConnectSockets.set(i.id,i),(null===(n=this.server.opts.connectionStateRecovery)||void 0===n?void 0:n.skipMiddlewares)&&i.recovered&&"open"===e.conn.readyState)return this._doConnect(i,s);this.run(i,(t=>{process.nextTick((()=>"open"!==e.conn.readyState?(c("next called after client was closed - ignoring socket"),void i._cleanup()):t?(c("middleware error, sending CONNECT_ERROR packet to the client"),i._cleanup(),3===e.conn.protocol?i._error(t.data||t.message):i._error({message:t.message,data:t.data})):void this._doConnect(i,s)))}))}async _createSocket(e,t){const s=t.pid,n=t.offset;if(this.server.opts.connectionStateRecovery&&"string"==typeof s&&"string"==typeof n){let o;try{o=await this.adapter.restoreSession(s,n)}catch(e){c("error while restoring session: %s",e)}if(o)return c("connection state recovered for sid %s",o.sid),new i.Socket(this,e,t,o)}return new i.Socket(this,e,t)}_doConnect(e,t){this._preConnectSockets.delete(e.id),this.sockets.set(e.id,e),e._onconnect(),t&&t(e),this.emitReserved("connect",e),this.emitReserved("connection",e)}_remove(e){this.sockets.delete(e.id)||this._preConnectSockets.delete(e.id)}emit(e,...t){return new a.BroadcastOperator(this.adapter).emit(e,...t)}send(...e){return this.emit("message",...e),this}write(...e){return this.emit("message",...e),this}serverSideEmit(e,...s){if(t.RESERVED_EVENTS.has(e))throw new Error(`"${String(e)}" is a reserved event name`);return s.unshift(e),this.adapter.serverSideEmit(s),!0}serverSideEmitWithAck(e,...t){return new Promise(((s,n)=>{t.push(((e,t)=>e?(e.responses=t,n(e)):s(t))),this.serverSideEmit(e,...t)}))}_onServerSideEmit(e){super.emitUntyped.apply(this,e)}allSockets(){return new a.BroadcastOperator(this.adapter).allSockets()}compress(e){return new a.BroadcastOperator(this.adapter).compress(e)}get volatile(){return new a.BroadcastOperator(this.adapter).volatile}get local(){return new a.BroadcastOperator(this.adapter).local}timeout(e){return new a.BroadcastOperator(this.adapter).timeout(e)}fetchSockets(){return new a.BroadcastOperator(this.adapter).fetchSockets()}socketsJoin(e){return new a.BroadcastOperator(this.adapter).socketsJoin(e)}socketsLeave(e){return new a.BroadcastOperator(this.adapter).socketsLeave(e)}disconnectSockets(e=!1){return new a.BroadcastOperator(this.adapter).disconnectSockets(e)}}t.Namespace=l},5511:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParentNamespace=void 0;const i=s(2471),o=s(9098),r=(0,n(s(9229)).default)("socket.io:parent-namespace");class a extends i.Namespace{constructor(e){super(e,"/_"+a.count++),this.children=new Set}_initAdapter(){this.adapter=new c(this)}emit(e,...t){return this.children.forEach((s=>{s.emit(e,...t)})),!0}createChild(e){r("creating child namespace %s",e);const t=new i.Namespace(this.server,e);if(this._fns.forEach((e=>t.use(e))),this.listeners("connect").forEach((e=>t.on("connect",e))),this.listeners("connection").forEach((e=>t.on("connection",e))),this.children.add(t),this.server._opts.cleanupEmptyChildNamespaces){const s=t._remove;t._remove=n=>{s.call(t,n),0===t.sockets.size&&(r("closing child namespace %s",e),t.adapter.close(),this.server._nsps.delete(t.name),this.children.delete(t))}}return this.server._nsps.set(e,t),this.server.sockets.emitReserved("new_namespace",t),t}fetchSockets(){throw new Error("fetchSockets() is not supported on parent namespaces")}}t.ParentNamespace=a,a.count=0;class c extends o.Adapter{broadcast(e,t){this.nsp.children.forEach((s=>{s.adapter.broadcast(e,t)}))}}},8958:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RESERVED_EVENTS=void 0,t.RESERVED_EVENTS=new Set(["connect","connect_error","disconnect","disconnecting","newListener","removeListener"])},7700:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=s(4815),o=n(s(9229)),r=s(1012),a=n(s(9916)),c=s(743),l=s(8958),p=(0,o.default)("socket.io:socket"),u=new Set(["transport error","transport close","forced close","ping timeout","server shutting down","forced server close"]);function d(){}class h extends r.StrictEventEmitter{constructor(e,t,s,n){super(),this.nsp=e,this.client=t,this.recovered=!1,this.data={},this.connected=!1,this.acks=new Map,this.fns=[],this.flags={},this.server=e.server,this.adapter=this.nsp.adapter,n?(this.id=n.sid,this.pid=n.pid,n.rooms.forEach((e=>this.join(e))),this.data=n.data,n.missedPackets.forEach((e=>{this.packet({type:i.PacketType.EVENT,data:e})})),this.recovered=!0):(3===t.conn.protocol?this.id="/"!==e.name?e.name+"#"+t.id:t.id:this.id=a.default.generateId(),this.server._opts.connectionStateRecovery&&(this.pid=a.default.generateId())),this.handshake=this.buildHandshake(s),this.on("error",d)}buildHandshake(e){var t,s,n,i;return{headers:(null===(t=this.request)||void 0===t?void 0:t.headers)||{},time:new Date+"",address:this.conn.remoteAddress,xdomain:!!(null===(s=this.request)||void 0===s?void 0:s.headers.origin),secure:!this.request||!!this.request.connection.encrypted,issued:+new Date,url:null===(n=this.request)||void 0===n?void 0:n.url,query:(null===(i=this.request)||void 0===i?void 0:i._query)||{},auth:e}}emit(e,...t){if(l.RESERVED_EVENTS.has(e))throw new Error(`"${String(e)}" is a reserved event name`);const s=[e,...t],n={type:i.PacketType.EVENT,data:s};if("function"==typeof s[s.length-1]){const e=this.nsp._ids++;p("emitting packet with ack id %d",e),this.registerAckCallback(e,s.pop()),n.id=e}const o=Object.assign({},this.flags);return this.flags={},this.nsp.server.opts.connectionStateRecovery?this.adapter.broadcast(n,{rooms:new Set([this.id]),except:new Set,flags:o}):(this.notifyOutgoingListeners(n),this.packet(n,o)),!0}emitWithAck(e,...t){const s=void 0!==this.flags.timeout;return new Promise(((n,i)=>{t.push(((e,t)=>s?e?i(e):n(t):n(e))),this.emit(e,...t)}))}registerAckCallback(e,t){const s=this.flags.timeout;if(void 0===s)return void this.acks.set(e,t);const n=setTimeout((()=>{p("event with ack id %d has timed out after %d ms",e,s),this.acks.delete(e),t.call(this,new Error("operation has timed out"))}),s);this.acks.set(e,((...e)=>{clearTimeout(n),t.apply(this,[null,...e])}))}to(e){return this.newBroadcastOperator().to(e)}in(e){return this.newBroadcastOperator().in(e)}except(e){return this.newBroadcastOperator().except(e)}send(...e){return this.emit("message",...e),this}write(...e){return this.emit("message",...e),this}packet(e,t={}){e.nsp=this.nsp.name,t.compress=!1!==t.compress,this.client._packet(e,t)}join(e){return p("join room %s",e),this.adapter.addAll(this.id,new Set(Array.isArray(e)?e:[e]))}leave(e){return p("leave room %s",e),this.adapter.del(this.id,e)}leaveAll(){this.adapter.delAll(this.id)}_onconnect(){p("socket connected - writing packet"),this.connected=!0,this.join(this.id),3===this.conn.protocol?this.packet({type:i.PacketType.CONNECT}):this.packet({type:i.PacketType.CONNECT,data:{sid:this.id,pid:this.pid}})}_onpacket(e){switch(p("got packet %j",e),e.type){case i.PacketType.EVENT:case i.PacketType.BINARY_EVENT:this.onevent(e);break;case i.PacketType.ACK:case i.PacketType.BINARY_ACK:this.onack(e);break;case i.PacketType.DISCONNECT:this.ondisconnect()}}onevent(e){const t=e.data||[];if(p("emitting event %j",t),null!=e.id&&(p("attaching ack callback to event"),t.push(this.ack(e.id))),this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}this.dispatch(t)}ack(e){const t=this;let s=!1;return function(){if(s)return;const n=Array.prototype.slice.call(arguments);p("sending ack %j",n),t.packet({id:e,type:i.PacketType.ACK,data:n}),s=!0}}onack(e){const t=this.acks.get(e.id);"function"==typeof t?(p("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),this.acks.delete(e.id)):p("bad ack %s",e.id)}ondisconnect(){p("got disconnect packet"),this._onclose("client namespace disconnect")}_onerror(e){this.emitReserved("error",e)}_onclose(e,t){if(!this.connected)return this;p("closing socket - reason %s",e),this.emitReserved("disconnecting",e,t),this.server._opts.connectionStateRecovery&&u.has(e)&&(p("connection state recovery is enabled for sid %s",this.id),this.adapter.persistSession({sid:this.id,pid:this.pid,rooms:[...this.rooms],data:this.data})),this._cleanup(),this.client._remove(this),this.connected=!1,this.emitReserved("disconnect",e,t)}_cleanup(){this.leaveAll(),this.nsp._remove(this),this.join=d}_error(e){this.packet({type:i.PacketType.CONNECT_ERROR,data:e})}disconnect(e=!1){return this.connected?(e?this.client._disconnect():(this.packet({type:i.PacketType.DISCONNECT}),this._onclose("server namespace disconnect")),this):this}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}get broadcast(){return this.newBroadcastOperator()}get local(){return this.newBroadcastOperator().local}timeout(e){return this.flags.timeout=e,this}dispatch(e){p("dispatching an event %j",e),this.run(e,(t=>{process.nextTick((()=>{if(t)return this._onerror(t);this.connected?super.emitUntyped.apply(this,e):p("ignore packet received after disconnection")}))}))}use(e){return this.fns.push(e),this}run(e,t){if(!this.fns.length)return t();const s=this.fns.slice(0);!function n(i){s[i](e,(e=>e?t(e):s[i+1]?void n(i+1):t()))}(0)}get disconnected(){return!this.connected}get request(){return this.client.request}get conn(){return this.client.conn}get rooms(){return this.adapter.socketRooms(this.id)||new Set}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}newBroadcastOperator(){const e=Object.assign({},this.flags);return this.flags={},new c.BroadcastOperator(this.adapter,new Set,new Set([this.id]),e)}}t.Socket=h},1012:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StrictEventEmitter=void 0;const n=s(2361);class i extends n.EventEmitter{on(e,t){return super.on(e,t)}once(e,t){return super.once(e,t)}emit(e,...t){return super.emit(e,...t)}emitReserved(e,...t){return super.emit(e,...t)}emitUntyped(e,...t){return super.emit(e,...t)}listeners(e){return super.listeners(e)}}t.StrictEventEmitter=i},2409:function(e,t,s){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.patchAdapter=function(e){i.Adapter.prototype.addAll=function(e,t){const s=!this.sids.has(e);c.call(this,e,t);const n=this.nsp.sockets.get(e)||this.nsp._preConnectSockets.get(e);n&&("websocket"!==n.conn.transport.name?s&&n.conn.on("upgrade",(()=>{const t=this.sids.get(e);t&&u(this.nsp.name,n,s,t)})):u(this.nsp.name,n,s,t))},i.Adapter.prototype.del=function(e,t){l.call(this,e,t);const s=this.nsp.sockets.get(e)||this.nsp._preConnectSockets.get(e);if(s&&"websocket"===s.conn.transport.name){const e=s.conn.id,n=s.conn.transport.socket,i=`${this.nsp.name}${a}${t}`;r("unsubscribe connection %s from topic %s",e,i),n.unsubscribe(i)}},i.Adapter.prototype.broadcast=function(t,s){if(!(s.rooms.size<=1&&0===s.except.size))return void p.call(this,t,s);const n=s.flags||{},i={preEncoded:!0,volatile:n.volatile,compress:n.compress};t.nsp=this.nsp.name;const o=this.encoder.encode(t),c=0===s.rooms.size?this.nsp.name:`${this.nsp.name}${a}${s.rooms.keys().next().value}`;r("fast publish to %s",c),o.forEach((t=>{const s="string"!=typeof t;e.publish(c,s?t:"4"+t,s)})),this.apply(s,(e=>{"websocket"!==e.conn.transport.name&&e.client.writeToEngine(o,i)}))}},t.restoreAdapter=function(){i.Adapter.prototype.addAll=c,i.Adapter.prototype.del=l,i.Adapter.prototype.broadcast=p},t.serveFile=function(e,t){const{size:s}=(0,o.statSync)(t),n=(0,o.createReadStream)(t),i=()=>!n.destroyed&&n.destroy();e.onAborted(i),n.on("data",(t=>{const i=d(t);e.cork((()=>{const t=e.getWriteOffset(),[o,r]=e.tryEnd(i,s);r||o||(n.pause(),e.onWritable((o=>{const[r,a]=e.tryEnd(i.slice(o-t),s);return!a&&r&&n.resume(),r})))}))})).on("error",(e=>{throw i(),e})).on("end",i)};const i=s(9098),o=s(7147),r=(0,n(s(9229)).default)("socket.io:adapter-uws"),a="",{addAll:c,del:l,broadcast:p}=i.Adapter.prototype;function u(e,t,s,n){const i=t.conn.id,o=t.conn.transport.socket;s&&(r("subscribe connection %s to topic %s",i,e),o.subscribe(e)),n.forEach((t=>{const s=`${e}${a}${t}`;r("subscribe connection %s to topic %s",i,s),o.subscribe(s)}))}const d=e=>{const{buffer:t,byteOffset:s,byteLength:n}=e;return t.slice(s,s+n)}},4529:(e,t,s)=>{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}s.r(t),s.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function s(){this.off(e,s),t.apply(this,arguments)}return s.fn=t,this.on(e,s),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((s=n[i])===t||s.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),s=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(s){n=0;for(var i=(s=s.slice(0)).length;n<i;++n)s[n].apply(this,t)}return this},n.prototype.emitReserved=n.prototype.emit,n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},9601:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},717:e=>{"use strict";e.exports={i8:"4.8.1"}},1298:e=>{"use strict";e.exports={version:"3.13.0"}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return s[e].call(o.exports,o,o.exports,i),o.exports}i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.SocketTunnelClient=e.SessionIdError=e.ConnectionError=e.AuthorizationError=void 0;var t=i(5913);Object.defineProperty(e,"AuthorizationError",{enumerable:!0,get:function(){return t.AuthorizationError}}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:function(){return t.ConnectionError}}),Object.defineProperty(e,"SessionIdError",{enumerable:!0,get:function(){return t.SessionIdError}}),Object.defineProperty(e,"SocketTunnelClient",{enumerable:!0,get:function(){return t.SocketTunnelClient}})})(),o})()));
|