UNPKG

airdcpp-share-monitor

Version:
2 lines 162 kB
/*! For license information please see main.js.LICENSE.txt */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(global,(()=>(()=>{var e={3586:(e,t,n)=>{"use strict";e=n.nmd(e);const r=(e,t)=>(...n)=>`[${e(...n)+t}m`,o=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},i=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},s=e=>e,a=(e,t,n)=>[e,t,n],c=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let l;const u=(e,t,r,o)=>{void 0===l&&(l=n(734));const i=o?10:0,s={};for(const[n,o]of Object.entries(l)){const a="ansi16"===n?"ansi":n;n===t?s[a]=e(r,i):"object"==typeof o&&(s[a]=e(o[t],i))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,o]of Object.entries(r))t[n]={open:`[${o[0]}m`,close:`[${o[1]}m`},r[n]=t[n],e.set(o[0],o[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",c(t.color,"ansi",(()=>u(r,"ansi16",s,!1))),c(t.color,"ansi256",(()=>u(o,"ansi256",s,!1))),c(t.color,"ansi16m",(()=>u(i,"rgb",a,!1))),c(t.bgColor,"ansi",(()=>u(r,"ansi16",s,!0))),c(t.bgColor,"ansi256",(()=>u(o,"ansi256",s,!0))),c(t.bgColor,"ansi16m",(()=>u(i,"rgb",a,!0))),t}})},4351:(e,t,n)=>{"use strict";const r=n(3586),{stdout:o,stderr:i}=n(7687),{stringReplaceAll:s,stringEncaseCRLFWithFirstIndex:a}=n(7695),{isArray:c}=Array,l=["ansi","ansi","ansi256","ansi16m"],u=Object.create(null);class h{constructor(e){return f(e)}}const f=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=o?o.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>w(t.template,...e),Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=h,t.template};function d(e){return f(e)}for(const[e,t]of Object.entries(r))u[e]={get(){const n=v(this,m(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};u.visible={get(){const e=v(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of p)u[e]={get(){const{level:t}=this;return function(...n){const o=m(r.color[l[t]][e](...n),r.color.close,this._styler);return v(this,o,this._isEmpty)}}};for(const e of p)u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const o=m(r.bgColor[l[t]][e](...n),r.bgColor.close,this._styler);return v(this,o,this._isEmpty)}}};const g=Object.defineProperties((()=>{}),{...u,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),m=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},v=(e,t,n)=>{const r=(...e)=>c(e[0])&&c(e[0].raw)?y(r,w(r,...e)):y(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,g),r._generator=e,r._styler=t,r._isEmpty=n,r},y=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:o}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=s(t,n.close,n.open),n=n.parent;const i=t.indexOf("\n");return-1!==i&&(t=a(t,o,r,i)),r+t+o};let b;const w=(e,...t)=>{const[r]=t;if(!c(r)||!c(r.raw))return t.join(" ");const o=t.slice(1),i=[r.raw[0]];for(let e=1;e<r.length;e++)i.push(String(o[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]));return void 0===b&&(b=n(2092)),b(e,i.join(""))};Object.defineProperties(d.prototype,u);const _=d();_.supportsColor=o,_.stderr=d({level:i?i.level:0}),_.stderr.supportsColor=i,e.exports=_},2092:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):i.get(e)||e}function a(e,t){const n=[],i=t.trim().split(/\s*,\s*/g);let a;for(const t of i){const i=Number(t);if(Number.isNaN(i)){if(!(a=t.match(r)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(a[2].replace(o,((e,t,n)=>t?s(t):n)))}else n.push(i)}return n}function c(e){n.lastIndex=0;const t=[];let r;for(;null!==(r=n.exec(e));){const e=r[1];if(r[2]){const n=a(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function l(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[],o=[];let i=[];if(n.replace(t,((t,n,a,u,h,f)=>{if(n)i.push(s(n));else if(u){const t=i.join("");i=[],o.push(0===r.length?t:l(e,r)(t)),r.push({inverse:a,styles:c(u)})}else if(h){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(l(e,r)(i.join(""))),i=[],r.pop()}else i.push(f)})),o.push(i.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},7695:e=>{"use strict";e.exports={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const o=t.length;let i=0,s="";do{s+=e.substr(i,r-i)+t+n,i=r+o,r=e.indexOf(t,i)}while(-1!==r);return s+=e.substr(i),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let o=0,i="";do{const s="\r"===e[r-1];i+=e.substr(o,(s?r-1:r)-o)+t+(s?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return i+=e.substr(o),i}}},3605:(e,t,n)=>{var r=n(7927),o=n(7074);e.exports=function(e,t){var i=t.extensionName,s=t.configVersion,a=t.definitions;r(s,"Settings version should be a positive integer"),r(Array.isArray(a),"Setting definitions should be an array");var c=function(e,t){return{postDefinitions:function(n){return e.post("extensions/".concat(t,"/settings/definitions"),n)},getSettings:function(){return e.get("extensions/".concat(t,"/settings"))},updateSettings:function(n){return e.patch("extensions/".concat(t,"/settings"),n)},addSettingUpdateListener:function(n){return e.addListener("extensions","extension_settings_updated",n,t)}}}(e,i);return o(t,e.logger,n(9896),c)}},7074:(e,t,n)=>{var r=n(4756),o=n(9293),i=n(3693);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=n(7927),l=function(e,t){return Object.keys(e).reduce((function(n,r){var o=t.find((function(e){return e.key===r}));return o?(e[r]===o.default_value||(n[r]=e[r]),n):n}),{})};e.exports=function(e,t,n,s){var u,h,f=e.configFile,d=e.configVersion,p=e.definitions,g=function(e){u=a(a({},u),e),h&&h(e),t.verbose("Writing settings to ".concat(f,"..."));var r={version:d,settings:l(u,p)};n.writeFile(f,JSON.stringify(r,null,2),(function(e){e&&t.error("Failed to save settings to ".concat(f,": ").concat(e))}))},m=function(e){return!!p.find((function(t){return t.key===e}))},v=function(){var e=o(r.mark((function e(t){var n;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.postDefinitions(p);case 2:if(!t){e.next=6;break}return n=Object.keys(u).reduce((function(e,t){return m(t)&&(e[t]=u[t]),e}),{}),e.next=6,s.updateSettings(n);case 6:return e.next=8,s.getSettings();case 8:u=e.sent,s.addSettingUpdateListener(g);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=o(r.mark((function e(o){var i,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!1,e.prev=1,t.verbose("Loading settings from ".concat(f,"...")),!(s=JSON.parse(n.readFileSync(f,"utf8")))||s.version&&s.settings){e.next=6;break}throw"Invalid settings format";case 6:s.version!==d&&o?(u=o(s.version,s.settings),c(u,"Migration handler should return the new settings")):u=s.settings,i=!0,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),t.verbose("Failed to load settings: ".concat(e.t0));case 13:return e.prev=13,e.next=16,v(i);case 16:e.next=21;break;case 18:e.prev=18,e.t1=e.catch(13),t.error("Failed to register settings: "+e.t1.message);case 21:h&&h(u);case 22:case"end":return e.stop()}}),e,null,[[1,10],[13,18]])})));return function(t){return e.apply(this,arguments)}}();return{getValue:function(e){return c(m(e),"Definition for key ".concat(e," was not found")),u[e]},setValue:function(e,t){return c(m(e),"Definition for key ".concat(e," was not found")),s.updateSettings(i({},e,t))},load:y,set onValuesUpdated(e){h=e},getValues:function(){return a({},u)}}}},2746:e=>{var t=Object.prototype.toString,n="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=function(e,r,o){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return i=e,"ArrayBuffer"===t.call(i).slice(8,-1)?function(e,t,r){t>>>=0;var o=e.byteLength-t;if(o<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=o;else if((r>>>=0)>o)throw new RangeError("'length' is out of bounds");return n?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}(e,r,o):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return n?Buffer.from(e,t):new Buffer(e,t)}(e,r):n?Buffer.from(e):new Buffer(e);var i}},6489:e=>{"use strict";e.exports={mask:(e,t,n,r,o)=>{for(var i=0;i<o;i++)n[r+i]=e[i]^t[3&i]},unmask:(e,t)=>{const n=e.length;for(var r=0;r<n;r++)e[r]^=t[3&r]}}},2627:(e,t,n)=>{"use strict";try{e.exports=n(8169)(__dirname)}catch(t){e.exports=n(6489)}},5659:(e,t,n)=>{const r=n(8156),o={};for(const e of Object.keys(r))o[r[e]]=e;const i={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"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o;let a,c;i===o?a=0:t===i?a=(n-r)/s:n===i?a=2+(r-t)/s:r===i&&(a=4+(t-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(o+i)/2;return c=i===o?0:l<=.5?s/(i+o):s/(2-i-o),[a,100*c,100*l]},i.rgb.hsv=function(e){let t,n,r,o,i;const s=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(s,a,c),u=l-Math.min(s,a,c),h=function(e){return(l-e)/6/u+.5};return 0===u?(o=0,i=0):(i=u/l,t=h(s),n=h(a),r=h(c),s===l?o=r-n:a===l?o=1/3+t-r:c===l&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*l]},i.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=i.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*s,100*r]},i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,i=1/0;for(const t of Object.keys(r)){const o=(a=r[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);o<i&&(i=o,n=t)}var s,a;return n},i.keyword.rgb=function(e){return r[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,s;if(0===n)return s=255*r,[s,s,s];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,s=6*i<1?a+6*(o-a)*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,c[e]=255*s;return c},i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),c=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,c,s];case 1:return[a,r,s];case 2:return[s,r,c];case 3:return[s,a,r];case 4:return[c,s,r];case 5:return[r,s,a]}},i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,s;s=(2-n)*r;const a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,100*i,100*s]},i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),a=1-r;i=6*t-s,1&s&&(i=1-i);const c=n+i*(a-n);let l,u,h;switch(s){default:case 6:case 0:l=a,u=c,h=n;break;case 1:l=c,u=a,h=n;break;case 2:l=n,u=a,h=c;break;case 3:l=n,u=c,h=a;break;case 4:l=c,u=n,h=a;break;case 5:l=a,u=n,h=c}return[255*l,255*u,255*h]},i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,s;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[255*o,255*i,255*s]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,s=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},i.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},i.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let s=null===t?i.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(a+=60),a},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?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(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const 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},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i;let a,c;return a=s<1?i/(1-s):0,c=s<=0?0:o===t?(n-r)/s%6:o===n?2+(r-t)/s:4+(t-n)/s,c/=6,c%=1,[360*c,100*s,100*a]},i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let c=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,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]=a,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]=a}return c=(1-n)*r,[255*(n*o[0]+c),255*(n*o[1]+c),255*(n*o[2]+c)]},i.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:(e,t,n)=>{const r=n(5659),o=n(8507),i={};Object.keys(r).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach((n=>{const r=t[n];i[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),i[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},8507:(e,t,n)=>{const r=n(5659);function o(e,t){return function(n){return t(e(n))}}function i(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)n.unshift(t[s].parent),i=o(r[t[s].parent][s],i),s=t[s].parent;return i.conversion=n,i}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),o=Object.keys(r[e]);for(let r=o.length,i=0;i<r;i++){const r=o[i],s=t[r];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(r))}}return t}(e),n={},o=Object.keys(t);for(let e=o.length,r=0;r<e;r++){const e=o[r];null!==t[e].parent&&(n[e]=i(e,t))}return n}},8156:e=>{"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]}},5884:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r<o)}},7927:e=>{"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,s,a],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},9225:e=>{e.exports=r,r.strict=o,r.loose=i;var t=Object.prototype.toString,n={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function r(e){return o(e)||i(e)}function o(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function i(e){return n[t.call(e)]}},9031:e=>{"use strict";function t(e){return"number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function n(e,t){return"constructor"===t&&"function"==typeof e[t]||"__proto__"===t}e.exports=function(e,r){r||(r={});var o={bools:{},strings:{},unknownFn:null};"function"==typeof r.unknown&&(o.unknownFn=r.unknown),"boolean"==typeof r.boolean&&r.boolean?o.allBools=!0:[].concat(r.boolean).filter(Boolean).forEach((function(e){o.bools[e]=!0}));var i={};function s(e){return i[e].some((function(e){return o.bools[e]}))}Object.keys(r.alias||{}).forEach((function(e){i[e]=[].concat(r.alias[e]),i[e].forEach((function(t){i[t]=[e].concat(i[e].filter((function(e){return t!==e})))}))})),[].concat(r.string).filter(Boolean).forEach((function(e){o.strings[e]=!0,i[e]&&[].concat(i[e]).forEach((function(e){o.strings[e]=!0}))}));var a=r.default||{},c={_:[]};function l(e,t,r){for(var i=e,s=0;s<t.length-1;s++){var a=t[s];if(n(i,a))return;void 0===i[a]&&(i[a]={}),i[a]!==Object.prototype&&i[a]!==Number.prototype&&i[a]!==String.prototype||(i[a]={}),i[a]===Array.prototype&&(i[a]=[]),i=i[a]}var c=t[t.length-1];n(i,c)||(i!==Object.prototype&&i!==Number.prototype&&i!==String.prototype||(i={}),i===Array.prototype&&(i=[]),void 0===i[c]||o.bools[c]||"boolean"==typeof i[c]?i[c]=r:Array.isArray(i[c])?i[c].push(r):i[c]=[i[c],r])}function u(e,n,r){if(!r||!o.unknownFn||function(e,t){return o.allBools&&/^--[^=]+$/.test(t)||o.strings[e]||o.bools[e]||i[e]}(e,r)||!1!==o.unknownFn(r)){var s=!o.strings[e]&&t(n)?Number(n):n;l(c,e.split("."),s),(i[e]||[]).forEach((function(e){l(c,e.split("."),s)}))}}Object.keys(o.bools).forEach((function(e){u(e,void 0!==a[e]&&a[e])}));var h=[];-1!==e.indexOf("--")&&(h=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var f=0;f<e.length;f++){var d,p,g=e[f];if(/^--.+=/.test(g)){var m=g.match(/^--([^=]+)=([\s\S]*)$/);d=m[1];var v=m[2];o.bools[d]&&(v="false"!==v),u(d,v,g)}else if(/^--no-.+/.test(g))u(d=g.match(/^--no-(.+)/)[1],!1,g);else if(/^--.+/.test(g))d=g.match(/^--(.+)/)[1],void 0===(p=e[f+1])||/^(-|--)[^-]/.test(p)||o.bools[d]||o.allBools||i[d]&&s(d)?/^(true|false)$/.test(p)?(u(d,"true"===p,g),f+=1):u(d,!o.strings[d]||"",g):(u(d,p,g),f+=1);else if(/^-[^-]+/.test(g)){for(var y=g.slice(1,-1).split(""),b=!1,w=0;w<y.length;w++)if("-"!==(p=g.slice(w+2))){if(/[A-Za-z]/.test(y[w])&&"="===p[0]){u(y[w],p.slice(1),g),b=!0;break}if(/[A-Za-z]/.test(y[w])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(p)){u(y[w],p,g),b=!0;break}if(y[w+1]&&y[w+1].match(/\W/)){u(y[w],g.slice(w+2),g),b=!0;break}u(y[w],!o.strings[y[w]]||"",g)}else u(y[w],p,g);d=g.slice(-1)[0],b||"-"===d||(!e[f+1]||/^(-|--)[^-]/.test(e[f+1])||o.bools[d]||i[d]&&s(d)?e[f+1]&&/^(true|false)$/.test(e[f+1])?(u(d,"true"===e[f+1],g),f+=1):u(d,!o.strings[d]||"",g):(u(d,e[f+1],g),f+=1))}else if(o.unknownFn&&!1===o.unknownFn(g)||c._.push(o.strings._||!t(g)?g:Number(g)),r.stopEarly){c._.push.apply(c._,e.slice(f+1));break}}return Object.keys(a).forEach((function(e){var t,n,r;t=c,n=e.split("."),r=t,n.slice(0,-1).forEach((function(e){r=r[e]||{}})),n[n.length-1]in r||(l(c,e.split("."),a[e]),(i[e]||[]).forEach((function(t){l(c,t.split("."),a[e])})))})),r["--"]?c["--"]=h.slice():h.forEach((function(e){c._.push(e)})),c}},8169:(e,t,n)=>{const r=require;"function"==typeof r.addon?e.exports=r.addon.bind(r):e.exports=n(1381)},1381:(e,t,n)=>{var r=n(9896),o=n(6928),i=n(857),s=require,a=process.config&&process.config.variables||{},c=!!process.env.PREBUILDS_ONLY,l=process.versions.modules,u=process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",h=process.env.npm_config_arch||i.arch(),f=process.env.npm_config_platform||i.platform(),d=process.env.LIBC||(function(e){return"linux"===e&&r.existsSync("/etc/alpine-release")}(f)?"musl":"glibc"),p=process.env.ARM_VERSION||("arm64"===h?"8":a.arm_version)||"",g=(process.versions.uv||"").split(".")[0];function m(e){return s(m.resolve(e))}function v(e){try{return r.readdirSync(e)}catch(e){return[]}}function y(e,t){var n=v(e).filter(t);return n[0]&&o.join(e,n[0])}function b(e){return/\.node$/.test(e)}function w(e){var t=e.split("-");if(2===t.length){var n=t[0],r=t[1].split("+");if(n&&r.length&&r.every(Boolean))return{name:e,platform:n,architectures:r}}}function _(e,t){return function(n){return null!=n&&n.platform===e&&n.architectures.includes(t)}}function E(e,t){return e.architectures.length-t.architectures.length}function S(e){var t=e.split("."),n={file:e,specificity:0};if("node"===t.pop()){for(var r=0;r<t.length;r++){var o=t[r];if("node"===o||"electron"===o||"node-webkit"===o)n.runtime=o;else if("napi"===o)n.napi=!0;else if("abi"===o.slice(0,3))n.abi=o.slice(3);else if("uv"===o.slice(0,2))n.uv=o.slice(2);else if("armv"===o.slice(0,4))n.armv=o.slice(4);else{if("glibc"!==o&&"musl"!==o)continue;n.libc=o}n.specificity++}return n}}function k(e,t){return function(n){return!(null==n||n.runtime&&n.runtime!==e&&!function(e){return"node"===e.runtime&&e.napi}(n)||n.abi&&n.abi!==t&&!n.napi||n.uv&&n.uv!==g||n.armv&&n.armv!==p||n.libc&&n.libc!==d)}}function C(e){return function(t,n){return t.runtime!==n.runtime?t.runtime===e?-1:1:t.abi!==n.abi?t.abi?-1:1:t.specificity!==n.specificity?t.specificity>n.specificity?-1:1:0}}e.exports=m,m.resolve=m.path=function(e){e=o.resolve(e||".");try{var t=s(o.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[t+"_PREBUILD"]&&(e=process.env[t+"_PREBUILD"])}catch(e){}if(!c){var n=y(o.join(e,"build/Release"),b);if(n)return n;var r=y(o.join(e,"build/Debug"),b);if(r)return r}var i=O(e);if(i)return i;var a=O(o.dirname(process.execPath));if(a)return a;var m=["platform="+f,"arch="+h,"runtime="+u,"abi="+l,"uv="+g,p?"armv="+p:"","libc="+d,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","webpack=true"].filter(Boolean).join(" ");throw new Error("No native build was found for "+m+"\n loaded from: "+e+"\n");function O(e){var t=v(o.join(e,"prebuilds")).map(w).filter(_(f,h)).sort(E)[0];if(t){var n=o.join(e,"prebuilds",t.name),r=v(n).map(S).filter(k(u,l)).sort(C(u))[0];return r?o.join(n,r.file):void 0}}},m.parseTags=S,m.matchTags=k,m.compareTags=C,m.parseTuple=w,m.matchTuple=_,m.compareTuples=E},7338:(e,t,n)=>{var r,o=n(9896),i=n(857),s=n(6928),a=n(6251),c=i.tmpdir&&i.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function l(){this.stack=[]}l.prototype={create:function(e,t){var n=s.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:n,type:e}),n},write:function(){for(var e=0;e<arguments.length;++e)o.writeFileSync(arguments[e]," ")},mkdir:function(){for(var e=0;e<arguments.length;++e)o.mkdirSync(arguments[e])},cleanup:function(e){try{for(var t;t=this.stack.pop();){var n=t.type,r=t.name;"file"===n&&a.file(r)?o.unlinkSync(r):"dir"===n&&a.directory(r)&&o.rmdirSync(r)}}finally{a.func(e)&&e()}}};var u=!1;e.exports=function e(t){if(!a.func(t))return!1;if(void 0!==r)return t(r);if(u)return setTimeout((function(){e(t)}),300);u=!0;var n,i=new l,h=i.create("dir",c),f=i.create("dir",h),d=i.create("file",f);i.mkdir(h,f);try{n=o.watch(h,{recursive:!0})}catch(e){if("ERR_FEATURE_UNAVAILABLE_ON_PLATFORM"==e.code)return t(r=!1);throw e}if(!n)return!1;var p=setTimeout((function(){n.close(),i.cleanup((function(){t(r=!1)}))}),200);n.on("change",(function(e,o){s.basename(d)===s.basename(o)&&(n.close(),clearTimeout(p),i.cleanup((function(){t(r=!0)})))})),i.write(d)}},6251:(e,t,n)=>{var r=n(9896),o=n(6928),i=n(857);function s(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function a(e,t){try{return t(e)}catch(t){if(/^(ENOENT|EPERM|EACCES)$/.test(t.code))return"ENOENT"!==t.code&&console.warn("Warning: Cannot access %s",e),!1;throw t}}var c={nil:function(e){return null==e},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return s(e,"RegExp")},string:function(e){return s(e,"String")},func:function(e){return"function"==typeof e},number:function(e){return s(e,"Number")},exists:function(e){return r.existsSync(e)},file:function(e){return a(e,(function(e){return r.statSync(e).isFile()}))},samePath:function(e,t){return o.resolve(e)===o.resolve(t)},directory:function(e){return a(e,(function(e){return r.statSync(e).isDirectory()}))},symbolicLink:function(e){return a(e,(function(e){return r.lstatSync(e).isSymbolicLink()}))},windows:function(){return"win32"===i.platform()}};e.exports=c},2388:(e,t,n)=>{var r=n(9896),o=n(6928),i=n(9023),s=n(4434),a=n(7338),c=n(6251),l="remove",u=Symbol("skip");function h(e){return e.filter((function(e,t,n){return n.indexOf(e)===t}))}function f(){var e={};return function(t){return function(n,r){e[n+r]=[n,r],setTimeout((function(){Object.keys(e).forEach((function(n){t.apply(null,e[n])})),e={}}))}}}function d(e,t,n=function(){}){c.directory(e)?r.readdir(e,(function(r,i){if(r){if(!/^(EPERM|EACCES)$/.test(r.code))throw r;console.warn("Warning: Cannot access %s.",e)}else i.forEach((function(n){var r=o.join(e,n);c.directory(r)&&t(r)})),n()})):n()}function p(){return function(){}}function g(e,t){return!c.func(t)||t(e,u)!==u}var m=i.deprecate((function(){}),"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function v(){s.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}function y(e){e._isReady||(e._isReady=!0,process.nextTick((function(){e.emit("ready")})))}function b(e){e.emit("close")}function w(e,t,n){var r=new v;if(c.buffer(e)&&(e=e.toString()),c.array(e)||c.exists(e)||r.emit("error",new Error(e+" does not exist.")),c.string(t)&&(t={encoding:t}),c.func(t)&&(n=t,t={}),arguments.length<2&&(t={}),t.encoding?function(e){if(e&&"buffer"!==e&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}(t.encoding):t.encoding="utf8",c.array(e)){if(1===e.length)return w(e[0],t,n);var o=f();return function(e){var t=new v,n=f(),r=e.length;return e.forEach((function(e){e.on("change",n((function(e,n){t.emit("change",e,n)}))),e.on("error",(function(e){t.emit("error",e)})),e.on("ready",(function(){--r||y(t)}))})),t.close=function(){e.forEach((function(e){e.close()})),process.nextTick(b,t)},t.getWatchedPaths=function(t){if(c.func(t)){var n=e.map((function(e){return new Promise((function(t){e.getWatchedPaths(t)}))}));Promise.all(n).then((function(e){var n=h(e.reduce((function(e,t){return e.concat(t)}),[]));t(n)}))}},t.expose()}(h(e).map((function(e){var r=w(e,t);return c.func(n)&&r.on("change",o(n)),r})))}if(c.file(e))r.watchFile(e,t,n),y(r);else if(c.directory(e)){var i=function(){var e=0;return function(){return e++,function(){0==--e&&y(r)}}}();r.watchDirectory(e,t,n,i)}return r.expose()}i.inherits(v,s.EventEmitter),v.prototype.expose=function(){var e={},t=this;return["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"].forEach((function(n){e[n]=function(){return t[n].apply(t,arguments)}})),e},v.prototype.isClosed=function(){return this._isClosed},v.prototype.close=function(e){var t=this;if(e){var n=this.watchers[e];n&&n.close&&(n.close(),delete t.watchers[e]),d(e,(function(e){t.close(e)}))}else Object.keys(t.watchers).forEach((function(e){var n=t.watchers[e];n&&n.close&&n.close()})),this.watchers={};c.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(b,this)))},v.prototype.getWatchedPaths=function(e){if(c.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",(function(){e(Object.keys(t.watchers))}))}},v.prototype.add=function(e,t){var n=this;t=t||{fpath:""};var r=o.resolve(t.fpath);this.watchers[r]=e;var i=function(e,t){var n,r=[],o=e.options.encoding,i=e.options.delay;function s(){(function(e){var t=h(e),n=/~$|^\.#|^##$/g;return e.some((function(e){return n.test(e)}))&&e.map((function(e){return e.replace(n,"")})).some((function(e,t,n){return n.indexOf(e)!==t}))&&(t=t.filter((function(e){return c.exists(e)}))),t.map((function(e){return c.exists(e)?["update",e]:[l,e]}))})(r).forEach((function(e){e[1]=Buffer.from(e[1]),"buffer"!==o&&(e[1]=e[1].toString(o)),t.apply(null,e)})),n=null,r=[]}return c.number(i)||(i=200),function(e,t){r.push(t),n||(n=setTimeout(s,i))}}(t,(function(e,r){var o;t.compareName?t.compareName(r)&&n.emit("change",e,r):(o=t.options.filter,c.func(o)?function(e,t){o(e,!1)&&t()}:c.regExp(o)?function(e,t){o.test(e)&&t()}:function(e,t){t()})(r,(function(){n.flag?n.flag="":n.emit("change",e,r)}))}));e.on("error",(function(o){n.isClosed()||(c.windows()&&"EPERM"===o.code?(e.emit("change",l,t.fpath&&""),n.flag="windows-error",n.close(r)):n.emit("error",o))})),e.on("change",(function(e,r){if(!n.isClosed()){var s=r;c.nil(s)&&(s=""),s=o.join(t.fpath,s),t.options.recursive&&a((function(e){if(!e){var r=o.resolve(s);c.exists(s)?c.directory(s)&&!n.watchers[r]&&g(s,t.options.filter)&&n.watchDirectory(s,t.options):n.close(r)}})),i(e,s)}}))},v.prototype.watchFile=function(e,t,n){var i=o.join(e,"../"),s=Object.assign({},t,{filter:null,encoding:"utf8"});delete s.recursive;var a=r.watch(i,s);this.add(a,{type:"file",fpath:i,options:Object.assign({},s,{encoding:t.encoding}),compareName:function(t){return c.samePath(t,e)}}),c.func(n)&&(1===n.length&&m(),this.on("change",n))},v.prototype.watchDirectory=function(e,t,n,o=p){var i=this,s=o();a((function(a){t.recursive=!!t.recursive;var l=Object.assign({},t,{encoding:"utf8"});if(a||delete l.recursive,i._isClosed)return s(),i.close();var u=r.watch(e,l);i.add(u,{type:"dir",fpath:e,options:t}),c.func(n)&&(1===n.length&&m(),i.on("change",n)),t.recursive&&!a&&d(e,(function(e){g(e,t.filter)&&i.watchDirectory(e,t,null,o)}),o()),s()}))},e.exports=w,e.exports.default=w},3476:(e,t,n)=>{n(2345).install()},2345:(e,t,n)=>{var r,o=n(9665).SourceMapConsumer,i=n(6928);try{(r=n(9896)).existsSync&&r.readFileSync||(r=null)}catch(e){}var s=n(2746),a=!1,c=!1,l=!1,u="auto",h={},f={},d=/^data:application\/json[^,]+base64,/,p=[],g=[];function m(){return"browser"===u||"node"!==u&&"undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function v(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var y=v(p);function b(e,t){if(!e)return t;var n=i.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),o=r?r[0]:"",s=n.slice(o.length);return o&&/^\/\w\:/.test(s)?(o+="/")+i.resolve(n.slice(o.length),t).replace(/\\/g,"/"):o+i.resolve(n.slice(o.length),t)}p.push((function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,(function(e,t){return t?"":"/"}))),e in h)return h[e];var t="";try{if(r)r.existsSync(e)&&(t=r.readFileSync(e,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),4===n.readyState&&200===n.status&&(t=n.responseText)}}catch(e){}return h[e]=t}));var w=v(g);function _(e){var t=f[e.source];if(!t){var n=w(e.source);n?(t=f[e.source]={url:n.url,map:new o(n.map)}).map.sourcesContent&&t.map.sources.forEach((function(e,n){var r=t.map.sourcesContent[n];if(r){var o=b(t.url,e);h[o]=r}})):t=f[e.source]={url:null,map:null}}if(t&&t.map&&"function"==typeof t.map.originalPositionFor){var r=t.map.originalPositionFor(e);if(null!==r.source)return r.source=b(t.url,r.source),r}return e}function E(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=_({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return(t=/^eval at ([^(]+) \((.+)\)$/.exec(e))?"eval at "+t[1]+" ("+E(t[2])+")":e}function S(){var e,t="";if(this.isNative())t="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),t+=e||"<anonymous>";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var o="",i=this.getFunctionName(),s=!0,a=this.isConstructor();if(this.isToplevel()||a)a?o+="new "+(i||"<anonymous>"):i?o+=i:(o+=t,s=!1);else{var c=this.getTypeName();"[object Object]"===c&&(c="null");var l=this.getMethodName();i?(c&&0!=i.indexOf(c)&&(o+=c+"."),o+=i,l&&i.indexOf("."+l)!=i.length-l.length-1&&(o+=" [as "+l+"]")):o+=c+"."+(l||"<anonymous>")}return s&&(o+=" ("+t+")"),o}function k(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]})),t.toString=S,t}function C(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1===n&&r>62&&!m()&&!e.isEval()&&(r-=62);var o=_({source:t,line:n,column:r}),i=(e=k(e)).getFunctionName;return e.getFunctionName=function(){return o.name||i()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var s=e.isEval()&&e.getEvalOrigin();return s?(s=E(s),(e=k(e)).getEvalOrigin=function(){return s},e):e}function O(e,t){return l&&(h={},f={}),(e.name||"Error")+": "+(e.message||"")+t.map((function(e){return"\n at "+C(e)})).join("")}function R(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],o=+t[2],i=+t[3],s=h[n];if(!s&&r&&r.existsSync(n))try{s=r.readFileSync(n,"utf8")}catch(e){s=""}if(s){var a=s.split(/(?:\r\n|\r|\n)/)[o-1];if(a)return n+":"+o+"\n"+a+"\n"+new Array(i).join(" ")+"^"}}return null}g.push((function(e){var t,n=function(e){var t;if(m())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=4===n.readyState?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(e){}t=y(e);for(var o,i,s=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;i=s.exec(t);)o=i;return o?o[1]:null}(e);if(!n)return null;if(d.test(n)){var r=n.slice(n.indexOf(",")+1);t=s(r,"base64").toString(),n=e}else n=b(e,n),t=y(n);return t?{url:n,map:t}:null}));var x=p.slice(0),A=g.slice(0);t.wrapCallSite=C,t.getErrorSource=R,t.mapSourcePosition=_,t.retrieveSourceMap=w,t.install=function(e){if((e=e||{}).environment&&(u=e.environment,-1===["node","browser","auto"].indexOf(u)))throw new Error("environment "+u+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(p.length=0),p.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(g.length=0),g.unshift(e.retrieveSourceMap)),e.hookRequire&&!m()){var t;try{t=n(3339)}catch(e){}var r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(e,t){return h[t]=e,f[t]=void 0,r.call(this,e,t)},t.prototype._compile.__sourceMapSupport=!0)}var o;l||(l="emptyCacheBetweenOperations"in e&&e.emptyCacheBetweenOperations),a||(a=!0,Error.prepareStackTrace=O),c||(!("handleUncaughtExceptions"in e)||e.handleUncaughtExceptions)&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(c=!0,o=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,n=this.listeners(e).length>0;if(t&&!n)return i=R(r=arguments[1]),process.stderr._handle&&process.stderr._handle.setBlocking&&process.stderr._handle.setBlocking(!0),i&&(console.error(),console.error(i)),console.error(r.stack),void process.exit(1)}var r,i;return o.apply(this,arguments)})},t.resetRetrieveHandlers=function(){p.length=0,g.length=0,p=x.slice(0),g=A.slice(0),w=v(g),y=v(p)}},735:(e,t,n)=>{var r=n(251),o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function s(){this._array=[],this._set=i?new Map:Object.create(null)}s.fromArray=function(e,t){for(var n=new s,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},s.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},s.prototype.add=function(e,t){var n=i?e:r.toSetString(e),s=i?this.has(e):o.call(this._set,n),a=this._array.length;s&&!t||this._array.push(e),s||(i?this._set.set(e,a):this._set[n]=a)},s.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},s.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},s.prototype.toArray=function(){return this._array.slice()},t.C=s},7092:(e,t,n)=>{var r=n(2364);t.encode=function(e){var t,n="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,i,s,a,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));o=!!(32&i),l+=(i&=31)<<u,u+=5}while(o);n.value=(a=(s=l)>>1,1&~s?a:-a),n.rest=t}},2364:(e,t)=>{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},1163:(e,t)=>{function n(e,r,o,i,s,a){var c=Math.floor((r-e)/2)+e,l=s(o,i[c],!0);return 0===l?c:l>0?r-c>1?n(c,r,o,i,s,a):a==t.LEAST_UPPER_BOUND?r<i.length?r:-1:c:c-e>1?n(e,c,o,i,s,a):a==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,o,i){if(0===r.length)return-1;var s=n(-1,r.length,e,r,o,i||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===o(r[s],r[s-1],!0);)--s;return s}},3302:(e,t,n)=>{var r=n(251);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,i,s,a;n=e,o=(t=this._last).generatedLine,i=n.generatedLine,s=t.generatedColumn,a=n.generatedColumn,i>o||i==o&&a>=s||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.P=o},3801:(e,t)=>{function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,o,i){if(o<i){var s=o-1;n(e,(u=o,h=i,Math.round(u+Math.random()*(h-u))),i);for(var a=e[i],c=o;c<i;c++)t(e[c],a)<=0&&n(e,s+=1,c);n(e,s+1,c);var l=s+1;r(e,t,o,l-1),r(e,t,l+1,i)}var u,h}t.g=function(e,t){r(e,t,0,e.length-1)}},7446:(e,t,n)=>{var r=n(251),o=n(1163),i=n(735).C,s=n(7092),a=n(3801).g;function c(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new h(n,t):new l(n,t)}function l(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),s=r.getArg(n,"sources"),a=r.getArg(n,"names",[]),c=r.getArg(n,"sourceRoot",null),l=r.getArg(n,"sourcesContent",null),u=r.getArg(n,"mappings"),h=r.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);c&&(c=r.normalize(c)),s=s.map(String).map(r.normalize).map((function(e){return c&&r.isAbsolute(c)&&r.isAbsolute(e)?r.relative(c,e):e})),this._names=i.fromArray(a.map(String),!0),this._sources=i.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._m