@utoo/web 1.5.3-rc.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/loaderWorkerInline.js +1 -1
- package/esm/project/InternalProject.js +5 -5
- package/esm/project/Project.js +1 -2
- package/esm/serviceWorkerBundle.js +1 -1
- package/esm/threadWorkerInline.js +1 -1
- package/esm/types.d.ts +0 -1
- package/esm/utoo/index.js +23 -23
- package/esm/utoo/index_bg.wasm +0 -0
- package/esm/webpackLoaders/cjs.d.ts +1 -1
- package/esm/webpackLoaders/cjs.js +12 -47
- package/esm/webpackLoaders/loaderWorkerPool.d.ts +1 -1
- package/esm/webpackLoaders/loaderWorkerPool.js +1 -2
- package/esm/webpackLoaders/polyfills/fsPolyfill/utils.js +7 -12
- package/esm/webpackLoaders/types.d.ts +0 -1
- package/esm/webpackLoaders/worker.js +19 -69
- package/esm/workerInline.js +1 -1
- package/package.json +1 -1
|
@@ -38,14 +38,14 @@ class InternalEndpoint {
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
async build(options) {
|
|
41
|
-
var _a, _b, _c
|
|
41
|
+
var _a, _b, _c;
|
|
42
42
|
await this.wasmInit;
|
|
43
43
|
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.loaderWorkerUrl) && !this.loaderWorkerPoolInitialized) {
|
|
44
|
-
runLoaderWorkerPool(this.options.cwd, this.options.loaderWorkerUrl, (_b = this.options) === null || _b === void 0 ? void 0 : _b.loadersImportMap
|
|
44
|
+
runLoaderWorkerPool(this.options.cwd, this.options.loaderWorkerUrl, (_b = this.options) === null || _b === void 0 ? void 0 : _b.loadersImportMap);
|
|
45
45
|
this.loaderWorkerPoolInitialized = true;
|
|
46
46
|
}
|
|
47
47
|
const buildOptions = new BuildOptions();
|
|
48
|
-
buildOptions.cleanup = (
|
|
48
|
+
buildOptions.cleanup = (_c = options === null || options === void 0 ? void 0 : options.cleanup) !== null && _c !== void 0 ? _c : false;
|
|
49
49
|
if (options === null || options === void 0 ? void 0 : options.config) {
|
|
50
50
|
buildOptions.config = options.config;
|
|
51
51
|
}
|
|
@@ -53,9 +53,9 @@ class InternalEndpoint {
|
|
|
53
53
|
}
|
|
54
54
|
// @ts-expect-error - Comlink delivers (config, onUpdate) as separate args, not as options object
|
|
55
55
|
async dev(config, onUpdate) {
|
|
56
|
-
var _a, _b
|
|
56
|
+
var _a, _b;
|
|
57
57
|
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.loaderWorkerUrl) && !this.loaderWorkerPoolInitialized) {
|
|
58
|
-
runLoaderWorkerPool(this.options.cwd, this.options.loaderWorkerUrl, (_b = this.options) === null || _b === void 0 ? void 0 : _b.loadersImportMap
|
|
58
|
+
runLoaderWorkerPool(this.options.cwd, this.options.loaderWorkerUrl, (_b = this.options) === null || _b === void 0 ? void 0 : _b.loadersImportMap);
|
|
59
59
|
this.loaderWorkerPoolInitialized = true;
|
|
60
60
|
}
|
|
61
61
|
this.rootTask = await ProjectInternal.entrypointsSubscribe(config, (result) => {
|
package/esm/project/Project.js
CHANGED
|
@@ -26,7 +26,7 @@ export class Project {
|
|
|
26
26
|
var _a, _b;
|
|
27
27
|
this.options = options;
|
|
28
28
|
_Project_mount.set(this, void 0);
|
|
29
|
-
const { cwd, workerUrl, wasmUrl, threadWorkerUrl, serviceWorker, logFilter, loadersImportMap,
|
|
29
|
+
const { cwd, workerUrl, wasmUrl, threadWorkerUrl, serviceWorker, logFilter, loadersImportMap, } = options;
|
|
30
30
|
this.cwd = cwd;
|
|
31
31
|
this.serviceWorkerOptions = serviceWorker;
|
|
32
32
|
const { port1, port2 } = new MessageChannel();
|
|
@@ -51,7 +51,6 @@ export class Project {
|
|
|
51
51
|
threadWorkerUrl,
|
|
52
52
|
loaderWorkerUrl: this.options.loaderWorkerUrl,
|
|
53
53
|
loadersImportMap,
|
|
54
|
-
loadersImportMapFetchCache,
|
|
55
54
|
logFilter,
|
|
56
55
|
}), "f");
|
|
57
56
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see serviceWorkerBundle.js.LICENSE.txt */
|
|
2
|
-
!function webpackUniversalModuleDefinition(root,factory){if("object"==typeof exports&&"object"==typeof module)module.exports=factory();else if("function"==typeof define&&define.amd)define([],factory);else{var a=factory();for(var i in a)("object"==typeof exports?exports:root)[i]=a[i]}}(self,()=>(()=>{var __webpack_modules__={"../../node_modules/@babel/highlight/node_modules/chalk/index.js"(module,__unused_webpack_exports,__webpack_require__){"use strict";var process=__webpack_require__("../../node_modules/node-stdlib-browser/cjs/proxy/process.js");const escapeStringRegexp=__webpack_require__("../../node_modules/escape-string-regexp/index.js"),ansiStyles=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/index.js"),stdoutColor=__webpack_require__("../../node_modules/supports-color/browser.js").stdout,template=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/templates.js"),isSimpleWindowsTerm="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),levelMapping=["ansi","ansi","ansi256","ansi16m"],skipModels=new Set(["gray"]),styles=Object.create(null);function applyOptions(obj,options){options=options||{};const scLevel=stdoutColor?stdoutColor.level:0;obj.level=void 0===options.level?scLevel:options.level,obj.enabled="enabled"in options?options.enabled:obj.level>0}function Chalk(options){if(!this||!(this instanceof Chalk)||this.template){const chalk={};return applyOptions(chalk,options),chalk.template=function(){const args=[].slice.call(arguments);return chalkTag.apply(null,[chalk.template].concat(args))},Object.setPrototypeOf(chalk,Chalk.prototype),Object.setPrototypeOf(chalk.template,chalk),chalk.template.constructor=Chalk,chalk.template}applyOptions(this,options)}isSimpleWindowsTerm&&(ansiStyles.blue.open="[94m");for(const key of Object.keys(ansiStyles))ansiStyles[key].closeRe=new RegExp(escapeStringRegexp(ansiStyles[key].close),"g"),styles[key]={get(){const codes=ansiStyles[key];return build.call(this,this._styles?this._styles.concat(codes):[codes],this._empty,key)}};styles.visible={get(){return build.call(this,this._styles||[],!0,"visible")}},ansiStyles.color.closeRe=new RegExp(escapeStringRegexp(ansiStyles.color.close),"g");for(const model of Object.keys(ansiStyles.color.ansi))skipModels.has(model)||(styles[model]={get(){const level=this.level;return function(){const codes={open:ansiStyles.color[levelMapping[level]][model].apply(null,arguments),close:ansiStyles.color.close,closeRe:ansiStyles.color.closeRe};return build.call(this,this._styles?this._styles.concat(codes):[codes],this._empty,model)}}});ansiStyles.bgColor.closeRe=new RegExp(escapeStringRegexp(ansiStyles.bgColor.close),"g");for(const model of Object.keys(ansiStyles.bgColor.ansi)){if(skipModels.has(model))continue;styles["bg"+model[0].toUpperCase()+model.slice(1)]={get(){const level=this.level;return function(){const codes={open:ansiStyles.bgColor[levelMapping[level]][model].apply(null,arguments),close:ansiStyles.bgColor.close,closeRe:ansiStyles.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(codes):[codes],this._empty,model)}}}}const proto=Object.defineProperties(()=>{},styles);function build(_styles,_empty,key){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=_styles,builder._empty=_empty;const self=this;return Object.defineProperty(builder,"level",{enumerable:!0,get:()=>self.level,set(level){self.level=level}}),Object.defineProperty(builder,"enabled",{enumerable:!0,get:()=>self.enabled,set(enabled){self.enabled=enabled}}),builder.hasGrey=this.hasGrey||"gray"===key||"grey"===key,builder.__proto__=proto,builder}function applyStyle(){const args=arguments,argsLen=args.length;let str=String(arguments[0]);if(0===argsLen)return"";if(argsLen>1)for(let a=1;a<argsLen;a++)str+=" "+args[a];if(!this.enabled||this.level<=0||!str)return this._empty?"":str;const originalDim=ansiStyles.dim.open;isSimpleWindowsTerm&&this.hasGrey&&(ansiStyles.dim.open="");for(const code of this._styles.slice().reverse())str=code.open+str.replace(code.closeRe,code.open)+code.close,str=str.replace(/\r?\n/g,`${code.close}$&${code.open}`);return ansiStyles.dim.open=originalDim,str}function chalkTag(chalk,strings){if(!Array.isArray(strings))return[].slice.call(arguments,1).join(" ");const args=[].slice.call(arguments,2),parts=[strings.raw[0]];for(let i=1;i<strings.length;i++)parts.push(String(args[i-1]).replace(/[{}\\]/g,"\\$&")),parts.push(String(strings.raw[i]));return template(chalk,parts.join(""))}Object.defineProperties(Chalk.prototype,styles),module.exports=Chalk(),module.exports.supportsColor=stdoutColor,module.exports.default=module.exports},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/index.js"(module,__unused_webpack_exports,__webpack_require__){"use strict";module=__webpack_require__.nmd(module);const colorConvert=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/index.js"),wrapAnsi16=(fn,offset)=>function(){return`[${fn.apply(colorConvert,arguments)+offset}m`},wrapAnsi256=(fn,offset)=>function(){const code=fn.apply(colorConvert,arguments);return`[${38+offset};5;${code}m`},wrapAnsi16m=(fn,offset)=>function(){const rgb=fn.apply(colorConvert,arguments);return`[${38+offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`};Object.defineProperty(module,"exports",{enumerable:!0,get:function assembleStyles(){const codes=new Map,styles={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles.color.grey=styles.color.gray;for(const groupName of Object.keys(styles)){const group=styles[groupName];for(const styleName of Object.keys(group)){const style=group[styleName];styles[styleName]={open:`[${style[0]}m`,close:`[${style[1]}m`},group[styleName]=styles[styleName],codes.set(style[0],style[1])}Object.defineProperty(styles,groupName,{value:group,enumerable:!1}),Object.defineProperty(styles,"codes",{value:codes,enumerable:!1})}const ansi2ansi=n=>n,rgb2rgb=(r,g,b)=>[r,g,b];styles.color.close="[39m",styles.bgColor.close="[49m",styles.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)},styles.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)},styles.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)},styles.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)},styles.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)},styles.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let key of Object.keys(colorConvert)){if("object"!=typeof colorConvert[key])continue;const suite=colorConvert[key];"ansi16"===key&&(key="ansi"),"ansi16"in suite&&(styles.color.ansi[key]=wrapAnsi16(suite.ansi16,0),styles.bgColor.ansi[key]=wrapAnsi16(suite.ansi16,10)),"ansi256"in suite&&(styles.color.ansi256[key]=wrapAnsi256(suite.ansi256,0),styles.bgColor.ansi256[key]=wrapAnsi256(suite.ansi256,10)),"rgb"in suite&&(styles.color.ansi16m[key]=wrapAnsi16m(suite.rgb,0),styles.bgColor.ansi16m[key]=wrapAnsi16m(suite.rgb,10))}return styles}})},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js"(module,__unused_webpack_exports,__webpack_require__){var cssKeywords=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/index.js"),reverseKeywords={};for(var key in cssKeywords)cssKeywords.hasOwnProperty(key)&&(reverseKeywords[cssKeywords[key]]=key);var convert=module.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var model in convert)if(convert.hasOwnProperty(model)){if(!("channels"in convert[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert[model]))throw new Error("missing channel labels property: "+model);if(convert[model].labels.length!==convert[model].channels)throw new Error("channel and label counts mismatch: "+model);var channels=convert[model].channels,labels=convert[model].labels;delete convert[model].channels,delete convert[model].labels,Object.defineProperty(convert[model],"channels",{value:channels}),Object.defineProperty(convert[model],"labels",{value:labels})}function comparativeDistance(x,y){return Math.pow(x[0]-y[0],2)+Math.pow(x[1]-y[1],2)+Math.pow(x[2]-y[2],2)}convert.rgb.hsl=function(rgb){var h,l,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,min=Math.min(r,g,b),max=Math.max(r,g,b),delta=max-min;return max===min?h=0:r===max?h=(g-b)/delta:g===max?h=2+(b-r)/delta:b===max&&(h=4+(r-g)/delta),(h=Math.min(60*h,360))<0&&(h+=360),l=(min+max)/2,[h,100*(max===min?0:l<=.5?delta/(max+min):delta/(2-max-min)),100*l]},convert.rgb.hsv=function(rgb){var rdif,gdif,bdif,h,s,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,v=Math.max(r,g,b),diff=v-Math.min(r,g,b),diffc=function(c){return(v-c)/6/diff+.5};return 0===diff?h=s=0:(s=diff/v,rdif=diffc(r),gdif=diffc(g),bdif=diffc(b),r===v?h=bdif-gdif:g===v?h=1/3+rdif-bdif:b===v&&(h=2/3+gdif-rdif),h<0?h+=1:h>1&&(h-=1)),[360*h,100*s,100*v]},convert.rgb.hwb=function(rgb){var r=rgb[0],g=rgb[1],b=rgb[2];return[convert.rgb.hsl(rgb)[0],100*(1/255*Math.min(r,Math.min(g,b))),100*(b=1-1/255*Math.max(r,Math.max(g,b)))]},convert.rgb.cmyk=function(rgb){var k,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255;return[100*((1-r-(k=Math.min(1-r,1-g,1-b)))/(1-k)||0),100*((1-g-k)/(1-k)||0),100*((1-b-k)/(1-k)||0),100*k]},convert.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed)return reversed;var currentClosestKeyword,currentClosestDistance=1/0;for(var keyword in cssKeywords)if(cssKeywords.hasOwnProperty(keyword)){var distance=comparativeDistance(rgb,cssKeywords[keyword]);distance<currentClosestDistance&&(currentClosestDistance=distance,currentClosestKeyword=keyword)}return currentClosestKeyword},convert.keyword.rgb=function(keyword){return cssKeywords[keyword]},convert.rgb.xyz=function(rgb){var r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255;return[100*(.4124*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)+.1805*(b=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92)),100*(.2126*r+.7152*g+.0722*b),100*(.0193*r+.1192*g+.9505*b)]},convert.rgb.lab=function(rgb){var xyz=convert.rgb.xyz(rgb),x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert.hsl.rgb=function(hsl){var t1,t2,t3,rgb,val,h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;if(0===s)return[val=255*l,val,val];t1=2*l-(t2=l<.5?l*(1+s):l+s-l*s),rgb=[0,0,0];for(var i=0;i<3;i++)(t3=h+1/3*-(i-1))<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[i]=255*val;return rgb},convert.hsl.hsv=function(hsl){var h=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);return s*=(l*=2)<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin,[h,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert.hsv.rgb=function(hsv){var h=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h)%6,f=h-Math.floor(h),p=255*v*(1-s),q=255*v*(1-s*f),t=255*v*(1-s*(1-f));switch(v*=255,hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}},convert.hsv.hsl=function(hsv){var lmin,sl,l,h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);return l=(2-s)*v,sl=s*vmin,[h,100*(sl=(sl/=(lmin=(2-s)*vmin)<=1?lmin:2-lmin)||0),100*(l/=2)]},convert.hwb.rgb=function(hwb){var i,v,f,n,r,g,b,h=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;switch(ratio>1&&(wh/=ratio,bl/=ratio),f=6*h-(i=Math.floor(6*h)),1&i&&(f=1-f),n=wh+f*((v=1-bl)-wh),i){default:case 6:case 0:r=v,g=n,b=wh;break;case 1:r=n,g=v,b=wh;break;case 2:r=wh,g=v,b=n;break;case 3:r=wh,g=n,b=v;break;case 4:r=n,g=wh,b=v;break;case 5:r=v,g=wh,b=n}return[255*r,255*g,255*b]},convert.cmyk.rgb=function(cmyk){var c=cmyk[0]/100,m=cmyk[1]/100,y=cmyk[2]/100,k=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k)+k)),255*(1-Math.min(1,m*(1-k)+k)),255*(1-Math.min(1,y*(1-k)+k))]},convert.xyz.rgb=function(xyz){var r,g,b,x=xyz[0]/100,y=xyz[1]/100,z=xyz[2]/100;return g=-.9689*x+1.8758*y+.0415*z,b=.0557*x+-.204*y+1.057*z,r=(r=3.2406*x+-1.5372*y+-.4986*z)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:12.92*g,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:12.92*b,[255*(r=Math.min(Math.max(0,r),1)),255*(g=Math.min(Math.max(0,g),1)),255*(b=Math.min(Math.max(0,b),1))]},convert.xyz.lab=function(xyz){var x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert.lab.xyz=function(lab){var x,y,z,l=lab[0];x=lab[1]/500+(y=(l+16)/116),z=y-lab[2]/200;var y2=Math.pow(y,3),x2=Math.pow(x,3),z2=Math.pow(z,3);return y=y2>.008856?y2:(y-16/116)/7.787,x=x2>.008856?x2:(x-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,[x*=95.047,y*=100,z*=108.883]},convert.lab.lch=function(lab){var h,l=lab[0],a=lab[1],b=lab[2];return(h=360*Math.atan2(b,a)/2/Math.PI)<0&&(h+=360),[l,Math.sqrt(a*a+b*b),h]},convert.lch.lab=function(lch){var hr,l=lch[0],c=lch[1];return hr=lch[2]/360*2*Math.PI,[l,c*Math.cos(hr),c*Math.sin(hr)]},convert.rgb.ansi16=function(args){var r=args[0],g=args[1],b=args[2],value=1 in arguments?arguments[1]:convert.rgb.hsv(args)[2];if(0===(value=Math.round(value/50)))return 30;var ansi=30+(Math.round(b/255)<<2|Math.round(g/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert.hsv.ansi16=function(args){return convert.rgb.ansi16(convert.hsv.rgb(args),args[2])},convert.rgb.ansi256=function(args){var r=args[0],g=args[1],b=args[2];return r===g&&g===b?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b/255*5)},convert.ansi16.rgb=function(args){var color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),[color=color/10.5*255,color,color];var mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert.ansi256.rgb=function(args){if(args>=232){var c=10*(args-232)+8;return[c,c,c]}var rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert.rgb.hex=function(args){var string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.hex.rgb=function(args){var match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];var colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map(function(char){return char+char}).join(""));var integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert.rgb.hcg=function(rgb){var hue,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,max=Math.max(Math.max(r,g),b),min=Math.min(Math.min(r,g),b),chroma=max-min;return hue=chroma<=0?0:max===r?(g-b)/chroma%6:max===g?2+(b-r)/chroma:4+(r-g)/chroma+4,hue/=6,[360*(hue%=1),100*chroma,100*(chroma<1?min/(1-chroma):0)]},convert.hsl.hcg=function(hsl){var s=hsl[1]/100,l=hsl[2]/100,c=1,f=0;return(c=l<.5?2*s*l:2*s*(1-l))<1&&(f=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f]},convert.hsv.hcg=function(hsv){var s=hsv[1]/100,v=hsv[2]/100,c=s*v,f=0;return c<1&&(f=(v-c)/(1-c)),[hsv[0],100*c,100*f]},convert.hcg.rgb=function(hcg){var h=hcg[0]/360,c=hcg[1]/100,g=hcg[2]/100;if(0===c)return[255*g,255*g,255*g];var mg,pure=[0,0,0],hi=h%1*6,v=hi%1,w=1-v;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w}return mg=(1-c)*g,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert.hcg.hsv=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c),f=0;return v>0&&(f=c/v),[hcg[0],100*f,100*v]},convert.hcg.hsl=function(hcg){var c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert.hcg.hwb=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert.hwb.hcg=function(hwb){var w=hwb[1]/100,v=1-hwb[2]/100,c=v-w,g=0;return c<1&&(g=(v-c)/(1-c)),[hwb[0],100*c,100*g]},convert.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert.gray.hsl=convert.gray.hsv=function(args){return[0,0,args[0]]},convert.gray.hwb=function(gray){return[0,100,gray[0]]},convert.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert.gray.lab=function(gray){return[gray[0],0,0]},convert.gray.hex=function(gray){var val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/index.js"(module,__unused_webpack_exports,__webpack_require__){var conversions=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js"),route=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/route.js"),convert={};Object.keys(conversions).forEach(function(fromModel){convert[fromModel]={},Object.defineProperty(convert[fromModel],"channels",{value:conversions[fromModel].channels}),Object.defineProperty(convert[fromModel],"labels",{value:conversions[fromModel].labels});var routes=route(fromModel);Object.keys(routes).forEach(function(toModel){var fn=routes[toModel];convert[fromModel][toModel]=function wrapRounded(fn){var wrappedFn=function(args){if(null==args)return args;arguments.length>1&&(args=Array.prototype.slice.call(arguments));var result=fn(args);if("object"==typeof result)for(var len=result.length,i=0;i<len;i++)result[i]=Math.round(result[i]);return result};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn),convert[fromModel][toModel].raw=function wrapRaw(fn){var wrappedFn=function(args){return null==args?args:(arguments.length>1&&(args=Array.prototype.slice.call(arguments)),fn(args))};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn)})}),module.exports=convert},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/index.js"(module){"use strict";module.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/route.js"(module,__unused_webpack_exports,__webpack_require__){var conversions=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js");function deriveBFS(fromModel){var graph=function buildGraph(){for(var graph={},models=Object.keys(conversions),len=models.length,i=0;i<len;i++)graph[models[i]]={distance:-1,parent:null};return graph}(),queue=[fromModel];for(graph[fromModel].distance=0;queue.length;)for(var current=queue.pop(),adjacents=Object.keys(conversions[current]),len=adjacents.length,i=0;i<len;i++){var adjacent=adjacents[i],node=graph[adjacent];-1===node.distance&&(node.distance=graph[current].distance+1,node.parent=current,queue.unshift(adjacent))}return graph}function link(from,to){return function(args){return to(from(args))}}function wrapConversion(toModel,graph){for(var path=[graph[toModel].parent,toModel],fn=conversions[graph[toModel].parent][toModel],cur=graph[toModel].parent;graph[cur].parent;)path.unshift(graph[cur].parent),fn=link(conversions[graph[cur].parent][cur],fn),cur=graph[cur].parent;return fn.conversion=path,fn}module.exports=function(fromModel){for(var graph=deriveBFS(fromModel),conversion={},models=Object.keys(graph),len=models.length,i=0;i<len;i++){var toModel=models[i];null!==graph[toModel].parent&&(conversion[toModel]=wrapConversion(toModel,graph))}return conversion}},"../../node_modules/@babel/highlight/node_modules/chalk/templates.js"(module){"use strict";const TEMPLATE_REGEX=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,STRING_REGEX=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ESCAPE_REGEX=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ESCAPES=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(c){return"u"===c[0]&&5===c.length||"x"===c[0]&&3===c.length?String.fromCharCode(parseInt(c.slice(1),16)):ESCAPES.get(c)||c}function parseArguments(name,args){const results=[],chunks=args.trim().split(/\s*,\s*/g);let matches;for(const chunk of chunks)if(isNaN(chunk)){if(!(matches=chunk.match(STRING_REGEX)))throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);results.push(matches[2].replace(ESCAPE_REGEX,(m,escape,chr)=>escape?unescape(escape):chr))}else results.push(Number(chunk));return results}function parseStyle(style){STYLE_REGEX.lastIndex=0;const results=[];let matches;for(;null!==(matches=STYLE_REGEX.exec(style));){const name=matches[1];if(matches[2]){const args=parseArguments(name,matches[2]);results.push([name].concat(args))}else results.push([name])}return results}function buildStyle(chalk,styles){const enabled={};for(const layer of styles)for(const style of layer.styles)enabled[style[0]]=layer.inverse?null:style.slice(1);let current=chalk;for(const styleName of Object.keys(enabled))if(Array.isArray(enabled[styleName])){if(!(styleName in current))throw new Error(`Unknown Chalk style: ${styleName}`);current=enabled[styleName].length>0?current[styleName].apply(current,enabled[styleName]):current[styleName]}return current}module.exports=(chalk,tmp)=>{const styles=[],chunks=[];let chunk=[];if(tmp.replace(TEMPLATE_REGEX,(m,escapeChar,inverse,style,close,chr)=>{if(escapeChar)chunk.push(unescape(escapeChar));else if(style){const str=chunk.join("");chunk=[],chunks.push(0===styles.length?str:buildStyle(chalk,styles)(str)),styles.push({inverse,styles:parseStyle(style)})}else if(close){if(0===styles.length)throw new Error("Found extraneous } in Chalk template literal");chunks.push(buildStyle(chalk,styles)(chunk.join(""))),chunk=[],styles.pop()}else chunk.push(chr)}),chunks.push(chunk.join("")),styles.length>0){const errMsg=`Chalk template literal is missing ${styles.length} closing bracket${1===styles.length?"":"s"} (\`}\`)`;throw new Error(errMsg)}return chunks.join("")}},"../../node_modules/escape-string-regexp/index.js"(module){"use strict";var matchOperatorsRe=/[|\\{}()[\]^$+*?.]/g;module.exports=function(str){if("string"!=typeof str)throw new TypeError("Expected a string");return str.replace(matchOperatorsRe,"\\$&")}},"../../node_modules/js-tokens/index.js"(__unused_webpack_module,exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,exports.matchToToken=function(match){var token={type:"invalid",value:match[0],closed:void 0};return match[1]?(token.type="string",token.closed=!(!match[3]&&!match[4])):match[5]?token.type="comment":match[6]?(token.type="comment",token.closed=!!match[7]):match[8]?token.type="regex":match[9]?token.type="number":match[10]?token.type="name":match[11]?token.type="punctuator":match[12]&&(token.type="whitespace"),token}},"../../node_modules/picocolors/picocolors.browser.js"(module){var x=String,create=function(){return{isColorSupported:!1,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x,blackBright:x,redBright:x,greenBright:x,yellowBright:x,blueBright:x,magentaBright:x,cyanBright:x,whiteBright:x,bgBlackBright:x,bgRedBright:x,bgGreenBright:x,bgYellowBright:x,bgBlueBright:x,bgMagentaBright:x,bgCyanBright:x,bgWhiteBright:x}};module.exports=create(),module.exports.createColors=create},"../../node_modules/supports-color/browser.js"(module){"use strict";module.exports={stdout:!1,stderr:!1}},"../../node_modules/@babel/code-frame/lib/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var process=__webpack_require__("../../node_modules/node-stdlib-browser/cjs/proxy/process.js");exports.gl=codeFrameColumns;var _highlight=__webpack_require__("../../node_modules/@babel/highlight/lib/index.js");let deprecationWarningShown=!1;const NEWLINE=/\r\n|[\n\r\u2028\u2029]/;function codeFrameColumns(rawLines,loc,opts={}){const highlighted=(opts.highlightCode||opts.forceColor)&&(0,_highlight.shouldHighlight)(opts),chalk=(0,_highlight.getChalk)(opts),defs=function getDefs(chalk){return{gutter:chalk.grey,marker:chalk.red.bold,message:chalk.red.bold}}(chalk),maybeHighlight=(chalkFn,string)=>highlighted?chalkFn(string):string,lines=rawLines.split(NEWLINE),{start,end,markerLines}=function getMarkerLines(loc,source,opts){const startLoc=Object.assign({column:0,line:-1},loc.start),endLoc=Object.assign({},startLoc,loc.end),{linesAbove=2,linesBelow=3}=opts||{},startLine=startLoc.line,startColumn=startLoc.column,endLine=endLoc.line,endColumn=endLoc.column;let start=Math.max(startLine-(linesAbove+1),0),end=Math.min(source.length,endLine+linesBelow);-1===startLine&&(start=0),-1===endLine&&(end=source.length);const lineDiff=endLine-startLine,markerLines={};if(lineDiff)for(let i=0;i<=lineDiff;i++){const lineNumber=i+startLine;if(startColumn)if(0===i){const sourceLength=source[lineNumber-1].length;markerLines[lineNumber]=[startColumn,sourceLength-startColumn+1]}else if(i===lineDiff)markerLines[lineNumber]=[0,endColumn];else{const sourceLength=source[lineNumber-i].length;markerLines[lineNumber]=[0,sourceLength]}else markerLines[lineNumber]=!0}else markerLines[startLine]=startColumn===endColumn?!startColumn||[startColumn,0]:[startColumn,endColumn-startColumn];return{start,end,markerLines}}(loc,lines,opts),hasColumns=loc.start&&"number"==typeof loc.start.column,numberMaxWidth=String(end).length;let frame=(highlighted?(0,_highlight.default)(rawLines,opts):rawLines).split(NEWLINE,end).slice(start,end).map((line,index)=>{const number=start+1+index,gutter=` ${` ${number}`.slice(-numberMaxWidth)} |`,hasMarker=markerLines[number],lastMarkerLine=!markerLines[number+1];if(hasMarker){let markerLine="";if(Array.isArray(hasMarker)){const markerSpacing=line.slice(0,Math.max(hasMarker[0]-1,0)).replace(/[^\t]/g," "),numberOfMarkers=hasMarker[1]||1;markerLine=["\n ",maybeHighlight(defs.gutter,gutter.replace(/\d/g," "))," ",markerSpacing,maybeHighlight(defs.marker,"^").repeat(numberOfMarkers)].join(""),lastMarkerLine&&opts.message&&(markerLine+=" "+maybeHighlight(defs.message,opts.message))}return[maybeHighlight(defs.marker,">"),maybeHighlight(defs.gutter,gutter),line.length>0?` ${line}`:"",markerLine].join("")}return` ${maybeHighlight(defs.gutter,gutter)}${line.length>0?` ${line}`:""}`}).join("\n");return opts.message&&!hasColumns&&(frame=`${" ".repeat(numberMaxWidth+1)}${opts.message}\n${frame}`),highlighted?chalk.reset(frame):frame}},"../../node_modules/@babel/helper-validator-identifier/lib/identifier.js"(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isIdentifierChar=isIdentifierChar,exports.isIdentifierName=function isIdentifierName(name){let isFirst=!0;for(let i=0;i<name.length;i++){let cp=name.charCodeAt(i);if(55296==(64512&cp)&&i+1<name.length){const trail=name.charCodeAt(++i);56320==(64512&trail)&&(cp=65536+((1023&cp)<<10)+(1023&trail))}if(isFirst){if(isFirst=!1,!isIdentifierStart(cp))return!1}else if(!isIdentifierChar(cp))return!1}return!isFirst},exports.isIdentifierStart=isIdentifierStart;let nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;const astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(code,set){let pos=65536;for(let i=0,length=set.length;i<length;i+=2){if(pos+=set[i],pos>code)return!1;if(pos+=set[i+1],pos>=code)return!0}return!1}function isIdentifierStart(code){return code<65?36===code:code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code){return code<48?36===code:code<58||!(code<65)&&(code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes))))}},"../../node_modules/@babel/helper-validator-identifier/lib/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isIdentifierChar",{enumerable:!0,get:function(){return _identifier.isIdentifierChar}}),Object.defineProperty(exports,"isIdentifierName",{enumerable:!0,get:function(){return _identifier.isIdentifierName}}),Object.defineProperty(exports,"isIdentifierStart",{enumerable:!0,get:function(){return _identifier.isIdentifierStart}}),Object.defineProperty(exports,"isKeyword",{enumerable:!0,get:function(){return _keyword.isKeyword}}),Object.defineProperty(exports,"isReservedWord",{enumerable:!0,get:function(){return _keyword.isReservedWord}}),Object.defineProperty(exports,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictBindOnlyReservedWord}}),Object.defineProperty(exports,"isStrictBindReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictBindReservedWord}}),Object.defineProperty(exports,"isStrictReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictReservedWord}});var _identifier=__webpack_require__("../../node_modules/@babel/helper-validator-identifier/lib/identifier.js"),_keyword=__webpack_require__("../../node_modules/@babel/helper-validator-identifier/lib/keyword.js")},"../../node_modules/@babel/helper-validator-identifier/lib/keyword.js"(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isKeyword=function isKeyword(word){return keywords.has(word)},exports.isReservedWord=isReservedWord,exports.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord,exports.isStrictBindReservedWord=function isStrictBindReservedWord(word,inModule){return isStrictReservedWord(word,inModule)||isStrictBindOnlyReservedWord(word)},exports.isStrictReservedWord=isStrictReservedWord;const reservedWords_strict=["implements","interface","let","package","private","protected","public","static","yield"],reservedWords_strictBind=["eval","arguments"],keywords=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),reservedWordsStrictSet=new Set(reservedWords_strict),reservedWordsStrictBindSet=new Set(reservedWords_strictBind);function isReservedWord(word,inModule){return inModule&&"await"===word||"enum"===word}function isStrictReservedWord(word,inModule){return isReservedWord(word,inModule)||reservedWordsStrictSet.has(word)}function isStrictBindOnlyReservedWord(word){return reservedWordsStrictBindSet.has(word)}},"../../node_modules/@babel/highlight/lib/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var process=__webpack_require__("../../node_modules/node-stdlib-browser/cjs/proxy/process.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function highlight(code,options={}){if(""!==code&&shouldHighlight(options)){const defs=function getDefs(colors){return{keyword:colors.cyan,capitalized:colors.yellow,jsxIdentifier:colors.yellow,punctuator:colors.yellow,number:colors.magenta,string:colors.green,regex:colors.magenta,comment:colors.gray,invalid:compose(compose(colors.white,colors.bgRed),colors.bold)}}(function getColors(forceColor){if(forceColor){return null!=pcWithForcedColor||(pcWithForcedColor=(0,_picocolors.createColors)(!0)),pcWithForcedColor}return colors}(options.forceColor));return function highlightTokens(defs,text){let highlighted="";for(const{type,value}of tokenize(text)){const colorize=defs[type];highlighted+=colorize?value.split(NEWLINE).map(str=>colorize(str)).join("\n"):value}return highlighted}(defs,code)}return code},exports.shouldHighlight=shouldHighlight;var _jsTokens=__webpack_require__("../../node_modules/js-tokens/index.js"),_helperValidatorIdentifier=__webpack_require__("../../node_modules/@babel/helper-validator-identifier/lib/index.js"),_picocolors=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("../../node_modules/picocolors/picocolors.browser.js"),!0);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}const colors="object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR?_picocolors.default:(0,_picocolors.createColors)(!1),compose=(f,g)=>v=>f(g(v)),sometimesKeywords=new Set(["as","async","from","get","of","set"]);const NEWLINE=/\r\n|[\n\r\u2028\u2029]/,BRACKET=/^[()[\]{}]$/;let tokenize,pcWithForcedColor;{const JSX_TAG=/^[a-z][\w-]*$/i,getTokenType=function(token,offset,text){if("name"===token.type){if((0,_helperValidatorIdentifier.isKeyword)(token.value)||(0,_helperValidatorIdentifier.isStrictReservedWord)(token.value,!0)||sometimesKeywords.has(token.value))return"keyword";if(JSX_TAG.test(token.value)&&("<"===text[offset-1]||"</"===text.slice(offset-2,offset)))return"jsxIdentifier";if(token.value[0]!==token.value[0].toLowerCase())return"capitalized"}return"punctuator"===token.type&&BRACKET.test(token.value)?"bracket":"invalid"!==token.type||"@"!==token.value&&"#"!==token.value?token.type:"punctuator"};tokenize=function*(text){let match;for(;match=_jsTokens.default.exec(text);){const token=_jsTokens.matchToToken(match);yield{type:getTokenType(token,match.index,text),value:token.value}}}}function shouldHighlight(options){return colors.isColorSupported||options.forceColor}{let chalk,chalkWithForcedColor;exports.getChalk=({forceColor})=>(null!=chalk||(chalk=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/index.js")),forceColor?(null!=chalkWithForcedColor||(chalkWithForcedColor=new chalk.constructor({enabled:!0,level:1})),chalkWithForcedColor):chalk)}},"../../node_modules/node-stdlib-browser/cjs/proxy/process.js"(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var cachedSetTimeout,cachedClearTimeout,browser$1={exports:{}},process=browser$1.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop$1(){}function noop(){}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop$1,process.addListener=noop$1,process.once=noop$1,process.off=noop$1,process.removeListener=noop$1,process.removeAllListeners=noop$1,process.emit=noop$1,process.prependListener=noop$1,process.prependOnceListener=noop$1,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var browser=browser$1.exports.browser,emitWarning=noop,binding=browser$1.exports.binding,exit=noop,features={},kill=noop,dlopen=noop,uptime=noop,memoryUsage=noop,uvCounters=noop,execArgv=[],api={nextTick:browser$1.exports.nextTick,title:browser$1.exports.title,browser,env:browser$1.exports.env,argv:browser$1.exports.argv,version:browser$1.exports.version,versions:browser$1.exports.versions,on:browser$1.exports.on,addListener:browser$1.exports.addListener,once:browser$1.exports.once,off:browser$1.exports.off,removeListener:browser$1.exports.removeListener,removeAllListeners:browser$1.exports.removeAllListeners,emit:browser$1.exports.emit,emitWarning,prependListener:browser$1.exports.prependListener,prependOnceListener:browser$1.exports.prependOnceListener,listeners:browser$1.exports.listeners,binding,cwd:browser$1.exports.cwd,chdir:browser$1.exports.chdir,umask:browser$1.exports.umask,exit,pid:1,features,kill,dlopen,uptime,memoryUsage,uvCounters,platform:"browser",arch:"browser",execPath:"browser",execArgv};exports.addListener=browser$1.exports.addListener,exports.arch="browser",exports.argv=browser$1.exports.argv,exports.binding=binding,exports.browser=browser,exports.chdir=browser$1.exports.chdir,exports.cwd=browser$1.exports.cwd,exports.default=api,exports.dlopen=dlopen,exports.emit=browser$1.exports.emit,exports.emitWarning=emitWarning,exports.env=browser$1.exports.env,exports.execArgv=execArgv,exports.execPath="browser",exports.exit=exit,exports.features=features,exports.kill=kill,exports.listeners=browser$1.exports.listeners,exports.memoryUsage=memoryUsage,exports.nextTick=browser$1.exports.nextTick,exports.off=browser$1.exports.off,exports.on=browser$1.exports.on,exports.once=browser$1.exports.once,exports.pid=1,exports.platform="browser",exports.prependListener=browser$1.exports.prependListener,exports.prependOnceListener=browser$1.exports.prependOnceListener,exports.removeAllListeners=browser$1.exports.removeAllListeners,exports.removeListener=browser$1.exports.removeListener,exports.title=browser$1.exports.title,exports.umask=browser$1.exports.umask,exports.uptime=uptime,exports.uvCounters=uvCounters,exports.version=browser$1.exports.version,exports.versions=browser$1.exports.versions,exports=module.exports=api}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module);var __webpack_exports__={};return(()=>{"use strict";var WorkerMessageType;!function(WorkerMessageType){WorkerMessageType[WorkerMessageType.InitConnection=1464664064]="InitConnection",WorkerMessageType[WorkerMessageType.RequestFork=1464664065]="RequestFork"}(WorkerMessageType||(WorkerMessageType={}));WorkerMessageType.InitConnection,WorkerMessageType.RequestFork;var SWMessageType;!function(SWMessageType){SWMessageType[SWMessageType.HandShake=1398210560]="HandShake",SWMessageType[SWMessageType.HeartbeatPing=1398210561]="HeartbeatPing",SWMessageType[SWMessageType.HeartbeatPong=1398210562]="HeartbeatPong"}(SWMessageType||(SWMessageType={}));SWMessageType.HandShake,SWMessageType.HeartbeatPing,SWMessageType.HeartbeatPong;var HMR_ACTIONS_SENT_TO_BROWSER;!function(HMR_ACTIONS_SENT_TO_BROWSER){HMR_ACTIONS_SENT_TO_BROWSER.RELOAD="reload",HMR_ACTIONS_SENT_TO_BROWSER.CLIENT_CHANGES="clientChanges",HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ONLY_CHANGES="serverOnlyChanges",HMR_ACTIONS_SENT_TO_BROWSER.SYNC="sync",HMR_ACTIONS_SENT_TO_BROWSER.BUILT="built",HMR_ACTIONS_SENT_TO_BROWSER.BUILDING="building",HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_MESSAGE="turbopack-message",HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED="turbopack-connected"}(HMR_ACTIONS_SENT_TO_BROWSER||(HMR_ACTIONS_SENT_TO_BROWSER={}));var lib=__webpack_require__("../../node_modules/@babel/code-frame/lib/index.js"),picocolors_browser=__webpack_require__("../../node_modules/picocolors/picocolors.browser.js"),picocolors_browser_default=__webpack_require__.n(picocolors_browser);function decodeHex(hexStr){if(""===hexStr.trim())throw new Error("can't decode empty hex");const num=parseInt(hexStr,16);if(isNaN(num))throw new Error(`invalid hex: \`${hexStr}\``);return String.fromCodePoint(num)}const DECODE_REGEX=/^__TURBOPACK__([a-zA-Z0-9_$]+)__$/;const MAGIC_IDENTIFIER_REGEX=/__TURBOPACK__[a-zA-Z0-9_$]+__/g,{bold,green,magenta,red}=picocolors_browser_default();function renderStyledStringToErrorAnsi(string){function decodeMagicIdentifiers(str){return str.replaceAll(MAGIC_IDENTIFIER_REGEX,ident=>{try{return magenta(`{${function decodeMagicIdentifier(identifier){const matches=identifier.match(DECODE_REGEX);if(!matches)return identifier;const inner=matches[1];let output="",mode=0,buffer="";for(let i=0;i<inner.length;i++){const char=inner[i];if(0===mode)"_"===char?mode=1:"$"===char?mode=2:output+=char;else if(1===mode)"_"===char?(output+=" ",mode=0):"$"===char?(output+="_",mode=2):(output+=char,mode=0);else if(2===mode)if(2===buffer.length&&(output+=decodeHex(buffer),buffer=""),"_"===char){if(""!==buffer)throw new Error(`invalid hex: \`${buffer}\``);mode=3}else if("$"===char){if(""!==buffer)throw new Error(`invalid hex: \`${buffer}\``);mode=0}else buffer+=char;else if(3===mode){if("_"===char)throw new Error(`invalid hex: \`${buffer+char}\``);"$"===char?(output+=decodeHex(buffer),buffer="",mode=0):buffer+=char}}return output}(ident)}}`)}catch(e){return magenta(`{${ident} (decoding failed: ${e})}`)}})}switch(string.type){case"text":return decodeMagicIdentifiers(string.value);case"strong":return bold(red(decodeMagicIdentifiers(string.value)));case"code":return green(decodeMagicIdentifiers(string.value));case"line":return string.value.map(renderStyledStringToErrorAnsi).join("");case"stack":return string.value.map(renderStyledStringToErrorAnsi).join("\n");default:throw new Error("Unknown StyledString type",string)}}function formatIssue(issue,forceColor=!0){const{filePath,title,description,source}=issue;let{documentationLink}=issue,formattedTitle=renderStyledStringToErrorAnsi(title).replace(/\n/g,"\n "),formattedFilePath=filePath.replace("[project]/","./").replaceAll("/./","/").replace("\\\\?\\",""),message="";if(source&&source.range){const{start}=source.range;message=`${formattedFilePath}:${start.line+1}:${start.column+1}\n${formattedTitle}`}else message=formattedFilePath?`${formattedFilePath}\n${formattedTitle}`:formattedTitle;if(message+="\n",(null==source?void 0:source.range)&&source.source.content){const{start,end}=source.range;message+=(0,lib.gl)(source.source.content,{start:{line:start.line+1,column:start.column+1},end:{line:end.line+1,column:end.column+1}},{forceColor}).trim()+"\n\n"}return description&&(message+=renderStyledStringToErrorAnsi(description)+"\n\n"),documentationLink&&(message+=documentationLink+"\n\n"),message}function handleIssues(issues,throwErrors=!0,forceColor=!0){const topLevelErrors=new Set,topLevelWarnings=new Set;for(const issue of issues)"error"===issue.severity||"fatal"===issue.severity?topLevelErrors.add(formatIssue(issue,forceColor)):isRelevantWarning(issue)&&topLevelWarnings.add(formatIssue(issue,forceColor));if(0!==topLevelWarnings.size){const warnMsg=`Utoopack build encountered ${topLevelWarnings.size} warnings:\n${[...topLevelWarnings].join("\n")}`;console.warn(warnMsg)}if(0!==topLevelErrors.size){const errMsg=`Utoopack build failed with ${topLevelErrors.size} errors:\n${[...topLevelErrors].join("\n")}`;if(throwErrors)throw new Error(errMsg);console.error(errMsg)}}function isRelevantWarning(issue){return"warning"===issue.severity&&!function isNodeModulesIssue(issue){if("warning"===issue.severity&&"config"===issue.stage&&renderStyledStringToErrorAnsi(issue.title).includes("can't be external"))return!1;return"warning"===issue.severity&&(null!==issue.filePath.match(/^(?:.*[\\/])?node_modules(?:[\\/].*)?$/)||issue.filePath.includes("@utoo/pack"))}(issue)}Error;function compatHtml(maybeWebpackPluginInstance){if(maybeWebpackPluginInstance)return maybeWebpackPluginInstance.userOptions||maybeWebpackPluginInstance.options}function compatMiniCssExtract(maybeWebpackPluginInstance){var _a;return null===(_a=null==maybeWebpackPluginInstance?void 0:maybeWebpackPluginInstance.options)||void 0===_a?void 0:_a.filename}function compatCopy(maybeWebpackPluginInstance){const patterns=null==maybeWebpackPluginInstance?void 0:maybeWebpackPluginInstance.patterns;if(Array.isArray(patterns))return patterns.map(pattern=>"string"==typeof pattern?pattern:{from:pattern.from,to:pattern.to})}function compatDefine(maybeWebpackPluginInstance){const definitions=null==maybeWebpackPluginInstance?void 0:maybeWebpackPluginInstance.definitions;if(!definitions||"object"!=typeof definitions)return definitions;const processedDefinitions={};for(const[key,value]of Object.entries(definitions))processedDefinitions[key]="object"==typeof value&&null!==value?JSON.stringify(value):value;return processedDefinitions}function compatProvider(maybeWebpackPluginInstance){const definitions=null==maybeWebpackPluginInstance?void 0:maybeWebpackPluginInstance.definitions;if(!definitions||"object"!=typeof definitions)return;const provider={};for(const[key,value]of Object.entries(definitions))"string"==typeof value?provider[key]=value:Array.isArray(value)&&(1===value.length?provider[key]=value[0]:value.length>=2&&(provider[key]=[value[0],value[1]]));return Object.keys(provider).length>0?provider:void 0}compatHtml.pluginName="HtmlWebpackPlugin",compatMiniCssExtract.pluginName="MiniCssExtractPlugin",compatCopy.pluginName="CopyPlugin",compatDefine.pluginName="DefinePlugin",compatProvider.pluginName="ProvidePlugin";const proxyMarker=Symbol("Comlink.proxy"),createEndpoint=Symbol("Comlink.endpoint"),releaseProxy=Symbol("Comlink.releaseProxy"),finalizer=Symbol("Comlink.finalizer"),throwMarker=Symbol("Comlink.thrown"),isObject=val=>"object"==typeof val&&null!==val||"function"==typeof val,transferHandlers=new Map([["proxy",{canHandle:val=>isObject(val)&&val[proxyMarker],serialize(obj){const{port1,port2}=new MessageChannel;return expose(obj,port1),[port2,[port2]]},deserialize:port=>(port.start(),wrap(port))}],["throw",{canHandle:value=>isObject(value)&&throwMarker in value,serialize({value}){let serialized;return serialized=value instanceof Error?{isError:!0,value:{message:value.message,name:value.name,stack:value.stack}}:{isError:!1,value},[serialized,[]]},deserialize(serialized){if(serialized.isError)throw Object.assign(new Error(serialized.value.message),serialized.value);throw serialized.value}}]]);function expose(obj,ep=globalThis,allowedOrigins=["*"]){ep.addEventListener("message",function callback(ev){if(!ev||!ev.data)return;if(!function isAllowedOrigin(allowedOrigins,origin){for(const allowedOrigin of allowedOrigins){if(origin===allowedOrigin||"*"===allowedOrigin)return!0;if(allowedOrigin instanceof RegExp&&allowedOrigin.test(origin))return!0}return!1}(allowedOrigins,ev.origin))return void console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);const{id,type,path}=Object.assign({path:[]},ev.data),argumentList=(ev.data.argumentList||[]).map(fromWireValue);let returnValue;try{const parent=path.slice(0,-1).reduce((obj,prop)=>obj[prop],obj),rawValue=path.reduce((obj,prop)=>obj[prop],obj);switch(type){case"GET":returnValue=rawValue;break;case"SET":parent[path.slice(-1)[0]]=fromWireValue(ev.data.value),returnValue=!0;break;case"APPLY":returnValue=rawValue.apply(parent,argumentList);break;case"CONSTRUCT":returnValue=proxy(new rawValue(...argumentList));break;case"ENDPOINT":{const{port1,port2}=new MessageChannel;expose(obj,port2),returnValue=function transfer(obj,transfers){return transferCache.set(obj,transfers),obj}(port1,[port1])}break;case"RELEASE":returnValue=void 0;break;default:return}}catch(value){returnValue={value,[throwMarker]:0}}Promise.resolve(returnValue).catch(value=>({value,[throwMarker]:0})).then(returnValue=>{const[wireValue,transferables]=toWireValue(returnValue);ep.postMessage(Object.assign(Object.assign({},wireValue),{id}),transferables),"RELEASE"===type&&(ep.removeEventListener("message",callback),closeEndPoint(ep),finalizer in obj&&"function"==typeof obj[finalizer]&&obj[finalizer]())}).catch(error=>{const[wireValue,transferables]=toWireValue({value:new TypeError("Unserializable return value"),[throwMarker]:0});ep.postMessage(Object.assign(Object.assign({},wireValue),{id}),transferables)})}),ep.start&&ep.start()}function closeEndPoint(endpoint){(function isMessagePort(endpoint){return"MessagePort"===endpoint.constructor.name})(endpoint)&&endpoint.close()}function wrap(ep,target){const pendingListeners=new Map;return ep.addEventListener("message",function handleMessage(ev){const{data}=ev;if(!data||!data.id)return;const resolver=pendingListeners.get(data.id);if(resolver)try{resolver(data)}finally{pendingListeners.delete(data.id)}}),createProxy(ep,pendingListeners,[],target)}function throwIfProxyReleased(isReleased){if(isReleased)throw new Error("Proxy has been released and is not useable")}function releaseEndpoint(ep){return requestResponseMessage(ep,new Map,{type:"RELEASE"}).then(()=>{closeEndPoint(ep)})}const proxyCounter=new WeakMap,proxyFinalizers="FinalizationRegistry"in globalThis&&new FinalizationRegistry(ep=>{const newCount=(proxyCounter.get(ep)||0)-1;proxyCounter.set(ep,newCount),0===newCount&&releaseEndpoint(ep)});function createProxy(ep,pendingListeners,path=[],target=function(){}){let isProxyReleased=!1;const proxy=new Proxy(target,{get(_target,prop){if(throwIfProxyReleased(isProxyReleased),prop===releaseProxy)return()=>{!function unregisterProxy(proxy){proxyFinalizers&&proxyFinalizers.unregister(proxy)}(proxy),releaseEndpoint(ep),pendingListeners.clear(),isProxyReleased=!0};if("then"===prop){if(0===path.length)return{then:()=>proxy};const r=requestResponseMessage(ep,pendingListeners,{type:"GET",path:path.map(p=>p.toString())}).then(fromWireValue);return r.then.bind(r)}return createProxy(ep,pendingListeners,[...path,prop])},set(_target,prop,rawValue){throwIfProxyReleased(isProxyReleased);const[value,transferables]=toWireValue(rawValue);return requestResponseMessage(ep,pendingListeners,{type:"SET",path:[...path,prop].map(p=>p.toString()),value},transferables).then(fromWireValue)},apply(_target,_thisArg,rawArgumentList){throwIfProxyReleased(isProxyReleased);const last=path[path.length-1];if(last===createEndpoint)return requestResponseMessage(ep,pendingListeners,{type:"ENDPOINT"}).then(fromWireValue);if("bind"===last)return createProxy(ep,pendingListeners,path.slice(0,-1));const[argumentList,transferables]=processArguments(rawArgumentList);return requestResponseMessage(ep,pendingListeners,{type:"APPLY",path:path.map(p=>p.toString()),argumentList},transferables).then(fromWireValue)},construct(_target,rawArgumentList){throwIfProxyReleased(isProxyReleased);const[argumentList,transferables]=processArguments(rawArgumentList);return requestResponseMessage(ep,pendingListeners,{type:"CONSTRUCT",path:path.map(p=>p.toString()),argumentList},transferables).then(fromWireValue)}});return function registerProxy(proxy,ep){const newCount=(proxyCounter.get(ep)||0)+1;proxyCounter.set(ep,newCount),proxyFinalizers&&proxyFinalizers.register(proxy,ep,proxy)}(proxy,ep),proxy}function processArguments(argumentList){const processed=argumentList.map(toWireValue);return[processed.map(v=>v[0]),(arr=processed.map(v=>v[1]),Array.prototype.concat.apply([],arr))];var arr}const transferCache=new WeakMap;function proxy(obj){return Object.assign(obj,{[proxyMarker]:!0})}function toWireValue(value){for(const[name,handler]of transferHandlers)if(handler.canHandle(value)){const[serializedValue,transferables]=handler.serialize(value);return[{type:"HANDLER",name,value:serializedValue},transferables]}return[{type:"RAW",value},transferCache.get(value)||[]]}function fromWireValue(value){switch(value.type){case"HANDLER":return transferHandlers.get(value.name).deserialize(value.value);case"RAW":return value.value}}function requestResponseMessage(ep,pendingListeners,msg,transfers){return new Promise(resolve=>{const id=function generateUUID(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}();pendingListeners.set(id,resolve),ep.start&&ep.start(),ep.postMessage(Object.assign({id},msg),transfers)})}let clientIdCounter=0;class HmrServer{constructor(options={}){var _a;this.clients=new Set,this.subscriptions=new Map,this.hmrHash=0,this.options=options,this.sessionId=null!==(_a=options.sessionId)&&void 0!==_a?_a:Math.floor(Number.MAX_SAFE_INTEGER*Math.random())}createConnection(){const{port1,port2}=new MessageChannel,client={id:"hmr-client-"+ ++clientIdCounter,port:port1,send:message=>{port1.postMessage(JSON.stringify(message))},close:()=>{this.removeClient(client),port1.close()}};return port1.onmessage=event=>{this.handleClientMessage(client,event.data)},port1.onmessageerror=()=>{this.removeClient(client)},this.clients.add(client),client.send({action:HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED,data:{sessionId:this.sessionId}}),client.send({action:HMR_ACTIONS_SENT_TO_BROWSER.SYNC,hash:String(this.hmrHash),errors:[],warnings:[]}),{clientPort:port2,client}}connectIframe(iframe,origin="*"){if(!iframe.contentWindow)return console.warn("[HmrServer] Cannot connect: iframe has no contentWindow"),null;const{clientPort,client}=this.createConnection();return iframe.contentWindow.postMessage({type:"hmr-connect",sessionId:this.sessionId},origin,[clientPort]),client}handleClientMessage(client,data){try{const message="string"==typeof data?JSON.parse(data):data;if("type"in message)switch(message.type){case"turbopack-subscribe":this.subscribe(client,message.path);break;case"turbopack-unsubscribe":this.unsubscribe(client,message.path)}"event"in message&&this.handleClientEvent(client,message)}catch(e){console.error("[HmrServer] Failed to parse client message:",e)}}handleClientEvent(_client,message){switch(message.event){case"client-error":case"client-warning":case"client-success":break;case"client-full-reload":message.hadRuntimeError&&console.warn("[HmrServer] Fast Refresh had to perform a full reload due to a runtime error.")}}subscribe(client,path){var _a,_b;let clients=this.subscriptions.get(path);clients||(clients=new Set,this.subscriptions.set(path,clients)),clients.add(client),null===(_b=(_a=this.options).onSubscribe)||void 0===_b||_b.call(_a,path,client)}unsubscribe(client,path){var _a,_b;const clients=this.subscriptions.get(path);clients&&(clients.delete(client),0===clients.size&&this.subscriptions.delete(path)),null===(_b=(_a=this.options).onUnsubscribe)||void 0===_b||_b.call(_a,path,client)}removeClient(client){var _a,_b;this.clients.delete(client);for(const[path,clients]of this.subscriptions)clients.has(client)&&(clients.delete(client),null===(_b=(_a=this.options).onUnsubscribe)||void 0===_b||_b.call(_a,path,client)),0===clients.size&&this.subscriptions.delete(path)}sendUpdate(path,update){const clients=this.subscriptions.get(path);if(!clients)return;const message={action:HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_MESSAGE,data:update};for(const client of clients)client.send(message)}broadcast(message){for(const client of this.clients)client.send(message)}sendBuilding(){this.broadcast({action:HMR_ACTIONS_SENT_TO_BROWSER.BUILDING})}sendBuilt(errors=[],warnings=[]){this.hmrHash++,this.broadcast({action:HMR_ACTIONS_SENT_TO_BROWSER.BUILT,hash:String(this.hmrHash),errors,warnings})}sendReload(reason){this.broadcast({action:HMR_ACTIONS_SENT_TO_BROWSER.RELOAD,data:reason})}getSubscribedPaths(){return Array.from(this.subscriptions.keys())}get clientCount(){return this.clients.size}close(){for(const client of this.clients)client.close();this.clients.clear(),this.subscriptions.clear()}}async function installServiceWorker(url,scope,targetDirToCwd){const swUrl=new URL(url,window.location.href);swUrl.searchParams.set("scope",scope),targetDirToCwd&&swUrl.searchParams.set("targetDirToCwd",targetDirToCwd);const registration=await navigator.serviceWorker.register(swUrl.toString(),{scope:"/"});return new Promise(resolve=>{function sendMessage(sw){sw.postMessage({[SWMessageType.HandShake]:!0}),function startHeartbeat(sw){let lastHeartbeat=Date.now();navigator.serviceWorker.addEventListener("message",event=>{event.data&&!0===event.data[SWMessageType.HeartbeatPong]&&(lastHeartbeat=Date.now())}),setInterval(()=>{sw.postMessage({[SWMessageType.HeartbeatPing]:!0}),Date.now()-lastHeartbeat>2e4&&console.error("Service Worker Heartbeat Timeout")},1e4)}(sw),resolve()}function listenForActivation(sw){sw.addEventListener("statechange",()=>{"activated"===sw.state&&sendMessage(sw)})}!function checkSWState(registration){registration.active?sendMessage(registration.active):registration.installing&&listenForActivation(registration.installing),registration.addEventListener("updatefound",()=>{registration.installing&&listenForActivation(registration.installing)})}(registration)})}class Stats{constructor(raw){this.raw=raw,this.dev=0,this.ino=0,this.nlink=1,this.uid=0,this.gid=0,this.rdev=0,this.blksize=4096,this.blocks=0,this.size=raw.size,this.mode="directory"===raw.type?16877:33188,this.atimeMs=raw.atimeMs||0,this.mtimeMs=raw.mtimeMs||0,this.ctimeMs=raw.ctimeMs||0,this.birthtimeMs=raw.birthtimeMs||0,this.atime=new Date(this.atimeMs),this.mtime=new Date(this.mtimeMs),this.ctime=new Date(this.ctimeMs),this.birthtime=new Date(this.birthtimeMs)}isDirectory(){return"directory"===this.raw.type}isFile(){return"file"===this.raw.type}isSymbolicLink(){return!1}isBlockDevice(){return!1}isCharacterDevice(){return!1}isFIFO(){return!1}isSocket(){return!1}}class Dirent{constructor(rawDirent){this.rawDirent=rawDirent,this.name=this.rawDirent.name}isDirectory(){return"directory"===this.rawDirent.type}isFile(){return"file"===this.rawDirent.type}}class ForkedProject{constructor(port){var _a;null!==(_a=this.endpoint)&&void 0!==_a||(this.endpoint=wrap(port))}async deps(options){var _a,_b;return await this.endpoint.deps({registry:null!==(_a=null==options?void 0:options.registry)&&void 0!==_a?_a:void 0,concurrency:null!==(_b=null==options?void 0:options.concurrency)&&void 0!==_b?_b:void 0})}async install(packageLock,options){return await this.endpoint.install(packageLock,{maxConcurrentDownloads:null==options?void 0:options.maxConcurrentDownloads})}async build(options){return await this.endpoint.build(options)}dev(options){this.endpoint.dev(options)}async hmrSubscribe(identifier,callback){await this.endpoint.hmrSubscribe(identifier,proxy(callback))}updateInfoSubscribe(aggregationMs,callback){this.endpoint.updateInfoSubscribe(aggregationMs,proxy(callback))}async readFile(path,encoding){return await this.endpoint.readFile(path,encoding)}async writeFile(path,content,encoding){return await this.endpoint.writeFile(path,content,encoding)}async copyFile(src,dst){return await this.endpoint.copyFile(src,dst)}async readdir(path,options){return await this.endpoint.readdir(path,options)}async mkdir(path,options){return await this.endpoint.mkdir(path,options)}async rm(path,options){return await this.endpoint.rm(path,options)}async rmdir(path,options){return await this.endpoint.rmdir(path,options)}async stat(path){const raw=await this.endpoint.stat(path);return new Stats(raw)}async gzip(files){return await this.endpoint.gzip(files)}async sigMd5(content){return await this.endpoint.sigMd5(content)}}var _Project_mount,__classPrivateFieldGet=function(receiver,state,kind,f){if("a"===kind&&!f)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof state?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===kind?f:"a"===kind?f.call(receiver):f?f.value:state.get(receiver)},__classPrivateFieldSet=function(receiver,state,value,kind,f){if("m"===kind)throw new TypeError("Private method is not writable");if("a"===kind&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof state?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===kind?f.call(receiver,value):f?f.value=value:state.set(receiver,value),value};let ProjectWorker;const ConnectedPorts=new Set;class Project{constructor(options){var _a,_b;this.options=options,_Project_mount.set(this,void 0);const{cwd,workerUrl,wasmUrl,threadWorkerUrl,serviceWorker,logFilter,loadersImportMap,loadersImportMapFetchCache}=options;this.cwd=cwd,this.serviceWorkerOptions=serviceWorker;const{port1,port2}=new MessageChannel;null!==(_a=this.remote)&&void 0!==_a||(this.remote=wrap(port1)),ProjectWorker||(ProjectWorker=workerUrl.startsWith("data:")?function createWorkerFromDataUri(dataUri,options){const idx=dataUri.indexOf(";base64,");if(-1===idx)return new Worker(dataUri,options);const base64=dataUri.slice(idx+8),code=atob(base64),blob=new Blob([code],{type:"application/javascript"});return new Worker(URL.createObjectURL(blob),options)}(workerUrl):new Worker(workerUrl),window.addEventListener("message",e=>{this.connectWorker(e)}),this.serviceWorkerOptions&&navigator.serviceWorker.addEventListener("message",e=>{this.connectWorker(e)})),ProjectWorker.postMessage(WorkerMessageType.InitConnection,[port2]),__classPrivateFieldSet(this,_Project_mount,null!==(_b=__classPrivateFieldGet(this,_Project_mount,"f"))&&void 0!==_b?_b:this.remote.mount({cwd,wasmUrl,threadWorkerUrl,loaderWorkerUrl:this.options.loaderWorkerUrl,loadersImportMap,loadersImportMapFetchCache,logFilter}),"f")}connectWorker(e){const port=e.ports[0];e.data!==WorkerMessageType.RequestFork||ConnectedPorts.has(port)||ProjectWorker.postMessage(WorkerMessageType.InitConnection,[port])}async installServiceWorker(){if(this.serviceWorkerOptions){const{url,scope,targetDirToCwd}=this.serviceWorkerOptions;return await installServiceWorker(url,scope,targetDirToCwd)}}async mount(){return await __classPrivateFieldGet(this,_Project_mount,"f")}async deps(options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.deps(options)}async install(packageLock,options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.install(packageLock,options)}async build(options){await __classPrivateFieldGet(this,_Project_mount,"f");const res=await this.remote.build(options);return handleIssues(res.issues,!1,!1),res}async dev(options){await __classPrivateFieldGet(this,_Project_mount,"f"),this.hmrServer||(this.hmrServer=new HmrServer({onSubscribe:async(path,client)=>{await this.hmrSubscribe(path,update=>{this.hmrServer.sendUpdate(path,update)})}})),this.remote.dev(null==options?void 0:options.config,(null==options?void 0:options.onUpdate)?proxy(result=>{handleIssues(result.issues,!1,!1),options.onUpdate(result)}):void 0)}async hmrSubscribe(identifier,callback){await this.remote.hmrSubscribe(identifier,proxy(callback))}updateInfoSubscribe(aggregationMs,callback){this.remote.updateInfoSubscribe(aggregationMs,proxy(callback))}async readFile(path,encoding){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.readFile(path,encoding)}async writeFile(path,content,encoding){return await __classPrivateFieldGet(this,_Project_mount,"f"),Uint8Array,await this.remote.writeFile(path,content,encoding)}async copyFile(src,dst){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.copyFile(src,dst)}async readdir(path,options){await __classPrivateFieldGet(this,_Project_mount,"f");return(await this.remote.readdir(path,options)).map(e=>new Dirent(e))}async mkdir(path,options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.mkdir(path,options)}async rm(path,options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.rm(path,options)}async rmdir(path,options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.rmdir(path,options)}async stat(path){await __classPrivateFieldGet(this,_Project_mount,"f");const raw=await this.remote.stat(path);return new Stats(raw)}async gzip(files){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.gzip(files)}async sigMd5(content){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.sigMd5(content)}connectHmrIframe(iframe,origin){return this.hmrServer?this.hmrServer.connectIframe(iframe,origin):null}static fork(channel,eventSource){return(eventSource||self).postMessage(WorkerMessageType.RequestFork,{transfer:[channel.port2]}),new ForkedProject(channel.port1)}static checkCompatibility(){return function checkCompatibility(){const details={sharedArrayBuffer:"undefined"!=typeof SharedArrayBuffer&&crossOriginIsolated,atomics:"undefined"!=typeof Atomics,worker:"undefined"!=typeof Worker,serviceWorker:"serviceWorker"in navigator,opfs:"storage"in navigator&&"getDirectory"in navigator.storage,fileSystemObserver:"FileSystemObserver"in window},missing=[];return details.sharedArrayBuffer||missing.push("SharedArrayBuffer (COOP/COEP)"),details.atomics||missing.push("Atomics"),details.worker||missing.push("Worker"),details.serviceWorker||missing.push("ServiceWorker"),details.opfs||missing.push("OPFS"),details.fileSystemObserver||missing.push("FileSystemObserver"),{compatible:0===missing.length,minimalVersion:{chrome:137},details,missing}}()}}_Project_mount=new WeakMap;let _resolve,_projectEndpoint,_handshakeCompleted=!1,_promise=new Promise(resolve=>{_resolve=()=>{_handshakeCompleted=!0,resolve()}});const params=new URLSearchParams(self.location.search),_serviceWorkerScope=params.get("scope"),_targetDirToCwd=params.get("targetDirToCwd");self.addEventListener("install",event=>{event.waitUntil(self.skipWaiting())}),self.addEventListener("activate",event=>{event.waitUntil(self.clients.claim())}),self.addEventListener("message",event=>{event.data&&!0===event.data[SWMessageType.HandShake]?(console.log("[ServiceWorker] Handshake message received"),_projectEndpoint=Project.fork(new MessageChannel,event.source),_resolve(),console.log("[ServiceWorker] Handshake completed, ProjectEndpoint ready")):event.data&&!0===event.data[SWMessageType.HeartbeatPing]&&event.source.postMessage({[SWMessageType.HeartbeatPong]:!0})}),self.addEventListener("fetch",event=>{let{url:urlStr}=event.request,url=new URL(urlStr);"string"==typeof _serviceWorkerScope&&url.pathname.startsWith(_serviceWorkerScope)&&event.respondWith((async()=>{try{await async function waitForHandshake(requestUrl){if(_handshakeCompleted)return;const startTime=Date.now(),warningTimer=setInterval(()=>{const elapsed=Date.now()-startTime;console.warn(`[ServiceWorker] Still waiting for handshake... (${elapsed}ms elapsed, request: ${requestUrl})`)},3e3),timeoutPromise=new Promise((_,reject)=>{setTimeout(()=>{reject(new Error(`[ServiceWorker] Handshake timeout after 10000ms. Make sure the main thread calls installServiceWorker() and sends the handshake message. Request: ${requestUrl}`))},1e4)});try{await Promise.race([_promise,timeoutPromise])}finally{clearInterval(warningTimer)}}(urlStr)}catch(e){return console.error(e.message),new Response(e.message,{status:503,statusText:"Service Unavailable"})}return async function readFileFromProject(projectPath){try{const content=await _projectEndpoint.readFile(projectPath);let mimeType="application/octet-stream";return projectPath.endsWith(".js")?mimeType="application/javascript":projectPath.endsWith(".css")?mimeType="text/css":projectPath.endsWith(".html")?mimeType="text/html":projectPath.endsWith(".json")&&(mimeType="application/json"),new Response(content,{headers:{"Content-Type":mimeType,..."text/html"===mimeType?{"Cross-Origin-Embedder-Policy":"credentialless"}:{}}})}catch(e){return console.error(`File ${projectPath} not found`),new Response("Not Found",{status:404})}}((null!=_targetDirToCwd?_targetDirToCwd:".")+url.pathname.replace(_serviceWorkerScope,""))})())})})(),__webpack_exports__=__webpack_exports__.default})());
|
|
2
|
+
!function webpackUniversalModuleDefinition(root,factory){if("object"==typeof exports&&"object"==typeof module)module.exports=factory();else if("function"==typeof define&&define.amd)define([],factory);else{var a=factory();for(var i in a)("object"==typeof exports?exports:root)[i]=a[i]}}(self,()=>(()=>{var __webpack_modules__={"../../node_modules/@babel/highlight/node_modules/chalk/index.js"(module,__unused_webpack_exports,__webpack_require__){"use strict";var process=__webpack_require__("../../node_modules/node-stdlib-browser/cjs/proxy/process.js");const escapeStringRegexp=__webpack_require__("../../node_modules/escape-string-regexp/index.js"),ansiStyles=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/index.js"),stdoutColor=__webpack_require__("../../node_modules/supports-color/browser.js").stdout,template=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/templates.js"),isSimpleWindowsTerm="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),levelMapping=["ansi","ansi","ansi256","ansi16m"],skipModels=new Set(["gray"]),styles=Object.create(null);function applyOptions(obj,options){options=options||{};const scLevel=stdoutColor?stdoutColor.level:0;obj.level=void 0===options.level?scLevel:options.level,obj.enabled="enabled"in options?options.enabled:obj.level>0}function Chalk(options){if(!this||!(this instanceof Chalk)||this.template){const chalk={};return applyOptions(chalk,options),chalk.template=function(){const args=[].slice.call(arguments);return chalkTag.apply(null,[chalk.template].concat(args))},Object.setPrototypeOf(chalk,Chalk.prototype),Object.setPrototypeOf(chalk.template,chalk),chalk.template.constructor=Chalk,chalk.template}applyOptions(this,options)}isSimpleWindowsTerm&&(ansiStyles.blue.open="[94m");for(const key of Object.keys(ansiStyles))ansiStyles[key].closeRe=new RegExp(escapeStringRegexp(ansiStyles[key].close),"g"),styles[key]={get(){const codes=ansiStyles[key];return build.call(this,this._styles?this._styles.concat(codes):[codes],this._empty,key)}};styles.visible={get(){return build.call(this,this._styles||[],!0,"visible")}},ansiStyles.color.closeRe=new RegExp(escapeStringRegexp(ansiStyles.color.close),"g");for(const model of Object.keys(ansiStyles.color.ansi))skipModels.has(model)||(styles[model]={get(){const level=this.level;return function(){const codes={open:ansiStyles.color[levelMapping[level]][model].apply(null,arguments),close:ansiStyles.color.close,closeRe:ansiStyles.color.closeRe};return build.call(this,this._styles?this._styles.concat(codes):[codes],this._empty,model)}}});ansiStyles.bgColor.closeRe=new RegExp(escapeStringRegexp(ansiStyles.bgColor.close),"g");for(const model of Object.keys(ansiStyles.bgColor.ansi)){if(skipModels.has(model))continue;styles["bg"+model[0].toUpperCase()+model.slice(1)]={get(){const level=this.level;return function(){const codes={open:ansiStyles.bgColor[levelMapping[level]][model].apply(null,arguments),close:ansiStyles.bgColor.close,closeRe:ansiStyles.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(codes):[codes],this._empty,model)}}}}const proto=Object.defineProperties(()=>{},styles);function build(_styles,_empty,key){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=_styles,builder._empty=_empty;const self=this;return Object.defineProperty(builder,"level",{enumerable:!0,get:()=>self.level,set(level){self.level=level}}),Object.defineProperty(builder,"enabled",{enumerable:!0,get:()=>self.enabled,set(enabled){self.enabled=enabled}}),builder.hasGrey=this.hasGrey||"gray"===key||"grey"===key,builder.__proto__=proto,builder}function applyStyle(){const args=arguments,argsLen=args.length;let str=String(arguments[0]);if(0===argsLen)return"";if(argsLen>1)for(let a=1;a<argsLen;a++)str+=" "+args[a];if(!this.enabled||this.level<=0||!str)return this._empty?"":str;const originalDim=ansiStyles.dim.open;isSimpleWindowsTerm&&this.hasGrey&&(ansiStyles.dim.open="");for(const code of this._styles.slice().reverse())str=code.open+str.replace(code.closeRe,code.open)+code.close,str=str.replace(/\r?\n/g,`${code.close}$&${code.open}`);return ansiStyles.dim.open=originalDim,str}function chalkTag(chalk,strings){if(!Array.isArray(strings))return[].slice.call(arguments,1).join(" ");const args=[].slice.call(arguments,2),parts=[strings.raw[0]];for(let i=1;i<strings.length;i++)parts.push(String(args[i-1]).replace(/[{}\\]/g,"\\$&")),parts.push(String(strings.raw[i]));return template(chalk,parts.join(""))}Object.defineProperties(Chalk.prototype,styles),module.exports=Chalk(),module.exports.supportsColor=stdoutColor,module.exports.default=module.exports},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/index.js"(module,__unused_webpack_exports,__webpack_require__){"use strict";module=__webpack_require__.nmd(module);const colorConvert=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/index.js"),wrapAnsi16=(fn,offset)=>function(){return`[${fn.apply(colorConvert,arguments)+offset}m`},wrapAnsi256=(fn,offset)=>function(){const code=fn.apply(colorConvert,arguments);return`[${38+offset};5;${code}m`},wrapAnsi16m=(fn,offset)=>function(){const rgb=fn.apply(colorConvert,arguments);return`[${38+offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`};Object.defineProperty(module,"exports",{enumerable:!0,get:function assembleStyles(){const codes=new Map,styles={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles.color.grey=styles.color.gray;for(const groupName of Object.keys(styles)){const group=styles[groupName];for(const styleName of Object.keys(group)){const style=group[styleName];styles[styleName]={open:`[${style[0]}m`,close:`[${style[1]}m`},group[styleName]=styles[styleName],codes.set(style[0],style[1])}Object.defineProperty(styles,groupName,{value:group,enumerable:!1}),Object.defineProperty(styles,"codes",{value:codes,enumerable:!1})}const ansi2ansi=n=>n,rgb2rgb=(r,g,b)=>[r,g,b];styles.color.close="[39m",styles.bgColor.close="[49m",styles.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)},styles.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)},styles.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)},styles.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)},styles.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)},styles.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let key of Object.keys(colorConvert)){if("object"!=typeof colorConvert[key])continue;const suite=colorConvert[key];"ansi16"===key&&(key="ansi"),"ansi16"in suite&&(styles.color.ansi[key]=wrapAnsi16(suite.ansi16,0),styles.bgColor.ansi[key]=wrapAnsi16(suite.ansi16,10)),"ansi256"in suite&&(styles.color.ansi256[key]=wrapAnsi256(suite.ansi256,0),styles.bgColor.ansi256[key]=wrapAnsi256(suite.ansi256,10)),"rgb"in suite&&(styles.color.ansi16m[key]=wrapAnsi16m(suite.rgb,0),styles.bgColor.ansi16m[key]=wrapAnsi16m(suite.rgb,10))}return styles}})},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js"(module,__unused_webpack_exports,__webpack_require__){var cssKeywords=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/index.js"),reverseKeywords={};for(var key in cssKeywords)cssKeywords.hasOwnProperty(key)&&(reverseKeywords[cssKeywords[key]]=key);var convert=module.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var model in convert)if(convert.hasOwnProperty(model)){if(!("channels"in convert[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert[model]))throw new Error("missing channel labels property: "+model);if(convert[model].labels.length!==convert[model].channels)throw new Error("channel and label counts mismatch: "+model);var channels=convert[model].channels,labels=convert[model].labels;delete convert[model].channels,delete convert[model].labels,Object.defineProperty(convert[model],"channels",{value:channels}),Object.defineProperty(convert[model],"labels",{value:labels})}function comparativeDistance(x,y){return Math.pow(x[0]-y[0],2)+Math.pow(x[1]-y[1],2)+Math.pow(x[2]-y[2],2)}convert.rgb.hsl=function(rgb){var h,l,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,min=Math.min(r,g,b),max=Math.max(r,g,b),delta=max-min;return max===min?h=0:r===max?h=(g-b)/delta:g===max?h=2+(b-r)/delta:b===max&&(h=4+(r-g)/delta),(h=Math.min(60*h,360))<0&&(h+=360),l=(min+max)/2,[h,100*(max===min?0:l<=.5?delta/(max+min):delta/(2-max-min)),100*l]},convert.rgb.hsv=function(rgb){var rdif,gdif,bdif,h,s,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,v=Math.max(r,g,b),diff=v-Math.min(r,g,b),diffc=function(c){return(v-c)/6/diff+.5};return 0===diff?h=s=0:(s=diff/v,rdif=diffc(r),gdif=diffc(g),bdif=diffc(b),r===v?h=bdif-gdif:g===v?h=1/3+rdif-bdif:b===v&&(h=2/3+gdif-rdif),h<0?h+=1:h>1&&(h-=1)),[360*h,100*s,100*v]},convert.rgb.hwb=function(rgb){var r=rgb[0],g=rgb[1],b=rgb[2];return[convert.rgb.hsl(rgb)[0],100*(1/255*Math.min(r,Math.min(g,b))),100*(b=1-1/255*Math.max(r,Math.max(g,b)))]},convert.rgb.cmyk=function(rgb){var k,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255;return[100*((1-r-(k=Math.min(1-r,1-g,1-b)))/(1-k)||0),100*((1-g-k)/(1-k)||0),100*((1-b-k)/(1-k)||0),100*k]},convert.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed)return reversed;var currentClosestKeyword,currentClosestDistance=1/0;for(var keyword in cssKeywords)if(cssKeywords.hasOwnProperty(keyword)){var distance=comparativeDistance(rgb,cssKeywords[keyword]);distance<currentClosestDistance&&(currentClosestDistance=distance,currentClosestKeyword=keyword)}return currentClosestKeyword},convert.keyword.rgb=function(keyword){return cssKeywords[keyword]},convert.rgb.xyz=function(rgb){var r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255;return[100*(.4124*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)+.1805*(b=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92)),100*(.2126*r+.7152*g+.0722*b),100*(.0193*r+.1192*g+.9505*b)]},convert.rgb.lab=function(rgb){var xyz=convert.rgb.xyz(rgb),x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert.hsl.rgb=function(hsl){var t1,t2,t3,rgb,val,h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;if(0===s)return[val=255*l,val,val];t1=2*l-(t2=l<.5?l*(1+s):l+s-l*s),rgb=[0,0,0];for(var i=0;i<3;i++)(t3=h+1/3*-(i-1))<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[i]=255*val;return rgb},convert.hsl.hsv=function(hsl){var h=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);return s*=(l*=2)<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin,[h,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert.hsv.rgb=function(hsv){var h=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h)%6,f=h-Math.floor(h),p=255*v*(1-s),q=255*v*(1-s*f),t=255*v*(1-s*(1-f));switch(v*=255,hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}},convert.hsv.hsl=function(hsv){var lmin,sl,l,h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);return l=(2-s)*v,sl=s*vmin,[h,100*(sl=(sl/=(lmin=(2-s)*vmin)<=1?lmin:2-lmin)||0),100*(l/=2)]},convert.hwb.rgb=function(hwb){var i,v,f,n,r,g,b,h=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;switch(ratio>1&&(wh/=ratio,bl/=ratio),f=6*h-(i=Math.floor(6*h)),1&i&&(f=1-f),n=wh+f*((v=1-bl)-wh),i){default:case 6:case 0:r=v,g=n,b=wh;break;case 1:r=n,g=v,b=wh;break;case 2:r=wh,g=v,b=n;break;case 3:r=wh,g=n,b=v;break;case 4:r=n,g=wh,b=v;break;case 5:r=v,g=wh,b=n}return[255*r,255*g,255*b]},convert.cmyk.rgb=function(cmyk){var c=cmyk[0]/100,m=cmyk[1]/100,y=cmyk[2]/100,k=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k)+k)),255*(1-Math.min(1,m*(1-k)+k)),255*(1-Math.min(1,y*(1-k)+k))]},convert.xyz.rgb=function(xyz){var r,g,b,x=xyz[0]/100,y=xyz[1]/100,z=xyz[2]/100;return g=-.9689*x+1.8758*y+.0415*z,b=.0557*x+-.204*y+1.057*z,r=(r=3.2406*x+-1.5372*y+-.4986*z)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:12.92*g,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:12.92*b,[255*(r=Math.min(Math.max(0,r),1)),255*(g=Math.min(Math.max(0,g),1)),255*(b=Math.min(Math.max(0,b),1))]},convert.xyz.lab=function(xyz){var x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert.lab.xyz=function(lab){var x,y,z,l=lab[0];x=lab[1]/500+(y=(l+16)/116),z=y-lab[2]/200;var y2=Math.pow(y,3),x2=Math.pow(x,3),z2=Math.pow(z,3);return y=y2>.008856?y2:(y-16/116)/7.787,x=x2>.008856?x2:(x-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,[x*=95.047,y*=100,z*=108.883]},convert.lab.lch=function(lab){var h,l=lab[0],a=lab[1],b=lab[2];return(h=360*Math.atan2(b,a)/2/Math.PI)<0&&(h+=360),[l,Math.sqrt(a*a+b*b),h]},convert.lch.lab=function(lch){var hr,l=lch[0],c=lch[1];return hr=lch[2]/360*2*Math.PI,[l,c*Math.cos(hr),c*Math.sin(hr)]},convert.rgb.ansi16=function(args){var r=args[0],g=args[1],b=args[2],value=1 in arguments?arguments[1]:convert.rgb.hsv(args)[2];if(0===(value=Math.round(value/50)))return 30;var ansi=30+(Math.round(b/255)<<2|Math.round(g/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert.hsv.ansi16=function(args){return convert.rgb.ansi16(convert.hsv.rgb(args),args[2])},convert.rgb.ansi256=function(args){var r=args[0],g=args[1],b=args[2];return r===g&&g===b?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b/255*5)},convert.ansi16.rgb=function(args){var color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),[color=color/10.5*255,color,color];var mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert.ansi256.rgb=function(args){if(args>=232){var c=10*(args-232)+8;return[c,c,c]}var rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert.rgb.hex=function(args){var string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.hex.rgb=function(args){var match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];var colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map(function(char){return char+char}).join(""));var integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert.rgb.hcg=function(rgb){var hue,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,max=Math.max(Math.max(r,g),b),min=Math.min(Math.min(r,g),b),chroma=max-min;return hue=chroma<=0?0:max===r?(g-b)/chroma%6:max===g?2+(b-r)/chroma:4+(r-g)/chroma+4,hue/=6,[360*(hue%=1),100*chroma,100*(chroma<1?min/(1-chroma):0)]},convert.hsl.hcg=function(hsl){var s=hsl[1]/100,l=hsl[2]/100,c=1,f=0;return(c=l<.5?2*s*l:2*s*(1-l))<1&&(f=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f]},convert.hsv.hcg=function(hsv){var s=hsv[1]/100,v=hsv[2]/100,c=s*v,f=0;return c<1&&(f=(v-c)/(1-c)),[hsv[0],100*c,100*f]},convert.hcg.rgb=function(hcg){var h=hcg[0]/360,c=hcg[1]/100,g=hcg[2]/100;if(0===c)return[255*g,255*g,255*g];var mg,pure=[0,0,0],hi=h%1*6,v=hi%1,w=1-v;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w}return mg=(1-c)*g,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert.hcg.hsv=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c),f=0;return v>0&&(f=c/v),[hcg[0],100*f,100*v]},convert.hcg.hsl=function(hcg){var c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert.hcg.hwb=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert.hwb.hcg=function(hwb){var w=hwb[1]/100,v=1-hwb[2]/100,c=v-w,g=0;return c<1&&(g=(v-c)/(1-c)),[hwb[0],100*c,100*g]},convert.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert.gray.hsl=convert.gray.hsv=function(args){return[0,0,args[0]]},convert.gray.hwb=function(gray){return[0,100,gray[0]]},convert.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert.gray.lab=function(gray){return[gray[0],0,0]},convert.gray.hex=function(gray){var val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/index.js"(module,__unused_webpack_exports,__webpack_require__){var conversions=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js"),route=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/route.js"),convert={};Object.keys(conversions).forEach(function(fromModel){convert[fromModel]={},Object.defineProperty(convert[fromModel],"channels",{value:conversions[fromModel].channels}),Object.defineProperty(convert[fromModel],"labels",{value:conversions[fromModel].labels});var routes=route(fromModel);Object.keys(routes).forEach(function(toModel){var fn=routes[toModel];convert[fromModel][toModel]=function wrapRounded(fn){var wrappedFn=function(args){if(null==args)return args;arguments.length>1&&(args=Array.prototype.slice.call(arguments));var result=fn(args);if("object"==typeof result)for(var len=result.length,i=0;i<len;i++)result[i]=Math.round(result[i]);return result};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn),convert[fromModel][toModel].raw=function wrapRaw(fn){var wrappedFn=function(args){return null==args?args:(arguments.length>1&&(args=Array.prototype.slice.call(arguments)),fn(args))};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn)})}),module.exports=convert},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/index.js"(module){"use strict";module.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},"../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/route.js"(module,__unused_webpack_exports,__webpack_require__){var conversions=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js");function deriveBFS(fromModel){var graph=function buildGraph(){for(var graph={},models=Object.keys(conversions),len=models.length,i=0;i<len;i++)graph[models[i]]={distance:-1,parent:null};return graph}(),queue=[fromModel];for(graph[fromModel].distance=0;queue.length;)for(var current=queue.pop(),adjacents=Object.keys(conversions[current]),len=adjacents.length,i=0;i<len;i++){var adjacent=adjacents[i],node=graph[adjacent];-1===node.distance&&(node.distance=graph[current].distance+1,node.parent=current,queue.unshift(adjacent))}return graph}function link(from,to){return function(args){return to(from(args))}}function wrapConversion(toModel,graph){for(var path=[graph[toModel].parent,toModel],fn=conversions[graph[toModel].parent][toModel],cur=graph[toModel].parent;graph[cur].parent;)path.unshift(graph[cur].parent),fn=link(conversions[graph[cur].parent][cur],fn),cur=graph[cur].parent;return fn.conversion=path,fn}module.exports=function(fromModel){for(var graph=deriveBFS(fromModel),conversion={},models=Object.keys(graph),len=models.length,i=0;i<len;i++){var toModel=models[i];null!==graph[toModel].parent&&(conversion[toModel]=wrapConversion(toModel,graph))}return conversion}},"../../node_modules/@babel/highlight/node_modules/chalk/templates.js"(module){"use strict";const TEMPLATE_REGEX=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,STRING_REGEX=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ESCAPE_REGEX=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ESCAPES=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(c){return"u"===c[0]&&5===c.length||"x"===c[0]&&3===c.length?String.fromCharCode(parseInt(c.slice(1),16)):ESCAPES.get(c)||c}function parseArguments(name,args){const results=[],chunks=args.trim().split(/\s*,\s*/g);let matches;for(const chunk of chunks)if(isNaN(chunk)){if(!(matches=chunk.match(STRING_REGEX)))throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);results.push(matches[2].replace(ESCAPE_REGEX,(m,escape,chr)=>escape?unescape(escape):chr))}else results.push(Number(chunk));return results}function parseStyle(style){STYLE_REGEX.lastIndex=0;const results=[];let matches;for(;null!==(matches=STYLE_REGEX.exec(style));){const name=matches[1];if(matches[2]){const args=parseArguments(name,matches[2]);results.push([name].concat(args))}else results.push([name])}return results}function buildStyle(chalk,styles){const enabled={};for(const layer of styles)for(const style of layer.styles)enabled[style[0]]=layer.inverse?null:style.slice(1);let current=chalk;for(const styleName of Object.keys(enabled))if(Array.isArray(enabled[styleName])){if(!(styleName in current))throw new Error(`Unknown Chalk style: ${styleName}`);current=enabled[styleName].length>0?current[styleName].apply(current,enabled[styleName]):current[styleName]}return current}module.exports=(chalk,tmp)=>{const styles=[],chunks=[];let chunk=[];if(tmp.replace(TEMPLATE_REGEX,(m,escapeChar,inverse,style,close,chr)=>{if(escapeChar)chunk.push(unescape(escapeChar));else if(style){const str=chunk.join("");chunk=[],chunks.push(0===styles.length?str:buildStyle(chalk,styles)(str)),styles.push({inverse,styles:parseStyle(style)})}else if(close){if(0===styles.length)throw new Error("Found extraneous } in Chalk template literal");chunks.push(buildStyle(chalk,styles)(chunk.join(""))),chunk=[],styles.pop()}else chunk.push(chr)}),chunks.push(chunk.join("")),styles.length>0){const errMsg=`Chalk template literal is missing ${styles.length} closing bracket${1===styles.length?"":"s"} (\`}\`)`;throw new Error(errMsg)}return chunks.join("")}},"../../node_modules/escape-string-regexp/index.js"(module){"use strict";var matchOperatorsRe=/[|\\{}()[\]^$+*?.]/g;module.exports=function(str){if("string"!=typeof str)throw new TypeError("Expected a string");return str.replace(matchOperatorsRe,"\\$&")}},"../../node_modules/js-tokens/index.js"(__unused_webpack_module,exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,exports.matchToToken=function(match){var token={type:"invalid",value:match[0],closed:void 0};return match[1]?(token.type="string",token.closed=!(!match[3]&&!match[4])):match[5]?token.type="comment":match[6]?(token.type="comment",token.closed=!!match[7]):match[8]?token.type="regex":match[9]?token.type="number":match[10]?token.type="name":match[11]?token.type="punctuator":match[12]&&(token.type="whitespace"),token}},"../../node_modules/picocolors/picocolors.browser.js"(module){var x=String,create=function(){return{isColorSupported:!1,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x,blackBright:x,redBright:x,greenBright:x,yellowBright:x,blueBright:x,magentaBright:x,cyanBright:x,whiteBright:x,bgBlackBright:x,bgRedBright:x,bgGreenBright:x,bgYellowBright:x,bgBlueBright:x,bgMagentaBright:x,bgCyanBright:x,bgWhiteBright:x}};module.exports=create(),module.exports.createColors=create},"../../node_modules/supports-color/browser.js"(module){"use strict";module.exports={stdout:!1,stderr:!1}},"../../node_modules/@babel/code-frame/lib/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var process=__webpack_require__("../../node_modules/node-stdlib-browser/cjs/proxy/process.js");exports.gl=codeFrameColumns;var _highlight=__webpack_require__("../../node_modules/@babel/highlight/lib/index.js");let deprecationWarningShown=!1;const NEWLINE=/\r\n|[\n\r\u2028\u2029]/;function codeFrameColumns(rawLines,loc,opts={}){const highlighted=(opts.highlightCode||opts.forceColor)&&(0,_highlight.shouldHighlight)(opts),chalk=(0,_highlight.getChalk)(opts),defs=function getDefs(chalk){return{gutter:chalk.grey,marker:chalk.red.bold,message:chalk.red.bold}}(chalk),maybeHighlight=(chalkFn,string)=>highlighted?chalkFn(string):string,lines=rawLines.split(NEWLINE),{start,end,markerLines}=function getMarkerLines(loc,source,opts){const startLoc=Object.assign({column:0,line:-1},loc.start),endLoc=Object.assign({},startLoc,loc.end),{linesAbove=2,linesBelow=3}=opts||{},startLine=startLoc.line,startColumn=startLoc.column,endLine=endLoc.line,endColumn=endLoc.column;let start=Math.max(startLine-(linesAbove+1),0),end=Math.min(source.length,endLine+linesBelow);-1===startLine&&(start=0),-1===endLine&&(end=source.length);const lineDiff=endLine-startLine,markerLines={};if(lineDiff)for(let i=0;i<=lineDiff;i++){const lineNumber=i+startLine;if(startColumn)if(0===i){const sourceLength=source[lineNumber-1].length;markerLines[lineNumber]=[startColumn,sourceLength-startColumn+1]}else if(i===lineDiff)markerLines[lineNumber]=[0,endColumn];else{const sourceLength=source[lineNumber-i].length;markerLines[lineNumber]=[0,sourceLength]}else markerLines[lineNumber]=!0}else markerLines[startLine]=startColumn===endColumn?!startColumn||[startColumn,0]:[startColumn,endColumn-startColumn];return{start,end,markerLines}}(loc,lines,opts),hasColumns=loc.start&&"number"==typeof loc.start.column,numberMaxWidth=String(end).length;let frame=(highlighted?(0,_highlight.default)(rawLines,opts):rawLines).split(NEWLINE,end).slice(start,end).map((line,index)=>{const number=start+1+index,gutter=` ${` ${number}`.slice(-numberMaxWidth)} |`,hasMarker=markerLines[number],lastMarkerLine=!markerLines[number+1];if(hasMarker){let markerLine="";if(Array.isArray(hasMarker)){const markerSpacing=line.slice(0,Math.max(hasMarker[0]-1,0)).replace(/[^\t]/g," "),numberOfMarkers=hasMarker[1]||1;markerLine=["\n ",maybeHighlight(defs.gutter,gutter.replace(/\d/g," "))," ",markerSpacing,maybeHighlight(defs.marker,"^").repeat(numberOfMarkers)].join(""),lastMarkerLine&&opts.message&&(markerLine+=" "+maybeHighlight(defs.message,opts.message))}return[maybeHighlight(defs.marker,">"),maybeHighlight(defs.gutter,gutter),line.length>0?` ${line}`:"",markerLine].join("")}return` ${maybeHighlight(defs.gutter,gutter)}${line.length>0?` ${line}`:""}`}).join("\n");return opts.message&&!hasColumns&&(frame=`${" ".repeat(numberMaxWidth+1)}${opts.message}\n${frame}`),highlighted?chalk.reset(frame):frame}},"../../node_modules/@babel/helper-validator-identifier/lib/identifier.js"(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isIdentifierChar=isIdentifierChar,exports.isIdentifierName=function isIdentifierName(name){let isFirst=!0;for(let i=0;i<name.length;i++){let cp=name.charCodeAt(i);if(55296==(64512&cp)&&i+1<name.length){const trail=name.charCodeAt(++i);56320==(64512&trail)&&(cp=65536+((1023&cp)<<10)+(1023&trail))}if(isFirst){if(isFirst=!1,!isIdentifierStart(cp))return!1}else if(!isIdentifierChar(cp))return!1}return!isFirst},exports.isIdentifierStart=isIdentifierStart;let nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;const astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(code,set){let pos=65536;for(let i=0,length=set.length;i<length;i+=2){if(pos+=set[i],pos>code)return!1;if(pos+=set[i+1],pos>=code)return!0}return!1}function isIdentifierStart(code){return code<65?36===code:code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code){return code<48?36===code:code<58||!(code<65)&&(code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes))))}},"../../node_modules/@babel/helper-validator-identifier/lib/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isIdentifierChar",{enumerable:!0,get:function(){return _identifier.isIdentifierChar}}),Object.defineProperty(exports,"isIdentifierName",{enumerable:!0,get:function(){return _identifier.isIdentifierName}}),Object.defineProperty(exports,"isIdentifierStart",{enumerable:!0,get:function(){return _identifier.isIdentifierStart}}),Object.defineProperty(exports,"isKeyword",{enumerable:!0,get:function(){return _keyword.isKeyword}}),Object.defineProperty(exports,"isReservedWord",{enumerable:!0,get:function(){return _keyword.isReservedWord}}),Object.defineProperty(exports,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictBindOnlyReservedWord}}),Object.defineProperty(exports,"isStrictBindReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictBindReservedWord}}),Object.defineProperty(exports,"isStrictReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictReservedWord}});var _identifier=__webpack_require__("../../node_modules/@babel/helper-validator-identifier/lib/identifier.js"),_keyword=__webpack_require__("../../node_modules/@babel/helper-validator-identifier/lib/keyword.js")},"../../node_modules/@babel/helper-validator-identifier/lib/keyword.js"(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isKeyword=function isKeyword(word){return keywords.has(word)},exports.isReservedWord=isReservedWord,exports.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord,exports.isStrictBindReservedWord=function isStrictBindReservedWord(word,inModule){return isStrictReservedWord(word,inModule)||isStrictBindOnlyReservedWord(word)},exports.isStrictReservedWord=isStrictReservedWord;const reservedWords_strict=["implements","interface","let","package","private","protected","public","static","yield"],reservedWords_strictBind=["eval","arguments"],keywords=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),reservedWordsStrictSet=new Set(reservedWords_strict),reservedWordsStrictBindSet=new Set(reservedWords_strictBind);function isReservedWord(word,inModule){return inModule&&"await"===word||"enum"===word}function isStrictReservedWord(word,inModule){return isReservedWord(word,inModule)||reservedWordsStrictSet.has(word)}function isStrictBindOnlyReservedWord(word){return reservedWordsStrictBindSet.has(word)}},"../../node_modules/@babel/highlight/lib/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var process=__webpack_require__("../../node_modules/node-stdlib-browser/cjs/proxy/process.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function highlight(code,options={}){if(""!==code&&shouldHighlight(options)){const defs=function getDefs(colors){return{keyword:colors.cyan,capitalized:colors.yellow,jsxIdentifier:colors.yellow,punctuator:colors.yellow,number:colors.magenta,string:colors.green,regex:colors.magenta,comment:colors.gray,invalid:compose(compose(colors.white,colors.bgRed),colors.bold)}}(function getColors(forceColor){if(forceColor){return null!=pcWithForcedColor||(pcWithForcedColor=(0,_picocolors.createColors)(!0)),pcWithForcedColor}return colors}(options.forceColor));return function highlightTokens(defs,text){let highlighted="";for(const{type,value}of tokenize(text)){const colorize=defs[type];highlighted+=colorize?value.split(NEWLINE).map(str=>colorize(str)).join("\n"):value}return highlighted}(defs,code)}return code},exports.shouldHighlight=shouldHighlight;var _jsTokens=__webpack_require__("../../node_modules/js-tokens/index.js"),_helperValidatorIdentifier=__webpack_require__("../../node_modules/@babel/helper-validator-identifier/lib/index.js"),_picocolors=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("../../node_modules/picocolors/picocolors.browser.js"),!0);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}const colors="object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR?_picocolors.default:(0,_picocolors.createColors)(!1),compose=(f,g)=>v=>f(g(v)),sometimesKeywords=new Set(["as","async","from","get","of","set"]);const NEWLINE=/\r\n|[\n\r\u2028\u2029]/,BRACKET=/^[()[\]{}]$/;let tokenize,pcWithForcedColor;{const JSX_TAG=/^[a-z][\w-]*$/i,getTokenType=function(token,offset,text){if("name"===token.type){if((0,_helperValidatorIdentifier.isKeyword)(token.value)||(0,_helperValidatorIdentifier.isStrictReservedWord)(token.value,!0)||sometimesKeywords.has(token.value))return"keyword";if(JSX_TAG.test(token.value)&&("<"===text[offset-1]||"</"===text.slice(offset-2,offset)))return"jsxIdentifier";if(token.value[0]!==token.value[0].toLowerCase())return"capitalized"}return"punctuator"===token.type&&BRACKET.test(token.value)?"bracket":"invalid"!==token.type||"@"!==token.value&&"#"!==token.value?token.type:"punctuator"};tokenize=function*(text){let match;for(;match=_jsTokens.default.exec(text);){const token=_jsTokens.matchToToken(match);yield{type:getTokenType(token,match.index,text),value:token.value}}}}function shouldHighlight(options){return colors.isColorSupported||options.forceColor}{let chalk,chalkWithForcedColor;exports.getChalk=({forceColor})=>(null!=chalk||(chalk=__webpack_require__("../../node_modules/@babel/highlight/node_modules/chalk/index.js")),forceColor?(null!=chalkWithForcedColor||(chalkWithForcedColor=new chalk.constructor({enabled:!0,level:1})),chalkWithForcedColor):chalk)}},"../../node_modules/node-stdlib-browser/cjs/proxy/process.js"(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var cachedSetTimeout,cachedClearTimeout,browser$1={exports:{}},process=browser$1.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop$1(){}function noop(){}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop$1,process.addListener=noop$1,process.once=noop$1,process.off=noop$1,process.removeListener=noop$1,process.removeAllListeners=noop$1,process.emit=noop$1,process.prependListener=noop$1,process.prependOnceListener=noop$1,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var browser=browser$1.exports.browser,emitWarning=noop,binding=browser$1.exports.binding,exit=noop,features={},kill=noop,dlopen=noop,uptime=noop,memoryUsage=noop,uvCounters=noop,execArgv=[],api={nextTick:browser$1.exports.nextTick,title:browser$1.exports.title,browser,env:browser$1.exports.env,argv:browser$1.exports.argv,version:browser$1.exports.version,versions:browser$1.exports.versions,on:browser$1.exports.on,addListener:browser$1.exports.addListener,once:browser$1.exports.once,off:browser$1.exports.off,removeListener:browser$1.exports.removeListener,removeAllListeners:browser$1.exports.removeAllListeners,emit:browser$1.exports.emit,emitWarning,prependListener:browser$1.exports.prependListener,prependOnceListener:browser$1.exports.prependOnceListener,listeners:browser$1.exports.listeners,binding,cwd:browser$1.exports.cwd,chdir:browser$1.exports.chdir,umask:browser$1.exports.umask,exit,pid:1,features,kill,dlopen,uptime,memoryUsage,uvCounters,platform:"browser",arch:"browser",execPath:"browser",execArgv};exports.addListener=browser$1.exports.addListener,exports.arch="browser",exports.argv=browser$1.exports.argv,exports.binding=binding,exports.browser=browser,exports.chdir=browser$1.exports.chdir,exports.cwd=browser$1.exports.cwd,exports.default=api,exports.dlopen=dlopen,exports.emit=browser$1.exports.emit,exports.emitWarning=emitWarning,exports.env=browser$1.exports.env,exports.execArgv=execArgv,exports.execPath="browser",exports.exit=exit,exports.features=features,exports.kill=kill,exports.listeners=browser$1.exports.listeners,exports.memoryUsage=memoryUsage,exports.nextTick=browser$1.exports.nextTick,exports.off=browser$1.exports.off,exports.on=browser$1.exports.on,exports.once=browser$1.exports.once,exports.pid=1,exports.platform="browser",exports.prependListener=browser$1.exports.prependListener,exports.prependOnceListener=browser$1.exports.prependOnceListener,exports.removeAllListeners=browser$1.exports.removeAllListeners,exports.removeListener=browser$1.exports.removeListener,exports.title=browser$1.exports.title,exports.umask=browser$1.exports.umask,exports.uptime=uptime,exports.uvCounters=uvCounters,exports.version=browser$1.exports.version,exports.versions=browser$1.exports.versions,exports=module.exports=api}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module);var __webpack_exports__={};return(()=>{"use strict";var WorkerMessageType;!function(WorkerMessageType){WorkerMessageType[WorkerMessageType.InitConnection=1464664064]="InitConnection",WorkerMessageType[WorkerMessageType.RequestFork=1464664065]="RequestFork"}(WorkerMessageType||(WorkerMessageType={}));WorkerMessageType.InitConnection,WorkerMessageType.RequestFork;var SWMessageType;!function(SWMessageType){SWMessageType[SWMessageType.HandShake=1398210560]="HandShake",SWMessageType[SWMessageType.HeartbeatPing=1398210561]="HeartbeatPing",SWMessageType[SWMessageType.HeartbeatPong=1398210562]="HeartbeatPong"}(SWMessageType||(SWMessageType={}));SWMessageType.HandShake,SWMessageType.HeartbeatPing,SWMessageType.HeartbeatPong;var HMR_ACTIONS_SENT_TO_BROWSER;!function(HMR_ACTIONS_SENT_TO_BROWSER){HMR_ACTIONS_SENT_TO_BROWSER.RELOAD="reload",HMR_ACTIONS_SENT_TO_BROWSER.CLIENT_CHANGES="clientChanges",HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ONLY_CHANGES="serverOnlyChanges",HMR_ACTIONS_SENT_TO_BROWSER.SYNC="sync",HMR_ACTIONS_SENT_TO_BROWSER.BUILT="built",HMR_ACTIONS_SENT_TO_BROWSER.BUILDING="building",HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_MESSAGE="turbopack-message",HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED="turbopack-connected"}(HMR_ACTIONS_SENT_TO_BROWSER||(HMR_ACTIONS_SENT_TO_BROWSER={}));var lib=__webpack_require__("../../node_modules/@babel/code-frame/lib/index.js"),picocolors_browser=__webpack_require__("../../node_modules/picocolors/picocolors.browser.js"),picocolors_browser_default=__webpack_require__.n(picocolors_browser);function decodeHex(hexStr){if(""===hexStr.trim())throw new Error("can't decode empty hex");const num=parseInt(hexStr,16);if(isNaN(num))throw new Error(`invalid hex: \`${hexStr}\``);return String.fromCodePoint(num)}const DECODE_REGEX=/^__TURBOPACK__([a-zA-Z0-9_$]+)__$/;const MAGIC_IDENTIFIER_REGEX=/__TURBOPACK__[a-zA-Z0-9_$]+__/g,{bold,green,magenta,red}=picocolors_browser_default();function renderStyledStringToErrorAnsi(string){function decodeMagicIdentifiers(str){return str.replaceAll(MAGIC_IDENTIFIER_REGEX,ident=>{try{return magenta(`{${function decodeMagicIdentifier(identifier){const matches=identifier.match(DECODE_REGEX);if(!matches)return identifier;const inner=matches[1];let output="",mode=0,buffer="";for(let i=0;i<inner.length;i++){const char=inner[i];if(0===mode)"_"===char?mode=1:"$"===char?mode=2:output+=char;else if(1===mode)"_"===char?(output+=" ",mode=0):"$"===char?(output+="_",mode=2):(output+=char,mode=0);else if(2===mode)if(2===buffer.length&&(output+=decodeHex(buffer),buffer=""),"_"===char){if(""!==buffer)throw new Error(`invalid hex: \`${buffer}\``);mode=3}else if("$"===char){if(""!==buffer)throw new Error(`invalid hex: \`${buffer}\``);mode=0}else buffer+=char;else if(3===mode){if("_"===char)throw new Error(`invalid hex: \`${buffer+char}\``);"$"===char?(output+=decodeHex(buffer),buffer="",mode=0):buffer+=char}}return output}(ident)}}`)}catch(e){return magenta(`{${ident} (decoding failed: ${e})}`)}})}switch(string.type){case"text":return decodeMagicIdentifiers(string.value);case"strong":return bold(red(decodeMagicIdentifiers(string.value)));case"code":return green(decodeMagicIdentifiers(string.value));case"line":return string.value.map(renderStyledStringToErrorAnsi).join("");case"stack":return string.value.map(renderStyledStringToErrorAnsi).join("\n");default:throw new Error("Unknown StyledString type",string)}}function formatIssue(issue,forceColor=!0){const{filePath,title,description,source}=issue;let{documentationLink}=issue,formattedTitle=renderStyledStringToErrorAnsi(title).replace(/\n/g,"\n "),formattedFilePath=filePath.replace("[project]/","./").replaceAll("/./","/").replace("\\\\?\\",""),message="";if(source&&source.range){const{start}=source.range;message=`${formattedFilePath}:${start.line+1}:${start.column+1}\n${formattedTitle}`}else message=formattedFilePath?`${formattedFilePath}\n${formattedTitle}`:formattedTitle;if(message+="\n",(null==source?void 0:source.range)&&source.source.content){const{start,end}=source.range;message+=(0,lib.gl)(source.source.content,{start:{line:start.line+1,column:start.column+1},end:{line:end.line+1,column:end.column+1}},{forceColor}).trim()+"\n\n"}return description&&(message+=renderStyledStringToErrorAnsi(description)+"\n\n"),documentationLink&&(message+=documentationLink+"\n\n"),message}function handleIssues(issues,throwErrors=!0,forceColor=!0){const topLevelErrors=new Set,topLevelWarnings=new Set;for(const issue of issues)"error"===issue.severity||"fatal"===issue.severity?topLevelErrors.add(formatIssue(issue,forceColor)):isRelevantWarning(issue)&&topLevelWarnings.add(formatIssue(issue,forceColor));if(0!==topLevelWarnings.size){const warnMsg=`Utoopack build encountered ${topLevelWarnings.size} warnings:\n${[...topLevelWarnings].join("\n")}`;console.warn(warnMsg)}if(0!==topLevelErrors.size){const errMsg=`Utoopack build failed with ${topLevelErrors.size} errors:\n${[...topLevelErrors].join("\n")}`;if(throwErrors)throw new Error(errMsg);console.error(errMsg)}}function isRelevantWarning(issue){return"warning"===issue.severity&&!function isNodeModulesIssue(issue){if("warning"===issue.severity&&"config"===issue.stage&&renderStyledStringToErrorAnsi(issue.title).includes("can't be external"))return!1;return"warning"===issue.severity&&(null!==issue.filePath.match(/^(?:.*[\\/])?node_modules(?:[\\/].*)?$/)||issue.filePath.includes("@utoo/pack"))}(issue)}Error;function compatHtml(maybeWebpackPluginInstance){if(maybeWebpackPluginInstance)return maybeWebpackPluginInstance.userOptions||maybeWebpackPluginInstance.options}function compatMiniCssExtract(maybeWebpackPluginInstance){var _a;return null===(_a=null==maybeWebpackPluginInstance?void 0:maybeWebpackPluginInstance.options)||void 0===_a?void 0:_a.filename}function compatCopy(maybeWebpackPluginInstance){const patterns=null==maybeWebpackPluginInstance?void 0:maybeWebpackPluginInstance.patterns;if(Array.isArray(patterns))return patterns.map(pattern=>"string"==typeof pattern?pattern:{from:pattern.from,to:pattern.to})}function compatDefine(maybeWebpackPluginInstance){const definitions=null==maybeWebpackPluginInstance?void 0:maybeWebpackPluginInstance.definitions;if(!definitions||"object"!=typeof definitions)return definitions;const processedDefinitions={};for(const[key,value]of Object.entries(definitions))processedDefinitions[key]="object"==typeof value&&null!==value?JSON.stringify(value):value;return processedDefinitions}function compatProvider(maybeWebpackPluginInstance){const definitions=null==maybeWebpackPluginInstance?void 0:maybeWebpackPluginInstance.definitions;if(!definitions||"object"!=typeof definitions)return;const provider={};for(const[key,value]of Object.entries(definitions))"string"==typeof value?provider[key]=value:Array.isArray(value)&&(1===value.length?provider[key]=value[0]:value.length>=2&&(provider[key]=[value[0],value[1]]));return Object.keys(provider).length>0?provider:void 0}compatHtml.pluginName="HtmlWebpackPlugin",compatMiniCssExtract.pluginName="MiniCssExtractPlugin",compatCopy.pluginName="CopyPlugin",compatDefine.pluginName="DefinePlugin",compatProvider.pluginName="ProvidePlugin";const proxyMarker=Symbol("Comlink.proxy"),createEndpoint=Symbol("Comlink.endpoint"),releaseProxy=Symbol("Comlink.releaseProxy"),finalizer=Symbol("Comlink.finalizer"),throwMarker=Symbol("Comlink.thrown"),isObject=val=>"object"==typeof val&&null!==val||"function"==typeof val,transferHandlers=new Map([["proxy",{canHandle:val=>isObject(val)&&val[proxyMarker],serialize(obj){const{port1,port2}=new MessageChannel;return expose(obj,port1),[port2,[port2]]},deserialize:port=>(port.start(),wrap(port))}],["throw",{canHandle:value=>isObject(value)&&throwMarker in value,serialize({value}){let serialized;return serialized=value instanceof Error?{isError:!0,value:{message:value.message,name:value.name,stack:value.stack}}:{isError:!1,value},[serialized,[]]},deserialize(serialized){if(serialized.isError)throw Object.assign(new Error(serialized.value.message),serialized.value);throw serialized.value}}]]);function expose(obj,ep=globalThis,allowedOrigins=["*"]){ep.addEventListener("message",function callback(ev){if(!ev||!ev.data)return;if(!function isAllowedOrigin(allowedOrigins,origin){for(const allowedOrigin of allowedOrigins){if(origin===allowedOrigin||"*"===allowedOrigin)return!0;if(allowedOrigin instanceof RegExp&&allowedOrigin.test(origin))return!0}return!1}(allowedOrigins,ev.origin))return void console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);const{id,type,path}=Object.assign({path:[]},ev.data),argumentList=(ev.data.argumentList||[]).map(fromWireValue);let returnValue;try{const parent=path.slice(0,-1).reduce((obj,prop)=>obj[prop],obj),rawValue=path.reduce((obj,prop)=>obj[prop],obj);switch(type){case"GET":returnValue=rawValue;break;case"SET":parent[path.slice(-1)[0]]=fromWireValue(ev.data.value),returnValue=!0;break;case"APPLY":returnValue=rawValue.apply(parent,argumentList);break;case"CONSTRUCT":returnValue=proxy(new rawValue(...argumentList));break;case"ENDPOINT":{const{port1,port2}=new MessageChannel;expose(obj,port2),returnValue=function transfer(obj,transfers){return transferCache.set(obj,transfers),obj}(port1,[port1])}break;case"RELEASE":returnValue=void 0;break;default:return}}catch(value){returnValue={value,[throwMarker]:0}}Promise.resolve(returnValue).catch(value=>({value,[throwMarker]:0})).then(returnValue=>{const[wireValue,transferables]=toWireValue(returnValue);ep.postMessage(Object.assign(Object.assign({},wireValue),{id}),transferables),"RELEASE"===type&&(ep.removeEventListener("message",callback),closeEndPoint(ep),finalizer in obj&&"function"==typeof obj[finalizer]&&obj[finalizer]())}).catch(error=>{const[wireValue,transferables]=toWireValue({value:new TypeError("Unserializable return value"),[throwMarker]:0});ep.postMessage(Object.assign(Object.assign({},wireValue),{id}),transferables)})}),ep.start&&ep.start()}function closeEndPoint(endpoint){(function isMessagePort(endpoint){return"MessagePort"===endpoint.constructor.name})(endpoint)&&endpoint.close()}function wrap(ep,target){const pendingListeners=new Map;return ep.addEventListener("message",function handleMessage(ev){const{data}=ev;if(!data||!data.id)return;const resolver=pendingListeners.get(data.id);if(resolver)try{resolver(data)}finally{pendingListeners.delete(data.id)}}),createProxy(ep,pendingListeners,[],target)}function throwIfProxyReleased(isReleased){if(isReleased)throw new Error("Proxy has been released and is not useable")}function releaseEndpoint(ep){return requestResponseMessage(ep,new Map,{type:"RELEASE"}).then(()=>{closeEndPoint(ep)})}const proxyCounter=new WeakMap,proxyFinalizers="FinalizationRegistry"in globalThis&&new FinalizationRegistry(ep=>{const newCount=(proxyCounter.get(ep)||0)-1;proxyCounter.set(ep,newCount),0===newCount&&releaseEndpoint(ep)});function createProxy(ep,pendingListeners,path=[],target=function(){}){let isProxyReleased=!1;const proxy=new Proxy(target,{get(_target,prop){if(throwIfProxyReleased(isProxyReleased),prop===releaseProxy)return()=>{!function unregisterProxy(proxy){proxyFinalizers&&proxyFinalizers.unregister(proxy)}(proxy),releaseEndpoint(ep),pendingListeners.clear(),isProxyReleased=!0};if("then"===prop){if(0===path.length)return{then:()=>proxy};const r=requestResponseMessage(ep,pendingListeners,{type:"GET",path:path.map(p=>p.toString())}).then(fromWireValue);return r.then.bind(r)}return createProxy(ep,pendingListeners,[...path,prop])},set(_target,prop,rawValue){throwIfProxyReleased(isProxyReleased);const[value,transferables]=toWireValue(rawValue);return requestResponseMessage(ep,pendingListeners,{type:"SET",path:[...path,prop].map(p=>p.toString()),value},transferables).then(fromWireValue)},apply(_target,_thisArg,rawArgumentList){throwIfProxyReleased(isProxyReleased);const last=path[path.length-1];if(last===createEndpoint)return requestResponseMessage(ep,pendingListeners,{type:"ENDPOINT"}).then(fromWireValue);if("bind"===last)return createProxy(ep,pendingListeners,path.slice(0,-1));const[argumentList,transferables]=processArguments(rawArgumentList);return requestResponseMessage(ep,pendingListeners,{type:"APPLY",path:path.map(p=>p.toString()),argumentList},transferables).then(fromWireValue)},construct(_target,rawArgumentList){throwIfProxyReleased(isProxyReleased);const[argumentList,transferables]=processArguments(rawArgumentList);return requestResponseMessage(ep,pendingListeners,{type:"CONSTRUCT",path:path.map(p=>p.toString()),argumentList},transferables).then(fromWireValue)}});return function registerProxy(proxy,ep){const newCount=(proxyCounter.get(ep)||0)+1;proxyCounter.set(ep,newCount),proxyFinalizers&&proxyFinalizers.register(proxy,ep,proxy)}(proxy,ep),proxy}function processArguments(argumentList){const processed=argumentList.map(toWireValue);return[processed.map(v=>v[0]),(arr=processed.map(v=>v[1]),Array.prototype.concat.apply([],arr))];var arr}const transferCache=new WeakMap;function proxy(obj){return Object.assign(obj,{[proxyMarker]:!0})}function toWireValue(value){for(const[name,handler]of transferHandlers)if(handler.canHandle(value)){const[serializedValue,transferables]=handler.serialize(value);return[{type:"HANDLER",name,value:serializedValue},transferables]}return[{type:"RAW",value},transferCache.get(value)||[]]}function fromWireValue(value){switch(value.type){case"HANDLER":return transferHandlers.get(value.name).deserialize(value.value);case"RAW":return value.value}}function requestResponseMessage(ep,pendingListeners,msg,transfers){return new Promise(resolve=>{const id=function generateUUID(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}();pendingListeners.set(id,resolve),ep.start&&ep.start(),ep.postMessage(Object.assign({id},msg),transfers)})}let clientIdCounter=0;class HmrServer{constructor(options={}){var _a;this.clients=new Set,this.subscriptions=new Map,this.hmrHash=0,this.options=options,this.sessionId=null!==(_a=options.sessionId)&&void 0!==_a?_a:Math.floor(Number.MAX_SAFE_INTEGER*Math.random())}createConnection(){const{port1,port2}=new MessageChannel,client={id:"hmr-client-"+ ++clientIdCounter,port:port1,send:message=>{port1.postMessage(JSON.stringify(message))},close:()=>{this.removeClient(client),port1.close()}};return port1.onmessage=event=>{this.handleClientMessage(client,event.data)},port1.onmessageerror=()=>{this.removeClient(client)},this.clients.add(client),client.send({action:HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED,data:{sessionId:this.sessionId}}),client.send({action:HMR_ACTIONS_SENT_TO_BROWSER.SYNC,hash:String(this.hmrHash),errors:[],warnings:[]}),{clientPort:port2,client}}connectIframe(iframe,origin="*"){if(!iframe.contentWindow)return console.warn("[HmrServer] Cannot connect: iframe has no contentWindow"),null;const{clientPort,client}=this.createConnection();return iframe.contentWindow.postMessage({type:"hmr-connect",sessionId:this.sessionId},origin,[clientPort]),client}handleClientMessage(client,data){try{const message="string"==typeof data?JSON.parse(data):data;if("type"in message)switch(message.type){case"turbopack-subscribe":this.subscribe(client,message.path);break;case"turbopack-unsubscribe":this.unsubscribe(client,message.path)}"event"in message&&this.handleClientEvent(client,message)}catch(e){console.error("[HmrServer] Failed to parse client message:",e)}}handleClientEvent(_client,message){switch(message.event){case"client-error":case"client-warning":case"client-success":break;case"client-full-reload":message.hadRuntimeError&&console.warn("[HmrServer] Fast Refresh had to perform a full reload due to a runtime error.")}}subscribe(client,path){var _a,_b;let clients=this.subscriptions.get(path);clients||(clients=new Set,this.subscriptions.set(path,clients)),clients.add(client),null===(_b=(_a=this.options).onSubscribe)||void 0===_b||_b.call(_a,path,client)}unsubscribe(client,path){var _a,_b;const clients=this.subscriptions.get(path);clients&&(clients.delete(client),0===clients.size&&this.subscriptions.delete(path)),null===(_b=(_a=this.options).onUnsubscribe)||void 0===_b||_b.call(_a,path,client)}removeClient(client){var _a,_b;this.clients.delete(client);for(const[path,clients]of this.subscriptions)clients.has(client)&&(clients.delete(client),null===(_b=(_a=this.options).onUnsubscribe)||void 0===_b||_b.call(_a,path,client)),0===clients.size&&this.subscriptions.delete(path)}sendUpdate(path,update){const clients=this.subscriptions.get(path);if(!clients)return;const message={action:HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_MESSAGE,data:update};for(const client of clients)client.send(message)}broadcast(message){for(const client of this.clients)client.send(message)}sendBuilding(){this.broadcast({action:HMR_ACTIONS_SENT_TO_BROWSER.BUILDING})}sendBuilt(errors=[],warnings=[]){this.hmrHash++,this.broadcast({action:HMR_ACTIONS_SENT_TO_BROWSER.BUILT,hash:String(this.hmrHash),errors,warnings})}sendReload(reason){this.broadcast({action:HMR_ACTIONS_SENT_TO_BROWSER.RELOAD,data:reason})}getSubscribedPaths(){return Array.from(this.subscriptions.keys())}get clientCount(){return this.clients.size}close(){for(const client of this.clients)client.close();this.clients.clear(),this.subscriptions.clear()}}async function installServiceWorker(url,scope,targetDirToCwd){const swUrl=new URL(url,window.location.href);swUrl.searchParams.set("scope",scope),targetDirToCwd&&swUrl.searchParams.set("targetDirToCwd",targetDirToCwd);const registration=await navigator.serviceWorker.register(swUrl.toString(),{scope:"/"});return new Promise(resolve=>{function sendMessage(sw){sw.postMessage({[SWMessageType.HandShake]:!0}),function startHeartbeat(sw){let lastHeartbeat=Date.now();navigator.serviceWorker.addEventListener("message",event=>{event.data&&!0===event.data[SWMessageType.HeartbeatPong]&&(lastHeartbeat=Date.now())}),setInterval(()=>{sw.postMessage({[SWMessageType.HeartbeatPing]:!0}),Date.now()-lastHeartbeat>2e4&&console.error("Service Worker Heartbeat Timeout")},1e4)}(sw),resolve()}function listenForActivation(sw){sw.addEventListener("statechange",()=>{"activated"===sw.state&&sendMessage(sw)})}!function checkSWState(registration){registration.active?sendMessage(registration.active):registration.installing&&listenForActivation(registration.installing),registration.addEventListener("updatefound",()=>{registration.installing&&listenForActivation(registration.installing)})}(registration)})}class Stats{constructor(raw){this.raw=raw,this.dev=0,this.ino=0,this.nlink=1,this.uid=0,this.gid=0,this.rdev=0,this.blksize=4096,this.blocks=0,this.size=raw.size,this.mode="directory"===raw.type?16877:33188,this.atimeMs=raw.atimeMs||0,this.mtimeMs=raw.mtimeMs||0,this.ctimeMs=raw.ctimeMs||0,this.birthtimeMs=raw.birthtimeMs||0,this.atime=new Date(this.atimeMs),this.mtime=new Date(this.mtimeMs),this.ctime=new Date(this.ctimeMs),this.birthtime=new Date(this.birthtimeMs)}isDirectory(){return"directory"===this.raw.type}isFile(){return"file"===this.raw.type}isSymbolicLink(){return!1}isBlockDevice(){return!1}isCharacterDevice(){return!1}isFIFO(){return!1}isSocket(){return!1}}class Dirent{constructor(rawDirent){this.rawDirent=rawDirent,this.name=this.rawDirent.name}isDirectory(){return"directory"===this.rawDirent.type}isFile(){return"file"===this.rawDirent.type}}class ForkedProject{constructor(port){var _a;null!==(_a=this.endpoint)&&void 0!==_a||(this.endpoint=wrap(port))}async deps(options){var _a,_b;return await this.endpoint.deps({registry:null!==(_a=null==options?void 0:options.registry)&&void 0!==_a?_a:void 0,concurrency:null!==(_b=null==options?void 0:options.concurrency)&&void 0!==_b?_b:void 0})}async install(packageLock,options){return await this.endpoint.install(packageLock,{maxConcurrentDownloads:null==options?void 0:options.maxConcurrentDownloads})}async build(options){return await this.endpoint.build(options)}dev(options){this.endpoint.dev(options)}async hmrSubscribe(identifier,callback){await this.endpoint.hmrSubscribe(identifier,proxy(callback))}updateInfoSubscribe(aggregationMs,callback){this.endpoint.updateInfoSubscribe(aggregationMs,proxy(callback))}async readFile(path,encoding){return await this.endpoint.readFile(path,encoding)}async writeFile(path,content,encoding){return await this.endpoint.writeFile(path,content,encoding)}async copyFile(src,dst){return await this.endpoint.copyFile(src,dst)}async readdir(path,options){return await this.endpoint.readdir(path,options)}async mkdir(path,options){return await this.endpoint.mkdir(path,options)}async rm(path,options){return await this.endpoint.rm(path,options)}async rmdir(path,options){return await this.endpoint.rmdir(path,options)}async stat(path){const raw=await this.endpoint.stat(path);return new Stats(raw)}async gzip(files){return await this.endpoint.gzip(files)}async sigMd5(content){return await this.endpoint.sigMd5(content)}}var _Project_mount,__classPrivateFieldGet=function(receiver,state,kind,f){if("a"===kind&&!f)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof state?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===kind?f:"a"===kind?f.call(receiver):f?f.value:state.get(receiver)},__classPrivateFieldSet=function(receiver,state,value,kind,f){if("m"===kind)throw new TypeError("Private method is not writable");if("a"===kind&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof state?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===kind?f.call(receiver,value):f?f.value=value:state.set(receiver,value),value};let ProjectWorker;const ConnectedPorts=new Set;class Project{constructor(options){var _a,_b;this.options=options,_Project_mount.set(this,void 0);const{cwd,workerUrl,wasmUrl,threadWorkerUrl,serviceWorker,logFilter,loadersImportMap}=options;this.cwd=cwd,this.serviceWorkerOptions=serviceWorker;const{port1,port2}=new MessageChannel;null!==(_a=this.remote)&&void 0!==_a||(this.remote=wrap(port1)),ProjectWorker||(ProjectWorker=workerUrl.startsWith("data:")?function createWorkerFromDataUri(dataUri,options){const idx=dataUri.indexOf(";base64,");if(-1===idx)return new Worker(dataUri,options);const base64=dataUri.slice(idx+8),code=atob(base64),blob=new Blob([code],{type:"application/javascript"});return new Worker(URL.createObjectURL(blob),options)}(workerUrl):new Worker(workerUrl),window.addEventListener("message",e=>{this.connectWorker(e)}),this.serviceWorkerOptions&&navigator.serviceWorker.addEventListener("message",e=>{this.connectWorker(e)})),ProjectWorker.postMessage(WorkerMessageType.InitConnection,[port2]),__classPrivateFieldSet(this,_Project_mount,null!==(_b=__classPrivateFieldGet(this,_Project_mount,"f"))&&void 0!==_b?_b:this.remote.mount({cwd,wasmUrl,threadWorkerUrl,loaderWorkerUrl:this.options.loaderWorkerUrl,loadersImportMap,logFilter}),"f")}connectWorker(e){const port=e.ports[0];e.data!==WorkerMessageType.RequestFork||ConnectedPorts.has(port)||ProjectWorker.postMessage(WorkerMessageType.InitConnection,[port])}async installServiceWorker(){if(this.serviceWorkerOptions){const{url,scope,targetDirToCwd}=this.serviceWorkerOptions;return await installServiceWorker(url,scope,targetDirToCwd)}}async mount(){return await __classPrivateFieldGet(this,_Project_mount,"f")}async deps(options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.deps(options)}async install(packageLock,options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.install(packageLock,options)}async build(options){await __classPrivateFieldGet(this,_Project_mount,"f");const res=await this.remote.build(options);return handleIssues(res.issues,!1,!1),res}async dev(options){await __classPrivateFieldGet(this,_Project_mount,"f"),this.hmrServer||(this.hmrServer=new HmrServer({onSubscribe:async(path,client)=>{await this.hmrSubscribe(path,update=>{this.hmrServer.sendUpdate(path,update)})}})),this.remote.dev(null==options?void 0:options.config,(null==options?void 0:options.onUpdate)?proxy(result=>{handleIssues(result.issues,!1,!1),options.onUpdate(result)}):void 0)}async hmrSubscribe(identifier,callback){await this.remote.hmrSubscribe(identifier,proxy(callback))}updateInfoSubscribe(aggregationMs,callback){this.remote.updateInfoSubscribe(aggregationMs,proxy(callback))}async readFile(path,encoding){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.readFile(path,encoding)}async writeFile(path,content,encoding){return await __classPrivateFieldGet(this,_Project_mount,"f"),Uint8Array,await this.remote.writeFile(path,content,encoding)}async copyFile(src,dst){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.copyFile(src,dst)}async readdir(path,options){await __classPrivateFieldGet(this,_Project_mount,"f");return(await this.remote.readdir(path,options)).map(e=>new Dirent(e))}async mkdir(path,options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.mkdir(path,options)}async rm(path,options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.rm(path,options)}async rmdir(path,options){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.rmdir(path,options)}async stat(path){await __classPrivateFieldGet(this,_Project_mount,"f");const raw=await this.remote.stat(path);return new Stats(raw)}async gzip(files){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.gzip(files)}async sigMd5(content){return await __classPrivateFieldGet(this,_Project_mount,"f"),await this.remote.sigMd5(content)}connectHmrIframe(iframe,origin){return this.hmrServer?this.hmrServer.connectIframe(iframe,origin):null}static fork(channel,eventSource){return(eventSource||self).postMessage(WorkerMessageType.RequestFork,{transfer:[channel.port2]}),new ForkedProject(channel.port1)}static checkCompatibility(){return function checkCompatibility(){const details={sharedArrayBuffer:"undefined"!=typeof SharedArrayBuffer&&crossOriginIsolated,atomics:"undefined"!=typeof Atomics,worker:"undefined"!=typeof Worker,serviceWorker:"serviceWorker"in navigator,opfs:"storage"in navigator&&"getDirectory"in navigator.storage,fileSystemObserver:"FileSystemObserver"in window},missing=[];return details.sharedArrayBuffer||missing.push("SharedArrayBuffer (COOP/COEP)"),details.atomics||missing.push("Atomics"),details.worker||missing.push("Worker"),details.serviceWorker||missing.push("ServiceWorker"),details.opfs||missing.push("OPFS"),details.fileSystemObserver||missing.push("FileSystemObserver"),{compatible:0===missing.length,minimalVersion:{chrome:137},details,missing}}()}}_Project_mount=new WeakMap;let _resolve,_projectEndpoint,_handshakeCompleted=!1,_promise=new Promise(resolve=>{_resolve=()=>{_handshakeCompleted=!0,resolve()}});const params=new URLSearchParams(self.location.search),_serviceWorkerScope=params.get("scope"),_targetDirToCwd=params.get("targetDirToCwd");self.addEventListener("install",event=>{event.waitUntil(self.skipWaiting())}),self.addEventListener("activate",event=>{event.waitUntil(self.clients.claim())}),self.addEventListener("message",event=>{event.data&&!0===event.data[SWMessageType.HandShake]?(console.log("[ServiceWorker] Handshake message received"),_projectEndpoint=Project.fork(new MessageChannel,event.source),_resolve(),console.log("[ServiceWorker] Handshake completed, ProjectEndpoint ready")):event.data&&!0===event.data[SWMessageType.HeartbeatPing]&&event.source.postMessage({[SWMessageType.HeartbeatPong]:!0})}),self.addEventListener("fetch",event=>{let{url:urlStr}=event.request,url=new URL(urlStr);"string"==typeof _serviceWorkerScope&&url.pathname.startsWith(_serviceWorkerScope)&&event.respondWith((async()=>{try{await async function waitForHandshake(requestUrl){if(_handshakeCompleted)return;const startTime=Date.now(),warningTimer=setInterval(()=>{const elapsed=Date.now()-startTime;console.warn(`[ServiceWorker] Still waiting for handshake... (${elapsed}ms elapsed, request: ${requestUrl})`)},3e3),timeoutPromise=new Promise((_,reject)=>{setTimeout(()=>{reject(new Error(`[ServiceWorker] Handshake timeout after 10000ms. Make sure the main thread calls installServiceWorker() and sends the handshake message. Request: ${requestUrl}`))},1e4)});try{await Promise.race([_promise,timeoutPromise])}finally{clearInterval(warningTimer)}}(urlStr)}catch(e){return console.error(e.message),new Response(e.message,{status:503,statusText:"Service Unavailable"})}return async function readFileFromProject(projectPath){try{const content=await _projectEndpoint.readFile(projectPath);let mimeType="application/octet-stream";return projectPath.endsWith(".js")?mimeType="application/javascript":projectPath.endsWith(".css")?mimeType="text/css":projectPath.endsWith(".html")?mimeType="text/html":projectPath.endsWith(".json")&&(mimeType="application/json"),new Response(content,{headers:{"Content-Type":mimeType,..."text/html"===mimeType?{"Cross-Origin-Embedder-Policy":"credentialless"}:{}}})}catch(e){return console.error(`File ${projectPath} not found`),new Response("Not Found",{status:404})}}((null!=_targetDirToCwd?_targetDirToCwd:".")+url.pathname.replace(_serviceWorkerScope,""))})())})})(),__webpack_exports__=__webpack_exports__.default})());
|