index.js000644 0001046530 14721363057007372 0ustar00000000 000000 /*! For license information please see index.js.LICENSE.txt */ (()=>{var __webpack_modules__={9182:(e,t,r)=>{"use strict";var n=r(7564),i=r(7249),o=r(7630),s=r(4534);function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var c=a(i),l=a(o);class u extends Error{constructor(e,t,r){super(e),this.token=t,this.type=r||"error"}}const f=e=>e<4?"short":4===e?"long":"narrow",p=e=>e%2==0?"2-digit":"numeric";function h(e,t){switch(e.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:return void t(`${e.desc} is not supported with width ${e.width}`)}}function d(e,t){const{char:r,desc:n,width:i}=e;return"d"===r?p(i):void t(`${n} is not supported`)}function m(e,t){const{char:r,desc:n,width:i}=e;return("c"===r||"e"===r)&&i<3&&t(`Numeric value is not supported for ${n}; falling back to weekday:short`,u.WARNING),f(i)}function g(e,t){const{char:r,desc:n,width:i}=e;switch(r){case"v":case"z":return 4===i?"long":"short";case"V":return 4===i?"long":void t(`${n} is not supported with width ${i}`);case"X":return void t(`${n} is not supported`)}return"short"}function y(e,t){switch(e.field){case"era":return{era:f(e.width)};case"year":return function(e,t){switch(e.char){case"y":return{year:p(e.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return t(`${e.desc} is not supported; falling back to year:numeric`,u.WARNING),{year:"numeric"}}}(e,t);case"month":return{month:h(e,t)};case"day":return{day:d(e,t)};case"weekday":return{weekday:m(e,t)};case"period":return;case"hour":return function(e){const t=p(e.width);let r;switch(e.char){case"h":r="h12";break;case"H":r="h23";break;case"k":r="h24";break;case"K":r="h11"}return r?{hour:t,hourCycle:r}:{hour:t}}(e);case"min":return{minute:p(e.width)};case"sec":return{second:p(e.width)};case"tz":return{timeZoneName:g(e,t)};case"quarter":case"week":case"sec-frac":case"ms":t(`${e.desc} is not supported`)}}function w(e,t=(e=>{throw e})){const r={},n=[];for(const i of e){const{error:e,field:o,str:s}=i;if(e){const r=new u(e.message,i);r.stack=e.stack,t(r)}s&&t(new u(`Ignoring string part: ${s}`,i,u.WARNING)),o&&(-1===n.indexOf(o)?n.push(o):t(new u(`Duplicate ${o} token`,i)));const a=y(i,((e,r)=>t(new u(e,i,r))));a&&Object.assign(r,a)}return r}const v={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},b=e=>e>="A"&&e<="Z"||e>="a"&&e<="z";function S(e,t){const r=e[t];if(!r)return null;if(b(r))return function(e,t){const r=e[t];let n=1;for(;e[++t]===r;)++n;const i=v[r];return i?{char:r,field:i.field,desc:i.desc,width:n}:{char:r,error:new Error(`The letter ${r} is not a valid field identifier`),width:n}}(e,t);if("'"===r)return function(e,t){let r=e[++t],n=2;if("'"===r)return{char:"'",str:r,width:n};for(;;){const i=e[++t];if(++n,void 0===i)return{char:"'",error:new Error(`Unterminated quoted literal in pattern: ${r||e}`),str:r,width:n};if("'"===i){if("'"!==e[++t])return{char:"'",str:r,width:n};++n}r+=i}}(e,t);let n=r,i=1;for(;;){const o=e[++t];if(!o||b(o)||"'"===o)return{char:r,str:n,width:i};n+=o,i+=1}}function x(e){const t=[];let r=0;for(;;){const n=S(e,r);if(!n)return t;t.push(n),r+=n.width}}class _ extends Error{constructor(e,t){super(t),this.code=e}}class E extends _{constructor(e,t){super("BAD_OPTION",`Unknown ${e} option: ${t}`),this.stem=e,this.option=t}}class k extends _{constructor(e){super("BAD_STEM",`Unknown stem: ${e}`),this.stem=e}}class A extends _{constructor(e,t){super("MASKED_VALUE",`Value for ${e} is set multiple times`),this.type=e,this.prev=t}}class O extends _{constructor(e){super("MISSING_OPTION",`Required option missing for ${e}`),this.stem=e}}class C extends _{constructor(e,t){super("BAD_PATTERN",t),this.char=e}}class T extends _{constructor(e,t,r){super("TOO_MANY_OPTIONS",`Token ${e} only supports ${r>1?`${r} options`:"one option"} (got ${t.length})`),this.stem=e,this.options=t}}class R extends _{constructor(e,t){super("UNSUPPORTED",`The stem ${e} is not supported`),this.stem=e,t&&(this.message+=` with value ${t}`,this.source=t)}}function N(e,{numberingSystem:t}){return Array.isArray(e)||(e=[e]),t?e.map((e=>{const r=-1===e.indexOf("-u-")?"u-nu":"nu";return`${e}-${r}-${t}`})).concat(e):e}function F({scale:e,unit:t}){let r="number"==typeof e&&e>=0?e:1;return t&&"percent"===t.style&&(r*=.01),r}function P(e,t){const{decimal:r,group:n,integerWidth:i,notation:o,precision:s,roundingMode:a,sign:c,unit:l,unitPer:u,unitWidth:f}=e,p=(e,r)=>{t&&t(new R(e,r))},h={};if(l)switch(l.style){case"base-unit":h.style="decimal";break;case"currency":h.style="currency",h.currency=l.currency;break;case"measure-unit":h.style="unit",h.unit=l.unit.replace(/.*-/,""),u&&(h.unit+="-per-"+u.replace(/.*-/,""));break;case"percent":h.style="percent";break;case"permille":p("permille")}switch(f){case"unit-width-full-name":h.currencyDisplay="name",h.unitDisplay="long";break;case"unit-width-hidden":p(f);break;case"unit-width-iso-code":h.currencyDisplay="code";break;case"unit-width-narrow":h.currencyDisplay="narrowSymbol",h.unitDisplay="narrow";break;case"unit-width-short":h.currencyDisplay="symbol",h.unitDisplay="short"}switch(n){case"group-off":h.useGrouping=!1;break;case"group-auto":h.useGrouping=!0;break;case"group-min2":case"group-on-aligned":case"group-thousands":p(n),h.useGrouping=!0}if(s)switch(s.style){case"precision-fraction":{const{minFraction:e,maxFraction:t,minSignificant:r,maxSignificant:n,source:i}=s;"number"==typeof e&&(h.minimumFractionDigits=e,"number"==typeof r&&p("precision-fraction",i)),"number"==typeof t&&(h.maximumFractionDigits=t),"number"==typeof r&&(h.minimumSignificantDigits=r),"number"==typeof n&&(h.maximumSignificantDigits=n);break}case"precision-integer":h.maximumFractionDigits=0;break;case"precision-unlimited":h.maximumFractionDigits=20;break;case"precision-increment":break;case"precision-currency-standard":h.trailingZeroDisplay=s.trailingZero;break;case"precision-currency-cash":p(s.style)}if(o)switch(o.style){case"compact-short":h.notation="compact",h.compactDisplay="short";break;case"compact-long":h.notation="compact",h.compactDisplay="long";break;case"notation-simple":h.notation="standard";break;case"scientific":case"engineering":{const{expDigits:e,expSign:t,source:r,style:n}=o;h.notation=n,(e&&e>1||t&&"sign-auto"!==t)&&p(n,r);break}}if(i){const{min:e,max:t,source:r}=i;if(e>0&&(h.minimumIntegerDigits=e),Number(t)>0){const e="engineering"===h.notation||"scientific"===h.notation;3===t&&e?h.notation="engineering":p("integer-width",r)}}switch(c){case"sign-auto":h.signDisplay="auto";break;case"sign-always":h.signDisplay="always";break;case"sign-except-zero":h.signDisplay="exceptZero";break;case"sign-never":h.signDisplay="never";break;case"sign-accounting":h.currencySign="accounting";break;case"sign-accounting-always":h.currencySign="accounting",h.signDisplay="always";break;case"sign-accounting-except-zero":h.currencySign="accounting",h.signDisplay="exceptZero"}return"decimal-always"===r&&p(r),a&&p(a),h}function I(e,t,r){const n=e[t];switch(n){case"%":return{char:"%",style:"percent",width:1};case"‰":return{char:"%",style:"permille",width:1};case"¤":{let i=1;for(;"¤"===e[++t];)++i;switch(i){case 1:return{char:n,currency:"default",width:i};case 2:return{char:n,currency:"iso-code",width:i};case 3:return{char:n,currency:"full-name",width:i};case 5:return{char:n,currency:"narrow",width:i};default:return r(new C("¤",`Invalid number (${i}) of ¤ chars in pattern`)),null}}case"*":{const r=e[t+1];if(r)return{char:n,pad:r,width:2};break}case"+":case"-":return{char:n,width:1};case"'":{let i=e[++t],o=2;if("'"===i)return{char:n,str:i,width:o};for(;;){const s=e[++t];if(++o,void 0===s)return r(new C("'",`Unterminated quoted literal in pattern: ${i}`)),{char:n,str:i,width:o};if("'"===s){if("'"!==e[++t])return{char:n,str:i,width:o};++o}i+=s}}}return null}const L=e=>e>="0"&&e<="9";function D(e,t){const r=e[t];if(L(r)){let n=r;for(;;){const r=e[++t];if(!L(r))return{char:"0",digits:n,width:n.length};n+=r}}switch(r){case"#":{let n=1;for(;"#"===e[++t];)++n;return{char:r,width:n}}case"@":{let n=1;for(;"@"===e[++t];)++n;let i=n;for(t-=1;"#"===e[++t];)++i;return{char:r,min:n,width:i}}case"E":{const n="+"===e[t+1];n&&++t;let i=0;for(;"0"===e[++t];)++i;if(i)return{char:r,expDigits:i,plus:n,width:(n?2:1)+i};break}case".":case",":return{char:r,width:1}}return null}function j(e,t,r){let n;!function(e){e[e.Prefix=0]="Prefix",e[e.Number=1]="Number",e[e.Suffix=2]="Suffix"}(n||(n={}));const i=[],o=[],s=[];let a=n.Prefix,c="";for(;t{throw e})){const{tokens:n,negative:i}=function(e,t){const{pattern:r,pos:n}=j(e,0,t);if(n1&&(r.notation.expDigits=f.expDigits),f.plus&&(r.notation.expSign="sign-always"),i=!0}}n?r.group="group-auto":o+s.length>3&&(r.group="group-off");const u=Number(`${s||"0"}.${c}`);if(u&&(r.precision={style:"precision-increment",increment:u}),i)if(r.precision&&!u||(r.integerWidth=o?{min:1,max:o+s.length}:{min:Math.max(1,s.length)}),r.precision)u||(r.integerWidth={min:1,max:1});else{const e=s.length+c.length;-1===a?e>0&&(r.precision={style:"precision-fraction",maxSignificant:e}):(r.precision={style:"precision-fraction",maxSignificant:Math.max(1,e)+l},e>1&&(r.precision.minSignificant=e))}else s.length>1&&(r.integerWidth={min:s.length}),r.precision||!c.length&&!l||(r.precision={style:"precision-fraction",minFraction:c.length,maxFraction:c.length+l});return r}(n.number,r),s=$(n.prefix,o,t,r,!0),a=$(n.suffix,o,t,r,!1);if(i){const e=M(i.prefix,!0),t=M(i.suffix,!1);o.affix={pos:[s,a],neg:[e,t]},o.sign="sign-never"}else(s||a)&&(o.affix={pos:[s,a]});return o}function H(e){const[t]=e.split("-",1);return-1!==["acceleration","angle","area","concentr","consumption","digital","duration","electric","energy","force","frequency","graphics","length","light","mass","power","pressure","speed","temperature","torque","volume"].indexOf(t)}const z={"compact-short":0,"compact-long":0,"notation-simple":0,scientific:2,engineering:2,percent:0,permille:0,"base-unit":0,currency:1,"measure-unit":1,"per-measure-unit":1,"unit-width-narrow":0,"unit-width-short":0,"unit-width-full-name":0,"unit-width-iso-code":0,"unit-width-hidden":0,"precision-integer":0,"precision-unlimited":0,"precision-currency-standard":1,"precision-currency-cash":0,"precision-increment":1,"rounding-mode-ceiling":0,"rounding-mode-floor":0,"rounding-mode-down":0,"rounding-mode-up":0,"rounding-mode-half-even":0,"rounding-mode-half-down":0,"rounding-mode-half-up":0,"rounding-mode-unnecessary":0,"integer-width":1,scale:1,"group-off":0,"group-min2":0,"group-auto":0,"group-on-aligned":0,"group-thousands":0,latin:0,"numbering-system":1,"sign-auto":0,"sign-always":0,"sign-never":0,"sign-accounting":0,"sign-accounting-always":0,"sign-except-zero":0,"sign-accounting-except-zero":0,"decimal-auto":0,"decimal-always":0},U={currency:1,"integer-width":1,"measure-unit":1,"numbering-system":1,"per-measure-unit":1,"precision-increment":1,scale:1};function W(e,t){const r="fraction"===t?/^\.(0*)(\+|#*)$/:/^(@+)(\+|#*)$/,n=e&&e.match(r);if(n){const e=n[1].length;switch(n[2].charAt(0)){case"":return{min:e,max:e};case"+":return{min:e,max:null};case"#":return{min:e,max:e+n[2].length}}}return null}class G{constructor(e){this.skeleton={},this.onError=e}badOption(e,t){this.onError(new E(e,t))}assertEmpty(e){const t=this.skeleton[e];t&&this.onError(new A(e,t))}parseToken(e,t){if(!function(e,t,r){if(function(e){return e in z}(e)){const n=z[e];if(t.length>n){if(0===n)for(const n of t)r(new E(e,n));else r(new T(e,t,n));return!1}if(function(e){return e in U}(e)&&t.length0?(this.assertEmpty("precision"),n.precision={style:e,increment:t}):this.badOption(e,r);break}case"rounding-mode-ceiling":case"rounding-mode-floor":case"rounding-mode-down":case"rounding-mode-up":case"rounding-mode-half-even":case"rounding-mode-half-odd":case"rounding-mode-half-ceiling":case"rounding-mode-half-floor":case"rounding-mode-half-down":case"rounding-mode-half-up":case"rounding-mode-unnecessary":this.assertEmpty("roundingMode"),n.roundingMode=e;break;case"integer-width":if(/^\+0*$/.test(r))this.assertEmpty("integerWidth"),n.integerWidth={source:r,min:r.length-1};else{const t=r.match(/^#*(0*)$/);t?(this.assertEmpty("integerWidth"),n.integerWidth={source:r,min:t[1].length,max:t[0].length}):this.badOption(e,r)}break;case"scale":{const t=Number(r);t>0?(this.assertEmpty("scale"),n.scale=t):this.badOption(e,r);break}case"group-off":case"group-min2":case"group-auto":case"group-on-aligned":case"group-thousands":this.assertEmpty("group"),n.group=e;break;case"latin":this.assertEmpty("numberingSystem"),n.numberingSystem="latn";break;case"numbering-system":-1!==["arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","latn","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt"].indexOf(r)?(this.assertEmpty("numberingSystem"),n.numberingSystem=r):this.badOption(e,r);break;case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":this.assertEmpty("sign"),n.sign=e;break;case"decimal-auto":case"decimal-always":this.assertEmpty("decimal"),n.decimal=e;break;default:{const r=function(e,t,r){const n=W(e,"fraction");if(n){t.length>1&&r(new T(e,t,1));const i={style:"precision-fraction",source:e,minFraction:n.min};null!=n.max&&(i.maxFraction=n.max);const o=t[0],s=W(o,"significant");return s?(i.source=`${e}/${o}`,i.minSignificant=s.min,null!=s.max&&(i.maxSignificant=s.max)):o&&r(new E(e,o)),i}const i=W(e,"significant");if(i){for(const n of t)r(new E(e,n));const n={style:"precision-fraction",source:e,minSignificant:i.min};return null!=i.max&&(n.maxSignificant=i.max),n}return null}(e,t,this.onError);r?(this.assertEmpty("precision"),n.precision=r):this.onError(new k(e))}}}}function q(e,t=(e=>{throw e})){const r=[];for(const t of e.split(" "))if(t){const e=t.split("/"),n=e.shift()||"";r.push({stem:n,options:e})}const n=new G(t);for(const{stem:e,options:t}of r)n.parseToken(e,t);return n.skeleton}const V=new RegExp("^"+["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"].join("|^")),K="@messageformat/runtime/lib/plurals";function Y(e){return e in l}e.exports=class{constructor(e){this.arguments=[],this.runtime={},this.options=e}compile(e,t,r){const{localeCodeFromKey:i,requireAllArguments:o,strict:s,strictPluralKeys:a}=this.options;if("object"==typeof e){const n={};for(const o of Object.keys(e)){const s=i?i(o):o,a=r&&s&&r[s]||t;n[o]=this.compile(e[o],a,r)}return n}this.plural=t;const c={cardinal:t.cardinals,ordinal:t.ordinals,strict:s,strictPluralKeys:a};this.arguments=[];const l=n.parse(e,c).map((e=>this.token(e,null))),u=this.arguments.length>0,f=this.concatenate(l,!0);return o&&u?(this.setRuntimeFn("reqArgs"),`(d) => { reqArgs(${JSON.stringify(this.arguments)}, d); return ${f}; }`):`(${u?"d":""}) => ${f}`}cases(e,t){let r=!0;const n=e.cases.map((({key:e,tokens:n})=>{"other"===e&&(r=!1);const i=n.map((e=>this.token(e,t)));return`${s.property(null,e.replace(/^=/,""))}: ${this.concatenate(i,!1)}`}));if(r){const{type:t}=e,{cardinals:r,ordinals:n}=this.plural;if("select"===t||"plural"===t&&r.includes("other")||"selectordinal"===t&&n.includes("other"))throw new Error(`No 'other' form found in ${JSON.stringify(e)}`)}return`{ ${n.join(", ")} }`}concatenate(e,t){return"values"===this.options.returnType&&(t||e.length>1)?"["+e.join(", ")+"]":e.join(" + ")||'""'}token(e,t){if("content"===e.type)return JSON.stringify(e.value);const{id:r,lc:n}=this.plural;let i,o;switch("arg"in e?(this.arguments.push(e.arg),i=[s.property("d",e.arg)]):i=[],e.type){case"argument":return this.options.biDiSupport?function(e,t){const r=V.test(t),n=JSON.stringify(r?"‏":"‎");return`${n} + ${e} + ${n}`}(String(i[0]),n):String(i[0]);case"select":o="select",t&&this.options.strict&&(t=null),i.push(this.cases(e,t)),this.setRuntimeFn("select");break;case"selectordinal":o="plural",i.push(e.pluralOffset||0,r,this.cases(e,e),1),this.setLocale(r,!0),this.setRuntimeFn("plural");break;case"plural":o="plural",i.push(e.pluralOffset||0,r,this.cases(e,e)),this.setLocale(r,!1),this.setRuntimeFn("plural");break;case"function":if(!this.options.customFormatters[e.key]){if("date"===e.key){o=this.setDateFormatter(e,i,t);break}if("number"===e.key){o=this.setNumberFormatter(e,i,t);break}}if(i.push(JSON.stringify(this.plural.locale)),e.param){t&&this.options.strict&&(t=null);const r=this.getFormatterArg(e,t);r&&i.push(r)}o=e.key,this.setFormatter(o);break;case"octothorpe":if(!t)return'"#"';i=[JSON.stringify(this.plural.locale),s.property("d",t.arg),t.pluralOffset||0],this.options.strict?(o="strictNumber",i.push(JSON.stringify(t.arg)),this.setRuntimeFn("strictNumber")):(o="number",this.setRuntimeFn("number"))}if(!o)throw new Error("Parser error for token "+JSON.stringify(e));return`${o}(${i.join(", ")})`}runtimeIncludes(e,t){if(s.identifier(e)!==e)throw new SyntaxError(`Reserved word used as ${t} identifier: ${e}`);const r=this.runtime[e];if(!r||r.type===t)return r;throw new TypeError(`Cannot override ${r.type} runtime function as ${t}: ${e}`)}setLocale(e,t){const r=this.runtimeIncludes(e,"locale"),{getCardinal:n,getPlural:i,isDefault:o}=this.plural;let s,a,c;if(!t&&o&&n){if(r)return;s=e=>n(e),a="@messageformat/runtime/lib/cardinals",c=()=>String(n)}else{if(r&&(!o||r.module===K))return;s=(e,t)=>i(e,t),a=o?K:i.module||null,c=()=>String(i)}this.runtime[e]=Object.assign(s,{id:e,module:a,toString:c,type:"locale"})}setRuntimeFn(e){this.runtimeIncludes(e,"runtime")||(this.runtime[e]=Object.assign(c[e],{id:e,module:"@messageformat/runtime",type:"runtime"}))}getFormatterArg({key:e,param:t},r){const n=this.options.customFormatters[e]||Y(e)&&l[e];if(!n||!t)return null;const i="arg"in n&&n.arg||"string";if("options"===i){let r="";for(const n of t){if("content"!==n.type)throw new SyntaxError(`Expected literal options for ${e} formatter`);r+=n.value}const n={};for(const e of r.split(",")){const t=e.indexOf(":");if(-1===t)n[e.trim()]=null;else{const r=e.substring(0,t).trim(),i=e.substring(t+1).trim();if("true"===i)n[r]=!0;else if("false"===i)n[r]=!1;else if("null"===i)n[r]=null;else{const e=Number(i);n[r]=Number.isFinite(e)?e:i}}}return JSON.stringify(n)}{const e=t.map((e=>this.token(e,r)));if("raw"===i)return`[${e.join(", ")}]`;const n=e.join(" + ");return n?`(${n}).trim()`:'""'}}setFormatter(e){if(this.runtimeIncludes(e,"formatter"))return;let t=this.options.customFormatters[e];if(t)"function"==typeof t&&(t={formatter:t}),this.runtime[e]=Object.assign(t.formatter,{type:"formatter"},"module"in t&&t.module&&t.id?{id:s.identifier(t.id),module:t.module}:{id:null,module:null});else{if(!Y(e))throw new Error(`Formatting function not found: ${e}`);this.runtime[e]=Object.assign(l[e],{type:"formatter"},{id:e,module:"@messageformat/runtime/lib/formatters"})}}setDateFormatter({param:e},t,r){const{locale:n}=this.plural,i=e&&1===e.length&&e[0];if(i&&"content"===i.type&&/^\s*::/.test(i.value)){const e=i.value.trim().substr(2),t=s.identifier(`date_${n}_${e}`,!0);if(!this.runtimeIncludes(t,"formatter")){const r=function(e,t,r){"string"==typeof t&&(t=x(t));const n=w(t,void 0),i=new Intl.DateTimeFormat(e,n);return e=>i.format(e)}(n,e);this.runtime[t]=Object.assign(r,{id:t,module:null,toString:()=>function(e,t,r){"string"==typeof t&&(t=x(t));const n=w(t,void 0);return["(function() {",`var opt = ${JSON.stringify(n)};`,`var dtf = new Intl.DateTimeFormat(${JSON.stringify(e)}, opt);`,"return function(value) { return dtf.format(value); }"].join("\n ")+"\n})()"}(n,e),type:"formatter"})}return t}if(t.push(JSON.stringify(n)),e&&e.length>0){r&&this.options.strict&&(r=null);const n=e.map((e=>this.token(e,r)));t.push("("+(n.join(" + ")||'""')+").trim()")}return this.setFormatter("date"),"date"}setNumberFormatter({param:e},t,r){const{locale:n}=this.plural;if(!e||0===e.length)return t.unshift(JSON.stringify(n)),t.push("0"),this.setRuntimeFn("number"),"number";if(t.push(JSON.stringify(n)),1===e.length&&"content"===e[0].type){const r=e[0].value.trim();switch(r){case"currency":return t.push(JSON.stringify(this.options.currency)),this.setFormatter("numberCurrency"),"numberCurrency";case"integer":return this.setFormatter("numberInteger"),"numberInteger";case"percent":return this.setFormatter("numberPercent"),"numberPercent"}const i=r.match(/^currency:([A-Z]+)$/);if(i)return t.push(JSON.stringify(i[1])),this.setFormatter("numberCurrency"),"numberCurrency";const o=s.identifier(`number_${n}_${r}`,!0);if(!this.runtimeIncludes(o,"formatter")){const{currency:e}=this.options,t=function(e,t,r,n){"string"==typeof t&&(t=0===t.indexOf("::")?q(t.slice(2),n):B(t,r,n));const i=N(e,t),o=P(t,n),s=function(e){const t=F(e),{precision:r}=e;return r&&"precision-increment"===r.style?e=>function(e,t){const r=+e+t/2;return r-r%+t}(e,r.increment)*t:e=>e*t}(t),a=new Intl.NumberFormat(i,o);if(t.affix){const[e,r]=t.affix.pos,[n,i]=t.affix.neg||["",""];return t=>{const o=a.format(s(t));return t<0?`${n}${o}${i}`:`${e}${o}${r}`}}return e=>a.format(s(e))}(n,r,e);this.runtime[o]=Object.assign(t,{id:null,module:null,toString:()=>function(e,t,r,n){"string"==typeof t&&(t=0===t.indexOf("::")?q(t.slice(2),n):B(t,r,n));const i=N(e,t),o=P(t,n),s=function(e){const t=F(e),{precision:r}=e;if(r&&"precision-increment"===r.style){const e="+n + "+r.increment/2;let n=`x - (x % +${r.increment})`;return 1!==t&&(n=`(${n}) * ${t}`),`function(n) { var x = ${e}; return ${n}; }`}return 1!==t?`function(n) { return n * ${t}; }`:null}(t),a=["(function() {",`var opt = ${JSON.stringify(o)};`,`var nf = new Intl.NumberFormat(${JSON.stringify(i)}, opt);`];let c="nf.format(value)";if(s&&(a.push(`var mod = ${s};`),c="nf.format(mod(value))"),t.affix){const[e,r]=t.affix.pos.map((e=>JSON.stringify(e)));if(t.affix.neg){const[n,i]=t.affix.neg.map((e=>JSON.stringify(e)));c=`value < 0 ? ${n} + ${c} + ${i} : ${e} + ${c} + ${r}`}else c=`${e} + ${c} + ${r}`}return a.push(`return function(value) { return ${c}; }`),a.join("\n ")+"\n})()"}(n,r,e),type:"formatter"})}return o}r&&this.options.strict&&(r=null);const i=e.map((e=>this.token(e,r)));return t.push("("+(i.join(" + ")||'""')+").trim()"),t.push(JSON.stringify(this.options.currency)),this.setFormatter("numberFmt"),"numberFmt"}}},5150:(e,t,r)=>{"use strict";var n=r(9182),i=r(7867),o=r(985),s=r(3585),a=r(4534);function c(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var l=c(i),u=c(o),f=c(s);function p(e){if("string"!=typeof e||e.length<2)throw new RangeError(`Invalid language tag: ${e}`);if(e.startsWith("pt-PT"))return"pt-PT";const t=e.match(/.+?(?=[-_])/);return t?t[0]:e}function h(e){if("function"==typeof e){const t=p(e.name);return{isDefault:!1,id:a.identifier(t),lc:t,locale:e.name,getPlural:e,cardinals:e.cardinals||[],ordinals:e.ordinals||[]}}const t=p(e),r=a.identifier(t);return function(e){return e in f}(r)?{isDefault:!0,id:r,lc:t,locale:e,getCardinal:l[r],getPlural:f[r],cardinals:u[r].cardinal,ordinals:u[r].ordinal}:null}function d(e){const t=p(e);return a.identifier(t)in f}class m{static escape(e,t){const r=t?/[#{}]/g:/[{}]/g;return String(e).replace(r,"'$&'")}static supportedLocalesOf(e){return(Array.isArray(e)?e:[e]).filter(d)}constructor(e,t){if(this.plurals=[],this.options=Object.assign({biDiSupport:!1,currency:"USD",customFormatters:{},localeCodeFromKey:null,requireAllArguments:!1,returnType:"string",strict:t&&t.strictNumberSign||!1,strictPluralKeys:!0},t),"*"===e)this.plurals=function(e){const t=Object.keys(f).filter((t=>t!==e));return t.unshift(e),t.map(h)}(m.defaultLocale);else if(Array.isArray(e))this.plurals=e.map(h).filter(Boolean);else if(e){const t=h(e);t&&(this.plurals=[t])}if(0===this.plurals.length){const e=h(m.defaultLocale);this.plurals=[e]}}resolvedOptions(){return Object.assign(Object.assign({},this.options),{locale:this.plurals[0].locale,plurals:this.plurals})}compile(e){const t=new n(this.options),r="return "+t.compile(e,this.plurals[0]),i=[],o=[];for(const[e,r]of Object.entries(t.runtime))i.push(e),o.push(r);return new Function(...i,r)(...o)}}m.defaultLocale="en",e.exports=m},9170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9444),i=r(3171),o={returnIndex:!1},s=(e,t,r,n)=>{const o=Array.isArray(r),s=o?r[0]:r;if(!o&&"string"!=typeof s)throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));const a=i(s,!1);for(let e=0;e{if(null==e)throw new TypeError("anymatch: specify first argument");const i="boolean"==typeof r?{returnIndex:r}:r,a=i.returnIndex||!1,c=(l=e,Array.isArray(l)?l:[l]);var l;const u=c.filter((e=>"string"==typeof e&&"!"===e.charAt(0))).map((e=>e.slice(1))).map((e=>n(e,i))),f=c.filter((e=>"string"!=typeof e||"string"==typeof e&&"!"!==e.charAt(0))).map((e=>((e,t)=>{if("function"==typeof e)return e;if("string"==typeof e){const r=n(e,t);return t=>e===t||r(t)}return e instanceof RegExp?t=>e.test(t):e=>!1})(e,i)));return null==t?(e,t=!1)=>s(f,u,e,"boolean"==typeof t&&t):s(f,u,t,a)};a.default=a,e.exports=a},5487:(e,t,r)=>{e.exports=r(5133)},6088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=void 0,t.boolean=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1"].includes(e.trim().toLowerCase());case"[object Number]":return 1===e.valueOf();case"[object Boolean]":return e.valueOf();default:return!1}}},6204:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBooleanable=t.boolean=void 0;const n=r(6088);Object.defineProperty(t,"boolean",{enumerable:!0,get:function(){return n.boolean}});const i=r(446);Object.defineProperty(t,"isBooleanable",{enumerable:!0,get:function(){return i.isBooleanable}})},446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBooleanable=void 0,t.isBooleanable=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(e.trim().toLowerCase());case"[object Number]":return[0,1].includes(e.valueOf());case"[object Boolean]":return!0;default:return!1}}},6744:(e,t,r)=>{"use strict";const n=r(3349),i=r(7529),o=r(8050),s=r(4339),a=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let e=a.create(n,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(a.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};a.parse=(e,t={})=>s(e,t),a.stringify=(e,t={})=>n("string"==typeof e?a.parse(e,t):e,t),a.compile=(e,t={})=>("string"==typeof e&&(e=a.parse(e,t)),i(e,t)),a.expand=(e,t={})=>{"string"==typeof e&&(e=a.parse(e,t));let r=o(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},a.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?a.compile(e,t):a.expand(e,t),e.exports=a},7529:(e,t,r)=>{"use strict";const n=r(2664),i=r(3083);e.exports=(e,t={})=>{let r=(e,o={})=>{let s=i.isInvalidBrace(o),a=!0===e.invalid&&!0===t.escapeInvalid,c=!0===s||!0===a,l=!0===t.escapeInvalid?"\\":"",u="";if(!0===e.isOpen)return l+e.value;if(!0===e.isClose)return l+e.value;if("open"===e.type)return c?l+e.value:"(";if("close"===e.type)return c?l+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":c?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let r=i.reduce(e.nodes),o=n(...r,{...t,wrap:!1,toRegex:!0});if(0!==o.length)return r.length>1&&o.length>1?`(${o})`:o}if(e.nodes)for(let t of e.nodes)u+=r(t,e);return u};return r(e)}},6611:e=>{"use strict";e.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},8050:(e,t,r)=>{"use strict";const n=r(2664),i=r(3349),o=r(3083),s=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?o.flatten(t).map((e=>`{${e}}`)):t;for(let i of e)if(Array.isArray(i))for(let e of i)n.push(s(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}`),n.push(Array.isArray(e)?s(i,e,r):i+e);return o.flatten(n)};e.exports=(e,t={})=>{let r=void 0===t.rangeLimit?1e3:t.rangeLimit,a=(e,c={})=>{e.queue=[];let l=c,u=c.queue;for(;"brace"!==l.type&&"root"!==l.type&&l.parent;)l=l.parent,u=l.queue;if(e.invalid||e.dollar)return void u.push(s(u.pop(),i(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void u.push(s(u.pop(),["{}"]));if(e.nodes&&e.ranges>0){let a=o.reduce(e.nodes);if(o.exceedsLimit(...a,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=n(...a,t);return 0===c.length&&(c=i(e,t)),u.push(s(u.pop(),c)),void(e.nodes=[])}let f=o.encloseBrace(e),p=e.queue,h=e;for(;"brace"!==h.type&&"root"!==h.type&&h.parent;)h=h.parent,p=h.queue;for(let t=0;t{"use strict";const n=r(3349),{MAX_LENGTH:i,CHAR_BACKSLASH:o,CHAR_BACKTICK:s,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:w}=r(6611);e.exports=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");let r=t||{},v="number"==typeof r.maxLength?Math.min(i,r.maxLength):i;if(e.length>v)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${v})`);let b,S={type:"root",input:e,nodes:[]},x=[S],_=S,E=S,k=0,A=e.length,O=0,C=0;const T=()=>e[O++],R=e=>{if("text"===e.type&&"dot"===E.type&&(E.type="text"),!E||"text"!==E.type||"text"!==e.type)return _.nodes.push(e),e.parent=_,e.prev=E,E=e,e;E.value+=e.value};for(R({type:"bos"});O0){if(_.ranges>0){_.ranges=0;let e=_.nodes.shift();_.nodes=[e,{type:"text",value:n(_)}]}R({type:"comma",value:b}),_.commas++}else if(b===c&&C>0&&0===_.commas){let e=_.nodes;if(0===C||0===e.length){R({type:"text",value:b});continue}if("dot"===E.type){if(_.range=[],E.value+=b,E.type="range",3!==_.nodes.length&&5!==_.nodes.length){_.invalid=!0,_.ranges=0,E.type="text";continue}_.ranges++,_.args=[];continue}if("range"===E.type){e.pop();let t=e[e.length-1];t.value+=E.value+b,E=t,_.ranges--;continue}R({type:"dot",value:b})}else R({type:"text",value:b});else{if("brace"!==_.type){R({type:"text",value:b});continue}let e="close";_=x.pop(),_.close=!0,R({type:e,value:b}),C--,_=x[x.length-1]}else{C++;let e=E.value&&"$"===E.value.slice(-1)||!0===_.dollar;_=R({type:"brace",open:!0,close:!1,dollar:e,depth:C,commas:0,ranges:0,nodes:[]}),x.push(_),R({type:"open",value:b})}else{let e,r=b;for(!0!==t.keepQuotes&&(b="");O{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));let e=x[x.length-1],t=e.nodes.indexOf(_);e.nodes.splice(t,1,..._.nodes)}}while(x.length>0);return R({type:"eos"}),S}},3349:(e,t,r)=>{"use strict";const n=r(3083);e.exports=(e,t={})=>{let r=(e,i={})=>{let o=t.escapeInvalid&&n.isInvalidBrace(i),s=!0===e.invalid&&!0===t.escapeInvalid,a="";if(e.value)return(o||s)&&n.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)a+=r(t);return a};return r(e)}},3083:(e,t)=>{"use strict";t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find((e=>e.type===t)),t.exceedsLimit=(e,r,n=1,i)=>!1!==i&&!(!t.isInteger(e)||!t.isInteger(r))&&(Number(r)-Number(e))/Number(n)>=i,t.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||"open"===n.type||"close"===n.type)&&!0!==n.escaped&&(n.value="\\"+n.value,n.escaped=!0)},t.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges>>0==0&&(e.invalid=!0,!0),t.isInvalidBrace=e=>!("brace"!==e.type||!0!==e.invalid&&!e.dollar&&(e.commas>>0+e.ranges>>0!=0&&!0===e.open&&!0===e.close||(e.invalid=!0,0))),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,t.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),t.flatten=(...e)=>{const t=[],r=e=>{for(let n=0;n{"use strict";const{EventEmitter:n}=r(2361),i=r(7147),o=r(1017),{promisify:s}=r(3837),a=r(8356),c=r(9170).default,l=r(7647),u=r(6830),f=r(6744),p=r(3171),h=r(3221),d=r(1215),{EV_ALL:m,EV_READY:g,EV_ADD:y,EV_CHANGE:w,EV_UNLINK:v,EV_ADD_DIR:b,EV_UNLINK_DIR:S,EV_RAW:x,EV_ERROR:_,STR_CLOSE:E,STR_END:k,BACK_SLASH_RE:A,DOUBLE_SLASH_RE:O,SLASH_OR_BACK_SLASH_RE:C,DOT_RE:T,REPLACER_RE:R,SLASH:N,SLASH_SLASH:F,BRACE_START:P,BANG:I,ONE_DOT:L,TWO_DOTS:D,GLOBSTAR:j,SLASH_GLOBSTAR:$,ANYMATCH_OPTS:M,STRING_TYPE:B,FUNCTION_TYPE:H,EMPTY_STR:z,EMPTY_FN:U,isWindows:W,isMacos:G,isIBMi:q}=r(1318),V=s(i.stat),K=s(i.readdir),Y=(e=[])=>Array.isArray(e)?e:[e],J=(e,t=[])=>(e.forEach((e=>{Array.isArray(e)?J(e,t):t.push(e)})),t),Z=e=>{const t=J(Y(e));if(!t.every((e=>typeof e===B)))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map(X)},Q=e=>{let t=e.replace(A,N),r=!1;for(t.startsWith(F)&&(r=!0);t.match(O);)t=t.replace(O,N);return r&&(t=N+t),t},X=e=>Q(o.normalize(Q(e))),ee=(e=z)=>t=>typeof t!==B?t:X(o.isAbsolute(t)?t:o.join(e,t)),te=(e,t)=>void 0===e[t];class re{constructor(e,t){this.path=e,this._removeWatcher=t,this.items=new Set}add(e){const{items:t}=this;t&&e!==L&&e!==D&&t.add(e)}async remove(e){const{items:t}=this;if(!t)return;if(t.delete(e),t.size>0)return;const r=this.path;try{await K(r)}catch(e){this._removeWatcher&&this._removeWatcher(o.dirname(r),o.basename(r))}}has(e){const{items:t}=this;if(t)return t.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}class ne{constructor(e,t,r,n){this.fsw=n,this.path=e=e.replace(R,z),this.watchPath=t,this.fullWatchPath=o.resolve(t),this.hasGlob=t!==e,e===z&&(this.hasGlob=!1),this.globSymlink=!(!this.hasGlob||!r)&&void 0,this.globFilter=!!this.hasGlob&&c(e,void 0,M),this.dirParts=this.getDirParts(e),this.dirParts.forEach((e=>{e.length>1&&e.pop()})),this.followSymlinks=r,this.statMethod=r?"stat":"lstat"}checkGlobSymlink(e){return void 0===this.globSymlink&&(this.globSymlink=e.fullParentDir!==this.fullWatchPath&&{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return o.join(this.watchPath,o.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);const r=this.entryPath(e);return(!this.hasGlob||typeof this.globFilter!==H||this.globFilter(r))&&this.fsw._isntIgnored(r,t)&&this.fsw._hasReadPermissions(t)}getDirParts(e){if(!this.hasGlob)return[];const t=[];return(e.includes(P)?f.expand(e):[e]).forEach((e=>{t.push(o.relative(this.watchPath,e).split(C))})),t}filterDir(e){if(this.hasGlob){const t=this.getDirParts(this.checkGlobSymlink(e));let r=!1;this.unmatchedGlob=!this.dirParts.some((e=>e.every(((e,n)=>(e===j&&(r=!0),r||!t[0][n]||c(e,t[0][n],M))))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class ie extends n{constructor(e){super();const t={};e&&Object.assign(t,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,te(t,"persistent")&&(t.persistent=!0),te(t,"ignoreInitial")&&(t.ignoreInitial=!1),te(t,"ignorePermissionErrors")&&(t.ignorePermissionErrors=!1),te(t,"interval")&&(t.interval=100),te(t,"binaryInterval")&&(t.binaryInterval=300),te(t,"disableGlobbing")&&(t.disableGlobbing=!1),t.enableBinaryInterval=t.binaryInterval!==t.interval,te(t,"useFsEvents")&&(t.useFsEvents=!t.usePolling),d.canUse()||(t.useFsEvents=!1),te(t,"usePolling")&&!t.useFsEvents&&(t.usePolling=G),q&&(t.usePolling=!0);const r=process.env.CHOKIDAR_USEPOLLING;if(void 0!==r){const e=r.toLowerCase();t.usePolling="false"!==e&&"0"!==e&&("true"===e||"1"===e||!!e)}const n=process.env.CHOKIDAR_INTERVAL;n&&(t.interval=Number.parseInt(n,10)),te(t,"atomic")&&(t.atomic=!t.usePolling&&!t.useFsEvents),t.atomic&&(this._pendingUnlinks=new Map),te(t,"followSymlinks")&&(t.followSymlinks=!0),te(t,"awaitWriteFinish")&&(t.awaitWriteFinish=!1),!0===t.awaitWriteFinish&&(t.awaitWriteFinish={});const i=t.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),t.ignored&&(t.ignored=Y(t.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=U,this._readyEmitted=!0,process.nextTick((()=>this.emit(g))))},this._emitRaw=(...e)=>this.emit(x,...e),this._readyEmitted=!1,this.options=t,t.useFsEvents?this._fsEventsHandler=new d(this):this._nodeFsHandler=new h(this),Object.freeze(t)}add(e,t,r){const{cwd:n,disableGlobbing:i}=this.options;this.closed=!1;let s=Z(e);return n&&(s=s.map((e=>{const t=((e,t)=>o.isAbsolute(e)?e:e.startsWith(I)?I+o.join(t,e.slice(1)):o.join(t,e))(e,n);return i||!u(e)?t:p(t)}))),s=s.filter((e=>e.startsWith(I)?(this._ignoredPaths.add(e.slice(1)),!1):(this._ignoredPaths.delete(e),this._ignoredPaths.delete(e+$),this._userIgnored=void 0,!0))),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=s.length),this.options.persistent&&(this._readyCount+=s.length),s.forEach((e=>this._fsEventsHandler._addToFsEvents(e)))):(this._readyCount||(this._readyCount=0),this._readyCount+=s.length,Promise.all(s.map((async e=>{const n=await this._nodeFsHandler._addToNodeFs(e,!r,0,0,t);return n&&this._emitReady(),n}))).then((e=>{this.closed||e.filter((e=>e)).forEach((e=>{this.add(o.dirname(e),o.basename(t||e))}))}))),this}unwatch(e){if(this.closed)return this;const t=Z(e),{cwd:r}=this.options;return t.forEach((e=>{o.isAbsolute(e)||this._closers.has(e)||(r&&(e=o.join(r,e)),e=o.resolve(e)),this._closePath(e),this._ignoredPaths.add(e),this._watched.has(e)&&this._ignoredPaths.add(e+$),this._userIgnored=void 0})),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach((t=>t.forEach((t=>{const r=t();r instanceof Promise&&e.push(r)})))),this._streams.forEach((e=>e.destroy())),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((e=>e.dispose())),["closers","watched","streams","symlinkPaths","throttled"].forEach((e=>{this[`_${e}`].clear()})),this._closePromise=e.length?Promise.all(e).then((()=>{})):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach(((t,r)=>{const n=this.options.cwd?o.relative(this.options.cwd,r):r;e[n||L]=t.getChildren().sort()})),e}emitWithAll(e,t){this.emit(...t),e!==_&&this.emit(m,...t)}async _emit(e,t,r,n,i){if(this.closed)return;const s=this.options;W&&(t=o.normalize(t)),s.cwd&&(t=o.relative(s.cwd,t));const a=[e,t];void 0!==i?a.push(r,n,i):void 0!==n?a.push(r,n):void 0!==r&&a.push(r);const c=s.awaitWriteFinish;let l;if(c&&(l=this._pendingWrites.get(t)))return l.lastChange=new Date,this;if(s.atomic){if(e===v)return this._pendingUnlinks.set(t,a),setTimeout((()=>{this._pendingUnlinks.forEach(((e,t)=>{this.emit(...e),this.emit(m,...e),this._pendingUnlinks.delete(t)}))}),"number"==typeof s.atomic?s.atomic:100),this;e===y&&this._pendingUnlinks.has(t)&&(e=a[0]=w,this._pendingUnlinks.delete(t))}if(c&&(e===y||e===w)&&this._readyEmitted){const r=(t,r)=>{t?(e=a[0]=_,a[1]=t,this.emitWithAll(e,a)):r&&(a.length>2?a[2]=r:a.push(r),this.emitWithAll(e,a))};return this._awaitWriteFinish(t,c.stabilityThreshold,e,r),this}if(e===w&&!this._throttle(w,t,50))return this;if(s.alwaysStat&&void 0===r&&(e===y||e===b||e===w)){const e=s.cwd?o.join(s.cwd,t):t;let r;try{r=await V(e)}catch(e){}if(!r||this.closed)return;a.push(r)}return this.emitWithAll(e,a),this}_handleError(e){const t=e&&e.code;return e&&"ENOENT"!==t&&"ENOTDIR"!==t&&(!this.options.ignorePermissionErrors||"EPERM"!==t&&"EACCES"!==t)&&this.emit(_,e),e||this.closed}_throttle(e,t,r){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),i=n.get(t);if(i)return i.count++,!1;let o;const s=()=>{const e=n.get(t),r=e?e.count:0;return n.delete(t),clearTimeout(o),e&&clearTimeout(e.timeoutObject),r};o=setTimeout(s,r);const a={timeoutObject:o,clear:s,count:0};return n.set(t,a),a}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,t,r,n){let s,a=e;this.options.cwd&&!o.isAbsolute(e)&&(a=o.join(this.options.cwd,e));const c=new Date,l=r=>{i.stat(a,((i,o)=>{if(i||!this._pendingWrites.has(e))return void(i&&"ENOENT"!==i.code&&n(i));const a=Number(new Date);r&&o.size!==r.size&&(this._pendingWrites.get(e).lastChange=a),a-this._pendingWrites.get(e).lastChange>=t?(this._pendingWrites.delete(e),n(void 0,o)):s=setTimeout(l,this.options.awaitWriteFinish.pollInterval,o)}))};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:c,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(s),r)}),s=setTimeout(l,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,t){if(this.options.atomic&&T.test(e))return!0;if(!this._userIgnored){const{cwd:e}=this.options,t=this.options.ignored,r=t&&t.map(ee(e)),n=Y(r).filter((e=>typeof e===B&&!u(e))).map((e=>e+$)),i=this._getGlobIgnored().map(ee(e)).concat(r,n);this._userIgnored=c(i,void 0,M)}return this._userIgnored([e,t])}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e,t){const r=t||this.options.disableGlobbing||!u(e)?e:l(e),n=this.options.followSymlinks;return new ne(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const t=o.resolve(e);return this._watched.has(t)||this._watched.set(t,new re(t,this._boundRemove)),this._watched.get(t)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const t=511&(e&&Number.parseInt(e.mode,10)),r=Number.parseInt(t.toString(8)[0],10);return Boolean(4&r)}_remove(e,t,r){const n=o.join(e,t),i=o.resolve(n);if(r=null!=r?r:this._watched.has(n)||this._watched.has(i),!this._throttle("remove",n,100))return;r||this.options.useFsEvents||1!==this._watched.size||this.add(e,t,!0),this._getWatchedDir(n).getChildren().forEach((e=>this._remove(n,e)));const s=this._getWatchedDir(e),a=s.has(t);s.remove(t),this._symlinkPaths.has(i)&&this._symlinkPaths.delete(i);let c=n;if(this.options.cwd&&(c=o.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===y)return;this._watched.delete(n),this._watched.delete(i);const l=r?S:v;a&&!this._isIgnored(n)&&this._emit(l,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const t=o.dirname(e);this._getWatchedDir(t).remove(o.basename(e))}_closeFile(e){const t=this._closers.get(e);t&&(t.forEach((e=>e())),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(t)}_readdirp(e,t){if(this.closed)return;const r={type:m,alwaysStat:!0,lstat:!0,...t};let n=a(e,r);return this._streams.add(n),n.once(E,(()=>{n=void 0})),n.once(k,(()=>{n&&(this._streams.delete(n),n=void 0)})),n}}t.FSWatcher=ie,t.watch=(e,t)=>{const r=new ie(t);return r.add(e),r}},1318:(e,t,r)=>{"use strict";const{sep:n}=r(1017),{platform:i}=process,o=r(2037);t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1,t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${n}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=e=>e,t.isWindows="win32"===i,t.isMacos="darwin"===i,t.isLinux="linux"===i,t.isIBMi="OS400"===o.type()},1215:(e,t,r)=>{"use strict";const n=r(7147),i=r(1017),{promisify:o}=r(3837);let s;try{s=r(Object(function(){var e=new Error("Cannot find module 'fsevents'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(e){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(e)}if(s){const e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){const t=Number.parseInt(e[1],10),r=Number.parseInt(e[2],10);8===t&&r<16&&(s=void 0)}}const{EV_ADD:a,EV_CHANGE:c,EV_ADD_DIR:l,EV_UNLINK:u,EV_ERROR:f,STR_DATA:p,STR_END:h,FSEVENT_CREATED:d,FSEVENT_MODIFIED:m,FSEVENT_DELETED:g,FSEVENT_MOVED:y,FSEVENT_UNKNOWN:w,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:v,FSEVENT_TYPE_FILE:b,FSEVENT_TYPE_DIRECTORY:S,FSEVENT_TYPE_SYMLINK:x,ROOT_GLOBSTAR:_,DIR_SUFFIX:E,DOT_SLASH:k,FUNCTION_TYPE:A,EMPTY_FN:O,IDENTITY_FN:C}=r(1318),T=o(n.stat),R=o(n.lstat),N=o(n.realpath),F={stat:T,lstat:R},P=new Map,I=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),L=(e,t)=>({stop:s.watch(e,t)}),D=(e,t)=>{let r=0;for(;!e.indexOf(t)&&(e=i.dirname(e))!==t;)r++;return r},j=(e,t)=>e.type===S&&t.isDirectory()||e.type===x&&t.isSymbolicLink()||e.type===b&&t.isFile();e.exports=class{constructor(e){this.fsw=e}checkIgnored(e,t){const r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,t))return r.add(e),t&&t.isDirectory()&&r.add(e+_),!0;r.delete(e),r.delete(e+_)}addOrChange(e,t,r,n,i,o,s,l){const u=i.has(o)?c:a;this.handleEvent(u,e,t,r,n,i,o,s,l)}async checkExists(e,t,r,n,i,o,s,a){try{const c=await T(e);if(this.fsw.closed)return;j(s,c)?this.addOrChange(e,t,r,n,i,o,s,a):this.handleEvent(u,e,t,r,n,i,o,s,a)}catch(c){"EACCES"===c.code?this.addOrChange(e,t,r,n,i,o,s,a):this.handleEvent(u,e,t,r,n,i,o,s,a)}}handleEvent(e,t,r,n,i,o,s,c,f){if(!this.fsw.closed&&!this.checkIgnored(t))if(e===u){const e=c.type===S;(e||o.has(s))&&this.fsw._remove(i,s,e)}else{if(e===a){if(c.type===S&&this.fsw._getWatchedDir(t),c.type===x&&f.followSymlinks){const e=void 0===f.depth?void 0:D(r,n)+1;return this._addToFsEvents(t,!1,!0,e)}this.fsw._getWatchedDir(i).add(s)}const o=c.type===S?e+E:e;this.fsw._emit(o,t),o===l&&this._addToFsEvents(t,!1,!0)}}_watchWithFsEvents(e,t,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const o=this.fsw.options,a=function(e,t,r,n){let o=i.extname(t)?i.dirname(t):t;const a=i.dirname(o);let c=P.get(o);(e=>{let t=0;for(const r of P.keys())if(0===r.indexOf(e)&&(t++,t>=10))return!0;return!1})(a)&&(o=a);const l=i.resolve(e),u=l!==t,f=(e,n,o)=>{u&&(e=e.replace(t,l)),e!==l&&e.indexOf(l+i.sep)||r(e,n,o)};let p=!1;for(const e of P.keys())if(0===t.indexOf(i.resolve(e)+i.sep)){o=e,c=P.get(o),p=!0;break}return c||p?c.listeners.add(f):(c={listeners:new Set([f]),rawEmitter:n,watcher:L(o,((e,t)=>{if(!c.listeners.size)return;if(t&v)return;const r=s.getInfo(e,t);c.listeners.forEach((n=>{n(e,t,r)})),c.rawEmitter(r.event,e,r)}))},P.set(o,c)),()=>{const e=c.listeners;if(e.delete(f),!e.size&&(P.delete(o),c.watcher))return c.watcher.stop().then((()=>{c.rawEmitter=c.watcher=void 0,Object.freeze(c)}))}}(e,t,(async(s,a,c)=>{if(this.fsw.closed)return;if(void 0!==o.depth&&D(s,t)>o.depth)return;const l=r(i.join(e,i.relative(e,s)));if(n&&!n(l))return;const f=i.dirname(l),p=i.basename(l),h=this.fsw._getWatchedDir(c.type===S?l:f);if(I.has(a)||c.event===w)if(typeof o.ignored===A){let e;try{e=await T(l)}catch(e){}if(this.fsw.closed)return;if(this.checkIgnored(l,e))return;j(c,e)?this.addOrChange(l,s,t,f,h,p,c,o):this.handleEvent(u,l,s,t,f,h,p,c,o)}else this.checkExists(l,s,t,f,h,p,c,o);else switch(c.event){case d:case m:return this.addOrChange(l,s,t,f,h,p,c,o);case g:case y:return this.checkExists(l,s,t,f,h,p,c,o)}}),this.fsw._emitRaw);return this.fsw._emitReady(),a}async _handleFsEventsSymlink(e,t,r,n){if(!this.fsw.closed&&!this.fsw._symlinkPaths.has(t)){this.fsw._symlinkPaths.set(t,!0),this.fsw._incrReadyCount();try{const t=await N(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(t))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(t||e,(n=>{let o=e;return t&&t!==k?o=n.replace(t,e):n!==k&&(o=i.join(e,n)),r(o)}),!1,n)}catch(e){if(this.fsw._handleError(e))return this.fsw._emitReady()}}}emitAdd(e,t,r,n,o){const s=r(e),c=t.isDirectory(),u=this.fsw._getWatchedDir(i.dirname(s)),f=i.basename(s);c&&this.fsw._getWatchedDir(s),u.has(f)||(u.add(f),n.ignoreInitial&&!0!==o||this.fsw._emit(c?l:a,s,t))}initWatch(e,t,r,n){if(this.fsw.closed)return;const o=this._watchWithFsEvents(r.watchPath,i.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(t,o)}async _addToFsEvents(e,t,r,n){if(this.fsw.closed)return;const o=this.fsw.options,s=typeof t===A?t:C,a=this.fsw._getWatchHelpers(e);try{const t=await F[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,t))throw null;if(t.isDirectory()){if(a.globFilter||this.emitAdd(s(e),t,s,o,r),n&&n>o.depth)return;this.fsw._readdirp(a.watchPath,{fileFilter:e=>a.filterPath(e),directoryFilter:e=>a.filterDir(e),...(c=o.depth-(n||0),isNaN(c)?{}:{depth:c})}).on(p,(e=>{if(this.fsw.closed)return;if(e.stats.isDirectory()&&!a.filterPath(e))return;const t=i.join(a.watchPath,e.path),{fullPath:n}=e;if(a.followSymlinks&&e.stats.isSymbolicLink()){const e=void 0===o.depth?void 0:D(t,i.resolve(a.watchPath))+1;this._handleFsEventsSymlink(t,n,s,e)}else this.emitAdd(t,e.stats,s,o,r)})).on(f,O).on(h,(()=>{this.fsw._emitReady()}))}else this.emitAdd(a.watchPath,t,s,o,r),this.fsw._emitReady()}catch(e){e&&!this.fsw._handleError(e)||(this.fsw._emitReady(),this.fsw._emitReady())}var c;if(o.persistent&&!0!==r)if(typeof t===A)this.initWatch(void 0,e,a,s);else{let t;try{t=await N(a.watchPath)}catch(e){}this.initWatch(t,e,a,s)}}},e.exports.canUse=()=>s&&P.size<128},3221:(e,t,r)=>{"use strict";const n=r(7147),i=r(1017),{promisify:o}=r(3837),s=r(6259),{isWindows:a,isLinux:c,EMPTY_FN:l,EMPTY_STR:u,KEY_LISTENERS:f,KEY_ERR:p,KEY_RAW:h,HANDLER_KEYS:d,EV_CHANGE:m,EV_ADD:g,EV_ADD_DIR:y,EV_ERROR:w,STR_DATA:v,STR_END:b,BRACE_START:S,STAR:x}=r(1318),_=o(n.open),E=o(n.stat),k=o(n.lstat),A=o(n.close),O=o(n.realpath),C={lstat:k,stat:E},T=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},R=(e,t,r)=>{let n=e[t];n instanceof Set||(e[t]=n=new Set([n])),n.add(r)},N=(e,t,r)=>{const n=e[t];n instanceof Set?n.delete(r):n===r&&delete e[t]},F=e=>e instanceof Set?0===e.size:!e,P=new Map;function I(e,t,r,o,s){const a=(t,n)=>{r(e),s(t,n,{watchedPath:e}),n&&e!==n&&L(i.resolve(e,n),f,i.join(e,n))};try{return n.watch(e,t,a)}catch(e){o(e)}}const L=(e,t,r,n,i)=>{const o=P.get(e);o&&T(o[t],(e=>{e(r,n,i)}))},D=new Map;e.exports=class{constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(e,t){const r=this.fsw.options,o=i.dirname(e),c=i.basename(e);this.fsw._getWatchedDir(o).add(c);const u=i.resolve(e),g={persistent:r.persistent};let y;return t||(t=l),r.usePolling?(g.interval=r.enableBinaryInterval&&s(c)?r.binaryInterval:r.interval,y=((e,t,r,i)=>{const{listener:o,rawEmitter:s}=i;let a=D.get(t),c=new Set,l=new Set;const u=a&&a.options;return u&&(u.persistentr.interval)&&(c=a.listeners,l=a.rawEmitters,n.unwatchFile(t),a=void 0),a?(R(a,f,o),R(a,h,s)):(a={listeners:o,rawEmitters:s,options:r,watcher:n.watchFile(t,r,((r,n)=>{T(a.rawEmitters,(e=>{e(m,t,{curr:r,prev:n})}));const i=r.mtimeMs;(r.size!==n.size||i>n.mtimeMs||0===i)&&T(a.listeners,(t=>t(e,r)))}))},D.set(t,a)),()=>{N(a,f,o),N(a,h,s),F(a.listeners)&&(D.delete(t),n.unwatchFile(t),a.options=a.watcher=void 0,Object.freeze(a))}})(e,u,g,{listener:t,rawEmitter:this.fsw._emitRaw})):y=((e,t,r,n)=>{const{listener:i,errHandler:o,rawEmitter:s}=n;let c,l=P.get(t);if(!r.persistent)return c=I(e,r,i,o,s),c.close.bind(c);if(l)R(l,f,i),R(l,p,o),R(l,h,s);else{if(c=I(e,r,L.bind(null,t,f),o,L.bind(null,t,h)),!c)return;c.on(w,(async r=>{const n=L.bind(null,t,p);if(l.watcherUnusable=!0,a&&"EPERM"===r.code)try{const t=await _(e,"r");await A(t),n(r)}catch(e){}else n(r)})),l={listeners:i,errHandlers:o,rawEmitters:s,watcher:c},P.set(t,l)}return()=>{N(l,f,i),N(l,p,o),N(l,h,s),F(l.listeners)&&(l.watcher.close(),P.delete(t),d.forEach((e=>t=>{const r=e[t];r instanceof Set?r.clear():delete e[t]})(l)),l.watcher=void 0,Object.freeze(l))}})(e,u,g,{listener:t,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),y}_handleFile(e,t,r){if(this.fsw.closed)return;const n=i.dirname(e),o=i.basename(e),s=this.fsw._getWatchedDir(n);let a=t;if(s.has(o))return;const l=async(t,r)=>{if(this.fsw._throttle("watch",e,5))if(r&&0!==r.mtimeMs){if(s.has(o)){const t=r.atimeMs,n=r.mtimeMs;(!t||t<=n||n!==a.mtimeMs)&&this.fsw._emit(m,e,r),a=r}}else try{const r=await E(e);if(this.fsw.closed)return;const n=r.atimeMs,i=r.mtimeMs;(!n||n<=i||i!==a.mtimeMs)&&this.fsw._emit(m,e,r),c&&a.ino!==r.ino?(this.fsw._closeFile(t),a=r,this.fsw._addPathCloser(t,this._watchWithNodeFs(e,l))):a=r}catch(e){this.fsw._remove(n,o)}},u=this._watchWithNodeFs(e,l);if((!r||!this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(g,e,0))return;this.fsw._emit(g,e,t)}return u}async _handleSymlink(e,t,r,n){if(this.fsw.closed)return;const i=e.fullPath,o=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){let t;this.fsw._incrReadyCount();try{t=await O(r)}catch(e){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;return o.has(n)?this.fsw._symlinkPaths.get(i)!==t&&(this.fsw._symlinkPaths.set(i,t),this.fsw._emit(m,r,e.stats)):(o.add(n),this.fsw._symlinkPaths.set(i,t),this.fsw._emit(g,r,e.stats)),this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(i))return!0;this.fsw._symlinkPaths.set(i,!0)}_handleRead(e,t,r,n,o,s,a){if(e=i.join(e,u),!r.hasGlob&&!(a=this.fsw._throttle("readdir",e,1e3)))return;const c=this.fsw._getWatchedDir(r.path),l=new Set;let f=this.fsw._readdirp(e,{fileFilter:e=>r.filterPath(e),directoryFilter:e=>r.filterDir(e),depth:0}).on(v,(async a=>{if(this.fsw.closed)return void(f=void 0);const u=a.path;let p=i.join(e,u);l.add(u),a.stats.isSymbolicLink()&&await this._handleSymlink(a,e,p,u)||(this.fsw.closed?f=void 0:u!==n&&(n||c.has(u))||(this.fsw._incrReadyCount(),p=i.join(o,i.relative(o,p)),this._addToNodeFs(p,t,r,s+1)))})).on(w,this._boundHandleError);return new Promise((t=>f.once(b,(()=>{if(this.fsw.closed)return void(f=void 0);const u=!!a&&a.clear();t(),c.getChildren().filter((t=>t!==e&&!l.has(t)&&(!r.hasGlob||r.filterPath({fullPath:i.resolve(e,t)})))).forEach((t=>{this.fsw._remove(e,t)})),f=void 0,u&&this._handleRead(e,!1,r,n,o,s,a)}))))}async _handleDir(e,t,r,n,o,s,a){const c=this.fsw._getWatchedDir(i.dirname(e)),l=c.has(i.basename(e));let u,f;r&&this.fsw.options.ignoreInitial||o||l||s.hasGlob&&!s.globFilter(e)||this.fsw._emit(y,e,t),c.add(i.basename(e)),this.fsw._getWatchedDir(e);const p=this.fsw.options.depth;if((null==p||n<=p)&&!this.fsw._symlinkPaths.has(a)){if(!o&&(await this._handleRead(e,r,s,o,e,n,u),this.fsw.closed))return;f=this._watchWithNodeFs(e,((t,r)=>{r&&0===r.mtimeMs||this._handleRead(t,!1,s,o,e,n,u)}))}return f}async _addToNodeFs(e,t,r,n,o){const s=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return s(),!1;const a=this.fsw._getWatchHelpers(e,n);!a.hasGlob&&r&&(a.hasGlob=r.hasGlob,a.globFilter=r.globFilter,a.filterPath=e=>r.filterPath(e),a.filterDir=e=>r.filterDir(e));try{const r=await C[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,r))return s(),!1;const c=this.fsw.options.followSymlinks&&!e.includes(x)&&!e.includes(S);let l;if(r.isDirectory()){const s=i.resolve(e),u=c?await O(e):e;if(this.fsw.closed)return;if(l=await this._handleDir(a.watchPath,r,t,n,o,a,u),this.fsw.closed)return;s!==u&&void 0!==u&&this.fsw._symlinkPaths.set(s,u)}else if(r.isSymbolicLink()){const o=c?await O(e):e;if(this.fsw.closed)return;const s=i.dirname(a.watchPath);if(this.fsw._getWatchedDir(s).add(a.watchPath),this.fsw._emit(g,a.watchPath,r),l=await this._handleDir(s,r,t,n,e,a,o),this.fsw.closed)return;void 0!==o&&this.fsw._symlinkPaths.set(i.resolve(e),o)}else l=this._handleFile(a.watchPath,r,t);return s(),this.fsw._addPathCloser(e,l),!1}catch(t){if(this.fsw._handleError(t))return s(),e}}}},1255:(e,t,r)=>{"use strict";var n=r(1882),i=r(3477),o=!1;e.exports=function(e){return o||(o=!0,"renderer"===process.type?(window.addEventListener("error",s),window.addEventListener("unhandledrejection",a)):(process.on("uncaughtException",t),process.on("unhandledRejection",r))),{stop:function(){o=!1,"renderer"===process.type?(window.removeEventListener("error",s),window.removeEventListener("unhandledrejection",a)):(process.removeListener("uncaughtException",t),process.removeListener("unhandledRejection",r))}};function t(t){try{if("function"==typeof e.onError){var r=n.getVersions();if(!1===e.onError(t,r,c))return}if(e.log("Unhandled Exception",t),e.showDialog&&t.name.indexOf("UnhandledRejection")<0){var i=process.type||"main";n.showErrorBox("A JavaScript error occurred in the "+i+" process",t.stack)}}catch(e){console.error(t)}}function r(e){if(e instanceof Error){try{Object.defineProperty(e,"name",{value:"UnhandledRejection "+e.name})}catch(e){}t(e)}else{var r=new Error(JSON.stringify(e));r.name="UnhandledRejection",t(r)}}function s(e){e.preventDefault(),t(e.error)}function a(e){e.preventDefault(),r(e.reason)}function c(t,r){var o=t+"?"+i.stringify(r);n.openUrl(o,e.log)}}},1882:(e,t,r)=>{"use strict";var n,i=r(1017);try{n=r(Object(function(){var e=new Error("Cannot find module 'electron'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(e){n=null}var o=r(2037);function s(){return c("app")}function a(){var e=s();return e?"name"in e?e.name:e.getName():null}function c(e){return n?n[e]?n[e]:n.remote?n.remote[e]:null:null}function l(){return"browser"===process.type&&n&&n.ipcMain?n.ipcMain:"renderer"===process.type&&n&&n.ipcRenderer?n.ipcRenderer:null}function u(){var e=s();return e?"version"in e?e.version:e.getVersion():null}e.exports={getName:a,getPath:function(e){var t=s();if(!t)return null;try{return t.getPath(e)}catch(e){return null}},getVersion:u,getVersions:function(){return{app:a()+" "+u(),electron:"Electron "+process.versions.electron,os:(e=o.type().replace("_"," "),t=o.release(),"Darwin"===e&&(e="macOS",t="10."+(Number(o.release().split(".")[0])-4)),e+" "+t)};var e,t},isDev:function(){var e=s();return e&&void 0!==e.isPackaged?!e.isPackaged:"string"==typeof process.execPath?i.basename(process.execPath).toLowerCase().startsWith("electron"):"1"===process.env.ELECTRON_IS_DEV},isElectron:function(){return"browser"===process.type||"renderer"===process.type},isIpcChannelListened:function(e){var t=l();return!!t&&t.listenerCount(e)>0},loadRemoteModule:function(e){"browser"===process.type?s().on("web-contents-created",(function(t,r){var n=r.executeJavaScript('try {require("'+e+'")} catch(e){}; void 0;');n&&"function"==typeof n.catch&&n.catch((function(){}))})):process.type},onIpc:function(e,t){var r=l();r&&r.on(e,t)},openUrl:function(e,t){t=t||console.error;var r=c("shell");r&&r.openExternal(e).catch(t)},sendIpc:function(e,t){"browser"===process.type?function(e,t){n&&n.BrowserWindow&&n.BrowserWindow.getAllWindows().forEach((function(r){r.webContents&&!r.webContents.isDestroyed()&&r.webContents.send(e,t)}))}(e,t):"renderer"===process.type&&function(e,t){var r=l();r&&r.send(e,t)}(e,t)},showErrorBox:function(e,t){var r=c("dialog");r&&r.showErrorBox(e,t)}}},7377:(e,t,r)=>{"use strict";var n=r(1255),i=r(1882),o=r(3308),s=r(9163),a=r(2669),c=r(3508),l=r(5651),u=r(1459);e.exports=function e(t){var r={catchErrors:function(e){var t=Object.assign({},{log:r.error,showDialog:"browser"===process.type},e||{});n(t)},create:e,functions:{},hooks:[],isDev:i.isDev(),levels:[],logId:t,variables:{processType:process.type}};return r.scope=s(r),r.transports={console:a(r),file:c(r),remote:u(r),ipc:l(r)},Object.defineProperty(r.levels,"add",{enumerable:!1,value:function(e,t){t=void 0===t?r.levels.length:t,r.levels.splice(t,0,e),r[e]=o.log.bind(null,r,{level:e}),r.functions[e]=r[e]}}),["error","warn","info","verbose","debug","silly"].forEach((function(e){r.levels.add(e)})),r.log=o.log.bind(null,r,{level:"info"}),r.functions.log=r.log,r.logMessageWithTransports=function(e,t){return void 0===e.date&&(e.date=new Date),void 0===e.variables&&(e.variables=r.variables),o.runTransports(t,e,r)},r}("default"),e.exports.default=e.exports},3308:e=>{"use strict";function t(e,t,n){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r(e[i],t,n)}function r(e,t,r){"function"==typeof e&&!1!==e.level&&n(r.levels,e.level,t.level)&&(t=function(e,t,r){if(!e||!e.length)return r;for(var n=0;n{"use strict";var n=r(3308).log;e.exports=function(e){return t.labelPadding=!0,t.defaultLabel="",t.maxLabelLength=0,t.getOptions=function(){return{defaultLabel:t.defaultLabel,labelLength:!0===t.labelPadding?t.maxLabelLength:!1===t.labelPadding?0:"number"==typeof t.labelPadding?t.labelPadding:0}},t;function t(r){var i={label:r,toJSON:function(){return{label:this.label}}};return e.levels.forEach((function(t){i[t]=n.bind(null,e,{level:t,scope:i})})),i.log=i.info,t.maxLabelLength=Math.max(t.maxLabelLength,r.length),i}}},3063:(e,t,r)=>{"use strict";var n=r(6074),i=r(8708),o=r(7695);function s(e,t,r){return t.reduce((function(t,r){return"function"==typeof r?r(t,e):t}),r||e.data)}e.exports={applyAnsiStyles:i.applyAnsiStyles,concatFirstStringElements:o.concatFirstStringElements,customFormatterFactory:function(e,t,r){return"string"==typeof e?function(n,i){return s(i,[o.templateVariables,o.templateScopeFactory(r),o.templateDate,o.templateText,t&&o.concatFirstStringElements],[e].concat(n))}:"function"==typeof e?function(t,r){var n=Object.assign({},r,{data:t}),i=e(n,t);return[].concat(i)}:function(e){return[].concat(e)}},maxDepthFactory:n.maxDepthFactory,removeStyles:i.removeStyles,toJSON:n.toJSON,toStringFactory:n.toStringFactory,transform:s}},6074:(e,t,r)=>{"use strict";var n=r(3837);function i(e){var t=function(){if("undefined"!=typeof WeakSet)return new WeakSet;var e=[];return{add:function(t){e.push(t)},has:function(t){return-1!==e.indexOf(t)}}}();return function(r,n){if("object"==typeof n&&null!==n){if(t.has(n))return;t.add(n)}return s(0,n,e)}}function o(e,t){if(!e)return e;if(t<1)return a(e)?"[array]":"object"==typeof e&&e?"[object]":e;if(a(e))return e.map((function(e){return o(e,t-1)}));if("object"!=typeof e)return e;if(e&&"function"==typeof e.toISOString)return e;if(null===e)return null;if(e instanceof Error)return e;var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=o(e[n],t-1));return r}function s(e,t,r){var n=!r||!1!==r.serializeMapAndSet;return t instanceof Error?t.stack:t?"function"==typeof t.toJSON?t.toJSON():"function"==typeof t?"[function] "+t.toString():n&&t instanceof Map&&Object.fromEntries?Object.fromEntries(t):n&&t instanceof Set&&Array.from?Array.from(t):t:t}function a(e){return"[object Array]"===Object.prototype.toString.call(e)}e.exports={maxDepthFactory:function(e){return e=e||6,function(t){return o(t,e)}},serialize:s,toJSON:function(e){return JSON.parse(JSON.stringify(e,i()))},toStringFactory:function(e){return function(t){var r=t.map((function(e){if(void 0!==e)try{var t=JSON.stringify(e,i()," ");return void 0===t?void 0:JSON.parse(t)}catch(t){return e}}));return n.formatWithOptions?(r.unshift(e||{}),n.formatWithOptions.apply(n,r)):n.format.apply(n,r)}}}},8708:e=>{"use strict";e.exports={applyAnsiStyles:function(e){return i(e,r,n)},removeStyles:function(e){return i(e,(function(){return""}))},transformStyles:i};var t={unset:"",black:"",red:"",green:"",yellow:"",blue:"",magenta:"",cyan:"",white:""};function r(e){var r=e.replace(/color:\s*(\w+).*/,"$1").toLowerCase();return t[r]||""}function n(e){return e+t.unset}function i(e,t,r){var n={};return e.reduce((function(e,i,o,s){if(n[o])return e;if("string"==typeof i){var a=o,c=!1;i=i.replace(/%[1cdfiOos]/g,(function(e){if(a+=1,"%c"!==e)return e;var r=s[a];return"string"==typeof r?(n[a]=!0,c=!0,t(r,i)):e})),c&&r&&(i=r(i))}return e.push(i),e}),[])}},7695:e=>{"use strict";function t(e,t){return e.replace("{y}",String(t.getFullYear())).replace("{m}",n(t.getMonth()+1)).replace("{d}",n(t.getDate())).replace("{h}",n(t.getHours())).replace("{i}",n(t.getMinutes())).replace("{s}",n(t.getSeconds())).replace("{ms}",n(t.getMilliseconds(),3)).replace("{z}",r(t.getTimezoneOffset())).replace("{iso}",t.toISOString())}function r(e){var t=Math.abs(e);return(e>=0?"-":"+")+n(Math.floor(t/60))+":"+n(t%60)}function n(e,t){return t=t||2,(new Array(t+1).join("0")+e).substr(-t,t)}function i(e,t){return t=Math.max(t,e.length),(e+Array(t+1).join(" ")).substring(0,t)}e.exports={concatFirstStringElements:function(e){return"string"!=typeof e[0]||"string"!=typeof e[1]||e[0].match(/%[1cdfiOos]/)||(e[1]=e[0]+" "+e[1],e.shift()),e},formatDate:t,formatTimeZone:r,pad:n,padString:i,templateDate:function(e,r){var n=e[0];return"string"!=typeof n||(e[0]=t(n,r.date)),e},templateVariables:function(e,t){var r=e[0],n=t.variables;if("string"!=typeof r||!t.variables)return e;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r=r.replace("{"+o+"}",n[o]));return r=(r=r.replace("{level}]",i(t.level+"]",6))).replace("{level}",t.level),e[0]=r,e},templateScopeFactory:function(e){var t=(e=e||{}).labelLength||0;return function(r,n){var o,s=r[0],a=n.scope&&n.scope.label;return a||(a=e.defaultLabel),o=""===a?t>0?i("",t+3):"":"string"==typeof a?i(" ("+a+")",t+3):"",r[0]=s.replace("{scope}",o),r}},templateText:function(e){var t=e[0];if("string"!=typeof t)return e;if(t.lastIndexOf("{text}")===t.length-6)return e[0]=t.replace(/\s?{text}/,""),""===e[0]&&e.shift(),e;var r=t.split("{text}"),n=[];return""!==r[0]&&n.push(r[0]),n=n.concat(e.slice(1)),""!==r[1]&&n.push(r[1]),n}}},2669:(e,t,r)=>{"use strict";var n=r(3063),i={context:console,error:console.error,warn:console.warn,info:console.info,verbose:console.verbose,debug:console.debug,silly:console.silly,log:console.log};e.exports=function(e){return t.level="silly",t.useStyles=process.env.FORCE_STYLES,t.format=o[process.type]||o.browser,t;function t(r){var n,o,c,l,u=e.scope.getOptions();n="renderer"===process.type||"worker"===process.type?s(r,t,u):a(r,t,u),o=r.level,c=n,l=i[o]||i.info,"renderer"!==process.type?l.apply(i.context,c):setTimeout(l.bind.apply(l,[l.context].concat(c)))}},e.exports.transformRenderer=s,e.exports.transformMain=a;var o={browser:"%c{h}:{i}:{s}.{ms}{scope}%c "+("win32"===process.platform?">":"›")+" {text}",renderer:"{h}:{i}:{s}.{ms}{scope} › {text}",worker:"{h}:{i}:{s}.{ms}{scope} › {text}"};function s(e,t,r){return n.transform(e,[n.customFormatterFactory(t.format,!0,r)])}function a(e,t,r){var i,s=function(e,t){if(!0===e||!1===e)return e;var r="error"===t||"warn"===t?process.stderr:process.stdout;return r&&r.isTTY}(t.useStyles,e.level);return n.transform(e,[(i=t.format,function(e,t){return i!==o.browser?e:["color:"+c(t.level),"color:unset"].concat(e)}),n.customFormatterFactory(t.format,!1,r),s?n.applyAnsiStyles:n.removeStyles,n.concatFirstStringElements,n.maxDepthFactory(4),n.toJSON])}function c(e){switch(e){case"error":return"red";case"warn":return"yellow";case"info":return"cyan";default:return"unset"}}},1048:(e,t,r)=>{"use strict";var n=r(2361),i=r(7147),o=r(2037),s=r(1017),a=r(7310),c=r(3837);function l(e,t,r){n.call(this),this.path=e,this.initialSize=void 0,this.bytesWritten=0,this.writeAsync=Boolean(r),this.asyncWriteQueue=[],this.hasActiveAsyncWritting=!1,this.writeOptions=t||{flag:"a",mode:438,encoding:"utf8"},Object.defineProperty(this,"size",{get:this.getSize.bind(this)})}function u(e){l.call(this,e)}function f(){n.call(this),this.store={},this.emitError=this.emitError.bind(this)}function p(e){if(Boolean(a.fileURLToPath))return i.mkdirSync(e,{recursive:!0}),!0;try{return i.mkdirSync(e),!0}catch(t){if("ENOENT"===t.code)return p(s.dirname(e))&&p(e);try{if(i.statSync(e).isDirectory())return!0;throw t}catch(e){throw e}}}e.exports={File:l,FileRegistry:f,NullFile:u},c.inherits(l,n),l.prototype.clear=function(){try{return i.writeFileSync(this.path,"",{mode:this.writeOptions.mode,flag:"w"}),this.reset(),!0}catch(e){return"ENOENT"===e.code||(this.emit("error",e,this),!1)}},l.prototype.crop=function(e){try{var t=(r=this.path,n=e||4096,s=Buffer.alloc(n),a=i.statSync(r),c=Math.min(a.size,n),l=Math.max(0,a.size-n),u=i.openSync(r,"r"),f=i.readSync(u,s,0,c,l),i.closeSync(u),s.toString("utf8",0,f));this.clear(),this.writeLine("[log cropped]"+o.EOL+t)}catch(e){this.emit("error",new Error("Couldn't crop file "+this.path+". "+e.message),this)}var r,n,s,a,c,l,u,f},l.prototype.toString=function(){return this.path},l.prototype.reset=function(){this.initialSize=void 0,this.bytesWritten=0},l.prototype.writeLine=function(e){if(e+=o.EOL,this.writeAsync)return this.asyncWriteQueue.push(e),void this.nextAsyncWrite();try{i.writeFileSync(this.path,e,this.writeOptions),this.increaseBytesWrittenCounter(e)}catch(e){this.emit("error",new Error("Couldn't write to "+this.path+". "+e.message),this)}},l.prototype.getSize=function(){if(void 0===this.initialSize)try{var e=i.statSync(this.path);this.initialSize=e.size}catch(e){this.initialSize=0}return this.initialSize+this.bytesWritten},l.prototype.isNull=function(){return!1},l.prototype.increaseBytesWrittenCounter=function(e){this.bytesWritten+=Buffer.byteLength(e,this.writeOptions.encoding)},l.prototype.nextAsyncWrite=function(){var e=this;if(!(this.hasActiveAsyncWritting||this.asyncWriteQueue.length<1)){var t=this.asyncWriteQueue.shift();this.hasActiveAsyncWritting=!0,i.writeFile(this.path,t,this.writeOptions,(function(r){e.hasActiveAsyncWritting=!1,r?e.emit("error",new Error("Couldn't write to "+e.path+". "+r.message),this):e.increaseBytesWrittenCounter(t),e.nextAsyncWrite()}))}},c.inherits(u,l),u.prototype.clear=function(){},u.prototype.crop=function(){},u.prototype.writeLine=function(){},u.prototype.getSize=function(){return 0},u.prototype.isNull=function(){return!0},c.inherits(f,n),f.prototype.provide=function(e,t,r){var n;try{if(e=s.resolve(e),this.store[e])return this.store[e];n=this.createFile(e,t,Boolean(r))}catch(t){n=new u(e),this.emitError(t,n)}return n.on("error",this.emitError),this.store[e]=n,n},f.prototype.createFile=function(e,t,r){return this.testFileWriting(e),new l(e,t,r)},f.prototype.emitError=function(e,t){this.emit("error",e,t)},f.prototype.testFileWriting=function(e){p(s.dirname(e)),i.writeFileSync(e,"",{flag:"a"})}},3508:(e,t,r)=>{"use strict";var n=r(7147),i=r(1017),o=r(2037),s=r(3837),a=r(3063),c=r(1048).FileRegistry,l=r(1129);e.exports=function(e,t){var r=l.getPathVariables(process.platform),c=t||u;return c.listenerCount("error")<1&&c.on("error",(function(e,t){p("Can't write to "+t,e)})),f.archiveLog=function(e){var t=e.toString(),r=i.parse(t);try{n.renameSync(t,i.join(r.dir,r.name+".old"+r.ext))}catch(t){p("Could not rotate log",t);var o=Math.round(f.maxSize/4);e.crop(Math.min(o,262144))}},f.depth=5,f.fileName=function(){switch(process.type){case"renderer":return"renderer.log";case"worker":return"worker.log";default:return"main.log"}}(),f.format="[{y}-{m}-{d} {h}:{i}:{s}.{ms}] [{level}]{scope} {text}",f.getFile=h,f.level="silly",f.maxSize=1048576,f.readAllLogs=function(e){var t=e&&"function"==typeof e.fileFilter?e.fileFilter:function(e){return e.endsWith(".log")},s=Object.assign({},r,{fileName:f.fileName}),a=i.dirname(f.resolvePath(s));return n.readdirSync(a).map((function(e){return i.join(a,e)})).filter(t).map((function(e){try{return{path:e,lines:n.readFileSync(e,"utf8").split(o.EOL)}}catch(e){return null}})).filter(Boolean)},f.resolvePath=function(e){return i.join(e.libraryDefaultDir,e.fileName)},f.sync=!0,f.writeOptions={flag:"a",mode:438,encoding:"utf8"},f.inspectOptions={},function(){var e=" is deprecated and will be removed in v5.",t=" property"+e;function r(){return h().path}Object.defineProperties(f,{bytesWritten:{get:s.deprecate((function(){return h().bytesWritten}),"bytesWritten"+t)},file:{get:s.deprecate(r,"file"+t),set:s.deprecate((function(e){f.resolvePath=function(){return e}}),"file"+t)},fileSize:{get:s.deprecate((function(){return h().size}),"file"+t)}}),f.clear=s.deprecate((function(){h().clear()}),"clear()"+e),f.findLogPath=s.deprecate(r,"findLogPath()"+e),f.init=s.deprecate((function(){}),"init()"+e)}(),f;function f(t){var r=h(t);f.maxSize>0&&r.size>f.maxSize&&(f.archiveLog(r),r.reset());var n=e.scope.getOptions(),i=Object.assign({depth:f.depth},f.inspectOptions),o=a.transform(t,[a.removeStyles,a.customFormatterFactory(f.format,!1,n),a.concatFirstStringElements,a.toStringFactory(i)]);r.writeLine(o)}function p(t,r){var n=["electron-log.transports.file: "+t];r&&n.push(r),e.transports.console({data:n,date:new Date,level:"warn"})}function h(e){var t=Object.assign({},r,{fileName:f.fileName}),n=f.resolvePath(t,e);return c.provide(n,f.writeOptions,!f.sync)}};var u=new c},4928:(e,t,r)=>{"use strict";var n=r(7147),i=r(1017);function o(e){if(!e)return null;try{var t=function(e,t){for(var r=t;;){var o=i.parse(r),s=o.root,a=o.dir;if(n.existsSync(i.join(r,e)))return i.resolve(i.join(r,e));if(r===s)return null;r=a}}("package.json",e=i.join.apply(i,arguments));if(!t)return null;var r=JSON.parse(n.readFileSync(t,"utf8")),o=r.productName||r.name;if(!o||"electron"===o.toLowerCase())return null;if(r.productName||r.name)return{name:o,version:r.version}}catch(e){return null}}e.exports={readPackageJson:function(){return o(r.c[r.s]&&r.c[r.s].filename)||o(0===(e=process.argv.filter((function(e){return 0===e.indexOf("--user-data-dir=")}))).length||"string"!=typeof e[0]?null:e[0].replace("--user-data-dir=",""))||o(process.resourcesPath,"app.asar")||o(process.resourcesPath,"app")||o(process.cwd())||{name:null,version:null};var e},tryReadJsonAt:o}},1129:(e,t,r)=>{"use strict";var n=r(2037),i=r(1017),o=r(1882),s=r(4928);function a(e){var t=o.getPath("appData");if(t)return t;var r=c();switch(e){case"darwin":return i.join(r,"Library/Application Support");case"win32":return process.env.APPDATA||i.join(r,"AppData/Roaming");default:return process.env.XDG_CONFIG_HOME||i.join(r,".config")}}function c(){return n.homedir?n.homedir():process.env.HOME}function l(e,t){return"darwin"===e?i.join(c(),"Library/Logs",t):i.join(p(e,t),"logs")}function u(e){return"darwin"===e?i.join(c(),"Library/Logs","{appName}"):i.join(a(e),"{appName}","logs")}function f(){var e=o.getName()||"",t=o.getVersion();if("electron"===e.toLowerCase()&&(e="",t=""),e&&t)return{name:e,version:t};var r=s.readPackageJson();return e||(e=r.name),t||(t=r.version),e||(e="Electron"),{name:e,version:t}}function p(e,t){return o.getName()!==t?i.join(a(e),t):o.getPath("userData")||i.join(a(e),t)}e.exports={getAppData:a,getLibraryDefaultDir:l,getLibraryTemplate:u,getNameAndVersion:f,getPathVariables:function(e){var t=f(),r=t.name,i=t.version;return{appData:a(e),appName:r,appVersion:i,electronDefaultDir:o.getPath("logs"),home:c(),libraryDefaultDir:l(e,r),libraryTemplate:u(e),temp:o.getPath("temp")||n.tmpdir(),userData:p(e,r)}},getUserData:p}},5651:(e,t,r)=>{"use strict";var n=r(3063),i=r(1882),o=r(3308);e.exports=function(e){return t.eventId="__ELECTRON_LOG_IPC_"+e.logId+"__",t.level=!!e.isDev&&"silly",i.isIpcChannelListened(t.eventId)?function(){}:(i.onIpc(t.eventId,(function(t,r){r.date=new Date(r.date),o.runTransport(e.transports.console,r,e)})),i.loadRemoteModule("electron-log"),i.isElectron()?t:null);function t(e){var r=Object.assign({},e,{data:n.transform(e,[n.toJSON,n.maxDepthFactory(3)])});i.sendIpc(t.eventId,r)}}},1459:(e,t,r)=>{"use strict";var n=r(3685),i=r(5687),o=r(7310),s=r(3063);e.exports=function(e){return t.client={name:"electron-application"},t.depth=6,t.level=!1,t.requestOptions={},t.url=null,t.onError=null,t.transformBody=function(e){return JSON.stringify(e)},t;function t(r){if(t.url){var a=t.transformBody({client:t.client,data:s.transform(r,[s.removeStyles,s.toJSON,s.maxDepthFactory(t.depth+1)]),date:r.date.getTime(),level:r.level,variables:r.variables}),c=function(e,t,r){var s=o.parse(e),a="https:"===s.protocol?i:n,c={hostname:s.hostname,port:s.port,path:s.path,method:"POST",headers:{}};Object.assign(c,t),c.headers["Content-Length"]=r.length,c.headers["Content-Type"]||(c.headers["Content-Type"]="application/json");var l=a.request(c);return l.write(r),l.end(),l}(t.url,t.requestOptions,Buffer.from(a,"utf8"));c.on("error",t.onError||function(r){e.logMessageWithTransports({data:["electron-log.transports.remote: cannot send HTTP request to "+t.url,r],level:"warn"},[e.transports.console,e.transports.ipc,e.transports.file])})}}}},5530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPrintf=void 0;const n=r(6204),i=r(9360),o=(e,t)=>t.placeholder;t.createPrintf=e=>{var t;const r=(e,t,r)=>"-"===r?e.padEnd(t," "):"-+"===r?((Number(e)>=0?"+":"")+e).padEnd(t," "):"+"===r?((Number(e)>=0?"+":"")+e).padStart(t," "):"0"===r?e.padStart(t,"0"):e.padStart(t," "),s=null!==(t=null==e?void 0:e.formatUnboundExpression)&&void 0!==t?t:o,a={};return(e,...t)=>{let o=a[e];o||(o=a[e]=i.tokenize(e));let c="";for(const i of o)if("literal"===i.type)c+=i.literal;else{let o=t[i.position];if(void 0===o)c+=s(e,i,t);else if("b"===i.conversion)c+=n.boolean(o)?"true":"false";else if("B"===i.conversion)c+=n.boolean(o)?"TRUE":"FALSE";else if("c"===i.conversion)c+=o;else if("C"===i.conversion)c+=String(o).toUpperCase();else if("i"===i.conversion||"d"===i.conversion)o=String(Math.trunc(o)),null!==i.width&&(o=r(o,i.width,i.flag)),c+=o;else if("e"===i.conversion)c+=Number(o).toExponential();else if("E"===i.conversion)c+=Number(o).toExponential().toUpperCase();else if("f"===i.conversion)null!==i.precision&&(o=Number(o).toFixed(i.precision)),null!==i.width&&(o=r(String(o),i.width,i.flag)),c+=o;else if("o"===i.conversion)c+=(Number.parseInt(String(o),10)>>>0).toString(8);else if("s"===i.conversion)null!==i.width&&(o=r(String(o),i.width,i.flag)),c+=o;else if("S"===i.conversion)null!==i.width&&(o=r(String(o),i.width,i.flag)),c+=String(o).toUpperCase();else if("u"===i.conversion)c+=Number.parseInt(String(o),10)>>>0;else{if("x"!==i.conversion)throw new Error("Unknown format specifier.");o=(Number.parseInt(String(o),10)>>>0).toString(16),null!==i.width&&(o=r(String(o),i.width,i.flag)),c+=o}}return c}}},8167:(e,t,r)=>{"use strict";t.zt=void 0;const n=r(5530);t.zt=n.createPrintf()},9360:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokenize=void 0;const r=/(?:%(?([+0-]|-\+))?(?\d+)?(?\d+\$)?(?\.\d+)?(?[%BCESb-iosux]))|(\\%)/g;t.tokenize=e=>{let t;const n=[];let i=0,o=0,s=null;for(;null!==(t=r.exec(e));){t.index>o&&(s={literal:e.slice(o,t.index),type:"literal"},n.push(s));const r=t[0];o=t.index+r.length,"\\%"===r||"%%"===r?s&&"literal"===s.type?s.literal+="%":(s={literal:"%",type:"literal"},n.push(s)):t.groups&&(s={conversion:t.groups.conversion,flag:t.groups.flag||null,placeholder:r,position:t.groups.position?Number.parseInt(t.groups.position,10)-1:i++,precision:t.groups.precision?Number.parseInt(t.groups.precision.slice(1),10):null,type:"placeholder",width:t.groups.width?Number.parseInt(t.groups.width,10):null},n.push(s))}return o<=e.length-1&&(s&&"literal"===s.type?s.literal+=e.slice(o):n.push({literal:e.slice(o),type:"literal"})),n}},1:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const Token=__webpack_require__(3416),strtok3=__webpack_require__(5849),{stringToBytes,tarHeaderChecksumMatches,uint32SyncSafeToken}=__webpack_require__(6188),supported=__webpack_require__(9898),minimumBytes=4100;async function fromStream(e){const t=await strtok3.fromStream(e);try{return await fromTokenizer(t)}finally{await t.close()}}async function fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Buffer?e:Buffer.from(e);if(t&&t.length>1)return fromTokenizer(strtok3.fromBuffer(t))}function _check(e,t,r){r={offset:0,...r};for(const[n,i]of t.entries())if(r.mask){if(i!==(r.mask[n]&e[n+r.offset]))return!1}else if(i!==e[n+r.offset])return!1;return!0}async function fromTokenizer(e){try{return _fromTokenizer(e)}catch(e){if(!(e instanceof strtok3.EndOfStreamError))throw e}}async function _fromTokenizer(e){let t=Buffer.alloc(minimumBytes);const r=(e,r)=>_check(t,e,r),n=(e,t)=>r(stringToBytes(e),t);if(e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),await e.peekBuffer(t,{length:12,mayBeLess:!0}),r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(r([37,33]))return await e.peekBuffer(t,{length:24,mayBeLess:!0}),n("PS-Adobe-",{offset:2})&&n(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n("ID3")){await e.ignore(6);const i=await e.readToken(uint32SyncSafeToken);return e.position+i>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(i),fromTokenizer(e))}if(n("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===t[0]||70===t[0])&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n("FLIF"))return{ext:"flif",mime:"image/flif"};if(n("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(n("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(n("FORM"))return{ext:"aif",mime:"audio/aiff"};if(n("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(r([80,75,3,4])){try{for(;e.position+30=0?s:t.length)}else await e.ignore(o.compressedSize)}}catch(a){if(!(a instanceof strtok3.EndOfStreamError))throw a}return{ext:"zip",mime:"application/zip"}}if(n("OggS")){await e.ignore(28);const c=Buffer.alloc(8);return await e.readBuffer(c),_check(c,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:_check(c,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(c,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(c,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(c,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(c,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(r([80,75])&&(3===t[2]||5===t[2]||7===t[2])&&(4===t[3]||6===t[3]||8===t[3]))return{ext:"zip",mime:"application/zip"};if(n("ftyp",{offset:4})&&0!=(96&t[8])){const l=t.toString("binary",8,12).replace("\0"," ").trim();switch(l){case"avif":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return l.startsWith("3g")?l.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(n("MThd"))return{ext:"mid",mime:"audio/midi"};if(n("wOFF")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(n("wOF2")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([212,195,178,161])||r([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(n("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(n("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(n("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(n("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(n("%PDF")){await e.ignore(1350);const u=10485760,f=Buffer.alloc(Math.min(u,e.fileInfo.size));return await e.readBuffer(f,{mayBeLess:!0}),f.includes(Buffer.from("AIPrivateData"))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([73,73,42,0]))return n("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:r([28,0,254,0],{offset:8})||r([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:r([8,0,0,0],{offset:4})&&(r([45,0,254,0],{offset:8})||r([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(t=Buffer.alloc(24),await e.peekBuffer(t),(r([16,251,134,1],{offset:4})||r([8,0,0,0],{offset:4}))&&r([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n("MAC "))return{ext:"ape",mime:"audio/ape"};if(r([26,69,223,163])){async function p(){const t=await e.peekNumber(Token.UINT8);let r=128,n=0;for(;0==(t&r)&&0!==r;)++n,r>>=1;const i=Buffer.alloc(n+1);return await e.readBuffer(i),i}async function h(){const e=await p(),t=await p();t[0]^=128>>t.length-1;const r=Math.min(6,t.length);return{id:e.readUIntBE(0,e.length),len:t.readUIntBE(t.length-r,r)}}async function d(t,r){for(;r>0;){const t=await h();if(17026===t.id)return e.readToken(new Token.StringType(t.len,"utf-8"));await e.ignore(t.len),--r}}const m=await h();switch(await d(0,m.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(n("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(n("MSCF")||n("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(r([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(n("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(n("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(n("IMPM"))return{ext:"it",mime:"audio/x-it"};if(n("-lh0-",{offset:2})||n("-lh1-",{offset:2})||n("-lh2-",{offset:2})||n("-lh3-",{offset:2})||n("-lh4-",{offset:2})||n("-lh5-",{offset:2})||n("-lh6-",{offset:2})||n("-lh7-",{offset:2})||n("-lzs-",{offset:2})||n("-lz4-",{offset:2})||n("-lz5-",{offset:2})||n("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(r([0,0,1,186])){if(r([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(r([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(n("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(n(""))return await e.ignore(8),"debian-binary"===await e.readToken(new Token.StringType(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(r([137,80,78,71,13,10,26,10])){async function g(){return{length:await e.readToken(Token.INT32_BE),type:await e.readToken(new Token.StringType(4,"binary"))}}await e.ignore(8);do{const y=await g();if(y.length<0)return;switch(y.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(y.length+4)}}while(e.position+8=16){const x=t.readUInt32LE(12);if(x>12&&t.length>=x+16)try{const _=t.slice(16,x+16).toString();if(JSON.parse(_).files)return{ext:"asar",mime:"application/x-asar"}}catch(E){}}if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(n("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(r([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(r([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(r([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(t,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),tarHeaderChecksumMatches(t))return{ext:"tar",mime:"application/x-tar"};if(r([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};if(n("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(t.length>=2&&r([255,224],{offset:0,mask:[255,224]})){if(r([16],{offset:1,mask:[22]}))return r([8],{offset:1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(r([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise(((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",(async()=>{const e=new stream.PassThrough;let t;t=stream.pipeline?stream.pipeline(readableStream,e,(()=>{})):readableStream.pipe(e);const r=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const t=await fromBuffer(r);e.fileType=t}catch(e){reject(e)}resolve(t)}))})),fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,"extensions",{get:()=>new Set(supported.extensions)}),Object.defineProperty(fileType,"mimeTypes",{get:()=>new Set(supported.mimeTypes)}),module.exports=fileType},7769:(e,t,r)=>{"use strict";const n=r(6597),i=r(1),o={fromFile:async function(e){const t=await n.fromFile(e);try{return await i.fromTokenizer(t)}finally{await t.close()}}};Object.assign(o,i),Object.defineProperty(o,"extensions",{get:()=>i.extensions}),Object.defineProperty(o,"mimeTypes",{get:()=>i.mimeTypes}),e.exports=o},9898:e=>{"use strict";e.exports={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]}},6188:(e,t)=>{"use strict";t.stringToBytes=e=>[...e].map((e=>e.charCodeAt(0))),t.tarHeaderChecksumMatches=(e,t=0)=>{const r=parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(r))return!1;let n=256;for(let r=t;r127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4}},2664:(e,t,r)=>{"use strict";const n=r(3837),i=r(5702),o=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),s=e=>"number"==typeof e||"string"==typeof e&&""!==e,a=e=>Number.isInteger(+e),c=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},l=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},u=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length{if(r)return i(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);return e===t?o:`[${o}-${String.fromCharCode(t)}]`},p=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return i(e,t,r)},h=(...e)=>new RangeError("Invalid range arguments: "+n.inspect(...e)),d=(e,t,r)=>{if(!0===r.strictRanges)throw h([e,t]);return[]},m=(e,t,r,n={})=>{if(null==t&&s(e))return[e];if(!s(e)||!s(t))return d(e,t,n);if("function"==typeof r)return m(e,t,1,{transform:r});if(o(r))return m(e,t,0,r);let i={...n};return!0===i.capture&&(i.wrap=!0),r=r||i.step||1,a(r)?a(e)&&a(t)?((e,t,r=1,n={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(!0===n.strictRanges)throw h([e,t]);return[]}0===i&&(i=0),0===o&&(o=0);let s=i>o,a=String(e),d=String(t),m=String(r);r=Math.max(Math.abs(r),1);let g=c(a)||c(d)||c(m),y=g?Math.max(a.length,d.length,m.length):0,w=!1===g&&!1===((e,t,r)=>"string"==typeof e||"string"==typeof t||!0===r.stringify)(e,t,n),v=n.transform||(e=>t=>!0===e?Number(t):String(t))(w);if(n.toRegex&&1===r)return f(u(e,y),u(t,y),!0,n);let b={negatives:[],positives:[]},S=[],x=0;for(;s?i>=o:i<=o;)!0===n.toRegex&&r>1?b[(_=i)<0?"negatives":"positives"].push(Math.abs(_)):S.push(l(v(i,x),y,w)),i=s?i-r:i+r,x++;var _;return!0===n.toRegex?r>1?((e,t)=>{e.negatives.sort(((e,t)=>et?1:0)),e.positives.sort(((e,t)=>et?1:0));let r,n=t.capture?"":"?:",i="",o="";return e.positives.length&&(i=e.positives.join("|")),e.negatives.length&&(o=`-(${n}${e.negatives.join("|")})`),r=i&&o?`${i}|${o}`:i||o,t.wrap?`(${n}${r})`:r})(b,n):p(S,null,{wrap:!1,...n}):S})(e,t,r,i):((e,t,r=1,n={})=>{if(!a(e)&&e.length>1||!a(t)&&t.length>1)return d(e,t,n);let i=n.transform||(e=>String.fromCharCode(e)),o=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),c=o>s,l=Math.min(o,s),u=Math.max(o,s);if(n.toRegex&&1===r)return f(l,u,!1,n);let h=[],m=0;for(;c?o>=s:o<=s;)h.push(i(o,m)),o=c?o-r:o+r,m++;return!0===n.toRegex?p(h,null,{wrap:!1,options:n}):h})(e,t,Math.max(Math.abs(r),1),i):null==r||o(r)?m(e,t,1,r):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(r,i)};e.exports=m},3873:(e,t,r)=>{"use strict";const n=r(77),i=r(1017),o=r(1381).mkdirsSync,s=r(318).utimesMillisSync,a=r(2733);function c(e,t,r,o){const s=(o.dereference?n.statSync:n.lstatSync)(t);if(s.isDirectory())return function(e,t,r,i,o){return t?f(r,i,o):function(e,t,r,i){return n.mkdirSync(r),f(t,r,i),u(r,e)}(e.mode,r,i,o)}(s,e,t,r,o);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(e,t,r,i,o){return t?function(e,t,r,i){if(i.overwrite)return n.unlinkSync(r),l(e,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,i,o):l(e,r,i,o)}(s,e,t,r,o);if(s.isSymbolicLink())return function(e,t,r,o){let s=n.readlinkSync(t);if(o.dereference&&(s=i.resolve(process.cwd(),s)),e){let e;try{e=n.readlinkSync(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlinkSync(s,r);throw e}if(o.dereference&&(e=i.resolve(process.cwd(),e)),a.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(n.statSync(r).isDirectory()&&a.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return n.unlinkSync(t),n.symlinkSync(e,t)}(s,r)}return n.symlinkSync(s,r)}(e,t,r,o);if(s.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function l(e,t,r,i){return n.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return 0==(128&e)})(e)&&function(e,t){u(e,128|t)}(r,e),function(e,t){const r=n.statSync(e);s(t,r.atime,r.mtime)}(t,r)}(e.mode,t,r),u(r,e.mode)}function u(e,t){return n.chmodSync(e,t)}function f(e,t,r){n.readdirSync(e).forEach((n=>function(e,t,r,n){const o=i.join(t,e),s=i.join(r,e),{destStat:l}=a.checkPathsSync(o,s,"copy",n);return function(e,t,r,n){if(!n.filter||n.filter(t,r))return c(e,t,r,n)}(l,o,s,n)}(n,e,t,r)))}e.exports=function(e,t,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:s,destStat:l}=a.checkPathsSync(e,t,"copy",r);return a.checkParentPathsSync(e,s,t,"copy"),function(e,t,r,s){if(s.filter&&!s.filter(t,r))return;const a=i.dirname(r);return n.existsSync(a)||o(a),c(e,t,r,s)}(l,e,t,r)}},7189:(e,t,r)=>{"use strict";const n=r(77),i=r(1017),o=r(1381).mkdirs,s=r(9257).pathExists,a=r(318).utimesMillis,c=r(2733);function l(e,t,r,n,a){const c=i.dirname(r);s(c,((i,s)=>i?a(i):s?f(e,t,r,n,a):void o(c,(i=>i?a(i):f(e,t,r,n,a)))))}function u(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then((s=>s?e(t,r,n,i,o):o()),(e=>o(e)))}function f(e,t,r,o,s){(o.dereference?n.stat:n.lstat)(t,((a,l)=>a?s(a):l.isDirectory()?function(e,t,r,i,o,s){return t?m(r,i,o,s):function(e,t,r,i,o){n.mkdir(r,(n=>{if(n)return o(n);m(t,r,i,(t=>t?o(t):d(r,e,o)))}))}(e.mode,r,i,o,s)}(l,e,t,r,o,s):l.isFile()||l.isCharacterDevice()||l.isBlockDevice()?function(e,t,r,i,o,s){return t?function(e,t,r,i,o){if(!i.overwrite)return i.errorOnExist?o(new Error(`'${r}' already exists`)):o();n.unlink(r,(n=>n?o(n):p(e,t,r,i,o)))}(e,r,i,o,s):p(e,r,i,o,s)}(l,e,t,r,o,s):l.isSymbolicLink()?function(e,t,r,o,s){n.readlink(t,((t,a)=>t?s(t):(o.dereference&&(a=i.resolve(process.cwd(),a)),e?void n.readlink(r,((t,l)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?n.symlink(a,r,s):s(t):(o.dereference&&(l=i.resolve(process.cwd(),l)),c.isSrcSubdir(a,l)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&c.isSrcSubdir(l,a)?s(new Error(`Cannot overwrite '${l}' with '${a}'.`)):function(e,t,r){n.unlink(t,(i=>i?r(i):n.symlink(e,t,r)))}(a,r,s)))):n.symlink(a,r,s))))}(e,t,r,o,s):l.isSocket()?s(new Error(`Cannot copy a socket file: ${t}`)):l.isFIFO()?s(new Error(`Cannot copy a FIFO pipe: ${t}`)):s(new Error(`Unknown file: ${t}`))))}function p(e,t,r,i,o){n.copyFile(t,r,(n=>n?o(n):i.preserveTimestamps?function(e,t,r,n){return function(e){return 0==(128&e)}(e)?function(e,t,r){return d(e,128|t,r)}(r,e,(i=>i?n(i):h(e,t,r,n))):h(e,t,r,n)}(e.mode,t,r,o):d(r,e.mode,o)))}function h(e,t,r,i){!function(e,t,r){n.stat(e,((e,n)=>e?r(e):a(t,n.atime,n.mtime,r)))}(t,r,(t=>t?i(t):d(r,e,i)))}function d(e,t,r){return n.chmod(e,t,r)}function m(e,t,r,i){n.readdir(e,((n,o)=>n?i(n):g(o,e,t,r,i)))}function g(e,t,r,n,o){const s=e.pop();return s?function(e,t,r,n,o,s){const a=i.join(r,t),l=i.join(n,t);c.checkPaths(a,l,"copy",o,((t,i)=>{if(t)return s(t);const{destStat:c}=i;!function(e,t,r,n,i){n.filter?u(f,e,t,r,n,i):f(e,t,r,n,i)}(c,a,l,o,(t=>t?s(t):g(e,r,n,o,s)))}))}(e,s,t,r,n,o):o()}e.exports=function(e,t,r,n){"function"!=typeof r||n?"function"==typeof r&&(r={filter:r}):(n=r,r={}),n=n||function(){},(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001"),c.checkPaths(e,t,"copy",r,((i,o)=>{if(i)return n(i);const{srcStat:s,destStat:a}=o;c.checkParentPaths(e,s,t,"copy",(i=>i?n(i):r.filter?u(l,a,e,t,r,n):l(a,e,t,r,n)))}))}},6464:(e,t,r)=>{"use strict";const n=r(8981).fromCallback;e.exports={copy:n(r(7189)),copySync:r(3873)}},5590:(e,t,r)=>{"use strict";const n=r(8981).fromPromise,i=r(7749),o=r(1017),s=r(1381),a=r(4542),c=n((async function(e){let t;try{t=await i.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map((t=>a.remove(o.join(e,t)))))}));function l(e){let t;try{t=i.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:l,emptydirSync:l,emptyDir:c,emptydir:c}},6530:(e,t,r)=>{"use strict";const n=r(8981).fromCallback,i=r(1017),o=r(77),s=r(1381);e.exports={createFile:n((function(e,t){function r(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((n,a)=>{if(!n&&a.isFile())return t();const c=i.dirname(e);o.stat(c,((e,n)=>{if(e)return"ENOENT"===e.code?s.mkdirs(c,(e=>{if(e)return t(e);r()})):t(e);n.isDirectory()?r():o.readdir(c,(e=>{if(e)return t(e)}))}))}))})),createFileSync:function(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{o.statSync(r).isDirectory()||o.readdirSync(r)}catch(e){if(!e||"ENOENT"!==e.code)throw e;s.mkdirsSync(r)}o.writeFileSync(e,"")}}},1720:(e,t,r)=>{"use strict";const{createFile:n,createFileSync:i}=r(6530),{createLink:o,createLinkSync:s}=r(4147),{createSymlink:a,createSymlinkSync:c}=r(3635);e.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:o,createLinkSync:s,ensureLink:o,ensureLinkSync:s,createSymlink:a,createSymlinkSync:c,ensureSymlink:a,ensureSymlinkSync:c}},4147:(e,t,r)=>{"use strict";const n=r(8981).fromCallback,i=r(1017),o=r(77),s=r(1381),a=r(9257).pathExists,{areIdentical:c}=r(2733);e.exports={createLink:n((function(e,t,r){function n(e,t){o.link(e,t,(e=>{if(e)return r(e);r(null)}))}o.lstat(t,((l,u)=>{o.lstat(e,((o,l)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(u&&c(l,u))return r(null);const f=i.dirname(t);a(f,((i,o)=>i?r(i):o?n(e,t):void s.mkdirs(f,(i=>{if(i)return r(i);n(e,t)}))))}))}))})),createLinkSync:function(e,t){let r;try{r=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(r&&c(t,r))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=i.dirname(t);return o.existsSync(n)||s.mkdirsSync(n),o.linkSync(e,t)}}},6072:(e,t,r)=>{"use strict";const n=r(1017),i=r(77),o=r(9257).pathExists;e.exports={symlinkPaths:function(e,t,r){if(n.isAbsolute(e))return i.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),r(t)):r(null,{toCwd:e,toDst:e})));{const s=n.dirname(t),a=n.join(s,e);return o(a,((t,o)=>t?r(t):o?r(null,{toCwd:a,toDst:e}):i.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),r(t)):r(null,{toCwd:e,toDst:n.relative(s,e)})))))}},symlinkPathsSync:function(e,t){let r;if(n.isAbsolute(e)){if(r=i.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const o=n.dirname(t),s=n.join(o,e);if(r=i.existsSync(s),r)return{toCwd:s,toDst:e};if(r=i.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(o,e)}}}}},9259:(e,t,r)=>{"use strict";const n=r(77);e.exports={symlinkType:function(e,t,r){if(r="function"==typeof t?t:r,t="function"!=typeof t&&t)return r(null,t);n.lstat(e,((e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file",r(null,t)}))},symlinkTypeSync:function(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},3635:(e,t,r)=>{"use strict";const n=r(8981).fromCallback,i=r(1017),o=r(7749),s=r(1381),a=s.mkdirs,c=s.mkdirsSync,l=r(6072),u=l.symlinkPaths,f=l.symlinkPathsSync,p=r(9259),h=p.symlinkType,d=p.symlinkTypeSync,m=r(9257).pathExists,{areIdentical:g}=r(2733);function y(e,t,r,n){u(e,t,((s,c)=>{if(s)return n(s);e=c.toDst,h(c.toCwd,r,((r,s)=>{if(r)return n(r);const c=i.dirname(t);m(c,((r,i)=>r?n(r):i?o.symlink(e,t,s,n):void a(c,(r=>{if(r)return n(r);o.symlink(e,t,s,n)}))))}))}))}e.exports={createSymlink:n((function(e,t,r,n){n="function"==typeof r?r:n,r="function"!=typeof r&&r,o.lstat(t,((i,s)=>{!i&&s.isSymbolicLink()?Promise.all([o.stat(e),o.stat(t)]).then((([i,o])=>{if(g(i,o))return n(null);y(e,t,r,n)})):y(e,t,r,n)}))})),createSymlinkSync:function(e,t,r){let n;try{n=o.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=o.statSync(e),n=o.statSync(t);if(g(r,n))return}const s=f(e,t);e=s.toDst,r=d(s.toCwd,r);const a=i.dirname(t);return o.existsSync(a)||c(a),o.symlinkSync(e,t,r)}}},7749:(e,t,r)=>{"use strict";const n=r(8981).fromCallback,i=r(77),o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof i[e]));Object.assign(t,i),o.forEach((e=>{t[e]=n(i[e])})),t.exists=function(e,t){return"function"==typeof t?i.exists(e,t):new Promise((t=>i.exists(e,t)))},t.read=function(e,t,r,n,o,s){return"function"==typeof s?i.read(e,t,r,n,o,s):new Promise(((s,a)=>{i.read(e,t,r,n,o,((e,t,r)=>{if(e)return a(e);s({bytesRead:t,buffer:r})}))}))},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?i.write(e,t,...r):new Promise(((n,o)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffer:r})}))}))},"function"==typeof i.writev&&(t.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?i.writev(e,t,...r):new Promise(((n,o)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffers:r})}))}))}),"function"==typeof i.realpath.native?t.realpath.native=n(i.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},5674:(e,t,r)=>{"use strict";e.exports={...r(7749),...r(6464),...r(5590),...r(1720),...r(6573),...r(1381),...r(530),...r(4670),...r(9257),...r(4542)}},6573:(e,t,r)=>{"use strict";const n=r(8981).fromPromise,i=r(7183);i.outputJson=n(r(6130)),i.outputJsonSync=r(9578),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i},7183:(e,t,r)=>{"use strict";const n=r(6813);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},9578:(e,t,r)=>{"use strict";const{stringify:n}=r(6780),{outputFileSync:i}=r(4670);e.exports=function(e,t,r){const o=n(t,r);i(e,o,r)}},6130:(e,t,r)=>{"use strict";const{stringify:n}=r(6780),{outputFile:i}=r(4670);e.exports=async function(e,t,r={}){const o=n(t,r);await i(e,o,r)}},1381:(e,t,r)=>{"use strict";const n=r(8981).fromPromise,{makeDir:i,makeDirSync:o}=r(8233),s=n(i);e.exports={mkdirs:s,mkdirsSync:o,mkdirp:s,mkdirpSync:o,ensureDir:s,ensureDirSync:o}},8233:(e,t,r)=>{"use strict";const n=r(7749),{checkPath:i}=r(3468),o=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),n.mkdir(e,{mode:o(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),n.mkdirSync(e,{mode:o(t),recursive:!0}))},3468:(e,t,r)=>{"use strict";const n=r(1017);e.exports.checkPath=function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(n.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}},530:(e,t,r)=>{"use strict";const n=r(8981).fromCallback;e.exports={move:n(r(436)),moveSync:r(3736)}},3736:(e,t,r)=>{"use strict";const n=r(77),i=r(1017),o=r(6464).copySync,s=r(4542).removeSync,a=r(1381).mkdirpSync,c=r(2733);function l(e,t,r){try{n.renameSync(e,t)}catch(n){if("EXDEV"!==n.code)throw n;return function(e,t,r){return o(e,t,{overwrite:r,errorOnExist:!0}),s(e)}(e,t,r)}}e.exports=function(e,t,r){const o=(r=r||{}).overwrite||r.clobber||!1,{srcStat:u,isChangingCase:f=!1}=c.checkPathsSync(e,t,"move",r);return c.checkParentPathsSync(e,u,t,"move"),function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)||a(i.dirname(t)),function(e,t,r,i){if(i)return l(e,t,r);if(r)return s(t),l(e,t,r);if(n.existsSync(t))throw new Error("dest already exists.");return l(e,t,r)}(e,t,o,f)}},436:(e,t,r)=>{"use strict";const n=r(77),i=r(1017),o=r(6464).copy,s=r(4542).remove,a=r(1381).mkdirp,c=r(9257).pathExists,l=r(2733);function u(e,t,r,n,i){return n?f(e,t,r,i):r?s(t,(n=>n?i(n):f(e,t,r,i))):void c(t,((n,o)=>n?i(n):o?i(new Error("dest already exists.")):f(e,t,r,i)))}function f(e,t,r,i){n.rename(e,t,(n=>n?"EXDEV"!==n.code?i(n):function(e,t,r,n){o(e,t,{overwrite:r,errorOnExist:!0},(t=>t?n(t):s(e,n)))}(e,t,r,i):i()))}e.exports=function(e,t,r,n){"function"==typeof r&&(n=r,r={});const o=(r=r||{}).overwrite||r.clobber||!1;l.checkPaths(e,t,"move",r,((r,s)=>{if(r)return n(r);const{srcStat:c,isChangingCase:f=!1}=s;l.checkParentPaths(e,c,t,"move",(r=>r?n(r):function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)?u(e,t,o,f,n):void a(i.dirname(t),(r=>r?n(r):u(e,t,o,f,n)))))}))}},4670:(e,t,r)=>{"use strict";const n=r(8981).fromCallback,i=r(77),o=r(1017),s=r(1381),a=r(9257).pathExists;e.exports={outputFile:n((function(e,t,r,n){"function"==typeof r&&(n=r,r="utf8");const c=o.dirname(e);a(c,((o,a)=>o?n(o):a?i.writeFile(e,t,r,n):void s.mkdirs(c,(o=>{if(o)return n(o);i.writeFile(e,t,r,n)}))))})),outputFileSync:function(e,...t){const r=o.dirname(e);if(i.existsSync(r))return i.writeFileSync(e,...t);s.mkdirsSync(r),i.writeFileSync(e,...t)}}},9257:(e,t,r)=>{"use strict";const n=r(8981).fromPromise,i=r(7749);e.exports={pathExists:n((function(e){return i.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},4542:(e,t,r)=>{"use strict";const n=r(77),i=r(8981).fromCallback,o=r(3456);e.exports={remove:i((function(e,t){if(n.rm)return n.rm(e,{recursive:!0,force:!0},t);o(e,t)})),removeSync:function(e){if(n.rmSync)return n.rmSync(e,{recursive:!0,force:!0});o.sync(e)}}},3456:(e,t,r)=>{"use strict";const n=r(77),i=r(1017),o=r(9491),s="win32"===process.platform;function a(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||n[t],e[t+="Sync"]=e[t]||n[t]})),e.maxBusyTries=e.maxBusyTries||3}function c(e,t,r){let n=0;"function"==typeof t&&(r=t,t={}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o.strictEqual(typeof r,"function","rimraf: callback function required"),o(t,"rimraf: invalid options argument provided"),o.strictEqual(typeof t,"object","rimraf: options should be object"),a(t),l(e,t,(function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&nl(e,t,i)),100*n);"ENOENT"===o.code&&(o=null)}r(o)}))}function l(e,t,r){o(e),o(t),o("function"==typeof r),t.lstat(e,((n,i)=>n&&"ENOENT"===n.code?r(null):n&&"EPERM"===n.code&&s?u(e,t,n,r):i&&i.isDirectory()?p(e,t,n,r):void t.unlink(e,(n=>{if(n){if("ENOENT"===n.code)return r(null);if("EPERM"===n.code)return s?u(e,t,n,r):p(e,t,n,r);if("EISDIR"===n.code)return p(e,t,n,r)}return r(n)}))))}function u(e,t,r,n){o(e),o(t),o("function"==typeof n),t.chmod(e,438,(i=>{i?n("ENOENT"===i.code?null:r):t.stat(e,((i,o)=>{i?n("ENOENT"===i.code?null:r):o.isDirectory()?p(e,t,r,n):t.unlink(e,n)}))}))}function f(e,t,r){let n;o(e),o(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}try{n=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}n.isDirectory()?d(e,t,r):t.unlinkSync(e)}function p(e,t,r,n){o(e),o(t),o("function"==typeof n),t.rmdir(e,(s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?n(r):n(s):function(e,t,r){o(e),o(t),o("function"==typeof r),t.readdir(e,((n,o)=>{if(n)return r(n);let s,a=o.length;if(0===a)return t.rmdir(e,r);o.forEach((n=>{c(i.join(e,n),t,(n=>{if(!s)return n?r(s=n):void(0==--a&&t.rmdir(e,r))}))}))}))}(e,t,n)}))}function h(e,t){let r;a(t=t||{}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o(t,"rimraf: missing options"),o.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&s&&f(e,t,r)}try{r&&r.isDirectory()?d(e,t,null):t.unlinkSync(e)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return s?f(e,t,r):d(e,t,r);if("EISDIR"!==r.code)throw r;d(e,t,r)}}function d(e,t,r){o(e),o(t);try{t.rmdirSync(e)}catch(n){if("ENOTDIR"===n.code)throw r;if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)!function(e,t){if(o(e),o(t),t.readdirSync(e).forEach((r=>h(i.join(e,r),t))),!s)return t.rmdirSync(e,t);{const r=Date.now();do{try{return t.rmdirSync(e,t)}catch{}}while(Date.now()-r<500)}}(e,t);else if("ENOENT"!==n.code)throw n}}e.exports=c,c.sync=h},2733:(e,t,r)=>{"use strict";const n=r(7749),i=r(1017),o=r(3837);function s(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:!0}):e=>n.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function a(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function c(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e)),n=i.resolve(t).split(i.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&n[r]===t),!0)}function l(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:function(e,t,r,n,u){o.callbackify(s)(e,t,n,((n,o)=>{if(n)return u(n);const{srcStat:s,destStat:f}=o;if(f){if(a(s,f)){const n=i.basename(e),o=i.basename(t);return"move"===r&&n!==o&&n.toLowerCase()===o.toLowerCase()?u(null,{srcStat:s,destStat:f,isChangingCase:!0}):u(new Error("Source and destination must not be the same."))}if(s.isDirectory()&&!f.isDirectory())return u(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!s.isDirectory()&&f.isDirectory())return u(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return s.isDirectory()&&c(e,t)?u(new Error(l(e,t,r))):u(null,{srcStat:s,destStat:f})}))},checkPathsSync:function(e,t,r,o){const{srcStat:s,destStat:u}=function(e,t,r){let i;const o=r.dereference?e=>n.statSync(e,{bigint:!0}):e=>n.lstatSync(e,{bigint:!0}),s=o(e);try{i=o(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:i}}(e,t,o);if(u){if(a(s,u)){const n=i.basename(e),o=i.basename(t);if("move"===r&&n!==o&&n.toLowerCase()===o.toLowerCase())return{srcStat:s,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!s.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(s.isDirectory()&&c(e,t))throw new Error(l(e,t,r));return{srcStat:s,destStat:u}},checkParentPaths:function e(t,r,o,s,c){const u=i.resolve(i.dirname(t)),f=i.resolve(i.dirname(o));if(f===u||f===i.parse(f).root)return c();n.stat(f,{bigint:!0},((n,i)=>n?"ENOENT"===n.code?c():c(n):a(r,i)?c(new Error(l(t,o,s))):e(t,r,f,s,c)))},checkParentPathsSync:function e(t,r,o,s){const c=i.resolve(i.dirname(t)),u=i.resolve(i.dirname(o));if(u===c||u===i.parse(u).root)return;let f;try{f=n.statSync(u,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(a(r,f))throw new Error(l(t,o,s));return e(t,r,u,s)},isSrcSubdir:c,areIdentical:a}},318:(e,t,r)=>{"use strict";const n=r(77);e.exports={utimesMillis:function(e,t,r,i){n.open(e,"r+",((e,o)=>{if(e)return i(e);n.futimes(o,t,r,(e=>{n.close(o,(t=>{i&&i(e||t)}))}))}))},utimesMillisSync:function(e,t,r){const i=n.openSync(e,"r+");return n.futimesSync(i,t,r),n.closeSync(i)}}},7647:(e,t,r)=>{"use strict";var n=r(6830),i=r(1017).posix.dirname,o="win32"===r(2037).platform(),s=/\\/g,a=/[\{\[].*[\}\]]$/,c=/(^|[^\\])([\{\[]|\([^\)]+$)/,l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&o&&e.indexOf("/")<0&&(e=e.replace(s,"/")),a.test(e)&&(e+="/"),e+="a";do{e=i(e)}while(n(e)||c.test(e));return e.replace(l,"$1")}},6458:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var r={__proto__:t(e)};else r=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})),r};var t=Object.getPrototypeOf||function(e){return e.__proto__}},77:(e,t,r)=>{var n,i,o=r(7147),s=r(2161),a=r(8520),c=r(6458),l=r(3837);function u(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var f,p=function(){};if(l.debuglog?p=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!o[n]){var h=global[n]||[];u(o,h),o.close=function(e){function t(t,r){return e.call(o,t,(function(e){e||g(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),g()}return Object.defineProperty(t,i,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){p(o[n]),r(9491).equal(o[n].length,0)}))}function d(e){s(e),e.gracefulify=d,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){return"function"==typeof r&&(n=r,r=null),function e(r,n,i,o){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):m([e,[r,n,i],t,o||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,o,s){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):m([e,[t,n,i,o],r,s||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):m([e,[t,r,i,o],n,s||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){return"function"==typeof r&&(n=r,r=0),function e(t,r,n,o,s){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):m([e,[t,r,n,o],i,s||Date.now(),Date.now()])}))}(e,t,r,n)});var o=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=c.test(process.version)?function(e,t,r,n){return o(e,i(e,t,r,n))}:function(e,t,r,n){return o(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof r&&r.call(this,o,s)):m([n,[e,t,r],o,i||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=a(e);g=l.ReadStream,y=l.WriteStream}var u=e.ReadStream;u&&(g.prototype=Object.create(u.prototype),g.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var f=e.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var p=g;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0});var h=y;function g(e,t){return this instanceof g?(u.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function y(e,t){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var w=e.open;function v(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,o){return w(t,r,n,(function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,r,n,i],s,o||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=v,e}function m(e){p("ENQUEUE",e[0].name,e[1]),o[n].push(e),y()}function g(){for(var e=Date.now(),t=0;t2&&(o[n][t][3]=e,o[n][t][4]=e);y()}function y(){if(clearTimeout(f),f=void 0,0!==o[n].length){var e=o[n].shift(),t=e[0],r=e[1],i=e[2],s=e[3],a=e[4];if(void 0===s)p("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-s>=6e4){p("TIMEOUT",t.name,r);var c=r.pop();"function"==typeof c&&c.call(null,i)}else{var l=Date.now()-a,u=Math.max(a-s,1);l>=Math.min(1.2*u,100)?(p("RETRY",t.name,r),t.apply(null,r.concat([s]))):o[n].push(e)}void 0===f&&(f=setTimeout(y,0))}}global[n]||u(global,o[n]),e.exports=d(c(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=d(o),o.__patched=!0)},8520:(e,t,r)=>{var n=r(2781).Stream;e.exports=function(e){return{ReadStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var s=Object.keys(i),a=0,c=s.length;athis.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()})):process.nextTick((function(){o._read()}))},WriteStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},2161:(e,t,r)=>{var n=r(2057),i=process.cwd,o=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){o=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!l(e))throw e}}:t}function i(t){return t?function(r,n,i,o){return t.call(e,r,n,i,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function o(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(r,n,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,o):t.call(e,r,o)}:t}function c(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var u;n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?i&&i(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,r){var i,o=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),s=!0;try{i=e.fchmodSync(o,r),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}}(e),e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,o){e.open(t,n.O_SYMLINK,(function(t,n){t?o&&o(t):e.futimes(n,r,i,(function(t){e.close(n,(function(e){o&&o(t||e)}))}))}))},e.lutimesSync=function(t,r,i){var o,s=e.openSync(t,n.O_SYMLINK),a=!0;try{o=e.futimesSync(s,r,i),a=!1}finally{if(a)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return o}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){}),"win32"===s&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var o=Date.now(),s=0;t(r,n,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(n,(function(e,o){e&&"ENOENT"===e.code?t(r,n,a):i(c)}))}),s),void(s<100&&(s+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename)),e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,o,s,a){var c;if(a&&"function"==typeof a){var l=0;c=function(u,f,p){if(u&&"EAGAIN"===u.code&&l<10)return l++,t.call(e,r,n,i,o,s,c);a.apply(this,arguments)}}return t.call(e,r,n,i,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(u=e.readSync,function(t,r,n,i,o){for(var s=0;;)try{return u.call(e,t,r,n,i,o)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}})}},6560:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n{"use strict";const n=r(8167).zt,i=r(4733).i8,o=r(7147),s=r(7310),a=r(1017),c=r(1322)("i18n:debug"),l=r(1322)("i18n:warn"),u=r(1322)("i18n:error"),f=r(466),p=r(5150),h=r(3585),d=r(2019).Z,m=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e.exports=function(e=!1){const t={},r={};let g={};const y={__:"__",__n:"__n",__l:"__l",__h:"__h",__mf:"__mf",getLocale:"getLocale",setLocale:"setLocale",getCatalog:"getCatalog",getLocales:"getLocales",addLocale:"addLocale",removeLocale:"removeLocale"},w={tags:["{{","}}"],disable:!1};let v;const b=a.sep;let S,x,_,E,k,A,O,C,T,R,N,F,P,I,L,D,j,$,M,B,H,z;const U={};U.version=i,U.configure=function(e){if(g={},e.api&&"object"==typeof e.api)for(const t in e.api)if(Object.prototype.hasOwnProperty.call(e.api,t)){const r=e.api[t];void 0!==y[t]&&(y[t]=r)}"object"==typeof e.register&&($=e.register,Array.isArray(e.register)?($=e.register,$.forEach(V)):V(e.register)),x="string"==typeof e.cookie?e.cookie:null,_="string"==typeof e.header?e.header:"accept-language",j="string"==typeof e.queryParameter?e.queryParameter:null,A="string"==typeof e.directory?e.directory:a.join(__dirname,"locales"),O="string"==typeof e.directoryPermissions?parseInt(e.directoryPermissions,8):null,M="boolean"!=typeof e.updateFiles||e.updateFiles,B="boolean"==typeof e.syncFiles&&e.syncFiles,R="string"==typeof e.indent?e.indent:"\t",D="string"==typeof e.prefix?e.prefix:"",C="string"==typeof e.extension?e.extension:".json",E="string"==typeof e.defaultLocale?e.defaultLocale:"en",k="boolean"==typeof e.retryInDefaultLocale&&e.retryInDefaultLocale,S="boolean"==typeof e.autoReload&&e.autoReload,L=void 0!==e.objectNotation&&e.objectNotation,!0===L&&(L="."),T="object"==typeof e.fallbacks?e.fallbacks:{},N="function"==typeof e.logDebugFn?e.logDebugFn:c,P="function"==typeof e.logWarnFn?e.logWarnFn:l,F="function"==typeof e.logErrorFn?e.logErrorFn:u,I="boolean"!=typeof e.preserveLegacyCase||e.preserveLegacyCase,H="function"==typeof e.missingKeyFn?e.missingKeyFn:pe,z="object"==typeof e.parser&&"function"==typeof e.parser.parse&&"function"==typeof e.parser.stringify?e.parser:JSON,e.locales=e.staticCatalog?Object.keys(e.staticCatalog):e.locales||K(A),e.staticCatalog&&(M=!1,S=!1,B=!1),e.mustacheConfig&&(Array.isArray(e.mustacheConfig.tags)&&(w.tags=e.mustacheConfig.tags),!0===e.mustacheConfig.disable&&(w.disable=!0));const[t,r]=w.tags;v=new RegExp(m(t)+".*"+m(r)),Array.isArray(e.locales)&&(e.staticCatalog?g=e.staticCatalog:e.locales.forEach(oe),S&&o.watch(A,((t,r)=>{const n=Y(r);n&&e.locales.indexOf(n)>-1&&(le('Auto reloading locale file "'+r+'".'),oe(n))})))},U.init=function(e,t,r){return"object"!=typeof e?fe("i18n.init must be called with one parameter minimum, ie. i18n.init(req)"):(J(e),V(e),U.setLocale(e,e.locale),"object"==typeof t&&(V(t),U.setLocale(t,e.locale)),"function"==typeof r?r():void 0)},U.__=function(e){let t;const r=q(arguments),n=r[0],i=r[1];return"object"==typeof e?"string"==typeof e.locale&&"string"==typeof e.phrase&&(t=te(e.locale,e.phrase)):t=te(Q(this),e),"object"==typeof t&&t.one&&(t=t.one),"object"==typeof t&&t.other&&(t=t.other),W(t,n,i)},U.__mf=function(e){let r,n,i,o=E;const s=q(arguments),a=s[0],c=s[1];return"object"==typeof e?"string"==typeof e.locale&&"string"==typeof e.phrase&&(r=e.phrase,o=e.locale):(r=e,o=Q(this)),r=te(o,r),t[o]?n=t[o]:(n=new p(o),n.compiledFunctions={},t[o]=n),n.compiledFunctions[r]?i=n.compiledFunctions[r]:(i=n.compile(r),n.compiledFunctions[r]=i),W(i(a),a,c)},U.__l=function(e){const t=[];return Object.keys(g).sort().forEach((r=>{t.push(U.__({phrase:e,locale:r}))})),t},U.__h=function(e){const t=[];return Object.keys(g).sort().forEach((r=>{const n={};n[r]=U.__({phrase:e,locale:r}),t.push(n)})),t},U.__n=function(e,t,n){let i,o,s,a=[];if(G(arguments)?(o=arguments[arguments.length-1],a=arguments.length>=5?Array.prototype.slice.call(arguments,3,-1):[]):(o={},a=arguments.length>=4?Array.prototype.slice.call(arguments,3):[]),"object"==typeof e?("string"==typeof e.locale&&"string"==typeof e.singular&&"string"==typeof e.plural&&(s=e.locale,i=te(e.locale,e.singular,e.plural)),a.unshift(n),"number"!=typeof t&&Number(t)+""!==t||(n=t),"number"!=typeof e.count&&"string"!=typeof e.count||(n=e.count,a.unshift(t))):("number"!=typeof t&&Number(t)+""!==t||(n=t,t=e,a.unshift(n),a.unshift(t)),i=te(Q(this),e,t),s=Q(this)),null===n&&(n=o.count),n=Number(n),"object"==typeof i){let e;if(r[s])e=r[s];else{const t=s.toLowerCase().split(/[_-\s]+/).filter((e=>e));e=h[t[0]||s],r[s]=e}i=i[e(n)]||i.other}return W(i,o,a,n)},U.setLocale=function(e,t,r){if(Array.isArray(e)&&"string"==typeof t){for(let r=e.length-1;r>=0;r--)U.setLocale(e[r],t,!0);return U.getLocale(e[0])}let n=e,i=t;return void 0===t&&"string"==typeof e&&(n=this,i=e),g[i]||(i=ce(i,T)||i),n.locale=g[i]?i:E,"object"==typeof $&&(Array.isArray($)&&!r?$.forEach((e=>{e.locale=n.locale})):$.locale=n.locale),n.res&&!r&&(n.res.locals?(U.setLocale(n.res,n.locale,!0),U.setLocale(n.res.locals,n.locale,!0)):U.setLocale(n.res,n.locale)),n.locals&&!r&&(n.locals.res?(U.setLocale(n.locals,n.locale,!0),U.setLocale(n.locals.res,n.locale,!0)):U.setLocale(n.locals,n.locale)),U.getLocale(n)},U.getLocale=function(e){return e&&e.locale?e.locale:this.locale||E},U.getCatalog=function(e,t){let r;return"object"==typeof e&&"string"==typeof e.locale&&void 0===t&&(r=e.locale),r||"object"!=typeof e||"string"!=typeof t||(r=t),r||void 0!==t||"string"!=typeof e||(r=e),r||void 0!==e||void 0!==t||"string"!=typeof this.locale||(r=$&&$.global?"":this.locale),void 0===r||""===r?g:(g[r]||(r=ce(r,T)||r),g[r]?g[r]:(ue('No catalog found for "'+r+'"'),!1))},U.getLocales=function(){return Object.keys(g)},U.addLocale=function(e){oe(e)},U.removeLocale=function(e){delete g[e]};const W=(e,t,r,i)=>(/\|/.test(e)&&(e=X(e,i)),"number"==typeof i&&(e=n(e,Number(i))),!w.disable&&v.test(e)&&(e=f.render(e,t,{},w.tags)),/%/.test(e)&&r&&r.length>0&&(e=n(e,...r)),e),G=e=>e.length>1&&null!==e[e.length-1]&&"object"==typeof e[e.length-1],q=e=>{let t,r;return G(e)?(t=e[e.length-1],r=Array.prototype.slice.call(e,1,-1)):(t={},r=e.length>=2?Array.prototype.slice.call(e,1):[]),[t,r]},V=e=>{let t=!0;for(const r in y)if(Object.prototype.hasOwnProperty.call(y,r)){const n=y[r];e[n]||(t=!1,e[n]=U[r].bind(e))}e.locale||(e.locale=E),t||(e.res&&V(e.res),e.locals&&V(e.locals))},K=e=>{const t=o.readdirSync(e),r=[];for(let e=t.length-1;e>=0;e--){if(t[e].match(/^\./))continue;const n=Y(t[e]);n&&r.push(n)}return r.sort()},Y=e=>{const t=new RegExp(C+"$","g"),r=new RegExp("^"+D,"g");return!!e&&!(D&&!e.match(r))&&!(C&&!e.match(t))&&e.replace(D,"").replace(t,"")},J=e=>{if("object"==typeof e){const t=e.headers?e.headers[_]:void 0,r=[],n=[];if(e.languages=[E],e.regions=[E],e.language=E,e.region=E,j&&e.url){const t="string"==typeof e.url?e.url:e.url.toString(),r=s.parse(t,!0).query[j];if(r){let t=(e=>Array.isArray(e)?e.find((e=>""!==e&&e)):"string"==typeof e&&e)(r);if(t)return le("Overriding locale from query: "+t),I&&(t=t.toLowerCase()),U.setLocale(e,t)}}if(x&&e.cookies&&e.cookies[x])return e.language=e.cookies[x],U.setLocale(e,e.language);if(t){const i=Z(t);let o,s,a;for(let e=0;e-1&&i.splice(r,1),i.splice(e+1,0,a)}const p=ce(l,T);if(p&&(a=p,i.indexOf(a)<0&&i.push(a)),r.indexOf(l)<0&&r.push(l.toLowerCase()),u&&n.push(u.toLowerCase()),!o&&g[t]){o=t;break}!s&&g[l]&&(s=l)}return e.language=o||s||e.language,e.region=n[0]||e.region,U.setLocale(e,e.language)}}return U.setLocale(e,E)},Z=e=>{const t=e.split(","),r={};return t.map((e=>{const t=e.trim().split(";q=");if(t.length<2)t[1]=1;else{const e=parseFloat(t[1]);t[1]=e||0}return r[t[0]]=t[1],t[0]})).filter((e=>r[e]>0)).sort(((e,t)=>r[t]-r[e]))},Q=e=>{let t;return e&&e.scope&&(t=e.scope.locale),e&&e.locale&&(t=e.locale),t},X=(e,t)=>{let r=e;const n=e.split(/\|/);let i=!1;return n.some((e=>{const n=e.match(/^\s*([()[\]]+[\d,]+[()[\]]+)?\s*(.*)$/);if(null!=n&&n[1]){if(i=!0,!0===ee(t,n[1]))return r=n[2],!0}else i&&(r=e);return!1})),r},ee=(e,t)=>!(!(t=d(t))||"number"!=typeof e)&&(t.from.value===e?t.from.included:t.to.value===e?t.to.included:Math.min(t.from.value,e)===t.from.value&&Math.max(t.to.value,e)===t.to.value),te=(e,t,r,n)=>{!n&&B&&re(t,r),void 0===e&&(ue("WARN: No locale found - check the context of the call to __(). Using "+E+" as current locale"),e=E),g[e]||(e=ce(e,T)||e),g[e]||oe(e),g[e]||(ue("WARN: Locale "+e+" couldn't be read - check the context of the call to $__. Using "+E+" (default) as current locale"),oe(e=E));let i=t,o=r;if(L){let e=t.indexOf(":");e>0&&(i=t.substring(e+1),t=t.substring(0,e)),r&&"number"!=typeof r&&(e=r.indexOf(":"),e>0&&(o=r.substring(e+1),r=r.substring(0,e)))}const s=ne(e,t),a=ie(e,t);return r&&null==s()&&(k&&e!==E?(le("Missing "+t+" in "+e+" retrying in "+E),a(te(E,t,r,!0))):a({one:i||t,other:o||r}),se(e)),null==s()&&(k&&e!==E?(le("Missing "+t+" in "+e+" retrying in "+E),a(te(E,t,r,!0))):a(i||t),se(e)),s()},re=(e,t)=>{for(const r in g)te(r,e,t,!0)},ne=(e,t,r)=>{if(!g[e])return Function.prototype;const n=L&&t.lastIndexOf(L);if(L&&n>0&&nnull;let o=!1;return t.split(L).reduce(((e,t)=>(n=i,null!==e&&Object.prototype.hasOwnProperty.call(e,t)?(n=()=>e[t],e[t]):(o=r,null))),g[e]),()=>o?ne(e,t,!1)():n()}return()=>g[e][t]},ie=function(e,t,r){if(!g[e])return Function.prototype;const n=L&&t.lastIndexOf(L);if(L&&n>0&&nnull;let o=()=>({}),s=!1;return t.split(L).reduce(((e,t)=>{if(n=i,null===e||!Object.prototype.hasOwnProperty.call(e,t)){if(!r)return s=!0,null;null!==e&&"object"==typeof e||(e=o()),e[t]={}}return n=r=>(e[t]=r,r),o=()=>(e[t]={},e[t]),e[t]}),g[e]),r=>(r=H(e,r),s?ie(e,t,!0)(r):n(r))}return r=>(r=H(e,r),g[e][t]=r,r)},oe=e=>{let t={};const r=ae(e);try{le("read "+r+" for locale: "+e),t=o.readFileSync(r,"utf-8");try{g[e]=z.parse(t)}catch(e){fe("unable to parse locales from file (maybe "+r+" is empty or invalid json?): ",e)}}catch(t){o.existsSync(r)&&(le("backing up invalid locale "+e+" to "+r+".invalid"),o.renameSync(r,r+".invalid")),le("initializing "+r),se(e)}},se=e=>{let t,r,n;if(M){try{t=o.lstatSync(A)}catch(e){le("creating locales dir in: "+A);try{o.mkdirSync(A,O)}catch(e){if("EEXIST"!==e.code)throw e}}g[e]||(g[e]={});try{r=ae(e),n=r+".tmp",o.writeFileSync(n,z.stringify(g[e],null,R),"utf8"),t=o.statSync(n),t.isFile()?o.renameSync(n,r):fe("unable to write locales to file (either "+n+" or "+r+" are not writeable?): ")}catch(e){fe("unexpected error writing files (either "+n+" or "+r+" are not writeable?): ",e)}}},ae=e=>{const t=C||".json",r=a.normalize(A+b+D+e+t),n=a.normalize(A+b+D+e+".js");try{if(o.statSync(n))return le("using existing file "+n),C=".js",n}catch(e){le("will use "+r)}return r},ce=(e,t)=>{if((t=t||{})[e])return t[e];let r=null;for(const n in t)if(e.match(new RegExp("^"+n.replace("*",".*")+"$"))){r=t[n];break}return r},le=e=>{N(e)},ue=e=>{P(e)},fe=e=>{F(e)},pe=(e,t)=>t;return e&&U.configure(e),U}},7228:(e,t,r)=>{const n=r(3814);e.exports=n(),e.exports.I18n=n},1691:(e,t,r)=>{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 r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},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){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("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.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(8721)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8721:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,s=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];r=o.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(1691):e.exports=r(2301)},2301:(e,t,r)=>{const n=r(6224),i=r(3837);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(2130);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 r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=r(8721)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},1133:e=>{var t=1e3,r=60*t,n=60*r,i=24*n;function o(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,s){s=s||{};var a,c,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\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(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&isFinite(e))return s.long?(a=e,(c=Math.abs(a))>=i?o(a,c,i,"day"):c>=n?o(a,c,n,"hour"):c>=r?o(a,c,r,"minute"):c>=t?o(a,c,t,"second"):a+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},645:(e,t)=>{t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,c=(1<>1,u=-7,f=r?i-1:0,p=r?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-u)-1,h>>=-u,u+=a;u>0;o=256*o+e[t+f],f+=p,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+e[t+f],f+=p,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=l}return(h?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,c,l=8*o-i-1,u=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<0;e[r+h]=255&s,h+=d,s/=256,l-=8);e[r+h-d]|=128*m}},6259:(e,t,r)=>{"use strict";const n=r(1017),i=r(5487),o=new Set(i);e.exports=e=>o.has(n.extname(e).slice(1).toLowerCase())},2428:e=>{e.exports=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}},6830:(e,t,r)=>{var n=r(2428),i={"{":"}","(":")","[":"]"},o=function(e){if("!"===e[0])return!0;for(var t=0,r=-2,n=-2,o=-2,s=-2,a=-2;tt)){if(-1===a||a>n)return!0;if(-1===(a=e.indexOf("\\",t))||a>n)return!0}if(-1!==o&&"{"===e[t]&&"}"!==e[t+1]&&(o=e.indexOf("}",t))>t&&(-1===(a=e.indexOf("\\",t))||a>o))return!0;if(-1!==s&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(s=e.indexOf(")",t))>t&&(-1===(a=e.indexOf("\\",t))||a>s))return!0;if(-1!==r&&"("===e[t]&&"|"!==e[t+1]&&(rr&&(-1===(a=e.indexOf("\\",r))||a>s)))return!0;if("\\"===e[t]){var c=e[t+1];t+=2;var l=i[c];if(l){var u=e.indexOf(l,t);-1!==u&&(t=u+1)}if("!"===e[t])return!0}else t++}return!1},s=function(e){if("!"===e[0])return!0;for(var t=0;t{"use strict";e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},6813:(e,t,r)=>{let n;try{n=r(77)}catch(e){n=r(7147)}const i=r(8981),{stringify:o,stripBom:s}=r(6780),a={readFile:i.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,o=!("throws"in t)||t.throws;let a,c=await i.fromCallback(r.readFile)(e,t);c=s(c);try{a=JSON.parse(c,t?t.reviver:null)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,i=!("throws"in t)||t.throws;try{let n=r.readFileSync(e,t);return n=s(n),JSON.parse(n,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:i.fromPromise((async function(e,t,r={}){const s=r.fs||n,a=o(t,r);await i.fromCallback(s.writeFile)(e,a,r)})),writeFileSync:function(e,t,r={}){const i=r.fs||n,s=o(t,r);return i.writeFileSync(e,s,r)}};e.exports=a},6780:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},2019:(e,t)=>{"use strict";var r="[-+]?(?:Infinity|[[0-9]*\\.?\\d*(?:[eE][-+]?\\d+)?)",n=new RegExp("([\\(\\]\\[])("+r+")?(,)?("+r+")?([\\)\\]\\[])");t.Z=function(e){var t=function(e){var t=function(e){var t=n.exec(e);return t?(t[0],{leftBrace:t[1],fromValue:t[2],delimeter:t[3],toValue:t[4],rightBrace:t[5]}):null}(e);return t?{from:{value:void 0!==t.fromValue?+t.fromValue:-1/0,included:"["===t.leftBrace},to:{value:void 0!==t.toValue?+t.toValue:t.delimeter?1/0:void 0!==t.fromValue?+t.fromValue:NaN,included:"]"===t.rightBrace}}:null}(e);return t&&function(e){return e.from.value===e.to.value?e.from.included&&e.to.included:Math.min(e.from.value,e.to.value)===e.from.value}(t)?t:null}},9271:function(e,t){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(e){return e&&"[object RegExp]"===t.call(e)}function i(e){return e&&"object"==typeof e&&!n(e)&&!Array.isArray(e)}function o(e){return"("+e+")"}function s(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function a(e){if("string"==typeof e)return"(?:"+(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(n(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function c(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function l(t,r){if(i(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var o={defaultType:t,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var s in r)e.call(r,s)&&(o[s]=r[s]);if("string"==typeof o.type&&t!==o.type)throw new Error("Type transform cannot be a string (type '"+o.type+"' for token '"+t+"')");var a=o.match;return o.match=Array.isArray(a)?a:a?[a]:[],o.match.sort((function(e,t){return n(e)&&n(t)?0:n(t)?-1:n(e)?1:t.length-e.length})),o}function u(e){return Array.isArray(e)?function(e){for(var t=[],r=0;r0)throw new Error("RegExp has capture groups: "+b+"\nUse (?: … ) instead");if(!m.lineBreaks&&b.test("\n"))throw new Error("Rule should declare lineBreaks: "+b);h.push(o(v))}}var S=i&&i.fallback,x=r&&!S?"ym":"gm",_=r||S?"":"|";return!0===u&&(x+="u"),{regexp:new RegExp(s(h)+_,x),groups:p,fast:c,error:i||f}}function h(e,t,r){var n=e&&(e.push||e.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var d=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};d.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},d.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},d.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},d.prototype.popState=function(){this.setState(this.stack.pop())},d.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var m=r?function(e,t){return e.exec(t)}:function(e,t){var r=e.exec(t);return 0===r[0].length?null:r};function g(){return this.value}if(d.prototype._getGroup=function(e){for(var t=this.groups.length,r=0;r":">",'"':""","'":"'","/":"/","`":"`","=":"="};var l=/\s*/,u=/\s+/,f=/\s*=/,p=/\s*\}/,h=/#|\^|\/|>|\{|&|=|!/;function d(e){this.string=e,this.tail=e,this.pos=0}function m(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function g(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}d.prototype.eos=function(){return""===this.tail},d.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var r=t[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},d.prototype.scanUntil=function(e){var t,r=this.tail.search(e);switch(r){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=t.length,t},m.prototype.push=function(e){return new m(e,this)},m.prototype.lookup=function(e){var t,n,o,s=this.cache;if(s.hasOwnProperty(e))t=s[e];else{for(var a,c,l,u=this,f=!1;u;){if(e.indexOf(".")>0)for(a=u.view,c=e.split("."),l=0;null!=a&&l0?i[i.length-1][4]:r;break;default:n.push(t)}return r}(function(e){for(var t,r,n=[],i=0,o=e.length;i"===s?a=this.renderPartial(o,t,r,i):"&"===s?a=this.unescapedValue(o,t):"name"===s?a=this.escapedValue(o,t,i):"text"===s&&(a=this.rawValue(o)),void 0!==a&&(c+=a);return c},g.prototype.renderSection=function(e,n,i,o,s){var a=this,c="",l=n.lookup(e[1]);if(l){if(t(l))for(var u=0,f=l.length;u0||!r)&&(i[o]=n+i[o]);return i.join("\n")},g.prototype.renderPartial=function(e,t,n,i){if(n){var o=this.getConfigTags(i),s=r(n)?n(e[1]):n[e[1]];if(null!=s){var a=e[6],c=e[5],l=e[4],u=s;0==c&&l&&(u=this.indentPartial(s,l,a));var f=this.parse(u,o);return this.renderTokens(f,t,n,u,i)}}},g.prototype.unescapedValue=function(e,t){var r=t.lookup(e[1]);if(null!=r)return r},g.prototype.escapedValue=function(e,t,r){var n=this.getConfigEscape(r)||y.escape,i=t.lookup(e[1]);if(null!=i)return"number"==typeof i&&n===y.escape?String(i):n(i)},g.prototype.rawValue=function(e){return e[1]},g.prototype.getConfigTags=function(e){return t(e)?e:e&&"object"==typeof e?e.tags:void 0},g.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!t(e)?e.escape:void 0};var y={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){w.templateCache=e},get templateCache(){return w.templateCache}},w=new g;return y.clearCache=function(){return w.clearCache()},y.parse=function(e,t){return w.parse(e,t)},y.render=function(e,r,n,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((t(o=e)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)'));var o;return w.render(e,r,n,i)},y.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return c[e]}))},y.Scanner=d,y.Context=m,y.Writer=g,y}()},3171:e=>{e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&"\\"===e[3]){var i=e[2];"?"!==i&&"."!==i||"\\\\"!==e.slice(0,2)||(e=e.slice(2),n="//")}var o=e.split(/[/\\]+/);return!1!==t&&""===o[o.length-1]&&o.pop(),n+o.join("/")}},8985:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0,t.Deferred=class{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise(((e,t)=>{this.reject=t,this.resolve=e}))}}},7279:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EndOfStreamError=t.defaultMessages=void 0,t.defaultMessages="End-Of-Stream";class r extends Error{constructor(){super(t.defaultMessages)}}t.EndOfStreamError=r},6654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamReader=t.EndOfStreamError=void 0;const n=r(7279),i=r(8985);var o=r(7279);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}}),t.StreamReader=class{constructor(e){if(this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",(()=>this.reject(new n.EndOfStreamError))),this.s.once("error",(e=>this.reject(e))),this.s.once("close",(()=>this.reject(new Error("Stream closed"))))}async peek(e,t,r){const n=await this.read(e,t,r);return this.peekQueue.push(e.subarray(t,t+n)),n}async read(e,t,r){if(0===r)return 0;if(0===this.peekQueue.length&&this.endOfStream)throw new n.EndOfStreamError;let i=r,o=0;for(;this.peekQueue.length>0&&i>0;){const r=this.peekQueue.pop();if(!r)throw new Error("peekData should be defined");const n=Math.min(r.length,i);e.set(r.subarray(0,n),t+o),o+=n,i-=n,n0&&!this.endOfStream;){const r=Math.min(i,1048576),n=await this.readFromStream(e,t+o,r);if(o+=n,n{this.readDeferred(n)})),n.deferred.promise}}readDeferred(e){const t=this.s.read(e.length);t?(e.buffer.set(t,e.offset),e.deferred.resolve(t.length),this.deferred=null):this.s.once("readable",(()=>{this.readDeferred(e)}))}reject(e){this.endOfStream=!0,this.deferred&&(this.deferred.reject(e),this.deferred=null)}}},5167:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamReader=t.EndOfStreamError=void 0;var n=r(7279);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(6654);Object.defineProperty(t,"StreamReader",{enumerable:!0,get:function(){return i.StreamReader}})},9444:(e,t,r)=>{"use strict";e.exports=r(6087)},1006:(e,t,r)=>{"use strict";const n=r(1017),i="\\\\/",o=`[^${i}]`,s="\\.",a="\\/",c="[^/]",l=`(?:${a}|$)`,u=`(?:^|${a})`,f=`${s}{1,2}${l}`,p={DOT_LITERAL:s,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:a,ONE_CHAR:"(?=.)",QMARK:c,END_ANCHOR:l,DOTS_SLASH:f,NO_DOT:`(?!${s})`,NO_DOTS:`(?!${u}${f})`,NO_DOT_SLASH:`(?!${s}{0,1}${l})`,NO_DOTS_SLASH:`(?!${f})`,QMARK_NO_DOT:`[^.${a}]`,STAR:`${c}*?`,START_ANCHOR:u},h={...p,SLASH_LITERAL:`[${i}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${s}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${i}])${s}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?h:p}},3376:(e,t,r)=>{"use strict";const n=r(1006),i=r(8702),{MAX_LENGTH:o,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:l}=n,u=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return r},f=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,p=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=l[e]||e;const r={...t},h="number"==typeof r.maxLength?Math.min(o,r.maxLength):o;let d=e.length;if(d>h)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${h}`);const m={type:"bos",value:"",output:r.prepend||""},g=[m],y=r.capture?"":"?:",w=i.isWindows(t),v=n.globChars(w),b=n.extglobChars(v),{DOT_LITERAL:S,PLUS_LITERAL:x,SLASH_LITERAL:_,ONE_CHAR:E,DOTS_SLASH:k,NO_DOT:A,NO_DOT_SLASH:O,NO_DOTS_SLASH:C,QMARK:T,QMARK_NO_DOT:R,STAR:N,START_ANCHOR:F}=v,P=e=>`(${y}(?:(?!${F}${e.dot?k:S}).)*?)`,I=r.dot?"":A,L=r.dot?T:R;let D=!0===r.bash?P(r):N;r.capture&&(D=`(${D})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const j={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};e=i.removePrefix(e,j),d=e.length;const $=[],M=[],B=[];let H,z=m;const U=()=>j.index===d-1,W=j.peek=(t=1)=>e[j.index+t],G=j.advance=()=>e[++j.index]||"",q=()=>e.slice(j.index+1),V=(e="",t=0)=>{j.consumed+=e,j.index+=t},K=e=>{j.output+=null!=e.output?e.output:e.value,V(e.value)},Y=()=>{let e=1;for(;"!"===W()&&("("!==W(2)||"?"===W(3));)G(),j.start++,e++;return e%2!=0&&(j.negated=!0,j.start++,!0)},J=e=>{j[e]++,B.push(e)},Z=e=>{j[e]--,B.pop()},Q=e=>{if("globstar"===z.type){const t=j.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||$.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(j.output=j.output.slice(0,-z.output.length),z.type="star",z.value="*",z.output=D,j.output+=z.output)}if($.length&&"paren"!==e.type&&($[$.length-1].inner+=e.value),(e.value||e.output)&&K(e),z&&"text"===z.type&&"text"===e.type)return z.value+=e.value,void(z.output=(z.output||"")+e.value);e.prev=z,g.push(e),z=e},X=(e,t)=>{const n={...b[t],conditions:1,inner:""};n.prev=z,n.parens=j.parens,n.output=j.output;const i=(r.capture?"(":"")+n.open;J("parens"),Q({type:e,value:t,output:j.output?"":E}),Q({type:"paren",extglob:!0,value:G(),output:i}),$.push(n)},ee=e=>{let n,i=e.close+(r.capture?")":"");if("negate"===e.type){let o=D;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(o=P(r)),(o!==D||U()||/^\)+$/.test(q()))&&(i=e.close=`)$))${o}`),e.inner.includes("*")&&(n=q())&&/^\.[^\\/.]+$/.test(n)){const r=p(n,{...t,fastpaths:!1}).output;i=e.close=`)${r})${o})`}"bos"===e.prev.type&&(j.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:H,output:i}),Z("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,o=e.replace(c,((e,t,r,i,o,s)=>"\\"===i?(n=!0,e):"?"===i?t?t+i+(o?T.repeat(o.length):""):0===s?L+(o?T.repeat(o.length):""):T.repeat(r.length):"."===i?S.repeat(r.length):"*"===i?t?t+i+(o?D:""):D:t?e:`\\${e}`));return!0===n&&(o=!0===r.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),o===e&&!0===r.contains?(j.output=e,j):(j.output=i.wrapOutput(o,j,t),j)}for(;!U();){if(H=G(),"\0"===H)continue;if("\\"===H){const e=W();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){H+="\\",Q({type:"text",value:H});continue}const t=/^\\+/.exec(q());let n=0;if(t&&t[0].length>2&&(n=t[0].length,j.index+=n,n%2!=0&&(H+="\\")),!0===r.unescape?H=G():H+=G(),0===j.brackets){Q({type:"text",value:H});continue}}if(j.brackets>0&&("]"!==H||"["===z.value||"[^"===z.value)){if(!1!==r.posix&&":"===H){const e=z.value.slice(1);if(e.includes("[")&&(z.posix=!0,e.includes(":"))){const e=z.value.lastIndexOf("["),t=z.value.slice(0,e),r=z.value.slice(e+2),n=s[r];if(n){z.value=t+n,j.backtrack=!0,G(),m.output||1!==g.indexOf(z)||(m.output=E);continue}}}("["===H&&":"!==W()||"-"===H&&"]"===W())&&(H=`\\${H}`),"]"!==H||"["!==z.value&&"[^"!==z.value||(H=`\\${H}`),!0===r.posix&&"!"===H&&"["===z.value&&(H="^"),z.value+=H,K({value:H});continue}if(1===j.quotes&&'"'!==H){H=i.escapeRegex(H),z.value+=H,K({value:H});continue}if('"'===H){j.quotes=1===j.quotes?0:1,!0===r.keepQuotes&&Q({type:"text",value:H});continue}if("("===H){J("parens"),Q({type:"paren",value:H});continue}if(")"===H){if(0===j.parens&&!0===r.strictBrackets)throw new SyntaxError(f("opening","("));const e=$[$.length-1];if(e&&j.parens===e.parens+1){ee($.pop());continue}Q({type:"paren",value:H,output:j.parens?")":"\\)"}),Z("parens");continue}if("["===H){if(!0!==r.nobracket&&q().includes("]"))J("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(f("closing","]"));H=`\\${H}`}Q({type:"bracket",value:H});continue}if("]"===H){if(!0===r.nobracket||z&&"bracket"===z.type&&1===z.value.length){Q({type:"text",value:H,output:`\\${H}`});continue}if(0===j.brackets){if(!0===r.strictBrackets)throw new SyntaxError(f("opening","["));Q({type:"text",value:H,output:`\\${H}`});continue}Z("brackets");const e=z.value.slice(1);if(!0===z.posix||"^"!==e[0]||e.includes("/")||(H=`/${H}`),z.value+=H,K({value:H}),!1===r.literalBrackets||i.hasRegexChars(e))continue;const t=i.escapeRegex(z.value);if(j.output=j.output.slice(0,-z.value.length),!0===r.literalBrackets){j.output+=t,z.value=t;continue}z.value=`(${y}${t}|${z.value})`,j.output+=z.value;continue}if("{"===H&&!0!==r.nobrace){J("braces");const e={type:"brace",value:H,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};M.push(e),Q(e);continue}if("}"===H){const e=M[M.length-1];if(!0===r.nobrace||!e){Q({type:"text",value:H,output:H});continue}let t=")";if(!0===e.dots){const e=g.slice(),n=[];for(let t=e.length-1;t>=0&&(g.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=u(n,r),j.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=j.output.slice(0,e.outputIndex),n=j.tokens.slice(e.tokensIndex);e.value=e.output="\\{",H=t="\\}",j.output=r;for(const e of n)j.output+=e.output||e.value}Q({type:"brace",value:H,output:t}),Z("braces"),M.pop();continue}if("|"===H){$.length>0&&$[$.length-1].conditions++,Q({type:"text",value:H});continue}if(","===H){let e=H;const t=M[M.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:H,output:e});continue}if("/"===H){if("dot"===z.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",g.pop(),z=m;continue}Q({type:"slash",value:H,output:_});continue}if("."===H){if(j.braces>0&&"dot"===z.type){"."===z.value&&(z.output=S);const e=M[M.length-1];z.type="dots",z.output+=H,z.value+=H,e.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==z.type&&"slash"!==z.type){Q({type:"text",value:H,output:S});continue}Q({type:"dot",value:H,output:S});continue}if("?"===H){if((!z||"("!==z.value)&&!0!==r.noextglob&&"("===W()&&"?"!==W(2)){X("qmark",H);continue}if(z&&"paren"===z.type){const e=W();let t=H;if("<"===e&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===z.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(q()))&&(t=`\\${H}`),Q({type:"text",value:H,output:t});continue}if(!0!==r.dot&&("slash"===z.type||"bos"===z.type)){Q({type:"qmark",value:H,output:R});continue}Q({type:"qmark",value:H,output:T});continue}if("!"===H){if(!0!==r.noextglob&&"("===W()&&("?"!==W(2)||!/[!=<:]/.test(W(3)))){X("negate",H);continue}if(!0!==r.nonegate&&0===j.index){Y();continue}}if("+"===H){if(!0!==r.noextglob&&"("===W()&&"?"!==W(2)){X("plus",H);continue}if(z&&"("===z.value||!1===r.regex){Q({type:"plus",value:H,output:x});continue}if(z&&("bracket"===z.type||"paren"===z.type||"brace"===z.type)||j.parens>0){Q({type:"plus",value:H});continue}Q({type:"plus",value:x});continue}if("@"===H){if(!0!==r.noextglob&&"("===W()&&"?"!==W(2)){Q({type:"at",extglob:!0,value:H,output:""});continue}Q({type:"text",value:H});continue}if("*"!==H){"$"!==H&&"^"!==H||(H=`\\${H}`);const e=a.exec(q());e&&(H+=e[0],j.index+=e[0].length),Q({type:"text",value:H});continue}if(z&&("globstar"===z.type||!0===z.star)){z.type="star",z.star=!0,z.value+=H,z.output=D,j.backtrack=!0,j.globstar=!0,V(H);continue}let t=q();if(!0!==r.noextglob&&/^\([^?]/.test(t)){X("star",H);continue}if("star"===z.type){if(!0===r.noglobstar){V(H);continue}const n=z.prev,i=n.prev,o="slash"===n.type||"bos"===n.type,s=i&&("star"===i.type||"globstar"===i.type);if(!0===r.bash&&(!o||t[0]&&"/"!==t[0])){Q({type:"star",value:H,output:""});continue}const a=j.braces>0&&("comma"===n.type||"brace"===n.type),c=$.length&&("pipe"===n.type||"paren"===n.type);if(!o&&"paren"!==n.type&&!a&&!c){Q({type:"star",value:H,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[j.index+4];if(r&&"/"!==r)break;t=t.slice(3),V("/**",3)}if("bos"===n.type&&U()){z.type="globstar",z.value+=H,z.output=P(r),j.output=z.output,j.globstar=!0,V(H);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!s&&U()){j.output=j.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type="globstar",z.output=P(r)+(r.strictSlashes?")":"|$)"),z.value+=H,j.globstar=!0,j.output+=n.output+z.output,V(H);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";j.output=j.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type="globstar",z.output=`${P(r)}${_}|${_}${e})`,z.value+=H,j.output+=n.output+z.output,j.globstar=!0,V(H+G()),Q({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){z.type="globstar",z.value+=H,z.output=`(?:^|${_}|${P(r)}${_})`,j.output=z.output,j.globstar=!0,V(H+G()),Q({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-z.output.length),z.type="globstar",z.output=P(r),z.value+=H,j.output+=z.output,j.globstar=!0,V(H);continue}const n={type:"star",value:H,output:D};!0!==r.bash?!z||"bracket"!==z.type&&"paren"!==z.type||!0!==r.regex?(j.index!==j.start&&"slash"!==z.type&&"dot"!==z.type||("dot"===z.type?(j.output+=O,z.output+=O):!0===r.dot?(j.output+=C,z.output+=C):(j.output+=I,z.output+=I),"*"!==W()&&(j.output+=E,z.output+=E)),Q(n)):(n.output=H,Q(n)):(n.output=".*?","bos"!==z.type&&"slash"!==z.type||(n.output=I+n.output),Q(n))}for(;j.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(f("closing","]"));j.output=i.escapeLast(j.output,"["),Z("brackets")}for(;j.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(f("closing",")"));j.output=i.escapeLast(j.output,"("),Z("parens")}for(;j.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(f("closing","}"));j.output=i.escapeLast(j.output,"{"),Z("braces")}if(!0===r.strictSlashes||"star"!==z.type&&"bracket"!==z.type||Q({type:"maybe_slash",value:"",output:`${_}?`}),!0===j.backtrack){j.output="";for(const e of j.tokens)j.output+=null!=e.output?e.output:e.value,e.suffix&&(j.output+=e.suffix)}return j};p.fastpaths=(e,t)=>{const r={...t},s="number"==typeof r.maxLength?Math.min(o,r.maxLength):o,a=e.length;if(a>s)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`);e=l[e]||e;const c=i.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:m,NO_DOTS_SLASH:g,STAR:y,START_ANCHOR:w}=n.globChars(c),v=r.dot?m:d,b=r.dot?g:d,S=r.capture?"":"?:";let x=!0===r.bash?".*?":y;r.capture&&(x=`(${x})`);const _=e=>!0===e.noglobstar?x:`(${S}(?:(?!${w}${e.dot?h:u}).)*?)`,E=e=>{switch(e){case"*":return`${v}${p}${x}`;case".*":return`${u}${p}${x}`;case"*.*":return`${v}${x}${u}${p}${x}`;case"*/*":return`${v}${x}${f}${p}${b}${x}`;case"**":return v+_(r);case"**/*":return`(?:${v}${_(r)}${f})?${b}${p}${x}`;case"**/*.*":return`(?:${v}${_(r)}${f})?${b}${x}${u}${p}${x}`;case"**/.*":return`(?:${v}${_(r)}${f})?${u}${p}${x}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=E(t[1]);if(!r)return;return r+u+t[2]}}},k=i.removePrefix(e,{negated:!1,prefix:""});let A=E(k);return A&&!0!==r.strictSlashes&&(A+=`${f}?`),A},e.exports=p},6087:(e,t,r)=>{"use strict";const n=r(1017),i=r(3921),o=r(3376),s=r(8702),a=r(1006),c=(e,t,r=!1)=>{if(Array.isArray(e)){const n=e.map((e=>c(e,t,r))),i=e=>{for(const t of n){const r=t(e);if(r)return r}return!1};return i}const n=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!n)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},a=s.isWindows(t),l=n?c.compileRe(e,t):c.makeRe(e,t,!1,!0),u=l.state;delete l.state;let f=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};f=c(o.ignore,e,r)}const p=(r,n=!1)=>{const{isMatch:i,match:s,output:p}=c.test(r,l,t,{glob:e,posix:a}),h={glob:e,state:u,regex:l,posix:a,input:r,output:p,match:s,isMatch:i};return"function"==typeof o.onResult&&o.onResult(h),!1===i?(h.isMatch=!1,!!n&&h):f(r)?("function"==typeof o.onIgnore&&o.onIgnore(h),h.isMatch=!1,!!n&&h):("function"==typeof o.onMatch&&o.onMatch(h),!n||h)};return r&&(p.state=u),p};c.test=(e,t,r,{glob:n,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const o=r||{},a=o.format||(i?s.toPosixSlashes:null);let l=e===n,u=l&&a?a(e):e;return!1===l&&(u=a?a(e):e,l=u===n),!1!==l&&!0!==o.capture||(l=!0===o.matchBase||!0===o.basename?c.matchBase(e,t,r,i):t.exec(u)),{isMatch:Boolean(l),match:l,output:u}},c.matchBase=(e,t,r,i=s.isWindows(r))=>(t instanceof RegExp?t:c.makeRe(t,r)).test(n.basename(e)),c.isMatch=(e,t,r)=>c(t,r)(e),c.parse=(e,t)=>Array.isArray(e)?e.map((e=>c.parse(e,t))):o(e,{...t,fastpaths:!1}),c.scan=(e,t)=>i(e,t),c.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;const i=t||{},o=i.contains?"":"^",s=i.contains?"":"$";let a=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const l=c.toRegex(a,t);return!0===n&&(l.state=e),l},c.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=o.fastpaths(e,t)),i.output||(i=o(e,t)),c.compileRe(i,t,r,n)},c.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},c.constants=a,e.exports=c},3921:(e,t,r)=>{"use strict";const n=r(8702),{CHAR_ASTERISK:i,CHAR_AT:o,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:w}=r(1006),v=e=>e===u||e===s,b=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const r=t||{},S=e.length-1,x=!0===r.parts||!0===r.scanToEnd,_=[],E=[],k=[];let A,O,C=e,T=-1,R=0,N=0,F=!1,P=!1,I=!1,L=!1,D=!1,j=!1,$=!1,M=!1,B=!1,H=!1,z=0,U={value:"",depth:0,isGlob:!1};const W=()=>T>=S,G=()=>(A=O,C.charCodeAt(++T));for(;T0&&(V=C.slice(0,R),C=C.slice(R),N-=R),q&&!0===I&&N>0?(q=C.slice(0,N),K=C.slice(N)):!0===I?(q="",K=C):q=C,q&&""!==q&&"/"!==q&&q!==C&&v(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),!0===r.unescape&&(K&&(K=n.removeBackslashes(K)),q&&!0===$&&(q=n.removeBackslashes(q)));const Y={prefix:V,input:e,start:R,base:q,glob:K,isBrace:F,isBracket:P,isGlob:I,isExtglob:L,isGlobstar:D,negated:M,negatedExtglob:B};if(!0===r.tokens&&(Y.maxDepth=0,v(O)||E.push(U),Y.tokens=E),!0===r.parts||!0===r.tokens){let t;for(let n=0;n<_.length;n++){const i=t?t+1:R,o=_[n],s=e.slice(i,o);r.tokens&&(0===n&&0!==R?(E[n].isPrefix=!0,E[n].value=V):E[n].value=s,b(E[n]),Y.maxDepth+=E[n].depth),0===n&&""===s||k.push(s),t=o}if(t&&t+1{"use strict";const n=r(1017),i="win32"===process.platform,{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(1006);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(c,"\\$1"),t.toPosixSlashes=e=>e.replace(o,"/"),t.removeBackslashes=e=>e.replace(s,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===i||"\\"===n.sep,t.escapeLast=(e,r,n)=>{const i=e.lastIndexOf(r,n);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,r,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let n=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n}},8356:(e,t,r)=>{"use strict";const n=r(7147),{Readable:i}=r(2781),o=r(1017),{promisify:s}=r(3837),a=r(9444),c=s(n.readdir),l=s(n.stat),u=s(n.lstat),f=s(n.realpath),p="READDIRP_RECURSIVE_ERROR",h=new Set(["ENOENT","EPERM","EACCES","ELOOP",p]),d="files",m="directories",g="files_directories",y="all",w=[d,m,g,y],[v,b]=process.versions.node.split(".").slice(0,2).map((e=>Number.parseInt(e,10))),S="win32"===process.platform&&(v>10||10===v&&b>=5),x=e=>{if(void 0!==e){if("function"==typeof e)return e;if("string"==typeof e){const t=a(e.trim());return e=>t(e.basename)}if(Array.isArray(e)){const t=[],r=[];for(const n of e){const e=n.trim();"!"===e.charAt(0)?r.push(a(e.slice(1))):t.push(a(e))}return r.length>0?t.length>0?e=>t.some((t=>t(e.basename)))&&!r.some((t=>t(e.basename))):e=>!r.some((t=>t(e.basename))):e=>t.some((t=>t(e.basename)))}}};class _ extends i{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:d,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const t={..._.defaultOptions,...e},{root:r,type:i}=t;this._fileFilter=x(t.fileFilter),this._directoryFilter=x(t.directoryFilter);const s=t.lstat?u:l;this._stat=S?e=>s(e,{bigint:!0}):s,this._maxDepth=t.depth,this._wantsDir=[m,g,y].includes(i),this._wantsFile=[d,g,y].includes(i),this._wantsEverything=i===y,this._root=o.resolve(r),this._isDirent="Dirent"in n&&!t.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(r,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:t,depth:r,files:n=[]}=this.parent||{};if(n.length>0){const i=n.splice(0,e).map((e=>this._formatEntry(e,t)));for(const t of await Promise.all(i)){if(this.destroyed)return;const n=await this._getEntryType(t);"directory"===n&&this._directoryFilter(t)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(t.fullPath,r+1)),this._wantsDir&&(this.push(t),e--)):("file"===n||this._includeAsFile(t))&&this._fileFilter(t)&&this._wantsFile&&(this.push(t),e--)}}else{const e=this.parents.pop();if(!e){this.push(null);break}if(this.parent=await e,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(e,t){let r;try{r=await c(e,this._rdOptions)}catch(e){this._onError(e)}return{files:r,depth:t,path:e}}async _formatEntry(e,t){let r;try{const n=this._isDirent?e.name:e,i=o.resolve(o.join(t,n));r={path:o.relative(this._root,i),fullPath:i,basename:n},r[this._statsProp]=this._isDirent?e:await this._stat(i)}catch(e){this._onError(e)}return r}_onError(e){var t;t=e,h.has(t.code)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const t=e&&e[this._statsProp];if(t){if(t.isFile())return"file";if(t.isDirectory())return"directory";if(t&&t.isSymbolicLink()){const t=e.fullPath;try{const e=await f(t),r=await u(e);if(r.isFile())return"file";if(r.isDirectory()){const r=e.length;if(t.startsWith(e)&&t.substr(r,1)===o.sep){const r=new Error(`Circular symlink detected: "${t}" points to "${e}"`);return r.code=p,this._onError(r)}return"directory"}}catch(e){this._onError(e)}}}}_includeAsFile(e){const t=e&&e[this._statsProp];return t&&this._wantsEverything&&!t.isDirectory()}}const E=(e,t={})=>{let r=t.entryType||t.type;if("both"===r&&(r=g),r&&(t.type=r),!e)throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");if("string"!=typeof e)throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!w.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${w.join(", ")}`);return t.root=e,new _(t)};E.promise=(e,t={})=>new Promise(((r,n)=>{const i=[];E(e,t).on("data",(e=>i.push(e))).on("end",(()=>r(i))).on("error",(e=>n(e)))})),E.ReaddirpStream=_,E.default=E,e.exports=E},842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTokenizer=void 0;const n=r(5167);t.AbstractTokenizer=class{constructor(e){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}}async readToken(e,t=this.position){const r=Buffer.alloc(e.len);if(await this.readBuffer(r,{position:t})t)return this.position+=t,t}return this.position+=e,e}async close(){}normalizeOptions(e,t){if(t&&void 0!==t.position&&t.position{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferTokenizer=void 0;const n=r(5167),i=r(842);class o extends i.AbstractTokenizer{constructor(e,t){super(t),this.uint8Array=e,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:e.length}async readBuffer(e,t){if(t&&t.position){if(t.position{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromFile=t.FileTokenizer=void 0;const n=r(842),i=r(5167),o=r(7209);class s extends n.AbstractTokenizer{constructor(e,t){super(t),this.fd=e}async readBuffer(e,t){const r=this.normalizeOptions(e,t);this.position=r.position;const n=await o.read(this.fd,e,r.offset,r.length,r.position);if(this.position+=n.bytesRead,n.bytesRead{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readFile=t.writeFileSync=t.writeFile=t.read=t.open=t.close=t.stat=t.createReadStream=t.pathExists=void 0;const n=r(7147);t.pathExists=n.existsSync,t.createReadStream=n.createReadStream,t.stat=async function(e){return new Promise(((t,r)=>{n.stat(e,((e,n)=>{e?r(e):t(n)}))}))},t.close=async function(e){return new Promise(((t,r)=>{n.close(e,(e=>{e?r(e):t()}))}))},t.open=async function(e,t){return new Promise(((r,i)=>{n.open(e,t,((e,t)=>{e?i(e):r(t)}))}))},t.read=async function(e,t,r,i,o){return new Promise(((s,a)=>{n.read(e,t,r,i,o,((e,t,r)=>{e?a(e):s({bytesRead:t,buffer:r})}))}))},t.writeFile=async function(e,t){return new Promise(((r,i)=>{n.writeFile(e,t,(e=>{e?i(e):r()}))}))},t.writeFileSync=function(e,t){n.writeFileSync(e,t)},t.readFile=async function(e){return new Promise(((t,r)=>{n.readFile(e,((e,n)=>{e?r(e):t(n)}))}))}},599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadStreamTokenizer=void 0;const n=r(842),i=r(5167);class o extends n.AbstractTokenizer{constructor(e,t){super(t),this.streamReader=new i.StreamReader(e)}async getFileInfo(){return this.fileInfo}async readBuffer(e,t){const r=this.normalizeOptions(e,t),n=r.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(e,t);if(n<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===r.length)return 0;const o=await this.streamReader.read(e,r.offset,r.length);if(this.position+=o,(!t||!t.mayBeLess)&&o0){const i=new Uint8Array(r.length+t);return n=await this.peekBuffer(i,{mayBeLess:r.mayBeLess}),e.set(i.subarray(t),r.offset),n-t}if(t<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(e,r.offset,r.length)}catch(e){if(t&&t.mayBeLess&&e instanceof i.EndOfStreamError)return 0;throw e}if(!r.mayBeLess&&n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromBuffer=t.fromStream=t.EndOfStreamError=void 0;const n=r(599),i=r(778);var o=r(5167);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}}),t.fromStream=function(e,t){return t=t||{},new n.ReadStreamTokenizer(e,t)},t.fromBuffer=function(e,t){return new i.BufferTokenizer(e,t)}},6597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromStream=t.fromBuffer=t.EndOfStreamError=t.fromFile=void 0;const n=r(7209),i=r(5849);var o=r(7859);Object.defineProperty(t,"fromFile",{enumerable:!0,get:function(){return o.fromFile}});var s=r(5849);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return s.EndOfStreamError}}),Object.defineProperty(t,"fromBuffer",{enumerable:!0,get:function(){return s.fromBuffer}}),t.fromStream=async function(e,t){if(t=t||{},e.path){const r=await n.stat(e.path);t.path=e.path,t.size=r.size}return i.fromStream(e,t)}},2130:(e,t,r)=>{"use strict";const n=r(2037),i=r(6224),o=r(6560),{env:s}=process;let a;function c(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const r=a||0;if("dumb"===s.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||"codeship"===s.CI_NAME?1:r;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:r}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?a=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=1),"FORCE_COLOR"in s&&(a="true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(parseInt(s.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return c(l(e,e&&e.isTTY))},stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}},5702:(e,t,r)=>{"use strict";const n=r(9924),i=(e,t,r)=>{if(!1===n(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===n(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...r};"boolean"==typeof o.strictZeros&&(o.relaxZeros=!1===o.strictZeros);let c=e+":"+t+"="+String(o.relaxZeros)+String(o.shorthand)+String(o.capture)+String(o.wrap);if(i.cache.hasOwnProperty(c))return i.cache[c].result;let l=Math.min(e,t),u=Math.max(e,t);if(1===Math.abs(l-u)){let r=e+"|"+t;return o.capture?`(${r})`:!1===o.wrap?r:`(?:${r})`}let f=h(e)||h(t),p={min:e,max:t,a:l,b:u},d=[],m=[];return f&&(p.isPadded=f,p.maxLen=String(p.max).length),l<0&&(m=s(u<0?Math.abs(u):1,Math.abs(l),p,o),l=p.a=0),u>=0&&(d=s(l,u,p,o)),p.negatives=m,p.positives=d,p.result=function(e,t,r){let n=a(e,t,"-",!1)||[],i=a(t,e,"",!1)||[],o=a(e,t,"-?",!0)||[];return n.concat(o).concat(i).join("|")}(m,d),!0===o.capture?p.result=`(${p.result})`:!1!==o.wrap&&d.length+m.length>1&&(p.result=`(?:${p.result})`),i.cache[c]=p,p.result};function o(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=function(e,t){let r=[];for(let n=0;n1&&i.count.pop(),i.count.push(c.count[0]),i.string=i.pattern+p(i.count),l=t+1)}return a}function a(e,t,r,n,i){let o=[];for(let i of e){let{string:e}=i;n||l(t,"string",e)||o.push(r+e),n&&l(t,"string",e)&&o.push(r+e)}return o}function c(e,t){return e>t?1:t>e?-1:0}function l(e,t,r){return e.some((e=>e[t]===r))}function u(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function f(e,t){return e-e%Math.pow(10,t)}function p(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function h(e){return/^-?(0+)\d/.test(e)}function d(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=!1!==r.relaxZeros;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}i.cache={},i.clearCache=()=>i.cache={},e.exports=i},3416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnsiStringType=t.StringType=t.BufferType=t.Uint8ArrayType=t.IgnoreType=t.Float80_LE=t.Float80_BE=t.Float64_LE=t.Float64_BE=t.Float32_LE=t.Float32_BE=t.Float16_LE=t.Float16_BE=t.INT64_BE=t.UINT64_BE=t.INT64_LE=t.UINT64_LE=t.INT32_LE=t.INT32_BE=t.INT24_BE=t.INT24_LE=t.INT16_LE=t.INT16_BE=t.INT8=t.UINT32_BE=t.UINT32_LE=t.UINT24_BE=t.UINT24_LE=t.UINT16_BE=t.UINT16_LE=t.UINT8=void 0;const n=r(645);function i(e){return new DataView(e.buffer,e.byteOffset)}t.UINT8={len:1,get:(e,t)=>i(e).getUint8(t),put:(e,t,r)=>(i(e).setUint8(t,r),t+1)},t.UINT16_LE={len:2,get:(e,t)=>i(e).getUint16(t,!0),put:(e,t,r)=>(i(e).setUint16(t,r,!0),t+2)},t.UINT16_BE={len:2,get:(e,t)=>i(e).getUint16(t),put:(e,t,r)=>(i(e).setUint16(t,r),t+2)},t.UINT24_LE={len:3,get(e,t){const r=i(e);return r.getUint8(t)+(r.getUint16(t+1,!0)<<8)},put(e,t,r){const n=i(e);return n.setUint8(t,255&r),n.setUint16(t+1,r>>8,!0),t+3}},t.UINT24_BE={len:3,get(e,t){const r=i(e);return(r.getUint16(t)<<8)+r.getUint8(t+2)},put(e,t,r){const n=i(e);return n.setUint16(t,r>>8),n.setUint8(t+2,255&r),t+3}},t.UINT32_LE={len:4,get:(e,t)=>i(e).getUint32(t,!0),put:(e,t,r)=>(i(e).setUint32(t,r,!0),t+4)},t.UINT32_BE={len:4,get:(e,t)=>i(e).getUint32(t),put:(e,t,r)=>(i(e).setUint32(t,r),t+4)},t.INT8={len:1,get:(e,t)=>i(e).getInt8(t),put:(e,t,r)=>(i(e).setInt8(t,r),t+1)},t.INT16_BE={len:2,get:(e,t)=>i(e).getInt16(t),put:(e,t,r)=>(i(e).setInt16(t,r),t+2)},t.INT16_LE={len:2,get:(e,t)=>i(e).getInt16(t,!0),put:(e,t,r)=>(i(e).setInt16(t,r,!0),t+2)},t.INT24_LE={len:3,get(e,r){const n=t.UINT24_LE.get(e,r);return n>8388607?n-16777216:n},put(e,t,r){const n=i(e);return n.setUint8(t,255&r),n.setUint16(t+1,r>>8,!0),t+3}},t.INT24_BE={len:3,get(e,r){const n=t.UINT24_BE.get(e,r);return n>8388607?n-16777216:n},put(e,t,r){const n=i(e);return n.setUint16(t,r>>8),n.setUint8(t+2,255&r),t+3}},t.INT32_BE={len:4,get:(e,t)=>i(e).getInt32(t),put:(e,t,r)=>(i(e).setInt32(t,r),t+4)},t.INT32_LE={len:4,get:(e,t)=>i(e).getInt32(t,!0),put:(e,t,r)=>(i(e).setInt32(t,r,!0),t+4)},t.UINT64_LE={len:8,get:(e,t)=>i(e).getBigUint64(t,!0),put:(e,t,r)=>(i(e).setBigUint64(t,r,!0),t+8)},t.INT64_LE={len:8,get:(e,t)=>i(e).getBigInt64(t,!0),put:(e,t,r)=>(i(e).setBigInt64(t,r,!0),t+8)},t.UINT64_BE={len:8,get:(e,t)=>i(e).getBigUint64(t),put:(e,t,r)=>(i(e).setBigUint64(t,r),t+8)},t.INT64_BE={len:8,get:(e,t)=>i(e).getBigInt64(t),put:(e,t,r)=>(i(e).setBigInt64(t,r),t+8)},t.Float16_BE={len:2,get(e,t){return n.read(e,t,!1,10,this.len)},put(e,t,r){return n.write(e,r,t,!1,10,this.len),t+this.len}},t.Float16_LE={len:2,get(e,t){return n.read(e,t,!0,10,this.len)},put(e,t,r){return n.write(e,r,t,!0,10,this.len),t+this.len}},t.Float32_BE={len:4,get:(e,t)=>i(e).getFloat32(t),put:(e,t,r)=>(i(e).setFloat32(t,r),t+4)},t.Float32_LE={len:4,get:(e,t)=>i(e).getFloat32(t,!0),put:(e,t,r)=>(i(e).setFloat32(t,r,!0),t+4)},t.Float64_BE={len:8,get:(e,t)=>i(e).getFloat64(t),put:(e,t,r)=>(i(e).setFloat64(t,r),t+8)},t.Float64_LE={len:8,get:(e,t)=>i(e).getFloat64(t,!0),put:(e,t,r)=>(i(e).setFloat64(t,r,!0),t+8)},t.Float80_BE={len:10,get(e,t){return n.read(e,t,!1,63,this.len)},put(e,t,r){return n.write(e,r,t,!1,63,this.len),t+this.len}},t.Float80_LE={len:10,get(e,t){return n.read(e,t,!0,63,this.len)},put(e,t,r){return n.write(e,r,t,!0,63,this.len),t+this.len}},t.IgnoreType=class{constructor(e){this.len=e}get(e,t){}},t.Uint8ArrayType=class{constructor(e){this.len=e}get(e,t){return e.subarray(t,t+this.len)}},t.BufferType=class{constructor(e){this.len=e}get(e,t){return Buffer.from(e.subarray(t,t+this.len))}},t.StringType=class{constructor(e,t){this.len=e,this.encoding=t}get(e,t){return Buffer.from(e).toString(this.encoding,t,t+this.len)}};class o{constructor(e){this.len=e}static decode(e,t,r){let n="";for(let i=t;i>10),56320+(1023&e)))}static singleByteDecoder(e){if(o.inRange(e,0,127))return e;const t=o.windows1252[e-128];if(null===t)throw Error("invaliding encoding");return t}get(e,t=0){return o.decode(e,t,t+this.len)}}t.AnsiStringType=o,o.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]},5775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=joplin},9200:(e,t)=>{"use strict";var r,n,i,o,s,a,c,l,u,f;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentScriptType=t.SettingStorage=t.AppType=t.SettingItemSubType=t.SettingItemType=t.ToolbarButtonLocation=t.isContextMenuItemLocation=t.MenuItemLocation=t.ModelType=t.ImportModuleOutputFormat=t.FileSystemItem=void 0,(f=t.FileSystemItem||(t.FileSystemItem={})).File="file",f.Directory="directory",(u=t.ImportModuleOutputFormat||(t.ImportModuleOutputFormat={})).Markdown="md",u.Html="html",(l=t.ModelType||(t.ModelType={}))[l.Note=1]="Note",l[l.Folder=2]="Folder",l[l.Setting=3]="Setting",l[l.Resource=4]="Resource",l[l.Tag=5]="Tag",l[l.NoteTag=6]="NoteTag",l[l.Search=7]="Search",l[l.Alarm=8]="Alarm",l[l.MasterKey=9]="MasterKey",l[l.ItemChange=10]="ItemChange",l[l.NoteResource=11]="NoteResource",l[l.ResourceLocalState=12]="ResourceLocalState",l[l.Revision=13]="Revision",l[l.Migration=14]="Migration",l[l.SmartFilter=15]="SmartFilter",l[l.Command=16]="Command",function(e){e.File="file",e.Edit="edit",e.View="view",e.Note="note",e.Tools="tools",e.Help="help",e.Context="context",e.NoteListContextMenu="noteListContextMenu",e.EditorContextMenu="editorContextMenu",e.FolderContextMenu="folderContextMenu",e.TagContextMenu="tagContextMenu"}(r=t.MenuItemLocation||(t.MenuItemLocation={})),t.isContextMenuItemLocation=function(e){return[r.Context,r.NoteListContextMenu,r.EditorContextMenu,r.FolderContextMenu,r.TagContextMenu].includes(e)},(c=t.ToolbarButtonLocation||(t.ToolbarButtonLocation={})).NoteToolbar="noteToolbar",c.EditorToolbar="editorToolbar",(a=t.SettingItemType||(t.SettingItemType={}))[a.Int=1]="Int",a[a.String=2]="String",a[a.Bool=3]="Bool",a[a.Array=4]="Array",a[a.Object=5]="Object",a[a.Button=6]="Button",(s=t.SettingItemSubType||(t.SettingItemSubType={})).FilePathAndArgs="file_path_and_args",s.FilePath="file_path",s.DirectoryPath="directory_path",(o=t.AppType||(t.AppType={})).Desktop="desktop",o.Mobile="mobile",o.Cli="cli",(i=t.SettingStorage||(t.SettingStorage={}))[i.Database=1]="Database",i[i.File=2]="File",(n=t.ContentScriptType||(t.ContentScriptType={})).MarkdownItPlugin="markdownItPlugin",n.CodeMirrorPlugin="codeMirrorPlugin"},7843:function(e,t){"use strict";var r,n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.filePattern=void 0,(r=t.filePattern||(t.filePattern={})).escapeRegExp=function(e){return n(this,void 0,void 0,(function*(){return e.replace(/((?=n.length?r.length:n.length;for(let e=0;eo)return 1;if(t!==o)return-1;i=0}return i}))},e.tagNote=function(e,t){return n(this,void 0,void 0,(function*(){let n=null;if(""!==t.trim()&&(n=t.split(/\s*,\s*/)),null!=n)for(let t of n){if(""==t.trim())continue;let n=yield r(t);if(null!=n)try{yield i.default.data.post(["tags",n,"notes"],null,{id:e})}catch(e){throw new o("tagNote","note tagging error\n"+e.message)}}}))},e.createTag=t,e.getTagId=r,e.getNotebookId=function e(t,r){return n(this,void 0,void 0,(function*(){if(!1===r){if(-1!==t.indexOf("\\")){const r=t.split("\\");let n="";for(let t of r)n=yield e(t,n);return n}return e(t,"")}{let e=1;do{var n=yield i.default.data.get(["folders"],{fields:"id,title,parent_id",limit:50,page:e++});for(const e of n.items)if(t==e.title&&r==e.parent_id)return e.id}while(n.has_more)}return null}))}}(t.helper||(t.helper={}))},7017:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.i18n=t.Hotfolder=void 0;const i=r(5775),o=r(7954),s=r(7843),a=r(1017),c=r(7769),l=r(3949),u=r(4310),f=r(7228),p=r(7377),h=r(5674);let d;t.i18n=d,t.Hotfolder=class{constructor(){this.watchers=[],this.dialogBox=null,this.log=p.default,this.setupLog()}init(){return n(this,void 0,void 0,(function*(){this.log.verbose("Hotfolder Plugin init");const e=yield i.default.plugins.installationDir();this.logFile=a.join(e,"hotfolder.log"),yield this.confLocale(a.join(e,"locales")),yield this.registerSettings(),this.dialogBox=yield i.default.views.dialogs.create("hotfolderDialog"),yield this.deleteLogFile(),yield this.fileLogging(!0),yield this.registerHotfolders()}))}logSettings(){return n(this,void 0,void 0,(function*(){this.log.verbose("Settings:"),this.log.verbose("hotfolderAnz:"+this.hotfolderAnz);for(let e=0;ethis.logFile,this.log.transports.file.level=t):this.log.transports.file.level=!1}))}deleteLogFile(){return n(this,void 0,void 0,(function*(){if(this.log.verbose("Delete log file"),h.existsSync(this.logFile))try{yield h.unlinkSync(this.logFile)}catch(e){this.log.error("deleteLogFile: "+e.message)}}))}confLocale(e){return n(this,void 0,void 0,(function*(){this.log.verbose("Conf translation");const r=yield i.default.settings.globalValue("locale");t.i18n=d=new f.I18n({locales:["en_US","de_DE"],defaultLocale:"en_US",fallbacks:{"en_*":"en_US"},updateFiles:!1,retryInDefaultLocale:!0,syncFiles:!1,directory:e,objectNotation:!0}),d.setLocale(r),this.log.verbose("localesDir: "+e),this.log.verbose("JoplinLocale: "+r),this.log.verbose("i18nLocale: "+d.getLocale())}))}registerSettings(){return n(this,void 0,void 0,(function*(){yield u.settings.register(this.logFile),yield this.loadSettings()}))}loadSettings(){return n(this,void 0,void 0,(function*(){this.log.verbose("loadSettings"),this.hotfolderAnz=yield i.default.settings.value("hotfolderAnz")}))}showMsg(e,t=null){return n(this,void 0,void 0,(function*(){const r=[];r.push("

Hotfolder plugin

"),t&&r.push(`

${t}

`),r.push(`
${e}`),r.push("
"),this.log.verbose(`showMsg (${t}): ${e}`),yield i.default.views.dialogs.setButtons(this.dialogBox,[{id:"ok"}]),yield i.default.views.dialogs.setHtml(this.dialogBox,r.join("\n")),yield i.default.views.dialogs.open(this.dialogBox)}))}fileFinished(e){return n(this,void 0,void 0,(function*(){this.log.verbose(`Check file finished: ${e.path}`);let t=null;try{t=yield h.statSync(e.path)}catch(t){return this.log.error(`Error for fs stats: ${e.path}`),this.log.error(t.message),!1}if(null==e.prevStat)return e.prevStat=t,yield this.setFileRecheck(e),!1;if(t.mtimeMs!==e.prevStat.mtimeMs||t.blocks!=e.prevStat.blocks||t.size!=e.prevStat.size)return e.prevStat=t,yield this.setFileRecheck(e),!1;this.log.verbose(`File "${e.path}" finished via stats`),e.prevStat=t;try{const t=h.openSync(e.path,"r+");return h.closeSync(t),this.log.info(`File "${e.path}" finished writing`),!0}catch(e){this.log.verbose(e.message)}return yield this.setFileRecheck(e),!1}))}setFileRecheck(e){return n(this,void 0,void 0,(function*(){this.log.verbose(`File "${e.path}" recheck in ${e.intervallFileFinished}`),setTimeout(this.processFile.bind(this),1e3*e.intervallFileFinished,e)}))}registerHotfolders(){return n(this,void 0,void 0,(function*(){if(yield this.logSettings(),this.log.verbose("Register Hotfolders"),this.watchers.length>0){this.log.info("Close open watchers");for(let e of this.watchers)yield e.close().then((()=>this.log.verbose("Hotfolder closed")));this.watchers=[]}for(let e=0;en(this,void 0,void 0,(function*(){this.log.info(`${r}: Initial scan complete. Ready for changes`)})))).on("change",((e,t)=>n(this,void 0,void 0,(function*(){this.log.verbose(`${r}: File ${e} (${t.size}) has been changed`)})))).on("unlink",(e=>n(this,void 0,void 0,(function*(){this.log.verbose(`${r}: File ${e} has been removed`)})))).on("addDir",(e=>n(this,void 0,void 0,(function*(){this.log.verbose(`${r}: Directory ${e} has been added`)})))).on("unlinkDir",(e=>n(this,void 0,void 0,(function*(){this.log.verbose(`${r}: Directory ${e} has been removed`)})))).on("error",(e=>n(this,void 0,void 0,(function*(){this.log.error(`${r}: Watcher error: ${e}`)})))).on("add",((t,i)=>n(this,void 0,void 0,(function*(){this.log.info(`${r}: File "${t}" (${i.size}) has been added`),this.processFile({path:t,hotfolderNr:e,prevStat:null,intervallFileFinished:s.intervallFileFinished})})))),this.log.verbose(`${r}: Add chokidar`),this.watchers.push(c)}else this.log.info(`${r}: No hotfolder path set`)}}))}processFile(e){return n(this,void 0,void 0,(function*(){const t=yield u.settings.getHotfolder(e.hotfolderNr);if(!(yield this.fileFinished(e)))return;this.log.verbose(`processFile (Hotfolder ${e.hotfolderNr}): ${e.path}`);const r=a.basename(e.path),n=yield s.filePattern.match(r,t.ignoreFiles);if(0!==n)return void this.log.verbose(`File is ignored! ignoreFileUser: ${n}`);const i=a.extname(e.path);let o=null,c=r.replace(i,"");""!==t.importNotebook.trim()&&!1===(yield l.helper.checkNotebookExist(t.importNotebook.trim()))&&this.showMsg(d.__("msg.error.notebookNotExist",t.importNotebook.trim(),0==e.hotfolderNr?"":e.hotfolderNr+1)),o=-1!==t.extensionsAddAsText.split(/\s*,\s*/).indexOf(i)?yield this.importAsText(e.path,c,t.notebookId,t.textAsTodo):yield this.importAsAttachment(e.path,c,t.notebookId),this.log.verbose(`tagNote: ${o.id} with ${t.importTags}`);try{yield l.helper.tagNote(o.id,t.importTags)}catch(e){return void this.log.error(e)}this.log.verbose(`Remove: ${e.path}`);try{h.removeSync(e.path)}catch(e){return void this.log.error(e)}}))}importAsText(e,t,r,o){return n(this,void 0,void 0,(function*(){this.log.verbose("importAsText");let n=null;try{n=h.readFileSync(e)}catch(e){return this.log.error("Error on readFileSync"),void this.log.error(e)}return yield i.default.data.post(["notes"],null,{body:n.toString(),title:t,parent_id:r,is_todo:o?1:0})}))}importAsAttachment(e,t,r){return n(this,void 0,void 0,(function*(){this.log.verbose("importAsAttachment");const n=yield c.fromFile(e),o=a.basename(e);let s=yield this.createResources(e,o),l=null;if(s.id)return l="["+o+"](:/"+s.id+")",void 0!==n&&"image"===n.mime.split("/")[0]&&(l="!"+l),yield i.default.data.post(["notes"],null,{body:l,title:t,parent_id:r})}))}createResources(e,t){return n(this,void 0,void 0,(function*(){this.log.verbose("createResources");try{return yield i.default.data.post(["resources"],null,{title:t},[{path:e}])}catch(e){return this.log.error("Error on create resources"),this.log.error(e),null}}))}}},3607:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=r(5775),o=new(r(7017).Hotfolder);i.default.plugins.register({onStart:function(){return n(this,void 0,void 0,(function*(){console.info("Hotfolder plugin started!"),yield o.init(),i.default.settings.onChange((e=>n(this,void 0,void 0,(function*(){console.log("Settings changed"),yield o.loadSettings(),yield o.registerHotfolders()}))))}))}})},4310:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;const i=r(5775),o=r(9200),s=r(3949),a=r(7017);var c;(c=t.settings||(t.settings={})).register=function(e){return n(this,void 0,void 0,(function*(){let t=0;const r={},n=yield s.helper.joplinVersionInfo();do{yield i.default.settings.registerSection("hotfolderSection"+(0==t?"":t),{label:"Hotfolder"+(0==t?"":" "+(t+1).toString()),iconName:"fas fa-eye"}),r["hotfolderPath"+(0==t?"":t)]={value:"",type:o.SettingItemType.String,section:"hotfolderSection"+(0==t?"":t),public:!0,label:a.i18n.__("settings.hotfolderPath.label"),description:a.i18n.__("settings.hotfolderPath.description")},null!==n&&(yield s.helper.versionCompare(n.version,"2.10.4"))>=0&&(r["hotfolderPath"+(0==t?"":t)].subType=o.SettingItemSubType.DirectoryPath),r["ignoreFiles"+(0==t?"":t)]={value:".*",type:o.SettingItemType.String,section:"hotfolderSection"+(0==t?"":t),public:!0,label:a.i18n.__("settings.ignoreFiles.label"),description:a.i18n.__("settings.ignoreFiles.description")},r["extensionsAddAsText"+(0==t?"":t)]={value:".txt, .md",type:o.SettingItemType.String,section:"hotfolderSection"+(0==t?"":t),public:!0,label:a.i18n.__("settings.extensionsAddAsText.label"),description:a.i18n.__("settings.extensionsAddAsText.description")},r["extensionsAddTextAsTodo"+(0==t?"":t)]={value:!1,type:o.SettingItemType.Bool,section:"hotfolderSection"+(0==t?"":t),public:!0,label:a.i18n.__("settings.extensionsAddTextAsTodo.label"),description:a.i18n.__("settings.extensionsAddTextAsTodo.description")},r["importNotebook"+(0==t?"":t)]={value:"",type:o.SettingItemType.String,section:"hotfolderSection"+(0==t?"":t),public:!0,label:a.i18n.__("settings.importNotebook.label"),description:a.i18n.__("settings.importNotebook.description")},r["importTags"+(0==t?"":t)]={value:"",type:o.SettingItemType.String,section:"hotfolderSection"+(0==t?"":t),public:!0,label:a.i18n.__("settings.importTags.label"),description:a.i18n.__("settings.importTags.description")},r["intervallFileFinished"+(0==t?"":t)]={value:2,minimum:1,maximum:120,type:o.SettingItemType.Int,section:"hotfolderSection"+(0==t?"":t),public:!0,advanced:!0,label:a.i18n.__("settings.intervallFileFinished.label"),description:a.i18n.__("settings.intervallFileFinished.description")},r["usePolling"+(0==t?"":t)]={value:!1,type:o.SettingItemType.Bool,section:"hotfolderSection"+(0==t?"":t),public:!0,advanced:!0,label:a.i18n.__("settings.usePolling.label"),description:a.i18n.__("settings.usePolling.description")},r["pollingIntervall"+(0==t?"":t)]={value:100,minimum:100,type:o.SettingItemType.Int,section:"hotfolderSection"+(0==t?"":t),public:!0,advanced:!0,label:a.i18n.__("settings.pollingIntervall.label"),description:a.i18n.__("settings.pollingIntervall.description")},0===t&&(yield i.default.settings.registerSettings({hotfolderAnz:{value:1,minimum:1,maximum:10,type:o.SettingItemType.Int,section:"hotfolderSection",public:!0,label:a.i18n.__("settings.hotfolderAnz.label"),description:a.i18n.__("settings.hotfolderAnz.description")},fileLogLevel:{value:"error",type:o.SettingItemType.String,section:"hotfolderSection",isEnum:!0,public:!0,advanced:!0,label:a.i18n.__("settings.fileLogLevel.label"),description:a.i18n.__("settings.fileLogLevel.description",e),options:{false:"Off",verbose:"Verbose",info:"Info",warn:"Warning",error:"Error"}}})),t++}while(t<(yield i.default.settings.value("hotfolderAnz")));yield i.default.settings.registerSettings(r)}))},c.getHotfolder=function(e){return n(this,void 0,void 0,(function*(){let t="";0!=e&&(t=String(e));const r=yield i.default.settings.value("ignoreFiles"+t),n=yield i.default.settings.value("extensionsAddAsText"+t),o=yield i.default.settings.value("extensionsAddTextAsTodo"+t),a=yield i.default.workspace.selectedFolder(),c=yield i.default.settings.value("importNotebook"+t);let l=yield s.helper.getNotebookId(c,!1);null==l&&(l=a.id);const u=yield i.default.settings.value("importTags"+t);let f=yield i.default.settings.value("intervallFileFinished"+t);return f<1&&(f=2,yield i.default.settings.setValue("intervallFileFinished"+t,f)),{notebookId:l,importTags:u,extensionsAddAsText:n,ignoreFiles:r,textAsTodo:o,importNotebook:c,usePolling:yield i.default.settings.value("usePolling"+t),pollingIntervall:yield i.default.settings.value("pollingIntervall"+t),intervallFileFinished:f}}))}},8981:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((r,n)=>{e.call(this,...t,((e,t)=>null!=e?n(e):r(t)))}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>r(null,e)),r)}),"name",{value:e.name})}},9491:e=>{"use strict";e.exports=require("assert")},2057:e=>{"use strict";e.exports=require("constants")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},5545:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.lexer=t.states=void 0;const i=n(r(9271));t.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:e=>e.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:e=>e.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:e=>e.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:e=>e.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:e=>e.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:e=>e.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:e=>e.substring(0,e.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},t.lexer=i.default.states(t.states)},7564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.ParseError=void 0;const n=r(5545),i=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),o=e=>"plural"===e||"select"===e||"selectordinal"===e,s=["number","date","time","spellout","ordinal","duration"],a=["zero","one","two","few","many","other"];class c extends Error{constructor(e,t){super(n.lexer.formatError(e,t))}}t.ParseError=c;class l{constructor(e,t){var r,i,o,s;this.lexer=n.lexer.reset(e),this.cardinalKeys=null!==(r=null==t?void 0:t.cardinal)&&void 0!==r?r:a,this.ordinalKeys=null!==(i=null==t?void 0:t.ordinal)&&void 0!==i?i:a,this.strict=null!==(o=null==t?void 0:t.strict)&&void 0!==o&&o,this.strictPluralKeys=null===(s=null==t?void 0:t.strictPluralKeys)||void 0===s||s}parse(){return this.parseBody(!1,!0)}checkSelectKey(e,t,r){if("="===r[0]){if("select"===t)throw new c(e,`The case ${r} is not valid with select`)}else if("select"!==t){const n="plural"===t?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&n.length>0&&!n.includes(r))throw new c(e,`The ${t} case ${r} is not valid in this locale`)}}parseSelect({value:e},t,r,n){const o={type:n,arg:e,cases:[],ctx:r};"plural"===n||"selectordinal"===n?t=!0:this.strict&&(t=!1);for(const e of this.lexer)switch(e.type){case"offset":if("select"===n)throw new c(e,"Unexpected plural offset for select");if(o.cases.length>0)throw new c(e,"Plural offset must be set before cases");o.pluralOffset=Number(e.value),r.text+=e.text,r.lineBreaks+=e.lineBreaks;break;case"case":this.checkSelectKey(e,n,e.value),o.cases.push({key:e.value,tokens:this.parseBody(t),ctx:i(e)});break;case"end":return o;default:throw new c(e,`Unexpected lexer token: ${e.type}`)}throw new c(null,"Unexpected message end")}parseArgToken(e,t){const r=i(e),n=this.lexer.next();if(!n)throw new c(null,"Unexpected message end");if(r.text+=n.text,r.lineBreaks+=n.lineBreaks,this.strict&&("func-simple"===n.type||"func-args"===n.type)&&!s.includes(n.value)){const t=`Invalid strict mode function arg type: ${n.value}`;throw new c(e,t)}switch(n.type){case"end":return{type:"argument",arg:e.value,ctx:r};case"func-simple":{const t=this.lexer.next();if(!t)throw new c(null,"Unexpected message end");if("end"!==t.type)throw new c(t,`Unexpected lexer token: ${t.type}`);if(r.text+=t.text,o(n.value.toLowerCase()))throw new c(n,`Invalid type identifier: ${n.value}`);return{type:"function",arg:e.value,key:n.value,ctx:r}}case"func-args":{if(o(n.value.toLowerCase())){const e=`Invalid type identifier: ${n.value}`;throw new c(n,e)}let i=this.parseBody(!this.strict&&t);return this.strict&&i.length>0&&(i=function(e,t){let r="",n="";for(const i of t){const t=i.ctx.text;switch(n+=t,i.type){case"content":r+=i.value;break;case"argument":case"function":case"octothorpe":r+=t;break;default:throw new c(e,`Unsupported part in strict mode function arg style: ${t}`)}}return[{type:"content",value:r.trim(),ctx:Object.assign({},t[0].ctx,{text:n})}]}(e,i)),{type:"function",arg:e.value,key:n.value,param:i,ctx:r}}case"select":if(o(n.value))return this.parseSelect(e,t,r,n.value);throw new c(n,`Unexpected select type ${n.value}`);default:throw new c(n,`Unexpected lexer token: ${n.type}`)}}parseBody(e,t){const r=[];let n=null;for(const o of this.lexer)if("argument"===o.type)n&&(n=null),r.push(this.parseArgToken(o,e));else if("octothorpe"===o.type&&e)n&&(n=null),r.push({type:"octothorpe",ctx:i(o)});else{if("end"===o.type&&!t)return r;{let t=o.value;if(!e&&"quoted"===o.type&&"#"===t[0]){if(t.includes("{"))throw new c(o,`Unsupported escape pattern: ${t}`);t=o.text}n?(n.value+=t,n.ctx.text+=o.text,n.ctx.lineBreaks+=o.lineBreaks):(n={type:"content",value:t,ctx:i(o)},r.push(n))}}if(t)return r;throw new c(null,"Unexpected message end")}}t.parse=function(e,t={}){return new l(e,t).parse()}},8005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.date=void 0,t.date=function(e,t,r){var n={day:"numeric",month:"short",year:"numeric"};switch(r){case"full":n.weekday="long";case"long":n.month="long";break;case"short":n.month="numeric"}return new Date(e).toLocaleDateString(t,n)}},9840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duration=void 0,t.duration=function(e){if("number"!=typeof e&&(e=Number(e)),!isFinite(e))return String(e);var t="";e<0?(t="-",e=Math.abs(e)):e=Number(e);var r=e%60,n=[Math.round(r)===r?r:r.toFixed(3)];return e<60?n.unshift(0):(e=Math.round((e-Number(n[0]))/60),n.unshift(e%60),e>=60&&(e=Math.round((e-Number(n[0]))/60),n.unshift(e))),t+n.shift()+":"+n.map((function(e){return e<10?"0"+String(e):String(e)})).join(":")}},861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberPercent=t.numberInteger=t.numberCurrency=t.numberFmt=void 0;var r={};function n(e,t){var n=String(e)+JSON.stringify(t);return r[n]||(r[n]=new Intl.NumberFormat(e,t)),r[n]}t.numberFmt=function(e,t,r,i){var o=r&&r.split(":")||[],s=o[0],a=o[1];return n(t,{integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:a&&a.trim()||i,minimumFractionDigits:2,maximumFractionDigits:2}}[s]||{}).format(e)},t.numberCurrency=function(e,t,r){return n(t,{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2}).format(e)},t.numberInteger=function(e,t){return n(t,{maximumFractionDigits:0}).format(e)},t.numberPercent=function(e,t){return n(t,{style:"percent"}).format(e)}},3597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.time=void 0,t.time=function(e,t,r){var n={second:"numeric",minute:"numeric",hour:"numeric"};switch(r){case"full":case"long":n.timeZoneName="short";break;case"short":delete n.second}return new Date(e).toLocaleTimeString(t,n)}},7630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.time=t.numberPercent=t.numberInteger=t.numberFmt=t.numberCurrency=t.duration=t.date=void 0;var n=r(8005);Object.defineProperty(t,"date",{enumerable:!0,get:function(){return n.date}});var i=r(9840);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return i.duration}});var o=r(861);Object.defineProperty(t,"numberCurrency",{enumerable:!0,get:function(){return o.numberCurrency}}),Object.defineProperty(t,"numberFmt",{enumerable:!0,get:function(){return o.numberFmt}}),Object.defineProperty(t,"numberInteger",{enumerable:!0,get:function(){return o.numberInteger}}),Object.defineProperty(t,"numberPercent",{enumerable:!0,get:function(){return o.numberPercent}});var s=r(3597);Object.defineProperty(t,"time",{enumerable:!0,get:function(){return s.time}})},7249:(e,t)=>{"use strict";function r(e){return r[e]||(r[e]=new Intl.NumberFormat(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.reqArgs=t.select=t.plural=t.strictNumber=t.number=t._nf=void 0,t._nf=r,t.number=function(e,t,n){return r(e).format(t-n)},t.strictNumber=function(e,t,n,i){var o=t-n;if(isNaN(o))throw new Error("`"+i+"` or its offset is not a number");return r(e).format(o)},t.plural=function(e,t,r,n,i){if({}.hasOwnProperty.call(n,e))return n[e];t&&(e-=t);var o=r(e,i);return o in n?n[o]:n.other},t.select=function(e,t){return{}.hasOwnProperty.call(t,e)?t[e]:t.other},t.reqArgs=function(e,t){for(var r=0;r1==e?"one":"other",s=e=>0==e||1==e?"one":"other",a=e=>e>=0&&e<=1?"one":"other",c=e=>{const t=!String(e).split(".")[1];return 1==e&&t?"one":"other"},l=e=>"other",u=e=>1==e?"one":2==e?"two":"other";var f;f={af:o,ak:s,am:a,an:o,ar:e=>{const t=String(e).split("."),r=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ars:e=>{const t=String(e).split("."),r=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},as:a,asa:o,ast:c,az:o,bal:o,be:e=>{const t=String(e).split("."),r=Number(t[0])==e,n=r&&t[0].slice(-1),i=r&&t[0].slice(-2);return 1==n&&11!=i?"one":n>=2&&n<=4&&(i<12||i>14)?"few":r&&0==n||n>=5&&n<=9||i>=11&&i<=14?"many":"other"},bem:o,bez:o,bg:o,bho:s,bm:l,bn:a,bo:l,br:e=>{const t=String(e).split("."),r=Number(t[0])==e,n=r&&t[0].slice(-1),i=r&&t[0].slice(-2),o=r&&t[0].slice(-6);return 1==n&&11!=i&&71!=i&&91!=i?"one":2==n&&12!=i&&72!=i&&92!=i?"two":(3==n||4==n||9==n)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==o?"many":"other"},brx:o,bs:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},ca:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},ce:o,ceb:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=n.slice(-1);return i&&(1==r||2==r||3==r)||i&&4!=o&&6!=o&&9!=o||!i&&4!=s&&6!=s&&9!=s?"one":"other"},cgg:o,chr:o,ckb:o,cs:e=>{const t=String(e).split("."),r=t[0],n=!t[1];return 1==e&&n?"one":r>=2&&r<=4&&n?"few":n?"other":"many"},cy:e=>0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",da:e=>{const t=String(e).split("."),r=t[0],n=Number(t[0])==e;return 1!=e&&(n||0!=r&&1!=r)?"other":"one"},de:c,doi:a,dsb:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-2),s=n.slice(-2);return i&&1==o||1==s?"one":i&&2==o||2==s?"two":i&&(3==o||4==o)||3==s||4==s?"few":"other"},dv:o,dz:l,ee:o,el:o,en:c,eo:o,es:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e?"one":0!=r&&0==i&&n?"many":"other"},et:c,eu:o,fa:a,ff:e=>e>=0&&e<2?"one":"other",fi:c,fil:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=n.slice(-1);return i&&(1==r||2==r||3==r)||i&&4!=o&&6!=o&&9!=o||!i&&4!=s&&6!=s&&9!=s?"one":"other"},fo:o,fr:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return e>=0&&e<2?"one":0!=r&&0==i&&n?"many":"other"},fur:o,fy:c,ga:e=>{const t=String(e).split("."),r=Number(t[0])==e;return 1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},gd:e=>{const t=String(e).split("."),r=Number(t[0])==e;return 1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},gl:c,gsw:o,gu:a,guw:s,gv:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return n&&1==i?"one":n&&2==i?"two":!n||0!=o&&20!=o&&40!=o&&60!=o&&80!=o?n?"other":"many":"few"},ha:o,haw:o,he:e=>{const t=String(e).split("."),r=t[0],n=!t[1];return 1==r&&n||0==r&&!n?"one":2==r&&n?"two":"other"},hi:a,hnj:l,hr:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},hsb:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-2),s=n.slice(-2);return i&&1==o||1==s?"one":i&&2==o||2==s?"two":i&&(3==o||4==o)||3==s||4==s?"few":"other"},hu:o,hy:e=>e>=0&&e<2?"one":"other",ia:c,id:l,ig:l,ii:l,io:c,is:e=>{const t=String(e).split("."),r=t[0],n=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==e,o=r.slice(-1),s=r.slice(-2);return i&&1==o&&11!=s||n%10==1&&n%100!=11?"one":"other"},it:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},iu:u,ja:l,jbo:l,jgo:o,jmc:o,jv:l,jw:l,ka:o,kab:e=>e>=0&&e<2?"one":"other",kaj:o,kcg:o,kde:l,kea:l,kk:o,kkj:o,kl:o,km:l,kn:a,ko:l,ks:o,ksb:o,ksh:e=>0==e?"zero":1==e?"one":"other",ku:o,kw:e=>{const t=String(e).split("."),r=Number(t[0])==e,n=r&&t[0].slice(-2),i=r&&t[0].slice(-3),o=r&&t[0].slice(-5),s=r&&t[0].slice(-6);return 0==e?"zero":1==e?"one":2==n||22==n||42==n||62==n||82==n||r&&0==i&&(o>=1e3&&o<=2e4||4e4==o||6e4==o||8e4==o)||0!=e&&1e5==s?"two":3==n||23==n||43==n||63==n||83==n?"few":1==e||1!=n&&21!=n&&41!=n&&61!=n&&81!=n?"other":"many"},ky:o,lag:e=>{const t=String(e).split(".")[0];return 0==e?"zero":0!=t&&1!=t||0==e?"other":"one"},lb:o,lg:o,lij:c,lkt:l,ln:s,lo:l,lt:e=>{const t=String(e).split("."),r=t[1]||"",n=Number(t[0])==e,i=n&&t[0].slice(-1),o=n&&t[0].slice(-2);return 1==i&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":0!=r?"many":"other"},lv:e=>{const t=String(e).split("."),r=t[1]||"",n=r.length,i=Number(t[0])==e,o=i&&t[0].slice(-1),s=i&&t[0].slice(-2),a=r.slice(-2),c=r.slice(-1);return i&&0==o||s>=11&&s<=19||2==n&&a>=11&&a<=19?"zero":1==o&&11!=s||2==n&&1==c&&11!=a||2!=n&&1==c?"one":"other"},mas:o,mg:s,mgo:o,mk:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":"other"},ml:o,mn:o,mo:e=>{const t=String(e).split("."),r=!t[1],n=Number(t[0])==e&&t[0].slice(-2);return 1==e&&r?"one":!r||0==e||1!=e&&n>=1&&n<=19?"few":"other"},mr:o,ms:l,mt:e=>{const t=String(e).split("."),r=Number(t[0])==e&&t[0].slice(-2);return 1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},my:l,nah:o,naq:u,nb:o,nd:o,ne:o,nl:c,nn:o,nnh:o,no:o,nqo:l,nr:o,nso:s,ny:o,nyn:o,om:o,or:o,os:o,osa:l,pa:s,pap:o,pcm:a,pl:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return 1==e&&n?"one":n&&i>=2&&i<=4&&(o<12||o>14)?"few":n&&1!=r&&(0==i||1==i)||n&&i>=5&&i<=9||n&&o>=12&&o<=14?"many":"other"},prg:e=>{const t=String(e).split("."),r=t[1]||"",n=r.length,i=Number(t[0])==e,o=i&&t[0].slice(-1),s=i&&t[0].slice(-2),a=r.slice(-2),c=r.slice(-1);return i&&0==o||s>=11&&s<=19||2==n&&a>=11&&a<=19?"zero":1==o&&11!=s||2==n&&1==c&&11!=a||2!=n&&1==c?"one":"other"},ps:o,pt:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 0==r||1==r?"one":0!=r&&0==i&&n?"many":"other"},pt_PT:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},rm:o,ro:e=>{const t=String(e).split("."),r=!t[1],n=Number(t[0])==e&&t[0].slice(-2);return 1==e&&r?"one":!r||0==e||1!=e&&n>=1&&n<=19?"few":"other"},rof:o,ru:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return n&&1==i&&11!=o?"one":n&&i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||n&&i>=5&&i<=9||n&&o>=11&&o<=14?"many":"other"},rwk:o,sah:l,saq:o,sat:u,sc:c,scn:c,sd:o,sdh:o,se:u,seh:o,ses:l,sg:l,sh:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},shi:e=>{const t=String(e).split("."),r=Number(t[0])==e;return e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},si:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"";return 0==e||1==e||0==r&&1==n?"one":"other"},sk:e=>{const t=String(e).split("."),r=t[0],n=!t[1];return 1==e&&n?"one":r>=2&&r<=4&&n?"few":n?"other":"many"},sl:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-2);return n&&1==i?"one":n&&2==i?"two":n&&(3==i||4==i)||!n?"few":"other"},sma:u,smi:u,smj:u,smn:u,sms:u,sn:o,so:o,sq:o,sr:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},ss:o,ssy:o,st:o,su:l,sv:c,sw:c,syr:o,ta:o,te:o,teo:o,th:l,ti:s,tig:o,tk:o,tl:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=n.slice(-1);return i&&(1==r||2==r||3==r)||i&&4!=o&&6!=o&&9!=o||!i&&4!=s&&6!=s&&9!=s?"one":"other"},tn:o,to:l,tpi:l,tr:o,ts:o,tzm:e=>{const t=String(e).split("."),r=Number(t[0])==e;return 0==e||1==e||r&&e>=11&&e<=99?"one":"other"},ug:o,uk:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return n&&1==i&&11!=o?"one":n&&i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||n&&i>=5&&i<=9||n&&o>=11&&o<=14?"many":"other"},und:l,ur:c,uz:o,ve:o,vec:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},vi:l,vo:o,vun:o,wa:s,wae:o,wo:l,xh:o,xog:o,yi:c,yo:l,yue:l,zh:l,zu:a},Object.defineProperty(f,"__esModule",{value:!0}),void 0===(i="function"==typeof(n=f)?n.call(t,r,t,e):n)||(e.exports=i)},985:function(e,t,r){var n,i,o,s="zero",a="one",c="two",l="few",u="many",f="other",p={cardinal:[a,f],ordinal:[f]},h={cardinal:[a,f],ordinal:[a,f]},d={cardinal:[f],ordinal:[f]},m={cardinal:[a,c,f],ordinal:[f]};o={af:p,ak:p,am:p,an:p,ar:{cardinal:[s,a,c,l,u,f],ordinal:[f]},ars:{cardinal:[s,a,c,l,u,f],ordinal:[f]},as:{cardinal:[a,f],ordinal:[a,c,l,u,f]},asa:p,ast:p,az:{cardinal:[a,f],ordinal:[a,l,u,f]},bal:h,be:{cardinal:[a,l,u,f],ordinal:[l,f]},bem:p,bez:p,bg:p,bho:p,bm:d,bn:{cardinal:[a,f],ordinal:[a,c,l,u,f]},bo:d,br:{cardinal:[a,c,l,u,f],ordinal:[f]},brx:p,bs:{cardinal:[a,l,f],ordinal:[f]},ca:{cardinal:[a,u,f],ordinal:[a,c,l,f]},ce:p,ceb:p,cgg:p,chr:p,ckb:p,cs:{cardinal:[a,l,u,f],ordinal:[f]},cy:{cardinal:[s,a,c,l,u,f],ordinal:[s,a,c,l,u,f]},da:p,de:p,doi:p,dsb:{cardinal:[a,c,l,f],ordinal:[f]},dv:p,dz:d,ee:p,el:p,en:{cardinal:[a,f],ordinal:[a,c,l,f]},eo:p,es:{cardinal:[a,u,f],ordinal:[f]},et:p,eu:p,fa:p,ff:p,fi:p,fil:h,fo:p,fr:{cardinal:[a,u,f],ordinal:[a,f]},fur:p,fy:p,ga:{cardinal:[a,c,l,u,f],ordinal:[a,f]},gd:{cardinal:[a,c,l,f],ordinal:[a,c,l,f]},gl:p,gsw:p,gu:{cardinal:[a,f],ordinal:[a,c,l,u,f]},guw:p,gv:{cardinal:[a,c,l,u,f],ordinal:[f]},ha:p,haw:p,he:m,hi:{cardinal:[a,f],ordinal:[a,c,l,u,f]},hnj:d,hr:{cardinal:[a,l,f],ordinal:[f]},hsb:{cardinal:[a,c,l,f],ordinal:[f]},hu:h,hy:h,ia:p,id:d,ig:d,ii:d,io:p,is:p,it:{cardinal:[a,u,f],ordinal:[u,f]},iu:m,ja:d,jbo:d,jgo:p,jmc:p,jv:d,jw:d,ka:{cardinal:[a,f],ordinal:[a,u,f]},kab:p,kaj:p,kcg:p,kde:d,kea:d,kk:{cardinal:[a,f],ordinal:[u,f]},kkj:p,kl:p,km:d,kn:p,ko:d,ks:p,ksb:p,ksh:{cardinal:[s,a,f],ordinal:[f]},ku:p,kw:{cardinal:[s,a,c,l,u,f],ordinal:[a,u,f]},ky:p,lag:{cardinal:[s,a,f],ordinal:[f]},lb:p,lg:p,lij:{cardinal:[a,f],ordinal:[u,f]},lkt:d,ln:p,lo:{cardinal:[f],ordinal:[a,f]},lt:{cardinal:[a,l,u,f],ordinal:[f]},lv:{cardinal:[s,a,f],ordinal:[f]},mas:p,mg:p,mgo:p,mk:{cardinal:[a,f],ordinal:[a,c,u,f]},ml:p,mn:p,mo:{cardinal:[a,l,f],ordinal:[a,f]},mr:{cardinal:[a,f],ordinal:[a,c,l,f]},ms:{cardinal:[f],ordinal:[a,f]},mt:{cardinal:[a,c,l,u,f],ordinal:[f]},my:d,nah:p,naq:m,nb:p,nd:p,ne:h,nl:p,nn:p,nnh:p,no:p,nqo:d,nr:p,nso:p,ny:p,nyn:p,om:p,or:{cardinal:[a,f],ordinal:[a,c,l,u,f]},os:p,osa:d,pa:p,pap:p,pcm:p,pl:{cardinal:[a,l,u,f],ordinal:[f]},prg:{cardinal:[s,a,f],ordinal:[f]},ps:p,pt:{cardinal:[a,u,f],ordinal:[f]},pt_PT:{cardinal:[a,u,f],ordinal:[f]},rm:p,ro:{cardinal:[a,l,f],ordinal:[a,f]},rof:p,ru:{cardinal:[a,l,u,f],ordinal:[f]},rwk:p,sah:d,saq:p,sat:m,sc:{cardinal:[a,f],ordinal:[u,f]},scn:{cardinal:[a,f],ordinal:[u,f]},sd:p,sdh:p,se:m,seh:p,ses:d,sg:d,sh:{cardinal:[a,l,f],ordinal:[f]},shi:{cardinal:[a,l,f],ordinal:[f]},si:p,sk:{cardinal:[a,l,u,f],ordinal:[f]},sl:{cardinal:[a,c,l,f],ordinal:[f]},sma:m,smi:m,smj:m,smn:m,sms:m,sn:p,so:p,sq:{cardinal:[a,f],ordinal:[a,u,f]},sr:{cardinal:[a,l,f],ordinal:[f]},ss:p,ssy:p,st:p,su:d,sv:h,sw:p,syr:p,ta:p,te:p,teo:p,th:d,ti:p,tig:p,tk:{cardinal:[a,f],ordinal:[l,f]},tl:h,tn:p,to:d,tpi:d,tr:p,ts:p,tzm:p,ug:p,uk:{cardinal:[a,l,u,f],ordinal:[l,f]},und:d,ur:p,uz:p,ve:p,vec:{cardinal:[a,u,f],ordinal:[u,f]},vi:{cardinal:[f],ordinal:[a,f]},vo:p,vun:p,wa:p,wae:p,wo:d,xh:p,xog:p,yi:p,yo:d,yue:d,zh:d,zu:p},Object.defineProperty(o,"__esModule",{value:!0}),void 0===(i="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=i)},3585:function(e,t,r){var n,i;const o=(e,t)=>t?"other":1==e?"one":"other",s=(e,t)=>t?"other":0==e||1==e?"one":"other",a=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",c=(e,t)=>{const r=!String(e).split(".")[1];return t?"other":1==e&&r?"one":"other"},l=(e,t)=>"other",u=(e,t)=>t?"other":1==e?"one":2==e?"two":"other";var f;f={af:o,ak:s,am:a,an:o,ar:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},ars:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},as:(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",asa:o,ast:c,az:(e,t)=>{const r=String(e).split(".")[0],n=r.slice(-1),i=r.slice(-2),o=r.slice(-3);return t?1==n||2==n||5==n||7==n||8==n||20==i||50==i||70==i||80==i?"one":3==n||4==n||100==o||200==o||300==o||400==o||500==o||600==o||700==o||800==o||900==o?"few":0==r||6==n||40==i||60==i||90==i?"many":"other":1==e?"one":"other"},bal:(e,t)=>1==e?"one":"other",be:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return t?2!=i&&3!=i||12==o||13==o?"other":"few":1==i&&11!=o?"one":i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||i>=5&&i<=9||o>=11&&o<=14?"many":"other"},bem:o,bez:o,bg:o,bho:s,bm:l,bn:(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",bo:l,br:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2),s=n&&r[0].slice(-6);return t?"other":1==i&&11!=o&&71!=o&&91!=o?"one":2==i&&12!=o&&72!=o&&92!=o?"two":(3==i||4==i||9==i)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=e&&n&&0==s?"many":"other"},brx:o,bs:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ca:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},ce:o,ceb:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=i.slice(-1);return t?"other":o&&(1==n||2==n||3==n)||o&&4!=s&&6!=s&&9!=s||!o&&4!=a&&6!=a&&9!=a?"one":"other"},cgg:o,chr:o,ckb:o,cs:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==e&&i?"one":n>=2&&n<=4&&i?"few":i?"other":"many"},cy:(e,t)=>t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",da:(e,t)=>{const r=String(e).split("."),n=r[0],i=Number(r[0])==e;return t||1!=e&&(i||0!=n&&1!=n)?"other":"one"},de:c,doi:a,dsb:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-2),a=i.slice(-2);return t?"other":o&&1==s||1==a?"one":o&&2==s||2==a?"two":o&&(3==s||4==s)||3==a||4==a?"few":"other"},dv:o,dz:l,ee:o,el:o,en:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?1==o&&11!=s?"one":2==o&&12!=s?"two":3==o&&13!=s?"few":"other":1==e&&n?"one":"other"},eo:o,es:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":1==e?"one":0!=n&&0==o&&i?"many":"other"},et:c,eu:o,fa:a,ff:(e,t)=>t?"other":e>=0&&e<2?"one":"other",fi:c,fil:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=i.slice(-1);return t?1==e?"one":"other":o&&(1==n||2==n||3==n)||o&&4!=s&&6!=s&&9!=s||!o&&4!=a&&6!=a&&9!=a?"one":"other"},fo:o,fr:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=n&&0==o&&i?"many":"other"},fur:o,fy:c,ga:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":n&&e>=3&&e<=6?"few":n&&e>=7&&e<=10?"many":"other"},gd:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},gl:c,gsw:o,gu:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",guw:s,gv:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),s=n.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":!i||0!=s&&20!=s&&40!=s&&60!=s&&80!=s?i?"other":"many":"few"},ha:o,haw:o,he:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==n&&i||0==n&&!i?"one":2==n&&i?"two":"other"},hi:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",hnj:l,hr:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},hsb:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-2),a=i.slice(-2);return t?"other":o&&1==s||1==a?"one":o&&2==s||2==a?"two":o&&(3==s||4==s)||3==a||4==a?"few":"other"},hu:(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",hy:(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",ia:c,id:l,ig:l,ii:l,io:c,is:(e,t)=>{const r=String(e).split("."),n=r[0],i=(r[1]||"").replace(/0+$/,""),o=Number(r[0])==e,s=n.slice(-1),a=n.slice(-2);return t?"other":o&&1==s&&11!=a||i%10==1&&i%100!=11?"one":"other"},it:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},iu:u,ja:l,jbo:l,jgo:o,jmc:o,jv:l,jw:l,ka:(e,t)=>{const r=String(e).split(".")[0],n=r.slice(-2);return t?1==r?"one":0==r||n>=2&&n<=20||40==n||60==n||80==n?"many":"other":1==e?"one":"other"},kab:(e,t)=>t?"other":e>=0&&e<2?"one":"other",kaj:o,kcg:o,kde:l,kea:l,kk:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1);return t?6==i||9==i||n&&0==i&&0!=e?"many":"other":1==e?"one":"other"},kkj:o,kl:o,km:l,kn:a,ko:l,ks:o,ksb:o,ksh:(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",ku:o,kw:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-2),o=n&&r[0].slice(-3),s=n&&r[0].slice(-5),a=n&&r[0].slice(-6);return t?n&&e>=1&&e<=4||i>=1&&i<=4||i>=21&&i<=24||i>=41&&i<=44||i>=61&&i<=64||i>=81&&i<=84?"one":5==e||5==i?"many":"other":0==e?"zero":1==e?"one":2==i||22==i||42==i||62==i||82==i||n&&0==o&&(s>=1e3&&s<=2e4||4e4==s||6e4==s||8e4==s)||0!=e&&1e5==a?"two":3==i||23==i||43==i||63==i||83==i?"few":1==e||1!=i&&21!=i&&41!=i&&61!=i&&81!=i?"other":"many"},ky:o,lag:(e,t)=>{const r=String(e).split(".")[0];return t?"other":0==e?"zero":0!=r&&1!=r||0==e?"other":"one"},lb:o,lg:o,lij:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e;return t?11==e||8==e||i&&e>=80&&e<=89||i&&e>=800&&e<=899?"many":"other":1==e&&n?"one":"other"},lkt:l,ln:s,lo:(e,t)=>t&&1==e?"one":"other",lt:(e,t)=>{const r=String(e).split("."),n=r[1]||"",i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?"other":1==o&&(s<11||s>19)?"one":o>=2&&o<=9&&(s<11||s>19)?"few":0!=n?"many":"other"},lv:(e,t)=>{const r=String(e).split("."),n=r[1]||"",i=n.length,o=Number(r[0])==e,s=o&&r[0].slice(-1),a=o&&r[0].slice(-2),c=n.slice(-2),l=n.slice(-1);return t?"other":o&&0==s||a>=11&&a<=19||2==i&&c>=11&&c<=19?"zero":1==s&&11!=a||2==i&&1==l&&11!=c||2!=i&&1==l?"one":"other"},mas:o,mg:s,mgo:o,mk:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?1==s&&11!=a?"one":2==s&&12!=a?"two":7!=s&&8!=s||17==a||18==a?"other":"many":o&&1==s&&11!=a||1==c&&11!=l?"one":"other"},ml:o,mn:o,mo:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e&&r[0].slice(-2);return t?1==e?"one":"other":1==e&&n?"one":!n||0==e||1!=e&&i>=1&&i<=19?"few":"other"},mr:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",ms:(e,t)=>t&&1==e?"one":"other",mt:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||n>=3&&n<=10?"few":n>=11&&n<=19?"many":"other"},my:l,nah:o,naq:u,nb:o,nd:o,ne:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?n&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},nl:c,nn:o,nnh:o,no:o,nqo:l,nr:o,nso:s,ny:o,nyn:o,om:o,or:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?1==e||5==e||n&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},os:o,osa:l,pa:s,pap:o,pcm:a,pl:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),s=n.slice(-2);return t?"other":1==e&&i?"one":i&&o>=2&&o<=4&&(s<12||s>14)?"few":i&&1!=n&&(0==o||1==o)||i&&o>=5&&o<=9||i&&s>=12&&s<=14?"many":"other"},prg:(e,t)=>{const r=String(e).split("."),n=r[1]||"",i=n.length,o=Number(r[0])==e,s=o&&r[0].slice(-1),a=o&&r[0].slice(-2),c=n.slice(-2),l=n.slice(-1);return t?"other":o&&0==s||a>=11&&a<=19||2==i&&c>=11&&c<=19?"zero":1==s&&11!=a||2==i&&1==l&&11!=c||2!=i&&1==l?"one":"other"},ps:o,pt:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":0==n||1==n?"one":0!=n&&0==o&&i?"many":"other"},pt_PT:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},rm:o,ro:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e&&r[0].slice(-2);return t?1==e?"one":"other":1==e&&n?"one":!n||0==e||1!=e&&i>=1&&i<=19?"few":"other"},rof:o,ru:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),s=n.slice(-2);return t?"other":i&&1==o&&11!=s?"one":i&&o>=2&&o<=4&&(s<12||s>14)?"few":i&&0==o||i&&o>=5&&o<=9||i&&s>=11&&s<=14?"many":"other"},rwk:o,sah:l,saq:o,sat:u,sc:(e,t)=>{const r=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},scn:(e,t)=>{const r=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},sd:o,sdh:o,se:u,seh:o,ses:l,sg:l,sh:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},shi:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?"other":e>=0&&e<=1?"one":n&&e>=2&&e<=10?"few":"other"},si:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"";return t?"other":0==e||1==e||0==n&&1==i?"one":"other"},sk:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==e&&i?"one":n>=2&&n<=4&&i?"few":i?"other":"many"},sl:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":i&&(3==o||4==o)||!i?"few":"other"},sma:u,smi:u,smj:u,smn:u,sms:u,sn:o,so:o,sq:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return t?1==e?"one":4==i&&14!=o?"many":"other":1==e?"one":"other"},sr:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ss:o,ssy:o,st:o,su:l,sv:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?1!=o&&2!=o||11==s||12==s?"other":"one":1==e&&n?"one":"other"},sw:c,syr:o,ta:o,te:o,teo:o,th:l,ti:s,tig:o,tk:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-1);return t?6==n||9==n||10==e?"few":"other":1==e?"one":"other"},tl:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=i.slice(-1);return t?1==e?"one":"other":o&&(1==n||2==n||3==n)||o&&4!=s&&6!=s&&9!=s||!o&&4!=a&&6!=a&&9!=a?"one":"other"},tn:o,to:l,tpi:l,tr:o,ts:o,tzm:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?"other":0==e||1==e||n&&e>=11&&e<=99?"one":"other"},ug:o,uk:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=Number(r[0])==e,s=o&&r[0].slice(-1),a=o&&r[0].slice(-2),c=n.slice(-1),l=n.slice(-2);return t?3==s&&13!=a?"few":"other":i&&1==c&&11!=l?"one":i&&c>=2&&c<=4&&(l<12||l>14)?"few":i&&0==c||i&&c>=5&&c<=9||i&&l>=11&&l<=14?"many":"other"},und:l,ur:c,uz:o,ve:o,vec:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},vi:(e,t)=>t&&1==e?"one":"other",vo:o,vun:o,wa:s,wae:o,wo:l,xh:o,xog:o,yi:c,yo:l,yue:l,zh:l,zu:a},Object.defineProperty(f,"__esModule",{value:!0}),void 0===(i="function"==typeof(n=f)?n.call(t,r,t,e):n)||(e.exports=i)},4534:(e,t,r)=>{const n=r(6309);e.exports={identifier:function(e,t){t&&(e+=" "+function(e){let t=0;for(let r=0;r{e.exports={ES3:{break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},ESnext:{await:!0,debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0}}},5133:e=>{"use strict";e.exports=JSON.parse('["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]')},4733:e=>{"use strict";e.exports={i8:"0.15.1"}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.c=__webpack_module_cache__;var __webpack_exports__=__webpack_require__(__webpack_require__.s=3607)})();index.js.LICENSE.txt000644 0000002451 14721363057011262 0ustar00000000 000000 /*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */ /*! * fill-range * * Copyright (c) 2014-present, Jon Schlinkert. * Licensed under the MIT License. */ /*! * is-extglob * * Copyright (c) 2014-2016, Jon Schlinkert. * Licensed under the MIT License. */ /*! * is-glob * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ /*! * is-number * * Copyright (c) 2014-present, Jon Schlinkert. * Released under the MIT License. */ /*! * normalize-path * * Copyright (c) 2014-2018, Jon Schlinkert. * Released under the MIT License. */ /*! * to-regex-range * * Copyright (c) 2015-present, Jon Schlinkert. * Released under the MIT License. */ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ /** * @author Created by Marcus Spiegel on 2011-03-25. * @link https://github.com/mashpie/i18n-node * @license http://opensource.org/licenses/MIT */ locales/de_DE.json000644 0000004164 14721363057011176 0ustar00000000 000000 { "settings": { "hotfolderPath": { "label": "Hotfolder Pfad", "description": "Ordner von welchem die Dateien importiert werden sollen" }, "ignoreFiles": { "label": "Dateien ignorieren", "description": "Durch Kommata getrennte Liste von Dateien welche ignoriert werden sollen" }, "extensionsAddAsText": { "label": "Als Text hinzufügen", "description": "Durch Kommata getrennte Liste von Dateiendungen, welche als Text importiert werden sollen" }, "importNotebook": { "label": "Notizbuch", "description": "Wird kein Notizbuch angegeben, erfolgt der Import in das aktuelle Notizbuch. Unternotizbücher können über Project\\Scans definiert werden" }, "importTags": { "label": "Tags", "description": "Durch Kommata getrennte Liste der Tags, die der Notiz hinzugefügt werden sollen" }, "hotfolderAnz": { "label": "Anzahl an Hotfolder", "description": "Zusätzliche Hotfolder erscheinen auf der linken Seite (Bitte starten Sie Joplin nach einer Änderung neu)" }, "extensionsAddTextAsTodo": { "label": "Text Notizen als ToDo erstellen", "description": "Text Notizen werden als Todo importiert, alle anderen Dateitypen werden als Anhänge in normale Notizen importiert" }, "fileLogLevel": { "label": "Protokollierungsebene", "description": "Protokollierungsebene für die Logdatei %s" }, "intervallFileFinished": { "label": "Datei fertig", "description": "All wieviel Sekunden soll geprüft werden ob die Datei im Hotfolder fertig ist (Prüft die Datei größe und Dateilock zusätzlich)" }, "usePolling": { "label": "Abfragen", "description": "Kann für Hotfolder im Netzwerk nötig sein. Führt zu einer etwas höheren Systemauslastung" }, "pollingIntervall": { "label": "Abfrage intervall", "description": "Intervall in millisekunden zur Abfrage des Hotfolders" } }, "msg": { "error": { "notebookNotExist": "Das Notebook `%s` für das Importziel vom Hotfolder %s existiert nicht, das aktuelle Notizbuch wird genutzt" } } } locales/en_US.json000644 0000003704 14721363057011246 0ustar00000000 000000 { "settings": { "hotfolderPath": { "label": "Hotfolder Path", "description": "Folder from which the files should be imported" }, "ignoreFiles": { "label": "Ignore Files", "description": "Comma separated list of files which will be ignored" }, "extensionsAddAsText": { "label": "Add as text", "description": "Comma separated list of file extensions, which will be imported as text" }, "importNotebook": { "label": "Notebook", "description": "If no notebook is specified, the import is made to the current notebook. Subnotebooks can be defined via Project\\Scans" }, "importTags": { "label": "Tags", "description": "Comma separated list of tags to be added to the note" }, "hotfolderAnz": { "label": "Number of Hotfolders", "description": "Additional Hotfolder Sections appear on the left (Please restart Joplin after a change)" }, "extensionsAddTextAsTodo": { "label": "Add text notes as Todo", "description": "Text only notes will be imported as Todo type notes, all other file types will be imported as attachments in regular notes" }, "fileLogLevel": { "label": "Loglevel", "description": "Log level for the log file %s" }, "intervallFileFinished": { "label": "File ready", "description": "Every how many seconds should be checked whether the file in the hotfolder is ready (Checks the file size and file lock additionally)" }, "usePolling": { "label": "Polling", "description": "May be necessary for Hotfolders in the network. Leads to a slightly higher system load" }, "pollingIntervall": { "label": "Polling intervall", "description": "Interval in milliseconds for querying the hotfolder" } }, "msg": { "error": { "notebookNotExist": "Notebook `%s` for import destination of Hotfolder %s doesn't exist use actual notebook for imports" } } } manifest.json000644 0000001320 14721363057010411 0ustar00000000 000000 { "manifest_version": 1, "id": "io.github.jackgruber.hotfolder", "app_min_version": "1.8.1", "version": "1.2.1", "name": "Hotfolder", "description": "Monitors a locale folder and import the files as a new note.", "author": "JackGruber", "homepage_url": "https://github.com/JackGruber/joplin-plugin-hotfolder/blob/master/README.md", "repository_url": "https://github.com/JackGruber/joplin-plugin-hotfolder", "keywords": ["hotfolder", "import", "monitor"], "categories": ["productivity", "files"], "platforms": ["desktop"], "screenshots": [ { "src": "img/main.png", "label": "Screenshot: Showing the hotfolder settings" } ], "icons": { "256": "img/icon_256.png" } }