File: //proc/25618/task/25618/root/usr/syno/sbin/synoscgi_socket.js
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=138)}([function(e,t,n){"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:n(203)})},function(e,t){e.exports=require("util")},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e){var t="function"==typeof Map?new Map:void 0;return(o=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return r(e,arguments,c(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s(i,e)})(e)}function r(e,t,n){return(r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&s(a,n.prototype),a}).apply(null,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,n=!(r=c(t).call(this,"Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ".concat(e.toString().split("\n")[0],"\n")))||"object"!==i(r)&&"function"!=typeof r?a(o):r,Error.captureStackTrace(a(a(n)),t),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,o(Error)),t}();e.exports=function(e){if(e.length>2)throw new l(e);function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e}function n(e){return new t(e)}return t.prototype.transform=e,n.Format=t,n}},function(e,t,n){"use strict";class i 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,i)}}e.exports=(e=>{if(e.length>2)throw new i(e);function t(e={}){this.options=e}function n(e){return new t(e)}return t.prototype.transform=e,n.Format=t,n})},function(e,t){e.exports=require("events")},function(e,t){e.exports={}},function(e,t,n){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(150):e.exports=n(151)},function(e,t,n){"use strict";const i=t.format=n(3);function a(e,t){t=t||e,Object.defineProperty(i,e,{get:()=>n(207)(`./${t}.js`),configurable:!0})}t.levels=n(46),a("align"),a("errors"),a("cli"),a("combine"),a("colorize"),a("json"),a("label"),a("logstash"),a("metadata"),a("ms"),a("padLevels","pad-levels"),a("prettyPrint","pretty-print"),a("printf"),a("simple"),a("splat"),a("timestamp"),a("uncolorize")},function(e,t){e.exports={socket_path:"/run/synoscgi_socket.sock",domain_socket_path:"/run/synoscgi_domain_socket.sock",socket_testing_path:"/run/synoscgi_testing_socket.sock",socket_local_url:"http://localhost:5000",domain_token_dir:"/usr/syno/etc/private/synoscgi/",domain_token_file:"domain_token",cgi_private_key:"/usr/syno/etc/ssl/cgi.key/private.key",throttle:100,rooms:{all_clients:"_@client",guest_clients:"_@guest",admin_clients:"_@admin",group_prefix:"@"}}},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("os")},function(e,t,n){try{var i=n(1);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=n(222)}},function(e,t){e.exports=require("http")},function(e,t,n){"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}},function(e,t){e.exports=require("stream")},function(e,t){e.exports=a,a.default=a,a.stable=r,a.stableStringify=r;var n=[],i=[];function a(e,t,a){var o;for(!function e(t,a,o,r){var s;if("object"==typeof t&&null!==t){for(s=0;s<o.length;s++)if(o[s]===t){var c=Object.getOwnPropertyDescriptor(r,a);return void(void 0!==c.get?c.configurable?(Object.defineProperty(r,a,{value:"[Circular]"}),n.push([r,a,t,c])):i.push([t,a]):(r[a]="[Circular]",n.push([r,a,t])))}if(o.push(t),Array.isArray(t))for(s=0;s<t.length;s++)e(t[s],s,o,t);else{var l=Object.keys(t);for(s=0;s<l.length;s++){var u=l[s];e(t[u],u,o,t)}}o.pop()}}(e,"",[],void 0),o=0===i.length?JSON.stringify(e,t,a):JSON.stringify(e,s(t),a);0!==n.length;){var r=n.pop();4===r.length?Object.defineProperty(r[0],r[1],r[3]):r[0][r[1]]=r[2]}return o}function o(e,t){return e<t?-1:e>t?1:0}function r(e,t,a){var r,c=function e(t,a,r,s){var c;if("object"==typeof t&&null!==t){for(c=0;c<r.length;c++)if(r[c]===t){var l=Object.getOwnPropertyDescriptor(s,a);return void(void 0!==l.get?l.configurable?(Object.defineProperty(s,a,{value:"[Circular]"}),n.push([s,a,t,l])):i.push([t,a]):(s[a]="[Circular]",n.push([s,a,t])))}if("function"==typeof t.toJSON)return;if(r.push(t),Array.isArray(t))for(c=0;c<t.length;c++)e(t[c],c,r,t);else{var u={},p=Object.keys(t).sort(o);for(c=0;c<p.length;c++){var d=p[c];e(t[d],d,r,t),u[d]=t[d]}if(void 0===s)return u;n.push([s,a,t]),s[a]=u}r.pop()}}(e,"",[],void 0)||e;for(r=0===i.length?JSON.stringify(c,t,a):JSON.stringify(c,s(t),a);0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}return r}function s(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var a=0;a<i.length;a++){var o=i[a];if(o[1]===t&&o[0]===n){n="[Circular]",i.splice(a,1);break}}return e.call(this,t,n)}}},function(e,t,n){"use strict";const i=n(1),a=n(221),{LEVEL:o}=n(0),r=e.exports=function(e={}){a.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,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())})};i.inherits(r,a),r.prototype._write=function(e,t,n){if(this.silent||!0===e.exception&&!this.handleExceptions)return n(null);const i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,n);let t,i;try{i=this.format.transform(Object.assign({},e),this.format.options)}catch(e){t=e}if(t||!i){if(n(),t)throw t;return}return this.log(i,n)}return n(null)},r.prototype._writev=function(e,t){if(this.logv){const n=e.filter(this._accept,this);return n.length?this.logv(n,t):t(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,a;try{a=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(e){i=e}if(i||!a){if(e[n].callback(),i)throw t(null),i}else this.log(a,e[n].callback)}return t(null)},r.prototype._accept=function(e){const t=e.chunk;if(this.silent)return!1;const n=this.level||this.parent&&this.parent.level;return!(!0!==t.exception&&n&&!(this.levels[n]>=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},r.prototype._nop=function(){}},function(e,t){e.exports=require("buffer")},function(e,t,n){"use strict";const i={};function a(e,t,n){n||(n=Error);class a extends n{constructor(e,n,i){super(function(e,n,i){return"string"==typeof t?t:t(e,n,i)}(e,n,i))}}a.prototype.name=n.name,a.prototype.code=e,i[e]=a}function o(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map(e=>String(e)),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}a("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(e,t,n){let i;var a,r;let s;if("string"==typeof t&&(a="not ",t.substr(!r||r<0?0:+r,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s=`The ${e} ${i} ${o(t,"type")}`;else{s=`The "${e}" ${function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument"} ${i} ${o(t,"type")}`}return s+=`. Received type ${typeof n}`},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,n){"use strict";var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var a=n(119),o=n(123);n(11)(l,a);for(var r=i(o.prototype),s=0;s<r.length;s++){var c=r[s];l.prototype[c]||(l.prototype[c]=o.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);a.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",u)))}function u(){this._writableState.ended||process.nextTick(p,this)}function p(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)}})},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("url")},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=n(30),o=n(0),r=o.LEVEL,s=o.MESSAGE;a.enabled=!0;var c=/\s+/,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.colors&&this.addColors(t.colors),this.options=t}var t,n,o;return t=e,o=[{key:"addColors",value:function(t){var n=Object.keys(t).reduce(function(e,n){return e[n]=c.test(t[n])?t[n].split(c):t[n],e},{});return e.allColors=Object.assign({},e.allColors||{},n),e.allColors}}],(n=[{key:"addColors",value:function(t){return e.addColors(t)}},{key:"colorize",value:function(t,n,i){if(void 0===i&&(i=n),!Array.isArray(e.allColors[t]))return a[e.allColors[t]](i);for(var o=0,r=e.allColors[t].length;o<r;o++)i=a[e.allColors[t][o]](i);return i}},{key:"transform",value:function(e,t){return t.all&&"string"==typeof e[s]&&(e[s]=this.colorize(e[r],e.level,e[s])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[r],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[r],e.level,e.message)),e}}])&&i(t.prototype,n),o&&i(t,o),e}();e.exports=function(e){return new l(e)},e.exports.Colorizer=e.exports.Format=l},function(e,t,n){var i=n(14);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=n(119)).Stream=i||t,t.Readable=t,t.Writable=n(123),t.Duplex=n(19),t.Transform=n(125),t.PassThrough=n(261),t.finished=n(68),t.pipeline=n(262))},function(e,t){e.exports=require("path")},function(e,t,n){var i=n(147),a=n(41),o=n(148),r=n(149);t.protocol=3;var s=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},c=r(s),l={type:"error",data:"parser error"};const u=Buffer.concat([]);function p(e,n,i){if(!n)return t.encodeBase64Packet(e,i);var a=e.data,o=Buffer.allocUnsafe(1);return o[0]=s[e.type],i(Buffer.concat([o,a]))}function d(e,t,n){for(var i=new Array(e.length),a=o(e.length,n),r=0;r<e.length;r++)t(e[r],function(e,t){i[r]=t,a(e,i)})}function f(e){for(var t="",n=0,i=e.length;n<i;n++)t+=String.fromCharCode(e[n]);return t}function h(e){for(var t=Buffer.allocUnsafe(e.length),n=0,i=e.length;n<i;n++)t.writeUInt8(e.charCodeAt(n),n);return t}function m(e){var t=e.byteLength||e.length,n=e.byteOffset||0;return Buffer.from(e.buffer||e,n,t)}function v(e,n){t.encodePacket(e,!0,!0,function(e){var t,i=""+e.length;if("string"==typeof e){(t=Buffer.allocUnsafe(i.length+2))[0]=0;for(var a=0;a<i.length;a++)t[a+1]=parseInt(i[a],10);return t[t.length-1]=255,n(null,Buffer.concat([t,h(e)]))}for((t=Buffer.allocUnsafe(i.length+2))[0]=1,a=0;a<i.length;a++)t[a+1]=parseInt(i[a],10);t[t.length-1]=255,n(null,Buffer.concat([t,e]))})}t.encodePacket=function(e,t,n,a){if("function"==typeof t&&(a=t,t=null),"function"==typeof n&&(a=n,n=null),Buffer.isBuffer(e.data))return p(e,t,a);if(e.data&&(e.data.buffer||e.data)instanceof ArrayBuffer)return p({type:e.type,data:m(e.data)},t,a);var o=s[e.type];return void 0!==e.data&&(o+=n?i.encode(String(e.data),{strict:!1}):String(e.data)),a(""+o)},t.encodeBase64Packet=function(e,t){var n=Buffer.isBuffer(e.data)?e.data:m(e.data),i="b"+s[e.type];return t(i+=n.toString("base64"))},t.decodePacket=function(e,n,a){if(void 0===e)return l;var o;if("string"==typeof e)return"b"===(o=e.charAt(0))?t.decodeBase64Packet(e.substr(1),n):a&&!1===(e=function(e){try{e=i.decode(e,{strict:!1})}catch(e){return!1}return e}(e))?l:Number(o)==o&&c[o]?e.length>1?{type:c[o],data:e.substring(1)}:{type:c[o]}:l;if("arraybuffer"===n){var r=new Uint8Array(e);return o=r[0],{type:c[o],data:r.buffer.slice(1)}}return e instanceof ArrayBuffer&&(e=m(e)),o=e[0],{type:c[o],data:e.slice(1)}},t.decodeBase64Packet=function(e,t){var n=c[e.charAt(0)],i=Buffer.from(e.substr(1),"base64");if("arraybuffer"===t){for(var a=new Uint8Array(i.length),o=0;o<a.length;o++)a[o]=i[o];i=a.buffer}return{type:n,data:i}},t.encodePayload=function(e,n,i){if("function"==typeof n&&(i=n,n=null),n&&a(e))return t.encodePayloadAsBinary(e,i);if(!e.length)return i("0:");d(e,function(e,i){t.encodePacket(e,n,!1,function(e){i(null,function(e){return e.length+":"+e}(e))})},function(e,t){return i(t.join(""))})},t.decodePayload=function(e,n,i){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,i);if("function"==typeof n&&(i=n,n=null),""===e)return i(l,0,1);for(var a,o,r,s="",c=0,u=e.length;c<u;c++){var p=e.charAt(c);if(":"===p){if(""===s||s!=(a=Number(s)))return i(l,0,1);if(s!=(o=e.substr(c+1,a)).length)return i(l,0,1);if(o.length){if(r=t.decodePacket(o,n,!1),l.type===r.type&&l.data===r.data)return i(l,0,1);if(!1===i(r,c+a,u))return}c+=a,s=""}else s+=p}return""!==s?i(l,0,1):void 0},t.encodePayloadAsBinary=function(e,t){if(!e.length)return t(u);d(e,v,function(e,n){return t(Buffer.concat(n))})},t.decodePayloadAsBinary=function(e,n,i){"function"==typeof n&&(i=n,n=null);for(var a,o=e,r=[];o.length>0;){var s="",c=0===o[0];for(a=1;255!==o[a];a++){if(s.length>310)return i(l,0,1);s+=""+o[a]}o=o.slice(s.length+1);var u=parseInt(s,10),p=o.slice(1,u+1);c&&(p=f(p)),r.push(p),o=o.slice(u+1)}var d=r.length;for(a=0;a<d;a++){var h=r[a];i(t.decodePacket(h,n,!0),a,d)}}},function(e,t,n){"use strict";const i=n(179),a=n(44),o=n(27),{kStatusCode:r,NOOP:s}=n(13),c=Buffer.from([0,0,255,255]),l=Buffer.from([0]),u=Symbol("permessage-deflate"),p=Symbol("total-length"),d=Symbol("callback"),f=Symbol("buffers"),h=Symbol("error");let m;function v(e){this[f].push(e),this[p]+=e.length}function g(e){this[p]+=e.length,this[u]._maxPayload<1||this[p]<=this[u]._maxPayload?this[f].push(e):(this[h]=new RangeError("Max payload size exceeded"),this[h][r]=1009,this.removeListener("data",g),this.reset())}function b(e){this[u]._inflate=null,e[r]=1007,this[d](e)}e.exports=class{constructor(e,t,n){if(this._maxPayload=0|n,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,!m){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;m=new i({concurrency: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(){this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate&&(this._deflate[d]&&this._deflate[d](),this._deflate.close(),this._deflate=null)}acceptAsServer(e){const t=this._options,n=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(!n)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(n.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?n.client_max_window_bits=t.clientMaxWindowBits:!0!==n.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete n.client_max_window_bits,n}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 n=e[t];if(n.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(n=n[0],"client_max_window_bits"===t){if(!0!==n){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}else if("server_max_window_bits"===t){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}e[t]=n})}),e}decompress(e,t,n){m.push(i=>{this._decompress(e,t,(e,t)=>{i(),n(e,t)})})}compress(e,t,n){m.push(i=>{this._compress(e,t,(e,t)=>{i(),(e||t)&&n(e,t)})})}_decompress(e,t,n){const i=this._isServer?"client":"server";if(!this._inflate){const e=`${i}_max_window_bits`,t="number"!=typeof this.params[e]?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=a.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[u]=this,this._inflate[p]=0,this._inflate[f]=[],this._inflate.on("error",b),this._inflate.on("data",g)}this._inflate[d]=n,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 n(e);const a=o.concat(this._inflate[f],this._inflate[p]);t&&this.params[`${i}_no_context_takeover`]?(this._inflate.close(),this._inflate=null):(this._inflate[p]=0,this._inflate[f]=[]),n(null,a)})}_compress(e,t,n){if(!e||0===e.length)return void process.nextTick(n,null,l);const i=this._isServer?"server":"client";if(!this._deflate){const e=`${i}_max_window_bits`,t="number"!=typeof this.params[e]?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=a.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[p]=0,this._deflate[f]=[],this._deflate.on("error",s),this._deflate.on("data",v)}this._deflate[d]=n,this._deflate.write(e),this._deflate.flush(a.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=o.concat(this._deflate[f],this._deflate[p]);t&&(e=e.slice(0,e.length-4)),this._deflate[d]=null,t&&this.params[`${i}_no_context_takeover`]?(this._deflate.close(),this._deflate=null):(this._deflate[p]=0,this._deflate[f]=[]),n(null,e)})}}},function(e,t,n){"use strict";const{EMPTY_BUFFER:i}=n(13);function a(e,t){if(0===e.length)return i;if(1===e.length)return e[0];const n=Buffer.allocUnsafe(t);let a=0;for(let t=0;t<e.length;t++){const i=e[t];n.set(i,a),a+=i.length}return a<t?n.slice(0,a):n}function o(e,t,n,i,a){for(let o=0;o<a;o++)n[i+o]=e[o]^t[3&o]}function r(e,t){const n=e.length;for(let i=0;i<n;i++)e[i]^=t[3&i]}function s(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function c(e){if(c.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=Buffer.from(e):ArrayBuffer.isView(e)?t=function(e){const t=Buffer.from(e.buffer);if(e.byteLength!==e.buffer.byteLength)return t.slice(e.byteOffset,e.byteOffset+e.byteLength);return t}(e):(t=Buffer.from(e),c.readOnly=!1),t}try{const t=n(!function(){var e=new Error("Cannot find module 'bufferutil'");throw e.code="MODULE_NOT_FOUND",e}()),i=t.BufferUtil||t;e.exports={concat:a,mask(e,t,n,a,r){r<48?o(e,t,n,a,r):i.mask(e,t,n,a,r)},toArrayBuffer:s,toBuffer:c,unmask(e,t){e.length<32?r(e,t):i.unmask(e,t)}}}catch(t){e.exports={concat:a,mask:o,toArrayBuffer:s,toBuffer:c,unmask:r}}},function(e,t,n){var i=n(6)("socket.io-parser"),a=n(185),o=n(186),r=n(42),s=n(84);function c(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=c,t.Decoder=p;var l=t.ERROR+'"encode error"';function u(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var a=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===a)return l;n+=a}return i("encoded %j as %s",e,n),n}function p(){this.reconstructor=null}function d(e){this.reconPack=e,this.buffers=[]}function f(e){return{type:t.ERROR,data:"parser error: "+e}}c.prototype.encode=function(e,n){(i("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)?function(e,t){o.removeBlobs(e,function(e){var n=o.deconstructPacket(e),i=u(n.packet),a=n.buffers;a.unshift(i),t(a)})}(e,n):n([u(e)])},a(p.prototype),p.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,a={type:Number(e.charAt(0))};if(null==t.types[a.type])return f("unknown packet type "+a.type);if(t.BINARY_EVENT===a.type||t.BINARY_ACK===a.type){for(var o="";"-"!==e.charAt(++n)&&(o+=e.charAt(n),n!=e.length););if(o!=Number(o)||"-"!==e.charAt(n))throw new Error("Illegal attachments");a.attachments=Number(o)}if("/"===e.charAt(n+1))for(a.nsp="";++n;){var s=e.charAt(n);if(","===s)break;if(a.nsp+=s,n===e.length)break}else a.nsp="/";var c=e.charAt(n+1);if(""!==c&&Number(c)==c){for(a.id="";++n;){var s=e.charAt(n);if(null==s||Number(s)!=s){--n;break}if(a.id+=e.charAt(n),n===e.length)break}a.id=Number(a.id)}if(e.charAt(++n)){var l=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(n)),u=!1!==l&&(a.type===t.ERROR||r(l));if(!u)return f("invalid payload");a.data=l}return i("decoded %s as %j",e,a),a}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new d(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!s(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},d.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},d.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){"use strict";const i=n(30),{LEVEL:a,MESSAGE:o}=n(0);i.enabled=!0;const r=/\s+/;class s{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){const t=Object.keys(e).reduce((t,n)=>(t[n]=r.test(e[n])?e[n].split(r):e[n],t),{});return s.allColors=Object.assign({},s.allColors||{},t),s.allColors}addColors(e){return s.addColors(e)}colorize(e,t,n){if(void 0===n&&(n=t),!Array.isArray(s.allColors[e]))return i[s.allColors[e]](n);for(let t=0,a=s.allColors[e].length;t<a;t++)n=i[s.allColors[e][t]](n);return n}transform(e,t){return t.all&&"string"==typeof e[o]&&(e[o]=this.colorize(e[a],e.level,e[o])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[a],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[a],e.level,e.message)),e}}e.exports=(e=>new s(e)),e.exports.Colorizer=e.exports.Format=s},function(e,t,n){var i=n(193);e.exports=i},function(e,t,n){"use strict";var i=n(22).Colorizer;e.exports=function(e){return i.addColors(e.colors||e),e}},function(e,t,n){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=n(0),r=o.configs,s=o.LEVEL,c=o.MESSAGE,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{levels:r.npm.levels};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.paddings=e.paddingForLevels(t.levels,t.filler),this.options=t}var t,n,o;return t=e,o=[{key:"getLongestLevel",value:function(e){var t=Object.keys(e).map(function(e){return e.length});return Math.max.apply(Math,i(t))}},{key:"paddingForLevel",value:function(e,t,n){var i=n+1-e.length,a=Math.floor(i/t.length);return"".concat(t).concat(t.repeat(a)).slice(0,i)}},{key:"paddingForLevels",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",i=e.getLongestLevel(t);return Object.keys(t).reduce(function(t,a){return t[a]=e.paddingForLevel(a,n,i),t},{})}}],(n=[{key:"transform",value:function(e,t){return e.message="".concat(this.paddings[e[s]]).concat(e.message),e[c]&&(e[c]="".concat(this.paddings[e[s]]).concat(e[c])),e}}])&&a(t.prototype,n),o&&a(t,o),e}();e.exports=function(e){return new l(e)},e.exports.Padder=e.exports.Format=l},function(e,t,n){"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,r=arguments.length;switch(r){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,n)});case 4:return process.nextTick(function(){e.call(null,t,n,i)});default:for(a=new Array(r-1),o=0;o<a.length;)a[o++]=arguments[o];return process.nextTick(function(){e.apply(null,a)})}}}:e.exports=process},function(e,t,n){"use strict";var i=n(33),a=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=p;var o=n(62);o.inherits=n(11);var r=n(223),s=n(104);o.inherits(p,r);for(var c=a(s.prototype),l=0;l<c.length;l++){var u=c[l];p.prototype[u]||(p.prototype[u]=s.prototype[u])}function p(e){if(!(this instanceof p))return new p(e);r.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||i.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{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)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},function(e,t,n){var i=n(230),a=n(113);e.exports=function(e){return null!=e&&a(e.length)&&!i(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=void 0;var i,a=n(233),o=(i=a)&&i.__esModule?i:{default:i};var r="function"==typeof Symbol;function s(e){return r&&"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){return s(e)?(0,o.default)(e):e},t.isAsync=s},function(e,t,n){"use strict";var i=n(263),a=n(273),o=n(275),r=n(1),s=n(76).isatty(1),c=process.stdout;function l(e,t){return a(e)?((t=t||{}).colors="colors"in t?t.colors:s,t.ansi=t.colors?o(e,i(e)):e,t.stream=t.stream||c,Array.isArray(t.stream)||(t.stream=[t.stream]),function(e){e instanceof Error&&(e=e.stack||e.message||e),e=[t.ansi," ",e].join(""),e=r.format.apply(this,[e].concat(Array.prototype.slice.call(arguments,1)))+"\n",t.stream.forEach(function(t){t.write(e)})}):function(){}}l.to=function(e){return c=e,l},e.exports=l},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var i=n(4).EventEmitter,a=n(25),o=n(1),r=n(6)("engine:transport");function s(){}function c(e){this.readyState="open",this.discarded=!1}e.exports=c,o.inherits(c,i),c.prototype.discard=function(){this.discarded=!0},c.prototype.onRequest=function(e){r("setting request"),this.req=e},c.prototype.close=function(e){"closed"!==this.readyState&&"closing"!==this.readyState&&(this.readyState="closing",this.doClose(e||s))},c.prototype.onError=function(e,t){if(this.listeners("error").length){var n=new Error(e);n.type="TransportError",n.description=t,this.emit("error",n)}else r("ignored transport error %s (%s)",e,t)},c.prototype.onPacket=function(e){this.emit("packet",e)},c.prototype.onData=function(e){this.onPacket(a.decodePacket(e))},c.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){var i=n(42),a=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);e.exports=function e(t){if(!t||"object"!=typeof t)return!1;if(i(t)){for(var n=0,a=t.length;n<a;n++)if(e(t[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||o&&t instanceof Blob||r&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e(t[s]))return!0;return!1}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n=1e3,i=60*n,a=60*i,o=24*a,r=7*o,s=365.25*o;function c(e,t,n,i){var a=t>=1.5*n;return Math.round(e/n)+" "+i+(a?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\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(!t)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*r;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*a;case"minutes":case"minute":case"mins":case"min":case"m":return c*i;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return c(e,t,o,"day");if(t>=a)return c(e,t,a,"hour");if(t>=i)return c(e,t,i,"minute");if(t>=n)return c(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=i)return Math.round(e/i)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){e.exports=require("zlib")},function(e,t){e.exports=require("net")},function(e,t,n){"use strict";const{Colorizer:i}=n(29);e.exports=(e=>(i.addColors(e.colors||e),e))},function(e,t,n){"use strict";const{configs:i,LEVEL:a,MESSAGE:o}=n(0);class r{constructor(e={levels:i.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,n){const i=n+1-e.length,a=Math.floor(i/t.length);return`${t}${t.repeat(a)}`.slice(0,i)}static paddingForLevels(e,t=" "){const n=r.getLongestLevel(e);return Object.keys(e).reduce((e,i)=>(e[i]=r.paddingForLevel(i,t,n),e),{})}transform(e,t){return e.message=`${this.paddings[e[a]]}${e.message}`,e[o]&&(e[o]=`${this.paddings[e[a]]}${e[o]}`),e}}e.exports=(e=>new r(e)),e.exports.Padder=e.exports.Format=r},function(e,t,n){"use strict";const i=n(3),{MESSAGE:a}=n(0),o=n(15);function r(e,t){return t instanceof Buffer?t.toString("base64"):t}e.exports=i((e,t={})=>(e[a]=o(e,t.replacer||r,t.space),e))},function(e,t,n){"use strict";var i=n(2);e.exports=i(function(e){return e.message="\t".concat(e.message),e})},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=n(22).Colorizer,o=n(32).Padder,r=n(0),s=r.configs,c=r.MESSAGE,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.levels||(t.levels=s.npm.levels),this.colorizer=new a(t),this.padder=new o(t),this.options=t}var t,n,r;return t=e,(n=[{key:"transform",value:function(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[c]="".concat(e.level,":").concat(e.message),e}}])&&i(t.prototype,n),r&&i(t,r),e}();e.exports=function(e){return new l(e)},e.exports.Format=l},function(e,t,n){"use strict";var i=n(2);function a(e){if(e.every(o))return function(t){for(var n=t,i=0;i<e.length;i++)if(!(n=e[i].transform(n,e[i].options)))return!1;return n}}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=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=i(a(t)),r=o();return r.Format=o.Format,r},e.exports.cascade=a},function(e,t,n){"use strict";var i=n(2),a=n(0).MESSAGE,o=n(15);function r(e,t){return t instanceof Buffer?t.toString("base64"):t}e.exports=i(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e[a]=o(e,t.replacer||r,t.space),e})},function(e,t,n){"use strict";var i=n(2);e.exports=i(function(e,t){return t.message?(e.message="[".concat(t.label,"] ").concat(e.message),e):(e.label=t.label,e)})},function(e,t,n){"use strict";var i=n(2),a=n(0).MESSAGE,o=n(15);e.exports=i(function(e){var t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[a]=o(t),e})},function(e,t,n){"use strict";var i=n(2);function a(e,t,n){var i,a,o,r=t.reduce(function(t,n){return t[n]=e[n],delete e[n],t},{}),s=Object.keys(e).reduce(function(t,n){return t[n]=e[n],delete e[n],t},{});return Object.assign(e,r,(o=s,(a=n)in(i={})?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o,i)),e}e.exports=i(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="metadata";t.key&&(n=t.key);var i=[];return t.fillExcept||t.fillWith||(i.push("level"),i.push("message")),t.fillExcept&&(i=t.fillExcept),i.length>0?a(e,i,n):t.fillWith?function(e,t,n){return e[n]=t.reduce(function(t,n){return t[n]=e[n],delete e[n],t},{}),e}(e,t.fillWith,n):e})},function(e,t,n){"use strict";var i=n(1).inspect,a=n(2),o=n(0),r=o.LEVEL,s=o.MESSAGE,c=o.SPLAT;e.exports=a(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e);return delete n[r],delete n[s],delete n[c],e[s]=i(n,!1,t.depth||null,t.colorize),e})},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=n(0).MESSAGE,o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.template=t}var t,n,o;return t=e,(n=[{key:"transform",value:function(e){return e[a]=this.template(e),e}}])&&i(t.prototype,n),o&&i(t,o),e}();e.exports=function(e){return new o(e)},e.exports.Printf=e.exports.Format=o},function(e,t,n){"use strict";var i=n(2),a=n(0).MESSAGE,o=n(15);e.exports=i(function(e){var t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),n=e.padding&&e.padding[e.level]||"";return e[a]="{}"!==t?"".concat(e.level,":").concat(n," ").concat(e.message," ").concat(t):"".concat(e.level,":").concat(n," ").concat(e.message),e})},function(e,t,n){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=n(1),r=n(0).SPLAT,s=/%[scdjifoO%]/g,c=/%%/g,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}var t,n,l;return t=e,(n=[{key:"_splat",value:function(e,t){var n=e.message,a=e[r]||e.splat||[],s=n.match(c),l=s&&s.length||0,u=t.length-l-a.length,p=u<0?a.splice(u,-1*u):[],d=p.length;if(d)for(var f=0;f<d;f++)Object.assign(e,p[f]);return e.message=o.format.apply(o,[n].concat(i(a))),e}},{key:"transform",value:function(e){var t=e.message,n=e[r]||e.splat;if(!n||!n.length)return e;var i=t&&t.match&&t.match(s);if(!i&&(n||n.length)){var a=n.length>1?n.splice(0):n,o=a.length;if(o)for(var c=0;c<o;c++)Object.assign(e,a[c]);return e}return i?this._splat(e,i):e}}])&&a(t.prototype,n),l&&a(t,l),e}();e.exports=function(e){return new l(e)}},function(e,t,n){"use strict";var i=n(97),a=n(2);e.exports=a(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.format&&(e.timestamp="function"==typeof t.format?t.format():i.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e})},function(e,t,n){"use strict";var i=n(30),a=n(2),o=n(0).MESSAGE;e.exports=a(function(e,t){return!1!==t.level&&(e.level=i.strip(e.level)),!1!==t.message&&(e.message=i.strip(e.message)),!1!==t.raw&&e[o]&&(e[o]=i.strip(e[o])),e})},function(e,t){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=Buffer.isBuffer},function(e,t,n){var i=n(17),a=i.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function r(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=r),o(a,r),r.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},r.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=a(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t){e.exports=function(){}},function(e,t,n){var i=n(109),a=n(231),o=n(232),r="[object Null]",s="[object Undefined]",c=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:r:c&&c in Object(e)?a(e):o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t|=0;for(var n=Math.max(e.length-t,0),i=Array(n),a=0;a<n;a++)i[a]=e[t+a];return i},e.exports=t.default},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var i=n(18).codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];e.apply(this,i)}}}(o||a);var r=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,r||o.call(t)},p=t._readableState&&t._readableState.endEmitted,d=function(){r=!1,p=!0,s||o.call(t)},f=function(e){o.call(t,e)},h=function(){var e;return r&&!p?(t._readableState&&t._readableState.ended||(e=new i),o.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new i),o.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",h),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",d),t.on("finish",u),!1!==n.error&&t.on("error",f),t.on("close",h),function(){t.removeListener("complete",u),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",d),t.removeListener("error",f),t.removeListener("close",h)}}},function(e,t,n){"use strict";const i=n(7),{configs:a}=n(0);t.cli=i.levels(a.cli),t.npm=i.levels(a.npm),t.syslog=i.levels(a.syslog),t.addColors=i.levels},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,i.default)(e,(0,a.default)((0,o.default)(t)),n)};var i=r(n(283)),a=r(n(284)),o=r(n(36));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t){e.exports={compositeAPIObjToEvent(e){let t=`${e.api}:${e.version}:${e.method}`;return e.customEvent&&(t+=`:${e.customEvent}`),t},compositeSDKToEvent:e=>`SDK:${e}`,isGroup:e=>"@"===e.charAt(0),uuid:()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}},function(e,t){e.exports=require("querystring")},function(e,t,n){var i=n(146),a=n(163);e.exports=t={polling:function(e){return"string"==typeof e._query.j?new a(e):new i(e)},websocket:n(164)},t.polling.upgradesTo=["websocket"]},function(e,t,n){var i=n(40),a=n(25),o=n(44),r=n(154),s=n(1),c=n(6)("engine:polling"),l={gzip:o.createGzip,deflate:o.createDeflate};function u(e){i.call(this,e),this.closeTimeout=3e4,this.maxHttpBufferSize=null,this.httpCompression=null}e.exports=u,s.inherits(u,i),u.prototype.name="polling",u.prototype.onRequest=function(e){var t=e.res;"GET"===e.method?this.onPollRequest(e,t):"POST"===e.method?this.onDataRequest(e,t):(t.writeHead(500),t.end())},u.prototype.onPollRequest=function(e,t){if(this.req)return c("request overlap"),this.onError("overlap from client"),t.writeHead(500),void t.end();c("setting request"),this.req=e,this.res=t;var n=this;function i(){n.onError("poll connection closed prematurely")}e.cleanup=function(){e.removeListener("close",i),n.req=n.res=null},e.on("close",i),this.writable=!0,this.emit("drain"),this.writable&&this.shouldClose&&(c("triggering empty send to append close packet"),this.send([{type:"noop"}]))},u.prototype.onDataRequest=function(e,t){if(this.dataReq)return this.onError("data request overlap from client"),t.writeHead(500),void t.end();var n="application/octet-stream"===e.headers["content-type"];this.dataReq=e,this.dataRes=t;var i=n?Buffer.concat([]):"",a=this;function o(){e.removeListener("data",s),e.removeListener("end",c),e.removeListener("close",r),a.dataReq=a.dataRes=i=null}function r(){o(),a.onError("data request connection closed prematurely")}function s(t){var o;n?o=(i=Buffer.concat([i,t])).length:(i+=t,o=Buffer.byteLength(i)),o>a.maxHttpBufferSize&&(i=n?Buffer.concat([]):"",e.connection.destroy())}function c(){a.onData(i);t.writeHead(200,a.headers(e,{"Content-Type":"text/html","Content-Length":2})),t.end("ok"),o()}e.on("close",r),n||e.setEncoding("utf8"),e.on("data",s),e.on("end",c)},u.prototype.onData=function(e){c('received "%s"',e);var t=this;a.decodePayload(e,function(e){if("close"===e.type)return c("got xhr close packet"),t.onClose(),!1;t.onPacket(e)})},u.prototype.onClose=function(){this.writable&&this.send([{type:"noop"}]),i.prototype.onClose.call(this)},u.prototype.send=function(e){this.writable=!1,this.shouldClose&&(c("appending close packet to payload"),e.push({type:"close"}),this.shouldClose(),this.shouldClose=null);var t=this;a.encodePayload(e,this.supportsBinary,function(n){var i=e.some(function(e){return e.options&&e.options.compress});t.write(n,{compress:i})})},u.prototype.write=function(e,t){c('writing "%s"',e);var n=this;this.doWrite(e,t,function(){n.req.cleanup()})},u.prototype.doWrite=function(e,t,n){var i=this,a="string"==typeof e,o={"Content-Type":a?"text/plain; charset=UTF-8":"application/octet-stream"};if(this.httpCompression&&t.compress)if((a?Buffer.byteLength(e):e.length)<this.httpCompression.threshold)c(e);else{var s=r(this.req).encodings(["gzip","deflate"]);s?this.compress(e,s,function(e,t){if(e)return i.res.writeHead(500),i.res.end(),void n(e);o["Content-Encoding"]=s,c(t)}):c(e)}else c(e);function c(e){o["Content-Length"]="string"==typeof e?Buffer.byteLength(e):e.length,i.res.writeHead(200,i.headers(i.req,o)),i.res.end(e),n()}},u.prototype.compress=function(e,t,n){c("compressing");var i=[],a=0;l[t](this.httpCompression).on("error",n).on("data",function(e){i.push(e),a+=e.length}).on("end",function(){n(null,Buffer.concat(i,a))}).end(e)},u.prototype.doClose=function(e){c("closing");var t,n=this;function i(){clearTimeout(t),e(),n.onClose()}this.dataReq&&(c("aborting ongoing data request"),this.dataReq.destroy()),this.writable?(c("transport writable - closing right away"),this.send([{type:"close"}]),i()):this.discarded?(c("transport discarded - closing right away"),i()):(c("transport not writable - buffering orderly close"),this.shouldClose=i,t=setTimeout(i,this.closeTimeout))},u.prototype.headers=function(e,t){t=t||{};var n=e.headers["user-agent"];return n&&(~n.indexOf(";MSIE")||~n.indexOf("Trident/"))&&(t["X-XSS-Protection"]="0"),this.emit("headers",t),t}},function(e,t,n){e.exports=function(e){function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){let n;function r(...e){if(!r.enabled)return;const t=r,a=Number(new Date),o=a-(n||a);t.diff=o,t.prev=n,t.curr=a,n=a,e[0]=i.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return n;s++;const o=i.formatters[a];if("function"==typeof o){const i=e[s];n=o.call(t,i),e.splice(s,1),s--}return n}),i.formatArgs.call(t,e),(t.log||i.log).apply(t,e)}return r.namespace=e,r.enabled=i.enabled(e),r.useColors=i.useColors(),r.color=t(e),r.destroy=a,r.extend=o,"function"==typeof i.init&&i.init(r),i.instances.push(r),r}function a(){const e=i.instances.indexOf(this);return-1!==e&&(i.instances.splice(e,1),!0)}function o(e,t){const n=i(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){const e=[...i.names.map(r),...i.skips.map(r).map(e=>"-"+e)].join(",");return i.enable(""),e},i.enable=function(e){let t;i.save(e),i.names=[],i.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(t=0;t<a;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(t=0;t<i.instances.length;t++){const e=i.instances[t];e.enabled=i.enabled(e.namespace)}},i.enabled=function(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1},i.humanize=n(43),Object.keys(e).forEach(t=>{i[t]=e[t]}),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}},function(e,t){e.exports=require("tty")},function(e,t,n){var i=n(4).EventEmitter,a=n(1),o=n(6)("engine:socket");function r(e,t,n,i){this.id=e,this.server=t,this.upgrading=!1,this.upgraded=!1,this.readyState="opening",this.writeBuffer=[],this.packetsFn=[],this.sentCallbackFn=[],this.cleanupFn=[],this.request=i,i.websocket&&i.websocket._socket?this.remoteAddress=i.websocket._socket.remoteAddress:this.remoteAddress=i.connection.remoteAddress,this.checkIntervalTimer=null,this.upgradeTimeoutTimer=null,this.pingTimeoutTimer=null,this.setTransport(n),this.onOpen()}e.exports=r,a.inherits(r,i),r.prototype.onOpen=function(){this.readyState="open",this.transport.sid=this.id,this.sendPacket("open",JSON.stringify({sid:this.id,upgrades:this.getAvailableUpgrades(),pingInterval:this.server.pingInterval,pingTimeout:this.server.pingTimeout})),this.server.initialPacket&&this.sendPacket("message",this.server.initialPacket),this.emit("open"),this.setPingTimeout()},r.prototype.onPacket=function(e){if("open"===this.readyState)switch(o("packet"),this.emit("packet",e),this.setPingTimeout(),e.type){case"ping":o("got ping"),this.sendPacket("pong"),this.emit("heartbeat");break;case"error":this.onClose("parse error");break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else o("packet received with closed socket")},r.prototype.onError=function(e){o("transport error"),this.onClose("transport error",e)},r.prototype.setPingTimeout=function(){var e=this;clearTimeout(e.pingTimeoutTimer),e.pingTimeoutTimer=setTimeout(function(){e.onClose("ping timeout")},e.server.pingInterval+e.server.pingTimeout)},r.prototype.setTransport=function(e){var t=this.onError.bind(this),n=this.onPacket.bind(this),i=this.flush.bind(this),a=this.onClose.bind(this,"transport close");this.transport=e,this.transport.once("error",t),this.transport.on("packet",n),this.transport.on("drain",i),this.transport.once("close",a),this.setupSendCallback(),this.cleanupFn.push(function(){e.removeListener("error",t),e.removeListener("packet",n),e.removeListener("drain",i),e.removeListener("close",a)})},r.prototype.maybeUpgrade=function(e){o('might upgrade socket transport from "%s" to "%s"',this.transport.name,e.name),this.upgrading=!0;var t=this;function n(n){"ping"===n.type&&"probe"===n.data?(e.send([{type:"pong",data:"probe"}]),t.emit("upgrading",e),clearInterval(t.checkIntervalTimer),t.checkIntervalTimer=setInterval(i,100)):"upgrade"===n.type&&"closed"!==t.readyState?(o("got upgrade packet - upgrading"),a(),t.transport.discard(),t.upgraded=!0,t.clearTransport(),t.setTransport(e),t.emit("upgrade",e),t.setPingTimeout(),t.flush(),"closing"===t.readyState&&e.close(function(){t.onClose("forced close")})):(a(),e.close())}function i(){"polling"===t.transport.name&&t.transport.writable&&(o("writing a noop packet to polling for fast upgrade"),t.transport.send([{type:"noop"}]))}function a(){t.upgrading=!1,clearInterval(t.checkIntervalTimer),t.checkIntervalTimer=null,clearTimeout(t.upgradeTimeoutTimer),t.upgradeTimeoutTimer=null,e.removeListener("packet",n),e.removeListener("close",s),e.removeListener("error",r),t.removeListener("close",c)}function r(t){o("client did not complete upgrade - %s",t),a(),e.close(),e=null}function s(){r("transport closed")}function c(){r("socket closed")}t.upgradeTimeoutTimer=setTimeout(function(){o("client did not complete upgrade - closing transport"),a(),"open"===e.readyState&&e.close()},this.server.upgradeTimeout),e.on("packet",n),e.once("close",s),e.once("error",r),t.once("close",c)},r.prototype.clearTransport=function(){for(var e=this.cleanupFn.length,t=0;t<e;t++)this.cleanupFn.shift()();this.transport.on("error",function(){o("error triggered by discarded transport")}),this.transport.close(),clearTimeout(this.pingTimeoutTimer)},r.prototype.onClose=function(e,t){if("closed"!==this.readyState){this.readyState="closed",clearTimeout(this.pingTimeoutTimer),clearInterval(this.checkIntervalTimer),this.checkIntervalTimer=null,clearTimeout(this.upgradeTimeoutTimer);var n=this;process.nextTick(function(){n.writeBuffer=[]}),this.packetsFn=[],this.sentCallbackFn=[],this.clearTransport(),this.emit("close",e,t)}},r.prototype.setupSendCallback=function(){var e=this;function t(){if(e.sentCallbackFn.length>0){var t=e.sentCallbackFn.splice(0,1)[0];if("function"==typeof t)o("executing send callback"),t(e.transport);else if(Array.isArray(t)){o("executing batch send callback");for(var n=t.length,i=0;i<n;i++)"function"==typeof t[i]&&t[i](e.transport)}}}this.transport.on("drain",t),this.cleanupFn.push(function(){e.transport.removeListener("drain",t)})},r.prototype.send=r.prototype.write=function(e,t,n){return this.sendPacket("message",e,t,n),this},r.prototype.sendPacket=function(e,t,n,i){if("function"==typeof n&&(i=n,n=null),(n=n||{}).compress=!1!==n.compress,"closing"!==this.readyState&&"closed"!==this.readyState){o('sending packet "%s" (%s)',e,t);var a={type:e,options:n};t&&(a.data=t),this.emit("packetCreate",a),this.writeBuffer.push(a),i&&this.packetsFn.push(i),this.flush()}},r.prototype.flush=function(){if("closed"!==this.readyState&&this.transport.writable&&this.writeBuffer.length){o("flushing buffer to transport"),this.emit("flush",this.writeBuffer),this.server.emit("flush",this,this.writeBuffer);var 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)}},r.prototype.getAvailableUpgrades=function(){for(var e=[],t=this.server.upgrades(this.transport.name),n=0,i=t.length;n<i;++n){var a=t[n];-1!==this.server.transports.indexOf(a)&&e.push(a)}return e},r.prototype.close=function(e){"open"===this.readyState&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",this.closeTransport.bind(this,e)):this.closeTransport(e))},r.prototype.closeTransport=function(e){e&&this.transport.discard(),this.transport.close(this.onClose.bind(this,"forced close"))}},function(e,t,n){"use strict";const i=n(4),a=n(79),o=n(12),r=n(45),s=n(178),{randomBytes:c,createHash:l}=n(20),{URL:u}=n(21),p=n(26),d=n(80),f=n(82),{BINARY_TYPES:h,EMPTY_BUFFER:m,GUID:v,kStatusCode:g,kWebSocket:b,NOOP:x}=n(13),{addEventListener:y,removeEventListener:w}=n(180),{format:_,parse:k}=n(83),{toBuffer:E}=n(27),S=["CONNECTING","OPEN","CLOSING","CLOSED"],C=[8,13],j=3e4;class O extends i{constructor(e,t,n){super(),this.readyState=O.CONNECTING,this.protocol="",this._binaryType=h[0],this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage="",this._closeTimer=null,this._closeCode=1006,this._extensions={},this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,Array.isArray(t)?t=t.join(", "):"object"==typeof t&&null!==t&&(n=t,t=void 0),function e(t,n,i,r){const s={protocolVersion:C[1],maxPayload:104857600,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:void 0,auth:void 0,host:void 0,path:void 0,port:void 0};if(!C.includes(s.protocolVersion))throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} `+`(supported versions: ${C.join(", ")})`);let d;n instanceof u?(d=n,t.url=n.href):(d=new u(n),t.url=n);const f="ws+unix:"===d.protocol;if(!(d.host||f&&d.pathname))throw new Error(`Invalid URL: ${t.url}`);const h="wss:"===d.protocol||"https:"===d.protocol;const m=h?443:80;const g=c(16).toString("base64");const b=h?a.get:o.get;let x;s.createConnection=h?A:F;s.defaultPort=s.defaultPort||m;s.port=d.port||m;s.host=d.hostname.startsWith("[")?d.hostname.slice(1,-1):d.hostname;s.headers={"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":g,Connection:"Upgrade",Upgrade:"websocket",...s.headers};s.path=d.pathname+d.search;s.timeout=s.handshakeTimeout;s.perMessageDeflate&&(x=new p(!0!==s.perMessageDeflate?s.perMessageDeflate:{},!1,s.maxPayload),s.headers["Sec-WebSocket-Extensions"]=_({[p.extensionName]:x.offer()}));i&&(s.headers["Sec-WebSocket-Protocol"]=i);s.origin&&(s.protocolVersion<13?s.headers["Sec-WebSocket-Origin"]=s.origin:s.headers.Origin=s.origin);(d.username||d.password)&&(s.auth=`${d.username}:${d.password}`);if(f){const e=s.path.split(":");s.socketPath=e[0],s.path=e[1]}let y=t._req=b(s);s.timeout&&y.on("timeout",()=>{T(t,y,"Opening handshake has timed out")});y.on("error",e=>{t._req.aborted||(y=t._req=null,t.readyState=O.CLOSING,t.emit("error",e),t.emitClose())});y.on("response",a=>{const o=a.headers.location,c=a.statusCode;if(o&&s.followRedirects&&c>=300&&c<400){if(++t._redirects>s.maxRedirects)return void T(t,y,"Maximum redirects exceeded");y.abort();const a=new u(o,n);e(t,a,i,r)}else t.emit("unexpected-response",y,a)||T(t,y,`Unexpected server response: ${a.statusCode}`)});y.on("upgrade",(e,n,a)=>{if(t.emit("upgrade",e),t.readyState!==O.CONNECTING)return;y=t._req=null;const o=l("sha1").update(g+v).digest("base64");if(e.headers["sec-websocket-accept"]!==o)return void T(t,n,"Invalid Sec-WebSocket-Accept header");const r=e.headers["sec-websocket-protocol"],c=(i||"").split(/, */);let u;if(!i&&r?u="Server sent a subprotocol but none was requested":i&&!r?u="Server sent no subprotocol":r&&!c.includes(r)&&(u="Server sent an invalid subprotocol"),u)T(t,n,u);else{if(r&&(t.protocol=r),x)try{const i=k(e.headers["sec-websocket-extensions"]);i[p.extensionName]&&(x.accept(i[p.extensionName]),t._extensions[p.extensionName]=x)}catch(e){return void T(t,n,"Invalid Sec-WebSocket-Extensions header")}t.setSocket(n,a,s.maxPayload)}})}(this,e,t,n)):this._isServer=!0}get CONNECTING(){return O.CONNECTING}get CLOSING(){return O.CLOSING}get CLOSED(){return O.CLOSED}get OPEN(){return O.OPEN}get binaryType(){return this._binaryType}set binaryType(e){h.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?(this._socket.bufferSize||0)+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}setSocket(e,t,n){const i=new d(this._binaryType,this._extensions,n);this._sender=new f(e,this._extensions),this._receiver=i,this._socket=e,i[b]=this,e[b]=this,i.on("conclude",B),i.on("drain",D),i.on("error",R),i.on("message",N),i.on("ping",L),i.on("pong",q),e.setTimeout(0),e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",I),e.on("data",U),e.on("end",z),e.on("error",$),this.readyState=O.OPEN,this.emit("open")}emitClose(){this.readyState=O.CLOSED,this._socket?(this._extensions[p.extensionName]&&this._extensions[p.extensionName].cleanup(),this._receiver.removeAllListeners(),this.emit("close",this._closeCode,this._closeMessage)):this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==O.CLOSED){if(this.readyState===O.CONNECTING){const e="WebSocket was closed before the connection was established";return T(this,this._req,e)}this.readyState!==O.CLOSING?(this.readyState=O.CLOSING,this._sender.close(e,t,!this._isServer,e=>{e||(this._closeFrameSent=!0,this._closeFrameReceived&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),j)):this._closeFrameSent&&this._closeFrameReceived&&this._socket.end()}}ping(e,t,n){if(this.readyState===O.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===O.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||m,t,n)):M(this,e,n)}pong(e,t,n){if(this.readyState===O.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===O.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||m,t,n)):M(this,e,n)}send(e,t,n){if(this.readyState===O.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==O.OPEN)return void M(this,e,n);const i={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[p.extensionName]||(i.compress=!1),this._sender.send(e||m,i,n)}terminate(){if(this.readyState!==O.CLOSED){if(this.readyState===O.CONNECTING){const e="WebSocket was closed before the connection was established";return T(this,this._req,e)}this._socket&&(this.readyState=O.CLOSING,this._socket.destroy())}}}function F(e){return e.path=e.socketPath,r.connect(e)}function A(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=e.host),s.connect(e)}function T(e,t,n){e.readyState=O.CLOSING;const i=new Error(n);Error.captureStackTrace(i,T),t.setHeader?(t.abort(),t.once("abort",e.emitClose.bind(e)),e.emit("error",i)):(t.destroy(i),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function M(e,t,n){if(t){const n=E(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){n(new Error(`WebSocket is not open: readyState ${e.readyState} `+`(${S[e.readyState]})`))}}function B(e,t){const n=this[b];n._socket.removeListener("data",U),n._socket.resume(),n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,1005===e?n.close():n.close(e,t)}function D(){this[b]._socket.resume()}function R(e){const t=this[b];t._socket.removeListener("data",U),t.readyState=O.CLOSING,t._closeCode=e[g],t.emit("error",e),t._socket.destroy()}function P(){this[b].emitClose()}function N(e){this[b].emit("message",e)}function L(e){const t=this[b];t.pong(e,!t._isServer,x),t.emit("ping",e)}function q(e){this[b].emit("pong",e)}function I(){const e=this[b];this.removeListener("close",I),this.removeListener("end",z),e.readyState=O.CLOSING,e._socket.read(),e._receiver.end(),this.removeListener("data",U),this[b]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",P),e._receiver.on("finish",P))}function U(e){this[b]._receiver.write(e)||this.pause()}function z(){const e=this[b];e.readyState=O.CLOSING,e._receiver.end(),this.end()}function $(){const e=this[b];this.removeListener("error",$),this.on("error",x),e&&(e.readyState=O.CLOSING,this.destroy())}S.forEach((e,t)=>{O[e]=t}),["open","error","close","message"].forEach(e=>{Object.defineProperty(O.prototype,`on${e}`,{get(){const t=this.listeners(e);for(let e=0;e<t.length;e++)if(t[e]._listener)return t[e]._listener},set(t){const n=this.listeners(e);for(let t=0;t<n.length;t++)n[t]._listener&&this.removeListener(e,n[t]);this.addEventListener(e,t)}})}),O.prototype.addEventListener=y,O.prototype.removeEventListener=w,e.exports=O},function(e,t){e.exports=require("https")},function(e,t,n){"use strict";const{Writable:i}=n(14),a=n(26),{BINARY_TYPES:o,EMPTY_BUFFER:r,kStatusCode:s,kWebSocket:c}=n(13),{concat:l,toArrayBuffer:u,unmask:p}=n(27),{isValidStatusCode:d,isValidUTF8:f}=n(81),h=0,m=1,v=2,g=3,b=4,x=5;function y(e,t,n,i){const a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,y),a[s]=i,a}e.exports=class extends i{constructor(e,t,n){super(),this._binaryType=e||o[0],this[c]=void 0,this._extensions=t||{},this._maxPayload=0|n,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._state=h,this._loop=!1}_write(e,t,n){if(8===this._opcode&&this._state==h)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}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]=t.slice(e),t.slice(0,e)}const t=Buffer.allocUnsafe(e);do{const n=this._buffers[0],i=t.length-e;e>=n.length?t.set(this._buffers.shift(),i):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),i),this._buffers[0]=n.slice(e)),e-=n.length}while(e>0);return t}startLoop(e){let t;this._loop=!0;do{switch(this._state){case h:t=this.getInfo();break;case m:t=this.getPayloadLength16();break;case v:t=this.getPayloadLength64();break;case g:this.getMask();break;case b:t=this.getData(e);break;default:return void(this._loop=!1)}}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2)return void(this._loop=!1);const e=this.consume(2);if(0!=(48&e[0]))return this._loop=!1,y(RangeError,"RSV2 and RSV3 must be clear",!0,1002);const t=64==(64&e[0]);if(t&&!this._extensions[a.extensionName])return this._loop=!1,y(RangeError,"RSV1 must be clear",!0,1002);if(this._fin=128==(128&e[0]),this._opcode=15&e[0],this._payloadLength=127&e[1],0===this._opcode){if(t)return this._loop=!1,y(RangeError,"RSV1 must be clear",!0,1002);if(!this._fragmented)return this._loop=!1,y(RangeError,"invalid opcode 0",!0,1002);this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented)return this._loop=!1,y(RangeError,`invalid opcode ${this._opcode}`,!0,1002);this._compressed=t}else{if(!(this._opcode>7&&this._opcode<11))return this._loop=!1,y(RangeError,`invalid opcode ${this._opcode}`,!0,1002);if(!this._fin)return this._loop=!1,y(RangeError,"FIN must be set",!0,1002);if(t)return this._loop=!1,y(RangeError,"RSV1 must be clear",!0,1002);if(this._payloadLength>125)return this._loop=!1,y(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002)}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=128==(128&e[1]),126===this._payloadLength)this._state=m;else{if(127!==this._payloadLength)return this.haveLength();this._state=v}}getPayloadLength16(){if(!(this._bufferedBytes<2))return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength();this._loop=!1}getPayloadLength64(){if(this._bufferedBytes<8)return void(this._loop=!1);const e=this.consume(8),t=e.readUInt32BE(0);return t>Math.pow(2,21)-1?(this._loop=!1,y(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009)):(this._payloadLength=t*Math.pow(2,32)+e.readUInt32BE(4),this.haveLength())}haveLength(){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0))return this._loop=!1,y(RangeError,"Max payload size exceeded",!1,1009);this._masked?this._state=g:this._state=b}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=b)}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&&p(t,this._mask)}return this._opcode>7?this.controlMessage(t):this._compressed?(this._state=x,void this.decompress(t,e)):(t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage())}decompress(e,t){this._extensions[a.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return t(y(RangeError,"Max payload size exceeded",!1,1009));this._fragments.push(n)}const i=this.dataMessage();if(i)return t(i);this.startLoop(t)})}dataMessage(){if(this._fin){const e=this._messageLength,t=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let n;n="nodebuffer"===this._binaryType?l(t,e):"arraybuffer"===this._binaryType?u(l(t,e)):t,this.emit("message",n)}else{const n=l(t,e);if(!f(n))return this._loop=!1,y(Error,"invalid UTF-8 sequence",!0,1007);this.emit("message",n.toString())}}this._state=h}controlMessage(e){if(8===this._opcode)if(this._loop=!1,0===e.length)this.emit("conclude",1005,""),this.end();else{if(1===e.length)return y(RangeError,"invalid payload length 1",!0,1002);{const t=e.readUInt16BE(0);if(!d(t))return y(RangeError,`invalid status code ${t}`,!0,1002);const n=e.slice(2);if(!f(n))return y(Error,"invalid UTF-8 sequence",!0,1007);this.emit("conclude",t,n.toString()),this.end()}}else 9===this._opcode?this.emit("ping",e):this.emit("pong",e);this._state=h}}},function(e,t,n){"use strict";try{const e=n(!function(){var e=new Error("Cannot find module 'utf-8-validate'");throw e.code="MODULE_NOT_FOUND",e}());t.isValidUTF8="object"==typeof e?e.Validation.isValidUTF8:e}catch(e){t.isValidUTF8=(()=>!0)}t.isValidStatusCode=(e=>e>=1e3&&e<=1013&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999)},function(e,t,n){"use strict";const{randomFillSync:i}=n(20),a=n(26),{EMPTY_BUFFER:o}=n(13),{isValidStatusCode:r}=n(81),{mask:s,toBuffer:c}=n(27),l=Buffer.alloc(4);class u{constructor(e,t){this._extensions=t||{},this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){const n=t.mask&&t.readOnly;let a=t.mask?6:2,o=e.length;e.length>=65536?(a+=8,o=127):e.length>125&&(a+=2,o=126);const r=Buffer.allocUnsafe(n?e.length+a:a);return r[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(r[0]|=64),r[1]=o,126===o?r.writeUInt16BE(e.length,2):127===o&&(r.writeUInt32BE(0,2),r.writeUInt32BE(e.length,6)),t.mask?(i(l,0,4),r[1]|=128,r[a-4]=l[0],r[a-3]=l[1],r[a-2]=l[2],r[a-1]=l[3],n?(s(e,l,r,a,e.length),[r]):(s(e,l,e,0,e.length),[r,e])):[r,e]}close(e,t,n,i){let a;if(void 0===e)a=o;else{if("number"!=typeof e||!r(e))throw new TypeError("First argument must be a valid error code number");void 0===t||""===t?(a=Buffer.allocUnsafe(2)).writeUInt16BE(e,0):((a=Buffer.allocUnsafe(2+Buffer.byteLength(t))).writeUInt16BE(e,0),a.write(t,2))}this._deflating?this.enqueue([this.doClose,a,n,i]):this.doClose(a,n,i)}doClose(e,t,n){this.sendFrame(u.frame(e,{fin:!0,rsv1:!1,opcode:8,mask:t,readOnly:!1}),n)}ping(e,t,n){const i=c(e);this._deflating?this.enqueue([this.doPing,i,t,c.readOnly,n]):this.doPing(i,t,c.readOnly,n)}doPing(e,t,n,i){this.sendFrame(u.frame(e,{fin:!0,rsv1:!1,opcode:9,mask:t,readOnly:n}),i)}pong(e,t,n){const i=c(e);this._deflating?this.enqueue([this.doPong,i,t,c.readOnly,n]):this.doPong(i,t,c.readOnly,n)}doPong(e,t,n,i){this.sendFrame(u.frame(e,{fin:!0,rsv1:!1,opcode:10,mask:t,readOnly:n}),i)}send(e,t,n){const i=c(e),o=this._extensions[a.extensionName];let r=t.binary?2:1,s=t.compress;if(this._firstFragment?(this._firstFragment=!1,s&&o&&(s=i.length>=o._threshold),this._compress=s):(s=!1,r=0),t.fin&&(this._firstFragment=!0),o){const e={fin:t.fin,rsv1:s,opcode:r,mask:t.mask,readOnly:c.readOnly};this._deflating?this.enqueue([this.dispatch,i,this._compress,e,n]):this.dispatch(i,this._compress,e,n)}else this.sendFrame(u.frame(i,{fin:t.fin,rsv1:!1,opcode:r,mask:t.mask,readOnly:c.readOnly}),n)}dispatch(e,t,n,i){if(!t)return void this.sendFrame(u.frame(e,n),i);const o=this._extensions[a.extensionName];this._deflating=!0,o.compress(e,n.fin,(e,t)=>{this._deflating=!1,n.readOnly=!1,this.sendFrame(u.frame(t,n),i),this.dequeue()})}dequeue(){for(;!this._deflating&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[1].length,Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[1].length,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=u},function(e,t,n){"use strict";const i=[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];function a(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}e.exports={format:function(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(e){const t=Object.create(null);if(void 0===e||""===e)return t;let n,o,r=Object.create(null),s=!1,c=!1,l=!1,u=-1,p=-1,d=0;for(;d<e.length;d++){const f=e.charCodeAt(d);if(void 0===n)if(-1===p&&1===i[f])-1===u&&(u=d);else if(32===f||9===f)-1===p&&-1!==u&&(p=d);else{if(59!==f&&44!==f)throw new SyntaxError(`Unexpected character at index ${d}`);{if(-1===u)throw new SyntaxError(`Unexpected character at index ${d}`);-1===p&&(p=d);const i=e.slice(u,p);44===f?(a(t,i,r),r=Object.create(null)):n=i,u=p=-1}}else if(void 0===o)if(-1===p&&1===i[f])-1===u&&(u=d);else if(32===f||9===f)-1===p&&-1!==u&&(p=d);else if(59===f||44===f){if(-1===u)throw new SyntaxError(`Unexpected character at index ${d}`);-1===p&&(p=d),a(r,e.slice(u,p),!0),44===f&&(a(t,n,r),r=Object.create(null),n=void 0),u=p=-1}else{if(61!==f||-1===u||-1!==p)throw new SyntaxError(`Unexpected character at index ${d}`);o=e.slice(u,d),u=p=-1}else if(c){if(1!==i[f])throw new SyntaxError(`Unexpected character at index ${d}`);-1===u?u=d:s||(s=!0),c=!1}else if(l)if(1===i[f])-1===u&&(u=d);else if(34===f&&-1!==u)l=!1,p=d;else{if(92!==f)throw new SyntaxError(`Unexpected character at index ${d}`);c=!0}else if(34===f&&61===e.charCodeAt(d-1))l=!0;else if(-1===p&&1===i[f])-1===u&&(u=d);else if(-1===u||32!==f&&9!==f){if(59!==f&&44!==f)throw new SyntaxError(`Unexpected character at index ${d}`);{if(-1===u)throw new SyntaxError(`Unexpected character at index ${d}`);-1===p&&(p=d);let i=e.slice(u,p);s&&(i=i.replace(/\\/g,""),s=!1),a(r,o,i),44===f&&(a(t,n,r),r=Object.create(null),n=void 0),o=void 0,u=p=-1}}else-1===p&&(p=d)}if(-1===u||l)throw new SyntaxError("Unexpected end of input");-1===p&&(p=d);const f=e.slice(u,p);return void 0===n?a(t,f,r):(void 0===o?a(r,f,!0):a(r,o,s?f.replace(/\\/g,""):f),a(t,n,r)),t}}},function(e,t){e.exports=function(e){return n&&Buffer.isBuffer(e)||i&&(e instanceof ArrayBuffer||a(e))};var n="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,i="function"==typeof ArrayBuffer,a=function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}},function(e,t,n){var i=n(187),a=n(4).EventEmitter,o=n(28),r=n(41),s=n(6)("socket.io:namespace");e.exports=t=l,t.events=["connect","connection","newListener"],t.flags=["json","volatile","local"];var c=a.prototype.emit;function l(e,t){this.name=t,this.server=e,this.sockets={},this.connected={},this.fns=[],this.ids=0,this.rooms=[],this.flags={},this.initAdapter()}l.prototype.__proto__=a.prototype,t.flags.forEach(function(e){Object.defineProperty(l.prototype,e,{get:function(){return this.flags[e]=!0,this}})}),l.prototype.initAdapter=function(){this.adapter=new(this.server.adapter())(this)},l.prototype.use=function(e){return this.server.eio&&"/"===this.name&&(s("removing initial packet"),delete this.server.eio.initialPacket),this.fns.push(e),this},l.prototype.run=function(e,t){var n=this.fns.slice(0);if(!n.length)return t(null);!function i(a){n[a](e,function(e){return e?t(e):n[a+1]?void i(a+1):t(null)})}(0)},l.prototype.to=l.prototype.in=function(e){return~this.rooms.indexOf(e)||this.rooms.push(e),this},l.prototype.add=function(e,t,n){s("adding socket to nsp %s",this.name);var a=new i(this,e,t),o=this;return this.run(a,function(t){process.nextTick(function(){if("open"==e.conn.readyState){if(t)return a.error(t.data||t.message);o.sockets[a.id]=a,a.onconnect(),n&&n(),o.emit("connect",a),o.emit("connection",a)}else s("next called after client was closed - ignoring socket")})}),a},l.prototype.remove=function(e){this.sockets.hasOwnProperty(e.id)?delete this.sockets[e.id]:s("ignoring remove for %s",e.id)},l.prototype.emit=function(e){if(~t.events.indexOf(e))return c.apply(this,arguments),this;var n=Array.prototype.slice.call(arguments),i={type:(void 0!==this.flags.binary?this.flags.binary:r(n))?o.BINARY_EVENT:o.EVENT,data:n};if("function"==typeof n[n.length-1])throw new Error("Callbacks are not supported when broadcasting");var a=this.rooms.slice(0),s=Object.assign({},this.flags);return this.rooms=[],this.flags={},this.adapter.broadcast(i,{rooms:a,flags:s}),this},l.prototype.send=l.prototype.write=function(){var e=Array.prototype.slice.call(arguments);return e.unshift("message"),this.emit.apply(this,e),this},l.prototype.clients=function(e){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.clients(this.rooms,e),this.rooms=[],this},l.prototype.compress=function(e){return this.flags.compress=e,this},l.prototype.binary=function(e){return this.flags.binary=e,this}},function(e,t,n){"use strict";const i=n(3);e.exports=i(e=>(e.message=`\t${e.message}`,e))},function(e,t,n){"use strict";const{Colorizer:i}=n(29),{Padder:a}=n(47),{configs:o,MESSAGE:r}=n(0);class s{constructor(e={}){e.levels||(e.levels=o.npm.levels),this.colorizer=new i(e),this.padder=new a(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 s(e)),e.exports.Format=s},function(e,t,n){"use strict";const i=n(3);function a(e){if(e.every(o))return t=>{let n=t;for(let t=0;t<e.length;t++)if(!(n=e[t].transform(n,e[t].options)))return!1;return n}}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=i(a(e)),n=t();return n.Format=t.Format,n}),e.exports.cascade=a},function(e,t,n){"use strict";const i=n(3);e.exports=i((e,t)=>t.message?(e.message=`[${t.label}] ${e.message}`,e):(e.label=t.label,e))},function(e,t,n){"use strict";const i=n(3),{MESSAGE:a}=n(0),o=n(15);e.exports=i(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[a]=o(t),e})},function(e,t,n){"use strict";const i=n(3);e.exports=i((e,t={})=>{let n="metadata";t.key&&(n=t.key);let i=[];return t.fillExcept||t.fillWith||(i.push("level"),i.push("message")),t.fillExcept&&(i=t.fillExcept),i.length>0?function(e,t,n){const i=t.reduce((t,n)=>(t[n]=e[n],delete e[n],t),{}),a=Object.keys(e).reduce((t,n)=>(t[n]=e[n],delete e[n],t),{});return Object.assign(e,i,{[n]:a}),e}(e,i,n):t.fillWith?function(e,t,n){return e[n]=t.reduce((t,n)=>(t[n]=e[n],delete e[n],t),{}),e}(e,t.fillWith,n):e})},function(e,t,n){"use strict";const i=n(1).inspect,a=n(3),{LEVEL:o,MESSAGE:r,SPLAT:s}=n(0);e.exports=a((e,t={})=>{const n=Object.assign({},e);return delete n[o],delete n[r],delete n[s],e[r]=i(n,!1,t.depth||null,t.colorize),e})},function(e,t,n){"use strict";const{MESSAGE:i}=n(0);class a{constructor(e){this.template=e}transform(e){return e[i]=this.template(e),e}}e.exports=(e=>new a(e)),e.exports.Printf=e.exports.Format=a},function(e,t,n){"use strict";const i=n(3),{MESSAGE:a}=n(0),o=n(15);e.exports=i(e=>{const t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),n=e.padding&&e.padding[e.level]||"";return e[a]="{}"!==t?`${e.level}:${n} ${e.message} ${t}`:`${e.level}:${n} ${e.message}`,e})},function(e,t,n){"use strict";const i=n(1),{SPLAT:a}=n(0),o=/%[scdjifoO%]/g,r=/%%/g;class s{constructor(e){this.options=e}_splat(e,t){const n=e.message,o=e[a]||e.splat||[],s=n.match(r),c=s&&s.length||0,l=t.length-c-o.length,u=l<0?o.splice(l,-1*l):[],p=u.length;if(p)for(let t=0;t<p;t++)Object.assign(e,u[t]);return e.message=i.format(n,...o),e}transform(e){const t=e.message,n=e[a]||e.splat;if(!n||!n.length)return e;const i=t&&t.match&&t.match(o);if(!i&&(n||n.length)){const t=n.length>1?n.splice(0):n,i=t.length;if(i)for(let n=0;n<i;n++)Object.assign(e,t[n]);return e}return i?this._splat(e,i):e}}e.exports=(e=>new s(e))},function(e,t,n){"use strict";const i=n(97),a=n(3);e.exports=a((e,t={})=>(t.format&&(e.timestamp="function"==typeof t.format?t.format():i.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e))},function(e,t,n){var i;!function(a){"use strict";var o={},r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s=/\d\d?/,c=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,l=/\[([^]*?)\]/gm,u=function(){};function p(e,t){for(var n=[],i=0,a=e.length;i<a;i++)n.push(e[i].substr(0,t));return n}function d(e){return function(t,n,i){var a=i[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(t.month=a)}}function f(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}var h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"],v=p(m,3),g=p(h,3);o.i18n={dayNamesShort:g,dayNames:h,monthNamesShort:v,monthNames:m,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var b={D:function(e){return e.getDate()},DD:function(e){return f(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDay()},dd:function(e){return f(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return f(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 String(e.getFullYear()).substr(2)},YYYY:function(e){return f(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return f(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return f(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return f(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return f(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return f(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return f(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?"-":"+")+f(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},x={D:[s,function(e,t){e.day=t}],Do:[new RegExp(s.source+c.source),function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],YY:[s,function(e,t){var n=+(""+(new Date).getFullYear()).substr(0,2);e.year=""+(t>68?n-1:n)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],YYYY:[/\d{4}/,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[/\d{3}/,function(e,t){e.millisecond=t}],d:[s,u],ddd:[c,u],MMM:[c,d("monthNamesShort")],MMMM:[c,d("monthNames")],a:[c,function(e,t,n){var i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(e,t){"Z"===t&&(t="+00:00");var n,i=(t+"").match(/([\+\-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),e.timezoneOffset="+"===i[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,o.masks={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",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(e,t,n){var i=n||o.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=o.masks[t]||t||o.masks.default;var a=[];return(t=(t=t.replace(l,function(e,t){return a.push(t),"??"})).replace(r,function(t){return t in b?b[t](e,i):t.slice(1,t.length-1)})).replace(/\?\?/g,function(){return a.shift()})},o.parse=function(e,t,n){var i=n||o.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return!1;var a=!0,s={};if(t.replace(r,function(t){if(x[t]){var n=x[t],o=e.search(n[0]);~o?e.replace(n[0],function(t){return n[1](s,t,i),e=e.substr(o+t.length),t}):a=!1}return x[t]?"":t.slice(1,t.length-1)}),!a)return!1;var c,l=new Date;return!0===s.isPm&&null!=s.hour&&12!=+s.hour?s.hour=+s.hour+12:!1===s.isPm&&12==+s.hour&&(s.hour=0),null!=s.timezoneOffset?(s.minute=+(s.minute||0)-+s.timezoneOffset,c=new Date(Date.UTC(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0))):c=new Date(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0),c},e.exports?e.exports=o:void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},function(e,t,n){"use strict";const i=n(30),a=n(3),{MESSAGE:o}=n(0);e.exports=a((e,t)=>(!1!==t.level&&(e.level=i.strip(e.level)),!1!==t.message&&(e.message=i.strip(e.message)),!1!==t.raw&&e[o]&&(e[o]=i.strip(e[o])),e))},function(e,t,n){"use strict";var i=t.format=n(2);t.levels=n(31),Object.defineProperty(i,"align",{value:n(49)}),Object.defineProperty(i,"cli",{value:n(50)}),Object.defineProperty(i,"combine",{value:n(51)}),Object.defineProperty(i,"colorize",{value:n(22)}),Object.defineProperty(i,"json",{value:n(52)}),Object.defineProperty(i,"label",{value:n(53)}),Object.defineProperty(i,"logstash",{value:n(54)}),Object.defineProperty(i,"metadata",{value:n(55)}),Object.defineProperty(i,"padLevels",{value:n(32)}),Object.defineProperty(i,"prettyPrint",{value:n(56)}),Object.defineProperty(i,"printf",{value:n(57)}),Object.defineProperty(i,"simple",{value:n(58)}),Object.defineProperty(i,"splat",{value:n(59)}),Object.defineProperty(i,"timestamp",{value:n(60)}),Object.defineProperty(i,"uncolorize",{value:n(61)})},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(2),o=n(0),r=o.LEVEL,s=o.MESSAGE;e.exports=a(function(e,t){var n=t.stack;if(e instanceof Error){var a,o=Object.assign({},e,(i(a={level:e.level},r,e[r]||e.level),i(a,"message",e.message),i(a,s,e[s]||e.message),a));return n&&(o.stack=e.stack),o}if(!(e.message instanceof Error))return e;Object.assign(e,e.message);var c=e.message;return e.message=c.message,e[s]=c.message,n&&(e.stack=c.stack),e})},function(e,t,n){"use strict";var i=t.format=n(2);function a(e,t){t=t||e,Object.defineProperty(i,e,{get:function(){return n(209)("./".concat(t,".js"))},configurable:!0})}t.levels=n(31),a("align"),a("errors"),a("cli"),a("combine"),a("colorize"),a("json"),a("label"),a("logstash"),a("metadata"),a("ms"),a("padLevels","pad-levels"),a("prettyPrint","pretty-print"),a("printf"),a("simple"),a("splat"),a("timestamp"),a("uncolorize")},function(e,t,n){"use strict";var i=n(2),a=n(43);e.exports=i(function(e){var t=+new Date;return(void 0).diff=t-((void 0).prevTime||t),(void 0).prevTime=t,e.ms="+".concat(a((void 0).diff)),e})},function(e,t,n){"use strict";const{format:i}=n(1);t.warn={deprecated:e=>()=>{throw new Error(i("{ %s } was removed in winston@3.0.0.",e))},useFormat:e=>()=>{throw new Error([i("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join("\n"))},forFunctions(e,n,i){i.forEach(i=>{e[i]=t.warn[n](i)})},moved(e,t,n){function a(){return()=>{throw new Error([i("winston.%s was moved in winston@3.0.0.",n),i("Use a winston.%s instead.",t)].join("\n"))}}Object.defineProperty(e,n,{get:a,set:a})},forProperties(e,n,i){i.forEach(i=>{const a=t.warn[n](i);Object.defineProperty(e,i,{get:a,set:a})})}}},function(e,t,n){"use strict";var i=n(33);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var a=i.callback;t.pendingcb--,a(n),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var o,r=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:i.nextTick;v.WritableState=m;var s=n(62);s.inherits=n(11);var c={deprecate:n(105)},l=n(106),u=n(63).Buffer,p=global.Uint8Array||function(){};var d,f=n(107);function h(){}function m(e,t){o=o||n(34),e=e||{};var s=t instanceof o;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,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 n=e._writableState,a=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,a,o){--t.pendingcb,n?(i.nextTick(o,a),i.nextTick(_,e,t),e._writableState.errorEmitted=!0,e.emit("error",a)):(o(a),e._writableState.errorEmitted=!0,e.emit("error",a),_(e,t))}(e,n,a,t,o);else{var s=y(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),a?r(b,e,n,s,o):b(e,n,s,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(o=o||n(34),!(d.call(v,this)||this instanceof o))return new v(e);this._writableState=new m(e,this),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)),l.call(this)}function g(e,t,n,i,a,o,r){t.writelen=i,t.writecb=r,t.writing=!0,t.sync=!0,n?e._writev(a,t.onwrite):e._write(a,o,t.onwrite),t.sync=!1}function b(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),_(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),r=t.corkedRequestsFree;r.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;o.allBuffers=c,g(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 a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(g(e,t,!1,t.objectMode?1:l.length,l,u,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function y(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),_(e,t)})}function _(e,t){var n=y(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}s.inherits(v,l),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.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]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===v&&(e&&e._writableState instanceof m)}})):d=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,n){var a,o=this._writableState,r=!1,s=!o.objectMode&&(a=e,u.isBuffer(a)||a instanceof p);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=h),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,a){var o=!0,r=!1;return null===n?r=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r&&(e.emit("error",r),i.nextTick(a,r),o=!1),o}(this,o,e,n))&&(o.pendingcb++,r=function(e,t,n,i,a,o){if(!n){var r=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n));return t}(t,i,a);i!==r&&(n=!0,a="buffer",i=r)}var s=t.objectMode?1:i.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:a,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,s,i,a,o);return c}(this,o,s,e,t,n)),r},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},v.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 TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var a=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||a.finished||function(e,t,n){t.ending=!0,_(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,a,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=f.destroy,v.prototype._undestroy=f.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}},function(e,t,n){e.exports=n(1).deprecate},function(e,t,n){e.exports=n(14)},function(e,t,n){"use strict";var i=n(33);function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(a,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(i.nextTick(a,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),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.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";var i=n(226).Buffer,a=i.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&&(i.isEncoding===a||!a(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=s,t=4;break;case"base64":this.text=u,this.end=p,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.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 s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){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!==n?n: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 n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}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 n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function p(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 f(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):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 n=function(e,t,n){var i=t.length-1;if(i<n)return 0;var a=r(t[i]);if(a>=0)return a>0&&(e.lastNeed=a-1),a;if(--i<n||-2===a)return 0;if((a=r(t[i]))>=0)return a>0&&(e.lastNeed=a-2),a;if(--i<n||-2===a)return 0;if((a=r(t[i]))>=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},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}},function(e,t,n){var i=n(110).Symbol;e.exports=i},function(e,t,n){var i=n(111),a="object"==typeof self&&self&&self.Object===Object&&self,o=i||a||Function("return this")();e.exports=o},function(e,t){var n="object"==typeof global&&global&&global.Object===Object&&global;e.exports=n},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){(0,i.default)(t)(e,(0,a.default)(n),o)};var i=o(n(237)),a=o(n(36));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n,i,a){return e(n,t,i,a)}},e.exports=t.default},function(e,t,n){"use strict";var i;e.exports=k,k.ReadableState=_;n(4).EventEmitter;var a=function(e,t){return e.listeners(t).length},o=n(120),r=n(17).Buffer,s=global.Uint8Array||function(){};var c,l=n(1);c=l&&l.debuglog?l.debuglog("stream"):function(){};var u,p,d=n(257),f=n(121),h=n(122).getHighWaterMark,m=n(18).codes,v=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,b=m.ERR_METHOD_NOT_IMPLEMENTED,x=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y=n(258).emitExperimentalWarning;n(11)(k,o);var w=["error","close","destroy","pause","resume"];function _(e,t,a){i=i||n(19),e=e||{},"boolean"!=typeof a&&(a=t instanceof i),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=h(this,e,"readableHighWaterMark",a),this.buffer=new d,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=n(124).StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function k(e){if(i=i||n(19),!(this instanceof k))return new k(e);var t=this instanceof i;this._readableState=new _(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,n,i,a){c("readableAddChunk",t);var o,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}(e,l);else if(a||(o=function(e,t){var n;i=t,r.isBuffer(i)||i instanceof s||"string"==typeof t||void 0===t||e.objectMode||(n=new v("chunk",["string","Buffer","Uint8Array"],t));var i;return n}(l,t)),o)e.emit("error",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)),i)l.endEmitted?e.emit("error",new x):S(e,l,t,!0);else if(l.ended)e.emit("error",new g);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?S(e,l,t,!1):A(e,l)):S(e,l,t,!1)}else i||(l.reading=!1,A(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function S(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),A(e,t)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=r.from(e,t),t=""),n=!0),E(this,e,t,!1,n)},k.prototype.unshift=function(e){return E(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(e){return u||(u=n(124).StringDecoder),this._readableState.decoder=new u(e),this._readableState.encoding=this._readableState.decoder.encoding,this};var C=8388608;function j(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>=C?e=C:(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 O(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(F,e))}function F(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||e.emit("readable"),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function A(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(T,e,t))}function T(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(c("maybeReadMore read 0"),e.read(0),n===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 B(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"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(L,t,e))}function L(e,t){c("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function q(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}k.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,n=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?N(this):O(this),null;if(0===(e=j(e,t))&&t.ended)return 0===t.length&&N(this),null;var i,a=t.needReadable;return c("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",a=!0),t.ended||t.reading?c("reading or ended",a=!1):a&&(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=j(n,t))),null===(i=e>0?P(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&N(this)),null!==i&&this.emit("data",i),i},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?s:m;function r(t,a){c("onunpipe"),t===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,c("cleanup"),e.removeListener("close",f),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",r),n.removeListener("end",s),n.removeListener("end",m),n.removeListener("data",p),u=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function s(){c("onend"),e.end()}i.endEmitted?process.nextTick(o):n.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&&a(e,"data")&&(t.flowing=!0,R(e))}}(n);e.on("drain",l);var u=!1;function p(t){c("ondata");var a=e.write(t);c("dest.write",a),!1===a&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==q(i.pipes,e))&&!u&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){c("onerror",t),m(),e.removeListener("error",d),0===a(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",h),m()}function h(){c("onfinish"),e.removeListener("close",f),m()}function m(){c("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",f),e.once("finish",h),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<a;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var r=q(t.pipes,e);return-1===r?this:(t.pipes.splice(r,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},k.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?O(this):i.reading||process.nextTick(B,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(M,this),n},k.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(M,this),t},k.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},k.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},k.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var a in e.on("end",function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){(c("wrapped data"),n.decoder&&(a=n.decoder.write(a)),n.objectMode&&null==a)||(n.objectMode||a&&a.length)&&(t.push(a)||(i=!0,e.pause()))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o<w.length;o++)e.on(w[o],this.emit.bind(this,w[o]));return this._read=function(t){c("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return y("Readable[Symbol.asyncIterator]"),void 0===p&&(p=n(260)),p(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=P,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}})},function(e,t,n){e.exports=n(14)},function(e,t,n){"use strict";function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return r||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||process.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(process.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t?(process.nextTick(a,n),t(e)):process.nextTick(a,n)}),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)}}},function(e,t,n){"use strict";var i=n(18).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,a){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,a,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new i(a?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var a=i.callback;t.pendingcb--,a(n),i=i.next}t.corkedRequestsFree.next=e}(t,e)}}var a;e.exports=k,k.WritableState=_;var o={deprecate:n(105)},r=n(120),s=n(17).Buffer,c=global.Uint8Array||function(){};var l,u=n(121),p=n(122).getHighWaterMark,d=n(18).codes,f=d.ERR_INVALID_ARG_TYPE,h=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,x=d.ERR_STREAM_WRITE_AFTER_END,y=d.ERR_UNKNOWN_ENCODING;function w(){}function _(e,t,o){a=a||n(19),e=e||{},"boolean"!=typeof o&&(o=t instanceof a),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(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 n=e._writableState,i=n.sync,a=n.writecb;if("function"!=typeof a)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,a){--t.pendingcb,n?(process.nextTick(a,i),process.nextTick(F,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),F(e,t))}(e,n,i,t,a);else{var o=j(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||C(e,n),i?process.nextTick(S,e,n,o,a):S(e,n,o,a)}}(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.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function k(e){var t=this instanceof(a=a||n(19));if(!t&&!l.call(k,this))return new k(e);this._writableState=new _(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,n,i,a,o,r){t.writelen=i,t.writecb=r,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(a,t.onwrite):e._write(a,o,t.onwrite),t.sync=!1}function S(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),F(e,t)}function C(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var a=t.bufferedRequestCount,o=new Array(a),r=t.corkedRequestsFree;r.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=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 i(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,u,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),F(e,t)})}function F(e,t){var n=j(t);return n&&(!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(O,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}n(11)(k,r),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.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(k,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===k&&(e&&e._writableState instanceof _)}})):l=function(e){return e instanceof this},k.prototype.pipe=function(){this.emit("error",new v)},k.prototype.write=function(e,t,n){var i,a=this._writableState,o=!1,r=!a.objectMode&&(i=e,s.isBuffer(i)||i instanceof c);return r&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"==typeof t&&(n=t,t=null),r?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=w),a.ending?function(e,t){var n=new x;e.emit("error",n),process.nextTick(t,n)}(this,n):(r||function(e,t,n,i){var a;return null===n?a=new b:"string"==typeof n||t.objectMode||(a=new f("chunk",["string","Buffer"],n)),!a||(e.emit("error",a),process.nextTick(i,a),!1)}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,i,a,o){if(!n){var r=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,n));return t}(t,i,a);i!==r&&(n=!0,a="buffer",i=r)}var c=t.objectMode?1:i.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:a,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,c,i,a,o);return l}(this,a,r,e,t,n)),o},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},k.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(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,n){n(new h("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,F(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=u.destroy,k.prototype._undestroy=u.undestroy,k.prototype._destroy=function(e,t){t(e)}},function(e,t,n){"use strict";var i=n(259).Buffer,a=i.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&&(i.isEncoding===a||!a(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=s,t=4;break;case"base64":this.text=u,this.end=p,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.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 s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){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!==n?n: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 n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}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 n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function p(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 f(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):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 n=function(e,t,n){var i=t.length-1;if(i<n)return 0;var a=r(t[i]);if(a>=0)return a>0&&(e.lastNeed=a-1),a;if(--i<n||-2===a)return 0;if((a=r(t[i]))>=0)return a>0&&(e.lastNeed=a-2),a;if(--i<n||-2===a)return 0;if((a=r(t[i]))>=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},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}},function(e,t,n){"use strict";e.exports=u;var i=n(18).codes,a=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,r=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=i.ERR_TRANSFORM_WITH_LENGTH_0,c=n(19);function l(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function u(e){if(!(this instanceof u))return new u(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",p)}function p(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,n){d(e,t,n)})}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new r;return e.push(null)}n(11)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new a("_transform()"))},u.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},u.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))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},function(e,t,n){var i=n(270),a={};for(var o in i)i.hasOwnProperty(o)&&(a[i[o]]=o);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in r)if(r.hasOwnProperty(s)){if(!("channels"in r[s]))throw new Error("missing channels property: "+s);if(!("labels"in r[s]))throw new Error("missing channel labels property: "+s);if(r[s].labels.length!==r[s].channels)throw new Error("channel and label counts mismatch: "+s);var c=r[s].channels,l=r[s].labels;delete r[s].channels,delete r[s].labels,Object.defineProperty(r[s],"channels",{value:c}),Object.defineProperty(r[s],"labels",{value:l})}r.rgb.hsl=function(e){var t,n,i=e[0]/255,a=e[1]/255,o=e[2]/255,r=Math.min(i,a,o),s=Math.max(i,a,o),c=s-r;return s===r?t=0:i===s?t=(a-o)/c:a===s?t=2+(o-i)/c:o===s&&(t=4+(i-a)/c),(t=Math.min(60*t,360))<0&&(t+=360),n=(r+s)/2,[t,100*(s===r?0:n<=.5?c/(s+r):c/(2-s-r)),100*n]},r.rgb.hsv=function(e){var t,n,i,a,o,r=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(r,s,c),u=l-Math.min(r,s,c),p=function(e){return(l-e)/6/u+.5};return 0===u?a=o=0:(o=u/l,t=p(r),n=p(s),i=p(c),r===l?a=i-n:s===l?a=1/3+t-i:c===l&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,i))),100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-a)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var t=a[e];if(t)return t;var n,o,r,s=1/0;for(var c in i)if(i.hasOwnProperty(c)){var l=i[c],u=(o=e,r=l,Math.pow(o[0]-r[0],2)+Math.pow(o[1]-r[1],2)+Math.pow(o[2]-r[2],2));u<s&&(s=u,n=c)}return n},r.keyword.rgb=function(e){return i[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],a=t[2];return i/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},r.hsl.rgb=function(e){var t,n,i,a,o,r=e[0]/360,s=e[1]/100,c=e[2]/100;if(0===s)return[o=255*c,o,o];t=2*c-(n=c<.5?c*(1+s):c+s-c*s),a=[0,0,0];for(var l=0;l<3;l++)(i=r+1/3*-(l-1))<0&&i++,i>1&&i--,o=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,a[l]=255*o;return a},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,a=n,o=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,a*=o<=1?o:2-o,[t,100*(0===i?2*a/(o+a):2*n/(i+n)),100*((i+n)/2)]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),r=255*i*(1-n),s=255*i*(1-n*o),c=255*i*(1-n*(1-o));switch(i*=255,a){case 0:return[i,c,r];case 1:return[s,i,r];case 2:return[r,i,c];case 3:return[r,s,i];case 4:return[c,r,i];case 5:return[i,r,s]}},r.hsv.hsl=function(e){var t,n,i,a=e[0],o=e[1]/100,r=e[2]/100,s=Math.max(r,.01);return i=(2-o)*r,n=o*s,[a,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(i/=2)]},r.hwb.rgb=function(e){var t,n,i,a,o,r,s,c=e[0]/360,l=e[1]/100,u=e[2]/100,p=l+u;switch(p>1&&(l/=p,u/=p),i=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(i=1-i),a=l+i*((n=1-u)-l),t){default:case 6:case 0:o=n,r=a,s=l;break;case 1:o=a,r=n,s=l;break;case 2:o=l,r=n,s=a;break;case 3:o=l,r=a,s=n;break;case 4:o=a,r=l,s=n;break;case 5:o=n,r=l,s=a}return[255*o,255*r,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a))]},r.xyz.rgb=function(e){var t,n,i,a=e[0]/100,o=e[1]/100,r=e[2]/100;return n=-.9689*a+1.8758*o+.0415*r,i=.0557*a+-.204*o+1.057*r,t=(t=3.2406*a+-1.5372*o+-.4986*r)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.lab.xyz=function(e){var t,n,i,a=e[0];t=e[1]/500+(n=(a+16)/116),i=n-e[2]/200;var o=Math.pow(n,3),r=Math.pow(t,3),s=Math.pow(i,3);return n=o>.008856?o:(n-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},r.lab.lch=function(e){var t,n=e[0],i=e[1],a=e[2];return(t=360*Math.atan2(a,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+a*a),t]},r.lch.lab=function(e){var t,n=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],a=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.max(Math.max(n,i),a),r=Math.min(Math.min(n,i),a),s=o-r;return t=s<=0?0:o===n?(i-a)/s%6:o===i?2+(a-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?r/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=1,a=0;return(i=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*i)/(1-i)),[e[0],100*i,100*a]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],100*i,100*a]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];var a,o=[0,0,0],r=t%1*6,s=r%1,c=1-s;switch(Math.floor(r)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=c,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=c,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=c}return a=(1-n)*i,[255*(n*o[0]+a),255*(n*o[1]+a),255*(n*o[2]+a)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,i=n-t,a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],100*i,100*a]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";var i=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};i.writable=function(e){return i(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},i.readable=function(e){return i(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},i.duplex=function(e){return i.writable(e)&&i.readable(e)},i.transform=function(e){return i.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},function(e,t,n){"use strict";const{LEVEL:i}=n(0),a=n(69),o=n(282),r=n(37)("winston:create-logger");e.exports=function(e={}){e.levels=e.levels||a.npm.levels;class t extends o{constructor(e){super(e)}}const n=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 a=this||n;if(1===t.length){const[o]=t,r=o&&o.message&&o||{message:o};return r.level=r[i]=e,a._addDefaultMeta(r),a.write(r),this||n}return 0===t.length?(a.log(e,""),a):a.log(e,...t)},t.prototype[function(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}(e)]=function(){return(this||n).isLevelEnabled(e)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')}),n}},function(e,t,n){"use strict";const i=n(10),a=n(70),o=n(37)("winston:exception"),r=n(130),s=n(131),c=n(132);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{message:t}=e;return t||"string"!=typeof e||(t=e),{error:e,level:"error",message:[`uncaughtException: ${t||"(no error message)"}`,e.stack||" No stack trace"].join("\n"),stack: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:i.loadavg(),uptime:i.uptime()}}getTrace(e){return(e?s.parse(e):s.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),n=this._getExceptionHandlers();let i,s="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function c(){o("doExit",s),o("process._exiting",process._exiting),s&&!process._exiting&&(i&&clearTimeout(i),process.exit(1))}if(!n.length&&s&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),s=!1),!n||0===n.length)return process.nextTick(c);a(n,(e,t)=>{const n=r(t),i=e.transport||e;function a(e){return()=>{o(e),n()}}i._ending=!0,i.once("finish",a("finished")),i.once("error",a("error"))},()=>s&&c()),this.logger.log(t),s&&(i=setTimeout(c,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>{return(e.transport||e).handleExceptions})}}},function(e,t,n){"use strict";e.exports=function(e){var t,n=0;function i(){return n?t:(n=1,t=e.apply(this,arguments),e=null,t)}return i.displayName=e.displayName||e.name||i.displayName||i.name,i}},function(e,t){function n(e){for(var t in e)this[t]=e[t]}t.get=function(e){var n=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var i={},a=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.captureStackTrace(i,e||t.get);var o=i.stack;return Error.prepareStackTrace=a,Error.stackTraceLimit=n,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 n=e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(n){var i=null,a=null,o=null,r=null,s=null,c="native"===n[5];if(n[1]){var l=(o=n[1]).lastIndexOf(".");if("."==o[l-1]&&l--,l>0){i=o.substr(0,l),a=o.substr(l+1);var u=i.indexOf(".Module");u>0&&(o=o.substr(u+1),i=i.substr(0,u))}r=null}a&&(r=i,s=a),"<anonymous>"===a&&(s=null,o=null);var p={fileName:n[2]||null,lineNumber:parseInt(n[3],10)||null,functionName:o,typeName:r,methodName:s,columnNumber:parseInt(n[4],10)||null,native:c};return t._createParsedCallSite(p)}}).filter(function(e){return!!e})};["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach(function(e){n.prototype[e]=null,n.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}}),["topLevel","eval","native","constructor"].forEach(function(e){n.prototype[e]=!1,n.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}}),t._createParsedCallSite=function(e){return new n(e)}},function(e,t,n){"use strict";const{Writable:i}=n(23);e.exports=class extends i{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,n){return e.exception?this.transport.log(e,n):(n(),!0)}}},function(e,t,n){"use strict";const i=n(10),a=n(70),o=n(37)("winston:rejection"),r=n(130),s=n(131),c=n(132);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{message:t}=e;return t||"string"!=typeof e||(t=e),{error:e,level:"error",message:[`unhandledRejection: ${t||"(no error message)"}`,e.stack||" No stack trace"].join("\n"),stack: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:i.loadavg(),uptime:i.uptime()}}getTrace(e){return(e?s.parse(e):s.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)}}_unhandledRejection(e){const t=this.getAllInfo(e),n=this._getRejectionHandlers();let i,s="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function c(){o("doExit",s),o("process._exiting",process._exiting),s&&!process._exiting&&(i&&clearTimeout(i),process.exit(1))}if(!n.length&&s&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),s=!1),!n||0===n.length)return process.nextTick(c);a(n,(e,t)=>{const n=r(t),i=e.transport||e;function a(e){return()=>{o(e),n()}}i._ending=!0,i.once("finish",a("finished")),i.once("error",a("error"))},()=>s&&c()),this.logger.log(t),s&&(i=setTimeout(c,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>{return(e.transport||e).handleRejections})}}},function(e,t,n){const i=n(5),a=n(8),o=n(135);e.exports=class extends o{constructor(e,t){super(e,t),this.socket.on("ready",this.connect.bind(this))}connect(){this._joinGuestRoom()}auth(){return Promise.resolve()}static check(e){return!(!e.handshake.query||!e.handshake.query.UserType)&&"guest"===e.handshake.query.UserType}_joinGuestRoom(){i.logger.info(`[Guest] libcgisocket guest ${this.id} join guest room`),this.socket.join(a.rooms.guest_clients)}needAutoConnectWhenClientVersionIsOld(){return!1}}},function(e,t,n){const i=n(5);n(8),n(71);e.exports=class{constructor(e,t){i.logger.debug(`[Client] new client with socket.id ${e.id}`),this.socket=e,this.service=t,this.queueInfo=null,this.id=e.id,this.socket.on("disconnect",this.onDisconnect.bind(this))}set queueInfo(e){this._queueInfo=e}get queueInfo(){return this._queueInfo}static check(e){return!0}auth(){return Promise.resolve()}needAutoConnectWhenClientVersionIsOld(){return!1}connect(){}onDisconnect(){this.service.removeClient(this),i.logger.info(`[Client] libcgisocket client ${this.id} on disconnect, named ${this.userName} `)}onListening(e,t){}unListening(e){}destroy(){}}},function(e,t,n){let i=n(137);const a=n(5),o=n(8),r=n(135);n(71);e.exports=class extends r{constructor(e,t){super(e,t),this.webapi=new i(this.socket),this.userName=null,this.socket.on("request_webapi",this.onRequestWebAPI.bind(this)),this.socket.on("broadcast_user",this.onBroadcastUser.bind(this)),this.socket.on("listening_event",this._onListening.bind(this)),this.socket.on("ready",this.connect.bind(this)),this.listenCallbacks=Object.create(null)}static check(e){return!(!e.handshake.query||!e.handshake.query.UserType)&&"user"===e.handshake.query.UserType}auth(){return this.webapi.auth().then(e=>(a.logger.info(`[User] ${e.szName} isAdmin: ${e.isAdmin}`),this.isAdmin=e.isAdmin,this.userName=e.szName,this.userName))}connect(){a.logger.info(`[User] libcgisocket client ${this.id} on connection, named ${this.userName} `),this._joinRoom(this.userName)}_onListening(e,t){this.listenCallbacks[e]&&this.listenCallbacks[e](e,t)}onListening(e,t){this.listenCallbacks[e]=t}unListening(e){delete this.listenCallbacks[e]}_joinGroupsRoom(){return a.logger.info(`[User] libcgisocket client ${this.id} get groups by ${this.userName}`),this.webapi.getGroups(this.userName).then(e=>{a.logger.info(`[User] libcgisocket client ${this.id} join groups room ${e}`);for(let t of e)t=`${o.rooms.group_prefix}${t}`,this.socket.join(t)})}_joinAdminRoom(){a.logger.info(`[User] libcgisocket client ${this.id} get admin by ${this.userName}`),this.isAdmin&&(a.logger.info(`[User] client ${this.id} join admin room ${this.userName}`),this.socket.join(o.rooms.admin_clients))}_joinRoom(e){a.logger.info(`[User] libcgisocket client ${this.id} join room named ${e}`),this.socket.join(e),this.socket.join(o.rooms.all_clients),this._joinGroupsRoom(),this._joinAdminRoom()}onRequestWebAPI(e,t,n,i,a){this.webapi.send({api:e,version:t,method:n,params:i}).then(e=>{a(e)}).catch(e=>{a(e)})}onBroadcastUser(e){a.logger.info(`[User] socket id: ${this.id} on broadcast user`),this.socket.to(this.userName).emit("user",e)}destroy(){this.webapi.destroy()}needAutoConnectWhenClientVersionIsOld(){if(!this.socket.handshake.query||!this.socket.handshake.query.Version)return!0;const e=this.socket.handshake.query.Version;return a.logger.info("[User] handshake:",this.socket.handshake),parseInt(e,10)<=42445}}},function(e,t,n){let{Exec:i,AuthExec:a,UserExec:o}=n(292);n(10);const r=n(293);let s=n(5),c={CONTENT_LENGTH:"content-length",CONTENT_TYPE:"content-type",HTTP_ACCEPT_LANGUAGE:"accept-language",HTTP_CLIENT_IP:"client-ip",HTTP_COOKIE:"cookie",HTTP_HOST:"host",HTTP_QUICKCONNECT_TOKEN:"quickconnect-token",HTTP_REFERER:"referer",HTTP_USER_AGENT:"user-agent",HTTP_X_FORWARDED_FOR:"x-forwarded-for",HTTP_X_FORWARDED_PROTO:"x-forwarded-proto",HTTP_X_SYNO_RELAY_LANGUAGE:"x-syno-relay-language",REMOTE_ADDR:"x-real-ip",SERVER_PORT:"x-server-port",HTTP_X_TYPE_NAME:"x-type-name",HTTP_X_EXTRA_AUTH_PARAMS:"x-extra-auth-params"};class l{constructor(){this.execs=[]}addExec(e){this.execs.push(e)}removeExec(e){const t=this.execs.indexOf(e);return t>-1&&(this.execs.splice(t,1),!0)}destroy(){for(const e of this.execs)e.destroy();this.execs=[]}}e.exports=class{constructor(e){this.socket=e,this.baseEnv=this.getEnv(),this.execMgr=new l}getEnv(){let e=this.socket.handshake,t={REQUEST_METHOD:this.socket.request.method};e.query.SynoToken&&(t.HTTP_X_SYNO_TOKEN=e.query.SynoToken),e.query.dsmSID&&(t.HTTP_COOKIE=`${t.HTTP_COOKIE||""} stay_login=0; id=${e.query.dsmSID}`);let n=e.headers;return Object.keys(c).forEach(function(e){n[c[e]]&&(t[e]=n[c[e]])}),t.HTTPS="https"===t.HTTP_X_FORWARDED_PROTO?"ON":"OFF",s.logger.debug(`[WebAPI] ${JSON.stringify(t)}`),t}getSynoTokenQueryString(){let e=this.socket.handshake;return e.query.SynoToken?`SynoToken=${e.query.SynoToken}`:""}getQueryString(e,t,n,i){let a=Object.create(i);a.api=e,a.version=t,a.method=n;let o=[];for(let e in a)o.push(`${e}=${encodeURIComponent(JSON.stringify(a[e]))}`);return o.push(this.getSynoTokenQueryString()),o.join("&")}send(e){let t=e.params,n=Object.assign({},this.baseEnv);n.QUERY_STRING=this.getQueryString(e.api,e.version,e.method,t);const a=new i(this);return this.execMgr.addExec(a),a.action(n).then(e=>(this.execMgr.removeExec(a),e))}auth(){const e=new Date;let t=Object.assign({},this.baseEnv);return new r(t).exec().then(t=>(s.logger.info(`[WebAPI] auth measure time: ${new Date-e}ms`),t))}getGroups(e){return new o(this).getGroups(this.baseEnv,{username:e})}isAdmin(e){return new o(this).isAdmin(this.baseEnv,{username:e})}destroy(){this.execMgr.destroy()}}},function(e,t,n){"use strict";const i=n(8),a=n(139),o=n(38),r=n(9),s=(n(140),n(141),a.argv),c={path:"/socket.io/",serveClient:!1,pingTimeout:24e4,pingInterval:24e4,upgradeTimeout:24e4},l=65536;let u=y(),p=n(142)(u,c),d=n(191)(w()),{Service:f}=n(288),h=n(297),m=n(5),v=null,g=null,b=null;const x=3e5;function y(){return n(12).createServer()}function w(){return!!(s.length>2&&s[2].includes("debug"))}function _(){m.exit=!0,d.info("onExit"),m.service&&m.service.close(),m.domainServer&&m.domainServer.close(),u.close(),clearTimeout(g),clearInterval(b),a.exit(1)}function k(e){o.execFile("chown",["http:http",i.socket_path],function(t,n,a){t?(d.error(`chown ${i.socket_path} failed`),e(t)):(d.info(`server listening at ${i.socket_path}`),e(null))})}function E(){m.ready||(m.ready=!0,d.info("server ready"),w()||o.execFile("/bin/systemd-notify",["--ready",`--pid=${a.pid}`],(e,t,n)=>{if(d.info(`systemd-notify synosocket daemon ${a.pid} ${t}`),e)return d.error(`systemd-notify fail: ${e}, ${n}`),_(),void a.exit(1)}))}m.ready=!1,m.logger=d,m.exit=!1,w()&&s.length>3&&s[3].includes("monitor")&&(m.monitor=setInterval(()=>{m.exit&&m.monitor&&clearInterval(m.monitor),m.logger.debug(JSON.stringify(a.memoryUsage()))},2e3)),r.existsSync(i.socket_path)&&r.unlinkSync(i.socket_path),a.on("SIGINT",_),a.on("SIGTERM",_),a.on("SIGHUP",function(){v&&clearTimeout(v),v=setTimeout(()=>{d.info("server reload"),p.close(()=>{(u=y()).listen(i.socket_path,function(){k((e,t)=>{if(e)return _(),void a.exit(1);p.attach(u,c)})})})},x)}),a.on("uncaughtException",(e,t)=>{d.error("Caught exception: ",e,t)}),a.on("unhandledRejection",(e,t)=>{d.error("Unhandled Rejection at:",t,"reason:",e)}),function(e){e.listen(i.socket_path,l,function(){k((e,t)=>{if(e)return _(),void a.exit(1);m.service=new f(p,E),m.domainServer=new h(i.domain_socket_path)})})}(u),g=setTimeout(E,3e3)},function(e,t){e.exports=require("process")},function(e,t,n){(function(e){(function(t){"use strict";function n(e,t){t|=0;for(var n=Math.max(e.length-t,0),i=Array(n),a=0;a<n;a++)i[a]=e[t+a];return i}var i=function(e){var t=n(arguments,1);return function(){var i=n(arguments);return e.apply(null,t.concat(i))}},a=function(e){return function(){var t=n(arguments),i=t.pop();e.call(this,t,i)}};function o(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var r="function"==typeof setImmediate&&setImmediate,s="object"==typeof process&&"function"==typeof process.nextTick;function c(e){setTimeout(e,0)}function l(e){return function(t){var i=n(arguments,1);e(function(){t.apply(null,i)})}}var u=l(r?setImmediate:s?process.nextTick:c);function p(e){return a(function(t,n){var i;try{i=e.apply(this,t)}catch(e){return n(e)}o(i)&&"function"==typeof i.then?i.then(function(e){d(n,null,e)},function(e){d(n,e.message?e:new Error(e))}):n(null,i)})}function d(e,t,n){try{e(t,n)}catch(e){u(f,e)}}function f(e){throw e}var h="function"==typeof Symbol;function m(e){return h&&"AsyncFunction"===e[Symbol.toStringTag]}function v(e){return m(e)?p(e):e}function g(e){return function(t){var i=n(arguments,1),o=a(function(n,i){var a=this;return e(t,function(e,t){v(e).apply(a,n.concat(t))},i)});return i.length?o.apply(this,i):o}}var b="object"==typeof global&&global&&global.Object===Object&&global,x="object"==typeof self&&self&&self.Object===Object&&self,y=b||x||Function("return this")(),w=y.Symbol,_=Object.prototype,k=_.hasOwnProperty,E=_.toString,S=w?w.toStringTag:void 0,C=Object.prototype.toString,j="[object Null]",O="[object Undefined]",F=w?w.toStringTag:void 0;function A(e){return null==e?void 0===e?O:j:F&&F in Object(e)?function(e){var t=k.call(e,S),n=e[S];try{e[S]=void 0;var i=!0}catch(e){}var a=E.call(e);return i&&(t?e[S]=n:delete e[S]),a}(e):function(e){return C.call(e)}(e)}var T="[object AsyncFunction]",M="[object Function]",B="[object GeneratorFunction]",D="[object Proxy]",R=9007199254740991;function P(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=R}function N(e){return null!=e&&P(e.length)&&!function(e){if(!o(e))return!1;var t=A(e);return t==M||t==B||t==T||t==D}(e)}var L={};function q(){}function I(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var U="function"==typeof Symbol&&Symbol.iterator,z=function(e){return U&&e[U]&&e[U]()};function $(e){return null!=e&&"object"==typeof e}var W="[object Arguments]";function H(e){return $(e)&&A(e)==W}var G=Object.prototype,Y=G.hasOwnProperty,V=G.propertyIsEnumerable,K=H(function(){return arguments}())?H:function(e){return $(e)&&Y.call(e,"callee")&&!V.call(e,"callee")},J=Array.isArray,Q="object"==typeof t&&t&&!t.nodeType&&t,Z=Q&&"object"==typeof e&&e&&!e.nodeType&&e,X=Z&&Z.exports===Q?y.Buffer:void 0,ee=(X?X.isBuffer:void 0)||function(){return!1},te=9007199254740991,ne=/^(?:0|[1-9]\d*)$/;function ie(e,t){var n=typeof e;return!!(t=null==t?te:t)&&("number"==n||"symbol"!=n&&ne.test(e))&&e>-1&&e%1==0&&e<t}var ae={};ae["[object Float32Array]"]=ae["[object Float64Array]"]=ae["[object Int8Array]"]=ae["[object Int16Array]"]=ae["[object Int32Array]"]=ae["[object Uint8Array]"]=ae["[object Uint8ClampedArray]"]=ae["[object Uint16Array]"]=ae["[object Uint32Array]"]=!0,ae["[object Arguments]"]=ae["[object Array]"]=ae["[object ArrayBuffer]"]=ae["[object Boolean]"]=ae["[object DataView]"]=ae["[object Date]"]=ae["[object Error]"]=ae["[object Function]"]=ae["[object Map]"]=ae["[object Number]"]=ae["[object Object]"]=ae["[object RegExp]"]=ae["[object Set]"]=ae["[object String]"]=ae["[object WeakMap]"]=!1;var oe,re="object"==typeof t&&t&&!t.nodeType&&t,se=re&&"object"==typeof e&&e&&!e.nodeType&&e,ce=se&&se.exports===re&&b.process,le=function(){try{var e=se&&se.require&&se.require("util").types;return e||ce&&ce.binding&&ce.binding("util")}catch(e){}}(),ue=le&&le.isTypedArray,pe=ue?(oe=ue,function(e){return oe(e)}):function(e){return $(e)&&P(e.length)&&!!ae[A(e)]},de=Object.prototype.hasOwnProperty;function fe(e,t){var n=J(e),i=!n&&K(e),a=!n&&!i&&ee(e),o=!n&&!i&&!a&&pe(e),r=n||i||a||o,s=r?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],c=s.length;for(var l in e)!t&&!de.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ie(l,c))||s.push(l);return s}var he=Object.prototype,me=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ve=Object.prototype.hasOwnProperty;function ge(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||he))return me(e);var t,n,i=[];for(var a in Object(e))ve.call(e,a)&&"constructor"!=a&&i.push(a);return i}function be(e){return N(e)?fe(e):ge(e)}function xe(e){if(N(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,i,a,o=z(e);return o?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(o):(n=be(t=e),i=-1,a=n.length,function(){var e=n[++i];return i<a?{value:t[e],key:e}:null})}function ye(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}function we(e){return function(t,n,i){if(i=I(i||q),e<=0||!t)return i(null);var a=xe(t),o=!1,r=0,s=!1;function c(e,t){if(r-=1,e)o=!0,i(e);else{if(t===L||o&&r<=0)return o=!0,i(null);s||l()}}function l(){for(s=!0;r<e&&!o;){var t=a();if(null===t)return o=!0,void(r<=0&&i(null));r+=1,n(t.value,t.key,ye(c))}s=!1}l()}}function _e(e,t,n,i){we(t)(e,v(n),i)}function ke(e,t){return function(n,i,a){return e(n,t,i,a)}}function Ee(e,t,n){n=I(n||q);var i=0,a=0,o=e.length;function r(e,t){e?n(e):++a!==o&&t!==L||n(null)}for(0===o&&n(null);i<o;i++)t(e[i],i,ye(r))}var Se=ke(_e,1/0),Ce=function(e,t,n){(N(e)?Ee:Se)(e,v(t),n)};function je(e){return function(t,n,i){return e(Ce,t,v(n),i)}}function Oe(e,t,n,i){i=i||q,t=t||[];var a=[],o=0,r=v(n);e(t,function(e,t,n){var i=o++;r(e,function(e,t){a[i]=t,n(e)})},function(e){i(e,a)})}var Fe=je(Oe),Ae=g(Fe);function Te(e){return function(t,n,i,a){return e(we(n),t,v(i),a)}}var Me=Te(Oe),Be=ke(Me,1),De=g(Be);function Re(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}var Pe,Ne=function(e,t,n){for(var i=-1,a=Object(e),o=n(e),r=o.length;r--;){var s=o[Pe?r:++i];if(!1===t(a[s],s,a))break}return e};function Le(e,t){return e&&Ne(e,t,be)}function qe(e){return e!=e}function Ie(e,t,n){return t==t?function(e,t,n){for(var i=n-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}(e,t,n):function(e,t,n,i){for(var a=e.length,o=n+(i?1:-1);i?o--:++o<a;)if(t(e[o],o,e))return o;return-1}(e,qe,n)}var Ue=function(e,t,i){"function"==typeof t&&(i=t,t=null),i=I(i||q);var a=be(e).length;if(!a)return i(null);t||(t=a);var o={},r=0,s=!1,c=Object.create(null),l=[],u=[],p={};function d(e,t){l.push(function(){!function(e,t){if(s)return;var a=ye(function(t,a){if(r--,arguments.length>2&&(a=n(arguments,1)),t){var l={};Le(o,function(e,t){l[t]=e}),l[e]=a,s=!0,c=Object.create(null),i(t,l)}else o[e]=a,Re(c[e]||[],function(e){e()}),f()});r++;var l=v(t[t.length-1]);t.length>1?l(o,a):l(a)}(e,t)})}function f(){if(0===l.length&&0===r)return i(null,o);for(;l.length&&r<t;){l.shift()()}}function h(t){var n=[];return Le(e,function(e,i){J(e)&&Ie(e,t,0)>=0&&n.push(i)}),n}Le(e,function(t,n){if(!J(t))return d(n,[t]),void u.push(n);var i=t.slice(0,t.length-1),a=i.length;if(0===a)return d(n,t),void u.push(n);p[n]=a,Re(i,function(o){if(!e[o])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+o+"` in "+i.join(", "));!function(e,t){var n=c[e];n||(n=c[e]=[]);n.push(t)}(o,function(){0===--a&&d(n,t)})})}),function(){var e,t=0;for(;u.length;)e=u.pop(),t++,Re(h(e),function(e){0==--p[e]&&u.push(e)});if(t!==a)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),f()};function ze(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a}var $e="[object Symbol]",We=1/0,He=w?w.prototype:void 0,Ge=He?He.toString:void 0;function Ye(e){if("string"==typeof e)return e;if(J(e))return ze(e,Ye)+"";if(function(e){return"symbol"==typeof e||$(e)&&A(e)==$e}(e))return Ge?Ge.call(e):"";var t=e+"";return"0"==t&&1/e==-We?"-0":t}function Ve(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:function(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++i<a;)o[i]=e[i+t];return o}(e,t,n)}var Ke=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Je="[\\ud800-\\udfff]",Qe="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ze="\\ud83c[\\udffb-\\udfff]",Xe="[^\\ud800-\\udfff]",et="(?:\\ud83c[\\udde6-\\uddff]){2}",tt="[\\ud800-\\udbff][\\udc00-\\udfff]",nt="(?:"+Qe+"|"+Ze+")"+"?",it="[\\ufe0e\\ufe0f]?"+nt+("(?:\\u200d(?:"+[Xe,et,tt].join("|")+")[\\ufe0e\\ufe0f]?"+nt+")*"),at="(?:"+[Xe+Qe+"?",Qe,et,tt,Je].join("|")+")",ot=RegExp(Ze+"(?="+Ze+")|"+at+it,"g");function rt(e){return function(e){return Ke.test(e)}(e)?function(e){return e.match(ot)||[]}(e):function(e){return e.split("")}(e)}var st=/^\s+|\s+$/g;function ct(e,t,n){var i;if((e=null==(i=e)?"":Ye(i))&&(n||void 0===t))return e.replace(st,"");if(!e||!(t=Ye(t)))return e;var a=rt(e),o=rt(t);return Ve(a,function(e,t){for(var n=-1,i=e.length;++n<i&&Ie(t,e[n],0)>-1;);return n}(a,o),function(e,t){for(var n=e.length;n--&&Ie(t,e[n],0)>-1;);return n}(a,o)+1).join("")}var lt=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,ut=/,/,pt=/(=.+)?(\s*)$/,dt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function ft(e,t){var n={};Le(e,function(e,t){var i,a,o=m(e),r=!o&&1===e.length||o&&0===e.length;if(J(e))i=e.slice(0,-1),e=e[e.length-1],n[t]=i.concat(i.length>0?s:e);else if(r)n[t]=e;else{if(i=a=(a=(a=(a=(a=e).toString().replace(dt,"")).match(lt)[2].replace(" ",""))?a.split(ut):[]).map(function(e){return ct(e.replace(pt,""))}),0===e.length&&!o&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");o||i.pop(),n[t]=i.concat(s)}function s(t,n){var a=ze(i,function(e){return t[e]});a.push(n),v(e).apply(null,a)}}),Ue(n,t)}function ht(){this.head=this.tail=null,this.length=0}function mt(e,t){e.length=1,e.head=e.tail=t}function vt(e,t,n){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var i=v(e),a=0,o=[],r=!1;function s(e,t,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(p.started=!0,J(e)||(e=[e]),0===e.length&&p.idle())return u(function(){p.drain()});for(var i=0,a=e.length;i<a;i++){var o={data:e[i],callback:n||q};t?p._tasks.unshift(o):p._tasks.push(o)}r||(r=!0,u(function(){r=!1,p.process()}))}function c(e){return function(t){a-=1;for(var n=0,i=e.length;n<i;n++){var r=e[n],s=Ie(o,r,0);0===s?o.shift():s>0&&o.splice(s,1),r.callback.apply(r,arguments),null!=t&&p.error(t,r.data)}a<=p.concurrency-p.buffer&&p.unsaturated(),p.idle()&&p.drain(),p.process()}}var l=!1,p={_tasks:new ht,concurrency:t,payload:n,saturated:q,unsaturated:q,buffer:t/4,empty:q,drain:q,error:q,started:!1,paused:!1,push:function(e,t){s(e,!1,t)},kill:function(){p.drain=q,p._tasks.empty()},unshift:function(e,t){s(e,!0,t)},remove:function(e){p._tasks.remove(e)},process:function(){if(!l){for(l=!0;!p.paused&&a<p.concurrency&&p._tasks.length;){var e=[],t=[],n=p._tasks.length;p.payload&&(n=Math.min(n,p.payload));for(var r=0;r<n;r++){var s=p._tasks.shift();e.push(s),o.push(s),t.push(s.data)}a+=1,0===p._tasks.length&&p.empty(),a===p.concurrency&&p.saturated();var u=ye(c(e));i(t,u)}l=!1}},length:function(){return p._tasks.length},running:function(){return a},workersList:function(){return o},idle:function(){return p._tasks.length+a===0},pause:function(){p.paused=!0},resume:function(){!1!==p.paused&&(p.paused=!1,u(p.process))}};return p}function gt(e,t){return vt(e,1,t)}ht.prototype.removeLink=function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e},ht.prototype.empty=function(){for(;this.head;)this.shift();return this},ht.prototype.insertAfter=function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1},ht.prototype.insertBefore=function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1},ht.prototype.unshift=function(e){this.head?this.insertBefore(this.head,e):mt(this,e)},ht.prototype.push=function(e){this.tail?this.insertAfter(this.tail,e):mt(this,e)},ht.prototype.shift=function(){return this.head&&this.removeLink(this.head)},ht.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},ht.prototype.toArray=function(){for(var e=Array(this.length),t=this.head,n=0;n<this.length;n++)e[n]=t.data,t=t.next;return e},ht.prototype.remove=function(e){for(var t=this.head;t;){var n=t.next;e(t)&&this.removeLink(t),t=n}return this};var bt=ke(_e,1);function xt(e,t,n,i){i=I(i||q);var a=v(n);bt(e,function(e,n,i){a(t,e,function(e,n){t=n,i(e)})},function(e){i(e,t)})}function yt(){var e=ze(arguments,v);return function(){var t=n(arguments),i=this,a=t[t.length-1];"function"==typeof a?t.pop():a=q,xt(e,t,function(e,t,a){t.apply(i,e.concat(function(e){var t=n(arguments,1);a(e,t)}))},function(e,t){a.apply(i,[e].concat(t))})}}var wt=function(){return yt.apply(null,n(arguments).reverse())},_t=Array.prototype.concat,kt=function(e,t,i,a){a=a||q;var o=v(i);Me(e,t,function(e,t){o(e,function(e){return e?t(e):t(null,n(arguments,1))})},function(e,t){for(var n=[],i=0;i<t.length;i++)t[i]&&(n=_t.apply(n,t[i]));return a(e,n)})},Et=ke(kt,1/0),St=ke(kt,1),Ct=function(){var e=n(arguments),t=[null].concat(e);return function(){return arguments[arguments.length-1].apply(this,t)}};function jt(e){return e}function Ot(e,t){return function(n,i,a,o){o=o||q;var r,s=!1;n(i,function(n,i,o){a(n,function(i,a){i?o(i):e(a)&&!r?(s=!0,r=t(!0,n),o(null,L)):o()})},function(e){e?o(e):o(null,s?r:t(!1))})}}function Ft(e,t){return t}var At=je(Ot(jt,Ft)),Tt=Te(Ot(jt,Ft)),Mt=ke(Tt,1);function Bt(e){return function(t){var i=n(arguments,1);i.push(function(t){var i=n(arguments,1);"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&Re(i,function(t){console[e](t)}))}),v(t).apply(null,i)}}var Dt=Bt("dir");function Rt(e,t,i){i=ye(i||q);var a=v(e),o=v(t);function r(e){if(e)return i(e);var t=n(arguments,1);t.push(s),o.apply(this,t)}function s(e,t){return e?i(e):t?void a(r):i(null)}s(null,!0)}function Pt(e,t,i){i=ye(i||q);var a=v(e),o=function(e){if(e)return i(e);var r=n(arguments,1);if(t.apply(this,r))return a(o);i.apply(null,[null].concat(r))};a(o)}function Nt(e,t,n){Pt(e,function(){return!t.apply(this,arguments)},n)}function Lt(e,t,n){n=ye(n||q);var i=v(t),a=v(e);function o(e){if(e)return n(e);a(r)}function r(e,t){return e?n(e):t?void i(o):n(null)}a(r)}function qt(e){return function(t,n,i){return e(t,i)}}function It(e,t,n){Ce(e,qt(v(t)),n)}function Ut(e,t,n,i){we(t)(e,qt(v(n)),i)}var zt=ke(Ut,1);function $t(e){return m(e)?e:a(function(t,n){var i=!0;t.push(function(){var e=arguments;i?u(function(){n.apply(null,e)}):n.apply(null,e)}),e.apply(this,t),i=!1})}function Wt(e){return!e}var Ht=je(Ot(Wt,Wt)),Gt=Te(Ot(Wt,Wt)),Yt=ke(Gt,1);function Vt(e){return function(t){return null==t?void 0:t[e]}}function Kt(e,t,n,i){var a=new Array(t.length);e(t,function(e,t,i){n(e,function(e,n){a[t]=!!n,i(e)})},function(e){if(e)return i(e);for(var n=[],o=0;o<t.length;o++)a[o]&&n.push(t[o]);i(null,n)})}function Jt(e,t,n,i){var a=[];e(t,function(e,t,i){n(e,function(n,o){n?i(n):(o&&a.push({index:t,value:e}),i())})},function(e){e?i(e):i(null,ze(a.sort(function(e,t){return e.index-t.index}),Vt("value")))})}function Qt(e,t,n,i){(N(t)?Kt:Jt)(e,t,v(n),i||q)}var Zt=je(Qt),Xt=Te(Qt),en=ke(Xt,1);function tn(e,t){var n=ye(t||q),i=v($t(e));!function e(t){if(t)return n(t);i(e)}()}var nn=function(e,t,n,i){i=i||q;var a=v(n);Me(e,t,function(e,t){a(e,function(n,i){return n?t(n):t(null,{key:i,val:e})})},function(e,t){for(var n={},a=Object.prototype.hasOwnProperty,o=0;o<t.length;o++)if(t[o]){var r=t[o].key,s=t[o].val;a.call(n,r)?n[r].push(s):n[r]=[s]}return i(e,n)})},an=ke(nn,1/0),on=ke(nn,1),rn=Bt("log");function sn(e,t,n,i){i=I(i||q);var a={},o=v(n);_e(e,t,function(e,t,n){o(e,t,function(e,i){if(e)return n(e);a[t]=i,n()})},function(e){i(e,a)})}var cn=ke(sn,1/0),ln=ke(sn,1);function un(e,t){return t in e}function pn(e,t){var i=Object.create(null),o=Object.create(null);t=t||jt;var r=v(e),s=a(function(e,a){var s=t.apply(null,e);un(i,s)?u(function(){a.apply(null,i[s])}):un(o,s)?o[s].push(a):(o[s]=[a],r.apply(null,e.concat(function(){var e=n(arguments);i[s]=e;var t=o[s];delete o[s];for(var a=0,r=t.length;a<r;a++)t[a].apply(null,e)})))});return s.memo=i,s.unmemoized=e,s}var dn=l(s?process.nextTick:r?setImmediate:c);function fn(e,t,i){i=i||q;var a=N(t)?[]:{};e(t,function(e,t,i){v(e)(function(e,o){arguments.length>2&&(o=n(arguments,1)),a[t]=o,i(e)})},function(e){i(e,a)})}function hn(e,t){fn(Ce,e,t)}function mn(e,t,n){fn(we(t),e,n)}var vn=function(e,t){var n=v(e);return vt(function(e,t){n(e[0],t)},t,1)},gn=function(e,t){var n=vn(e,t);return n.push=function(e,t,i){if(null==i&&(i=q),"function"!=typeof i)throw new Error("task callback must be a function");if(n.started=!0,J(e)||(e=[e]),0===e.length)return u(function(){n.drain()});t=t||0;for(var a=n._tasks.head;a&&t>=a.priority;)a=a.next;for(var o=0,r=e.length;o<r;o++){var s={data:e[o],priority:t,callback:i};a?n._tasks.insertBefore(a,s):n._tasks.push(s)}u(n.process)},delete n.unshift,n};function bn(e,t){if(t=I(t||q),!J(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,i=e.length;n<i;n++)v(e[n])(t)}function xn(e,t,i,a){xt(n(e).reverse(),t,i,a)}function yn(e){var t=v(e);return a(function(e,i){return e.push(function(e,t){var a;e?i(null,{error:e}):(a=arguments.length<=2?t:n(arguments,1),i(null,{value:a}))}),t.apply(this,e)})}function wn(e){var t;return J(e)?t=ze(e,yn):(t={},Le(e,function(e,n){t[n]=yn.call(this,e)})),t}function _n(e,t,n,i){Qt(e,t,function(e,t){n(e,function(e,n){t(e,!n)})},i)}var kn=je(_n),En=Te(_n),Sn=ke(En,1);function Cn(e){return function(){return e}}function jn(e,t,n){var i=5,a=0,o={times:i,intervalFunc:Cn(a)};if(arguments.length<3&&"function"==typeof e?(n=t||q,t=e):(!function(e,t){if("object"==typeof t)e.times=+t.times||i,e.intervalFunc="function"==typeof t.interval?t.interval:Cn(+t.interval||a),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||i}}(o,e),n=n||q),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var r=v(t),s=1;!function e(){r(function(t){t&&s++<o.times&&("function"!=typeof o.errorFilter||o.errorFilter(t))?setTimeout(e,o.intervalFunc(s)):n.apply(null,arguments)})}()}var On=function(e,t){t||(t=e,e=null);var n=v(t);return a(function(t,i){function a(e){n.apply(null,t.concat(e))}e?jn(e,a,i):jn(a,i)})};function Fn(e,t){fn(bt,e,t)}var An=je(Ot(Boolean,jt)),Tn=Te(Ot(Boolean,jt)),Mn=ke(Tn,1);function Bn(e,t,n){var i=v(t);function a(e,t){var n=e.criteria,i=t.criteria;return n<i?-1:n>i?1:0}Fe(e,function(e,t){i(e,function(n,i){if(n)return t(n);t(null,{value:e,criteria:i})})},function(e,t){if(e)return n(e);n(null,ze(t.sort(a),Vt("value")))})}function Dn(e,t,n){var i=v(e);return a(function(a,o){var r,s=!1;a.push(function(){s||(o.apply(null,arguments),clearTimeout(r))}),r=setTimeout(function(){var t=e.name||"anonymous",i=new Error('Callback function "'+t+'" timed out.');i.code="ETIMEDOUT",n&&(i.info=n),s=!0,o(i)},t),i.apply(null,a)})}var Rn=Math.ceil,Pn=Math.max;function Nn(e,t,n,i){var a=v(n);Me(function(e,t,n,i){for(var a=-1,o=Pn(Rn((t-e)/(n||1)),0),r=Array(o);o--;)r[i?o:++a]=e,e+=n;return r}(0,e,1),t,a,i)}var Ln=ke(Nn,1/0),qn=ke(Nn,1);function In(e,t,n,i){arguments.length<=3&&(i=n,n=t,t=J(e)?[]:{}),i=I(i||q);var a=v(n);Ce(e,function(e,n,i){a(t,e,n,i)},function(e){i(e,t)})}function Un(e,t){var i,a=null;t=t||q,zt(e,function(e,t){v(e)(function(e,o){i=arguments.length>2?n(arguments,1):o,a=e,t(!e)})},function(){t(a,i)})}function zn(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function $n(e,t,i){i=ye(i||q);var a=v(t);if(!e())return i(null);var o=function(t){if(t)return i(t);if(e())return a(o);var r=n(arguments,1);i.apply(null,[null].concat(r))};a(o)}function Wn(e,t,n){$n(function(){return!e.apply(this,arguments)},t,n)}var Hn=function(e,t){if(t=I(t||q),!J(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var i=0;function a(t){var n=v(e[i++]);t.push(ye(o)),n.apply(null,t)}function o(o){if(o||i===e.length)return t.apply(null,arguments);a(n(arguments,1))}a([])},Gn={apply:i,applyEach:Ae,applyEachSeries:De,asyncify:p,auto:Ue,autoInject:ft,cargo:gt,compose:wt,concat:Et,concatLimit:kt,concatSeries:St,constant:Ct,detect:At,detectLimit:Tt,detectSeries:Mt,dir:Dt,doDuring:Rt,doUntil:Nt,doWhilst:Pt,during:Lt,each:It,eachLimit:Ut,eachOf:Ce,eachOfLimit:_e,eachOfSeries:bt,eachSeries:zt,ensureAsync:$t,every:Ht,everyLimit:Gt,everySeries:Yt,filter:Zt,filterLimit:Xt,filterSeries:en,forever:tn,groupBy:an,groupByLimit:nn,groupBySeries:on,log:rn,map:Fe,mapLimit:Me,mapSeries:Be,mapValues:cn,mapValuesLimit:sn,mapValuesSeries:ln,memoize:pn,nextTick:dn,parallel:hn,parallelLimit:mn,priorityQueue:gn,queue:vn,race:bn,reduce:xt,reduceRight:xn,reflect:yn,reflectAll:wn,reject:kn,rejectLimit:En,rejectSeries:Sn,retry:jn,retryable:On,seq:yt,series:Fn,setImmediate:u,some:An,someLimit:Tn,someSeries:Mn,sortBy:Bn,timeout:Dn,times:Ln,timesLimit:Nn,timesSeries:qn,transform:In,tryEach:Un,unmemoize:zn,until:Wn,waterfall:Hn,whilst:$n,all:Ht,allLimit:Gt,allSeries:Yt,any:An,anyLimit:Tn,anySeries:Mn,find:At,findLimit:Tt,findSeries:Mt,forEach:It,forEachSeries:zt,forEachLimit:Ut,forEachOf:Ce,forEachOfSeries:bt,forEachOfLimit:_e,inject:xt,foldl:xt,foldr:xn,select:Zt,selectLimit:Xt,selectSeries:en,wrapSync:p};t.default=Gn,t.apply=i,t.applyEach=Ae,t.applyEachSeries=De,t.asyncify=p,t.auto=Ue,t.autoInject=ft,t.cargo=gt,t.compose=wt,t.concat=Et,t.concatLimit=kt,t.concatSeries=St,t.constant=Ct,t.detect=At,t.detectLimit=Tt,t.detectSeries=Mt,t.dir=Dt,t.doDuring=Rt,t.doUntil=Nt,t.doWhilst=Pt,t.during=Lt,t.each=It,t.eachLimit=Ut,t.eachOf=Ce,t.eachOfLimit=_e,t.eachOfSeries=bt,t.eachSeries=zt,t.ensureAsync=$t,t.every=Ht,t.everyLimit=Gt,t.everySeries=Yt,t.filter=Zt,t.filterLimit=Xt,t.filterSeries=en,t.forever=tn,t.groupBy=an,t.groupByLimit=nn,t.groupBySeries=on,t.log=rn,t.map=Fe,t.mapLimit=Me,t.mapSeries=Be,t.mapValues=cn,t.mapValuesLimit=sn,t.mapValuesSeries=ln,t.memoize=pn,t.nextTick=dn,t.parallel=hn,t.parallelLimit=mn,t.priorityQueue=gn,t.queue=vn,t.race=bn,t.reduce=xt,t.reduceRight=xn,t.reflect=yn,t.reflectAll=wn,t.reject=kn,t.rejectLimit=En,t.rejectSeries=Sn,t.retry=jn,t.retryable=On,t.seq=yt,t.series=Fn,t.setImmediate=u,t.some=An,t.someLimit=Tn,t.someSeries=Mn,t.sortBy=Bn,t.timeout=Dn,t.times=Ln,t.timesLimit=Nn,t.timesSeries=qn,t.transform=In,t.tryEach=Un,t.unmemoize=zn,t.until=Wn,t.waterfall=Hn,t.whilst=$n,t.all=Ht,t.allLimit=Gt,t.allSeries=Yt,t.any=An,t.anyLimit=Tn,t.anySeries=Mn,t.find=At,t.findLimit=Tt,t.findSeries=Mt,t.forEach=It,t.forEachSeries=zt,t.forEachLimit=Ut,t.forEachOf=Ce,t.forEachOfSeries=bt,t.forEachOfLimit=_e,t.inject=xt,t.foldl=xt,t.foldr=xn,t.select=Zt,t.selectLimit=Xt,t.selectSeries=en,t.wrapSync=p,Object.defineProperty(t,"__esModule",{value:!0})})(t)}).call(this,n(39)(e))},function(e,t,n){"use strict";const i=n(20),a=n(9),o=8192;e.exports=function(e,t){if("function"!=typeof t)throw new TypeError("Argument cb must be a function");const n=i.createHash("md5"),o=a.createReadStream(e);o.on("error",function(e){t(e)}),n.once("readable",function(){t(null,n.read().toString("hex"))}),o.pipe(n)},e.exports.sync=function(e){const t=a.openSync(e,"r"),n=i.createHash("md5"),r=Buffer.alloc(o);try{let e;do{e=a.readSync(t,r,0,o),n.update(r.slice(0,e))}while(e===o)}finally{a.closeSync(t)}return n.digest("hex")}},function(e,t,n){"use strict";(function(t){var i=n(12),a=n(9).readFileSync,o=n(24),r=n(9).existsSync,s=n(143),c=n(183).version,l=n(184),u=n(4).EventEmitter,p=n(85),d=n(188),f=n(189),h=n(28),m=n(6)("socket.io:server"),v=n(21);e.exports=x;var g=void 0,b=void 0;function x(e,t){if(!(this instanceof x))return new x(e,t);"object"==typeof e&&e instanceof Object&&!e.listen&&(t=e,e=null),t=t||{},this.nsps={},this.parentNsps=new Map,this.path(t.path||"/socket.io"),this.serveClient(!1!==t.serveClient),this.parser=t.parser||h,this.encoder=new this.parser.Encoder,this.adapter(t.adapter||f),this.origins(t.origins||"*:*"),this.sockets=this.of("/"),e&&this.attach(e,t)}x.prototype.checkRequest=function(e,t){var n=e.headers.origin||e.headers.referer;if("null"!=n&&null!=n||(n="*"),n&&"function"==typeof this._origins)return this._origins(n,t);if(-1!==this._origins.indexOf("*:*"))return t(null,!0);if(n)try{var i=v.parse(n),a="https:"==i.protocol?443:80;i.port=null!=i.port?i.port:a;var o=~this._origins.indexOf(i.protocol+"//"+i.hostname+":"+i.port)||~this._origins.indexOf(i.hostname+":"+i.port)||~this._origins.indexOf(i.hostname+":*")||~this._origins.indexOf("*:"+i.port);return m("origin %s is %svalid",n,o?"":"not "),t(null,!!o)}catch(e){}t(null,!1)},x.prototype.serveClient=function(e){if(!arguments.length)return this._serveClient;this._serveClient=e;var i=function(e){var i=o.resolve(t,"./../../",e);return r(i)?i:n(190).resolve(e)};if(e&&!g){g=a(i("socket.io-client/dist/socket.io.js"),"utf-8");try{b=a(i("socket.io-client/dist/socket.io.js.map"),"utf-8")}catch(e){m("could not load sourcemap file")}}return this};var y={transports:"transports","heartbeat timeout":"pingTimeout","heartbeat interval":"pingInterval","destroy buffer size":"maxHttpBufferSize"};x.prototype.set=function(e,t){return"authorization"==e&&t?this.use(function(e,n){t(e.request,function(e,t){return e?n(new Error(e)):t?void n():n(new Error("Not authorized"))})}):"origins"==e&&t?this.origins(t):"resource"==e?this.path(t):y[e]&&this.eio[y[e]]?this.eio[y[e]]=t:console.error("Option %s is not valid. Please refer to the README.",e),this},x.prototype.checkNamespace=function(e,t,n){if(0===this.parentNsps.size)return n(!1);const i=this.parentNsps.keys(),a=()=>{let o=i.next();if(o.done)return n(!1);o.value(e,t,(t,i)=>{t||!i?a():n(this.parentNsps.get(o.value).createChild(e))})};a()},x.prototype.path=function(e){return arguments.length?(this._path=e.replace(/\/$/,""),this):this._path},x.prototype.adapter=function(e){if(!arguments.length)return this._adapter;for(var t in this._adapter=e,this.nsps)this.nsps.hasOwnProperty(t)&&this.nsps[t].initAdapter();return this},x.prototype.origins=function(e){return arguments.length?(this._origins=e,this):this._origins},x.prototype.listen=x.prototype.attach=function(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){m("creating http server and binding to %d",e);var n=e;(e=i.Server(function(e,t){t.writeHead(404),t.end()})).listen(n)}if((t=t||{}).path=t.path||this.path(),t.allowRequest=t.allowRequest||this.checkRequest.bind(this),this.sockets.fns.length>0)return this.initEngine(e,t),this;var a=this,o={type:h.CONNECT,nsp:"/"};return this.encoder.encode(o,function(n){t.initialPacket=n,a.initEngine(e,t)}),this},x.prototype.initEngine=function(e,t){m("creating engine.io instance with opts %j",t),this.eio=s.attach(e,t),this._serveClient&&this.attachServe(e),this.httpServer=e,this.bind(this.eio)},x.prototype.attachServe=function(e){m("attaching client serving req handler");var t=this._path+"/socket.io.js",n=this._path+"/socket.io.js.map",i=e.listeners("request").slice(0),a=this;e.removeAllListeners("request"),e.on("request",function(o,r){if(0===o.url.indexOf(n))a.serveMap(o,r);else if(0===o.url.indexOf(t))a.serve(o,r);else for(var s=0;s<i.length;s++)i[s].call(e,o,r)})},x.prototype.serve=function(e,t){var n='"'+c+'"',i=e.headers["if-none-match"];if(i&&n==i)return m("serve client 304"),t.writeHead(304),void t.end();m("serve client source"),t.setHeader("Cache-Control","public, max-age=0"),t.setHeader("Content-Type","application/javascript"),t.setHeader("ETag",n),t.writeHead(200),t.end(g)},x.prototype.serveMap=function(e,t){var n='"'+c+'"',i=e.headers["if-none-match"];if(i&&n==i)return m("serve client 304"),t.writeHead(304),void t.end();m("serve client sourcemap"),t.setHeader("Content-Type","application/json"),t.setHeader("ETag",n),t.writeHead(200),t.end(b)},x.prototype.bind=function(e){return this.engine=e,this.engine.on("connection",this.onconnection.bind(this)),this},x.prototype.onconnection=function(e){return m("incoming connection with id %s",e.id),new l(this,e).connect("/"),this},x.prototype.of=function(e,t){if("function"==typeof e||e instanceof RegExp){const n=new d(this);return m("initializing parent namespace %s",n.name),"function"==typeof e?this.parentNsps.set(e,n):this.parentNsps.set((t,n,i)=>i(null,e.test(t)),n),t&&n.on("connect",t),n}"/"!==String(e)[0]&&(e="/"+e);var n=this.nsps[e];return n||(m("initializing namespace %s",e),n=new p(this,e),this.nsps[e]=n),t&&n.on("connect",t),n},x.prototype.close=function(e){for(var t in this.nsps["/"].sockets)this.nsps["/"].sockets.hasOwnProperty(t)&&this.nsps["/"].sockets[t].onclose();this.engine.close(),this.httpServer?this.httpServer.close(e):e&&e()},Object.keys(u.prototype).filter(function(e){return"function"==typeof u.prototype[e]}).concat(["to","in","use","send","write","clients","compress","binary"]).forEach(function(e){x.prototype[e]=function(){return this.sockets[e].apply(this.sockets,arguments)}}),p.flags.forEach(function(e){Object.defineProperty(x.prototype,e,{get:function(){return this.sockets.flags=this.sockets.flags||{},this.sockets.flags[e]=!0,this}})}),x.listen=x}).call(this,"/")},function(e,t,n){var i=n(12);function a(e,n){var i=new t.Server(n);return i.attach(e,n),i}(t=e.exports=function(){return arguments.length&&arguments[0]instanceof i.Server?a.apply(this,arguments):t.Server.apply(null,arguments)}).protocol=1,t.Server=n(144),t.Socket=n(77),t.Transport=n(40),t.transports=n(73),t.parser=n(25),t.listen=function(e,n,a){"function"==typeof n&&(a=n,n={});var o=i.createServer(function(e,t){t.writeHead(501),t.end("Not Implemented")}),r=t.attach(o,n);return r.httpServer=o,o.listen(e,a),r},t.attach=a},function(e,t,n){var i=n(72),a=n(21).parse,o=n(145),r=n(73),s=n(4).EventEmitter,c=n(77),l=n(1),u=n(6)("engine"),p=n(165);function d(e){if(!(this instanceof d))return new d(e);this.clients={},this.clientsCount=0,e=e||{},this.wsEngine=e.wsEngine||process.env.EIO_WS_ENGINE||"ws",this.pingTimeout=e.pingTimeout||5e3,this.pingInterval=e.pingInterval||25e3,this.upgradeTimeout=e.upgradeTimeout||1e4,this.maxHttpBufferSize=e.maxHttpBufferSize||1e8,this.transports=e.transports||Object.keys(r),this.allowUpgrades=!1!==e.allowUpgrades,this.allowRequest=e.allowRequest,this.cookie=!1!==e.cookie&&(e.cookie||"io"),this.cookiePath=!1!==e.cookiePath&&(e.cookiePath||"/"),this.cookieHttpOnly=!1!==e.cookieHttpOnly,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||!0),this.httpCompression=!1!==e.httpCompression&&(e.httpCompression||{}),this.initialPacket=e.initialPacket;var t=this;["perMessageDeflate","httpCompression"].forEach(function(e){var n=t[e];!0===n&&(t[e]=n={}),n&&null==n.threshold&&(n.threshold=1024)}),this.init()}function f(e,t,n){var i={"Content-Type":"application/json"};if(!d.errorMessages.hasOwnProperty(n))return t.writeHead(403,i),void t.end(JSON.stringify({code:d.errors.FORBIDDEN,message:n||d.errorMessages[d.errors.FORBIDDEN]}));e.headers.origin?(i["Access-Control-Allow-Credentials"]="true",i["Access-Control-Allow-Origin"]=e.headers.origin):i["Access-Control-Allow-Origin"]="*",void 0!==t&&(t.writeHead(400,i),t.end(JSON.stringify({code:n,message:d.errorMessages[n]})))}e.exports=d,d.errors={UNKNOWN_TRANSPORT:0,UNKNOWN_SID:1,BAD_HANDSHAKE_METHOD:2,BAD_REQUEST:3,FORBIDDEN:4},d.errorMessages={0:"Transport unknown",1:"Session ID unknown",2:"Bad handshake method",3:"Bad request",4:"Forbidden"},l.inherits(d,s),d.prototype.init=function(){if(~this.transports.indexOf("websocket")){var e;switch(this.ws&&this.ws.close(),this.wsEngine){case"uws":e=n(166);break;case"ws":e=n(177);break;default:throw new Error("unknown wsEngine")}this.ws=new e.Server({noServer:!0,clientTracking:!1,perMessageDeflate:this.perMessageDeflate,maxPayload:this.maxHttpBufferSize})}},d.prototype.upgrades=function(e){return this.allowUpgrades&&r[e].upgradesTo||[]},d.prototype.verify=function(e,t,n){var i=e._query.transport;if(!~this.transports.indexOf(i))return u('unknown transport "%s"',i),n(d.errors.UNKNOWN_TRANSPORT,!1);if(function(e){if((e+="").length<1)return!1;if(!h[e.charCodeAt(0)])return u('invalid header, index 0, char "%s"',e.charCodeAt(0)),!0;if(e.length<2)return!1;if(!h[e.charCodeAt(1)])return u('invalid header, index 1, char "%s"',e.charCodeAt(1)),!0;if(e.length<3)return!1;if(!h[e.charCodeAt(2)])return u('invalid header, index 2, char "%s"',e.charCodeAt(2)),!0;if(e.length<4)return!1;if(!h[e.charCodeAt(3)])return u('invalid header, index 3, char "%s"',e.charCodeAt(3)),!0;for(var t=4;t<e.length;++t)if(!h[e.charCodeAt(t)])return u('invalid header, index "%i", char "%s"',t,e.charCodeAt(t)),!0;return!1}(e.headers.origin))return e.headers.origin=null,u("origin header invalid"),n(d.errors.BAD_REQUEST,!1);var a=e._query.sid;return a?this.clients.hasOwnProperty(a)?t||this.clients[a].transport.name===i?void n(null,!0):(u("bad request: unexpected transport without upgrade"),n(d.errors.BAD_REQUEST,!1)):(u('unknown sid "%s"',a),n(d.errors.UNKNOWN_SID,!1)):"GET"!==e.method?n(d.errors.BAD_HANDSHAKE_METHOD,!1):this.allowRequest?this.allowRequest(e,n):n(null,!0)},d.prototype.prepare=function(e){e._query||(e._query=~e.url.indexOf("?")?i.parse(a(e.url).query):{})},d.prototype.close=function(){for(var e in u("closing all open clients"),this.clients)this.clients.hasOwnProperty(e)&&this.clients[e].close(!0);return this.ws&&(u("closing webSocketServer"),this.ws.close()),this},d.prototype.handleRequest=function(e,t){u('handling "%s" http request "%s"',e.method,e.url),this.prepare(e),e.res=t;var n=this;this.verify(e,!1,function(i,a){a?e._query.sid?(u("setting new request for existing client"),n.clients[e._query.sid].transport.onRequest(e)):n.handshake(e._query.transport,e):f(e,t,i)})},d.prototype.generateId=function(e){return o.generateId()},d.prototype.handshake=function(e,t){var n=this.generateId(t);u('handshaking client "%s"',n);try{var i=new r[e](t);"polling"===e?(i.maxHttpBufferSize=this.maxHttpBufferSize,i.httpCompression=this.httpCompression):"websocket"===e&&(i.perMessageDeflate=this.perMessageDeflate),t._query&&t._query.b64?i.supportsBinary=!1:i.supportsBinary=!0}catch(n){return u('error handshaking to transport "%s"',e),void f(t,t.res,d.errors.BAD_REQUEST)}var a=new c(n,this,i,t),o=this;!1!==this.cookie&&i.on("headers",function(e){e["Set-Cookie"]=p.serialize(o.cookie,n,{path:o.cookiePath,httpOnly:!!o.cookiePath&&o.cookieHttpOnly})}),i.onRequest(t),this.clients[n]=a,this.clientsCount++,a.once("close",function(){delete o.clients[n],o.clientsCount--}),this.emit("connection",a)},d.prototype.handleUpgrade=function(e,t,n){this.prepare(e);var i=this;this.verify(e,!0,function(a,o){if(o){var r=Buffer.from(n);n=null,i.ws.handleUpgrade(e,t,r,function(t){i.onWebSocket(e,t)})}else!function(e,t){if(e.on("error",()=>{u("ignoring error from closed connection")}),e.writable){var n=d.errorMessages.hasOwnProperty(t)?d.errorMessages[t]:String(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,a)})},d.prototype.onWebSocket=function(e,t){if(t.on("error",o),void 0!==r[e._query.transport]&&!r[e._query.transport].prototype.handlesUpgrades)return u("transport doesnt handle upgraded requests"),void t.close();var n=e._query.sid;if(e.websocket=t,n){var i=this.clients[n];if(i)if(i.upgrading)u("transport has already been trying to upgrade"),t.close();else if(i.upgraded)u("transport had already been upgraded"),t.close();else{u("upgrading existing transport"),t.removeListener("error",o);var a=new r[e._query.transport](e);e._query&&e._query.b64?a.supportsBinary=!1:a.supportsBinary=!0,a.perMessageDeflate=this.perMessageDeflate,i.maybeUpgrade(a)}else u("upgrade attempt for closed client"),t.close()}else t.removeListener("error",o),this.handshake(e._query.transport,e);function o(){u("websocket error before upgrade")}},d.prototype.attach=function(e,t){var n=this,i=((t=t||{}).path||"/engine.io").replace(/\/$/,""),a=t.destroyUpgradeTimeout||1e3;function o(e){return("OPTIONS"!==e.method||!1!==t.handlePreflightRequest)&&i===e.url.substr(0,i.length)}i+="/";var r=e.listeners("request").slice(0);e.removeAllListeners("request"),e.on("close",n.close.bind(n)),e.on("listening",n.init.bind(n)),e.on("request",function(a,s){if(o(a))u('intercepting request for path "%s"',i),"OPTIONS"===a.method&&"function"==typeof t.handlePreflightRequest?t.handlePreflightRequest.call(e,a,s):n.handleRequest(a,s);else for(var c=0,l=r.length;c<l;c++)r[c].call(e,a,s)}),~n.transports.indexOf("websocket")&&e.on("upgrade",function(e,i,r){o(e)?n.handleUpgrade(e,i,r):!1!==t.destroyUpgrade&&setTimeout(function(){if(i.writable&&i.bytesWritten<=0)return i.end()},a)})};var h=[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]},function(e,t,n){
/*!
* base64id v0.1.0
*/
var i=n(20),a=function(){};a.prototype.getRandomBytes=function(e){var t=this;if((e=e||12)>4096)return i.randomBytes(e);var n=parseInt(4096/e),a=parseInt(.85*n);if(!a)return i.randomBytes(e);if(null==this.bytesBufferIndex&&(this.bytesBufferIndex=-1),this.bytesBufferIndex==n&&(this.bytesBuffer=null,this.bytesBufferIndex=-1),(-1==this.bytesBufferIndex||this.bytesBufferIndex>a)&&(this.isGeneratingBytes||(this.isGeneratingBytes=!0,i.randomBytes(4096,function(e,n){t.bytesBuffer=n,t.bytesBufferIndex=0,t.isGeneratingBytes=!1})),-1==this.bytesBufferIndex))return i.randomBytes(e);var o=this.bytesBuffer.slice(e*this.bytesBufferIndex,e*(this.bytesBufferIndex+1));return this.bytesBufferIndex++,o},a.prototype.generateId=function(){var e=Buffer.alloc(15);return e.writeInt32BE?(this.sequenceNumber=this.sequenceNumber+1|0,e.writeInt32BE(this.sequenceNumber,11),i.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 a},function(e,t,n){var i=n(74),a=n(1);function o(e){i.call(this,e)}e.exports=o,a.inherits(o,i),o.prototype.onRequest=function(e){if("OPTIONS"===e.method){var t=e.res,n=this.headers(e);n["Access-Control-Allow-Headers"]="Content-Type",t.writeHead(200,n),t.end()}else i.prototype.onRequest.call(this,e)},o.prototype.headers=function(e,t){return t=t||{},e.headers.origin?(t["Access-Control-Allow-Credentials"]="true",t["Access-Control-Allow-Origin"]=e.headers.origin):t["Access-Control-Allow-Origin"]="*",i.prototype.headers.call(this,e,t)}},function(e,t){
/*! https://mths.be/utf8js v2.1.2 by @mathias */
var n,i,a,o=String.fromCharCode;function r(e){for(var t,n,i=[],a=0,o=e.length;a<o;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<o?56320==(64512&(n=e.charCodeAt(a++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),a--):i.push(t);return i}function s(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 c(e,t){return o(e>>t&63|128)}function l(e,t){if(0==(4294967168&e))return o(e);var n="";return 0==(4294965248&e)?n=o(e>>6&31|192):0==(4294901760&e)?(s(e,t)||(e=65533),n=o(e>>12&15|224),n+=c(e,6)):0==(4292870144&e)&&(n=o(e>>18&7|240),n+=c(e,12),n+=c(e,6)),n+=o(63&e|128)}function u(){if(a>=i)throw Error("Invalid byte index");var e=255&n[a];if(a++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function p(e){var t,o;if(a>i)throw Error("Invalid byte index");if(a==i)return!1;if(t=255&n[a],a++,0==(128&t))return t;if(192==(224&t)){if((o=(31&t)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&t)){if((o=(15&t)<<12|u()<<6|u())>=2048)return s(o,e)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(o=(7&t)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,i=r(e),a=i.length,o=-1,s="";++o<a;)s+=l(i[o],n);return s},decode:function(e,t){var s=!1!==(t=t||{}).strict;n=r(e),i=n.length,a=0;for(var c,l=[];!1!==(c=p(s));)l.push(c);return function(e){for(var t,n=e.length,i=-1,a="";++i<n;)(t=e[i])>65535&&(a+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),a+=o(t);return a}(l)}}},function(e,t){function n(){}e.exports=function(e,t,i){var a=!1;return i=i||n,o.count=e,0===e?t():o;function o(e,n){if(o.count<=0)throw new Error("after called too many times");--o.count,e?(a=!0,t(e),t=i):0!==o.count||a||t(null,n)}}},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&t.push(i);return t}},function(e,t,n){t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(a=i))}),t.splice(a,0,n)},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;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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),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"],e.exports=n(75)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,n){const i=n(76),a=n(1);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;i<n.length;i++)e.inspectOpts[n[i]]=t.inspectOpts[n[i]]},t.log=function(...e){return process.stderr.write(a.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:i,useColors:a}=this;if(a){const t=this.color,a="[3"+(t<8?t:"8;5;"+t),o=` ${a};1m${i} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(a+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+n[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):i.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{const e=n(152);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 n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e},{}),e.exports=n(75)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}},function(e,t,n){"use strict";const i=n(10),a=n(153),{env:o}=process;let r;function s(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(0===r)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!e.isTTY&&void 0===r)return 0;const t=r||0;if("dumb"===o.TERM)return t;if("win32"===process.platform){const e=i.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)?1:"COLORTERM"in o?1:t}(e))}a("no-color")||a("no-colors")||a("color=false")||a("color=never")?r=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(r=1),"FORCE_COLOR"in o&&(r=!0===o.FORCE_COLOR||"true"===o.FORCE_COLOR?1:!1===o.FORCE_COLOR||"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},function(e,t,n){"use strict";e.exports=((e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),a=t.indexOf("--");return-1!==i&&(-1===a||i<a)})},function(e,t,n){"use strict";
/*!
* accepts
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var i=n(155),a=n(160);function o(e){if(!(this instanceof o))return new o(e);this.headers=e.headers,this.negotiator=new i(e)}function r(e){return-1===e.indexOf("/")?a.lookup(e):e}function s(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 n=0;n<t.length;n++)t[n]=arguments[n]}if(!t||0===t.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return t[0];var i=t.map(r),a=this.negotiator.mediaTypes(i.filter(s))[0];return!!a&&t[i.indexOf(a)]},o.prototype.encoding=o.prototype.encodings=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}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 n=0;n<t.length;n++)t[n]=arguments[n]}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 n=0;n<t.length;n++)t[n]=arguments[n]}return t&&0!==t.length?this.negotiator.languages(t)[0]||!1:this.negotiator.languages()}},function(e,t,n){"use strict";
/*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var i=Object.create(null);function a(e){if(!(this instanceof a))return new a(e);this.request=e}function o(e){var t=i[e];if(void 0!==t)return t;switch(e){case"charset":t=n(156);break;case"encoding":t=n(157);break;case"language":t=n(158);break;case"mediaType":t=n(159);break;default:throw new Error("Cannot find module '"+e+"'")}return i[e]=t,t}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(0,o("charset").preferredCharsets)(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(0,o("encoding").preferredEncodings)(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(0,o("language").preferredLanguages)(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(0,o("mediaType").preferredMediaTypes)(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},function(e,t,n){"use strict";e.exports=r,e.exports.preferredCharsets=r;var i=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function a(e,t){var n=i.exec(e);if(!n)return null;var a=n[1],o=1;if(n[2])for(var r=n[2].split(";"),s=0;s<r.length;s++){var c=r[s].trim().split("=");if("q"===c[0]){o=parseFloat(c[1]);break}}return{charset:a,q:o,i:t}}function o(e,t,n){var i=0;if(t.charset.toLowerCase()===e.toLowerCase())i|=1;else if("*"!==t.charset)return null;return{i:n,o:t.i,q:t.q,s:i}}function r(e,t){var n=function(e){for(var t=e.split(","),n=0,i=0;n<t.length;n++){var o=a(t[n].trim(),n);o&&(t[i++]=o)}return t.length=i,t}(void 0===e?"*":e||"");if(!t)return n.filter(l).sort(s).map(c);var i=t.map(function(e,t){return function(e,t,n){for(var i={o:-1,q:0,s:0},a=0;a<t.length;a++){var r=o(e,t[a],n);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}(e,n,t)});return i.filter(l).sort(s).map(function(e){return t[i.indexOf(e)]})}function s(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function c(e){return e.charset}function l(e){return e.q>0}},function(e,t,n){"use strict";e.exports=r,e.exports.preferredEncodings=r;var i=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function a(e,t){var n=i.exec(e);if(!n)return null;var a=n[1],o=1;if(n[2])for(var r=n[2].split(";"),s=0;s<r.length;s++){var c=r[s].trim().split("=");if("q"===c[0]){o=parseFloat(c[1]);break}}return{encoding:a,q:o,i:t}}function o(e,t,n){var i=0;if(t.encoding.toLowerCase()===e.toLowerCase())i|=1;else if("*"!==t.encoding)return null;return{i:n,o:t.i,q:t.q,s:i}}function r(e,t){var n=function(e){for(var t=e.split(","),n=!1,i=1,r=0,s=0;r<t.length;r++){var c=a(t[r].trim(),r);c&&(t[s++]=c,n=n||o("identity",c),i=Math.min(i,c.q||1))}return n||(t[s++]={encoding:"identity",q:i,i:r}),t.length=s,t}(e||"");if(!t)return n.filter(l).sort(s).map(c);var i=t.map(function(e,t){return function(e,t,n){for(var i={o:-1,q:0,s:0},a=0;a<t.length;a++){var r=o(e,t[a],n);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}(e,n,t)});return i.filter(l).sort(s).map(function(e){return t[i.indexOf(e)]})}function s(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function c(e){return e.encoding}function l(e){return e.q>0}},function(e,t,n){"use strict";e.exports=r,e.exports.preferredLanguages=r;var i=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function a(e,t){var n=i.exec(e);if(!n)return null;var a=n[1],o=n[2],r=a;o&&(r+="-"+o);var s=1;if(n[3])for(var c=n[3].split(";"),l=0;l<c.length;l++){var u=c[l].split("=");"q"===u[0]&&(s=parseFloat(u[1]))}return{prefix:a,suffix:o,q:s,i:t,full:r}}function o(e,t,n){var i=a(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 r(e,t){var n=function(e){for(var t=e.split(","),n=0,i=0;n<t.length;n++){var o=a(t[n].trim(),n);o&&(t[i++]=o)}return t.length=i,t}(void 0===e?"*":e||"");if(!t)return n.filter(l).sort(s).map(c);var i=t.map(function(e,t){return function(e,t,n){for(var i={o:-1,q:0,s:0},a=0;a<t.length;a++){var r=o(e,t[a],n);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}(e,n,t)});return i.filter(l).sort(s).map(function(e){return t[i.indexOf(e)]})}function s(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function c(e){return e.full}function l(e){return e.q>0}},function(e,t,n){"use strict";e.exports=s,e.exports.preferredMediaTypes=s;var i=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function a(e){for(var t=function(e){for(var t=e.split(","),n=1,i=0;n<t.length;n++)p(t[i])%2==0?t[++i]=t[n]:t[i]+=","+t[n];return t.length=i+1,t}(e),n=0,i=0;n<t.length;n++){var a=o(t[n].trim(),n);a&&(t[i++]=a)}return t.length=i,t}function o(e,t){var n=i.exec(e);if(!n)return null;var a=Object.create(null),o=1,r=n[2],s=n[1];if(n[3])for(var c=function(e){for(var t=e.split(";"),n=1,i=0;n<t.length;n++)p(t[i])%2==0?t[++i]=t[n]:t[i]+=";"+t[n];t.length=i+1;for(var n=0;n<t.length;n++)t[n]=t[n].trim();return t}(n[3]).map(d),l=0;l<c.length;l++){var u=c[l],f=u[0].toLowerCase(),h=u[1],m=h&&'"'===h[0]&&'"'===h[h.length-1]?h.substr(1,h.length-2):h;if("q"===f){o=parseFloat(m);break}a[f]=m}return{type:s,subtype:r,params:a,q:o,i:t}}function r(e,t,n){var i=o(e),a=0;if(!i)return null;if(t.type.toLowerCase()==i.type.toLowerCase())a|=4;else if("*"!=t.type)return null;if(t.subtype.toLowerCase()==i.subtype.toLowerCase())a|=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;a|=1}return{i:n,o:t.i,q:t.q,s:a}}function s(e,t){var n=a(void 0===e?"*/*":e||"");if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return function(e,t,n){for(var i={o:-1,q:0,s:0},a=0;a<t.length;a++){var o=r(e,t[a],n);o&&(i.s-o.s||i.q-o.q||i.o-o.o)<0&&(i=o)}return i}(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.type+"/"+e.subtype}function u(e){return e.q>0}function p(e){for(var t=0,n=0;-1!==(n=e.indexOf('"',n));)t++,n++;return t}function d(e){var t,n,i=e.indexOf("=");return-1===i?t=e:(t=e.substr(0,i),n=e.substr(i+1)),[t,n]}},function(e,t,n){"use strict";
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var i,a,o,r=n(161),s=n(24).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&r[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=u,t.charsets={lookup:u},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var i=t.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),i=n&&t.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().substr(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),i=t.extensions,a=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(r).forEach(function(e){var t=r[e],n=t.extensions;if(n&&n.length){i[e]=n;for(var s=0;s<n.length;s++){var c=n[s];if(a[c]){var l=o.indexOf(r[a[c]].source),u=o.indexOf(t.source);if("application/octet-stream"!==a[c]&&(l>u||l===u&&"application/"===a[c].substr(0,12)))continue}a[c]=e}}})},function(e,t,n){
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* MIT Licensed
*/
e.exports=n(162)},function(e){e.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0},"application/atsc-held+xml":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/cbor":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0},"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:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["ecma","es"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0},"application/fhir+json":{source:"iana",compressible:!0},"application/fhir+xml":{source:"iana",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"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:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",compressible:!0},"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:!0,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:!0},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"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:!0,extensions:["mads"]},"application/manifest+json":{charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0},"application/mmt-usd+xml":{source:"iana",compressible:!0},"application/mods+xml":{source:"iana",compressible:!0,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:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",compressible:!0},"application/msc-mixer+xml":{source:"iana",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"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"},"application/news-groupinfo":{source:"iana"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana"},"application/nss":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,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:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p2p-overlay+xml":{source:"iana",compressible:!0},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana"},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",compressible:!0},"application/pidf-diff+xml":{source:"iana",compressible:!0},"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:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0},"application/route-s-tsid+xml":{source:"iana",compressible:!0},"application/route-usd+xml":{source:"iana",compressible:!0},"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:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"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:!0},"application/senml+xml":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"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:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"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:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0},"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:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,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:!0},"application/tnauthlist":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana"},"application/ttml+xml":{source:"iana",compressible:!0},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0},"application/urc-targetdesc+xml":{source:"iana",compressible:!0},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"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.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"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:!1,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:!0,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.modca":{source:"iana"},"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:!0},"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:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,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.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:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["keynote"]},"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:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"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:!0},"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:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,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:!0,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:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"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:!0},"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:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"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:!0,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:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"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:!0},"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.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:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"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.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:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"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:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"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:!1},"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.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:!1},"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.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:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"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:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"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:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"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:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"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:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,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:!1},"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:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"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"},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"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:!0},"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:!0},"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:!0,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:!1,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:!0,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:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,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:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,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:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"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:!1,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.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0},"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:!0},"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:!1,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:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,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.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",compressible:!0},"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:!0},"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:!0},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"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:!0},"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:!0},"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:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana"},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"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:!0,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.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.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:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,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:!0,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.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",compressible:!0},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"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:!0,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:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"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",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.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:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"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:!0},"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:!0,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:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0},"application/webpush-options+json":{source:"iana",compressible:!0},"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:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,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:!1,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:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,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:!1},"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:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,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:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-latex":{source:"apache",compressible:!1,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:!1},"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:!0,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:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-rar-compressed":{source:"apache",compressible:!1,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:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,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:!0,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:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"apache",extensions:["der","crt","pem"]},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,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:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0},"application/xcap-caps+xml":{source:"iana",compressible:!0},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,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:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana"},"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:!1,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:!1},"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/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana"},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx"]},"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/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{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/tone":{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:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,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:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana"},"image/avcs":{source:"iana"},"image/bmp":{source:"iana",compressible:!0,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:!1,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:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,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/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,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:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,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",extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{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.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:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,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:!1},"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:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,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/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,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:!0},"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.rosette.annotated-data-model":{source:"iana"},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"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:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,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/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana"},"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:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shex":{extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,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:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,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"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana"},"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.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",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana"},"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":{charset:"UTF-8",compressible:!0,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:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,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:!0,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:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{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/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{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"},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"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:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,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/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/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,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:!1,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:!0},"x-shader/x-vertex":{compressible:!0}}},function(e,t,n){var i=n(74),a=n(72),o=/\\\\n/g,r=/(\\)?\\n/g,s=n(1);function c(e){i.call(this,e),this.head="___eio["+(e._query.j||"").replace(/[^0-9]/g,"")+"](",this.foot=");"}e.exports=c,s.inherits(c,i),c.prototype.onData=function(e){"string"==typeof(e=a.parse(e).d)&&(e=e.replace(r,function(e,t){return t?e:"\n"}),i.prototype.onData.call(this,e.replace(o,"\\n")))},c.prototype.doWrite=function(e,t,n){var a=JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");e=this.head+a+this.foot,i.prototype.doWrite.call(this,e,t,n)}},function(e,t,n){var i=n(40),a=n(25),o=n(1),r=n(6)("engine:ws");function s(e){i.call(this,e);var t=this;this.socket=e.websocket,this.socket.on("message",this.onData.bind(this)),this.socket.once("close",this.onClose.bind(this)),this.socket.on("error",this.onError.bind(this)),this.socket.on("headers",function(e){t.emit("headers",e)}),this.writable=!0,this.perMessageDeflate=null}e.exports=s,o.inherits(s,i),s.prototype.name="websocket",s.prototype.handlesUpgrades=!0,s.prototype.supportsFraming=!0,s.prototype.onData=function(e){r('received "%s"',e),i.prototype.onData.call(this,e)},s.prototype.send=function(e){for(var t=this,n=0;n<e.length;n++){var i=e[n];a.encodePacket(i,t.supportsBinary,o)}function o(e){r('writing "%s"',e);var n={};(i.options&&(n.compress=i.options.compress),t.perMessageDeflate)&&(("string"==typeof e?Buffer.byteLength(e):e.length)<t.perMessageDeflate.threshold&&(n.compress=!1));t.writable=!1,t.socket.send(e,n,s)}function s(e){if(e)return t.onError("write error",e.stack);t.writable=!0,t.emit("drain")}},s.prototype.doClose=function(e){r("closing"),this.socket.close(),e&&e()}},function(e,t,n){"use strict";
/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},a=t||{},r=e.split(o),c=a.decode||i,l=0;l<r.length;l++){var u=r[l],p=u.indexOf("=");if(!(p<0)){var d=u.substr(0,p).trim(),f=u.substr(++p,u.length).trim();'"'==f[0]&&(f=f.slice(1,-1)),null==n[d]&&(n[d]=s(f,c))}}return n},t.serialize=function(e,t,n){var i=n||{},o=i.encode||a;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!r.test(e))throw new TypeError("argument name is invalid");var s=o(t);if(s&&!r.test(s))throw new TypeError("argument val is invalid");var c=e+"="+s;if(null!=i.maxAge){var l=i.maxAge-0;if(isNaN(l))throw new Error("maxAge should be a Number");c+="; Max-Age="+Math.floor(l)}if(i.domain){if(!r.test(i.domain))throw new TypeError("option domain is invalid");c+="; Domain="+i.domain}if(i.path){if(!r.test(i.path))throw new TypeError("option path is invalid");c+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+i.expires.toUTCString()}i.httpOnly&&(c+="; HttpOnly");i.secure&&(c+="; Secure");if(i.sameSite){var u="string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite;switch(u){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return c};var i=decodeURIComponent,a=encodeURIComponent,o=/; */,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(t){return e}}},function(e,t,n){"use strict";const i=n(12),a=n(4),o="Registering more than one listener to a WebSocket is not supported.",r=16777216;let s=null;function c(){}function l(e,t,n){e.end("HTTP/1.1 "+t+" "+n+"\r\n\r\n")}function u(e){this.emit("connection",e,s)}function p(e,t){t.internalOnMessage(e)}const d=(()=>{try{try{return process.binding("uws_builtin")}catch(e){return n(167)(`./uws_${process.platform}_${process.versions.modules}`)}}catch(e){const t=process.version.substring(1).split(".").map(function(e){return parseInt(e)}),n=t[0]<6||6===t[0]&&t[1]<4;throw"win32"===process.platform&&n?new Error("µWebSockets requires Node.js 6.4.0 or greater on Windows."):new Error("Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'uws'.")}})();d.setNoop(c);const f=d.client.group.create(0,r);d.client.group.onConnection(f,e=>{const t=d.getUserData(e);t.external=e,t.internalOnOpen()}),d.client.group.onMessage(f,(e,t)=>{t.internalOnMessage(e)}),d.client.group.onDisconnection(f,(e,t,n,i)=>{i.external=null,process.nextTick(()=>{i.internalOnClose(t,n)}),d.clearUserData(e)}),d.client.group.onPing(f,(e,t)=>{t.onping(e)}),d.client.group.onPong(f,(e,t)=>{t.onpong(e)}),d.client.group.onError(f,e=>{process.nextTick(()=>{e.internalOnError({message:"uWs client connection error",stack:"uWs client connection error"})})});class h{constructor(e){this.external=e,this.internalOnMessage=c,this.internalOnClose=c,this.onping=c,this.onpong=c}get upgradeReq(){return s}set onmessage(e){this.internalOnMessage=e?t=>{e({data:t})}:c}set onopen(e){this.internalOnOpen=e||c}set onclose(e){this.internalOnClose=e?(t,n)=>{e({code:t,reason:n})}:c}set onerror(e){this.internalOnError=e&&this instanceof m?e:c}emit(e,t,n){return"message"===e?this.internalOnMessage(t):"close"===e?this.internalOnClose(t,n):"ping"===e?this.onping(t):"pong"===e&&this.onpong(t),this}on(e,t){if("message"===e){if(this.internalOnMessage!==c)throw Error(o);this.internalOnMessage=t}else if("close"===e){if(this.internalOnClose!==c)throw Error(o);this.internalOnClose=t}else if("ping"===e){if(this.onping!==c)throw Error(o);this.onping=t}else if("pong"===e){if(this.onpong!==c)throw Error(o);this.onpong=t}else if("open"===e){if(this.internalOnOpen!==c)throw Error(o);this.internalOnOpen=t}else if("error"===e&&this instanceof m){if(this.internalOnError!==c)throw Error(o);this.internalOnError=t}return this}once(e,t){if("message"===e){if(this.internalOnMessage!==c)throw Error(o);this.internalOnMessage=(e=>{this.internalOnMessage=c,t(e)})}else if("open"===e){if(this.internalOnOpen!==c)throw Error(o);this.internalOnOpen=(()=>{this.internalOnOpen=c,t()})}else if("close"===e){if(this.internalOnClose!==c)throw Error(o);this.internalOnClose=((e,n)=>{this.internalOnClose=c,t(e,n)})}else if("ping"===e){if(this.onping!==c)throw Error(o);this.onping=(()=>{this.onping=c,t()})}else if("pong"===e){if(this.onpong!==c)throw Error(o);this.onpong=(()=>{this.onpong=c,t()})}return this}removeAllListeners(e){return e&&"message"!==e||(this.internalOnMessage=c),e&&"open"!==e||(this.internalOnOpen=c),e&&"close"!==e||(this.internalOnClose=c),e&&"ping"!==e||(this.onping=c),e&&"pong"!==e||(this.onpong=c),this}removeListener(e,t){return"message"===e&&this.internalOnMessage===t?this.internalOnMessage=c:"open"===e&&this.internalOnOpen===t?this.internalOnOpen=c:"close"===e&&this.internalOnClose===t?this.internalOnClose=c:"ping"===e&&this.onping===t?this.onping=c:"pong"===e&&this.onpong===t&&(this.onpong=c),this}get OPEN(){return m.OPEN}get CLOSED(){return m.CLOSED}get readyState(){return this.external?m.OPEN:m.CLOSED}get _socket(){const e=this.external?d.getAddress(this.external):new Array(3);return{remotePort:e[0],remoteAddress:e[1],remoteFamily:e[2]}}ping(e,t,n){this.external&&d.server.send(this.external,e,m.OPCODE_PING,!1)}terminate(){this.external&&(d.server.terminate(this.external),this.external=null)}send(e,t,n,i){if(this.external){"function"==typeof t&&(n=t,t=null);const a=t&&"boolean"==typeof t.binary?t.binary:"string"!=typeof e;d.server.send(this.external,e,a?m.OPCODE_BINARY:m.OPCODE_TEXT,n?()=>{process.nextTick(n)}:void 0,i)}else n&&n(new Error("not opened"))}close(e,t){this.external&&(d.server.close(this.external,e,t),this.external=null)}}class m extends h{constructor(e){super(null),this.internalOnOpen=c,this.internalOnError=c,d.connect(f,e,this)}ping(e,t,n){this.external&&d.client.send(this.external,e,m.OPCODE_PING,!1)}terminate(){this.external&&(d.client.terminate(this.external),this.external=null)}send(e,t,n,i){if(this.external){"function"==typeof t&&(n=t,t=null);const a=t&&"boolean"==typeof t.binary?t.binary:"string"!=typeof e;d.client.send(this.external,e,a?m.OPCODE_BINARY:m.OPCODE_TEXT,n?()=>{process.nextTick(n)}:void 0,i)}else n&&n(new Error("not opened"))}close(e,t){this.external&&(d.client.close(this.external,e,t),this.external=null)}}m.PERMESSAGE_DEFLATE=1,m.SLIDING_DEFLATE_WINDOW=16,m.OPCODE_TEXT=1,m.OPCODE_BINARY=2,m.OPCODE_PING=9,m.OPEN=1,m.CLOSED=0,m.Server=class extends a{constructor(e,t){if(super(),!e)throw new TypeError("missing options");if(void 0===e.port&&!e.server&&!e.noServer)throw new TypeError("invalid options");var n=0;void 0!==e.perMessageDeflate&&!1!==e.perMessageDeflate&&(n|=m.PERMESSAGE_DEFLATE,!1===e.perMessageDeflate.serverNoContextTakeover&&(n|=m.SLIDING_DEFLATE_WINDOW)),this.serverGroup=d.server.group.create(n,void 0===e.maxPayload?r:e.maxPayload),this._upgradeCallback=c,this._upgradeListener=null,this._noDelay=void 0===e.noDelay||e.noDelay,this._lastUpgradeListener=!0,this._passedHttpServer=e.server,e.noServer||(this.httpServer=e.server?e.server:i.createServer((e,t)=>{t.end()}),!e.path||e.path.length&&"/"===e.path[0]||(e.path="/"+e.path),this.httpServer.on("upgrade",this._upgradeListener=((t,n,i)=>{if(e.path&&e.path!=t.url.split("?")[0].split("#")[0])this._lastUpgradeListener&&l(n,400,"URL not supported");else if(e.verifyClient){const a={origin:t.headers.origin,secure:void 0!==t.connection.authorized||void 0!==t.connection.encrypted,req:t};2===e.verifyClient.length?e.verifyClient(a,(e,a,o)=>{e?this.handleUpgrade(t,n,i,u):l(n,a,o)}):e.verifyClient(a)?this.handleUpgrade(t,n,i,u):l(n,400,"Client verification failed")}else this.handleUpgrade(t,n,i,u)})),this.httpServer.on("newListener",(e,t)=>{"upgrade"===e&&(this._lastUpgradeListener=!1)}),this.httpServer.on("error",e=>{this.emit("error",e)})),d.server.group.onDisconnection(this.serverGroup,(e,t,n,i)=>{i.external=null,process.nextTick(()=>{i.internalOnClose(t,n)}),d.clearUserData(e)}),d.server.group.onMessage(this.serverGroup,p),d.server.group.onPing(this.serverGroup,(e,t)=>{t.onping(e)}),d.server.group.onPong(this.serverGroup,(e,t)=>{t.onpong(e)}),d.server.group.onConnection(this.serverGroup,e=>{const t=new h(e);d.setUserData(e,t),this._upgradeCallback(t),s=null}),void 0!==e.port&&(e.host?this.httpServer.listen(e.port,e.host,()=>{this.emit("listening"),t&&t()}):this.httpServer.listen(e.port,()=>{this.emit("listening"),t&&t()}))}handleUpgrade(e,t,n,i){if(t._isNative)this.serverGroup&&(s=e,this._upgradeCallback=i||c,d.upgrade(this.serverGroup,t.external,secKey,e.headers["sec-websocket-extensions"],e.headers["sec-websocket-protocol"]));else{const n=e.headers["sec-websocket-key"],a=t.ssl?t._parent._handle:t._handle,o=t.ssl?t.ssl._external:null;if(a&&n&&24==n.length){t.setNoDelay(this._noDelay);const r=d.transfer(-1===a.fd?a:a.fd,o);t.on("close",t=>{this.serverGroup&&(s=e,this._upgradeCallback=i||c,d.upgrade(this.serverGroup,r,n,e.headers["sec-websocket-extensions"],e.headers["sec-websocket-protocol"]))})}t.destroy()}}broadcast(e,t){this.serverGroup&&d.server.group.broadcast(this.serverGroup,e,t&&t.binary||!1)}startAutoPing(e,t){this.serverGroup&&d.server.group.startAutoPing(this.serverGroup,e,t)}close(e){this._upgradeListener&&this.httpServer&&(this.httpServer.removeListener("upgrade",this._upgradeListener),this._passedHttpServer||this.httpServer.close()),this.serverGroup&&(d.server.group.close(this.serverGroup),this.serverGroup=null),"function"==typeof e&&setTimeout(e,2e4)}get clients(){if(this.serverGroup)return{length:d.server.group.getSize(this.serverGroup),forEach:e=>{d.server.group.forEach(this.serverGroup,e)}}}},m.http=d.httpServer,m.native=d,e.exports=m},function(e,t,n){var i={"./uws_darwin_57.node":168,"./uws_darwin_59.node":169,"./uws_darwin_64.node":170,"./uws_linux_57.node":171,"./uws_linux_59.node":172,"./uws_linux_64.node":173,"./uws_win32_57.node":174,"./uws_win32_59.node":175,"./uws_win32_64.node":176};function a(e){var t=o(e);return n(t)}function o(e){var t=i[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(i)},a.resolve=o,e.exports=a,a.id=167},function(e,t){throw new Error("Module parse failed: Unexpected character '�' (1:0)\nYou may need an appropriate loader to handle this file type.\n(Source code omitted for this binary file)")},function(e,t){throw new Error("Module parse failed: Unexpected character '�' (1:0)\nYou may need an appropriate loader to handle this file type.\n(Source code omitted for this binary file)")},function(e,t){throw new Error("Module parse failed: Unexpected character '�' (1:0)\nYou may need an appropriate loader to handle this file type.\n(Source code omitted for this binary file)")},function(e,t){throw new Error("Module parse failed: Unexpected character '' (1:0)\nYou may need an appropriate loader to handle this file type.\n(Source code omitted for this binary file)")},function(e,t){throw new Error("Module parse failed: Unexpected character '' (1:0)\nYou may need an appropriate loader to handle this file type.\n(Source code omitted for this binary file)")},function(e,t){throw new Error("Module parse failed: Unexpected character '' (1:0)\nYou may need an appropriate loader to handle this file type.\n(Source code omitted for this binary file)")},function(e,t){throw new Error("Module parse failed: Unexpected character '�' (1:2)\nYou may need an appropriate loader to handle this file type.\n(Source code omitted for this binary file)")},function(e,t){throw new Error("Module parse failed: Unexpected character '�' (1:2)\nYou may need an appropriate loader to handle this file type.\n(Source code omitted for this binary file)")},function(e,t){throw new Error("Module parse failed: Unexpected character '�' (1:2)\nYou may need an appropriate loader to handle this file type.\n(Source code omitted for this binary file)")},function(e,t,n){"use strict";const i=n(78);i.createWebSocketStream=n(181),i.Server=n(182),i.Receiver=n(80),i.Sender=n(82),e.exports=i},function(e,t){e.exports=require("tls")},function(e,t,n){"use strict";function i(e){if(!(this instanceof i))return new i(e);e=e||{},this.concurrency=e.concurrency||1/0,this.pending=0,this.jobs=[],this.cbs=[],this._done=function(){this.pending--,this._run()}.bind(this)}["push","unshift","splice"].forEach(function(e){i.prototype[e]=function(){var t=Array.prototype[e].apply(this.jobs,arguments);return this._run(),t}}),Object.defineProperty(i.prototype,"length",{get:function(){return this.pending+this.jobs.length}}),i.prototype._run=function(){if(this.pending!==this.concurrency){if(this.jobs.length){var e=this.jobs.shift();this.pending++,e(this._done),this._run()}if(0===this.pending)for(;0!==this.cbs.length;){var t=this.cbs.pop();process.nextTick(t)}}},i.prototype.onDone=function(e){"function"==typeof e&&(this.cbs.push(e),this._run())},e.exports=i},function(e,t,n){"use strict";class i{constructor(e,t){this.target=t,this.type=e}}class a extends i{constructor(e,t){super("message",t),this.data=e}}class o extends i{constructor(e,t,n){super("close",n),this.wasClean=n._closeFrameReceived&&n._closeFrameSent,this.reason=t,this.code=e}}class r extends i{constructor(e){super("open",e)}}class s extends i{constructor(e,t){super("error",t),this.message=e.message,this.error=e}}const c={addEventListener(e,t){function n(e){t.call(this,new a(e,this))}function i(e,n){t.call(this,new o(e,n,this))}function c(e){t.call(this,new s(e,this))}function l(){t.call(this,new r(this))}"function"==typeof t&&("message"===e?(n._listener=t,this.on(e,n)):"close"===e?(i._listener=t,this.on(e,i)):"error"===e?(c._listener=t,this.on(e,c)):"open"===e?(l._listener=t,this.on(e,l)):this.on(e,t))},removeEventListener(e,t){const n=this.listeners(e);for(let i=0;i<n.length;i++)n[i]!==t&&n[i]._listener!==t||this.removeListener(e,n[i])}};e.exports=c},function(e,t,n){"use strict";const{Duplex:i}=n(14);function a(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 n=!0;function s(){n&&e._socket.resume()}e.readyState===e.CONNECTING?e.once("open",function(){e._receiver.removeAllListeners("drain"),e._receiver.on("drain",s)}):(e._receiver.removeAllListeners("drain"),e._receiver.on("drain",s));const c=new i({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(t){c.push(t)||(n=!1,e._socket.pause())}),e.once("error",function(e){c.destroy(e)}),e.once("close",function(){c.destroyed||c.push(null)}),c._destroy=function(t,n){if(e.readyState===e.CLOSED)return n(t),void process.nextTick(a,c);e.once("close",function(){n(t),process.nextTick(a,c)}),e.terminate()},c._final=function(t){e.readyState!==e.CONNECTING?e._socket._writableState.finished?(c._readableState.endEmitted&&c.destroy(),t()):(e._socket.once("finish",function(){t()}),e.close()):e.once("open",function(){c._final(t)})},c._read=function(){e.readyState!==e.OPEN||n||(n=!0,e._receiver._writableState.needDrain||e._socket.resume())},c._write=function(t,n,i){e.readyState!==e.CONNECTING?e.send(t,i):e.once("open",function(){c._write(t,n,i)})},c.on("end",o),c.on("error",r),c}},function(e,t,n){"use strict";const i=n(4),{createHash:a}=n(20),{createServer:o,STATUS_CODES:r}=n(12),s=n(26),c=n(78),{format:l,parse:u}=n(83),{GUID:p}=n(13),d=/^[+/0-9A-Za-z]{22}==$/,f=Symbol("kUsedByWebSocketServer");function h(e){e.emit("close")}function m(){this.destroy()}function v(e,t,n,i){e.writable&&(n=n||r[t],i={Connection:"close","Content-type":"text/html","Content-Length":Buffer.byteLength(n),...i},e.write(`HTTP/1.1 ${t} ${r[t]}\r\n`+Object.keys(i).map(e=>`${e}: ${i[e]}`).join("\r\n")+"\r\n\r\n"+n)),e.removeListener("error",m),e.destroy()}e.exports=class extends i{constructor(e,t){if(super(),null==(e={maxPayload:104857600,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,...e}).port&&!e.server&&!e.noServer)throw new TypeError('One of the "port", "server", or "noServer" options must be specified');if(null!=e.port)this._server=o((e,t)=>{const n=r[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":"text/plain"}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t);else if(e.server){if(e.server[f])throw new Error("The HTTP/S server is already being used by another WebSocket server");e.server[f]=!0,this._server=e.server}this._server&&(this._removeListeners=function(e,t){for(const n of Object.keys(t))e.on(n,t[n]);return function(){for(const n of Object.keys(t))e.removeListener(n,t[n])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(e,t,n)=>{this.handleUpgrade(e,t,n,t=>{this.emit("connection",t,e)})}})),!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set),this.options=e}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(e&&this.once("close",e),this.clients)for(const e of this.clients)e.terminate();const t=this._server;if(t){if(this._removeListeners(),this._removeListeners=this._server=null,null!=this.options.port)return void t.close(()=>this.emit("close"));delete t[f]}process.nextTick(h,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,n,i){t.on("error",m);const a=void 0!==e.headers["sec-websocket-key"]&&e.headers["sec-websocket-key"].trim(),o=+e.headers["sec-websocket-version"],r={};if("GET"!==e.method||"websocket"!==e.headers.upgrade.toLowerCase()||!a||!d.test(a)||8!==o&&13!==o||!this.shouldHandle(e))return v(t,400);if(this.options.perMessageDeflate){const n=new s(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const i=u(e.headers["sec-websocket-extensions"]);i[s.extensionName]&&(n.accept(i[s.extensionName]),r[s.extensionName]=n)}catch(e){return v(t,400)}}if(this.options.verifyClient){const s={origin:e.headers[`${8===o?"sec-websocket-origin":"origin"}`],secure:!(!e.connection.authorized&&!e.connection.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(s,(o,s,c,l)=>{if(!o)return v(t,s||401,c,l);this.completeUpgrade(a,r,e,t,n,i)});if(!this.options.verifyClient(s))return v(t,401)}this.completeUpgrade(a,r,e,t,n,i)}completeUpgrade(e,t,n,i,o,r){if(!i.readable||!i.writable)return i.destroy();const u=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${a("sha1").update(e+p).digest("base64")}`],d=new c(null);let f=n.headers["sec-websocket-protocol"];if(f&&(f=f.trim().split(/ *, */),(f=this.options.handleProtocols?this.options.handleProtocols(f,n):f[0])&&(u.push(`Sec-WebSocket-Protocol: ${f}`),d.protocol=f)),t[s.extensionName]){const e=t[s.extensionName].params,n=l({[s.extensionName]:[e]});u.push(`Sec-WebSocket-Extensions: ${n}`),d._extensions=t}this.emit("headers",u,n),i.write(u.concat("\r\n").join("\r\n")),i.removeListener("error",m),d.setSocket(i,o,this.options.maxPayload),this.clients&&(this.clients.add(d),d.on("close",()=>this.clients.delete(d))),r(d)}}},function(e){e.exports={name:"socket.io-client",version:"2.3.0",keywords:["realtime","framework","websocket","tcp","events","client"],main:"./lib/index",files:["lib/","dist/"],dependencies:{backo2:"1.0.2","base64-arraybuffer":"0.1.5","component-bind":"1.0.0","component-emitter":"1.2.1",debug:"~4.1.0","engine.io-client":"~3.4.0","has-binary2":"~1.0.2","has-cors":"1.1.0",indexof:"0.0.1","object-component":"0.0.3",parseqs:"0.0.5",parseuri:"0.0.5","socket.io-parser":"~3.3.0","to-array":"0.1.4"},devDependencies:{"babel-core":"^6.24.1","babel-eslint":"4.1.7","babel-loader":"7.0.0","babel-preset-es2015":"6.24.1","concat-stream":"^1.6.0",derequire:"^2.0.6","eslint-config-standard":"4.4.0","eslint-plugin-standard":"1.3.1","expect.js":"0.3.1",gulp:"^3.9.1","gulp-eslint":"1.1.1","gulp-file":"^0.3.0","gulp-istanbul":"^1.1.1","gulp-mocha":"^4.3.1","gulp-task-listing":"1.0.1","imports-loader":"^0.7.1",istanbul:"^0.4.5",mocha:"^3.3.0","socket.io":"2.3.0","socket.io-browsers":"^1.0.0","strip-loader":"0.1.2","text-blob-builder":"0.0.1","webpack-merge":"4.1.2","webpack-stream":"3.2.0",zuul:"~3.11.1","zuul-builder-webpack":"^1.2.0","zuul-ngrok":"4.0.0"},scripts:{test:"gulp test"},contributors:[{name:"Guillermo Rauch",email:"rauchg@gmail.com"},{name:"Arnout Kazemier",email:"info@3rd-eden.com"},{name:"Vladimir Dronnikov",email:"dronnikov@gmail.com"},{name:"Einar Otto Stangvik",email:"einaros@gmail.com"}],repository:{type:"git",url:"https://github.com/Automattic/socket.io-client.git"},license:"MIT"}},function(e,t,n){var i=n(28),a=n(6)("socket.io:client"),o=n(21);function r(e,t){this.server=e,this.conn=t,this.encoder=e.encoder,this.decoder=new e.parser.Decoder,this.id=t.id,this.request=t.request,this.setup(),this.sockets={},this.nsps={},this.connectBuffer=[]}e.exports=r,r.prototype.setup=function(){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)},r.prototype.connect=function(e,t){if(this.server.nsps[e])return a("connecting to namespace %s",e),this.doConnect(e,t);this.server.checkNamespace(e,t,n=>{n?(a("dynamic namespace %s was created",n.name),this.doConnect(e,t)):(a("creation of namespace %s was denied",e),this.packet({type:i.ERROR,nsp:e,data:"Invalid namespace"}))})},r.prototype.doConnect=function(e,t){var n=this.server.of(e);if("/"==e||this.nsps["/"])var i=this,a=n.add(this,t,function(){i.sockets[a.id]=a,i.nsps[n.name]=a,"/"==n.name&&i.connectBuffer.length>0&&(i.connectBuffer.forEach(i.connect,i),i.connectBuffer=[])});else this.connectBuffer.push(e)},r.prototype.disconnect=function(){for(var e in this.sockets)this.sockets.hasOwnProperty(e)&&this.sockets[e].disconnect();this.sockets={},this.close()},r.prototype.remove=function(e){if(this.sockets.hasOwnProperty(e.id)){var t=this.sockets[e.id].nsp.name;delete this.sockets[e.id],delete this.nsps[t]}else a("ignoring remove for %s",e.id)},r.prototype.close=function(){"open"==this.conn.readyState&&(a("forcing transport close"),this.conn.close(),this.onclose("forced server close"))},r.prototype.packet=function(e,t){t=t||{};var n=this;function i(e){if(!t.volatile||n.conn.transport.writable)for(var i=0;i<e.length;i++)n.conn.write(e[i],{compress:t.compress})}"open"==this.conn.readyState?(a("writing packet %j",e),t.preEncoded?i(e):this.encoder.encode(e,i)):a("ignoring packet write %j",e)},r.prototype.ondata=function(e){try{this.decoder.add(e)}catch(e){this.onerror(e)}},r.prototype.ondecoded=function(e){if(i.CONNECT==e.type)this.connect(o.parse(e.nsp).pathname,o.parse(e.nsp,!0).query);else{var t=this.nsps[e.nsp];t?process.nextTick(function(){t.onpacket(e)}):a("no socket for namespace %s",e.nsp)}},r.prototype.onerror=function(e){for(var t in this.sockets)this.sockets.hasOwnProperty(t)&&this.sockets[t].onerror(e);this.conn.close()},r.prototype.onclose=function(e){for(var t in a("client close with reason %s",e),this.destroy(),this.sockets)this.sockets.hasOwnProperty(t)&&this.sockets[t].onclose(e);this.sockets={},this.decoder.destroy()},r.prototype.destroy=function(){this.conn.removeListener("data",this.ondata),this.conn.removeListener("error",this.onerror),this.conn.removeListener("close",this.onclose),this.decoder.removeListener("decoded",this.ondecoded)}},function(e,t,n){function i(e){if(e)return function(e){for(var t in i.prototype)e[t]=i.prototype[t];return e}(e)}e.exports=i,i.prototype.on=i.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},i.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a<i.length;a++)if((n=i[a])===t||n.fn===t){i.splice(a,1);break}return this},i.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var i=0,a=(n=n.slice(0)).length;i<a;++i)n[i].apply(this,t);return this},i.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},i.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){var i=n(42),a=n(84),o=Object.prototype.toString,r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);t.deconstructPacket=function(e){var t=[],n=e.data,o=e;return o.data=function e(t,n){if(!t)return t;if(a(t)){var o={_placeholder:!0,num:n.length};return n.push(t),o}if(i(t)){for(var r=new Array(t.length),s=0;s<t.length;s++)r[s]=e(t[s],n);return r}if("object"==typeof t&&!(t instanceof Date)){var r={};for(var c in t)r[c]=e(t[c],n);return r}return t}(n,t),o.attachments=t.length,{packet:o,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&t._placeholder)return n[t.num];if(i(t))for(var a=0;a<t.length;a++)t[a]=e(t[a],n);else if("object"==typeof t)for(var o in t)t[o]=e(t[o],n);return t}(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,o=e;!function e(c,l,u){if(!c)return c;if(r&&c instanceof Blob||s&&c instanceof File){n++;var p=new FileReader;p.onload=function(){u?u[l]=this.result:o=this.result,--n||t(o)},p.readAsArrayBuffer(c)}else if(i(c))for(var d=0;d<c.length;d++)e(c[d],d,c);else if("object"==typeof c&&!a(c))for(var f in c)e(c[f],f,c)}(o),n||t(o)}},function(e,t,n){var i=n(4).EventEmitter,a=n(28),o=n(41),r=n(21),s=n(6)("socket.io:socket");e.exports=t=l,t.events=["error","connect","disconnect","disconnecting","newListener","removeListener"];var c=i.prototype.emit;function l(e,t,n){this.nsp=e,this.server=e.server,this.adapter=this.nsp.adapter,this.id="/"!==e.name?e.name+"#"+t.id:t.id,this.client=t,this.conn=t.conn,this.rooms={},this.acks={},this.connected=!0,this.disconnected=!1,this.handshake=this.buildHandshake(n),this.fns=[],this.flags={},this._rooms=[]}l.prototype.__proto__=i.prototype,["json","volatile","broadcast","local"].forEach(function(e){Object.defineProperty(l.prototype,e,{get:function(){return this.flags[e]=!0,this}})}),Object.defineProperty(l.prototype,"request",{get:function(){return this.conn.request}}),l.prototype.buildHandshake=function(e){var t,n=this;return{headers:this.request.headers,time:new Date+"",address:this.conn.remoteAddress,xdomain:!!this.request.headers.origin,secure:!!this.request.connection.encrypted,issued:+new Date,url:this.request.url,query:(t=r.parse(n.request.url,!0).query,Object.assign({},e,t))}},l.prototype.emit=function(e){if(~t.events.indexOf(e))return c.apply(this,arguments),this;var n=Array.prototype.slice.call(arguments),i={type:(void 0!==this.flags.binary?this.flags.binary:o(n))?a.BINARY_EVENT:a.EVENT,data:n};if("function"==typeof n[n.length-1]){if(this._rooms.length||this.flags.broadcast)throw new Error("Callbacks are not supported when broadcasting");s("emitting packet with ack id %d",this.nsp.ids),this.acks[this.nsp.ids]=n.pop(),i.id=this.nsp.ids++}var r=this._rooms.slice(0),l=Object.assign({},this.flags);return this._rooms=[],this.flags={},r.length||l.broadcast?this.adapter.broadcast(i,{except:[this.id],rooms:r,flags:l}):this.packet(i,l),this},l.prototype.to=l.prototype.in=function(e){return~this._rooms.indexOf(e)||this._rooms.push(e),this},l.prototype.send=l.prototype.write=function(){var e=Array.prototype.slice.call(arguments);return e.unshift("message"),this.emit.apply(this,e),this},l.prototype.packet=function(e,t){e.nsp=this.nsp.name,(t=t||{}).compress=!1!==t.compress,this.client.packet(e,t)},l.prototype.join=function(e,t){s("joining room %s",e);var n=this;return Array.isArray(e)||(e=[e]),(e=e.filter(function(e){return!n.rooms.hasOwnProperty(e)})).length?(this.adapter.addAll(this.id,e,function(i){if(i)return t&&t(i);s("joined room %s",e),e.forEach(function(e){n.rooms[e]=e}),t&&t(null)}),this):(t&&t(null),this)},l.prototype.leave=function(e,t){s("leave room %s",e);var n=this;return this.adapter.del(this.id,e,function(i){if(i)return t&&t(i);s("left room %s",e),delete n.rooms[e],t&&t(null)}),this},l.prototype.leaveAll=function(){this.adapter.delAll(this.id),this.rooms={}},l.prototype.onconnect=function(){s("socket connected - writing packet"),this.nsp.connected[this.id]=this,this.join(this.id),"/"===this.nsp.name&&0===this.nsp.fns.length?s("packet already sent in initial handshake"):this.packet({type:a.CONNECT})},l.prototype.onpacket=function(e){switch(s("got packet %j",e),e.type){case a.EVENT:case a.BINARY_EVENT:this.onevent(e);break;case a.ACK:case a.BINARY_ACK:this.onack(e);break;case a.DISCONNECT:this.ondisconnect();break;case a.ERROR:this.onerror(new Error(e.data))}},l.prototype.onevent=function(e){var t=e.data||[];s("emitting event %j",t),null!=e.id&&(s("attaching ack callback to event"),t.push(this.ack(e.id))),this.dispatch(t)},l.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){var i=Array.prototype.slice.call(arguments);s("sending ack %j",i),t.packet({id:e,type:o(i)?a.BINARY_ACK:a.ACK,data:i}),n=!0}}},l.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(s("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):s("bad ack %s",e.id)},l.prototype.ondisconnect=function(){s("got disconnect packet"),this.onclose("client namespace disconnect")},l.prototype.onerror=function(e){this.listeners("error").length?this.emit("error",e):(console.error("Missing error handler on `socket`."),console.error(e.stack))},l.prototype.onclose=function(e){if(!this.connected)return this;s("closing socket - reason %s",e),this.emit("disconnecting",e),this.leaveAll(),this.nsp.remove(this),this.client.remove(this),this.connected=!1,this.disconnected=!0,delete this.nsp.connected[this.id],this.emit("disconnect",e)},l.prototype.error=function(e){this.packet({type:a.ERROR,data:e})},l.prototype.disconnect=function(e){return this.connected?(e?this.client.disconnect():(this.packet({type:a.DISCONNECT}),this.onclose("server namespace disconnect")),this):this},l.prototype.compress=function(e){return this.flags.compress=e,this},l.prototype.binary=function(e){return this.flags.binary=e,this},l.prototype.dispatch=function(e){s("dispatching an event %j",e);var t=this;this.run(e,function(n){process.nextTick(function(){if(n)return t.error(n.data||n.message);c.apply(t,e)})})},l.prototype.use=function(e){return this.fns.push(e),this},l.prototype.run=function(e,t){var n=this.fns.slice(0);if(!n.length)return t(null);!function i(a){n[a](e,function(e){return e?t(e):n[a+1]?void i(a+1):t(null)})}(0)}},function(e,t,n){"use strict";const i=n(85);let a=0;e.exports=class extends i{constructor(e){super(e,"/_"+a++),this.children=new Set}initAdapter(){}emit(){const e=Array.prototype.slice.call(arguments);this.children.forEach(t=>{t.rooms=this.rooms,t.flags=this.flags,t.emit.apply(t,e)}),this.rooms=[],this.flags={}}createChild(e){const t=new i(this.server,e);return 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.nsps[e]=t,t}}},function(e,t,n){var i=n(4).EventEmitter;function a(e){this.nsp=e,this.rooms={},this.sids={},this.encoder=e.server.encoder}function o(){if(!(this instanceof o))return new o;this.sockets={},this.length=0}e.exports=a,a.prototype.__proto__=i.prototype,a.prototype.add=function(e,t,n){return this.addAll(e,[t],n)},a.prototype.addAll=function(e,t,n){for(var i=0;i<t.length;i++){var a=t[i];this.sids[e]=this.sids[e]||{},this.sids[e][a]=!0,this.rooms[a]=this.rooms[a]||o(),this.rooms[a].add(e)}n&&process.nextTick(n.bind(null,null))},a.prototype.del=function(e,t,n){this.sids[e]&&delete this.sids[e][t],this.rooms.hasOwnProperty(t)&&(this.rooms[t].del(e),0===this.rooms[t].length&&delete this.rooms[t]),n&&process.nextTick(n.bind(null,null))},a.prototype.delAll=function(e,t){var n=this.sids[e];if(n)for(var i in n)this.rooms.hasOwnProperty(i)&&(this.rooms[i].del(e),0===this.rooms[i].length&&delete this.rooms[i]);delete this.sids[e],t&&process.nextTick(t.bind(null,null))},a.prototype.broadcast=function(e,t){var n,i=t.rooms||[],a=t.except||[],o=t.flags||{},r={preEncoded:!0,volatile:o.volatile,compress:o.compress},s={},c=this;e.nsp=this.nsp.name,this.encoder.encode(e,function(e){if(i.length)for(var t=0;t<i.length;t++){var o=c.rooms[i[t]];if(o){var l=o.sockets;for(var u in l)if(l.hasOwnProperty(u)){if(s[u]||~a.indexOf(u))continue;(n=c.nsp.connected[u])&&(n.packet(e,r),s[u]=!0)}}}else for(var u in c.sids)if(c.sids.hasOwnProperty(u)){if(~a.indexOf(u))continue;(n=c.nsp.connected[u])&&n.packet(e,r)}})},a.prototype.clients=function(e,t){"function"==typeof e&&(t=e,e=null);var n={},i=[];if((e=e||[]).length)for(var a=0;a<e.length;a++){var o=this.rooms[e[a]];if(o){var r=o.sockets;for(var s in r)if(r.hasOwnProperty(s)){if(n[s])continue;this.nsp.connected[s]&&(i.push(s),n[s]=!0)}}}else for(var s in this.sids)this.sids.hasOwnProperty(s)&&this.nsp.connected[s]&&i.push(s);t&&process.nextTick(t.bind(null,null,i))},a.prototype.clientRooms=function(e,t){var n=this.sids[e];t&&process.nextTick(t.bind(null,null,n?Object.keys(n):null))},o.prototype.add=function(e){this.sockets.hasOwnProperty(e)||(this.sockets[e]=!0,this.length++)},o.prototype.del=function(e){this.sockets.hasOwnProperty(e)&&(delete this.sockets[e],this.length--)}},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=190},function(e,t,n){const i=n(192);e.exports=function(e){let t=e?"debug":"error";return i.createLogger({transports:[new i.transports.Console({level:t,format:i.format.simple()})]})}},function(e,t,n){"use strict";const i=n(7),{warn:a}=n(103),o=t;o.version=n(218).version,o.transports=n(219),o.config=n(69),o.addColors=i.levels,o.format=i.format,o.createLogger=n(128),o.ExceptionHandler=n(129),o.RejectionHandler=n(133),o.Container=n(287),o.Transport=n(16),o.loggers=new o.Container;const r=o.createLogger();Object.keys(o.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure"]).forEach(e=>o[e]=((...t)=>r[e](...t))),Object.defineProperty(o,"level",{get:()=>r.level,set(e){r.level=e}}),Object.defineProperty(o,"exceptions",{get:()=>r.exceptions}),["exitOnError"].forEach(e=>{Object.defineProperty(o,e,{get:()=>r[e],set(t){r[e]=t}})}),Object.defineProperty(o,"default",{get:()=>({exceptionHandlers:r.exceptionHandlers,rejectionHandlers:r.rejectionHandlers,transports:r.transports})}),a.deprecated(o,"setLevels"),a.forFunctions(o,"useFormat",["cli"]),a.forProperties(o,"useFormat",["padLevels","stripColors"]),a.forFunctions(o,"deprecated",["addRewriter","addFilter","clone","extend"]),a.forProperties(o,"deprecated",["emitErrs","levelLength"]),a.moved(o,"createLogger","Logger")},function(e,t,n){var i={};e.exports=i,i.themes={};var a=n(1),o=i.styles=n(194),r=Object.defineProperties,s=new RegExp(/[\r\n]+/g);i.supportsColor=n(195).supportsColor,void 0===i.enabled&&(i.enabled=!1!==i.supportsColor()),i.enable=function(){i.enabled=!0},i.disable=function(){i.enabled=!1},i.stripColors=i.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};i.stylize=function(e,t){if(!i.enabled)return e+"";var n=o[t];return!n&&t in i?i[t](e):n.open+e+n.close};var c=/[|\\{}()[\]^$+*?.]/g;function l(e){var t=function e(){return function(){var e=Array.prototype.slice.call(arguments).map(function(e){return null!=e&&e.constructor===String?e:a.inspect(e)}).join(" ");if(!i.enabled||!e)return e;var t=-1!=e.indexOf("\n"),n=this._styles,r=n.length;for(;r--;){var c=o[n[r]];e=c.open+e.replace(c.closeRe,c.open)+c.close,t&&(e=e.replace(s,function(e){return c.close+e+c.open}))}return e}.apply(e,arguments)};return t._styles=e,t.__proto__=d,t}var u,p=(u={},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"),u[e]={get:function(){return l(this._styles.concat(e))}}}),u),d=r(function(){},p);i.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){i[t]=function(n){if("object"==typeof e[t]){var a=n;for(var o in e[t])a=i[e[t][o]](a);return a}return i[e[t]](n)}}(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 n=t.split("");return(n=n.map(e)).join("")};for(var h in i.trap=n(197),i.zalgo=n(198),i.maps={},i.maps.america=n(199)(i),i.maps.zebra=n(200)(i),i.maps.rainbow=n(201)(i),i.maps.random=n(202)(i),i.maps)!function(e){i[e]=function(t){return f(i.maps[e],t)}}(h);r(i,function(){var e={};return Object.keys(p).forEach(function(t){e[t]={get:function(){return l([t])}}}),e}())},function(e,t){var n={};e.exports=n;var i={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(i).forEach(function(e){var t=i[e],a=n[e]=[];a.open="["+t[0]+"m",a.close="["+t[1]+"m"})},function(e,t,n){"use strict";var i=n(10),a=n(196),o=process.env,r=void 0;function s(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===r)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!e.isTTY&&!0!==r)return 0;var t=r?1:0;if("win32"===process.platform){var n=i.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[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 s=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return s>=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)?1:"COLORTERM"in o?1:(o.TERM,t)}(e))}a("no-color")||a("no-colors")||a("color=false")?r=!1:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(r=!0),"FORCE_COLOR"in o&&(r=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=(t=t||process.argv).indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",a=t.indexOf(i+e);return-1!==a&&(-1===n||a<n)}},function(e,t){e.exports=function(e,t){var n="";e=(e=e||"Run the trap, drop the bass").split("");var i={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=i[e]||[" "],a=Math.floor(Math.random()*t.length);n+=void 0!==i[e]?i[e][a]:e}),n}},function(e,t){e.exports=function(e,t){e=e||" he is here ";var n={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},i=[].concat(n.up,n.down,n.mid);function a(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return i.filter(function(n){t=n===e}),t}return function(e,t){var i,r,s="";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(s+=e[r],i={up:0,down:0,mid:0},t.size){case"mini":i.up=a(8),i.mid=a(2),i.down=a(8);break;case"maxi":i.up=a(16)+3,i.mid=a(4)+1,i.down=a(64)+3;break;default:i.up=a(8)+1,i.mid=a(6)/2,i.down=a(8)+1}var c=["up","mid","down"];for(var l in c)for(var u=c[l],p=0;p<=i[u];p++)t[u]&&(s+=n[u][a(n[u].length)])}return s}(e,t)}},function(e,t){e.exports=function(e){return function(t,n,i){if(" "===t)return t;switch(n%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},function(e,t){e.exports=function(e){return function(t,n,i){return n%2==0?t:e.inverse(t)}}},function(e,t){e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(n,i,a){return" "===n?n:e[t[i++%t.length]](n)}}},function(e,t){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(n,i,a){return" "===n?n:e[t[Math.round(Math.random()*(t.length-2))]](n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"cli",{value:n(204)}),Object.defineProperty(t,"npm",{value:n(205)}),Object.defineProperty(t,"syslog",{value:n(206)})},function(e,t,n){"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"}},function(e,t,n){"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"}},function(e,t,n){"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"}},function(e,t,n){var i={"./align.js":86,"./browser.js":208,"./cli.js":87,"./colorize.js":29,"./combine.js":88,"./dist/align.js":49,"./dist/browser.js":99,"./dist/cli.js":50,"./dist/colorize.js":22,"./dist/combine.js":51,"./dist/errors.js":100,"./dist/format.js":2,"./dist/index.js":101,"./dist/json.js":52,"./dist/label.js":53,"./dist/levels.js":31,"./dist/logstash.js":54,"./dist/metadata.js":55,"./dist/ms.js":102,"./dist/pad-levels.js":32,"./dist/pretty-print.js":56,"./dist/printf.js":57,"./dist/simple.js":58,"./dist/splat.js":59,"./dist/timestamp.js":60,"./dist/uncolorize.js":61,"./errors.js":210,"./examples/combine.js":211,"./examples/filter.js":212,"./examples/invalid.js":213,"./examples/metadata.js":214,"./examples/padLevels.js":215,"./examples/volume.js":216,"./format.js":3,"./index.js":7,"./json.js":48,"./label.js":89,"./levels.js":46,"./logstash.js":90,"./metadata.js":91,"./ms.js":217,"./pad-levels.js":47,"./pretty-print.js":92,"./printf.js":93,"./simple.js":94,"./splat.js":95,"./timestamp.js":96,"./uncolorize.js":98};function a(e){var t=o(e);return n(t)}function o(e){var t=i[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(i)},a.resolve=o,e.exports=a,a.id=207},function(e,t,n){"use strict";const i=t.format=n(3);t.levels=n(46),Object.defineProperty(i,"align",{value:n(86)}),Object.defineProperty(i,"cli",{value:n(87)}),Object.defineProperty(i,"combine",{value:n(88)}),Object.defineProperty(i,"colorize",{value:n(29)}),Object.defineProperty(i,"json",{value:n(48)}),Object.defineProperty(i,"label",{value:n(89)}),Object.defineProperty(i,"logstash",{value:n(90)}),Object.defineProperty(i,"metadata",{value:n(91)}),Object.defineProperty(i,"padLevels",{value:n(47)}),Object.defineProperty(i,"prettyPrint",{value:n(92)}),Object.defineProperty(i,"printf",{value:n(93)}),Object.defineProperty(i,"simple",{value:n(94)}),Object.defineProperty(i,"splat",{value:n(95)}),Object.defineProperty(i,"timestamp",{value:n(96)}),Object.defineProperty(i,"uncolorize",{value:n(98)})},function(e,t,n){var i={"./align.js":49,"./browser.js":99,"./cli.js":50,"./colorize.js":22,"./combine.js":51,"./errors.js":100,"./format.js":2,"./index.js":101,"./json.js":52,"./label.js":53,"./levels.js":31,"./logstash.js":54,"./metadata.js":55,"./ms.js":102,"./pad-levels.js":32,"./pretty-print.js":56,"./printf.js":57,"./simple.js":58,"./splat.js":59,"./timestamp.js":60,"./uncolorize.js":61};function a(e){var t=o(e);return n(t)}function o(e){var t=i[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(i)},a.resolve=o,e.exports=a,a.id=209},function(e,t,n){"use strict";const i=n(3),{LEVEL:a,MESSAGE:o}=n(0);e.exports=i((e,{stack:t})=>{if(e instanceof Error){const n=Object.assign({},e,{level:e.level,[a]:e[a]||e.level,message:e.message,[o]:e[o]||e.message});return t&&(n.stack=e.stack),n}if(!(e.message instanceof Error))return e;Object.assign(e,e.message);const n=e.message;return e.message=n.message,e[o]=n.message,t&&(e.stack=n.stack),e})},function(e,t,n){const{format:i}=n(7),{combine:a,timestamp:o,label:r}=i,s=a(r({label:"right meow!"}),o()).transform({level:"info",message:"What time is the testing at?"});console.dir(s)},function(e,t,n){const{format:i}=n(7),{combine:a,timestamp:o,label:r}=i,s=i((e,t)=>!e.private&&e)();console.dir(s.transform({level:"error",message:"Public error to share"})),console.dir(s.transform({level:"error",private:!0,message:"This is super secret - hide it."}));const c=i.combine(i(e=>!1)(),i(e=>{throw new Error("Never reached")})());console.dir(c.transform({level:"info",message:"wow such testing"}))},function(e,t,n){const{format:i}=n(7);i(function(e,t,n,i){return e})},function(e,t,n){const{format:i}=n(7),{combine:a,json:o,metadata:r,timestamp:s}=i,c=a(s(),r(),o()).transform({level:"info",message:"This should be a message.",application:"Microsoft Office",store:"Big Box Store",purchaseAmount:"9.99"});console.dir(c);const l=a(s(),r({fillExcept:["message","level","timestamp"]}),o()).transform({level:"info",message:"This should have attached metadata",category:"movies",subCategory:"action"});console.dir(l);const u=a(s(),r({fillWith:["publisher","author","book"],key:"bookInfo"}),o()).transform({level:"debug",message:"This message should be outside of the bookInfo object",publisher:"Lorem Press",author:"Albert Einstein",book:"4D Chess for Dummies",label:"myCustomLabel"});console.dir(u);const p=a(s(),r({fillWith:["publisher","author","book"],key:"bookInfo"}),r({fillWith:["purchasePrice","purchaseDate","transactionId"],key:"transactionInfo"}),r({fillExcept:["level","message","label","timestamp"]}),o()).transform({level:"debug",message:"This message should be outside of the bookInfo object",publisher:"Lorem Press",author:"Albert Einstein",book:"4D Chess for Dummies",label:"myCustomLabel",purchasePrice:"9.99",purchaseDate:"2.10.2018",transactionId:"123ABC"});console.dir(p)},function(e,t,n){const{format:i}=n(7),{combine:a,padLevels:o,simple:r}=i,{MESSAGE:s}=n(0),c=a(o({levels:{error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6}}),r()),l=c.transform({level:"info",message:"This is an info level message."}),u=c.transform({level:"error",message:"This is an error level message."}),p=c.transform({level:"verbose",message:"This is a verbose level message."});console.dir(l[s]),console.dir(u[s]),console.dir(p[s])},function(e,t,n){const{format:i}=n(7),a=i((e,t)=>(t.yell?e.message=e.message.toUpperCase():t.whisper&&(e.message=e.message.toLowerCase()),e)),o=a({yell:!0});console.dir(o.transform({level:"info",message:"sorry for making you YELL in your head!"},o.options));const r=a({whisper:!0});console.dir(r.transform({level:"info",message:"WHY ARE THEY MAKING US YELL SO MUCH!"},r.options))},function(e,t,n){"use strict";const i=n(3),a=n(43);e.exports=i(e=>{const t=+new Date;return this.diff=t-(this.prevTime||t),this.prevTime=t,e.ms=`+${a(this.diff)}`,e})},function(e){e.exports={name:"winston",description:"A logger for just about everything.",version:"3.2.1",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["Jarrett Cruger <jcrugzz@gmail.com>","Chris Alderson <chrisalderson@protonmail.com>","David Hyde <dabh@stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{async:"^2.6.1",diagnostics:"^1.1.1","is-stream":"^1.1.0",logform:"^2.1.1","one-time":"0.0.4","readable-stream":"^3.1.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.3.0"},devDependencies:{"@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-env":"^7.3.1","@types/node":"^10.12.19","abstract-winston-transport":">= 0.5.1",assume:"^2.1.0",colors:"^1.3.3","cross-spawn-async":"^2.2.5","eslint-config-populist":"^4.2.0",hock:"^1.3.3",mocha:"^5.2.0",nyc:"^13.1.0",rimraf:"^2.6.3",split2:"^3.1.0","std-mocks":"^1.0.1",through2:"^3.0.0","winston-compat":"^0.1.4"},main:"./lib/winston",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"populist lib/*.js lib/winston/*.js lib/winston/**/*.js",pretest:"npm run lint",test:"nyc --reporter=text --reporter lcov npm run test:mocha","test:mocha":"mocha test/*.test.js test/**/*.test.js --exit",build:"./node_modules/.bin/rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 6.4.0"},license:"MIT"}},function(e,t,n){"use strict";Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:()=>n(220)}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:()=>n(227)}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:()=>n(280)}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:()=>n(281)})},function(e,t,n){"use strict";const i=n(10),{LEVEL:a,MESSAGE:o}=n(0),r=n(16);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=e.eol||i.EOL,this.setMaxListeners(30)}log(e,t){return setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[a]]?(console._stderr?console._stderr.write(`${e[o]}${this.eol}`):console.error(e[o]),void(t&&t())):this.consoleWarnLevels[e[a]]?(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,n)=>{if("string"!=typeof n)throw new Error(t);return e[n]=!0,e},{})}}},function(e,t,n){var i=n(14),a=n(104);"disable"===process.env.READABLE_STREAM?e.exports=i&&i.Writable||a:e.exports=a},function(e,t){"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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var i=n(33);e.exports=b;var a,o=n(224);b.ReadableState=g;n(4).EventEmitter;var r=function(e,t){return e.listeners(t).length},s=n(106),c=n(63).Buffer,l=global.Uint8Array||function(){};var u=n(62);u.inherits=n(11);var p=n(1),d=void 0;d=p&&p.debuglog?p.debuglog("stream"):function(){};var f,h=n(225),m=n(107);u.inherits(b,s);var v=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var i=t instanceof(a=a||n(34));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,r=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(r||0===r)?r:s,this.highWaterMark=Math.floor(this.highWaterMark),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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(108).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function b(e){if(a=a||n(34),!(this instanceof b))return new b(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function x(e,t,n,i,a){var o,r=e._readableState;null===t?(r.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,r)):(a||(o=function(e,t){var n;i=t,c.isBuffer(i)||i instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(r,t)),o?e.emit("error",o):r.objectMode||t&&t.length>0?("string"==typeof t||r.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),i?r.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):y(e,r,t,!0):r.ended?e.emit("error",new Error("stream.push() after EOF")):(r.reading=!1,r.decoder&&!n?(t=r.decoder.write(t),r.objectMode||0!==t.length?y(e,r,t,!1):S(e,r)):y(e,r,t,!1))):i||(r.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(r)}function y(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),S(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=c.from(e,t),t=""),n=!0),x(this,e,t,!1,n)},b.prototype.unshift=function(e){return x(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return f||(f=n(108).StringDecoder),this._readableState.decoder=new f(e),this._readableState.encoding=e,this};var w=8388608;function _(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>=w?e=w:(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 k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){d("emit readable"),e.emit("readable"),F(e)}function S(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function j(e){d("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var i;e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):i=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,i=1,a=n.data;e-=a.length;for(;n=n.next;){var o=n.data,r=e>o.length?o.length:e;if(r===o.length?a+=o:a+=o.slice(0,e),0===(e-=r)){r===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(r));break}++i}return t.length-=i,a}(e,t):function(e,t){var n=c.allocUnsafe(e),i=t.head,a=1;i.data.copy(n),e-=i.data.length;for(;i=i.next;){var o=i.data,r=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,r),0===(e-=r)){r===o.length?(++a,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(r));break}++a}return t.length-=a,n}(e,t);return i}(e,t.buffer,t.decoder),n);var n}function T(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):k(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&T(this),null;var i,a=t.needReadable;return d("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",a=!0),t.ended||t.reading?d("reading or ended",a=!1):a&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_(n,t))),null===(i=e>0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&T(this)),null!==i&&this.emit("data",i),i},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var s=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?l:b;function c(t,i){d("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),e.removeListener("close",v),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",h),p=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){d("onend"),e.end()}a.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",c);var u=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&r(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",u);var p=!1;var f=!1;function h(t){d("ondata"),f=!1,!1!==e.write(t)||f||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==B(a.pipes,e))&&!p&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===r(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",g),b()}function g(){d("onfinish"),e.removeListener("close",v),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",v),e.once("finish",g),e.emit("pipe",n),a.flowing||(d("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<a;o++)i[o].emit("unpipe",this,n);return this}var r=B(t.pipes,e);return-1===r?this:(t.pipes.splice(r,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},b.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var a=this._readableState;a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.emittedReadable=!1,a.reading?a.length&&k(this):i.nextTick(j,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(O,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var a in e.on("end",function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){(d("wrapped data"),n.decoder&&(a=n.decoder.write(a)),n.objectMode&&null==a)||(n.objectMode||a&&a.length)&&(t.push(a)||(i=!0,e.pause()))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){d("wrapped _read",t),i&&(i=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=A},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var i=n(63).Buffer,a=n(1);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}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,n,a,o=i.allocUnsafe(e>>>0),r=this.head,s=0;r;)t=r.data,n=o,a=s,t.copy(n,a),s+=r.data.length,r=r.next;return o},e}(),a&&a.inspect&&a.inspect.custom&&(e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t,n){var i=n(17),a=i.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function r(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=r),o(a,r),r.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},r.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=a(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";const i=n(9),a=n(24),o=n(228),r=n(44),{MESSAGE:s}=n(0),{Stream:c,PassThrough:l}=n(23),u=n(16),p=n(37)("winston:file"),d=n(10),f=n(278);e.exports=class extends u{constructor(e={}){function t(t,...n){n.slice(1).forEach(n=>{if(e[n])throw new Error(`Cannot set ${n} 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?a.basename(e.filename):"winston.log",this.dirname=e.dirname||a.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=a.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=e.eol||d.EOL,this.tailable=e.tailable||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),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)});const n=`${e[s]}${this.eol}`,i=Buffer.byteLength(n);this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);const a=this._stream.write(n,function(){this._size+=i,this._pendingSize-=i,p("logged %s %s",this._size,n),this.emit("logged",e),this._opening||this._needsNewFile()&&(this._rotate=!0,this._endStream(()=>this._rotateFile()))}.bind(this));return a?t():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,t()})),p("written",a,this._drain),this.finishIfEnding(),a}query(e,t){"function"==typeof e&&(t=e,e={}),e=function(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.fields=e.fields,e}(e);const n=a.join(this.dirname,this.filename);let o="",r=[],s=0;const c=i.createReadStream(n,{encoding:"utf8"});function l(t,n){try{const i=JSON.parse(t);(function(t){if(!t)return;if("object"!=typeof t)return;const n=new Date(t.timestamp);if(e.from&&n<e.from||e.until&&n>e.until||e.level&&e.level!==t.level)return;return!0})(i)&&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,n)=>(e[n]=t[n],e),{}));"desc"===e.order&&r.length>=e.rows&&r.shift();r.push(t)}(i)}catch(e){n||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 n=(t=(o+t).split(/\n+/)).length-1;let i=0;for(;i<n;i++)(!e.start||s>=e.start)&&l(t[i]),s++;o=t[n]}),c.on("close",()=>{o&&l(o,!0),"desc"===e.order&&(r=r.reverse()),t&&t(null,r)})}stream(e={}){const t=a.join(this.dirname,this.filename),n=new c,i={file:t,start:e.start};return n.destroy=f(i,(e,t)=>{if(e)return n.emit("error",e);try{n.emit("data",t),t=JSON.parse(t),n.emit("log",t)}catch(e){n.emit("error",e)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,t)=>{if(e)return this.emit("error",e);p("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(),n=a.join(this.dirname,t);i.stat(n,(i,a)=>i&&"ENOENT"===i.code?(p("ENOENT ok",n),this.filename=t,e(null,0)):i?(p(`err ${i.code} ${n}`),e(i)):!a||this._needsNewFile(a.size)?this._incFile(()=>this.stat(e)):(this.filename=t,void e(null,a.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}_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=a.join(this.dirname,this.filename);p("create stream start",t,this.options);const n=i.createWriteStream(t,this.options).on("error",e=>p(e)).on("close",()=>p("close",n.path,n.bytesWritten)).on("open",()=>{p("file open ok",t),this.emit("open",t),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new l,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});if(p("create stream ok",t),this.zippedArchive){const e=r.createGzip();return e.pipe(n),e}return n}_incFile(e){p("_incFile",this.filename);const t=a.extname(this._basename),n=a.basename(this._basename,t);this.tailable?this._checkMaxFilesTailable(t,n,e):(this._created+=1,this._checkMaxFilesIncrementing(t,n,e))}_getFile(){const e=a.extname(this._basename),t=a.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created,i=!this.tailable&&this._created?`${t}${n}${e}`:`${t}${e}`;return this.zippedArchive&&!this.tailable?`${i}.gz`:i}_checkMaxFilesIncrementing(e,t,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);const o=this._created-this.maxFiles,r=`${t}${0!==o?o:""}${e}${this.zippedArchive?".gz":""}`,s=a.join(this.dirname,r);i.unlink(s,n)}_checkMaxFilesTailable(e,t,n){const r=[];if(!this.maxFiles)return;const s=this.zippedArchive?".gz":"";for(let n=this.maxFiles-1;n>1;n--)r.push(function(n,o){let r=`${t}${n-1}${e}${s}`;const c=a.join(this.dirname,r);i.exists(c,l=>{if(!l)return o(null);r=`${t}${n}${e}${s}`,i.rename(c,a.join(this.dirname,r),o)})}.bind(this,n));o(r,()=>{i.rename(a.join(this.dirname,`${t}${e}`),a.join(this.dirname,`${t}1${e}${s}`),n)})}_createLogDirIfNotExist(e){i.existsSync(e)||i.mkdirSync(e,{recursive:!0})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(a.default,e,t)};var i=o(n(229)),a=o(n(236));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){n=n||i.default;var s=(0,a.default)(t)?[]:{};e(t,function(e,t,n){(0,r.default)(e)(function(e,i){arguments.length>2&&(i=(0,o.default)(arguments,1)),s[t]=i,n(e)})},function(e){n(e,s)})};var i=s(n(64)),a=s(n(35)),o=s(n(66)),r=s(n(36));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){var i=n(65),a=n(112),o="[object AsyncFunction]",r="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!a(e))return!1;var t=i(e);return t==r||t==s||t==o||t==c}},function(e,t,n){var i=n(109),a=Object.prototype,o=a.hasOwnProperty,r=a.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var a=r.call(e);return i&&(t?e[s]=n:delete e[s]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(function(t,n){var a;try{a=e.apply(this,t)}catch(e){return n(e)}(0,i.default)(a)&&"function"==typeof a.then?a.then(function(e){s(n,null,e)},function(e){s(n,e.message?e:new Error(e))}):n(null,a)})};var i=r(n(112)),a=r(n(234)),o=r(n(235));function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){try{e(t,n)}catch(e){(0,o.default)(c,e)}}function c(e){throw e}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=(0,o.default)(arguments),n=t.pop();e.call(this,t,n)}};var i,a=n(66),o=(i=a)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasNextTick=t.hasSetImmediate=void 0,t.fallback=l,t.wrap=u;var i,a=n(66),o=(i=a)&&i.__esModule?i:{default:i};var r,s=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,c=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function l(e){setTimeout(e,0)}function u(e){return function(t){var n=(0,o.default)(arguments,1);e(function(){t.apply(null,n)})}}r=s?setImmediate:c?process.nextTick:l,t.default=u(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(114)),a=o(n(118));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,a.default)(i.default,1),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,c){if(c=(0,a.default)(c||i.default),e<=0||!t)return c(null);var l=(0,o.default)(t),u=!1,p=0,d=!1;function f(e,t){if(p-=1,e)u=!0,c(e);else{if(t===s.default||u&&p<=0)return u=!0,c(null);d||h()}}function h(){for(d=!0;p<e&&!u;){var t=l();if(null===t)return u=!0,void(p<=0&&c(null));p+=1,n(t.value,t.key,(0,r.default)(f))}d=!1}h()}};var i=c(n(64)),a=c(n(115)),o=c(n(238)),r=c(n(116)),s=c(n(117));function c(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,i.default)(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t=(0,a.default)(e);return t?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(t):(n=e,r=(0,o.default)(n),s=-1,c=r.length,function(){var e=r[++s];return s<c?{value:n[e],key:e}:null});var n,r,s,c};var i=r(n(35)),a=r(n(239)),o=r(n(240));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i&&e[i]&&e[i]()};var i="function"==typeof Symbol&&Symbol.iterator;e.exports=t.default},function(e,t,n){var i=n(241),a=n(253),o=n(35);e.exports=function(e){return o(e)?i(e):a(e)}},function(e,t,n){var i=n(242),a=n(243),o=n(245),r=n(246),s=n(248),c=n(249),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&a(e),p=!n&&!u&&r(e),d=!n&&!u&&!p&&c(e),f=n||u||p||d,h=f?i(e.length,String):[],m=h.length;for(var v in e)!t&&!l.call(e,v)||f&&("length"==v||p&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},function(e,t){e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},function(e,t,n){var i=n(244),a=n(67),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(e){return a(e)&&r.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){var i=n(65),a=n(67),o="[object Arguments]";e.exports=function(e){return a(e)&&i(e)==o}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){(function(e){var i=n(110),a=n(247),o=t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=r&&r.exports===o?i.Buffer:void 0,c=(s?s.isBuffer:void 0)||a;e.exports=c}).call(this,n(39)(e))},function(e,t){e.exports=function(){return!1}},function(e,t){var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var a=typeof e;return!!(t=null==t?n:t)&&("number"==a||"symbol"!=a&&i.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var i=n(250),a=n(251),o=n(252),r=o&&o.isTypedArray,s=r?a(r):i;e.exports=s},function(e,t,n){var i=n(65),a=n(113),o=n(67),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!r[i(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var i=n(111),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,r=o&&o.exports===a&&i.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=s}).call(this,n(39)(e))},function(e,t,n){var i=n(254),a=n(255),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var i=n(256)(Object.keys,Object);e.exports=i},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(17).Buffer,o=n(1).inspect,r=o&&o.custom||"inspect";e.exports=function(){function e(){this.head=null,this.tail=null,this.length=0}var t=e.prototype;return t.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},t.shift=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}},t.clear=function(){this.head=this.tail=null,this.length=0},t.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},t.concat=function(e){if(0===this.length)return a.alloc(0);for(var t,n,i,o=a.allocUnsafe(e>>>0),r=this.head,s=0;r;)t=r.data,n=o,i=s,a.prototype.copy.call(t,n,i),s+=r.data.length,r=r.next;return o},t.consume=function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n},t.first=function(){return this.head.data},t._getString=function(e){var t=this.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var a=t.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(o));break}++n}return this.length-=n,i},t._getBuffer=function(e){var t=a.allocUnsafe(e),n=this.head,i=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,r=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,r),0===(e-=r)){r===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(r));break}++i}return this.length-=i,t},t[r]=function(e,t){return o(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){i(e,t,n[t])})}return e}({},t,{depth:0,customInspect:!1}))},e}()},function(e,t,n){"use strict";var i=new Set;e.exports.emitExperimentalWarning=process.emitWarning?function(e){if(!i.has(e)){var t=e+" is an experimental feature. This feature could change at any time";i.add(e),process.emitWarning(t,"ExperimentalWarning")}}:function(){}},function(e,t,n){var i=n(17),a=i.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function r(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=r),r.prototype=Object.create(a.prototype),o(a,r),r.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},r.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=a(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";var i;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(68),r=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),u=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function h(e){var t=e[r];if(null!==t){var n=e[d].read();null!==n&&(e[u]=null,e[r]=null,e[s]=null,t(f(n,!1)))}}var m=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((a(i={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(f(void 0,!0));if(this[d].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[c]?n(e[c]):t(f(void 0,!0))})});var n,i=this[u];if(i)n=new Promise(function(e,t){return function(n,i){e.then(function(){t[l]?n(f(void 0,!0)):t[p](n,i)},i)}}(i,this));else{var a=this[d].read();if(null!==a)return Promise.resolve(f(a,!1));n=new Promise(this[p])}return this[u]=n,n}},Symbol.asyncIterator,function(){return this}),a(i,"return",function(){var e=this;return new Promise(function(t,n){e[d].destroy(null,function(e){e?n(e):t(f(void 0,!0))})})}),i),m);e.exports=function(e){var t,n=Object.create(v,(a(t={},d,{value:e,writable:!0}),a(t,r,{value:null,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,c,{value:null,writable:!0}),a(t,l,{value:e._readableState.endEmitted,writable:!0}),a(t,p,{value:function(e,t){var i=n[d].read();i?(n[u]=null,n[r]=null,n[s]=null,e(f(i,!1))):(n[r]=e,n[s]=t)},writable:!0}),t));return n[u]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[u]=null,n[r]=null,n[s]=null,t(e)),void(n[c]=e)}var i=n[r];null!==i&&(n[u]=null,n[r]=null,n[s]=null,i(f(void 0,!0))),n[l]=!0}),e.on("readable",function(e){process.nextTick(h,e)}.bind(null,n)),n}},function(e,t,n){"use strict";e.exports=a;var i=n(125);function a(e){if(!(this instanceof a))return new a(e);i.call(this,e)}n(11)(a,i),a.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";var i;var a=n(18).codes,o=a.ERR_MISSING_ARGS,r=a.ERR_STREAM_DESTROYED;function s(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),a=0;a<e;a++)t[a]=arguments[a];var u,p=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var d=t.map(function(e,a){var o=a<t.length-1;return function(e,t,a,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",function(){s=!0}),void 0===i&&(i=n(68)),i(e,{readable:t,writable:a},function(e){if(e)return o(e);s=!0,o()});var c=!1;return function(t){if(!s&&!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,a>0,function(e){u||(u=e),e&&d.forEach(c),o||(d.forEach(c),p(u))})});return t.reduce(l)}},function(e,t,n){"use strict";var i=n(264),a=n(272);e.exports=function(e,t){var n=e.split(t||":"),o=a(n[0]);if(!n.length)return o;for(var r=0,s=n.length-1;r<s;r++)o=i(o).mix(i(a(n[r+1]))).saturate(1).hex();return o}},function(e,t,n){"use strict";var i=n(265),a=n(269),o=[].slice,r=["keyword","gray","hex"],s={};Object.keys(a).forEach(function(e){s[o.call(a[e].labels).sort().join("")]=e});var c={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in r&&(t=null),t&&!(t in a))throw new Error("Unknown model: "+t);var n,u;if(e)if(e instanceof l)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var p=i.get(e);if(null===p)throw new Error("Unable to parse color from string: "+e);this.model=p.model,u=a[this.model].channels,this.color=p.value.slice(0,u),this.valpha="number"==typeof p.value[u]?p.value[u]:1}else if(e.length){this.model=t||"rgb",u=a[this.model].channels;var f=o.call(e,0,u);this.color=d(f,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var h=Object.keys(e);"alpha"in e&&(h.splice(h.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=h.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var v=a[this.model].labels,g=[];for(n=0;n<v.length;n++)g.push(e[v[n]]);this.color=d(g)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(c[this.model])for(u=a[this.model].channels,n=0;n<u;n++){var b=c[this.model][n];b&&(this.color[n]=b(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function u(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach(function(e){(c[e]||(c[e]=[]))[t]=n}),e=e[0],function(i){var a;return arguments.length?(n&&(i=n(i)),(a=this[e]()).color[t]=i,a):(a=this[e]().color[t],n&&(a=n(a)),a)}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in i.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return i.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return i.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=a[this.model].channels,n=a[this.model].labels,i=0;i<t;i++)e[n[i]]=this.color[i];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:u("rgb",0,p(255)),green:u("rgb",1,p(255)),blue:u("rgb",2,p(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,function(e){return(e%360+360)%360}),saturationl:u("hsl",1,p(100)),lightness:u("hsl",2,p(100)),saturationv:u("hsv",1,p(100)),value:u("hsv",2,p(100)),chroma:u("hcg",1,p(100)),gray:u("hcg",2,p(100)),white:u("hwb",1,p(100)),wblack:u("hwb",2,p(100)),cyan:u("cmyk",0,p(100)),magenta:u("cmyk",1,p(100)),yellow:u("cmyk",2,p(100)),black:u("cmyk",3,p(100)),x:u("xyz",0,p(100)),y:u("xyz",1,p(100)),z:u("xyz",2,p(100)),l:u("lab",0,p(100)),a:u("lab",1),b:u("lab",2),keyword:function(e){return arguments.length?new l(e):a[this.model].keyword(this.color)},hex:function(e){return arguments.length?new l(e):i.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){var n=e.rgb(),i=this.rgb(),a=void 0===t?.5:t,o=2*a-1,r=n.alpha()-i.alpha(),s=((o*r==-1?o:(o+r)/(1+o*r))+1)/2,c=1-s;return l.rgb(s*n.red()+c*i.red(),s*n.green()+c*i.green(),s*n.blue()+c*i.blue(),n.alpha()*a+i.alpha()*(1-a))}},Object.keys(a).forEach(function(e){if(-1===r.indexOf(e)){var t=a[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var n,i="number"==typeof arguments[t]?t:this.valpha;return new l((n=a[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(i),e)},l[e]=function(n){return"number"==typeof n&&(n=d(o.call(arguments),t)),new l(n,e)}}}),e.exports=l},function(e,t,n){var i=n(266),a=n(267),o={};for(var r in i)i.hasOwnProperty(r)&&(o[i[r]]=r);var s=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),n="hsl";break;case"hwb":t=s.get.hwb(e),n="hwb";break;default:t=s.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,n,a,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){var r=2*n;o[n]=parseInt(t.slice(r,r+2),16)}a&&(o[3]=Math.round(parseInt(a,16)/255*100)/100)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);a&&(o[3]=Math.round(parseInt(a+a,16)/255*100)/100)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(o=i[t[1]])?(o[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=c(o[n],0,255);return o[3]=c(o[3],0,1),o},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=a(arguments);return"#"+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+i+"%)":"rgba("+t+"%, "+n+"%, "+i+"%, "+e[3]+")"},s.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return o[e.slice(0,3)]}},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){"use strict";var i=n(268),a=Array.prototype.concat,o=Array.prototype.slice,r=e.exports=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var s=e[n];i(s)?t=a.call(t,o.call(s)):t.push(s)}return t};r.wrap=function(e){return function(){return e(r(arguments))}}},function(e,t){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){var i=n(126),a=n(271),o={};Object.keys(i).forEach(function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:i[e].channels}),Object.defineProperty(o[e],"labels",{value:i[e].labels});var t=a(e);Object.keys(t).forEach(function(n){var i=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var i=n.length,a=0;a<i;a++)n[a]=Math.round(n[a]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),o[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)})}),e.exports=o},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var i=n(126);function a(e){var t=function(){for(var e={},t=Object.keys(i),n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var a=n.pop(),o=Object.keys(i[a]),r=o.length,s=0;s<r;s++){var c=o[s],l=t[c];-1===l.distance&&(l.distance=t[a].distance+1,l.parent=a,n.unshift(c))}return t}function o(e,t){return function(n){return t(e(n))}}function r(e,t){for(var n=[t[e].parent,e],a=i[t[e].parent][e],r=t[e].parent;t[r].parent;)n.unshift(t[r].parent),a=o(i[t[r].parent][r],a),r=t[r].parent;return a.conversion=n,a}e.exports=function(e){for(var t=a(e),n={},i=Object.keys(t),o=i.length,s=0;s<o;s++){var c=i[s];null!==t[c].parent&&(n[c]=r(c,t))}return n}},function(e,t,n){"use strict";e.exports=function(e){for(var t=0,n=0;t<e.length;n=e.charCodeAt(t++)+((n<<5)-n));var i=Math.floor(Math.abs(1e4*Math.sin(n)%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i}},function(e,t,n){"use strict";var i=n(274);e.exports=function(e,t){var n,a=i(),o=0;for(t=t||["diagnostics","debug"];o<t.length&&!(n=a[t[o]]);o++);if(!n)return!1;for(t=n.split(/[\s,]+/),o=0;o<t.length;o++)if("-"!==(n=t[o].replace("*",".*?")).charAt(0)){if(new RegExp("^"+n+"$").test(e))return!0}else if(new RegExp("^"+n.substr(1)+"$").test(e))return!1;return!1}},function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty;function a(e){if(e=e||{},"object"==typeof process&&"object"==typeof process.env&&a.merge(e,process.env),"undefined"!=typeof window){if("string"===window.name&&window.name.length&&a.merge(e,a.parse(window.name)),window.localStorage)try{a.merge(e,a.parse(window.localStorage.env||window.localStorage.debug))}catch(e){}"object"==typeof window.location&&"string"==typeof window.location.hash&&window.location.hash.length&&a.merge(e,a.parse("#"===window.location.hash.charAt(0)?window.location.hash.slice(1):window.location.hash))}var t,n;for(t in e)(n=t.toLowerCase())in e||(e[n]=e[t]);return e}a.merge=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);return e},a.parse=function(e){var t,n=/([^=?&]+)=([^&]*)/g,i={};if(!e)return i;for(;t=n.exec(e);i[decodeURIComponent(t[1])]=decodeURIComponent(t[2]));return i.env||i},e.exports=a},function(e,t,n){"use strict";var i=n(276);function a(e,t){return t?new a(e).style(t):this instanceof a?void(this.text=e):new a(e)}a.prototype.prefix="[",a.prototype.suffix="m",a.prototype.hex=function(e){3===(e="#"===e[0]?e.substring(1):e).length&&((e=e.split(""))[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var t=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(t,16),parseInt(n,16),parseInt(i,16)]},a.prototype.rgb=function(e,t,n){var i=e/255*5,a=t/255*5,o=n/255*5;return this.ansi(i,a,o)},a.prototype.ansi=function(e,t,n){return 16+36*Math.round(e)+6*Math.round(t)+Math.round(n)},a.prototype.reset=function(){return this.prefix+"39;49"+this.suffix},a.prototype.style=function(e){return/^#?(?:[0-9a-fA-F]{3}){1,2}$/.test(e)||(e=i(e)),this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()},e.exports=a},function(e,t,n){var i=n(277),a=i.filter(function(e){return!!e.css}),o=i.filter(function(e){return!!e.vga});e.exports=function(t){var n=e.exports.get(t);return n&&n.value},e.exports.get=function(e){return e=(e=e||"").trim().toLowerCase(),i.filter(function(t){return t.name.toLowerCase()===e}).pop()},e.exports.all=e.exports.get.all=function(){return i},e.exports.get.css=function(e){return e?(e=(e=e||"").trim().toLowerCase(),a.filter(function(t){return t.name.toLowerCase()===e}).pop()):a},e.exports.get.vga=function(e){return e?(e=(e=e||"").trim().toLowerCase(),o.filter(function(t){return t.name.toLowerCase()===e}).pop()):o}},function(e,t){e.exports=[{value:"#B0171F",name:"indian red"},{value:"#DC143C",css:!0,name:"crimson"},{value:"#FFB6C1",css:!0,name:"lightpink"},{value:"#FFAEB9",name:"lightpink 1"},{value:"#EEA2AD",name:"lightpink 2"},{value:"#CD8C95",name:"lightpink 3"},{value:"#8B5F65",name:"lightpink 4"},{value:"#FFC0CB",css:!0,name:"pink"},{value:"#FFB5C5",name:"pink 1"},{value:"#EEA9B8",name:"pink 2"},{value:"#CD919E",name:"pink 3"},{value:"#8B636C",name:"pink 4"},{value:"#DB7093",css:!0,name:"palevioletred"},{value:"#FF82AB",name:"palevioletred 1"},{value:"#EE799F",name:"palevioletred 2"},{value:"#CD6889",name:"palevioletred 3"},{value:"#8B475D",name:"palevioletred 4"},{value:"#FFF0F5",name:"lavenderblush 1"},{value:"#FFF0F5",css:!0,name:"lavenderblush"},{value:"#EEE0E5",name:"lavenderblush 2"},{value:"#CDC1C5",name:"lavenderblush 3"},{value:"#8B8386",name:"lavenderblush 4"},{value:"#FF3E96",name:"violetred 1"},{value:"#EE3A8C",name:"violetred 2"},{value:"#CD3278",name:"violetred 3"},{value:"#8B2252",name:"violetred 4"},{value:"#FF69B4",css:!0,name:"hotpink"},{value:"#FF6EB4",name:"hotpink 1"},{value:"#EE6AA7",name:"hotpink 2"},{value:"#CD6090",name:"hotpink 3"},{value:"#8B3A62",name:"hotpink 4"},{value:"#872657",name:"raspberry"},{value:"#FF1493",name:"deeppink 1"},{value:"#FF1493",css:!0,name:"deeppink"},{value:"#EE1289",name:"deeppink 2"},{value:"#CD1076",name:"deeppink 3"},{value:"#8B0A50",name:"deeppink 4"},{value:"#FF34B3",name:"maroon 1"},{value:"#EE30A7",name:"maroon 2"},{value:"#CD2990",name:"maroon 3"},{value:"#8B1C62",name:"maroon 4"},{value:"#C71585",css:!0,name:"mediumvioletred"},{value:"#D02090",name:"violetred"},{value:"#DA70D6",css:!0,name:"orchid"},{value:"#FF83FA",name:"orchid 1"},{value:"#EE7AE9",name:"orchid 2"},{value:"#CD69C9",name:"orchid 3"},{value:"#8B4789",name:"orchid 4"},{value:"#D8BFD8",css:!0,name:"thistle"},{value:"#FFE1FF",name:"thistle 1"},{value:"#EED2EE",name:"thistle 2"},{value:"#CDB5CD",name:"thistle 3"},{value:"#8B7B8B",name:"thistle 4"},{value:"#FFBBFF",name:"plum 1"},{value:"#EEAEEE",name:"plum 2"},{value:"#CD96CD",name:"plum 3"},{value:"#8B668B",name:"plum 4"},{value:"#DDA0DD",css:!0,name:"plum"},{value:"#EE82EE",css:!0,name:"violet"},{value:"#FF00FF",vga:!0,name:"magenta"},{value:"#FF00FF",vga:!0,css:!0,name:"fuchsia"},{value:"#EE00EE",name:"magenta 2"},{value:"#CD00CD",name:"magenta 3"},{value:"#8B008B",name:"magenta 4"},{value:"#8B008B",css:!0,name:"darkmagenta"},{value:"#800080",vga:!0,css:!0,name:"purple"},{value:"#BA55D3",css:!0,name:"mediumorchid"},{value:"#E066FF",name:"mediumorchid 1"},{value:"#D15FEE",name:"mediumorchid 2"},{value:"#B452CD",name:"mediumorchid 3"},{value:"#7A378B",name:"mediumorchid 4"},{value:"#9400D3",css:!0,name:"darkviolet"},{value:"#9932CC",css:!0,name:"darkorchid"},{value:"#BF3EFF",name:"darkorchid 1"},{value:"#B23AEE",name:"darkorchid 2"},{value:"#9A32CD",name:"darkorchid 3"},{value:"#68228B",name:"darkorchid 4"},{value:"#4B0082",css:!0,name:"indigo"},{value:"#8A2BE2",css:!0,name:"blueviolet"},{value:"#9B30FF",name:"purple 1"},{value:"#912CEE",name:"purple 2"},{value:"#7D26CD",name:"purple 3"},{value:"#551A8B",name:"purple 4"},{value:"#9370DB",css:!0,name:"mediumpurple"},{value:"#AB82FF",name:"mediumpurple 1"},{value:"#9F79EE",name:"mediumpurple 2"},{value:"#8968CD",name:"mediumpurple 3"},{value:"#5D478B",name:"mediumpurple 4"},{value:"#483D8B",css:!0,name:"darkslateblue"},{value:"#8470FF",name:"lightslateblue"},{value:"#7B68EE",css:!0,name:"mediumslateblue"},{value:"#6A5ACD",css:!0,name:"slateblue"},{value:"#836FFF",name:"slateblue 1"},{value:"#7A67EE",name:"slateblue 2"},{value:"#6959CD",name:"slateblue 3"},{value:"#473C8B",name:"slateblue 4"},{value:"#F8F8FF",css:!0,name:"ghostwhite"},{value:"#E6E6FA",css:!0,name:"lavender"},{value:"#0000FF",vga:!0,css:!0,name:"blue"},{value:"#0000EE",name:"blue 2"},{value:"#0000CD",name:"blue 3"},{value:"#0000CD",css:!0,name:"mediumblue"},{value:"#00008B",name:"blue 4"},{value:"#00008B",css:!0,name:"darkblue"},{value:"#000080",vga:!0,css:!0,name:"navy"},{value:"#191970",css:!0,name:"midnightblue"},{value:"#3D59AB",name:"cobalt"},{value:"#4169E1",css:!0,name:"royalblue"},{value:"#4876FF",name:"royalblue 1"},{value:"#436EEE",name:"royalblue 2"},{value:"#3A5FCD",name:"royalblue 3"},{value:"#27408B",name:"royalblue 4"},{value:"#6495ED",css:!0,name:"cornflowerblue"},{value:"#B0C4DE",css:!0,name:"lightsteelblue"},{value:"#CAE1FF",name:"lightsteelblue 1"},{value:"#BCD2EE",name:"lightsteelblue 2"},{value:"#A2B5CD",name:"lightsteelblue 3"},{value:"#6E7B8B",name:"lightsteelblue 4"},{value:"#778899",css:!0,name:"lightslategray"},{value:"#708090",css:!0,name:"slategray"},{value:"#C6E2FF",name:"slategray 1"},{value:"#B9D3EE",name:"slategray 2"},{value:"#9FB6CD",name:"slategray 3"},{value:"#6C7B8B",name:"slategray 4"},{value:"#1E90FF",name:"dodgerblue 1"},{value:"#1E90FF",css:!0,name:"dodgerblue"},{value:"#1C86EE",name:"dodgerblue 2"},{value:"#1874CD",name:"dodgerblue 3"},{value:"#104E8B",name:"dodgerblue 4"},{value:"#F0F8FF",css:!0,name:"aliceblue"},{value:"#4682B4",css:!0,name:"steelblue"},{value:"#63B8FF",name:"steelblue 1"},{value:"#5CACEE",name:"steelblue 2"},{value:"#4F94CD",name:"steelblue 3"},{value:"#36648B",name:"steelblue 4"},{value:"#87CEFA",css:!0,name:"lightskyblue"},{value:"#B0E2FF",name:"lightskyblue 1"},{value:"#A4D3EE",name:"lightskyblue 2"},{value:"#8DB6CD",name:"lightskyblue 3"},{value:"#607B8B",name:"lightskyblue 4"},{value:"#87CEFF",name:"skyblue 1"},{value:"#7EC0EE",name:"skyblue 2"},{value:"#6CA6CD",name:"skyblue 3"},{value:"#4A708B",name:"skyblue 4"},{value:"#87CEEB",css:!0,name:"skyblue"},{value:"#00BFFF",name:"deepskyblue 1"},{value:"#00BFFF",css:!0,name:"deepskyblue"},{value:"#00B2EE",name:"deepskyblue 2"},{value:"#009ACD",name:"deepskyblue 3"},{value:"#00688B",name:"deepskyblue 4"},{value:"#33A1C9",name:"peacock"},{value:"#ADD8E6",css:!0,name:"lightblue"},{value:"#BFEFFF",name:"lightblue 1"},{value:"#B2DFEE",name:"lightblue 2"},{value:"#9AC0CD",name:"lightblue 3"},{value:"#68838B",name:"lightblue 4"},{value:"#B0E0E6",css:!0,name:"powderblue"},{value:"#98F5FF",name:"cadetblue 1"},{value:"#8EE5EE",name:"cadetblue 2"},{value:"#7AC5CD",name:"cadetblue 3"},{value:"#53868B",name:"cadetblue 4"},{value:"#00F5FF",name:"turquoise 1"},{value:"#00E5EE",name:"turquoise 2"},{value:"#00C5CD",name:"turquoise 3"},{value:"#00868B",name:"turquoise 4"},{value:"#5F9EA0",css:!0,name:"cadetblue"},{value:"#00CED1",css:!0,name:"darkturquoise"},{value:"#F0FFFF",name:"azure 1"},{value:"#F0FFFF",css:!0,name:"azure"},{value:"#E0EEEE",name:"azure 2"},{value:"#C1CDCD",name:"azure 3"},{value:"#838B8B",name:"azure 4"},{value:"#E0FFFF",name:"lightcyan 1"},{value:"#E0FFFF",css:!0,name:"lightcyan"},{value:"#D1EEEE",name:"lightcyan 2"},{value:"#B4CDCD",name:"lightcyan 3"},{value:"#7A8B8B",name:"lightcyan 4"},{value:"#BBFFFF",name:"paleturquoise 1"},{value:"#AEEEEE",name:"paleturquoise 2"},{value:"#AEEEEE",css:!0,name:"paleturquoise"},{value:"#96CDCD",name:"paleturquoise 3"},{value:"#668B8B",name:"paleturquoise 4"},{value:"#2F4F4F",css:!0,name:"darkslategray"},{value:"#97FFFF",name:"darkslategray 1"},{value:"#8DEEEE",name:"darkslategray 2"},{value:"#79CDCD",name:"darkslategray 3"},{value:"#528B8B",name:"darkslategray 4"},{value:"#00FFFF",name:"cyan"},{value:"#00FFFF",css:!0,name:"aqua"},{value:"#00EEEE",name:"cyan 2"},{value:"#00CDCD",name:"cyan 3"},{value:"#008B8B",name:"cyan 4"},{value:"#008B8B",css:!0,name:"darkcyan"},{value:"#008080",vga:!0,css:!0,name:"teal"},{value:"#48D1CC",css:!0,name:"mediumturquoise"},{value:"#20B2AA",css:!0,name:"lightseagreen"},{value:"#03A89E",name:"manganeseblue"},{value:"#40E0D0",css:!0,name:"turquoise"},{value:"#808A87",name:"coldgrey"},{value:"#00C78C",name:"turquoiseblue"},{value:"#7FFFD4",name:"aquamarine 1"},{value:"#7FFFD4",css:!0,name:"aquamarine"},{value:"#76EEC6",name:"aquamarine 2"},{value:"#66CDAA",name:"aquamarine 3"},{value:"#66CDAA",css:!0,name:"mediumaquamarine"},{value:"#458B74",name:"aquamarine 4"},{value:"#00FA9A",css:!0,name:"mediumspringgreen"},{value:"#F5FFFA",css:!0,name:"mintcream"},{value:"#00FF7F",css:!0,name:"springgreen"},{value:"#00EE76",name:"springgreen 1"},{value:"#00CD66",name:"springgreen 2"},{value:"#008B45",name:"springgreen 3"},{value:"#3CB371",css:!0,name:"mediumseagreen"},{value:"#54FF9F",name:"seagreen 1"},{value:"#4EEE94",name:"seagreen 2"},{value:"#43CD80",name:"seagreen 3"},{value:"#2E8B57",name:"seagreen 4"},{value:"#2E8B57",css:!0,name:"seagreen"},{value:"#00C957",name:"emeraldgreen"},{value:"#BDFCC9",name:"mint"},{value:"#3D9140",name:"cobaltgreen"},{value:"#F0FFF0",name:"honeydew 1"},{value:"#F0FFF0",css:!0,name:"honeydew"},{value:"#E0EEE0",name:"honeydew 2"},{value:"#C1CDC1",name:"honeydew 3"},{value:"#838B83",name:"honeydew 4"},{value:"#8FBC8F",css:!0,name:"darkseagreen"},{value:"#C1FFC1",name:"darkseagreen 1"},{value:"#B4EEB4",name:"darkseagreen 2"},{value:"#9BCD9B",name:"darkseagreen 3"},{value:"#698B69",name:"darkseagreen 4"},{value:"#98FB98",css:!0,name:"palegreen"},{value:"#9AFF9A",name:"palegreen 1"},{value:"#90EE90",name:"palegreen 2"},{value:"#90EE90",css:!0,name:"lightgreen"},{value:"#7CCD7C",name:"palegreen 3"},{value:"#548B54",name:"palegreen 4"},{value:"#32CD32",css:!0,name:"limegreen"},{value:"#228B22",css:!0,name:"forestgreen"},{value:"#00FF00",vga:!0,name:"green 1"},{value:"#00FF00",vga:!0,css:!0,name:"lime"},{value:"#00EE00",name:"green 2"},{value:"#00CD00",name:"green 3"},{value:"#008B00",name:"green 4"},{value:"#008000",vga:!0,css:!0,name:"green"},{value:"#006400",css:!0,name:"darkgreen"},{value:"#308014",name:"sapgreen"},{value:"#7CFC00",css:!0,name:"lawngreen"},{value:"#7FFF00",name:"chartreuse 1"},{value:"#7FFF00",css:!0,name:"chartreuse"},{value:"#76EE00",name:"chartreuse 2"},{value:"#66CD00",name:"chartreuse 3"},{value:"#458B00",name:"chartreuse 4"},{value:"#ADFF2F",css:!0,name:"greenyellow"},{value:"#CAFF70",name:"darkolivegreen 1"},{value:"#BCEE68",name:"darkolivegreen 2"},{value:"#A2CD5A",name:"darkolivegreen 3"},{value:"#6E8B3D",name:"darkolivegreen 4"},{value:"#556B2F",css:!0,name:"darkolivegreen"},{value:"#6B8E23",css:!0,name:"olivedrab"},{value:"#C0FF3E",name:"olivedrab 1"},{value:"#B3EE3A",name:"olivedrab 2"},{value:"#9ACD32",name:"olivedrab 3"},{value:"#9ACD32",css:!0,name:"yellowgreen"},{value:"#698B22",name:"olivedrab 4"},{value:"#FFFFF0",name:"ivory 1"},{value:"#FFFFF0",css:!0,name:"ivory"},{value:"#EEEEE0",name:"ivory 2"},{value:"#CDCDC1",name:"ivory 3"},{value:"#8B8B83",name:"ivory 4"},{value:"#F5F5DC",css:!0,name:"beige"},{value:"#FFFFE0",name:"lightyellow 1"},{value:"#FFFFE0",css:!0,name:"lightyellow"},{value:"#EEEED1",name:"lightyellow 2"},{value:"#CDCDB4",name:"lightyellow 3"},{value:"#8B8B7A",name:"lightyellow 4"},{value:"#FAFAD2",css:!0,name:"lightgoldenrodyellow"},{value:"#FFFF00",vga:!0,name:"yellow 1"},{value:"#FFFF00",vga:!0,css:!0,name:"yellow"},{value:"#EEEE00",name:"yellow 2"},{value:"#CDCD00",name:"yellow 3"},{value:"#8B8B00",name:"yellow 4"},{value:"#808069",name:"warmgrey"},{value:"#808000",vga:!0,css:!0,name:"olive"},{value:"#BDB76B",css:!0,name:"darkkhaki"},{value:"#FFF68F",name:"khaki 1"},{value:"#EEE685",name:"khaki 2"},{value:"#CDC673",name:"khaki 3"},{value:"#8B864E",name:"khaki 4"},{value:"#F0E68C",css:!0,name:"khaki"},{value:"#EEE8AA",css:!0,name:"palegoldenrod"},{value:"#FFFACD",name:"lemonchiffon 1"},{value:"#FFFACD",css:!0,name:"lemonchiffon"},{value:"#EEE9BF",name:"lemonchiffon 2"},{value:"#CDC9A5",name:"lemonchiffon 3"},{value:"#8B8970",name:"lemonchiffon 4"},{value:"#FFEC8B",name:"lightgoldenrod 1"},{value:"#EEDC82",name:"lightgoldenrod 2"},{value:"#CDBE70",name:"lightgoldenrod 3"},{value:"#8B814C",name:"lightgoldenrod 4"},{value:"#E3CF57",name:"banana"},{value:"#FFD700",name:"gold 1"},{value:"#FFD700",css:!0,name:"gold"},{value:"#EEC900",name:"gold 2"},{value:"#CDAD00",name:"gold 3"},{value:"#8B7500",name:"gold 4"},{value:"#FFF8DC",name:"cornsilk 1"},{value:"#FFF8DC",css:!0,name:"cornsilk"},{value:"#EEE8CD",name:"cornsilk 2"},{value:"#CDC8B1",name:"cornsilk 3"},{value:"#8B8878",name:"cornsilk 4"},{value:"#DAA520",css:!0,name:"goldenrod"},{value:"#FFC125",name:"goldenrod 1"},{value:"#EEB422",name:"goldenrod 2"},{value:"#CD9B1D",name:"goldenrod 3"},{value:"#8B6914",name:"goldenrod 4"},{value:"#B8860B",css:!0,name:"darkgoldenrod"},{value:"#FFB90F",name:"darkgoldenrod 1"},{value:"#EEAD0E",name:"darkgoldenrod 2"},{value:"#CD950C",name:"darkgoldenrod 3"},{value:"#8B6508",name:"darkgoldenrod 4"},{value:"#FFA500",name:"orange 1"},{value:"#FF8000",css:!0,name:"orange"},{value:"#EE9A00",name:"orange 2"},{value:"#CD8500",name:"orange 3"},{value:"#8B5A00",name:"orange 4"},{value:"#FFFAF0",css:!0,name:"floralwhite"},{value:"#FDF5E6",css:!0,name:"oldlace"},{value:"#F5DEB3",css:!0,name:"wheat"},{value:"#FFE7BA",name:"wheat 1"},{value:"#EED8AE",name:"wheat 2"},{value:"#CDBA96",name:"wheat 3"},{value:"#8B7E66",name:"wheat 4"},{value:"#FFE4B5",css:!0,name:"moccasin"},{value:"#FFEFD5",css:!0,name:"papayawhip"},{value:"#FFEBCD",css:!0,name:"blanchedalmond"},{value:"#FFDEAD",name:"navajowhite 1"},{value:"#FFDEAD",css:!0,name:"navajowhite"},{value:"#EECFA1",name:"navajowhite 2"},{value:"#CDB38B",name:"navajowhite 3"},{value:"#8B795E",name:"navajowhite 4"},{value:"#FCE6C9",name:"eggshell"},{value:"#D2B48C",css:!0,name:"tan"},{value:"#9C661F",name:"brick"},{value:"#FF9912",name:"cadmiumyellow"},{value:"#FAEBD7",css:!0,name:"antiquewhite"},{value:"#FFEFDB",name:"antiquewhite 1"},{value:"#EEDFCC",name:"antiquewhite 2"},{value:"#CDC0B0",name:"antiquewhite 3"},{value:"#8B8378",name:"antiquewhite 4"},{value:"#DEB887",css:!0,name:"burlywood"},{value:"#FFD39B",name:"burlywood 1"},{value:"#EEC591",name:"burlywood 2"},{value:"#CDAA7D",name:"burlywood 3"},{value:"#8B7355",name:"burlywood 4"},{value:"#FFE4C4",name:"bisque 1"},{value:"#FFE4C4",css:!0,name:"bisque"},{value:"#EED5B7",name:"bisque 2"},{value:"#CDB79E",name:"bisque 3"},{value:"#8B7D6B",name:"bisque 4"},{value:"#E3A869",name:"melon"},{value:"#ED9121",name:"carrot"},{value:"#FF8C00",css:!0,name:"darkorange"},{value:"#FF7F00",name:"darkorange 1"},{value:"#EE7600",name:"darkorange 2"},{value:"#CD6600",name:"darkorange 3"},{value:"#8B4500",name:"darkorange 4"},{value:"#FFA54F",name:"tan 1"},{value:"#EE9A49",name:"tan 2"},{value:"#CD853F",name:"tan 3"},{value:"#CD853F",css:!0,name:"peru"},{value:"#8B5A2B",name:"tan 4"},{value:"#FAF0E6",css:!0,name:"linen"},{value:"#FFDAB9",name:"peachpuff 1"},{value:"#FFDAB9",css:!0,name:"peachpuff"},{value:"#EECBAD",name:"peachpuff 2"},{value:"#CDAF95",name:"peachpuff 3"},{value:"#8B7765",name:"peachpuff 4"},{value:"#FFF5EE",name:"seashell 1"},{value:"#FFF5EE",css:!0,name:"seashell"},{value:"#EEE5DE",name:"seashell 2"},{value:"#CDC5BF",name:"seashell 3"},{value:"#8B8682",name:"seashell 4"},{value:"#F4A460",css:!0,name:"sandybrown"},{value:"#C76114",name:"rawsienna"},{value:"#D2691E",css:!0,name:"chocolate"},{value:"#FF7F24",name:"chocolate 1"},{value:"#EE7621",name:"chocolate 2"},{value:"#CD661D",name:"chocolate 3"},{value:"#8B4513",name:"chocolate 4"},{value:"#8B4513",css:!0,name:"saddlebrown"},{value:"#292421",name:"ivoryblack"},{value:"#FF7D40",name:"flesh"},{value:"#FF6103",name:"cadmiumorange"},{value:"#8A360F",name:"burntsienna"},{value:"#A0522D",css:!0,name:"sienna"},{value:"#FF8247",name:"sienna 1"},{value:"#EE7942",name:"sienna 2"},{value:"#CD6839",name:"sienna 3"},{value:"#8B4726",name:"sienna 4"},{value:"#FFA07A",name:"lightsalmon 1"},{value:"#FFA07A",css:!0,name:"lightsalmon"},{value:"#EE9572",name:"lightsalmon 2"},{value:"#CD8162",name:"lightsalmon 3"},{value:"#8B5742",name:"lightsalmon 4"},{value:"#FF7F50",css:!0,name:"coral"},{value:"#FF4500",name:"orangered 1"},{value:"#FF4500",css:!0,name:"orangered"},{value:"#EE4000",name:"orangered 2"},{value:"#CD3700",name:"orangered 3"},{value:"#8B2500",name:"orangered 4"},{value:"#5E2612",name:"sepia"},{value:"#E9967A",css:!0,name:"darksalmon"},{value:"#FF8C69",name:"salmon 1"},{value:"#EE8262",name:"salmon 2"},{value:"#CD7054",name:"salmon 3"},{value:"#8B4C39",name:"salmon 4"},{value:"#FF7256",name:"coral 1"},{value:"#EE6A50",name:"coral 2"},{value:"#CD5B45",name:"coral 3"},{value:"#8B3E2F",name:"coral 4"},{value:"#8A3324",name:"burntumber"},{value:"#FF6347",name:"tomato 1"},{value:"#FF6347",css:!0,name:"tomato"},{value:"#EE5C42",name:"tomato 2"},{value:"#CD4F39",name:"tomato 3"},{value:"#8B3626",name:"tomato 4"},{value:"#FA8072",css:!0,name:"salmon"},{value:"#FFE4E1",name:"mistyrose 1"},{value:"#FFE4E1",css:!0,name:"mistyrose"},{value:"#EED5D2",name:"mistyrose 2"},{value:"#CDB7B5",name:"mistyrose 3"},{value:"#8B7D7B",name:"mistyrose 4"},{value:"#FFFAFA",name:"snow 1"},{value:"#FFFAFA",css:!0,name:"snow"},{value:"#EEE9E9",name:"snow 2"},{value:"#CDC9C9",name:"snow 3"},{value:"#8B8989",name:"snow 4"},{value:"#BC8F8F",css:!0,name:"rosybrown"},{value:"#FFC1C1",name:"rosybrown 1"},{value:"#EEB4B4",name:"rosybrown 2"},{value:"#CD9B9B",name:"rosybrown 3"},{value:"#8B6969",name:"rosybrown 4"},{value:"#F08080",css:!0,name:"lightcoral"},{value:"#CD5C5C",css:!0,name:"indianred"},{value:"#FF6A6A",name:"indianred 1"},{value:"#EE6363",name:"indianred 2"},{value:"#8B3A3A",name:"indianred 4"},{value:"#CD5555",name:"indianred 3"},{value:"#A52A2A",css:!0,name:"brown"},{value:"#FF4040",name:"brown 1"},{value:"#EE3B3B",name:"brown 2"},{value:"#CD3333",name:"brown 3"},{value:"#8B2323",name:"brown 4"},{value:"#B22222",css:!0,name:"firebrick"},{value:"#FF3030",name:"firebrick 1"},{value:"#EE2C2C",name:"firebrick 2"},{value:"#CD2626",name:"firebrick 3"},{value:"#8B1A1A",name:"firebrick 4"},{value:"#FF0000",vga:!0,name:"red 1"},{value:"#FF0000",vga:!0,css:!0,name:"red"},{value:"#EE0000",name:"red 2"},{value:"#CD0000",name:"red 3"},{value:"#8B0000",name:"red 4"},{value:"#8B0000",css:!0,name:"darkred"},{value:"#800000",vga:!0,css:!0,name:"maroon"},{value:"#8E388E",name:"sgi beet"},{value:"#7171C6",name:"sgi slateblue"},{value:"#7D9EC0",name:"sgi lightblue"},{value:"#388E8E",name:"sgi teal"},{value:"#71C671",name:"sgi chartreuse"},{value:"#8E8E38",name:"sgi olivedrab"},{value:"#C5C1AA",name:"sgi brightgray"},{value:"#C67171",name:"sgi salmon"},{value:"#555555",name:"sgi darkgray"},{value:"#1E1E1E",name:"sgi gray 12"},{value:"#282828",name:"sgi gray 16"},{value:"#515151",name:"sgi gray 32"},{value:"#5B5B5B",name:"sgi gray 36"},{value:"#848484",name:"sgi gray 52"},{value:"#8E8E8E",name:"sgi gray 56"},{value:"#AAAAAA",name:"sgi lightgray"},{value:"#B7B7B7",name:"sgi gray 72"},{value:"#C1C1C1",name:"sgi gray 76"},{value:"#EAEAEA",name:"sgi gray 92"},{value:"#F4F4F4",name:"sgi gray 96"},{value:"#FFFFFF",vga:!0,css:!0,name:"white"},{value:"#F5F5F5",name:"white smoke"},{value:"#F5F5F5",name:"gray 96"},{value:"#DCDCDC",css:!0,name:"gainsboro"},{value:"#D3D3D3",css:!0,name:"lightgrey"},{value:"#C0C0C0",vga:!0,css:!0,name:"silver"},{value:"#A9A9A9",css:!0,name:"darkgray"},{value:"#808080",vga:!0,css:!0,name:"gray"},{value:"#696969",css:!0,name:"dimgray"},{value:"#696969",name:"gray 42"},{value:"#000000",vga:!0,css:!0,name:"black"},{value:"#FCFCFC",name:"gray 99"},{value:"#FAFAFA",name:"gray 98"},{value:"#F7F7F7",name:"gray 97"},{value:"#F2F2F2",name:"gray 95"},{value:"#F0F0F0",name:"gray 94"},{value:"#EDEDED",name:"gray 93"},{value:"#EBEBEB",name:"gray 92"},{value:"#E8E8E8",name:"gray 91"},{value:"#E5E5E5",name:"gray 90"},{value:"#E3E3E3",name:"gray 89"},{value:"#E0E0E0",name:"gray 88"},{value:"#DEDEDE",name:"gray 87"},{value:"#DBDBDB",name:"gray 86"},{value:"#D9D9D9",name:"gray 85"},{value:"#D6D6D6",name:"gray 84"},{value:"#D4D4D4",name:"gray 83"},{value:"#D1D1D1",name:"gray 82"},{value:"#CFCFCF",name:"gray 81"},{value:"#CCCCCC",name:"gray 80"},{value:"#C9C9C9",name:"gray 79"},{value:"#C7C7C7",name:"gray 78"},{value:"#C4C4C4",name:"gray 77"},{value:"#C2C2C2",name:"gray 76"},{value:"#BFBFBF",name:"gray 75"},{value:"#BDBDBD",name:"gray 74"},{value:"#BABABA",name:"gray 73"},{value:"#B8B8B8",name:"gray 72"},{value:"#B5B5B5",name:"gray 71"},{value:"#B3B3B3",name:"gray 70"},{value:"#B0B0B0",name:"gray 69"},{value:"#ADADAD",name:"gray 68"},{value:"#ABABAB",name:"gray 67"},{value:"#A8A8A8",name:"gray 66"},{value:"#A6A6A6",name:"gray 65"},{value:"#A3A3A3",name:"gray 64"},{value:"#A1A1A1",name:"gray 63"},{value:"#9E9E9E",name:"gray 62"},{value:"#9C9C9C",name:"gray 61"},{value:"#999999",name:"gray 60"},{value:"#969696",name:"gray 59"},{value:"#949494",name:"gray 58"},{value:"#919191",name:"gray 57"},{value:"#8F8F8F",name:"gray 56"},{value:"#8C8C8C",name:"gray 55"},{value:"#8A8A8A",name:"gray 54"},{value:"#878787",name:"gray 53"},{value:"#858585",name:"gray 52"},{value:"#828282",name:"gray 51"},{value:"#7F7F7F",name:"gray 50"},{value:"#7D7D7D",name:"gray 49"},{value:"#7A7A7A",name:"gray 48"},{value:"#787878",name:"gray 47"},{value:"#757575",name:"gray 46"},{value:"#737373",name:"gray 45"},{value:"#707070",name:"gray 44"},{value:"#6E6E6E",name:"gray 43"},{value:"#666666",name:"gray 40"},{value:"#636363",name:"gray 39"},{value:"#616161",name:"gray 38"},{value:"#5E5E5E",name:"gray 37"},{value:"#5C5C5C",name:"gray 36"},{value:"#595959",name:"gray 35"},{value:"#575757",name:"gray 34"},{value:"#545454",name:"gray 33"},{value:"#525252",name:"gray 32"},{value:"#4F4F4F",name:"gray 31"},{value:"#4D4D4D",name:"gray 30"},{value:"#4A4A4A",name:"gray 29"},{value:"#474747",name:"gray 28"},{value:"#454545",name:"gray 27"},{value:"#424242",name:"gray 26"},{value:"#404040",name:"gray 25"},{value:"#3D3D3D",name:"gray 24"},{value:"#3B3B3B",name:"gray 23"},{value:"#383838",name:"gray 22"},{value:"#363636",name:"gray 21"},{value:"#333333",name:"gray 20"},{value:"#303030",name:"gray 19"},{value:"#2E2E2E",name:"gray 18"},{value:"#2B2B2B",name:"gray 17"},{value:"#292929",name:"gray 16"},{value:"#262626",name:"gray 15"},{value:"#242424",name:"gray 14"},{value:"#212121",name:"gray 13"},{value:"#1F1F1F",name:"gray 12"},{value:"#1C1C1C",name:"gray 11"},{value:"#1A1A1A",name:"gray 10"},{value:"#171717",name:"gray 9"},{value:"#141414",name:"gray 8"},{value:"#121212",name:"gray 7"},{value:"#0F0F0F",name:"gray 6"},{value:"#0D0D0D",name:"gray 5"},{value:"#0A0A0A",name:"gray 4"},{value:"#080808",name:"gray 3"},{value:"#050505",name:"gray 2"},{value:"#030303",name:"gray 1"},{value:"#F5F5F5",css:!0,name:"whitesmoke"}]},function(e,t,n){"use strict";const i=n(9),{StringDecoder:a}=n(279),{Stream:o}=n(23);function r(){}e.exports=((e,t)=>{const n=Buffer.alloc(65536),s=new a("utf8"),c=new o;let l="",u=0,p=0;return-1===e.start&&delete e.start,c.readable=!0,c.destroy=(()=>{c.destroyed=!0,c.emit("end"),c.emit("close")}),i.open(e.file,"a+","0644",(a,o)=>{if(a)return t?t(a):c.emit("error",a),void c.destroy();!function a(){if(!c.destroyed)return i.read(o,n,0,n.length,u,(i,o)=>{if(i)return t?t(i):c.emit("error",i),void c.destroy();if(!o)return l&&((null==e.start||p>e.start)&&(t?t(null,l):c.emit("line",l)),p++,l=""),setTimeout(a,1e3);let r=s.write(n.slice(0,o));t||c.emit("data",r);const d=(r=(l+r).split(/\n+/)).length-1;let f=0;for(;f<d;f++)(null==e.start||p>e.start)&&(t?t(null,r[f]):c.emit("line",r[f])),p++;return l=r[d],u+=o,a()});i.close(o,r)}()}),t?c.destroy:c})},function(e,t){e.exports=require("string_decoder")},function(e,t,n){"use strict";const i=n(12),a=n(79),{Stream:o}=n(23),r=n(16);e.exports=class extends r{constructor(e={}){super(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.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.port||(this.port=this.ssl?443:80)}log(e,t){this._request(e,(t,n)=>{n&&200!==n.statusCode&&(t=new Error(`Invalid HTTP Status Code: ${n.statusCode}`)),t?this.emit("warn",t):this.emit("logged",e)}),t&&setImmediate(t)}query(e,t){"function"==typeof e&&(t=e,e={}),(e={method:"query",params:this.normalizeQuery(e)}).params.path&&(e.path=e.params.path,delete e.params.path),e.params.auth&&(e.auth=e.params.auth,delete e.params.auth),this._request(e,(e,n,i)=>{if(n&&200!==n.statusCode&&(e=new Error(`Invalid HTTP Status Code: ${n.statusCode}`)),e)return t(e);if("string"==typeof i)try{i=JSON.parse(i)}catch(e){return t(e)}t(null,i)})}stream(e={}){const t=new o;(e={method:"stream",params:e}).params.path&&(e.path=e.params.path,delete e.params.path),e.params.auth&&(e.auth=e.params.auth,delete e.params.auth);let n="";const i=this._request(e);return t.destroy=(()=>i.destroy()),i.on("data",e=>{const i=(e=(n+e).split(/\n+/)).length-1;let a=0;for(;a<i;a++)try{t.emit("log",JSON.parse(e[a]))}catch(e){t.emit("error",e)}n=e[i]}),i.on("error",e=>t.emit("error",e)),t}_request(e,t){const n=(e=e||{}).auth||this.auth,o=e.path||this.path||"";delete e.auth,delete e.path;const r=(this.ssl?a:i).request({method:"POST",host:this.host,port:this.port,path:`/${o.replace(/^\//,"")}`,headers:this.headers,auth:n?`${n.username}:${n.password}`:"",agent:this.agent});r.on("error",t),r.on("response",e=>e.on("end",()=>t(null,e)).resume()),r.end(Buffer.from(JSON.stringify(e),"utf8"))}}},function(e,t,n){"use strict";const i=n(127),{MESSAGE:a}=n(0),o=n(10),r=n(16);e.exports=class extends r{constructor(e={}){if(super(e),!e.stream||!i(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=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[a]}${this.eol}`),t&&t()}}},function(e,t,n){"use strict";const{Stream:i,Transform:a}=n(23),o=n(70),{LEVEL:r,SPLAT:s}=n(0),c=n(127),l=n(129),u=n(133),p=n(285),d=n(286),{warn:f}=n(103),h=n(69),m=/%[scdjifoO%]/g;class v extends a{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){const t=this;return Object.create(t,{write:{value:function(n){const i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),t.write(i)}}})}configure({silent:e,format:t,defaultMeta:i,levels:a,level:o="info",exitOnError:r=!0,transports:s,colors:c,emitErrs:p,formatters:d,padLevels:f,rewriters:m,stripColors:v,exceptionHandlers:g,rejectionHandlers:b}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||n(48)(),this.defaultMeta=i||null,this.levels=a||this.levels||h.npm.levels,this.level=o,this.exceptions=new l(this),this.rejections=new u(this),this.profilers={},this.exitOnError=r,s&&(s=Array.isArray(s)?s:[s]).forEach(e=>this.add(e)),c||p||d||f||m||v)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"));g&&this.exceptions.handle(g),b&&this.rejections.handle(b)}isLevelEnabled(e){const t=g(this.levels,e);if(null===t)return!1;const n=g(this.levels,this.level);return null!==n&&(this.transports&&0!==this.transports.length?-1!==this.transports.findIndex(e=>{let i=g(this.levels,e.level);return null===i&&(i=n),i>=t}):n>=t)}log(e,t,...n){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):(this.write({[r]:e,level:e,message:t}),this);const[i]=n;if("object"==typeof i&&null!==i){if(!(t&&t.match&&t.match(m))){const a=Object.assign({},this.defaultMeta,i,{[r]:e,[s]:n,level:e,message:t});return i.message&&(a.message+=`${i.message}`),i.stack&&(a.stack=i.stack),this.write(a),this}}return this.write(Object.assign({},this.defaultMeta,{[r]:e,[s]:n,level:e,message:t})),this}_transform(e,t,n){if(this.silent)return n();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 %j",e);try{this.push(this.format.transform(e,this.format.options))}catch(e){throw e}finally{n()}}_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 p({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){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.clear(),this.emit("close"),this}setLevels(){f.deprecated("setLevels")}query(e,t){"function"==typeof e&&(t=e,e={}),e=e||{};const n={},i=Object.assign({},e.query||{});o(this.transports.filter(e=>!!e.query),function(t,a){!function(t,n){e.query&&"function"==typeof t.formatQuery&&(e.query=t.formatQuery(i)),t.query(e,(i,a)=>{if(i)return n(i);"function"==typeof t.formatResults&&(a=t.formatResults(a,e.format)),n(null,a)})}(t,(e,i)=>{a&&((i=e||i)&&(n[t.name]=i),a()),a=null})},()=>t(null,n))}stream(e={}){const t=new i,n=[];return t._streams=n,t.destroy=(()=>{let e=n.length;for(;e--;)n[e].destroy()}),this.transports.filter(e=>!!e.stream).forEach(i=>{const a=i.stream(e);a&&(n.push(a),a.on("log",e=>{e.transport=e.transport||[],e.transport.push(i.name),t.emit("log",e)}),a.on("error",e=>{e.transport=e.transport||[],e.transport.push(i.name),t.emit("error",e)}))}),t}startTimer(){return new d(this)}profile(e,...t){const n=Date.now();if(this.profilers[e]){const i=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 a="object"==typeof t[t.length-1]?t.pop():{};return a.level=a.level||"info",a.durationMs=n-i,a.message=a.message||e,this.write(a)}return this.profilers[e]=n,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(n){this.emit(e,n,t)}.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}}function g(e,t){const n=e[t];return n||0===n?n:null}Object.defineProperty(v.prototype,"transports",{configurable:!1,enumerable:!0,get(){const{pipes:e}=this._readableState;return Array.isArray(e)?e:[e].filter(Boolean)}}),e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){((0,i.default)(e)?d:f)(e,(0,u.default)(t),n)};var i=p(n(35)),a=p(n(117)),o=p(n(114)),r=p(n(118)),s=p(n(64)),c=p(n(115)),l=p(n(116)),u=p(n(36));function p(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){n=(0,c.default)(n||s.default);var i=0,o=0,r=e.length;function u(e,t){e?n(e):++o!==r&&t!==a.default||n(null)}for(0===r&&n(null);i<r;i++)t(e[i],i,(0,l.default)(u))}var f=(0,r.default)(o.default,1/0);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,i){return e(t,i)}},e.exports=t.default},function(e,t,n){"use strict";const i=n(1),{LEVEL:a}=n(0),o=n(16),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))};i.inherits(r,o),r.prototype._write=function(e,t,n){if(this.silent||!0===e.exception&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[a]])&&this.transport.log(e[a],e.message,e,this._nop),n(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[a],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)}},function(e,t,n){"use strict";e.exports=class{constructor(e){if(!e)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)}}},function(e,t,n){"use strict";const i=n(128);e.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){const n=(t=Object.assign({},t||this.options)).transports||this.options.transports;t.transports=n?n.slice():[];const a=i(t);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}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)}}},function(e,t,n){let i=n(289);e.exports={Service:i}},function(e,t,n){n(9),n(24),n(8);let i=n(290),{ClientFactory:a}=n(291),o=n(5),r=n(296);e.exports=class{constructor(e,t){this.io=e,this.hotReloadModules=[],this.clients=Object.create(null),this.queue=new i({timeout:6e4,throttle:500}),this.io.use((e,n)=>{if(o.logger.info(`[Service] user try in socket id: ${e.id}, nsp: ${e.nsp.name}`),this.fromHotReload(e)){let i=new r(e);i.auth().then(()=>{t(),n(),this.hotReloadModules.push(i)}).catch(e=>{o.logger.info(`[Service] hot reload module on error ${e}`),n(new Error("Authentication Error"))})}else try{let t=a.createClient(e,this);this.queue.push(t).then(e=>(t.queueInfo=e,t.auth.apply(t))).then(()=>(this.clients[e.id]=t,this.queue.setPopout(t.queueInfo),n())).catch(e=>{this.removeClient(t),this.queue.setPopout(t.queueInfo),o.logger.info(`[Service] for auth on error ${e}, ${e&&e.stack}`),n(new Error("Authentication Error"))})}catch(e){o.logger.info(`libcgisocket service for client on error ${e&&e.stack}`),n(new Error(e))}}),this.io.on("connection",e=>{o.logger.info(`[Service] connection socket id: ${e.id}`);let t=null;e.id in this.clients?t=this.clients[e.id]:(t=new Client(e,this),this.clients[e.id]=t),t.needAutoConnectWhenClientVersionIsOld()&&t.connect(),o.logger.info(`[Service] libcgisocket service ${e.id} on connection`)}),this.io.on("error",e=>{o.logger.error(`[Service] libcgisocket service ${socket.id} on error ${e}`)})}removeClient(e){e.id in this.clients&&delete this.clients[e.id]}fromGuest(e){return!(!e.handshake.query||!e.handshake.query.Guest)&&(o.logger.info(`[Service] client is guest with ${e.id}`),!0)}fromHotReload(e){return!(!e.handshake.query||!e.handshake.query.HotReload)}close(){this.io.close()}}},function(e,t,n){n(5),n(8);class i{constructor(e){this.isRunning=!1,this._queueInst=e}run(e,t){if(!this.isRunning){this.isRunning=!0;for(let n=0;n<Math.min(e.length,t);n++){let t=e[n];t.executed||t.canPop||(t.timer||(t.timer=setTimeout(()=>{this._queueInst.setPopout(t)},t.timeout)),t.executedTime=(new Date).getTime(),t.resolver(t),t.executed=!0,t.timer&&(clearTimeout(t.timer),delete t.timer))}this.isRunning=!1}}}e.exports=class{constructor(e){this._queue=[],this._worker=new i(this),this._timeout=e&&e.timeout||6e4,this._throttle=e&&e.throttle||100}push(e){let t,n,i=new Promise(function(e,i){t=e,n=i}),a={info:e,executed:!1,defer:i,resolver:t,rejecter:n,timeout:this._timeout,queuedTime:(new Date).getTime()};return this._queue.push(a),this.runBatch(),i}get length(){return this._queue.length}runBatch(){this.running||(this.running=!0,this._worker.run(this._queue,this._throttle),this.running=!1)}pop(){let e=[];for(let t=0;t<this._queue.length;t++){this._queue[t].canPop&&e.push(t)}for(let t=e.length-1;t>=0;t--)this._queue.splice(e[t],1);this.runBatch()}setPopout(e){e.canPop=!0,this.pop()}}},function(e,t,n){const i=n(134),a=n(136),o=n(295);e.exports={Guest:i,User:a,ClientFactory:o}},function(e,t,n){"use strict";let i=n(38),a=n(5);const o=3072e3,r=12e4;class s{constructor(e){this.webapi=e,this.execFile="/usr/syno/synoman/webapi/entry.cgi",this.process=null}action(e){return new Promise((t,n)=>{this.process=i.execFile(this.execFile,{maxBuffer:o,env:e,cwd:"/usr/syno/synoman/webapi/",timeout:r},(i,o,r)=>{if(this.process=null,a.logger.debug(`[WebAPI] send request request url=${e.QUERY_STRING}`),i||!o)return a.logger.error(`[WebAPI] run webapi stderr: ${r}`),void n(r);var s=o.indexOf("\r\n\r\n");try{var c=JSON.parse(-1<s?o.substr(s+4):o)}catch(e){throw a.logger.error(`[WebAPI] parse error ${o}`),e}a.logger.debug(`[WebAPI] result ${JSON.stringify(c)}`),c.success?t(c):n(c)})})}destroy(){this.process&&(this.process.kill(),this.process=null)}}e.exports={Exec:s,AuthExec:class extends s{constructor(e){super(e),this.execFile="/usr/syno/synoman/webman/authenticate.cgi",this.process=null}action(e){return a.logger.debug(`[WebAPI] start action auth ${e.HTTP_COOKIE}`),new Promise(function(t,n){this.process=i.execFile(this.execFile,{maxBuffer:o,env:e,cwd:"/usr/syno/synoman/webapi/",timeout:r},function(e,i,o){if(this.process=null,a.logger.debug(`[WebAPI] start action result ${e} ${i} ${o}`),e||!i)return a.logger.debug(e&&e.code,i,o),void n(e);i=i.replace("\n",""),t(i)}.bind(this))}.bind(this))}},UserExec:class extends s{constructor(e){super(e),this.execFile="/usr/syno/sbin/synouser",this.process=null}isAdmin(e,{username:t}){return new Promise(function(n,s){this.process=i.execFile(this.execFile,["--enum_admin","all"],{maxBuffer:o,env:e,cwd:"/usr/syno/sbin",timeout:r},function(e,i,o){this.process=null,a.logger.debug([WebAPI]`enum admin ${i}`);let r=i.split("\n");for(const e of r)if(e===t)return n(!0);return n(!1)}.bind(this))}.bind(this))}getGroups(e,{username:t}){return new Promise(function(n,s){this.process=i.execFile(this.execFile,["--get",t],{maxBuffer:o,env:e,cwd:"/usr/syno/sbin",timeout:r},function(t,i,o){if(this.process=null,a.logger.debug(`[WebAPI] get groups ${e.HTTP_COOKIE}`),t||!i)return a.logger.debug(t&&t.code,i,o),void s(t);let r=i.split("\n"),c=[],l=0;for(let e=0;e<r.length;e++){let t=r[e].match(/Member\sOf[^0-9]*\[(\d*)\]/);if(t&&t[1])l=+t[1];else if(l>0){let t=r[e].match(/\(.*\)\s(.*)/);t&&t[1]&&(c.push(t[1]),l--)}}n(c)}.bind(this))}.bind(this))}}}},function(e,t,n){const i=n(45),a=n(294);let o=n(5);const r={2:"CGI_AUTH_SUCCESS_ADMIN",1:"CGI_AUTH_SUCCESS_NORMAL","-1":"CGI_AUTH_ERR_TIMEOUT","-2":"CGI_AUTH_ERR_INVALIDUSER","-3":"CGI_AUTH_ERR_REPEAT_LOGIN","-4":"CGI_AUTH_ERR_SYS","-5":"CGI_AUTH_ERR_SID_NOTFOUND","-6":"CGI_AUTH_ERR_SERVICE_DISABLE","-7":"CGI_AUTH_ERR_TOKEN","-8":"CGI_AUTH_ERR_IP","-9":"CGI_AUTH_ERR_HASH"},s=1|2|4|8|16,c={AllowRelay:!1,api:"SYNO.Core.Desktop.Timeout",method:"check"};e.exports=class{constructor(e){this._env=e,o.logger.info(`[AuthClient] ${e.HTTP_COOKIE}`),this._cookies=a.parse(e.HTTP_COOKIE||"")}exec(){return new Promise((e,t)=>{const n=this._cookies.id;o.logger.info(`[AuthClient] ${n}`);const a=JSON.stringify({szCgiId:n,nameSize:493,bSkipTimeout:!0,allowUsers:s,pszApiData:JSON.stringify(c),szEnvIp:"::1",cgi_sid:n,cgi_phCookies:{id:n},cgi_phOptions:{app:"current.users",synotoken:"--------"},cgi_SYNO_REMOTE_IP:this._env.REMOTE_ADDR,cgi_szSessFile:"/usr/syno/etc/private/session/current.users",cgi_szLockFile:"/usr/syno/etc/private/session/current.users.lock",cgi_szTimeDir:"/usr/syno/etc/private/session/current.users.access.time",cgi_szTempFile:"/usr/syno/etc/private/session/current.users.tmp",cgi_cgitimeout:60,cgi_bSkipCheckIP:!0});this._client=i.connect("/var/run/synocgid/synocgid.session.check.socket",()=>{o.logger.info(`[AuthClient] write ${a.toString()}`),this._client.write(a)});let l="";o.logger.info(`[AuthClient] write ${a.toString()}`),this._client.on("data",e=>{l+=e}),this._client.on("error",e=>{o.logger.info(`[AuthClient] error ${e}`),t(e)}),this._client.on("end",()=>{const n=JSON.parse(l);return o.logger.info(`[AuthClient] end ${l}`),n.auth>0?(n.isAdmin=2===n.auth,e(n)):t(r[n.auth.toString()])})})}}},function(e,t,n){"use strict";
/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},a=t||{},r=e.split(o),c=a.decode||i,l=0;l<r.length;l++){var u=r[l],p=u.indexOf("=");if(!(p<0)){var d=u.substr(0,p).trim(),f=u.substr(++p,u.length).trim();'"'==f[0]&&(f=f.slice(1,-1)),null==n[d]&&(n[d]=s(f,c))}}return n},t.serialize=function(e,t,n){var i=n||{},o=i.encode||a;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!r.test(e))throw new TypeError("argument name is invalid");var s=o(t);if(s&&!r.test(s))throw new TypeError("argument val is invalid");var c=e+"="+s;if(null!=i.maxAge){var l=i.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(i.domain){if(!r.test(i.domain))throw new TypeError("option domain is invalid");c+="; Domain="+i.domain}if(i.path){if(!r.test(i.path))throw new TypeError("option path is invalid");c+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+i.expires.toUTCString()}i.httpOnly&&(c+="; HttpOnly");i.secure&&(c+="; Secure");if(i.sameSite){var u="string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite;switch(u){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 i=decodeURIComponent,a=encodeURIComponent,o=/; */,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(t){return e}}},function(e,t,n){let i=n(136),a=n(134);e.exports=class{constructor(){}static createClient(e,t){if(a.check(e))return new a(e,t);if(i.check(e))return new i(e,t);throw"Socket client is None type of guest or user"}}},function(e,t,n){n(5);const i=n(8);let a=n(137);e.exports=class{constructor(e){this.socket=e,this.socket.on("_js_file",(e,t)=>{this.socket.to(i.rooms.all_clients).emit("_js_file",e,t)})}auth(){return new a(this.socket).auth()}close(){this.socket.disconnect()}}},function(e,t,n){const i=n(45),a=n(9),o=n(71),r=n(8);let s=n(5);const c=n(38);function l(e,t){return"number"==typeof(n=t)&&isFinite(n)?e.write(t.toString()):e.write("-1");var n}e.exports=class{constructor(e){a.existsSync(e)&&a.unlinkSync(e),this.server=i.createServer(this.onConnection.bind(this)),this.server.listen(e),c.execFile("chmod",["0600",e],(e,t,n)=>{e?s.logger.error(`[DomainServer] chmod ${r.domain_socket_path} failed`):s.logger.info(`[DomainServer] chmod on ${r.domain_socket_path}`)}),this.eventsNum=Object.create(null)}onConnection(e){let t="";s.logger.info("[DomainServer] domain server on connection"),e.on("end",()=>{s.logger.info("[DomainServer] client disconnected which connected with domain server")}),e.on("data",n=>{const i=(t+=n.toString("utf8"))[t.length-1];if("\0"===i||t.length>=2**32){t="\0"===i?t.slice(0,-1):t;try{let i=JSON.parse(t);this.handleMessage(i,e)}catch(e){s.logger.info(`[DomainServer] domain server handle message on err: ${e}, ${n}`)}e.end()}})}handleMessage(e,t){const n=e.action||"";"publish_webapi"===n?this.onPublishWebAPI(e):"publish_sdk"==n?this.onPublishSDK(e):"get_sdk_listeners_count"==n?this.getSDKListenersCount(e,t):"get_webapi_listeners_count"==n&&this.getWebAPIListenersCount(e,t)}onPublishWebAPI(e){const{api:t,version:n,method:i,custom_event:a,data:r}=e;let c;c=e.receivers_list?e.receivers_list:[e.receiver];let l=o.compositeAPIObjToEvent({api:t,version:n,method:i,customEvent:a});for(const e of c)e&&(s.service.io.to(e).emit(l,r),s.logger.debug(`[DomainServer] from domain to ${l} in room:${e}`))}onPublishSDK(e){const{data:t,sdk_event:n,guest:i}=e;let a=o.compositeSDKToEvent(n);i?(s.logger.debug(`[DomainServer] from domain to ${a} in guest room`),s.service.io.to(r.rooms.guest_clients).emit(a,t)):(s.logger.debug(`[DomainServer] from domain to ${a} in all room`),s.service.io.to(r.rooms.all_clients).emit(a,t))}collectEvent(e){this.tmpEvents&&this.tmpEvents[e]&&this.tmpEvents[e].isCollecting||(this.startCollectAllClientsEvent(e),setTimeout(()=>{this.stopCollectAllClientsEvent(e),s.logger.debug(`[DomainServer] receive collect ename ${e}, count: ${this.eventsNum[e]}`)},5e3).unref())}getWebAPIListenersCount(e,t){const{api:n,version:i,method:a,custom_event:r}=e;let s=o.compositeAPIObjToEvent({api:n,version:i,method:a,customEvent:r});this.collectEvent(s),this.eventsNum&&l(t,this.eventsNum[s])}getSDKListenersCount(e,t){const{data:n,sdk_event:i}=e;let a=o.compositeSDKToEvent(i);this.collectEvent(a),this.eventsNum&&l(t,this.eventsNum[a])}startCollectAllClientsEvent(e){if(this.tmpEvents&&this.tmpEvents[e]&&this.tmpEvents[e].isCollecting)return;this.tmpEvents||(this.tmpEvents=Object.create(null));const t=o.uuid();this.tmpEvents[e]||(this.tmpEvents[e]={isCollecting:!0,count:0,uuid:t}),this.tmpEvents[e].count=0,this.tmpEvents[e].uuid=t,this.tmpClients=s.service.clients||[];for(let t in this.tmpClients){const n=this.tmpClients[t];n&&n.onListening(e,(e,t)=>{t===this.tmpEvents[e].uuid&&this.tmpEvents[e].count++})}s.service.io.to(r.rooms.all_clients).emit("collect_event",e,t)}stopCollectAllClientsEvent(e){if(!this.tmpEvents[e])return;const t=this.tmpClients||[];for(let n in t){const i=t[n];i&&i.unListening(e)}this.eventsNum[e]=this.tmpEvents[e].count,delete this.tmpEvents[e]}close(){this.server.close()}}}]);